Re: Single Sign On(SSO) problem
On Friday 11 March 2005 06.36, xue daoming wrote: How to config Single Single Sign On(SSO) in Tomcat? I read Tomcat document, but I can't find information about it. Is something I miss? Anybody carried out that can help me? I just gt that one working yesterday ! All the apps that need to be accessed from SSO have to use the same Realm, not the same class but the same instance. So if you want all apps in a specific host to be accessed with SSO, then put your Realm/ tag in the host/. Configure the security in every app in the usual web.xml. Add a valve to the same host like this one : Valve className=org.apache.catalina.authenticator.SingleSignOn/ More docs in http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/valve.html That works for me, I hope it helps you ! Guillaume -- Guillaume Lederrey Informaticien Développement Tecost - Technology Consulting Studies Fribourg (Switzerland) http://www.tecost.ch/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
application can not reconnect when database restarts
I am using Apache Tomcat/4.1.27. Problem: when datbase restarts connection is not established. Connection pool is done by Tomcat using DBCP. Context congiguration under server.xml file is as Context path=/MyWebApp docBase=MyWebApp debug=0 reloadable=true Logger className=org.apache.catalina.logger.FileLogger prefix=localhost_MyWebApp_log. suffix=.txt timestamp=true/ Resource name=jdbc/rmsDataSource type=javax.sql.DataSource auth=Container description=Database resource for MyWebApp / ResourceParams name=jdbc/rmsDataSource parameternamefactory/namevalueorg.apache.commons.dbcp.BasicDataSource Factory/value/parameter parameter name maxActive/namevalue 20/value /parameter parameter name maxIdle/namevalue 25/value /parameter parameter name maxWait/namevalue 10/value /parameter parameter nameremoveAbandoned/name valuetrue/value /parameter parameter nameremoveAbandonedTimeout/name value1/value /parameter parameter namelogAbandoned/name valuetrue/value /parameter parameternameusername/namevaluetest_app/value/parameter parameternamepassword/namevaluetest_app/value/parameter parameternamedriverClassName/namevalueoracle.jdbc.driver.OracleDriver /value/parameter parameternameurl/namevaluejdbc:oracle:thin:@test.com:1521:testDB/va lue/parameter /ResourceParams /Context web.xml this is configured as ?xml version=1.0 encoding=ISO-8859-1? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd; web-app display-nameWelcome to Tomcat/display-name descriptionWelcome to Tomcat/description welcome-file-list welcome-file/jsp/login.jsp/welcome-file /welcome-file-list resource-ref descriptionDB Connection/description res-ref-namejdbc/rmsDataSource/res-ref-name res-typejavax.sql.DataSource/res-type res-authContainer/res-auth /resource-ref /web-app Is there any tag which takes care that application is automatically connected whenever datbase goes up. It would be really great if there is some feedback on this problem. I know for My SQL we can append autoRecconnect=true in database url .. Is there any equivalent for jdbc:oracle:thin driver like oracle.jdbc.driver.OracleDriver Going through Tomcat DBCP configuration somewhere it is mention use validationQuery as a parameter in context tag. But I am not really surebecause it is not clear what is the purpose of this parameter. Any ideas ? ? Thank you, Bhavesh Kumar - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
JNDIrealm Mbean
Hi, I use Tomcat 5.5 and I created a JNDIRealm in the server.xml file. I d'like to accede to the JNDIMean mbean but I can't find informations about source code exemple. I saw this page that contains all Tomcat Mbean http://jakarta.apache.org/tomcat/tomcat-5.5-doc/catalina/funcspecs/mbean-names.html Is there a mbean-descriptor.xml to add to my application ? I do think because I think that Tomcat Mbean are loaded automatically. Here is an exemple of my tentative to access to the Tomcat JNDIRealm mbean and to access to the connectionUrl of my realm. This code is not working :-( try { ObjectName timer = new ObjectName(Catalina:type=org.apache.catalina.realm.JNDIRealm,name=JNDIRealm); List list = MBeanServerFactory.findMBeanServer(null); MBeanServer server = (MBeanServer) list.iterator().next(); String connectionUrl; connectionUrl=(String)server.invoke(timer,connectionURL,new Object[] { },new String[] { .getClass().getName()}); } catch(Exception e){ } Do you have an code exemple or a solution ? Thanks for your answers, Jabouille Jean Charles
Re: Access Threads informations/state
QM wrote: On Thu, Mar 10, 2005 at 08:47:25PM +0100, David Causse wrote: : I store my jdbc connections inside the user session, and I create thanks : to a Filter one connection per thread (cause we encountered multithread : issues with the oracle JDBC driver, and we use frames). Is there a way to refactor your app, to move the thread-safety outside of the Connection objects? Put another way, it sounds as though you could insert a data layer between the Filter / Session objects and the Connection objects. I hope my boss didn't heard you :) We have about 2000jsp + 700 servlets and deployment is expected to be in june. After some reflexion, I will use the third solution (never close connections) and try to hunt processes that never give back the connection to the pool. But it's strange because the connection.close() is done in the Filter in a finally{} block. Maybe it could happen in some exceptionnal condition like OutOfMemory or hidden jsp that are not processed by Filter. Just another question: when a session is invalidated (manually, or by timeout) javax.servlet.http.HttpSessionListener#sessionDestroyed(javax.servlet.http.HttpSessionEvent) is always raised, is there some special case this method is avoided? I maintain my own count of session and it never shows the same count as the tomcat manager... Here is an idea of what I'm doing in my session listeners : sessionDidActivate: cnt++ sessionCreated: cnt++ sessionDestroyed: cnt-- sessionWillPassivate: cnt-- Maybe I misunderstood something. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Mapping context to root of website
See if this helps, it's a guide to making Tomcat be like a web server, rather than the J2EE spec. If you're a linux user it includes automagic scripts for helping you do it. http://www.ex-parrot.com/~pete/tomcat-vhost.html my linux install guide is at http://www.mythic-beasts.com/support/topic_vds_java.html Pete Stevens On Thu, 10 Mar 2005, Anderson, M. Paul wrote: I'm not sure I understand what you mean but I'll do some researching! Thanks! -Original Message- From: Parsons Technical Services [mailto:[EMAIL PROTECTED] Sent: Thu 3/10/2005 9:42 PM To: Tomcat Users List Subject: Re: Mapping context to root of website Virtual Host Then define each app as the ROOT context for that host. Doug - Original Message - From: Anderson, M. Paul [EMAIL PROTECTED] To: Tomcat Users List tomcat-user@jakarta.apache.org Sent: Thursday, March 10, 2005 1:53 PM Subject: RE: Mapping context to root of website How would I do this if I am just using Tomcat (no apache, IIS, etc.)??? -Original Message- From: Ronnie Tartar [mailto:[EMAIL PROTECTED] Sent: Thursday, March 10, 2005 1:50 PM To: Tomcat Users List Subject: RE: Mapping context to root of website Is there a way to do this with jk or jk2? Thanks -Original Message- From: Ronnie Tartar Sent: Monday, March 07, 2005 11:46 AM To: Tomcat Users List Subject: RE: Mapping context to root of website This is how I use to be able to do it with mod_warp. WebAppConnection mps warp localhost:8019 WebAppDeploy . mps / Deployed the specific context to the root of the actual site leaving 1 instance of tomcat with multiple webapps. Thanks Ronnie Tartar 407-251-2036 -Original Message- From: Ronnie Tartar Sent: Monday, March 07, 2005 10:50 AM To: Tomcat Users List Subject: RE: Mapping context to root of website Y, but you can only have one ROOT in the webapps folder? Is this what you are talking about? I would like to have multiple contexts mapped to the ROOT of different web servers. http://www.test1.com/mapped to /context1 http://www.test2.com/mapped to /context2 http://www.test3.com/mapped to /context3 I have created my application as ROOT in the webapps folder, and that does work, but without creating multiple tomcat instances, I can only have one ROOT. I always seem to have trouble with the connectors, thanks for your patience. Ronnie Tartar 407-251-2036 -Original Message- From: Allistair Crossley [mailto:[EMAIL PROTECTED] Sent: Monday, March 07, 2005 10:39 AM To: Tomcat Users List Subject: RE: Mapping context to root of website Hi, Yes this is extremely common and in TC 5.0 is configured using an empty path attribute in the Context element and in 5.5 it is done by naming your web application as ROOT. FOr IIS to TC look up JK 1.2.8, there's even an installer. Your mappings would be /something=ajp13 rather than /context/something=ajp13. Good luck. Allistair. -Original Message- From: Ronnie Tartar [mailto:[EMAIL PROTECTED] Sent: 07 March 2005 15:37 To: tomcat-user@jakarta.apache.org Subject: Mapping context to root of website Is there anyway to map a context to the root of a website. For instance: http://www.test.com/context/ to http://www.test.com/ I know I can do this by creating mulitple Tomcat Instances but this is not very efficient on resources. I have done it with Mod_warp with success but need to do it on IIS and Apache. Is there a doc out there somewhere? Thanks in advance. FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE --- QAS Ltd. Developers of QuickAddress Software a href=http://www.qas.com;www.qas.com/a Registered in England: No 2582055 Registered in Australia: No 082 851 474 --- /FONT - 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] - 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] - 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] -- Pete Stevens [EMAIL PROTECTED]
[slightly OT]Re: How to access web site from other computers
I went to www.dyndns.org and selected 'Dynamic DNS' (B and did whatever it asked me to. I'm able to access it (B locally. ie. (B (BLocally means on the same machine as the server? (B (BAnd could you mention which "whatever it asked me" you did? (B (B http://dummy.dnsalias.net/web/JSP/login.html (B (B But not from other computers (one at office). (B (BHave you edited the hosts files on any of the computers, including the (Bserver? (B (B I'm able (B to ping to this machine. (B (BPing by IP address or by the dummy.dnsalias.net domain name? (B (BAnd if IP, is it by the internal IP or the external IP? (B (BWait. dummy is probably not a 3LD that you'd be able to get. Are you (Bsure about that? (B (B But not able to see the web (B application. Is this is a firewall issue? How can i (B identify what are the firewalls/spywares running in my (B system and how to allow the IP Address to be visible. (B (BI was going to mention cheap broadband "modems" that don't expose the (Bexternal interface address back to the internal LAN and about (Bdemilitarized zones, and recapitulate the hosts file business, but I (Bthink we haven't got that far yet. (B (B(None of this is the main topic on this list.) (B (B-- (BJoel Rees [EMAIL PROTECTED] (Bdigitcom, inc. $B3t<02q
Re: [slightly OT]Re: How to access web site from other computers
--- Joel [EMAIL PROTECTED] wrote: I went to www.dyndns.org and selected 'Dynamic DNS' and did whatever it asked me to. I'm able to access it locally. ie. Locally means on the same machine as the server? On the same machine where tomcat apache are running. And could you mention which whatever it asked me you did? When i clicked on 'Dynamic DNS', a form appeared and i keyed-in the host name. That's it. It gave following URL: raghu.dnsalias.net http://dummy.dnsalias.net/web/JSP/login.html But not from other computers (one at office). Have you edited the hosts files on any of the computers, including the server? Yes. I edited the host file of the server. I'm able to ping to this machine. Ping by IP address or by the dummy.dnsalias.net domain name? Both. And if IP, is it by the internal IP or the external IP? Wait. dummy is probably not a 3LD that you'd be able to get. Are you sure about that? It's not dummy. Actual URL is: raghu.dnsalias.net But not able to see the web application. Is this is a firewall issue? How can i identify what are the firewalls/spywares running in my system and how to allow the IP Address to be visible. I was going to mention cheap broadband modems that don't expose the external interface address back to the internal LAN and about demilitarized zones, and recapitulate the hosts file business, but I think we haven't got that far yet. (None of this is the main topic on this list.) Sorry for posting this issue in this mailing list. I was monitoring this list. Also, i thought, there may be some tomcat apache server configuration problem. Thanks. -- Joel Rees [EMAIL PROTECTED] digitcom, inc. ³ô¼°²ñ¼Ò¥Ç¥¸¥³¥à Kobe, Japan +81-78-672-8800 ** http://www.ddcom.co.jp ** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? Take Yahoo! Mail with you! Get it on your mobile phone. http://mobile.yahoo.com/maildemo - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Sudden Shutdown - EXCEPTION_ACCESS_VIOLATION
Hello people... I was doing a load testing with my Web application running under Tomcat, and suddenly Tomcat has stopped. So, I went to the sdtout.log file and got the fatal error message listed below. Then I started the server again, restarted the load testing and got the same problem a couple of times. Has anybody ever faced a problem like this before? Does anybody know how to handle that? Softwares installed in the server. S.O.: Windows XP 2002. Tomcat 5.0.27 J2SDK 1.4.2_07 Error I've been taken from the stdout.log file Unexpected Signal : EXCEPTION_ACCESS_VIOLATION (0xc005) occurred at PC=0x8036580 Function=[Unknown.] Library=C:\j2sdk1.4.2_07\jre\bin\client\jvm.dll NOTE: We are unable to locate the function name symbol for the error just occurred. Please refer to release documentation for possible reason and solutions. Current Java thread: at java.util.Hashtable.get(Hashtable.java:332) - locked 0x107c9bc8 (a java.util.Hashtable) at org.apache.turbine.services.BaseServiceBroker.getServiceInstance(BaseService Broker.java:347) at org.apache.turbine.services.BaseServiceBroker.getService(BaseServiceBroker.j ava:296) at org.apache.turbine.services.resources.TurbineResources.getService(TurbineRes ources.java:109) at org.apache.turbine.services.resources.TurbineResourceService.interpolate(Tur bineResourceService.java:249) at org.apache.turbine.services.resources.TurbineResourceService.getVector(Turbi neResourceService.java:527) at org.apache.turbine.services.resources.TurbineResources.getVector(TurbineReso urces.java:326) at org.apache.turbine.modules.ScreenLoader.getInstance(ScreenLoader.java:192) at org.apache.turbine.services.template.TurbineTemplateService.getParsedModuleN ame(TurbineTemplateService.java:655) at org.apache.turbine.services.template.TurbineTemplateService.getCachedName(Tu rbineTemplateService.java:581) at org.apache.turbine.services.template.TurbineTemplateService.getScreenName(Tu rbineTemplateService.java:371) at org.apache.turbine.services.template.TurbineTemplate.getScreenName(TurbineTe mplate.java:131) at org.apache.jetspeed.modules.pages.JetspeedTemplatePage.doBuildAfterAction(Je tspeedTemplatePage.java:207) at org.apache.turbine.modules.pages.DefaultPage.doBuild(DefaultPage.java:155) at org.apache.turbine.modules.Page.build(Page.java:90) at org.apache.turbine.modules.PageLoader.exec(PageLoader.java:123) at org.apache.turbine.Turbine.doGet(Turbine.java:563) at org.apache.turbine.Turbine.doPost(Turbine.java:658) at javax.servlet.http.HttpServlet.service(HttpServlet.java:709) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:237) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:157) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:214) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex t.java:104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContext Valve.java:198) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja va:152) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex t.java:104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137 ) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex t.java:104) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117 ) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex t.java:102) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java :109) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex t.java:104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929) at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne ction(Http11Protocol.java:705) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav a:683)
Re: [slightly OT]Re: How to access web site from other computers
I went to www.dyndns.org and selected 'Dynamic (B DNS' (B and did whatever it asked me to. I'm able to (B access it (B locally. ie. (B (B Locally means on the same machine as the server? (B (B On the same machine where tomcat apache are running. (B (B And could you mention which "whatever it asked me" (B you did? (B (B When i clicked on 'Dynamic DNS', a form appeared and i (B keyed-in the host name. That's it. It gave following (B URL: raghu.dnsalias.net (B (BYou must have done more than that. You registered, gave them an e-mail (Baddress to contact you at, then when you got your registration confirmed, (Byou went to the dynamic dns services and got your form. (B (BI'm kind of wondering which form it was. The reason is that I'm (Bwondering if it properly associated your requested 3LD (raghu under (Bdnsalias.net) with your NAT/firewall/router/modem's external interface (Baddress. (B (BMy web browser can't reach you. (B (BPing is picking it up at maxonline.com.sg. (B (BThat's likely to indicate some tomcat setup issues. (B (B http://dummy.dnsalias.net/web/JSP/login.html (B (Bhttp://raghu.dnsalias.net/ (Bhttp://raghu.dnsalias.net/web/JSP/login.html (B (Bjust leave the web browser trying to connect. (B (Bhttp://raghu.dnsalias.net:8080/ (Bhttp://raghu.dnsalias.net:8080/web/JSP/login.html (B (Bboth get refused. (B (BYou probably also have firewall setup problems. (B (B But not from other computers (one at office). (B (BCan you ping raghu.dnsalias.net from the one at the office? (B (BHave you edited the hosts file of the machine at the office? Did you set (Bit to the internal address of the server instead of the external address? (B (B(If your NAT/firewall/router/modem doesn't show the external interface (Bto the internal net, you'll have to use the hosts file on all computers (Bon your LAN, or set up an internal-only name server. And the IP address (Bof the server for your office computers will not be the same as the one (Bfor the external net, of course.) (B (BSpeaking of the firewall, is it forwarding port 80 and port 8080 to the (Bserver? (B (B Have you edited the hosts files on any of the (B computers, including the (B server? (B (B Yes. I edited the host file of the server. (B (BThis may be the reason you can see it locally. (B (B I'm able (B to ping to this machine. (B (B Ping by IP address or by the dummy.dnsalias.net (B domain name? (B (B Both. (B (B And if IP, is it by the internal IP or the external (B IP? (B (BSo, does the other office computer ping it by raghu.dnsalias.net, by (B202.156.229.137, or by an internal address (192.168.x.x or 10.x.x.x or (B172.16.x.x through 172.31.x.x)? (B (B Wait. dummy is probably not a 3LD that you'd be able (B to get. Are you (B sure about that? (B (B It's not dummy. Actual URL is: raghu.dnsalias.net (B (B But not able to see the web (B application. Is this is a firewall issue? How can (B i (B identify what are the firewalls/spywares running (B in my (B system and how to allow the IP Address to be (B visible. (B (B I was going to mention cheap broadband "modems" that (B don't expose the (B external interface address back to the internal LAN (B and about (B demilitarized zones, and recapitulate the hosts file (B business, but I (B think we haven't got that far yet. (B (B (None of this is the main topic on this list.) (B (B Sorry for posting this issue in this mailing list. I (B was monitoring this list. Also, i thought, there may (B be some tomcat apache server configuration problem. (B (BIt does look like you may have both types of configuration problems. (B (B-- (BJoel Rees [EMAIL PROTECTED] (Bdigitcom, inc. $B3t<02q
One quick question on running TC in security mode
Hi all. I'm faced with a situation where I need to deploy an application on a server that is running TC 4.1 with -security option enabled. I have figured out that I need to edit catalina.policy file and grant my application permissions. I'm testing config on my home machine running 5.5.7. Now I'm slightly baffled. The application needs to connect to a DB, send mail and write/read files from the file system. All is well except mail sending. This is my catalina policy file: grant codeBase file:/home/test/webapps/test/- { permission java.net.SocketPermission localhost:5432, resolve,connect; permission java.net.SocketPermission localhost:3306, resolve,connect; permission java.net.SocketPermission localhost:25, resolve,connect; // permission java.net.SocketPermission localhost:*, resolve,connect; permission java.io.FilePermission /, read; permission java.io.FilePermission /-, read; permission java.io.FilePermission /tmp/-, read,write; }; And this is what I get when a JSP page tries to send an e-mail: *root cause* java.security.AccessControlException: access denied (java.net.SocketPermission localhost resolve) java.security.AccessControlContext.checkPermission(AccessControlContext.java:264) java.security.AccessController.checkPermission(AccessController.java:427) Any idea what is wrong? Nix. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[OT] How to determine whether a session or request is SSL
Hi list, I would like to evaluate the current encription status of a users session or request from out of a taglib or servlet. E.g. know whether the user is using https and possibly the encryption strength used... This must be easy (I hope) but I couldn't work out how to so far and wondered whether anybody out there could point me into the right direction. TIA Jan Jan Behrens OFFIS FuE-Bereich Betriebliches Informations- und Wissensmanagement Escherweg 2 - 26121 Oldenburg - Germany Fon: +49 4 41 97 22 - 187 - Fax: +49 4 41 97 22-102 E-mail: [EMAIL PROTECTED] - URL: http://www.offis.de - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Too many open files exception
A coworker of mine had a Tomcat-driven site switched over to JVM 1.4.2 from JVM 1.3.1. He got an email from the client about two hours later saying they were getting a bunch of errors: Internal Servlet Error: javax.servlet.ServletException: common.cException: common.cException: java.io.FileNotFoundException: /space/icrp/WEB-INF/icrp.properties (Too many open files) at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:461) at _0002ferror_0002ejsperror_jsp_5._jspService(_0002ferror_0002ejsperror_jsp_5.java:187) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119) ... Root cause: common.cException: common.cException: common.cException: java.io.FileNotFoundException: /space/icrp/WEB-INF/icrp.properties (Too many open files) at common.cUtils.closeConnections(cUtils.java:871) at _0002ferror_0002ejsperror_jsp_5._jspService(_0002ferror_0002ejsperror_jsp_5.java:177) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119) ... After he got the email he restarted the site only to have it behave in a similar fashion over half an hour later. We scoured online with the above Java error msg to no avail. My initial thought was to peruse the Apache logs to see if there were entries that correlated to when the crashes occured and what were the resulting message; this is what I found: 143.65.99.20 - - [07/Mar/2005:20:38:51 -0500] GET /wizsearch.jsp?add=... HTTP/1.1 500 612 http://www...; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1) 217.44.173.38 - - [07/Mar/2005:20:38:51 -0500] GET /abstract.jsp?SID=67466ProjectID=164428 HTTP/1.1 500 612 http://www.../projectlist.jsp?SID=67466ShowCart=false; Mozilla/5.0 (Macintosh; U; PPC Mac OS X; en-gb) AppleWebKit/125.5.5 (KHTML, like Gecko) Safari/125.12 212.174.145.126 - - [07/Mar/2005:20:38:51 -0500] GET / HTTP/1.1 500 607 - Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0 169.142.1.1 - - [07/Mar/2005:20:38:51 -0500] GET /servlet/search/?CSO=5.5 HTTP/1.1 302 448 http://www.google.com/search?q=...; Mozilla/4.0 (compatible; MSIE 6.0; Windows 98) 62.128.179.3 - - [08/Mar/2005:08:23:57 -0500] GET /error.jsp?SID=68030 HTTP/1.1 500 612 http://www.../projectlist.jsp?SID=68030; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0) 62.128.179.2 - - [08/Mar/2005:08:23:57 -0500] GET /error.jsp?SID=68031 HTTP/1.0 500 600 http://www.../wizsearch.jsp?add=...; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0) [Mon Mar 7 20:38:51 2005] [info] [client 169.142.1.1] (32)Broken pipe: client stopped connection before rflush completed [Mon Mar 7 20:38:51 2005] [info] [client 217.44.173.38] (32)Broken pipe: client stopped connection before rflush completed [Mon Mar 7 20:38:51 2005] [info] [client 143.65.99.20] (32)Broken pipe: client stopped connection before rflush completed [Mon Mar 7 20:38:51 2005] [info] [client 212.174.145.126] (32)Broken pipe: client stopped connection before rflush completed [Tue Mar 8 08:23:57 2005] [info] [client 62.128.179.3] (32)Broken pipe: client stopped connection before rflush completed [Tue Mar 8 08:23:57 2005] [info] [client 62.128.179.2] (32)Broken pipe: client stopped connection before rflush completed I found out the rflush message normally meant that a user has pressed the browser's stop button, but to have the same messages appear simultaneously 25-30 times from the same 2-4 IPs seems kind of fishy. I did a nslookup and I don't think those IPs belong to indexing services. Has anyone seen anything like this, and if so, what does this mean? What kind of problems normally manifest itself through Too many open files messages? And is this really a Tomcat problem, Apache problem, or a problem caused by something else? BTW this site is currently using Apache 1.3.26 and Tomcat 3.2.4; would we be able to get rid of this issue if we started using Apache 2.0.xx and/or a new version of Tomcat? Thanks -- Joe Tseng I can be Googled. Therefore I am. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: application can not reconnect when database restarts
Bhavesh Kumar wrote: I am using Apache Tomcat/4.1.27. Problem: when datbase restarts connection is not established. Connection pool is done by Tomcat using DBCP. [...] Is there any tag which takes care that application is automatically connected whenever datbase goes up. It would be really great if there is some feedback on this problem. I know for My SQL we can append autoRecconnect=true in database url .. Is there any equivalent for jdbc:oracle:thin driver like oracle.jdbc.driver.OracleDriver Going through Tomcat DBCP configuration somewhere it is mention use validationQuery as a parameter in context tag. But I am not really surebecause it is not clear what is the purpose of this parameter. Any ideas ? ? Hi, we do not use Tomcat DBCP but the OracleConnectionCacheImpl. Because we do db backup at night the pool loose all conections, the morning when the first user tries to log it get first invalidated connection that are cleaned properly by the pool. What we have is a java code like this : conn = (Connection) session.getAttribute(connectionIdentifier); while (conn == null attempt MAX_CONNECTION_ATTEMPT) { try { attempt++; conn = ConnectionManager.getInstance().getConnection(Some info); } Our ConnectionManager puts some information in V$SESSION MODULE_INFO and CLIENT_INFO rows, so for each Connection demand we execute a Statement on that Connection and raise an exception if it is one of the lost Connection and we return a null Connection. Each morning I get the foolowing exception (Sorry it is in french): 09:10:40 LVL: WARN : class fr.cognitis.brle.util.connection.ConnectionManager.getConnection() : ocacheimpl.getConnection(); e levé une SQLException: Connexion interrompue 09:10:40 LVL: WARN : Erreur en tentant de fermer ocacheimpl lors de sa réinitialisation: Exception d'E/S: Broken pipe Maybe the solution is to test each Connection you receive from the pool like this: conn.prepareCall({call dbms_application_info.set_module(module_name = 'my webapps', action_name = 'action')}); rs = cs.executeQuery(); If exception is raised you must ask another Connection to the pool until it returns a good one. Anyway it is a good idea to use dbms_application_info with oracle. Hope it helps. Thank you, Bhavesh Kumar - 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: Too many open files exception
Sounds like you need to up the number of open files allowed at the operating system level. Ta Matt -Original Message- From: Moderate Extremist [mailto:[EMAIL PROTECTED] Sent: 11 March 2005 12:38 To: tomcat-user@jakarta.apache.org Subject: Too many open files exception A coworker of mine had a Tomcat-driven site switched over to JVM 1.4.2 from JVM 1.3.1. He got an email from the client about two hours later saying they were getting a bunch of errors: Internal Servlet Error: javax.servlet.ServletException: common.cException: common.cException: java.io.FileNotFoundException: /space/icrp/WEB-INF/icrp.properties (Too many open files) at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:461) at _0002ferror_0002ejsperror_jsp_5._jspService(_0002ferror_0002ejsperror_jsp_5.java:187) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119) ... Root cause: common.cException: common.cException: common.cException: java.io.FileNotFoundException: /space/icrp/WEB-INF/icrp.properties (Too many open files) at common.cUtils.closeConnections(cUtils.java:871) at _0002ferror_0002ejsperror_jsp_5._jspService(_0002ferror_0002ejsperror_jsp_5.java:177) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119) ... After he got the email he restarted the site only to have it behave in a similar fashion over half an hour later. We scoured online with the above Java error msg to no avail. My initial thought was to peruse the Apache logs to see if there were entries that correlated to when the crashes occured and what were the resulting message; this is what I found: 143.65.99.20 - - [07/Mar/2005:20:38:51 -0500] GET /wizsearch.jsp?add=... HTTP/1.1 500 612 http://www...; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1) 217.44.173.38 - - [07/Mar/2005:20:38:51 -0500] GET /abstract.jsp?SID=67466ProjectID=164428 HTTP/1.1 500 612 http://www.../projectlist.jsp?SID=67466ShowCart=false; Mozilla/5.0 (Macintosh; U; PPC Mac OS X; en-gb) AppleWebKit/125.5.5 (KHTML, like Gecko) Safari/125.12 212.174.145.126 - - [07/Mar/2005:20:38:51 -0500] GET / HTTP/1.1 500 607 - Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0 169.142.1.1 - - [07/Mar/2005:20:38:51 -0500] GET /servlet/search/?CSO=5.5 HTTP/1.1 302 448 http://www.google.com/search?q=...; Mozilla/4.0 (compatible; MSIE 6.0; Windows 98) 62.128.179.3 - - [08/Mar/2005:08:23:57 -0500] GET /error.jsp?SID=68030 HTTP/1.1 500 612 http://www.../projectlist.jsp?SID=68030; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0) 62.128.179.2 - - [08/Mar/2005:08:23:57 -0500] GET /error.jsp?SID=68031 HTTP/1.0 500 600 http://www.../wizsearch.jsp?add=...; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0) [Mon Mar 7 20:38:51 2005] [info] [client 169.142.1.1] (32)Broken pipe: client stopped connection before rflush completed [Mon Mar 7 20:38:51 2005] [info] [client 217.44.173.38] (32)Broken pipe: client stopped connection before rflush completed [Mon Mar 7 20:38:51 2005] [info] [client 143.65.99.20] (32)Broken pipe: client stopped connection before rflush completed [Mon Mar 7 20:38:51 2005] [info] [client 212.174.145.126] (32)Broken pipe: client stopped connection before rflush completed [Tue Mar 8 08:23:57 2005] [info] [client 62.128.179.3] (32)Broken pipe: client stopped connection before rflush completed [Tue Mar 8 08:23:57 2005] [info] [client 62.128.179.2] (32)Broken pipe: client stopped connection before rflush completed I found out the rflush message normally meant that a user has pressed the browser's stop button, but to have the same messages appear simultaneously 25-30 times from the same 2-4 IPs seems kind of fishy. I did a nslookup and I don't think those IPs belong to indexing services. Has anyone seen anything like this, and if so, what does this mean? What kind of problems normally manifest itself through Too many open files messages? And is this really a Tomcat problem, Apache problem, or a problem caused by something else? BTW this site is currently using Apache 1.3.26 and Tomcat 3.2.4; would we be able to get rid of this issue if we started using Apache 2.0.xx and/or a new version of Tomcat? Thanks -- Joe Tseng I can be Googled. Therefore I am. - 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: [OT] How to determine whether a session or request is SSL
To know if the user use ssl, try the boolean request.isSecure(). On Fri, 11 Mar 2005 13:27:09 +0100, Jan Behrens [EMAIL PROTECTED] wrote: Hi list, I would like to evaluate the current encription status of a users session or request from out of a taglib or servlet. E.g. know whether the user is using https and possibly the encryption strength used... This must be easy (I hope) but I couldn't work out how to so far and wondered whether anybody out there could point me into the right direction. TIA Jan Jan Behrens OFFIS FuE-Bereich Betriebliches Informations- und Wissensmanagement Escherweg 2 - 26121 Oldenburg - Germany Fon: +49 4 41 97 22 - 187 - Fax: +49 4 41 97 22-102 E-mail: [EMAIL PROTECTED] - URL: http://www.offis.de - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Rodrigo de Avila [EMAIL PROTECTED] http://www.avila.eti.br - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Antwort: Re: [OT] How to determine whether a session or request is SSL
Thanks Rodrigo, do you know of a way to get the encryption level of the request as well? (40bit, 128bit, ...) TIA Jan Jan Behrens OFFIS FuE-Bereich Betriebliches Informations- und Wissensmanagement Escherweg 2 - 26121 Oldenburg - Germany Fon: +49 4 41 97 22 - 187 - Fax: +49 4 41 97 22-102 E-mail: [EMAIL PROTECTED] - URL: http://www.offis.de Rodrigo Avila [EMAIL PROTECTED] 11.03.2005 09:58 Bitte antworten an Tomcat Users List tomcat-user@jakarta.apache.org An Tomcat Users List tomcat-user@jakarta.apache.org Kopie Thema Re: [OT] How to determine whether a session or request is SSL To know if the user use ssl, try the boolean request.isSecure(). On Fri, 11 Mar 2005 13:27:09 +0100, Jan Behrens [EMAIL PROTECTED] wrote: Hi list, I would like to evaluate the current encription status of a users session or request from out of a taglib or servlet. E.g. know whether the user is using https and possibly the encryption strength used... This must be easy (I hope) but I couldn't work out how to so far and wondered whether anybody out there could point me into the right direction. TIA Jan Jan Behrens OFFIS FuE-Bereich Betriebliches Informations- und Wissensmanagement Escherweg 2 - 26121 Oldenburg - Germany Fon: +49 4 41 97 22 - 187 - Fax: +49 4 41 97 22-102 E-mail: [EMAIL PROTECTED] - URL: http://www.offis.de - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Rodrigo de Avila [EMAIL PROTECTED] http://www.avila.eti.br - 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: application can not reconnect when database restarts
Hi David, Thanx for the info...I will look into java classes for DBCP connection pool and would try to make out if validationQuery parameter has been implemented in classes the same way you mentioned. thanx again.. Bhavesh David Causse [EMAIL PROTECTED] 11/03/2005 12:39 Please respond to Tomcat Users List To: Tomcat Users List tomcat-user@jakarta.apache.org cc: Subject:Re: application can not reconnect when database restarts Bhavesh Kumar wrote: I am using Apache Tomcat/4.1.27. Problem: when datbase restarts connection is not established. Connection pool is done by Tomcat using DBCP. [...] Is there any tag which takes care that application is automatically connected whenever datbase goes up. It would be really great if there is some feedback on this problem. I know for My SQL we can append autoRecconnect=true in database url .. Is there any equivalent for jdbc:oracle:thin driver like oracle.jdbc.driver.OracleDriver Going through Tomcat DBCP configuration somewhere it is mention use validationQuery as a parameter in context tag. But I am not really surebecause it is not clear what is the purpose of this parameter. Any ideas ? ? Hi, we do not use Tomcat DBCP but the OracleConnectionCacheImpl. Because we do db backup at night the pool loose all conections, the morning when the first user tries to log it get first invalidated connection that are cleaned properly by the pool. What we have is a java code like this : conn = (Connection) session.getAttribute(connectionIdentifier); while (conn == null attempt MAX_CONNECTION_ATTEMPT) { try { attempt++; conn = ConnectionManager.getInstance().getConnection(Some info); } Our ConnectionManager puts some information in V$SESSION MODULE_INFO and CLIENT_INFO rows, so for each Connection demand we execute a Statement on that Connection and raise an exception if it is one of the lost Connection and we return a null Connection. Each morning I get the foolowing exception (Sorry it is in french): 09:10:40 LVL: WARN : class fr.cognitis.brle.util.connection.ConnectionManager.getConnection() : ocacheimpl.getConnection(); e levé une SQLException: Connexion interrompue 09:10:40 LVL: WARN : Erreur en tentant de fermer ocacheimpl lors de sa réinitialisation: Exception d'E/S: Broken pipe Maybe the solution is to test each Connection you receive from the pool like this: conn.prepareCall({call dbms_application_info.set_module(module_name = 'my webapps', action_name = 'action')}); rs = cs.executeQuery(); If exception is raised you must ask another Connection to the pool until it returns a good one. Anyway it is a good idea to use dbms_application_info with oracle. Hope it helps. Thank you, Bhavesh Kumar - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Idle servlet won't restart
Hi, I'm using Tomcat 5.5.3 running as part of an Apache webserver on Fedora Core 1. My webapps are supported by a servlet which serves gif images stored in a database, it's mapped to the URL pattern /servlet/image by the following XML which is inside the web-app tag of the web.xml files for two webapps, including ROOT. servlet servlet-nameDBImageViewer/servlet-name servlet-classshared.DBImageViewer/servlet-class /servlet servlet-mapping servlet-nameDBImageViewer/servlet-name url-pattern/servlet/image/url-pattern /servlet-mapping My problem is that after leaving the webapps overnight and returning to the site, the image servlet appears to have stopped. While the two webapps run fine, the servlet doesn't function until Tomcat is restarted. Is there some setting or configuration I'm missing which would cause the servlet to restart after it has 'idled off', or have I put the servlet mapping in the wrong place? Any advice would help greatly, Thanks, Nat. -- Nat Titman Developer MitchellConnerSearson 3-5 High Pavement The Lace Market Nottingham NG1 1HF Tel +44 (0)115 959 6455 Fax +44 (0)115 959 6456 Direct +44 (0)115 959 6462 www.choosemcs.co.uk Confidentiality: This e-mail and its attachments are intended for the above named only and may be confidential. If they have come to you in error you must take no action based on them, nor must you copy or show them to anyone; please reply to this e-mail and highlight the error. Security Warning: Please note that this e-mail has been created in the knowledge that Internet e-mail is not a 100% secure communications medium. We advise that you understand and observe this lack of security when e-mailing us. Viruses: Although we have taken steps to ensure that this e-mail and attachments are free from any virus, we advise that in keeping with good computing practice the recipient should ensure they are actually virus free. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
SSL tomcat support
Hi , list! I want to configure tomcat running on https, main purpose is that: server should know his clients (only specified clients can user server) I want to achieve it with certificates I have read some documentation on java.sun.com http://java.sun.com/webservices/docs/1.0/tutorial/doc/WebAppSecurity6.htm but it doesnt sufficient for me, can anybody tell me more info about this Thanx a lot - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Re: [OT] How to determine whether a session or request is SSL
Sincerily... I don know. But, reading [http://jakarta.apache.org/tomcat/tomcat-5.0-doc/ssl-howto.html], I see this tip: To access the SSL session ID from the request, use: String sslID = (String)request.getAttribute(javax.servlet.request.ssl_session); And, in the ServletRequest javadoc [http://java.sun.com/j2ee/sdk_1.3/techdocs/api/javax/servlet/ServletRequest.html#getAttribute(java.lang.String)], I found: For example, for requests made using HTTPS, the attribute javax.servlet.request.X509Certificate can be used to retrieve information on the certificate of the client. I don't know, but maybe exist more attributes than that. I hope it helps! On Fri, 11 Mar 2005 14:09:18 +0100, Jan Behrens [EMAIL PROTECTED] wrote: Thanks Rodrigo, do you know of a way to get the encryption level of the request as well? (40bit, 128bit, ...) TIA Jan Jan Behrens OFFIS FuE-Bereich Betriebliches Informations- und Wissensmanagement Escherweg 2 - 26121 Oldenburg - Germany Fon: +49 4 41 97 22 - 187 - Fax: +49 4 41 97 22-102 E-mail: [EMAIL PROTECTED] - URL: http://www.offis.de Rodrigo Avila [EMAIL PROTECTED] 11.03.2005 09:58 Bitte antworten an Tomcat Users List tomcat-user@jakarta.apache.org An Tomcat Users List tomcat-user@jakarta.apache.org Kopie Thema Re: [OT] How to determine whether a session or request is SSL To know if the user use ssl, try the boolean request.isSecure(). On Fri, 11 Mar 2005 13:27:09 +0100, Jan Behrens [EMAIL PROTECTED] wrote: Hi list, I would like to evaluate the current encription status of a users session or request from out of a taglib or servlet. E.g. know whether the user is using https and possibly the encryption strength used... This must be easy (I hope) but I couldn't work out how to so far and wondered whether anybody out there could point me into the right direction. TIA Jan Jan Behrens OFFIS FuE-Bereich Betriebliches Informations- und Wissensmanagement Escherweg 2 - 26121 Oldenburg - Germany Fon: +49 4 41 97 22 - 187 - Fax: +49 4 41 97 22-102 E-mail: [EMAIL PROTECTED] - URL: http://www.offis.de - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Rodrigo de Avila [EMAIL PROTECTED] http://www.avila.eti.br - 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] -- Rodrigo de Avila [EMAIL PROTECTED] http://www.avila.eti.br - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Antwort: Re: Re: [OT] How to determine whether a session or request is SSL
Thanks a lot Rodrigo! I will try the second an see what I can come up with. Thanks again % have a nice weekend, Jan Jan Behrens OFFIS FuE-Bereich Betriebliches Informations- und Wissensmanagement Escherweg 2 - 26121 Oldenburg - Germany Fon: +49 4 41 97 22 - 187 - Fax: +49 4 41 97 22-102 E-mail: [EMAIL PROTECTED] - URL: http://www.offis.de Rodrigo Avila [EMAIL PROTECTED] 11.03.2005 11:02 Bitte antworten an Tomcat Users List tomcat-user@jakarta.apache.org An Tomcat Users List tomcat-user@jakarta.apache.org Kopie Thema Re: Re: [OT] How to determine whether a session or request is SSL Sincerily... I don know. But, reading [http://jakarta.apache.org/tomcat/tomcat-5.0-doc/ssl-howto.html], I see this tip: To access the SSL session ID from the request, use: String sslID = (String)request.getAttribute(javax.servlet.request.ssl_session); And, in the ServletRequest javadoc [http://java.sun.com/j2ee/sdk_1.3/techdocs/api/javax/servlet/ServletRequest.html#getAttribute(java.lang.String)], I found: For example, for requests made using HTTPS, the attribute javax.servlet.request.X509Certificate can be used to retrieve information on the certificate of the client. I don't know, but maybe exist more attributes than that. I hope it helps! On Fri, 11 Mar 2005 14:09:18 +0100, Jan Behrens [EMAIL PROTECTED] wrote: Thanks Rodrigo, do you know of a way to get the encryption level of the request as well? (40bit, 128bit, ...) TIA Jan Jan Behrens OFFIS FuE-Bereich Betriebliches Informations- und Wissensmanagement Escherweg 2 - 26121 Oldenburg - Germany Fon: +49 4 41 97 22 - 187 - Fax: +49 4 41 97 22-102 E-mail: [EMAIL PROTECTED] - URL: http://www.offis.de Rodrigo Avila [EMAIL PROTECTED] 11.03.2005 09:58 Bitte antworten an Tomcat Users List tomcat-user@jakarta.apache.org An Tomcat Users List tomcat-user@jakarta.apache.org Kopie Thema Re: [OT] How to determine whether a session or request is SSL To know if the user use ssl, try the boolean request.isSecure(). On Fri, 11 Mar 2005 13:27:09 +0100, Jan Behrens [EMAIL PROTECTED] wrote: Hi list, I would like to evaluate the current encription status of a users session or request from out of a taglib or servlet. E.g. know whether the user is using https and possibly the encryption strength used... This must be easy (I hope) but I couldn't work out how to so far and wondered whether anybody out there could point me into the right direction. TIA Jan Jan Behrens OFFIS FuE-Bereich Betriebliches Informations- und Wissensmanagement Escherweg 2 - 26121 Oldenburg - Germany Fon: +49 4 41 97 22 - 187 - Fax: +49 4 41 97 22-102 E-mail: [EMAIL PROTECTED] - URL: http://www.offis.de - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Rodrigo de Avila [EMAIL PROTECTED] http://www.avila.eti.br - 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] -- Rodrigo de Avila [EMAIL PROTECTED] http://www.avila.eti.br - 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: One quick question on running TC in security mode - still problems
Nikola Milutinovic wrote: Hi all. I'm faced with a situation where I need to deploy an application on a server that is running TC 4.1 with -security option enabled. I have figured out that I need to edit catalina.policy file and grant my application permissions. I'm testing config on my home machine running 5.5.7. Now I'm slightly baffled. The application needs to connect to a DB, send mail and write/read files from the file system. All is well except mail sending. This is my catalina policy file: grant codeBase file:/home/test/webapps/test/- { permission java.net.SocketPermission localhost:5432, resolve,connect; permission java.net.SocketPermission localhost:3306, resolve,connect; permission java.net.SocketPermission localhost:25, resolve,connect; // permission java.net.SocketPermission localhost:*, resolve,connect; permission java.io.FilePermission /, read; permission java.io.FilePermission /-, read; permission java.io.FilePermission /tmp/-, read,write; }; Heh, found one cause, the mail jars were not in my WEB-INF/lib, but in the ${catalina.home}/common/lib. Now, I have modified the catalina.policy file: grant { permission java.net.SocketPermission localhost:25, resolve,connect; permission java.net.SocketPermission localhost:3306, resolve,connect; permission java.net.SocketPermission localhost:5432, resolve,connect; }; Now sending starts, but I get the following exception: javax.activation.UnsupportedDataTypeException: no object DCH for MIME type text/plain Am I missing something? When security is turned off, mail gets sent. Nix. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat5.0.x - Proxy (pippoProxy)
Hi list, Does anyone know about Pippo Proxy?. This is a 100% pure Java HTTP proxy designed and implemented for TomCat. IF so, Is it using in production environment ? what a result ? and about a security? Thanks Acacio Furtado Costa Pesquisa e Tecnologia GIA - Magnesita S/A ((0xx31) 3368-1349 * [EMAIL PROTECTED]
Re: Tomcat5.0.x - Proxy (pippoProxy)
I have no experience with it. But this article might be helpful for you: http://www.javaworld.com/javaworld/jw-02-2005/jw-0228-pippo.html Acácio Furtado Costa wrote: Hi list, Does anyone know about Pippo Proxy?. This is a 100% pure Java HTTP proxy designed and implemented for TomCat. IF so, Is it using in production environment ? what a result ? and about a security? Thanks Acacio Furtado Costa Pesquisa e Tecnologia GIA - Magnesita S/A ((0xx31) 3368-1349 * [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[More Info] Strange error-page behavior
Ok, I've narrowed it down to the 401 error code. If that is defined in the web.xml, all apps that authenticate will automatically show the 401 error page without prompting for credentials. Is this a bug in tomcat? I tried the same on tomcat-5.0.30 with the same results. Please help, Dustin --- Dustin [EMAIL PROTECTED] wrote: Hey all. Very bizzare problem here. I am running tomcat-5.0.28. I am trying to set up custom error pages. I originally set up a 404 error page for testing (the error-page elements are in the server web.xml, not in the app's web.xml): error-page error-code404/error-code location/errors/404-SNAPSHOT.jsp/location /error-page Put the jsp files in place (both in the ROOT webapp dir and my app's war) and everything worked great. However, as soon as I added additional error-page elements and restarted tomcat, things broke. error-page error-code404/error-code location/errors/404-SNAPSHOT.jsp/location /error-page error-page error-code401/error-code location/errors/401-SNAPSHOT.jsp/location /error-page Now my manager won't come up at all. A request to http://host:8080/manager/html/list displays a blank page. No authorization attempted. A request to another app that uses authorization (http://host:8080/auth-app/) pulls up the 401 Unauthorized page even though I was never prompted for credentials. A request to an app that has no authentication comes up just fine. I remove all but one of the error-page elements and everything is back to normal. Any ideas? Thanks, Dustin __ Do you Yahoo!? Make Yahoo! your home page http://www.yahoo.com/r/hs - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Idle servlet won't restart
From: Nat Titman [mailto:[EMAIL PROTECTED] Subject: Idle servlet won't restart My webapps are supported by a servlet which serves gif images stored in a database My problem is that after leaving the webapps overnight and returning to the site, the image servlet appears to have stopped. Has the database connection been lost due to the long idle period? - 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]
Why so much virtual memory?
I start Tomcat 5.5.7 and it immediately reports about 450 megabytes of virtual memory usage in the linux app top. Is this normal? Is it just allocating it or is it really using it? It takes about 1 to 2 seconds to start and there's no way an application can write 450 megs of disk memory in that time period, or at least I don't think it can. I'm asking because I'm wondering what my memory requirements are going to be for a collocated server I'm setting up. The ISP charges more for more memory. I'm looking at 512 megs, but can pay about 50% more and get 1024. If Tomcat could run more efficiently without having to put things in virtual memory, I may want to pay the extra money. Thanks. __ Do you Yahoo!? Yahoo! Small Business - Try our new resources site! http://smallbusiness.yahoo.com/resources/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
null pointer
I am a student taking a jsp class. the class project uses an access database. my problem is that every time i run the program it keeps giving me and npe error. i have check the html and the jsp. but i can see no error. can you folks give me some ideas as where to start to fix this. i am running apache 2.0.52 with tomcat 5.5.7. i have office 2003 install. the other students are runnig tomcat 4 i believe there are others that are using tomcat5 but not sure. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Idle servlet won't restart
What happens when you try to get an image? What, if any, error messages do you get? --- Nat Titman [EMAIL PROTECTED] wrote: Hi, I'm using Tomcat 5.5.3 running as part of an Apache webserver on Fedora Core 1. My webapps are supported by a servlet which serves gif images stored in a database, it's mapped to the URL pattern /servlet/image by the following XML which is inside the web-app tag of the web.xml files for two webapps, including ROOT. servlet servlet-nameDBImageViewer/servlet-name servlet-classshared.DBImageViewer/servlet-class /servlet servlet-mapping servlet-nameDBImageViewer/servlet-name url-pattern/servlet/image/url-pattern /servlet-mapping My problem is that after leaving the webapps overnight and returning to the site, the image servlet appears to have stopped. While the two webapps run fine, the servlet doesn't function until Tomcat is restarted. Is there some setting or configuration I'm missing which would cause the servlet to restart after it has 'idled off', or have I put the servlet mapping in the wrong place? Any advice would help greatly, Thanks, Nat. -- Nat Titman Developer MitchellConnerSearson 3-5 High Pavement The Lace Market Nottingham NG1 1HF Tel +44 (0)115 959 6455 Fax +44 (0)115 959 6456 Direct +44 (0)115 959 6462 www.choosemcs.co.uk Confidentiality: This e-mail and its attachments are intended for the above named only and may be confidential. If they have come to you in error you must take no action based on them, nor must you copy or show them to anyone; please reply to this e-mail and highlight the error. Security Warning: Please note that this e-mail has been created in the knowledge that Internet e-mail is not a 100% secure communications medium. We advise that you understand and observe this lack of security when e-mailing us. Viruses: Although we have taken steps to ensure that this e-mail and attachments are free from any virus, we advise that in keeping with good computing practice the recipient should ensure they are actually virus free. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? Make Yahoo! your home page http://www.yahoo.com/r/hs - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: null pointer
What program gives you the null pointer exception? Is it your own servlet/jsp? --- Tony Lavalle [EMAIL PROTECTED] wrote: I am a student taking a jsp class. the class project uses an access database. my problem is that every time i run the program it keeps giving me and npe error. i have check the html and the jsp. but i can see no error. can you folks give me some ideas as where to start to fix this. i am running apache 2.0.52 with tomcat 5.5.7. i have office 2003 install. the other students are runnig tomcat 4 i believe there are others that are using tomcat5 but not sure. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? Yahoo! Small Business - Try our new resources site! http://smallbusiness.yahoo.com/resources/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: null pointer
Tony Lavalle wrote: I am a student taking a jsp class. the class project uses an access database. my problem is that every time i run the program it keeps giving me and npe error. i have check the html and the jsp. but i can see no error. can you folks give me some ideas as where to start to fix this. i am running apache 2.0.52 with tomcat 5.5.7. i have office 2003 install. the other students are runnig tomcat 4 i believe there are others that are using tomcat5 but not sure. Check the stack trace and look for the jsp converted to java inside the work/ tomcat directory to check wich line generated the error. If you don't have a stackTrace surround all your jsp with a try/catch %try {% YOUR JSP ... %} catch(NullPointerException npe) { npe.printStackTrace(); }% and check the tomcat log (console or catalina.out inside the logs subdir). Good luck. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Exception on JDBCRealm Authorization
Just moved to 5.5.7. After the server runs for several hours, I start getting the following exception on JDBCRealm access. After restarting the server, it works for a while, then starts failing again. The exception dump doesn't give a whole lot of information to go on. I did not update my MySQL connector when I moved from 5.0 to 5.5.7. Is that necessary? Nothing else has changed that I'm aware of. Suggestions? Thx. = Mar 11, 2005 10:48:18 AM org.apache.catalina.realm.JDBCRealm getPassword SEVERE: Exception retrieving password for jmalcolm java.sql.SQLException: Communication link failure: java.net.SocketException, underlying cause: Software caused connection abort: recv failed ** BEGIN NESTED EXCEPTION ** java.net.SocketException MESSAGE: Software caused connection abort: recv failed STACKTRACE: java.net.SocketException: Software caused connection abort: recv failed at java.net.SocketInputStream.socketRead0(Native Method) at java.net.SocketInputStream.read(SocketInputStream.java:129) at java.io.BufferedInputStream.fill(BufferedInputStream.java:218) at java.io.BufferedInputStream.read1(BufferedInputStream.java:256) at java.io.BufferedInputStream.read(BufferedInputStream.java:313) at com.mysql.jdbc.MysqlIO.readFully(MysqlIO.java:1316) at com.mysql.jdbc.MysqlIO.reuseAndReadPacket(MysqlIO.java:1463) at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:1854) at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1109) at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1203) at com.mysql.jdbc.Connection.execSQL(Connection.java:2090) at com.mysql.jdbc.PreparedStatement.executeQuery(PreparedStatement.java:1496) at org.apache.catalina.realm.JDBCRealm.getPassword(JDBCRealm.java:526) at org.apache.catalina.realm.JDBCRealm.authenticate(JDBCRealm.java:399) at org.apache.catalina.realm.JDBCRealm.authenticate(JDBCRealm.java:347) at org.apache.catalina.authenticator.BasicAuthenticator.authenticate(BasicAuthe nticator.java:181) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase .java:446) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126 ) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105 ) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Why so much virtual memory?
Mark Winslow wrote: I start Tomcat 5.5.7 and it immediately reports about 450 megabytes of virtual memory usage in the linux app top. Is this normal? Is it just allocating it or is it really using it? It takes about 1 to 2 seconds to start and there's no way an application can write 450 megs of disk memory in that time period, or at least I don't think it can. I'm asking because I'm wondering what my memory requirements are going to be for a collocated server I'm setting up. The ISP charges more for more memory. I'm looking at 512 megs, but can pay about 50% more and get 1024. If Tomcat could run more efficiently without having to put things in virtual memory, I may want to pay the extra money. Thanks. IMHO you don't have to worry about memory. You should not look at VIRT but only RES or %MEM (linux ps). Memory management with is very difficult to tune well, you'll need to test a lot of arguments. If you don't run into OutOfMemory exception you don't have to worry, unused memory is wasted memory. David. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Problem with Tomcat 4.1.31
I am upgrading my application from 4.1.27 to 4.1.31. The problem is that I am unable to get session attributes in my Servlets after upgrading. This problem only occurs when I run only tomcat without IIS/ Apache. I tried to use different connectors but that does not solve my problem. If anyone has any pointers and directions, I would appreciate any help. Thanks, Vidya - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Survey on Understanding Code
Hi, We are running a set of small surveys, in an attempt to understand developers problems when attempting to understand code. Results from this survey will be used in refining (open-source) tools that we are building. If you have looked at the code of any of the (Java) projects below, we would appreciate you taking a few minutes to fill out as many of the respective surveys: Ant, Struts, Geronimo, Cocoon, Xerces, Xalan, Tomcat, Derby, Lucene, and Batik. The survey can be found at: http://people.csail.mit.edu/people/vineet/pc_apache.html Please contact me if you have any questions, concerns, or comments! Thanks!! Regards, Vineet Sinha [EMAIL PROTECTED] PS: If this is not an appropriate place for posting this message, I will appreciate a pointer to the appropriate locations - Thanks! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: tomcat load-balancing maintenance strategy?
I also experienced cluster failure when restarting a downed cluster member in 5.0. I tested with Tomcat 5.0.30. Randall, what version of Tomcat did you succeed with? Thanks, Dan -Original Message- From: Richard Mixon (qwest) [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 08, 2005 10:45 AM To: Tomcat Users List Subject: RE: tomcat load-balancing maintenance strategy? Jim, Also check the archives for my post on restarting a downed Tomcat cluster member. This was not working well prior to Tomcat 5.5.8. When the instance was restarted it would throw exceptions trying to re-synchronize vi session replication. - Richard -Original Message- From: Randall Svancara [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 08, 2005 9:40 AM To: Tomcat Users List Subject: RE: tomcat load-balancing maintenance strategy? You need to implement either in memory session replication or persist the session in a database or a shared file system. I have finally got my tomcat cluster working and session replication is functional. Randall - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: sending a JSP page by email
Hi, Thanks for the response. This is really a neat solution of my problem , since I can use Tomcat's JSP engine to create dynamic emails. I copied the solution you posted on your blog. The email is sent OK but, since a use a model 2 web framework like Struts, I send the email, and then I need to send the HTML response back to the client browser, but when I call the forward(request, response) method, I get the typical java.lang.IllegalStateException: Cannot forward after response has been committed exception. I tried overriding the method boolean isCommited() { return false;} in the class EmailResponseWrapper but it doesn't work either. Did you ran into the same problem that I did too? Thanks in advance, Gabriel On Thu, 16 Dec 2004 14:28:22 -0500, Graff, David [EMAIL PROTECTED] wrote: Sorry about the double ... this got lost in the lower message response: http://bijou.dyndns.org/weblog/computer/software/SendingMailFromJavaServlets .html or http://tinyurl.com/5lukz Enjoy. -Original Message- From: Graff, David [mailto:[EMAIL PROTECTED] Sent: Thursday, December 16, 2004 2:22 PM To: 'Tomcat Users List' Subject: RE: sending a JSP page by email Hey kids, I had run into this a while back. I've got a link here to what I did. It's rough and ready so don't expect too much out of it, but it should be enough to get you runnning. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, December 16, 2004 1:52 PM To: tomcat-user@jakarta.apache.org Subject: RE: sending a JSP page by email I *believe*, but don't hold me to it, that you can implement a filter AFTER the JSP renders, in the latest servlet spec. With that, you shouldn't have much trouble taking the output stream and sending it as an eMail. I'd also assume, although I don't know for sure, that you could basically kill the response at that point, so it's not trying to send back to the client or anything. http://bijou.dyndns.org/weblog/computer/software/SendingMailFromJavaServlets .html Enjoy. -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com On Thu, December 16, 2004 1:38 pm, haimra said: I had tried doing the same thing and failed. But after I gained more knowledge I had a new idea that I did not tried yet. I will be happy if you let me know if it works. The basic Idea is that if we used a servelet we had no problem taking the StringBuffer created and coping it into the mail message and not back to the browser. The problem with JSP, it's actually a servlet but we can not control it. In the Java Server Page (O'reilly page 315) book I found some directive element. %@ page buffer=12kb autoFlash=false % When autoFlash=false the JSP container will not flush the buffer until the following script % out.flash() % is used. Maybe there is a way to redirect this output writer to a buffer and email it. What do you think? Haim -Original Message- From: Gabriel Belingueres [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 15, 2004 12:15 AM To: tomcat-user@jakarta.apache.org Subject: sending a JSP page by email Hi, How can I take advantage of Tomcat's JSP processing engine to use a JSP page as a template for an email? That is, I want to do something like a page forwarding from a servlet, but this forwarding process the JSP page and, instead of send it to the browser, it send it by email to somebody. Thanks in advance, Gabriel - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
host tag in server.xml
Hi - I am running tomcat 5.5 as a standalone web server. I want to know how to use wildcards in the host tag (or alias tag) so that when someone types xxx.mydomain.com, the xxx can be anything at all and they go to the same place. In apache, I know you could say something like: *.mydomain.com This doesn't seem to work in tomcat. Any help would be great! Thanks. -mjs - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tomcat load-balancing maintenance strategy?
its fixed in 5.5.x, you need a patch for 5.0.x? Dan Carwin wrote: I also experienced cluster failure when restarting a downed cluster member in 5.0. I tested with Tomcat 5.0.30. Randall, what version of Tomcat did you succeed with? Thanks, Dan -Original Message- From: Richard Mixon (qwest) [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 08, 2005 10:45 AM To: Tomcat Users List Subject: RE: tomcat load-balancing maintenance strategy? Jim, Also check the archives for my post on restarting a downed Tomcat cluster member. This was not working well prior to Tomcat 5.5.8. When the instance was restarted it would throw exceptions trying to re-synchronize vi session replication. - Richard -Original Message- From: Randall Svancara [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 08, 2005 9:40 AM To: Tomcat Users List Subject: RE: tomcat load-balancing maintenance strategy? You need to implement either in memory session replication or persist the session in a database or a shared file system. I have finally got my tomcat cluster working and session replication is functional. Randall - 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: Exception on JDBCRealm Authorization
J Malcolm [EMAIL PROTECTED] sez: Just moved to 5.5.7. After the server runs for several hours, I start getting the following exception on JDBCRealm access. hello. i've just worked through the same problem in the past week, and with the help of the list (thanks Remy Maucherat Hassan Schroeder!) solved it - so to save them some repetition... what is happening is mysql is dropping the unused connection, and JDBCRealm (since 5.5.4) isn't picking it up again. solutions are to go back to 5.5.4 JDBCRealm, or use DataSourceRealm in 5.5.7, or wait for 5.5.8. see the thread http://marc.theaimsgroup.com/?t=11103082883r=1w=2 for more details. share and enjoy, alex. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: host tag in server.xml
Hey Michael, The way I do it is first of all set the wildcard in the DNS config for the domain and point it to a certain IP address, e.g. * IN A 1.2.3.4 then I set up the virtual host in server.xml to contain the IP address as an alias Host name=www.mydomain.com debug=0 appBase=mydomain.com unpackWARs=true autoDeploy=true Aliasmydomain.com/Alias Alias1.2.3.4/Alias Logger className=org.apache.catalina.logger.FileLogger directory=logs prefix=localhost_log. suffix=.txt timestamp=true / !-- Tomcat Root Context -- Context path= docBase=ROOT reloadable=true debug=0/ /Host Now, everytime that the IP 1.2.3.4 is invoked through the browser it points to the mydomain.com container, so all subdomains that resolve through the wildcard to this IP address will also point to that container. Of course the drawback to that is that you need a dedicated IP address to your domain. Drew. On Fri, 2005-03-11 at 13:45, Michael Sharkey wrote: Hi - I am running tomcat 5.5 as a standalone web server. I want to know how to use wildcards in the host tag (or alias tag) so that when someone types xxx.mydomain.com, the xxx can be anything at all and they go to the same place. In apache, I know you could say something like: *.mydomain.com This doesn't seem to work in tomcat. Any help would be great! Thanks. -mjs - 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]