using https for login
Hi, I want to protect the admin parts of my app. I have made a security-constraint on my admin folders, and all works fine - calling for any page in admin gets redirected to a login form. However, I'd like the login form to be encrypted. I have been able to get all the admin pages running on https, but I want just the login page on https, and the actual admin pages using http. Can anyone suggest how to do this. Here is what I have in my web.xml ( this setup doesn't use https at all ): security-constraint web-resource-collection web-resource-nameadmin/web-resource-name url-pattern/admin/*/url-pattern /web-resource-collection auth-constraint role-namemanager/role-name /auth-constraint /security-constraint login-config auth-methodFORM/auth-method form-login-config form-login-page/security/login.htm/form-login-page form-error-page/security/login_error.htm/form-error-page /form-login-config /login-config Adding a user-data-constraint transport-guarantee CONFIDENTIAL /transport-guarantee /user-data-constraint uses https for all my admin pages. TIA. - 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: Is it possible to have more than one submit button in a JSP file?
Something like this In Form input type=submit value=START name=start input type=submit value=STOP name=stop In servlet String sValueStart = request.getParameter(start); //The one clicked will have a value String sValueStop = request.getParameter(stop); //The one clicked will have a value Write reponse to Text Area etc... - Original Message - From: Teh Noranis Mohd Aris [EMAIL PROTECTED] To: users@tomcat.apache.org Sent: Thursday, March 29, 2007 4:23 AM Subject: Is it possible to have more than one submit button in a JSP file? Dear All, I hope all of you can still remember me. I had the problem of writing the file content from an applet to a servlet. Now, I'm using JSP and it works. However, from JSP code examples, I always see only one submit button to the server. I would like my system to have several submit buttons that is connected to the server, for example a button for displaying a file from the server and a button for saving a file to the server. The file to display and the file to save should use the same textarea. How should it be done? If there are any source code examples, can anyone please post it to me? Please help! Thank you. Yours Sincerely, TEH NORANIS - Need Mail bonding? Go to the Yahoo! Mail QA for great tips from Yahoo! Answers users. - 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: Session Problems Apache httpd - tomcat
Nelson D. guerrero wrote: On Wed, 2007-03-28 at 17:00 -0400, Christopher Schultz wrote: Assuming that Tomcat is managing your sessions (there aren't too many good reasons to manage your own sessions), then Tomcat uses either cookies or URL rewriting to maintain sessions between requests. I'm sorry, I'm not following. By saying managing your sessions, do you mean running tomcat standalone or letting tomcat manager the sessions and that the httpd uses the sessions off of the tomcat? Probably not: Tomcat should do this for you already. Usually, sessions get lost because Tomcat has had to resort to URL rewriting, but the application has not been written with this in mind. For instance, every single URL that you generate ought to go through request.encodeURL to make sure that the session id is properly added if necessary. If you don't do this, then you'll end up creating a new session when you use that (session-less) link. Do they go through request.encodeURL automatically or do I have to do something? They don't go through it automatically, as the links are in the page output, and tomcat doesn't hunt through output streams for URLs to encode. All URLs need to be manually encoded, in your JSPs or Servlet outputs. Check with your developers to ensure that this is the case. If the URLs are properly encoded Tomcat will then rewrite the URL to include the session data in the URL if cookies are not available. Your URLs will then look something like: /path/to.jsp;jsessionid=?query=goes+here The HTTPD is largely agnostic of the sessions - unless you are clustering - as it won't interfere with a cookie, and will pass a URL parameter through as normal. Q: How have you connected HTTPD/Tomcat, and which versions are you using? If you *are* clustering then you need to ensure that the jvmRoute attribute of the Engine in conf/server.xml is set uniquely for each Tomcat. (http://tomcat.apache.org/tomcat-5.5-doc/config/engine.html) This adds the value of the attribute to the end of the jsessionid so that your load balancer can direct the session to the appropriate Tomcat. p Sorry for all the questions, I'm no developer and I'm surely not a tomcat administrator, they just shoved me the responsibility a couple of months ago and I've been learning ever since. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] smime.p7s Description: S/MIME Cryptographic Signature
Tomcat and Axis Logging delay
Hi all, We're very confused. We have a webservice that is using Axis1.4 and running under Apache tomcat-5.0.27. We have an apache2 modjk connector in it that's forwarding requests to the tomcat. We use java.util.logging in our code, and are using Java 5. Now we have a webapp that has some servlets/jsps and an axis webservice in the same war. We have logging set up on tomcat to use the Logger tags as follows... In directory.. /usr/local/tomcat/conf/Catalina/ourapp.ourdomain.com we have.. ourapp.xml which contains ?xml version='1.0' encoding='utf-8'? Context displayName=ourapp docBase= path= swallowOutput=true Logger className=org.apache.catalina.logger.FileLogger prefix=ourapp-debug. suffix=.log directory=/var/log/tomcat timestamp=true verbosity=4/ Valve className=org.apache.catalina.valves.AccessLogValve directory=/var/log/tomcat prefix=ourapp-access. suffix=.log pattern=common resolveHosts=false/ /Context The problem we're seeing is that the logs for the servlets etc all come out fine. and immediately, but the logs for the webservice seem not to come out straight away. It is sometimes taking hours for the logs to appear e.g. 2007-03-29 04:30:25 28-Mar-2007 17:17:51 com.ourcompany.es.ourapp.webservice.server.OurService send INFO: Webservice Called 28-Mar-2007 17:17:51 com.ourcompany.es.ourapp.database.dao.ContactDAO getInsertSQL The Logger element seems to be putting in this 2007-03-29 04:30:25 Then the rest of the log which is at 28-Mar-2007 17:17:51 We're all very confused, The webservice *was definately called at 17:17 on the 28th, but did not appear in the log file until 04:30 the following morning. Anyone got any ideas?? Thanks Andy - 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 and Axis Logging delay
Hi all, We're very confused. We have a webservice that is using Axis1.4 and running under Apache tomcat-5.0.27. We have an apache2 modjk connector in it that's forwarding requests to the tomcat. We use java.util.logging in our code, and are using Java 5. Now we have a webapp that has some servlets/jsps and an axis webservice in the same war. We have logging set up on tomcat to use the Logger tags as follows... In directory.. /usr/local/tomcat/conf/Catalina/ourapp.ourdomain.com we have.. ourapp.xml which contains ?xml version='1.0' encoding='utf-8'? Context displayName=ourapp docBase= path= swallowOutput=true Logger className=org.apache.catalina.logger.FileLogger prefix=ourapp-debug. suffix=.log directory=/var/log/tomcat timestamp=true verbosity=4/ Valve className=org.apache.catalina.valves.AccessLogValve directory=/var/log/tomcat prefix=ourapp-access. suffix=.log pattern=common resolveHosts=false/ /Context The problem we're seeing is that the logs for the servlets etc all come out fine. and immediately, but the logs for the webservice seem not to come out straight away. It is sometimes taking hours for the logs to appear e.g. 2007-03-29 04:30:25 28-Mar-2007 17:17:51 com.ourcompany.es.ourapp.webservice.server.OurService send INFO: Webservice Called 28-Mar-2007 17:17:51 com.ourcompany.es.ourapp.database.dao.ContactDAO getInsertSQL The Logger element seems to be putting in this 2007-03-29 04:30:25 Then the rest of the log which is at 28-Mar-2007 17:17:51 We're all very confused, The webservice *was definately called at 17:17 on the 28th, but did not appear in the log file until 04:30 the following morning. Anyone got any ideas?? Thanks Andy - 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 HTTPS Help needed
Removing the tcnative-1.dll library worked! But doesn't that have the disadvantage of decreased performance for Tomcat? Is there a way to install OpenSSL without compiling it? Thanks Martin Mladen Turk wrote: Martin Cavanagh wrote: Hi everyone. I'm quite embarrassed - but inspite following the Apache guide, I just can't set up HTTPS via Tomcat! C:\keytool -list -keystore c:\.keystore Geben Sie das Keystore-Passwort ein: Keystore-Typ: JKS Keystore-Provider: SUN The logs don't seem to show anything interesting It does, like always ;) e.g. catalina - 28.03.2007 18:14:51 org.apache.coyote.http11.Http11AprProtocol init INFO: Initializing Coyote HTTP/1.1 on http-80 You are using APR connector with OpenSSL, so Sun keystore is invalid. Either remove tcnative-1.dll from the bin directory or use the OpenSSL (like in Apache2) for SSL See: http://tomcat.apache.org/tomcat-5.5-doc/apr.html Regards, Mladen. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Con-Sense-GmbH __ _Martin Cavanagh_ Tel.: +49541 800 83 0 Fax: +49541 800 83 99 [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] Con-Sense GmbH Neuer Graben 25 49074 Osnabrück www.con-sense-group.com http://www.con-sense-group.com Geschäftsführer Eckhard Schulz Amtsgericht Hildesheim HRB 3341 - 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: using https for login
John Pedersen wrote: I have been able to get all the admin pages running on https, but I want just the login page on https, and the actual admin pages using http. Can anyone suggest how to do this. Here is what I have in my web.xml ( this setup doesn't use https at all ): Without modifying the code for the admin webapp, you can't do this. Mark - 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: Virtual Host Configuration problem, Help needed!!!
jit.mehta wrote: Hi! I want to configure Virtual Host on my Tomcat 5 standalone server but I'm unable to run it. http://tomcat.apache.org/tomcat-6.0-doc/virtual-hosting-howto.html HTH, Mark - 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 HTTPS Help needed
Martin Cavanagh wrote: Removing the tcnative-1.dll library worked! But doesn't that have the disadvantage of decreased performance for Tomcat? Yes, APR connector with OpenSSL is 4 times faster then with Java JSSE Is there a way to install OpenSSL without compiling it? Tcnative-1.dll for windows already contains the OpenSSL code compiled in. That's why the tcnative binaries are hosted on the Ireland's site. Regards, Mladen. - 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 manager console not appearing
Thank you for your answer, Martin. This is how my tomcat-users.xml looks like (I have it the same way in another Solaris box, same version and same tomcat version) tomcat-users role rolename=tomcat/ role rolename=role1/ role rolename=standard/ role rolename=manager/ role rolename=admin/ user username=tomcat password=tomcat roles=tomcat/ user username=role1 password=tomcat roles=role1/ user username=both password=tomcat roles=tomcat,role1/ user username=manager password=manager roles=standard,manager/ user username=admin password=admin roles=admin/ /tomcat-users I don;t know why it doesn;t work in this box ... Thanks, Fabian On 3/28/07, Martin Gainty [EMAIL PROTECTED] wrote: Fabian- in $TOMCAT_HOME/conf/tomcat-users.xml check your username you are using to access the manager has these roles defined roles=admin,manager 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: Fabian Arocena [EMAIL PROTECTED] To: users@tomcat.apache.org Sent: Wednesday, March 28, 2007 5:07 PM Subject: Tomcat manager console not appearing Hi All, I have enabled the tomcat manager console in a Solaris box by adding the necessary roles and usernames in /opt/apache-tomcat-5.5.17/conf/ tomcat-users.xml. Everything goes fine when I log in to one of them ( manager console ( by going to this link: https://151.193.178.113/manager/html and typing the user id and password) However, I can't log in to the console, it displays these well-known messages: type Status report message /manager/html description The requested resource (/manager/html) is not available. I have checked the manager application and it seems to be installed: /opt/apache-tomcat-5.5.17/server/webapps/managerls -ltr total 290 -rw-r--r-- 1 root root3295 Apr 14 2006 xform.xsl -rw-r--r-- 1 root root2977 Apr 14 2006 status.xsd -rw-r--r-- 1 root root 469 Apr 14 2006 manager.xml -rw-r--r-- 1 root root 97383 Apr 14 2006 manager-howto.html -rw-r--r-- 1 root root 39730 Apr 14 2006 html-manager-howto.html drwxr-xr-x 3 root root 512 Jul 20 2006 WEB-INF drwxr-xr-x 2 root root 512 Jul 20 2006 images Do you have an idea of where I should look at? Maybe server.xml in the conf directory. Thanks, Fabian
Réf. : Re: A second administration port
Hello everybody, I was not clear about my problem. I would like to have an access to servlets-examples (or another web application) in precising another port than 8080 so I did the following configuration. Creating a new service within server.xml this way: ... ... Service name=Another_service Connector port=9090 redirectPort=9443 minSpareThreads=25 connectionTimeout=2 maxSpareThreads=75 maxThreads=150 /Connector Engine defaultHost=localhost name=anything Realm className=org.apache.catalina.realm.JAASRealm appName=anything/ Host appBase=D:\Programmes\Tomcat 5.5.20\Test_Another_service name=localhost /Host /Engine /Service ... ... Under D:\Programmes\Tomcat 5.5.20\Test_Another_service I've deployed servlets-examples manually by copying the directory servlets-examples from webapps; I can invoke with my browser the url: http://localhost:9090/servlets-examples; and it works fine. Now I would like to deploy, undeploy, start or stop the servlets-examples context by using my browser and not manually, invoking http://localhost:9090; as I do with http://localhost:8080;. I've duplicated the manager and ROOT entries below $CATALINA_HOME/Test_Another_Service. I well reach the index but when I click The Tomcat Manager, it keeps on requiring me an identification; i can't escape from it. Any idea ? Best Regards Jean-Louis Matéo Bull, Architect of an Open World TM Bull SA - 53 r de l'Etang BP39 - 69578 LIMONEST tél - 08 20 08 20 00 fax - 04 72 52 51 24 __ BULL TELESERVICE : Support et conseil logiciels progiciels multi-éditeurs GCOS - AIX - Open Source - Microsoft __ [EMAIL PROTECTED] o.zaPour : Tomcat Users List users@tomcat.apache.org cc : 28/03/2007 19:30 Objet : Re: A second administration port Veuillez répondre à Tomcat Users List Here you go found some docs can check all settings 4 ure self 2. Configuring the Manager Web Application The Manager web application lets you perform simple management tasks on your web applications through a more simplified web user interface than that of the Admin web app. The Manager web application is defined in the auto-deployment file CATALINA_BASE/webapps/manager.xml. You must edit this file to ensure that the path specified in the docBase attribute of the Context element is absolute; that is, the absolute path of CATALINA_HOME/server/webapps/manager. If you're using the default UserDatabaseRealm, you'll need to add a user and role to the CATALINA_BASE/conf/tomcat-users.xml file. For now, just edit this file, and add a role named manager to your users database: role name=manager/ You must also have a user who is assigned the manager role. Add a user line like this after the existing user entries (changing the password to something a bit more secure): user name=manager password=deep_dark_secret roles=manager/ Then restart Tomcat and visit the URL http://localhost/manager/list to see the plain-text manager interface, or http://localhost/manager/html/list for the simple HTML manager interface. Either way, your Manager application should now be working. The Manager application lets you install new web applications on a non-persistent basis, for testing. If we have a web application in /home/user/hello and want to test it by installing it under the URI /hello, we put /hello in the first text input field (for Path) and file:/home/user/hello in the second text input field (for Config URL).
How do I get the response status code?
Hello, I'm trying to create a filter that will do the access logging for my web application (I would like to write the information directly to the database not to a file). I have a problem to get the status code of the response. The filter receives a ServletResponse object that do not have a getStatus() method. Any idea ? Yair Zohar. - 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: Session Problems Apache httpd - tomcat
On Wednesday 28 March 2007 18:17, Christopher Schultz wrote: Do they go through request.encodeURL automatically or do I have to do something? If you use JSTL Core library c:url, then they do. If you are using a href='', then they do not and you have to use a href=%= response.encodeURL(theURL) %link/a. It's safer and cleaner to use c:url. I prefer the XML syntax, jsp:element name=a jsp:attribute name=titleLog out/jsp:attribute jsp:attribute name=hrefc:url value=logoff.jsp//jsp:attribute jsp:bodyLog Out/jsp:body /jsp:element but you can do a href=c:out value=logoff.jsp/Log Out/a -- Nicholas Sushkin, Senior Software Engineer http://www.openfinance.com http://www.wealthinformationexchange.com smime.p7s Description: S/MIME cryptographic signature
Re: How do I get the response status code?
Yair, I too would be interested in this. I wrote a logging filter that does what you describe, but the best that I could come up with was a response wrapper that was passed along the filter chain. In the wrapper, I could set a status, thus guaranteeing that I would end up with a status at the end. The wrapper extends HttpServletResponseWrapper. You may also find a wrapper useful because response sizes are not always set either, at least in my experience. With the wrapper, you can monitor the output stream to get a byte count. B. Yair Zohar wrote: Hello, I'm trying to create a filter that will do the access logging for my web application (I would like to write the information directly to the database not to a file). I have a problem to get the status code of the response. The filter receives a ServletResponse object that do not have a getStatus() method. Any idea ? Yair Zohar. - 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: How do I get the response status code?
Hi Brantley, Thanks for replying. I've tried to pass a wrapper to the filter's chain, here is the wrapper's code: import java.io.IOException; import javax.servlet.http.*; public class TestResponse extends HttpServletResponseWrapper { private int statusCode; public TestResponse(HttpServletResponse response) { super(response); } public int getStatus() { return statusCode; } public void sendError(int errorCode) throws IOException { this.statusCode = errorCode; super.sendError(errorCode); } public void sendError(int errorCode, String errorMessage) throws IOException { this.statusCode = errorCode; super.sendError(errorCode, errorMessage); } public void setStatus(int statusCode) { this.statusCode = statusCode; super.setStatus(statusCode); } } I hopped tomcat will use the wrapper's setStatus() method and then I will be able to get the status code. What actually happened is that sometimes the status code returned was 0 and sometimes 404 or 304. It seems tomcat used the wrapper's setStatus() method only in part of the cases (maybe only when there was a problem getting the page). How does the byte count gives information on the status code ? How do you get the byte count from the output stream ? Yair. Brantley Hobbs wrote: Yair, I too would be interested in this. I wrote a logging filter that does what you describe, but the best that I could come up with was a response wrapper that was passed along the filter chain. In the wrapper, I could set a status, thus guaranteeing that I would end up with a status at the end. The wrapper extends HttpServletResponseWrapper. You may also find a wrapper useful because response sizes are not always set either, at least in my experience. With the wrapper, you can monitor the output stream to get a byte count. B. Yair Zohar wrote: Hello, I'm trying to create a filter that will do the access logging for my web application (I would like to write the information directly to the database not to a file). I have a problem to get the status code of the response. The filter receives a ServletResponse object that do not have a getStatus() method. Any idea ? Yair Zohar. - 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]
Tomcat 5.5: Jre or Jdk?
Hello, excuse me for the very simple question, but I'm not able to find a reference for it. I'm trying to use Tomcat 5.5.16 with JRE 1.5 installed. When I start it complains that JAVA_HOME environment variable is required, when I set this variable as my JRE root, it complains that JAVA_HOME should point to a JDK, not a JRE. I know that 5.5 version doesn't need the JDK since it incorporates the eclipse compiler. Maybe I missed something in the configuration, can you help me, please? -- 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: Tomcat manager console not appearing
suggest changing the manager to roles=admin,manager 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: Fabian Arocena [EMAIL PROTECTED] To: Martin Gainty [EMAIL PROTECTED] Cc: Tomcat Users List users@tomcat.apache.org Sent: Thursday, March 29, 2007 8:53 AM Subject: Re: Tomcat manager console not appearing Thank you for your answer, Martin. This is how my tomcat-users.xml looks like (I have it the same way in another Solaris box, same version and same tomcat version) tomcat-users role rolename=tomcat/ role rolename=role1/ role rolename=standard/ role rolename=manager/ role rolename=admin/ user username=tomcat password=tomcat roles=tomcat/ user username=role1 password=tomcat roles=role1/ user username=both password=tomcat roles=tomcat,role1/ user username=manager password=manager roles=standard,manager/ user username=admin password=admin roles=admin/ /tomcat-users I don;t know why it doesn;t work in this box ... Thanks, Fabian On 3/28/07, Martin Gainty [EMAIL PROTECTED] wrote: Fabian- in $TOMCAT_HOME/conf/tomcat-users.xml check your username you are using to access the manager has these roles defined roles=admin,manager 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: Fabian Arocena [EMAIL PROTECTED] To: users@tomcat.apache.org Sent: Wednesday, March 28, 2007 5:07 PM Subject: Tomcat manager console not appearing Hi All, I have enabled the tomcat manager console in a Solaris box by adding the necessary roles and usernames in /opt/apache-tomcat-5.5.17/conf/ tomcat-users.xml. Everything goes fine when I log in to one of them ( manager console ( by going to this link: https://151.193.178.113/manager/html and typing the user id and password) However, I can't log in to the console, it displays these well-known messages: type Status report message /manager/html description The requested resource (/manager/html) is not available. I have checked the manager application and it seems to be installed: /opt/apache-tomcat-5.5.17/server/webapps/managerls -ltr total 290 -rw-r--r-- 1 root root3295 Apr 14 2006 xform.xsl -rw-r--r-- 1 root root2977 Apr 14 2006 status.xsd -rw-r--r-- 1 root root 469 Apr 14 2006 manager.xml -rw-r--r-- 1 root root 97383 Apr 14 2006 manager-howto.html -rw-r--r-- 1 root root 39730 Apr 14 2006 html-manager-howto.html drwxr-xr-x 3 root root 512 Jul 20 2006 WEB-INF drwxr-xr-x 2 root root 512 Jul 20 2006 images Do you have an idea of where I should look at? Maybe server.xml in the conf directory. Thanks, Fabian
Re: How do I get the response status code?
No, the byte count doesn't actually have anything to do with the status code. I simply added that statement as another reason for using the wrapper. Sorry for the confusion. I agree with your earlier statement that sometimes the response code doesn't get set (or at least it gets set at some point farther downstream than the filters themselves). What I did with my wrapper class was create a protected variable named status and initialized it with 200. Then I overrode setStatus to look like this: public void setStatus(int sc) { status = sc; super.setStatus(sc); } And overrode getStatus to look like this: public int getStatus() { return status; } That way, I *always* get back a status code. It's assumed to be a 200, which might not necessarily be correct, but at least it's a valid code. This could be why the logging mechanism that comes with Tomcat was implemented as a valve; a response code may not necessarily be guaranteed to be set until the valve layer in the code. Response size is the same way, as far as I can tell, which is why you have to do a similar trick with it. I haven't torn apart the AccessLog valve source, so I'm only operating on assumptions here. For all I know, the AccessLog valve may do the same thing. Perhaps one of the old-timers could comment on this? I have source, if you're interested. B. Yair Zohar wrote: Hi Brantley, Thanks for replying. I've tried to pass a wrapper to the filter's chain, here is the wrapper's code: import java.io.IOException; import javax.servlet.http.*; public class TestResponse extends HttpServletResponseWrapper { private int statusCode; public TestResponse(HttpServletResponse response) { super(response); } public int getStatus() { return statusCode; } public void sendError(int errorCode) throws IOException { this.statusCode = errorCode; super.sendError(errorCode); } public void sendError(int errorCode, String errorMessage) throws IOException { this.statusCode = errorCode; super.sendError(errorCode, errorMessage); } public void setStatus(int statusCode) { this.statusCode = statusCode; super.setStatus(statusCode); } } I hopped tomcat will use the wrapper's setStatus() method and then I will be able to get the status code. What actually happened is that sometimes the status code returned was 0 and sometimes 404 or 304. It seems tomcat used the wrapper's setStatus() method only in part of the cases (maybe only when there was a problem getting the page). How does the byte count gives information on the status code ? How do you get the byte count from the output stream ? Yair. Brantley Hobbs wrote: Yair, I too would be interested in this. I wrote a logging filter that does what you describe, but the best that I could come up with was a response wrapper that was passed along the filter chain. In the wrapper, I could set a status, thus guaranteeing that I would end up with a status at the end. The wrapper extends HttpServletResponseWrapper. You may also find a wrapper useful because response sizes are not always set either, at least in my experience. With the wrapper, you can monitor the output stream to get a byte count. B. Yair Zohar wrote: Hello, I'm trying to create a filter that will do the access logging for my web application (I would like to write the information directly to the database not to a file). I have a problem to get the status code of the response. The filter receives a ServletResponse object that do not have a getStatus() method. Any idea ? Yair Zohar. - 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: How do I get the response status code?
Ahh.please ignore my last. I see that you're doing the same thing I mentioned (setting a private variable and returning that as the status). Is this not working for you? Brantley Yair Zohar wrote: Hi Brantley, Thanks for replying. I've tried to pass a wrapper to the filter's chain, here is the wrapper's code: import java.io.IOException; import javax.servlet.http.*; public class TestResponse extends HttpServletResponseWrapper { private int statusCode; public TestResponse(HttpServletResponse response) { super(response); } public int getStatus() { return statusCode; } public void sendError(int errorCode) throws IOException { this.statusCode = errorCode; super.sendError(errorCode); } public void sendError(int errorCode, String errorMessage) throws IOException { this.statusCode = errorCode; super.sendError(errorCode, errorMessage); } public void setStatus(int statusCode) { this.statusCode = statusCode; super.setStatus(statusCode); } } I hopped tomcat will use the wrapper's setStatus() method and then I will be able to get the status code. What actually happened is that sometimes the status code returned was 0 and sometimes 404 or 304. It seems tomcat used the wrapper's setStatus() method only in part of the cases (maybe only when there was a problem getting the page). How does the byte count gives information on the status code ? How do you get the byte count from the output stream ? Yair. Brantley Hobbs wrote: Yair, I too would be interested in this. I wrote a logging filter that does what you describe, but the best that I could come up with was a response wrapper that was passed along the filter chain. In the wrapper, I could set a status, thus guaranteeing that I would end up with a status at the end. The wrapper extends HttpServletResponseWrapper. You may also find a wrapper useful because response sizes are not always set either, at least in my experience. With the wrapper, you can monitor the output stream to get a byte count. B. Yair Zohar wrote: Hello, I'm trying to create a filter that will do the access logging for my web application (I would like to write the information directly to the database not to a file). I have a problem to get the status code of the response. The filter receives a ServletResponse object that do not have a getStatus() method. Any idea ? Yair Zohar. - 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: Tomcat 5.5: Jre or Jdk?
From: Tremal Naik [mailto:[EMAIL PROTECTED] Subject: Tomcat 5.5: Jre or Jdk? it complains that JAVA_HOME should point to a JDK, not a JRE. Use JRE_HOME, not JAVA_HOME, when you have only a JRE installed. - 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: Tomcat 5.5: Jre or Jdk?
http://tomcat.apache.org/faq/misc.html#fullJdk Can I run tomcat with the JRE, or do I need the full JDK? Tomcat officially requires the full JDK, because it needs javac in order to compile JSPs. If you pre-compile all your JSPs, you can get away with running tomcat on a JRE only, but you do so at your own risk. BTW: precompiling JSPS can be accomplished by ANT tasks but you will *probably* be better to include JDK for dynamic JSP precompilation My 2 pennies 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: Tremal Naik [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Thursday, March 29, 2007 10:07 AM Subject: Tomcat 5.5: Jre or Jdk? Hello, excuse me for the very simple question, but I'm not able to find a reference for it. I'm trying to use Tomcat 5.5.16 with JRE 1.5 installed. When I start it complains that JAVA_HOME environment variable is required, when I set this variable as my JRE root, it complains that JAVA_HOME should point to a JDK, not a JRE. I know that 5.5 version doesn't need the JDK since it incorporates the eclipse compiler. Maybe I missed something in the configuration, can you help me, please? -- 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 do I get the response status code?
Well, it does, partially. I sometimes get a non zero status code, but it's not zero only when there is an error (status code s: 404, 304). Yair. Brantley Hobbs wrote: Ahh.please ignore my last. I see that you're doing the same thing I mentioned (setting a private variable and returning that as the status). Is this not working for you? Brantley Yair Zohar wrote: Hi Brantley, Thanks for replying. I've tried to pass a wrapper to the filter's chain, here is the wrapper's code: import java.io.IOException; import javax.servlet.http.*; public class TestResponse extends HttpServletResponseWrapper { private int statusCode; public TestResponse(HttpServletResponse response) { super(response); } public int getStatus() { return statusCode; } public void sendError(int errorCode) throws IOException { this.statusCode = errorCode; super.sendError(errorCode); } public void sendError(int errorCode, String errorMessage) throws IOException { this.statusCode = errorCode; super.sendError(errorCode, errorMessage); } public void setStatus(int statusCode) { this.statusCode = statusCode; super.setStatus(statusCode); } } I hopped tomcat will use the wrapper's setStatus() method and then I will be able to get the status code. What actually happened is that sometimes the status code returned was 0 and sometimes 404 or 304. It seems tomcat used the wrapper's setStatus() method only in part of the cases (maybe only when there was a problem getting the page). How does the byte count gives information on the status code ? How do you get the byte count from the output stream ? Yair. Brantley Hobbs wrote: Yair, I too would be interested in this. I wrote a logging filter that does what you describe, but the best that I could come up with was a response wrapper that was passed along the filter chain. In the wrapper, I could set a status, thus guaranteeing that I would end up with a status at the end. The wrapper extends HttpServletResponseWrapper. You may also find a wrapper useful because response sizes are not always set either, at least in my experience. With the wrapper, you can monitor the output stream to get a byte count. B. Yair Zohar wrote: Hello, I'm trying to create a filter that will do the access logging for my web application (I would like to write the information directly to the database not to a file). I have a problem to get the status code of the response. The filter receives a ServletResponse object that do not have a getStatus() method. Any idea ? Yair Zohar. - 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] - 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 and secure=true
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Dear List, After reading all the comments regarding mod_proxy_ajp, I am currently looking at migrating to mod_proxy_http. The application uses isSecure to check whether the request is an HTTPS connection or not. Therefore, I have created 2 virtual servers in Apache HTTPD and created proxy entries from port 80 - port 8080, and from 443 - port 8081. What I do not understand however is why does setting secure to true, require the presence of a keystore? See below Thanks Andrew Connector port=8080 maxHttpHeaderSize=8192 maxThreads=150 minSpareThreads=25 maxSpareThreads=75 enableLookups=false acceptCount=100 connectionTimeout=2 disableUploadTimeout=true / Connector port=8081 maxHttpHeaderSize=8192 secure=true maxThreads=150 minSpareThreads=25 maxSpareThreads=75 enableLookups=false acceptCount=100 connectionTimeout=2 disableUploadTimeout=true / Mar 29, 2007 4:18:56 PM org.apache.coyote.http11.Http11BaseProtocol init INFO: Initializing Coyote HTTP/1.1 on http-8080 Mar 29, 2007 4:18:56 PM org.apache.coyote.http11.Http11BaseProtocol init SEVERE: Error initializing endpoint java.io.FileNotFoundException: /home/tomcat/.keystore (No such file or directory) at java.io.FileInputStream.open(Native Method) at java.io.FileInputStream.init(FileInputStream.java:106) at org.apache.tomcat.util.net.jsse.JSSESocketFactory.getStore (JSSESocketFactory.java:279) at org.apache.tomcat.util.net.jsse.JSSESocketFactory.getKeystore (JSSESocketFactory.java:222) at org.apache.tomcat.util.net.jsse.JSSE14SocketFactory.getKeyManagers (JSSE14SocketFactory.java:141) at org.apache.tomcat.util.net.jsse.JSSE14SocketFactory.init (JSSE14SocketFactory.java:109) at org.apache.tomcat.util.net.jsse.JSSESocketFactory.createSocket (JSSESocketFactory.java:88) at org.apache.tomcat.util.net.PoolTcpEndpoint.initEndpoint (PoolTcpEndpoint.java:292) at org.apache.coyote.http11.Http11BaseProtocol.init (Http11BaseProtocol.java:138) at org.apache.catalina.connector.Connector.initialize (Connector.java:1016) at org.apache.catalina.core.StandardService.initialize (StandardService.java:580) at org.apache.catalina.core.StandardServer.initialize (StandardServer.java:791) at org.apache.catalina.startup.Catalina.load(Catalina.java:503) at org.apache.catalina.startup.Catalina.load(Catalina.java:523) 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.load(Bootstrap.java: 266) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java: 431) -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.1 (Darwin) iD8DBQFGC8xTW126qUNSzvURAkUlAKCNQUiK337W8rYgOvvRN0Yjq56s5gCaArYa TiJ2D/rimimeGMuPB3hjQ10= =eG6k -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: Tomcat 5.5: Jre or Jdk?
From: Martin Gainty [mailto:[EMAIL PROTECTED] Subject: Re: Tomcat 5.5: Jre or Jdk? http://tomcat.apache.org/faq/misc.html#fullJdk Can I run tomcat with the JRE, or do I need the full JDK? Tomcat officially requires the full JDK, because it needs javac in order to compile JSPs. That FAQ entry became out-of-date when 5.5 was released, which the OP was clearly aware of. Unfortunately, it often takes quite a while for the doc to catch up to reality. - 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: Tomcat 5.5: Jre or Jdk?
2007/3/29, Martin Gainty [EMAIL PROTECTED]: Tomcat officially requires the full JDK, because it needs javac in order to compile JSPs. If you pre-compile all your JSPs, you can get away with running tomcat on a JRE only, but you do so at your own risk. From http://tomcat.apache.org/tomcat-5.5-doc/RELEASE-NOTES.txt In addition, Tomcat 5.5 uses the Eclipse JDT Java compiler for compiling JSP pages. This means you no longer need to have the complete Java Development Kit (JDK) to run Tomcat, but a Java Runtime Environment (JRE) is sufficient. The Eclipse JDT Java compiler is bundled with the binary Tomcat distributions. Tomcat can also be configured to use the compiler from the JDK to compile JSPs, or any other Java compiler supported by Apache Ant. I set the JRE_HOME and *NOT* the JAVA_HOME, since I only have the JRE installed, but when I start tomcat it complains because the JAVA_HOME is not defined. Who is wrong here? The FAQ or the RELEASE-NOTES? 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: Tomcat and Axis Logging delay
Hi all, Apologies if this email has come through already... We're very confused. We have a webservice that is using Axis1.4 and running under Apache tomcat-5.0.27. We have an apache2 modjk connector in it that's forwarding requests to the tomcat. We use java.util.logging in our code, and are using Java 5. Now we have a webapp that has some servlets/jsps and an axis webservice in the same war. We have logging set up on tomcat to use the Logger tags as follows... In directory.. /usr/local/tomcat/conf/Catalina/ourapp.ourdomain.com we have.. ourapp.xml which contains ?xml version='1.0' encoding='utf-8'? Context displayName=ourapp docBase= path= swallowOutput=true Logger className=org.apache.catalina.logger.FileLogger prefix=ourapp-debug. suffix=.log directory=/var/log/tomcat timestamp=true verbosity=4/ Valve className=org.apache.catalina.valves.AccessLogValve directory=/var/log/tomcat prefix=ourapp-access. suffix=.log pattern=common resolveHosts=false/ /Context The problem we're seeing is that the logs for the servlets etc all come out fine. and immediately, but the logs for the webservice seem not to come out straight away. It is sometimes taking hours for the logs to appear e.g. 2007-03-29 04:30:25 28-Mar-2007 17:17:51 com.ourcompany.es.ourapp.webservice.server.OurService send INFO: Webservice Called 28-Mar-2007 17:17:51 com.ourcompany.es.ourapp.database.dao.ContactDAO getInsertSQL The Logger element seems to be putting in this 2007-03-29 04:30:25 Then the rest of the log which is at 28-Mar-2007 17:17:51 We're all very confused, The webservice *was definately called at 17:17 on the 28th, but did not appear in the log file until 04:30 the following morning. Anyone got any ideas?? Thanks Andy - 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 do I get the response status code?
Yeah. I think that's what I ran across (I wrote that code more than a year ago). I think that's why I ended up initializing that internal variable to 200 so I'd be guaranteed to get something. It looks as if the AccessLog valve does something like this: import org.apache.catalina.connector.Request; import org.apache.catalina.connector.Response; public void invoke(Request request, Response response) throws IOException, ServletException { //snip tons of string concatenation result.append(\ ); result.append(response.getStatus()); result.append(space); //snip rest of string concatenation and write to log } So, the AccessLog valve is using some custom wrapper around a request/response to do the same thing we're doing. What I'm guessing is that servlets aren't *required* to set a status, so it's possible that any attempt at a getStatus() can't be guaranteed to return anything, so it's just not implemented in either the spec or the reference implementation (tomcat itself). I've seen solutions that range from the technique that I use (set a value so you know that it's not in an indeterminate state) or even to grab the output stream and parse the status header out. Again, it's not clear if the status header has even been set yet. I think that what's happening is that tomcat wraps any requests/responses in that org.apache.catalina.connection.Request/Response object so that as a point of last resort it can set a status code if it hasn't been set already. I don't know if that's what the spec says to do or not. It certainly seems that if the spec doesn't *require* setStatus() to be called on an HttpServletResponse object, then there's a hole in the spec, IMHO. My $0.02 B. Yair Zohar wrote: Well, it does, partially. I sometimes get a non zero status code, but it's not zero only when there is an error (status code s: 404, 304). Yair. Brantley Hobbs wrote: Ahh.please ignore my last. I see that you're doing the same thing I mentioned (setting a private variable and returning that as the status). Is this not working for you? Brantley Yair Zohar wrote: Hi Brantley, Thanks for replying. I've tried to pass a wrapper to the filter's chain, here is the wrapper's code: import java.io.IOException; import javax.servlet.http.*; public class TestResponse extends HttpServletResponseWrapper { private int statusCode; public TestResponse(HttpServletResponse response) { super(response); } public int getStatus() { return statusCode; } public void sendError(int errorCode) throws IOException { this.statusCode = errorCode; super.sendError(errorCode); } public void sendError(int errorCode, String errorMessage) throws IOException { this.statusCode = errorCode; super.sendError(errorCode, errorMessage); } public void setStatus(int statusCode) { this.statusCode = statusCode; super.setStatus(statusCode); } } I hopped tomcat will use the wrapper's setStatus() method and then I will be able to get the status code. What actually happened is that sometimes the status code returned was 0 and sometimes 404 or 304. It seems tomcat used the wrapper's setStatus() method only in part of the cases (maybe only when there was a problem getting the page). How does the byte count gives information on the status code ? How do you get the byte count from the output stream ? Yair. Brantley Hobbs wrote: Yair, I too would be interested in this. I wrote a logging filter that does what you describe, but the best that I could come up with was a response wrapper that was passed along the filter chain. In the wrapper, I could set a status, thus guaranteeing that I would end up with a status at the end. The wrapper extends HttpServletResponseWrapper. You may also find a wrapper useful because response sizes are not always set either, at least in my experience. With the wrapper, you can monitor the output stream to get a byte count. B. Yair Zohar wrote: Hello, I'm trying to create a filter that will do the access logging for my web application (I would like to write the information directly to the database not to a file). I have a problem to get the status code of the response. The filter receives a ServletResponse object that do not have a getStatus() method. Any idea ? Yair Zohar. - 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
Re: How do I get the response status code?
Brantley- as the ServletResponse.getOutputStream() returning a javax.servlet.ServletOutputStream is not RLE (RunLengthEncoded) unless of course you implement some form of Tokenizer such as http://forum.java.sun.com/thread.jspa?threadID=734167tstart=420 Quickest would be to call HttpServletRequest.getContentLength() and xmit variable back in the response Yair? 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: Brantley Hobbs [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Thursday, March 29, 2007 10:12 AM Subject: Re: How do I get the response status code? Ahh.please ignore my last. I see that you're doing the same thing I mentioned (setting a private variable and returning that as the status). Is this not working for you? Brantley Yair Zohar wrote: Hi Brantley, Thanks for replying. I've tried to pass a wrapper to the filter's chain, here is the wrapper's code: import java.io.IOException; import javax.servlet.http.*; public class TestResponse extends HttpServletResponseWrapper { private int statusCode; public TestResponse(HttpServletResponse response) { super(response); } public int getStatus() { return statusCode; } public void sendError(int errorCode) throws IOException { this.statusCode = errorCode; super.sendError(errorCode); } public void sendError(int errorCode, String errorMessage) throws IOException { this.statusCode = errorCode; super.sendError(errorCode, errorMessage); } public void setStatus(int statusCode) { this.statusCode = statusCode; super.setStatus(statusCode); } } I hopped tomcat will use the wrapper's setStatus() method and then I will be able to get the status code. What actually happened is that sometimes the status code returned was 0 and sometimes 404 or 304. It seems tomcat used the wrapper's setStatus() method only in part of the cases (maybe only when there was a problem getting the page). How does the byte count gives information on the status code ? How do you get the byte count from the output stream ? Yair. Brantley Hobbs wrote: Yair, I too would be interested in this. I wrote a logging filter that does what you describe, but the best that I could come up with was a response wrapper that was passed along the filter chain. In the wrapper, I could set a status, thus guaranteeing that I would end up with a status at the end. The wrapper extends HttpServletResponseWrapper. You may also find a wrapper useful because response sizes are not always set either, at least in my experience. With the wrapper, you can monitor the output stream to get a byte count. B. Yair Zohar wrote: Hello, I'm trying to create a filter that will do the access logging for my web application (I would like to write the information directly to the database not to a file). I have a problem to get the status code of the response. The filter receives a ServletResponse object that do not have a getStatus() method. Any idea ? Yair Zohar. - 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: Tomcat 5.5: Jre or Jdk?
2007/3/29, Caldarale, Charles R [EMAIL PROTECTED]: was clearly aware of. Unfortunately, it often takes quite a while for the doc to catch up to reality. Not only the documents, but it looks that a bug that has been marked as resolved in version 5.5.9 has not really been resolved or reintroduced in 5.5.16 http://issues.apache.org/bugzilla/show_bug.cgi?id=32081 It really looks that the guys there at Apache don't care of us, ignorant windows users ;) -- 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: Tomcat 5.5: Jre or Jdk?
2007/3/29, Tremal Naik [EMAIL PROTECTED]: It really looks that the guys there at Apache don't care of us, ignorant windows users ;) I quote from the bug report: I'm leaving the bug open for Windows, but I really don't care about the problem All my windows clients (who are not developers), will appreciate this ;) -- 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 do I get the response status code?
Martin, I'm afraid I don't understand. Would the request length be the same as the response? I'm totally not following. Brantley Martin Gainty wrote: Brantley- as the ServletResponse.getOutputStream() returning a javax.servlet.ServletOutputStream is not RLE (RunLengthEncoded) unless of course you implement some form of Tokenizer such as http://forum.java.sun.com/thread.jspa?threadID=734167tstart=420 Quickest would be to call HttpServletRequest.getContentLength() and xmit variable back in the response Yair? M-- - 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: Session Problems Apache httpd - tomcat
On Thu, 2007-03-29 at 09:43 +0100, Pid wrote: They don't go through it automatically, as the links are in the page output, and tomcat doesn't hunt through output streams for URLs to encode. All URLs need to be manually encoded, in your JSPs or Servlet outputs. Check with your developers to ensure that this is the case. If the URLs are properly encoded Tomcat will then rewrite the URL to include the session data in the URL if cookies are not available. Your URLs will then look something like: /path/to.jsp;jsessionid=?query=goes+here This and the addCookie worked perfectly. The developers are working on a fix right now. The HTTPD is largely agnostic of the sessions - unless you are clustering - as it won't interfere with a cookie, and will pass a URL parameter through as normal. Q: How have you connected HTTPD/Tomcat, and which versions are you using? Tomcat 2.2.23 Apache httpd 2.2.0 mod_jk 1.2.15 If you *are* clustering then you need to ensure that the jvmRoute attribute of the Engine in conf/server.xml is set uniquely for each Tomcat. (http://tomcat.apache.org/tomcat-5.5-doc/config/engine.html) This adds the value of the attribute to the end of the jsessionid so that your load balancer can direct the session to the appropriate Tomcat. No clusters yet, though we will be looking into it as soon as I learn a bit more. Thanks a lot Christopher, Pid and Nicholas, your help was very valuable. - 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: Jre or Jdk?
From: Tremal Naik [mailto:[EMAIL PROTECTED] Subject: Re: Tomcat 5.5: Jre or Jdk? Not only the documents, but it looks that a bug that has been marked as resolved in version 5.5.9 has not really been resolved or reintroduced in 5.5.16 I just tried it with 5.5.23, and JRE_HOME without JAVA_HOME works properly on both JRE 5 and 6. - 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: Tomcat 5.5 and secure=true
Andrew Miehs wrote: After reading all the comments regarding mod_proxy_ajp, I am currently looking at migrating to mod_proxy_http. The application uses isSecure to check whether the request is an HTTPS connection or not. But you obviously didn't read all the comments. You will need to set up the whole bunch of headers in Apache and create your own Servlet filter in Tomcat to be able to use that. Regards, Mladen. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
classnotfoundexception with tomcat 6.0
I have a webapp running under tomcat 5.5 with no problem. When I try to run my webapp with tomcat 6.0, I have an classnotfound error for the mysql driver. Of course, i have try to put the mysql driver jar file in /tomcat 6/lib folder, in my webapp web-inf/lib folder, in both folders... I always have this error with tomcat 6. But it works perfect with tomcat 5.5... Here is the error : 29 mars 2007 17:02:41 org.apache.catalina.realm.DataSourceRealm open GRAVE: Exception performing authentication org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot load JDBC driver class 'com.mysql.jdbc.Driver' at org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:766) at org.apache.tomcat.dbcp.dbcp.BasicDataSource.getConnection(BasicDataSource.java:540) at org.apache.catalina.realm.DataSourceRealm.open(DataSourceRealm.java:403) at org.apache.catalina.realm.DataSourceRealm.authenticate(DataSourceRealm.java:283) at org.apache.catalina.authenticator.FormAuthenticator.authenticate(FormAuthenticator.java:258) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:417) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:216) at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:866) at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:716) at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1498) at java.lang.Thread.run(Unknown Source) Caused by: java.lang.ClassNotFoundException: com.mysql.jdbc.Driver at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClassInternal(Unknown Source) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Unknown Source) at org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:760) ... 13 more - 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 manager console not appearing
why? The standard role is well defined ... It doesn't even prompt me for a user id password (that happens even if you don't add the manager, admin and standard roles...), it just displays that message. I have enabled this console in 2 other boxes, with the same tomcat version and this didn't happen ... Isn't there a file where every application is published or something? Thanks, Fabian On 3/29/07, Martin Gainty [EMAIL PROTECTED] wrote: suggest changing the manager to roles=admin,manager 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: Fabian Arocena [EMAIL PROTECTED] To: Martin Gainty [EMAIL PROTECTED] Cc: Tomcat Users List users@tomcat.apache.org Sent: Thursday, March 29, 2007 8:53 AM Subject: Re: Tomcat manager console not appearing Thank you for your answer, Martin. This is how my tomcat-users.xml looks like (I have it the same way in another Solaris box, same version and same tomcat version) tomcat-users role rolename=tomcat/ role rolename=role1/ role rolename=standard/ role rolename=manager/ role rolename=admin/ user username=tomcat password=tomcat roles=tomcat/ user username=role1 password=tomcat roles=role1/ user username=both password=tomcat roles=tomcat,role1/ user username=manager password=manager roles=standard,manager/ user username=admin password=admin roles=admin/ /tomcat-users I don;t know why it doesn;t work in this box ... Thanks, Fabian On 3/28/07, Martin Gainty [EMAIL PROTECTED] wrote: Fabian- in $TOMCAT_HOME/conf/tomcat-users.xml check your username you are using to access the manager has these roles defined roles=admin,manager 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: Fabian Arocena [EMAIL PROTECTED] To: users@tomcat.apache.org Sent: Wednesday, March 28, 2007 5:07 PM Subject: Tomcat manager console not appearing Hi All, I have enabled the tomcat manager console in a Solaris box by adding the necessary roles and usernames in /opt/apache-tomcat-5.5.17/conf/ tomcat-users.xml. Everything goes fine when I log in to one of them ( manager console ( by going to this link: https://151.193.178.113/manager/html and typing the user id and password) However, I can't log in to the console, it displays these well-known messages: type Status report message /manager/html description The requested resource (/manager/html) is not available. I have checked the manager application and it seems to be installed: /opt/apache-tomcat-5.5.17/server/webapps/managerls -ltr total 290 -rw-r--r-- 1 root root3295 Apr 14 2006 xform.xsl -rw-r--r-- 1 root root2977 Apr 14 2006 status.xsd -rw-r--r-- 1 root root 469 Apr 14 2006 manager.xml -rw-r--r-- 1 root root 97383 Apr 14 2006 manager-howto.html -rw-r--r-- 1 root root 39730 Apr 14 2006 html-manager-howto.html drwxr-xr-x 3 root root 512 Jul 20 2006 WEB-INF drwxr-xr-x 2 root root 512 Jul 20 2006 images Do you have an idea of where I should look at? Maybe server.xml in the conf directory. Thanks, Fabian
Re: Session Problems Apache httpd - tomcat
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Nelson, Nelson D. guerrero wrote: Your URLs will then look something like: /path/to.jsp;jsessionid=?query=goes+here This and the addCookie worked perfectly. The developers are working on a fix right now. Honestly, you should never have to do anything with cookies yourself... Tomcat should handle any required cookie manipulations. I think it will just clutter your code and confuse anyone reading it. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGC+dj9CaO5/Lv0PARAootAKCjGHGvHvwvg3Gqc/0O8v4rKuo5sgCgpzlf gD0lrhCItOiUL6QCSEGxcws= =iGqY -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: Browsing Tomcat from an MC4j console (jmx)
Jean-Louis, Basically, you specify the port number when you enable JMX access during tomcat startup. Google for tomcat enable jmx. Here's a good article: http://www.javaworld.com/javaworld/jw-08-2005/jw-0801-jmx.html It looks like if you started Tomcat using set JAVA_OPTS=%JAVA_OPTS% -Dcom.sun.management.jmxremote.port=8999 then the URL would be service:jmx:rmi:///jndi/rmi://localhost:8999/jmxrmi On Thursday 29 March 2007 09:53, [EMAIL PROTECTED] wrote: My tomcat 5..5.20 is well running and i want to administrate it from an MC4J console but I don't know which url I have to invoke it The URL is formed like this: service:jmx:rmi://localhost/jndi/rmi://localhost:port/protocoleconnec tor_name_of_tomcat_instance Which port, protocole and name_of_tomcat_instance do I have to choose ? -- Nicholas Sushkin, Senior Software Engineer http://www.openfinance.com http://www.wealthinformationexchange.com smime.p7s Description: S/MIME cryptographic signature
Re: Tomcat 5.5: Jre or Jdk?
2007/3/29, Caldarale, Charles R [EMAIL PROTECTED]: I just tried it with 5.5.23, and JRE_HOME without JAVA_HOME works properly on both JRE 5 and 6. ok, thanks, I'll upgrade our clients tomcat. In the meanwhile, a small fix to the windows batches was sufficient. -- 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]
Virtual Memory or Mem usage monitoring
Hi all, (another memory question) I am currently running Tomcat 5.5 on Windows server 2003 (2gb). Tomcat memory resources are monitored in Windows Task Manager. Should I be more concerned with Mem Usage or VM usage? Is Virtual Memory the actual memory usage? Will gc release memory after it hits -Xmx 256? What will/should mem drop down to after release? Catalina.bat - set CATALINA_OPTS=%CATALINA_OPTS% -Djava.library.path=C:\Program Files\Documentum\shared -Xms256m -Xmx256m -verbose:gc Thank you Jayson Enriquez CHDP
Re: classnotfoundexception with tomcat 6.0
Are there additional error messages in the logs? Sometimes the logs have more error information that will help you solve this problem. Check if you have properly nested the Context tag under the Host tag either in server.xml or if a separate Context xml file is used then it should be associated with the Host tag. I remember seeing another error with MySQL connection and it required an additional JAR file aspectjrt.jar (comes with the MySQL disto) in addition to mysql-connector-java-5.0.5-bin.jar , adding the aspectjrt.jar JAR fixed some errors, sorry I don't remember what the errors were. -Rashmi On 3/29/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I have a webapp running under tomcat 5.5 with no problem. When I try to run my webapp with tomcat 6.0, I have an classnotfound error for the mysql driver. Of course, i have try to put the mysql driver jar file in /tomcat 6/lib folder, in my webapp web-inf/lib folder, in both folders... I always have this error with tomcat 6. But it works perfect with tomcat 5.5... Here is the error : 29 mars 2007 17:02:41 org.apache.catalina.realm.DataSourceRealm open GRAVE: Exception performing authentication org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot load JDBC driver class 'com.mysql.jdbc.Driver' at org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:766) at org.apache.tomcat.dbcp.dbcp.BasicDataSource.getConnection(BasicDataSource.java:540) at org.apache.catalina.realm.DataSourceRealm.open(DataSourceRealm.java:403) at org.apache.catalina.realm.DataSourceRealm.authenticate(DataSourceRealm.java:283) at org.apache.catalina.authenticator.FormAuthenticator.authenticate(FormAuthenticator.java:258) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:417) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:216) at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:866) at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:716) at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1498) at java.lang.Thread.run(Unknown Source) Caused by: java.lang.ClassNotFoundException: com.mysql.jdbc.Driver at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClassInternal(Unknown Source) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Unknown Source) at org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:760) ... 13 more - 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: Session Problems Apache httpd - tomcat
On Thu, 2007-03-29 at 12:20 -0400, Christopher Schultz wrote: Honestly, you should never have to do anything with cookies yourself... Tomcat should handle any required cookie manipulations. I think it will just clutter your code and confuse anyone reading it. It's working without any code, but when I add traffic to the application it stops working and for every refresh it makes a new session. The workaround I offered was to force the session and that's the only thing working right now. Any ideas on that? - 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 manager console not appearing
Fabian I think this link http://tomcat.apache.org/tomcat-5.5-doc/realm-howto.html#What%20is%20a%20Realm? *may help* Manager Application If you wish to use the Manager Application to deploy and undeploy applications in a running Tomcat 5 installation, you MUST add the manager role to at least one username in your selected Realm implementation. This is because the manager web application itself uses a security constraint that requires role manager to access ANY request URI within that application. For security reasons, no username in the default Realm (i.e. using conf/tomcat-users.xml is assigned the manager role. Therfore, no one will be able to utilize the features of this application until the Tomcat administrator specifically assigns this role to one or more users. Does this answer your question? 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: Fabian Arocena [EMAIL PROTECTED] To: Martin Gainty [EMAIL PROTECTED] Cc: Tomcat Users List users@tomcat.apache.org Sent: Thursday, March 29, 2007 11:38 AM Subject: Re: Tomcat manager console not appearing why? The standard role is well defined ... It doesn't even prompt me for a user id password (that happens even if you don't add the manager, admin and standard roles...), it just displays that message. I have enabled this console in 2 other boxes, with the same tomcat version and this didn't happen ... Isn't there a file where every application is published or something? Thanks, Fabian On 3/29/07, Martin Gainty [EMAIL PROTECTED] wrote: suggest changing the manager to roles=admin,manager 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: Fabian Arocena [EMAIL PROTECTED] To: Martin Gainty [EMAIL PROTECTED] Cc: Tomcat Users List users@tomcat.apache.org Sent: Thursday, March 29, 2007 8:53 AM Subject: Re: Tomcat manager console not appearing Thank you for your answer, Martin. This is how my tomcat-users.xml looks like (I have it the same way in another Solaris box, same version and same tomcat version) tomcat-users role rolename=tomcat/ role rolename=role1/ role rolename=standard/ role rolename=manager/ role rolename=admin/ user username=tomcat password=tomcat roles=tomcat/ user username=role1 password=tomcat roles=role1/ user username=both password=tomcat roles=tomcat,role1/ user username=manager password=manager roles=standard,manager/ user username=admin password=admin roles=admin/ /tomcat-users I don;t know why it doesn;t work in this box ... Thanks, Fabian On 3/28/07, Martin Gainty [EMAIL PROTECTED] wrote: Fabian- in $TOMCAT_HOME/conf/tomcat-users.xml check your username you are using to access the manager has these roles defined roles=admin,manager 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
Re: classnotfoundexception with tomcat 6.0
Matt/Rashmi make sure you have a non-empty password specified for username supplied to DB (The Tomcat 6 Configuration for MySQL is available here) http://tomcat.apache.org/tomcat-6.0-doc/jndi-datasource-examples-howto.html Bon Chance! Martin- --- 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: Rashmi Rubdi [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Thursday, March 29, 2007 1:18 PM Subject: Re: classnotfoundexception with tomcat 6.0 Are there additional error messages in the logs? Sometimes the logs have more error information that will help you solve this problem. Check if you have properly nested the Context tag under the Host tag either in server.xml or if a separate Context xml file is used then it should be associated with the Host tag. I remember seeing another error with MySQL connection and it required an additional JAR file aspectjrt.jar (comes with the MySQL disto) in addition to mysql-connector-java-5.0.5-bin.jar , adding the aspectjrt.jar JAR fixed some errors, sorry I don't remember what the errors were. -Rashmi On 3/29/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I have a webapp running under tomcat 5.5 with no problem. When I try to run my webapp with tomcat 6.0, I have an classnotfound error for the mysql driver. Of course, i have try to put the mysql driver jar file in /tomcat 6/lib folder, in my webapp web-inf/lib folder, in both folders... I always have this error with tomcat 6. But it works perfect with tomcat 5.5... Here is the error : 29 mars 2007 17:02:41 org.apache.catalina.realm.DataSourceRealm open GRAVE: Exception performing authentication org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot load JDBC driver class 'com.mysql.jdbc.Driver' at org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:766) at org.apache.tomcat.dbcp.dbcp.BasicDataSource.getConnection(BasicDataSource.java:540) at org.apache.catalina.realm.DataSourceRealm.open(DataSourceRealm.java:403) at org.apache.catalina.realm.DataSourceRealm.authenticate(DataSourceRealm.java:283) at org.apache.catalina.authenticator.FormAuthenticator.authenticate(FormAuthenticator.java:258) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:417) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:216) at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:866) at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:716) at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1498) at java.lang.Thread.run(Unknown Source) Caused by: java.lang.ClassNotFoundException: com.mysql.jdbc.Driver at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClassInternal(Unknown Source) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Unknown Source) at org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:760) ... 13 more - 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:
Re: Tomcat manager console not appearing
You are telling me there's a chance that the manager role definition is not included in the default realms? I checked the page that you told me and apparently the realm is defined in the server.xml file ... I noticed that the server.xml file in the server that deosn;t work is much more smaller than the one that really works... Let me check that. Thanks, Fabian On 3/29/07, Martin Gainty [EMAIL PROTECTED] wrote: Fabian I think this link http://tomcat.apache.org/tomcat-5.5-doc/realm-howto.html#What%20is%20a%20Realm? *may help* Manager Application If you wish to use the Manager Application to deploy and undeploy applications in a running Tomcat 5 installation, you MUST add the manager role to at least one username in your selected Realm implementation. This is because the manager web application itself uses a security constraint that requires role manager to access ANY request URI within that application. For security reasons, no username in the default Realm (i.e. using conf/tomcat-users.xml is assigned the manager role. Therfore, no one will be able to utilize the features of this application until the Tomcat administrator specifically assigns this role to one or more users. Does this answer your question? 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: Fabian Arocena [EMAIL PROTECTED] To: Martin Gainty [EMAIL PROTECTED] Cc: Tomcat Users List users@tomcat.apache.org Sent: Thursday, March 29, 2007 11:38 AM Subject: Re: Tomcat manager console not appearing why? The standard role is well defined ... It doesn't even prompt me for a user id password (that happens even if you don't add the manager, admin and standard roles...), it just displays that message. I have enabled this console in 2 other boxes, with the same tomcat version and this didn't happen ... Isn't there a file where every application is published or something? Thanks, Fabian On 3/29/07, Martin Gainty [EMAIL PROTECTED] wrote: suggest changing the manager to roles=admin,manager 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: Fabian Arocena [EMAIL PROTECTED] To: Martin Gainty [EMAIL PROTECTED] Cc: Tomcat Users List users@tomcat.apache.org Sent: Thursday, March 29, 2007 8:53 AM Subject: Re: Tomcat manager console not appearing Thank you for your answer, Martin. This is how my tomcat-users.xml looks like (I have it the same way in another Solaris box, same version and same tomcat version) tomcat-users role rolename=tomcat/ role rolename=role1/ role rolename=standard/ role rolename=manager/ role rolename=admin/ user username=tomcat password=tomcat roles=tomcat/ user username=role1 password=tomcat roles=role1/ user username=both password=tomcat roles=tomcat,role1/ user username=manager password=manager roles=standard,manager/ user username=admin password=admin roles=admin/ /tomcat-users I don;t know why it doesn;t work in this box ... Thanks, Fabian On 3/28/07, Martin Gainty [EMAIL PROTECTED] wrote: Fabian- in $TOMCAT_HOME/conf/tomcat-users.xml check your username you are using to access the manager has these roles defined roles=admin,manager M--
Re: mod_jk/1.2.21, jkstatus does not display runtime state of load balanced threads, only N/A
Please open a bugzilla issue and attach the relevant parts of your mod_jk config (jk directives from httpd.conf and workers.propertiers and uriworkermap.orperties, if applicable). Erik Melkersson schrieb: Thanks for the info but unfortunately I don't think that is is case for me. I surfed to a mapped address and got pages back from the tomcat trough the workers and still had N/A as state. I've also used it and got an error message back (both tomcats blocked) but the state was still N/A. As I haven't changed the maintenance interval it should still be 60 secs. Regards Erik Melkersson Rainer Jung wrote: N/A as a state means, that no requests have been sent to this worker for some time. So mod_jk is not really able to tell you about the state of the worker. It can only detect OK, ERROR etc. when it is sending requests to the workers. No requests, no state. A worker will be in state N/A directly after starting Apache or if it was in state OK, but didn't get any requests during a complete maintenance interval. This is per default 60 seconds. 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]
Re: classnotfoundexception with tomcat 6.0
Thanks, I tried Connection Pooling recently with MySQL 5.x with those instructions, and I was able to successfully make a connection per the example shown there for MySQL. I only had to place mysql-connector-java-5.0.5-bin.jar under ...\apache-tomcat-6.0.10\lib\ And configure the Context , and that was it. I didn't need the aspect JAR file. -Rashmi On 3/29/07, Martin Gainty [EMAIL PROTECTED] wrote: Matt/Rashmi make sure you have a non-empty password specified for username supplied to DB (The Tomcat 6 Configuration for MySQL is available here) http://tomcat.apache.org/tomcat-6.0-doc/jndi-datasource-examples-howto.html Bon Chance! Martin- - 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: request hangs
if you are on TC 6, you can always use the NIO connector as an alternative. There is a mem leak in 6.0.10, but fixed in SVN, new release around the corner take a look at http://tomcat.apache.org/tomcat-6.0-doc/config/http.html the protocol attribute tells you how to configure the different connectors Filip Chris Eldredge wrote: Well, as I've stated I'm not aware of any resource contention. The UDP socket is being used in a daemon thread that is executing asynchronously with the standard Tomcat request processing threads and I don't see any blocks waiting for monitors etc. Even worse, I tried removing tc-native from $TOMCAT_HOME/bin so APR is not being used anymore, and poof, the problem went away. That doesn't make me comfortable, but I don't have time to dig into the bowels of APR. Martin Gainty wrote: Hi Chris- Possible if the invoker 1)is executing the thread in a synchronized fashion ..but.. synchronization produces contention (the analogy is 2 boys reach for the same piece of bread at the dinner table at the same time where neither one wants to give the other his prize..it's best to avoid synchronization contention scenarios) 2)'Classic Thread' objects although in most scenarios these thread objects when associated with a key are not necessarily short-lived and may never be GCed so eventually you may see 'permgen space errors' happening as the objects which are classic Thread stay in heap forever.. 3)The best solution is to implement your class using ThreadLocal to quote A thread-local variable effectively provides a separate copy of its value for each thread that uses it. Each thread can see only the value associated with that thread The classic example is acquiring DBConnection objects where you want a specific DBConnection alloced and init'ed on a per thread basis an example public class ConnectionFactory { private static class ThreadLocalConnection extends ThreadLocal public Object initialValue() { return DriverManager.getConnection(ConfigurationSingleton.getDbUrl()); } } //ThreadLocalConnection private static ThreadLocalConnection conn = new ThreadLocalConnection(); //this will acquire a per-thread singleton object only for your thread }//ConnectionFactory This example comes from IBM site located at http://www-128.ibm.com/developerworks/java/library/j-threads3.html Does this make sense? HTH, Martin-- --- 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: Chris Eldredge [EMAIL PROTECTED] To: users@tomcat.apache.org Sent: Thursday, March 22, 2007 10:10 AM Subject: Re: request hangs Martin, Thanks for the response. The thread accepting UDP packets has a timeout of 100ms after which it waits again for a packet. Anyway, this is happening in its own thread, executing asynchronously from Tomcat's http request processing threads. I'm not aware of any limitations where accepting UDP packets should prevent another thread from accepting TCP connections... are you? Thanks again, Chris Martin Gainty wrote: Hi Chris- what happens when you log these events? start of UDP loop Accepting UDP packets on the loopback address. log the buffer from UDP accept goto start of UDP loop start of loop to write to temp file Reading standard out from a child process log the buffer which is read from standard out writing it to a temp file. go start of loop to write to temp file Im guessing the UDP packet accept logic *may possibly* be blocking as it waits for the socket to read (and hanging the thread) Martin -- --- 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
Re: Tomcat HTTPS Help needed
Martin Gainty wrote: just so Im clear..this would not work with keystore files but will work with APR connector and the Binaries must be compiled to JNI spec? exactly, to use APR and OpenSSL, you can use Apache style certificates, Connector protocol=org.apache.coyote.http11.Http11AprProtocol port=8443 minSpareThreads=5 maxSpareThreads=75 enableLookups=true disableUploadTimeout=true acceptCount=100 maxThreads=200 scheme=https secure=true SSLEnabled=true SSLCertificateFile=/usr/local/ssl/server.crt SSLCertificateKeyFile=/usr/local/ssl/server.pem clientAuth=false sslProtocol=TLS/ documented in http://tomcat.apache.org/tomcat-6.0-doc/ssl-howto.html Filip 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: Mladen Turk [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Thursday, March 29, 2007 7:55 AM Subject: Re: Tomcat HTTPS Help needed Martin Cavanagh wrote: Removing the tcnative-1.dll library worked! But doesn't that have the disadvantage of decreased performance for Tomcat? Yes, APR connector with OpenSSL is 4 times faster then with Java JSSE Is there a way to install OpenSSL without compiling it? Tcnative-1.dll for windows already contains the OpenSSL code compiled in. That's why the tcnative binaries are hosted on the Ireland's site. Regards, Mladen. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.446 / Virus Database: 268.18.20/737 - Release Date: 3/28/2007 4:23 PM - 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 and secure=true
With tomcat 6, you could do this: 1. For non SSL traffic Just ProxyPass to tomcat like always (set ProxyPreserveHost On) Connector protocol=org.apache.coyote.http11.Http11NioProtocol port=8080 proxyPort=80 2. For SSL traffic Proxy pass to another connector setup like this Connector protocol=org.apache.coyote.http11.Http11NioProtocol secure=true scheme=https SSLEnabled=false port=8081 proxyPort=443 SSLEnabled=false, means it is http, not https, but request.getScheme - will return https request.isSecure - will return true request.getServerPort - will return 443 Do you need more? Filip Mladen Turk wrote: Andrew Miehs wrote: After reading all the comments regarding mod_proxy_ajp, I am currently looking at migrating to mod_proxy_http. The application uses isSecure to check whether the request is an HTTPS connection or not. But you obviously didn't read all the comments. You will need to set up the whole bunch of headers in Apache and create your own Servlet filter in Tomcat to be able to use that. Regards, Mladen. - 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: Session Problems Apache httpd - tomcat
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Nelson, Nelson D. guerrero wrote: On Thu, 2007-03-29 at 12:20 -0400, Christopher Schultz wrote: Honestly, you should never have to do anything with cookies yourself... Tomcat should handle any required cookie manipulations. I think it will just clutter your code and confuse anyone reading it. It's working without any code, but when I add traffic to the application it stops working and for every refresh it makes a new session. The workaround I offered was to force the session and that's the only thing working right now. Any ideas on that? Not really... you are probably just duplicating code that Tomcat is running also. Are you sure that your load profiles are the same in both cases? Tomcat easily handles a ton of load without losing sessions. The problem is likely to be in your application. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGDDMb9CaO5/Lv0PARArnHAJ9cXmLPqIQEhlONT74U2M1BkUUVDQCgu/cp 2hWDC+zj16EN6lKWcXP+LSs= =vchg -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]
SPAMMED: Additional JARs have been added
Hello Everyone, I am running TOMCAT 5.0.28 on a Mac OS X; JVM 1.5.0_06-112 platform; over a period of a week I have made some code changes to ensure the service will automatically restart if it stops. The following are some of the changes that I have made: TOMCAT now starts via launchd script which will watch it and restart it if it dies. For this to work I had to modify catalina.sh to not exit when it starts tomcat (1 removed the trailing from the 'start' options). If TOMCAT stops, launchd will just restart it right away. TOMCAT did stop at about 15:25 MST today. It restarted fine, but now the catalina.out file is being spammed with: INFO: Additional JARs have been added: 'commons-digester.jar' Mar 29, 2007 3:54:59 PM org.apache.catalina.core.StandardContext reload INFO: Reloading this Context has started Any assistance is greatly appreciated Dwight - 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: Basic Auth without web.xml security-constraint not working
Thanks for your replies, I think that the matter is settled. The underlying issue is that when Role R is required for Page P then *TWO* things need to happen depending on whether the user is in role R. These are 1. Allow or block access to page P. 2. Grey out or not grey out the menu item for page P. Right, I understand. The fact is that Tomcat will not perform authorization without also performing authentication. That is the crux of the matter. IMHO it is a bug, whether in the implementation or the spec I don't know or really care. The APIs take a very simplistic view of the world, and it just does not work for me at least. Pity, as not much more is needed. I could indeed scan web.xml given the inadequate API (rolesRequiredForUrl(), rolesForUser() etc.). (Scanning is possible but ugly -- needs duplication of URL pattern processing). But I prefer not to scan web.xml because I have other information about each form, and it would be nice to put the source of truth for the security info in the same place. But thanks for all the help. I have some Tomcat hacks that work for the time being. Later I will look for a fuller framework, either mine or someone else's, that is not J2EE based. If you really want to hack around with authentication and authorization, check out securityfilter (http://securityfilter.sourrceforge.net). The code is portable across servlet containers, and especially across different versions of the same container ;) Looks interesting. (Link is actually http://securityfilter.sourceforge.net, your link was to a spam site.) Anthony - 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: Basic Auth without web.xml security-constraint not working
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 All, Berglas, Anthony wrote: If you really want to hack around with authentication and authorization, check out securityfilter (http://securityfilter.sourrceforge.net). The code is portable across servlet containers, and especially across different versions of the same container ;) Looks interesting. (Link is actually http://securityfilter.sourceforge.net, your link was to a spam site.) Apologies for the typo. Spam sites totally suck :( - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGDIIF9CaO5/Lv0PARAiOLAJ9WRmG8MoLQBPtQtdLSbeMM53WcGgCgw2Da dfWPFRhwXD6VZ4maDcA1xTA= =vYSZ -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]
YAWS connect to Tomcat
Hi, Is it possible to have yaws serve as the http frontend for Tomcat? Similar to how can have apache http serve as the frontend for tomcat using AJP Thanks, Josh - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
doubt in testin a sample jsp using the tomcat server
Hi all, I 've install the tomcat 5.5 and jdk 1.5 but I would lie to test the sample jsp whch I create. I don't know how that jsp is deployed using the tomcat server. Inside the weapps I create a folder and copy the jsp which I create. Then what all things I need to do forwoking this jsp. Please help me