RE: JDBCStore

2014-10-23 Thread spring
You may want to have a look at parallel deployment ( http://tomcat.apache.org/tomcat-7.0-doc/config/context.html). At the moment /Catalina/localhost/ is used as value in column app. It is the root app. Would a war ROOT##2.war use another value?

RE: JDBCStore

2014-10-23 Thread spring
Are you using distributed sessions? If so, you'll have to override the internal serialization mechanism and do it all manually in a way that is going to be cross-version-compatible. It's not impossible, but it does take some planning and forethought. OK; thought so. Thank you.

RE: JDBCStore

2014-10-23 Thread spring
You may want to have a look at parallel deployment ( http://tomcat.apache.org/tomcat-7.0-doc/config/context.html). At the moment /Catalina/localhost/ is used as value in column app. It is the root app. Would a war ROOT##2.war use another value? No. OK, then this would not solve

RE: JDBCStore

2014-10-23 Thread spring
Well, I think it solves your problem. Old session-ids will get routed to the old version of your webapp and thus will be deserialized without a problem. New sessions will be created in the new version. Yes, but the session persistence will go into the same table rows - chrash while

JDBCStore

2014-10-22 Thread spring
Hi, when I deploy a new app version with incompatible serialization version of same classes I get: java.io.InvalidClassException: org.hibernate.collection.internal.AbstractPersistentCollection; local class incompatible: stream classdesc serialVersionUID = -8914173462748164853, local class

JMX and the SessionManager

2013-12-20 Thread spring
Hi, if I use StandardManager or PersistentManager I have a Manager MBean. Fine. But if I use DynamoDBSessionManager which extends PersistentManagerBase (as PersistentManager does) then there is no Mbean. I cannot see in the code why this happens.

RE: JMX and the SessionManager

2013-12-20 Thread spring
Create a mbeans-descriptor.xml file? http://tomcat.apache.org/tomcat-7.0-doc/mbeans-descriptor-howto.html Ah ok, thank you! - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail:

RE: org.apache.catalina.session.PersistentManager

2013-12-07 Thread spring
Hm... no opinions? -Original Message- From: spr...@gmx.eu [mailto:spr...@gmx.eu] Sent: Donnerstag, 5. Dezember 2013 20:08 To: 'Tomcat Users List' Subject: org.apache.catalina.session.PersistentManager Hi, if I want to use org.apache.catalina.session.PersistentManager but do

org.apache.catalina.session.PersistentManager

2013-12-05 Thread spring
Hi, if I want to use org.apache.catalina.session.PersistentManager but do not want the async storage of session data is it sufficient to add a valve which stores the session data after the request via manager.getStore().save(..)? And how can I prevent that the session is stored again by the

RE: org.apache.catalina.filters.CorsFilter

2013-12-03 Thread spring
Exactly where? The full path is needed here. TOMCAT/webapps/myapp/WEB-INF/classes/org/apache/catalina/filters/CorsFilter. class Rather than mucking about with an old Tomcat version, just throw away the 3rd-party repackaged crap and install the current one from tomcat.apache.org; it will

RE: org.apache.catalina.filters.CorsFilter

2013-12-03 Thread spring
Just wanna now why the class is not loadable as org.apache.catalina.filters.CorsFilter but as com.apache.catalina.filters.CorsFilter (different dir in classes of course). Because Tomcat prevents web applications from replacing container classes. Ah, so we do have special rules for

RE: org.apache.catalina.filters.CorsFilter

2013-11-30 Thread spring
There aren't any. Without the details of how you configured the filter, where you put the class file and the stack trace of the exception we can't help you. Class is in WEB-INF/classes of the webapp. SEVERE: Exception starting filter CorsFilter java.lang.ClassNotFoundException:

org.apache.catalina.filters.CorsFilter

2013-11-28 Thread spring
Hi, I 'm using the CorsFilter in Tomcat 7.0.47, all good. Then tried it in 7.0.37 - no luck, only available since 7.0.41. OK, I put the class into the war file and expected that it is loadable now. But I get a ClassNotFound. Guessing some special classloader rules I remaned the class to

RE: PersistentManager + JdbcStore

2013-11-09 Thread spring
I think I will fix the DynamoDB-Sessionmanager. Also an option. Already in process it seems ;) https://github.com/aws/aws-dynamodb-session-tomcat/issues/3 I hope they will use the code from tomcat for managing the classloader issues. Well, just realized that this Manager is

RE: PersistentManager + JdbcStore

2013-11-09 Thread spring
Given some method of automatic discovery, other than multicast, it sounds like you could still use Tomcat's clustering support. So perhaps you could write your own membership service? Yes, I think with Jgroups + S3 ping this could be solved. But since both ClusterManagers are based on

PersistentManager + JdbcStore

2013-11-08 Thread spring
Hi, is it possible to use the PersistentManager + JdbcStore to enable a 100% failover/cluster solution for sessions? As far as I can see not, because the session data is written async into the database and only in a min. interval of 1 s. Is this right? Thank you

RE: PersistentManager + JdbcStore

2013-11-08 Thread spring
If you need sessions replicated as changes occur then you'll want to look at a different solution, like the built-in cluster support. Unfortunately it does not work on AWS, no multicast. I think I will fix the DynamoDB-Sessionmanager. Thank you

RE: PersistentManager + JdbcStore

2013-11-08 Thread spring
Multicast is not a requirement, that just defines how Tomcat nodes will locate each other. Since multicast is not available for you, you could statically list your Tomcat nodes in your configuration. https://tomcat.apache.org/tomcat-7.0-doc/config/cluster-interc

com.amazonaws.services.dynamodb.sessionmanager.DynamoDBSessionManager

2013-10-31 Thread spring
Hi, when I use the com.amazonaws.services.dynamodb.sessionmanager.DynamoDBSessionManager I get classloader issues when a session gets deserialized and my session contains classes which are not available to the shared loader. My question: Is this a bug in

RE: com.amazonaws.services.dynamodb.sessionmanager.DynamoDBSessionManager

2013-10-31 Thread spring
1.) Seeing as it's their code, have you asked Amazon? Not sure if this is you, but seems like a similar issue. https://github.com/aws/aws-dynamodb-session-tomcat/issues/1 Oh yes, same issue. 2.) Have you tried one of Tomcat's included persistent session managers? Do you see the same

RE: com.amazonaws.services.dynamodb.sessionmanager.DynamoDBSessionManager

2013-10-31 Thread spring
Their code (DynamoDBSessionStore.load(...)) uses ObjectInputStream Tomcat code (e.g. o.a.catalina.session.FileStore.load(..)) uses CustomObjectInputStream which knows how to deal with class loaders. Yes. It is their bug (or feature). :) Thank you!

Question about usernames being case insensitive

2013-08-27 Thread Michael Spring
documentation and can't find a lead. -- With best wishes, Michael Michael B. Spring Associate Professor Information Science and Telecommunications Voice: (412)-624-9429 Fax: (412)-624-2788 WWW: http://www.sis.pitt.edu/~spring

Re: Question about usernames being case insensitive

2013-08-27 Thread Michael Spring
you every so much. Teaches me to make sure I check all the possibilities before I start pointing a finger in teh wrong direction. Love those features! With best wishes, Michael Michael B. Spring Associate Professor

Re: Question about usernames being case insensitive

2013-08-27 Thread Michael Spring
am so pleased to have all the advice that has been given. It is so unlike much of the misinformation on the web. Thank you. With best wishes, Michael - Michael B. Spring Associate Professor Information Science and Telecommunications Voice: (412)-624-9429 Fax: (412)-624

Tomcat does not start with -Dcom.sun.management.jmxremote.port=9001

2013-02-01 Thread spring
Hi, I want to monitor my tomcat 7 via JMX remotely. The problem is, as soon as I add -Dcom.sun.management.jmxremote.port=9001 to my setenv.sh tomcat does not start anymore. No error message, no log, nothing... The system is a ubuntu which uses start-stop-demon to execute catalina.sh. What could

RE: Tomcat does not start with -Dcom.sun.management.jmxremote.port=9001

2013-02-01 Thread spring
there must be a log message somewhere. But I do not find it... The problem is probably that under Ubuntu, the startup script redirects the STDERR log somewhere, where you are not looking (via SYSLOG to /var/log/daemon.log e.g.). There is a syslog file, but it has no error messages.

Tomcat uses only a single Core

2012-12-13 Thread spring
Hi, I have an application running on Tomcat 7 on a 8-Core Linux 64 bit System. Unfortunately it uses only a single core. I have googled alot about this fact but did not found a solution, even not a clear reason for it. What can be the problem here? Thank you

RE: RemoteIpFilter not working

