I'm not sure exactly what is wrong but I'd use trunk where commons logging is gone and any influence from gshell (not sure if it applies here) is strongly mitigated by its greater use of maven repo structures. If commons logging is gone from 2.1.2 that might be a better choice as trunk may not be released soon.

IIRC the bootstrappers set up a small repository to get most of the classes for the real object from: this is why the DeploymentFactoryImpl isn't finding the classes it needs

hope this helps
david jencks

On Jul 15, 2008, at 4:31 PM, Jacek Laskowski wrote:

Hi,

I'm back working on NetBeans plugin for Geronimo and run across an
issue with DeploymentFactory initialization. When I run a plugin with
org .apache .geronimo.deployment.plugin.factories.DeploymentFactoryBootstrapper
I face:

version=2.1.1
[file:/c:/geronimo/lib/asm-2.2.3.jar,
file:/c:/geronimo/lib/asm-commons-2.2.3.jar,
file:/c:/geronimo/lib/boot/,
file:/c:/geronimo/lib/cglib-nodep-2.1_3.jar,
file:/c:/geronimo/lib/commons-cli-1.0.jar,
file:/c:/geronimo/lib/commons-logging-1.0.4.jar,
file:/c:/geronimo/lib/endorsed/,
file:/c:/geronimo/lib/geronimo-cli-2.1.1.jar,
file:/c:/geronimo/lib/geronimo-deploy-jsr88-bootstrapper-2.1.1.jar,
file:/c:/geronimo/lib/geronimo-jaxws-builder-2.1.1.jar,
file:/c:/geronimo/lib/geronimo-kernel-2.1.1.jar,
file:/c:/geronimo/lib/geronimo-transformer-2.1.1.jar,
file:/c:/geronimo/lib/gshell/,
file:/c:/geronimo/lib/jsr88-deploymentfactory-2.1.1.car,
file:/c:/geronimo/lib/jsr88-deploymentfactory.jar,
file:/c:/geronimo/lib/log4j-1.2.14.jar,
file:/c:/geronimo/lib/plexus-archiver-1.0-alpha-7.jar,
file:/c:/geronimo/lib/xpp3-1.1.3.4.O.jar,
file:/c:/geronimo/lib/xstream-1.2.2.jar,
file:/c:/geronimo/bin/deployer.jar, file:/c:/geronimo/bin/server.jar,
file:/c:/geronimo/repository/org/apache/geronimo/modules/geronimo- deploy-config/2.1.1/geronimo-deploy-config-2.1.1.jar, file:/c:/geronimo/repository/org/apache/geronimo/modules/geronimo- system/2.1.1/geronimo-system-2.1.1.jar, file:/c:/geronimo/repository/org/apache/geronimo/specs/geronimo- javaee-deployment_1.1MR3_spec/1.0/geronimo-javaee- deployment_1.1MR3_spec-1.0.jar, file:/c:/geronimo/repository/org/apache/openejb/openejb-client/3.0.0- SNAPSHOT/openejb-client-3.0.0-SNAPSHOT.jar, file:/c:/geronimo/repository/org/apache/geronimo/specs/geronimo- ejb_3.0_spec/1.0/geronimo-ejb_3.0_spec-1.0.jar] WARNING [org.apache.geronimo.netbeans.GeronimoDeploymentFactory]: See nested
org.apache.commons.logging.LogConfigurationException: Invalid class
loader hierarchy.  You have more than one version of
'org.apache.commons.logging.Log' visible, which is not allowed.
at org .apache .commons .logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryImpl.java: 385)
Caused: org.apache.commons.logging.LogConfigurationException:
org.apache.commons.logging.LogConfigurationException: Invalid class
loader hierarchy.  You have more than one version of
'org.apache.commons.logging.Log' visible, which is not allowed.
(Caused by org.apache.commons.logging.LogConfigurationException:
Invalid class loader hierarchy.  You have more than one version of
'org.apache.commons.logging.Log' visible, which is not allowed.)
at org .apache .commons .logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryImpl.java: 397) at org .apache .commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java: 529)
Caused: org.apache.commons.logging.LogConfigurationException:
org.apache.commons.logging.LogConfigurationException:
org.apache.commons.logging.LogConfigurationException: Invalid class
loader hierarchy.  You have more than one version of
'org.apache.commons.logging.Log' visible, which is not allowed.
(Caused by org.apache.commons.logging.LogConfigurationException:
Invalid class loader hierarchy.  You have more than one version of
'org.apache.commons.logging.Log' visible, which is not allowed.)
(Caused by org.apache.commons.logging.LogConfigurationException:
org.apache.commons.logging.LogConfigurationException: Invalid class
loader hierarchy.  You have more than one version of
'org.apache.commons.logging.Log' visible, which is not allowed.
(Caused by org.apache.commons.logging.LogConfigurationException:
Invalid class loader hierarchy.  You have more than one version of
'org.apache.commons.logging.Log' visible, which is not allowed.))
at org .apache .commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java: 543) at org .apache .commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java: 235) at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:370) at org.apache.geronimo.kernel.basic.BasicKernel.boot(BasicKernel.java: 595) at org .apache .geronimo .kernel .util .MainConfigurationBootstrapper .bootKernel(MainConfigurationBootstrapper.java:72) at org .apache .geronimo .deployment .plugin .factories .DeploymentFactoryBootstrapper .newKernel(DeploymentFactoryBootstrapper.java:71) Caused: javax .enterprise.deploy.spi.exceptions.DeploymentManagerCreationException:
See nested
at org .apache .geronimo .deployment .plugin .factories .DeploymentFactoryBootstrapper .newKernel(DeploymentFactoryBootstrapper.java:75) at org .apache .geronimo .deployment .plugin .factories .DeploymentFactoryBootstrapper .<init>(DeploymentFactoryBootstrapper.java:36) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun .reflect .NativeConstructorAccessorImpl .newInstance(NativeConstructorAccessorImpl.java:39) at sun .reflect .DelegatingConstructorAccessorImpl .newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java: 494)
       at java.lang.Class.newInstance0(Class.java:350)
       at java.lang.Class.newInstance(Class.java:303)

