geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "lubaki nsele" <nsel...@hotmail.com>
Subject Re: Geronimo ClassLoader Architecture
Date Wed, 04 Jan 2006 20:48:25 GMT
<html><div style='background-color:'><DIV class=RTE>
<P>Thanks for your reply, but I found that out that issue is related with JDK 1.5 with
release 1.0. It works fine when using 1.4.x.&nbsp;</P>
<P><A href="http://mail-archives.apache.org/mod_mbox/geronimo-dev/200411.mbox/%3CPine.LNX.4.58.0411170416430.6656@saturn.opentools.org%3E">http://mail-archives.apache.org/mod_mbox/geronimo-dev/200411.mbox/%3CPine.LNX.4.58.0411170416430.6656@saturn.opentools.org%3E</A></P>
<P>Lubaki<BR><BR></P></DIV>
<DIV></DIV>
<BLOCKQUOTE style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #a0c6e5 2px solid;
MARGIN-RIGHT: 0px"><FONT style="FONT-SIZE: 11px; FONT-FAMILY: tahoma,sans-serif">
<HR color=#a0c6e5 SIZE=1>

<DIV></DIV>From:&nbsp;&nbsp;<I>Rajiv M &lt;rmadassery77@gmail.com&gt;</I><BR>Reply-To:&nbsp;&nbsp;<I>user@geronimo.apache.org</I><BR>To:&nbsp;&nbsp;<I>user@geronimo.apache.org</I><BR>Subject:&nbsp;&nbsp;<I>Re:
Geronimo ClassLoader Architecture</I><BR>Date:&nbsp;&nbsp;<I>Tue,
3 Jan 2006 12:33:56 +0530</I><BR>
<DIV></DIV><BR>
<DIV>hello,</DIV>
<DIV></DIV>
<DIV>&nbsp;</DIV>
<DIV></DIV>
<DIV>my prev. reply was quarantined by spam engine. dont know why. so rephrasing without
inline code samples/urls</DIV>
<DIV></DIV>
<DIV><BR>1) But if you need to make JNDI calls for EJB lookup, you need to follow
certain steps as mentioned in the article Google search - "Geronimo CORBA interoperability"<BR>&nbsp;<BR>2)
Otherwise you can make a pure RMI lookup ie, do not use the narrow method call in the EJB
client. rather do a direct casting of the interface. </DIV>
<DIV></DIV>
<DIV></DIV>
<DIV>&nbsp;</DIV>
<DIV></DIV>
<DIV>I used to get the same error on AG 1.0 while using the "narrow" method. Once it
was replaced it worked (RMI lookup). But if u need to make a JNDI lookup the article should
guide you.</DIV>
<DIV></DIV>
<DIV>&nbsp;</DIV>
<DIV></DIV>
<DIV>thnx,</DIV>
<DIV></DIV>
<DIV>rajiv</DIV>
<DIV></DIV>
<DIV><SPAN class=gmail_quote>On 12/28/05, <B class=gmail_sendername>lubaki
nsele</B> &lt;<A href="mailto:nsele21@hotmail.com">nsele21@hotmail.com</A>&gt;
wrote:</SPAN> </DIV>
<BLOCKQUOTE class=gmail_quote style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT:
#ccc 1px solid">
<DIV></DIV>
<DIV></DIV>
<P>With Geronimo1.0 I am trying to test if this issue is resolved but this exception
is being thrown when trying to contact ejbs. It was working with M5 at least.</P>
<DIV></DIV>
<P>Any idea?</P>
<DIV></DIV>
<P>Lubaki</P>
<DIV></DIV>
<P>Caused by: org.omg.CORBA.INITIALIZE: Cannot instantiate com.sun.corba.se.interna<BR>l.javax.rmi.PortableRemoteObject&nbsp;
vmcid: 0x0&nbsp; minor code: 0&nbsp; completed: No<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
at javax.rmi.PortableRemoteObject.createDelegateIfSpecified
<DIV></DIV>(PortableRemo<BR>teObject.java:184)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
at javax.rmi.PortableRemoteObject.&lt;clinit&gt;(PortableRemoteObject.java:61)
<P></P>
<DIV></DIV>
<P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ... 31 more<BR>Caused
by: java.lang.ClassNotFoundException: com.sun.corba.se.internal.javax.rmi<BR>.PortableRemoteObject
(no security manager: RMI class loader disabled)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
at sun.rmi.server.LoaderHandler.loadClass
<DIV></DIV>(LoaderHandler.java:371)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
at sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:165)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
at java.rmi.server.RMIClassLoader$2.loadClass(RMIClassLoader.java:620)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
at org.apache.geronimo.system.rmi.RMIClassLoaderSpiImpl.loadClass
<DIV></DIV>(RMICla<BR>ssLoaderSpiImpl.java:48)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
at java.rmi.server.RMIClassLoader.loadClass(RMIClassLoader.java:202)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
at java.rmi.server.RMIClassLoader.loadClass(RMIClassLoader.java:135)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
at javax.rmi.PortableRemoteObject.loadDelegateClass
<DIV></DIV>(PortableRemoteObject<BR>.java:205)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
at javax.rmi.PortableRemoteObject.createDelegateIfSpecified(PortableRemo<BR>teObject.java:182)
<P></P>
<DIV></DIV>
<P>&nbsp;</P>
<DIV></DIV>
<P><BR><BR>&nbsp;</P>
<DIV></DIV>
<BLOCKQUOTE style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #a0c6e5 2px solid;
MARGIN-RIGHT: 0px"><FONT style="FONT-SIZE: 11px; FONT-FAMILY: tahoma,sans-serif">
<DIV></DIV>
<HR color=#a0c6e5 SIZE=1>

<DIV></DIV>From: <I>"lubaki nsele" &lt;<A href="mailto:nsele21@hotmail.com">nsele21@hotmail.com</A>&gt;</I><BR>Reply-To:
<I><A href="mailto:user@geronimo.apache.org">
<DIV></DIV>user@geronimo.apache.org</A></I><BR>To: <I><A
href="mailto:user@geronimo.apache.org">user@geronimo.apache.org</A></I><BR>Subject:
<I>Re: Geronimo ClassLoader Architecture
<DIV></DIV></I><BR>Date: <I>Tue, 13 Dec 2005 17:18:47 +0000</I><BR><BR>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<P>Gianny,</P>
<DIV></DIV>
<P>Aaron pointed out to me that hidden classes will be available for next release, so
I suspected that may be you would like me to test this with current source code in svn. Also,
the inverseclassloading was tested with M5, I can run the same test again with the newly build.
<DIV></DIV>
<P></P>
<DIV></DIV>
<P>Thanks, Lubaki<BR><BR></P>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<BLOCKQUOTE style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #a0c6e5 2px solid;
MARGIN-RIGHT: 0px"><FONT style="FONT-SIZE: 11px; FONT-FAMILY: tahoma,sans-serif">
<DIV></DIV>
<HR color=#a0c6e5 SIZE=1>

