[opencms-dev] problem with installation

John Stanford White jswhite at ieee.org
Wed Aug 13 18:26:01 CEST 2003


James,

I forgot to mention.  I often had that problem when my jsp was trying to
load a bean.  The debug information was not very informative.
First make sure that your jsp works under Tomcat.  Comment out the CMS
stuff.  You can just install it in %CATALINA_HOME%\webapps\ROOT, and any
class files you are using in the directory
%CATALINA_HOME%\webapps\ROOT\WEB-INF\classes\mypackage.   I suggest that you
compile the java class file under a package name - e.g. mypackage.  For some
reason, I always have a problem when I use the default package and tomcat.
You will have to restart tomcat.

Once you are certain you can successfully compile a jsp and use a custom
class file, try moving it over to OpenCMS.  Import the jsp page into your
workspace.  Use the same jsp that you used before without OpenCMS.  Publish
the page.

1.  If you are trying to instantiate a bean or some other class, be sure to
compile that class under a package name e.g. mypackage.
2.  Copy the compiled class into the subdirectory
     %CATALINA_HOME%\webapps\opencms\WEB-INF\xlasses\mypackage
     Note that if mypackage is com.mycompany.mypackage then you must have a
directory structure that reflects this e.g com, mycompany, mypackage under
the classes directory.
3.  Restart tomcat
4.  Restart OpenCMS - you might want to try cleaning the FlexCache
(Administration page in OpenCMS)
5.  Now click on the jsp.  It should come up.

If you want some trivial - but working jsp's and class files send me a note
and I will send them to you.
Hope this helps.



John Stanford White
917-576-6264 (cell)
212-794-1551 (home)
jswhite at ieee.org





More information about the opencms-dev mailing list