[jboss-user] [Beginners Corner] - Re: Element type

mfigueroa do-not-reply at jboss.com
Tue Jun 16 12:13:40 EDT 2009


Hi Wolfgang

The "ejb-jar.xml":

  | <?xml version="1.0"?><!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN" "http://java.sun.com/dtd/ejb-jar_2_0.dtd">
  | <ejb-jar id="ejb-jar_ID">
  | 	<description>ejb test ejb</description>
  | 	<display-name>ejbtestejb</display-name>
  | 	<enterprise-beans>
  | 		<session id="b2backejb">
  | 			<ejb-name>b2backejb</ejb-name>
  | 			<home>b2backejbhome</home>
  | 			<remote>b2backejbremote</remote>
  | 			<local-home>b2backejblocalhome</local-home>
  | 			<local>b2backejblocal</local>
  | 			<ejb-class>b2backejbbean</ejb-class>
  | 			<session-type>Stateless</session-type>
  | 			<transaction-type>Container</transaction-type>
  | 			<env-entry>
  | 				<env-entry-name>GX/TrnType</env-entry-name>
  | 				<env-entry-type>java.lang.String</env-entry-type>
  | 				<env-entry-value>CONTAINER</env-entry-value>
  | 			</env-entry>
  | 		</session>
  |         <message-driven>
  |            <ejb-name>b2backejbmessage</ejb-name>
  |            <ejb-class>b2backejbmessagebean</ejb-class>
  |             <messaging-type>javax.jms.MessageListener</messaging-type>
  |             <transaction-type>Container</transaction-type>            
  |             <activation-config>
  |                 <activation-config-property>
  |                     <activation-config-property-name>destination</activation-config-property-name>
  |                     <activation-config-property-value>QORDEN_ENV.Q1</activation-config-property-value>
  |                 </activation-config-property>
  |                 <activation-config-property>
  |                     <activation-config-property-name>destinationType</activation-config-property-name>
  |                     <activation-config-property-value>javax.jms.Queue</activation-config-property-value>
  |                 </activation-config-property>
  |                 <activation-config-property>
  |                     <activation-config-property-name>useJNDI</activation-config-property-name>
  |                     <activation-config-property-value>false</activation-config-property-value>
  |                 </activation-config-property>                
  |                 <activation-config-property>
  |                     <activation-config-property-name>hostName</activation-config-property-name>
  |                     <activation-config-property-value>192.168.1.221</activation-config-property-value>
  |                 </activation-config-property>                                
  |                 <activation-config-property>
  |                     <activation-config-property-name>queueManager</activation-config-property-name>
  |                     <activation-config-property-value>qm.b2bridge</activation-config-property-value>
  |                 </activation-config-property>                                                
  |           </activation-config> 
  |       </message-driven>
  | 	</enterprise-beans>
  | 	<assembly-descriptor>
  | 		<container-transaction>
  | 			<method>
  | 				<ejb-name>b2backejb</ejb-name>
  | 				<method-name>*</method-name>
  | 			</method>
  | 			<trans-attribute>Required</trans-attribute>
  | 		</container-transaction>
  | 	</assembly-descriptor>
  | </ejb-jar>
  | 


The complete exception stack:

  | 11:57:29,929 ERROR [AbstractKernelController] Error installing to Parse: name=vfszip:/C:/jboss-5.1.0.GA/server/default/deploy/ejbtest.ear/ state=Not Installed mode=Manual requiredState=Parse
  | org.jboss.deployers.spi.DeploymentException: Error creating managed object for vfszip:/C:/jboss-5.1.0.GA/server/default/deploy/ejbtest.ear/ejbtestejb.jar/
  |         at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49)
  |         at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.createMetaData(AbstractParsingDeployerWithOutput.java:362)
  |         at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.createMetaData(AbstractParsingDeployerWithOutput.java:322)
  |         at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.createMetaData(AbstractParsingDeployerWithOutput.java:294)
  |         at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.deploy(AbstractParsingDeployerWithOutput.java:234)
  |         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:1631)
  |         at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
  |         at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
  |         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:702)
  |         at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.process(MainDeployerAdapter.java:117)
  |         at org.jboss.system.server.profileservice.repository.ProfileDeployAction.install(ProfileDeployAction.java:70)
  |         at org.jboss.system.server.profileservice.repository.AbstractProfileAction.install(AbstractProfileAction.java:53)
  |         at org.jboss.system.server.profileservice.repository.AbstractProfileService.install(AbstractProfileService.java:361)
  |         at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
  |         at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
  |         at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
  |         at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
  |         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:306)
  |         at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:271)
  |         at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:461)
  |         at org.jboss.Main.boot(Main.java:221)
  |         at org.jboss.Main$1.run(Main.java:556)
  |         at java.lang.Thread.run(Thread.java:619)
  | Caused by: org.jboss.xb.binding.JBossXBException: Failed to parse source: Element type "messaging-type" must be declared. @ vfszip:/C:/jboss-5.1.0.GA/server/default/deploy/ejbtest.ear/ejbtestejb.jar/META-INF/ejb-jar.xml[33,29]
  |         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.xb.util.JBossXBHelper.parse(JBossXBHelper.java:189)
  |         at org.jboss.xb.util.JBossXBHelper.parse(JBossXBHelper.java:166)
  |         at org.jboss.deployers.vfs.spi.deployer.SchemaResolverDeployer.parse(SchemaResolverDeployer.java:137)
  |         at org.jboss.deployers.vfs.spi.deployer.SchemaResolverDeployer.parse(SchemaResolverDeployer.java:121)
  |         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:348)
  |         ... 34 more
  | Caused by: org.xml.sax.SAXException: Element type "messaging-type" must be declared. @ vfszip:/C:/jboss-5.1.0.GA/server/default/deploy/ejbtest.ear/ejbtestejb.jar/META-INF/ejb-jar.xml[33,29]
  |         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)
  |         ... 42 more
  | 

Thanks in advance.

Miguel.-


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

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



More information about the jboss-user mailing list