Do Entity beans have a session-type, I could be wrong here. I am not very experienced here as well.
Other than that, I think you have to put the XML file in a directory called, META-INF and then make the jar file.
Devraj
At 12:35 PM 6/26/2001 +0200, you wrote:
Hi all! :)
I've realized a jar with this directory structure:
Fantacalcio.jar
<------------------->
[...]
fantacalcio/CalciatoriBean.class
fantacalcio/CalciatoriHome.class
fantacalcio/Calciatori.class
[...]
All of them belong to the package "fantacalcio". The ejb-jar.xml I wrote is:
<?xml version="1.0" encoding="UTF-8"?>
<ejb-jar>
<description>Fantacalcio</description>
<display-name>Test di Fantacalcio</display-name>
<enterprise-beans>
<entity>
<ejb-name>Calciatori</ejb-name>
<home>fantacalcio.CalciatoriHome</home>
<remote>fantacalcio.Calciatori</remote>
<ejb-class>fantacalcio.CalciatoriBean</ejb-class>
<session-type>Stateless</session-type>
<prim-key-class>int</prim-key-class>
<transaction-type>Bean</transaction-type>
<persistence-type>Bean</persistence-type>
<reentrant>False</reentrant>
</entity>
</enterprise-beans>
</ejb-jar>
but the deploy fails:
[J2EE Deployer Default] Starting deploy failed!
[Auto deploy] org.jboss.ejb.DeploymentException: Could not deploy file:/usr/local/jboss/tmp/deploy/Default/deploy, Cause:java.lang.ClassNotFoundException: fantacalcio.CalciatoriHome
I've tried almost everything I can think about... and now I'm begging for help... please, help me! ;-)
Thanks in advance,
Mano :)