2011-12-09 Thread spring
Can you send a dump of the HTTP headers received by the webapp and the return value of the various request.getXXX methods? That would be very helpful, here. getRemoteAddr(): 85.214.210.60 -- proxy IP x-forwarded-for: 85.178.56.216 -- client IP x-forwarded-host: foobar.eu -- proxy

RemoteIpFilter not working

2011-12-08 Thread spring
Hi, I have set up the RemoteIpFilter (Tomcat 7.0.8) in the webapps web.xml like this: filter filter-nameRemoteIpFilter/filter-name filter-classorg.apache.catalina.filters.RemoteIpFilter/filter-class /filter filter-mapping filter-nameRemoteIpFilter/filter-name

RE: Classloaders in catalina.properties

2011-10-16 Thread spring
Because, while the functionality remains, it's no longer the default. See: http://tomcat.apache.org/tomcat-5.5-doc/class-loader-howto.html Ah ok, thx. But why is this no longer documented? - To unsubscribe, e-mail:

Classloaders in catalina.properties

2011-10-14 Thread spring
Hi, in catalina.properties I can define paths for common, server and shared loaders. Where do I find them here in the docs?: http://tomcat.apache.org/tomcat-7.0-doc/class-loader-howto.html Here we have only system and common... Thank you

RE: EL in Tomcat 7

2011-09-13 Thread spring
In 7.0.21 it works: OK, thank you. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org

EL in Tomcat 7

2011-09-12 Thread spring
Hi, in a jsp I have an expression like this: ${states.get(state)} On my dev machine everything works fine, on the staging it does not work, I get: java.lang.NoSuchMethodException: java.util.HashMap.get(java.lang.Integer) states is: Map states = new HashMap(); states.put(1, foo); ... Both

RE: EL in Tomcat 7

2011-09-12 Thread spring
${states.get(state)} Did it work before, and in what exact versions of Tomcat? Only on dev with 7.0.5 I would write that as ${states[state]} This works. What exactly version on Tomcat 7.0.x? There is a new one every month. .get(..) works on 7.0.5 but not on 7.0.8

Modular Deployment

2011-08-04 Thread spring
Hi, I have an application which has a core app, some optional modules and config files. Until now I deploy the app into /webapps (NOT as war-File), copy needed optional modules into WEB-INF/classes or lib and maintain config files outside of the tomcat directory by adding the config directory as

RE: Modular Deployment

2011-08-04 Thread spring
Maybe the virtualWebappLoader is interesting for you: http://tomcat.apache.org/tomcat-7.0-doc/config/loader.html#Vir tualWebappLoader%20Implementation Yes, I thought that this will be the solution for tomcat 7. It already exists in Tomcat 6 but was made official and documented in Tomcat

Order of classloading in WEB-INF/lib

2011-06-21 Thread spring
Hi, in which order are classes loaded in jars in WEB-INF/lib? Alphabetically? By date? Unordered? My problem is: My WEB-INF/lib contains jar's where on jar contains older versions of a classes than the other jar. I will ensure to load the newer versions of the classes. How can this be done?

RE: Order of classloading in WEB-INF/lib

2011-06-21 Thread spring
in which order are classes loaded in jars in WEB-INF/lib? Alphabetically? By date? Unordered? There is no order. Thank you. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail:

RE: Terminating long running request threads

2011-06-11 Thread spring
Have a look at this Valve: http://svn.apache.org/repos/asf/tomcat/trunk/java/org/apache/catalina/valves /StuckThreadDetectionValve.java For Tomcat 7.0.14 -Original Message- From: Afkham Azeez [mailto:afk...@gmail.com] Sent: Samstag, 11. Juni 2011 19:23 To: Tomcat Users List

RE: Windows Authentication: Issue 49318 vs 47679

2011-03-28 Thread spring
I should have SPNEGO support in Tomcat 7 fairly soon. This would be great! - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org

CsrfPreventionFilter

2011-03-04 Thread spring
Hi, 2 questions: 1. Are there any plans to implement wildcard (e.g. ANT-like) matching for the entrypoints of the CsrfPreventionFilter? I have several static ressources like css, images etc. which do not need a nonce and I really cannot list all of them explicitly. The main problem are urls in

Where are my compiled jsp's?

2011-02-25 Thread spring
Hi, I have an expanded webapp moved into a directory out of tomcats webapps-dir. I have changed the docbase in server.xml (I know, bad practice). But now the compiled jsp's are no longer in tomcats work directory. Where are they now? Thank you

RE: what to do in conf. files

