E:\bea\wlserver6.0\samples\cabin\build>java -classpath
E:/bea/wlserver6.0/lib/weblogic_sp.jar;E:/bea/wlserver6.0/lib/weblogic.j
ar weblogic.ejbc -compiler javac cabin.jar
E:/bea/wlserver6.0/config/examples/applications\cabin.jar
weblogic.utils.AssertionError: ***** ASSERTION FAILED *****[ Assertion
violated ]
at weblogic.utils.Debug.assert(Debug.java:74)
at weblogic.ejb20.deployer.EntityBeanInfoImpl.<init>
(EntityBeanInfoImpl.java:100)
at weblogic.ejb20.deployer.BeanInfoImpl.createBeanInfoImpl
(BeanInfoImpl.java:207)
at
weblogic.ejb20.deployer.DeploymentInfoImpl.initializeBeanInfos
(DeploymentInfoImpl.java:157)
at weblogic.ejb20.deployer.DeploymentInfoImpl.<init>
(DeploymentInfoImpl.java:86)
at weblogic.ejb20.ejbc.EJBCompiler.setupEJB
(EJBCompiler.java:105)
at weblogic.ejbc20.runBody(ejbc20.java:340)
at weblogic.utils.compiler.Tool.run(Tool.java:81)
at weblogic.ejbc.main(ejbc.java:20)
My weblogic-ejb-jar.xml file looks like this:
<?xml version="1.0"?>
<!DOCTYPE weblogic-ejb-jar PUBLIC '-//BEA Systems, Inc.//DTD WebLogic
5.1.0 EJB//EN' 'http://www.bea.com.servers/wls510/dtd/weblogic-ejb-
jar.dtd'>
<weblogic-ejb-jar>
<weblogic-enterprise-bean>
<ejb-name>CabinBean</ejb-name>
<caching-descriptor>
<max-beans-in-free-pool>100</max-beans-in-free-pool>
</caching-descriptor>
<jndi-name>CabinHome</jndi-name>
</weblogic-enterprise-bean>
</weblogic-ejb-jar>
Everything else is coming straight from the O'Reilly book (including
the ejb-jar.xml file).
Any ideas on what is wrong?
Thanks,
John
Sent via Deja.com
http://www.deja.com/
I took the weblogic-ejb-jar.xml file from the basic "ContainerManaged"
example (see below). It differs slightly from yours (in caching).
In my case, weblogic gets farther than in your problem, but has
problems generating the finder methods
Exception: 'weblogic.ejb20.ejbc.EJBCException: Could not produce
production rule for this finder.' while trying to invoke:
implementFinderMethods at line 113
From my understanding of the dtd, you don't need a finder-list if
you're only using the findbyprimarykey locator.
bill milbratz
<?xml version="1.0"?>
<!DOCTYPE weblogic-ejb-jar PUBLIC '-//BEA Systems, Inc.//DTD WebLogic
5.1.0 EJB//EN' 'http://www.bea.com/servers/wls510/dtd/weblogic-ejb-
jar.dtd'>
<weblogic-ejb-jar>
<weblogic-enterprise-bean>
<ejb-name>CabinBean</ejb-name>
<caching-descriptor>
<max-beans-in-cache>1000</max-beans-in-cache>
</caching-descriptor>
<persistence-descriptor>
<is-modified-method-name>isModified</is-modified-method-name>
<persistence-type>
<type-identifier>WebLogic_CMP_RDBMS</type-identifier>
<type-version>5.1.0</type-version>
<type-storage>META-INF/weblogic-cmp-rdbms-jar.xml</type-
storage>
</persistence-type>
<persistence-use>
<type-identifier>WebLogic_CMP_RDBMS</type-identifier>
<type-version>5.1.0</type-version>
</persistence-use>
</persistence-descriptor>
<jndi-name>CabinBean</jndi-name>
</weblogic-enterprise-bean>
</weblogic-ejb-jar>