How to specify windows user in runtime in tomcat?

2007-12-09 Thread nitin403
Hi, all. I have create a servlet which needs to read a file on a share folder. When I run tomcat service as anonymous it is not able to access read this file. But when I run tomcat service as a user who as access to this file, then it runs fine. My Question is, is it possible to something similar

RE: Specify context path when context.xml is in META-INF

2007-12-09 Thread Caldarale, Charles R
> From: lightbulb432 [mailto:[EMAIL PROTECTED] > Subject: RE: Specify context path when context.xml is in META-INF > > Based on what I've read, I've learned that the least ideal > approach is to place the context information in server.xml. Correct; doing so requires a Tomcat restart to change a

RE: Specify context path when context.xml is in META-INF

2007-12-09 Thread lightbulb432
Based on what I've read, I've learned that the least ideal approach is to place the context information in server.xml. What I don't know, though, is how the remaining options stack up to each other. What are the tradeoffs (apart from the path naming issue) of placing context.xml in META-INF versu

RE: See command-line output with startup errors in Windows

2007-12-09 Thread Caldarale, Charles R
> From: lightbulb432 [mailto:[EMAIL PROTECTED] > Subject: See command-line output with startup errors in Windows > > How can I view the output in the second command-line window Simply use "catalina.bat run" instead of startup.bat, and comment out the "@echo off" in the top line. - Chuck TH

See command-line output with startup errors in Windows

2007-12-09 Thread lightbulb432
When starting Tomcat from the command-line in Windows using the "startup" command, the first command-line window opens up another one. This second window displays an error message but closes too quickly to tell what the error message read. If I place a "pause" statement after ":end" in the last l

RE: Specify context path when context.xml is in META-INF

2007-12-09 Thread Caldarale, Charles R
> From: lightbulb432 [mailto:[EMAIL PROTECTED] > Subject: Specify context path when context.xml is in META-INF > > Is there a way, when you have your context.xml in META-INF rather than > specifying the Context element in server.xml or elsewhere, to > customize the context path? No - the path i

Specify context path when context.xml is in META-INF

2007-12-09 Thread lightbulb432
Is there a way, when you have your context.xml in META-INF rather than specifying the Context element in server.xml or elsewhere, to customize the context path? I'd like to use context.xml in META-INF because of the benefits of this approach, but there seems to be no way to change the context pat

Re: Tomcat URL Redirecting

2007-12-09 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 RK, RK wrote: > So my question here is there anyway in Tomcat I can redirect all the > requests coming through https://mydomain.com be forwarded automatically to > https://www.mydomain.com. Although you can do this, the user is still going to see the

Re: Tomcat 6, JNDI datasource no longer work

2007-12-09 Thread jodetek
Ok, it works ! :-) It was the capital N of DriverClassName.. how stupid:-( JD markt-2 wrote: > > jodetek wrote: >> Tomcat 6 changed (no more common/lib) :-( > > This is explained in > http://tomcat.apache.org/tomcat-6.0-doc/class-loader-howto.html > >> I've put the Oracle driver

Re: discrepancy for tomcat connector file names for win32

2007-12-09 Thread Rainer Jung
Fixed. Will take a little while until synced to the mirrors. Caldarale, Charles R schrieb: >> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] >> Subject: discrepancy for tomcat connector file names for win32 >> >> Is there a discrepancy at this URL >> > http://www.apache.org/dist/tomcat/tomcat

Re: Tomcat 6, JNDI datasource no longer work

2007-12-09 Thread Mark Thomas
jodetek wrote: > Tomcat 6 changed (no more common/lib) :-( This is explained in http://tomcat.apache.org/tomcat-6.0-doc/class-loader-howto.html > I've put the Oracle driver in WEB-INF/lib That won't be helping. Remove the driver from there. > I also put it in $catalina_home/lib (tomcat 6 new

Tomcat 6, JNDI datasource no longer work

2007-12-09 Thread jodetek
Hi, I now use NetBeans 6 that have Tomcat 6.0.10. I have Oracle Express 10g (that work fine) I had a Tomcat application that worked with Tomcat 5.5 & Netbeans 5 with this database Here is the error: javax.servlet.ServletException: org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create J

RE: Is compress working? No Content-Encoding header

2007-12-09 Thread Caldarale, Charles R
> From: John Caron [mailto:[EMAIL PROTECTED] > Subject: Is compress working? No Content-Encoding header > > I tried to enable compression in Tomcat 6.0.10: I just tried the same thing in 6.0.14 with no problems, retrieving the same page that you tried. Connector config: Request headers: G

Is compress working? No Content-Encoding header

2007-12-09 Thread John Caron
I tried to enable compression in Tomcat 6.0.10: Now I am trying to see if that is working. I am using the Live HTTP Headers plugin for Firefox, which shows me the HTTP headers. For simplicity, I just make a request for a static html page, namely one of the tomcat docs: http://motherlode.u

Re: Tomcat URL Redirecting

2007-12-09 Thread Ken Bowen
You can create a rewrite filter using http://tuckey.org/urlrewrite/ RK wrote: Hi, I have my web application running on Tomcat 4.1.31 and SQL Server. and I have a security certificate issued for my website for http://www.mydomain.com . So if some one types in https://mydomain.com an ce

Tomcat URL Redirecting

2007-12-09 Thread RK
Hi, I have my web application running on Tomcat 4.1.31 and SQL Server. and I have a security certificate issued for my website for http://www.mydomain.com . So if some one types in https://mydomain.com an certificate mismatch error is being displayed. And I know the reason since the n