running service as account other than Local System

2006-09-13 Thread Gurganus, Brant L
I seem to be having trouble running the Tomcat service on Windows as an account other than Local System. I created a "tomcat" account with, let's say "tomcat password" as the password. I typed those into the service configuration (tomcat5w.exe) stopped the server and restarted it, but when I look i

Re: Three hostnames in one instance of tomcat

2006-09-13 Thread Eric Berry
I have my development box setup how I think you want yours done (though, I only access it locally from that machine). The 3 hosts should have separate app bases and the context paths should be empty (meaning the default path). What you've done up there should work if you have your hosts file point

Re: Three hostnames in one instance of tomcat

2006-09-13 Thread Ben Stringer
I'm interested to hear other ideas, but I have used multiple entries to achieve this. In my case, each hostname has a dedicated IP and a DNS entry. Having multiple service entries allows you to have separation of almost all the config elements, like ports, appbase, logging etc. Cheers, Ben On W

Re: TC 5.5.17 w/ JDK 1.5 - SSL ciphers to use list - RESOLVED

2006-09-13 Thread David Wall
That's exactly what I was looking for. Thanks. David Mark Thomas wrote: $JAVA_HOME/docs/guide/security/jsse/JSSERefGuide.html You want appendix A. Mark - To start a new topic, e-mail: users@tomcat.apache.org To unsubscr

RE: Three hostnames in one instance of tomcat

2006-09-13 Thread Caldarale, Charles R
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Subject: Three hostnames in one instance of tomcat > > Users would hit URL's such as: > > http://host1/ > http://host2/ > http://host3/ What version (exactly) of Tomcat are you using? For versions 5.0 and 5.5, you should not put elements i

Re: TC 5.5.17 w/ JDK 1.5 - SSL ciphers to use list

2006-09-13 Thread Mark Thomas
David Wall wrote: > This didn't help as much as I had hoped. Does anybody know where Sun's > JDK 1.5 (Linux) keeps the list of SSL ciphers it implements? What > document would I look at? > What Java API is called by Tomcat to get the list of SSL ciphers that > are available? $JAVA_HOME/docs/guid

memory problems

2006-09-13 Thread Daniel L. Gross
I have some servlets that run without problem on tomcat 4, but when I upgraded to Tomcat 5.5.15, everytime a servlet is accessed, it uses a little more memory, and finally after many users, runs out of heap space. Any clues? Thanks Dan Gross -

Three hostnames in one instance of tomcat

2006-09-13 Thread gurkan
I want to configure Tomcat so that I can have three hostnames live on the same physical machine, but each have their own separate areas. with one instance of Tomcat? Users would hit URL's such as: http://host1/ http://host2/ http://host3/ where each host should have its own webapps directory on

Re: tomcat 5.5.17 catalina.bat - dropping support for JPDA_OPTS environment variable?

2006-09-13 Thread Mark Thomas
Kurt Roy wrote: > Hello, > Attached is a zip file containing revised catalina.sh and catalina.bat > files supporting JPDA_OPTS (supported in tomcat 4.1.18), and support for > a new JPDA_SUSPEND. zips don't get through the mail server. > catalina.bat changes: > > 1. Added back support for JPDA_O

Re: Error: No available certificate or key corresponds to the SSL cipher suites which are enabled.

2006-09-13 Thread Pulkit Singhal
I didn't specify the "keyStore" parameter in here because I only have one keystore at C:\Documents and Settings\HP_Administrator\.keystore or do Iexplicitely need to do that? I read somewhere that I didn't. Personally, I can not even begin to imagine how Tomcat would know where to find the keyst

Re: Error: No available certificate or key corresponds to the SSL cipher suites which are enabled.

2006-09-13 Thread Jeanna Geier
Thanks for the reply! maxThreads="150" minSpareThreads="25" maxSpareThreads="75" enableLookups="false" disableUploadTimeout="true" acceptCount="100" debug="0" scheme="https" secure="true" clientAuth="false" sslProtocol="TLS" /> I didn't specify the "keyStore" parameter in here because I only

Re: plz hlp. Servlet Not found when accessing Servlet from internet

2006-09-13 Thread Eddie Fahy
Hi Santosh, Thanks for your reply. Yes, your suggestion makes lots of sense. There is apache webserver installed. Along with that there is php, tomcat, etc. Just like anyother Linux Server. Yesterday I discovered that if I access my servlet from internet by sepcifying port 8080, now its ok.

