secure-wsdl-access is mssing in jboss_5_0.dtd
---------------------------------------------
Key: JBAS-6738
URL:
https://jira.jboss.org/jira/browse/JBAS-6738
Project: JBoss Application Server
Issue Type: Bug
Security Level: Public (Everyone can see)
Affects Versions: JBossAS-5.0.1.GA
Environment: openSUSU 11.1 x86_64, Sun JDK 1.6.0_12 x86_64
Reporter: Haohua xie
Here is my jboss.xml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE jboss PUBLIC
"-//JBoss//DTD JBOSS 5.0//EN"
"http://www.jboss.org/j2ee/dtd/jboss_5_0.dtd">
<jboss>
<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>
When I deployed the ear to JBoss 5.0.1 GA, I got the following exception and deployment
failed.
2009-04-04 11:52:29,348 DEBUG [org.jboss.deployers.vfs.spi.deployer.JBossXBDeployerHelper]
(main) Parsing file:
ZipEntryHandler(a)594588547[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:52:29,349 DEBUG [org.jboss.xb.binding.parser.sax.SaxJBossXBParser] (main)
Created parser: org.apache.xerces.jaxp.SAXParserImpl@3c196fa2, isNamespaceAware: true,
isValidating: true, isXIncludeAware: true
2009-04-04 11:52:29,349 DEBUG [org.jboss.xb.binding.parser.sax.SaxJBossXBParser] (main)
http://xml.org/sax/features/validation set to: true
2009-04-04 11:52:29,349 DEBUG [org.jboss.xb.binding.parser.sax.SaxJBossXBParser] (main)
http://xml.org/sax/features/namespaces set to: true
2009-04-04 11:52:29,349 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:52:29,349 DEBUG [org.jboss.xb.binding.parser.sax.SaxJBossXBParser] (main)
http://apache.org/xml/features/xinclude/fixup-language set to: false
2009-04-04 11:52:29,349 DEBUG [org.jboss.xb.binding.parser.sax.SaxJBossXBParser] (main)
http://apache.org/xml/features/validation/dynamic set to: true
2009-04-04 11:52:29,349 DEBUG [org.jboss.xb.binding.parser.sax.SaxJBossXBParser] (main)
http://apache.org/xml/features/validation/schema set to: false
2009-04-04 11:52:29,349 DEBUG [org.jboss.xb.binding.parser.sax.SaxJBossXBParser] (main)
http://xml.org/sax/features/validation set to: true
2009-04-04 11:52:29,350 DEBUG [org.jboss.xb.binding.parser.sax.SaxJBossXBParser] (main)
Created parser: org.apache.xerces.jaxp.SAXParserImpl@3c196fa2, isNamespaceAware: true,
isValidating: true, isXIncludeAware: true
2009-04-04 11:52:29,557 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: Element type
"secure-wsdl-access" must be declared. @
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/META-INF/jboss.xml[19,25]
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.xml.sax.SAXException: Element type "secure-wsdl-access" must be
declared. @
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/META-INF/jboss.xml[19,25]
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.apache.xerces.impl.dtd.XMLDTDValidator.handleStartElement(Unknown Source)
at org.apache.xerces.impl.dtd.XMLDTDValidator.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:52:29,560 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: Element type
"secure-wsdl-access" must be declared. @
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/META-INF/jboss.xml[19,25]
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.xml.sax.SAXException: Element type "secure-wsdl-access" must be
declared. @
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/META-INF/jboss.xml[19,25]
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.apache.xerces.impl.dtd.XMLDTDValidator.handleStartElement(Unknown Source)
at org.apache.xerces.impl.dtd.XMLDTDValidator.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
in jboss_5_0.dtd:
<!-- The port-component element specifies a mapping from a webservice
port-component whose service-impl-bean/ejb-link value maps to an ejb.
Used in: session
-->
<!ELEMENT port-component (port-component-name, port-component-uri?, auth-method?,
transport-guarantee?) >
secure-wsdl-access is not included in the definition of port-component
remove the DOCTYPE of jboss.xml and the ear can be deployed successfully.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira