Re: 64-bit connector issues on W2K8 IIS7

2009-09-15 Thread Rainer Jung
On 15.09.2009 05:34, George Sexton wrote:
 Most likely, someone has configured IIS to run in 32-bit mode. I had this
 happen with a customer. They were using another app that required 32-bit
 mode for compatibility.
 
 If you do end up running the 32-bit Redirector, you need to put your
 registry entry under HKEY_LOCAL_MACHINE\Software\WOW6432Node
 
 http://support.microsoft.com/kb/305097

Plus maybe:

http://support.microsoft.com/?scid=kb%3Ben-us%3B894435

It describes switching between 32Bits and 64Bits for IIS (on Windows
2003, but might still apply).

Regards,

Rainer

 -Original Message-
 From: Jordan Michaels [mailto:jor...@viviotech.net]
 Sent: Monday, September 14, 2009 5:32 PM
 To: Tomcat Users List
 Subject: 64-bit connector issues on W2K8 IIS7

 I'm trying to install the 64-bit mod_jk connector on a 64-bit Windows
 Server 2008 system. After literally hours of screwing around with the
 64-bit version of the connector, I found a blog post where someone had
 mentioned that they were able to follow the blog's installation
 suggestions and got things working on a 64-bit installation of W2K8
 64-bit server. However, the blog post described installing the 32-bit
 connector.

 So... I then tried to install the 32-bit connector
 (isapi_redirect-1.2.28.dll) and VIOLA!, everything works great.

 Has anyone had success at installing the 64-bit connector on a W2K8
 64-bit machine? What's the trick to it?

 When I use the 64-bit connector instead of the 32-bit, I get the
 following error:

 HTTP Error 500.0 - Internal Server Error
 Calling GetFilterVersion on ISAPI filter
 C:\tomcat\connectors\isapi_redirect-1.2.28.dll failed

 For now, I'm just happy to be up and running with the 32-bit version,
 but it would be nice to have a system that was totally 64-bits.

 Thanks!

 --
 Warm regards,
 Jordan Michaels
 Vivio Technologies
 http://www.viviotech.net/
 Open BlueDragon Steering Committee
 Adobe Solution Provider

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



error listenerstart Tomcat 6.0.20

2009-09-15 Thread Sarah_Sh

Hi all,

I have an error listenerstart at my tomcat 6.0.20 which said that the
context [/xx] startup failed to previous errors:
catalina log:
14.09.2009 18:21:17 org.apache.tomcat.util.digester.SetPropertiesRule begin
WARNUNG: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting
property 'debug' to '0' did not find a matching property.
14.09.2009 18:21:17 org.apache.tomcat.util.digester.SetPropertiesRule begin
WARNUNG: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting
property 'relaodable' to 'false' did not find a matching property.
14.09.2009 18:21:17 org.apache.tomcat.util.digester.SetPropertiesRule begin
WARNUNG: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting
property 'debug' to '0' did not find a matching property.
14.09.2009 18:21:17 org.apache.tomcat.util.digester.SetPropertiesRule begin
WARNUNG: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting
property 'relaodable' to 'false' did not find a matching property.
14.09.2009 18:21:17 org.apache.tomcat.util.digester.SetPropertiesRule begin
WARNUNG: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting
property 'debug' to '0' did not find a matching property.
14.09.2009 18:21:17 org.apache.tomcat.util.digester.SetPropertiesRule begin
WARNUNG: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting
property 'relaodable' to 'false' did not find a matching property.
14.09.2009 18:21:17 org.apache.catalina.core.AprLifecycleListener init
INFO: Loaded APR based Apache Tomcat Native library 1.1.16.
14.09.2009 18:21:17 org.apache.catalina.core.AprLifecycleListener init
INFO: APR capabilities: IPv6 [true], sendfile [true], accept filters
[false], random [true].
14.09.2009 18:21:17 org.apache.coyote.http11.Http11AprProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-80
14.09.2009 18:21:17 org.apache.coyote.ajp.AjpAprProtocol init
INFO: Initializing Coyote AJP/1.3 on ajp-8009
14.09.2009 18:21:17 org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 787 ms
14.09.2009 18:21:17 org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
14.09.2009 18:21:17 org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.20
14.09.2009 18:21:26 org.apache.catalina.core.StandardContext start
SCHWERWIEGEND: Error listenerStart
14.09.2009 18:21:26 org.apache.catalina.core.StandardContext start
SCHWERWIEGEND: Context [/geoserver] startup failed due to previous errors

I looked at my application log and found this:
2009-09-11 15:52:07,230 WARN [geoserver.logging] - Suppressing StdOut
logging.  If you want to see GeoServer logs, be sure to look in
'C:\temp\geonetwork\data\geoserver_data\..\..\jetty\logs\geoserver.log'
2009-09-11 15:52:08,449 WARN [referencing.factory] - Axis elements found in
a wkt definition, the force longitude first axis order hint might not be
respected:
PROJCS[WGS84 / Simple Mercator, GEOGCS[WGS 84, DATUM[WGS_1984,
SPHEROID[WGS_1984, 6378137.0, 298.257223563]], PRIMEM[Greenwich, 0.0],
UNIT[degree, 0.017453292519943295]], PROJECTION[Mercator_1SP_Google],
PARAMETER[latitude_of_origin, 0.0], PARAMETER[central_meridian, 0.0],
PARAMETER[scale_factor, 1.0], PARAMETER[false_easting, 0.0],
PARAMETER[false_northing, 0.0], UNIT[m, 1.0], AXIS[x, EAST], AXIS[y,
NORTH], AUTHORITY[EPSG,54004]]
2009-09-11 15:52:11,199 WARN [geoserver.securit] - Rule *.*.r=* is
overriding another rule targetting the same resource
2009-09-11 15:52:11,199 WARN [geoserver.securit] - Rule *.*.w=* is
overriding another rule targetting the same resource
 WARN [geotools.factory] - Can't load a service for category
CoordinateOperationFactory. Cause is NullPointerException.

at localhost log:
14.09.2009 18:21:09 org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextDestroyed()
14.09.2009 18:21:09 org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextDestroyed()
14.09.2009 18:21:21 org.apache.catalina.core.StandardContext listenerStart
SCHWERWIEGEND: Exception sending context initialized event to listener
instance of class org.geoserver.GeoserverInitStartupListener
java.lang.NoSuchFieldError: KEY_REPLACE_INDEX_COLOR_MODEL
at
org.geotools.resources.image.ImageUtilities.clinit(ImageUtilities.java:66)
at
org.geoserver.GeoserverInitStartupListener.contextInitialized(GeoserverInitStartupListener.java:59)
at
org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3934)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4429)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:722)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
at 
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
at 
org.apache.catalina.core.StandardService.start(StandardService.java:516)
at 

Exception for WSServletContextListener Registration.

2009-09-15 Thread hesher

Hi,

I've been trying to run the sample servlet for the ws-jmx-connector.
Whenever I try to start the server with the deployed war file I get this
exception:

15/09/2009 12:30:15
com.sun.xml.ws.transport.http.servlet.WSServletContextListener
contextInitialized
SEVERE: WSSERVLET11: failed to parse runtime descriptor:
java.lang.SecurityException: sealing violation: can't seal package
com.sun.ws.management.server: already loaded
java.lang.SecurityException: sealing violation: can't seal package
com.sun.ws.management.server: already loaded
at java.net.URLClassLoader.defineClass(URLClassLoader.java:235)

When removing the context listener definition from web.xml (meaning this:

listener
listener-classcom.sun.xml.ws.transport.http.servlet.WSServletContextListener/listener-class
/listener

The server init is succesfull but i'm not sure it's running correctly and I
want to make sure that it's not because I removed the context init line.

Does tomcat 6.0 load
com.sun.xml.ws.transport.http.servlet.WSServletContextListene automatically?
I'm not sure why the exception occurs.

Thanks!!
-- 
View this message in context: 
http://www.nabble.com/Exception-for-WSServletContextListener-Registration.-tp25451154p25451154.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: error listenerstart Tomcat 6.0.20

2009-09-15 Thread André Warnier

Sarah_Sh wrote:

Hi all,


Hi.
I have no idea about all the other stuff, but at least here there seems 
to be a small typo :



WARNUNG: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting
property 'relaodable' to 'false' did not find a matching property.


'relaodable' probably needs to be 'reloadable' somewhere.

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: error listenerstart Tomcat 6.0.20

2009-09-15 Thread Sarah_Sh

Thank you for giving me a hint of the typo.

error listenerstart is still there.

Thanks.
Sarah


awarnier wrote:
 
 Sarah_Sh wrote:
 Hi all,
 
 Hi.
 I have no idea about all the other stuff, but at least here there seems 
 to be a small typo :
 
 WARNUNG: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting
 property 'relaodable' to 'false' did not find a matching property.
 
 'relaodable' probably needs to be 'reloadable' somewhere.
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org
 
 
 

-- 
View this message in context: 
http://www.nabble.com/error-listenerstart-Tomcat-6.0.20-tp25450385p25451708.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: error listenerstart Tomcat 6.0.20

2009-09-15 Thread Mark Thomas
Sarah_Sh wrote:
 Thank you for giving me a hint of the typo.
 
 error listenerstart is still there.

This is the relevant part of the logs:

14.09.2009 18:21:21 org.apache.catalina.core.StandardContext listenerStart
SCHWERWIEGEND: Exception sending context initialized event to listener
instance of class org.geoserver.GeoserverInitStartupListener
java.lang.NoSuchFieldError: KEY_REPLACE_INDEX_COLOR_MODEL
at
org.geotools.resources.image.ImageUtilities.clinit(ImageUtilities.java:66)
at
org.geoserver.GeoserverInitStartupListener.contextInitialized(GeoserverInitStartupListener.java:59)
at
org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3934)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4429)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:722)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
at 
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
at 
org.apache.catalina.core.StandardService.start(StandardService.java:516)
at 
org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
at org.apache.catalina.startup.Catalina.start(Catalina.java:583)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)

