Re: Session lost when switching from https to http in Tomcat 5.
Tomcat (starting with Tomcat 4) stores the JSESSIONID cookie as a secure cookie that is tagged for port 443 (or 8443) when the session begins under HTTPS. Browsers are not allowed to send secure cookies under plain HTTP, so your session is lost. For Tomcat 4 or 5 you must start your session under HTTP, then switch to HTTPS to maintain a session across both. Tomcat 3 had a config.xml option to always store JSESSIONID as non-secure. It's a long story. See the mailing list archive for the rants. In the its current state, Tomcat's implementation does not agree with published Best Practices and the *proposed* State Management standard, but the decision was made to err on the side of security. I have modified Tomcat 4 to permit sessions that span HTTP and HTTPS. The changes are not difficult, but you must implement your own mechanism to prevent session hijacking. Non-secure JSESSIONID cookies create a security hole. The committees are supposed address the security vs. state management issue in the next Servlet Spec. Regards, Bob Feretich I have a servlet/JSP application in which users establish their servlet session using https but conduct the rest of their interactions using http. The session appears not to be preserved between https and http, ie. after switching from back to http the request.getSession(false) call returns null. Can anyone shed light on this for me? Is this expected? Is there a workaround/configuration/setting in Tomcat 5 I might have missed? Thanks Anthony - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat Administration problem
Thank you, but the solution you offered is not helpful to me. I have created a user with a role of manager, and I login with his. but yet, the server prompt me for a username and password. this is the user definition code: user username=nir password=123456 roles=manager/ thanks, nir :-) On 4/30/05, Steve Ochani [EMAIL PROTECTED] wrote: Date sent: Sat, 30 Apr 2005 02:19:43 +0300 From: Nir Tayeb [EMAIL PROTECTED] Subject:Tomcat Administration problem To: tomcat-user@jakarta.apache.org Send reply to: Tomcat Users List tomcat-user@jakarta.apache.org Send reply to: Nir Tayeb [EMAIL PROTECTED] Hello, I am running a Tomcat 5.5.9 server on Ubuntu 5.04 machine. When I try to logon to the Tomcat manager, the server prompts me for a username and password. When I installed (from binaries) the server I didn't specify any username and/or password. What details should I enter? You should have a file named tomcat-users.xml in your conf subdir. In it there are users/passwords and roles that they belong to. You need to log in with a username that has manager role. Education is what remains after one has forgotten everything he learned in school. -Albert Einstein Steve O. http://www.steveo.us SUNY NCC MATH/COMPUTER http://www.matcmp.ncc.edu
Re: no host matches server name localhost
Hi Jon, Did you use mod_jk2 to use apache ? I was looking for tips regarding a virtualhost setup/mod_jk2/tomcat setting On 4/27/05, Jonathan August [EMAIL PROTECTED] wrote: I think I was just missing a Context. Thanks for the help, Rod!! -Jon On Apr 27, 2005, at 4:24 PM, Jonathan August wrote: Hmm, I have pretty much what you have. Here's the whole server.xml: Server port=8005 shutdown=SHUTDOWN debug=0 Listener className=org.apache.catalina.mbeans.ServerLifecycleListener debug=0/ Listener className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener debug=0/ !-- Global JNDI resources -- GlobalNamingResources Resource name=UserDatabase auth=Container type=org.apache.catalina.UserDatabase description=User database that can be updated and saved /Resource ResourceParams name=UserDatabase parameter namefactory/name valueorg.apache.catalina.users.MemoryUserDatabaseFactory/value /parameter parameter namepathname/name valueconf/tomcat-users.xml/value /parameter /ResourceParams /GlobalNamingResources !-- Define the Tomcat Stand-Alone Service -- Service name=Catalina !-- Define a non-SSL Coyote HTTP/1.1 Connector on port 8080 -- Connector port=8080 maxThreads=150 minSpareThreads=25 maxSpareThreads=75 enableLookups=false redirectPort=8443 acceptCount=100 debug=0 connectionTimeout=2 disableUploadTimeout=true / !-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 -- Connector port=8009 enableLookups=false redirectPort=8443 debug=0 protocol=AJP/1.3 / !-- Define the top level container in our container hierarchy -- Engine name=Catalina defaultHost=localhost debug=0 !-- Global logger unless overridden at lower levels -- Logger className=org.apache.catalina.logger.FileLogger prefix=catalina_log. suffix=.txt timestamp=true/ Realm className=org.apache.catalina.realm.UserDatabaseRealm debug=0 resourceName=UserDatabase/ !-- Define the default virtual host Note: XML Schema validation will not work with Xerces 2.2. -- Host name=localhost debug=0 appBase=webapps unpackWARs=true autoDeploy=true xmlValidation=false xmlNamespaceAware=false Logger className=org.apache.catalina.logger.FileLogger directory=logs prefix=localhost_log. suffix=.txt timestamp=true/ /Host /Engine /Service /Server On Apr 27, 2005, at 4:08 PM, Rod Fitzsimmons Frey wrote: I should have looked at your message more closely. The error is probably with your default host. Look in your {tomcat-home}/conf/server.xml file. Look for something like Host name=localhost appBase=webapps unpackWARs=true autoDeploy=true xmlValidation=false xmlNamespaceAware=false Post your server.xml file if you can't work it out. Rod Jonathan August wrote: This is my /etc/hosts: [jon ~]$ cat /etc/hosts # Do not remove the following line, or various programs # that require network functionality will fail. 127.0.0.1 localhost.localdomain localhost On Apr 27, 2005, at 3:52 PM, Rod Fitzsimmons Frey wrote: What do you have in your /etc/hosts file? Jonathan August wrote: I installed Tomcat 5.0.30 using yum on Fedora Core 3. When I try to connect to http://localhost:8080/, I get: Alert!: HTTP/1.1 400 No Host matches server name localhost I'm sure I'm missing something simple, but I'm pretty new at this, so I'm not sure what to check. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Jon August Internection 1-866-345-HOST - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Session lost when switching from https to http in Tomcat 5.
Greetings, Your help is greatly appreciated, I have hade a devil of a time with this. I am glad to know this was not caused by an error in my code. Again, thanks very much for your help. Best Regards, Anthony- - Original Message - From: Bob Feretich [EMAIL PROTECTED] To: [EMAIL PROTECTED]; tomcat-user@jakarta.apache.org Sent: Sunday, May 01, 2005 4:48 AM Subject: Re: Session lost when switching from https to http in Tomcat 5. Tomcat (starting with Tomcat 4) stores the JSESSIONID cookie as a secure cookie that is tagged for port 443 (or 8443) when the session begins under HTTPS. Browsers are not allowed to send secure cookies under plain HTTP, so your session is lost. For Tomcat 4 or 5 you must start your session under HTTP, then switch to HTTPS to maintain a session across both. Tomcat 3 had a config.xml option to always store JSESSIONID as non-secure. It's a long story. See the mailing list archive for the rants. In the its current state, Tomcat's implementation does not agree with published Best Practices and the *proposed* State Management standard, but the decision was made to err on the side of security. I have modified Tomcat 4 to permit sessions that span HTTP and HTTPS. The changes are not difficult, but you must implement your own mechanism to prevent session hijacking. Non-secure JSESSIONID cookies create a security hole. The committees are supposed address the security vs. state management issue in the next Servlet Spec. Regards, Bob Feretich I have a servlet/JSP application in which users establish their servlet session using https but conduct the rest of their interactions using http. The session appears not to be preserved between https and http, ie. after switching from back to http the request.getSession(false) call returns null. Can anyone shed light on this for me? Is this expected? Is there a workaround/configuration/setting in Tomcat 5 I might have missed? Thanks Anthony - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
virtual host not working
Hi, I am trying to make my apache/tomcat server work but no luck so far. I've created a /var/www/html/mydomain/jsp, /var/www/html/mydomain/WEB-INF/classes and put the numguess.jsp, WEB-INF/classes/num/NumberGuessBean.class NumberGuessBean.java. I've added a Location in my apache's httpd.conf Location /jsp JkUriSet worker ajp13:localhost:8009 /Location When I access mydomain/jsp/numguess.jsp I receive tomcat's output HTTP Status 404 - /jsp/numguess.jsp type Status report message /jsp/numguess.jsp description The requested resource (/jsp/numguess.jsp) is not available. Apache Tomcat/4.1.27-13 What am I doing wrong ? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Question Title: Newbie Tomcat 4.0 install gives 500 No Context configured error @ HTTP localhost
On 4/30/05, Anoop kumar V [EMAIL PROTECTED] wrote: I am not sure why you had a blank (empty) webapps directory - possibly because you chose to download a version of tomcat4.0 which has no examples included... I have done nothing at all to the web.xml. There was abs nothing wrong with your TC installation - except that it required an application to see if it works. I extracted the root folder from TC4.1.30 and gave it to u. The web.xml is the default delivered one for the root app. hope you have a wonderful project. Anoop On 4/29/05, Michelle Bruns [EMAIL PROTECTED] wrote: That is perfect! I had almost given up on getting 4.0 and this works beautifully. I will have to look at web.xml to see what exactly you changed, because I found on Google many people with the same problem but no one with the answer. Thank you SO much! You saved my life! m On 4/29/05, Anoop kumar V [EMAIL PROTECTED] wrote: ok here it is - remove all there is in the webapps folder and extract the zip file attached into webapps. restart tomcat... then on a browser go to http://localhost:8080/index.html actually http://localhost:8080/ should work too actually you were right - the web.xml I had given was from 5.0 version of tomcat.. no wonder. I didnt spend too much time on this Anoop On 4/29/05, Michelle Bruns [EMAIL PROTECTED] wrote: Hello, Same web-app error on the new web.xml . My zip file is about 2.6M. I uploaded it to http://www.sapphireblue.com/tomcat/tomcat.zip, but please do not spend a lot of time on it. If you can see a fast easy fix that is great, but it would probably be good for me to learn 5.5 anyway. I really appreciate all your help! m On 4/29/05, Anoop kumar V [EMAIL PROTECTED] wrote: my mistake then.. - I wanted to give you a bare version of the web.xml. I pulled it out from my current tomcat ( I use 4.1 btw)... by stripping out the unnecessary lines. Looks like I deleted more than I shd have! I suggest you use the file attached after deleting the previously made web.xml... If it is possible send me the zip file you are using to install.. I will look into it and tell u exactly what u need to do. regards, Anoop On 4/29/05, Michelle Bruns [EMAIL PROTECTED] wrote: Anoop, Thank you so much for taking so much time to so thoroughly respond to my message. I tried your suggestions, but no luck. It sounds to me as if maybe you are describing a scenario for a newer version of Tomcat than I was using (4.0, because my instructor said it was easier, ha). For example, I have no install file, only a .zip to extract. And when I tried your XML test, on Tomcat startup I got org.xml.sax.SAXParseException : Element type web-app must be declared. I have since installed Tomcat 5.5, and it works fine. I can see that the web-app element is perfectly valid in the newer version, so your advice probably would have been right on for a newer Tomcat install than 4.0 . I guess since I have 5.5 running OK, I'll try to do my classwork using it, and hope it's not too different for me to do my assignments which assume 4.0 . Thanks again for your help, I really appreciate it. On 4/29/05, Anoop kumar V [EMAIL PROTECTED] wrote: SO probably you opted for a custom install and checked out that u did NOT want examples to be installed. If that is true then it explains why you do not have examples and other folders under webapps. m -- Thanks and best regards, Anoop -- Michelle Kinsey Bruns http://www.sapphireblue.com/ * [EMAIL PROTECTED] ... I get my kicks above the waistline, sunshine -- Thanks and best regards, Anoop -- Michelle Kinsey Bruns http://www.sapphireblue.com/ * [EMAIL PROTECTED] ... I get my kicks above the waistline, sunshine -- Thanks and best regards, Anoop Actually the web.xml segment given by Anoop is from a Tomcat 5.x version which is Servlet 2.4 compliant. Tomcat 4.x is Servlet 2.3 compliant. i use this header in web.xml in Tomcat 4.1.12. !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd; As far as Tomcat 5.5 is concerned you can develop your assigment in it but be careful not to use any JSP 2.0/Servlet 2.4 codings. Also you will have to change web.xml for Tomcat 4.x. You can try your luck with Tomcat 4.1.31, which is the latest stable version in 4.x tree. it is working out of the box for me. -- rgds Anto Paul - To unsubscribe,
Re: RES: How to search tomcat user list
On 4/30/05, Roberto Rios [EMAIL PROTECTED] wrote: I found it: http://www.mail-archive.com Bob -Mensagem original- De: Roberto Rios [mailto:[EMAIL PROTECTED] Enviada em: sábado, 30 de abril de 2005 12:18 Para: 'Tomcat Users List' Assunto: How to search tomcat user list Prioridade: Alta Hi, I think that this post is a little bit off-topic, but I couldn't found it elsewhere... How do I search something in the tomcat user list? I used to do it through mail-archives.apache.org, but they changed it and now it's not possible to search it, only browse it. I looking for information about the CoyoteConnector (connectionLinger, connectionTimeout, buffer, etc)? I want more specific information (http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/coyote.html is too much generic). For instance, If I increase buffer size, what kind of impact I will have? TIA, Bob - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] You can try marc.theaimsgroup.com. I am using it as I felt that its search function is better than mail-archive.com. -- rgds Anto Paul - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat Administration problem
From: Nir Tayeb [mailto:[EMAIL PROTECTED] Subject: Re: Tomcat Administration problem I have created a user with a role of manager, and I login with his. but yet, the server prompt me for a username and password. The manager role is for the manager app; you must have an admin role to use the admin app. - 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 unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: RES: How to search tomcat user list
Anto Paul escreveu: On 4/30/05, Roberto Rios [EMAIL PROTECTED] wrote: I found it: http://www.mail-archive.com Bob -Mensagem original- De: Roberto Rios [mailto:[EMAIL PROTECTED] Enviada em: sábado, 30 de abril de 2005 12:18 Para: 'Tomcat Users List' Assunto: How to search tomcat user list Prioridade: Alta Hi, I think that this post is a little bit off-topic, but I couldn't found it elsewhere... How do I search something in the tomcat user list? I used to do it through mail-archives.apache.org, but they changed it and now it's not possible to search it, only browse it. I looking for information about the CoyoteConnector (connectionLinger, connectionTimeout, buffer, etc)? I want more specific information (http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/coyote.html is too much generic). For instance, If I increase buffer size, what kind of impact I will have? TIA, Bob - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] You can try marc.theaimsgroup.com. I am using it as I felt that its search function is better than mail-archive.com. you can try http://news.gmane.org/gmane.comp.jakarta.tomcat.user;, too. At the end of the page, has a search textbox. Cheers, Vinicius. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat Administration problem
I will try to explain, When I enter the default web app ($CATALINA_HOME/webapps/ROOT/index.jsp) by typing 127.0.0.1:8080 in the address-bar. In the side bar I choose Tomcat manager under Administration and I am prompted for a username and a password. Trying to login with manager or admin roles failes. What can I do? On 5/1/05, Caldarale, Charles R [EMAIL PROTECTED] wrote: From: Nir Tayeb [mailto:[EMAIL PROTECTED] Subject: Re: Tomcat Administration problem I have created a user with a role of manager, and I login with his. but yet, the server prompt me for a username and password. The manager role is for the manager app; you must have an admin role to use the admin app. - 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 unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: 2 nd Try : help need for hosting the website
Hi All, First thanks for your responses, the site name i am trying to make it working is not www.anishanumandla.com, www.anishanumandla.com was hosted in apache 2,with apache, it is working fine, i am trying to make it work www.filmiinfo.com with tomcat5.5.9, i am really sorry for the website typo, the problem still same with www.filmiinfo.com, i changed my tomcat port number from 8080 to 80 now, and if i ping www.filmiinfo.com, it is displaying right ip address, so i don't think the problem with name resolution. When i try to access www.filmiinfo.com, i am getting HTTP status 404.. here is error page details.. type : Status Report Message : / Description: The requested resource (/) is not available. What i am missing here?? here is what i did regards to tomcat configuration.. configured following in server.xml Host name=www.filmiinfo.com appBase=/Program Files/Apache Software Foundation/Tomcat 5.5/webapps/filmiinfo Context path= docBase=/Program Files/Apache Software Foundation/Tomcat 5.5/webapps/filmiinfo / /Host Thanks in Advance Regards Ashok Hassan Schroeder wrote: Struan Kerr-Liddell wrote: Am I miss understanding? I can see www.anishanumandla.com Obviously the OP fixed his problem -- it was definitely unavailable a while ago (via browser/telnet/nmap). Cute kid :-) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: 2 nd Try : help need for hosting the website
It is working now, please ignore my previous message, it was path problem... Ashok Ashok Anumandla wrote: Hi All, First thanks for your responses, the site name i am trying to make it working is not www.anishanumandla.com, www.anishanumandla.com was hosted in apache 2,with apache, it is working fine, i am trying to make it work www.filmiinfo.com with tomcat5.5.9, i am really sorry for the website typo, the problem still same with www.filmiinfo.com, i changed my tomcat port number from 8080 to 80 now, and if i ping www.filmiinfo.com, it is displaying right ip address, so i don't think the problem with name resolution. When i try to access www.filmiinfo.com, i am getting HTTP status 404.. here is error page details.. type : Status Report Message : / Description: The requested resource (/) is not available. What i am missing here?? here is what i did regards to tomcat configuration.. configured following in server.xml Host name=www.filmiinfo.com appBase=/Program Files/Apache Software Foundation/Tomcat 5.5/webapps/filmiinfo Context path= docBase=/Program Files/Apache Software Foundation/Tomcat 5.5/webapps/filmiinfo / /Host Thanks in Advance Regards Ashok Hassan Schroeder wrote: Struan Kerr-Liddell wrote: Am I miss understanding? I can see www.anishanumandla.com Obviously the OP fixed his problem -- it was definitely unavailable a while ago (via browser/telnet/nmap). Cute kid :-) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[OT] : How to get a connection from Tomcat DBCP from a remote application?
Hi, I am using Tomcat 5.5.7 and configured DBCP properly to work with Oracle 9i. Everything is working fine if I try to get the connection from the Pool from an application deployed in Tomcat. However if I try to get the connection from the Pool from an application which is not deployed in Tomcat (remote client), I am getting not bound exceptions. Here is the code: import java.util.*; import javax.naming.*; import javax.sql.DataSource; public class ClientTest { public static void main(String[] args) { Context ctx = null; try { Hashtable props = new Hashtable(); props.put(Context.INITIAL_CONTEXT_FACTORY, org.apache.naming.java.javaURLContextFactory); props.put(Context.URL_PKG_PREFIXES, org.apache.catalina.util.naming); ctx = new InitialContext(props); DataSource dataSource = (DataSource)ctx.lookup(java:/comp/env/jdbc/test); } catch(Exception e) { e.printStackTrace(); } } } Stacktrace shows: javax.naming.NameNotFoundException: Name java: is not bound in this Context at org.apache.naming.NamingContext.list(NamingContext.java:344) at org.apache.naming.NamingContext.list(NamingContext.java:367) at javax.naming.InitialContext.list(InitialContext.java:387) What am I doing wrong? Is it allowed to access the Pool from remote client in first place? Thanks in advance, Appa __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
Re: [OT] : How to get a connection from Tomcat DBCP from a remote application?
On Sun, May 01, 2005 at 05:46:22PM -0700, appa rao wrote: : However if I try to get the connection from the Pool from an application which is not deployed in Tomcat (remote client), I am getting not bound exceptions. This makes sense. Keep in mind, JNDI is just a lookup/storage service for objects. The container maintains its own (internal) JNDI service, and one object it stores there is the DataSource that represents your connection pool. When last I checked (admittedly, it's been a while), Tomcat's JNDI service is not available outside of the container. So ask yourself this: does your non-webapp code really need a DataSource pulled from JNDI? (find a JNDI service, create a DataSource, store it) or does it just need access to a DataSource, period? (abstract your data access into a separate layer, such that your code doesn't know from where its gets Connection objects) Either way, someone will have to configure the connections for the non-webapp code; one convenience provided by containers is that they take care of instantiating/configuring the DataSource for you (based on your entries in server.xml/context.xml). -QM -- software -- http://www.brandxdev.net/ tech news -- http://www.RoarNetworX.com/ code scan -- http://www.JxRef.org/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Error Redirection
Hi there, This is probably an obvious question, but if a JSP or some other error occurs that would usually make tomcat do a printStackTrace() into HTML and display it on the browser. e.g -- HTTP Status 500 - type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception java.lang.NullPointerException at com.crm.web.form.EditSupplierForm.validate(EditSupplierForm.java:46) at org.apache.struts.action.RequestProcessor.processValidate(RequestProcessor.j ava:912) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:255) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1422) at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:523) at javax.servlet.http.HttpServlet.service(HttpServlet.java) at javax.servlet.http.HttpServlet.service(HttpServlet.java) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Unknown Source) at org.apache.catalina.core.ApplicationFilterChain.doFilter(Unknown Source) at org.apache.catalina.core.StandardWrapperValve.invoke(Unknown Source) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(Unknown Source) at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source) at org.apache.catalina.core.ContainerBase.invoke(Unknown Source) at org.apache.catalina.core.StandardContextValve.invoke(Unknown Source) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(Unknown Source) at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source) at org.apache.catalina.core.ContainerBase.invoke(Unknown Source) at org.apache.catalina.core.StandardContext.invoke(Unknown Source) at org.apache.catalina.core.StandardHostValve.invoke(Unknown Source) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(Unknown Source) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(Unknown Source) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(Unknown Source) at org.apache.catalina.valves.ErrorReportValve.invoke(Unknown Source) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(Unknown Source) at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source) at org.apache.catalina.core.ContainerBase.invoke(Unknown Source) at org.apache.catalina.core.StandardEngineValve.invoke(Unknown Source) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(Unknown Source) at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source) at org.apache.catalina.core.ContainerBase.invoke(Unknown Source) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:594) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne ction(Http11Protocol.java:392) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java(Compil ed Code)) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav a:619) at java.lang.Thread.run(Thread.java:568) --- is there a way to make it forward to a clean error page when on a production system? Regards Steve
RE: Error Redirection
Steve, Have you tried a custom error page for error 500? error-page error-code500/error-code location/_error/500.html/location /error-page Fritz -Original Message- From: Steve Vanspall [mailto:[EMAIL PROTECTED] Sent: Sunday, May 01, 2005 6:33 PM To: Tomcat User List Subject: Error Redirection Hi there, This is probably an obvious question, but if a JSP or some other error occurs that would usually make tomcat do a printStackTrace() into HTML and display it on the browser. [snip...] is there a way to make it forward to a clean error page when on a production system? Regards Steve - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Error Redirection
oh ok thanks, new it would be simple oh but is there a default, catch all option, actually i will look the tag up. Thanks Steve - Original Message - From: Fritz Schneider [EMAIL PROTECTED] To: 'Tomcat Users List' tomcat-user@jakarta.apache.org Sent: Monday, May 02, 2005 11:44 AM Subject: RE: Error Redirection Steve, Have you tried a custom error page for error 500? error-page error-code500/error-code location/_error/500.html/location /error-page Fritz -Original Message- From: Steve Vanspall [mailto:[EMAIL PROTECTED] Sent: Sunday, May 01, 2005 6:33 PM To: Tomcat User List Subject: Error Redirection Hi there, This is probably an obvious question, but if a JSP or some other error occurs that would usually make tomcat do a printStackTrace() into HTML and display it on the browser. [snip...] is there a way to make it forward to a clean error page when on a production system? Regards Steve - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat Administration problem
On 5/2/05, Nir Tayeb [EMAIL PROTECTED] wrote: I will try to explain, When I enter the default web app ($CATALINA_HOME/webapps/ROOT/index.jsp) by typing 127.0.0.1:8080 in the address-bar. In the side bar I choose Tomcat manager under Administration and I am prompted for a username and a password. Trying to login with manager or admin roles failes. What can I do? On 5/1/05, Caldarale, Charles R [EMAIL PROTECTED] wrote: From: Nir Tayeb [mailto:[EMAIL PROTECTED] Subject: Re: Tomcat Administration problem I have created a user with a role of manager, and I login with his. but yet, the server prompt me for a username and password. The manager role is for the manager app; you must have an admin role to use the admin app. - 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 unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] You should have a similar entry to the following in conf\tomcat-users.xml. user username=manager password= roles=manager/ This declares the user manager has access to manager application without any password. For above configuration to work you need to configure Tomcat to use the tomcat-users.xml to read user authentication information. Tomcat is shipped configured to use this setup. If somebody has changed it to use database or any other authentication realm you will have to add the manager username,password and role in that realm. You can check which configuration Tomcat is using by looking for the Realm/ element in server.xml. Mine is Realm className=org.apache.catalina.realm.UserDatabaseRealm debug=0 resourceName=UserDatabase/ This uses the UserDatabaseRealm which reads the file conf\tomcat-users.xml Hope this helps -- rgds Anto Paul - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]