ear file of JBoss 4.0 is not deploying on JBoss 5.0.0.CR1
a4ashish007 Jan 13, 2009 12:30 AMI 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