Looks pretty self-explanatory to me.

Mark




-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Loss of body POST request...

2009-09-15 Thread Tommy Pham
 Original Message 
 From: Eugene johnba...@gmail.com
 To: users@tomcat.apache.org
 Sent: Tuesday, September 15, 2009 3:30:02 AM
 Subject: Loss of body POST request...
 
 Hello. My next trouble. 
 Periodically, the body disappears POST-request with the same query! 
 I wrote a test client. It httpClient sends a test request, and on the server 
 side, the servlet it takes. And trying to read.
 Sometimes there is a situation that the titles are coming, but the body is 
 absent. 
 That is, when reading req.getInputStream (). Read (...) we obtain -1. 
 This error appears periodically. Tested on JBoss-4.2.2.GA with Tomcat 5.5.X. 
 Please, help me! 
 
 -- 
 Best Regards, Eugene Batogov

Time to implement Commons' FileUpload?

Regards,
Tommy

 ___
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Loss of body POST request...

2009-09-15 Thread Eugene


What has FileUpload, if the request body is lost! 
I want to know why, in principle it may be lost?

-- 
Best Regards, Eugene Batogov
___


Re: Loss of body POST request...

2009-09-15 Thread Tommy Pham
- Original Message 
 From: Eugene johnba...@gmail.com
 To: Tomcat Users List users@tomcat.apache.org
 Sent: Tuesday, September 15, 2009 4:16:43 AM
 Subject: Re: Loss of body POST request...
 
 
 
 What has FileUpload, if the request body is lost! 
 I want to know why, in principle it may be lost?
 
 -- 
 Best Regards, Eugene Batogov
 ___

From my readings, I remember that the servlet doesn't handle POST by default.  
So you have to implement your own.  I've looked into options available and the 
best I could find, IMHO,  and others have suggested is Commons FileUpload.  It 
will handle all POST multipart, including the file upload.  Look into the 
Streams API.

Regards,
Tommy


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: error listenerstart Tomcat 6.0.20

2009-09-15 Thread Sarah_Sh

Thank you for showing me the relevant part.

Am I right that it is a problem with GeoserverInitStartupListener class? 
There aren´t such KEY_REPLACE_INDEX_COLOR_MODEL. Have I insert this or what
could I do?

Thanks!
Sarah


markt-2 wrote:
 
 Sarah_Sh wrote:
 Thank you for giving me a hint of the typo.
 
 error listenerstart is still there.
 
 This is the relevant part of the logs:
 
 14.09.2009 18:21:21 org.apache.catalina.core.StandardContext listenerStart
 SCHWERWIEGEND: Exception sending context initialized event to listener
 instance of class org.geoserver.GeoserverInitStartupListener
 java.lang.NoSuchFieldError: KEY_REPLACE_INDEX_COLOR_MODEL
   at
 org.geotools.resources.image.ImageUtilities.clinit(ImageUtilities.java:66)
   at
 org.geoserver.GeoserverInitStartupListener.contextInitialized(GeoserverInitStartupListener.java:59)
   at
 org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3934)
   at
 org.apache.catalina.core.StandardContext.start(StandardContext.java:4429)
   at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
   at org.apache.catalina.core.StandardHost.start(StandardHost.java:722)
   at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
   at 
 org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
   at
 org.apache.catalina.core.StandardService.start(StandardService.java:516)
   at 
 org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
   at org.apache.catalina.startup.Catalina.start(Catalina.java:583)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
   at java.lang.reflect.Method.invoke(Unknown Source)
   at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
   at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
 
 Looks pretty self-explanatory to me.
 
 Mark
 
 
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org
 
 
 

-- 
View this message in context: 
http://www.nabble.com/error-listenerstart-Tomcat-6.0.20-tp25450385p25453162.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Loss of body POST request...

2009-09-15 Thread David Smith
Servlets handle uri encoded POSTs just fine.  It's when the POST body is
encoded differently like with mulipart -- that's where tools like
fileupload come into the picture.  Either way, the POST body should be
completely available to the servlet, even if it's just as an input stream. 

Were there any exceptions in the logs for broken pipes or similar stuff
that might shed some light on the issue?

--David

Tommy Pham wrote:
 - Original Message 
   
 From: Eugene johnba...@gmail.com
 To: Tomcat Users List users@tomcat.apache.org
 Sent: Tuesday, September 15, 2009 4:16:43 AM
 Subject: Re: Loss of body POST request...



 What has FileUpload, if the request body is lost! 
 I want to know why, in principle it may be lost?

 -- 
 Best Regards, Eugene Batogov
 ___
 

 From my readings, I remember that the servlet doesn't handle POST by default. 
  So you have to implement your own.  I've looked into options available and 
 the best I could find, IMHO,  and others have suggested is Commons 
 FileUpload.  It will handle all POST multipart, including the file upload.  
 Look into the Streams API.

 Regards,
 Tommy

   

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Need Help - Mod_jk/Apache - Mutiple Content issue

2009-09-15 Thread balakarthik.baskaran
Hi Rainer,

I tried with all the configuration that you defined and am still able to
simulate the partial content when I make the code to sleep for a time
greater than the time defined in the reply timeout.

I understand that once the partail content is written into the client
pipe,it would not be feasible to get it back or ignore it.We are working
on finding the root cause of what is creating a delay in th app side of
more than 3 mins of reply timeout defined in prod.

But just looking at a general case,considering a long running
transaction/idle thread in the app for a 1 in 1M probability,if the case
is going to occur,there will be definitely be a partial content seen.And
we are afraid this would be aggravated when akamai comes into play.We
did speak to akamai on this regard and they have a opinion that there
would be a performance hit when any patching is going to be applied at
their end.

So,do you think of any fall back approach or a way to eliminate this
situation from apache/mod_jk perspective (although the current
configuration does not help) (or) do u think/aware of any cases/clients
who uses mod_jk/apache where the situation would have been handled
better (or) even if everyone who uses mod_jk/apache would be failing
with the same issue when such a situation (app code taking a longer time
and leading to partial content sent) would be faced by them?

Thanks again for you help.

Regards,
Bala

-Original Message-
From: Rainer Jung [mailto:rainer.j...@kippdata.de]
Sent: Monday, September 14, 2009 4:29 PM
To: Tomcat Users List
Subject: Re: Need Help - Mod_jk/Apache - Mutiple Content issue

On 14.09.2009 12:02, balakarthik.baska...@wipro.com wrote:
 But I think you mentioned earlier that you were able to simulate the
 problem.

I didn't simulate, I understodd from reading the code. I also said, it
should go away when using recovery_options. So please:

- optimize your configuration
- see whether you still have problems and let us know if so

The configurations will not help with Akamai eventually caching
incomplete responses. If a backend doesn't send the full response, we
can't fix it with configuration.

Regards,

Rainer

 -Original Message-
 From: Rainer Jung [mailto:rainer.j...@kippdata.de]
 Sent: Monday, September 14, 2009 3:11 PM
 To: Tomcat Users List
 Subject: Re: Need Help - Mod_jk/Apache - Mutiple Content issue

 On 14.09.2009 11:33, balakarthik.baska...@wipro.com wrote:
 Thanks Rainer.
 Just Curious,did these settings helped to overcome the multiple
 content problem in your local setup?

 I never had a multiple content problem - maybe due to good
 configuration.

 Also,thanks for your pointer on the thread id's for getting the
 correlations.

 Regards,

 Rainer

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org


Please do not print this email unless it is absolutely necessary. 

The information contained in this electronic message and any attachments to 
this message are intended for the exclusive use of the addressee(s) and may 
contain proprietary, confidential or privileged information. If you are not the 
intended recipient, you should not disseminate, distribute or copy this e-mail. 
Please notify the sender immediately and destroy all copies of this message and 
any attachments. 

WARNING: Computer viruses can be transmitted via email. The recipient should 
check this email and any attachments for the presence of viruses. The company 
accepts no liability for any damage caused by any virus transmitted by this 
email. 

www.wipro.com

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: error listenerstart Tomcat 6.0.20

2009-09-15 Thread Mark Thomas
Sarah_Sh wrote:
 Thank you for showing me the relevant part.
 
 Am I right that it is a problem with GeoserverInitStartupListener class? 
 There aren´t such KEY_REPLACE_INDEX_COLOR_MODEL. Have I insert this or what
 could I do?

Sorry. No idea. That code is from your app, not from Tomcat.

