RE: Help with Tomcat & IIS

2007-10-24 Thread Demetris Zavorotnichenko
All this info is great but you guys haven't answered my question yet. Please help me out here. -Original Message- From: Roger Parkinson [mailto:[EMAIL PROTECTED] Sent: Thursday, October 25, 2007 2:14 AM To: Tomcat Users List Subject: Re: Help with Tomcat & IIS We do it because the IIS i

RE: sun-web.xml file in Tomcat

2007-10-24 Thread Caldarale, Charles R
> From: Rob Tanner [mailto:[EMAIL PROTECTED] > Subject: Re: sun-web.xml file in Tomcat > > In Tomcat the context root is simply the path in the > context declaration in server.xml. You should not have any declarations in server.xml; that capability is there only for compatibility with older le

Re: Strante tomcat warning - WARNING: Parameters: Character decoding failed. Parameter skipped.

2007-10-24 Thread Jacob Rhoden
Hi Mark, I was aware that mod_jk2 was deprecated I just did not know that our provider setup the system using mod_jk2 until you prompted me to investigate. Thanks for your help! Best Regards, Jacob Mark Thomas wrote: mod_jk2!!! Are you sure. That module has been deprecated for several years

Re: Strante tomcat warning - WARNING: Parameters: Character decoding failed. Parameter skipped.

2007-10-24 Thread Mark Thomas
Jacob Rhoden wrote: > Mark Thomas wrote: >> Jacob Rhoden wrote: >> >>> This is as far as I got. Why would the browser be encoding its requests >>> in anything other than base64. >>> >> >> Are you using mod_jk? There is a config that could cause this. >> > > We did not configure the s

Re: Strante tomcat warning - WARNING: Parameters: Character decoding failed. Parameter skipped.

2007-10-24 Thread Jacob Rhoden
Mark Thomas wrote: Jacob Rhoden wrote: This is as far as I got. Why would the browser be encoding its requests in anything other than base64. Are you using mod_jk? There is a config that could cause this. We did not configure the server, our provider did I just checked and

Re: Strante tomcat warning - WARNING: Parameters: Character decoding failed. Parameter skipped.

2007-10-24 Thread Mark Thomas
Jacob Rhoden wrote: > This is as far as I got. Why would the browser be encoding its requests > in anything other than base64. I had just wondered if this was a common > problem with a somewhat simple solution. I don't really have time to go > digging around in TCP dumps at the moment so I guess th

Re: Strante tomcat warning - WARNING: Parameters: Character decoding failed. Parameter skipped.

2007-10-24 Thread Jacob Rhoden
This is as far as I got. Why would the browser be encoding its requests in anything other than base64. I had just wondered if this was a common problem with a somewhat simple solution. I don't really have time to go digging around in TCP dumps at the moment so I guess the error will have to liv

Re: Strante tomcat warning - WARNING: Parameters: Character decoding failed. Parameter skipped.

2007-10-24 Thread Mark Thomas
Jacob Rhoden wrote: > Martin Gainty wrote: >> Please post the encoding attribute located on the top line for you >> web.xml >> e.g. >> >> > I had wondered if that was relevant. This is completely and totally irrelevant with respect to the warning you are seeing in the logs. > To make sure we

Re: Strante tomcat warning - WARNING: Parameters: Character decoding failed. Parameter skipped.

2007-10-24 Thread Bill Barker
Well, what it means is that Tomcat saw a '%' character in either the query string or the POST body that wasn't followed by two two hex digits (0-9 union a-f). It is possible that it is simply a character encoding problem, but there isn't enough info here to really say what the problem is. "Jac

Re: Start tomcat without Connector

2007-10-24 Thread Bill Barker
For Parameters, just include them in the query string, or the request body, and Tomcat will do it's thing with them. For request Attributes, just set them on the coyoteRequest, and they will be picked up. "Auke Noppe" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Yes, is a kind o

Re: Start tomcat without Connector

2007-10-24 Thread Bill Barker
It's actually the org.apache.catalina.connector.Request that handles getting the session. For the first time the session is requested, tt does this by getting the manager from the context, and calls the findSession(String sessionid) method on the manager. If this returns null, then it does muc

Re: Strante tomcat warning - WARNING: Parameters: Character decoding failed. Parameter skipped.

2007-10-24 Thread Jacob Rhoden
Martin Gainty wrote: Please post the encoding attribute located on the top line for you web.xml e.g. I had wondered if that was relevant. To make sure we handle international characters properly we are using: <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="U

Strante tomcat warning - WARNING: Parameters: Character decoding failed. Parameter skipped.

2007-10-24 Thread Jacob Rhoden
Hi, We are having an elusive issue on one of our production servers using Tomcat 6.0.14, every few minutes we are getting a request that results in the following exception: Oct 25, 2007 12:04:23 AM org.apache.tomcat.util.http.Parameters processParameters WARNING: Parameters: Character decod

Re: Service on Windows Server 2003

2007-10-24 Thread Gabe Wong
if using jdk6, make sure msvcr71.dll is in the path of jvm.dll. The easiest thing to do is to copy msvcr71.dll to the jre directory from the jdk directory like so: copy %JDK_HOME%\bin\msvcr71.dll %JDK_HOME%\jre\bin\server\ Dan Armbrust wrote: I have a difficult but severe problem with the tomca

Re: Help with Tomcat & IIS

2007-10-24 Thread Roger Parkinson
We do it because the IIS is already active on the existing server and it is running a bunch of other stuff we don't want to stop (eg MS Exchange). So we cannot have tomcat take over handling port 80 requests. It works fine, though. Roger Jacob Rhoden wrote: Propes, Barry L wrote: there's lots

Re: Help with Tomcat & IIS

2007-10-24 Thread Jacob Rhoden
Propes, Barry L wrote: there's lots of people who combine the two -- I currently am, because our UNIX support group has not made the environment compatible for or with Tomcat! Sounds like you and I have the same employer (: But seriously, I am trying to work out the pro's and cons of standal

disable HTTP Methods DELETE, PUT

2007-10-24 Thread Lori Ronning
Hi. I'm using Tomcat 5.5.23 on Windows XP Pro. I have a Java application that uses spring and acegi for security and configuration. I only want the GET, POST and HEAD HTTP methods to be allowed, so I have added the following to various web.xml and nothing seems to work. Disabled

RE: Help with Tomcat & IIS

2007-10-24 Thread Propes, Barry L
there's lots of people who combine the two -- I currently am, because our UNIX support group has not made the environment compatible for or with Tomcat! -Original Message- From: Jacob Rhoden [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 24, 2007 5:39 PM To: Tomcat Users List Subject:

Re: Help with Tomcat & IIS

2007-10-24 Thread Jacob Rhoden
Wow, this is the first time I have heard of someone wanting to use Tomcat with IIS. Most IIS people would be using .NET. (I am interested to hear from people if its possible and why you would do it) Is there a speciffic reason you need to connect it to IIS? Did you know that tomcat can be used

Re: Restrict users from the /manage/ application

2007-10-24 Thread Mark Thomas
michaeltwozero wrote: > Is there a way I can configure the management application to only respond to > requests from 127.0.0.1 > and ignore all other requests? http://tomcat.apache.org/tomcat-6.0-doc/config/valve.html You want the remote address filter Mark -

Service on Windows Server 2003

2007-10-24 Thread Dan Armbrust
I have a difficult but severe problem with the tomcat service launcher on windows server 2003. Our application installs itself, tomcat, and a jvm, and then runs a bat file which registers the tomcat server, using our provided jvm. I _know_ this code works fine almost everywhere - it has been in u

Re: How can I ensure that client access servlets via HTTPS?

2007-10-24 Thread Terence M. Bandoian
Hi- The following should require HTTPS for all requests: Secure Pages /* CONFIDENTIAL I'd suggest taking a look at the URL pattern specified in your original post. -Terence M. Bandoian [EMAIL PROTECTED]

Re: Confused about startup

2007-10-24 Thread Konstantin Kolinko
Hi, I can say you a few words about this bootstrap class. I remember how I was proud, when I managed to decypher what it actually does. It was a year ago, but it is still a good memory. ;) It's an excellent piece. I hope that in a while you will be able to share these feelings of joy. In essence

Re: RES: RES: RES: How can I ensure that client access servlets via HTTPS?

2007-10-24 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Marcus, Milanez, Marcus wrote: > Thanks for your reply chris! > > By the way, I'm not the who needs help. The author of this post is Ala > Winter Sorry. For some reason, your replies are not being threaded with the originals. It looks like your mai

Re: DefaultServlet, allowLinking, symbolic links do not work

2007-10-24 Thread Filip Hanik - Dev Lists
should be however, in TC 5.5, you would need this in either ROOT.xml or server.xml for it to become the root context Filip Artur Rataj wrote: Hello, this is the DefaultServlet definition to allow listings: Listings org.apache.catalina.servlets.DefaultServlet

Tomcat 4.1

2007-10-24 Thread Velurethu, Abi J
All, I am trying to setup SSL on Tomcat 4.1. The ssl connection would work for a few attempts and then stop while the non-ssl connection still remains. If I restart tomcat, I can connect again using ssl, but it stops after few successful connections. Any ideas? Thanks. ---

RES: RES: RES: How can I ensure that client access servlets via HTTPS?

2007-10-24 Thread Milanez, Marcus
Thanks for your reply chris! By the way, I'm not the who needs help. The author of this post is Ala Winter -- Forwarded message -- From: alla winter <[EMAIL PROTECTED]> Date: Oct 22, 2007 2:48 PM Subject: How can I ensure that client access servlets via HTTPS? To: users@tomcat.ap

Re: [ANN] Apache Tomcat 5.0.x no longer supported

2007-10-24 Thread nambo
> > I was supprised that tomcat 5.0 documents suddenly disappeared, > > but this is the reason. As long as I understand, there was no alert > > about it beforehand. A lot of tomcat 5.0 users will be at a loss > > because they are not ready for this announcement. > > It shouldn't be a great surp

Custom Log Formatter

2007-10-24 Thread Dan Beaulieu
Hello, it is my understanding that if I specify the fully qualified name of a class that implements java.util.logging.Formatter like so in conf/logging.properties: 2localhost.org.apache.juli.FileHandler.formatter = CustomFormat Then juli should use that class to format log messages that go

Re: Confused about startup

2007-10-24 Thread Lyallex
Hmm, obviously this was "not an acceptable question" ... shame. Still, I have now managed to get 5.5.25 to build and run and when I put some simple debug in Bootstrap.main() it does indeed appear that this method is being called. Still slightly confused as to why this method is commented as /**

Restrict users from the /manage/ application

2007-10-24 Thread michaeltwozero
HI all, I posses very little knowledge of Tomcat, however need to restrict access to the /manage/ application (if application is the right term) Basicly the bit that allows you to admin the tomcat server from a webpage. I have Tomcat running on IIS6 implemented in some kind of ISAPI filter I th

Re: tomcat 5.0.25 migration to tomcat 6.0.14

2007-10-24 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Dustin, Dustin Fortin wrote: >> These days, all app-specific configuration should go into your webapp's >> META-INF/context.xml file. > > So there should not be $CATALINA_HOME/conf///*.xml > with the path to the webapp being in the name of the .xml?

RE: tomcat 5.0.25 migration to tomcat 6.0.14

2007-10-24 Thread Dustin Fortin
> >-BEGIN PGP SIGNED MESSAGE- >Hash: SHA1 > >Dustin, > >Dustin Fortin wrote: >> Do you know of anywhere to find documentation on migrating >> an old server.xml to the new standard, as I've been unable to find any >> so far. > >The best thing to do is start with the stock server.xml file --

Apr, tomcat native lib on OSX...

2007-10-24 Thread Lorenzo Schoovaerts
Hi, Although I’ve been sarching a lot on the net, I can’t get Tomcat native on MacIntel OSX 10.4.10 to work. I obtained apr through darwin-ports. I compiled the native libs and placed the generated libraries anywhere you can imagine. ( Since tomcat says this: The Apache Tomcat Native lib

Re: tomcat 5.0.25 migration to tomcat 6.0.14

2007-10-24 Thread Markus Schönhaber
Dustin Fortin wrote: > Do I need to start from scratch and completely ditch the t5 server.xml? > I really hope not because there are a ton of database resources I would > have to test and be 100% sure on before throwing this into production. > I will do this if you feel it necessary, but if possib

Re: Tomcat error, with Scalix

2007-10-24 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Neil, Neil Wilson wrote: > Unfortunately I can't really upgrade it as it may break the rest of > Scalix if it depends on this current version. Okay. Sometimes this just happens ;) I get what looks like the same error you do when I start up mod_jk:

Re: RES: RES: How can I ensure that client access servlets via HTTPS?

2007-10-24 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Marcus, Milanez, Marcus wrote: > I know that, but the code posted in the question had a CONFIDENTIAL > value set for and the author still seemed to > have lacks regarding it... But just for a matter of curiosity, why > should I use another port for S

Re: Tomcat error, with Scalix

2007-10-24 Thread Neil Wilson
Hi Chris, Thanks for your reply. Christopher Schultz wrote: You probably ought to upgrade. 1.2.14 is pretty old: the current version is 1.2.25. You can look at the changelog at http://tomcat.apache.org/connectors-doc/miscellaneous/changelog.html to see if anything important changed for you (and

Re: tomcat 5.0.25 migration to tomcat 6.0.14

2007-10-24 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Dustin, Dustin Fortin wrote: > Do you know of anywhere to find documentation on migrating > an old server.xml to the new standard, as I've been unable to find any > so far. The best thing to do is start with the stock server.xml file -- it should con

Re: Tomcat mixes sessions?

2007-10-24 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Eero, Eero Nevalainen wrote: > The application itself is nothing fancy. The login controller hits the > database, puts a "user" key in session with some user-specific data, > and after that, a front filter checks for the existence of the key for > log

Re: RES: How can I ensure that client access servlets via HTTPS?

2007-10-24 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jim, Jim Cox wrote: > Note that the OP's question was (roughly) "why doesn't > work for me?" Whoops! If Marcus could post his configuration, that would help. I think if you don't have "redirectPort" set, Tomcat will not be able to switch from HTTP

Re: setting up two tomcat instance on a single machine

2007-10-24 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Sunil, sunil chandran wrote: > i do understand that i will face lot of problems..but its just a test > PC. If it's a test PC, then upgrade everything to current production-quality releases (mod_jk 1.2.25 and Tomcat 5.5 or Tomcat 6). You'll be much be

Re: DefaultServlet, allowLinking, symbolic links do not work

2007-10-24 Thread Mark Thomas
Artur Rataj wrote: > > Tomcat version? I think I recall some issues with this on older versions. Mark - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

Re: removing :xxxx port requirement in URL [update]

2007-10-24 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Dale, BuildSmart wrote: > It looks like my current solution only works with Tomcat 4.1 (I didn't > try anything older). > > I'm wondering how to resolve this, I doubt they'd make changes in the > source to allow the ability to modify the docroot with

DefaultServlet, allowLinking, symbolic links do not work

2007-10-24 Thread Artur Rataj
Hello, this is the DefaultServlet definition to allow listings: Listings org.apache.catalina.servlets.DefaultServlet debug 0 listings true 1 Listings /

Re: Why DefaultServlet listing does not work

2007-10-24 Thread Artur Rataj
> > The way the default servlet works, if it isn't mapped to '/', it won't > work properky. Thanks, with that mapping it works. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For

RE: tomcat 5.0.25 migration to tomcat 6.0.14

2007-10-24 Thread Dustin Fortin
> >No need to apologize, you found the correct place for your question. Great, thank you for the quick reply. >[...] >> upgraded t6 dev server. I copied the t5 server.xml from the working app >> to the dev, > >I wouldn't do that. Fair enough. Do you know of anywhere to find documentation on mi

Confused about startup

2007-10-24 Thread Lyallex
Hello Windows XP SP2 Java 1.5.0_10 Tomcat 5.5.25 After many years using Tomcat to host various web sites I thought it was about time I started looking at some of the code. I downloaded the source for 5.5.25 and thought I'd start at the beginning and figure out what happens when I start the server

Re: a simple question about Directory structure in Tomcat

2007-10-24 Thread Mark Thomas
pesho318i wrote: > servlet > > myServlet > > Your servlet also needs to be in a package. Mark - To start a new topic, e-mail: users@tomcat.apache.org To un

Re: how to use two certificate authorities of java in tomcat server.

2007-10-24 Thread Mark Thomas
nyatapol wrote: > hello, > i am facing a problem. i have one tomcat server with two contexts. now i > want to use the seperate certificate authorities for the two contexts with > seperate digital certificates. how can i manage two certificate authorities > in java and tomcat server. can anyone help

Re: [ANN] Apache Tomcat 5.0.x no longer supported

2007-10-24 Thread Mark Thomas
nambo wrote: >> The Apache Tomcat team wishes to announce that Tomcat 5.0.x will no >> longer be supported. >> >> Users are encouraged to upgrade to the latest stable 6.x release or, >> if that is not practical, the latest stable 5.5.x for continued support. > > I found it. > I was supprised that

Re: Why DefaultServlet listing does not work

2007-10-24 Thread Mark Thomas
Artur Rataj wrote: > Hello. I have the following servlet definition: > > > Listings > > org.apache.catalina.servlets.DefaultServlet > > debug > 0 > > > listings > true > > 1 > >

RES: RES: How can I ensure that client access servlets via HTTPS?

2007-10-24 Thread Milanez, Marcus
Hi Chris, I know that, but the code posted in the question had a CONFIDENTIAL value set for and the author still seemed to have lacks regarding it... But just for a matter of curiosity, why should I use another port for SSL, instead of 443 ? -Mensagem original- De: Christopher Schultz

Re: RES: How can I ensure that client access servlets via HTTPS?

2007-10-24 Thread Jim Cox
On 10/23/07, Christopher Schultz <[EMAIL PROTECTED]> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Marcus, > > Milanez, Marcus wrote: > > I think you could configure your server so that the 80 port is not > > available, only the 443 one. Programaticaly, you can invoke the > > request

Re: setting up two tomcat instance on a single machine

2007-10-24 Thread sunil chandran
hello all, i do understand that i will face lot of problems..but its just a test PC . i just want to set up a test environment to see the working of Apache and tomcat using a connector. that i why am stiil asking help to implement clustering of tomcat to get two instance of tomcat working. On 10/

Re: Apache Tomcat 5.0 & Windows Vista

2007-10-24 Thread Markus Schönhaber
Markus Schönhaber wrote: > Attiq Ur-Rehman wrote: > >> All I want is: Tomcat is installe din C:\Program Files\Tomcat >> >> Webapps folder is in C:\ProgramData\Tomcat\webapps >> >> All application are installed under this webapps folder. > > Set the "appBase" attribute of your (s) accordingly. >

Re: Apache Tomcat 5.0 & Windows Vista

2007-10-24 Thread Markus Schönhaber
Attiq Ur-Rehman wrote: > All I want is: Tomcat is installe din C:\Program Files\Tomcat > > Webapps folder is in C:\ProgramData\Tomcat\webapps > > All application are installed under this webapps folder. Set the "appBase" attribute of your (s) accordingly. Don't forget to change the locations f

RE: Start tomcat without Connector

2007-10-24 Thread Auke Noppe
I have an instance of the manager now. I forgot a reference. But, how can I make a reference to the session in the coyoteRequest? Or does the context manage the sessions (by the manager) and is the context the one who makes the references between sessions and coyoteRequests? Lots of thanks, Auke

RE: Start tomcat without Connector

2007-10-24 Thread Auke Noppe
Yes, is a kind of mock testing. But I have to instantiate a session, because I don’t use a browser to access my instance of tomcat. My app just uses some tomcat files to process jsp's and Servlets. But, when my app is started, the manager is still null. (e.g. I get a NPE when I call context.manager

Re: Tomcat mixes sessions?

2007-10-24 Thread Oliver Schoett
Eero Nevalainen wrote: After that, it's just a matter of getting the username from the session-stored object for subsequent queries. How do you store the session ID in the client browser? I have seen a similar problem with a login page that handed out Session IDs in the URLs contained in the

Re: a simple question about Directory structure in Tomcat

2007-10-24 Thread pesho318i
thanks, Well, I see by design the WEB-INF should be directly in webapps/myApp/ but maybe there is a way to change it, e.g. change the web.xml file. Now it looks like: servlet myServlet

how to use two certificate authorities of java in tomcat server.

2007-10-24 Thread nyatapol
hello, i am facing a problem. i have one tomcat server with two contexts. now i want to use the seperate certificate authorities for the two contexts with seperate digital certificates. how can i manage two certificate authorities in java and tomcat server. can anyone help me? Thanks, Nyatapol. -