1 2 Previous Next 17 Replies Latest reply on Jul 17, 2008 12:26 PM by Peter Johnson

    problem deploying witha  jar, class not found

    Cory Taylor Newbie

      Hi,
      I am trying to deploy a very small simple app with a jar file, but it fails, the server log gives :
      2008-07-16 16:37:07,395 WARN [org.jboss.web.tomcat.service.TomcatInjectionContainer] (HDScanner) could not find servlet class
      9108 ca.BookStore.BookStoreServlet18 9109 in classpath when processing annotations.
      9110 2008-07-16 16:37:07,398 DEBUG [org.jboss.web.tomcat.service.deployers.TomcatDeployment] (HDScanner) Creating ENC using ClassLoader: BaseClassLoader@1419a47{vfszip:/usr/share/jboss/jboss-5.0.0.CR1/server/default/deploy/BookStore.jar}
      9111 2008-07-16 16:37:07,403 DEBUG
      ...
      9195 2008-07-16 16:37:07,406 WARN [org.jboss.web.tomcat.service.TomcatInjectionContainer] (HDScanner) could not find servlet class
      9196 ca.BookStore.BookStoreServlet18
      9197 in classpath when processing annotations.
      9198 2008-07-16 16:37:07,411 DEBUG
      [org.jboss.web.tomcat.filters.ReplyHeaderFilter] (HDScanner) Adding header name: X-Powered-By='Servlet 2.5;
      JBoss-5.0/JBossWeb-2.0/Tomcat-6.0'
      9199 2008-07-16 16:37:07,415 DEBUG [org.jboss.web.tomcat.service.deployers.TomcatDeployment] (HDScanner) Initialized: {WebApplication: /usr/share/jboss/jboss-5.0.0.CR1/server/default/tmp/deploy/BookStore.jar53941-exp.war/, URL: file:/usr/share/jboss/jboss-5.0.0.CR1/server/default/
      tmp/deploy/BookStore.jar53941-exp.war/, classLoader: BaseClassLoader@1419a47{vfszip:/usr/share/jboss/jboss-5.0.0.CR1/server/default/deploy
      /BookStore.jar}:21076551} jboss.web:j2eeType=WebModule,name=//localhost/BookStore.jar,J2EEApplication=none,J2EEServer=none
      9200 2008-07-16 16:37:07,416 DEBUG [org.jboss.deployers.plugins.deployers.DeployersImpl] (HDScanner) Fully Deployed vfszip:/usr/share/jboss/jbo
      ss-5.0.0.CR1/server/default/deploy/BookStore.jar
      9201 2008-07-16 16:37:56,437 DEBUG [com.arjuna.ats.arjuna.logging.arjLogger] (Thread-11) Periodic recovery - first pass <Wed, 16 Jul 2008 16:37
      :56>
      9202 2008-07-16 16:37:56,437 DEBUG [com.arjuna.ats.arjuna.logging.arjLogger] (Thread-11) StatusModule: first pass
      9203 2008-07-16 16:37:56,437 DEBUG [com.arjuna.ats.txoj.logging.txojLoggerI18N] (Thread-11) [com.arjuna.ats.internal.txoj.recovery.TORecoveryMo
      dule_3] - TORecoveryModule - first pass
      9204 2008-07-16 16:37:56,437 DEBUG [com.arjuna.ats.jta.logging.loggerI18N] (Thread-11) [com.arjuna.ats.internal.jta.recovery.info.firstpass] Lo
      cal XARecoveryModule - first pass
      9205 2008-07-16 16:38:06,441 DEBUG [com.arjuna.ats.arjuna.logging.arjLogger] (Thread-11) Periodic recovery - second pass <Wed, 16 Jul 2008 16:3
      8:06>
      9206 2008-07-16 16:38:06,441 DEBUG [com.arjuna.ats.arjuna.logging.arjLogger] (Thread-11) AtomicActionRecoveryModule: Second pass
      9207 2008-07-16 16:38:06,441 DEBUG [com.arjuna.ats.txoj.logging.txojLoggerI18N] (Thread-11) [com.arjuna.ats.internal.txoj.recovery.TORecoveryMo
      dule_6] - TORecoveryModule - second pass
      9208 2008-07-16 16:38:06,441 DEBUG [com.arjuna.ats.jta.logging.loggerI18N] (Thread-11) [com.arjuna.ats.internal.jta.recovery.info.secondpass] Local XARecoveryModule - second pass

      My JBoss config is just the default, i just yesterday installed jboss 5.
      My web.xml file is:
      <?xml version="1.0"?>
      2
      3 <!DOCTYPE web-app PUBLIC
      4 "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
      5 "http://java.sun.com/dtd/web-app_2_3.dtd">
      6 <web-app>
      7
      8
      9 <servlet-name>BookStore</servlet-name>
      10 <servlet-class>
      11 ca.BookStore.BookStoreServlet18
      12 </servlet-class>
      13
      14
      15 <servlet-mapping>
      16 <servlet-name>BookStore</servlet-name>
      17 <url-pattern>/listbooks.servlet</url-pattern>
      18 </servlet-mapping>
      19
      20 </web-app>

      and my jar file contents are:
      jar tf BookStore.jar
      META-INF/
      META-INF/MANIFEST.MF
      WEB-INF/
      WEB-INF/classes/
      WEB-INF/classes/ca/
      WEB-INF/classes/ca/BookStore/
      WEB-INF/classes/ca/utoronto/
      WEB-INF/classes/ca/utoronto/deeds/
      WEB-INF/classes/ca/utoronto/deeds/util/
      WEB-INF/lib/
      WEB-INF/classes/ca/BookStore/Book18.class
      WEB-INF/classes/ca/BookStore/BookDAO18.class
      WEB-INF/classes/ca/BookStore/BookStore18.class
      WEB-INF/classes/ca/BookStore/BookStoreServlet18.class
      WEB-INF/classes/ca/BookStore/Customer18.class
      WEB-INF/classes/ca/BookStore/CustomerDAO18.class
      WEB-INF/classes/ca/BookStore/CustomerList18.class
      WEB-INF/classes/ca/BookStore/Genre18.class
      WEB-INF/classes/ca/BookStore/GenreDAO18.class
      WEB-INF/classes/ca/BookStore/InputUtility18.class
      WEB-INF/classes/ca/BookStore/Prov18.class
      WEB-INF/classes/ca/BookStore/ProvDAO18.class
      WEB-INF/classes/ca/utoronto/deeds/util/JdbcUtils.class
      WEB-INF/web.xml


      Is there some special structure for the jar file I am supposed to use? I think I seen something like that earlier today but now I can't find it again.

      Thanks for any help.






        • 1. Re: problem deploying witha  jar, class not found
          Peter Johnson Master

          Try renaming BookStore.jar to BookStore.war. I think the deployers got a little confused on setting up a classpath because you used the wrong extension.

          • 2. Re: problem deploying witha  jar, class not found
            Cory Taylor Newbie

            Hi,
            When I try that (jar to war) and redeploy and hit the page I get this response:

            HTTP Status 500 -

            type Exception report

            message

            description The server encountered an internal error () that prevented it from fulfilling this request.

            exception

            javax.servlet.ServletException: Error instantiating servlet class
            ca.BookStore.BookStoreServlet18

            org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:189)
            org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:90)
            org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:96)
            org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
            org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
            org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:325)
            org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:828)
            org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:601)
            org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
            java.lang.Thread.run(Thread.java:619)

            root cause

            java.lang.ClassNotFoundException:
            ca.BookStore.BookStoreServlet18

            java.net.URLClassLoader$1.run(URLClassLoader.java:200)
            java.security.AccessController.doPrivileged(Native Method)
            java.net.URLClassLoader.findClass(URLClassLoader.java:188)
            java.lang.ClassLoader.loadClass(ClassLoader.java:306)
            java.lang.ClassLoader.loadClass(ClassLoader.java:251)
            org.jboss.web.tomcat.service.TomcatInjectionContainer.newInstance(TomcatInjectionContainer.java:162)
            org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:189)
            org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:90)
            org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:96)
            org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
            org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
            org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:325)
            org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:828)
            org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:601)
            org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
            java.lang.Thread.run(Thread.java:619)

            • 3. Re: problem deploying witha  jar, class not found
              Cory Taylor Newbie

              Something else looming odd in my server.log:
              9466 2008-07-16 17:29:33,959 DEBUG [org.jboss.web.tomcat.service.deployers.TomcatDeployment] (HDScanner) Unable to retrieve orb
              9467 javax.management.InstanceNotFoundException: jboss:service=CorbaORB is not registered.
              9468 at org.jboss.mx.server.registry.BasicMBeanRegistry.get(BasicMBeanRegistry.java:529)
              9469 at org.jboss.mx.server.MBeanServerImpl.getAttribute(MBeanServerImpl.java:559)
              9470 at org.jboss.web.tomcat.service.deployers.TomcatDeployment$EncListener.lifecycleEvent(TomcatDeployment.java:496)
              9471 at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
              9472 at org.apache.catalina.core.StandardContext.start(StandardContext.java:4351)
              9473 at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:800)
              9474 at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:780)
              9475 at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
              9476 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              9477 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
              9478 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
              9479 at java.lang.reflect.Method.invoke(Method.java:597)
              9480 at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:297)
              9481 at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
              9482 at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
              9483 at org.apache.catalina.core.StandardContext.init(StandardContext.java:5384)
              9484 at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:344)
              9485 at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:139)
              9486 at org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:431)

              • 4. Re: problem deploying witha  jar, class not found
                Peter Johnson Master

                Did you restart the app server? If not, do this:

                1) stop the app server
                2) delete server/default/data, server/default/tmp, server/default/work
                3) start the server again

                I just do not trust the deployment mechanisms in 5.0 yet. Thus I always recommend restarting, with flushing out the temporary files (step 2) for good measure.

                • 5. Re: problem deploying witha  jar, class not found
                  Peter Johnson Master

                  Ignore the missing CorbaORB message. Not even sure why it cares about this in the 'default' configure (I could understand if this issue came up in the 'all' config), probably some web services misconfiguration.

                  • 6. Re: problem deploying witha  jar, class not found
                    Cory Taylor Newbie

                    OK, did that and now when hit the page I get:
                    ype Exception report

                    message

                    description The server encountered an internal error () that prevented it from fulfilling this request.

                    exception

                    javax.servlet.ServletException: Error instantiating servlet class
                    ca.BookStore.BookStoreServlet18

                    org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:189)
                    org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:90)
                    org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:96)
                    org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
                    org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
                    org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:325)
                    org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:828)
                    org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:601)
                    org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
                    java.lang.Thread.run(Thread.java:619)

                    root cause

                    java.lang.ClassNotFoundException:
                    ca.BookStore.BookStoreServlet18

                    java.net.URLClassLoader$1.run(URLClassLoader.java:200)
                    java.security.AccessController.doPrivileged(Native Method)
                    java.net.URLClassLoader.findClass(URLClassLoader.java:188)
                    java.lang.ClassLoader.loadClass(ClassLoader.java:306)
                    java.lang.ClassLoader.loadClass(ClassLoader.java:251)
                    org.jboss.web.tomcat.service.TomcatInjectionContainer.newInstance(TomcatInjectionContainer.java:162)
                    org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:189)
                    org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:90)
                    org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:96)
                    org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
                    org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
                    org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:325)
                    org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:828)
                    org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:601)
                    org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
                    java.lang.Thread.run(Thread.java:619)

                    on the page and in my server.log I get:
                    5440 2008-07-16 17:42:25,148 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/BookStore].[BookStore]] (http-127.0.0.1-80 80-1) Allocate exception for servlet BookStore
                    5441 java.lang.ClassNotFoundException:
                    5442 ca.BookStore.BookStoreServlet18
                    5443
                    5444 at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
                    5445 at java.security.AccessController.doPrivileged(Native Method)
                    5446 at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
                    5447 at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
                    5448 at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
                    5449 at org.jboss.web.tomcat.service.TomcatInjectionContainer.newInstance(TomcatInjectionContainer.java:162)
                    5450 at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1006)
                    5451 at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:777)
                    5452 at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:129)
                    5453 at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:183)
                    5454 at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:189)
                    5455 at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:90)
                    5456 at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:96)
                    5457 at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
                    5458 at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
                    5459 at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
                    5460 at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
                    5461 at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:325)
                    5462 at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:828)
                    5463 at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:601)
                    5464 at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
                    5465 at java.lang.Thread.run(Thread.java:619)


                    and in the server console I get:
                    17:42:25,147 INFO [[/BookStore]] Marking servlet BookStore as unavailable
                    17:42:25,148 ERROR [[BookStore]] Allocate exception for servlet BookStore
                    java.lang.ClassNotFoundException:
                    ca.BookStore.BookStoreServlet18

                    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.web.tomcat.service.TomcatInjectionContainer.newInstance(TomcatInjectionContainer.java:162)
                    at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1006)
                    at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:777)
                    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:129)
                    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:183)
                    at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:189)
                    at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:90)
                    at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:96)
                    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
                    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
                    at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
                    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
                    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:325)
                    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:828)
                    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:601)
                    at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
                    at java.lang.Thread.run(Thread.java:619)


                    mysteriouser and mysteriouser...

                    • 7. Re: problem deploying witha  jar, class not found
                      Cory Taylor Newbie

                      I wonder if I need a jboss-web.xml file...

                      • 8. Re: problem deploying witha  jar, class not found
                        Peter Johnson Master

                        No. The most common use for that file is to change the context.

                        • 9. Re: problem deploying witha  jar, class not found
                          Peter Johnson Master

                          I just now noticed that your web.xmlf has this:

                          <servlet-class>
                          ca.BookStore.BookStoreServlet18
                          </servlet-class>


                          Whitespace in xml config files can cause all sorts of problems. Try this instead:

                          <servlet-class>ca.BookStore.BookStoreServlet18</servlet-class>


                          • 10. Re: problem deploying witha  jar, class not found
                            Cory Taylor Newbie

                            Thanks Peter,
                            I tried it and now when I deploy I get the following messages in my run.sh console (I shutdown, then delete the war file, then startup and then deploy):
                            09:37:25,267 INFO [ServerImpl] JBoss (Microcontainer) [5.0.0.CR1 (build: SVNTag=JBoss_5_0_0_CR1 date=200806301254)] Started in 1m:3s:299ms
                            09:39:06,120 ERROR [AbstractKernelController] Error installing to Parse: name=vfszip:/usr/share/jboss/jboss-5.0.0.CR1/server/default/deploy/BookStore.war state=Not Installed mode=Manual requiredState=Parse
                            org.jboss.deployers.spi.DeploymentException: Error creating managed object for vfszip:/usr/share/jboss/jboss-5.0.0.CR1/server/default/deploy/BookStore.war
                            at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49)
                            at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.createMetaData(AbstractParsingDeployerWithOutput.java:343)
                            at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.createMetaData(AbstractParsingDeployerWithOutput.java:303)
                            at org.jboss.deployment.JBossWebAppParsingDeployer.createMetaData(JBossWebAppParsingDeployer.java:141)
                            at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.createMetaData(AbstractParsingDeployerWithOutput.java:275)
                            at org.jboss.deployment.JBossWebAppParsingDeployer.createMetaData(JBossWebAppParsingDeployer.java:87)
                            at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.deploy(AbstractParsingDeployerWithOutput.java:236)
                            at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:174)
                            at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:970)
                            at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:911)
                            at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
                            at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1392)
                            at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:784)
                            at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:912)
                            at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:834)
                            at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:672)
                            at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:455)
                            at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:594)
                            at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:541)
                            at org.jboss.system.server.profileservice.hotdeploy.HDScanner.scan(HDScanner.java:290)
                            at org.jboss.system.server.profileservice.hotdeploy.HDScanner.run(HDScanner.java:221)
                            at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
                            at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
                            at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
                            at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
                            at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:181)
                            at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:205)
                            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: org.jboss.xb.binding.JBossXBException: Failed to parse source: context-priority-classloader not found as a child of jboss-web
                            at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBParser.java:203)
                            at org.jboss.xb.binding.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:168)
                            at org.jboss.deployers.vfs.spi.deployer.JBossXBDeployerHelper.parse(JBossXBDeployerHelper.java:198)
                            at org.jboss.deployers.vfs.spi.deployer.JBossXBDeployerHelper.parse(JBossXBDeployerHelper.java:170)
                            at org.jboss.deployers.vfs.spi.deployer.SchemaResolverDeployer.parse(SchemaResolverDeployer.java:132)
                            at org.jboss.deployers.vfs.spi.deployer.SchemaResolverDeployer.parse(SchemaResolverDeployer.java:118)
                            at org.jboss.deployers.vfs.spi.deployer.AbstractVFSParsingDeployer.parse(AbstractVFSParsingDeployer.java:128)
                            at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.createMetaData(AbstractParsingDeployerWithOutput.java:329)
                            ... 28 more
                            Caused by: org.jboss.xb.binding.JBossXBRuntimeException: context-priority-classloader not found as a child of jboss-web
                            at org.jboss.xb.binding.sunday.unmarshalling.SundayContentHandler.startElement(SundayContentHandler.java:396)
                            at org.jboss.xb.binding.parser.sax.SaxJBossXBParser$DelegatingContentHandler.startElement(SaxJBossXBParser.java:401)
                            at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
                            at org.apache.xerces.xinclude.XIncludeHandler.startElement(Unknown Source)
                            at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)
                            at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
                            at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
                            at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
                            at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
                            at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
                            at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
                            at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
                            at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBParser.java:199)
                            ... 35 more
                            09:39:06,125 WARN [HDScanner] Failed to process changes
                            org.jboss.deployers.client.spi.IncompleteDeploymentException: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):

                            *** CONTEXTS IN ERROR: Name -> Error

                            vfszip:/usr/share/jboss/jboss-5.0.0.CR1/server/default/deploy/BookStore.war -> org.jboss.xb.binding.JBossXBRuntimeException: context-priority-classloader not found as a child of jboss-web


                            at org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(DeployersImpl.java:676)
                            at org.jboss.deployers.plugins.main.MainDeployerImpl.checkComplete(MainDeployerImpl.java:661)
                            at org.jboss.system.server.profileservice.hotdeploy.HDScanner.scan(HDScanner.java:291)
                            at org.jboss.system.server.profileservice.hotdeploy.HDScanner.run(HDScanner.java:221)
                            at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
                            at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
                            at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
                            at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
                            at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:181)
                            at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:205)
                            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)

                            • 11. Re: problem deploying witha  jar, class not found
                              Cory Taylor Newbie

                              I tried changing my web.xml file to look like this:
                              1 <?xml version="1.0" encoding="UTF-8"?>
                              2 <web-app xmlns="http://java.sun.com/xml/ns/j2ee" version="2.4" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.su n.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
                              3 <display-name>BookStore</display-name>
                              4
                              5
                              6 <display-name>BookStore1</display-name>
                              7 <servlet-name>BookStore1</servlet-name>
                              8 <servlet-class>ca.BookStore.BookStoreServlet18</servlet-class>
                              9
                              10
                              11 <servlet-mapping>
                              12 <servlet-name>BookStore1</servlet-name>
                              13 <url-pattern>/listbooks.servlet</url-pattern>
                              14 </servlet-mapping>
                              15
                              16 </web-app>
                              ~
                              But still no luck, now I get this message on deploy:
                              10:06:00,923 INFO [ServerImpl] JBoss (Microcontainer) [5.0.0.CR1 (build: SVNTag=JBoss_5_0_0_CR1 date=200806301254)] Started in 58s:957ms
                              10:06:20,110 ERROR [AbstractKernelController] Error installing to Parse: name=vfszip:/usr/share/jboss/jboss-5.0.0.CR1/server/default/deploy/BookStore.war state=Not Installed mode=Manual requiredState=Parse
                              org.jboss.deployers.spi.DeploymentException: Error creating managed object for vfszip:/usr/share/jboss/jboss-5.0.0.CR1/server/default/deploy/BookStore.war
                              at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49)
                              at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.createMetaData(AbstractParsingDeployerWithOutput.java:343)
                              at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.createMetaData(AbstractParsingDeployerWithOutput.java:303)
                              at org.jboss.deployment.JBossWebAppParsingDeployer.createMetaData(JBossWebAppParsingDeployer.java:141)
                              at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.createMetaData(AbstractParsingDeployerWithOutput.java:275)
                              at org.jboss.deployment.JBossWebAppParsingDeployer.createMetaData(JBossWebAppParsingDeployer.java:87)
                              at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.deploy(AbstractParsingDeployerWithOutput.java:236)
                              at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:174)
                              at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:970)
                              at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:911)
                              at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
                              at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1392)
                              at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:784)
                              at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:912)
                              at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:834)
                              at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:672)
                              at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:455)
                              at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:594)
                              at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:541)
                              at org.jboss.system.server.profileservice.hotdeploy.HDScanner.scan(HDScanner.java:290)
                              at org.jboss.system.server.profileservice.hotdeploy.HDScanner.run(HDScanner.java:221)
                              at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
                              at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
                              at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
                              at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
                              at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:181)
                              at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:205)
                              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: org.jboss.xb.binding.JBossXBException: Failed to parse source: context-priority-classloader not found as a child of jboss-web
                              at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBParser.java:203)
                              at org.jboss.xb.binding.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:168)
                              at org.jboss.deployers.vfs.spi.deployer.JBossXBDeployerHelper.parse(JBossXBDeployerHelper.java:198)
                              at org.jboss.deployers.vfs.spi.deployer.JBossXBDeployerHelper.parse(JBossXBDeployerHelper.java:170)
                              at org.jboss.deployers.vfs.spi.deployer.SchemaResolverDeployer.parse(SchemaResolverDeployer.java:132)
                              at org.jboss.deployers.vfs.spi.deployer.SchemaResolverDeployer.parse(SchemaResolverDeployer.java:118)
                              at org.jboss.deployers.vfs.spi.deployer.AbstractVFSParsingDeployer.parse(AbstractVFSParsingDeployer.java:128)
                              at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.createMetaData(AbstractParsingDeployerWithOutput.java:329)
                              ... 28 more
                              Caused by: org.jboss.xb.binding.JBossXBRuntimeException: context-priority-classloader not found as a child of jboss-web
                              at org.jboss.xb.binding.sunday.unmarshalling.SundayContentHandler.startElement(SundayContentHandler.java:396)
                              at org.jboss.xb.binding.parser.sax.SaxJBossXBParser$DelegatingContentHandler.startElement(SaxJBossXBParser.java:401)
                              at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
                              at org.apache.xerces.xinclude.XIncludeHandler.startElement(Unknown Source)
                              at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)
                              at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
                              at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
                              at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
                              at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
                              at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
                              at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
                              at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
                              at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBParser.java:199)
                              ... 35 more
                              10:06:20,130 WARN [HDScanner] Failed to process changes
                              org.jboss.deployers.client.spi.IncompleteDeploymentException: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):

                              *** CONTEXTS IN ERROR: Name -> Error

                              vfszip:/usr/share/jboss/jboss-5.0.0.CR1/server/default/deploy/BookStore.war -> org.jboss.xb.binding.JBossXBRuntimeException: context-priority-classloader not found as a child of jboss-web


                              at org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(DeployersImpl.java:676)
                              at org.jboss.deployers.plugins.main.MainDeployerImpl.checkComplete(MainDeployerImpl.java:661)
                              at org.jboss.system.server.profileservice.hotdeploy.HDScanner.scan(HDScanner.java:291)
                              at org.jboss.system.server.profileservice.hotdeploy.HDScanner.run(HDScanner.java:221)
                              at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
                              at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
                              at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
                              at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
                              at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:181)
                              at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:205)
                              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)


                              • 12. Re: problem deploying witha  jar, class not found
                                Cory Taylor Newbie

                                My tags did not show up above but they are in my web.xml file.

                                • 13. Re: problem deploying witha  jar, class not found
                                  Cory Taylor Newbie

                                  I'd be happy to email anyone my war file if that wil help debug it, the app is just a fairly small example app that uses some servlets and some jdbc - it is just a school assignment. I had it running under tomcat with no problems.
                                  Now that I'm on Debian, tomcat doesn't seem to install properly for me and so I tried jboss which seems to run another example app (college-fest) but not my own.
                                  I took the college-fest web.xml style (2.4) and tried it in mine (see above) but no luck.

                                  • 14. Re: problem deploying witha  jar, class not found
                                    Cory Taylor Newbie

                                    I see servlet tags will not show up on the board, they are in my web.xml file however.

                                    1 2 Previous Next