Mark


 
 Thanks!
 Sarah
 
 
 markt-2 wrote:
 Sarah_Sh wrote:
 Thank you for giving me a hint of the typo.

 error listenerstart is still there.
 This is the relevant part of the logs:

 14.09.2009 18:21:21 org.apache.catalina.core.StandardContext listenerStart
 SCHWERWIEGEND: Exception sending context initialized event to listener
 instance of class org.geoserver.GeoserverInitStartupListener
 java.lang.NoSuchFieldError: KEY_REPLACE_INDEX_COLOR_MODEL
  at
 org.geotools.resources.image.ImageUtilities.clinit(ImageUtilities.java:66)
  at
 org.geoserver.GeoserverInitStartupListener.contextInitialized(GeoserverInitStartupListener.java:59)
  at
 org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3934)
  at
 org.apache.catalina.core.StandardContext.start(StandardContext.java:4429)
  at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
  at org.apache.catalina.core.StandardHost.start(StandardHost.java:722)
  at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
  at 
 org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
  at
 org.apache.catalina.core.StandardService.start(StandardService.java:516)
  at 
 org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
  at org.apache.catalina.startup.Catalina.start(Catalina.java:583)
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
  at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
  at java.lang.reflect.Method.invoke(Unknown Source)
  at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
  at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)

 Looks pretty self-explanatory to me.

 Mark




 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org



 




-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Loss of body POST request...

2009-09-15 Thread Tommy Pham
- Original Message 
 From: David Smith d...@cornell.edu
 To: Tomcat Users List users@tomcat.apache.org
 Sent: Tuesday, September 15, 2009 5:35:07 AM
 Subject: Re: Loss of body POST request...
 
 Servlets handle uri encoded POSTs just fine.  It's when the POST body is
 encoded differently like with mulipart -- that's where tools like
 fileupload come into the picture.  Either way, the POST body should be
 completely available to the servlet, even if it's just as an input stream. 
 
 Were there any exceptions in the logs for broken pipes or similar stuff
 that might shed some light on the issue?
 
 --David
 

Eugene,

Is the POST URI or multipart encoded?  You didn't mention it and I forgot to 
ask you.

Regards,
Tommy

 Tommy Pham wrote:
  - Original Message 
   
  From: Eugene 
  To: Tomcat Users List 
  Sent: Tuesday, September 15, 2009 4:16:43 AM
  Subject: Re: Loss of body POST request...
 
 
 
  What has FileUpload, if the request body is lost! 
  I want to know why, in principle it may be lost?
 
  -- 
  Best Regards, Eugene Batogov
  ___
 
 
  From my readings, I remember that the servlet doesn't handle POST by 
  default.  
 So you have to implement your own.  I've looked into options available and 
 the 
 best I could find, IMHO,  and others have suggested is Commons FileUpload.  
 It 
 will handle all POST multipart, including the file upload.  Look into the 
 Streams API.
 
  Regards,
  Tommy
 
   
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Loss of body POST request...

2009-09-15 Thread Pid

On 15/09/2009 11:30, Eugene wrote:

Hello. My next trouble.
Periodically, the body disappears POST-request with the same query!
I wrote a test client. It httpClient sends a test request, and on the server 
side, the servlet it takes. And trying to read.
Sometimes there is a situation that the titles are coming, but the body is 
absent.
That is, when reading req.getInputStream (). Read (...) we obtain -1.
This error appears periodically. Tested on JBoss-4.2.2.GA with Tomcat 5.5.X.
Please, help me!


You could start to log all of the request headers and try to find out 
what the difference is between when it works and when it doesn't.


Are there any conditions in your application that can cause 
getParameter() to be called before you call getInputStream()?



p







-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: error listenerstart Tomcat 6.0.20

2009-09-15 Thread Sarah_Sh

Ok thank you. 
I searched for this error at google and found 1-2 posts about this error. So
I look at my classes, application. In the end I will ask at another forum
relating to the appl.

Best regards
Sarah



markt-2 wrote:
 
 Sarah_Sh wrote:
 Thank you for showing me the relevant part.
 
 Am I right that it is a problem with GeoserverInitStartupListener class? 
 There aren´t such KEY_REPLACE_INDEX_COLOR_MODEL. Have I insert this or
 what
 could I do?
 
 Sorry. No idea. That code is from your app, not from Tomcat.
 
 Mark
 
 
 
 Thanks!
 Sarah
 
 
 markt-2 wrote:
 Sarah_Sh wrote:
 Thank you for giving me a hint of the typo.

 error listenerstart is still there.
 This is the relevant part of the logs:

 14.09.2009 18:21:21 org.apache.catalina.core.StandardContext
 listenerStart
 SCHWERWIEGEND: Exception sending context initialized event to listener
 instance of class org.geoserver.GeoserverInitStartupListener
 java.lang.NoSuchFieldError: KEY_REPLACE_INDEX_COLOR_MODEL
 at
 org.geotools.resources.image.ImageUtilities.clinit(ImageUtilities.java:66)
 at
 org.geoserver.GeoserverInitStartupListener.contextInitialized(GeoserverInitStartupListener.java:59)
 at
 org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3934)
 at
 org.apache.catalina.core.StandardContext.start(StandardContext.java:4429)
 at
 org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
 at org.apache.catalina.core.StandardHost.start(StandardHost.java:722)
 at
 org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
 at
 org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
 at
 org.apache.catalina.core.StandardService.start(StandardService.java:516)
 at
 org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
 at org.apache.catalina.startup.Catalina.start(Catalina.java:583)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
 at java.lang.reflect.Method.invoke(Unknown Source)
 at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
 at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)

 Looks pretty self-explanatory to me.

 Mark




 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org



 
 
 
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org
 
 
 

-- 
View this message in context: 
http://www.nabble.com/error-listenerstart-Tomcat-6.0.20-tp25450385p25453686.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Loss of body POST request...

2009-09-15 Thread Eugene
 I use POST URI.


Headers remain constant.
And header receive normal, but body loss?!?!?
error trace:
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at 
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at 
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
at 
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at 
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
at java.lang.Thread.run(Thread.java:619)


Аnd see bug: https://issues.apache.org/bugzilla/show_bug.cgi?id=47797


It is a dump of the request and response: 
https://issues.apache.org/bugzilla/attachment.cgi?id=24223


-- 
Best Regards, Eugene Batogov
___


RE: Need Help - Mod_jk/Apache - Mutiple Content issue

2009-09-15 Thread balakarthik.baskaran
Hi Rainer,

The other possible configuration that I think probably we might be
lacking/quite different is that we are loadbalancing the requests among
240 worker nodes each pointing to one app instance (all app instances
available in the default cluster) and we use Busyness algorithm(for load
balancer worker).

We have seen partial content from the middle of the pages as well which
was quite difficult to simulate in my local setup.

Do you think load balancing among 240 workers could be a possibiltiy of
messing up with request responses/adding up delay when there is a
failover/other load balancing situations? (Or) is there a defined limit
of worker nodes to be balanced that have been identified/defined?


Regards,
Bala

-Original Message-
From: Balakarthik Baskaran (WT01 - Retail, CPG, Transportation  Gover
Sent: Tuesday, September 15, 2009 6:20 PM
To: 'Tomcat Users List'
Subject: RE: Need Help - Mod_jk/Apache - Mutiple Content issue

Hi Rainer,

I tried with all the configuration that you defined and am still able to
simulate the partial content when I make the code to sleep for a time
greater than the time defined in the reply timeout.

I understand that once the partail content is written into the client
pipe,it would not be feasible to get it back or ignore it.We are working
on finding the root cause of what is creating a delay in th app side of
more than 3 mins of reply timeout defined in prod.

But just looking at a general case,considering a long running
transaction/idle thread in the app for a 1 in 1M probability,if the case
is going to occur,there will be definitely be a partial content seen.And
we are afraid this would be aggravated when akamai comes into play.We
did speak to akamai on this regard and they have a opinion that there
would be a performance hit when any patching is going to be applied at
their end.

So,do you think of any fall back approach or a way to eliminate this
situation from apache/mod_jk perspective (although the current
configuration does not help) (or) do u think/aware of any cases/clients
who uses mod_jk/apache where the situation would have been handled
better (or) even if everyone who uses mod_jk/apache would be failing
with the same issue when such a situation (app code taking a longer time
and leading to partial content sent) would be faced by them?

Thanks again for you help.

Regards,
Bala

-Original Message-
From: Rainer Jung [mailto:rainer.j...@kippdata.de]
Sent: Monday, September 14, 2009 4:29 PM
To: Tomcat Users List
Subject: Re: Need Help - Mod_jk/Apache - Mutiple Content issue

On 14.09.2009 12:02, balakarthik.baska...@wipro.com wrote:
 But I think you mentioned earlier that you were able to simulate the
 problem.

I didn't simulate, I understodd from reading the code. I also said, it
should go away when using recovery_options. So please:

- optimize your configuration
- see whether you still have problems and let us know if so

The configurations will not help with Akamai eventually caching
incomplete responses. If a backend doesn't send the full response, we
can't fix it with configuration.

Regards,

Rainer

 -Original Message-
 From: Rainer Jung [mailto:rainer.j...@kippdata.de]
 Sent: Monday, September 14, 2009 3:11 PM
 To: Tomcat Users List
 Subject: Re: Need Help - Mod_jk/Apache - Mutiple Content issue

 On 14.09.2009 11:33, balakarthik.baska...@wipro.com wrote:
 Thanks Rainer.
 Just Curious,did these settings helped to overcome the multiple
 content problem in your local setup?

 I never had a multiple content problem - maybe due to good
 configuration.

 Also,thanks for your pointer on the thread id's for getting the
 correlations.

 Regards,

 Rainer

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org


Please do not print this email unless it is absolutely necessary. 

The information contained in this electronic message and any attachments to 
this message are intended for the exclusive use of the addressee(s) and may 
contain proprietary, confidential or privileged information. If you are not the 
intended recipient, you should not disseminate, distribute or copy this e-mail. 
Please notify the sender immediately and destroy all copies of this message and 
any attachments. 

WARNING: Computer viruses can be transmitted via email. The recipient should 
check this email and any attachments for the presence of viruses. The company 
accepts no liability for any damage caused by any virus transmitted by this 
email. 

www.wipro.com

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Loss of body POST request...

2009-09-15 Thread Eugene
I use Oracle JRockit JVM
-- 
Best Regards, Eugene Batogov
___

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Loss of body POST request...

2009-09-15 Thread Pid

On 15/09/2009 14:25, Eugene wrote:

  I use POST URI.


With what, some code you wrote?


Headers remain constant.
And header receive normal, but body loss?!?!?
error trace:


This isn't the whole of the stacktrace, so I can't tell what it means.
What about the lines immediately before this?


   at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
 at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
 at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
 at 
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
 at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
 at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
 at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
 at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
 at 
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
 at 
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
 at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
 at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
 at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
 at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
 at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
 at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
 at 
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
 at java.lang.Thread.run(Thread.java:619)


Аnd see bug: https://issues.apache.org/bugzilla/show_bug.cgi?id=47797

It is a dump of the request and response: 
https://issues.apache.org/bugzilla/attachment.cgi?id=24223


Your bug report isn't promising...

p

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Can't access Tomcat from outside the LAN

2009-09-15 Thread Tom Eklöf
I managed to set up Tomcat 6.0.20 on my Ubuntu Jaunty box, but I can't
seem to access the server from outside my LAN. Port forwarding is
working OK (tested with port scanner and by starting SSH on the port),
and I can also access Tomcat from all computers on my LAN.

I've tried poking around the documentation, but nothing seems to
suggest that Tomcat would default to not accepting outside
connections. I hope I'm not making a fool out of myself here, but I
really could use some pointers (_not_ of the int* variety :P ) here.

-- 
Tom Eklöf
Recidite, plebes! Gero rem imperialem!

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Loss of body POST request...

2009-09-15 Thread Eugene
I have stacketrace for xmlrpc versions:
org.xml.sax.SAXParseException: Premature end of file.
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown 
Source)
at 
org.apache.xmlrpc.server.XmlRpcStreamServer.getRequest(XmlRpcStreamServer.java:65)
at 
org.apache.xmlrpc.server.XmlRpcStreamServer.execute(XmlRpcStreamServer.java:199)
at 
org.apache.xmlrpc.webserver.XmlRpcServletServer.execute(XmlRpcServletServer.java:112)
at 
org.apache.xmlrpc.webserver.XmlRpcServlet.doPost(XmlRpcServlet.java:196)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at 
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at 
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
at 
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at 
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
at java.lang.Thread.run(Thread.java:619)



