|
 |
enterprise_java_beans thread: EJB DeploymentException in weblogic 6.0
Message #1 by "Usha Ranganathan" <ushrang@h...> on Wed, 12 Sep 2001 14:45:54
|
|
Hello all,
Am new to EJB and I am stuck with this error when i try to deploy my beans.
I have a TraceBean which is a MessageDrivenBean and when I try to deploy
this by placing it in the config/mydomain/applications I get this error.
-------------------------
<Sep 12, 2000 7:18:30 PM GMT+05:30> <Error> <J2EE> <Error deploying
application TraceBean: Could not deploy: 'TraceBean.jar':
com.iriscube.checkin.TraceBean>
<Sep 12, 2000 7:18:32 PM GMT+05:30> <Warning> <HTTP> <Public ID references
the old version of Servlet 2.2 DTD. Please, change the public ID in
web.xml file to "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN".>
<Sep 12, 2000 7:18:42 PM GMT+05:30> <Warning> <HTTP> <Public ID references
the old version of Servlet 2.2 DTD. Please, change the public ID in
web.xml file to "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN".>
org.xml.sax.SAXParseException: Element type "caching-descriptor" must be
declared.
at weblogic.apache.xerces.framework.XMLParser.reportError
(XMLParser.java:1008)
at
weblogic.apache.xerces.validators.common.XMLValidator.reportRecoverableXMLE
rror(XMLValidator.java:1236)
at
weblogic.apache.xerces.validators.common.XMLValidator.validateElementAndAtt
ributes(XMLValidator.java:2673)
at
weblogic.apache.xerces.validators.common.XMLValidator.callStartElement
(XMLValidator.java:818)
the ejb-jar XML file is
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise
JavaBeans 2.0//EN" "http://www.java.sun.com/dtd/ejb-jar_2_0.dtd">
<ejb-jar>
<enterprise-beans>
<message-driven>
<ejb-name>TraceBean</ejb-name>
<ejb-class>com.iriscube.checkin.TraceBean</ejb-class>
<transaction-type>Bean</transaction-type>
<jms-acknowledge-mode>auto-acknowledge</jms-acknowledge-mode>
<message-driven-destination>
<jms-destination-type>javax.jms.Queue</jms-destination-type>
</message-driven-destination>
<security-identity>
<run-as-specified-identity>
<role-name>system</role-name>
</run-as-specified-identity>
</security-identity>
</message-driven>
</enterprise-beans>
</ejb-jar>
---------------
I have one more session bean the UserSession bean and i get this error for
the bean during deployment
<Sep 12, 2000 7:18:43 PM GMT+05:30> <Error> <J2EE> <Error deploying
application UserSession: Could not deploy: 'UserSession.jar'
Possible reasons include:
1. The bean or an interface class has been modified but
the deployment descriptor has not been updated
2. The database mappings in the deployment descriptor do not
match the database definition
3. The jar file is not a valid jar file
4. The jar file does not contain a valid bean>
The ejb-jar file is
<?xml version="1.0"?>
<!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise
JavaBeans 2.0//EN" "http://www.java.sun.com/dtd/ejb-jar_2_0.dtd">
<ejb-jar>
<enterprise-beans>
<session>
<ejb-name>UserSession</ejb-name>
<home>com.iriscube.checkin.UserSessionHome</home>
<remote>com.iriscube.checkin.UserSession</remote>
<ejb-class>com.iriscube.checkin.UserSessionBean</ejb-class>
<session-type>Stateful</session-type>
<transaction-type>Container</transaction-type>
</session>
</enterprise-beans>
<assembly-descriptor>
<container-transaction>
<method>
<ejb-name>UserSession</ejb-name>
<method-intf>Remote</method-intf>
<method-name>*</method-name>
</method>
<trans-attribute>Required</trans-attribute>
</container-transaction>
</assembly-descriptor>
</ejb-jar>
------------------------------------------------------------
Can anyone guide me what the error could be, and how to go about it.
Advanced Thanks
Usha
|
|
 |