You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geronimo.apache.org by rwengr <rw...@bellsouth.net> on 2014/04/10 01:17:42 UTC

Class Load Problem - Getter return type in wrong classloader

I am trying to compile and install a plugin (that implements a Geronimo
Bean).  I am using IBM WASCE so I have set my geronimo version set to 3.0.0.

I am able to create and install a bundle for the class that implements the
Geronimo Bean.

I am also able to create a CAR file for the plugin using car-maven-plugin
which creates a suitable looking deployment plan.

Even though I have this dependency when I build the CAR file, it does NOT
get included as part of the deployment plan.  When I try to load the plugin
it gets a class load error because GBeanLifeCycle is missing.

    <dependency>
      <groupId>org.apache.geronimo.framework</groupId>
      <artifactId>geronimo-kernel</artifactId>
      <version>${geronimoVersion}</version>
    </dependency>
        
    <dependency>
      <groupId>org.apache.geronimo.framework</groupId>
      <artifactId>geronimo-system</artifactId>
      <version>${geronimoVersion}</version>
    </dependency>

So, I used the <EmbedDependency> instruction to force it to be included in
the bundle which is the main module.  The bundle installs OK.

Now, I no longer get a class not found error, but I do get this error.

2014-04-09 17:51:57,833 WARN  [ConfigurationUtil] Could not load gbean
com.fedex.web.qawebtech.wasce.plugin.ldap/directory/1.5.4/car?ServiceModule=com.fedex.web.qawebtech.wasce.plugin.ldap/directory/1.5.4/car,j2eeType=GBean,name=DirectoryService
org.apache.geronimo.gbean.InvalidConfigurationException: Getter return type
in wrong classloader: type: class org.apache.geronimo.gbean.GBeanInfo wanted
in classloader:
org.apache.geronimo.hook.equinox.GeronimoClassLoader@3b46ad8b actual:
org.apache.geronimo.hook.equinox.GeronimoClassLoader@cffd0e7


ANY ASSISTANCE WOULD BE APPRECIATED !  THANKS



--
View this message in context: http://apache-geronimo.328035.n3.nabble.com/Class-Load-Problem-Getter-return-type-in-wrong-classloader-tp3987851.html
Sent from the Development mailing list archive at Nabble.com.

Re: Class Load Problem - Getter return type in wrong classloader

Posted by rwengr <rw...@bellsouth.net>.
The root cause of this problem is trying to inject other packages into the
bundle which contains the <module> of my plugin.  Packages were missing
because my CAR file was not properly created so I was trying to insert
missing dependencies on the front end.

This problem occurred because, when using the car-maven-plugin to build a
CAR file, I did not understand the relationship between <dependency> at the
pom level and <dependency> in the configuration of the car-maven-plugin.

On to the next problem !!



--
View this message in context: http://apache-geronimo.328035.n3.nabble.com/Class-Load-Problem-Getter-return-type-in-wrong-classloader-tp3987851p3987864.html
Sent from the Development mailing list archive at Nabble.com.