2011-02-25 Thread spring
Especially, what are things to deploy jsf_webapp in its real host after developing it in the localhost ? You will also have to make sure that your URLs are built properly. If the string localhost appears anywhere in your webapp, you're probbaly doing something wrong. Also, if you're

Updating CRL

2011-02-23 Thread spring
Hi, are there any plans to implement a life update (without restarting the connector) of the CRL in tomcat 7? And maybe via URL not via File? Thank you - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For

Updating Tomcate Windows Service

2011-02-17 Thread spring
Hi, I have a tomcat 7.0.2 service under W2K8 64bit. I want to update it to 7.0.8. Can I just run the service installer for 7.0.8 again or will this reset my current configuration? Thank you - To unsubscribe, e-mail:

RE: Updating Tomcate Windows Service

2011-02-17 Thread spring
I have a tomcat 7.0.2 service under W2K8 64bit. I want to update it to 7.0.8. Can I just run the service installer for 7.0.8 again or will this reset my current configuration? https://issues.apache.org/bugzilla/show_bug.cgi?id=10021 It will reset your configuration. OK, so I will

SSL not working

2011-01-28 Thread spring
Hi, I did it now so many times - it always worked - configuring tomcat for SSL. Today: New server, new certificate. Create new keystore, imported root, intermediate and server certificate, configured the connector, same as usual. But... http does not work. No error in tomcats log, nothing.

RE: SSL not working

2011-01-28 Thread spring
Hi, it is TC 7.0.5, Java 1.6_22. When I use a selfsigned certificate everything is fine - same server config, just the other certificate. So it must be something wrong with the certificate. But I have no clue what. How can I debug the SSL-Handshake process? The cert not working has: #7:

RE: SSL not working

