[SOLVED]how can i use push without Maven?

UI Components for JSF
Post Reply
bacon88
Posts: 67
Joined: 29 Aug 2012, 08:36
Location: SiChuang,China

11 Nov 2014, 04:06

I use PF5.1 RC1 and NetBeans 7.3.1 with tomcat 7.0.34
my study project have not use Maven.
According to the Primefaces User Guide5.1,It must to be use Maven to implement the Push.
My question is :
How can i use push without Maven in Primefaces 5.1 RC1?

when i add atmosphere-runtime-2.2.2.jar,slf4j-api-1.6.1,slf4j-simple-1.6.1 to my project(This project is Same to the Push Notify Showcase,I copy the showcase code to my project). it occurs runtime error like this:

Code: Select all

213536 [http-bio-8084-exec-25] INFO org.atmosphere.cpr.AtmosphereFramework - Installed AtmosphereInterceptor Atmosphere LifeCycle with priority AFTER_DEFAULT 
213536 [http-bio-8084-exec-25] INFO org.atmosphere.cpr.AtmosphereFramework - Installed AtmosphereInterceptor  Track Message Size Interceptor using | with priority BEFORE_DEFAULT 
213536 [http-bio-8084-exec-25] WARN org.atmosphere.util.IOUtils - META-INF/services/org.atmosphere.cpr.AtmosphereFramework not found in class loader
213539 [http-bio-8084-exec-25] ERROR org.atmosphere.cpr.AtmosphereFramework - Failed to initialize Atmosphere Framework
java.lang.NoClassDefFoundError: javax/inject/Inject
	at org.primefaces.push.impl.PushObjectFactory.newClassInstance(PushObjectFactory.java:41)
	at org.atmosphere.cpr.AtmosphereFramework.newClassInstance(AtmosphereFramework.java:2802)
	at org.atmosphere.cpr.AtmosphereFramework.init(AtmosphereFramework.java:860)
	at org.atmosphere.cpr.AtmosphereFramework.init(AtmosphereFramework.java:778)
	at org.primefaces.push.PushServlet.configureFramework(PushServlet.java:92)
	at org.primefaces.push.PushServlet.configureFramework(PushServlet.java:36)
	at org.atmosphere.cpr.AtmosphereServlet.init(AtmosphereServlet.java:80)
	at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1267)
	at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1186)
	at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:858)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:136)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
	at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:936)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
	at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1004)
	at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
	at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:312)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
	at java.lang.Thread.run(Thread.java:745)
Last edited by bacon88 on 11 Nov 2014, 06:36, edited 2 times in total.
jdk1.8.0_202 & Java EE 8
primefaces 8.0
Mojarra 2.3.9
GlassFish Server 5.1.0

bacon88
Posts: 67
Joined: 29 Aug 2012, 08:36
Location: SiChuang,China

11 Nov 2014, 04:34

i solved this problem by add javax.inject-1.jar to my project!
jdk1.8.0_202 & Java EE 8
primefaces 8.0
Mojarra 2.3.9
GlassFish Server 5.1.0

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 50 guests