Re: UnauthorizedAccessException error while running WMI in tomcat

2008-09-09 Thread new_bie_tomcat
Thanks a lot Popo..It worked :-) Mr Popo Sama wrote: > > HI agn, to change the privilegies try doing this, > in vista: go to control panel > administrative tools > Services , then > look for Apache tomcat service , then go to properties (right click on the > service) > Log on (tab) > this

Xmx being ignored

2008-09-09 Thread Dave Miller
Hello - I am trying to restrict the heap available to Tomcat 6. It is running on Fedora 8. I have tried to set -Xmx every way that I can think of and yet Tomcat grows to 3 times the heap allotted. While I understand that -Xmx != total memory commitment, 3X makes me think that I'm not getting

Re: relative paths in web.xml

2008-09-09 Thread Jordan Michaels
Hmm... I tried this, and it looks as though Tomcat still pre-pends the "/home/myuser/public_html/" to my XML file. My servlet throws the error: java.io.FileNotFoundException: /home/myuser/public_html/path/to/tomcat/conf/myservlet/myxmlfile.xml and my file is really located at: /path/to/tomcat/co

Re: [newbie] connectionTimeout value for AJP Connector

2008-09-09 Thread Bill Barker
"Stacey Jones" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi, I am a new member on tomcat mailing list. > > For tomcat 5.5 - Is there a recommended value for connectionTimeout > attribute? How to decide this value? > > The documentation says : The number of milliseconds this Co

Re: relative paths in web.xml

2008-09-09 Thread Bill Barker
"Jordan Michaels" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I'm trying to set up a "init-param" in Tomcat's main web.xml file (the > one in $CATALINA_HOME/conf/web.xml) that looks similar to the following: > > >myServlet >path.to.my.Servlet > >

Re: Replaceing RequestFacade

2008-09-09 Thread Bill Barker
Your facade has to extend (Http)ServletRequestWrapper from the standard servlet-api. According to the spec, that is the only valid way to wrap a request. As you've seen, Tomcat enforces this restriction :). "George Baxter" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Hello, Fo

relative paths in web.xml

2008-09-09 Thread Jordan Michaels
I'm trying to set up a "init-param" in Tomcat's main web.xml file (the one in $CATALINA_HOME/conf/web.xml) that looks similar to the following: myServlet path.to.my.Servlet SOME_XML_FILE ./conf/myservlet/myxmlfile.xml 0 and in my

Preventing File Access

2008-09-09 Thread Stephen Caine
All, Can someone point me to where I can read how to prevent/redirect access to a particular file in the Tomcat/webapp context. Specifically, all of my directories have the OS X DS_Store file. I would like to redirect users to an error page when this file is directly accessed. Thank y

Re: Piggybacking HTTP with binary protocol

2008-09-09 Thread Jordan Michaels
Different OS's can do this in different ways. Just Google it. For Linux, here's a quick How-To: http://www.oclc.org/us/en/support/documentation/ezproxy/technote/2l.htm HTH Warm regards, Jordan Michaels Vivio Technologies http://www.viviotech.net/ Open BlueDragon Steering Committee Adobe Soluti

Re: UnauthorizedAccessException error while running WMI in tomcat

2008-09-09 Thread Mr Popo Sama
HI agn, to change the privilegies try doing this, in vista: go to control panel > administrative tools > Services , then look for Apache tomcat service , then go to properties (right click on the service) > Log on (tab) > this account. and you the spaces in with a super user name and pass. then

Replaceing RequestFacade

2008-09-09 Thread George Baxter
Hello, For various and sundry reasons, I need to wrap the original HttpServletRequest with a facade of my own. I know that the HttpServletRequest exposed by Catalina is a RequestFacade object. I simply wrap my facade around this puppy. And... when my jsp attempts to render... boom: java.lang.C

Re: Piggybacking HTTP with binary protocol

2008-09-09 Thread Darryl Pentz
Hi Hassan, pardon my stupidity, but how exactly do you do what you're suggesting? - DP - Original Message From: Hassan Schroeder <[EMAIL PROTECTED]> To: Tomcat Users List ; Darryl Pentz <[EMAIL PROTECTED]> Sent: Tuesday, September 9, 2008 9:25:07 PM Subject: Re: Piggybacking HTTP with

Re: Getting OpenBlueDragon and Tomcat to traverse directories

2008-09-09 Thread Jordan Michaels
Hi Shawn, My apologies, but I didn't see this message until just now. Alan did put out a pretty simple instance of OpenBD on Jetty that makes it pretty dang simple to use Jetty with OpenBD and VirtualHosts. However, I realize this is not what the majority of the community was wanting, so I've bee

Re: Piggybacking HTTP with binary protocol

2008-09-09 Thread Hassan Schroeder
On Tue, Sep 9, 2008 at 1:10 PM, Darryl Pentz <[EMAIL PROTECTED]> wrote: > Thanks for that suggestion - I'll definitely look into it. In the meantime > what we've done is to solve our problem in the hardware, by using 2 network > cards (i.e. 2 IP addresses) Uh, you don't need multiple NICs to h

Re: Piggybacking HTTP with binary protocol

