I fixed the corba exception (while waiting for a build to finish),
and now the XStream based Geronimo 1.1 server works on Java 5 (as
well as it does on 1.4). I even tried day trader and I get the same
exceptions as I did on 1.4.
-dain
On Apr 7, 2006, at 2:11 PM, Dain Sundstrom wrote:
I just committed a patch which allows Geronimo 1.1 to boot on Java
5 if the server is built using the XStream marshaler.
maven -
Dorg.apache.geronimo.kernel.config.Marshaler=org.apache.geronimo.kerne
l.config.xstream.XStreamConfigurationMarshaler new
The server will boot under Java 1.4 and Java 5. You will get the
exception when we load Daytrader:
java.lang.ExceptionInInitializerError
at
org.apache.geronimo.samples.daytrader.direct.TradeDirect.init
(TradeDirect.java:2242)
at
org.apache.geronimo.samples.daytrader.web.TradeWebContextListener.cont
extInitialized(TradeWebContextListener.java:33)
at org.mortbay.jetty.servlet.WebApplicationContext.doStart
(WebApplicationContext.java:495)
at org.apache.geronimo.jetty.JettyWebAppContext.doStart
(JettyWebAppContext.java:343)
at org.mortbay.util.Container.start(Container.java:72)
at org.apache.geronimo.jetty.JettyWebAppContext.doStart
(JettyWebAppContext.java:331)
at
org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance
(GBeanInstance.java:963)
at
org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(
GBeanInstanceState.java:267)
at
org.apache.geronimo.gbean.runtime.GBeanInstanceState.start
(GBeanInstanceState.java:102)
at
org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive
(GBeanInstanceState.java:124)
at
org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive
(GBeanInstance.java:522)
at
org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean
(BasicKernel.java:391)
at
org.apache.geronimo.kernel.config.ConfigurationUtil.startConfiguration
GBeans(ConfigurationUtil.java:294)
at
org.apache.geronimo.kernel.config.ConfigurationUtil.startConfiguration
GBeans(ConfigurationUtil.java:330)
at
org.apache.geronimo.kernel.config.KernelConfigurationManager.start
(KernelConfigurationManager.java:163)
at
org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConf
iguration(SimpleConfigurationManager.java:331)
at
org.apache.geronimo.kernel.config.SimpleConfigurationManager$
$FastClassByCGLIB$$ce77a924.invoke(<generated>)
at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
at
org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke
(FastMethodInvoker.java:38)
at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke
(GBeanOperation.java:122)
at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke
(GBeanInstance.java:799)
at org.apache.geronimo.gbean.runtime.RawInvoker.invoke
(RawInvoker.java:57)
at
org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke
(RawOperationInvoker.java:35)
at
org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept
(ProxyMethodInterceptor.java:96)
at org.apache.geronimo.kernel.config.ConfigurationManager$
$EnhancerByCGLIB$$f836a667.startConfiguration(<generated>)
at org.apache.geronimo.system.main.Daemon.doStartup
(Daemon.java:287)
at org.apache.geronimo.system.main.Daemon.<init>
(Daemon.java:74)
at org.apache.geronimo.system.main.Daemon.main(Daemon.java:
367)
Caused by: org.omg.CORBA.INITIALIZE: Cannot instantiate
com.sun.corba.se.internal.javax.rmi.PortableRemoteObject vmcid:
0x0 minor code: 0 completed: No
at javax.rmi.PortableRemoteObject.createDelegateIfSpecified
(PortableRemoteObject.java:184)
at javax.rmi.PortableRemoteObject.<clinit>
(PortableRemoteObject.java:61)
... 28 more
Caused by: java.lang.ClassNotFoundException:
com.sun.corba.se.internal.javax.rmi.PortableRemoteObject (no
security manager: RMI class loader disabled)
at sun.rmi.server.LoaderHandler.loadClass
(LoaderHandler.java:371)
at sun.rmi.server.LoaderHandler.loadClass
(LoaderHandler.java:165)
at java.rmi.server.RMIClassLoader$2.loadClass
(RMIClassLoader.java:620)
at
org.apache.geronimo.system.rmi.RMIClassLoaderSpiImpl.loadClass
(RMIClassLoaderSpiImpl.java:48)
at java.rmi.server.RMIClassLoader.loadClass
(RMIClassLoader.java:202)
at java.rmi.server.RMIClassLoader.loadClass
(RMIClassLoader.java:135)
at javax.rmi.PortableRemoteObject.loadDelegateClass
(PortableRemoteObject.java:205)
at javax.rmi.PortableRemoteObject.createDelegateIfSpecified
(PortableRemoteObject.java:182)
... 29 more
I believe this is caused by corba system properties set in rmi-
naming. Jeff said that he was going to look at moving these system
properties to the j2ee-corba plan.
-dain