File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes EJB and other Java EE Technologies and the fly likes Error while executing java weblogic.ejbc ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of RabbitMQ in Depth this week in the Open Source forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Error while executing java weblogic.ejbc ?" Watch "Error while executing java weblogic.ejbc ?" New topic

Error while executing java weblogic.ejbc ?

Shaan patil
Ranch Hand

Joined: Dec 22, 2007
Posts: 58
C:\MVC\ejb_src\deploy\deploy_jars>java weblogic.ejbc TempEJBApp.jar AirlinesEJBApp.jar

ERROR: ejbc found errors while processing the descriptor for TempEJBApp.jar:


I am gettting the following error when I run the ejb script.
The weblogic-ejb-jar.xml waswritten for 8.1 .

ERROR: Error from ejbc: Error processing 'META-INF/weblogic-ejb-jar.xml': The public id, "-//BEA Systems, Inc.//DTD WebLogic 7.0.0
EJB//EN", specified in the XML document is invalid. Use one of the following valid public ids:
"-//BEA Systems, Inc.//DTD WebLogic 5.1.0 EJB//EN"
"-//BEA Systems, Inc.//DTD WebLogic 6.0.0 EJB//EN"
"-//BEA Systems, Inc.//DTD WebLogic 7.0.0 EJB//EN"
"-//BEA Systems, Inc.//DTD WebLogic 8.1.0 EJB//EN"

ERROR: ejbc couldn't load descriptor from jar

"You cannot change the truth but truth can change you "
Jetendra Ivaturi
Ranch Hand

Joined: Feb 08, 2007
Posts: 159
Try changing the DTD of the xml file in the weblogic-ejb-jar.xml.

Or use weblogic tool to update the DTD.

Best option to samples of weblogic ejb's copy the DTD from one of weblogic-ejb-jar.xml and try it.

SCJP 1.4 & 1.5, SCWCD 1.5. Learn and Let Learn.
Shaan patil
Ranch Hand

Joined: Dec 22, 2007
Posts: 58

Is it the best way to migrate application from WLS 7.0 to WLS 8.1 ?

Amit M Tank
Ranch Hand

Joined: Mar 28, 2004
Posts: 257
Not sure but you might want to try out the weblogic builder.

Amit Tank
Linked In
I agree. Here's the link:
subject: Error while executing java weblogic.ejbc ?