Just an update on this:
1) some test code where a servlet tries to load the
initial context works
2) some test code where a servlet calls an EJB which
tries to load the initial context works
3) My application EAR still has the original problem
4) I cannot provide the EAR I'm afraid (too big to
Hi Paul,
Thanks for doing all that! Now if only it had identified your
problem... Are you running on M4 or have you built from HEAD? Do you
see anything in the log?
I don't have any suggestions at the moment for gathering additional information, but will look into it...
--kevanOn 9/23/05,
I have an application that uses Spring
to interface with Hibernate, which in turn accesses data via JDBC.
In Spring you can define a configuration
file (applicationContext.xm) and embed it in your class structure, at the
package level, like so
How have you packaged the Spring libraries and config file and
application code within the EAR/JAR/WAR or the repository? That
definitely affects the class loaders used in Geronimo.
Aaron
On 9/21/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
I have an application that uses Spring to
The EAR file is packaged up so that
all, what we call utility jars are present in the root of the
main EAR project folder, and projects that use them have a manifest class
path pointing to these.
In theory the whole thing is self contained
so we don't have to mess around with manually putting
Hi Paul,
Please excuse the basic question -- are you positive the xml file is in the jar with identical spelling/capitilization?
In answer to your previous question -- yes, the WAS 5.1 and Geronimo
classloaders are certainly different. They should be both conforming
the the J2EE spec, of
I just gave a quick try to the following packaging and it works:
minimal.ear
`-- external.jar
`-- example/applicationContext.xml
`-- minimal.war
`-- META-INF/MANIFEST.MF: Class-Path: external.jar
`-- WEB-INF/classes/example/ExampleController.class: which defines:
static
I can't supply the EAR due to the product
being commerical, but will attempt to knock up a test EAR.
Your example is a bit different to mine,
in that in yours the path is web app class calls Spring, and mine is web
app calls EJB calls Spring
Thanks for your help.
Target
www.targetgroup.net