Just do not say that this is a mistake to xmlrpc. 
Comes empty stream.

-- 
Best Regards, Eugene Batogov
___


Re: Can't access Tomcat from outside the LAN

2009-09-15 Thread Mark Shifman
You may have to fool with your firewall (or talk to you lan administrator).
I have a line for starting iptables that looks like this:

-A INPUT -p tcp -m state --state NEW -m tcp --dport 8080 -j ACCEPT

I suspect Ubuntu has some classy utility for modifying the firewal to allow 
8080 or what
ever port Tomcat is using to get in.
mas

Tom Eklöf wrote:
 I managed to set up Tomcat 6.0.20 on my Ubuntu Jaunty box, but I can't
 seem to access the server from outside my LAN. Port forwarding is
 working OK (tested with port scanner and by starting SSH on the port),
 and I can also access Tomcat from all computers on my LAN.
 
 I've tried poking around the documentation, but nothing seems to
 suggest that Tomcat would default to not accepting outside
 connections. I hope I'm not making a fool out of myself here, but I
 really could use some pointers (_not_ of the int* variety :P ) here.
 

-- 
 Mark Shifman MD. Ph.D.
 Yale Center for Medical Informatics
 Phone (203)737-5219
 mark.shif...@yale.edu

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Can't access Tomcat from outside the LAN

2009-09-15 Thread Jonathan Soons
 
Tom, Do you have a default gateway?
If you can access anything outside your LAN then you must have one.
It seems your tomcat box does not know about it.

Jonathan Soons
-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Tomcat fail to start : Socket bind failed: [22] Invalid argument

2009-09-15 Thread Thomas Manson
Hi Mark,
  thanks for the answer.

  Just for clarification, the ipv6 bug is still in the 6.0.20 version?
  How do I disable APR ?

  I thought that APR == tc native... Am I wrong ?

Regards,
Thomas.






On Fri, Sep 11, 2009 at 11:08, Mark Thomas ma...@apache.org wrote:

 ith tc native 1.1.1


Re: Tomcat fail to start : Socket bind failed: [22] Invalid argument

2009-09-15 Thread Mark Thomas
Thomas Manson wrote:
 Hi Mark,
   thanks for the answer.
 
   Just for clarification, the ipv6 bug is still in the 6.0.20 version?

No. It was fixed for Tomcat 6.0.20 and tc native 1.1.16 onwards

   How do I disable APR ?

Comment out / delete the listener in server.xml

   I thought that APR == tc native... Am I wrong ?

Nope - that is correct. However, the ipv6 fix needed some changes to
both the tc native .dll and how Tomcat uses it.

Mark




-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: tomcat url rewrite

2009-09-15 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

William,

On 9/14/2009 9:43 PM, WILLIAMer wrote:
 I got the problem if the item name(from database) have / char, 
 the full url path http://myDomain//item_1/23.html would be error.

Where does the error occur? Does the URL re-writer fail to re-write the
URL for you in that case?

 Maybe i let the item have / char doesnt use this rule.
 Just go /getItemPage?itemname=1/23 to Avoid th error.

I'm not sure why this would fail. If you give us more information, we
might be able to help.

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkqv0A0ACgkQ9CaO5/Lv0PCvuwCePBcnMp6YldW12hZ9kDmDm+Bf
HcIAniQCkONNL5tyG8yVtiB6pjiQcFGG
=Dg7K
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Tomcat fail to start : Socket bind failed: [22] Invalid argument

2009-09-15 Thread Thomas Manson
Still not clear for me.
If I comment the listener, compile tomcat-native-1.1.16-src,
it will still use APR but this time it will work with ipv6 ?

or it is still not working with ipv6, that's why I need to disable ipv6 ?

Because,

I've checked in my server.xml I already tried to disable apr :

 !--Listener className=org.apache.catalina.core.AprLifecycleListener
SSLEngine=off /--
And I've already  compiled tc natvie 1.1.16

but still getting the error.


So I guess this 'fix' the error but ipv6 functionnality is not fixed ?

Thomas.


On Tue, Sep 15, 2009 at 19:32, Mark Thomas ma...@apache.org wrote:

 was fixed for Tomcat 6.0.20 and tc native 1.1.16 onwards


RE: Tomcat fail to start : Socket bind failed: [22] Invalid argument

2009-09-15 Thread Caldarale, Charles R
 From: Thomas Manson [mailto:dev.mansontho...@gmail.com]
 Subject: Re: Tomcat fail to start : Socket bind failed: [22] Invalid
 argument
 
 If I comment the listener, compile tomcat-native-1.1.16-src,
 it will still use APR but this time it will work with ipv6 ?

No; if you comment out the listener, Tomcat will not use APR.

Try deleting or renaming the DLL to insure Tomcat is not using APR, then run 
your IPv6 test using the standard and NIO Connectors.  If either of those 
fail, it may be a JVM problem.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.




Container based authentication using LDAP and Active Directory

2009-09-15 Thread sharda k
Hi,

I want to implement Container based Authentication for a new web site I am
working on.

The scenario that I have is:

   - User ids are being stored in LDAP
   - User credentials(password) are being stored in Active Directory (AD).
   - User roles are gain being stored in LDAP

In all examples that I could find in different websites write about LDAP
authentication in Tomcat. Is there a way we can combine both LDAP and AD for
authentication?

Also I want to use custom login page for it.

Any help on this would be appreciated.

Thanks,
Sharda


Re: Container based authentication using LDAP and Active Directory

2009-09-15 Thread sharda k
How can I implement LDAP to authenticate against AD? Can you please
elaborate?
I need AD for authentication and LDAP fro authorization.

Thank you,
Sharda

On Tue, Sep 15, 2009 at 3:08 PM, George Sexton geor...@mhsoftware.comwrote:

 You can use LDAP to authenticate against AD.

 George Sexton
 MH Software, Inc.
 http://www.mhsoftware.com/
 Voice: 303 438 9585


  -Original Message-
  From: sharda k [mailto:sktom...@gmail.com]
  Sent: Tuesday, September 15, 2009 2:01 PM
  To: users@tomcat.apache.org
  Cc: sktom...@gmail.com
  Subject: Container based authentication using LDAP and Active Directory
 
  Hi,
 
  I want to implement Container based Authentication for a new web site I
  am
  working on.
 
  The scenario that I have is:
 
 - User ids are being stored in LDAP
 - User credentials(password) are being stored in Active Directory
  (AD).
 - User roles are gain being stored in LDAP
 
  In all examples that I could find in different websites write about
  LDAP
  authentication in Tomcat. Is there a way we can combine both LDAP and
  AD for
  authentication?
 
  Also I want to use custom login page for it.
 
  Any help on this would be appreciated.
 
  Thanks,
  Sharda


 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org




RE: Container based authentication using LDAP and Active Directory

2009-09-15 Thread George Sexton
You can use LDAP to authenticate against AD.

