This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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
Author

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:



Hi,

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
Hi,


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



Regards
Shaan
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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Error while executing java weblogic.ejbc ?
 
Similar Threads
About EJB Transaction in WLS 7.0 & 8.1
Seting instance pool limit for stateful session bean
error in deploying stateful bean in weblogic 8.1
Regarding Deploying Ejb in Weblogic server 5.1
OutOfMemory Exception while building using eclipse compiler