Re: service on linux

2006-09-13 Thread David Smith
The commons-daemon project can help in that area. Specifically, jsvc can launch as root, capture the ports and then let tomcat run as tomcat. http://jakarta.apache.org/commons/daemon --David Tracy Nelson wrote: By convention, only root can run services on ports below 1024. If you reconfigu

RE: service on linux

2006-09-13 Thread Tracy Nelson
By convention, only root can run services on ports below 1024. If you reconfigure Tomcat to run on port 8080, it'll work. --- Tracy Nelson / Nelnet Business Solutions 402 / 617-9449 | -Original Message- | From: Asensio, Rodrigo [mailto:[EMAIL PROTECTED] | Sent: Wednesday, 13 September, 2

Re: TC 5.5.17 w/ JDK 1.5 - SSL ciphers to use list

2006-09-13 Thread David Wall
I have tracked down two methods that should give me what I want in the abstract class javax.net.ssl.SSLSocket: String[] getEnabledCipherSuites() String[] getSupportedCipherSuites() Is there any way to retrieve the SSLSocket object created by Tomcat that is associated with a given HttpRequest?

TOMCAT-BUG, was: Re: Partly solved, problems persist: Re: Tomcat 5.5: Servlet skips FormAuthentication?!?!?

2006-09-13 Thread Gregor Schneider
Dear all, no, this is not a one2one-conversation, we succeeded, however, there appears to be a bug in Tomcat. Before we're submitting this one, I'd like to have your oppinions - maybe we're missing something here. As you may have read, the basics: - Tomcat 5.5.17 - Debian Sarge - Java(TM) 2 Run

service on linux

2006-09-13 Thread Asensio, Rodrigo
Fedora 5 Tomcat 5517 Sun JDK 1508 Finally I got my linux running with tomcat, but there is a little detail, if I run the server as tomcat user, tomcat goes up, but not listening in port 80 (su -l tomcat -c /usr/tomcat/bin/startup.sh), now if I run as root (./startup.sh) everything works ok. an

Partly solved, problems persist: Re: Tomcat 5.5: Servlet skips FormAuthentication?!?!?

2006-09-13 Thread Gregor Schneider
Hi, we got Authentication working now, however, there's a caveeat: We just removed the context-file in $catalina_home/conf/Catalina/localhost/SingleSignon.xml, and now it starts. What we do not understand is: Why does an existing context-definition enable a servlet to bypass FormBased Authenti

Getting classnotfound failure

2006-09-13 Thread Kevin Mullin
I've successfully installed tomcat Version 5.5.17 onto our mainframe system running z/OS 1.7, and have also installed the compatability package and JZOS.  The JZOS JCL to start tomcat fails with a class not found exception.  It is looking for: compressionFilters.CompressionFilter Does anybody kn

connectionTimeout

2006-09-13 Thread William Campillo
I am running Apache Tomcat v5.5.12 behind an Apache (v2) Reverse Proxy server. I'm also running a SunONE Application Server behind the same RP. Some of the Servlets/Applications on either Tomcat or SunONE have features to upload data into databases. When the data is sufficiently large

RE: tomcat 5.5.17 catalina.bat - dropping support for JPDA_OPTS environment variable?

2006-09-13 Thread Kurt Roy
Hello, Thanks for responding to my post - I didn't think anyone would! Attached is a zip file containing revised catalina.sh and catalina.bat files supporting JPDA_OPTS (supported in tomcat 4.1.18), and support for a new JPDA_SUSPEND. catalina.sh changes: 1. Documented JPDA_OPTS in the script

RE: tomcat deployment changes since Tomcat 5.5.12

2006-09-13 Thread Caldarale, Charles R
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Subject: Re: tomcat deployment changes since Tomcat 5.5.12 > > But the result is the same : > - exceptions in Tomcat logs, > - getServletContext().getRealPath(...) is null There's no guarantee that getRealPath() will return anything useful, a

JK 1.2.15 has problem here

2006-09-13 Thread Reinhard Holzner
Hi! I got an urgent problem with load balancing 2 (or more) Tomcat Servers by using the IIS ISAPI JK Connector (we want to try to remove Resin and use Tomcat instead): Installed: Windows Server 2003 IIS 6.0 (on 2 different machines, same configuration) Our Servlet(s) Our software is

Re: Tomcat 5.5: Servlet skips FormAuthentication?!?!?

