Hi Marc.  I had a class loading issue when migrating from JBoss to Geronimo.  I had an EAR file that contained a class that was in the WEB-INF/classes directory as well as in the EJB jar file.  I had some issues when trying to cast this class to it's superclass type.  Even though the class was the same type, the class loaders were different.  I did some debugging and printed out the expected type's class loader and the object I was trying to cast's class loader and they were different.  I ended up putting this and other "shared" classes in a jar file in the EAR and referenced it from the WAR and EJB jar using the manifest.mf file, which is the way it really should've been in the first place, and it fixed the problem.  I guess JBoss's class loading scheme is different from Geronimo's.  Anyway, hope this helps.

On Thu, 2006-01-12 at 17:40 -0500, Paul McMahan wrote:
Hi Marc,  jars under WEB-INF/lib is definitely supported by Geronimo.  Does the problem go away when you restart the server?  Also try starting and stopping the component from the web console via the Applications/Web App WARs portlet.  For a sanity check you might want to find your app deployed under GERONIMO/config-store and make sure that freemarker.jar is in WEB-INF/lib and make sure its the right size, etc.  config-store/index.properties can help you find the directory number for your app.

Best wishes,
Paul


On 1/12/06, Marc Logemann <[EMAIL PROTECTED]> wrote:
Hi,

i am trying to "port" our application to geronimo. It runs perfectly on
standalone Jetty and Tomcat. With Geronimo i have some strange issues.

First when deploying the WAR file (via admin console), everything seems
to work fine because in the console Geronimo says: "deployed
successfully". But when looking at the console, i got a
ClassNotFoundException for one of my classes. Is this the way it should
work?

Regarding the classloader exception. It marks that it cant load a
freemarker/template/TemplateHashModelEx.class but this class is
definitely shipped with freemarker.jar inside my WEB-INF/lib. BTW i get
this exception so soon, because i am using Spring to bootstrap Beans on
startup.

The very same WAR file deploys without classloader issues on tomcat and
jetty as said before.

My deployment plan is pretty simple too:

<?xml version="1.0" encoding="UTF-8"?>
<web-app
     xmlns="http://geronimo.apache.org/xml/ns/web"
                xmlns:naming=" http://geronimo.apache.org/xml/ns/naming"
     configId="Netversys">
        <context-root>/Netversys</context-root>
</web-app>

Does anyone have some hints for me?

thx

Marc Logemann

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to