File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes BEA/Weblogic and the fly likes weblogic.ejbc command problem Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Products » BEA/Weblogic
Reply Bookmark "weblogic.ejbc command problem" Watch "weblogic.ejbc command problem" New topic
Author

weblogic.ejbc command problem

jp tiwari
Greenhorn

Joined: Aug 18, 2001
Posts: 4
I'm getting following error message when i'm executing ejbc from console:-
weblogic.xml.process.ProcessorFactoryException: Could not locate processor for public id="-//sun microsystems,inc.//dtd enterprise javabeans 1.1//en"
at weblogic.xml.process.ProcessorFactory.getProcessor(ProcessorFactory.java:181)
at weblogic.xml.process.ProcessorFactory.getProcessor(ProcessorFactory.java:164)
at weblogic.ejb20.dd.xml.DDUtils.loadDeploymentDescriptor(DDUtils.java:65)
at weblogic.ejb20.dd.xml.DDUtils.loadDeploymentDescriptor(DDUtils.java:47)
at weblogic.ejb20.dd.xml.DDUtils.loadDeploymentDescriptor(DDUtils.java:38)
at weblogic.ejbc20.runBody(ejbc20.java:665)
at weblogic.utils.compiler.Tool.run(Tool.java:81)
at weblogic.ejbc.main(ejbc.java:20)
My environment is set properly, but i find weblogic_sp.jar file missing from lib directory of wlserver6.0 evaluation copy.Is this actually the problem. If yes, where can i get a copy of this file.
Thanx
------------------
Marcos Maia
Ranch Hand

Joined: Jan 06, 2001
Posts: 973
hi,
xml is case sensitive so change the doctype from your ejb-jar to:
<!DOCTYPE ejb-jar PUBLIC '-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 1.1//EN' 'http://java.sun.com/j2ee/dtds/ejb-jar_1_1.dtd'>
hope this helps.
regards.
jp tiwari
Greenhorn

Joined: Aug 18, 2001
Posts: 4
Hi,
it seems the problem is not wit the case.can u suggest me some other resource to get this problem solved.
regards
Originally posted by Marcos Maia:
hi,
xml is case sensitive so change the doctype from your ejb-jar to:
<!DOCTYPE ejb-jar PUBLIC '-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 1.1//EN' 'http://java.sun.com/j2ee/dtds/ejb-jar_1_1.dtd'>
hope this helps.
regards.

Joe McGuire
Ranch Hand

Joined: Mar 19, 2001
Posts: 293
Is it not finding the xml parser? Can you make sure that
set CLASSPATH=%JAVA_HOME%\lib\tools.jar;%WL_HOME%\lib\weblogic_sp.jar;%WL_HOME%\lib\weblogic.jar;%CLASSPATH%
is in your setEnv.cmd file, and that that file is being run (it's okay that weblogic_sp.jar is not in your %WL_HOME%\lib\ directory).
If that doesn't fix it, then, try downloading the ejb20.jar file and placing it in the \wlserver6.0\lib\ directory (I was concerned about the references in you error message to weblogic.ejb20.dd.xml....).
[This message has been edited by Joe McGuire (edited October 22, 2001).]
 
 
subject: weblogic.ejbc command problem
 
Threads others viewed
UnsupportedClassVersionError
deploying sample banking example
ejb depend on third-party library and Class-Path entry!!!
ClassCastException in WLS7
UnsupportedClassVersionError
Two Laptop Bag

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture