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, 28 Dec 2005 16:34:10 GMT
<html><div style='background-color:'><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>
<P>Any idea?</P>
<P>Lubaki</P>
<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(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>&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(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(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(PortableRemoteObject<BR>.java:205)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
at javax.rmi.PortableRemoteObject.createDelegateIfSpecified(PortableRemo<BR>teObject.java:182)</P>
<P>&nbsp;</P>
<P><BR><BR>&nbsp;</P>
<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>
From: <I>"lubaki nsele" &lt;nsele21@hotmail.com&gt;</I><BR>Reply-To:
<I>user@geronimo.apache.org</I><BR>To: <I>user@geronimo.apache.org</I><BR>Subject:
<I>Re: Geronimo ClassLoader Architecture</I><BR>Date: <I>Tue, 13 Dec
2005 17:18:47 +0000</I><BR><BR>
<DIV>
<DIV class=RTE>
<P>Gianny,</P>
<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.</P>
<P>Thanks, 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>Gianny Damour &lt;gianny.damour@optusnet.com.au&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,
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 <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<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;xmlns="http://www.openejb.org/xml/ns/openejb-jar"<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;configId="com/nsele/atl/odonEJB"<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?<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<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;<BR>&gt;&gt;&lt;openejb-jar<BR>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;
xmlns="http://www.openejb.org/xml/ns/openejb-jar"<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>&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="http://geronimo.apache.org/xml/ns/j2ee/application"<BR>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;
xmlns:sys="http://geronimo.apache.org/xml/ns/deployment-1.0"<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;------------------------------------------------------------------------<BR>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;
From:&nbsp;&nbsp;/Gianny Damour &lt;gianny.damour@optusnet.com.au&gt;/<BR>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;
Reply-To:&nbsp;&nbsp;/user@geronimo.apache.org/<BR>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;
To:&nbsp;&nbsp;/user@geronimo.apache.org/<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 <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="http://www.openejb.org/xml/ns/openejb-jar-2.0"<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<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:<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 <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<BR>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<BR>&gt;&gt;

&gt;&gt;http://mail-archives.apache.org/mod_mbox/geronimo-dev/200506.mbox/%3C8C051B4D-95E3-4876-8941-1D9855BB8003@iq80.com%3E<BR>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;
&gt;&gt;<BR>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; <BR>&gt;&gt;
&gt;&gt;http://blog.gmane.org/gmane.comp.java.geronimo.devel/day=20050617<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;<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><BR></FONT></BLOCKQUOTE></div></html>


Mime
View raw message