VMware Cloud Community
bharani_82
Contributor
Contributor

Issue in JBoss 5.0.1.GA

Hi All,



I m getting one strange problem while upgrading from JB0ss4.0.1GA to 5.0.1GA. The EAR file I m using is getting deployed successfully in JBoss4.0.1. But when I m trying to deploy the same EAR in JBoss5.0.1, I m getting the following error.



In the ejb-jar.xml I m using I have the following lines of code. I think the lines marked in red colour only giving problem. Can anybody tell what I have to do to successfully deploy this in JBoss5.0.1GA as well. Thanks in Advance, Bharanidharan



<?xml version="1.0" encoding="UTF-8"?>

<!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 >

<enterprise-beans>

<!-- Session Beans -->

<session >

<description><![CDATA[Sofa Adaptor EJB]]></description>

<display-name>Sofa Adaptor EJB</display-name>

<ejb-name>SofaAdaptor</ejb-name>

<service-endpoint>com.hp.bpo.adaptor.webservice.SofaAdaptorEndpoint</service-endpoint>

<home>com.hp.bpo.adaptor.ejb.interfaces.SofaAdaptorServicesHome</home>

<remote>com.hp.bpo.adaptor.ejb.interfaces.SofaAdaptorServices</remote>

<ejb-class>com.hp.bpo.adaptor.ejb.SofaAdaptorServicesBean</ejb-class>

<session-type>Stateless</session-type>

<transaction-type>Container</transaction-type>

<ejb-ref>

<ejb-ref-name>ejb/Employee</ejb-ref-name>

<ejb-ref-type>Session</ejb-ref-type>

<home>com.hp.bpo.xdal.employee.ejb.interfaces.EmployeeDataAccessHome</home>

<remote>com.hp.bpo.xdal.employee.ejb.interfaces.EmployeeDataAccess</remote>

</ejb-ref>

<resource-ref>

<res-ref-name>oracleDS</res-ref-name>

<res-type>java.sql.DataSource</res-type>

<res-auth>Container</res-auth>

</resource-ref>

</session>

</enterprise-beans>

</ejb-jar>





A part of error message is,



org.jboss.deployers.spi.DeploymentException: Error creating managed object for v
fszip:/C:/jboss-5.0.1.GA/server/Sample/deploy/SOFA/SOFA.ear/SOFAAdaptor.jar/
at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentExcept
ion(DeploymentException.java:49)
at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithO
utput.createMetaData(AbstractParsingDeployerWithOutput.java:337)
at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithO
utput.createMetaData(AbstractParsingDeployerWithOutput.java:297)
at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithO
utput.createMetaData(AbstractParsingDeployerWithOutput.java:269)



Caused by: org.jboss.xb.binding.JBossXBException: Failed to parse source: Elemen
t type "service-endpoint" must be declared. @ vfszip:/C:/jboss-5.0.1.GA/server/S
ample/deploy/SOFA/SOFA.ear/SOFAAdaptor.jar/META-INF/ejb-jar.xml[80,28]
at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBPars
er.java:203)
at org.jboss.xb.binding.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java
:168)
at org.jboss.deployers.vfs.spi.deployer.JBossXBDeployerHelper.parse(JBos
sXBDeployerHelper.java:199)
at org.jboss.deployers.vfs.spi.deployer.JBossXBDeployerHelper.parse(JBos
sXBDeployerHelper.java:170)
at org.jboss.deployers.vfs.spi.deployer.SchemaResolverDeployer.parse(Sch
emaResolverDeployer.java:132)



Caused by: org.xml.sax.SAXException: Element type "service-endpoint" must be dec
lared. @ vfszip:/C:/jboss-5.0.1.GA/server/Sample/deploy/SOFA/SOFA.ear/SOFAAdapto
r.jar/META-INF/ejb-jar.xml[80,28]
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





Thanks,

Bharanidharan
0 Kudos
0 Replies