You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Steve Ochani <oc...@ncc.edu> on 2005/04/12 16:56:42 UTC
Java Beans and servlets not working in user directories with
UserConfig, jsp is
Hello all,
I'm using jakarta-tomcat-5.5.7 with jdk 1.5 on solaris 8.
I have configured in web.xml the UserConfig class as such
<Listener className="org.apache.catalina.startup.UserConfig"
directoryName="public_html" userClass="or
g.apache.catalina.startup.PasswdUserDatabase"/>
any jsps in home directories are working but servlets and beans that are being used
from jsps are not.
For example I have a directory
/jakarta-tomcat-5.5.7/webapps/steve
in it i have Test.jsp and a subdir WEB-INF in that I have a subdir classes and in that I
have a sub directory called blah and in that subdir I have Product.class
Test.jsp uses blah.Product and this all works in the main webapps directory.
However if I move the contents of the steve directory to ~steve/public_html/webapps
and I try to load Test.jsp (actually I renamed Test.jsp to TestProduct.jsp) I get the error
org.apache.jasper.JasperException: /webapps/TestProduct.jsp(3,0) The value for the
useBean class attribute blah.Product is invalid.
I however can use a jsp that does not use any beans in the ~steve/public_html/webapps
directory.
I also have a regular servlet that works in
/jakarta-tomcat-5.5.7/webapps/steve
(with the appropriate web.xml which has the servlet-mapping)
but it won't in
~steve/public_html/webapps
Any help is appreciated.
Thanks
«¤»¥«¤»§«¤»¥«¤»§«¤»¥«¤»§«¤»¥«¤»§«¤»¥«¤»§«¤»¥«¤»§«¤»¥«¤»
Education is what remains after one has forgotten everything he
learned in school. -Albert Einstein
Steve O.
http://www.steveo.us
New pics: B17G and B24
http://www.steveo.us/B17-B24/
B17G WWII Bomber "Yankee Lady" Flight I took
http://www.steveo.us/b17ride
SUNY NCC MATH/COMPUTER
http://www.matcmp.ncc.edu
SUNY NCC Physical Sciences Dept.
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org