5 Replies Latest reply on Jul 8, 2003 4:14 AM by amartinr

    EAR deployment problem

    Chris Sheets Newbie

      I have an existing EAR file that contains both an EJB jar and a WAR file that deploys fine on jboss-3.0.5_tomcat-4.1.18. The exact same EAR file will not deploy on jboss-3.2.1_tomcat-4.1.24. I am using Sun JDK 1.4.1 on Windows 2000 Server.

      Any insight or thoughts on this issue would be very much appreciated. Thanks.

      The exeception I get is as follows::
      2003-06-13 15:28:18,093 ERROR [org.jboss.deployment.MainDeployer] could not start deployment: file:/C:/dev/jboss-3.2.1_tomcat-4.1.24/server/default/tmp/deploy/server/default/deploy/healthtrack_debug.ear/41.healthtrack_debug.ear-contents/healthtrack.war
      java.lang.VerifyError: (class: org/apache/xerces/parsers/IntegratedParserConfiguration, method: configurePipeline signature: ()V) Incompatible type for getting or setting field
      at java.lang.Class.getDeclaredConstructors0(Native Method)
      at java.lang.Class.privateGetDeclaredConstructors(Class.java:1590)
      at java.lang.Class.getConstructor0(Class.java:1762)
      at java.lang.Class.newInstance0(Class.java:276)
      at java.lang.Class.newInstance(Class.java:259)
      at org.apache.xerces.util.ObjectFactory.newInstance(ObjectFactory.java:296)
      at org.apache.xerces.util.ObjectFactory.createObject(ObjectFactory.java:224)
      at org.apache.xerces.util.ObjectFactory.createObject(ObjectFactory.java:119)
      at org.apache.xerces.parsers.SAXParser.(SAXParser.java:95)
      at org.apache.xerces.jaxp.SAXParserImpl.(SAXParserImpl.java:102)
      at org.apache.xerces.jaxp.SAXParserFactoryImpl.newSAXParser(SAXParserFactoryImpl.java:95)
      at org.apache.commons.digester.Digester.getParser(Digester.java:692)
      at org.apache.commons.digester.Digester.getXMLReader(Digester.java:908)
      at org.apache.commons.digester.Digester.parse(Digester.java:1562)
      at org.apache.catalina.startup.ContextConfig.tldScanStream(ContextConfig.java:977)
      at org.apache.catalina.startup.ContextConfig.tldScanTld(ContextConfig.java:1006)
      at org.apache.catalina.startup.ContextConfig.tldScan(ContextConfig.java:870)
      at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:647)
      at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:243)
      at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:166)
      at org.apache.catalina.core.StandardContext.start(StandardContext.java:3567)
      at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:821)
      at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
      at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:579)
      at org.jboss.web.catalina.EmbeddedCatalinaService41.createWebContext(EmbeddedCatalinaService41.java:417)
      at org.jboss.web.catalina.EmbeddedCatalinaService41.performDeploy(EmbeddedCatalinaService41.java:266)
      at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:357)
      at org.jboss.deployment.MainDeployer.start(MainDeployer.java:832)
      at org.jboss.deployment.MainDeployer.start(MainDeployer.java:824)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:640)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:613)
      at sun.reflect.GeneratedMethodAccessor31.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
      at $Proxy7.deploy(Unknown Source)
      at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:302)
      at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:476)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:200)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:273)
      at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:192)
      at sun.reflect.GeneratedMethodAccessor7.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549)
      at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:966)
      at $Proxy0.start(Unknown Source)
      at org.jboss.system.ServiceController.start(ServiceController.java:392)
      at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
      at $Proxy5.start(Unknown Source)
      at org.jboss.deployment.SARDeployer.start(SARDeployer.java:226)
      at org.jboss.deployment.MainDeployer.start(MainDeployer.java:832)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:640)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:613)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:597)
      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:324)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
      at $Proxy6.deploy(Unknown Source)
      at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:365)
      at org.jboss.system.server.ServerImpl.start(ServerImpl.java:272)
      at org.jboss.Main.boot(Main.java:150)
      at org.jboss.Main$1.run(Main.java:388)
      at java.lang.Thread.run(Thread.java:536)

        • 1. Re: EAR deployment problem
          Godfrey Nang'oma Newbie

          I had similar problem with deploying jar file after upgrading to 3.2.1. Specifically, my problem was not with server side. I was able to deploy but unable to use my beans. It took me sometime to find out the problem of using older version classpath. Check out the class path, might be where the problem is.

          • 2. Re: EAR deployment problem
            Chris Sheets Newbie

            Thanks for your reply. Oddly eenough all of my EJBs deploy just fine - it's the WAR file that is causing the problem. I have ruled out a Tomcat 4.1.24 specific issue as I was able to deploy into a JBoss 3.07 / Tomcat 4.1.24 environment with no problem. Not sure where I should go from here.

            • 3. Re: EAR deployment problem
              Jon Barnett Master

              Looks like a Xerces parser problem - what does your XML deployment files for the WAR look like? Could be having an issue with the <?xml ...> declaration. It's ok with an encoding of "UTF-8".

              e.g.

              <?xml version="1.0" encoding="UTF-8"?>

              If you extract your WAR from the EAR and deploy it in 3.2.1 does it still have the same problem?

              • 4. Re: EAR deployment problem
                Chris Sheets Newbie

                my web.xml has the following header:

                <?xml version="1.0" encoding="UTF-8"?>

                I will test deploying the war outside of the ear and get back to you.

                • 5. Re: EAR deployment problem
                  amartinr Newbie

                  Hi.
                  I have the same problem.
                  I want to deploy an easy .war with a JSP that access to a PostgreSQL database.

                  I use JBuilder for developing with an Open Tool "Voyager (2.6)" to integrate JBoss3.2.1+Tomcat4.1.12.

                  The error appears also choose JBoss or Tomcat like server like provide JSP/servlet:



                  09:56:14,087 INFO [MainDeployer] Undeploying file:/home/amartin/mnt/TOMCAT/tomcatServer/opt/jboss-3.2.1_tomcat-4.1.24/server/forJBuilder/deploy/JBossExample.war/
                  09:56:14,090 WARN [DeploymentInfo] Not deleting localUrl, it is null or not a copy: file:/home/amartin/mnt/TOMCAT/tomcatServer/opt/jboss-3.2.1_tomcat-4.1.24/server/forJBuilder/deploy/JBossExample.war/
                  09:56:14,091 INFO [MainDeployer] Undeployed file:/home/amartin/mnt/TOMCAT/tomcatServer/opt/jboss-3.2.1_tomcat-4.1.24/server/forJBuilder/deploy/JBossExample.war/
                  09:56:14,092 INFO [MainDeployer] Starting deployment of package: file:/home/amartin/mnt/TOMCAT/tomcatServer/opt/jboss-3.2.1_tomcat-4.1.24/server/forJBuilder/deploy/JBossExample.war/
                  09:56:14,278 INFO [EmbeddedCatalinaService41] deploy, ctxPath=/JBossExample, warUrl=file:/home/amartin/mnt/TOMCAT/tomcatServer/opt/jboss-3.2.1_tomcat-4.1.24/server/forJBuilder/deploy/JBossExample.war/
                  09:56:14,315 INFO [Engine] WebappLoader[/JBossExample]: Deploying class repositories to work directory /home/amartin/mnt/TOMCAT/tomcatServer/opt/jboss-3.2.1_tomcat-4.1.24/server/forJBuilder/tmp/deploy/server/forJBuilder/deploy/work/MainEngine/localhost/JBossExample
                  09:56:14,323 INFO [Engine] WebappLoader[/JBossExample]: Deploy class files /WEB-INF/classes to /home/amartin/mnt/TOMCAT/tomcatServer/opt/jboss-3.2.1_tomcat-4.1.24/server/forJBuilder/deploy/JBossExample.war/WEB-INF/classes
                  09:56:14,329 INFO [Engine] WebappLoader[/JBossExample]: Deploy JAR /WEB-INF/lib/ant.jar to /home/amartin/mnt/TOMCAT/tomcatServer/opt/jboss-3.2.1_tomcat-4.1.24/server/forJBuilder/deploy/JBossExample.war/WEB-INF/lib/ant.jar
                  09:56:14,437 INFO [Engine] WebappLoader[/JBossExample]: Deploy JAR /WEB-INF/lib/catalina-ant.jar to /home/amartin/mnt/TOMCAT/tomcatServer/opt/jboss-3.2.1_tomcat-4.1.24/server/forJBuilder/deploy/JBossExample.war/WEB-INF/lib/catalina-ant.jar
                  09:56:14,455 INFO [Engine] WebappLoader[/JBossExample]: Deploy JAR /WEB-INF/lib/optional.jar to /home/amartin/mnt/TOMCAT/tomcatServer/opt/jboss-3.2.1_tomcat-4.1.24/server/forJBuilder/deploy/JBossExample.war/WEB-INF/lib/optional.jar
                  09:56:14,557 INFO [Engine] WebappLoader[/JBossExample]: Deploy JAR /WEB-INF/lib/pg73jdbc3.jar to /home/amartin/mnt/TOMCAT/tomcatServer/opt/jboss-3.2.1_tomcat-4.1.24/server/forJBuilder/deploy/JBossExample.war/WEB-INF/lib/pg73jdbc3.jar
                  09:56:14,613 INFO [Engine] WebappLoader[/JBossExample]: Deploy JAR /WEB-INF/lib/xercesImpl.jar to /home/amartin/mnt/TOMCAT/tomcatServer/opt/jboss-3.2.1_tomcat-4.1.24/server/forJBuilder/deploy/JBossExample.war/WEB-INF/lib/xercesImpl.jar
                  09:56:14,764 INFO [Engine] WebappLoader[/JBossExample]: Deploy JAR /WEB-INF/lib/xml-apis.jar to /home/amartin/mnt/TOMCAT/tomcatServer/opt/jboss-3.2.1_tomcat-4.1.24/server/forJBuilder/deploy/JBossExample.war/WEB-INF/lib/xml-apis.jar
                  09:56:15,170 ERROR [MainDeployer] could not start deployment: file:/home/amartin/mnt/TOMCAT/tomcatServer/opt/jboss-3.2.1_tomcat-4.1.24/server/forJBuilder/deploy/JBossExample.war/
                  java.lang.VerifyError: (class: org/apache/xerces/parsers/IntegratedParserConfiguration, method: configurePipeline signature: ()V) Incompatible type for getting or setting field
                  at java.lang.Class.getDeclaredConstructors0(Native Method)
                  at java.lang.Class.privateGetDeclaredConstructors(Class.java:1590)
                  ...
                  09:56:15,178 ERROR [URLDeploymentScanner] Failed to deploy: org.jboss.deployment.scanner.URLDeploymentScanner$DeployedURL@4f4321e5{ url=file:/home/amartin/mnt/TOMCAT/tomcatServer/opt/jboss-3.2.1_tomcat-4.1.24/server/forJBuilder/deploy/JBossExample.war/, deployedLastModified=1057650926000 }
                  org.jboss.deployment.DeploymentException: Could not create deployment: file:/home/amartin/mnt/TOMCAT/tomcatServer/opt/jboss-3.2.1_tomcat-4.1.24/server/forJBuilder/deploy/JBossExample.war/; - nested throwable: (java.lang.VerifyError: (class: org/apache/xerces/parsers/IntegratedParserConfiguration, method: configurePipeline signature: ()V) Incompatible type for getting or setting field)
                  at org.jboss.deployment.MainDeployer.start(MainDeployer.java:853)
                  at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:640)
                  ...
                  Caused by: java.lang.VerifyError: (class: org/apache/xerces/parsers/IntegratedParserConfiguration, method: configurePipeline signature: ()V) Incompatible type for getting or setting field
                  at java.lang.Class.getDeclaredConstructors0(Native Method)
                  ...

                  My web.xml:

                  <?xml version="1.0" encoding="UTF-8"?>
                  <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
                  <web-app>
                  <resource-ref>
                  <res-ref-name>jdbc/arag_ncser</res-ref-name>
                  <res-type>javax.sql.DataSource</res-type>
                  <res-auth>Container</res-auth>
                  </resource-ref>
                  </web-app>

                  My jboss-web.xml: (although, I still have not any bean)

                  <?xml version="1.0" encoding="UTF-8"?>
                  <!DOCTYPE jboss-web PUBLIC "-//JBoss//DTD Web Application 2.3//EN" "http://www.jboss.org/j2ee/dtd/jboss-web_3_0.dtd">
                  <jboss-web>
                  <resource-ref>
                  <res-ref-name>jdbc/arag_ncser</res-ref-name>
                  <res-type>javax.sql.DataSource</res-type>
                  <jndi-name>java:jdbc/arag_ncser</jndi-name>
                  </resource-ref>
                  </jboss-web>


                  Any idea to solve the problem?

                  Thanks in advance,

                  Ana