On Wed, 17 Apr 2002, Jason Dillon wrote:

> >But IBM VMs still need to be handled as a special case. If we do not 
> >want IBM VM users to be required to say
> >
> >      export JBOSS_CLASSPATH=$JBOSS_HOME/lib/jacorb.jar
> >
> >before they start JBoss, then we need to change run.sh to do it for 
> >them.
> >
> 
> Can we dig in a little deeper and fix this?  The big deal here, is that 
> it is a bitch to maintain these scripts especially when then start 
> having per-component per-vm per-os hacks to get things to work.  Also, 
> as I mentioned before, the lib/ directory might not be local...

I understand that. But right now I don't have a clue... The stuff that
works fine with Sun VMs throws an exception with the IBM VM. Did you
have a chance to look at the exception? (The stack trace I pasted into
a previous message got badly reformatted so I am sending it again,
attached to this message.) 

Basically what happens is that a parameterless ORB.init() call is 
performed within a call to ORB.init(args, props). 

Class org.jacorb.orb.ORB handles the call to ORB.init(args, props) and
indirectly performs the parameterless ORB.init() call, which should
be relayed to class org.jacorb.orb.ORBSingleton, per specified by a
system property. It appears that this class is not found... How come? 
It is in the same jar as the class org.jacorb.orb.ORB...

Ideas/suggestions are very welcome!

> I would really like to avoid putting this change into use, as it 
> complicates the configuration & documentation for everything else.
> 
> Why is IBM being a trouble here?

Looks like we're running into some subtle difference in classloading 
behaviour between IBM and Sun VMs. But IBM is not just trouble...
It is the VM that runs better on Linux. 

Cheers,

Francisco
2002-04-16 21:55:18,401 INFO  [org.jboss.deployment.MainDeployer] Starting deployment 
of package: 
file:/home/reverbel/jboss-all/build/output/jboss-3.0.0beta2/server/default/deploy/iiop-service.xml

2002-04-16 21:55:18,402 DEBUG [org.jboss.deployment.MainDeployer] Starting deployment 
(init step) of package at: 
file:/home/reverbel/jboss-all/build/output/jboss-3.0.0beta2/server/default/deploy/iiop-service.xml

2002-04-16 21:55:18,404 DEBUG [org.jboss.deployment.MainDeployer] using deployer 
org.jboss.deployment.SARDeployer@7018d254
2002-04-16 21:55:18,427 DEBUG [org.jboss.deployment.SARDeployer] Found classpath 
element: <classpath codebase="lib" archives="jboss-iiop.jar, jacorb.jar" />
2002-04-16 21:55:18,427 DEBUG [org.jboss.deployment.SARDeployer] Setting up classpath 
from raw codebase: lib
2002-04-16 21:55:18,428 DEBUG [org.jboss.deployment.SARDeployer] codebase is 
file:/home/reverbel/jboss-all/build/output/jboss-3.0.0beta2/lib/
2002-04-16 21:55:18,428 DEBUG [org.jboss.deployment.SARDeployer] archives are 
jboss-iiop.jar, jacorb.jar
2002-04-16 21:55:18,461 DEBUG [org.jboss.deployment.SARDeployer] deployed classes for 
file:/home/reverbel/jboss-all/build/output/jboss-3.0.0beta2/lib/jacorb.jar
2002-04-16 21:55:18,462 DEBUG [org.jboss.deployment.SARDeployer] deployed classes for 
file:/home/reverbel/jboss-all/build/output/jboss-3.0.0beta2/lib/jboss-iiop.jar
2002-04-16 21:55:18,462 DEBUG [org.jboss.deployment.SARDeployer] about to copy 0 local 
directories
2002-04-16 21:55:18,464 DEBUG [org.jboss.deployment.MainDeployer] found 0 subpackages 
of 
file:/home/reverbel/jboss-all/build/output/jboss-3.0.0beta2/server/default/deploy/iiop-service.xml

2002-04-16 21:55:18,465 DEBUG [org.jboss.deployment.MainDeployer] Watching new file: 
file:/home/reverbel/jboss-all/build/output/jboss-3.0.0beta2/server/default/deploy/iiop-service.xml

