7 Replies Latest reply on Jan 13, 2009 4:02 AM by jaikiran pai

    ear file of JBoss 4.0 is not deploying on JBoss 5.0.0.CR1

    Ashish Doshi Newbie

      I am trying to deploy an application on JBoss 5.0.0.CR1 that was developed on JBoss 4.0. It gives me following error.

      JAVA_HOME is not set. Unexpected results may occur.
      Set JAVA_HOME to the directory of your local JDK to avoid this message.
      ===============================================================================

      JBoss Bootstrap Environment

      JBOSS_HOME: C:\jboss-5.0.0.CR1

      JAVA: java

      JAVA_OPTS: -Dprogram.name=run.bat -server -Xms128m -Xmx512m -XX:MaxPermSize=25
      6m -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=36000
      00

      CLASSPATH: ;C:\jboss-5.0.0.CR1\bin\run.jar

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

      10:39:04,567 INFO [ServerImpl] Starting JBoss (Microcontainer)...
      10:39:04,587 INFO [ServerImpl] Release ID: JBoss [Morpheus] 5.0.0.CR1 (build: S
      VNTag=JBoss_5_0_0_CR1 date=200806301254)
      10:39:04,597 INFO [ServerImpl] Home Dir: C:\jboss-5.0.0.CR1
      10:39:04,597 INFO [ServerImpl] Home URL: file:/C:/jboss-5.0.0.CR1/
      10:39:04,597 INFO [ServerImpl] Library URL: file:/C:/jboss-5.0.0.CR1/lib/
      10:39:04,597 INFO [ServerImpl] Patch URL: null
      10:39:04,597 INFO [ServerImpl] Server Name: default
      10:39:04,597 INFO [ServerImpl] Server Home Dir: C:\jboss-5.0.0.CR1\server\defau
      lt
      10:39:04,597 INFO [ServerImpl] Server Home URL: file:/C:/jboss-5.0.0.CR1/server
      /default/
      10:39:04,597 INFO [ServerImpl] Server Data Dir: C:\jboss-5.0.0.CR1\server\defau
      lt\data
      10:39:04,597 INFO [ServerImpl] Server Temp Dir: C:\jboss-5.0.0.CR1\server\defau
      lt\tmp
      10:39:04,597 INFO [ServerImpl] Server Config URL: file:/C:/jboss-5.0.0.CR1/serv
      er/default/conf/
      10:39:04,597 INFO [ServerImpl] Server Library URL: file:/C:/jboss-5.0.0.CR1/ser
      ver/default/lib/
      10:39:04,597 INFO [ServerImpl] Root Deployment Filename: jboss-service.xml
      10:39:08,552 INFO [ServerImpl] Starting Microcontainer, bootstrapURL=file:/C:/j
      boss-5.0.0.CR1/server/default/conf/bootstrap.xml
      10:39:13,139 INFO [CopyMechanism] VFS temp dir: C:\jboss-5.0.0.CR1\server\defau
      lt\tmp
      10:39:13,139 INFO [ZipEntryContext] VFS force nested jars copy-mode is enabled.

      10:39:22,793 INFO [ServerInfo] Java version: 1.5.0_01,Sun Microsystems Inc.
      10:39:22,793 INFO [ServerInfo] Java VM: Java HotSpot(TM) Server VM 1.5.0_01-b08
      ,Sun Microsystems Inc.
      10:39:22,803 INFO [ServerInfo] OS-System: Windows XP 5.1,x86
      10:39:22,933 INFO [JMXKernel] Legacy JMX core initialized
      10:39:25,907 INFO [MetaDataAwareProfile] Using profile root:C:\jboss-5.0.0.CR1\
      server\default
      10:39:41,109 INFO [WebService] Using RMI server codebase: http://127.0.0.1:8083
      /
      10:40:14,428 ERROR [AbstractKernelController] Error installing to Parse: name=vf
      sfile:/C:/jboss-5.0.0.CR1/server/default/deploy/QPortal.ear/ state=Not Installed
      mode=Manual requiredState=Parse
      org.jboss.deployers.spi.DeploymentException: Error creating managed object for v
      fsfile:/C:/jboss-5.0.0.CR1/server/default/deploy/QPortal.ear/QP_WEB.war
      /
      at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentExcept
      ion(DeploymentException.java:49)
      at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithO
      utput.createMetaData(AbstractParsingDeployerWithOutput.java:343)
      at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithO
      utput.createMetaData(AbstractParsingDeployerWithOutput.java:303)
      at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithO
      utput.createMetaData(AbstractParsingDeployerWithOutput.java:275)
      at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithO
      utput.deploy(AbstractParsingDeployerWithOutput.java:236)
      at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(Deployer
      Wrapper.java:174)
      at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFi
      rst(DeployersImpl.java:970)
      at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFi
      rst(DeployersImpl.java:1023)
      at org.jboss.deployers.plugins.deployers.DeployersImpl.install(Deployers
      Impl.java:911)
      at org.jboss.dependency.plugins.AbstractControllerContext.install(Abstra
      ctControllerContext.java:348)
      at org.jboss.dependency.plugins.AbstractController.install(AbstractContr
      oller.java:1392)
      at org.jboss.dependency.plugins.AbstractController.incrementState(Abstra
      ctController.java:784)
      at org.jboss.dependency.plugins.AbstractController.resolveContexts(Abstr
      actController.java:912)
      at org.jboss.dependency.plugins.AbstractController.resolveContexts(Abstr
      actController.java:834)
      at org.jboss.dependency.plugins.AbstractController.change(AbstractContro
      ller.java:672)
      at org.jboss.dependency.plugins.AbstractController.change(AbstractContro
      ller.java:455)
      at org.jboss.deployers.plugins.deployers.DeployersImpl.process(Deployers
      Impl.java:594)
      at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeploye
      rImpl.java:541)
      at org.jboss.system.server.profileservice.ProfileServiceBootstrap.loadPr
      ofile(ProfileServiceBootstrap.java:257)
      at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(
      ProfileServiceBootstrap.java:135)
      at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:
      409)
      at org.jboss.Main.boot(Main.java:209)
      at org.jboss.Main$1.run(Main.java:544)
      at java.lang.Thread.run(Thread.java:595)
      Caused by: org.jboss.xb.binding.JBossXBException: Failed to parse source: Elemen
      t {http://java.sun.com/xml/ns/j2ee}web-app is not bound as a global element.
      at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBPars
      er.java:203)
      at org.jboss.xb.binding.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java
      :168)
      at org.jboss.deployers.vfs.spi.deployer.JBossXBDeployerHelper.parse(JBos
      sXBDeployerHelper.java:198)
      at org.jboss.deployers.vfs.spi.deployer.JBossXBDeployerHelper.parse(JBos
      sXBDeployerHelper.java:170)
      at org.jboss.deployers.vfs.spi.deployer.SchemaResolverDeployer.parse(Sch
      emaResolverDeployer.java:132)
      at org.jboss.deployers.vfs.spi.deployer.SchemaResolverDeployer.parse(Sch
      emaResolverDeployer.java:118)
      at org.jboss.deployers.vfs.spi.deployer.AbstractVFSParsingDeployer.parse
      (AbstractVFSParsingDeployer.java:128)
      at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithO
      utput.createMetaData(AbstractParsingDeployerWithOutput.java:329)
      ... 22 more
      Caused by: org.jboss.xb.binding.JBossXBRuntimeException: Element {http://java.su
      n.com/xml/ns/j2ee}web-app is not bound as a global element.
      at org.jboss.xb.binding.sunday.unmarshalling.SundayContentHandler.startE
      lement(SundayContentHandler.java:662)
      at org.jboss.xb.binding.parser.sax.SaxJBossXBParser$DelegatingContentHan
      dler.startElement(SaxJBossXBParser.java:401)
      at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Sour
      ce)
      at org.apache.xerces.impl.xs.XMLSchemaValidator.startElement(Unknown Sou
      rce)
      at org.apache.xerces.xinclude.XIncludeHandler.startElement(Unknown Sourc
      e)
      at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unkn
      own Source)
      at org.apache.xerces.impl.XMLNSDocumentScannerImpl$NSContentDispatcher.s
      canRootElementHook(Unknown Source)
      at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContent
      Dispatcher.dispatch(Unknown Source)
      at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Un
      known 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 Sour
      ce)
      at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBPars
      er.java:199)
      ... 29 more
      10:40:14,758 WARN [HackClassloaderMetaDataDeployer] FIXME Using loader reposito
      ry config: jboss.console:sar=console-mgr.sar for vfsfile:/C:/jboss-5.0.0.CR1/se
      rver/default/deploy/management/console-mgr.sar/ use classloading metadata not lo
      ader repository config
      10:40:15,980 INFO [AspectDeployer] Deploying xml into org.jboss.aop.AspectManag
      er@10951aa for BaseClassLoader@6ca837{vfsfile:/C:/jboss-5.0.0.CR1/server/default
      /deploy/ejb3-interceptors-aop.xml}
      10:41:26,863 INFO [JMXConnectorServerService] JMX Connector server: service:jmx
      :rmi://127.0.0.1/jndi/rmi://127.0.0.1:1090/jmxconnector
      10:41:27,233 INFO [MailService] Mail Service bound to java:/Mail
      10:41:27,313 WARN [JBossASSecurityMetadataStore] WARNING! POTENTIAL SECURITY RI
      SK. It has been detected that the MessageSucker component which sucks messages f
      rom one node to another has not had its password changed from the installation d
      efault. Please see the JBoss Messaging user guide for instructions on how to do
      this.
      10:41:28,575 INFO [TransactionManagerService] JBossTS Transaction Service (JTA
      version) - JBoss Inc.
      10:41:28,575 INFO [TransactionManagerService] Setting up property manager MBean
      and JMX layer
      10:41:29,346 INFO [TransactionManagerService] Starting recovery manager
      10:41:29,797 INFO [TransactionManagerService] Recovery manager started
      10:41:29,797 INFO [TransactionManagerService] Binding TransactionManager JNDI R
      eference
      10:41:30,999 INFO [AprLifecycleListener] The Apache Tomcat Native library which
      allows optimal performance in production environments was not found on the java
      .library.path: C:\jdk1.5.0_01\bin;.;C:\WINDOWS\system32;C:\WINDOWS;C:\jdk1.5.0_0
      1\bin;C:\oracle\ora92\bin;C:\Program Files\Oracle\jre\1.3.1\bin;C:\Program Files
      \Oracle\jre\1.1.8\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:
      \oracle\ora92\jdbc\lib;
      10:41:31,299 INFO [Http11Protocol] Initializing Coyote HTTP/1.1 on http-127.0.0
      .1-8080
      10:41:31,309 INFO [AjpProtocol] Initializing Coyote AJP/1.3 on ajp-127.0.0.1-80
      09
      10:41:31,309 INFO [Catalina] Initialization processed in 679 ms
      10:41:31,309 INFO [StandardService] Starting service jboss.web
      10:41:31,309 INFO [StandardEngine] Starting Servlet Engine: JBoss Web/2.1.1.CR3

      10:41:31,399 INFO [Catalina] Server startup in 92 ms
      10:41:31,950 INFO [RARDeployment] Required license terms exist, view vfszip:/C:
      /jboss-5.0.0.CR1/server/default/deploy/jboss-local-jdbc.rar/META-INF/ra.xml
      10:41:31,980 INFO [RARDeployment] Required license terms exist, view vfszip:/C:
      /jboss-5.0.0.CR1/server/default/deploy/jboss-xa-jdbc.rar/META-INF/ra.xml
      10:41:32,020 INFO [RARDeployment] Required license terms exist, view vfszip:/C:
      /jboss-5.0.0.CR1/server/default/deploy/jms-ra.rar/META-INF/ra.xml
      10:41:32,060 INFO [RARDeployment] Required license terms exist, view vfszip:/C:
      /jboss-5.0.0.CR1/server/default/deploy/mail-ra.rar/META-INF/ra.xml
      10:41:32,150 INFO [RARDeployment] Required license terms exist, view vfszip:/C:
      /jboss-5.0.0.CR1/server/default/deploy/quartz-ra.rar/META-INF/ra.xml
      10:41:32,561 INFO [SimpleThreadPool] Job execution threads will use class loade
      r of thread: main
      10:41:32,631 INFO [QuartzScheduler] Quartz Scheduler v.1.5.2 created.
      10:41:32,641 INFO [RAMJobStore] RAMJobStore initialized.
      10:41:32,641 INFO [StdSchedulerFactory] Quartz scheduler 'DefaultQuartzSchedule
      r' initialized from default resource file in Quartz package: 'quartz.properties'

      10:41:32,641 INFO [StdSchedulerFactory] Quartz scheduler version: 1.5.2
      10:41:32,641 INFO [QuartzScheduler] Scheduler DefaultQuartzScheduler_$_NON_CLUS
      TERED started.
      10:41:35,986 INFO [NativeServerConfig] JBoss Web Services - Stack Native Core
      10:41:35,986 INFO [NativeServerConfig] 3.0.2.GA
      10:41:38,309 INFO [TomcatDeployment] deploy, ctxPath=/invoker, vfsUrl=http-invo
      ker.sar/invoker.war
      10:41:39,941 INFO [TomcatDeployment] deploy, ctxPath=/web-console, vfsUrl=manag
      ement/console-mgr.sar/web-console.war
      10:41:40,753 INFO [TomcatDeployment] deploy, ctxPath=/jbossws, vfsUrl=jbossws.s
      ar/jbossws-management.war
      10:41:40,873 INFO [TomcatDeployment] deploy, ctxPath=/jmx-console, vfsUrl=jmx-c
      onsole.war
      10:41:40,983 INFO [TomcatDeployment] deploy, ctxPath=/ROOT_old, vfsUrl=ROOT_old
      .war
      10:41:41,133 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jb
      oss.jca:service=DataSourceBinding,name=DefaultDS' to JNDI name 'java:DefaultDS'
      10:41:42,946 WARN [QuartzTimerServiceFactory] sql failed: CREATE TABLE QRTZ_JOB
      _DETAILS(JOB_NAME VARCHAR(80) NOT NULL, JOB_GROUP VARCHAR(80) NOT NULL, DESCRIPT
      ION VARCHAR(120) NULL, JOB_CLASS_NAME VARCHAR(128) NOT NULL, IS_DURABLE VARCHAR(
      1) NOT NULL, IS_VOLATILE VARCHAR(1) NOT NULL, IS_STATEFUL VARCHAR(1) NOT NULL, R
      EQUESTS_RECOVERY VARCHAR(1) NOT NULL, JOB_DATA BINARY NULL, PRIMARY KEY (JOB_NAM
      E,JOB_GROUP))
      10:41:43,306 INFO [SimpleThreadPool] Job execution threads will use class loade
      r of thread: main
      10:41:43,316 INFO [QuartzScheduler] Quartz Scheduler v.1.5.2 created.
      10:41:43,316 INFO [JobStoreCMT] Using db table-based data access locking (synch
      ronization).
      10:41:43,346 INFO [JobStoreCMT] Removed 0 Volatile Trigger(s).
      10:41:43,346 INFO [JobStoreCMT] Removed 0 Volatile Job(s).
      10:41:43,346 INFO [JobStoreCMT] JobStoreCMT initialized.
      10:41:43,346 INFO [StdSchedulerFactory] Quartz scheduler 'JBossEJB3QuartzSchedu
      ler' initialized from an externally provided properties instance.
      10:41:43,346 INFO [StdSchedulerFactory] Quartz scheduler version: 1.5.2
      10:41:43,356 INFO [JobStoreCMT] Freed 0 triggers from 'acquired' / 'blocked' st
      ate.
      10:41:43,366 INFO [JobStoreCMT] Recovering 0 jobs that were in-progress at the
      time of the last shut-down.
      10:41:43,366 INFO [JobStoreCMT] Recovery complete.
      10:41:43,366 INFO [JobStoreCMT] Removed 0 'complete' triggers.
      10:41:43,366 INFO [JobStoreCMT] Removed 0 stale fired job entries.
      10:41:43,366 INFO [QuartzScheduler] Scheduler JBossEJB3QuartzScheduler_$_NON_CL
      USTERED started.
      10:41:43,847 INFO [ServerPeer] JBoss Messaging 1.4.1.CR1 server [0] started
      10:41:44,108 INFO [QueueService] Queue[/queue/DLQ] started, fullSize=200000, pa
      geSize=2000, downCacheSize=2000
      10:41:44,258 INFO [ConnectionFactory] Connector bisocket://127.0.0.1:4457 has l
      easing enabled, lease period 10000 milliseconds
      10:41:44,258 INFO [ConnectionFactory] org.jboss.jms.server.connectionfactory.Co
      nnectionFactory@114fa0b started
      10:41:44,428 INFO [ConnectionFactory] Connector bisocket://127.0.0.1:4457 has l
      easing enabled, lease period 10000 milliseconds
      10:41:44,428 INFO [ConnectionFactory] org.jboss.jms.server.connectionfactory.Co
      nnectionFactory@1cb89bc started
      10:41:44,428 WARN [ConnectionFactoryJNDIMapper] supportsFailover attribute is t
      rue on connection factory: jboss.messaging.connectionfactory:service=ClusteredCo
      nnectionFactory but post office is non clustered. So connection factory will *no
      t* support failover
      10:41:44,428 WARN [ConnectionFactoryJNDIMapper] supportsLoadBalancing attribute
      is true on connection factory: jboss.messaging.connectionfactory:service=Cluste
      redConnectionFactory but post office is non clustered. So connection factory wil
      l *not* support load balancing
      10:41:44,428 INFO [ConnectionFactory] Connector bisocket://127.0.0.1:4457 has l
      easing enabled, lease period 10000 milliseconds
      10:41:44,428 INFO [ConnectionFactory] org.jboss.jms.server.connectionfactory.Co
      nnectionFactory@2ad6c6 started
      10:41:44,448 INFO [QueueService] Queue[/queue/ExpiryQueue] started, fullSize=20
      0000, pageSize=2000, downCacheSize=2000
      10:41:44,448 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jb
      oss.jca:service=ConnectionFactoryBinding,name=JmsXA' to JNDI name 'java:JmsXA'
      10:41:44,799 ERROR [ProfileServiceBootstrap] Failed to load profile: Summary of
      incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):

      *** CONTEXTS IN ERROR: Name -> Error

      vfsfile:/C:/jboss-5.0.0.CR1/server/default/deploy/QPortal.ear/ -> org.jboss.xb.b
      inding.JBossXBRuntimeException: Element {http://java.sun.com/xml/ns/j2ee}web-app
      is not bound as a global element.


      10:41:44,849 INFO [Http11Protocol] Starting Coyote HTTP/1.1 on http-127.0.0.1-8
      080
      10:41:44,889 INFO [AjpProtocol] Starting Coyote AJP/1.3 on ajp-127.0.0.1-8009
      10:41:44,909 INFO [ServerImpl] JBoss (Microcontainer) [5.0.0.CR1 (build: SVNTag
      =JBoss_5_0_0_CR1 date=200806301254)] Started in 2m:40s:312ms

      Please let me know what kind of changes are require to deploy it over 5.0.0.CR1.

      Ashish

        • 1. Re: ear file of JBoss 4.0 is not deploying on JBoss 5.0.0.CR
          jaikiran pai Master

           

          JAVA_HOME is not set. Unexpected results may occur.

          1) You haven't set JAVA_HOME. Set it appropriately to point to your JDK installation

          Caused by: org.jboss.xb.binding.JBossXBRuntimeException: Element {http://java.su
          n.com/xml/ns/j2ee}web-app is not bound as a global element.

          2) Your web.xml might be incorrect. Please post its contents

          While posting logs or xml content or code, please remember to wrap it in a code block by using the Code button in the message editor window. Please use the Preview button to ensure that your post is correctly formatted.


          • 2. Re: ear file of JBoss 4.0 is not deploying on JBoss 5.0.0.CR
            Ashish Doshi Newbie

            Thanks for reply....

            Where to set JAVA_HOME ??

            my WEB-INF/web.xml is as below. I think there is something missing in <web-app> tag.

            <?xml version="1.0" encoding="UTF-8"?>
            <web-app xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchma-instance"
             xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
             version="2.4">
             <servlet>
             <servlet-name>CewolfServlet</servlet-name>
             <servlet-class>de.laures.cewolf.CewolfRenderer</servlet-class>
             <!-- sets storage implementation -->
             <init-param>
             <param-name>storage</param-name>
             <param-value>de.laures.cewolf.storage.TransientSessionStorage</param-value>
             </init-param>
             <!-- sets overlib.js location relative to webapp -->
             <init-param>
             <param-name>overliburl</param-name>
             <param-value>/etc/overlib.js</param-value>
             </init-param>
             <!-- turn on or off debugging logging -->
             <init-param>
             <param-name>debug</param-name>
             <param-value>true</param-value>
             </init-param>
             <load-on-startup>1</load-on-startup>
             </servlet>
             <servlet-mapping>
             <servlet-name>CewolfServlet</servlet-name>
             <url-pattern>/cewolf/*</url-pattern>
             </servlet-mapping>
             <session-config>
             <session-timeout>30</session-timeout>
             </session-config>
             <mime-mapping>
             <extension>css</extension>
             <mime-type>text/css</mime-type>
             </mime-mapping>
             <welcome-file-list>
             <welcome-file>
             index.html
             </welcome-file>
             <welcome-file>
             index.htm
             </welcome-file>
             </welcome-file-list>
            
            <!-- here lots of code for servlet and mapping which I have eliminated for increse readablity -->
            
             <taglib>
             <taglib-uri>http://java.sun.com/jstl/core</taglib-uri>
             <taglib-location>/WEB-INF/c.tld</taglib-location>
             </taglib>
            
            
            
             <!-- resource-ref>
             <description>
             Resource reference to a factory for java.sql.Connection
             instances that may be used for talking to a particular
             database that is configured in the server.xml file.
             </description>
             <resource-ref-name>
             jdbc/testdb
             </resource-ref-name>
             <res-type>
             javax.sql.DataSource
             </res-type>
             <res-auth>
             Container
             </res-auth>
             </resource-ref -->
            </web-app>


            • 3. Re: ear file of JBoss 4.0 is not deploying on JBoss 5.0.0.CR
              jaikiran pai Master

               

              Where to set JAVA_HOME ??


              You are using Windows, so you can set the environment variable from the command prompt (from where you start the server):

              set JAVA_HOME=C:/jdk1.5


              assuming, your JDK is installed at jdk1.5. The other way to do this is to set it as a "Environment Variable" of the user.

              <web-app xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchma-instance"
              xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
              version="2.4">


              You have a typo there

              xmlns:xsi="http://www.w3.org/2001/XMLSchma-instance"


              should be

              xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"


              there's a 'e' missing in your XMLSchma-instance

              • 4. Re: ear file of JBoss 4.0 is not deploying on JBoss 5.0.0.CR
                Ashish Doshi Newbie

                Many thanks...
                Now error gets change in console.

                *** CONTEXTS IN ERROR: Name -> Error
                
                vfsfile:/C:/jboss-5.0.0.CR1/server/default/deploy/QPortal.ear/ -> org.xml.sax.SA
                XException: cvc-complex-type.2.4.a: Invalid content was found starting with elem
                ent 'display-name'. One of '{"http://java.sun.com/xml/ns/j2ee":servlet-class, "h
                ttp://java.sun.com/xml/ns/j2ee":jsp-file}' is expected. @ vfsfile:/C:/jboss-5.0.
                0.CR1/server/default/deploy/QPortal.ear/QP_WEB.war/WEB-INF/web.xml[48,17]


                • 5. Re: ear file of JBoss 4.0 is not deploying on JBoss 5.0.0.CR
                  jaikiran pai Master

                  Your web.xml still seems to be incorrect. Follow, the http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd to fix the issue. I guess, you are having a "display-name" in the web.xml at some wrong place.

                  • 6. Re: ear file of JBoss 4.0 is not deploying on JBoss 5.0.0.CR
                    Ashish Doshi Newbie

                    Find below code of my complete web.xml.

                    Your help would really be appreciated.

                    <?xml version="1.0" encoding="UTF-8"?>
                    
                    <web-app xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                     xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
                     version="2.4">
                     <servlet>
                     <servlet-name>CewolfServlet</servlet-name>
                     <servlet-class>de.laures.cewolf.CewolfRenderer</servlet-class>
                     <!-- sets storage implementation -->
                     <init-param>
                     <param-name>storage</param-name>
                     <param-value>de.laures.cewolf.storage.TransientSessionStorage</param-value>
                     </init-param>
                     <!-- sets overlib.js location relative to webapp -->
                     <init-param>
                     <param-name>overliburl</param-name>
                     <param-value>/etc/overlib.js</param-value>
                     </init-param>
                     <!-- turn on or off debugging logging -->
                     <init-param>
                     <param-name>debug</param-name>
                     <param-value>true</param-value>
                     </init-param>
                     <load-on-startup>1</load-on-startup>
                     </servlet>
                     <servlet-mapping>
                     <servlet-name>CewolfServlet</servlet-name>
                     <url-pattern>/cewolf/*</url-pattern>
                     </servlet-mapping>
                     <session-config>
                     <session-timeout>30</session-timeout>
                     </session-config>
                     <mime-mapping>
                     <extension>css</extension>
                     <mime-type>text/css</mime-type>
                     </mime-mapping>
                     <welcome-file-list>
                     <welcome-file>
                     index.html
                     </welcome-file>
                     <welcome-file>
                     index.htm
                     </welcome-file>
                     </welcome-file-list>
                     <servlet>
                     <servlet-name>Demographics</servlet-name>
                     <display-name>Demographics</display-name>
                     <servlet-class>com.tcs.servlets.Demographics</servlet-class>
                     </servlet>
                     <servlet>
                     <servlet-name>GetDemographics</servlet-name>
                     <display-name>GetDemographics</display-name>
                     <servlet-class>com.tcs.servlets.GetDemographics</servlet-class>
                     </servlet>
                     <servlet>
                     <servlet-name>GetFeedbackBRM</servlet-name>
                     <display-name>GetFeedbackBRM</display-name>
                     <servlet-class>com.tcs.servlets.GetFeedbackBRM</servlet-class>
                     </servlet>
                     <servlet>
                     <servlet-name>PMRLLBPServlet</servlet-name>
                     <display-name>PMRLLBPServlet</display-name>
                     <servlet-class>com.tcs.servlets.PMRLLBPServlet</servlet-class>
                     </servlet>
                     <servlet>
                     <servlet-name>PMRReportServlet</servlet-name>
                     <display-name>PMRReportServlet</display-name>
                     <servlet-class>com.tcs.servlets.PMRReportServlet</servlet-class>
                     </servlet>
                    
                     <servlet>
                     <servlet-name>PMRMinutesServlet</servlet-name>
                     <display-name>PMRMinutesServlet</display-name>
                     <servlet-class>com.tcs.servlets.PMRMinutesServlet</servlet-class>
                     </servlet>
                    
                     <servlet>
                     <servlet-name>PmrIssueServlet</servlet-name>
                     <display-name>PmrIssueServlet</display-name>
                     <servlet-class>com.tcs.servlets.PmrIssueServlet</servlet-class>
                     </servlet>
                    
                     <servlet>
                     <servlet-name>GetPmrDetails</servlet-name>
                     <display-name>GetPmrDetails</display-name>
                     <servlet-class>com.tcs.servlets.GetPmrDetails</servlet-class>
                     </servlet>
                     <servlet>
                     <servlet-name>PMRSearchServlet</servlet-name>
                     <display-name>PMRSearchServlet</display-name>
                     <servlet-class>com.tcs.servlets.PMRSearchServlet</servlet-class>
                     </servlet>
                     <servlet>
                     <servlet-name>PMRSendMailServlet</servlet-name>
                     <display-name>PMRSendMailServlet</display-name>
                     <servlet-class>com.tcs.servlets.PMRSendMailServlet</servlet-class>
                     </servlet>
                    
                     <servlet>
                     <servlet-name>QPCacher</servlet-name>
                     <servlet-class>com.tcs.audit.util.cacher.QPCacher</servlet-class>
                     <load-on-startup>1</load-on-startup>
                     </servlet>
                    
                     <servlet>
                     <servlet-name>QPController</servlet-name>
                     <servlet-class>com.tcs.audit.controller.QPController</servlet-class>
                     </servlet>
                     <servlet>
                     <servlet-name>ExcelExportSevlet</servlet-name>
                     <servlet-class>com.tcs.dropdown.ExcelExportSevlet</servlet-class>
                     </servlet>
                     <servlet>
                     <servlet-name>ExcelPMRExportServlet</servlet-name>
                     <servlet-class>com.tcs.servlets.ExcelPMRExportServlet</servlet-class>
                     </servlet>
                    
                     <servlet-mapping>
                     <servlet-name>ExcelPMRExportServlet</servlet-name>
                     <url-pattern>/ExcelPMRExportServlet</url-pattern>
                     </servlet-mapping>
                    
                     <servlet-mapping>
                     <servlet-name>ExcelExportSevlet</servlet-name>
                     <url-pattern>/ExcelExportSevlet</url-pattern>
                     </servlet-mapping>
                    
                     <servlet-mapping>
                     <servlet-name>QPController</servlet-name>
                     <url-pattern>/QPController</url-pattern>
                     </servlet-mapping>
                    
                     <servlet-mapping>
                     <servlet-name>Demographics</servlet-name>
                     <url-pattern>/Demographics</url-pattern>
                     </servlet-mapping>
                     <servlet-mapping>
                     <servlet-name>GetDemographics</servlet-name>
                     <url-pattern>/GetDemographics</url-pattern>
                     </servlet-mapping>
                     <servlet-mapping>
                     <servlet-name>GetFeedbackBRM</servlet-name>
                     <url-pattern>/GetFeedbackBRM</url-pattern>
                     </servlet-mapping>
                     <servlet-mapping>
                     <servlet-name>GetPmrDetails</servlet-name>
                     <url-pattern>/GetPmrDetails</url-pattern>
                     </servlet-mapping>
                     <servlet-mapping>
                     <servlet-name>PMRLLBPServlet</servlet-name>
                     <url-pattern>/PMRLLBPServlet</url-pattern>
                     </servlet-mapping>
                     <servlet-mapping>
                     <servlet-name>PMRReportServlet</servlet-name>
                     <url-pattern>/PMRReportServlet</url-pattern>
                     </servlet-mapping>
                     <servlet-mapping>
                     <servlet-name>PMRSearchServlet</servlet-name>
                     <url-pattern>/PMRSearchServlet</url-pattern>
                     </servlet-mapping>
                     <servlet-mapping>
                     <servlet-name>PMRSendMailServlet</servlet-name>
                     <url-pattern>/PMRSendMailServlet</url-pattern>
                     </servlet-mapping>
                    
                     <servlet-mapping>
                     <servlet-name>PMRMinutesServlet</servlet-name>
                     <url-pattern>/PMRMinutesServlet</url-pattern>
                     </servlet-mapping>
                    
                     <servlet-mapping>
                     <servlet-name>PmrIssueServlet</servlet-name>
                     <url-pattern>/PmrIssueServlet</url-pattern>
                     </servlet-mapping>
                    
                     <welcome-file-list>
                     <welcome-file>jsp/demographics.jsp</welcome-file>
                     </welcome-file-list>
                     <error-page>
                     <error-code>404</error-code>
                     <location>/QP_WEB/jsp/Login.jsp</location>
                     </error-page>
                    
                     <error-page>
                     <exception-type>java.lang.ClassNotFoundException</exception-type>
                     <location>/jsp/exceptions/error.jsp</location>
                     </error-page>
                    
                     <error-page>
                     <error-code>500</error-code>
                     <location>/jsp/exceptions/page500.jsp</location>
                     </error-page>
                    
                     <error-page>
                     <exception-type>java.lang.ClassNotFoundException</exception-type>
                     <location>/jsp/exceptions/error.jsp</location>
                     </error-page>
                     <error-page>
                     <exception-type>java.io.IOException</exception-type>
                     <location>/jsp/exceptions/error.jsp</location>
                     </error-page>
                     <error-page>
                     <exception-type>java.sql.SQLException</exception-type>
                     <location>/jsp/exceptions/error.jsp</location>
                     </error-page>
                     <error-page>
                     <exception-type>javax.transaction.SystemException</exception-type>
                     <location>/jsp/exceptions/error.jsp</location>
                     </error-page>
                     <error-page>
                     <exception-type>java.lang.RuntimeException</exception-type>
                     <location>/jsp/exceptions/error.jsp</location>
                     </error-page>
                     -->
                    
                    
                     <!-- Added By Issue Tracker Team -->
                    
                     <servlet>
                     <servlet-name>FilterSubmitServlet</servlet-name>
                     <servlet-class>com.tcs.dropdown.FilterSubmitServlet</servlet-class>
                     </servlet>
                    
                     <servlet-mapping>
                     <servlet-name>FilterSubmitServlet</servlet-name>
                     <url-pattern>/FilterSubmitServlet</url-pattern>
                     </servlet-mapping>
                    
                     <servlet>
                     <servlet-name>DependantComboServlet</servlet-name>
                     <servlet-class>com.tcs.dropdown.DependantComboServlet</servlet-class>
                     </servlet>
                    
                     <servlet-mapping>
                     <servlet-name>DependantComboServlet</servlet-name>
                     <url-pattern>/DependantComboServlet</url-pattern>
                     </servlet-mapping>
                    
                     <servlet>
                     <servlet-name>IssueSearchServlet</servlet-name>
                     <servlet-class>com.tcs.iTracker.servlets.IssueSearchServlet</servlet-class>
                     </servlet>
                    
                     <servlet-mapping>
                     <servlet-name>IssueSearchServlet</servlet-name>
                     <url-pattern>/IssueSearchServlet</url-pattern>
                     </servlet-mapping>
                    
                     <servlet>
                     <servlet-name>searchIssueSubmit</servlet-name>
                     <servlet-class>com.tcs.iTracker.servlets.IssueSearchSubmitServlet</servlet-class>
                     </servlet>
                    
                     <servlet-mapping>
                     <servlet-name>searchIssueSubmit</servlet-name>
                     <url-pattern>/searchIssueSubmit</url-pattern>
                     </servlet-mapping>
                    
                    
                    
                     <servlet>
                     <servlet-name>CategoryAdminServlet</servlet-name>
                     <servlet-class>com.tcs.iTracker.servlets.CategoryAdminServlet</servlet-class>
                     </servlet>
                    
                     <servlet-mapping>
                     <servlet-name>CategoryAdminServlet</servlet-name>
                     <url-pattern>/CategoryAdminServlet</url-pattern>
                     </servlet-mapping>
                    
                     <servlet>
                     <servlet-name>CategoryAdminSubmitServlet</servlet-name>
                     <servlet-class>com.tcs.iTracker.servlets.CategoryAdminSubmitServlet</servlet-class>
                     </servlet>
                    
                     <servlet-mapping>
                     <servlet-name>CategoryAdminSubmitServlet</servlet-name>
                     <url-pattern>/CategoryAdminSubmit</url-pattern>
                     </servlet-mapping>
                    
                     <servlet>
                     <servlet-name>SearchProjInfoServlet</servlet-name>
                     <servlet-class>com.tcs.iTracker.servlets.SearchProjInfoServlet</servlet-class>
                     </servlet>
                    
                     <servlet-mapping>
                     <servlet-name>SearchProjInfoServlet</servlet-name>
                     <url-pattern>/SearchProjInfo</url-pattern>
                     </servlet-mapping>
                    
                    
                    
                    
                    
                     <servlet>
                     <servlet-name>IssueRemarksServlet</servlet-name>
                     <servlet-class>com.tcs.iTracker.servlets.IssueRemarksServlet</servlet-class>
                     </servlet>
                    
                     <servlet-mapping>
                     <servlet-name>IssueRemarksServlet</servlet-name>
                     <url-pattern>/IssueRemarksServlet</url-pattern>
                     </servlet-mapping>
                    
                     <servlet>
                     <servlet-name>IssueUpdateServlet</servlet-name>
                     <servlet-class>com.tcs.iTracker.servlets.IssueUpdateServlet</servlet-class>
                     </servlet>
                    
                     <servlet-mapping>
                     <servlet-name>IssueUpdateServlet</servlet-name>
                     <url-pattern>/IssueUpdateServlet</url-pattern>
                     </servlet-mapping>
                    
                     <servlet>
                     <servlet-name>IssueDetailServlet</servlet-name>
                     <servlet-class>com.tcs.iTracker.servlets.IssueDetailServlet</servlet-class>
                     </servlet>
                     <servlet-mapping>
                     <servlet-name>IssueDetailServlet</servlet-name>
                     <url-pattern>/IssueDetailServlet</url-pattern>
                     </servlet-mapping>
                    
                     <servlet>
                     <servlet-name>IssueAddServlet</servlet-name>
                     <servlet-class>com.tcs.iTracker.servlets.IssueAddServlet</servlet-class>
                     </servlet>
                    
                     <servlet-mapping>
                     <servlet-name>IssueAddServlet</servlet-name>
                     <url-pattern>/IssueAddServlet</url-pattern>
                     </servlet-mapping>
                     <servlet>
                     <servlet-name>IssueAddSubmitServlet</servlet-name>
                     <servlet-class>com.tcs.iTracker.servlets.IssueAddSubmitServlet</servlet-class>
                     </servlet>
                    
                     <servlet-mapping>
                     <servlet-name>IssueAddSubmitServlet</servlet-name>
                     <url-pattern>/IssueAddSubmitServlet</url-pattern>
                     </servlet-mapping>
                     <servlet>
                     <servlet-name>CategoryServlet</servlet-name>
                     <servlet-class>com.tcs.iTracker.servlets.CategoryServlet</servlet-class>
                     </servlet>
                    
                     <servlet-mapping>
                     <servlet-name>CategoryServlet</servlet-name>
                     <url-pattern>/CategoryServlet</url-pattern>
                     </servlet-mapping>
                    
                     <servlet>
                     <servlet-name>SubCategoryServlet</servlet-name>
                     <servlet-class>com.tcs.iTracker.servlets.SubCategoryServlet</servlet-class>
                     </servlet>
                    
                     <servlet-mapping>
                     <servlet-name>SubCategoryServlet</servlet-name>
                     <url-pattern>/SubCategoryServlet</url-pattern>
                     </servlet-mapping>
                    
                     <servlet>
                     <servlet-name>SubCategoryServletUpdate</servlet-name>
                     <servlet-class>com.tcs.iTracker.servlets.SubCategoryServletUpdate</servlet-class>
                     </servlet>
                    
                     <servlet-mapping>
                     <servlet-name>SubCategoryServletUpdate</servlet-name>
                     <url-pattern>/SubCategoryServletUpdate</url-pattern>
                     </servlet-mapping>
                    
                     <servlet>
                     <servlet-name>ExcelExportProjListServlet</servlet-name>
                     <servlet-class>com.tcs.dropdown.ExcelExportProjListServlet</servlet-class>
                     </servlet>
                    
                     <servlet-mapping>
                     <servlet-name>ExcelExportProjListServlet</servlet-name>
                     <url-pattern>/ExcelExportProjListServlet</url-pattern>
                     </servlet-mapping>
                    
                     <!-- End of Entries Issue Tracker Team -->
                    <!--
                     <servlet>
                     <servlet-name>uploadServlet</servlet-name>
                     <servlet-class>com.uploadServlet</servlet-class>
                     </servlet>
                    
                     <servlet-mapping>
                     <servlet-name>uploadServlet</servlet-name>
                     <url-pattern>/uploadServlet</url-pattern>
                     </servlet-mapping>
                    -->
                    
                     <servlet>
                     <servlet-name>NCRDetailServlet</servlet-name>
                     <servlet-class>com.tcs.NCRTracker.NCRDetailServlet</servlet-class>
                     </servlet>
                    
                     <servlet-mapping>
                     <servlet-name>NCRDetailServlet</servlet-name>
                     <url-pattern>/NCRDetailServlet</url-pattern>
                     </servlet-mapping>
                    
                     <servlet>
                     <servlet-name>DummyProjectServlet</servlet-name>
                     <servlet-class>com.tcs.dummy.DummyProjectServlet</servlet-class>
                     </servlet>
                    
                     <servlet-mapping>
                     <servlet-name>DummyProjectServlet</servlet-name>
                     <url-pattern>/DummyProjectServlet</url-pattern>
                     </servlet-mapping>
                    
                     <servlet>
                     <servlet-name>DummyCreateServlet</servlet-name>
                     <servlet-class>com.tcs.dummy.DummyCreateServlet</servlet-class>
                     </servlet>
                    
                     <servlet-mapping>
                     <servlet-name>DummyCreateServlet</servlet-name>
                     <url-pattern>/DummyCreateServlet</url-pattern>
                     </servlet-mapping>
                    
                     <servlet>
                     <servlet-name>DummyUpdateServlet</servlet-name>
                     <servlet-class>com.tcs.dummy.DummyUpdateServlet</servlet-class>
                     </servlet>
                    
                     <servlet-mapping>
                     <servlet-name>DummyUpdateServlet</servlet-name>
                     <url-pattern>/DummyUpdateServlet</url-pattern>
                     </servlet-mapping>
                    
                    
                     <taglib>
                     <taglib-uri>http://java.sun.com/jstl/core</taglib-uri>
                     <taglib-location>/WEB-INF/c.tld</taglib-location>
                     </taglib>
                    
                    
                    
                     <!-- resource-ref>
                     <description>
                     Resource reference to a factory for java.sql.Connection
                     instances that may be used for talking to a particular
                     database that is configured in the server.xml file.
                     </description>
                     <resource-ref-name>
                     jdbc/testdb
                     </resource-ref-name>
                     <res-type>
                     javax.sql.DataSource
                     </res-type>
                     <res-auth>
                     Container
                     </res-auth>
                     </resource-ref -->
                    </web-app>
                    


                    I tried by removing all <display-name> tag. Then it gives error at tag. So i think there is still something wrong in <web-app> tag.

                    • 7. Re: ear file of JBoss 4.0 is not deploying on JBoss 5.0.0.CR
                      jaikiran pai Master

                      The problem lies in the ordering of your display-name. For ex:

                      <servlet>
                       <servlet-name>PMRReportServlet</servlet-name>
                       <display-name>PMRReportServlet</display-name>
                       <servlet-class>com.tcs.servlets.PMRReportServlet</servlet-class>
                       </servlet>
                      


                      As per the xsd:
                      <xsd:complexType name="servletType">
                       ...
                      
                       <xsd:sequence>
                       <xsd:group ref="j2ee:descriptionGroup"/>
                       <xsd:element name="servlet-name"
                       type="j2ee:servlet-nameType"/>
                       <xsd:choice>
                       ...


                      The display-name should come before the servlet-name. So change the order of all those display-name :
                      <servlet>
                       <display-name>PMRReportServlet</display-name>
                       <servlet-name>PMRReportServlet</servlet-name>
                      
                       <servlet-class>com.tcs.servlets.PMRReportServlet</servlet-class>
                       </servlet>