George Sexton
MH Software, Inc.
http://www.mhsoftware.com/
Voice: 303 438 9585
 

 -Original Message-
 From: sharda k [mailto:sktom...@gmail.com]
 Sent: Tuesday, September 15, 2009 2:01 PM
 To: users@tomcat.apache.org
 Cc: sktom...@gmail.com
 Subject: Container based authentication using LDAP and Active Directory
 
 Hi,
 
 I want to implement Container based Authentication for a new web site I
 am
 working on.
 
 The scenario that I have is:
 
- User ids are being stored in LDAP
- User credentials(password) are being stored in Active Directory
 (AD).
- User roles are gain being stored in LDAP
 
 In all examples that I could find in different websites write about
 LDAP
 authentication in Tomcat. Is there a way we can combine both LDAP and
 AD for
 authentication?
 
 Also I want to use custom login page for it.
 
 Any help on this would be appreciated.
 
 Thanks,
 Sharda


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Container based authentication using LDAP and Active Directory

2009-09-15 Thread Pid

On 15/09/2009 21:08, George Sexton wrote:

You can use LDAP to authenticate against AD.


I can feel a lmgtfy coming on... ;)

p


George Sexton
MH Software, Inc.
http://www.mhsoftware.com/
Voice: 303 438 9585



-Original Message-
From: sharda k [mailto:sktom...@gmail.com]
Sent: Tuesday, September 15, 2009 2:01 PM
To: users@tomcat.apache.org
Cc: sktom...@gmail.com
Subject: Container based authentication using LDAP and Active Directory

Hi,

I want to implement Container based Authentication for a new web site I
am
working on.

The scenario that I have is:

- User ids are being stored in LDAP
- User credentials(password) are being stored in Active Directory
(AD).
- User roles are gain being stored in LDAP

In all examples that I could find in different websites write about
LDAP
authentication in Tomcat. Is there a way we can combine both LDAP and
AD for
authentication?

Also I want to use custom login page for it.

Any help on this would be appreciated.

Thanks,
Sharda



-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org




-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Container based authentication using LDAP and Active Directory

2009-09-15 Thread George Sexton
AD servers run an LDAP connector. You use and LDAP API library and try to
bind to the tree using the user's name and password for credentials.

George Sexton
MH Software, Inc.
http://www.mhsoftware.com/
Voice: 303 438 9585
 

 -Original Message-
 From: sharda k [mailto:sktom...@gmail.com]
 Sent: Tuesday, September 15, 2009 2:12 PM
 To: Tomcat Users List
 Subject: Re: Container based authentication using LDAP and Active
 Directory
 
 How can I implement LDAP to authenticate against AD? Can you please
 elaborate?
 I need AD for authentication and LDAP fro authorization.
 
 Thank you,
 Sharda
 
 On Tue, Sep 15, 2009 at 3:08 PM, George Sexton
 geor...@mhsoftware.comwrote:
 
  You can use LDAP to authenticate against AD.
 
  George Sexton
  MH Software, Inc.
  http://www.mhsoftware.com/
  Voice: 303 438 9585
 
 
   -Original Message-
   From: sharda k [mailto:sktom...@gmail.com]
   Sent: Tuesday, September 15, 2009 2:01 PM
   To: users@tomcat.apache.org
   Cc: sktom...@gmail.com
   Subject: Container based authentication using LDAP and Active
 Directory
  
   Hi,
  
   I want to implement Container based Authentication for a new web
 site I
   am
   working on.
  
   The scenario that I have is:
  
  - User ids are being stored in LDAP
  - User credentials(password) are being stored in Active
 Directory
   (AD).
  - User roles are gain being stored in LDAP
  
   In all examples that I could find in different websites write about
   LDAP
   authentication in Tomcat. Is there a way we can combine both LDAP
 and
   AD for
   authentication?
  
   Also I want to use custom login page for it.
  
   Any help on this would be appreciated.
  
   Thanks,
   Sharda
 
 
  -
  To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
  For additional commands, e-mail: users-h...@tomcat.apache.org
 
 


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Container based authentication using LDAP and Active Directory

2009-09-15 Thread sharda k
Thank you so much for yr reply... but i have done good lmfty...

On Tue, Sep 15, 2009 at 3:18 PM, Pid p...@pidster.com wrote

 On 15/09/2009 21:08, George Sexton wrote:

 You can use LDAP to authenticate against AD.


 I can feel a lmgtfy coming on... ;)


 p

 George Sexton
 MH Software, Inc.
 http://www.mhsoftware.com/
 Voice: 303 438 9585


 -Original Message-
 From: sharda k [mailto:sktom...@gmail.com]
 Sent: Tuesday, September 15, 2009 2:01 PM
 To: users@tomcat.apache.org
 Cc: sktom...@gmail.com
 Subject: Container based authentication using LDAP and Active Directory

 Hi,

 I want to implement Container based Authentication for a new web site I
 am
 working on.

 The scenario that I have is:

- User ids are being stored in LDAP
- User credentials(password) are being stored in Active Directory
 (AD).
- User roles are gain being stored in LDAP

 In all examples that I could find in different websites write about
 LDAP
 authentication in Tomcat. Is there a way we can combine both LDAP and
 AD for
 authentication?

 Also I want to use custom login page for it.

 Any help on this would be appreciated.

 Thanks,
 Sharda



 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org



 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org




Re: Container based authentication using LDAP and Active Directory

2009-09-15 Thread sharda k
Thank you George.

I think I need to elaborate my question further. I could bind user and fetch
user roles using simple java class. But what I want to implement is JAAS.
The problem is based on the information provided in different web sites I
can use either LDAP or AD for both authentication and authorization. But I
need to decouple authentication and authorization. How can I implement that?

Any help would be appreciated.

Sharda

On Tue, Sep 15, 2009 at 3:19 PM, George Sexton geor...@mhsoftware.comwrote:

 AD servers run an LDAP connector. You use and LDAP API library and try to
 bind to the tree using the user's name and password for credentials.

 George Sexton
 MH Software, Inc.
 http://www.mhsoftware.com/
 Voice: 303 438 9585


  -Original Message-
  From: sharda k [mailto:sktom...@gmail.com]
   Sent: Tuesday, September 15, 2009 2:12 PM
  To: Tomcat Users List
  Subject: Re: Container based authentication using LDAP and Active
  Directory
 
  How can I implement LDAP to authenticate against AD? Can you please
  elaborate?
  I need AD for authentication and LDAP fro authorization.
 
  Thank you,
  Sharda
 
  On Tue, Sep 15, 2009 at 3:08 PM, George Sexton
  geor...@mhsoftware.comwrote:
 
   You can use LDAP to authenticate against AD.
  
   George Sexton
   MH Software, Inc.
   http://www.mhsoftware.com/
   Voice: 303 438 9585
  
  
-Original Message-
From: sharda k [mailto:sktom...@gmail.com]
Sent: Tuesday, September 15, 2009 2:01 PM
To: users@tomcat.apache.org
Cc: sktom...@gmail.com
Subject: Container based authentication using LDAP and Active
  Directory
   
Hi,
   
I want to implement Container based Authentication for a new web
  site I
am
working on.
   
The scenario that I have is:
   
   - User ids are being stored in LDAP
   - User credentials(password) are being stored in Active
  Directory
(AD).
   - User roles are gain being stored in LDAP
   
In all examples that I could find in different websites write about
LDAP
authentication in Tomcat. Is there a way we can combine both LDAP
  and
AD for
authentication?
   
Also I want to use custom login page for it.
   
Any help on this would be appreciated.
   
Thanks,
Sharda
  
  
   -
   To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
   For additional commands, e-mail: users-h...@tomcat.apache.org
  
  


 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org




RE: Container based authentication using LDAP and Active Directory

2009-09-15 Thread George Sexton
I don't know. You're going to have to figure that out yourself.

George Sexton
MH Software, Inc.
http://www.mhsoftware.com/
Voice: 303 438 9585
 

 -Original Message-
 From: sharda k [mailto:sktom...@gmail.com]
 Sent: Tuesday, September 15, 2009 2:45 PM
 To: Tomcat Users List
 Subject: Re: Container based authentication using LDAP and Active
 Directory
 
 Thank you George.
 
 I think I need to elaborate my question further. I could bind user and
 fetch
 user roles using simple java class. But what I want to implement is
 JAAS.
 The problem is based on the information provided in different web sites
 I
 can use either LDAP or AD for both authentication and authorization.
 But I
 need to decouple authentication and authorization. How can I implement
 that?
 
 Any help would be appreciated.
 
 Sharda
 
 On Tue, Sep 15, 2009 at 3:19 PM, George Sexton
 geor...@mhsoftware.comwrote:
 
  AD servers run an LDAP connector. You use and LDAP API library and
 try to
  bind to the tree using the user's name and password for credentials.
 
  George Sexton
  MH Software, Inc.
  http://www.mhsoftware.com/
  Voice: 303 438 9585
 
 
   -Original Message-
   From: sharda k [mailto:sktom...@gmail.com]
Sent: Tuesday, September 15, 2009 2:12 PM
   To: Tomcat Users List
   Subject: Re: Container based authentication using LDAP and Active
   Directory
  
   How can I implement LDAP to authenticate against AD? Can you please
   elaborate?
   I need AD for authentication and LDAP fro authorization.
  
   Thank you,
   Sharda
  
   On Tue, Sep 15, 2009 at 3:08 PM, George Sexton
   geor...@mhsoftware.comwrote:
  
You can use LDAP to authenticate against AD.
   
