Return-Path: Delivered-To: apmail-geronimo-dev-archive@www.apache.org Received: (qmail 65805 invoked from network); 27 Jan 2005 19:53:16 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 27 Jan 2005 19:53:16 -0000 Received: (qmail 49564 invoked by uid 500); 27 Jan 2005 19:53:11 -0000 Delivered-To: apmail-geronimo-dev-archive@geronimo.apache.org Received: (qmail 49524 invoked by uid 500); 27 Jan 2005 19:53:11 -0000 Mailing-List: contact dev-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: dev@geronimo.apache.org Delivered-To: mailing list dev@geronimo.apache.org Received: (qmail 49507 invoked by uid 99); 27 Jan 2005 19:53:11 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from Unknown (HELO mgd.gluecode.com) (64.14.202.141) by apache.org (qpsmtpd/0.28) with ESMTP; Thu, 27 Jan 2005 11:53:11 -0800 Received: from [192.168.1.5] (dsl093-038-137.pdx1.dsl.speakeasy.net [66.93.38.137]) (authenticated bits=0) by mgd.gluecode.com (8.12.10/8.12.10) with ESMTP id j0RJqWCW027072 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NO) for ; Thu, 27 Jan 2005 11:52:33 -0800 Mime-Version: 1.0 (Apple Message framework v619) In-Reply-To: <20050127193536.43589.qmail@web51604.mail.yahoo.com> References: <20050127193536.43589.qmail@web51604.mail.yahoo.com> Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: <1162DE81-709D-11D9-A4A9-000D93361CAA@gluecode.com> Content-Transfer-Encoding: 7bit From: David Jencks Subject: Re: [jira] Commented: (GERONIMO-554) Cannot start Geronimo Server with J2EEDeployment plan Date: Thu, 27 Jan 2005 11:53:08 -0800 To: dev@geronimo.apache.org X-Mailer: Apple Mail (2.619) X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N On Jan 27, 2005, at 11:35 AM, Sandip Ghayal wrote: > Hi David, > > I think now I might know the reason for confusion from > my side and your side. > > Guess it might not be an issue actually. > > I was trying to use server.jar to load J2EEDeployment > configuration. So trying to bring up server with > J2EEDeployment. So guess the fix is not required then. For the server.jar you should be using the org/apache/geronimo/RuntimeDeployer. Even if you could load J2EEDeployer I think it might have problems with duplicate classes in different classloaders and object names, although I haven't tried it. > > Sorry to create this confusion. no problem. It is very confusing to have 2 nearly identical plans for deployers, and I would certainly like to get to the point of only needing one. We have a vague plan about how to do this but it is somewhat complicated, involving creating for each package you deploy, a special deployer package that is a child of the parent of the package you are deploying (IIRC). I'm hoping we can come up with a simpler system. Many thanks, david jencks > > For JTA Specs I don't have his/her contact > information. I have never talked to the spec lead > directly, may be some one on this list might know ? > > Cheers, > > Sandip > > > --- David Jencks wrote: > >> Hi Sandip, >> >> I'm really confused about what might be happening >> because it's been >> working for me for a long time on os x and linux >> without your patch, >> and similar problems happened to a lot of people >> when the class moved >> to the common package. For a very long time there >> weren't any >> downloadable jars with the class in geronimo-common. >> I'm not entirely >> sure how that happened, I try to stay out of the >> build/distribution >> process. In fact, I think for a while some >> incorrect jars kept getting >> refreshed. I always build geronimo, openejb, >> tranql, tranql-connector, >> and howl, and sometimes activemq, myself to avoid >> these problems. >> Currently there is a really nasty circular >> dependency between geronimo >> and several of these other projects which more or >> less prevents >> building them individually. However, if you build >> geronimo, then the >> other projects, then geronimo again, the >> dependencies should work out >> ok. The "m:" build targets help to some extent >> also. There's supposed >> to be someone trying to fix this situation this >> week, I can only hope >> he succeeds :-) >> >> I'll try to explain what is (supposed) to be >> happening with classpaths >> in assembly. >> >> In project.xml, we list all the jars we're going to >> use. There are >> properties to indicate how we will use them. >> repository >> copied into geronimo repository, >> available for >> elements in plans >> lib >> copied into lib directory, available to >> startup classpaths >> deploy >> added to "bootstrap" deployer.jar manifest >> classpath >> server >> added to server.jar manifest classpath >> client >> added to client.jar manifest classpath >> >> So... >> >> >> geronimo >> >> geronimo-common >> >> ${pom.currentVersion} >> >> true >> true >> true >> >> >> >> puts the jar in both lib and the repo, and adds it >> to the deployer.jar >> manifest classpath >> >> Can you check that the copy in lib actually has the >> DeploymentException >> class in it and that the jar is in the deployer.jar >> manifest classpath? >> >> ---------------- >> >> Thanks for nudging me about the transaction timeout >> issue. I'd like to >> ping the jta spec lead with some related questions. >> I'm having a >> little trouble figuring out who that is:-) Could >> you send me their >> email address if you have it handy? >> >> many thanks! >> >> let me know if I can help with anything, >> david jencks >> >> >> >> >> On Jan 27, 2005, at 10:35 AM, Sandip Ghayal wrote: >> >>> 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)" >> >>> 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) >> > === message truncated === > > > > > __________________________________ > Do you Yahoo!? > Read only the mail you want - Yahoo! Mail SpamGuard. > http://promotions.yahoo.com/new_mail >