[opencms-dev] help with jar file

Jonathon Mar jmar at salesforce.com
Sat Jun 17 00:25:08 CEST 2006


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/02d55950/attachment.htm>


More information about the opencms-dev mailing list