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"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
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>
</application>
******************************
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!
Cheers!
Gowri
-
Deploying EAR file gives me XML problem (1 messages)
- Posted by: Gowri Shankar Soundararajan
- Posted on: October 01 2004 03:06 EDT
Threaded Messages (1)
- Check your XML first by Igor Shindin on October 05 2004 11:21 EDT
-
Check your XML first[ Go to top ]
- Posted by: Igor Shindin
- Posted on: October 05 2004 11:21 EDT
- in response to Gowri Shankar Soundararajan
Try to validate your XML file against DTD or schema