Hi David, I cleaned up my old geronimo directory and downloaded the entire directory today.
So it can't be old code. Also I found that once I put the common's jar file in the plan then it works properly. So for some reason common's jar is not in the classpath when starting server with J2EE Deployment. I also looked at parent plan for J2EE Deployment and i.e. deployment-system-plan and this plan also does not have common's jar file in the classpath. My knowledge about Maven is limited. So when you put up the dependecy in maven does it mean its going to be put in the final plan too ? Cheers, Sandip --- "David Jencks (JIRA)" <[EMAIL PROTECTED]> wrote: > [ > http://issues.apache.org/jira/browse/GERONIMO-554?page=comments#action_58173 > ] > > David Jencks commented on GERONIMO-554: > --------------------------------------- > > I think that there is a different problem in your > setup. > > The geronimo-common jar is already on the > j2ee-deployer classpath because it is in the startup > classpath of the parent configuration. > > See assembly maven.xml lines 218ff where bootstrap > is using ${deploy.classpath} > > In maven.xml lines 95ff deploy.classpath is > constructed using the project.xml dependencies > marked with "deploy" > > in project.xml line 105 geronimo-common is marked > with deploy. > > Is it possible that you had an old copy of > geronimo-common? When DeploymentException was moved > there it caused a lot of problems like this. > > > Cannot start Geronimo Server with J2EEDeployment > plan > > > ----------------------------------------------------- > > > > Key: GERONIMO-554 > > URL: > http://issues.apache.org/jira/browse/GERONIMO-554 > > Project: Apache Geronimo > > Type: Bug > > Components: general > > Environment: Windows XP > > Reporter: Sandip Ghayal > > Attachments: j2eeDeployerPlan.patch > > > > When trying to start Geronimo with J2EEDeployer > plan Server crashes with following exception > > 11:39:55,217 INFO [ReadOnlyRepository] Repository > root is file:/F:/geronimo/mod > > > ules/assembly/target/geronimo-1.0-SNAPSHOT/repository/ > > Exception in thread "main" > java.lang.NoClassDefFoundError: > org/apache/geronimo/c > > ommon/DeploymentException > > at > java.lang.Class.getDeclaredMethods0(Native Method) > > at > java.lang.Class.privateGetDeclaredMethods(Class.java:1647) > > at > java.lang.Class.getMethod0(Class.java:1893) > > at > java.lang.Class.getMethod(Class.java:976) > > at > org.apache.geronimo.gbean.runtime.GBeanOperation.<init>(GBeanOperatio > > n.java:90) > > at > org.apache.geronimo.gbean.runtime.GBeanInstance.<init>(GBeanInstance. > > java:244) > > at > org.apache.geronimo.kernel.Kernel.loadGBean(Kernel.java:327) > > at > org.apache.geronimo.kernel.config.Configuration.<init>(Configuration. > > java:221) > > at > sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native > Method) > > at > sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct > > orAccessorImpl.java:39) > > at > sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC > > onstructorAccessorImpl.java:27) > > at > java.lang.reflect.Constructor.newInstance(Constructor.java:274) > > at > org.apache.geronimo.gbean.runtime.GBeanInstance$GBeanLifecycleCallbac > > k.doStart(GBeanInstance.java:763) > > at > org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart > > (GBeanInstanceState.java:318) > > at > org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInsta > > nceState.java:113) > > at > org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(G > > BeanInstanceState.java:135) > > at > org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanI > > nstance.java:475) > > at > org.apache.geronimo.kernel.Kernel.startRecursiveGBean(Kernel.java:348 > > ) > > at > org.apache.geronimo.system.main.Daemon.main(Daemon.java:154) > > The reason for the issue is because > geronimo-common-<version#>.jar is absent from the > j2ee-deployer-plan. > > -- > This message is automatically generated by JIRA. > - > If you think it was sent incorrectly contact one of > the administrators: > > http://issues.apache.org/jira/secure/Administrators.jspa > - > If you want more information on JIRA, or have a bug > to report see: > http://www.atlassian.com/software/jira > > __________________________________ Do you Yahoo!? Read only the mail you want - Yahoo! Mail SpamGuard. http://promotions.yahoo.com/new_mail
