AFAIK, this is definitely NOT the mailing list for support
questions pertaining to Weblogic - you need to use
their newsgroups or some other avenue. Your problem
here may be resolved by removing Sun parser.jar from
your classpath.


>From: "Manpreet Singh" <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Subject: problem with ejbc. !!
>Date: Thu, 17 Aug 2000 15:16:14 +0530
>
>Hi,
>
>Im working on a small project using EJB with weblogic 5.1 .
>I get the following error when I run  weblogic.ejbc :
>
>java.lang.ClassCastException: com.sun.xml.tree.TextNode
>         at 
>weblogic.xml.dom.DOMUtils.getOptionalElementsByTagName(DOMUtils.java:204)
>         at 
>weblogic.xml.dom.DOMUtils.getOptionalElementByTagName(DOMUtils.java:170)
>         at 
>weblogic.xml.dom.DOMUtils.getOptionalValueByTagName(DOMUtils.java:97)
>         at 
>weblogic.ejb.deployment.dd.EJBReadDOM.getDescriptionValue(EJBReadDOM.java:404)
>         at 
>weblogic.ejb.deployment.dd.DescriptorLoader.createDeploymentUnit(DescriptorLoader.java:200)
>         at weblogic.ejbc.runBody(ejbc.java:299)
>         at weblogic.utils.compiler.Tool.run(Tool.java:80)
>         at weblogic.ejbc.main(ejbc.java:353)
>ERROR: java.lang.ClassCastException: com.sun.xml.tree.TextNode
>
>I guess this error is due to some missing tag in ejb-jar.xml but I dont 
>know which one.
>Heres my ejb-jar.xml :
>
><?xml version="1.0"?>
>
><!DOCTYPE ejb-jar PUBLIC '-//Sun Microsystems, Inc.//DTD Enterprise 
>JavaBeans 1.1//EN' 'http://java.sun.com/j2ee/dtds/ejb-jar_1_1.dtd'>
>
><ejb-jar>
>     <enterprise-beans>
>       <entity>
>         <ejb-name>EmployeeHome</ejb-name>
>         <home>book.chap09.timetracker.EmployeeHome</home>
>         <remote>book.chap09.timetracker.Employee</remote>
>         <ejb-class>book.chap09.timetracker.EmployeeBean</ejb-class>
>         <persistence-type>Bean</persistence-type>
>         
><prim-key-class>book.chap09.timetracker.EmployeePK</prim-key-class>
>         <reentrant>False</reentrant>
>       </entity>
>     </enterprise-beans>
>     <assembly-descriptor>
>       <security-role>
>         <role-name>hrmanager</role-name>
>       </security-role>
>       <security-role>
>         <role-name>empsandmanagers</role-name>
>       </security-role>
>       <method-permission>
>         <description>Some desc will come here</description>
>         <role-name>hrmanager</role-name>
>         <method>
>           <ejb-name>EmployeeHome</ejb-name>
>             <method-intf>Remote</method-intf>
>           <method-name>getEmployeeInfo</method-name>
>         </method>
>       </method-permission>
>       <method-permission>
>         <description>Some desc will come here</description>
>         <role-name>hrmanager</role-name>
>         <method>
>           <ejb-name>EmployeeHome</ejb-name>
>           <method-intf>Remote</method-intf>
>           <method-name>setEmployeeInfo</method-name>
>         </method>
>       </method-permission>
>       <method-permission>
>         <description>Some desc will come here</description>
>         <role-name>empsandmanagers</role-name>
>         <method>
>           <ejb-name>EmployeeHome</ejb-name>
>           <method-intf>Remote</method-intf>
>           <method-name>*</method-name>
>         </method>
>       </method-permission>
>       <container-transaction>
>         <method>
>           <ejb-name>EmployeeHome</ejb-name>
>           <method-intf>Remote</method-intf>
>           <method-name>*</method-name>
>         </method>
>         <trans-attribute>Required</trans-attribute>
>       </container-transaction>
>     </assembly-descriptor>
>   </ejb-jar>
>
>The classpath is perfect.
>
>Hope u take out some time to solve this problem.
>
>Thanks for your time.
>Manpreet Singh.
>
>
>

________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com

----
This list is cross-posted to two mail lists.  To unsubscribe,
follow the instructions below for the list you subscribed to.
For objectweb.org: send email to [EMAIL PROTECTED] and
include in the body of the message "unsubscribe ejb-container-group".
For enhydra.org: send email to [EMAIL PROTECTED] and include
in the body of the message "unsubscribe ejb-container-group".

Reply via email to