[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: error deploying simple session bean

jaikiran do-not-reply at jboss.com
Wed Aug 20 01:19:45 EDT 2008


"mpurdy1973" wrote : 
  | Info   : Class not found on 'prj.ejb2.HelloWorldHomeRemote': No ClassLoaders found for: prj.ejb2.HelloWorldHomeRemote
  | 
  | Info   : Class not found on 'prj.ejb2.HelloWorldRemote': No ClassLoaders found for: prj.ejb2.HelloWorldRemote
  | 
  | Info   : Class not found on 'prj.ejb2.HelloWorldHomeLocal': No ClassLoaders found for: prj.ejb2.HelloWorldHomeLocal
  | 
  | 15:29:08,113 ERROR [MainDeployer] Could not create deployment: file:/C:/jboss/server/default/deploy/prjEJB.jar
  | 
  | --------------------------------------------------------------
  | jar file structure
  | --------------------------------------------------------------
  | META-INF/
  | META-INF/MANIFEST.MF
  | prj/
  | prj/ejb2/
  | META-INF/ejb-jar.xml
  | META-INF/jboss.xml
  | prj/ejb2/HelloWorldSessionBean.class
  | prj/ejb2/HelloWorldSessionHomeLocal.class
  | prj/ejb2/HelloWorldSessionLocal.class
  | prj/ejb2/HelloWorldSessionRemote.class
  | prj/ejb2/HelloWorldSessionHomeRemote.class
  | 
  | 
  | ---------------------------------------------------------------
  | 
  | 
  | -------------------------------------------------------------
  | ejb-jar.xml
  | -------------------------------------------------------------
  | 
  | <?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>
  |   | 
  |   |   <display-name>prjEJB.jar</display-name>
  |   |   <enterprise-beans>
  |   | 
  |   |     <session>
  |   |       <display-name>Hello World Session EJB</display-name>
  |   |       <ejb-name>HelloWorldSessionEJB</ejb-name>
  |   |       <home>prj.ejb2.HelloWorldHomeRemote</home>
  |   |       <remote>prj.ejb2.HelloWorldRemote</remote>
  |   |       <local-home>prj.ejb2.HelloWorldHomeLocal</local-home>
  |   |       <local>prj.ejb2.HelloWorldLocal</local>
  |   |       <ejb-class>prj.ejb2.HelloWorldSessionBean</ejb-class>
  |   |       <session-type>Stateless</session-type>
  |   |       <transaction-type>Bean</transaction-type>
  |   |     </session>
  |   |     
  |   |   </enterprise-beans>
  |   | 
  |   | </ejb-jar>
  | 
  | 
  | 
  | 
  | 

You have typed the classnames wrong in the ejb-jar.xml. For example, your jar contains prj/ejb2/HelloWorldSessionHomeLocal.class whereas you have mentioned (a non-existent) prj.ejb2.HelloWorldHomeLocal class in the ejb-jar.xml

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4171414#4171414

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4171414



More information about the jboss-user mailing list