2002-04-16 21:55:18,465 DEBUG [org.jboss.deployment.MainDeployer] create step for 
deployment 
file:/home/reverbel/jboss-all/build/output/jboss-3.0.0beta2/server/default/deploy/iiop-service.xml

2002-04-16 21:55:18,465 DEBUG [org.jboss.deployment.SARDeployer] Deploying SAR, create 
step: url 
file:/home/reverbel/jboss-all/build/output/jboss-3.0.0beta2/server/default/deploy/iiop-service.xml

2002-04-16 21:55:18,466 DEBUG [org.jboss.system.ServiceCreator] About to create bean: 
jboss:service=CorbaORB
2002-04-16 21:55:18,466 DEBUG [org.jboss.system.ServiceCreator] code: 
org.jboss.iiop.CorbaORBService
2002-04-16 21:55:19,297 DEBUG [org.jboss.system.ServiceCreator] Created bean: 
jboss:service=CorbaORB
2002-04-16 21:55:19,298 DEBUG [org.jboss.system.ServiceConfigurator] ORBClass set to 
org.jacorb.orb.ORB in jboss:service=CorbaORB
2002-04-16 21:55:19,300 DEBUG [org.jboss.system.ServiceConfigurator] ORBSingletonClass 
set to org.jacorb.orb.ORBSingleton in jboss:service=CorbaORB
2002-04-16 21:55:19,301 DEBUG [org.jboss.system.ServiceConfigurator] IIOPServerName 
set to JBoss in jboss:service=CorbaORB
2002-04-16 21:55:19,302 DEBUG [org.jboss.system.ServiceConfigurator] IIOPPort set to 
5000 in jboss:service=CorbaORB
2002-04-16 21:55:19,303 DEBUG [org.jboss.system.ServiceConfigurator] 
PortableInterceptorInitializerClass set to 
org.jboss.ejb.plugins.iiop.server.CodebaseInterceptorInitializer in 
jboss:service=CorbaORB
2002-04-16 21:55:19,303 DEBUG [org.jboss.system.ServiceConfigurator] Verbosity set to 
1 in jboss:service=CorbaORB
2002-04-16 21:55:19,304 INFO  [org.jboss.iiop.CorbaORBService] Creating
2002-04-16 21:55:19,323 INFO  [org.jboss.iiop.CorbaORBService] Created
2002-04-16 21:55:19,323 DEBUG [org.jboss.deployment.MainDeployer] Done with create 
step of deploying iiop-service.xml
2002-04-16 21:55:19,323 DEBUG [org.jboss.deployment.MainDeployer] start step for 
deployment 
file:/home/reverbel/jboss-all/build/output/jboss-3.0.0beta2/server/default/deploy/iiop-service.xml

2002-04-16 21:55:19,324 DEBUG [org.jboss.deployment.SARDeployer] Deploying SAR, start 
step: url 
file:/home/reverbel/jboss-all/build/output/jboss-3.0.0beta2/server/default/deploy/iiop-service.xml

2002-04-16 21:55:19,324 INFO  [org.jboss.iiop.CorbaORBService] Starting
2002-04-16 21:55:20,057 INFO  [STDOUT]  JacORB V 1.4 beta 4, www.jacorb.org
2002-04-16 21:55:20,058 INFO  [STDOUT]  (C) Gerald Brose, FU Berlin, March 2002
2002-04-16 21:55:21,527 ERROR [org.jboss.deployment.MainDeployer] could not start 
deployment 
:file:/home/reverbel/jboss-all/build/output/jboss-3.0.0beta2/server/default/deploy/iiop-service.xml

org.omg.CORBA.INITIALIZE: can't instantiate default ORB implementation 
org.jacorb.orb.ORBSingleton  minor code: 0  completed: No
        at org.omg.CORBA.ORB.create_impl(ORB.java:330)
        at org.omg.CORBA.ORB.init(ORB.java:308)
        at 
org.omg.CONV_FRAME.CodeSetComponentInfoHelper.<clinit>(CodeSetComponentInfoHelper.java:12)

        at 
