| ClassNotFoundException when using bundled spring-context-support [message #757311] |
Thu, 17 November 2011 11:15  |
Balaji Messages: 10 Registered: December 2010 |
Junior Member |
|
|
My application war works when deployed on virgo server.
I'm trying to make it a shared services war directly.
The war has some libraries in its WEB/INF lib.
I removed spring core,config,bean,context dependencies from WEB-INF/lib and added a library import into the manifest.
I have configured my web xml to use the osgified context class.
The spring-context-support package throws a ClassNotFoundException on one of the classes which is present in a jar inside WEB-INF/lib folder of my war
a clhas on the class shows that my war indeed has the class
I have the tried following
-----------------------------
1. exporting the package from inside the war through export-package header in manifest.
What am I missing?
|
|
|
|
|
|
|
|
|
| Re: ClassNotFoundException when using bundled spring-context-support [message #757335 is a reply to message #757332] |
Thu, 17 November 2011 13:49   |
Dmitry Sklyut Messages: 252 Registered: January 2010 |
Senior Member |
|
|
I don't think it has anything to do with spring imports/exports. You are doing Import-Library that will make all spring available for use. All classloading "should" be backed by your WAB Bundle.
I would still check that bundle classpath is properly setup and WEB-INF/lib jars are added to the Bundle-ClassPath manifest entry during transformation.
Can you also check what is the value of $VIRGO_HOME/repository/ext/org.eclipse.virgo.web.properties WABHeaders property. If it is "strict" - try to change it to "defaulted"
If that does not help: explicitly configure Bnd to add all of the WEB-INF/lib jar to the Bundle-ClassPath.
Bundle-ClassPath: .,/WEB-INF/lib/jar1.jar,/WEB-INF/lib/quartz.jar, etc
[Updated on: Thu, 17 November 2011 13:49] Report message to a moderator
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.01954 seconds