• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Jboss Class Not Found Exception

 
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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>
 
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
There is something missing in your xml file.
How about your jboss.xml?
 
maha devan
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Cliff

I haven't changed anything in the web.xml file present in server/default/conf.
Should I need to configure it for proper deplioyment of my ejb


Maha
 
Qi Liang
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Do you use EJB 1.1?
Do you have jboss.xml?
JBoss says he does not found your <ejb-class>. I think maybe your FirstBean is not decleared in jboss.xml.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic