Return-Path: Delivered-To: apmail-geronimo-dev-archive@www.apache.org Received: (qmail 43297 invoked from network); 14 Jul 2006 18:11:44 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 14 Jul 2006 18:11:44 -0000 Received: (qmail 84396 invoked by uid 500); 14 Jul 2006 18:11:40 -0000 Delivered-To: apmail-geronimo-dev-archive@geronimo.apache.org Received: (qmail 84356 invoked by uid 500); 14 Jul 2006 18:11:39 -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 List-Id: Delivered-To: mailing list dev@geronimo.apache.org Delivered-To: moderator for dev@geronimo.apache.org Received: (qmail 21713 invoked by uid 99); 14 Jul 2006 07:42:28 -0000 X-ASF-Spam-Status: No, hits=3.4 required=10.0 tests=DNS_FROM_RFC_ABUSE,HTML_10_20,HTML_MESSAGE,RCVD_IN_BL_SPAMCOP_NET,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of sdpatil@gmail.com designates 66.249.92.175 as permitted sender) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type; b=HEfYEt7Z3pb44o4p52m140P4pemT+aNxjNSs4NyU9kSs0EfNxk6hLIYbgfNm7nBJFWVKfjJzxqHH3AqrZJRwLnELLlTqkValaKW95R6htv3qOKTXP/MvsMRufPh9QxWo3+6ZtsQM2W0y8WILOG9NDJ3J6JdH+3au6r192UBlHI0= Message-ID: <33f25060607140042y7d67f706jc201c4ab5907a26@mail.gmail.com> Date: Fri, 14 Jul 2006 13:12:06 +0530 From: "sunil patil" To: user@geronimo.apache.org, dev@geronimo.apache.org Subject: Need help on classloading related problem(What is shared/lib in Apache Geronimo) MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_72307_22629330.1152862926233" X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N ------=_Part_72307_22629330.1152862926233 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi, I am trying to install Pluto 1.1 portal server into Geronimo. Till now i am able to get About and Admin portlets working. Both these portlets are part of pluto.war. Now i am facing one classloader related problem when i try to install HelloWorld Portlet in HelloWorld.war (Separate war). *Basic Problem* -> I have A.war and B.war they depend on Class1 which is part of 1.jar. What i want is A.war should create object of Class1 and that object should be accessible to class in B.war so where should i put 1.jarand how should i configure both A.war and B.war so that they will be able to look at this class. *Detailed Description ->* Thing is Pluto portlet has PortalDriverServlet which is controller servlet and is shipped with Pluto.war. When it gets request for HelloWorldportlet it wraps that request in object of RenderRequestImpl.java which is in pluto-container-1.1.0-dev.jar and sets is as request parameter and passes control to HelloWorldPortlet. Now HelloWOrldPortlet uses PlutoServlet.java class for handling request and this is again part of pluto-container-1.1.0-dev.jar. When PlutoServlet tries to get object of RenderRequestImpl.java from request it throws ClassCastException because both of them have different class loader. Till now i tried to 1) Create pluto in repository folder containing pluto-container-1.1.0-dev.jar and add dependencies from both pluto.war and HelloWorldPortlet.war on pluto repository. But in that case i get ClasscastException. 2) I tried copying all jars in /lib and removed dependencies but that does not work either 3) I tried copying all jars in /repository/geronimo/jars and that does not work. Can you please let me know what is equivalent of shared/lib in Geronimo. Place where i could copy jars used by more than one application Thank You Sunil ------=_Part_72307_22629330.1152862926233 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline
Hi,
 
I am trying to install Pluto 1.1 portal server into Geronimo. Till now i am able to get About and Admin portlets working. Both these portlets are part of pluto.war. Now i am facing one classloader related problem when i try to install HelloWorld Portlet in HelloWorld.war (Separate war).
 
Basic Problem -> I have A.war and B.war they depend on Class1 which is part of 1.jar. What i want is A.war should create object of Class1 and that object should be accessible to class in B.war so where should i put 1.jar and how should i configure both A.war and B.war so that they will be able to look at this class.
 
Detailed Description ->
Thing is Pluto portlet has PortalDriverServlet which is controller servlet and is shipped with Pluto.war. When it gets request for HelloWorldportlet it wraps that request in object of RenderRequestImpl.java which is in pluto-container-1.1.0-dev.jar and sets is as request parameter and passes control to HelloWorldPortlet. Now HelloWOrldPortlet uses
PlutoServlet.java class for handling request and this is again part of pluto-container-1.1.0-dev.jar. When PlutoServlet tries to get object of RenderRequestImpl.java from request it throws ClassCastException because both of them have different class loader.
Till now i tried to
1) Create pluto in repository folder containing pluto-container-1.1.0-dev.jar  and add dependencies from both pluto.war and HelloWorldPortlet.war on pluto repository. But in that case i get ClasscastException.
2) I tried copying all jars in <Geronimo_Base>/lib and removed dependencies but that does not work either
3) I tried copying all jars in <Geronimo_Base>/repository/geronimo/jars and that does not work.
 
Can you please let me know what is equivalent of shared/lib in Geronimo. Place where i could copy jars used by more than one application
 
Thank You
Sunil
 
------=_Part_72307_22629330.1152862926233--