2008-09-09 Thread Darryl Pentz
Hi Raymond, Thanks for that suggestion - I'll definitely look into it. In the meantime what we've done is to solve our problem in the hardware, by using 2 network cards (i.e. 2 IP addresses) in situations where dual port 443 usage is required. This keeps the code a helluva lot cleaner, and hard

Re: Running Tomcat with JRE?

2008-09-09 Thread Johnny Kewl
- Original Message - From: "Bai Shen" <[EMAIL PROTECTED]> To: "Tomcat Users List" Sent: Tuesday, September 09, 2008 6:41 PM Subject: Running Tomcat with JRE? Looking at the tomcat site, it says that I can run Tomcat 6 with a JRE instead of a full JDK. So I downloaded Tomcat 6.0.18

RE: Running Tomcat with JRE?

2008-09-09 Thread Martin Gainty
Hi Baishen the container needs a jasper compiler to compile the jsps would'nt it be great if ALL webapps had precompiled jsps??? Martin __ Disclaimer and confidentiality note Everything in this e-mail and any attachments relates to the official busi

RE: Running Tomcat with JRE?

2008-09-09 Thread Katilie, John
Bai, to run using the JRE you need to set JRE_HOME not JAVA_HOME. Note: in our startup file we also set JAVA_HOME to null incase it was set elsewhere. I.e: set JAVA_HOME= set JRE_HOME=%VARIABLE%\java Regards -Original Message- From: Bai Shen [mailto:[EMAIL PROTECTED] Sent: Tuesday, Sep

Re: Running Tomcat with JRE?

2008-09-09 Thread Steve Ochani
On 9 Sep 2008 at 12:41, Bai Shen wrote: > Looking at the tomcat site, it says that I can run Tomcat 6 with a > JRE > instead of a full JDK. So I downloaded Tomcat 6.0.18 and I have > JAVA_HOME > pointing at JRE 1.6.0_07. However, when I go to start tomcat, it > tells me > that the JAVA_HOME vari

RE: undo undeploying in Tomcat?

2008-09-09 Thread Caldarale, Charles R
> From: Cristina Manzano García-Muñoz [mailto:[EMAIL PROTECTED] > Subject: undo undeploying in Tomcat? > > is the application still stored somewhere in the server after > undeploying it? Depends on how the webapp was deployed. If it was placed under the appBase directory, it will be deleted dur

Re: Denying IP Addresses

2008-09-09 Thread Pid
Edward Song wrote: > Hi all, > > > > Just soliciting some feedback on how to effectively, thwart data mining on > our server. > > > > We have a reactive solution when it comes to screen scraping and data mining > on Tomcat 5.5. > > We simply find the offending IP's and add them to the d

Running Tomcat with JRE?

2008-09-09 Thread Bai Shen
Looking at the tomcat site, it says that I can run Tomcat 6 with a JRE instead of a full JDK. So I downloaded Tomcat 6.0.18 and I have JAVA_HOME pointing at JRE 1.6.0_07. However, when I go to start tomcat, it tells me that the JAVA_HOME variable needs to point at a JDK, not a JRE. Am I missing

Re: Piggybacking HTTP with binary protocol

2008-09-09 Thread Raymond Kroeker
Darryl, One thing I might suggest is instead of rolling your own http client; is to use the http client from apache http://hc.apache.org. I use it myself for various projects including binary data transfer. It will let you focus on your protocol instead of having to implement http. Raymo

Re: Apache Httpd & Tomcat error pages

2008-09-09 Thread Pierre Goupil
Exactly ! I've checked it out and it does work like you said. Cheers Johnny ! Pierre On Tue, Sep 9, 2008 at 5:45 PM, Johnny Kewl <[EMAIL PROTECTED]> wrote: > > - Original Message - From: "Pierre Goupil" <[EMAIL PROTECTED] > > > To: "Tomcat Users List" > Sent: Tuesday, September 09, 200

undo undeploying in Tomcat?

2008-09-09 Thread Cristina Manzano García-Muñoz
hi, is it possible to undo the undeploying of applications in Tomcat? I mean, is the application still stored somewhere in the server after undeploying it? thanks.

Re: Apache Httpd & Tomcat error pages

2008-09-09 Thread Johnny Kewl
- Original Message - From: "Pierre Goupil" <[EMAIL PROTECTED]> To: "Tomcat Users List" Sent: Tuesday, September 09, 2008 4:54 PM Subject: Apache Httpd & Tomcat error pages Hi all, We've got an Httpd 2.0 server sitting in front of a Tomcat 5.5 with mod_jk. Tomcat has several set

[newbie] connectionTimeout value for AJP Connector

2008-09-09 Thread Stacey Jones
Hi, I am a new member on tomcat mailing list. For tomcat 5.5 - Is there a recommended value for connectionTimeout attribute? How to decide this value? The documentation says : The number of milliseconds this Connector will wait, after accepting a connection, for the request URI line to be present

Denying IP Addresses

2008-09-09 Thread Edward Song
Hi all, Just soliciting some feedback on how to effectively, thwart data mining on our server. We have a reactive solution when it comes to screen scraping and data mining on Tomcat 5.5. We simply find the offending IP's and add them to the deny rules using the Valve - org.apache.catali

Apache Httpd & Tomcat error pages

2008-09-09 Thread Pierre Goupil
Hi all, We've got an Httpd 2.0 server sitting in front of a Tomcat 5.5 with mod_jk. Tomcat has several set up, amongst which HTTP 404, and so has Httpd. When the user tries & retrieve an inexistent page, he or she receives the page from Tomcat, with a 404 error-code. Can anyone explain me why th

RE: SSL https clientAuth debugging assistance

2008-09-09 Thread Balgeman, Timothy E (Tim)
Thank you Martin for your reply. I installed the log4j and it is logging information when I shutdown tomcat, but no other time. I have also tried messing with the java.util.logging but an getting nowhere with that. I am using the default log4j.properties as mentioned on the tomcat web pages. I

Re: Running Tomcat as a Service on Non-default port

2008-09-09 Thread André Warnier
Kamal Sheikh wrote: Hi, I am using Tomcat v 5.5.23 and want to run the server as a Windows service (tomcat5.exe) on a port other than the default port of 8080. Is it possible to install Tomcat as a service and configure it so that it runs on a different port? While we can configure Tomcat and

RE: Running Tomcat as a Service on Non-default port

2008-09-09 Thread Caldarale, Charles R
> From: Kamal Sheikh [mailto:[EMAIL PROTECTED] > Subject: Running Tomcat as a Service on Non-default port > > Is it possible to install Tomcat as a service and > configure it so that it runs on a different port? Ports are configured in the element(s) in conf/server.xml; a restart of Tomcat is re

Running Tomcat as a Service on Non-default port

2008-09-09 Thread Kamal Sheikh
Hi, I am using Tomcat v 5.5.23 and want to run the server as a Windows service (tomcat5.exe) on a port other than the default port of 8080. Is it possible to install Tomcat as a service and configure it so that it runs on a different port? While we can configure Tomcat and run it on a different

Re: stupid tomcat/eclipse question

2008-09-09 Thread Steve Cohen
>> The error clearly indicates that servlet-api.jar is missing from the classpath. It should be located under CATALINA_HOME\lib in case of TC 6. You would think so but it's not the case. NoClassDefFoundErrors are seldom so clear. They do a nice job of hiding the root cause. In this case it was

RE: The requested resource (/manager/) is not available.

2008-09-09 Thread Caldarale, Charles R
> From: Robert K. Vanderhoek [mailto:[EMAIL PROTECTED] > Subject: Re: The requested resource (/manager/) is not available. > > Check to see if your webapps directory contains the /manager and > /tomcat-docs folders. Also make sure your server.xml file is pointing > to the /webapps directory as its

RE: The requested resource (/manager/) is not available.

2008-09-09 Thread Martin Gainty
yes .. specifically Date: Tue, 9 Sep 2008 08:08:02 -0400 > From: [EMAIL PROTECTED] > To: users@tomcat.apache.org > Subject: Re: The requested resource (/manager/) is not available. > > Check to see if your webapps directory contains the /manager and > /tomcat-docs folders. Also make sure your

Re: The requested resource (/manager/) is not available.

2008-09-09 Thread Robert K. Vanderhoek
Check to see if your webapps directory contains the /manager and /tomcat-docs folders. Also make sure your server.xml file is pointing to the /webapps directory as its starting place. [EMAIL PROTECTED] wrote: See Thread at: http://www.techienuggets.com/Detail?tx=6039 Posted on behalf of a Us

Re: Problems with user/password data when trying to connect to DBs - Tomcat sees '' as username instead of the given one

2008-09-09 Thread David Smith
You have an error in your Resource definition. The attribute for username is 'username', not 'user'. The corrected version is below: See the JNDI Datasource docs for your version of tomcat at tomcat.apache.org. --David Daniele Development-ML wrote: Hello, I have a WS deployed on Tomca

Problems with user/password data when trying to connect to DBs - Tomcat sees '' as username instead of the given one

2008-09-09 Thread Daniele Development-ML
Hello, I have a WS deployed on Tomcat and querying a DB. The JDBC and JNDI configurations should be fine but I still have some problems. When loading the WS (actually starting Tomcat) I got the following exception. It doesn't recognise the user and password I set in the context.xml. I searched

Re: Tomcat 6 and images

2008-09-09 Thread Mark Thomas
Mathias P.W Nilsson wrote: > Can this be hacked? like http://localhost/files/../../somefile No. There have been some recent vulnerabilities with particular configurations in this area but these are fixed in the latest 5.5.x and 6.0.x releases. Mark ---

RE: [NEWBIE] Separate tomcat engines on the same physical server

2008-09-09 Thread Peter Crowther
> From: Jon Camilleri [mailto:[EMAIL PROTECTED] > Hence, is it feasible to have: > > - Server 1 installed with Tomcat instance #1 and > Tomcat instance #2 over JVM #1 > > - Server 2 installed with Tomcat instance #1 and > Tomcat instance #2 over JVM #2 If by JVM you mean "the files installed to su