org.jacorb.orb.standardInterceptors.CodeSetInfoInterceptor.<init>(CodeSetInfoInterceptor.java:41)

        at 
org.jacorb.orb.standardInterceptors.IORInterceptorInitializer.post_init(IORInterceptorInitializer.java:43)

        at org.jacorb.orb.ORB.interceptorInit(ORB.java:1347)
        at org.jacorb.orb.ORB.set_parameters(ORB.java:1262)
        at org.omg.CORBA.ORB.init(ORB.java:389)
        at org.jboss.iiop.CorbaORBService.startService(CorbaORBService.java:124)
        at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:162)
        at java.lang.reflect.Method.invoke(Native Method)
        at 
org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)

        at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:492)
        at 
org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:867)
        at $Proxy0.start(Unknown Source)
        at org.jboss.system.ServiceController.start(ServiceController.java:341)
        at java.lang.reflect.Method.invoke(Native Method)
        at 
org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)

        at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:492)
        at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
        at $Proxy3.start(Unknown Source)
        at org.jboss.deployment.SARDeployer.start(SARDeployer.java:281)
        at org.jboss.deployment.MainDeployer.start(MainDeployer.java:665)
        at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:507)
        at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:470)
        at java.lang.reflect.Method.invoke(Native Method)
        at 
org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)

        at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:492)
        at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
        at $Proxy4.deploy(Unknown Source)
        at 
org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:350)

        at 
org.jboss.deployment.scanner.URLDeploymentScanner.scanDirectory(URLDeploymentScanner.java:530)

        at 
org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:410)
        at 
org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:237)

        at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:162)
        at java.lang.reflect.Method.invoke(Native Method)
        at 
org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)

        at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:492)
        at 
org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:867)
        at $Proxy0.start(Unknown Source)
        at org.jboss.system.ServiceController.start(ServiceController.java:341)
        at java.lang.reflect.Method.invoke(Native Method)
        at 
org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)

        at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:492)
        at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
        at $Proxy3.start(Unknown Source)
        at org.jboss.deployment.SARDeployer.start(SARDeployer.java:281)
        at org.jboss.deployment.MainDeployer.start(MainDeployer.java:665)
        at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:507)
        at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:470)
        at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:452)
        at java.lang.reflect.Method.invoke(Native Method)
        at 
org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)

        at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:492)
        at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:320)
        at org.jboss.system.server.ServerImpl.start(ServerImpl.java:218)
        at org.jboss.Main.boot(Main.java:142)
        at org.jboss.Main$1.run(Main.java:375)
        at java.lang.Thread.run(Thread.java:498)
2002-04-16 21:55:21,815 ERROR [org.jboss.deployment.MainDeployer] Couldn't deploy URL 
file:/home/reverbel/jboss-all/build/output/jboss-3.0.0beta2/server/default/deploy/iiop-service.xml

org.jboss.deployment.DeploymentException: Could not create deployment: 
file:/home/reverbel/jboss-all/build/output/jboss-3.0.0beta2/server/default/deploy/iiop-service.xml;
 - nested throwable is: java.lang.ExceptionInInitializerError
org.omg.CORBA.INITIALIZE: can't instantiate default ORB implementation 
org.jacorb.orb.ORBSingleton  minor code: 0  completed: No
        at org.omg.CORBA.ORB.create_impl(ORB.java:330)
        at org.omg.CORBA.ORB.init(ORB.java:308)
        at 
org.omg.CONV_FRAME.CodeSetComponentInfoHelper.<clinit>(CodeSetComponentInfoHelper.java:12)

        at 
org.jacorb.orb.standardInterceptors.CodeSetInfoInterceptor.<init>(CodeSetInfoInterceptor.java:41)

        at 
org.jacorb.orb.standardInterceptors.IORInterceptorInitializer.post_init(IORInterceptorInitializer.java:43)

        at org.jacorb.orb.ORB.interceptorInit(ORB.java:1347)
        at org.jacorb.orb.ORB.set_parameters(ORB.java:1262)
        at org.omg.CORBA.ORB.init(ORB.java:389)
        at org.jboss.iiop.CorbaORBService.startService(CorbaORBService.java:124)
        at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:162)
        at java.lang.reflect.Method.invoke(Native Method)
        at 