George Sexton
MH Software, Inc.
http://www.mhsoftware.com/
Voice: 303 438 9585
   
   
 -Original Message-
 From: sharda k [mailto:sktom...@gmail.com]
 Sent: Tuesday, September 15, 2009 2:01 PM
 To: users@tomcat.apache.org
 Cc: sktom...@gmail.com
 Subject: Container based authentication using LDAP and Active
   Directory

 Hi,

 I want to implement Container based Authentication for a new
 web
   site I
 am
 working on.

 The scenario that I have is:

- User ids are being stored in LDAP
- User credentials(password) are being stored in Active
   Directory
 (AD).
- User roles are gain being stored in LDAP

 In all examples that I could find in different websites write
 about
 LDAP
 authentication in Tomcat. Is there a way we can combine both
 LDAP
   and
 AD for
 authentication?

 Also I want to use custom login page for it.

 Any help on this would be appreciated.

 Thanks,
 Sharda
   
   
-
 
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org
   
   
 
 
  -
  To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
  For additional commands, e-mail: users-h...@tomcat.apache.org
 
 


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Container based authentication using LDAP and Active Directory

2009-09-15 Thread sharda k
Hi George,

If I use LDAP API for user authetication, how can I get LoginContext and
implement authorization? If you can please share some insight on this.

Thanks,
SK



On Tue, Sep 15, 2009 at 3:46 PM, George Sexton geor...@mhsoftware.comwrote:

 I don't know. You're going to have to figure that out yourself.

 George Sexton
 MH Software, Inc.
 http://www.mhsoftware.com/
 Voice: 303 438 9585


  -Original Message-
  From: sharda k [mailto:sktom...@gmail.com]
   Sent: Tuesday, September 15, 2009 2:45 PM
  To: Tomcat Users List
  Subject: Re: Container based authentication using LDAP and Active
  Directory
 
  Thank you George.
 
  I think I need to elaborate my question further. I could bind user and
  fetch
  user roles using simple java class. But what I want to implement is
  JAAS.
  The problem is based on the information provided in different web sites
  I
  can use either LDAP or AD for both authentication and authorization.
  But I
  need to decouple authentication and authorization. How can I implement
  that?
 
  Any help would be appreciated.
 
  Sharda
 
  On Tue, Sep 15, 2009 at 3:19 PM, George Sexton
  geor...@mhsoftware.comwrote:
 
   AD servers run an LDAP connector. You use and LDAP API library and
  try to
   bind to the tree using the user's name and password for credentials.
  
   George Sexton
   MH Software, Inc.
   http://www.mhsoftware.com/
   Voice: 303 438 9585
  
  
-Original Message-
From: sharda k [mailto:sktom...@gmail.com]
 Sent: Tuesday, September 15, 2009 2:12 PM
To: Tomcat Users List
Subject: Re: Container based authentication using LDAP and Active
Directory
   
How can I implement LDAP to authenticate against AD? Can you please
elaborate?
I need AD for authentication and LDAP fro authorization.
   
Thank you,
Sharda
   
On Tue, Sep 15, 2009 at 3:08 PM, George Sexton
geor...@mhsoftware.comwrote:
   
 You can use LDAP to authenticate against AD.

 George Sexton
 MH Software, Inc.
 http://www.mhsoftware.com/
 Voice: 303 438 9585


  -Original Message-
  From: sharda k [mailto:sktom...@gmail.com]
  Sent: Tuesday, September 15, 2009 2:01 PM
  To: users@tomcat.apache.org
  Cc: sktom...@gmail.com
  Subject: Container based authentication using LDAP and Active
Directory
 
  Hi,
 
  I want to implement Container based Authentication for a new
  web
site I
  am
  working on.
 
  The scenario that I have is:
 
 - User ids are being stored in LDAP
 - User credentials(password) are being stored in Active
Directory
  (AD).
 - User roles are gain being stored in LDAP
 
  In all examples that I could find in different websites write
  about
  LDAP
  authentication in Tomcat. Is there a way we can combine both
  LDAP
and
  AD for
  authentication?
 
  Also I want to use custom login page for it.
 
  Any help on this would be appreciated.
 
  Thanks,
  Sharda


 -
  
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org


  
  
   -
   To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
   For additional commands, e-mail: users-h...@tomcat.apache.org
  
  


 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org




RE: Container based authentication using LDAP and Active Directory

2009-09-15 Thread George Sexton
Asking the same question a different way will not yield a different result.

You're going to have to figure that out yourself.

George Sexton
MH Software, Inc.
http://www.mhsoftware.com/
Voice: 303 438 9585
 
 -Original Message-
 From: sharda k [mailto:sktom...@gmail.com]
 Sent: Tuesday, September 15, 2009 3:14 PM
 To: Tomcat Users List
 Subject: Re: Container based authentication using LDAP and Active
 Directory
 
 Hi George,
 
 If I use LDAP API for user authetication, how can I get LoginContext
 and
 implement authorization? If you can please share some insight on this.
 
 Thanks,
 SK
 
 
 
 On Tue, Sep 15, 2009 at 3:46 PM, George Sexton
 geor...@mhsoftware.comwrote:
 
  I don't know. You're going to have to figure that out yourself.
 
  George Sexton
  MH Software, Inc.
  http://www.mhsoftware.com/
  Voice: 303 438 9585
 
 
   -Original Message-
   From: sharda k [mailto:sktom...@gmail.com]
Sent: Tuesday, September 15, 2009 2:45 PM
   To: Tomcat Users List
   Subject: Re: Container based authentication using LDAP and Active
   Directory
  
   Thank you George.
  
   I think I need to elaborate my question further. I could bind user
 and
   fetch
   user roles using simple java class. But what I want to implement is
   JAAS.
   The problem is based on the information provided in different web
 sites
   I
   can use either LDAP or AD for both authentication and
 authorization.
   But I
   need to decouple authentication and authorization. How can I
 implement
   that?
  
   Any help would be appreciated.
  
   Sharda
  
   On Tue, Sep 15, 2009 at 3:19 PM, George Sexton
   geor...@mhsoftware.comwrote:
  
AD servers run an LDAP connector. You use and LDAP API library
 and
   try to
bind to the tree using the user's name and password for
 credentials.
   
George Sexton
MH Software, Inc.
http://www.mhsoftware.com/
Voice: 303 438 9585
   
   
 -Original Message-
 From: sharda k [mailto:sktom...@gmail.com]
  Sent: Tuesday, September 15, 2009 2:12 PM
 To: Tomcat Users List
 Subject: Re: Container based authentication using LDAP and
 Active
 Directory

 How can I implement LDAP to authenticate against AD? Can you
 please
 elaborate?
 I need AD for authentication and LDAP fro authorization.

 Thank you,
 Sharda

 On Tue, Sep 15, 2009 at 3:08 PM, George Sexton
 geor...@mhsoftware.comwrote:

  You can use LDAP to authenticate against AD.
 
  George Sexton
  MH Software, Inc.
  http://www.mhsoftware.com/
  Voice: 303 438 9585
 
 
   -Original Message-
   From: sharda k [mailto:sktom...@gmail.com]
   Sent: Tuesday, September 15, 2009 2:01 PM
   To: users@tomcat.apache.org
   Cc: sktom...@gmail.com
   Subject: Container based authentication using LDAP and
 Active
 Directory
  
   Hi,
  
   I want to implement Container based Authentication for a
 new
   web
 site I
   am
   working on.
  
   The scenario that I have is:
  
  - User ids are being stored in LDAP
  - User credentials(password) are being stored in Active
 Directory
   (AD).
  - User roles are gain being stored in LDAP
  
   In all examples that I could find in different websites
 write
   about
   LDAP
   authentication in Tomcat. Is there a way we can combine
 both
   LDAP
 and
   AD for
   authentication?
  
   Also I want to use custom login page for it.
  
   Any help on this would be appreciated.
  
   Thanks,
   Sharda
 
 
  -
 
   
  To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
  For additional commands, e-mail: users-h...@tomcat.apache.org
 
 
   
   
-
 
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org
   
   
 
 
  -
  To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
  For additional commands, e-mail: users-h...@tomcat.apache.org
 
 


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Container based authentication using LDAP and Active Directory

2009-09-15 Thread sharda k
OK ... :)

On Tue, Sep 15, 2009 at 4:42 PM, George Sexton geor...@mhsoftware.comwrote:

 Asking the same question a different way will not yield a different result.

 You're going to have to figure that out yourself.

 George Sexton
 MH Software, Inc.
 http://www.mhsoftware.com/
 Voice: 303 438 9585

  -Original Message-
  From: sharda k [mailto:sktom...@gmail.com]
   Sent: Tuesday, September 15, 2009 3:14 PM
  To: Tomcat Users List
  Subject: Re: Container based authentication using LDAP and Active
  Directory
 
  Hi George,
 
  If I use LDAP API for user authetication, how can I get LoginContext
  and
  implement authorization? If you can please share some insight on this.
 
  Thanks,
  SK
 
 
 
  On Tue, Sep 15, 2009 at 3:46 PM, George Sexton
  geor...@mhsoftware.comwrote:
 
   I don't know. You're going to have to figure that out yourself.
  
   George Sexton
   MH Software, Inc.
   http://www.mhsoftware.com/
   Voice: 303 438 9585
  
  
-Original Message-
From: sharda k [mailto:sktom...@gmail.com]
 Sent: Tuesday, September 15, 2009 2:45 PM
To: Tomcat Users List
Subject: Re: Container based authentication using LDAP and Active
Directory
   
Thank you George.
   
I think I need to elaborate my question further. I could bind user
  and
fetch
user roles using simple java class. But what I want to implement is
JAAS.
The problem is based on the information provided in different web
  sites
