The error message is not from the webpage whilst deploying myphonebook ear file, but from the geronimo.out (located in the var/log/geronimo.out). After deployed, the webpage shows deployment successful indeed.
This situation also happens on the myphonebook sample. The console say the deployment works, but the geronimo.out reports error like "java.lang.Exception: Could not load org/apache/geronimo/samples/myphonebookpak/MyPhonebookBean.class." In addition, I can not even access to the myphonebook application through jsp. For example, http://localhost:8080/myphonebook where myphonebook is the name specified in the geronimo-web.xml file. The browser reports messages "The requested resource (/myphonebook) is not available." The database and table are created successfully by running SQL through the DB manager. It shows two records NAME NUMBER John 1234 Joe 5678 I am confused. Am I missing anything? Thank you for replying my question. ----- Original Message ---- From: Prasad Kashyap <[EMAIL PROTECTED]> To: [email protected] Sent: Wednesday, 31 October, 2007 12:08:53 AM Subject: Re: error whilst deploying entity bean I just installed this sample app and I didn't see any of these problems. Did you create the database and run the sql to create tables as described in the sample ? Cheers Prasad On 10/28/07, Neo Anderson <[EMAIL PROTECTED]> wrote: > > I am new to Geronimo 2.0.2 with tomecat 6. I follow the sample at > http://cwiki.apache.org/GMOxDOC20/very-simple-entity-ejb-example.html. > However, I encounter a problem. The deploy process successes, but the > geronimo.out file has error as A). > > What might cause this problem? > > Thank you very much > > A.) > > java.lang.Exception: Could not load > net/sf/sample/PublicationLocal.class > at > org.apache.xbean.finder.ClassFinder.readClassDef(ClassFinder.java:690) > at > org.apache.xbean.finder.ClassFinder.<init>(ClassFinder.java:139) > at > org.apache.xbean.finder.ClassFinder.<init>(ClassFinder.java:111) > at > org.apache.openejb.config.AnnotationDeployer$DiscoverAnnotatedBeans.deploy(AnnotationDeployer.java:222) > at > org.apache.openejb.config.AnnotationDeployer$DiscoverAnnotatedBeans.deploy(AnnotationDeployer.java:181) > at > org.apache.openejb.config.AnnotationDeployer.deploy(AnnotationDeployer.java:150) > at > org.apache.openejb.config.ConfigurationFactory$Chain.deploy(ConfigurationFactory.java:118) > at > org.apache.openejb.config.ConfigurationFactory.configureApplication(ConfigurationFactory.java:332) > at > org.apache.geronimo.openejb.deployment.EjbModuleBuilder.configureApplication(EjbModuleBuilder.java:614) > at > org.apache.geronimo.openejb.deployment.EjbModuleBuilder.getEjbJarInfo(EjbModuleBuilder.java:551) > at > org.apache.geronimo.openejb.deployment.EjbModuleBuilder.initContext(EjbModuleBuilder.java:473) > at > org.apache.geronimo.openejb.deployment.EjbModuleBuilder$$FastClassByCGLIB$$cd80af20.invoke(<generated>) > at > net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53) > at > org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethodInvoker.java:38) > at > org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:124) > at > org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:830) > at > org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java:57) > at > org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(RawOperationInvoker.java:35) > at > org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(ProxyMethodInterceptor.java:96) > at > org.apache.geronimo.j2ee.deployment.ModuleBuilder$$EnhancerByCGLIB$$b1a620ad.initContext(<generated>) > at > org.apache.geronimo.j2ee.deployment.EARConfigBuilder.buildConfiguration(EARConfigBuilder.java:576) > at > org.apache.geronimo.j2ee.deployment.EARConfigBuilder$$FastClassByCGLIB$$38e56ec6.invoke(<generated>) > at > net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53) > at > org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethodInvoker.java:38) > at > org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:124) > at > org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:830) > at > org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java:57) > at > org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(RawOperationInvoker.java:35) > at > org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(ProxyMethodInterceptor.java:96) > at > org.apache.geronimo.j2ee.deployment.CorbaGBeanNameSource$$EnhancerByCGLIB$$e8d39ac2.buildConfiguration(<generated>) > at > org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:304) > at > org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:126) > at > org.apache.geronimo.deployment.Deployer$$FastClassByCGLIB$$734a235d.invoke(<generated>) > at > net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53) > at > org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethodInvoker.java:38) > at > org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:124) > at > org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:865) > at > org.apache.geronimo.kernel.basic.BasicKernel.invoke(BasicKernel.java:239) > at > org.apache.geronimo.deployment.plugin.local.AbstractDeployCommand.doDeploy(AbstractDeployCommand.java:116) > at > org.apache.geronimo.deployment.plugin.local.DistributeCommand.run(DistributeCommand.java:61) > at java.lang.Thread.run(Thread.java:595) > > ________________________________ > For ideas on reducing your carbon footprint visit Yahoo! For Good this > month. ___________________________________________________________ Yahoo! Answers - Got a question? Someone out there knows the answer. Try it now. http://uk.answers.yahoo.com/
