[opencms-dev] help with jar file
Jonathan Woods
jonathan.woods at scintillance.com
Sat Jun 17 00:34:15 CEST 2006
What's your jar file called? It's been a while since I worked this out, but
from memory it has to be named <modulename>.jar.
Jon
_____
From: opencms-dev-bounces at opencms.org
[mailto:opencms-dev-bounces at opencms.org] On Behalf Of Jonathon Mar
Sent: 16 June 2006 23:25
To: opencms-dev at opencms.org
Subject: [opencms-dev] help with jar file
Hi,
I want to import java packages and java classes to use in my jsp pages.
Here's what I did:
1. Create a module for my site
2. Create a folder called "lib" and a folder called "classes" under
that module
3. Created 2 export points to map from those 2 folders to
$CATALINA_HOME\webapps\opencms\WEB-INF\lib and
$CATALINA_HOME\webapps\opencms\WEB-INF\classes
4. Upload all my java classes into the "classes" folder and jar files
into the "lib" folder in the opencms VFS
5. Publish my project
So the problem is that the java class loader can find the java classes I put
in the "classes" folder, but isn't able to locate a class file from the jar,
resulting in a ClassDefNotFound error. The jar file looks to have been
copied to the file system upon publish, and upon checking the contents of
the jar, all java classes are there. Did I miss a step somewhere? Any help
is appreciated. Thanks!
-Jon
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20060616/b6b62afe/attachment.htm>
More information about the opencms-dev
mailing list