2006-09-13 Thread Gregor Schneider
Argl... mixed up Joshua from Apache and David from Tomcat - sorry 4 that, both are legends anyways... Cheers! Greg -- what's puzzlin' you, is the nature of my game - To start a new topic, e-mail: users@tomcat.apache.org To unsu

Re: Tomcat 5.5: Servlet skips FormAuthentication?!?!?

2006-09-13 Thread Yassine ELassad (YEL)
Hi David, unfortunately your suggestion did not solve the problem, any other suggestions are appreciated merci ! Greetings Yassine On 9/13/06, David Delbecq <[EMAIL PROTECTED]> wrote: The servlet is mapped to / The security constraint is mapped to /* That's your problem. Map your security con

Re: Tomcat 5.5: Servlet skips FormAuthentication?!?!?

2006-09-13 Thread Gregor Schneider
Hi Joshua, 1st, thanks a lot for your quick answer, we really do appreciate it. However, this does not seem to be the cause of our problem. We changed the mapping in our web.xml both (security constraint AND servletmapping) to "/*" - same result, no login-screen. Then we changed it to "/" (both

Re: tomcat deployment changes since Tomcat 5.5.12

2006-09-13 Thread lionel . farbos
Thank you Chuck, I tested (TC 5.5.17) what you suggest with a Context ROOT.xml like this : But the result is the same : - exceptions in Tomcat logs, - getServletContext().getRealPath(...) is null >> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] >> Subject: tomcat deployment changes since

Re: TC 5.5.17 w/ JDK 1.5 - SSL ciphers to use list

2006-09-13 Thread David Wall
Mark Thomas wrote: David Wall wrote: Does anybody know how to find the list of SSL ciphers that TC will use (I'm running on Linux)? There's a Connector param to set the ciphers, but I don't know where to find the list of available ciphers that I have. http://marc.theaimsgroup.com/?l=

Re: Tomcat 5.5: Servlet skips FormAuthentication?!?!?

2006-09-13 Thread David Delbecq
The servlet is mapped to / The security constraint is mapped to /* That's your problem. Map your security constraint to * instead Gregor Schneider a écrit : > Dear all, > > we have some very odd behaviour here. > > First the basic: > > - Tomcat 5.5.17 > - Debian Sarge > - Java(TM) 2 Runtime Envir

Tomcat 5.5: Servlet skips FormAuthentication?!?!?

2006-09-13 Thread Gregor Schneider
Dear all, we have some very odd behaviour here. First the basic: - Tomcat 5.5.17 - Debian Sarge - Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_07-b03) We do have several Sevlets which require and use FormBased Login using Tomcat's internal FormAuthenticator. Now we've created

RE: tomcat deployment changes since Tomcat 5.5.12

2006-09-13 Thread Caldarale, Charles R
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Subject: tomcat deployment changes since Tomcat 5.5.12 > > So, can anybody can say to me if it is a bug or what are the > correct parameters for my needs ? Quoting from the Tomcat doc for the path attribute of : "The value of this field mus

tomcat deployment changes since Tomcat 5.5.12

2006-09-13 Thread lionel . farbos
Hi all, I tested several tomcat versions (TC5.5.7->TC5.5.17) and, when deploying my webapps, I don't see the same behaviour in these versions for the ROOT contexts. The tomcat versions >= TC5.5.12 don't have the same behaviour and I don't know if it is a bug or not So, can anybody can say to me

Re: Uploading the file

2006-09-13 Thread David Smith
Sounds to me like you need to have a chat with your network admins. A firewall or similar may be cutting off the connection. --David Piotr Dziędziel wrote: Hi All, When I'm uploading the file (size 4MB) from the same LAN everything is OK. When I'm uploading from different system over LAN o

Solution Re: Problem setting up Application-managed DataSource???

2006-09-13 Thread Mark Barnes
Well, by reading the source for DBCP 1.2.1, I can see that BasicDataSource method: getConnection(String username, String password) is not supported because the delegate which BasicDataSource uses, an instance of PoolingDataSource, throws an UnsupportedOperationException in method: getCo

Uploading the file

2006-09-13 Thread Piotr Dziędziel
Hi All, When I'm uploading the file (size 4MB) from the same LAN everything is OK. When I'm uploading from different system over LAN or from the internet and the file has size is 3MB or lower, it's OK, uploading ends successful. I am facing the problem while uploading the file size bigger then

Re: TC 5.5.17 w/ JDK 1.5 - SSL ciphers to use list

2006-09-13 Thread Mark Thomas
David Wall wrote: > Does anybody know how to find the list of SSL ciphers that TC will use > (I'm running on Linux)? There's a Connector param to set the ciphers, > but I don't know where to find the list of available ciphers that I have. http://marc.theaimsgroup.com/?l=tomcat-user&m=115495064905

Re: URIEncoding and POSTS

2006-09-13 Thread Mark Thomas
Mike Wannamaker wrote: > I can specify URIEncoding="UTF-8" in Tomcat's connector settings within the > server.xml file. Now, my Tomcat server correctly reads the URL GET > parameters correctly...sending out "Hello, José!" or "Hello, 田中!" as > expected. > > However, there's still a problem. > > W

Re: Executing binary from Servlet

2006-09-13 Thread William Bonnet
Hi > Tomcat is started using the startup.sh script provided and it runs using > a specific tomcat account which has admin type rights. > I am beginning to wonder what sort of problem this may be, as I must > emphasise that: > The runtime.exec() DOES work sometimes, and not others. There does not >

Re: Executing binary from Servlet

2006-09-13 Thread Sriram Narayanan
On 9/12/06, Mark HB <[EMAIL PROTECTED]> wrote: I have ensured that the permissions are set to at least 755 and am now at a bit of a loss. Any ideas? I'd faced a similar problem yesterday when adding some features to Sahi (http://sahi.sourceforge.net/). But this was on Windows. I took the syst

Re: Executing binary from Servlet

2006-09-13 Thread Sameer Acharya
>From your directory path mentioned it looks like this is a work folder /srv/www/tomcat5/base/webapps/simulator/WORK/yqzatmopa343/cimmsim: Is it possible that your dir/file is not available at some point in time when servlet is executing ? Have you tried executing a process from some fixed direc

Re: Using IBM JSF components on tomcat

2006-09-13 Thread David Delbecq
Hi, considering it's an null pointer exception and the fact the scriptCollector does not request any special parameter (it just collects scripts from childs), i'd suggest you address this specific issue the your websphere customer service :) Ben Zahler a écrit : > Hi David, > > the code I have co

Re: Executing binary from Servlet

2006-09-13 Thread Mark HB
Tomcat is started using the startup.sh script provided and it runs using a specific tomcat account which has admin type rights. I am beginning to wonder what sort of problem this may be, as I must emphasise that: The runtime.exec() DOES work sometimes, and not others. There does not seem to be a

Re: Using IBM JSF components on tomcat

2006-09-13 Thread Ben Zahler
Hi David, the code I have copied is placed inside the following tags: of course, the tags are all properly closed at the end, I'm quite sure that there is no syntax error on the page. David Delbecq <[EMAIL

Re: Using IBM JSF components on tomcat

2006-09-13 Thread David Delbecq
Hi Ben, according to your stack trace, the error occurs somewhere below the call of ScriptCollectorTag.doEndTag(), itself called by org.apache.jsp.searchTKS_jsp._jspx_meth_hx_scriptCollector_0, that mean during the 'endTag' steps of the first inside your jsp. However, the JSP code you show us has

Re: Using IBM JSF components on tomcat

2006-09-13 Thread Ben Zahler
I'm really sorry, seems like the mailing list program does not process my attachment properly, so I'll take one more last try. sorry again Ben - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe

Re: Using IBM JSF components on tomcat

2006-09-13 Thread Ben Zahler
Sorry about this, it seems like my attachments have not worked properly. The files should be stacktrace.txt and snippet.jsp for the code example. sorry! Ben Ben Zahler/Switzerland/[EMAIL PROTECTED] 13.09.2006 09:05 Please respond to "Tomcat Users List" To users@tomcat.apache.org

Re: Log analysis with Apache, mod_jk and 2 Tomcat instances

2006-09-13 Thread Rainer Jung
Marc Richards wrote: Also you can configure Apache to log the value of the session cookie (if you're using session cookies -- LogFormat "%{JSESSIONID}C..."), which includes the lb route so that you even know which instance of Tomcat took the request. ... and finally once we release the next mod

Using IBM JSF components on tomcat

2006-09-13 Thread Ben Zahler
hi all, I have a problem when using IBM-JSF components on tomcat. I know that is not a very usual configuration, maybe someone has had similar problems. This is the code which causes the problem: And this is the Stacktrace displayed by IE: Unfortunately, the error occurs in proprietary cod