[jboss-user] [Installation, Configuration & DEPLOYMENT] - cannot load classes located in WEB-INF/lib
do-not-reply at jboss.com
Wed Jun 10 22:41:04 EDT 2009
I am not sure if this is a JBoss or Railo thing, I'm leaning toward JBoss, but here's the basic situation.
I have an EAR deployment with a WAR inside the EAR, when I start up JBoss with some custom JAR files in the WEB-INF/lib folder of the WAR, it starts up fine. JBoss uses the files as it should to create classes that are created at startup (servlets defined in web.xml in WEB-INF of the WAR)
However, if I attempt to load those classes from within a Railo page with createObject() Railo throws an error that it cannot see them.
If I place the JAR files in the lib folder for the EAR, Railo can see them fine and use them with createObjstarect()
So, is Railo not able to see classes in WEB-INF/lib after the startup? Or is this a JBoss issue?
The reason I need to do this is that I want some WARs to have the libraries and some not.
My actual issue is that I want to have WEB-INF/lib/customjars1, WEB-INF/lib/customjars2, etc I want a /lib/hibernate folder, etc I have too many JARs and I want to keep them organized.
I can't figure out how to get JBoss to look in sub folders of WEB-INF/lib for folders in each WAR.
In JBoss in the jboss-service.xml I can specify additional classpaths, which works, but the problem is that you then have to modify the jboss-service.xml file and add a path for each WAR that you add. I want the WARs to contain all of the needed information without having to modify JBoss for each one.
I can work around this by putting the JARs in the lib folder for the EAR, but like I said, I don't want all the WARs to have them and there are conflicts in some.
So, what's going on here? How can I get Railo to see the classes in WEB-INF/lib at runtime?
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4236872#4236872
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4236872
More information about the jboss-user