NetBeans Forums
| View previous topic :: View next topic |
| Author |
Message |
aniketmurtarkar
Joined: 16 Dec 2011 Posts: 3
|
Posted: Fri Dec 16, 2011 12:01 pm Post subject: Error in Rich faces implementation |
|
|
Hello,
I am trying to use richfaces 4 with hibernate in netbeans 7.1 RC2.
I have included all 4 jar files of richfaces-4.1.0.M4
and 3 supporting jar files
cssparser-0.9.5
guava-10.0
sac-1.3
but after trying to compile default created application it gives me following error. so can anyone help me.
16 Dec, 2011 5:19:45 PM org.apache.catalina.util.LifecycleBase stop
INFO: The stop() method was called on component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/mercweb]] after stop() had already been called. The second call will be ignored.
16 Dec, 2011 5:19:45 PM org.apache.catalina.startup.HostConfig checkResources
INFO: Undeploying context [/mercweb]
16 Dec, 2011 5:19:45 PM org.apache.catalina.startup.HostConfig deployDescriptor
INFO: Deploying configuration descriptor mercweb.xml from C:\Users\Aniket\.netbeans\7.1rc2\apache-tomcat-7.0.22.0_base\conf\Catalina\localhost
16 Dec, 2011 5:19:51 PM com.sun.faces.config.ConfigureListener contextInitialized
INFO: Initializing Mojarra 2.1.1 (FCS 20110408) for context '/mercweb'
16 Dec, 2011 5:19:51 PM com.sun.faces.spi.InjectionProviderFactory createInstance
INFO: JSF1048: PostConstruct/PreDestroy annotations present. ManagedBeans methods marked with these annotations will have said annotations processed.
16 Dec, 2011 5:19:52 PM com.sun.faces.config.ConfigureListener contextInitialized
SEVERE: Critical error during deployment:
java.lang.NoClassDefFoundError: javax/xml/bind/JAXB
at org.richfaces.javascript.ClientServiceConfigParser.parse(ClientServiceConfigParser.java:59)
at org.richfaces.javascript.ClientServiceConfigParser.parseConfig(ClientServiceConfigParser.java:48)
at org.richfaces.application.ValidatorModule.createClientScriptService(ValidatorModule.java:65)
at org.richfaces.application.ValidatorModule.configure(ValidatorModule.java:60)
at org.richfaces.application.ServicesFactoryImpl.init(ServicesFactoryImpl.java:27)
at org.richfaces.application.InitializationListener.createFactory(InitializationListener.java:139)
at org.richfaces.application.InitializationListener.onStart(InitializationListener.java:112)
at org.richfaces.application.InitializationListener.processEvent(InitializationListener.java:157)
at javax.faces.event.SystemEvent.processListener(SystemEvent.java:106)
at com.sun.faces.application.ApplicationImpl.processListeners(ApplicationImpl.java:2129)
at com.sun.faces.application.ApplicationImpl.invokeListenersFor(ApplicationImpl.java:2105)
at com.sun.faces.application.ApplicationImpl.publishEvent(ApplicationImpl.java:300)
at com.sun.faces.config.ConfigManager.publishPostConfigEvent(ConfigManager.java:603)
at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:369)
at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:225)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4723)
at org.apache.catalina.core.StandardContext$1.call(StandardContext.java:5226)
at org.apache.catalina.core.StandardContext$1.call(StandardContext.java:5221)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
at java.lang.Thread.run(Thread.java:619)
16 Dec, 2011 5:19:52 PM org.apache.catalina.core.StandardContext startInternal
SEVERE: Error listenerStart
16 Dec, 2011 5:19:52 PM org.apache.catalina.core.StandardContext startInternal
SEVERE: Context [/mercweb] startup failed due to previous errors
16 Dec, 2011 5:19:52 PM com.sun.faces.lifecycle.ELResolverInitPhaseListener populateFacesELResolverForJsp
INFO: JSF1027: [null] The ELResolvers for JSF were not registered with the JSP container.
16 Dec, 2011 5:19:52 PM com.sun.faces.config.ConfigureListener contextDestroyed
SEVERE: Unexpected exception when attempting to tear down the Mojarra runtime
java.lang.NullPointerException
at org.richfaces.application.CacheProvider.release(CacheProvider.java:96)
at org.richfaces.application.ServicesFactoryImpl.release(ServicesFactoryImpl.java:18)
at org.richfaces.application.ServiceTracker.release(ServiceTracker.java:132)
at org.richfaces.application.InitializationListener.onStop(InitializationListener.java:147)
at org.richfaces.application.InitializationListener.processEvent(InitializationListener.java:159)
at javax.faces.event.SystemEvent.processListener(SystemEvent.java:106)
at com.sun.faces.application.ApplicationImpl.processListeners(ApplicationImpl.java:2129)
at com.sun.faces.application.ApplicationImpl.invokeListenersFor(ApplicationImpl.java:2105)
at com.sun.faces.application.ApplicationImpl.publishEvent(ApplicationImpl.java:300)
at com.sun.faces.config.ConfigureListener.contextDestroyed(ConfigureListener.java:329)
at org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:4763)
at org.apache.catalina.core.StandardContext$4.run(StandardContext.java:5473)
at java.lang.Thread.run(Thread.java:619) |
|
| Back to top |
|
 |
