Newsgroup: it.comp.java
Titolo: Jboss 3.1.2 Eclipse 3.2.2 Lomboz





Utilizzo i programmi in oggetto . 


Ho provato a seguire le istruzioni seguite qui 

http://www.tusc.com.au/tutorial/html/chap1.html
 per fare un semplice session Bean ma quando faccio il 
deplooy  : 


 


 




Warning: The Bean Provider must specify 
the fully-qualified name of the Java class that implements the enterprise bean's 
business methods in the <ejb-class> element.


Info : Class not found: 
au.com.tusc.MySessionSession


 


Qualcuno mi sa 
aiutare ?
 


 


Ciao Matteo


 


 


 


 


---
Outgoing mail is certified Virus 
Free.
Checked by AVG anti-virus system (
http://www.grisoft.com
).
Version: 6.0.543 / 
Virus Database: 337 - Release Date: 21/11/2003



 Warning: The Bean Provider must specify the fully-qualified name of the Java class that implements the enterprise bean's business methods in the <ejb-class> element
C'è poco d'aiutare.lo dice il jboss stesso non riesce a trovare la classe perche hai configurato male i file xml.
verifica jboss.xml ed ejb-jar.xml.
ciao ciao
Marco

 ha scritto nel messaggio
news:pan.2003.11.29....@katamail.com...



 ha scritto nel messaggio
news:Ju2yb.121990$hV.44...@news2.tin.it...




Utilizzo i programmi in oggetto . 


Ho provato a seguire le istruzioni seguite qui 

http://www.tusc.com.au/tutorial/html/chap1.html
 per fare un semplice session Bean ma quando faccio il 
deplooy  : 


 


Warning: The Bean Provider must 
specify the fully-qualified name of the Java class that implements the 
enterprise bean's business methods in the <ejb-class> 
element.




Info : Class not found: 
au.com.tusc.MySessionSession


Eppure la classe 
au.com.tusc.MySessionSession 

esiste ed estende la classe 
au.com.tusc.MySessionBean 



 


/*


* Generated by XDoclet - Do not edit!


*/


package
 au.com.tusc;


/**


*
 
Session
 
layer
 
for
 
MySession.


*
 
@lomboz
 
generated


*/


public
 
class
 
MySessionSession

extends
 au.com.tusc.MySessionBean


implements
 javax.ejb.SessionBean


{


public
 
void
 ejbActivate() 


{


}


public
 
void
 ejbPassivate() 


{


}


public
 
void
 setSessionContext(javax.ejb.SessionContext ctx) 



{


}


public
 
void
 unsetSessionContext() 


{


}


public
 
void
 ejbRemove() 


{


}


public
 
void
 ejbCreate() 
throws
 
javax.ejb.CreateException


{


}


}


 


/*


* Created on 29-nov-03


*


* To change the template for this generated file go 
to


* Window&gt;Preferences&gt;Java&gt;Code 
Generation&gt;Code and Comments


*/


package
 au.com.tusc;


import
 
javax.ejb.SessionBean;


/**


*
 
@ejb.bean
 
name="MySession"


*
 
jndi
-
name="MySessionBean"


*
 
type="Stateless"
 


**/


public
 
abstract
 
class
 MySessionBean 
implements
 SessionBean 
{


/**


*
 
@ejb.interface
-
method


*
 
tview
-
type="remote"
 


**/


public
 
String learnJ2EE(String messg){ 


return
 
"Me too! "
;


}


}


I file   ejb-jar.xml e jboss.xml 
generati da  lomboz sono  :


<?xml version="1.0" 
encoding="UTF-8"?>


<!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, 
Inc.//DTD Enterprise JavaBeans 2.0//EN" 
"
http://java.sun.com/dtd/ejb-jar_2_0.dtd
">


<ejb-jar >


<description><![CDATA[No 
Description.]]></description>


<display-name>Generated by 
XDoclet</display-name>


<enterprise-beans>


<!-- Session Beans -->


<session >


<description><![CDATA[]]></description>


<ejb-name>MySession</ejb-name>


<home>au.com.tusc.MySessionHome</home>


<remote>au.com.tusc.MySession</remote>


<local-home>au.com.tusc.MySessionLocalHome</local-home>


<local>au.com.tusc.MySessionLocal</local>


<ejb-class>au.com.tusc.MySessionSession</ejb-class>


<session-type>Stateless</session-type>


<transaction-type>Container</transaction-type>


</session>


<!--


To add session beans that you have deployment 
descriptor info for, add


a file to your XDoclet merge directory called 
session-beans.xml that contains


the <session></session> markup for those 
beans.


-->


<!-- Entity Beans -->


<!--


To add entity beans that you have deployment 
descriptor info for, add


a file to your XDoclet merge directory called 
entity-beans.xml that contains


the <entity></entity> markup for those 
beans.


-->


<!-- Message Driven Beans -->


<!--


To add message driven beans that you have deployment 
descriptor info for, add


a file to your XDoclet merge directory called 
message-driven-beans.xml that contains


the <message-driven></message-driven> 
markup for those beans.


-->


</enterprise-beans>


<!-- Relationships -->


<!-- Assembly Descriptor -->


<assembly-descriptor >


<!--


To add additional assembly descriptor info here, add 
a file to your


XDoclet merge directory called 
assembly-descriptor.xml that contains


the 
<assembly-descriptor></assembly-descriptor> markup.


-->


<!-- finder permissions -->


<!-- transactions -->


<!-- finder transactions -->


</assembly-descriptor>


</ejb-jar>


 


Qualcuno mi sa aiutare ?




 


Ciao Matteo


 


---
Outgoing mail is certified Virus 
Free.
Checked by AVG anti-virus system (
http://www.grisoft.com
).
Version: 6.0.545 / 
Virus Database: 339 - Release Date: 
27/11/2003







Controlla server.log del jboss.

Info : Class not found: au.com.tusc.MySessionSession
Solitamente con un rebuild del progetto e l'undeploy/deploy tutto
torna a funzionare.