RE: Determining file locations in tomcat

2006-05-16 Thread Benjamin Armintor
Or you could let go of the idea of file paths and use a URL from the 
ServletContext.getResource() or the corresponding InputStream from 
ServletContext.getResourceAsStream().  This also allows you to package the .xsl 
up in a .war file without breaking. 


-Original Message-
From: Mark Petrovic [mailto:[EMAIL PROTECTED]
Sent: Mon 5/15/2006 9:07 PM
To: Tomcat Users List
Subject: Re: Determining file locations in tomcat
 
You can put the path in an init-param in the application's web.xml.  Then
retrieve it at runtime in your servlet.init() method using
getInitParameter(path).

On 5/15/06, Calvin Deiterich [EMAIL PROTECTED] wrote:

 I need to place a file(.xsl) in with a tomcat servlet application and
 I do not want to hard-code the path into the java code.  I want the
 file to be in the \webapps\projectname\WebContent\xml\xslt\ path.
 What is the best way to handle this.
 Thanks
 Calvin

 --
 http://mywebpages.comcast.net/tnczoo/
 -
 If a dog will not come to you after having looked you in the face,
 you should go home and examine your conscience.
 - Woodrow Wilson
 -



 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




-- 
Mark
AE6RT


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Run Tomcat in W2k3 as service

2006-03-24 Thread Benjamin Armintor
I'm not sure about Windows services specifically, but you can start the
JVM with a security manager generically by using the
-Djava.security.manager and -Djava.security.policy=YOUR POLICY FILE
URL java startup options.  You can append these to  $JAVA_OPTS on Unix
systems to get a security manager (it's effectively what the catalina
startup script does), so I'd try using those as the --JvmOptions values.

Benjamin J. Armintor
Operating Systems Specialist
ITS-Systems: Mainframe Group
University of Texas - Austin
tele: (512) 232-6562
email: [EMAIL PROTECTED]
 


-Original Message-
From: Ryan Daly [mailto:[EMAIL PROTECTED] 
Sent: Friday, March 24, 2006 8:14 AM
To: Nic Daniau
Cc: Tomcat Users List
Subject: Re: Run Tomcat in W2k3 as service


On Fri, 2006-03-24 at 08:58 -0500, Ryan Daly wrote:
 I have an opportunity to take the site down in a few minutes.  I'll 
 quickly try setting that and post what I find.

No good.

If anyone comes across the proper options to do this, please post it to
the list.

Thanks.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]