<DIV></DIV>
<DIV></DIV>
<DIV></DIV>From:&nbsp;&nbsp;<I>Gianny Damour &lt;<A href="mailto:gianny.damour@optusnet.com.au">gianny.damour@optusnet.com.au</A>&gt;</I><BR>Reply-To:&nbsp;&nbsp;<I><A
href="mailto:user@geronimo.apache.org">
<DIV></DIV>user@geronimo.apache.org</A></I><BR>To:&nbsp;&nbsp;<I><A
href="mailto:user@geronimo.apache.org">user@geronimo.apache.org</A></I><BR>Subject:&nbsp;&nbsp;<I>Re:
Geronimo ClassLoader Architecture
<DIV></DIV></I><BR>Date:&nbsp;&nbsp;<I>Tue, 13 Dec 2005
22:53:59 +1100</I><BR>&gt;Thanks for this test.<BR>&gt;<BR>&gt;Could
you please confirm that the Axis jar is defined as a <BR>&gt;dependency or include?
If yes, then I'm afraid I will need a sample
<DIV></DIV><BR>&gt;EJB module that I could use to track the problem.<BR>&gt;<BR>&gt;BTW,
there is also a "hidden-classes" element which can be used to <BR>&gt;declare classes
hidden from this configuration:<BR>&gt;<BR>&gt;&lt;openejb-jar
<DIV></DIV><BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;xmlns="<A
href="http://www.openejb.org/xml/ns/openejb-jar">http://www.openejb.org/xml/ns/openejb-jar</A>"<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;configId="com/nsele/atl/odonEJB"
<DIV></DIV><BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;inverseClassloading="true"&gt;<BR>&gt;&nbsp;&nbsp;
&lt;hidden-classes&gt;<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;filter&gt;org.apache.axis&lt;/filter&gt;<BR>&gt;&nbsp;&nbsp;
&lt;/hidden-classes&gt;<BR>&gt;<BR>&gt;Could you please give it
a give try?
<DIV></DIV><BR>&gt;<BR>&gt;Thanks,<BR>&gt;Gianny<BR>&gt;<BR>&gt;lubaki
nsele wrote:<BR>&gt;<BR>&gt;&gt;Gianny, This did not work; it is still
loading the parent <BR>&gt;&gt;classloader before the child.<BR>&gt;&gt;<BR>&gt;&gt;1)
Tried first the ejb plan&nbsp;&nbsp; It did not work
<DIV></DIV><BR>&gt;&gt;<BR>&gt;&gt;2) Tried geronimo-application
in the EAR where the ejb is one of <BR>&gt;&gt;the modules; It did not work<BR>&gt;&gt;<BR>&gt;&gt;openejb
file<BR>&gt;&gt;<BR>&gt;&gt;&nbsp;&nbsp;&lt;?xml version="1.0"?&gt;
<DIV></DIV><BR>&gt;&gt;&lt;openejb-jar<BR>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;
xmlns="<A href="http://www.openejb.org/xml/ns/openejb-jar">http://www.openejb.org/xml/ns/openejb-jar</A>
<DIV></DIV>"<BR>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;
configId="com/nsele/atl/odonEJB"<BR>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;
inverseClassloading="true"&gt;<BR>&gt;&gt;<BR>&gt;&gt;<BR>&gt;&gt;&nbsp;&nbsp;Here
is my configuration in geronimo-application.xml in EAR;<BR>
<DIV></DIV>&gt;&gt;<BR>&gt;&gt;&lt;?xml version="1.0"
encoding="UTF-8"?&gt;<BR>&gt;&gt;&lt;application<BR>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;
xmlns="<A href="http://geronimo.apache.org/xml/ns/j2ee/application">
<DIV></DIV>http://geronimo.apache.org/xml/ns/j2ee/application</A>"<BR>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;
xmlns:sys="<A href="http://geronimo.apache.org/xml/ns/deployment-1.0">
<DIV></DIV>http://geronimo.apache.org/xml/ns/deployment-1.0</A>"<BR>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
configId="com/nsele/atl/odon"<BR>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
inverseClassloading="true"&gt;<BR>&gt;&gt;<BR>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;
<BR>&gt;&gt;------------------------------------------------------------------------
<DIV></DIV><BR>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;
From:&nbsp;&nbsp;/Gianny Damour &lt;<A href="mailto:gianny.damour@optusnet.com.au">gianny.damour@optusnet.com.au</A>&gt;/<BR>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;
Reply-To:&nbsp;&nbsp;/user@
<DIV></DIV><A href="http://geronimo.apache.org/">geronimo.apache.org/</A><BR>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;
To:&nbsp;&nbsp;/user@<A href="http://geronimo.apache.org/">
<DIV></DIV>geronimo.apache.org/</A><BR>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;
Subject:&nbsp;&nbsp;/Re: Geronimo ClassLoader Architecture/<BR>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;
Date:&nbsp;&nbsp;/Tue, 13 Dec 2005 09:02:06 +1100/<BR>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;
&gt;Hi Lubaki,<BR>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt;<BR>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;
&gt;You can use the optional attribute "inverseClassloading" at
<DIV></DIV><BR>&gt;&gt;the<BR>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;
&gt;configuration level to force a child first class loading:<BR>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;
&gt;<BR>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt;&lt;openejb-jar
<BR>&gt;&gt;xmlns="<A href="http://www.openejb.org/xml/ns/openejb-jar-2.0">
<DIV></DIV>http://www.openejb.org/xml/ns/openejb-jar-2.0</A>"<BR>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;
&gt;&nbsp;&nbsp;configId="your id"<BR>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;
&gt;&nbsp;&nbsp;inverseClassloading="true"&gt;<BR>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;
&gt;<BR>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt;When set
to true, classes defined by this configuraton take
<DIV></DIV><BR>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;
&gt;precedence over the classes defined by the parent <BR>&gt;&gt;configurations.<BR>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;
&gt;<BR>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt;Thanks,<BR>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;
&gt;Gianny<BR>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt;<BR>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;
&gt;<BR>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt;lubaki
nsele wrote:
<DIV></DIV><BR>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;
&gt;<BR>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt;&gt;Geronimo
classloader makes available all classes loaded by<BR>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;
&gt;&gt;org/apache/geronimo/Server to his children. This is a huge <BR>&gt;&gt;issue<BR>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;
&gt;&gt;because Geronimo uses a different library that I am using
<DIV></DIV><BR>&gt;&gt;with EJB&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt;&gt;application.
For example, I am usiing axis1.0 and <BR>&gt;&gt;Geronimo server<BR>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;
&gt;&gt;is using axis-1.3GerXXXX.&nbsp;&nbsp;This discussion had been <BR>&gt;&gt;discussed
in<BR>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt;&gt;the following
threads
<DIV></DIV><BR>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;
&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<BR>&gt;&gt;
&gt;&gt;<A href="http://mail-archives.apache.org/mod_mbox/geronimo-dev/200506.mbox/<8C051B4D-95E3-4876-8941-1D9855BB8003@iq80.com>">
<DIV></DIV>http://mail-archives.apache.org/mod_mbox/geronimo-dev/200506.mbox/%3C8C051B4D-95E3-4876-8941-1D9855BB8003@iq80.com%3E</A><BR>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;
&gt;&gt;<BR>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; <BR>&gt;&gt;
&gt;&gt;<A href="http://blog.gmane.org/gmane.comp.java.geronimo.devel/day=20050617">
<DIV></DIV>http://blog.gmane.org/gmane.comp.java.geronimo.devel/day=20050617</A><BR>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;
&gt;&gt;&nbsp;&nbsp; IS anyone knows the fix to this or how to overcome this
<BR>&gt;&gt;issue?<BR>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;
&gt;&gt;&nbsp;&nbsp;Lubaki<BR>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;
&gt;
<DIV></DIV><BR>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;
&gt;<BR>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt;<BR>&gt;&gt;<BR>&gt;<BR>&gt;<BR></FONT></BLOCKQUOTE>
<DIV></DIV><BR></FONT></BLOCKQUOTE>
<DIV></DIV></BLOCKQUOTE>
<DIV></DIV><BR><BR clear=all><BR>-- <BR>~~~Truth is out
there.~~~
<DIV></DIV>
<DIV></DIV><BR></FONT></BLOCKQUOTE></div></html>


Mime
View raw message