Announcement Announcement Module
Collapse
No announcement yet.
Issue in JBoss 5.0.1.GA Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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.SofaAdaptor Endpoint</service-endpoint>

    <home>com.hp.bpo.adaptor.ejb.interfaces.SofaAdapto rServicesHome</home>

    <remote>com.hp.bpo.adaptor.ejb.interfaces.SofaAdap torServices</remote>

    <ejb-class>com.hp.bpo.adaptor.ejb.SofaAdaptorServicesBe an</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.Empl oyeeDataAccessHome</home>

    <remote>com.hp.bpo.xdal.employee.ejb.interfaces.Em ployeeDataAccess</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.rethro wAsDeploymentExcept
    ion(DeploymentException.java:49)
    at org.jboss.deployers.spi.deployer.helpers.AbstractP arsingDeployerWithO
    utput.createMetaData(AbstractParsingDeployerWithOu tput.java:337)
    at org.jboss.deployers.spi.deployer.helpers.AbstractP arsingDeployerWithO
    utput.createMetaData(AbstractParsingDeployerWithOu tput.java:297)
    at org.jboss.deployers.spi.deployer.helpers.AbstractP arsingDeployerWithO
    utput.createMetaData(AbstractParsingDeployerWithOu tput.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.p arse(SaxJBossXBPars
    er.java:203)
    at org.jboss.xb.binding.UnmarshallerImpl.unmarshal(Un marshallerImpl.java
    :168)
    at org.jboss.deployers.vfs.spi.deployer.JBossXBDeploy erHelper.parse(JBos
    sXBDeployerHelper.java:199)
    at org.jboss.deployers.vfs.spi.deployer.JBossXBDeploy erHelper.parse(JBos
    sXBDeployerHelper.java:170)
    at org.jboss.deployers.vfs.spi.deployer.SchemaResolve rDeployer.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$M etaDataErrorHandler
    .error(SaxJBossXBParser.java:426)
    at org.apache.xerces.util.ErrorHandlerWrapper.error(U nknown Source)
    at org.apache.xerces.impl.XMLErrorReporter.reportErro r(Unknown Source)
    at org.apache.xerces.impl.XMLErrorReporter.reportErro r(Unknown Source)
    at org.apache.xerces.impl.XMLErrorReporter.reportErro r(Unknown Source)
    at org.apache.xerces.impl.dtd.XMLDTDValidator.handleS tartElement(Unknown





    Thanks,

    Bharanidharan

  • #2
    i think a jboss forum is more appropriete for your request.

    Comment


    • #3
      Like the other reply, we have no idea why you asked this in this forum.

      However, if you just actually read the error message:
      Code:
      Caused by: org.xml.sax.SAXException: Element type "service-endpoint" must be declared.
      What else do you think this would mean? Look at the DTD this XML file references, and you'll see that "service-endpoint" is not there.

      Comment

      Working...
      X