whereas with org.apache.geronimo.deployment.plugin.factories.DeploymentFactoryImpl:

version=2.1.1
[file:/c:/geronimo/lib/asm-2.2.3.jar,
file:/c:/geronimo/lib/asm-commons-2.2.3.jar,
file:/c:/geronimo/lib/boot/,
file:/c:/geronimo/lib/cglib-nodep-2.1_3.jar,
file:/c:/geronimo/lib/commons-cli-1.0.jar,
file:/c:/geronimo/lib/commons-logging-1.0.4.jar,
file:/c:/geronimo/lib/endorsed/,
file:/c:/geronimo/lib/geronimo-cli-2.1.1.jar,
file:/c:/geronimo/lib/geronimo-deploy-jsr88-bootstrapper-2.1.1.jar,
file:/c:/geronimo/lib/geronimo-jaxws-builder-2.1.1.jar,
file:/c:/geronimo/lib/geronimo-kernel-2.1.1.jar,
file:/c:/geronimo/lib/geronimo-transformer-2.1.1.jar,
file:/c:/geronimo/lib/gshell/,
file:/c:/geronimo/lib/jsr88-deploymentfactory-2.1.1.car,
file:/c:/geronimo/lib/jsr88-deploymentfactory.jar,
file:/c:/geronimo/lib/log4j-1.2.14.jar,
file:/c:/geronimo/lib/plexus-archiver-1.0-alpha-7.jar,
file:/c:/geronimo/lib/xpp3-1.1.3.4.O.jar,
file:/c:/geronimo/lib/xstream-1.2.2.jar,
file:/c:/geronimo/bin/deployer.jar, file:/c:/geronimo/bin/server.jar,
file:/c:/geronimo/repository/org/apache/geronimo/modules/geronimo- deploy-config/2.1.1/geronimo-deploy-config-2.1.1.jar, file:/c:/geronimo/repository/org/apache/geronimo/modules/geronimo- system/2.1.1/geronimo-system-2.1.1.jar, file:/c:/geronimo/repository/org/apache/geronimo/specs/geronimo- javaee-deployment_1.1MR3_spec/1.0/geronimo-javaee- deployment_1.1MR3_spec-1.0.jar, file:/c:/geronimo/repository/org/apache/openejb/openejb-client/3.0.0- SNAPSHOT/openejb-client-3.0.0-SNAPSHOT.jar, file:/c:/geronimo/repository/org/apache/geronimo/specs/geronimo- ejb_3.0_spec/1.0/geronimo-ejb_3.0_spec-1.0.jar]
WARNING [org.apache.geronimo.netbeans.GeronimoDeploymentFactory]:
org.apache.geronimo.deployment.plugin.factories.DeploymentFactoryImpl
java.lang.ClassNotFoundException:
org.apache.geronimo.deployment.plugin.factories.DeploymentFactoryImpl
       at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
       at java.security.AccessController.doPrivileged(Native Method)
       at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
       at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
       at java.lang.ClassLoader.loadClass(ClassLoader.java:251)

It's with Geronimo 2.1.1. Classpath for instantiation is printed out
in []. Does anyone know what's wrong? I'm completely stuck.

Jacek

--
Jacek Laskowski
Notatnik Projektanta Java EE - http://www.JacekLaskowski.pl

Reply via email to