2011-01-28 Thread spring
OK, i enabled ssl-debug an got this: Using SSLEngineImpl. http-8443-exec-6, READ: TLSv1 Handshake, length = 72 *** ClientHello, TLSv1 RandomCookie: GMT: 1296237960 bytes = { 29, 26, 93, 201, 51, 195, 57, 220, 172, 159, 182, 24, 23, 109, 229, 241, 219, 44, 93, 9, 215, 107, 176, 92, 192, 250, 134,

RE: Applet, session-ID - TC 6 vs. TC7

2011-01-15 Thread spring
The behaviour is configurable. Set the changeSessionIdOnAuthentication attribute to false on the FORM authenticator valve Hm, ok. I do not use tomcat's auth mechanisms. I use spring security. Something must have changed between TC 6.0 and 7.0. And I have no idea what

RE: Applet, session-ID - TC 6 vs. TC7

2011-01-15 Thread spring
Hm, ok. I do not use tomcat's auth mechanisms. I use spring security. Something must have changed between TC 6.0 and 7.0. And I have no idea what... As has already been explained, the session ID changes on authentication. What do you mean with authentication? I do NOT use tomcat's

RE: Applet, session-ID - TC 6 vs. TC7

2011-01-15 Thread spring
Well, saying you use Form auth was misleading, wasn't it? Is called FormAuth in Spring too. If you're using Spring Security maybe your question would be better addressed to one of the Spring forums? Hm. But it works in TC 6.0 with the same version of spring. Are you unable to retrieve

RE: Applet, session-ID - TC 6 vs. TC7

2011-01-15 Thread spring
I have a web app where the user logs in and starts an applet which uploads a file and then opens a page in the browser. I use Java 1.6_16. When I do this in TC 6.0.13 the session-ID stays the same after login. Fine. When I do this in TC 7.0.5 the session-ID changes when the applet

RE: Applet, session-ID - TC 6 vs. TC7

2011-01-15 Thread spring
You will also need to set useHttpOnly=false on the Context. For security, Tomcat sets the httpOnly flag on the cookie if either of these are true. Uh... Where is this documented? I was already looking for it... Thank you!

RE: tomcat 6.0.29 webdav servlet support for file uploading with browser

2011-01-15 Thread spring
On Sat, 15 Jan 2011 18:21:26 +0100, Al wq eee...@hotmail.com wrote: The problem is that I am missing a JSP for it. JSP generates HTML. HTML only supports GET and POST. WebDav uses PUT for uploads. A browser isn't a full WebDav client.

RE: Applet, session-ID - TC 6 vs. TC7

2011-01-15 Thread spring
The interaction between the settings isn't documented as far as I recall. (Patches welcome) Can I patch it? - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail:

Applet, session-ID - TC 6 vs. TC7

2011-01-14 Thread spring
Hi, I have a web app where the user logs in and starts an applet which uploads a file and then opens a page in the browser. I use Java 1.6_16. When I do this in TC 6.0.13 the session-ID stays the same after login. Fine. When I do this in TC 7.0.5 the session-ID changes when the applet starts to

RE: Applet, session-ID - TC 6 vs. TC7

2011-01-14 Thread spring
What are you using the session id for? I use form auth. Subsequent calls after a successful login in the same session are not authenticated again. This is standard I would say. Don't rely on the session id remaining the same. Then the applet has to know the user credentials and has to post to

RE: Applet, session-ID - TC 6 vs. TC7

2011-01-14 Thread spring
Are you unable to retrieve the new session id? This is all done magically by the Applet-Java-Runtime. Programmatic login is now possible in Servlet 3.0, would this help? I know, but the applet does NOT know the credentials.

RE: java.lang.ClassCastException: com.sun.media.imageioimpl.plugins.tiff.TIFFImageReader cannot be cast to com.sun.media.imageioimpl.plugins.tiff.TIFFImageReader

2010-12-23 Thread spring
running under W2K3, tomcat 6.0.26 and java 1.6_22 I get after a while: java.lang.ClassCastException: com.sun.media.imageioimpl.plugins.tiff.TIFFImageReader cannot be cast to com.sun.media.imageioimpl.plugins.tiff.TIFFImageReader at: Iterator it =

RE: java.lang.ClassCastException: com.sun.media.imageioimpl.plugins.tiff.TIFFImageReader cannot be cast to com.sun.media.imageioimpl.plugins.tiff.TIFFImageReader

2010-12-23 Thread spring
java.lang.ClassCastException: com.sun.media.imageioimpl.plugins.tiff.TIFFImageReader cannot be cast to com.sun.media.imageioimpl.plugins.tiff.TIFFImageReader at: Iterator it = ImageIO.getImageReadersByFormatName(TIF); r = (TIFFImageReader)it.next(); //==BANG I solved that

RE: APR and async request

2010-12-21 Thread spring
OK; I've got it... when I change the Connector from HTTP/1.1 to org.apache.coyote.http11.Http11NioProtocol is works. Sounds a bit logical (Non-Blocking and async) but can someone please explain? Thank you when I disable APR by removing the tcnative-1.dll or by removing the APR listener from

RE: APR and async request

2010-12-21 Thread spring
I mean the new servlet 3.0 capabilities: startAsync() and the resulting AsyncContext: request.startAsync() AsyncContext#getResponse() sample: HttpServletResponse res = (HttpServletResponse)ac.getResponse(); res.setStatus(200); res.setHeader(X-Foo, bar); res.setContentType(application/xml);

java.lang.ClassCastException: com.sun.media.imageioimpl.plugins.tiff.TIFFImageReader cannot be cast to com.sun.media.imageioimpl.plugins.tiff.TIFFImageReader

2010-12-21 Thread spring
Hi, running under W2K3, tomcat 6.0.26 and java 1.6_22 I get after a while: java.lang.ClassCastException: com.sun.media.imageioimpl.plugins.tiff.TIFFImageReader cannot be cast to com.sun.media.imageioimpl.plugins.tiff.TIFFImageReader at: Iterator it = ImageIO.getImageReadersByFormatName(TIF); r

RE: java.lang.ClassCastException: com.sun.media.imageioimpl.plugins.tiff.TIFFImageReader cannot be cast to com.sun.media.imageioimpl.plugins.tiff.TIFFImageReader

2010-12-21 Thread spring
ImageIO pins the classloader it first uses. So if that's a WebappClassloader you subsequently reload the app you'll have a memory leak the potential for class cast exceptions. As I said, nobody reloads the app (at least I cannot see this in the logs). It just happens after a while. The

APR and async request

2010-12-20 Thread spring
Hi, when I disable APR by removing the tcnative-1.dll or by removing the APR listener from server.xml async requests do not work anymore. I get immediately after the request an empty response body with status 200. I'm using TC 7.0.5 under windows 2003. Thank you.

Tomcat 7.0.0 Beta1 - AsyncListener

2010-07-09 Thread spring
Hello, I have a AsyncListener registered for an AsyncContext. Everytime I call AsyncContext#complete fist onError gets called (throwable is null) and then onComplete(). Is this a known Bug or did I made something wrong? Here is the relevant Code: member vars: private final