Return-Path: Delivered-To: apmail-geronimo-user-archive@www.apache.org Received: (qmail 81966 invoked from network); 27 Sep 2007 23:25:13 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 27 Sep 2007 23:25:13 -0000 Received: (qmail 75013 invoked by uid 500); 27 Sep 2007 23:24:57 -0000 Delivered-To: apmail-geronimo-user-archive@geronimo.apache.org Received: (qmail 75000 invoked by uid 500); 27 Sep 2007 23:24:57 -0000 Mailing-List: contact user-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: user@geronimo.apache.org List-Id: Delivered-To: mailing list user@geronimo.apache.org Received: (qmail 74989 invoked by uid 99); 27 Sep 2007 23:24:57 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 27 Sep 2007 16:24:57 -0700 X-ASF-Spam-Status: No, hits=2.5 required=10.0 tests=SPF_HELO_PASS,SPF_PASS,URI_NOVOWEL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 27 Sep 2007 23:24:57 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1Ib2ij-0002vf-8i for user@geronimo.apache.org; Thu, 27 Sep 2007 16:24:37 -0700 Message-ID: <12932131.post@talk.nabble.com> Date: Thu, 27 Sep 2007 16:24:37 -0700 (PDT) From: PeterAU2 To: user@geronimo.apache.org Subject: Hello, world EJB sample application needed MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: info@plusplus.com.au X-Virus-Checked: Checked by ClamAV on apache.org 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: userMgmtClient.do Test User Management EJB
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 ...

"); 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.