org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)

        at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:492)
        at 
org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:867)
        at $Proxy0.start(Unknown Source)
        at org.jboss.system.ServiceController.start(ServiceController.java:341)
        at java.lang.reflect.Method.invoke(Native Method)
        at 
org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)

        at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:492)
        at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
        at $Proxy3.start(Unknown Source)
        at org.jboss.deployment.SARDeployer.start(SARDeployer.java:281)
        at org.jboss.deployment.MainDeployer.start(MainDeployer.java:665)
        at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:507)
        at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:470)
        at java.lang.reflect.Method.invoke(Native Method)
        at 
org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)

        at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:492)
        at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
        at $Proxy4.deploy(Unknown Source)
        at 
org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:350)

        at 
org.jboss.deployment.scanner.URLDeploymentScanner.scanDirectory(URLDeploymentScanner.java:530)

        at 
org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:410)
        at 
org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:237)

        at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:162)
        at java.lang.reflect.Method.invoke(Native Method)
        at 
org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)

        at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:492)
        at 
org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:867)
        at $Proxy0.start(Unknown Source)
        at org.jboss.system.ServiceController.start(ServiceController.java:341)
        at java.lang.reflect.Method.invoke(Native Method)
        at 
org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)

        at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:492)
        at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
        at $Proxy3.start(Unknown Source)
        at org.jboss.deployment.SARDeployer.start(SARDeployer.java:281)
        at org.jboss.deployment.MainDeployer.start(MainDeployer.java:665)
        at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:507)
        at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:470)
        at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:452)
        at java.lang.reflect.Method.invoke(Native Method)
        at 
org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)

        at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:492)
        at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:320)
        at org.jboss.system.server.ServerImpl.start(ServerImpl.java:218)
        at org.jboss.Main.boot(Main.java:142)
        at org.jboss.Main$1.run(Main.java:375)
        at java.lang.Thread.run(Thread.java:498)
org.jboss.deployment.DeploymentException: Could not create deployment: 
file:/home/reverbel/jboss-all/build/output/jboss-3.0.0beta2/server/default/deploy/iiop-service.xml;
 - nested throwable is: java.lang.ExceptionInInitializerError
        at org.jboss.deployment.MainDeployer.start(MainDeployer.java:678)
        at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:507)
        at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:470)
        at java.lang.reflect.Method.invoke(Native Method)
        at 
org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)

        at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:492)
        at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
        at $Proxy4.deploy(Unknown Source)
        at 
org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:350)

        at 
org.jboss.deployment.scanner.URLDeploymentScanner.scanDirectory(URLDeploymentScanner.java:530)

        at 
org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:410)
        at 
org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:237)

        at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:162)
        at java.lang.reflect.Method.invoke(Native Method)
        at 
org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)

        at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:492)
        at 
org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:867)
        at $Proxy0.start(Unknown Source)
        at org.jboss.system.ServiceController.start(ServiceController.java:341)
        at java.lang.reflect.Method.invoke(Native Method)
        at 
org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)

        at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:492)
        at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
        at $Proxy3.start(Unknown Source)
        at org.jboss.deployment.SARDeployer.start(SARDeployer.java:281)
        at org.jboss.deployment.MainDeployer.start(MainDeployer.java:665)
        at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:507)
        at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:470)
        at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:452)
        at java.lang.reflect.Method.invoke(Native Method)
        at 
org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)

        at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:492)
        at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:320)
        at org.jboss.system.server.ServerImpl.start(ServerImpl.java:218)
        at org.jboss.Main.boot(Main.java:142)
        at org.jboss.Main$1.run(Main.java:375)
        at java.lang.Thread.run(Thread.java:498)
2002-04-16 21:55:21,930 DEBUG [org.jboss.deployment.scanner.URLDeploymentScanner] 
Watch URL for: 
file:/home/reverbel/jboss-all/build/output/jboss-3.0.0beta2/server/default/deploy/iiop-service.xml
 -> 
file:/home/reverbel/jboss-all/build/output/jboss-3.0.0beta2/server/default/deploy/iiop-service.xml

Reply via email to