I
can use either LDAP or AD for both authentication and
  authorization.
But I
need to decouple authentication and authorization. How can I
  implement
that?
   
Any help would be appreciated.
   
Sharda
   
On Tue, Sep 15, 2009 at 3:19 PM, George Sexton
geor...@mhsoftware.comwrote:
   
 AD servers run an LDAP connector. You use and LDAP API library
  and
try to
 bind to the tree using the user's name and password for
  credentials.

 George Sexton
 MH Software, Inc.
 http://www.mhsoftware.com/
 Voice: 303 438 9585


  -Original Message-
  From: sharda k [mailto:sktom...@gmail.com]
   Sent: Tuesday, September 15, 2009 2:12 PM
  To: Tomcat Users List
  Subject: Re: Container based authentication using LDAP and
  Active
  Directory
 
  How can I implement LDAP to authenticate against AD? Can you
  please
  elaborate?
  I need AD for authentication and LDAP fro authorization.
 
  Thank you,
  Sharda
 
  On Tue, Sep 15, 2009 at 3:08 PM, George Sexton
  geor...@mhsoftware.comwrote:
 
   You can use LDAP to authenticate against AD.
  
   George Sexton
   MH Software, Inc.
   http://www.mhsoftware.com/
   Voice: 303 438 9585
  
  
-Original Message-
From: sharda k [mailto:sktom...@gmail.com]
Sent: Tuesday, September 15, 2009 2:01 PM
To: users@tomcat.apache.org
Cc: sktom...@gmail.com
Subject: Container based authentication using LDAP and
  Active
  Directory
   
Hi,
   
I want to implement Container based Authentication for a
  new
web
  site I
am
working on.
   
The scenario that I have is:
   
   - User ids are being stored in LDAP
   - User credentials(password) are being stored in Active
  Directory
(AD).
   - User roles are gain being stored in LDAP
   
In all examples that I could find in different websites
  write
about
LDAP
authentication in Tomcat. Is there a way we can combine
  both
LDAP
  and
AD for
authentication?
   
Also I want to use custom login page for it.
   
Any help on this would be appreciated.
   
Thanks,
Sharda
  
  
   -
  

   To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
   For additional commands, e-mail: users-h...@tomcat.apache.org
  
  


 -
  
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org


  
  
   -
   To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
   For additional commands, e-mail: users-h...@tomcat.apache.org
  
  


 -
  To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org




Re: Can't access Tomcat from outside the LAN

2009-09-15 Thread Ziggy
If you have more than one pc on ur network then you have to configure
your gateway(I.e router) so that all requests that use port 8080
should be forwarded to the pc that has tomcat installed.

On 9/15/09, Jonathan Soons jso...@juilliard.edu wrote:

 Tom, Do you have a default gateway?
 If you can access anything outside your LAN then you must have one.
 It seems your tomcat box does not know about it.

 Jonathan Soons
 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org



-- 
Sent from my mobile device

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: 64-bit connector issues on W2K8 IIS7

2009-09-15 Thread Jordan Michaels
Ah-ha. This sounds like a plausible cause. I did install the ASP.NET 
stuff along with IIS7 so this sounds hopeful. I will investigate and 
report back if I find anything useful.


Thank you for the pointer here!

Warm regards,
Jordan Michaels
Vivio Technologies
http://www.viviotech.net/
Open BlueDragon Steering Committee
Adobe Solution Provider


Rainer Jung wrote:

On 15.09.2009 05:34, George Sexton wrote:

Most likely, someone has configured IIS to run in 32-bit mode. I had this
happen with a customer. They were using another app that required 32-bit
mode for compatibility.

If you do end up running the 32-bit Redirector, you need to put your
registry entry under HKEY_LOCAL_MACHINE\Software\WOW6432Node

http://support.microsoft.com/kb/305097


Plus maybe:

http://support.microsoft.com/?scid=kb%3Ben-us%3B894435

It describes switching between 32Bits and 64Bits for IIS (on Windows
2003, but might still apply).

Regards,

Rainer


-Original Message-
From: Jordan Michaels [mailto:jor...@viviotech.net]
Sent: Monday, September 14, 2009 5:32 PM
To: Tomcat Users List
Subject: 64-bit connector issues on W2K8 IIS7

I'm trying to install the 64-bit mod_jk connector on a 64-bit Windows
Server 2008 system. After literally hours of screwing around with the
64-bit version of the connector, I found a blog post where someone had
mentioned that they were able to follow the blog's installation
suggestions and got things working on a 64-bit installation of W2K8
64-bit server. However, the blog post described installing the 32-bit
connector.

So... I then tried to install the 32-bit connector
(isapi_redirect-1.2.28.dll) and VIOLA!, everything works great.

Has anyone had success at installing the 64-bit connector on a W2K8
64-bit machine? What's the trick to it?

When I use the 64-bit connector instead of the 32-bit, I get the
following error:

HTTP Error 500.0 - Internal Server Error
Calling GetFilterVersion on ISAPI filter
C:\tomcat\connectors\isapi_redirect-1.2.28.dll failed

For now, I'm just happy to be up and running with the 32-bit version,
but it would be nice to have a system that was totally 64-bits.

Thanks!

--
Warm regards,
Jordan Michaels
Vivio Technologies
http://www.viviotech.net/
Open BlueDragon Steering Committee
Adobe Solution Provider


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org




-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: tomcat mysql dbcp Communications link failure

2009-09-15 Thread Chetouani
Hi David,

Thanks for your answer.

At the moment I don't have the stack trace but it something like 

# com.mysql.jdbc.CommunicationsException: Communications link failure due to 
underlying exception:
#
# ** BEGIN NESTED EXCEPTION **
#
# java.net.SocketException
# MESSAGE: Software caused connection abort: recv failed
#
# STACKTRACE:
#
# java.net.SocketException: Software caused connection abort: recv failed
# at java.net.SocketInputStream.socketRead0(Native Method)
# at java.net.SocketInputStream.read(Unknown Source)
...

I was using dbcp and I changed to c3p0 beacause I read that with c3p0 we can 
add paramters to test the connections

My config now is :

bean id=dataSource class=com.mchange.v2.c3p0.ComboPooledDataSource
   property name=driverClass value=com.mysql.jdbc.Driver /
   property name=jdbcUrl 
value=jdbc:mysql://localhost:3306/mydb?relaxAutoCommit=trueamp;autoReconnect=true
 /
   property name=user value=user /
   property name=password value= /
   property name=initialPoolSize value=5 /
   property name=minPoolSize value=5 /
   property name=maxPoolSize value=20 /
   property name=checkoutTimeout value=1000/
   property name=acquireIncrement value=1/
   property name=testConnectionOnCheckin value=true/
   property name=testConnectionOnCheckout value=true/
   property name=preferredTestQuery value=SELECT 1/
   property name=idleConnectionTestPeriod value=60/
/bean

But I get the same error

I don't know exactly the time it takes but I didn't change anything in mysql so 
I assume it's 8 hours (some hours at least). If you know how to change this 
value...

I use spring, hibernate/jpa and I am not dealing with the connections at all. I 
am just injecting the data source like this :

!-- Creates a EntityManagerFactory for use with the Hibernate JPA provider and 
data source --
bean id=entityManagerFactory 
class=org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean
  property name=dataSource ref=dataSource /
  property name=jpaVendorAdapter
    bean class=org.springframework.orm.jpa.vendor.HibernateJpaVendorAdapter 
/
  /property
/bean

If you have an idea or questions...

Thanks for you help

--- En date de : Lun 14.9.09, David Smith d...@cornell.edu a écrit :

De: David Smith d...@cornell.edu
Objet: Re: tomcat mysql dbcp Communications link failure
À: Tomcat Users List users@tomcat.apache.org
Date: Lundi 14 Septembre 2009, 4h47

Could you provide the full stack trace?  And if possible, can you
describe time it takes as it relates to the timeout of your MySQL
server?  The default timeout in MySQL is 8 hours, but is configurable. 
Also I'm assuming all the ${...} stuff is just you sanitizing the
Resource ... / block.  One last question ... is there any chance your
code is holding on to connections as opposed to closing them when done? 
Closing from the app's point of view is just returning the connection to
the pool for another request later.

--David

Chetouani wrote:
 Hello guys,

 If you can help with this problem.

 I have an application deployed on tomcat V6.18. It uses a mysql database.
 The problem is that after some hours the applicatiion throws an exception 
 when trying to connect to the data base.

 com.mysql.jdbc.CommunicationsException: Communications link failure due to 
 underlying exception

 I cofigured a data source using dbcp :

 Resource name=jdbc/${database.datasource} 
         auth=Container
         type=javax.sql.DataSource 
         factory=org.apache.commons.dbcp.BasicDataSourceFactory 
         driverClassName=${database.driver} 
         url=${database.url} 
         username=${database.user}
         password=${database.password} 
         removeAbandoned=true
         removeAbandonedTimeout=300
         logAbandoned=true
         maxActive=20
         maxIdle=20
         maxWait=1
         validationQuery=SELECT 1
         testOnBorrow=true
         testOnReturn=true
         testWhileIdle=true/

 I did some searches and it seems that the problem is that the connection pool 
 keeps the connections for a long time even if they are considered dead by 
 mysql

 So if you can help

 Thanks


   


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org




  

RE: Can't access Tomcat from outside the LAN

