You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Jonny Sizlak <js...@kerbit.ath.cx> on 2004/02/26 16:43:42 UTC
HomesUserDatabase
Hey everybody,
I'm running Tomcat 5.0.18 on Red Hat Linux 9. I'm running it for a
university's Computer Science department, and the server has a few
hundred user accounts, and I've been tasked with giving every user
access to Tomcat. I was going to start writing a script to give
everyone a webapps directory, but I saw in the O'Reilly Tomcat book that
I can have it serve .jsp files out of people home directories. After
reading that I got very excited because I would get the rest of the day
off. Sadly, this was not the case. :(
We use NFS and NIS to allow people to login from Lab Machines in our
compsci lab, and neither services are on the same server as Tomcat.
This presents a problem because the /etc/passwd file for the users isn't
on the same server as Tomcat. So I tried using the HomesUserDatabase
Listener with the NFS directory...
<Listener className="org.apache.catalina.startup.UserConfig"
directoryName="webapps"
homeBase="/home/nfs"
userClass="org.apache.catalina.startup.HomesUserDatabase"/>
...and when I went to restart Tomcat, I got this:
Feb 24, 2004 3:49:34 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on port 8080
Feb 24, 2004 3:49:34 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1971 ms
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:297)
at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:398)
Caused by: java.lang.NullPointerException
at
org.apache.catalina.startup.UserConfig.log(UserConfig.java:420)
at
org.apache.catalina.startup.UserConfig.lifecycleEvent(UserConfig.java:295)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:166)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:2336)
at org.apache.catalina.startup.Catalina.start(Catalina.java:598)
... 6 more
I'm not really sure what's going wrong there. I tried googling it, but
came up empty. Does anyone have any ideas?
Thanks!
.jonny.
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org