Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to start including a new container property?

Status
Not open for further replies.

orlyotero

Programmer
Jun 2, 2005
21
US
Hi guys,
I need to start tomcat initiating a system property that has app properties in it, kind of:
-DpropName=propValue

I have modified catalina.sh and startup.sh and I could not accomplish this GOAL.

Regards,
OO
 
Whats the error, how are you getting this property ?

--------------------------------------------------
Free Database Connection Pooling Software
 
I have tried first:
CATALINA_OPTS="$CATALINA_OPTS "-Dezine.properties=/usr/local/shared/tomcat/orly_otero/webapps/ezine/WEB-INF/ezine.properties

and then
CATALINA_OPTS="$CATALINA_OPTS -Dezine.properties=/usr/local/shared/tomcat/orly_otero/webapps/ezine/WEB-INF/ezine.properties"

in both cases I'm receiving the following error plus the delay of hosting support to fix startup.sh with the backup copy, since the problem is taking place in unix hosting, not in my local pc.

Internal Error 500

The server encountered an unexpected condition which prevented it from fulfilling the request.


If it is your server, login your accout at to restart it. Why is it down daily? See FAQ.

regards,
OO
 
It helps when asking questions to provide the relevant data. In this case, I would have said a look at the log files perhaps and post the stack trace :

Internal Error 500

The server encountered an unexpected condition which prevented it from fulfilling the request.

And that error in the log files would be ......

--------------------------------------------------
Free Database Connection Pooling Software
 
I wish I provide you with relevant data but remember that somebody is hosting the site not my local PC and somebody's tomcat is giving me the above error, I can't browse the files to find the log files since the file Browser they offered me is a .jsp application, since my tomcat doesn't startup, I can't use the Browser jsp application, this implies that I can't locate log files.

I just provide you with the CATALINA_OPTS assignment to tried to find out a syntax error, when fixed, I'll will request HOSTING SUPPORT to restore catalina.sh to a .bak copy I left, to modifiy it again with the correct assigment to enable new system property to my web apps.

Regards,
OO
 
Well without a stack trace or log entries for the error, I'm not really sure what help you expect me to be ...

Can you not shell onto the machine and look at the log files ? If you can't then I advise you move to a more professional host !

--------------------------------------------------
Free Database Connection Pooling Software
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top