On Mon, 26 Feb 2001 [EMAIL PROTECTED] wrote:
> > > It looks like you have set <persistence-type> to Bean in ejb-jar.xml
> >
> > Unfortunately that's not the reason. I always use
> `<persistence-type>Container</persistence-type>'.
>
> Could you post your ejb-jar.xml and jaws.xml. Which version of JBoss you are
> using (which OS, JDK)?
My `ejb-jar.xml':
<?xml version="1.0" encoding="UTF-8"?>
<!-- $Id: ejb-jar.xml,v 1.1 2001/02/22 13:21:38 aderigs Exp $ -->
<!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>Card</ejb-name>
<home>com.innovidata.dbla.CardHome</home>
<remote>com.innovidata.dbla.Card</remote>
<ejb-class>com.innovidata.dbla.CardEJB</ejb-class>
<persistence-type>Container</persistence-type>
<prim-key-class>java.lang.Integer</prim-key-class>
<reentrant>False</reentrant>
<cmp-field>
<field-name>id</field-name>
</cmp-field>
<cmp-field>
<field-name>usr</field-name>
</cmp-field>
<cmp-field>
<field-name>state</field-name>
</cmp-field>
<primkey-field>id</primkey-field>
<resource-ref>
<res-ref-name>jdbc/Administration</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>
</entity>
</enterprise-beans>
<assembly-descriptor>
<container-transaction>
<method>
<ejb-name>Card</ejb-name>
<method-name>*</method-name>
</method>
<trans-attribute>Supports</trans-attribute>
</container-transaction>
</assembly-descriptor>
</ejb-jar>
My `jaws.xml':
<?xml version="1.0" encoding="UTF-8"?>
<!-- $Id: jaws.xml,v 1.2 2001/02/23 10:34:21 aderigs Exp $ -->
<jaws>
<datasource>jdbc/Administration</datasource>
<type-mapping>Oracle8</type-mapping>
<enterprise-beans>
<entity>
<ejb-name>Card</ejb-name>
<create-table>false</create-table>
</entity>
</enterprise-beans>
</jaws>
I'm using:
- jboss_tomcat (jboss-2.0-FINAL, tomcat-3.2-b7)
- Debian GNU/Linux sid (kernel 2.4.1)
- JDK 1.3
I get the warning (the last but one):
...
[J2EE Deployer] Starting module Card.jar
[Container factory]
Deploying:file:/home/dbla/share/jboss_tomcat/jboss-2.0-FINAL/bin/../tmp/deploy/Administration.ear/ejb1006.jar
[Verifier] Verifying
file:/home/dbla/share/jboss_tomcat/jboss-2.0-FINAL/bin/../tmp/deploy/Administration.ear/ejb1006.jar
[Container factory] Deploying Card
[Bean Cache] Cache policy scheduler started
[Container factory] Deployed application:
file:/home/dbla/share/jboss_tomcat/jboss-2.0-FINAL/bin/../tmp/deploy/Administration.ear/ejb1006.jar
[J2EE Deployer] Starting module Administrator.jar
[Container factory]
Deploying:file:/home/dbla/share/jboss_tomcat/jboss-2.0-FINAL/bin/../tmp/deploy/Administration.ear/ejb1007.jar
[Verifier] Verifying
file:/home/dbla/share/jboss_tomcat/jboss-2.0-FINAL/bin/../tmp/deploy/Administration.ear/ejb1007.jar
[Container factory] Deploying Administrator
[Container factory] Deployed application:
file:/home/dbla/share/jboss_tomcat/jboss-2.0-FINAL/bin/../tmp/deploy/Administration.ear/ejb1007.jar
[J2EE Deployer] Starting module Log.jar
[Container factory]
Deploying:file:/home/dbla/share/jboss_tomcat/jboss-2.0-FINAL/bin/../tmp/deploy/Administration.ear/ejb1008.jar
[Verifier] Verifying
file:/home/dbla/share/jboss_tomcat/jboss-2.0-FINAL/bin/../tmp/deploy/Administration.ear/ejb1008.jar
[Container factory] Deploying Log
[Container factory] Warning: data found in jaws.xml for entity Card but bean is not a
jaws-managed cmp entity in ejb-jar.xml
[Container factory] Deployed application:
file:/home/dbla/share/jboss_tomcat/jboss-2.0-FINAL/bin/../tmp/deploy/Administration.ear/ejb1008.jar
...
Regards
Achim
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
List Help?: [EMAIL PROTECTED]