Hi am beginner in
EJB's I have written a small bean and deployed it in
JBoss. Ihad pated the jar file into the deploy folder and I get the following error.
First
22.2
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.
Class not found on 'com.stardeveloper.ejb.session.FirstEJB': No ClassLoaders found for: com.stardeveloper.ejb.session.FirstEJB
890 ERROR [MainDeployer] could not create deployment: file:/C:/JBoss/server/default/deploy/FirstEJB.jar
.deployment.DeploymentException: Verification of Enterprise Beans failed, see above for error messages.
How to load my ejb.Is it problem in my xml file. Xml is
<ejb-jar>
<description></description>
<enterprise-beans>
<session>
<display-name>FirstEJB</display-name>
<ejb-name>First</ejb-name>
<home>com.stardeveloper.ejb.session.FirstHome</home>
<remote>com.stardeveloper.ejb.session.First</remote>
<ejb-class>com.stardeveloper.ejb.session.FirstEJB</ejb-class>
<session-type>Stateless</session-type>
<transaction-type>Container</transaction-type>
</session>
</enterprise-beans>
<assembly-descriptor>
<container-transaction>
<method>
<ejb-name>First</ejb-name>
<method-name>*</method-name>
</method>
<trans-attribute>Supports</trans-attribute>
</container-transaction>
<security-role>
<description>Users</description>
<role-name>users</role-name>
</security-role>
</assembly-descriptor>
</ejb-jar>