[opencms-dev] Calling a java class from OC beta 2
Alexander Kandzior
alex at opencms.org
Mon Nov 25 15:35:51 CET 2002
Assaf,
you must place you classes in the
{tomcat-home}/{opencms-webapp-dir}/WEB-INF/classes directory like you
would do it for a "normal" web application. There is no special OpenCms
related trick. In case you have changed files in /classes, depending on
your Tomcat configuration, you might have to restart Tomcat.
Note: In case your class is in a package, you must also create the
package directories in the ../classes folder. So if your class e.g. is
called "my.package.MyClass", you must place "MyClass.class" in
../classes/my/package/MyClass.class NOT in ../classes/MyClass.class.
This is required by the Java classloader (ie. completly unrelated to
OpenCms).
Best Regards,
Alex.
Alexander Kandzior
OpenCms Group / Alkacon Software
-----Original Message-----
From: owner-opencms-dev at www.opencms.org
[mailto:owner-opencms-dev at www.opencms.org] On Behalf Of Assaf Nehoray
Sent: Monday, November 25, 2002 3:20 PM
To: opencms-dev at opencms.com
Subject: [opencms-dev] Calling a java class from OC beta 2
Hi,
I am trying to integrate between OpenCMS and another application which
is java based. I am checking out how I can do that using JSPs. I wrote a
jsp page in the root. In it I am trying to use a class(<jsp:useBean>)
and then call it. I have placed the .class in the classes directory as
well as in the root directory alas it cannot find it and I get a jsp
error.
I am using the new beta 2 version 5.0 where the directory structure is a
little different. Since the documentation is not yet up to date I am
clueless. Anyone can give me some simple guidance on how to call a java
class/ application.
Thanx in advance,
Assaf
The Netherlands
anehoray at hotmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20021125/acc12bb0/attachment.htm>
More information about the opencms-dev
mailing list