C:\course\corba\src2>java -version java version "1.5.0_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_04-b05) Java HotSpot(TM) Client VM (build 1.5.0_04-b05, mixed mode, sharing)
Ted Kirby-2 wrote: > > On 9/27/07, PeterAU2 <[EMAIL PROTECTED]> wrote: >> >> I don't have a server.log; I have a geronimo.log which I guess is the >> right >> one? > yes, sorry. good guess! :-) >> Please find attached two log files: >> geronimo.log.V2.0.1.zip is the log file when attempting to deploy under >> 2.0.1. This deployment fails because of an error in the XML file; I can't >> tell that problem. > > Yeah, 1.0 is rather old, and deployment plans and version have changed > since then. > Here are some samples, and you may get proper deployment plans from them: > http://cwiki.apache.org/GMOxDOC20/sample-applications.html > Can you paste your geronimo-web.xml file? > >> http://www.nabble.com/file/p12933272/geronimo.log.v2.0.1.zip >> geronimo.log.v2.0.1.zip >> geronimo.log.v1.0.zip is the log file from deploying (which works) and >> attempting to run (which fails as described in my original post). >> http://www.nabble.com/file/p12933272/geronimo.log.v1.0.zip >> geronimo.log.v1.0.zip > > this one is old and kind of nasty: > Caused by: org.omg.CORBA.INITIALIZE: Cannot instantiate > com.sun.corba.se.internal.javax.rmi.PortableRemoteObject vmcid: 0x0 > minor code: 0 completed: No > at > javax.rmi.PortableRemoteObject.createDelegateIfSpecified(PortableRemoteObject.java:184) > at javax.rmi.PortableRemoteObject.<clinit>(PortableRemoteObject.java:61) > ... 22 more > Caused by: java.lang.ClassNotFoundException: > com.sun.corba.se.internal.javax.rmi.PortableRemoteObject (no security > manager: RMI class loader disabled) > at sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:371) > > what java/JDK are you running with? Can you respond with java > -version output? You should be running with a Sun JDK. It seems you > are not... > > Ted Kirby >> Peter >> >> Ted Kirby-2 wrote: >> > >> > Can you send your server log, from GERONIMO_HOME/var/log/server.log? >> > zip it if it is large. >> > >> > On 9/27/07, PeterAU2 <[EMAIL PROTECTED]> wrote: >> >> >> >> <<added detail of web.xml>> >> >> >> >> 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 >> >> >> >> Oh, here's the WEB-INF\web.xml file: >> >> <web-app> >> >> <display-name>Hello World</display-name> >> >> <description>Hello World Web Application</description> >> >> >> >> <servlet> >> >> <servlet-name>UserMgmtClient</servlet-name> >> >> >> >> <servlet-class>samples.usermgmt.sl.UserMgmtClient</servlet-class> >> >> </servlet> >> >> >> >> <servlet-mapping> >> >> <servlet-name>UserMgmtClient</servlet-name> >> >> <url-pattern>*.do</url-pattern> >> >> </servlet-mapping> >> >> >> >> <!-- Welcome File List --> >> >> <welcome-file-list> >> >> <welcome-file>index.html</welcome-file> >> >> </welcome-file-list> >> >> >> >> <ejb-ref> >> >> <ejb-ref-name>ejb/userMgmt</ejb-ref-name> >> >> <ejb-ref-type>Session</ejb-ref-type> >> >> <home>samples.usermgmt.sl.UserManagementHome</home> >> >> <remote>samples.usermgmt.sl.UserManagement</remote> >> >> </ejb-ref> >> >> >> >> >> >> </web-app> >> >> Summary: >> >> Geronimo working fine >> >> WAR file loaded >> >> Can't find my class. >> >> >> >> Thanks again >> >> >> >> Peter >> >> -- >> >> View this message in context: >> >> >> http://www.nabble.com/No-class-def-error-in-Hello%2C-world-EJB-sample-application-tf4531629s134.html#a12932131 >> >> Sent from the Apache Geronimo - Users mailing list archive at >> Nabble.com. >> >> >> >> >> > >> > >> >> -- >> View this message in context: >> http://www.nabble.com/No-class-def-error-in-Hello%2C-world-EJB-sample-application-tf4531629s134.html#a12933272 >> Sent from the Apache Geronimo - Users mailing list archive at Nabble.com. >> >> > > -- View this message in context: http://www.nabble.com/No-class-def-error-in-Hello%2C-world-EJB-sample-application-tf4531629s134.html#a12933686 Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.
