geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jleonar <>
Subject Re: Geronimo with Liferay library conflict
Date Thu, 03 Jan 2008 15:13:04 GMT

Ok I think I will take a step back and fix my earlier issues that lead me
down the path where I am today.

Step one took the liferay geronimo bundle and installed.

Let liferay deploy.  Stopped liferay.
Now I take my custom liferay code and I put it in the liferay repository
inside the WEB-INF folder including required libraries in the WEB-INF/lib

Start liferay and I get:
java.lang.NoClassDefFoundError: org/opensaml/SAMLSOAPHTTPBinding$HTTPHook
	at java.lang.Class.getDeclaredConstructors0(Native Method)
	at java.lang.Class.privateGetDeclaredConstructors(
	at java.lang.Class.getConstructor0(
	at java.lang.Class.newInstance0(
	at java.lang.Class.newInstance(

The opensaml jar is in the WEB-INF/lib folder.  The only way I got this
error to go away was by moving all the dependencies for my custom code to
the sharedlib folder.

I think once I get geronimo to load the WEB-INF/lib dependencies correctly,
I will be able to use the inverse-classloading to resolve my other issue.

So why isn't the classloader loading the jars in the WEB-INF/lib folder
inside the liferay repository?

Jacek Laskowski wrote:
> On Dec 28, 2007 1:40 PM, jleonar <> wrote:
>> I have some custom code deployed within Liferay(4.3.x) running on
>> Geronimo
>> 1.1
>> The custom code uses xercesImpl-2.8.0 or higher.  Geronimo 1.1 uses
>> xercesImpl-2.6.2.  So my code breaks because it is always using the
>> xercesImpl-2.6.2 instead of the xercesImpl-2.8.0 jar that I have in the
>> sharedlib folder.
>>     <hidden-classes>
>>         <filter>org.apache.xerces</filter>
>>     </hidden-classes>
>>                 <dependencies>
> ...
>>                         <dependency>
>>                                 <artifactId>sharedlib</artifactId>
>>                         </dependency>
> Can you try out <inverse-classloading /> instead? Is xerces in
> WEB-INF/lib directory of Liferay? What's the stack trace when
> Geronimo's Xerces hides the proper classes?
> Jacek
> -- 
> Jacek Laskowski

View this message in context:
Sent from the Apache Geronimo - Users mailing list archive at

View raw message