2009-09-15 Thread Jonathan Soons
Number of PCs is not a factor. If you have 1 PC and you want to connect beyond 
your network you need a default gateway.
If you have 1 PC and tomcat is installed you should first try accessing tomcat 
through http://localhost:8080/
If you have another PC on the same network It should be able to access tomcat 
on the first PC via its IP address:8080.
Can you tell us the topography of your network? IP addresses, etc?  That will 
make it far easier to diagnose.

Jonathan Soons


From: Ziggy [zigg...@gmail.com]
Sent: Tuesday, September 15, 2009 5:42 PM
To: Tomcat Users List
Subject: Re: Can't access Tomcat from outside the LAN

If you have more than one pc on ur network then you have to configure
your gateway(I.e router) so that all requests that use port 8080
should be forwarded to the pc that has tomcat installed.

On 9/15/09, Jonathan Soons jso...@juilliard.edu wrote:

 Tom, Do you have a default gateway?
 If you can access anything outside your LAN then you must have one.
 It seems your tomcat box does not know about it.

 Jonathan Soons
 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org



--
Sent from my mobile device


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: tomcat url rewrite

2009-09-15 Thread WILLIAMer

Hi, Christopher Schultz-2 
There is no error with url rewrite.
For item pd1234,
The url would be http://myDomain/item_pd1234.html and its fine.
For item pd12/34
The url would be http://myDomain/item_pd12/34.html and got error.
Because tomcat seems there is a directory named item_pd12under my
application.
So, i say if the item include / char would get error.

At first, i didnt know the problem belong to tomcat or url-rewrite.
Now, thanks the replies in this post.
I know this is not tomcat problem.
-- 
View this message in context: 
http://www.nabble.com/tomcat---url-rewrite-tp25395691p25464594.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Attach listener to tomcat startup

2009-09-15 Thread joea88

I need to run some processes which access own server, so I need to know when
the tomcat has fully started and ready to serve. 

I tried Servlet and doesnt work. There must be some interface or class
notify when the server has started.

Anyone come across this situation?
-- 
View this message in context: 
http://www.nabble.com/Attach-listener-to-tomcat-startup-tp25465762p25465762.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Container based authentication using LDAP and Active Directory

2009-09-15 Thread Ashwin K

Hi Sharda,

AD is superset of LDAP. Thought this might help you in case you didn't know.


-Original Message-
From: sharda k [mailto:sktom...@gmail.com] 
Sent: Wednesday, September 16, 2009 3:15 AM
To: Tomcat Users List
Subject: Re: Container based authentication using LDAP and Active Directory

OK ... :)

On Tue, Sep 15, 2009 at 4:42 PM, George Sexton
geor...@mhsoftware.comwrote:

 Asking the same question a different way will not yield a different
result.

 You're going to have to figure that out yourself.

 George Sexton
 MH Software, Inc.
 http://www.mhsoftware.com/
 Voice: 303 438 9585

  -Original Message-
  From: sharda k [mailto:sktom...@gmail.com]
   Sent: Tuesday, September 15, 2009 3:14 PM
  To: Tomcat Users List
  Subject: Re: Container based authentication using LDAP and Active
  Directory
 
  Hi George,
 
  If I use LDAP API for user authetication, how can I get LoginContext
  and
  implement authorization? If you can please share some insight on this.
 
  Thanks,
  SK
 
 
 
  On Tue, Sep 15, 2009 at 3:46 PM, George Sexton
  geor...@mhsoftware.comwrote:
 
   I don't know. You're going to have to figure that out yourself.
  
   George Sexton
   MH Software, Inc.
   http://www.mhsoftware.com/
   Voice: 303 438 9585
  
  
-Original Message-
From: sharda k [mailto:sktom...@gmail.com]
 Sent: Tuesday, September 15, 2009 2:45 PM
To: Tomcat Users List
Subject: Re: Container based authentication using LDAP and Active
Directory
   
Thank you George.
   
I think I need to elaborate my question further. I could bind user
  and
fetch
user roles using simple java class. But what I want to implement is
JAAS.
The problem is based on the information provided in different web
  sites
I
can use either LDAP or AD for both authentication and
  authorization.
But I
need to decouple authentication and authorization. How can I
  implement
that?
   
Any help would be appreciated.
   
Sharda
   
On Tue, Sep 15, 2009 at 3:19 PM, George Sexton
geor...@mhsoftware.comwrote:
   
 AD servers run an LDAP connector. You use and LDAP API library
  and
try to
 bind to the tree using the user's name and password for
  credentials.

 George Sexton
 MH Software, Inc.
 http://www.mhsoftware.com/
 Voice: 303 438 9585


  -Original Message-
  From: sharda k [mailto:sktom...@gmail.com]
   Sent: Tuesday, September 15, 2009 2:12 PM
  To: Tomcat Users List
  Subject: Re: Container based authentication using LDAP and
  Active
  Directory
 
  How can I implement LDAP to authenticate against AD? Can you
  please
  elaborate?
  I need AD for authentication and LDAP fro authorization.
 
  Thank you,
  Sharda
 
  On Tue, Sep 15, 2009 at 3:08 PM, George Sexton
  geor...@mhsoftware.comwrote:
 
   You can use LDAP to authenticate against AD.
  
   George Sexton
   MH Software, Inc.
   http://www.mhsoftware.com/
   Voice: 303 438 9585
  
  
-Original Message-
From: sharda k [mailto:sktom...@gmail.com]
Sent: Tuesday, September 15, 2009 2:01 PM
To: users@tomcat.apache.org
Cc: sktom...@gmail.com
Subject: Container based authentication using LDAP and
  Active
  Directory
   
Hi,
   
I want to implement Container based Authentication for a
  new
web
  site I
am
working on.
   
The scenario that I have is:
   
   - User ids are being stored in LDAP
   - User credentials(password) are being stored in Active
  Directory
(AD).
   - User roles are gain being stored in LDAP
   
In all examples that I could find in different websites
  write
about
LDAP
authentication in Tomcat. Is there a way we can combine
  both
LDAP
  and
AD for
authentication?
   
Also I want to use custom login page for it.
   
Any help on this would be appreciated.
   
Thanks,
Sharda
  
  
   -
  

   To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
   For additional commands, e-mail: users-h...@tomcat.apache.org
  
  


 -
  
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org


  
  
   -
   To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
   For additional commands, e-mail: users-h...@tomcat.apache.org
  
  


 -
  To unsubscribe, e-mail: 

Re: Container based authentication using LDAP and Active Directory

2009-09-15 Thread Sumedh Sakdeo
http://java.sun.com/j2se/1.5.0/docs/guide/security/jgss/single-signon.html
might
help you with secure authentication against AD. I use this for
authentication purpose.
Simple google landed me on these two wonderful pages maybe helpful...
JAAS authentication
http://java.sun.com/j2se/1.4.2/docs/guide/security/jaas/tutorials/GeneralAcnOnly.html
http://java.sun.com/j2se/1.4.2/docs/guide/security/jaas/tutorials/GeneralAcnOnly.htmlJAAS
authorization
http://java.sun.com/j2se/1.4.2/docs/guide/security/jaas/tutorials/GeneralAcnAndAzn.html#WhatIsAzn

let me know if this suffice your question.

-Sumedh

On Wed, Sep 16, 2009 at 2:14 AM, sharda k sktom...@gmail.com wrote:

 Thank you George.

 I think I need to elaborate my question further. I could bind user and
 fetch
 user roles using simple java class. But what I want to implement is JAAS.
 The problem is based on the information provided in different web sites I
 can use either LDAP or AD for both authentication and authorization. But I
 need to decouple authentication and authorization. How can I implement
 that?

 Any help would be appreciated.

 Sharda

 On Tue, Sep 15, 2009 at 3:19 PM, George Sexton geor...@mhsoftware.com
 wrote:

  AD servers run an LDAP connector. You use and LDAP API library and try to
  bind to the tree using the user's name and password for credentials.
 
  George Sexton
  MH Software, Inc.
  http://www.mhsoftware.com/
  Voice: 303 438 9585
 
 
   -Original Message-
   From: sharda k [mailto:sktom...@gmail.com]
Sent: Tuesday, September 15, 2009 2:12 PM
   To: Tomcat Users List
   Subject: Re: Container based authentication using LDAP and Active
   Directory
  
   How can I implement LDAP to authenticate against AD? Can you please
   elaborate?
   I need AD for authentication and LDAP fro authorization.
  
   Thank you,
   Sharda
  
   On Tue, Sep 15, 2009 at 3:08 PM, George Sexton
   geor...@mhsoftware.comwrote:
  
You can use LDAP to authenticate against AD.
   
George Sexton
MH Software, Inc.
http://www.mhsoftware.com/
Voice: 303 438 9585
   
   
 -Original Message-
 From: sharda k [mailto:sktom...@gmail.com]
 Sent: Tuesday, September 15, 2009 2:01 PM
 To: users@tomcat.apache.org
 Cc: sktom...@gmail.com
 Subject: Container based authentication using LDAP and Active
   Directory

 Hi,

 I want to implement Container based Authentication for a new web
   site I
 am
 working on.

 The scenario that I have is:

- User ids are being stored in LDAP
- User credentials(password) are being stored in Active
   Directory
 (AD).
- User roles are gain being stored in LDAP

 In all examples that I could find in different websites write about
 LDAP
 authentication in Tomcat. Is there a way we can combine both LDAP
   and
 AD for
 authentication?

 Also I want to use custom login page for it.

 Any help on this would be appreciated.

 Thanks,
 Sharda
   
   
-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org
   
   
 
 
  -
  To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
  For additional commands, e-mail: users-h...@tomcat.apache.org