[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: Adding jars in shared hosting environment
My two cents...
Just unpacking the jar won't work. Even if you managed to get the class
files into a classpath directory, they probably wouldn't be picked up by the
servlet engine until it is restarted. Placing your own classes into ext
directories is almost always a bad idea for various reasons I won't get into
My suggestion, if they allow you to upload WAR files: Put the jar files that
your app depends on in the /lib directory under WEB-INF. I believe most
servlet engines will add those jars dynamically to your web app's classpath.
Let me know if it helps.
From: Mike Millson [mailto:firstname.lastname@example.org]
Sent: Wednesday, January 30, 2002 9:37 AM
Subject: Adding jars in shared hosting environment
I am able to run servlets on the server space that I rent from a hosting
company. They give me a servlet directory that I can put my servlets in.
They don't have any JAXP parsers or anything installed and available, and
they're not about to install anything special for 1 person.
How can I use components like crimson.jar if I cannot add them to the
CLASSPATH or put them in jre/lib/ext?
I tried putting crimson.jar in the servlets directory, that didn't work.
I tried unpacking crimson.jar and putting the class files in the appropriate
subdirectory in the servlets directory. e.g. I put SAXParserFactory.class in
servlets/javax/xml/parsers/. That didn't work.
To test to see if the classes are being picked up I just tried to create a
SAXParserFactory object. e.g.
I get the "The server encountered an internal error or misconfiguration..."
Has anyone done this? It seems like I should be able to uses these classes
even if I cannot change the CLASSPATH or put them in jre/lib/ext.