jyeary
Joined: 21 Oct 2008 Posts: 606 Location: Simpsonville, SC
|
Posted: Fri Dec 16, 2011 12:56 pm Post subject: Re: Error in Rich faces implementation |
|
|
That is an odd error to see considering that JAXB is part of JDK6/7. Anyway, add the JAXB libraries to your project. Pick one... they are called JAXB 2.2, or JAXB-ENDORSED.
John |
|
| Back to top |
|
 |
aniketmurtarkar
Joined: 16 Dec 2011 Posts: 3
|
Posted: Fri Dec 16, 2011 2:05 pm Post subject: no change |
|
|
Thanks John for your immediate reply
I added jaxb-api-2.2.jar from http://download.java.net/maven/1/javax.xml.bind/jars/
but still I am facing same problem.
16 Dec, 2011 6:51:35 PM org.apache.catalina.core.StandardContext listenerStart
SEVERE: Exception sending context initialized event to listener instance of class com.sun.faces.config.ConfigureListener
java.lang.RuntimeException: java.lang.NoClassDefFoundError: javax/xml/bind/JAXB
at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:292)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4723)
at org.apache.catalina.core.StandardContext$1.call(StandardContext.java:5226)
at org.apache.catalina.core.StandardContext$1.call(StandardContext.java:5221)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.NoClassDefFoundError: javax/xml/bind/JAXB
at org.richfaces.javascript.ClientServiceConfigParser.parse(ClientServiceConfigParser.java:59)
at org.richfaces.javascript.ClientServiceConfigParser.parseConfig(ClientServiceConfigParser.java:4
at org.richfaces.application.ValidatorModule.createClientScriptService(ValidatorModule.java:65)
at org.richfaces.application.ValidatorModule.configure(ValidatorModule.java:60)
at org.richfaces.application.ServicesFactoryImpl.init(ServicesFactoryImpl.java:27)
at org.richfaces.application.InitializationListener.createFactory(InitializationListener.java:139)
at org.richfaces.application.InitializationListener.onStart(InitializationListener.java:112)
at org.richfaces.application.InitializationListener.processEvent(InitializationListener.java:157)
at javax.faces.event.SystemEvent.processListener(SystemEvent.java:106)
at com.sun.faces.application.ApplicationImpl.processListeners(ApplicationImpl.java:2129)
at com.sun.faces.application.ApplicationImpl.invokeListenersFor(ApplicationImpl.java:2105)
at com.sun.faces.application.ApplicationImpl.publishEvent(ApplicationImpl.java:300)
at com.sun.faces.config.ConfigManager.publishPostConfigEvent(ConfigManager.java:603)
at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:369)
at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:225)
... 8 more |
|
| Back to top |
|
 |
jyeary
Joined: 21 Oct 2008 Posts: 606 Location: Simpsonville, SC
|
Posted: Sun Dec 18, 2011 6:48 pm Post subject: Re: Error in Rich faces implementation |
|
|
I created a blog entry and video on how to use RichFaces 4.1.0 Final in NetBeans 7.1 RC2. Hopefully, this will help you with your issues. I noticed that you are using the wrong version of Guava once I did the blog and video.
http://javaevangelist.blogspot.com/2011/12/richfaces-410-final-on-netbeans-71-ide.html
John
On Fri, Dec 16, 2011 at 9:06 AM, aniketmurtarkar <address-removed ([email]address-removed[/email])> wrote:
| Quote: | Thanks John for your immediate reply
I added jaxb-api-2.2.jar |
|
| Back to top |
|
 |
