Wrox Home  
Search P2P Archive for: Go

  Return to Index  

enterprise_java_beans thread: Building XML files in the case of Entity Beans using Weblogic 5.1


Message #1 by "Unni Krishnan" <unni_54@y...> on Mon, 18 Jun 2001 14:20:07
When I try to build the xml files using ejbc utility (entity beans using 
the downloads available in weblogic.com) I get the following error: 
C:\demoejb\sampc>java -classpath 
\java\lib\classes.zip;\weblogic\classes;\weblog 
ic\lib\weblogicaux.jar;\weblogic\myserver\clientclasses -
Dweblogic.home=\weblogi 
c weblogic.ejbc -compiler javac build\std_ejb_basic_containerManaged.jar 
\weblog 
ic\myserver\ejb_basic_containerManaged.jar 
org.xml.sax.SAXParseException: XML declaration may only begin entities. 
        at com.sun.xml.parser.Parser.fatal(Parser.java:2797) 
        at com.sun.xml.parser.Parser.fatal(Parser.java:2785) 
        at com.sun.xml.parser.Parser.maybePI(Parser.java:938) 
        at com.sun.xml.parser.Parser.maybeMisc(Parser.java:1061) 
        at com.sun.xml.parser.Parser.parseInternal(Parser.java:478) 
        at com.sun.xml.parser.Parser.parse(Parser.java:283) 
        at weblogic.xml.dom.SunDOMParser.getDocument(SunDOMParser.java:69) 
        at weblogic.xml.dom.DOMParser.getDocument(DOMParser.java:102) 
        at weblogic.ejb.deployment.dd.DescriptorLoader.<init>
(DescriptorLoader.j 
ava:151) 
        at weblogic.ejbc.runBody(ejbc.java:298) 
        at weblogic.utils.compiler.Tool.run(Tool.java:80) 
        at weblogic.ejbc.main(ejbc.java:353) 

If anybody know the reason for this kind of error.Please post ur answer 
for this. 

  Return to Index