[jboss-user] [Installation, Configuration & DEPLOYMENT] - Exception while deploying Application in JBoss

kashif_jboss do-not-reply at jboss.com
Tue Jan 27 03:34:31 EST 2009


Hi All,

i am new users of JBoss. i am facing an issue while deploying an application in latest available JBoss.

i have installed JBoss and it starts successfully on mentioned port. now when i deploy war file of my application e.g example.war and start jboss then i get following exception in logs. i dont know why i am getting this exception coz same war file is working fine in tomcat. 

Following is exception. 



17:27:24,211 WARN  [SaxJBossXBParser] SchemaLocation: schemaLocation value = 'http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd' must have even number of URI's. @ vfszip:/u/bin/jboss-5.0.0.GA/server/default/deploy/example.war/WEB-INF/web.xml[6,16]
17:27:24,217 ERROR [AbstractKernelController] Error installing to Parse: name=vfszip:/u/bin/jboss-5.0.0.GA/server/default/deploy/example.war state=Not Installed mode=Manual requiredState=Parse
org.jboss.deployers.spi.DeploymentException: Error creating managed object for vfszip:/u/bin/jboss-5.0.0.GA/server/default/deploy/example.war
        at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49)
        at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.createMetaData(AbstractParsingDeployerWithOutput.java:337)
        at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.createMetaData(AbstractParsingDeployerWithOutput.java:297)
        at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.createMetaData(AbstractParsingDeployerWithOutput.java:269)
        at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.deploy(AbstractParsingDeployerWithOutput.java:230)
        at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)
        at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1439)
        at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1157)
        at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1098)
        at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
        at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1598)
        at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
        at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1062)
        at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
        at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
        at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
        at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:781)
        at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:545)
        at org.jboss.system.server.profileservice.ProfileServiceBootstrap.loadProfile(ProfileServiceBootstrap.java:304)
        at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:205)
        at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:405)
        at org.jboss.Main.boot(Main.java:209)
        at org.jboss.Main$1.run(Main.java:547)
        at java.lang.Thread.run(Thread.java:619)
Caused by: org.jboss.xb.binding.JBossXBException: Failed to parse source: Element {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(SaxJBossXBParser.java:203)
        at org.jboss.xb.binding.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:168)
        at org.jboss.deployers.vfs.spi.deployer.JBossXBDeployerHelper.parse(JBossXBDeployerHelper.java:199)
        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.parseAndInit(AbstractVFSParsingDeployer.java:256)
        at org.jboss.deployers.vfs.spi.deployer.AbstractVFSParsingDeployer.parse(AbstractVFSParsingDeployer.java:188)
        at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.createMetaData(AbstractParsingDeployerWithOutput.java:323)
        ... 22 more
