]
Alexey Loubyansky closed JBAS-6737.
-----------------------------------
Fix Version/s: JBossAS-5.1.0.CR1
Resolution: Done
This has already been fixed in jboss-metadata-1.0.0.CR17
contextRoot of webservicesType in jboss_5_0.xsd and jboss_5_1.xsd is
not correct
--------------------------------------------------------------------------------
Key: JBAS-6737
URL:
https://jira.jboss.org/jira/browse/JBAS-6737
Project: JBoss Application Server
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: Deployers
Affects Versions: JBossAS-5.0.1.GA
Environment: OS: openSuse 11.1 x86_64, Sun JDK 1.6.0_12 x86_64.
Reporter: Haohua xie
Assignee: Alexey Loubyansky
Fix For: JBossAS-5.1.0.CR1
I create a jboss.xml, following the jboss_5_0.xsd, Here is my jboss.xml
<?xml version="1.0" encoding="UTF-8"?>
<jboss version="3.0"
xmlns="http://www.jboss.com/xml/ns/javaee"
xmlns:javaee="http://java.sun.com/xml/ns/javaee"
xmlns:xml="http://www.w3.org/XML/1998/namespace"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.jboss.com/xml/ns/javaee
http://www.jboss.org/j2ee/schema/jboss_5_0.xsd">
<webservices>
<contextRoot>/hxie/framework/security/admin/logic</contextRoot>
</webservices>
<enterprise-beans>
<session>
<ejb-name>LdapAuthInfoLogicBean</ejb-name>
<port-component>
<port-component-name>LdapAuthInfoLogic</port-component-name>
<port-component-uri>/LdapAuthInfoLogic</port-component-uri>
<!--
<auth-method>BASIC</auth-method>
-->
<transport-guarantee>NONE</transport-guarantee>
<secure-wsdl-access>false</secure-wsdl-access>
</port-component>
</session>
</enterprise-beans>
</jboss>
When I deployed my ear to JBoss 5.0.1 I get the following exception in the deployment
process:
isNamespaceAware: true, isValidating: true, isXIncludeAware: true
2009-04-04 11:26:28,127 DEBUG
[org.jboss.deployers.vfs.spi.deployer.JBossXBDeployerHelper] (main) Parsed file:
ZipEntryHandler(a)942465621[path=hxie-framework-security-admin.ear/ejb/hxie-framework-security-admin-logic.jar/META-INF/ejb-jar.xml
context=file:/home/xhh/workspace/framework/jboss-5.0.1.GA-jdk6/server/default/deploy/
real=file:/home/xhh/workspace/framework/jboss-5.0.1.GA-jdk6/server/default/deploy/hxie-framework-security-admin.ear/ejb/hxie-framework-security-admin-logic.jar/META-INF/ejb-jar.xml]
to: org.jboss.metadata.ejb.spec.EjbJar30MetaData@1f
2009-04-04 11:26:28,128 DEBUG
[org.jboss.deployers.vfs.spi.deployer.JBossXBDeployerHelper] (main) Parsing file:
ZipEntryHandler(a)1109289756[path=hxie-framework-security-admin.ear/ejb/hxie-framework-security-admin-logic.jar/META-INF/jboss.xml
context=file:/home/xhh/workspace/framework/jboss-5.0.1.GA-jdk6/server/default/deploy/
real=file:/home/xhh/workspace/framework/jboss-5.0.1.GA-jdk6/server/default/deploy/hxie-framework-security-admin.ear/ejb/hxie-framework-security-admin-logic.jar/META-INF/jboss.xml]
for type: class org.jboss.metadata.ejb.jboss.JBossMetaData
2009-04-04 11:26:28,129 DEBUG [org.jboss.xb.binding.parser.sax.SaxJBossXBParser] (main)
Created parser: org.apache.xerces.jaxp.SAXParserImpl@5b0a1d2d, isNamespaceAware: true,
isValidating: true, isXIncludeAware: true
2009-04-04 11:26:28,129 DEBUG [org.jboss.xb.binding.parser.sax.SaxJBossXBParser] (main)
http://xml.org/sax/features/validation set to: true
2009-04-04 11:26:28,129 DEBUG [org.jboss.xb.binding.parser.sax.SaxJBossXBParser] (main)
http://xml.org/sax/features/namespaces set to: true
2009-04-04 11:26:28,129 DEBUG [org.jboss.xb.binding.parser.sax.SaxJBossXBParser] (main)
http://apache.org/xml/features/xinclude/fixup-base-uris set to: false
2009-04-04 11:26:28,129 DEBUG [org.jboss.xb.binding.parser.sax.SaxJBossXBParser] (main)
http://apache.org/xml/features/xinclude/fixup-language set to: false
2009-04-04 11:26:28,129 DEBUG [org.jboss.xb.binding.parser.sax.SaxJBossXBParser] (main)
http://apache.org/xml/features/validation/dynamic set to: true
2009-04-04 11:26:28,129 DEBUG [org.jboss.xb.binding.parser.sax.SaxJBossXBParser] (main)
http://apache.org/xml/features/validation/schema set to: false
2009-04-04 11:26:28,129 DEBUG [org.jboss.xb.binding.parser.sax.SaxJBossXBParser] (main)
http://xml.org/sax/features/validation set to: true
2009-04-04 11:26:28,130 DEBUG [org.jboss.xb.binding.parser.sax.SaxJBossXBParser] (main)
Created parser: org.apache.xerces.jaxp.SAXParserImpl@5b0a1d2d, isNamespaceAware: true,
isValidating: true, isXIncludeAware: true
2009-04-04 11:26:28,377 DEBUG [org.jboss.deployment.JBossEjbParsingDeployer] (main) Error
during deploy:
vfszip:/home/xhh/workspace/framework/jboss-5.0.1.GA-jdk6/server/default/deploy/hxie-framework-security-admin.ear/ejb/hxie-framework-security-admin-logic.jar/
org.jboss.deployers.spi.DeploymentException: Error creating managed object for
vfszip:/home/xhh/workspace/framework/jboss-5.0.1.GA-jdk6/server/default/deploy/hxie-framework-security-admin.ear/ejb/hxie-framework-security-admin-logic.jar/
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.deployment.JBossEjbParsingDeployer.createMetaData(JBossEjbParsingDeployer.java:95)
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.doInstallParentFirst(DeployersImpl.java:1210)
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:698)
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:
{http://www.jboss.com/xml/ns/javaee}contextRoot not found as a child of
{http://www.jboss.com/xml/ns/javaee}webservices
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)
... 24 more
Caused by: org.jboss.xb.binding.JBossXBRuntimeException:
{http://www.jboss.com/xml/ns/javaee}contextRoot not found as a child of
{http://www.jboss.com/xml/ns/javaee}webservices
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)
... 32 more
2009-04-04 11:26:28,380 ERROR
[org.jboss.kernel.plugins.dependency.AbstractKernelController] (main) Error installing to
Parse:
name=vfszip:/home/xhh/workspace/framework/jboss-5.0.1.GA-jdk6/server/default/deploy/hxie-framework-security-admin.ear/
state=Not Installed mode=Manual requiredState=Parse
org.jboss.deployers.spi.DeploymentException: Error creating managed object for
vfszip:/home/xhh/workspace/framework/jboss-5.0.1.GA-jdk6/server/default/deploy/hxie-framework-security-admin.ear/ejb/hxie-framework-security-admin-logic.jar/
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.deployment.JBossEjbParsingDeployer.createMetaData(JBossEjbParsingDeployer.java:95)
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.doInstallParentFirst(DeployersImpl.java:1210)
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:698)
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:
{http://www.jboss.com/xml/ns/javaee}contextRoot not found as a child of
{http://www.jboss.com/xml/ns/javaee}webservices
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)
... 24 more
Caused by: org.jboss.xb.binding.JBossXBRuntimeException:
{http://www.jboss.com/xml/ns/javaee}contextRoot not found as a child of
{http://www.jboss.com/xml/ns/javaee}webservices
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)
... 32 more
Here is the xml snip in jboss_5_0.xsd or jboss_5_1.xsd. I think it is not correct.
<xsd:complexType name="webservicesType">
<xsd:sequence>
<xsd:element name="contextRoot" type="javaee:string"
minOccurs="0"/>
<xsd:element name="webservice-description"
type="jboss:webservice-descriptionType" minOccurs="0"
maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
I change my jboss.xml as the following. I can deploy the ear successfully.
<?xml version="1.0" encoding="UTF-8"?>
<jboss>
<!-- -->
<security-domain>
hxie.framework.security.admin.logic.domain
</security-domain>
<webservices>
<context-root>/hxie/framework/security/admin/logic</context-root>
</webservices>
<enterprise-beans>
<session>
<ejb-name>LdapAuthInfoLogicBean</ejb-name>
<port-component>
<port-component-name>LdapAuthInfoLogic</port-component-name>
<port-component-uri>/LdapAuthInfoLogic</port-component-uri>
<!--
<auth-method>BASIC</auth-method>
-->
<transport-guarantee>NONE</transport-guarantee>
<secure-wsdl-access>false</secure-wsdl-access>
</port-component>
</session>
</enterprise-beans>
</jboss>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: