I wrote the code for connecting db through session bean.
I am getting following error while doing ejbc.
<error>
java weblogic.ejbc db.jar
ERROR: ejbc found errors while parsing the descriptor for db.jar:
ERROR: Error from ejbc: Error parsing file 'META-INF/weblogic-ejb-jar.xml' at li
ne: 16 column: 28. The content of element type "weblogic-enterprise-bean" must
match "(ejb-name,(entity-descriptor|stateless-session-descriptor|stateful-sessio
n-descriptor|message-driven-descriptor)?,transaction-descriptor?,iiop-security-d
escriptor?,reference-descriptor?,enable-call-by-reference?,clients-on-same-serve
r?,(run-as-identity-principal|run-as-principal-name)?,create-as-principal-name?,
remove-as-principal-name?,passivate-as-principal-name?,jndi-name?,local-jndi-nam
e?,dispatch-policy?,remote-client-timeout?)".
ERROR: ejbc couldn't load descriptor from jar
</error>
i am sending my weblogic.xml and ejb-jar.xml
<code>
<?xml version="1.0"?>
<!DOCTYPE ejb-jar PUBLIC
'-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN'
'
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.