0 Replies Latest reply on Oct 26, 2005 9:43 PM by Brian Sam-Bodden

    JBoss 5.0.0alpha and Tapestry Webapp

    Brian Sam-Bodden Newbie

      I have an application that is currently working on JBoss 4.0.3RC1 using EJB3+Tapestry 4. Since I want to expose some of my SSB methods as Web Services I decided to build JBoss 5.0.0alpha (today) to use annotation based webservices as explained here:

      http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3878875

      All of my app deploys correctly except for the webapp (Tapestry libs in WEB-INF/lib) and get the the following exception:

      java.lang.IllegalStateException: java.lang.ClassNotFoundException: org.apache.tapestry.ApplicationServlet

      The IllegalStateException makes me think that this is a ClassLoader issue. Is there something specific in the Tomcat integration/WAR deployer that I need to do to prevent this?

      Thanks,
      Brian

      the stack trace follows (I'm on WinXP, JSE 5.0):

      ===============================================

      2005-10-26 21:08:19,937 DEBUG [org.jboss.deployment.MainDeployer] create step for deployment file:/C:/java/jboss-5.0.0alpha/server/default/tmp/deploy/tmp22853techconf.ear-contents/techconf.war
      2005-10-26 21:08:19,937 DEBUG [org.jboss.web.tomcat.tc5.Tomcat5] create, techconf.war
      2005-10-26 21:08:19,937 DEBUG [org.jboss.system.ServiceController] Creating service jboss.web.deployment:war=techconf.war,id=1444246046
      2005-10-26 21:08:19,937 DEBUG [org.jboss.system.ServiceController] adding depends in ServiceController.register: []
      2005-10-26 21:08:19,937 DEBUG [org.jboss.web.WebModule] Creating jboss.web.deployment:war=techconf.war,id=1444246046
      2005-10-26 21:08:19,937 DEBUG [org.jboss.web.WebModule] Created jboss.web.deployment:war=techconf.war,id=1444246046
      2005-10-26 21:08:19,937 DEBUG [org.jboss.system.ServiceController] Creating dependent components for: jboss.web.deployment:war=techconf.war,id=1444246046 dependents are: []
      2005-10-26 21:08:19,937 ERROR [org.jboss.deployment.MainDeployer] Could not create deployment: file:/C:/java/jboss-5.0.0alpha/server/default/tmp/deploy/tmp22853techconf.ear-contents/techconf.war
      java.lang.IllegalStateException: java.lang.ClassNotFoundException: org.apache.tapestry.ApplicationServlet
      at org.jboss.ws.server.WebServiceDeployerJSE.isWebserviceDeployment(WebServiceDeployerJSE.java:143)
      at org.jboss.ws.server.WebServiceDeployer.create(WebServiceDeployer.java:83)
      at org.jboss.ws.server.WebServiceDeployerJSE.create(WebServiceDeployerJSE.java:49)
      at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.create(SubDeployerInterceptorSupport.java:160)
      at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:77)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:76)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:247)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:653)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
      at $Proxy30.create(Unknown Source)
      at org.jboss.deployment.MainDeployer.create(MainDeployer.java:933)
      at org.jboss.deployment.MainDeployer.create(MainDeployer.java:923)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:787)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:751)
      at sun.reflect.GeneratedMethodAccessor46.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:143)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:82)
      at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:123)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:76)
      at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:125)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:76)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:247)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:653)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
      at $Proxy9.deploy(Unknown Source)
      at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:319)
      at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:507)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:192)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:265)
      at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:274)
      at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:230)
      at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:143)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:82)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:247)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:653)
      at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:942)
      at $Proxy0.start(Unknown Source)
      at org.jboss.system.ServiceController.start(ServiceController.java:427)
      at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:143)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:82)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:247)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:653)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
      at $Proxy4.start(Unknown Source)
      at org.jboss.deployment.SARDeployer.start(SARDeployer.java:295)
      at org.jboss.deployment.MainDeployer.start(MainDeployer.java:987)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:788)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:751)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:735)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:143)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:82)
      at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:123)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:76)
      at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:125)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:76)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:247)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:653)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
      at $Proxy5.deploy(Unknown Source)
      at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:453)
      at org.jboss.system.server.ServerImpl.start(ServerImpl.java:330)
      at org.jboss.Main.boot(Main.java:188)
      at org.jboss.Main$1.run(Main.java:439)
      at java.lang.Thread.run(Thread.java:595)
      Caused by: java.lang.ClassNotFoundException: org.apache.tapestry.ApplicationServlet
      at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
      at org.jboss.ws.server.WebServiceDeployerJSE.isWebserviceDeployment(WebServiceDeployerJSE.java:133)
      ... 77 more
      2005-10-26 21:08:19,937 DEBUG [org.jboss.deployment.scanner.URLDeploymentScanner] Failed to deploy: org.jboss.deployment.scanner.URLDeploymentScanner$DeployedURL@2681497b{ url=file:/C:/java/jboss-5.0.0alpha/server/default/deploy/techconf.ear, deployedLastModified=0 }
      org.jboss.deployment.DeploymentException: Could not create deployment: file:/C:/java/jboss-5.0.0alpha/server/default/tmp/deploy/tmp22853techconf.ear-contents/techconf.war; - nested throwable: (java.lang.IllegalStateException: java.lang.ClassNotFoundException: org.apache.tapestry.ApplicationServlet)
      at org.jboss.deployment.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:39)
      at org.jboss.deployment.MainDeployer.create(MainDeployer.java:955)
      at org.jboss.deployment.MainDeployer.create(MainDeployer.java:923)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:787)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:751)
      at sun.reflect.GeneratedMethodAccessor46.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:143)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:82)
      at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:123)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:76)
      at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:125)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:76)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:247)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:653)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
      at $Proxy9.deploy(Unknown Source)
      at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:319)
      at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:507)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:192)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:265)
      at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:274)
      at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:230)
      at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:143)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:82)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:247)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:653)
      at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:942)
      at $Proxy0.start(Unknown Source)
      at org.jboss.system.ServiceController.start(ServiceController.java:427)
      at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:143)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:82)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:247)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:653)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
      at $Proxy4.start(Unknown Source)
      at org.jboss.deployment.SARDeployer.start(SARDeployer.java:295)
      at org.jboss.deployment.MainDeployer.start(MainDeployer.java:987)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:788)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:751)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:735)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:143)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:82)
      at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:123)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:76)
      at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:125)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:76)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:247)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:653)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
      at $Proxy5.deploy(Unknown Source)
      at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:453)
      at org.jboss.system.server.ServerImpl.start(ServerImpl.java:330)
      at org.jboss.Main.boot(Main.java:188)
      at org.jboss.Main$1.run(Main.java:439)
      at java.lang.Thread.run(Thread.java:595)
      Caused by: java.lang.IllegalStateException: java.lang.ClassNotFoundException: org.apache.tapestry.ApplicationServlet
      at org.jboss.ws.server.WebServiceDeployerJSE.isWebserviceDeployment(WebServiceDeployerJSE.java:143)
      at org.jboss.ws.server.WebServiceDeployer.create(WebServiceDeployer.java:83)
      at org.jboss.ws.server.WebServiceDeployerJSE.create(WebServiceDeployerJSE.java:49)
      at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.create(SubDeployerInterceptorSupport.java:160)
      at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:77)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:76)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:247)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:653)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
      at $Proxy30.create(Unknown Source)
      at org.jboss.deployment.MainDeployer.create(MainDeployer.java:933)
      ... 67 more
      Caused by: java.lang.ClassNotFoundException: org.apache.tapestry.ApplicationServlet
      at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
      at org.jboss.ws.server.WebServiceDeployerJSE.isWebserviceDeployment(WebServiceDeployerJSE.java:133)
      ... 77 more