Advanced mod_jk router configuration
Hi: We have router1 doing load balancing and failover between worker1 and worker2. We would like to configure additional worker3 such that router1 will only forward the request to worker3 once all the failover attempts are exhausted for worker1 and worker2 combination How do we achieve this? Thanks, -- Sriram - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
reasonable session size?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Folks; not sure whether this is too much a tomcat-related question, but at least it relates to Java based web applications so hope someone around here might have an idea on that: While building a Servlet/JSP based intranet application, quite late I realized that somehow just adding new objects / data to the HTTP session, say, is something so easy one makes excessive use once getting acquainted to it. However, thinking about these information being stored somewhere on the server, the idea of performance impacts due to sessions way too large is the next thing to think of. So, to ask: Are there any reasonable maximum sizes for HTTP sessions in general and/or objects attached to a session? What is the maximum session size you would accept before considering rewriting large parts of your application to reduce session size, i.e. by introducing a smarter architecture? Is there any actual use in making _general_ statements here, or is this more likely to be application-dependent and a matter of having server hardware built to meet the needs of the application? What do you think? Thanks in advance and bye, Kristian - -- Kristian Rink * http://zimmer428.net * http://flickr.com/photos/z428/ jab: [EMAIL PROTECTED] * icq: 48874445 * fon: ++49 176 2447 2771 One dreaming alone, it will be only a dream; many dreaming together is the beginning of a new reality. (Hundertwasser) -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFF5UxocxBAPOA1m6wRAvDUAJ9q7P7uMcAPkWN6oWMCy9reBqwk/ACgpWuH p9dw0PGHuEDSmXGFLoBzTk4= =xHjb -END PGP SIGNATURE-
Re: reasonable session size?
hello not sure whether this is too much a tomcat-related question, but at least it relates to Java based web applications so hope someone around here might have an idea on that: While building a Servlet/JSP based intranet application, quite late I realized that somehow just adding new objects / data to the HTTP session, say, is something so easy one makes excessive use once getting acquainted to it. However, thinking about these information being stored somewhere on the server, the idea of performance impacts due to sessions way too large is the next thing to think of. session is just another object container as long as you dont serialize it over net or into file, there are no performance issues compared to other containers. Maybe the amount of the objects could be a problem (since its a flat map) and if you want to store billions of objects you should try some hierarchy (or a very clever hashCode fun). The size is irrelevant. So, to ask: Are there any reasonable maximum sizes for HTTP sessions in general and/or objects attached to a session? What is the maximum session size you would accept before considering rewriting large parts of your application to reduce session size, i.e. by introducing a smarter architecture? Is there any actual use in making _general_ statements here, or is this more likely to be application-dependent and a matter of having server hardware built to meet the needs of the application? application depended. If you can afford it, put more RAM into the server, it's much cheaper as rewriting the app. regards Leon - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Noobie Questions
En l'instant précis du 27/02/07 22:09, Henderson,Nathan s'exprimait en ces termes: This is an entry from our server.xml for one of our connections there are 14 just like this with different ip addresses for each entry and names of course, I set up IP aliases on the NIC card for this purpose. Service name=xxtest Connector address=xxx.xx.xxx.xx port=80 redirectPort=443/ !-- Define a SSL HTTP/1.1 Connector on port 443 -- Connector address=xxx.xx.xxx.xx port=443 maxHttpHeaderSize=8192 maxThreads=150 minSpareThreads=25 maxSpareThreads=75 enableLookups=false disableUploadTimeout=true acceptCount=100 scheme=https secure=true clientAuth=false sslProtocol=SSL keystoreFile=/usr/local/bin/ice/sslcerts/.xxwalive keystorePass=xx algorithm=IbmX509 / Engine name=xxtest defaultHost=xxwatest.iceschools.org Realm className=org.apache.catalina.realm.UserDatabaseRealm resourceName=UserDatabase / !-- This Host is the Virtual Host: xxwatest -- Host name=xxwatest.myorg.org appBase=/usr/webadvisor/xxwatest Aliasxxx.xx.xxx.xx/Alias Valve className='org.apache.catalina.valves.AccessLogValve' directory='/usr/webadvisor/xxwatest/logs' prefix='xxwatest_access.' suffix='.log' pattern='common'/ Logger className='org.apache.catalina.logger.FileLogger' directory='/usr/webadvisor/xxwatest/logs' prefix='xxwatest_catalina.' suffix='.log' timestamp='true'/ Context path=/ debug=5 docBase=/usr/webadvisor/xxwatest privileged=true / Context path=/manager debug=5 docBase=/usr/tomcat/apache-tomcat-5.5.20/server/webapps/manager privileged=true / /Host /Engine /Service According to my knowledges of tomcat, this should work, each of your server is then identified by a different ip, so everything should work fine. I could not do better myself ^^ OK, in the Tomcat html administration tool, I see a tree to the left that starts out with Tomcat Server under this heading is Services then the name of my like Service (Catalina) Under this services heading are my connectors and so on. Is there a way to stop and start this Service or connector or something under this heading so I do not have to restart the entire Tomcat server Hope this helps No, this is not possible, as far as i know, to stop services without stopping tomcat. However, using the manager interface of each of your virtual host, you can stop webapps inside those services. Tomcat will still listen to corresponding port but will respond with 404 error for stopped webapps :) - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: URL-pointing problem
We tried changing the folder name, however that makes our servlet crash. Couldn't find content.xml though; only admin.xml and manager.xml resides under /conf/ . The following error message is returned when trying to run the app: org.apache.jasper.JasperException org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:372) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) sun.reflect.GeneratedMethodAccessor47.invoke(Unknown Source) sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) java.lang.reflect.Method.invoke(Method.java:585) org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:243) java.security.AccessController.doPrivileged(Native Method) javax.security.auth.Subject.doAsPrivileged(Subject.java:517) org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:272) org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:161) root cause java.lang.NullPointerException pubdb.Entry.getDocuments(Entry.java:399) pubdb.Entry.getEntryById(Entry.java:217) org.apache.jsp.search.search_005fresult_jsp._jspService(search_005fresult_jsp.java:677) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) sun.reflect.GeneratedMethodAccessor47.invoke(Unknown Source) sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) java.lang.reflect.Method.invoke(Method.java:585) org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:243) java.security.AccessController.doPrivileged(Native Method) javax.security.auth.Subject.doAsPrivileged(Subject.java:517) org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:272) org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:161) note (We might get a response that says well it's a badly coded app then :) however, since our java skills really aren't up to par, it would be great if there was an easier solution rather than rewriting the app.) On Tue, 2007-02-27 at 10:24 -0500, David Smith wrote: There's a difference between webapp names and servlet names. You want to change the webapp's name. To do that, just change the name of the webapp in the webapps folder ie pub_db - publications or pub_db.war - publications.war. You may have to make a similar name change to the context.xml file in conf/Catalina/localhost and then restart tomcat. --David wille wrote: Hello, having a bit of a problem here. We have deployed a web application on our server by putting it in the webapps directory, this makes it appear at a URL like http://mjau.com/pub_db. Now we want to change the URL for this webapp to something else, (in this case http://mjau.com/publications). Currently we've tried messing around with URL-mapping in /tomcat5/conf/web.xml and /tomcat5/webapps/WEB-INF/web.xml. We've tried to use the servlet-mapping directive in our web data xml-files, but it seems that the servlet is implicitly defined when putting the webapp in the webapps directory, because we have no servlet section in our web data xml-files. But things work anyway. But when we try to define our own servlet section, it won't work. We are running Tomcat 5.0.30, Java 5.0, on a Debian Etch server. This is what we've tried to do in the /tomcat5/conf/web.xml: servlet servlet-namepubdb/servlet-name servlet-class pubdb /servlet-class /servlet-- !--servlet-mapping servlet-nameinvoker/servlet-name url-pattern/publications/*/url-pattern /servlet-mapping-- /web-app Anyone have a clue what we're doing wrong? - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail:
RE: URL-pointing problem
From: wille [mailto:[EMAIL PROTECTED] root cause java.lang.NullPointerException pubdb.Entry.getDocuments(Entry.java:399) pubdb.Entry.getEntryById(Entry.java:217) So what's causing the NPE then? :-) - Peter - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Noobie Questions
David Delbecq wrote: No, this is not possible, as far as i know, to stop services without stopping tomcat. However, using the manager interface of each of your virtual host, you can stop webapps inside those services. Tomcat will still listen to corresponding port but will respond with 404 error for stopped webapps :) At least my Tomcat 5.5.17 responds with HTTP status code 503 Service unavailable (The application is currently not available) when trying to access stopped webapps, not 404. Georg - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: HTTP plus
Ok - continuing. Is it possible to use a GenricServlet to do basicly this. service(req,res) { for(;;) { readSome(req.getInputStream()); if(writeSome(req.getOutputStream()) { req.flushBuffer(); } else { break; } } } That is read in incomming socket stream and write something back while reading in a way that takes advantage of the connection. That is not being purely transactionless and bypassing all the HTTP specific protocols after the header needed to address the specific servlet. PK At 20:59 2/27/2007, you wrote: I guess I'll answer my own question here after some testing and research That is: If you override the service() method on servelet all you need is a service name and a path to the servlet followed by two newlines as the minimal header. ie: X /Z\n\n for the most minimal header. X being the service name and /Z being the path to the servlet. On reply if service() if you write to the response.getOutputStream() you are in essence writing directly to the connected socket unfiltered. At 18:32 2/26/2007, you wrote: Was this last message of mine just too naive :) Should I break it into smaller parts? Still curious :) Peter K. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: HTTP plus
If you don't want to deal with HTTP, you should not use the Servlet API (which is the Java abstraction of HTTP) at all. You can do the indicated code with generic sockets, no need to mind about Servlets altogether. Georg Peter Kennard wrote: Ok - continuing. Is it possible to use a GenricServlet to do basicly this. service(req,res) { for(;;) { readSome(req.getInputStream()); if(writeSome(req.getOutputStream()) { req.flushBuffer(); } else { break; } } } That is read in incomming socket stream and write something back while reading in a way that takes advantage of the connection. That is not being purely transactionless and bypassing all the HTTP specific protocols after the header needed to address the specific servlet. PK At 20:59 2/27/2007, you wrote: I guess I'll answer my own question here after some testing and research That is: If you override the service() method on servelet all you need is a service name and a path to the servlet followed by two newlines as the minimal header. ie: X /Z\n\n for the most minimal header. X being the service name and /Z being the path to the servlet. On reply if service() if you write to the response.getOutputStream() you are in essence writing directly to the connected socket unfiltered. At 18:32 2/26/2007, you wrote: Was this last message of mine just too naive :) Should I break it into smaller parts? Still curious :) Peter K. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: URL-pointing problem
^__^ Our webapp had hardcoded paths in it, now we just have to grep them all and replace them. Thanks y'all! On Wed, 2007-02-28 at 10:58 +, Peter Crowther wrote: From: wille [mailto:[EMAIL PROTECTED] root cause java.lang.NullPointerException pubdb.Entry.getDocuments(Entry.java:399) pubdb.Entry.getEntryById(Entry.java:217) So what's causing the NPE then? :-) - Peter - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: URL-pointing problem
From: wille [mailto:[EMAIL PROTECTED] Our webapp had hardcoded paths in it, now we just have to grep them all and replace them. Oops :-). You might like to look at the servlet context's methods for fetching resources (getResource and getResourceAsStream, I think). They make the file locations relative to the servlet, wherever it's deployed. - Peter - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: HTTP plus
On Wed, 28 Feb 2007 12:36:03 +0100 Georg Sauer-Limbach [EMAIL PROTECTED] wrote: If you don't want to deal with HTTP, you should not use the Servlet API (which is the Java abstraction of HTTP) at all. You can do the indicated code with generic sockets, no need to mind about Servlets altogether. Excuse the naivety but I thought you couldn't open a socket with J2EE. I was told (I think on this list) that you need to use a JCA to make the connection. Regards Wayne - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: HTTP plus
I understand what you are saying, however that means you also have to re-do all the application management system. Deployment, connectors, management, adminstration, thread management, load balancing, SSL key management and configuration and many many other infrastructure pieces that can be leveraged to manage a large complex system. This would be a huge project (ie: the scale of creating tomcat) So if one wants to create a web adminstratable application that has (one or more servlet ports that connect with other protocols). And has web ports to handle HTTP requests into the same system. If you *can* do it in tomcat it would be great. If those protocols are somewhat transaction based then they would fit very well into the servlet model. I am trying to sus out the potential. Yes you can always write a complete application manager from scratch :) I am trying to avoid it. Peter K. At 06:36 2/28/2007, Georg Sauer-Limbach wrote: If you don't want to deal with HTTP, you should not use the Servlet API (which is the Java abstraction of HTTP) at all. You can do the indicated code with generic sockets, no need to mind about Servlets altogether. Georg Peter Kennard wrote: Ok - continuing. Is it possible to use a GenricServlet to do basicly this. service(req,res) { for(;;) { readSome(req.getInputStream()); if(writeSome(req.getOutputStream()) { req.flushBuffer(); } else { break; } } } That is read in incomming socket stream and write something back while reading in a way that takes advantage of the connection. That is not being purely transactionless and bypassing all the HTTP specific protocols after the header needed to address the specific servlet. PK At 20:59 2/27/2007, you wrote: I guess I'll answer my own question here after some testing and research That is: If you override the service() method on servelet all you need is a service name and a path to the servlet followed by two newlines as the minimal header. ie: X /Z\n\n for the most minimal header. X being the service name and /Z being the path to the servlet. On reply if service() if you write to the response.getOutputStream() you are in essence writing directly to the connected socket unfiltered. At 18:32 2/26/2007, you wrote: Was this last message of mine just too naive :) Should I break it into smaller parts? Still curious :) Peter K. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: HTTP plus
That's certainly correct, raw socket communication is not J2EE. Peter didn't mention, however, that J2EE was a necessary precondition for his case. On the contrary, this communication with some binary messages sent over sockets cannot be made to fit in a J2EE environment easily, save these options with JCA which I don't know enough about. Georg Wayne Gemmell wrote: On Wed, 28 Feb 2007 12:36:03 +0100 Georg Sauer-Limbach [EMAIL PROTECTED] wrote: If you don't want to deal with HTTP, you should not use the Servlet API (which is the Java abstraction of HTTP) at all. You can do the indicated code with generic sockets, no need to mind about Servlets altogether. Excuse the naivety but I thought you couldn't open a socket with J2EE. I was told (I think on this list) that you need to use a JCA to make the connection. Regards Wayne - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: HTTP plus
Excuse the naivety but I thought you couldn't open a socket with J2EE. I was told (I think on this list) that you need to use a JCA to make the connection. If this is true I want to know about this. I am so far under the impression if you needed to connect with another protocol in a servlet you could in essence (Worst case scenario) write a server inside a servlet using sockets. But that would require you write all the code to handle aborting startup/shutdown thread management etc etc. If I can have a tweaked protocol servlet as part of a multi-servlet application this would make a perfect model for the gateway type of application between HTTP and a non (exactly) HTTP protocol we are trying to support. Can you write a server inside a servlet ?? PK At 06:46 2/28/2007, you wrote: On Wed, 28 Feb 2007 12:36:03 +0100 Georg Sauer-Limbach [EMAIL PROTECTED] wrote: If you don't want to deal with HTTP, you should not use the Servlet API (which is the Java abstraction of HTTP) at all. You can do the indicated code with generic sockets, no need to mind about Servlets altogether. Regards Wayne - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: HTTP plus
Yes - I'm assuming J2ee facilities. At 06:57 2/28/2007, you wrote: That's certainly correct, raw socket communication is not J2EE. Peter didn't mention, however, that J2EE was a necessary precondition for his case. On the contrary, this communication with some binary messages sent over sockets cannot be made to fit in a J2EE environment easily, save these options with JCA which I don't know enough about. Georg Wayne Gemmell wrote: On Wed, 28 Feb 2007 12:36:03 +0100 Georg Sauer-Limbach [EMAIL PROTECTED] wrote: If you don't want to deal with HTTP, you should not use the Servlet API (which is the Java abstraction of HTTP) at all. You can do the indicated code with generic sockets, no need to mind about Servlets altogether. Excuse the naivety but I thought you couldn't open a socket with J2EE. I was told (I think on this list) that you need to use a JCA to make the connection. Regards Wayne - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: log4j exception only when stopping and starting a web application
It looks like you have bad syntax in you log4j.properties file. If that were the case, i would have expected it to fail the first time i started the application? to be clear, here are the steps to reproduce the error [1] deploy an unpacked webapp myapp to $TOMCAT_HOME/webapps/myapp [2] start tomcat [3] all webapps start and work fine, both tomcat and application logging works fine [4] using the /manager webapp stop myapp [5] myapp (seems to) shut down fine [6] using the /manager webapp start myapp [7] myapp does not start because of the reported error It might also be worth mentioning that my application requires the user to log in and is then redirected to an LDAP server for authentication. But, just in case you are right I stripped the log4j.properties down to something very simple and i still get the same error *only* after stopping and restarting the application via the manager application. I attached my stripped down versions of the log4j.properties files just in case you can spot something (oh please don't let there be a typo :)) log4j.properties in webapps/myapp/WEB-INF/classes - log.home=C:/Tomcat 5.5/logs app.name=myapp # root logger sends INFO level messages to debug and error appenders log4j.rootLogger=DEBUG,A1 # define the debug appender log4j.appender.A1=org.apache.log4j.RollingFileAppender log4j.appender.A1.Append=true log4j.appender.A1.File=${log.home}/${app.name}/myapp.log log4j.appender.A1.layout=org.apache.log4j.PatternLayout log4j.appender.A1.layout.ConversionPattern=%d{-MM-dd HH:mm:ss} %-5p %3x %c - %m%n # define the tomcat appender for Tomcat messages specific to this application log4j.appender.tomcat=org.apache.log4j.RollingFileAppender log4j.appender.tomcat.Append=true log4j.appender.tomcat.File=${log.home}/${app.name}/tomcat.log log4j.appender.tomcat.layout=org.apache.log4j.PatternLayout log4j.appender.tomcat.layout.ConversionPattern=%d{-MM-dd HH:mm:ss} %-5p %c %3x - %m%n log4j.properties in $TOMCAT_HOME/common/classes --- log4j.rootLogger=INFO, R log4j.appender.R=org.apache.log4j.RollingFileAppender log4j.appender.R.File=${catalina.home}/logs/tomcat.log log4j.appender.R.layout=org.apache.log4j.PatternLayout log4j.appender.R.layout.ConversionPattern=%d %p %t %c - %m%n - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: HTTP plus
Peter Kennard wrote: Excuse the naivety but I thought you couldn't open a socket with J2EE. I was told (I think on this list) that you need to use a JCA to make the connection. Tomcat is not a full J2EE server, just servlets+JSP, so maybe it lets you do things which are verboten in J2EE? If this is true I want to know about this. I am so far under the impression if you needed to connect with another protocol in a servlet you could in essence (Worst case scenario) write a server inside a servlet using sockets. Well you can certainly make an HTTP request (to an arbitrary URL, including your own) from within a servlet, wait for the response, process it as you see fit and finally return it to the original requestor. Several of our apps do this. If you want to wrap a connection-based protocol in this way, you'll have to save socket info in session state. This works with database connections (although connection pooling is better practice). But that would require you write all the code to handle aborting startup/shutdown thread management etc etc. If I can have a tweaked protocol servlet as part of a multi-servlet application this would make a perfect model for the gateway type of application between HTTP and a non (exactly) HTTP protocol we are trying to support. Please clarify: are you aiming to wrap non-HTTP services as HTTP services, for HTTP clients only? I got the impression from another msg that you hoped to hand off an initial HTTP request to a telnet conversation, which could be tricky or impossible. Are you reinventing HTTP tunneling? http://en.wikipedia.org/wiki/HTTP-Tunnel Paul Singleton Can you write a server inside a servlet ?? PK At 06:46 2/28/2007, you wrote: On Wed, 28 Feb 2007 12:36:03 +0100 Georg Sauer-Limbach [EMAIL PROTECTED] wrote: If you don't want to deal with HTTP, you should not use the Servlet API (which is the Java abstraction of HTTP) at all. You can do the indicated code with generic sockets, no need to mind about Servlets altogether. Regards Wayne - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Paul Singleton Jambusters Ltd tel: 01782 750821 fax: 08707 628609 VAT: 777 3904 85 Company no. 04150146 - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: HTTP plus
From: Peter Kennard [mailto:[EMAIL PROTECTED] Subject: Re: HTTP plus Excuse the naivety but I thought you couldn't open a socket with J2EE. I was told (I think on this list) that you need to use a JCA to make the connection. If this is true I want to know about this. It's not true. You can use any Java APIs you want, including ones dealing with sockets. Just don't expect transaction management, pooling, etc., to be aware of what you're doing. Back to the original issue: sounds like you really need to develop your own connector to handle your proprietary protocol, rather than trying to twist one of Tomcat's HTTP or AJP connectors into doing your bidding. - 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. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat 5.5.20 in Maven repository
Hello I have seen in the maven repository that the latest version of some Tomcat components (for my concerns: jasper-runtime, jasper-compiler and jasper-compiler-jdt) was the 5.5.15 version while the latest available version on the tomcat website is 5.5.20. Is it planned to update the maven repository ? Thanks in advance for your help. Pascal - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[OT]Tools for translation management
Hello, this is an out of topic query to all community. Do anybody have suggestions on how to manage ressource bundles translation? I have an application. This one contains a good amount .properties file in 3 languages (default, french, dutch). As the application evolves, it becomes more and more difficult to ensure every entry is properly translated. Am looking for a simple tool help people translate this application. I'd like something that give me stats on what entries still need translation and, if possible, a front end to help doing translations. Any suggestion? I have found that launchpad way of managing translations is interresting, but it's quite an heavy framework for just managing translation. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Certificate Installation Issues
Jeanna Geier wrote: Hello List- After having our application running smoothly with self-signed certificates, we made the change today and purchased a Comodo InstantSSL certificate - and after following the instructions on installing it, I'm having some problems that I am hoping someone with more experience who has ran across this can help me with.. I received three certificates from Comodo: * AddTrustExternalCARoot.crt * netrequest_biz.crt * UTNAddTrustServerCA.crt I followed their instructions on importing them in the order: 1) Root, 2) IntermediateCA, 3) Domain/Site Certificate On my Server, I ran the following to install the certificates into my Java cacerts: C:\Program Files\Java\jdk1.5.0_06\jre\lib\security\keytool -import -trustcacerts -alias root -file C:\AddTrustExternalCARoot.crt -keystore cacerts C:\Program Files\Java\jdk1.5.0_06\jre\lib\security\keytool -import -trustcacerts -alias INTER -file C:\UTNAddTrustServerCA.crt -keystore cacerts C:\Program Files\Java\jdk1.5.0_06\jre\lib\security\keytool -import -trustcacerts -alias netrequest -file C:\netrequest_biz.crt -keystore cacerts Maybe you should explicitly remove the old self-signed certificate with alias 'netrequest' before replacing it? Paul Singleton For good measure (because I wasn't sure if I had to or not) I also added them to my Java cacerts file on the pc that I'm going to use to remotely connect to the Server... OK, so my first test was to test that the certificate got installed on the Server correctly, so I opened Internet Explorer and from the File - Open (Open as Web Folder) box typed: https://localhost:8443/slide/files - and I was prompted with a 'Security Alert' that said that: The security certificate was issued by a company you have not chosen to trust. View the certificate to determine whether you want to trust the certifying authority. The name on the security certificate is invalid or does not match the name of the site (The security date was valid). So, when I clicke don View Certificate two things struck me: 1) the issued by is 'netrequest.biz' (shouldn't this be Comodo - isn't this why we buy the certificate? our self-signed ones had this on it...) and 2) the date Valid from 2/27/2007 to 5/28/2007 (we purchased a two-year certificate, shouldn't this be until 2009??). Even after installing the certificate, logging out, and logging back in, I still get the Security Alert message box - something we don't want our customers to have to deal with. Second test: attempting to log into the Server where our DataBase is stored to access it and run the program. However, after putting in my Username and Password, when the program continues on to validate the sign-on, I get a pop-up with the following error message: IO Error loading patterns: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification pathe to requested target Prior to installing these new certificates from Comodo and while using our self-signed ones, all was working OK; we're getting ready to go live in a day and a half, so we really need to get this worked out, so any thoughts, comments, or expertise that anyone could provide to help me straighten this out would be greatly appreciated!!! Thanks in advance for your time and help!! -Jeanna - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Paul Singleton Jambusters Ltd tel: 01782 750821 fax: 08707 628609 VAT: 777 3904 85 Company no. 04150146 - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat 5.5 JSESSIONID gets overwritten with same value but flaged 'secure' when switching from http to https
Hi We are trying to get around the following problem: We have a bunch of apaches running mod_jk in front of an JBoss farm. The application requires a login to get a valid session. Research in the Internet has schown the information the in oder to maintain a session over http and https the JSESSIONID must be established during an http reqeust. This is to get the cookie not marked as 'secure', so the the browser can send the cookie over both connections (http and https). So we provide the login page in http delivered out of the tomcat, thus getting an JSESSIONID with 'secure=no'. The following POST then uses https to transport the username and password for login. What we see now is that when the session switches from http to https the JSESSIONID cookie gets overwritten with the same value (the ID) but the secure flag is now set to 'true'. The user gets then dropped out of his session when the application switches back to http. The flow is like this: http (cookie gets set with flag 'secure=no') - https (cookie gets reset with flag 'secure=yes') - http (session context gets lost, due to browser does not send the jsessionid cookie to the server) How can we prevent to get the cookie reset with 'secure=yes' when switching to https and already having a established sessionid? Help would be appretiated. With kind regards, christian kupferschmid
Re: [OT]Tools for translation management
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 David, David Delbecq wrote: Do anybody have suggestions on how to manage resource bundles translation? I just recently had to do the same thing. I found a great tool called Attesoro, which does exactly what you want: http://attesoro.org/ It loads up the main bundle and is aware of existing translations. It shows you the keys from the main bundle and which ones have no translation in the target locale. It even handles all of the native2ascii-type stuff so you basically just save your text and your properties files are ready to go. The only problems are that it alphabetizes the message keys which is unfortunate, but would take a bunch of work to put them in the same order as the original, and it also ignores comments in the original bundle, so you can't see them. I like to keep my main properties file open in a text editor next to this so I can do things in a little more methodical way. On a somewhat related note, I use ant to build my webapps. Be careful when using ant to copy properties files while filtering. If you don't set the character encoding to ISO-8859-1, you can corrupt any odd characters in your properties files (including simple stuff like accented vowels in the ASCII and various Latin character sets). - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.6 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFF5ag99CaO5/Lv0PARAmR0AJ9uZzPTTFMtY7KNg554avpq6cBsBgCeK1gj qEXaK46qC0ilFR652YkMsKE= =f5kl -END PGP SIGNATURE- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: HTTP plus
At 09:42 2/28/2007, you wrote: Back to the original issue: sounds like you really need to develop your own connector to handle your proprietary protocol, rather than trying to twist one of Tomcat's HTTP or AJP connectors into doing your bidding. What we do is to be determined. What I want to do is sus out the *full*extent* of tomcat's capabilities so I know what I have to work with. We will build the (internal) sockets based protocol to optimize the abilities of what we have available :) I am interested in what you mean by connector by that do you mean an interface to route connections to a Tomcat managed application that will work in concert with it's thread pooling etc? Is their a special more controllable API that such connectors use to dispatch requests to servlets? Since I am working on an internal protocol in an enviroment where we also wish to use full HTTP1.1 for other URLs and interfaces into the same application(s), all the HTTP features are desired. The servlet development model, and the vast infrastructure it now is a part of, Deployers, IDE plugins, connectors, books, documentation, system loggers and monitors, developer administration, and people who know how to use all of it and other positive attributes are really fantastic assets, so we wish to leverage it as much as we can and not re-invent wheels. I will put whatever HTTP headers are required to make tomcat operate (seeking minimum compliment) but after the connection is made and routed to the proper servlet I want to drop back to a binary non-http protocol for the duration of the connection. And if possible it would improve our system architecture If I could respond to the client without having to manage a lot of session state before all the input is read (actually, before all of it is written by the client to its outgoing socket) and processed. but at least so far with reading and testing it seems the input side of the socket is killed before or when one starts writing output. If this can be controlled by HTTP headers, tomcat config, setting something in an object etc then this would be a way we could do it and I'm very VERY interested in the possibility. We have full control of the client that will be connecting directly to tomcat worker instances. PK - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How to retrieve principal
Hello, I want to retrieve the user principal where I don't have the request available i.e. I cannot use the method HttpServletRequest.getUserPrincipal() I need in particular the user name. May you suggest something appropriate? -- TREMALNAIK - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How to retrieve principal
From: Tremal Naik [mailto:[EMAIL PROTECTED] I want to retrieve the user principal where I don't have the request available i.e. I cannot use the method HttpServletRequest.getUserPrincipal() I need in particular the user name. May you suggest something appropriate? We got round this by putting the name into a ThreadLocal variable from a place where we *did* have access to it, then reading it later - messy, but it works, as Tomcat processes an entire request on the same thread. Note that threads are re-used between requests, so make sure your code can deal with that re-use. There are probably better ways. - Peter - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Bootstrap stop()
Chuck, Thank you for your reply. What has lead me down this path is that I am trying to use Bootstrap.start() and .stop() to manage a Tomcat instance within a main that I have written. The behavior that I'm seeing is that it seems that .stop() does not actually cause the server to come all the way down and the second message to .start() does not seem to bring it back up. So, while in a debug session I noticed one thread still hanging around after messaging .stop(). It seems to me that I should be able to manage the instance using .start() and .stop() assuming my understanding is correct. Given that, the behavior looks like one of two things to me, either some kind of bug, or more likely my lack of understanding of Tomcat internals being sufficient to manage the instance properly. I did see the Runnable being passed and made the assumption that it was being used to supply the run method. My probing through that source was to gain an understanding of the mechanism used to terminate the threads. I stopped there because I felt I was way in the weeds of Tomcat, beyond what should be necessary to accomplish my task. Fran -- View this message in context: http://www.nabble.com/Bootstrap-stop%28%29-tf3296281.html#a9207055 Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to retrieve principal
2007/2/28, Peter Crowther [EMAIL PROTECTED]: We got round this by putting the name into a ThreadLocal variable from a place where we *did* have access to it, then reading it later - messy, I see, you use the same approach as JBoss. So, you mean there is no way to get the user principal using tomcat security framework. Ok, thanks -- TREMALNAIK - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to retrieve principal
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Tremal, Tremal Naik wrote: I want to retrieve the user principal where I don't have the request available i.e. I cannot use the method HttpServletRequest.getUserPrincipal() Well, what /do/ you have available? - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.6 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFF5a209CaO5/Lv0PARApcLAJ0Wt9TT+zJGThsuNmmDKHBRj4yPngCgp3X5 BnvqT06BnRs/q2AgL42RMhI= =u7WE -END PGP SIGNATURE- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to retrieve principal
2007/2/28, Christopher Schultz [EMAIL PROTECTED]: Well, what /do/ you have available? That was my question: What do I have available?. May any of the following be useful? I'm confused, really. Server server = ServerFactory.getServer(); Service service = server.findService(Catalina); Engine engine = (Engine) service.getContainer(); Host host = (Host) engine.findChild(engine.getDefaultHost()); String lcName = myContext; Context context = (Context) host.findChild(lcName); Realm realm = context.getRealm(); -- TREMALNAIK - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to retrieve principal
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Tremal, Tremal Naik wrote: 2007/2/28, Christopher Schultz [EMAIL PROTECTED]: Well, what /do/ you have available? May any of the following be useful? Server server = ServerFactory.getServer(); Service service = server.findService(Catalina); Engine engine = (Engine) service.getContainer(); Host host = (Host) engine.findChild(engine.getDefaultHost()); String lcName = myContext; Context context = (Context) host.findChild(lcName); Realm realm = context.getRealm(); Nope. All of this is generic server stuff. There's nothing specific to the request a anywhere here. How is it that you have code that needs request-specific information, but no access to the request? Are you forced into this situation by other components (through a callback mechanism or something like that)? Or, is this the result of poor planning? - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.6 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFF5bQY9CaO5/Lv0PARAiRUAKCQMCgt884O/KqBXbIkJv5BoLSQEgCcDR0b XwJCubKnXB7b/LT9iDK8rVg= =ikHQ -END PGP SIGNATURE- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Quality check mod_jk 1.2.21-dev
On Feb 26, 2007, at 3:53 PM, Rainer Jung wrote: Hi Kirk, I never built for Sun Web Server, but I just saw the configure flag: --enable-netscape Did you ever try running configure with that one before doing the make? Yes, I added that at the 1.2.21-dev phase specifically to allow for the jk_types.h creation. It also prevents the other compilation error as well. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: log4j exception only when stopping and starting a web application
This problem is pretty common when restarting web applications. Libraries that use singletons etc. don't get reinitialized correctly when the web application is reloaded. Blimey, that sounds like a serious flaw :S Do you know why they don't get reinitialized properly? Could you give me a pointer so i can diagnose if this is truly the case in our situation? (not that i don't believe you but before i tell our administrators that they're going to have to do everything differently i'd like to be able to give them some evidence) My administrator assures me that this didn't used to be the case for tomcat 4.x so what changed i wonder? By the way, a couple of things that may be of interest and some further relevant questions: [1] To cut a long diagnostic story short I found that if you removed the leading 3 from the %3x portion of my layout conversionpattern then that error is no longer encountered, the webapp restarts and the user is able to log in. BUT after my user is successfully returned from LDAP authorization and (is supposed to be) redirected back to the first page of my application... processing stops, all i get is a blank screen and the url that ends in j_security_check. But no errors are logged anywhere that i can see. Q. Could this be caused by the same reinitialization problem? We do use singletons in our own code. [2] The exact same stop/start problems occur if i deploy a war file under /webapps where we specify unpacked=false. This isn't too surprising, however.. my colleague deploys his webapps under a $TOMCAT_HOME/myWarfiles directory and has changed the docBase. (He did this because of the annoying context.xml deleting/management behaviour and his reluctance to include configuration files in a war file to be passed to development) but he can stop/start undeploy/redeploy his (packed) warfiles with no problem. Q. How does this fit with the reinitialization issue you describe? - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Quality check mod_jk 1.2.21-dev
Let me know what you find. I had updated the configure.in file to add the --enable-netscape option and updated the BUILDING and Makefile.solaris files. I should likely update the netscape/README file with the notes from BUILDING... On Feb 26, 2007, at 4:42 PM, Kirk wrote: I will take a look at it. I did not see that this option, so I never knew to use it. If I were to try and document the process I am going through to compile, would that be of help to put as a solaris sunone build doc? finding information on the web is few and far between. Most people probably run mod_jk under apache from what I have noticed and all of the docs are geared towards that. The ones I can find for sunone are geared towards windows. I am sure between the emails you and I have traded in the past few weeks on my trials and tribulations, if I can get everything to work, I can write up some docs to contribute. Kirk On 2/26/07, Rainer Jung [EMAIL PROTECTED] wrote: Hi Kirk, I never built for Sun Web Server, but I just saw the configure flag: --enable-netscape Did you ever try running configure with that one before doing the make? Regards, Rainer - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Valve post lifecycle event
I wish to cleanup resources inside a valve on server shutdown (stop a scheduler). Is there anyway to do this ? Ravi -- View this message in context: http://www.nabble.com/Valve--post-lifecycle-event-tf3310448.html#a9208545 Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to retrieve principal
2007/2/28, Christopher Schultz [EMAIL PROTECTED]: How is it that you have code that needs request-specific information, but no access to the request? Are you forced into this situation by other components (through a callback mechanism or something like that)? Or, is this the result of poor planning? well, the code has been designed to run into jboss. In a clustered configuration the request was not available in the Business tier. The Jboss SecurityAssociations classes where doing the job of propagating the principal to the BT. Now we deployed the same code in tomcat, where a subset of the classes have been included from those componing the BT. Hence, we are developing the same application for both the environments and we'd like to mantain the classes as general as possible. Think of a log4j utility that must be called from either the WT and the BT. We don't want to introduce a new version of the log helper (we don't want to make things too complicated). We want to build the some code and it works wether deployed in tomcat or jboss. We are there at 99%, I still need the user principal but I can solve using the ThreadLocal. And a Valve, maybe... -- TREMALNAIK - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: log4j exception only when stopping and starting a web application
It's not necessarily bad to use Singletons. You have to be certain that they do not hold references to themselves or their class or they cannot be unloaded. Google for: permgen log4j. One thing about log4j -- you should have an ServletContextListener that shuts down log4j properly: public class ApplicationLifecycleListener implements ServletContextListener { public void contextDestroyed(ServletContextEvent sce) { LogFactory.release(Thread.currentThread().getContextClassLoader()); } } Tim -Original Message- From: Rachel Wilson [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 28, 2007 12:10 PM To: 'Tomcat Users List' Subject: RE: log4j exception only when stopping and starting a web application This problem is pretty common when restarting web applications. Libraries that use singletons etc. don't get reinitialized correctly when the web application is reloaded. Blimey, that sounds like a serious flaw :S Do you know why they don't get reinitialized properly? Could you give me a pointer so i can diagnose if this is truly the case in our situation? (not that i don't believe you but before i tell our administrators that they're going to have to do everything differently i'd like to be able to give them some evidence) My administrator assures me that this didn't used to be the case for tomcat 4.x so what changed i wonder? By the way, a couple of things that may be of interest and some further relevant questions: [1] To cut a long diagnostic story short I found that if you removed the leading 3 from the %3x portion of my layout conversionpattern then that error is no longer encountered, the webapp restarts and the user is able to log in. BUT after my user is successfully returned from LDAP authorization and (is supposed to be) redirected back to the first page of my application... processing stops, all i get is a blank screen and the url that ends in j_security_check. But no errors are logged anywhere that i can see. Q. Could this be caused by the same reinitialization problem? We do use singletons in our own code. [2] The exact same stop/start problems occur if i deploy a war file under /webapps where we specify unpacked=false. This isn't too surprising, however.. my colleague deploys his webapps under a $TOMCAT_HOME/myWarfiles directory and has changed the docBase. (He did this because of the annoying context.xml deleting/management behaviour and his reluctance to include configuration files in a war file to be passed to development) but he can stop/start undeploy/redeploy his (packed) warfiles with no problem. Q. How does this fit with the reinitialization issue you describe? - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 5.5 JSESSIONID gets overwritten with same value but flaged 'secure' when switching from http to https
We have found the problem. Our deployment process misconfigured the jvmRoute tag in the server.xml. All tomcats had the same jvmRoute name and therefore the mod_jk loadbalanced the change of the protocol to a different server. The new server did not know the session, initiated a new one and used the presented JSESSIONID value for the new session and cookie. After assigning a unique name to each server (node01, node02, ) in the jvmRoute tag, the behaviour is a expected. A session established over http sets the cookie with secure=no and this remains no over protocol changes. We are sorry for any disturbence our question might have caused. With kind regards, christian kupferschmid -Original Message- From: Kupferschmid Christian [mailto:[EMAIL PROTECTED] Sent: Wednesday, 28. February 2007 17:02 To: users@tomcat.apache.org Subject: Tomcat 5.5 JSESSIONID gets overwritten with same value but flaged 'secure' when switching from http to https Hi We are trying to get around the following problem: We have a bunch of apaches running mod_jk in front of an JBoss farm. The application requires a login to get a valid session. Research in the Internet has schown the information the in oder to maintain a session over http and https the JSESSIONID must be established during an http reqeust. This is to get the cookie not marked as 'secure', so the the browser can send the cookie over both connections (http and https). So we provide the login page in http delivered out of the tomcat, thus getting an JSESSIONID with 'secure=no'. The following POST then uses https to transport the username and password for login. What we see now is that when the session switches from http to https the JSESSIONID cookie gets overwritten with the same value (the ID) but the secure flag is now set to 'true'. The user gets then dropped out of his session when the application switches back to http. The flow is like this: http (cookie gets set with flag 'secure=no') - https (cookie gets reset with flag 'secure=yes') - http (session context gets lost, due to browser does not send the jsessionid cookie to the server) How can we prevent to get the cookie reset with 'secure=yes' when switching to https and already having a established sessionid? Help would be appretiated. With kind regards, christian kupferschmid - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Having trouble building mod_jk on Solaris 10 x86
This looks liek a header file is missing on your system. The syntax error definitely looks like a consequence of the missing header file. I shortly checked on a Solaris Sparc system and the file /usr/include/sys/tsol/label.h was there as part of the package SUNWhea. Check if the file is missing, maybe the whole package is missing. Regards, Rainer Chris Taylor wrote: I'm trying to compile with gcc 3.4.3, and I'm using 'gmake', but I keep getting the errors below. Apache compiled and installed fine. I ran this short script to do the configure step: LDFLAGS=-L/usr/sfw/lib CPPFLAGS=-I/user/sfw/include ./configure --with-apxs=/usr/local/apache2/bin/apxs Here are the errors when I run 'gmake': Making all in common gmake[1]: Entering directory `/usr/local/src/tomcat-connectors-1.2.20-src/native/common' /usr/local/apache2/build/libtool --silent --mode=compile gcc -I/usr/local/apache2/include -g -O2 -g -O2 -DHAVE_APR -I/usr/local/apache2/include -I/usr/local/apache2/include -g -O2 -DSOLARIS2=10 -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -D_LARGEFILE64_SOURCE -I /include -I /include/ -c jk_ajp12_worker.c -o jk_ajp12_worker.lo In file included from /usr/include/sys/socketvar.h:43, from jk_global.h:146, from jk_logger.h:27, from jk_ajp12_worker.h:27, from jk_ajp12_worker.c:26: /usr/include/sys/zone.h:16:28: sys/tsol/label.h: No such file or directory In file included from /usr/include/sys/socketvar.h:43, from jk_global.h:146, from jk_logger.h:27, from jk_ajp12_worker.h:27, from jk_ajp12_worker.c:26: /usr/include/sys/zone.h:109: error: syntax error before '*' token gmake[1]: *** [jk_ajp12_worker.lo] Error 1 gmake[1]: Leaving directory `/usr/local/src/tomcat-connectors-1.2.20-src/native/common' gmake: *** [all-recursive] Error 1 Thanks for any help. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Advanced mod_jk router configuration
worker 1 and worker2 distance=0 worker 3 distance=1 Regards, Rainer Sriram Narayanan wrote: Hi: We have router1 doing load balancing and failover between worker1 and worker2. We would like to configure additional worker3 such that router1 will only forward the request to worker3 once all the failover attempts are exhausted for worker1 and worker2 combination How do we achieve this? Thanks, -- Sriram - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How To Upgrade JDK used by Tomcat 4.1
Hello, I need to update/upgrade the JDK used by Tomcat for an application we purchased, because of the daylight saving time issue. I can't seem to find any documentation on the steps that need to be taken to upgrade the JVM used by Tomcat. The installation instructions for Tomcat simply say to install a JDK and then add an environmental variable called JAVA_HOME and set it to the directory where the JDK is installed. However, when I checked the JAVA_HOME variable was not defined on the system. If someone could point me to the documentation or tell me what steps to take I'd appreciate it. Also, is there a way to find out which JVM Tomcat is actually using? System configuration is: Windows 2003 Std, IIS, and Tomcat 4.1, JRE 1.4.2_03. Thank you, Tomcat/Apache neophyte Confidentiality Disclaimer * The information contained in this e-mail may be confidential. IF YOU RECEIVED THIS IN ERROR, please call Privacy Officer (206) 223-7505. Thank you. Patients - Email is NOT considered secure. By choosing to communicate with Virginia Mason by email, you will assume these confidentiality risks. Please do not rely on e-mail communication if you or a family member suffers a sudden or substantial change in health or injury. If you need emergency attention, call 911.
Re: How To Upgrade JDK used by Tomcat 4.1
Eric Davis wrote: Hello, I need to update/upgrade the JDK used by Tomcat for an application we purchased, because of the daylight saving time issue. I can't seem to find any documentation on the steps that need to be taken to upgrade the JVM used by Tomcat. The installation instructions for Tomcat simply say to install a JDK and then add an environmental variable called JAVA_HOME and set it to the directory where the JDK is installed. However, when I checked the JAVA_HOME variable was not defined on the system. If someone could point me to the documentation or tell me what steps to take I'd appreciate it. Also, is there a way to find out which JVM Tomcat is actually using? System configuration is: Windows 2003 Std, IIS, and Tomcat 4.1, JRE 1.4.2_03. how instances of java have you got installed on your system? if it's only the one above, that's what it's using. p Thank you, Tomcat/Apache neophyte Confidentiality Disclaimer * The information contained in this e-mail may be confidential. IF YOU RECEIVED THIS IN ERROR, please call Privacy Officer (206) 223-7505. Thank you. Patients - Email is NOT considered secure. By choosing to communicate with Virginia Mason by email, you will assume these confidentiality risks. Please do not rely on e-mail communication if you or a family member suffers a sudden or substantial change in health or injury. If you need emergency attention, call 911. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Ant custom tasks: how to compile .java files and restart Tomcat (Tomcat6.0.9)?
Caldarale, Charles R wrote: From: Daniel Gresh [mailto:[EMAIL PROTECTED] Subject: Ant custom tasks: how to compile .java files and restart Tomcat (Tomcat6.0.9)? I have a src directory for my .java files that I wish to compile to .class files and simply store them on $CATALINA_HOME/webapps/ROOT for now. Immediately under a webapp directory is not an appropriate location for class files - ever. They should go into webapps/[appname]/WEB-INF/classes, as defined by the servlet spec. Ah sorry about this - my files are under /WEB-INF/classes. I forgot to specify this. However, I am not necessarily restarting an app; I wish to restart Tomcat. Why? There's no reason to do so, if all you're doing is updating the app. Restarting Tomcat requires running the shutdown and startup scripts. I know restarting Tomcat requires running the shutdown and startup scripts. The reason I want to restart Tomcat is because I will be deploying/updating wait. Is webapps/[appname], where [appname]=ROOT a web application? If so, I can just use reload when I deploy new .class files without ever having to restart Tomcat, right? Wow, that realization just hit me like a truck. - 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. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Alright, here is where I am now. I edited my build.xml file to include a reload command to reload my $CATALINA_HOME/webapps/ROOT path. I go to the directory where my .java files are and type ant reload. Everything in the build.xml file works fine until it reaches reload. Once it reaches reload, I get the following message: reload: [reload] FAIL - No context exists for path /u/dgresh/apache-tomcat-6.0.9/webapps/ROOT BUILD FAILED /u/dgresh/dev/kdb/src/kdb4/build.xml:44: FAIL - No context exists for path /u/dgresh/apache-tomcat-6.0.9/webapps/ROOT I do not understand this. In the example build.xml file provided on the Apache Tomcat website, it says this: The reload signals the specified application Tomcat 5 to shut itself down and reload. This can be useful when the web application context is not reloadable and you have updated classes or property files in the /WEB-INF/classes directory or when you have added or updated jar files in the /WEB-INF/lib directory. I am updating classes in the /WEB-INF/classes directory, which is why I want to reload the application. Is there something I am missing? Is there something I need to include in $CATALINA_HOME/webapps/ROOT to make it a web application so Ant can recognize the context? Thanks for the help, Dan - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How To Upgrade JDK used by Tomcat 4.1
You should take a look at this link http://java.sun.com/javase/tzupdater_README.html -Original Message- From: Eric Davis [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 28, 2007 1:18 PM To: users@tomcat.apache.org Subject: How To Upgrade JDK used by Tomcat 4.1 Hello, I need to update/upgrade the JDK used by Tomcat for an application we purchased, because of the daylight saving time issue. I can't seem to find any documentation on the steps that need to be taken to upgrade the JVM used by Tomcat. The installation instructions for Tomcat simply say to install a JDK and then add an environmental variable called JAVA_HOME and set it to the directory where the JDK is installed. However, when I checked the JAVA_HOME variable was not defined on the system. If someone could point me to the documentation or tell me what steps to take I'd appreciate it. Also, is there a way to find out which JVM Tomcat is actually using? System configuration is: Windows 2003 Std, IIS, and Tomcat 4.1, JRE 1.4.2_03. Thank you, Tomcat/Apache neophyte NOTICE: This email contains privileged and confidential information and is intended only for the individual to whom it is addressed. If you are not the named addressee, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this transmission by mistake and delete this communication from your system. E-mail transmission cannot be guaranteed to be secured or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. AVIS: Le présent courriel contient des renseignements de nature privilégiée et confidentielle et nest destiné qu'à la personne à qui il est adressé. Si vous nêtes pas le destinataire prévu, vous êtes par les présentes avisés que toute diffusion, distribution ou reproduction de cette communication est strictement interdite. Si vous avez reçu ce courriel par erreur, veuillez en aviser immédiatement lexpéditeur et le supprimer de votre système. Notez que la transmission de courriel ne peut en aucun cas être considéré comme inviolable ou exempt derreur puisque les informations quil contient pourraient être interceptés, corrompues, perdues, détruites, arrivées en retard ou incomplètes ou contenir un virus. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Having trouble building mod_jk on Solaris 10 x86
Thanks for your message. I looked around and the SUNWhea package is installed on my Solaris 10 x86 server, but to get the /usr/include/sys/tsol/label.h file I need to install a Sun patch 124209-01, SunOS 5.10_x86: Trusted Extensions header files patch. We're not using Trusted Solaris- is there some package to exclude from configuring in the Tomcat connector build so it won't try to link with this? Chris Taylor -Original Message- From: Rainer Jung [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 28, 2007 10:23 AM To: 'Tomcat Users List' Subject: Re: Having trouble building mod_jk on Solaris 10 x86 This looks liek a header file is missing on your system. The syntax error definitely looks like a consequence of the missing header file. I shortly checked on a Solaris Sparc system and the file /usr/include/sys/tsol/label.h was there as part of the package SUNWhea. Check if the file is missing, maybe the whole package is missing. Regards, Rainer Chris Taylor wrote: I'm trying to compile with gcc 3.4.3, and I'm using 'gmake', but I keep getting the errors below. Apache compiled and installed fine. I ran this short script to do the configure step: LDFLAGS=-L/usr/sfw/lib CPPFLAGS=-I/user/sfw/include ./configure --with-apxs=/usr/local/apache2/bin/apxs Here are the errors when I run 'gmake': Making all in common gmake[1]: Entering directory `/usr/local/src/tomcat-connectors-1.2.20-src/native/common' /usr/local/apache2/build/libtool --silent --mode=compile gcc -I/usr/local/apache2/include -g -O2 -g -O2 -DHAVE_APR -I/usr/local/apache2/include -I/usr/local/apache2/include -g -O2 -DSOLARIS2=10 -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -D_LARGEFILE64_SOURCE -I /include -I /include/ -c jk_ajp12_worker.c -o jk_ajp12_worker.lo In file included from /usr/include/sys/socketvar.h:43, from jk_global.h:146, from jk_logger.h:27, from jk_ajp12_worker.h:27, from jk_ajp12_worker.c:26: /usr/include/sys/zone.h:16:28: sys/tsol/label.h: No such file or directory In file included from /usr/include/sys/socketvar.h:43, from jk_global.h:146, from jk_logger.h:27, from jk_ajp12_worker.h:27, from jk_ajp12_worker.c:26: /usr/include/sys/zone.h:109: error: syntax error before '*' token gmake[1]: *** [jk_ajp12_worker.lo] Error 1 gmake[1]: Leaving directory `/usr/local/src/tomcat-connectors-1.2.20-src/native/common' gmake: *** [all-recursive] Error 1 Thanks for any help. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat Smart Card (CAC card) problem
I am trying to get a smart card to work with Tomcat. The smart card in question is a DoD CAC (Common Access Card). I believe that I have setup my Connector element correctly in my server.xml: Connector port=8443 enableLookups=true disableUploadTimeout=true debug=1 acceptCount=10 scheme=https secure=true clientAuth=true sslProtocol=TLS keystoreFile=deleted\.keystore / The issue seems to be with the IE /Tomat handshake. When IE hits my Tomcat site, it puts up a dialog with a title of Choose a Digital Certificate. However the list of certificates to choose from is empty. The certificates are loaded into my IE browser. It seem to work with IIS. When I hit an IIS site, the same form comes up, but the form is pre-populated with the list of certifcates. Why doesn't IE show the certificates when accessing Tomcat but does when accessing IIS? - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Ant custom tasks: how to compile .java files and restart Tomcat(Tomcat6.0.9)?
From: Daniel Gresh [mailto:[EMAIL PROTECTED] Subject: Re: Ant custom tasks: how to compile .java files and restart Tomcat(Tomcat6.0.9)? Is webapps/[appname], where [appname]=ROOT a web application? If so, I can just use reload when I deploy new .class files without ever having to restart Tomcat, right? Correct on both counts. Every directory or .war file immediately under the Host appBase directory is a webapp, even if it doesn't have a WEB-INF or other spec-defined structure. Very useful for deploying apps that are nothing but static content. - 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. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat JNI and native libraries
What is the best place to install JNI Java bridge and native libraries. We are using Linux and Tomcat 5. Thanks Andrew Pliszka Caldarale, Charles R wrote: From: Daniel Gresh [mailto:[EMAIL PROTECTED] Subject: Re: Ant custom tasks: how to compile .java files and restart Tomcat(Tomcat6.0.9)? Is webapps/[appname], where [appname]=ROOT a web application? If so, I can just use reload when I deploy new .class files without ever having to restart Tomcat, right? Correct on both counts. Every directory or .war file immediately under the Host appBase directory is a webapp, even if it doesn't have a WEB-INF or other spec-defined structure. Very useful for deploying apps that are nothing but static content. - 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. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat 6 Transaction Manager
Hello everybody, I read the JNDI Resources HOW-TO and noticed that there is something like a transaction manager in Tomcat 6. Is that right? copy from the JNDI Resources HOW-TO Transaction - Add a resource factory for instantiating the UserTransaction object instance that is available at java:comp/UserTransaction. NOTE - Of the standard resource factories, only the JDBC Data Source and User Transaction factories are mandated to be available on other platforms, and then they are required only if the platform implements the Java2 Enterprise Edition (J2EE) specs. All other standard resource factories, plus custom resource factories that you write yourself, are specific to Tomcat and cannot be assumed to be available on other containers. /copy from the JNDI Resources HOW-TO Could anybody please confirm that if this is a transaction manager? If it is, is there any sample configuration file to use this transaction manager? And is that transaction manager compliant to JTA? The reason I need to know if it's compliant to JTA is that if it's really compliant, then in my application (using Spring), the transaction manager bean will be a JTA transaction manager (so no need to change the application, even in the Spring configuration file, when the application is moved from Tomcat 6 to other application servers like jboss, weblogic, oracle AS ...) Thanks for any of your answers. NOTICE: This message (including any attachments) from Momentum Systems, Inc. contains information that is PRIVILEGED and CONFIDENTIAL. If you are not an intended recipient, you are hereby notified that any dissemination of this message is strictly prohibited. If you have received this message in error, please do not read, copy or forward this message. Please permanently delete all copies and any attachments and notify the sender immediately by reply email or by calling our Office at 703.740.9300. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[ANN] Apache Tomcat 6.0.10 released
The Apache Tomcat team announces the immediate availability of Apache Tomcat 6.0.10 stable. This release is the first stable release of the 6.0.x branch. Apache Tomcat 6.0 includes new features over Apache Tomcat 5.5, including support for the new Servlet 2.5 and JSP 2.1 specifications, a refactored clustering implementation, advanced IO features, and improvements in memory usage. Please refer to the change log for the list of changes: http://tomcat.apache.org/tomcat-6.0-doc/changelog.html Downloads: http://tomcat.apache.org/download-60.cgi Migration guide from Apache Tomcat 5.5.x: http://tomcat.apache.org/migration.html Thank you, -- The Apache Tomcat Team - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat JNI and native libraries
Hi, As far as I understand, libraries can be placed anywhere as long as that directory is in the path (environment variable, not classpath), while the jni java side has to be placed either in the shared or common directories. I have it working in the shared directory, so that Tomcat does not try to load the libraries more than once. --Luis R. On 2/28/07, Andrew Pliszka [EMAIL PROTECTED] wrote: What is the best place to install JNI Java bridge and native libraries. We are using Linux and Tomcat 5. Thanks Andrew Pliszka Caldarale, Charles R wrote: From: Daniel Gresh [mailto:[EMAIL PROTECTED] Subject: Re: Ant custom tasks: how to compile .java files and restart Tomcat(Tomcat6.0.9)? Is webapps/[appname], where [appname]=ROOT a web application? If so, I can just use reload when I deploy new .class files without ever having to restart Tomcat, right? Correct on both counts. Every directory or .war file immediately under the Host appBase directory is a webapp, even if it doesn't have a WEB-INF or other spec-defined structure. Very useful for deploying apps that are nothing but static content. - 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. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Session Info LOST in New Browser Window (Linux only)
Hello All! I hope someone out there can offer a suggestion as to what might be going wrong in the following situation. I am developing an application using JSP and Tomcat 5.0.24. I am developing my application on a SunOS server. I am deploying my application on a Linux server. The entire application is access-controlled except the welcome page. So clicking any link from the welcome page prompts a login page. Once the user logs in, they have access to the entire application (website). I have a page in my application that contains a button that calls a JavaScript function to open a new window. In the development environment, the window opens perfectly and contains all the information expected. However, when I execute the same function on the deployment server, I seem to lose the session information as the user is presented with a login screen in the new browser window. And to add insult to injury, the user is not able to log into the new window as they are informed that their login failed! As a matter of fact, NO user that is in the security role for the website is able to login. It's MADDENING!!! Why is this happening? Except for the operating system, the rest of the environment is the same: Tomcat 5.0.24 Java 1.4.2_05 (for the Java Beans) Internet Explorer 5.50 Form authentication JDBC Database Realm j_security_check to process authentication etc... Is there a setting that I have overlooked that I need to change in the deployment descriptor for my application (or Tomcat itself) that is different when executed from Linux as opposed to SunOS? Any suggestions... ANY AT ALL would be appreciated! Thank you, ~ Fuzzy -- View this message in context: http://www.nabble.com/Session-Info-LOST-in-New-Browser-Window-%28Linux-only%29-tf3324097.html#a9241215 Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How To Upgrade JDK used by Tomcat 4.1
Looked at that, but the version on the server doesn not have a patch. [EMAIL PROTECTED] 2/28/07 1:00:29 PM You should take a look at this link http://java.sun.com/javase/tzupdater_README.html -Original Message- From: Eric Davis [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 28, 2007 1:18 PM To: users@tomcat.apache.org Subject: How To Upgrade JDK used by Tomcat 4.1 Hello, I need to update/upgrade the JDK used by Tomcat for an application we purchased, because of the daylight saving time issue. I can't seem to find any documentation on the steps that need to be taken to upgrade the JVM used by Tomcat. The installation instructions for Tomcat simply say to install a JDK and then add an environmental variable called JAVA_HOME and set it to the directory where the JDK is installed. However, when I checked the JAVA_HOME variable was not defined on the system. If someone could point me to the documentation or tell me what steps to take I'd appreciate it. Also, is there a way to find out which JVM Tomcat is actually using? System configuration is: Windows 2003 Std, IIS, and Tomcat 4.1, JRE 1.4.2_03. Thank you, Tomcat/Apache neophyte NOTICE: This email contains privileged and confidential information and is intended only for the individual to whom it is addressed. If you are not the named addressee, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this transmission by mistake and delete this communication from your system. E-mail transmission cannot be guaranteed to be secured or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. AVIS: Le présent courriel contient des renseignements de nature privilégiée et confidentielle et n'est destiné qu'à la personne à qui il est adressé. Si vous n'êtes pas le destinataire prévu, vous êtes par les présentes avisés que toute diffusion, distribution ou reproduction de cette communication est strictement interdite. Si vous avez reçu ce courriel par erreur, veuillez en aviser immédiatement l'expéditeur et le supprimer de votre système. Notez que la transmission de courriel ne peut en aucun cas être considéré comme inviolable ou exempt d'erreur puisque les informations qu'il contient pourraient être interceptés, corrompues, perdues, détruites, arrivées en retard ou incomplètes ou contenir un virus. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Confidentiality Disclaimer * The information contained in this e-mail may be confidential. IF YOU RECEIVED THIS IN ERROR, please call Privacy Officer (206) 223-7505. Thank you. Patients - Email is NOT considered secure. By choosing to communicate with Virginia Mason by email, you will assume these confidentiality risks. Please do not rely on e-mail communication if you or a family member suffers a sudden or substantial change in health or injury. If you need emergency attention, call 911.
Servlet Lifecycle
So if a servlet is lets say in a long transaction, sending a huge data set, and the manager is wanting to undeploy it, Does it get notified while the long lasting servlet thread is sending data so if one wants to abort it, you can truncate writing in a controlled way and clean up the mess nicely? Or will it wait until it is done or a timeout and you get notified with uninit() after this? Of course I want notification, that leaves you enough time to be nice :) PK - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat Smart Card (CAC card) problem
Good Evening Fred It appears your connector in server.xml does not have CertificatePath and or RequestPath defined keep in mind that all of the paths unless otherwise specified are relative to $CATALINA+BASE Here is an example of connector parameters to get you started connector scheme=https secure=true SSLVerifyClient=require SSLEngine=on SSLVerifyDepth=3 sslProtocol=TLSv1 SSLOptions=+StdEnvVars +CompatEnvVars +ExportCertData SSLCertificateFile=${catalina.base}/conf/localhost_pem.crt SSLCertificateKeyFile=${catalina.base}/conf/localhost.key SSLCACertificateFile=${catalina.base}/conf/SSLCACertificateFile.pem SSLCACertificatePath=${catalina.base}/conf/ssl.crt/ SSLCertificateChainFile=${catalina.base}/conf/SSLCACertificateFile.pem SSLCertificateChainPath=${catalina.base}/conf/ssl.crt/ SSLCADNRequestFile=${catalina.base}/conf/SSLCACertificateFile.pem SSLCADNRequestPath=${catalina.base}/conf/ssl.crt/ / http://tomcat.apache.org/tomcat-5.5-doc/ssl-howto.html HTH M-- --- This e-mail message (including attachments, if any) is intended for the use of the individual or entity to which it is addressed and may contain information that is privileged, proprietary , confidential and exempt from disclosure. If you are not the intended recipient, you are notified that any dissemination, distribution or copying of this communication is strictly prohibited. --- Le présent message électronique (y compris les pièces qui y sont annexées, le cas échéant) s'adresse au destinataire indiqué et peut contenir des renseignements de caractère privé ou confidentiel. Si vous n'êtes pas le destinataire de ce document, nous vous signalons qu'il est strictement interdit de le diffuser, de le distribuer ou de le reproduire. - Original Message - From: Thurber, Fred [EMAIL PROTECTED] To: users@tomcat.apache.org Sent: Wednesday, February 28, 2007 4:50 PM Subject: Tomcat Smart Card (CAC card) problem I am trying to get a smart card to work with Tomcat. The smart card in question is a DoD CAC (Common Access Card). I believe that I have setup my Connector element correctly in my server.xml: Connector port=8443 enableLookups=true disableUploadTimeout=true debug=1 acceptCount=10 scheme=https secure=true clientAuth=true sslProtocol=TLS keystoreFile=deleted\.keystore / The issue seems to be with the IE /Tomat handshake. When IE hits my Tomcat site, it puts up a dialog with a title of Choose a Digital Certificate. However the list of certificates to choose from is empty. The certificates are loaded into my IE browser. It seem to work with IIS. When I hit an IIS site, the same form comes up, but the form is pre-populated with the list of certifcates. Why doesn't IE show the certificates when accessing Tomcat but does when accessing IIS? - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How To Upgrade JDK used by Tomcat 4.1
P, As far as I know just 1, though the java.exe is located in many directories \jdk\bin \_jvm\bin \jdk\jre\bin How can I tell which one it is using. If I install 1.4.2_11 to another directory, how to I tell Tomcat to use that JVM? Thanks for the help. E [EMAIL PROTECTED] 2/28/07 11:12:22 AM Eric Davis wrote: Hello, I need to update/upgrade the JDK used by Tomcat for an application we purchased, because of the daylight saving time issue. I can't seem to find any documentation on the steps that need to be taken to upgrade the JVM used by Tomcat. The installation instructions for Tomcat simply say to install a JDK and then add an environmental variable called JAVA_HOME and set it to the directory where the JDK is installed. However, when I checked the JAVA_HOME variable was not defined on the system. If someone could point me to the documentation or tell me what steps to take I'd appreciate it. Also, is there a way to find out which JVM Tomcat is actually using? System configuration is: Windows 2003 Std, IIS, and Tomcat 4.1, JRE 1.4.2_03. how instances of java have you got installed on your system? if it's only the one above, that's what it's using. p Thank you, Tomcat/Apache neophyte Confidentiality Disclaimer * The information contained in this e-mail may be confidential. IF YOU RECEIVED THIS IN ERROR, please call Privacy Officer (206) 223-7505. Thank you. Patients - Email is NOT considered secure. By choosing to communicate with Virginia Mason by email, you will assume these confidentiality risks. Please do not rely on e-mail communication if you or a family member suffers a sudden or substantial change in health or injury. If you need emergency attention, call 911. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Valve post lifecycle event
Ravi116 [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I wish to cleanup resources inside a valve on server shutdown (stop a scheduler). Is there anyway to do this ? If all you want to do is cleanup, then a LifecycleListener is better than a Valve (which is for request processing). If you really want a Valve, then just have it implement Lifecycle as well. Ravi -- View this message in context: http://www.nabble.com/Valve--post-lifecycle-event-tf3310448.html#a9208545 Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: HTTP plus
OK - persistance has paid off :) I now have a little client that with a small HTTP header will connect with a servlet, and run a persistent telnet like session with it until either someone times out or decides to quit. The only requirement is that you initiate the connection with HTTP headers. And in 1.1 you have to use a chunked reply structure. if using 1.0 you don't (there might be a way around that in 1.1 too but I havn't found it :) PK - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
create[8005]: java.net.BindException: error occured while starting tomcat on Ubuntu Plateform
StandardServer.await: create[8005]: java.net.BindException: Cannot assign requested address I have installed j2sdk1.5 and tomcat-5.0.28 on ubuntu plateform. I have changed port no in server.xml also but still i am facing same problem.. error that is displayed in catalina.out is as under: StandardServer.await: create[8015]: java.net.BindException: Cannot assign requested address java.net.BindException: Cannot assign requested address at java.net.PlainSocketImpl.socketBind(Native Method) at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:359) at java.net.ServerSocket.bind(ServerSocket.java:319) at java.net.ServerSocket.init(ServerSocket.java:185) at org.apache.catalina.core.StandardServer.await(StandardServer.java:496) at org.apache.catalina.startup.Catalina.await(Catalina.java:619) at org.apache.catalina.startup.Catalina.start(Catalina.java:579) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:287) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:425) so please anybody have any solution then help me. -- View this message in context: http://www.nabble.com/create-8005-%3A-java.net.BindException%3A-error-occured-while-starting-tomcat-on-Ubuntu-Plateform-tf3325087.html#a9243996 Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: create[8005]: java.net.BindException: error occured while startingtomcat on Ubuntu Plateform
From: hetal [mailto:[EMAIL PROTECTED] Subject: create[8005]: java.net.BindException: error occured while startingtomcat on Ubuntu Plateform StandardServer.await: create[8005]: java.net.BindException: Cannot assign requested address This is usually due to the port already being in use by some other process, frequently another Tomcat. Note that there are at least two ports to be changed in server.xml (one for shutdown plus one for each connector) if you want to run multiple Tomcats simultaneously. Use netstat to find out what other process has the port tied up. - 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. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: create[8005]: java.net.BindException: error occured while startingtomcat on Ubuntu Plateform
From: hetal [mailto:[EMAIL PROTECTED] Subject: create[8005]: java.net.BindException: error occured while startingtomcat on Ubuntu Plateform StandardServer.await: create[8005]: java.net.BindException: Cannot assign requested address This is usually due to the port already being in use by some other process, frequently another Tomcat. Note that there are at least two ports to be changed in server.xml (one for shutdown plus one for each connector) if you want to run multiple Tomcats simultaneously. Use netstat to find out what other process has the port tied up. - Chuck Thanks for the reply. I have checked on my machine only one tomcat is running and I have also tried netstat command it is not listing 8005 port. I have already done that changes in server.xml file but still getting same error. Please let me know if there is any other solution - Hetal -- View this message in context: http://www.nabble.com/create-8005-%3A-java.net.BindException%3A-error-occured-while-starting-tomcat-on-Ubuntu-Plateform-tf3325087.html#a9244100 Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: create[8005]: java.net.BindException: error occured whilestartingtomcat on Ubuntu Plateform
From: hetal [mailto:[EMAIL PROTECTED] Subject: RE: create[8005]: java.net.BindException: error occured whilestartingtomcat on Ubuntu Plateform I have checked on my machine only one tomcat is running and I have also tried netstat command it is not listing 8005 port. Do you have a firewall installed that might be blocking the port? Or has it been disabled or rerouted with iptables? - 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. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Need some pointers on how to troubleshoot performance problems of an application running on tomcat and java
Hi, I am new to Tomcat. I have an enterprise application (which was developed by an external vendor and for which we have no source code) that is running on the followng: 1. Apache Tomcat 4.1.31 2. J2SDK1.4.2_11 3. Windows 2003 OS SP1. The hardware is as follows: HP 2-CPU machine 2 GB Memory The database used is SQL-Server 2000 SP4. The setup is configured so that Tomcat uses maximum 750 MB of RAM. The problem is that the memory used by Tomcat continues to increase until it has no memory to find and then it crashes. The only way to recover is to re-start the tomcat server. I need help in finding out why this happens ? Are there any known issues in tomcat 4.1.31 ? Is the Garbage collector in J2SDK1.4.2_11 buggy? If I were to monitor the performance of the applications, what kind of tools are available? Are there any tools to search for memory leaks in the application ? I hope someone can guide me to the correct answers (or atleast to the correct websites or tools). Thanks in advance -- View this message in context: http://www.nabble.com/Need-some-pointers-on-how-to-troubleshoot-performance-problems-of-an-application-running-on-tomcat-and-java-tf3325383.html#a9244837 Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
page remembers data
Hi I'm not sure if it's the problem of Tomcat, but I've spotted it after upgrading to JBoss 4.0.5 (Tomcat 5.5.20). This not the problem of session scoped beans as I'm using request ones. When I enter some data, submit them and return back to that page, the data remains there. I've no clue why it's like this. Has anyone idea what can be the problem? Regards, Michal - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Need some pointers on how to troubleshoot performance problems of an application running on tomcat and java
En l'instant précis du 01/03/07 08:15, Nurul Zaman Mohamed Akhbar s'exprimait en ces termes: Hi, I am new to Tomcat. I have an enterprise application (which was developed by an external vendor and for which we have no source code) that is running on the followng: 1. Apache Tomcat 4.1.31 2. J2SDK1.4.2_11 3. Windows 2003 OS SP1. The hardware is as follows: HP 2-CPU machine 2 GB Memory The database used is SQL-Server 2000 SP4. The setup is configured so that Tomcat uses maximum 750 MB of RAM. The problem is that the memory used by Tomcat continues to increase until it has no memory to find and then it crashes. The only way to recover is to re-start the tomcat server. Memory leak I need help in finding out why this happens ? Are there any known issues in tomcat 4.1.31 ? Is the Garbage collector in J2SDK1.4.2_11 buggy? It's most probably inside the vendor's application. One simple but ugly way to delay this problem is to increase memory available to java. One other ugly solution is to restart tomcat every night. read this for details on memory problems and solutions http://tomcat.apache.org/faq/memory.html to monitor tomcat in general, lambda probe can be useful If I were to monitor the performance of the applications, what kind of tools are available? Are there any tools to search for memory leaks in the application ? I hope someone can guide me to the correct answers (or atleast to the correct websites or tools). Thanks in advance Nurul Zaman Bin Mohamed Akbar Application Analyst EXT: 8291 Disclaimer Note. This e-mail and any files transmitted with it is confidential and intended solely for the use of the individual or entity to whom it is addressed. If you are not the intended recipient, or the person responsible for delivering the e-mail, be advised that you have received this e-mail and any files transmitted with it in error and that any use, dissemination, forwarding, printing or copying of this e-mail and any files transmitted with it is strictly prohibited. If you have received this e-mail and any files transmitted with it in error, please advise the sender immediately by reply e-mail and delete this message. Thank you for your co-operation. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: page remembers data
Michal Glowacki wrote: Hi I'm not sure if it's the problem of Tomcat, but I've spotted it after upgrading to JBoss 4.0.5 (Tomcat 5.5.20). This not the problem of session scoped beans as I'm using request ones. When I enter some data, submit them and return back to that page, the data remains there. I've no clue why it's like this. Has anyone idea what can be the problem? sure it's the page and not the browser? Regards, Michal - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]