Hi. Please forgive newbie question! I've put all the info I can think of here, if it's toolong winded jump to the bottom for the summary!
I've installed Geronimo, and am trying to find/get/use a very simple sample application on stateless session beans. Geronimo is installed and working (I'm testing on Windows XP SP2). I've got the book 'Pro Apache Geronimo' by Kishore Kumar. I'm doing the 'Chapter 4 stateless example' as a starting point. I've built the WAR file no problems using ant. The 'Chapter 4' stateless example doesn't deploy on Geronimo 2.0.1, but deploys fine on Geronmo 1.0, so I'm using that, using the console. It reports 'The application was successfully deployed.', and it appears 'running' in the Applications>Web App WARS. When I browse to the application, at http://localhost:8080/UserMgmtClient/ the docroot\index.html page displays correctly. When I follow the link on that page: <body> userMgmtClient.do Test User Management EJB <br> </body> I get a HTTP 500: java.lang.NoClassDefFoundError samples.usermgmt.sl.UserMgmtClient.doGet(Unknown Source) javax.servlet.http.HttpServlet.service(HttpServlet.java:595) javax.servlet.http.HttpServlet.service(HttpServlet.java:688) The UserMgmtClient.java contains: package samples.usermgmt.sl; ... public class UserMgmtClient extends HttpServlet { public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException{ PrintWriter out=response.getWriter(); out.println("Here in UserMgmt Client ...<br> <br>"); The cmd jar tf userMgmt-1.0.war lists: META-INF/ META-INF/MANIFEST.MF WEB-INF/ WEB-INF/geronimo-web.xml index.html WEB-INF/web.xml WEB-INF/classes/ WEB-INF/classes/samples/ WEB-INF/classes/samples/usermgmt/ WEB-INF/classes/samples/usermgmt/sl/ WEB-INF/classes/samples/usermgmt/sl/User.class WEB-INF/classes/samples/usermgmt/sl/UserManagement.class WEB-INF/classes/samples/usermgmt/sl/UserManagementBean.class WEB-INF/classes/samples/usermgmt/sl/UserManagementHome.class WEB-INF/classes/samples/usermgmt/sl/UserManagementLocal.class WEB-INF/classes/samples/usermgmt/sl/UserManagementLocalHome.class WEB-INF/classes/samples/usermgmt/sl/UserMgmtClient.class WEB-INF/classes/samples/usermgmt/sl/UserMgmtException.class WEB-INF/classes/samples/usermgmt/sl/Users.class WEB-INF/lib/ So it's found the war file. But I'm not sure where to look next. Your help is very much appreciated. Any hints at what files I should check much appreciated Summary: Geronimo working fine WAR file loaded Can't find my class. Thanks again Peter -- View this message in context: http://www.nabble.com/Hello%2C-world-EJB-sample-application-needed-tf4531629s134.html#a12932131 Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.
