tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Aaron Aberg <>
Subject How do I set an option for a specific servlet if Tomcat is running as a service?
Date Sun, 16 Aug 2009 11:18:57 GMT

I'm using Linux CentOS with Plesk 9.2.1, Tomcat 5.5 and Solr 1.3.0. I
installed the solr war file through the plesk control panel but it
doesnt start up. The logs reveal that solr/home property needs to be
set before it can be started up. After some googling, I found out that
I could set the property in web.xml in the war file. This didn't seem
to work for me.

When I was first playing with solr, it was on a Windows machine and
its very simple to set this property. You can do it through the tomcat
service system tray application. However, I am using Linux now and I
believe that I need to set this option in JAVA_OPTS. I have seen a
bunch of examples where someone will export the variable etc and then
run the command. I can't do that. I need to start and stop
the service via plesk.

This is what I'm thinking. I see in /etc/passwd that the tomcat user
has a default path of /usr/share/tomcat5. I'm wondering if I could put
a .bashrc file in that directory and set the option there. Would that
work? Does anyone have an idea as to how I can solve this problem?

By the way the option should be something like:

Thanks in advance,

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message