• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

How to set VM arguments in Tomcat 5.0

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
We are trying to run an application on Tomcat. Project is placed in webapps folder inside Tomcat 5.0 folder. We want the logs for applcation to be on our machine for which there are two log4j xml and dtd files that shall help in mapping via server. VM arguments are to be set so that startup.bat reads these files. I am not aware about the file where I need to modify and the statement to code. Is there any way to do this??

In case if the tomcat server is started in RAD,then we start the server and then Go to Run -> Debug� or Run -> Run and Select �Arguments� tab and add the following:Dlog4j.configuration="file:\C:\logfile\log4j.xml".

We want to do the same when the application is run only in Tomcat without RAD/eclipse.


Thanks in advance,
Amrita
 
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I can't help with the IDE version but if you tell me what OS and how you're starting Tomcat (Windows service or startup scripts) I can help with that part.
 
Amrita Anilkumar
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It's Windows OS. We are just starting Tomcat from bin folder "startop.bat", having the main application folder inside webapps. After starting of Tomcat we hit the localhost url to run the application.

Thanks for the prompt response.

Amrita
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The startup script starts the catalina script, which is in the same directory. Inside of it you'll find the actual java invocation, where you can set VM arguments. Search for "JAVA_OPTS".
 
reply
    Bookmark Topic Watch Topic
  • New Topic