Caused by: org.jboss.xb.binding.JBossXBRuntimeException: Element {http://java.sun.com/xml/ns/j2ee}web-app is not bound as a global element.
        at org.jboss.xb.binding.sunday.unmarshalling.SundayContentHandler.startElement(SundayContentHandler.java:667)
        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.impl.xs.XMLSchemaValidator.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.XMLNSDocumentScannerImpl$NSContentDispatcher.scanRootElementHook(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)
        ... 30 more
17:27:44,255 INFO  [JMXConnectorServerService] JMX Connector server: service:jmx:rmi://scm.test.com/jndi/rmi://scm.test.com:1090/jmxconnector
17:27:45,276 INFO  [MailService] Mail Service bound to java:/Mail
17:27:52,861 WARN  [JBossASSecurityMetadataStore] WARNING! POTENTIAL SECURITY RISK. It has been detected that the MessageSucker component which sucks messages from one node to another has not had its password changed from the installation default. Please see the JBoss Messaging user guide for instructions on how to do this.
17:27:52,935 WARN  [AnnotationCreator] No ClassLoader provided, using TCCL: org.jboss.managed.api.annotation.ManagementComponent
17:27:53,931 INFO  [TransactionManagerService] JBossTS Transaction Service (JTA version) - JBoss Inc.
17:27:53,931 INFO  [TransactionManagerService] Setting up property manager MBean and JMX layer
17:27:54,769 INFO  [TransactionManagerService] Initializing recovery manager
17:27:55,212 INFO  [TransactionManagerService] Recovery manager configured
17:27:55,213 INFO  [TransactionManagerService] Binding TransactionManager JNDI Reference
17:27:55,314 INFO  [TransactionManagerService] Starting transaction recovery manager
17:27:57,393 INFO  [Http11Protocol] Initializing Coyote HTTP/1.1 on http-0.0.0.0-8080
17:27:57,396 INFO  [AjpProtocol] Initializing Coyote AJP/1.3 on ajp-0.0.0.0-8009
17:27:57,397 INFO  [StandardService] Starting service jboss.web
17:27:57,406 INFO  [StandardEngine] Starting Servlet Engine: JBoss Web/2.1.1.GA
17:27:59,027 INFO  [Catalina] Server startup in 2222 ms
17:27:59,081 INFO  [TomcatDeployment] deploy, ctxPath=/jbossws, vfsUrl=jbossws.sar/jbossws-management.war
17:28:00,921 INFO  [TomcatDeployment] deploy, ctxPath=/invoker, vfsUrl=http-invoker.sar/invoker.war
17:28:01,569 INFO  [TomcatDeployment] deploy, ctxPath=/web-console, vfsUrl=management/console-mgr.sar/web-console.war
17:28:04,618 INFO  [RARDeployment] Required license terms exist, view vfszip:/u/bin/jboss-5.0.0.GA/server/default/deploy/jboss-local-jdbc.rar/META-INF/ra.xml
17:28:04,750 INFO  [RARDeployment] Required license terms exist, view vfszip:/u/bin/jboss-5.0.0.GA/server/default/deploy/jboss-xa-jdbc.rar/META-INF/ra.xml
17:28:04,876 INFO  [RARDeployment] Required license terms exist, view vfszip:/u/bin/jboss-5.0.0.GA/server/default/deploy/jms-ra.rar/META-INF/ra.xml
17:28:04,994 INFO  [RARDeployment] Required license terms exist, view vfszip:/u/bin/jboss-5.0.0.GA/server/default/deploy/mail-ra.rar/META-INF/ra.xml
17:28:05,089 INFO  [RARDeployment] Required license terms exist, view vfszip:/u/bin/jboss-5.0.0.GA/server/default/deploy/quartz-ra.rar/META-INF/ra.xml
17:28:05,427 INFO  [SimpleThreadPool] Job execution threads will use class loader of thread: main
17:28:05,523 INFO  [QuartzScheduler] Quartz Scheduler v.1.5.2 created.
17:28:05,534 INFO  [RAMJobStore] RAMJobStore initialized.
17:28:05,535 INFO  [StdSchedulerFactory] Quartz scheduler 'DefaultQuartzScheduler' initialized from default resource file in Quartz package: 'quartz.properties'
17:28:05,536 INFO  [StdSchedulerFactory] Quartz scheduler version: 1.5.2
17:28:05,539 INFO  [QuartzScheduler] Scheduler DefaultQuartzScheduler_$_NON_CLUSTERED started.
17:28:09,687 INFO  [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=DefaultDS' to JNDI name 'java:DefaultDS'
17:28:10,883 INFO  [SimpleThreadPool] Job execution threads will use class loader of thread: main
17:28:10,893 INFO  [QuartzScheduler] Quartz Scheduler v.1.5.2 created.
17:28:10,895 INFO  [JobStoreCMT] Using db table-based data access locking (synchronization).
17:28:10,925 INFO  [JobStoreCMT] Removed 0 Volatile Trigger(s).
17:28:10,926 INFO  [JobStoreCMT] Removed 0 Volatile Job(s).
17:28:10,929 INFO  [JobStoreCMT] JobStoreCMT initialized.
17:28:10,930 INFO  [StdSchedulerFactory] Quartz scheduler 'JBossEJB3QuartzScheduler' initialized from an externally provided properties instance.
17:28:10,931 INFO  [StdSchedulerFactory] Quartz scheduler version: 1.5.2
17:28:10,935 INFO  [JobStoreCMT] Freed 0 triggers from 'acquired' / 'blocked' state.
17:28:10,942 INFO  [JobStoreCMT] Recovering 0 jobs that were in-progress at the time of the last shut-down.
17:28:10,943 INFO  [JobStoreCMT] Recovery complete.
17:28:10,944 INFO  [JobStoreCMT] Removed 0 'complete' triggers.
17:28:10,946 INFO  [JobStoreCMT] Removed 0 stale fired job entries.
17:28:10,956 INFO  [QuartzScheduler] Scheduler JBossEJB3QuartzScheduler_$_NON_CLUSTERED started.
17:28:11,619 INFO  [ServerPeer] JBoss Messaging 1.4.1.GA server [0] started
17:28:11,825 WARN  [ConnectionFactoryJNDIMapper] supportsFailover attribute is true on connection factory: jboss.messaging.connectionfactory:service=ClusteredConnectionFactory but post office is non clustered. So connection factory will *not* support failover
17:28:11,826 WARN  [ConnectionFactoryJNDIMapper] supportsLoadBalancing attribute is true on connection factory: jboss.messaging.connectionfactory:service=ClusteredConnectionFactory but post office is non clustered. So connection factory will *not* support load balancing
17:28:12,140 INFO  [ConnectionFactory] Connector bisocket://scm.test.com:4457 has leasing enabled, lease period 10000 milliseconds
17:28:12,140 INFO  [ConnectionFactory] org.jboss.jms.server.connectionfactory.ConnectionFactory at 956913 started
17:28:12,304 INFO  [QueueService] Queue[/queue/DLQ] started, fullSize=200000, pageSize=2000, downCacheSize=2000
17:28:12,312 INFO  [ConnectionFactory] Connector bisocket://scm.test.com:4457 has leasing enabled, lease period 10000 milliseconds
17:28:12,313 INFO  [ConnectionFactory] org.jboss.jms.server.connectionfactory.ConnectionFactory at 1c126da started
17:28:12,320 INFO  [QueueService] Queue[/queue/ExpiryQueue] started, fullSize=200000, pageSize=2000, downCacheSize=2000
17:28:12,324 INFO  [ConnectionFactory] Connector bisocket://scm.test.com:4457 has leasing enabled, lease period 10000 milliseconds
17:28:12,325 INFO  [ConnectionFactory] org.jboss.jms.server.connectionfactory.ConnectionFactory at 997c85 started
17:28:12,713 INFO  [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=ConnectionFactoryBinding,name=JmsXA' to JNDI name 'java:JmsXA'
17:28:13,124 INFO  [TomcatDeployment] deploy, ctxPath=/, vfsUrl=ROOT.war
17:28:13,809 INFO  [TomcatDeployment] deploy, ctxPath=/jmx-console, vfsUrl=jmx-console.war
17:28:14,089 ERROR [ProfileServiceBootstrap] Failed to load profile: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):

*** CONTEXTS IN ERROR: Name -> Error

vfszip:/u/bin/jboss-5.0.0.GA/server/default/deploy/example.war -> org.jboss.xb.binding.JBossXBRuntimeException: Element {http://java.sun.com/xml/ns/j2ee}web-app is not bound as a global element.

17:28:14,487 INFO  [Http11Protocol] Starting Coyote HTTP/1.1 on http-0.0.0.0-8080
17:28:14,557 INFO  [AjpProtocol] Starting Coyote AJP/1.3 on ajp-0.0.0.0-8009
17:28:14,589 INFO  [ServerImpl] JBoss (Microcontainer) [5.0.0.GA (build: SVNTag=JBoss_5_0_0_GA date=200812041714)] Started in 2m:17s:76ms



looking forward for helpful reply.

Kashif


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4204896#4204896

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4204896



More information about the jboss-user mailing list