]
Scott M Stark resolved JBAS-6641.
---------------------------------
Resolution: Won't Fix
The problem is that the ear application.xml is invalid as it does not conform to the
application_1_3.dtd
Caused by: org.xml.sax.SAXException: The content of element type "web" is
incomplete, it must match "(web-uri,context-root)". @ *unknown*[12,13]
at
org.jboss.xb.binding.parser.sax.SaxJBossXBParser$MetaDataErrorHandler.error(SaxJBossXBParser.java:426)
at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
at org.ap
You can disable the valiation by setting the EARStructure deployer useValidation property
to false.
copying all JBAS 4.2 testsuite apps into AS 5.1 deploy dir causes
profile service errors and failure of server to start
-----------------------------------------------------------------------------------------------------------------------
Key: JBAS-6641
URL:
https://jira.jboss.org/jira/browse/JBAS-6641
Project: JBoss Application Server
Issue Type: Bug
Security Level: Public(Everyone can see)
Environment: Windows XP SP3, Sun Java 1.5.0_12, JBoss 5.1.0.CR1 3/19/09@12:15pm
snapshot build from Hudson
Reporter: Ian Springer
Assignee: Scott M Stark
Priority: Critical
Attachments: generic-header-auth.ear
For EmbJopr testing purposes, I copied all of the apps from the JBoss 4.2 test suite into
my AS 5.1's default/deploy/ dir. I got some errors from the profile service, and then
the app server fails to start - I can't even get to
http://localhost:8080/.
Here's the console output:
C:\opt\jboss-5.1.0.CR1-SNAPSHOT\bin>run
===============================================================================
JBoss Bootstrap Environment
JBOSS_HOME: C:\opt\jboss-5.1.0.CR1-SNAPSHOT
JAVA: C:\opt\jdk-1.6.0_12\bin\java
JAVA_OPTS: -Dprogram.name=run.bat -server -Djboss.platform.mbeanserver
-Djbmancon.debug=true -Xms125M -Xmx250M -XX:PermSize=75M -XX:MaxPermSize=150M -Dorg.jbo
ss.resolver.warning=true -Dsun.rmi.dgc.client.gcInterval=3600000
-Dsun.rmi.dgc.server.gcInterval=3600000 -Xdebug
-Xrunjdwp:transport=dt_socket,address=7777,serv
er=y,suspend=n
CLASSPATH: C:\opt\jboss-5.1.0.CR1-SNAPSHOT\bin\run.jar
===============================================================================
Listening for transport dt_socket at address: 7777
17:19:34,448 INFO [ServerImpl] Starting JBoss (Microcontainer)...
17:19:34,448 INFO [ServerImpl] Release ID: JBoss [The Oracle] 5.1.0.CR1 (build:
SVNTag=JBoss_5_1_0_CR1 date=200903191212)
17:19:34,448 INFO [ServerImpl] Bootstrap URL: null
17:19:34,448 INFO [ServerImpl] Home Dir: C:\opt\jboss-5.1.0.CR1-SNAPSHOT
17:19:34,448 INFO [ServerImpl] Home URL: file:/C:/opt/jboss-5.1.0.CR1-SNAPSHOT/
17:19:34,448 INFO [ServerImpl] Library URL: file:/C:/opt/jboss-5.1.0.CR1-SNAPSHOT/lib/
17:19:34,448 INFO [ServerImpl] Patch URL: null
17:19:34,448 INFO [ServerImpl] Common Base URL:
file:/C:/opt/jboss-5.1.0.CR1-SNAPSHOT/common/
17:19:34,448 INFO [ServerImpl] Common Library URL:
file:/C:/opt/jboss-5.1.0.CR1-SNAPSHOT/common/lib/
17:19:34,448 INFO [ServerImpl] Server Name: default
17:19:34,448 INFO [ServerImpl] Server Base Dir: C:\opt\jboss-5.1.0.CR1-SNAPSHOT\server
17:19:34,448 INFO [ServerImpl] Server Base URL:
file:/C:/opt/jboss-5.1.0.CR1-SNAPSHOT/server/
17:19:34,448 INFO [ServerImpl] Server Config URL:
file:/C:/opt/jboss-5.1.0.CR1-SNAPSHOT/server/default/conf/
17:19:34,448 INFO [ServerImpl] Server Home Dir:
C:\opt\jboss-5.1.0.CR1-SNAPSHOT\server\default
17:19:34,448 INFO [ServerImpl] Server Home URL:
file:/C:/opt/jboss-5.1.0.CR1-SNAPSHOT/server/default/
17:19:34,448 INFO [ServerImpl] Server Data Dir:
C:\opt\jboss-5.1.0.CR1-SNAPSHOT\server\default\data
17:19:34,448 INFO [ServerImpl] Server Library URL:
file:/C:/opt/jboss-5.1.0.CR1-SNAPSHOT/server/default/lib/
17:19:34,448 INFO [ServerImpl] Server Log Dir:
C:\opt\jboss-5.1.0.CR1-SNAPSHOT\server\default\log
17:19:34,448 INFO [ServerImpl] Server Native Dir:
C:\opt\jboss-5.1.0.CR1-SNAPSHOT\server\default\tmp\native
17:19:34,448 INFO [ServerImpl] Server Temp Dir:
C:\opt\jboss-5.1.0.CR1-SNAPSHOT\server\default\tmp
17:19:34,448 INFO [ServerImpl] Server Temp Deploy Dir:
C:\opt\jboss-5.1.0.CR1-SNAPSHOT\server\default\tmp\deploy
17:19:34,964 INFO [ServerImpl] Starting Microcontainer,
bootstrapURL=file:/C:/opt/jboss-5.1.0.CR1-SNAPSHOT/server/default/conf/bootstrap.xml
17:19:35,480 INFO [VFSCacheFactory] Initializing VFSCache
[org.jboss.virtual.plugins.cache.CombinedVFSCache]
17:19:35,480 INFO [VFSCacheFactory] Using VFSCache [CombinedVFSCache[real-cache: null]]
17:19:35,839 INFO [CopyMechanism] VFS temp dir:
C:\opt\jboss-5.1.0.CR1-SNAPSHOT\server\default\tmp
17:19:35,886 INFO [ZipEntryContext] VFS force nested jars copy-mode is enabled.
17:19:37,855 INFO [ServerInfo] Java version: 1.6.0_12,Sun Microsystems Inc.
17:19:37,855 INFO [ServerInfo] Java Runtime: Java(TM) SE Runtime Environment (build
1.6.0_12-b04)
17:19:37,855 INFO [ServerInfo] Java Runtime: Java(TM) SE Runtime Environment (build
1.6.0_12-b04)
17:19:37,855 INFO [ServerInfo] Java VM: Java HotSpot(TM) Server VM 11.2-b01,Sun
Microsystems Inc.
17:19:37,855 INFO [ServerInfo] OS-System: Windows XP 5.1,x86
17:19:37,855 INFO [ServerInfo] VM arguments: -Dprogram.name=run.bat
-Djboss.platform.mbeanserver -Djbmancon.debug=true -Xms125M -Xmx250M -XX:PermSize=75M
-XX:M
axPermSize=150M -Dorg.jboss.resolver.warning=true -Dsun.rmi.dgc.client.gcInterval=3600000
-Dsun.rmi.dgc.server.gcInterval=3600000 -Xdebug -Xrunjdwp:transport=dt
_socket,address=7777,server=y,suspend=n
-Djava.endorsed.dirs=C:\opt\jboss-5.1.0.CR1-SNAPSHOT\lib\endorsed
17:19:37,886 INFO [JMXKernel] Legacy JMX core initialized
17:19:41,495 INFO [ProfileServiceBootstrap] Loading profile: ProfileKey@186b0ee[
domain=default, server=default, name=default]
17:19:42,902 INFO [WebService] Using RMI server codebase:
http://127.0.0.1:8083/
17:19:51,620 INFO [NativeServerConfig] JBoss Web Services - Stack Native Core
17:19:51,636 INFO [NativeServerConfig] 3.1.0.GA
17:19:52,402 INFO [AttributeCallbackItem] Owner callback not implemented.
17:19:53,995 INFO [LogNotificationListener] Adding notification listener for logging
mbean "jboss.system:service=Logging,type=Log4jService" to server org.jboss
.mx.server.MBeanServerImpl@17b6074[ defaultDomain='null' ]
17:19:55,089 ERROR [ScopedProfileServiceController] Error installing to Deploy:
name=ProfileKey@1c2fff0[ domain=default, server=default, name=applications] stat
e=Start mode=On Demand requiredState=Installed
org.jboss.deployers.spi.DeploymentException: Exception determining structure:
AbstractVFSDeployment(jbosstest-good.ear)
at
org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49)
at
org.jboss.deployers.structure.spi.helpers.AbstractStructuralDeployers.determineStructure(AbstractStructuralDeployers.java:85)
at
org.jboss.deployers.plugins.main.MainDeployerImpl.determineStructure(MainDeployerImpl.java:1000)
at
org.jboss.deployers.plugins.main.MainDeployerImpl.determineDeploymentContext(MainDeployerImpl.java:440)
at
org.jboss.deployers.plugins.main.MainDeployerImpl.addDeployment(MainDeployerImpl.java:390)
at
org.jboss.deployers.plugins.main.MainDeployerImpl.addDeployment(MainDeployerImpl.java:300)
at
org.jboss.system.server.profileservice.repository.MainDeployerAdapter.addDeployment(MainDeployerAdapter.java:86)
at
org.jboss.system.server.profileservice.repository.ProfileDeployAction.install(ProfileDeployAction.java:57)
at
org.jboss.system.server.profileservice.repository.AbstractProfileAction.install(AbstractProfileAction.java:53)
at
org.jboss.system.server.profileservice.repository.AbstractProfileService.install(AbstractProfileService.java:355)
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.system.server.profileservice.repository.AbstractProfileService.activateProfile(AbstractProfileService.java:310)
at
org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:241)
at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:461)
at org.jboss.Main.boot(Main.java:216)
at org.jboss.Main$1.run(Main.java:546)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.RuntimeException: Error determining structure: jbosstest-good.ear
at org.jboss.deployment.EARStructure.determineStructure(EARStructure.java:293)
at
org.jboss.deployers.vfs.plugins.structure.StructureDeployerWrapper.determineStructure(StructureDeployerWrapper.java:73)
at
org.jboss.deployers.vfs.plugins.structure.VFSStructuralDeployersImpl.doDetermineStructure(VFSStructuralDeployersImpl.java:196)
at
org.jboss.deployers.vfs.plugins.structure.VFSStructuralDeployersImpl.determineStructure(VFSStructuralDeployersImpl.java:221)
at
org.jboss.deployers.structure.spi.helpers.AbstractStructuralDeployers.determineStructure(AbstractStructuralDeployers.java:77)
... 21 more
Caused by: org.jboss.xb.binding.JBossXBException: Failed to parse source: description not
found as a child of web
at
org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBParser.java:203)
at
org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBParser.java:183)
at org.jboss.xb.binding.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:161)
at org.jboss.deployment.EARStructure.determineStructure(EARStructure.java:160)
... 25 more
Caused by: org.jboss.xb.binding.JBossXBRuntimeException: description not found as a child
of web
at
org.jboss.xb.binding.sunday.unmarshalling.SundayContentHandler.startElement(SundayContentHandler.java:400)
at
org.jboss.xb.binding.parser.sax.SaxJBossXBParser$DelegatingContentHandler.startElement(SaxJBossXBParser.java:401)
at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
at org.apache.xerces.xinclude.XIncludeHandler.startElement(Unknown Source)
at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown
Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
at
org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBParser.java:199)
... 28 more
17:19:55,089 ERROR [STDERR] Failed to boot JBoss:
17:19:55,089 ERROR [STDERR] java.lang.IllegalStateException: Incompletely deployed:
*** PROFILES IN ERROR: Name -> Error
Profile: ProfileKey@1c2fff0[ domain=default, server=default, name=applications] in error
due to org.jboss.deployers.spi.DeploymentException: Exception determini
ng structure: AbstractVFSDeployment(jbosstest-good.ear)
*** PROFILES MISSING DEPENDENCIES: Name -> Dependency{Required State:Actual State}
ProfileKey@186b0ee[ domain=default, server=default, name=default] is missing following
dependencies: ProfileKey@1c2fff0[ domain=default, server=default, name=ap
plications]{Installed:**ERROR**}
17:19:55,105 ERROR [STDERR] at
org.jboss.system.server.profileservice.repository.AbstractProfileService.logErrors(AbstractProfileService.java:559)
17:19:55,105 ERROR [STDERR] at
org.jboss.system.server.profileservice.repository.AbstractProfileService.validate(AbstractProfileService.java:345)
17:19:55,105 ERROR [STDERR] at
org.jboss.system.server.profileservice.repository.AbstractProfileService.activateProfile(AbstractProfileService.java:319)
17:19:55,105 ERROR [STDERR] at
org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:241)
17:19:55,105 ERROR [STDERR] at
org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:461)
17:19:55,105 ERROR [STDERR] at org.jboss.Main.boot(Main.java:216)
17:19:55,105 ERROR [STDERR] at org.jboss.Main$1.run(Main.java:546)
17:19:55,105 ERROR [STDERR] at java.lang.Thread.run(Thread.java:619)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: