5 Replies Latest reply on Jul 1, 2011 2:59 PM by lholmquist

    SEAM 3 + AS 7 deploy issues

    lholmquist

      i have an app that i was running on as6 and would like to move to as7, but was getting some deploy issues  it has a few seam 3 modules as dependecies.   i use solder, servlet, remoting and security. i decided to add these one by one to the kitchensink as7 example since that works.  i added remoting fine but when i added security i get this error:




      10:00:40,662 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-7) MSC00001: Failed to start service jboss.deployment.unit."jboss-as-kitchensink.war".INSTALL: org.jboss.msc.service.StartException in service jboss.deployment.unit."jboss-as-kitchensink.war".INSTALL: Failed to process phase INSTALL of deployment "jboss-as-kitchensink.war"
           at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:121)
           at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1765)
           at org.jboss.msc.service.ServiceControllerImpl$ClearTCCLTask.run(ServiceControllerImpl.java:2291)
           at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [:1.6.0_24]
           at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [:1.6.0_24]
           at java.lang.Thread.run(Thread.java:662) [:1.6.0_24]
      Caused by: java.lang.RuntimeException: Error getting reflective information for class class org.jboss.seam.international.datetimezone.DefaultDateTimeZoneProducer
           at org.jboss.as.server.deployment.reflect.DeploymentReflectionIndex.getClassIndex(DeploymentReflectionIndex.java:70)
           at org.jboss.as.ee.component.EEModuleClassDescription$DefaultConfigurator.configure(EEModuleClassDescription.java:142)
           at org.jboss.as.ee.component.EEClassConfigurationProcessor.deploy(EEClassConfigurationProcessor.java:96)
           at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:115)
           ... 5 more
      Caused by: java.lang.NoClassDefFoundError: org/joda/time/DateTimeZone
           at java.lang.Class.getDeclaredFields0(Native Method) [:1.6.0_24]
           at java.lang.Class.privateGetDeclaredFields(Class.java:2291) [:1.6.0_24]
           at java.lang.Class.getDeclaredFields(Class.java:1743) [:1.6.0_24]
           at org.jboss.as.server.deployment.reflect.ClassReflectionIndex.<init>(ClassReflectionIndex.java:57)
           at org.jboss.as.server.deployment.reflect.DeploymentReflectionIndex.getClassIndex(DeploymentReflectionIndex.java:66)
           ... 8 more
      Caused by: java.lang.ClassNotFoundException: org.joda.time.DateTimeZone from [Module "deployment.jboss-as-kitchensink.war:main" from Service Module Loader]
           at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:191)
           at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:358)
           at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:330)
           at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:307)
           at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:101)
           ... 13 more
      




      also when i added servlet i get this:




      09:56:53,555 ERROR [org.jboss.as.domain.http.api] (HttpManagementService-threads - 2) Unexpected error executing model request: java.io.IOException: Invalid character: b
           at org.jboss.dmr.JSONParserImpl.invalid(JSONParserImpl.java:133)
           at org.jboss.dmr.JSONParser.yyLex(JSONParser.java:584)
           at org.jboss.dmr.JSONParser.yyParse(JSONParser.java:650)
           at org.jboss.dmr.ModelNode.fromJSONStream(ModelNode.java:1220)
           at org.jboss.as.domain.http.server.DomainApiHandler.convertPostRequest(DomainApiHandler.java:323)
           at org.jboss.as.domain.http.server.DomainApiHandler.processRequest(DomainApiHandler.java:187)
           at org.jboss.as.domain.http.server.DomainApiHandler.handle(DomainApiHandler.java:123)
           at org.jboss.com.sun.net.httpserver.Filter$Chain.doFilter(Filter.java:82)
           at org.jboss.sun.net.httpserver.AuthFilter.doFilter(AuthFilter.java:80)
           at org.jboss.com.sun.net.httpserver.Filter$Chain.doFilter(Filter.java:85)
           at org.jboss.sun.net.httpserver.ServerImpl$Exchange$LinkHandler.handle(ServerImpl.java:606)
           at org.jboss.com.sun.net.httpserver.Filter$Chain.doFilter(Filter.java:82)
           at org.jboss.sun.net.httpserver.ServerImpl$Exchange.run(ServerImpl.java:578)
           at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [:1.6.0_24]
           at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [:1.6.0_24]
           at java.lang.Thread.run(Thread.java:662) [:1.6.0_24]
           at org.jboss.threads.JBossThread.run(JBossThread.java:122)







        • 1. Re: SEAM 3 + AS 7 deploy issues
          kenfinni

          Hi Lucas,


          Is that AS7 CR1 you're running it on?


          The reason you're getting the first error is because security uses the international module, and some of the classes in that module have a dependency on joda-time, but which the pom sets to optional (which is why you're getting the NoClassDefFoundError).


          Usually this error in international happens when the @Requires within package-info is ignored, as the @Requires is meant to prevent installation of CDI beans within that package when the joda-time dependency is not present.


          There may be a bug that we need to raise with AS7 to resolve this.

          • 2. Re: SEAM 3 + AS 7 deploy issues
            kenfinni

            Forgot to mention that a quick fix is to simply declare the joda-time dependency as follows within your project pom:


                  <dependency>
                     <groupId>joda-time</groupId>
                     <artifactId>joda-time</artifactId>
                     <version>1.6</version>
                  </dependency>
            


            • 3. Re: SEAM 3 + AS 7 deploy issues
              lholmquist

              Right, sorry  AS7 CR1


              thanks for the quick fix.  i figured that what was going on for the security one.



              Any idea about the servlet module?

              • 4. Re: SEAM 3 + AS 7 deploy issues
                lightguard

                Is that the full exception for the second one? It's not very helpful at all :( Double check all your remoting code maybe?

                • 5. Re: SEAM 3 + AS 7 deploy issues
                  lholmquist

                  it was actually,  its when i added servlet to the kitchen sink app.   I posted about remoting in another thread.  


                  Whats interesting is that when i add the seam servlet dependecy to my app i didn't get the deploy error.  i'll have to do some more testing




                  the fix above did fix my seam security issue