aniketmurtarkar
Joined: 16 Dec 2011 Posts: 3
|
Posted: Thu Dec 22, 2011 12:28 pm Post subject: Thanks John |
|
|
Hi John,
Thanks for your help and giving a video for installation.
it is working fine with glassfish now.
here are some points that i need help.
1. the project is working fine in glassfish but it giving me same trouble in tomcat sever available with netbean 7.1 rc2
2. if i am using glassfish server with hibernate available with netbean 7.1 rc2.
it gives me following error to antlr 2.7.6 jar file.
i tried replace the jar and proper path but did not understand why it is showing URI error.
3. the fonts in video, uploaded by you, are very unclear so it very difficult to read.
the error is as follows:
java.net.URISyntaxException: Illegal character in path at index 20: file:/D:/Application Setup/Netbeans workspace/mercweb/build/web/WEB-INF/lib/antlr-2.7.6.jar
at java.net.URI$Parser.fail(URI.java:2809)
at java.net.URI$Parser.checkChars(URI.java:2982)
at java.net.URI$Parser.parseHierarchical(URI.java:3066)
at java.net.URI$Parser.parse(URI.java:3014)
at java.net.URI.<init>(URI.java:578)
at java.net.URL.toURI(URL.java:918)
at com.sun.enterprise.v3.server.SnifferManagerImpl.getURIs(SnifferManagerImpl.java:268)
at com.sun.enterprise.v3.server.SnifferManagerImpl.getApplicableSniffers(SnifferManagerImpl.java:202)
at com.sun.enterprise.v3.server.SnifferManagerImpl.getSniffers(SnifferManagerImpl.java:150)
at com.sun.enterprise.v3.server.ApplicationLifecycle.setupContainerInfos(ApplicationLifecycle.java:606)
at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:368)
at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:240)
at org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:382)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$1.execute(CommandRunnerImpl.java:360)
at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:370)
at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1064)
at com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1200(CommandRunnerImpl.java:96)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1244)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1232)
at org.glassfish.deployment.admin.ReDeployCommand.execute(ReDeployCommand.java:126)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$1.execute(CommandRunnerImpl.java:355)
at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:370)
at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1064)
at com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1200(CommandRunnerImpl.java:96)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1244)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1232)
at com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:459)
at com.sun.enterprise.v3.admin.AdminAdapter.service(AdminAdapter.java:209)
at com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java:168)
at com.sun.enterprise.v3.server.HK2Dispatcher.dispath(HK2Dispatcher.java:117)
at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:238)
at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:828)
at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:725)
at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1019)
at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:225)
at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137)
at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104)
at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90)
at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79)
at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54)
at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59)
at com.sun.grizzly.ContextTask.run(ContextTask.java:71)
at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532)
at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513)
at java.lang.Thread.run(Thread.java:619)
INFO: Initializing Mojarra 2.1.3 (FCS b02) for context '/mercweb'
INFO: Instantiated an instance of org.hibernate.validator.engine.resolver.JPATraversableResolver.
INFO: Instantiated an instance of org.hibernate.validator.engine.resolver.JPATraversableResolver.
INFO: Selected fallback cache factory
INFO: Creating LRUMap cache instance using parameters: {com.sun.faces.forceLoadConfiguration=true, com.sun.faces.validateXml=true, javax.faces.PROJECT_STAGE=Development}
INFO: Creating LRUMap cache instance of 512 items capacity
INFO: RichFaces Core Implementation by JBoss, a division of Red Hat, Inc., version v.4.1.0.20111101-M4
INFO: Monitoring jndi:/server/mercweb/WEB-INF/faces-config.xml for modifications
INFO: WEB0671: Loading application [mercweb] at [/mercweb]
INFO: mercweb was successfully deployed in 16,272 milliseconds. |
|
| Back to top |
|
 |
Ambit_Energy
Joined: 22 Dec 2011 Posts: 1 Location: Carthage, Missouri
|
Posted: Fri Dec 23, 2011 12:38 am Post subject: |
|
|
Your blog is really a helpful one... Hoping for more tips and tutorials. Bookmarking your blog  |
|
| Back to top |
|
 |
jyeary
Joined: 21 Oct 2008 Posts: 606 Location: Simpsonville, SC
|
Posted: Mon Dec 26, 2011 1:20 pm Post subject: Re: Error in Rich faces implementation |
|
|
| There are spaces in your path, and it is un-quoted. The index position is 20 |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum
|
|
|