Guys, I really need help with this as i am working on this problem since 2 
days, still could not solve thsi problem and I am runnign out of time. It is 
very frustrating for me. I am using jboss 4.0.1

I have placed my ejb jar file in web-inf / lib/myejb.jar
Now, when I try to access it, it is giving me a noclassfoundexception.
Following is the part of code that is throwing exception. Thanks a ton for your 
time.



  | 
  | <?xml version="1.0" encoding="UTF-8"?>
  | <!DOCTYPE ejb-jar PUBLIC '-//Sun Microsystems, Inc.//DTD Enterprise 
JavaBeans 1.1//EN'
  | 'http://java.sun.com/j2ee/dtds/ejb-jar_1_1.dtd'>
  | 
  | <ejb-jar>
  |      <description>MyApp</description>
  |      <display-name>MyApp</display-name>
  |      <enterprise-beans>
  |        <session>
  |          <ejb-name>MyApp</ejb-name>
  |          <home>com.admin.dao.EJBHome</home>
  |          <remote>com.admin.dao.EJBObject</remote>
  |          <ejb-class>com.admin.dao.EJBBean</ejb-class>
  |          <session-type>Stateless</session-type>
  |          <transaction-type>Bean</transaction-type>
  |        </session>
  |      </enterprise-beans>
  | </ejb-jar>
  | 
  | jboss.xml://
  | 
  | <?xml version="1.0" encoding="UTF-8"?>
  | <!DOCTYPE jboss PUBLIC "-//JBoss//DTD JBOSS 3.2//EN" 
"http://www.jboss.org/j2ee/dtd/jboss_3_2.dtd";>
  | <jboss>
  |   <enterprise-beans>
  |     <session>
  |       <ejb-name>MyApp</ejb-name>
  |       <jndi-name>MyApp</jndi-name>
  |     </session>
  |   </enterprise-beans>
  | </jboss>
  | 
  | //ejb client code
  | 
  | try {
  |                     Context ic = new InitialContext();
  |                     Object obj = ic.lookup("MyApp");
  |                     
  |                      home = (EJBHome) PortableRemoteObject.narrow(obj, 
EJBHome.class);
  |             
  |             }catch(Exception ex){                   
  |                     ex.printStackTrace();   
  |             }
  |             
  | 
  | 

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

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


-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to