Dear Team

I've finally figured out why I could not deploy my dbforms web app. It
works fine while debugging inside my IDE (Forte for Java CE
3.3.1/Tomcat) but not when I deploy it under Apache/Tomcat 3.2

After much experimenting and scratching of head I realised it only works
under the IDE because I'd "mounted" all the necessary jar files within
the IDE project. There are so many jars, I don't want to put then inside
the web app's "lib" directory as it makes a 28K web app over 1Meg in
size. Instead I placed all the necessary jars (dbforms, log4j,
commons-*, ...) in the %TOMCAT_HOME%\lib\apps. This is where application
shared jars can reside.

However, when I try to run under tomcat I find neither the resource
bundles, nor the interceptor classes, will load. The reason is, I think,
that as the dbforms classes are loaded by the tomcat container with
certain security constraints, it cannot see the classes or resources of
my web app (in the Webapps directory).  That is, when dbforms reads the
dbfoms-comnfig.xml to learn the interceptor class name, it cannot load
it. Equally, it cannot find the ApplicationResources.properties file as
configured in web.xml :(

If I place all jars in the web app's "lib" directory it does work.

So, sorry for the long message, and this may be a tomcat question rather
than dbforms, but... does anyone know how to relax the security policy
such that a class loaded by tomcat in the "apps" directory can access
classes from applications deployed within the "webapps" directory?

Many thanks

Paul



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
DbForms Mailing List

http://www.wap-force.net/dbforms

Reply via email to