Yes, a dependency is required, I just tried it on a 2.2 build, the plan below works for me : <module xmlns="http://geronimo.apache.org/xml/ns/deployment-1.2"> <environment> <moduleId> <groupId>aswin</groupId> <artifactId>sharedlib</artifactId> <version>1.0</version> </moduleId> <dependencies> <dependency> <groupId>org.apache.geronimo.framework</groupId> <artifactId>rmi-naming</artifactId> </dependency> </dependencies> <hidden-classes> <filter>com.thoughtworks.xstream</filter> </hidden-classes> </environment> <gbean name="SharedLib" class="org.apache.geronimo.system.sharedlib.SharedLib"> <attribute name="libDirs">myshare/lib</attribute> <reference name="ServerInfo"> <name>ServerInfo</name> </reference> </gbean> </module>
2011/7/14 ashwin nair <[email protected]> > When I tried deploying the jar I am getting > > Caused by: java.lang.ClassNotFoundException: > org.apache.geronimo.system.sharedlib.SharedLib in classloader > aswin/sharedlib/1.0/car > INFO | jvm 1 | 2011/07/13 20:21:44 | at > java.lang.ClassNotFoundException.<init>(ClassNotFoundException.java:77) > > > Do I have to have any other dependency specified? This is my > geronimo-service.xml > > <module xmlns="http://geronimo.apache.org/xml/ns/deployment-1.2"> > <environment> > <moduleId> > <groupId>aswin</groupId> > <artifactId>sharedlib</artifactId> > <version>1.0</version> > </moduleId> > <hidden-classes> > <filter>com.thoughtworks.xstream</filter> > </hidden-classes> > </environment> > <gbean name="SharedLib" > class="org.apache.geronimo.system.sharedlib.SharedLib"> > <attribute name="libDirs">myshare/lib</attribute> > <reference name="ServerInfo"> > <name>ServerInfo</name> > </reference> > </gbean> > </module> > > > > -- > View this message in context: > http://apache-geronimo.328035.n3.nabble.com/shared-lib-classloader-XStream-Jettison-issue-tp3150142p3167951.html > Sent from the Users mailing list archive at Nabble.com. > -- Ivan
