EJB programming & troubleshooting: Deploying EAR file gives me XML problem

  1. Hi
    I am using Weblogic 7 on Oracle 9I
    I was just trying to call Entity bean from Session bean. TO create a EAR File I followed the follwing procedure 1) Create JAR file(s) 2) Create a DIR for EAR files (eg) C:\ejb\ear 3) Copy *.jar to that Dir 4) Create META_INF (eg) c:\ejb\ear\META-INF 5) Create a empty file called Application.xml in above Dir 6) From C:\ejb\ear give the following command : C:\ejb\ear\jar –cvf accDep.ear META-INF *.jar

    When I tried to deploy the EAR file the following server error fires.
    <Oct 1, 2004 12:12:58 PM IST> <Notice> <WebLogicServer> <000360> <Server started in RUNNING mode>
    <Oct 1, 2004 12:15:21 PM IST> <Notice> <Application Poller> <149401> <Removing application: _appsdir_BeanDep_ear>
    <Oct 1, 2004 12:26:25 PM IST> <Notice> <Application Poller> <149400> <Activating application: _appsdir_Bean_ear>
    <Oct 1, 2004 12:26:25 PM IST> <Error> <Deployer> <149027> <Unable to activate application, _appsdir_Bean_ear, from source, D:\bea\weblogic700\server\bin\applications\Bean.ear. Reason: Missing deployment descriptor "META-
    INF/application.xml" at "D:\bea\weblogic700\server\bin\applications\Bean.ear">
    <Oct 1, 2004 12:26:25 PM IST> <Error> <Application Poller> <149402> <Caught exception deploying application: _appsdir_Bean_ear>

    So I tried to put the following into on \ear\META-INTF\application.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <application xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    http://java.sun.com/xml/ns/j2ee/application_1_4.xsd" version="1.4">
                <description>SB to EB</description>
                <module> <ejb>accDep.jar</ejb> </module>
                <module> <ejb>cliDep.jar</ejb> </module>
    I got this from http://jonas.objectweb.org/current/doc/PG_EarDeployment.html#PG_EarDeployment-EarDD site

    Still I got weblogic.xml.process.XMLProcessingException
    REason : Failed to parse deployment descriotr .... <as it goes>

    Can anyone help me please!

    Threaded Messages (1)

  2. Check your XML first[ Go to top ]

    Try to validate your XML file against DTD or schema