Cannot deploy project if I add integration faces 2.0.5 jar

Splash Forums Rewrite Users Cannot deploy project if I add integration faces 2.0.5 jar

This topic contains 12 replies, has 4 voices, and was last updated by  Christian Kaltepoth 2 years, 11 months ago.

Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • #24379

    giates
    Participant

    Hi,

    based on this blog of Markus Eisele:

    http://blog.eisele.net/2012/08/resource-bundle-tricks-and-best.html

    I’ve tried rewrite 2.0.5 with glassfish 3.1.2/Netbeans 7.3.1/JEE6 project with PrimeFaces 3.5.

    Adding rewrite servlet 2.0.5 jar and configuring like below:

    ConfigurationBuilder.begin().addRule(Join.path(“/{locale}/{page}.xhtml”).to(“/{page}.xhtml”));

    it works good, I can call my url like /en/index.xhtml and I see the same page as /index.xhtml

    but when I add rewrite integration faces 2.0.5 jar and configuring like below (using a PhaseBinding):

    ConfigurationBuilder.begin()
    .addRule(Join.path(“/{locale}/{page}.xhtml”).to(“/{page}.xhtml”))
    .where(“page”).matches(“.*”)
    .where(“locale”)
    .bindsTo(PhaseBinding.to(El.property(“#languageSwitch.localeCode}”)).after(PhaseId.RESTORE_VIEW));

    the project cannot be deployed anymore, netbeans says this:

    Class ‘org.ocpsoft.rewrite.faces.RewritePhaseListener’ is missing a runtime dependency: java.lang.NoClassDefFoundError: org/ocpsoft/rewrite/event/Flow

    Very strange because the class seems to exists into the jar…

    What I’m doing wrong ?

    Many thanks in advance…

    #24380

    giates
    Participant

    If I try the same test using rewrite 1.1.0 the project cannot be deployed:

    Cause: Class ‘org.ocpsoft.rewrite.faces.RewritePhaseListener’ is missing a runtime dependency: java.lang.NoClassDefFoundError: org/ocpsoft/rewrite/servlet/event/SubflowTask.

    I cannot understand what is the problem…

    #24381

    giates
    Participant

    solved myself, I must add the servlet jar into the glassfish lib folder and now it works, very strange…

    #24392

    Hey! Yeah, you need both rewrite-servlet.jar and then the extension Jar file 🙂 Glad you got it figured out!

    #24403

    giates
    Participant

    Strange, in my Netbeans project I have the two jars defined into the Libraries section (rewrite servlet jar and rewrite integration faces jar) but the project cannot be deployed, the problem has gone copying the servlet jar (only this jar) into the glassfish lib folder (now I have the rewrite servlet jar into the glassfish lib and into the application lib and my application can be correctly deployed…).

    #24471

    Very strange. Could you post the deployment exceptions that you received while experiencing this problem? Thanks! Or perhaps provide a sample app that reproduces this? I’d like to make sure it’s fixed!

    #24756

    sam.shm
    Participant

    Hi,

    I get the same problem

    1. Netbeans
    2. Glassfish 4.0
    3. Ant libraries in Netbeans
    rewrite-servlet-2.0.5.Final.jar
    rewrite-integration-faces-2.0.5.Final.jar

    Cause: Class 'org.ocpsoft.rewrite.faces.RewritePhaseListener' is missing a runtime dependency: java.lang.NoClassDefFoundError: org/ocpsoft/rewrite/event/Flow. Please see server.log for more details.

    Any ideas appreciated.
    Thanks

    #24763

    This is really weird. The Flow class is located in rewrite-servlet.

    $ zip -Tv rewrite-servlet-2.0.5.Final.jar | grep Flow
        testing: org/ocpsoft/rewrite/event/Flow.class   OK
    

    Are you sure that rewrite-servlet is correctly deployed with your application?

    #24764

    giates
    Participant

    @lincoln Baxter III: here the deployment exception on glassfish v. 3.1.2.2:

    SEVERE: Critical error during deployment:
    com.sun.faces.config.ConfigurationException:
    Source Document: jar:file:/home/tex/prj/bitbucket/infomax/adaecommerce/ADAEcommerce/dist/gfdeploy/ADAEcommerce/lib/rewrite-integration-faces-2.0.5.Final.jar!/META-INF/faces-config.xml
    Cause: Class ‘org.ocpsoft.rewrite.faces.RewritePhaseListener’ is missing a runtime dependency: java.lang.NoClassDefFoundError: org/ocpsoft/rewrite/servlet/event/SubflowTask
    at com.sun.faces.config.processor.AbstractConfigProcessor.createInstance(AbstractConfigProcessor.java:279)
    at com.sun.faces.config.processor.LifecycleConfigProcessor.addPhaseListeners(LifecycleConfigProcessor.java:132)
    at com.sun.faces.config.processor.LifecycleConfigProcessor.process(LifecycleConfigProcessor.java:111)
    at com.sun.faces.config.processor.AbstractConfigProcessor.invokeNext(AbstractConfigProcessor.java:114)
    at com.sun.faces.config.processor.FactoryConfigProcessor.process(FactoryConfigProcessor.java:222)
    at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:361)
    at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:216)
    at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:4750)
    at com.sun.enterprise.web.WebModule.contextListenerStart(WebModule.java:550)
    at org.apache.catalina.core.StandardContext.start(StandardContext.java:5366)
    at com.sun.enterprise.web.WebModule.start(WebModule.java:498)
    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:917)
    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:901)
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:733)
    at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:2019)
    at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1669)
    at com.sun.enterprise.web.WebApplication.start(WebApplication.java:109)
    at org.glassfish.internal.data.EngineRef.start(EngineRef.java:130)
    at org.glassfish.internal.data.ModuleInfo.start(ModuleInfo.java:269)
    at org.glassfish.internal.data.ApplicationInfo.start(ApplicationInfo.java:301)
    at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:461)
    at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:240)
    at org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:389)
    at com.sun.enterprise.v3.admin.CommandRunnerImpl$1.execute(CommandRunnerImpl.java:348)
    at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:363)
    at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1085)
    at com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1200(CommandRunnerImpl.java:95)
    at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1291)
    at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1259)
    at com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:461)
    at com.sun.enterprise.v3.admin.AdminAdapter.service(AdminAdapter.java:212)
    at com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java:179)
    at com.sun.enterprise.v3.server.HK2Dispatcher.dispath(HK2Dispatcher.java:117)
    at com.sun.enterprise.v3.services.impl.ContainerMapper$Hk2DispatcherCallable.call(ContainerMapper.java:354)
    at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:195)
    at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:860)
    at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:757)
    at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1056)
    at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:229)
    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:724)
    Caused by: java.lang.NoClassDefFoundError: org/ocpsoft/rewrite/servlet/event/SubflowTask
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:270)
    at com.sun.faces.util.Util.loadClass(Util.java:284)
    at com.sun.faces.config.processor.AbstractConfigProcessor.loadClass(AbstractConfigProcessor.java:311)
    at com.sun.faces.config.processor.AbstractConfigProcessor.createInstance(AbstractConfigProcessor.java:240)
    … 48 more
    Caused by: java.lang.ClassNotFoundException: org.ocpsoft.rewrite.servlet.event.SubflowTask
    at com.sun.enterprise.loader.ASURLClassLoader.findClassData(ASURLClassLoader.java:808)
    at com.sun.enterprise.loader.ASURLClassLoader.findClass(ASURLClassLoader.java:696)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
    … 53 more

    SEVERE: PWC1306: Startup of context /ADAEcommerceWar failed due to previous errors
    SEVERE: PWC1305: Exception during cleanup after start failed
    org.apache.catalina.LifecycleException: PWC2769: Manager has not yet been started
    at org.apache.catalina.session.StandardManager.stop(StandardManager.java:873)
    at org.apache.catalina.core.StandardContext.stop(StandardContext.java:5571)
    at com.sun.enterprise.web.WebModule.stop(WebModule.java:527)
    at org.apache.catalina.core.StandardContext.start(StandardContext.java:5384)
    at com.sun.enterprise.web.WebModule.start(WebModule.java:498)
    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:917)
    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:901)
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:733)
    at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:2019)
    at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1669)
    at com.sun.enterprise.web.WebApplication.start(WebApplication.java:109)
    at org.glassfish.internal.data.EngineRef.start(EngineRef.java:130)
    at org.glassfish.internal.data.ModuleInfo.start(ModuleInfo.java:269)
    at org.glassfish.internal.data.ApplicationInfo.start(ApplicationInfo.java:301)
    at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:461)
    at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:240)
    at org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:389)
    at com.sun.enterprise.v3.admin.CommandRunnerImpl$1.execute(CommandRunnerImpl.java:348)
    at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:363)
    at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1085)
    at com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1200(CommandRunnerImpl.java:95)
    at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1291)
    at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1259)
    at com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:461)
    at com.sun.enterprise.v3.admin.AdminAdapter.service(AdminAdapter.java:212)
    at com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java:179)
    at com.sun.enterprise.v3.server.HK2Dispatcher.dispath(HK2Dispatcher.java:117)
    at com.sun.enterprise.v3.services.impl.ContainerMapper$Hk2DispatcherCallable.call(ContainerMapper.java:354)
    at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:195)
    at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:860)
    at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:757)
    at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1056)
    at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:229)
    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:724)

    SEVERE: ContainerBase.addChild: start:
    org.apache.catalina.LifecycleException: java.lang.RuntimeException: com.sun.faces.config.ConfigurationException:
    Source Document: jar:file:/home/tex/prj/bitbucket/infomax/adaecommerce/ADAEcommerce/dist/gfdeploy/ADAEcommerce/lib/rewrite-integration-faces-2.0.5.Final.jar!/META-INF/faces-config.xml
    Cause: Class ‘org.ocpsoft.rewrite.faces.RewritePhaseListener’ is missing a runtime dependency: java.lang.NoClassDefFoundError: org/ocpsoft/rewrite/servlet/event/SubflowTask
    at org.apache.catalina.core.StandardContext.start(StandardContext.java:5389)
    at com.sun.enterprise.web.WebModule.start(WebModule.java:498)
    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:917)
    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:901)
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:733)
    at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:2019)
    at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1669)
    at com.sun.enterprise.web.WebApplication.start(WebApplication.java:109)
    at org.glassfish.internal.data.EngineRef.start(EngineRef.java:130)
    at org.glassfish.internal.data.ModuleInfo.start(ModuleInfo.java:269)
    at org.glassfish.internal.data.ApplicationInfo.start(ApplicationInfo.java:301)
    at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:461)
    at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:240)
    at org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:389)
    at com.sun.enterprise.v3.admin.CommandRunnerImpl$1.execute(CommandRunnerImpl.java:348)
    at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:363)
    at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1085)
    at com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1200(CommandRunnerImpl.java:95)
    at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1291)
    at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1259)
    at com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:461)
    at com.sun.enterprise.v3.admin.AdminAdapter.service(AdminAdapter.java:212)
    at com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java:179)
    at com.sun.enterprise.v3.server.HK2Dispatcher.dispath(HK2Dispatcher.java:117)
    at com.sun.enterprise.v3.services.impl.ContainerMapper$Hk2DispatcherCallable.call(ContainerMapper.java:354)
    at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:195)
    at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:860)
    at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:757)
    at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1056)
    at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:229)
    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:724)
    Caused by: java.lang.RuntimeException: com.sun.faces.config.ConfigurationException:
    Source Document: jar:file:/home/tex/prj/bitbucket/infomax/adaecommerce/ADAEcommerce/dist/gfdeploy/ADAEcommerce/lib/rewrite-integration-faces-2.0.5.Final.jar!/META-INF/faces-config.xml
    Cause: Class ‘org.ocpsoft.rewrite.faces.RewritePhaseListener’ is missing a runtime dependency: java.lang.NoClassDefFoundError: org/ocpsoft/rewrite/servlet/event/SubflowTask
    at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:276)
    at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:4750)
    at com.sun.enterprise.web.WebModule.contextListenerStart(WebModule.java:550)
    at org.apache.catalina.core.StandardContext.start(StandardContext.java:5366)
    … 39 more
    Caused by: com.sun.faces.config.ConfigurationException:
    Source Document: jar:file:/home/tex/prj/bitbucket/infomax/adaecommerce/ADAEcommerce/dist/gfdeploy/ADAEcommerce/lib/rewrite-integration-faces-2.0.5.Final.jar!/META-INF/faces-config.xml
    Cause: Class ‘org.ocpsoft.rewrite.faces.RewritePhaseListener’ is missing a runtime dependency: java.lang.NoClassDefFoundError: org/ocpsoft/rewrite/servlet/event/SubflowTask
    at com.sun.faces.config.processor.AbstractConfigProcessor.createInstance(AbstractConfigProcessor.java:279)
    at com.sun.faces.config.processor.LifecycleConfigProcessor.addPhaseListeners(LifecycleConfigProcessor.java:132)
    at com.sun.faces.config.processor.LifecycleConfigProcessor.process(LifecycleConfigProcessor.java:111)
    at com.sun.faces.config.processor.AbstractConfigProcessor.invokeNext(AbstractConfigProcessor.java:114)
    at com.sun.faces.config.processor.FactoryConfigProcessor.process(FactoryConfigProcessor.java:222)
    at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:361)
    at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:216)
    … 42 more
    Caused by: java.lang.NoClassDefFoundError: org/ocpsoft/rewrite/servlet/event/SubflowTask
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:270)
    at com.sun.faces.util.Util.loadClass(Util.java:284)
    at com.sun.faces.config.processor.AbstractConfigProcessor.loadClass(AbstractConfigProcessor.java:311)
    at com.sun.faces.config.processor.AbstractConfigProcessor.createInstance(AbstractConfigProcessor.java:240)
    … 48 more
    Caused by: java.lang.ClassNotFoundException: org.ocpsoft.rewrite.servlet.event.SubflowTask
    at com.sun.enterprise.loader.ASURLClassLoader.findClassData(ASURLClassLoader.java:808)
    at com.sun.enterprise.loader.ASURLClassLoader.findClass(ASURLClassLoader.java:696)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
    … 53 more

    WARNING: java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: java.lang.RuntimeException: com.sun.faces.config.ConfigurationException:
    Source Document: jar:file:/home/tex/prj/bitbucket/infomax/adaecommerce/ADAEcommerce/dist/gfdeploy/ADAEcommerce/lib/rewrite-integration-faces-2.0.5.Final.jar!/META-INF/faces-config.xml
    Cause: Class ‘org.ocpsoft.rewrite.faces.RewritePhaseListener’ is missing a runtime dependency: java.lang.NoClassDefFoundError: org/ocpsoft/rewrite/servlet/event/SubflowTask
    java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: java.lang.RuntimeException: com.sun.faces.config.ConfigurationException:
    Source Document: jar:file:/home/tex/prj/bitbucket/infomax/adaecommerce/ADAEcommerce/dist/gfdeploy/ADAEcommerce/lib/rewrite-integration-faces-2.0.5.Final.jar!/META-INF/faces-config.xml
    Cause: Class ‘org.ocpsoft.rewrite.faces.RewritePhaseListener’ is missing a runtime dependency: java.lang.NoClassDefFoundError: org/ocpsoft/rewrite/servlet/event/SubflowTask
    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:921)
    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:901)
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:733)
    at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:2019)
    at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1669)
    at com.sun.enterprise.web.WebApplication.start(WebApplication.java:109)
    at org.glassfish.internal.data.EngineRef.start(EngineRef.java:130)
    at org.glassfish.internal.data.ModuleInfo.start(ModuleInfo.java:269)
    at org.glassfish.internal.data.ApplicationInfo.start(ApplicationInfo.java:301)
    at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:461)
    at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:240)
    at org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:389)
    at com.sun.enterprise.v3.admin.CommandRunnerImpl$1.execute(CommandRunnerImpl.java:348)
    at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:363)
    at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1085)
    at com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1200(CommandRunnerImpl.java:95)
    at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1291)
    at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1259)
    at com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:461)
    at com.sun.enterprise.v3.admin.AdminAdapter.service(AdminAdapter.java:212)
    at com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java:179)
    at com.sun.enterprise.v3.server.HK2Dispatcher.dispath(HK2Dispatcher.java:117)
    at com.sun.enterprise.v3.services.impl.ContainerMapper$Hk2DispatcherCallable.call(ContainerMapper.java:354)
    at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:195)
    at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:860)
    at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:757)
    at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1056)
    at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:229)
    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:724)

    SEVERE: Exception while invoking class com.sun.enterprise.web.WebApplication start method
    java.lang.Exception: java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: java.lang.RuntimeException: com.sun.faces.config.ConfigurationException:
    Source Document: jar:file:/home/tex/prj/bitbucket/infomax/adaecommerce/ADAEcommerce/dist/gfdeploy/ADAEcommerce/lib/rewrite-integration-faces-2.0.5.Final.jar!/META-INF/faces-config.xml
    Cause: Class ‘org.ocpsoft.rewrite.faces.RewritePhaseListener’ is missing a runtime dependency: java.lang.NoClassDefFoundError: org/ocpsoft/rewrite/servlet/event/SubflowTask
    at com.sun.enterprise.web.WebApplication.start(WebApplication.java:138)
    at org.glassfish.internal.data.EngineRef.start(EngineRef.java:130)
    at org.glassfish.internal.data.ModuleInfo.start(ModuleInfo.java:269)
    at org.glassfish.internal.data.ApplicationInfo.start(ApplicationInfo.java:301)
    at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:461)
    at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:240)
    at org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:389)
    at com.sun.enterprise.v3.admin.CommandRunnerImpl$1.execute(CommandRunnerImpl.java:348)
    at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:363)
    at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1085)
    at com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1200(CommandRunnerImpl.java:95)
    at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1291)
    at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1259)
    at com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:461)
    at com.sun.enterprise.v3.admin.AdminAdapter.service(AdminAdapter.java:212)
    at com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java:179)
    at com.sun.enterprise.v3.server.HK2Dispatcher.dispath(HK2Dispatcher.java:117)
    at com.sun.enterprise.v3.services.impl.ContainerMapper$Hk2DispatcherCallable.call(ContainerMapper.java:354)
    at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:195)
    at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:860)
    at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:757)
    at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1056)
    at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:229)
    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:724)

    SEVERE: Exception while loading the app
    INFO: file:/home/tex/prj/bitbucket/infomax/adaecommerce/ADAEcommerce/dist/gfdeploy/ADAEcommerce/ADAEcommerceEjb_jar/_ADAEcommerceEjbPU logout successful
    INFO: No timers to be deleted for id: 90315485219979264
    SEVERE: Exception while loading the app : java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: java.lang.RuntimeException: com.sun.faces.config.ConfigurationException:
    Source Document: jar:file:/home/tex/prj/bitbucket/infomax/adaecommerce/ADAEcommerce/dist/gfdeploy/ADAEcommerce/lib/rewrite-integration-faces-2.0.5.Final.jar!/META-INF/faces-config.xml
    Cause: Class ‘org.ocpsoft.rewrite.faces.RewritePhaseListener’ is missing a runtime dependency: java.lang.NoClassDefFoundError: org/ocpsoft/rewrite/servlet/event/SubflowTask

    #24765

    giates
    Participant

    @sam.shm: if you copy the rewrite servlet jar into glassfish lib the application correctly starts…

    @Christian Kaltepoth: in my case the missing class is

    java.lang.NoClassDefFoundError: org/ocpsoft/rewrite/servlet/event/SubflowTask.class

    but depends on the type of custom configuration code… (I remember that I’ve seen the missing Flow class during my experiments…)

    and yes, seems that it is correctly located into the jar, I have no warning/error about problems during rewrite servlet deployment on glassfish log, all other libraries are working correctly, I think that the problem could be the use of the META-INF.services mechanism maybe during deployment when glassfish loads the configuration provider it cannot find the rewrite servlet is not already deployed ? This would explain why I must copy the jar into glassfish lib…

    There is another strange thing: as soon as I use the configuration provider (configured under META-INF.services), any time I modify my application sources it is correctly autodeployed by glassfish but it stop to work so I must restart the whole application server, very strange behaviour…

    • This reply was modified 2 years, 11 months ago by  giates.
    • This reply was modified 2 years, 11 months ago by  giates.
    #24769

    Hmmm. If rewrite-servlet.jar is located in WEB-INF/lib, there is nothing to “deploy”. In this case the required classes from the rewrite-servlet module should simply be available on the classpath. This is a really weird issue. I tested the bookstore showcase app some time ago on Glassfish and everything worked fine.

    What do you mean with “it stop to work”? Aren’t changed rules picked up automatically?

    #24776

    giates
    Participant

    Thanks Christian,

    yes, the rewrite servlet jar is correctly located into deploy folder at WEB-INF/lib but if I don’t copy the jar into glassfish lib the aplication doesn’t start…

    About the deployment problem seems that it is not related to rewrite servlet, trying to remove any rewrite servlet dependencies the problem is still there…

    #24778

    Hmmm. So you say you also run into problems if you completely remove Rewrite from the application? In this case it seems to be some sort of container problem.

Viewing 13 posts - 1 through 13 (of 13 total)

You must be logged in to reply to this topic.

Comments are closed.