NullPointerExceptions on startup with NIO connector

2008-10-29 Thread Alex Talis
Hi,   My Tomcat 6.0.18 throws NPEs if there are incoming connections to an NIO connector before the connector had a chance to initialize.  The behavior that I would expect is for Tomcat to simply refuse incoming connections until the connector is ready.   I found a similar post on this mailing

Tomcat 6.0 problems with LDAP ( connection gets blocked for 10 min)

2008-10-29 Thread Hisham Farahat
Dear All, I have stated this problem before, but maybe it was not clear. I will state it now hopefully more clearly. I have a tomcat server 6.0 running on a Windows server 2003, it needs to authenticate users using JNDI realm which connects to an LDAP server ( Active directory running on a

Re: Tomcat 6.0 problems with LDAP ( connection gets blocked for 10 min)

2008-10-29 Thread Rainer Jung
Hisham Farahat schrieb: Dear All, I have stated this problem before, but maybe it was not clear. I will state it now hopefully more clearly. I have a tomcat server 6.0 running on a Windows server 2003, it needs to authenticate users using JNDI realm which connects to an LDAP server (

Re: Logging

2008-10-29 Thread Mark Thomas
Mohit Anchlia wrote: ?xml version=1.0 encoding=UTF-8? !DOCTYPE log4j:configuration SYSTEM log4j.dtd log4j:configuration xmlns:log4j=http://jakarta.apache.org/log4j/; debug=false !-- configuration xmlns=http://logging.apache.org/; debug=true -- appender name=APP_LOG

An issue concerning authentication in Tomcat hosted web application

2008-10-29 Thread Nar Karapetyan
Hello, I'm trying to build an authentication mechanism using the security-constraint tag in web.xml E.G. security-constraint web-resource-collection web-resource-nameMy App/web-resource-name url-pattern*.action/url-pattern url-pattern*.jsp/url-pattern /web-resource-collection

Fw: Problem with form processing using doGet

2008-10-29 Thread Remigiusz Andrzejak
- Forwarded Message From: Remigiusz Andrzejak [EMAIL PROTECTED] To: users@tomcat.apache.org Sent: Wednesday, October 29, 2008 12:33:37 PM Subject: Problem with form processing using doGet Hello, I developed a simple web application using Eclipse. Having it unit tested I created

Re: basic help with tomcat5

2008-10-29 Thread Ben Stringer
Hi Tim, A few things: 1) Looks like the install of the tomcat5 package has created a tomcat5 user, but that user is not able to start new shells. This will be a problem. You can verify this by running grep tomcat5 /etc/passwd and seeing what the shell for the tomcat5 user is set to - it will be

Re: basic help with tomcat5

2008-10-29 Thread Remigiusz Andrzejak
Sorry, I didn't mention that I installed Tomcat 5.5.20 on Windows XP in both cases. Thanks and regards, Remik From: Ben Stringer [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Wednesday, October 29, 2008 1:07:50 PM Subject: Re: basic

Re: basic help with tomcat5

2008-10-29 Thread Ben Stringer
Hi Remik, I was answering a different poster, who was trying to get Tomcat running on FC6. Do you have a different question? If so, you should start a new thread. Cheers, Ben On Wed, 2008-10-29 at 05:13 -0700, Remigiusz Andrzejak wrote: Sorry, I didn't mention that I installed Tomcat 5.5.20 on

Disjoint Base64 Encoded String

2008-10-29 Thread Jeng Yu
Hi Friends, I am seeing a problem with my servlet running in Tomcat and I'm a bit baffled. When I post a base64 encoded string that has a + character in it from a client to my servlet (via form post), the string becomes disjointed at + character making it two strings. That is, the +

Re: Disjoint Base64 Encoded String

2008-10-29 Thread Serge Fonville
A + is automatically converted to a space.If you want to use base64 either convert it client side or indeed urlencode it so that it can only be interpreted as it is intended and no 'intelligent' interpretation is done Regards, Serge Fonville On Wed, Oct 29, 2008 at 2:01 PM, Jeng Yu [EMAIL

How can I hard code the IP address on a single server with multiple Tomcat instances.

2008-10-29 Thread dOE
I have a server that I am hosting multiple Tomcat servers from, and the issue I am running into is... - I have multiple IP's bound to the servers interface, Tomcat _1 has port 8080 specified as its connector port. The second Tomcat_2 has port 8180 set as its conector port in its server.xml, but

Re: How can I hard code the IP address on a single server with multiple Tomcat instances.

2008-10-29 Thread Serge Fonville
There is an address attribute inside the connector that specifies the address of the listening socket http://tomcat.apache.org/tomcat-6.0-doc/config/http.html http://tomcat.apache.org/tomcat-6.0-doc/config/ajp.html Hope this helps Regards, Serge Fonville On Wed, Oct 29, 2008 at 2:06 PM, dOE

Re: How can I hard code the IP address on a single server with multiple Tomcat instances.

2008-10-29 Thread dOE
Serge thanks for the reply... so to hard code the IP its just a matter of ONLY adding Connector address=' 192.168.1.1' ? The online document site does not give any syntax examples. On Wed, Oct 29, 2008 at 9:17 AM, Serge Fonville [EMAIL PROTECTED]wrote: There is an address attribute inside

Re: How can I hard code the IP address on a single server with multiple Tomcat instances.

2008-10-29 Thread Serge Fonville
Place inside a Service elementConnector port=80 protocol=HTTP/1.1 connectionTimeout=2 redirectPort=443 address=127.0.0.1/ and the output of netstat contains an entry for 127.0.0.1:80 instead of the usual 0.0.0.0:80 Regards, Serge Fonville On Wed, Oct 29, 2008 at 2:31 PM, dOE [EMAIL

Re: NullPointerExceptions on startup with NIO connector

2008-10-29 Thread Filip Hanik - Dev Lists
thanks for the report, looks it was fixed in trunk http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/tomcat/util/net/NioEndpoint.java?view=diffr1=618058r2=618059 I just forgot to backport it Filip Alex Talis wrote: Hi, My Tomcat 6.0.18 throws NPEs if there are incoming connections

Re: How can I hard code the IP address on a single server with multiple Tomcat instances.

2008-10-29 Thread Steve Ochani
Send reply to: Tomcat Users List users@tomcat.apache.org Date sent: Wed, 29 Oct 2008 09:06:57 -0400 From: dOE [EMAIL PROTECTED] Send reply to: [EMAIL PROTECTED] To: Tomcat User-List users@tomcat.apache.org Subject:How can I hard code the IP address on a single server with

Re: How can I hard code the IP address on a single server with multiple Tomcat instances.

2008-10-29 Thread dOE
Hi Serge, Below are the values from both of my server.xml files. I specified the address that the port should listen on, and I am unable to open * http://192.168.100.2:8080* (GOOD!). When I attempt to open * http://192.168.100.2:8180* I get a 400, and *http://192.168.100.1:8180* the request

Re: How can I hard code the IP address on a single server with multiple Tomcat instances.

2008-10-29 Thread Serge Fonville
You say the page not found errors are good...The configuration of the connectors looks ok Are there any errors in the logs and have you configured an identiefieable error page for both instances? (error-page inside web.xml) That way you can determine which tomcat is serving the error. Do the other

Re: NullPointerExceptions on startup with NIO connector

2008-10-29 Thread Alex Talis
Filip, does this mean that this fix will be in 6.0.19 production release?   Thanks - Original Message From: Filip Hanik - Dev Lists [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Wednesday, October 29, 2008 7:15:01 AM Subject: Re: NullPointerExceptions on startup

Re: NullPointerExceptions on startup with NIO connector

2008-10-29 Thread Filip Hanik - Dev Lists
yes, that is correct Alex Talis wrote: Filip, does this mean that this fix will be in 6.0.19 production release? Thanks - Original Message From: Filip Hanik - Dev Lists [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Wednesday, October 29, 2008 7:15:01 AM

Re: Tomcat clustering

2008-10-29 Thread Dwayne
Andrew, Sharing state between web apps in Tomcat is possible with solutions like Terracotta or a customized messaging system. D. On Mon, Oct 27, 2008 at 2:49 PM, Filip Hanik - Dev Lists [EMAIL PROTECTED] wrote: but you are saying they are different applications, so what data could they

Re: How can I hard code the IP address on a single server with multiple Tomcat instances.

2008-10-29 Thread dOE
You say the page not found errors are good... *IT IS GOOD BECAUSE IT TELLS ME THE SERVER IS BEING HIT. PRIOR TO YOUR HELP THE WRONG SERVER WAS OPENING ON ALL PORTS AND IP's NO LONGER THE CASE. * The configuration of the connectors looks ok Are there any errors in the logs and have you configured

Re: How can I hard code the IP address on a single server with multiple Tomcat instances.

2008-10-29 Thread Serge Fonville
You seem to be missing libraries.Have you defined separate catalina_bases for each instance and are all the required libs in the classpath Have you read http://azeditech.com/tomcat/multiple-tomcat-instances.html;http://azeditech.com/tomcat/multiple-tomcat-instances.html Any additional

Re: Logging

2008-10-29 Thread Mohit Anchlia
I added log4j.xml in classes dir in .war and log4j.jar in WEB-INF/lib dir in .war. This helped me in getting the logs in app.log, but didn't stop logs in catalina.out On Wed, Oct 29, 2008 at 2:50 AM, Mark Thomas [EMAIL PROTECTED] wrote: Mohit Anchlia wrote: ?xml version=1.0 encoding=UTF-8?

Re: How can I hard code the IP address on a single server with multiple Tomcat instances.

2008-10-29 Thread dOE
I read the article, and I had already done everything it discussed. Not to clear on the Catalina_Base since I have to separate tomcats and most of the configurations are using relative paths. I do have an environmental variable set for Catalina_Home on the server that points to *server1

Re: How can I hard code the IP address on a single server with multiple Tomcat instances.

2008-10-29 Thread dOE
If I were to install tomcat in /approot/tomcat (this would be the distribution directory that contains ../bin, and then I created /approot/sites/server1, and ...server2. I know enough that catalina_home variable would need to point to /approot/tomcat/, but where would I point my catalina_base

Apache + Tomcat + Struts

2008-10-29 Thread Nandorov
Hello, i'm newbie working with apache. i have configured the httpd.conf, added a worker.properties to make it work with tomcat. I have the following structure: WebServerExtensions (this is mapguide folder) Apache2 Tomcat www appfolder1 appfolder2 WEB-INF lib (here are my

Re: How can I hard code the IP address on a single server with multiple Tomcat instances.

2008-10-29 Thread Hassan Schroeder
On Wed, Oct 29, 2008 at 10:23 AM, dOE [EMAIL PROTECTED] wrote: perhaps this is where my problem is at this stage. I would need a Catalina_Home2 and have that pointing to *server2 *...? I am guessing, but would this mean I need to edit every mention of Catalina_Home to Catalina_Home2 in the

Re: Apache + Tomcat + Struts

2008-10-29 Thread David Smith
The .java files should be compiled to .class files and either placed in WEB-INF/classes or put together in a jar file and placed in WEB-INF/lib. If you place the compiled .class files in the class folder, you'll also have to create the directory structure that follows the package naming. For

Re: How can I hard code the IP address on a single server with multiple Tomcat instances.

2008-10-29 Thread dOE
Now this needs to be replicated on a Win32 system as well following this how can this be done? The service can not be started by a command-line script (ideally). On Wed, Oct 29, 2008 at 2:02 PM, Hassan Schroeder [EMAIL PROTECTED] wrote: On Wed, Oct 29, 2008 at 10:23 AM, dOE [EMAIL PROTECTED]

Re: How can I hard code the IP address on a single server with multiple Tomcat instances.

2008-10-29 Thread dOE
Guys, please don't give up on me yet, I am going to go read up on the documentation tonight to see what else I need to do to get this site working. I think my focus will be more for the Win32 rather 'nix because it more of a priority. On Wed, Oct 29, 2008 at 2:17 PM, dOE [EMAIL PROTECTED] wrote:

Re: Apache + Tomcat + Struts

2008-10-29 Thread Nandorov
hi David, thank you! it works now Regards, David Smith-2 wrote: The .java files should be compiled to .class files and either placed in WEB-INF/classes or put together in a jar file and placed in WEB-INF/lib. If you place the compiled .class files in the class folder, you'll also have

RE: An issue concerning authentication in Tomcat hosted web application

2008-10-29 Thread Caldarale, Charles R
From: Nar Karapetyan [mailto:[EMAIL PROTECTED] Subject: An issue concerning authentication in Tomcat hosted web application This snippet says that any url ending with .action or .jsp should be authenticated first, and works OK. However, I need to exclude some specific urls which end with

Howto ip-protect a specific url in webapp?

2008-10-29 Thread Harri.Paivaniemi
Howto ip-protect a specific url in webapp? Situation: We have a webapp /foo. It has to be accessible from the whole world. There's a foo's admin interface in /foo/admin. It has to be restricted by IP address so that it's allowed only from x.x.x.x. I can restrict the whole /foo by using valve