Doubt in Single Sign On !!!
Hi All, I am using tomcat 4.1.18 and have enabled Single Sign On. I have two contexts A and B and the files present inside the /jsp directories of both the contexts are secured. In the global web.xml file i have my session time out changed to 10 minutes. With this setup, i login into context A and after some time move to context B. After moving to context B, i was going through the files present in context B alone. As i kept on working in context B, the session of context A got timed out and i was again asked to authenticate myself. As i have enabled SSO, shouldn't accessing any one context keep all the other accessed contexts alive. i.e context A should be alive, even when not accessed for a long time because context B is accessed frequently. Hope i am clear. That is how SSO should work, right . Have I misunderstood anything or have I configured anything wrongly. Thanks Shanmugam.PL -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
How to know the Performence of Tomcat Server?
Hello, I am using LoadRunner6.5 for Load Test my web application. My Application Environment: - Tech : Java(servlets,jsp) Server: Jakarta-Tomcat-4.0.4 on lInux machine d/b : MySql 3.23.41 on Linux machine I am doing LoadTest(for 10,50,75,100,,, users) to my web application.I want to know the performence mertics of Tomcat server . How can we judge that the Tomacat is reliable under different loads. To know the performence of Tomcat what are the situvations we have to consider.Is there any specific values which should occur while doing the test please give some information regarding this -venu -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Strange feature!! Can anyone help?
Hi there, I met a very strange feature of Tomcat and Apache. I have Apache2, Tomcat4, jk2 on Win2k. I need Apache and tomcat run as NT service. When I installed Apache and Tomcat, for both of them I chose Install as NT service. When I restart the computer without any user logon the NT, the Apache and tomcat run well as service (I can get my page), but when I Log off the NT user from the server computer, the service can not be found anymore. It means the service of Apche+Tomcat stops when the NT user is logoff. I need the service all the time, either the server computer is restarted or the NT user is logged off. What should I do with the configuration? Can anyone help? Many thanks in advance. BR, Annie
Re: find out why the loading of the driver fails
Thanks for your suggestions. Amazingly enough it seem to work if I put the driver where you suggested. I got another error, but that seem to be Postgresql-related. I suppose the reason why it is not loaded from the WEB-INF/lib-directory is because the driver is defined in server.xml as a resource, and that the container and webapp is somehow seperated. And I might have screwed up the CLASSPATH when starting tomcat, so it can't find the driver frm there either. back to the drawingboard. thanks. //ju --- p niemandt wrote: 1. I would put the db driver jar under $TOMCAT/common/lib This directory is shared by all your web applications: any libraries under this directory should be visible to your app. 2. Set your debug to 100: There are a few places you can / should do this (for developing / debugging): Basically, any place you see a debug parameter / attribute: Make it 100: You should get a lot of debugging information, including which jar files have been picked up and deployed. hth _ Help STOP SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
how to upgrade to web-app_2_3.dtd
i am using tomcat 4.0.1 , i need to add httpsessionlistener class for which i need to add a tag in the web.xml . i changed the doctype in the web.xml file , still i get SAXParserException please help , -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
j_security_check and login
Hello all I've been using JBoss and Tomcat for a while and have started to move what we have in JBoss/Tomcat to a Tomcat only environment. It is all OK so far. We have a login mehanism wich uses the JDBCRealm stuff. Usernames/pwds/roles are stored in the database. I have protected a set of pages and it all works, I can login via j_security_check and get to my protected pages. So that is fine and I understand the mechanism. However, we have a servlet which was called immediately after the j_security_check which performed some site-specific stuff (eg setting a cookie, logging the login attempt, etc). This was the code that we used in JBoss, this was called instead of j_security_check upon login. This worked in JBOss but not in Tomcat. String path=/context/ourLoginServlet; response.setStatus(302,Found); response.setHeader(Location, path); String rdString = new String(/j_security_check?j_username=+request.getParameter(j_username) +j_password=+request.getParameter(j_password)+); RequestDispatcher rd = application.getRequestDispatcher(rdString); rd.include(request,response); if (!response.isCommitted()) { response.reset(); } You can see what is happening, we create a RequestDispatcher object which called j_security_check which is included in the reponse. I know this is not ideal because as a GET request, it puts the username/pwd in the access log. So, I'd like to know why this fails in Tomcat. Given that Tomcat was our servlet container in JBOss, it may be be some config thing. I'd also like to do it better. Essentially, I could do it by changing that the page that Tomcat redirects to after a successful login. I could set that page to ourLoginServlet. Is there anyway of doing that transparently? I saw an email in the archives that gave this % session.setAttribute(tomcat.auth.originalLocation, /ourLoginServlet); %. I thought I could put that in my login.jsp page and that after j_secutiy_check, we'd get our login servlet called. However, this doesn't seem to change the first page you get sent to after j_security_check. Any idea why not or what the setting should be ? I also tried a filter on j_secutiy_check but for some reason, POSTS to j_security_check don't show up in teh access log so I can't set up a filter on it. Any idea what ? Thanks so much for any help or comments. Chris -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: how to upgrade to web-app_2_3.dtd
Vikrant - I do it all the time - you need to check the syntax of your DTD declaration. It should be: !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd; Regards, Lajos Vikrant Venkanna Dessai wrote: i am using tomcat 4.0.1 , i need to add httpsessionlistener class for which i need to add a tag in the web.xml . i changed the doctype in the web.xml file , still i get SAXParserException please help , -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- Lajos Moczar Open Source Support, Consulting and Training Cocoon Developer's Handbook (www.amazon.com/exec/obidos/tg/detail/-/0672322579) _ _ / \ / /___\ / / \ / http://www.galatea.com -- powered by AzSSL -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: JNDI jdbc resources
Hi Peng For Shawn's benefit - the context you see is in my server.xml (well, actually, a separate xml file just like the manager.xml and admin.xml in the /webapps directory). Based on the other posting to the list, I've tried both with the web.xml file having nothing for the resource defined, and also as below (after the servlet mappings): resource-ref description Resource reference to a factory for java.sql.Connection instances that may be used for talking to a particular database that is configured in the server.xml file. /description res-ref-name jdbc/DBmultileague /res-ref-name res-type javax.sql.DataSource /res-type res-auth Container /res-auth /resource-ref Thanks Paul On Monday, January 27, 2003, at 09:21 AM, Peng Tuck Kwok wrote: Let's have a look at your web.xml as well. Might be helpful. Paul Carpenter wrote: Hi All I've scoured the list and got so close, yet so far from making the jdbc stuff work. With some help from Manav and other postings, this is what i see. can anyone solve the riddle? Please see the cut'n'pastes below. I draw you attention to the fact that the connection looks good right up to the point where it's used - like the DataSource object is good (because ds != null is true), yet the getConnection method throws the often seen Cannot load JDBC driver class 'null' error. I know this is very close...what's missing? I'm sure my jars are in the right place, as a regular forClass approach in the same webapp works with no problems? Thanks Paul tomcat 4.1.12, Mac OSX 10.2.3 Output from my test servlet: Simple lookup test : dbName : org.apache.commons.dbcp.BasicDataSource@25debb list() on /comp/env Context : Binding : jdbc: org.apache.naming.NamingContext listBindings() on /comp/env Context : Binding : jdbc: org.apache.naming.NamingContext:org.apache.naming.NamingContext@41f80c list() on full Context : Binding : DBmultileague: org.apache.commons.dbcp.BasicDataSource listBindings() on full Context today: Binding : DBmultileague: org.apache.commons.dbcp.BasicDataSource:org.apache.commons.dbcp.BasicD at aSource@25debb Connecting1 : Connecting2 : Connecting3 : Query1 : The relevant servlet code; try { out.println(list() on full Context : ); NamingEnumeration enum2 = ctx.list(java:/comp/env/jdbc/); while (enum2.hasMoreElements()) { out.print(Binding : ); out.println(enum2.nextElement().toString()); } out.println(listBindings() on full Context today: ); enum2 = ctx.listBindings(java:/comp/env/jdbc/); while (enum2.hasMoreElements()) { out.print(Binding : ); out.println(enum2.nextElement().toString()); } } catch (NamingException e) { out.println(JNDI lookup failed : + e); } try{ Context ctx2 = new InitialContext(); out.print(Connecting1 : ); Context envCtx2 = (Context) ctx2.lookup(java:/comp/env/); out.print(Connecting2 : ); DataSource ds = (DataSource) envCtx2.lookup(jdbc/DBmultileague); out.print(Connecting3 : ); if (ds != null) { out.print(Query1 : ); Connection conn = ds.getConnection(); out.print(Query2 : ); The context/resource definition: Context path=/DBmultileague-0.1-dev docBase=DBmultileague-0.1-dev debug=5 reloadable=true naming=true crossContext=true Logger className=org.apache.catalina.logger.FileLogger prefix=localhost_DBmultileague_log. suffix=.txt timestamp=true/ Resource name=jdbc/DBmultileague auth=Container type=javax.sql.DataSource/ ResourceParams name=jdbc/DBmultileague ParameternamemaxIdle/namevalue3000/value/Parameter ParameternamemaxActive/namevalue10/value/Parameter ParameternamemaxWait/namevalue10/value/Parameter Parameternameusername/namevaluesa/value/Parameter Parameternamepassword/namevalue/value/Parameter Parameter namefactory/name valueorg.apache.commons.dbcp.BasicDataSourceFactory/value /Parameter Parameter namedriverClassName/name valuecom.sybase.jdbc2.jdbc.SybDriver/value /Parameter Parameter nameurl/name valuejdbc:sybase:Tds:PowerBookPaul:11222/multiLeague/value /Parameter ParameternameinitialPoolSize/namevalue2/value/Parameter /ResourceParams -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Query
Q: Is there any difference between Apache and Tomcat server?please explain in detail. - Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now
RE: Query
Have you ever heard about the manual ? :) I don't think I have the time to explain in detail, but Apache is an HTTP server, and tomcat is a Servlet Container. Apache and tomcat are not made to do the same things, even though some of the things they do are very similar. You should be able to find something on that matter on the internet... Try www.google.com Hope it helps -reynir -Original Message- From: priya narayanan [mailto:[EMAIL PROTECTED]] Sent: 27. janúar 2003 10:46 To: [EMAIL PROTECTED] Subject: Query Q: Is there any difference between Apache and Tomcat server?please explain in detail. - Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: JNDI jdbc resources
Hey catv... used to use them just to confirm, this is not your server.xml Resource name=jdbc/myoracle auth=Container type=javax.sql.DataSource/ that I beleive was an earlier post and different from jdbc/DBmultileague anyway, I had a similar prob and it was in my server.xml that's why I suggested it. yours may be different shawn On Mon, 2003-01-27 at 19:45, Paul Carpenter wrote: Hi Peng For Shawn's benefit - the context you see is in my server.xml (well, actually, a separate xml file just like the manager.xml and admin.xml in the /webapps directory). Based on the other posting to the list, I've tried both with the web.xml file having nothing for the resource defined, and also as below (after the servlet mappings): resource-ref description Resource reference to a factory for java.sql.Connection instances that may be used for talking to a particular database that is configured in the server.xml file. /description res-ref-name jdbc/DBmultileague /res-ref-name res-type javax.sql.DataSource /res-type res-auth Container /res-auth /resource-ref -- shawn [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
problem in starting tomcat apache webserver
i have downloaded and configured apache jakarta tomacat 1.4 but it is not starting. while i click on startup it opens one window with start and as soon as other ms-dos opens it shows it is finished. means web server is not starting only. please give me proper guidence as soon as possible. thanking you] vaishali - Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now
Clustering Tomcat
Hi, Has anyone had any experience of clustering Tomcat that they would like to share? I have read that it is possible to cluster Tomcat with Apache but I am not sure if it is possible to cluster Tomcat on its own. Any help/pointers would be appreciated. Regards Jim. PLEASE READ: The information contained in this email is confidential and intended for the named recipient(s) only. If you are not an intended recipient of this email you must not copy, distribute or take any further action in reliance on it and you should delete it and notify the sender immediately. Email is not a secure method of communication and Nomura International plc cannot accept responsibility for the accuracy or completeness of this message or any attachment(s). Please examine this email for virus infection, for which Nomura International plc accepts no responsibility. If verification of this email is sought then please request a hard copy. Unless otherwise stated any views or opinions presented are solely those of the author and do not represent those of Nomura International plc. This email is intended for informational purposes only and is not a solicitation or offer to buy or sell securities or related financial instruments. Nomura International plc is regulated by the Financial Services Authority and is a member of the London Stock Exchange. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
FW: JMX : Questions
-Original Message- From: Thierry Legrain Sent: Monday, January 27, 2003 11:36 AM To: '[EMAIL PROTECTED]' Cc: Thierry Legrain Subject: JMX : Questions I have realized a generic MBeanBrowser and I want to test it with TomCat. How to connect MBeanServer with an external program? Can I implement my connector to manage Tomcat? How to write web app which handle MBeanServer? Can I use JNDI lookup to manipulate MBeanServer (and HOW)? Thanks. Thierry.
Serving files from the Apache docroot
I just brought up Tomcat in order to serve a handful of .jsp files which are in the Apache document root. Right now of course, when Apache hands off the request to Tomcat for /foo.jsp, Tomcat comes back with a 404 because it can't find the file: HTTP Status 404 - /foo.jsp type Status report message /foo.jsp description The requested resource (/foo.jsp) is not available. Apache Tomcat/4.1.18 Where do I tell Tomcat to look for this file in (eg) /var/www/html? Where is it currently looking? ///Peter -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Clustering Tomcat
Try http://www.theserverside.com/resources/article.jsp?l=Tomcat - should tell you all you need. -Original Message- From: Collins, Jim [mailto:[EMAIL PROTECTED]] Sent: Montag, 27. Jänner 2003 12:27 To: 'Tomcat Users List' Subject: Clustering Tomcat Hi, Has anyone had any experience of clustering Tomcat that they would like to share? I have read that it is possible to cluster Tomcat with Apache but I am not sure if it is possible to cluster Tomcat on its own. Any help/pointers would be appreciated. Regards Jim. PLEASE READ: The information contained in this email is confidential and intended for the named recipient(s) only. If you are not an intended recipient of this email you must not copy, distribute or take any further action in reliance on it and you should delete it and notify the sender immediately. Email is not a secure method of communication and Nomura International plc cannot accept responsibility for the accuracy or completeness of this message or any attachment(s). Please examine this email for virus infection, for which Nomura International plc accepts no responsibility. If verification of this email is sought then please request a hard copy. Unless otherwise stated any views or opinions presented are solely those of the author and do not represent those of Nomura International plc. This email is intended for informational purposes only and is not a solicitation or offer to buy or sell securities or related financial instruments. Nomura International plc is regulated by the Financial Services Authority and is a member of the London Stock Exchange. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Clustering Tomcat
Thanks Eric. -Original Message- From: Roberts, Eric [mailto:[EMAIL PROTECTED]] Sent: 27 January 2003 12:28 To: Tomcat Users List Subject: RE: Clustering Tomcat Try http://www.theserverside.com/resources/article.jsp?l=Tomcat - should tell you all you need. -Original Message- From: Collins, Jim [mailto:[EMAIL PROTECTED]] Sent: Montag, 27. Jänner 2003 12:27 To: 'Tomcat Users List' Subject: Clustering Tomcat Hi, Has anyone had any experience of clustering Tomcat that they would like to share? I have read that it is possible to cluster Tomcat with Apache but I am not sure if it is possible to cluster Tomcat on its own. Any help/pointers would be appreciated. Regards Jim. PLEASE READ: The information contained in this email is confidential and intended for the named recipient(s) only. If you are not an intended recipient of this email you must not copy, distribute or take any further action in reliance on it and you should delete it and notify the sender immediately. Email is not a secure method of communication and Nomura International plc cannot accept responsibility for the accuracy or completeness of this message or any attachment(s). Please examine this email for virus infection, for which Nomura International plc accepts no responsibility. If verification of this email is sought then please request a hard copy. Unless otherwise stated any views or opinions presented are solely those of the author and do not represent those of Nomura International plc. This email is intended for informational purposes only and is not a solicitation or offer to buy or sell securities or related financial instruments. Nomura International plc is regulated by the Financial Services Authority and is a member of the London Stock Exchange. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] PLEASE READ: The information contained in this email is confidential and intended for the named recipient(s) only. If you are not an intended recipient of this email you must not copy, distribute or take any further action in reliance on it and you should delete it and notify the sender immediately. Email is not a secure method of communication and Nomura International plc cannot accept responsibility for the accuracy or completeness of this message or any attachment(s). Please examine this email for virus infection, for which Nomura International plc accepts no responsibility. If verification of this email is sought then please request a hard copy. Unless otherwise stated any views or opinions presented are solely those of the author and do not represent those of Nomura International plc. This email is intended for informational purposes only and is not a solicitation or offer to buy or sell securities or related financial instruments. Nomura International plc is regulated by the Financial Services Authority and is a member of the London Stock Exchange. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Help in URLEncoder.encode()
Hi, I'm using URLEncoder.encode(data) to encode data to send to a servlet and things are working fine for english and other languages except for asian/CJK languages. When CJK data is encoded and decoded back, I'm getting only question marks (??). Any solution for this is appreciated. Its urgent. Thanks -Santosh __ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Serving files from the Apache docroot
Web application roots and content directories are defined by Context elements in Tomcat's server.xml. Tomcat is not like CGI or PHP or other typical dynamic solutions used with Apache. Tomcat is a web server in and of itself, it doesn't need Apache at all. Thus, there is some setup required on the Tomcat side before it will serve your requests. You might want to check the docs to come up to speed on how Tomcat finds content and how to create a directory structure to deploy web apps. John -Original Message- From: Peter Flynn [mailto:[EMAIL PROTECTED]] Sent: Monday, January 27, 2003 6:34 AM To: [EMAIL PROTECTED] Subject: Serving files from the Apache docroot I just brought up Tomcat in order to serve a handful of .jsp files which are in the Apache document root. Right now of course, when Apache hands off the request to Tomcat for /foo.jsp, Tomcat comes back with a 404 because it can't find the file: HTTP Status 404 - /foo.jsp type Status report message /foo.jsp description The requested resource (/foo.jsp) is not available. Apache Tomcat/4.1.18 Where do I tell Tomcat to look for this file in (eg) /var/www/html? Where is it currently looking? ///Peter -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: problem in starting tomcat apache webserver
Open up a command window, and start Tomcat manually with startup.bat. This will keep the window from closing and will show you any error messages that you might not see otherwise. Also, you can always check the log files for other information that might be helpful. John -Original Message- From: vaishali [mailto:[EMAIL PROTECTED]] Sent: Monday, January 27, 2003 5:58 AM To: [EMAIL PROTECTED] Subject: problem in starting tomcat apache webserver i have downloaded and configured apache jakarta tomacat 1.4 but it is not starting. while i click on startup it opens one window with start and as soon as other ms-dos opens it shows it is finished. means web server is not starting only. please give me proper guidence as soon as possible. thanking you] vaishali - Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Help in URLEncoder.encode()
Hi, I suspect this migth be a problem due to charset-type. If you where using jdk 1.4.x you would have a way of setting the charset type of the url-encoding. This means you can tell the URLEncoder to use UTF-8 for example or ISO-8859-1 charset. Sample : String encodedval= URLEncoder.encode(some string with special chars 'þæö' and spaces ,ISO-8859-1); I think your application is encoding with one charset and decoding with another Default charsetis UTF-8 (unicode). Hope it helps -reynir -Original Message- From: Santosh Kulkarni [mailto:[EMAIL PROTECTED]] Sent: 27. janúar 2003 12:45 To: [EMAIL PROTECTED] Subject: Help in URLEncoder.encode() Hi, I'm using URLEncoder.encode(data) to encode data to send to a servlet and things are working fine for english and other languages except for asian/CJK languages. When CJK data is encoded and decoded back, I'm getting only question marks (??). Any solution for this is appreciated. Its urgent. Thanks -Santosh __ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: problem in starting tomcat apache webserver
Given that small amount of information, i make the following assumptions: 1. You use Win9x/ME. (i guess from typical closing window effect you mentioned) 2. You didn't increase the space for environment variables in the properties of startup.bat/shutdown.bat as recommended in the readme file of Tomcat for Win9x systems. (btw readme files and docs are your friends, use them!) 3. Tomcat cannot create environment variables for JAVA_HOME etc. and fails to load If not, check the log files because you won't see the error messages otherwise on Win9x systems because of the closing window and provide more information. hope it helped to lead you on track again... Michael -Original Message- From: vaishali [mailto:[EMAIL PROTECTED]] Sent: Montag, 27. Januar 2003 11:58 To: [EMAIL PROTECTED] Subject: problem in starting tomcat apache webserver i have downloaded and configured apache jakarta tomacat 1.4 but it is not starting. while i click on startup it opens one window with start and as soon as other ms-dos opens it shows it is finished. means web server is not starting only. please give me proper guidence as soon as possible. thanking you] vaishali - Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Tomcat 4.1.19 java.lang.ClassNotFoundException: org.apache.catalina.core.StandardServer
I just re-install my old jdk and now it's re-working fine. -- Alexandre Jaquet - -BEGIN GEEK CODE BLOCK- Version: 3.12 GCM d+ s: a-- C U*+ P L--- E--- W+++ N+++ o K w+ O M-- V-- PS+++ PE+++ Y+++ PGP--- 5-- X R* tv b DI--- D G++ e* h++ r% y* --END GEEK CODE BLOCK-- - Original Message - From: alexj [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Monday, January 27, 2003 7:03 AM Subject: Re: Tomcat 4.1.19 java.lang.ClassNotFoundException: org.apache.catalina.core.StandardServer No isn't running as a nt service. -- Alexandre Jaquet - -BEGIN GEEK CODE BLOCK- Version: 3.12 GCM d+ s: a-- C U*+ P L--- E--- W+++ N+++ o K w+ O M-- V-- PS+++ PE+++ Y+++ PGP--- 5-- X R* tv b DI--- D G++ e* h++ r% y* --END GEEK CODE BLOCK-- - Original Message - From: Jacob Kjome [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Monday, January 27, 2003 5:15 AM Subject: Re: Tomcat 4.1.19 java.lang.ClassNotFoundException: org.apache.catalina.core.StandardServer Are you running Tomcat as a Service? If so, you need to uninstall the service and reinstall it in order to update the service with the new path to JAVA_HOME and any other paths that might have changed. http://www.mattkelli.com/tech/tomcat/ntservice.htm Jake At 10:07 PM 1/26/2003 +0100, you wrote: Hi, After I upgrade my jdk to be 1.4.1 and update my JAVA_HOME I could not anymore connect to Tomcat. I got the following error message : Using CATALINA_BASE: c:\tomcat Using CATALINA_HOME: c:\tomcat Using CATALINA_TMPDIR: c:tomcat\temp Using JAVA_HOME: C:\j2sdk1.4.1 Begin event threw exception java.lang.ClassNotFoundException: org.apache.catalina.core.StandardServer at java.net.URLClassLoader$1.run(URLClassLoader.java:198) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:186) at java.lang.ClassLoader.loadClass(ClassLoader.java:299) at java.lang.ClassLoader.loadClass(ClassLoader.java:255) at org.apache.commons.digester.ObjectCreateRule.begin(ObjectCreateRule.java:15 4 ) at org.apache.commons.digester.Digester.startElement(Digester.java:964) at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1490) at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:500) at org.apache.crimson.parser.Parser2.parse(Parser2.java:305) at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:442) at org.apache.commons.digester.Digester.parse(Digester.java:1216) at org.apache.catalina.startup.Catalina.start(Catalina.java:449) at org.apache.catalina.startup.Catalina.execute(Catalina.java:400) at org.apache.catalina.startup.Catalina.process(Catalina.java:180) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:3 9 ) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImp l .java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203) Catalina.start: java.lang.ClassNotFoundException: org.apache.catalina.core.StandardServer java.lang.ClassNotFoundException: org.apache.catalina.core.StandardServer at org.apache.commons.digester.Digester.createSAXException(Digester.java:1843) at org.apache.commons.digester.Digester.createSAXException(Digester.java:1865) at org.apache.commons.digester.Digester.startElement(Digester.java:967) at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1490) at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:500) at org.apache.crimson.parser.Parser2.parse(Parser2.java:305) at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:442) at org.apache.commons.digester.Digester.parse(Digester.java:1216) at org.apache.catalina.startup.Catalina.start(Catalina.java:449) at org.apache.catalina.startup.Catalina.execute(Catalina.java:400) at org.apache.catalina.startup.Catalina.process(Catalina.java:180) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:3 9 ) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImp l .java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203) Thanks for you help. -- Alexandre Jaquet - -BEGIN GEEK CODE BLOCK- Version: 3.12 GCM d+ s: a-- C U*+ P L--- E--- W+++ N+++ o K w+ O M-- V-- PS+++ PE+++ Y+++ PGP--- 5-- X R* tv b DI--- D G++ e* h++ r% y* --END GEEK CODE BLOCK-- -- To unsubscribe, e-mail: mailto:[EMAIL
RE: Help in URLEncoder.encode()
Santosh, This sounds like a character set problem. When the content is decoded, you need to make sure it's decoded using the character set used to encode it. Tomcat assumes ISO-8859-1 when decoding URL parameters. When you encode the data, use URLEncoder.encode(string, UTF-8), and decode it using something like: String param = request.getParameter(foo); byte[] b = param.getBytes(ISO-8859-1); // Give us back the bytes param = new String(b, UTF-8); // Interpret them correctly, this time. Hopefully that will get rid of your question marks. Dan. -Original Message- From: Santosh Kulkarni [mailto:[EMAIL PROTECTED]] Sent: 27 January 2003 12:45 To: [EMAIL PROTECTED] Subject: Help in URLEncoder.encode() Hi, I'm using URLEncoder.encode(data) to encode data to send to a servlet and things are working fine for english and other languages except for asian/CJK languages. When CJK data is encoded and decoded back, I'm getting only question marks (??). Any solution for this is appreciated. Its urgent. Thanks -Santosh __ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: [Tomcat 4.1] Caching JSP Output via Filter PLZ HELP!!
see the thread titled: RE: Tomcat 4.1.18/19 - How to activate gzip support? http://www.mail-archive.com/tomcat-user@jakarta.apache.org/msg82477.html and read the associated links about a similar problem (filter works for static content, not for dynamic). Charlie -Original Message- From: Jacob Hookom [mailto:[EMAIL PROTECTED]] Sent: Saturday, January 25, 2003 12:21 PM To: 'Tomcat Users List' Subject: RE: [Tomcat 4.1] Caching JSP Output via Filter PLZ HELP!! I did something very similar to what you have here, but I did a DualServletOutputStream where if the printwriter was requested from the HttpServletResponseWrapper, I would return a new PrintWriter that wrapped my DualServletOutputStream. The dual output stream contains the super.getOutputStream() (the actual response output) and the BufferedOutputStream that is used to getByteArray() and cache it. It's very strange though because again, HTML files are successfully cached and I can even look at the serialized content on the file system, but 0 bytes are written from JSP requests, even though I can see in my Log4j output that indeed the getWriter() method was called on my HttpServletResponseWrapper. Best Regards, Jacob Hookom -Original Message- From: li pan [mailto:[EMAIL PROTECTED]] Sent: Friday, January 24, 2003 11:01 PM To: [EMAIL PROTECTED] Subject: RE: [Tomcat 4.1] Caching JSP Output via Filter PLZ HELP!! Hello Jacob I have successfully implemented this idea. I guess you mean that get the writer of JSP, and replace the writer with another one which will cache the jsp results as well as output them to the original writer? Yes, it works. I didn't use a filter, I simply hacked tomcat, so that my cache facility can be used by any web applications without modifying source codes of them. But I didn't get trouble by getWriter(), I guess maybe : 1 before you get the writer from the filter, tomcat has already done something to the writer? I get it right after the JSP instance is built. 2 tomcat does not allow you to change the writer of a response while it is in the filter chain? I also replace the response with my own wrapper, so I don't change it. Here is my buffered writer: package servercache; import java.io.PrintWriter; import java.nio.CharBuffer; public class BufferedPrintWriter extends PrintWriter { private PrintWriter writer; private CharBuffer buffer = CharBuffer.allocate(1024); public BufferedPrintWriter(PrintWriter writer) { super(writer); //doesnot make any sense. this.writer = writer; } public void write(char[] buf, int offset, int count) { writer.write(buf, offset, count); buffer.put(buf, offset, count); } public void write(String str) { writer.write(str); buffer.put(str); } public void print(String str) { writer.print(str); if (str == null) { buffer.put(null); } else { buffer.put(str); } } public void println(String str) { writer.println(str); buffer.put(str); buffer.put(\n); } public CharBuffer getBuffer() { return buffer; } } and here is how it is created: writer = new BufferedPrintWriter(response.getWriter()); _ ÓëÁª»úµÄÅóÓѽøÐн»Á÷£¬ÇëʹÓà MSN Messenger: http://messenger.msn.com/cn -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
IllegalArgumentException using file://
Hi, I've got an exception using Struts ImageTag. It sends a java.lang.IllegalArgumentException in org.apache.catalina.connector.HttpResponseBase. I've declared this tag : html:imge src=file://I:/applications//myimage.gifproperty=ok / It seems Tomcat doesn't like this in the toAbsolute method. Is there a way to tell Tomcat that it can use file:// protocol ? My config : Struts 1.1b2, Tomcat 4.0.3 Regards Christophe -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Strange feature!! Can anyone help?
Hi there, I met a very strange feature of Tomcat and Apache. I have Apache2, Tomcat4, jk2 on Win2k. I need Apache and tomcat run as NT service. When I installed Apache and Tomcat, for both of them I chose Install as NT service. When I restart the computer without any user logon the NT, the Apache and tomcat run well as service (I can get my page), but when I Log off the NT user from the server computer, the service can not be found anymore. It means the service of Apche+Tomcat stops when the NT user is logoff. I need the service all the time, either the server computer is restarted or the NT user is logged off. What should I do with the configuration? Can anyone help? Many thanks in advance. BR, Annie
RE: Strange feature!! Can anyone help?
Annie, It sounds to me like you need to include the -Xrs flag as a JVM option to both of these services, but you need to be running at least version 1.3.1 of the jre/jdk. In a nutshell, this option tells the JVM to keep running even when someone logs off (you can check the Java docs at http://java.sun.com/j2se/1.4.1/docs/tooldocs/windows/java.html for more information). Doing this involves editing the registry directly. Here are the steps for Tomcat 4.1: First off, unless you're a registry hacking guru, you may want to make a copy of your entire registry before making any changes to it. One way is to run regedit.exe, choose Registry/Export Registry File and set the Export range to All. You can name the copy anything you'd like. 1. Run the registry editor of your choice (i.e. regedt32 or regedit). 2. Navigate to HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services/Apache Tomcat 4.1. 3. Select the Parameters key. 4. Look at the JVM Option Number entries to the right and note the highest value; mine was JVM Option Number 2 which is what I'll use for the rest of these steps. In this case I'm adding a fourth JVM option which will be called JVM Option Number 3. If your installation has a different highest value, just add 1 to it and proceed. 5. Go to Edit/Add Value... on the registry editor's menu. 6. Enter JVM Option Number 3 (without the double-quotes) for the Value Name and click OK. 7. Enter -Xrs (without the double-quotes) into the String Editor that comes up and click OK. 8. Double-click the JVM Option Count value and add 1 to the number there (In this case, I changed the 3 to a 4). You'll need to do something similar for Apache, but since I'm not running Apache I can't give you the detailed steps :-( Once your registry edits are done, close the registry editor and restart the machine. You should be able to log off and have both of these services continue to function. Hope this helps. -John -Original Message- From: Peng Annie [mailto:[EMAIL PROTECTED]] Sent: Monday, January 27, 2003 4:02 AM To: '[EMAIL PROTECTED]' Subject: Strange feature!! Can anyone help? Hi there, I met a very strange feature of Tomcat and Apache. I have Apache2, Tomcat4, jk2 on Win2k. I need Apache and tomcat run as NT service. When I installed Apache and Tomcat, for both of them I chose Install as NT service. When I restart the computer without any user logon the NT, the Apache and tomcat run well as service (I can get my page), but when I Log off the NT user from the server computer, the service can not be found anymore. It means the service of Apche+Tomcat stops when the NT user is logoff. I need the service all the time, either the server computer is restarted or the NT user is logged off. What should I do with the configuration? Can anyone help? Many thanks in advance. BR, Annie -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Tomcat 4.1.18 - IIS - JK2 - getRemoteUser() returns Null
Hi I'm using : Tomcat 4.1.18 IIS 5.1. (running on XP) JK2 (isapi_redirector2.dll) Jdk 1.4.1_1 I tried to set request.tomcatAuthentication=false In my jk2.properties. For some reason IIS does not authenticate the user, and when I ask for the user (on the first request) in a jsp document, with request.getRemoteUser() it returns null. Can anyone point me in the correct direction here ? I sent an email just before weekend, at that time I was trying to use the isapi_redirect(but not isapi_redirector2). I had similar problems at that time, and I was hoping configuring the new jk2 would solve that... Thanx - [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: How to know the Performence of Tomcat Server?
Howdy, Before you start testing, determine your goals. For example, how many concurrent users does the application need to handle? And at the peak user number, what should be the max response time for a page? Then start writing load/stress test scripts that simulate very few users, normal usage, and the peak users. Hit the pages and record in your tool the response time. Graph the min,avg,max response times for each page in your application with the number of users as the x-axis. If you're meeting your goals, you're done. If not, you need to tune your app and maybe tomcat. But you should always start by tuning your application and making it as efficient as possible. For this, run it with a profiler such as OptimizeIt and look for bottlenecks. Refactor and rewrite as necessary. Redeploy your app and rerun your load tests, recording the new results. Repeat until goals are met. Yoav Shapira Millennium ChemInformatics -Original Message- From: Ravv VenuGopal [mailto:[EMAIL PROTECTED]] Sent: Monday, January 27, 2003 2:17 AM To: [EMAIL PROTECTED] Subject: How to know the Performence of Tomcat Server? Hello, I am using LoadRunner6.5 for Load Test my web application. My Application Environment: - Tech : Java(servlets,jsp) Server: Jakarta-Tomcat-4.0.4 on lInux machine d/b : MySql 3.23.41 on Linux machine I am doing LoadTest(for 10,50,75,100,,, users) to my web application.I want to know the performence mertics of Tomcat server . How can we judge that the Tomacat is reliable under different loads. To know the performence of Tomcat what are the situvations we have to consider.Is there any specific values which should occur while doing the test please give some information regarding this -venu -- To unsubscribe, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] For additional commands, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: [Tomcat 4.1] Caching JSP Output via Filter PLZ HELP!!
I did finally get my caching filter to work by following the same logic included in the GZip filter included in Tomcat 4.1.18. It works VERY well :-) Hopefully we can resurrect the Common's Cache project that includes filters and taglibs? -Jacob | -Original Message- | From: Cox, Charlie [mailto:[EMAIL PROTECTED]] | Sent: Monday, January 27, 2003 7:48 AM | To: 'Tomcat Users List' | Cc: 'Jacob Kjome' | Subject: RE: [Tomcat 4.1] Caching JSP Output via Filter PLZ HELP!! | | see the thread titled: | RE: Tomcat 4.1.18/19 - How to activate gzip support? | http://www.mail-archive.com/tomcat-user@jakarta.apache.org/msg82477.html | | and read the associated links about a similar problem (filter works for | static content, not for dynamic). | | Charlie | | | -Original Message- | From: Jacob Hookom [mailto:[EMAIL PROTECTED]] | Sent: Saturday, January 25, 2003 12:21 PM | To: 'Tomcat Users List' | Subject: RE: [Tomcat 4.1] Caching JSP Output via Filter PLZ HELP!! | | | I did something very similar to what you have here, but I did a | DualServletOutputStream where if the printwriter was | requested from the | HttpServletResponseWrapper, I would return a new PrintWriter | that wrapped my | DualServletOutputStream. The dual output stream contains the | super.getOutputStream() (the actual response output) and the | BufferedOutputStream that is used to getByteArray() and cache it. | | It's very strange though because again, HTML files are | successfully cached | and I can even look at the serialized content on the file | system, but 0 | bytes are written from JSP requests, even though I can see in my Log4j | output that indeed the getWriter() method was called on my | HttpServletResponseWrapper. | | Best Regards, | Jacob Hookom | | -Original Message- | From: li pan [mailto:[EMAIL PROTECTED]] | Sent: Friday, January 24, 2003 11:01 PM | To: [EMAIL PROTECTED] | Subject: RE: [Tomcat 4.1] Caching JSP Output via Filter PLZ HELP!! | | | Hello Jacob |I have successfully implemented this idea. I guess you mean | that get the | writer of JSP, and replace the writer with another one which | will cache the | jsp results as well as output them to the original writer? | Yes, it works. |I didn't use a filter, I simply hacked tomcat, so that my | cache facility | can be used by any web applications without modifying source | codes of them. |But I didn't get trouble by getWriter(), I guess maybe : | 1 before you get the writer from the filter, tomcat has already done | something to the writer? I get it right after the JSP | instance is built. | 2 tomcat does not allow you to change the writer of a | response while it is | in the filter chain? I also replace the response with my own | wrapper, so I | don't change it. | | Here is my buffered writer: | | package servercache; | import java.io.PrintWriter; | import java.nio.CharBuffer; | public class BufferedPrintWriter | extends PrintWriter { | | private PrintWriter writer; | private CharBuffer buffer = CharBuffer.allocate(1024); | | public BufferedPrintWriter(PrintWriter writer) { | super(writer); //doesnot make any sense. | this.writer = writer; | } | | public void write(char[] buf, int offset, int count) { | writer.write(buf, offset, count); | buffer.put(buf, offset, count); | } | | public void write(String str) { | writer.write(str); | buffer.put(str); | } | | public void print(String str) { | writer.print(str); | | if (str == null) { | buffer.put(null); | } else { | buffer.put(str); | } | } | | public void println(String str) { | writer.println(str); | buffer.put(str); | buffer.put(\n); | } | | public CharBuffer getBuffer() { | | return buffer; | } | } | | and here is how it is created: | | writer = new BufferedPrintWriter(response.getWriter()); | | | | _ | ÓëÁª»úµÄÅóÓѽøÐн»Á÷£¬ÇëʹÓà MSN Messenger: http://messenger.msn.com/cn | | | -- | To unsubscribe, e-mail: | mailto:[EMAIL PROTECTED] | For additional commands, e-mail: | mailto:[EMAIL PROTECTED] | | | -- | To unsubscribe, e-mail: | mailto:[EMAIL PROTECTED] | For additional commands, e-mail: | mailto:[EMAIL PROTECTED] | | | -- | To unsubscribe, e-mail: mailto:tomcat-user- | [EMAIL PROTECTED] | For additional commands, e-mail: mailto:tomcat-user- | [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Jakarta Tomcat ready to serve
Hi, I had a relative who used to work for Orbotech, by the way. I do not know if this is a proper way to send a question about Jakarta Tomcat usage, and if it is not, please accept my apologies and guide me. This is the proper forum. I am running an application that uses the Jakarta Tomcat server. Right now I need to start the Jakarta Tomcat (JT) server, wait a few seconds, check in the Jakarta Tomcat window that the server is running and only then run the application itself. I am looking for a way to sense the fact that JT is ready, and then launch automatically the application. Are you starting tomcat using a command-line, e.g. Runtime.getRuntime().exec(startup.sh), or using org.apache.catalina.startup.Embedded? The latter gives you more options, the best one being for you to implement a LifecycleListener (see the JavaDoc for org.apache.catalina.LifecycleListener) and wait for the AFTER_START_EVENT type to come to your listener. If you're not using the Embedded class, or you don't like the above solution, another way to ensure the server is started is to ping the URL of the server. So you know what host/port the server is going start on, right? Attempt to create a URLConnection to the host/port. Keep trying a specified number of times, or a specified period of time, until you get a good response. A good response is an HttpResponse whose code is not 4xx or 5xx. Ideally you want to configure the server such that you have a URL to ping that will return a 200 response code. Hope this helps, Yoav Shapira Millennium ChemInformatics -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Property file not picked up right by servlet
Howdy, Are the environment variables for PATH and CLASSPATH (mainly the latter) different between your NT and XP systems? Yoav Shapira Millennium ChemInformatics -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Friday, January 24, 2003 5:18 PM To: [EMAIL PROTECTED] Subject: RE: Property file not picked up right by servlet Wendy, Right in the beginning, we have a login servlet that loads the properties file entries. The servlet first gets the context and then looks for the prop files under property + file separater. In NT, I had the properties file under c:/Tomcat/bin/property (and it is still working). I tried this in XP as well, then I tried to copy under apache bin! (Just trying anything to get it working.) The error I am getting is on the console, Property file not found, Loading default properties, and gives me wrong system name. I am running Apache 1.3.27 and Tomcat 4.0. Thanks for your help, Sudha Sudha Ramanujan SunGard Futures Systems [EMAIL PROTECTED] (312) 577 6179 (312) 577 6101 - Fax -Original Message- From: Wendy Smoak [mailto:[EMAIL PROTECTED]] Sent: Friday, January 24, 2003 3:12 PM To: 'Tomcat Users List' Subject: RE: Property file not picked up right by servlet I just moved to XP from NT and setup the apache and Tomcat servers. They work fine for the servlets, jsps and so the setup seem to be fine. But my servlet is not finding the property file that connects me to the right system. What is the code in your Servlet that is not working, and where exactly is the properties file? What is the exact error message you're seeing? I would suspect file permissions, without knowing anything else. -- Wendy Smoak Applications Systems Analyst, Sr. Arizona State University PA Information Resources Management -- To unsubscribe, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] For additional commands, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Tomcat 5 dist: servlet/* - 404
Howdy, As you know, it's alpha. I wouldn't even call it a dist, more a nightly build. More to your point, do you have an invoker servlet commented in? Yoav Shapira Millennium ChemInformatics -Original Message- From: Timo Nentwig [mailto:[EMAIL PROTECTED]] Sent: Saturday, January 25, 2003 4:06 PM To: Tomcat Users List Subject: Tomcat 5 dist: servlet/* - 404 I just installed the alpha version of Tomcat 5 - while JSPs (i.e. /jsp-examples/) do work properly, servlet/* (/servlets-examples/) does not: 404. -- http://nitwit.de/ Sixty years ago I knew everything; now I know nothing; education is a progressive discovery of our own ignorance. - Will Durant -- To unsubscribe, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] For additional commands, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
John, you are great!
It works!!! I am extremely happy!! Thanks a lot!! Cheers! Annie -Original Message- From: Lorenti, John [mailto:[EMAIL PROTECTED]] Sent: 27 January 2003 16:00 To: 'Tomcat Users List' Subject: RE: Strange feature!! Can anyone help? Annie, It sounds to me like you need to include the -Xrs flag as a JVM option to both of these services, but you need to be running at least version 1.3.1 of the jre/jdk. In a nutshell, this option tells the JVM to keep running even when someone logs off (you can check the Java docs at http://java.sun.com/j2se/1.4.1/docs/tooldocs/windows/java.html for more information). Doing this involves editing the registry directly. Here are the steps for Tomcat 4.1: First off, unless you're a registry hacking guru, you may want to make a copy of your entire registry before making any changes to it. One way is to run regedit.exe, choose Registry/Export Registry File and set the Export range to All. You can name the copy anything you'd like. 1. Run the registry editor of your choice (i.e. regedt32 or regedit). 2. Navigate to HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services/Apache Tomcat 4.1. 3. Select the Parameters key. 4. Look at the JVM Option Number entries to the right and note the highest value; mine was JVM Option Number 2 which is what I'll use for the rest of these steps. In this case I'm adding a fourth JVM option which will be called JVM Option Number 3. If your installation has a different highest value, just add 1 to it and proceed. 5. Go to Edit/Add Value... on the registry editor's menu. 6. Enter JVM Option Number 3 (without the double-quotes) for the Value Name and click OK. 7. Enter -Xrs (without the double-quotes) into the String Editor that comes up and click OK. 8. Double-click the JVM Option Count value and add 1 to the number there (In this case, I changed the 3 to a 4). You'll need to do something similar for Apache, but since I'm not running Apache I can't give you the detailed steps :-( Once your registry edits are done, close the registry editor and restart the machine. You should be able to log off and have both of these services continue to function. Hope this helps. -John -Original Message- From: Peng Annie [mailto:[EMAIL PROTECTED]] Sent: Monday, January 27, 2003 4:02 AM To: '[EMAIL PROTECTED]' Subject: Strange feature!! Can anyone help? Hi there, I met a very strange feature of Tomcat and Apache. I have Apache2, Tomcat4, jk2 on Win2k. I need Apache and tomcat run as NT service. When I installed Apache and Tomcat, for both of them I chose Install as NT service. When I restart the computer without any user logon the NT, the Apache and tomcat run well as service (I can get my page), but when I Log off the NT user from the server computer, the service can not be found anymore. It means the service of Apche+Tomcat stops when the NT user is logoff. I need the service all the time, either the server computer is restarted or the NT user is logged off. What should I do with the configuration? Can anyone help? Many thanks in advance. BR, Annie -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Starting tomcat from init scripts (HP/UX)
Hi All, Tomcat starts fine if I call startup.sh manually, but not if it is called from the init scripts when the HP/UX box starts. When trying to start tomcat from the init scripts when the HP/UX box is booting, tomcat seems to start up fine but then on the last line in catalina.out it just says that it is shuttong down and that's the end of it. So the logs are not very useful for helping me figure out what the problem might be. Has anyone encountered this problem, and what was the fix? Thanks, Pascal Forget -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Starting tomcat from init scripts (HP/UX)
Your init scripts do not have the same environment as your login environment. That is, whe you login, things like JAVA_HOME and CATALINA_HOME are set. When you run a script through init, they aren't. Change your init script to set the values of JAVA_HOME and CATALINA_HOME, or source the login files (like /etc/profile, perhaps) where those variables are declared and set. John -Original Message- From: Pascal Forget [mailto:[EMAIL PROTECTED]] Sent: Monday, January 27, 2003 9:44 AM To: Tomcat Users List Subject: Starting tomcat from init scripts (HP/UX) Hi All, Tomcat starts fine if I call startup.sh manually, but not if it is called from the init scripts when the HP/UX box starts. When trying to start tomcat from the init scripts when the HP/UX box is booting, tomcat seems to start up fine but then on the last line in catalina.out it just says that it is shuttong down and that's the end of it. So the logs are not very useful for helping me figure out what the problem might be. Has anyone encountered this problem, and what was the fix? Thanks, Pascal Forget -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Serving files from the Apache docroot
Hi Peter, I had and have the same problem - and didn't find a solution yet. A more or less good workaround I discussed with (or better was a suggestion by) Mike Bachrynowski (who is also member on the list) could be to completely mirror the apache docroot to the tomcat docroot. This in my eyes is 'a little' waste of disk space and an alternative I though about is, to set the tomcat docroot to the same local dir the apache's points to - but I haven't tested this, maybe causes bad bad problems. As far as I understood the mayor cause for all this is, that jk2 developers due to performance reasons don' t want to send back requests (for images, .js, .css ...) to the apache and - what you and Mike and I want to do becomes impossible. -- LIST: is this right (I'm not really sure whether I should believe it)? What I'm asking myself: is there anybody on the list who is really highly experienced in jk2 coniguration? Well, over all, hope this helps a bit, Henning Peter Flynn wrote: I just brought up Tomcat in order to serve a handful of .jsp files which are in the Apache document root. Right now of course, when Apache hands off the request to Tomcat for /foo.jsp, Tomcat comes back with a 404 because it can't find the file: HTTP Status 404 - /foo.jsp type Status report message /foo.jsp description The requested resource (/foo.jsp) is not available. Apache Tomcat/4.1.18 Where do I tell Tomcat to look for this file in (eg) /var/www/html? Where is it currently looking? ///Peter -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Strange feature!! Can anyone help?
No need to edit the registry. Just install JDK1.3.1 or better and use the following instructions to install your service: http://www.mattkelli.com/tech/tomcat/ntservice.htm Note that you should set up your environment variables as System variables not User variables. Jake At 09:00 AM 1/27/2003 -0500, you wrote: Annie, It sounds to me like you need to include the -Xrs flag as a JVM option to both of these services, but you need to be running at least version 1.3.1 of the jre/jdk. In a nutshell, this option tells the JVM to keep running even when someone logs off (you can check the Java docs at http://java.sun.com/j2se/1.4.1/docs/tooldocs/windows/java.html for more information). Doing this involves editing the registry directly. Here are the steps for Tomcat 4.1: First off, unless you're a registry hacking guru, you may want to make a copy of your entire registry before making any changes to it. One way is to run regedit.exe, choose Registry/Export Registry File and set the Export range to All. You can name the copy anything you'd like. 1. Run the registry editor of your choice (i.e. regedt32 or regedit). 2. Navigate to HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services/Apache Tomcat 4.1. 3. Select the Parameters key. 4. Look at the JVM Option Number entries to the right and note the highest value; mine was JVM Option Number 2 which is what I'll use for the rest of these steps. In this case I'm adding a fourth JVM option which will be called JVM Option Number 3. If your installation has a different highest value, just add 1 to it and proceed. 5. Go to Edit/Add Value... on the registry editor's menu. 6. Enter JVM Option Number 3 (without the double-quotes) for the Value Name and click OK. 7. Enter -Xrs (without the double-quotes) into the String Editor that comes up and click OK. 8. Double-click the JVM Option Count value and add 1 to the number there (In this case, I changed the 3 to a 4). You'll need to do something similar for Apache, but since I'm not running Apache I can't give you the detailed steps :-( Once your registry edits are done, close the registry editor and restart the machine. You should be able to log off and have both of these services continue to function. Hope this helps. -John -Original Message- From: Peng Annie [mailto:[EMAIL PROTECTED]] Sent: Monday, January 27, 2003 4:02 AM To: '[EMAIL PROTECTED]' Subject: Strange feature!! Can anyone help? Hi there, I met a very strange feature of Tomcat and Apache. I have Apache2, Tomcat4, jk2 on Win2k. I need Apache and tomcat run as NT service. When I installed Apache and Tomcat, for both of them I chose Install as NT service. When I restart the computer without any user logon the NT, the Apache and tomcat run well as service (I can get my page), but when I Log off the NT user from the server computer, the service can not be found anymore. It means the service of Apche+Tomcat stops when the NT user is logoff. I need the service all the time, either the server computer is restarted or the NT user is logged off. What should I do with the configuration? Can anyone help? Many thanks in advance. BR, Annie -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Strange feature!! Can anyone help?
I was wondering about that. I haven't had to use the -Xrs flag or edit the registry yet. Thanks for the clarification. John -Original Message- From: Jacob Kjome [mailto:[EMAIL PROTECTED]] Sent: Monday, January 27, 2003 10:06 AM To: Tomcat Users List Subject: RE: Strange feature!! Can anyone help? No need to edit the registry. Just install JDK1.3.1 or better and use the following instructions to install your service: http://www.mattkelli.com/tech/tomcat/ntservice.htm Note that you should set up your environment variables as System variables not User variables. Jake At 09:00 AM 1/27/2003 -0500, you wrote: Annie, It sounds to me like you need to include the -Xrs flag as a JVM option to both of these services, but you need to be running at least version 1.3.1 of the jre/jdk. In a nutshell, this option tells the JVM to keep running even when someone logs off (you can check the Java docs at http://java.sun.com/j2se/1.4.1/docs/tooldocs/windows/java.htm l for more information). Doing this involves editing the registry directly. Here are the steps for Tomcat 4.1: First off, unless you're a registry hacking guru, you may want to make a copy of your entire registry before making any changes to it. One way is to run regedit.exe, choose Registry/Export Registry File and set the Export range to All. You can name the copy anything you'd like. 1. Run the registry editor of your choice (i.e. regedt32 or regedit). 2. Navigate to HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services/Apache Tomcat 4.1. 3. Select the Parameters key. 4. Look at the JVM Option Number entries to the right and note the highest value; mine was JVM Option Number 2 which is what I'll use for the rest of these steps. In this case I'm adding a fourth JVM option which will be called JVM Option Number 3. If your installation has a different highest value, just add 1 to it and proceed. 5. Go to Edit/Add Value... on the registry editor's menu. 6. Enter JVM Option Number 3 (without the double-quotes) for the Value Name and click OK. 7. Enter -Xrs (without the double-quotes) into the String Editor that comes up and click OK. 8. Double-click the JVM Option Count value and add 1 to the number there (In this case, I changed the 3 to a 4). You'll need to do something similar for Apache, but since I'm not running Apache I can't give you the detailed steps :-( Once your registry edits are done, close the registry editor and restart the machine. You should be able to log off and have both of these services continue to function. Hope this helps. -John -Original Message- From: Peng Annie [mailto:[EMAIL PROTECTED]] Sent: Monday, January 27, 2003 4:02 AM To: '[EMAIL PROTECTED]' Subject: Strange feature!! Can anyone help? Hi there, I met a very strange feature of Tomcat and Apache. I have Apache2, Tomcat4, jk2 on Win2k. I need Apache and tomcat run as NT service. When I installed Apache and Tomcat, for both of them I chose Install as NT service. When I restart the computer without any user logon the NT, the Apache and tomcat run well as service (I can get my page), but when I Log off the NT user from the server computer, the service can not be found anymore. It means the service of Apche+Tomcat stops when the NT user is logoff. I need the service all the time, either the server computer is restarted or the NT user is logged off. What should I do with the configuration? Can anyone help? Many thanks in advance. BR, Annie -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Serving files from the Apache docroot
Neither JK or JK2 get involved with a request unless the request matches a mapping. I don't know what you mean by send back requests. If you're using Apache, ALL requests come in on port 80, and it's up to Apache to decide if the request should go to Tomcat or be handled directly. There's no need to mirror content in two directories, nor is there any need to point Tomcat at Apache's content root. You can just make Apache's doc root the same as Tomcat's Context root and the issue goes away. Or, just put your JSP and servlets in Tomcat's doc root and leave it like that. If you have Apache serving static content like images, those images don't have to be in your web application's root at all if you don't want them to be. Example: http://some.host.com/images/myimage.gif (Apache doc root /usr/local/apache/htdocs/images, never goes to Tomcat) http://some.host.com/my.jsp (Tomcat Context /jsp because of URL mapping of /*.jsp) John -Original Message- From: Henning Heil [mailto:[EMAIL PROTECTED]] Sent: Monday, January 27, 2003 9:51 AM To: Tomcat Users List Subject: Re: Serving files from the Apache docroot Hi Peter, I had and have the same problem - and didn't find a solution yet. A more or less good workaround I discussed with (or better was a suggestion by) Mike Bachrynowski (who is also member on the list) could be to completely mirror the apache docroot to the tomcat docroot. This in my eyes is 'a little' waste of disk space and an alternative I though about is, to set the tomcat docroot to the same local dir the apache's points to - but I haven't tested this, maybe causes bad bad problems. As far as I understood the mayor cause for all this is, that jk2 developers due to performance reasons don' t want to send back requests (for images, .js, .css ...) to the apache and - what you and Mike and I want to do becomes impossible. -- LIST: is this right (I'm not really sure whether I should believe it)? What I'm asking myself: is there anybody on the list who is really highly experienced in jk2 coniguration? Well, over all, hope this helps a bit, Henning Peter Flynn wrote: I just brought up Tomcat in order to serve a handful of .jsp files which are in the Apache document root. Right now of course, when Apache hands off the request to Tomcat for /foo.jsp, Tomcat comes back with a 404 because it can't find the file: HTTP Status 404 - /foo.jsp type Status report message /foo.jsp description The requested resource (/foo.jsp) is not available. Apache Tomcat/4.1.18 Where do I tell Tomcat to look for this file in (eg) /var/www/html? Where is it currently looking? ///Peter -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Starting tomcat from init scripts (HP/UX)
Thanks for the tip, John. I already set CATALINA_HOME and JAVA_HOME near the top of catalina.sh for that very reason, so maybe it's something else in the environment. Anyway your email provided us with a good hint on what we should look for. Thanks! Pascal -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Starting tomcat from init scripts (HP/UX)
Yeah we had wacky issues with that too. We had some incomptentant admins who tried starting up tomcat before the network was brought up. We also ran into wacky shell behavior (can't remember the specifics) that java did not like to start on boot from any run level. I think in the end we added an entry to /etc/inittab to a internally written/adapted script which takes one arg of stop/start ... and does the appropriate action to all our tomcat instances. I can post the script if I can get permission. Its a hard thing to test because in our 2+ yrs with our HPUX boxes - we rebooted them twice. (And that was because the box needed moved across the country) -Tim Pascal Forget wrote: Hi All, Tomcat starts fine if I call startup.sh manually, but not if it is called from the init scripts when the HP/UX box starts. When trying to start tomcat from the init scripts when the HP/UX box is booting, tomcat seems to start up fine but then on the last line in catalina.out it just says that it is shuttong down and that's the end of it. So the logs are not very useful for helping me figure out what the problem might be. Has anyone encountered this problem, and what was the fix? Thanks, Pascal Forget -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Tomcat 3.2`
Hello all, We have a problem with Tomcat 3.2. We have developed an application that needs to work in 3.2 (an upgrade is not an option). The problem is that Tomcat does not seem to be picking up the jars in the WEB-INF/lib folder, and this is resulting in ClassNotFoundExceptions. To be more specific, classes112.jar (Oracle drivers) and Struts1.02.jar are not being picked up. Is anyone aware of any issues that we should be aware of which may be causing this ? Are there some classes in those libraries that need to be removed ? Any help would be much appreciated. Thanks Mehdi Nejad - Senior Developer [EMAIL PROTECTED] ~~ Bluewave Ltd - Business Solutions http://www.bluewave.com Tel. +44 (0)20 7479 8394 ~~ -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Starting tomcat from init scripts (HP/UX)
Does your init script call catalina.sh directly? John -Original Message- From: Pascal Forget [mailto:[EMAIL PROTECTED]] Sent: Monday, January 27, 2003 10:17 AM To: Tomcat Users List Subject: Re: Starting tomcat from init scripts (HP/UX) Thanks for the tip, John. I already set CATALINA_HOME and JAVA_HOME near the top of catalina.sh for that very reason, so maybe it's something else in the environment. Anyway your email provided us with a good hint on what we should look for. Thanks! Pascal -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Strange feature!! Can anyone help?
Thanks!! -Original Message- From: Jacob Kjome [mailto:[EMAIL PROTECTED]] Sent: 27 January 2003 17:06 To: Tomcat Users List Subject: RE: Strange feature!! Can anyone help? No need to edit the registry. Just install JDK1.3.1 or better and use the following instructions to install your service: http://www.mattkelli.com/tech/tomcat/ntservice.htm Note that you should set up your environment variables as System variables not User variables. Jake At 09:00 AM 1/27/2003 -0500, you wrote: Annie, It sounds to me like you need to include the -Xrs flag as a JVM option to both of these services, but you need to be running at least version 1.3.1 of the jre/jdk. In a nutshell, this option tells the JVM to keep running even when someone logs off (you can check the Java docs at http://java.sun.com/j2se/1.4.1/docs/tooldocs/windows/java.html for more information). Doing this involves editing the registry directly. Here are the steps for Tomcat 4.1: First off, unless you're a registry hacking guru, you may want to make a copy of your entire registry before making any changes to it. One way is to run regedit.exe, choose Registry/Export Registry File and set the Export range to All. You can name the copy anything you'd like. 1. Run the registry editor of your choice (i.e. regedt32 or regedit). 2. Navigate to HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services/Apache Tomcat 4.1. 3. Select the Parameters key. 4. Look at the JVM Option Number entries to the right and note the highest value; mine was JVM Option Number 2 which is what I'll use for the rest of these steps. In this case I'm adding a fourth JVM option which will be called JVM Option Number 3. If your installation has a different highest value, just add 1 to it and proceed. 5. Go to Edit/Add Value... on the registry editor's menu. 6. Enter JVM Option Number 3 (without the double-quotes) for the Value Name and click OK. 7. Enter -Xrs (without the double-quotes) into the String Editor that comes up and click OK. 8. Double-click the JVM Option Count value and add 1 to the number there (In this case, I changed the 3 to a 4). You'll need to do something similar for Apache, but since I'm not running Apache I can't give you the detailed steps :-( Once your registry edits are done, close the registry editor and restart the machine. You should be able to log off and have both of these services continue to function. Hope this helps. -John -Original Message- From: Peng Annie [mailto:[EMAIL PROTECTED]] Sent: Monday, January 27, 2003 4:02 AM To: '[EMAIL PROTECTED]' Subject: Strange feature!! Can anyone help? Hi there, I met a very strange feature of Tomcat and Apache. I have Apache2, Tomcat4, jk2 on Win2k. I need Apache and tomcat run as NT service. When I installed Apache and Tomcat, for both of them I chose Install as NT service. When I restart the computer without any user logon the NT, the Apache and tomcat run well as service (I can get my page), but when I Log off the NT user from the server computer, the service can not be found anymore. It means the service of Apche+Tomcat stops when the NT user is logoff. I need the service all the time, either the server computer is restarted or the NT user is logged off. What should I do with the configuration? Can anyone help? Many thanks in advance. BR, Annie -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: INSECURE to rely on sendRedirect (??)
Craig R. McClanahan wrote: If you're sending a redirect from a servlet (or a filter) via Java code, you must do a return statement afterwards to avoid sending the rest of the content that would otherwise be sent: response.sendRedirect(...); return; Thanks for your confirmation on this. Same thing goes if you are (shudder) doing the redirect from within a JSP page: % response.sendRedirect(...); return; % I gather from your posts (this and others) that you're not a fan of putting decision logic in the JSPs!! :) Erik -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Bean class not found in web application
Wilson Snook wrote: The long and the short of it is I would recommend avoiding the property name 'uName'. I think I would also recommend not using Komodo 1.2 to write bean classes. However, I would recommend using JBuilder 6 for the purpose, even if it is a bit of a large beast for small beans. Just a quick question for anyone who cares to answer -- do you all use the PropertyChangeListener and PropertyChangeSupport.firePropertyChange() in your beans, or do you just create a simple class with getters and setters? I'm just wondering how worthwhile it would be to run through my beans and rewrite them with the PropertyChangeListener and PropertyChangeSupport classes (from package java.beans). Erik -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Serving files from the Apache docroot
A further thought is that this is because Tomcat4 is configured as both stand-alone and as JK2 connected to Apache. I only hold on Tomcat4, jsp elements and a restricted set of xml and xslt elements. I hold on Apache2 everything else. By forceing a directory change in href and src HTML attribute references then Apache2 works correctly. I use JSP to dynamically format (using XSLT) an XML page to HTML. The generated HTML page contains the following. If the generated html page contains LINK REL=STYLESHEET TYPE=text/css HREF=../styles/mainie5.css / all works well and the stylesheet is served from Apache2 as required. If the generated html page contains LINK REL=STYLESHEET TYPE=text/css HREF=mainie5.css / then mainie5.css cannot be found. If I add this file to Tomcat all works OK. Likewise references to ../images/logo.gif are directed to Apache2 whereas logo.gif is directed to Tomcat4. My IT Operations colleagues who have a more detailed knowledge of configuring Apache than I have suggest that if Tomcat is not configured as stand-alone and MIME type support on Tomcat for all except jsp, xml and xslt is removed then all should work OK. Perhaps this is a development non issue because in production we would only run Tomcat behind Apache2 and never as stand-alonetherefore the problem would not occur. Mike -Original Message- From: Henning Heil [mailto:[EMAIL PROTECTED]] Sent: 27 January 2003 14:51 To: Tomcat Users List Subject: Re: Serving files from the Apache docroot Hi Peter, I had and have the same problem - and didn't find a solution yet. A more or less good workaround I discussed with (or better was a suggestion by) Mike Bachrynowski (who is also member on the list) could be to completely mirror the apache docroot to the tomcat docroot. This in my eyes is 'a little' waste of disk space and an alternative I though about is, to set the tomcat docroot to the same local dir the apache's points to - but I haven't tested this, maybe causes bad bad problems. As far as I understood the mayor cause for all this is, that jk2 developers due to performance reasons don' t want to send back requests (for images, .js, .css ...) to the apache and - what you and Mike and I want to do becomes impossible. -- LIST: is this right (I'm not really sure whether I should believe it)? What I'm asking myself: is there anybody on the list who is really highly experienced in jk2 coniguration? Well, over all, hope this helps a bit, Henning Peter Flynn wrote: I just brought up Tomcat in order to serve a handful of .jsp files which are in the Apache document root. Right now of course, when Apache hands off the request to Tomcat for /foo.jsp, Tomcat comes back with a 404 because it can't find the file: HTTP Status 404 - /foo.jsp type Status report message /foo.jsp description The requested resource (/foo.jsp) is not available. Apache Tomcat/4.1.18 Where do I tell Tomcat to look for this file in (eg) /var/www/html? Where is it currently looking? ///Peter -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
JSP not forwarded to Tomcat
Hi list, First, the setup: - Mac OS X 10.2 - Tomcat/4.1.18 - Apache/1.3.27 - mod_jk-1.3.27.so (build from OS X from Jakarta's site), renamed to mod_jk.so I tried to get some Virtual Host to work with Tomcat (the webapps for each VirtualHost are outside Tomcat's directory). Instead of getting the generated JSP, I get the source, just like if the JSP was sent as text/plain and was not parsed by Tomcat. If I look at the 'mod_jk.log' log, I see requests for static HTML files, but I don't see any log information for my JSP files, so it look like mod_jk don't handle them, even if they should. Apache's config: LoadModule jk_modulelibexec/httpd/mod_jk.so AddModule mod_jk.c JkLogFile /usr/local/tomcat-4/logs/mod_jk.log JkLogLevel debug JkWorkersFile /usr/local/tomcat-4/conf/jk/workers.properties VirtualHost * ServerName my.host JkMount /*.jsp ajp13 JkMount /servlet/* ajp13 DocumentRoot /path/to/the/web/app /VirtualHost Tomcat's config (server.xml): Host name=my.host debug=1 appBase=/path/to/the/web unpackWARs=true autoDeploy=true Listener className=org.apache.ajp.tomcat4.config.ApacheConfig append=true / Valve className=org.apache.catalina.valves.AccessLogValve directory=logs prefix=clic_agent_log. suffix=.txt pattern=common/ Logger className=org.apache.catalina.logger.FileLogger directory=logs prefix=clic_agent_catalina_log. suffix=.txt timestamp=true/ Context path= docBase=app debug=1/ /Host -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: JSP not forwarded to Tomcat
What's your workers.properties file look like? Do you have a connector listening for JK requests from Apache? John -Original Message- From: Pascal Robert [mailto:[EMAIL PROTECTED]] Sent: Monday, January 27, 2003 10:57 AM To: [EMAIL PROTECTED] Subject: JSP not forwarded to Tomcat Hi list, First, the setup: - Mac OS X 10.2 - Tomcat/4.1.18 - Apache/1.3.27 - mod_jk-1.3.27.so (build from OS X from Jakarta's site), renamed to mod_jk.so I tried to get some Virtual Host to work with Tomcat (the webapps for each VirtualHost are outside Tomcat's directory). Instead of getting the generated JSP, I get the source, just like if the JSP was sent as text/plain and was not parsed by Tomcat. If I look at the 'mod_jk.log' log, I see requests for static HTML files, but I don't see any log information for my JSP files, so it look like mod_jk don't handle them, even if they should. Apache's config: LoadModule jk_modulelibexec/httpd/mod_jk.so AddModule mod_jk.c JkLogFile /usr/local/tomcat-4/logs/mod_jk.log JkLogLevel debug JkWorkersFile /usr/local/tomcat-4/conf/jk/workers.properties VirtualHost * ServerName my.host JkMount /*.jsp ajp13 JkMount /servlet/* ajp13 DocumentRoot /path/to/the/web/app /VirtualHost Tomcat's config (server.xml): Host name=my.host debug=1 appBase=/path/to/the/web unpackWARs=true autoDeploy=true Listener className=org.apache.ajp.tomcat4.config.ApacheConfig append=true / Valve className=org.apache.catalina.valves.AccessLogValve directory=logs prefix=clic_agent_log. suffix=.txt pattern=common/ Logger className=org.apache.catalina.logger.FileLogger directory=logs prefix=clic_agent_catalina_log. suffix=.txt timestamp=true/ Context path= docBase=app debug=1/ /Host -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Serving files from the Apache docroot
Mike Bachrynowski wrote: [...] My IT Operations colleagues who have a more detailed knowledge of configuring Apache than I have suggest that if Tomcat is not configured as stand-alone and MIME type support on Tomcat for all except jsp, xml and xslt is removed then all should work OK. Perhaps this is a development non issue because in production we would only run Tomcat behind Apache2 and never as stand-alonetherefore the problem would not occur. Mike that sounds interesting to me, I don't need tomcat as http on port 8080, does anyone know how the idea can be realized? Henning -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Serving files from the Apache docroot
Disable the Connector on port 8080 in server.xml. Restart Tomcat. If you're using Apache, the only Connector you need in Tomcat's server.xml is a WARP or JK/JK2 Connector. John -Original Message- From: Henning Heil [mailto:[EMAIL PROTECTED]] Sent: Monday, January 27, 2003 11:05 AM To: Tomcat Users List Subject: Re: Serving files from the Apache docroot Mike Bachrynowski wrote: [...] My IT Operations colleagues who have a more detailed knowledge of configuring Apache than I have suggest that if Tomcat is not configured as stand-alone and MIME type support on Tomcat for all except jsp, xml and xslt is removed then all should work OK. Perhaps this is a development non issue because in production we would only run Tomcat behind Apache2 and never as stand-alonetherefore the problem would not occur. Mike that sounds interesting to me, I don't need tomcat as http on port 8080, does anyone know how the idea can be realized? Henning -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: URL alias
Paul Phillips wrote: Just for convenience sake, I would like to make an alias for login purposes that looks something like: http://myhost:8080/webappname/login I can't figure out how to map that to my controller servlet AND at the same time include the parameter event=login. The servlet-mapping configuration in web.xml will allow me to map login - controller, but how do I throw in the parameter and its value? Why not create a filter -- map login to your filter (LoginFilter) and have the Filter intercept the request and add the parameter to the request before it calls the doFilterChain() (which means before it passes the request to the Controller). Erik -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
accessing/modifying 404 page in tomcat?
Hi, I'm sure a lot of you have gone through this before..., is there anyway I can display a different 404 error when tomcat does not find a page that was requested? I would like to customize it a little...some setting may be Thanks --Prashanth __ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: accessing/modifying 404 page in tomcat?
This is done in the web.xml file. John -Original Message- From: Prashanth Pushpagiri [mailto:[EMAIL PROTECTED]] Sent: Monday, January 27, 2003 11:27 AM To: Tomcat Users List Subject: accessing/modifying 404 page in tomcat? Hi, I'm sure a lot of you have gone through this before..., is there anyway I can display a different 404 error when tomcat does not find a page that was requested? I would like to customize it a little...some setting may be Thanks --Prashanth __ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: accessing/modifying 404 page in tomcat?
Howdy, Read the servlet specification, v2.3, chapter 13.1, section title Error Pages. You can customize these to your heart's content. Yoav Shapira Millennium ChemInformatics -Original Message- From: Prashanth Pushpagiri [mailto:[EMAIL PROTECTED]] Sent: Monday, January 27, 2003 11:27 AM To: Tomcat Users List Subject: accessing/modifying 404 page in tomcat? Hi, I'm sure a lot of you have gone through this before..., is there anyway I can display a different 404 error when tomcat does not find a page that was requested? I would like to customize it a little...some setting may be Thanks --Prashanth __ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com -- To unsubscribe, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] For additional commands, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: accessing/modifying 404 page in tomcat?
Hi Prashanth- try: error-page error-code404/error-code location/your_custom_404_error_page_here.html/location /error-page in your web.xml file just after the welcome-file-list. -Original Message- From: Prashanth Pushpagiri [mailto:[EMAIL PROTECTED]] Sent: Monday, January 27, 2003 11:27 AM To: Tomcat Users List Subject: accessing/modifying 404 page in tomcat? Hi, I'm sure a lot of you have gone through this before..., is there anyway I can display a different 404 error when tomcat does not find a page that was requested? I would like to customize it a little...some setting may be Thanks --Prashanth __ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: URL alias
Erik suggested: Why not create a filter -- map login to your filter (LoginFilter) and have the Filter intercept the request and add the parameter to the request before it calls the doFilterChain() (which means before it passes the request to the Controller). I thought about doing that, but (forgive me) - I can't figure out how to add a parameter! I see on the request API how to getParameter() and getParameterNames(), but I don't see a set method. How do I add a parameter in a filter? Paul -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: accessing/modifying 404 page in tomcat?
Thanks a lot... --Prashanth --- Jim Krygowski [EMAIL PROTECTED] wrote: Hi Prashanth- try: error-page error-code404/error-code location/your_custom_404_error_page_here.html/location /error-page in your web.xml file just after the welcome-file-list. -Original Message- From: Prashanth Pushpagiri [mailto:[EMAIL PROTECTED]] Sent: Monday, January 27, 2003 11:27 AM To: Tomcat Users List Subject: accessing/modifying 404 page in tomcat? Hi, I'm sure a lot of you have gone through this before..., is there anyway I can display a different 404 error when tomcat does not find a page that was requested? I would like to customize it a little...some setting may be Thanks --Prashanth __ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] __ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Tomcat 4.1.18 - IIS - JK2 - getRemoteUser() returns Null
Hi, I've seem to have resolved this problem my self. It seems like it's due to the fact I was locking a subdirectory under IIS but not the whole host. If I lock the host I get the domainname\username from getRemoteUser(). Thanx anyways. -reynir -Original Message- From: Reynir Hübner Sent: 27. janúar 2003 14:06 To: Tomcat Users List Subject: Tomcat 4.1.18 - IIS - JK2 - getRemoteUser() returns Null Hi I'm using : Tomcat 4.1.18 IIS 5.1. (running on XP) JK2 (isapi_redirector2.dll) Jdk 1.4.1_1 I tried to set request.tomcatAuthentication=false In my jk2.properties. For some reason IIS does not authenticate the user, and when I ask for the user (on the first request) in a jsp document, with request.getRemoteUser() it returns null. Can anyone point me in the correct direction here ? I sent an email just before weekend, at that time I was trying to use the isapi_redirect(but not isapi_redirector2). I had similar problems at that time, and I was hoping configuring the new jk2 would solve that... Thanx - [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
apache does not talk to tomcat via jk2(ajp13)
Hi there, I am trying to make apache 2.0.43 with tomcat 4.1.12, via jk2 (via ajp13 protocol, under linux). However I only get various errors and I cannot make any sense out of it. (They are at the very bottom of this mail.) Is there a set of demo files for this kind of connection? Or is there a reason that one should not try to accomplish this connection? Or is there something obviously wrong with the following configuration? (Tomcat itself [localhost:8080/app/index.jsp] works, Apache [localhost/some_other_page] Works as well) /etc/httpd/conf/httpd.conf- LoadModule jk2_module modules/mod_jk2.so include /etc/httpd/conf/jk2.conf /etc/httpd/conf/jk2.conf--- JkWorkersFile /usr/opt/applications/tomcat/conf/jk2.properties JkLogFile /usr/opt/applications/apache/logs/mod_jk.log JkLogLevel debug JkLogStampFormat [%a %b %d %H:%M:%S %Y] JkOptions +ForwardKeySize +ForwardURIEscaped -ForwardDirectories JkMount /app/* worker1 JkMount /*.jsp worker1 /usr/opt/applications/tomcat/conf/jk2.properties # Define l worker using ajp13 worker.list=worker1 # Set properties for worker1 (ajp13) worker.worker1.type=ajp13 worker.worker1.host=locahost worker.worker1.port=8009 worker.worker1.lbfactor=50 worker.worker1.cachesize=10 worker.worker1.cache_timeout=600 worker.worker1.socket_keepalive=1 worker.worker1.socket_timeout=300 /usr/opt/applications/tomcat/conf/serverl.xml--(excerpt)- Server ... Service name=Tomcat-Standalone ... Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=8009 minProcessors=5 maxProcessors=75 enableLookups=true redirectPort=8443 acceptCount=10 debug=10 connectionTimeout=2 useURIValidationHack=false protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler/ ... Engine... ... /Engine /Service The rest is pretty much default (warp stuff commented out). /Server The only hint that there IS somethign going wrong: [error] workerEnv.init() create slot epStat.0 failed [error] lb.service() worker failed ajp13:localhost:8009 [error] lb.service() unrecoverable error... [error] mod_jk.handler() Error connecting to tomcat 12 [error] workerEnv.init() create slot epStat.1 failed [error] lb.service() worker failed ajp13:localhost:8009 [error] lb.service() unrecoverable error... [error] mod_jk.handler() Error connecting to tomcat 12 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RMI Problem with Tomcat
My servlet connects to a rmi server which is running on the same machine as Tomcat 4.1. But, I get a queer exception NotBoundException at Naming.lookup. I printed out the list of servers bound in the registry using Naming.list and I can see my rmi server listed. So, I am just puzzled as to why the servlet is not able to connect. A standalone program can however connect to the server. I am not using tomcat with the -security flag turned on. I would appreciate any help in this matter. Thanks Ashwin. = Ashwin Desai. __ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
-nonaming option
In ver 4.0.6 this was the command that turned off the internal JNDI naming option. I have read in some threads that this is not true anymore with version 4.1.12. What is the correct way of turning this off in ver 4.1? kmd Phone (608)273-8933 x2084 Cell (608)358-2037
Re: Apache Tomcat - HTTP Status 503 - Servlet SendMailServlet is currently unavaila
Anyone know what is missing here? I have the problem with http://localhost/servlets and http://mydomain1.com/servlets ... I am receiving the msg: Apache Tomcat - HTTP Status 503 - Servlet SendMailServlet is currently unavailable. Would anyone be able to tell me this may be happening? Note, I altered the code to use smtp authentication. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: apache does not talk to tomcat via jk2(ajp13)
JkMount only applies to JK (mod_jk.so), not JK2 (mod_jk2.so). Mod_jk2.so has no idea what to do with JkMount. If you want a quick answer, switch out mod_jk2.so for mod_jk.so, and you will probably start seeing results, maybe not exactly what you want, but a lot more to go on so that you can tweak it. If you want to stick with JK2, you'll need to either setup uriworkermap.properties file, or use JkUriSet in httpd.conf instead of JkMount. There are HOWTOs available on the net, and there is considerable material in the archives on this, as well as the current JK2 documentation on the Tomcat site. John -Original Message- From: Holger Klawitter [mailto:[EMAIL PROTECTED]] Sent: Monday, January 27, 2003 11:17 AM To: Tomcat Users List Subject: apache does not talk to tomcat via jk2(ajp13) Hi there, I am trying to make apache 2.0.43 with tomcat 4.1.12, via jk2 (via ajp13 protocol, under linux). However I only get various errors and I cannot make any sense out of it. (They are at the very bottom of this mail.) Is there a set of demo files for this kind of connection? Or is there a reason that one should not try to accomplish this connection? Or is there something obviously wrong with the following configuration? (Tomcat itself [localhost:8080/app/index.jsp] works, Apache [localhost/some_other_page] Works as well) /etc/httpd/conf/httpd.conf- LoadModule jk2_module modules/mod_jk2.so include /etc/httpd/conf/jk2.conf /etc/httpd/conf/jk2.conf--- JkWorkersFile /usr/opt/applications/tomcat/conf/jk2.properties JkLogFile /usr/opt/applications/apache/logs/mod_jk.log JkLogLevel debug JkLogStampFormat [%a %b %d %H:%M:%S %Y] JkOptions +ForwardKeySize +ForwardURIEscaped -ForwardDirectories JkMount /app/* worker1 JkMount /*.jsp worker1 /usr/opt/applications/tomcat/conf/jk2.properties # Define l worker using ajp13 worker.list=worker1 # Set properties for worker1 (ajp13) worker.worker1.type=ajp13 worker.worker1.host=locahost worker.worker1.port=8009 worker.worker1.lbfactor=50 worker.worker1.cachesize=10 worker.worker1.cache_timeout=600 worker.worker1.socket_keepalive=1 worker.worker1.socket_timeout=300 /usr/opt/applications/tomcat/conf/serverl.xml--(excerpt)- Server ... Service name=Tomcat-Standalone ... Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=8009 minProcessors=5 maxProcessors=75 enableLookups=true redirectPort=8443 acceptCount=10 debug=10 connectionTimeout=2 useURIValidationHack=false protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler/ ... Engine... ... /Engine /Service The rest is pretty much default (warp stuff commented out). /Server The only hint that there IS somethign going wrong: [error] workerEnv.init() create slot epStat.0 failed [error] lb.service() worker failed ajp13:localhost:8009 [error] lb.service() unrecoverable error... [error] mod_jk.handler() Error connecting to tomcat 12 [error] workerEnv.init() create slot epStat.1 failed [error] lb.service() worker failed ajp13:localhost:8009 [error] lb.service() unrecoverable error... [error] mod_jk.handler() Error connecting to tomcat 12 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Manager App: Installed Apps do not stay installed
This is my first ever post to a mailing list, so please forgive me if this question has been asked many times before. I have a scenario that we have run into that has been bothering me with Tomcat and I'm hoping someone might have an answer. The scenario is this: I have developed a new Web Archive containing a new application for one of my customers. Their server is a Windows 2000 Server with Tomcat 4.1.18 running on it. We have a directory c:\Applications where we store our unpacked web applications. We unpack the Web Archive to my customers c:\Applications\newApp directory. We create a context.xml and place it in the c:\Applications directory. The context.xml contains a ResourceLink and the usual Context settings (path, docBase etc..) We then use the Tomcat Manager application and install the application live. (http://customerserver:8080/manager/html) The above works excellent and I have successfully deployed the application. The problem however is when Tomcat is restarted, it forgets that this application was ever installed; and we would have to re-deploy the application using the Manager again. To get around this, we have been placing the context.xml's in the tomcat_home\webapps directory instead. With this method the auto deploy feature of tomcat finds the context.xml and auto-deploys the application when the server is restarted. This of course does not work if we turn off autodeploy on the Host element in the server.xml. Is there a way to get an application to stay installed with the Web Manager application other than using the above mentioned workaround? Is this a bug or is this how it is supposed to work? Thanx for any information or insight, - Chris Zinn -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Tomcat 3.2`
You will need to be aware of a little bit about how classloaders behave. Tomcat will create a webapp classloader that includes WEB-INF/classes and the jars WEB-INF/lib. In Tomcat 3.2.x, a parent of this webapp classloader is the CLASSPATH classloader. As the parent, classes in the webapp classloader can access classes in the CLASSPATH classloader. However, classes in the CLASSPATH classloader can *NOT* access classes in the child webapp classloader. Most likely some class currently in your CLASSPATH, or extensions directory, is trying to do this. Hopefully, the resulting stack trace can give you some clues as to which classes are involved and then determine how best to resolve the problem. You can try putting the jar(s) on the CLASSPATH. However, even if this fixes this issue, doing so may have other undesirable side effects. For example, if you move classes112.jar to the CLASSPATH, it would no longer access to other the classes in the webapp classloader that it previously had. Cheers, Larry -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Monday, January 27, 2003 10:19 AM To: Tomcat Users List Subject: Tomcat 3.2` Hello all, We have a problem with Tomcat 3.2. We have developed an application that needs to work in 3.2 (an upgrade is not an option). The problem is that Tomcat does not seem to be picking up the jars in the WEB-INF/lib folder, and this is resulting in ClassNotFoundExceptions. To be more specific, classes112.jar (Oracle drivers) and Struts1.02.jar are not being picked up. Is anyone aware of any issues that we should be aware of which may be causing this ? Are there some classes in those libraries that need to be removed ? Any help would be much appreciated. Thanks Mehdi Nejad - Senior Developer [EMAIL PROTECTED] ~~ Bluewave Ltd - Business Solutions http://www.bluewave.com Tel. +44 (0)20 7479 8394 ~~ -- To unsubscribe, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: using ajp without tomcat
I have downloaded apache binary dist and the ajp connector source, and builded the IIS redirector (It was rather strange that apr.h is in apache binary dist but not in the apache source release). What I found with debug messages is, HttpFilterProc() is called with I request http://localhost/examples/x, which means the dll is installed correctly and the configuration files are correct (mappings and etc). However there is no line of code in HttpFilterProc() that actually calls anything to open the socket and send data. I checked several possible functions to see if they are the ones who send data, but all turn out to be some string manipulation functions. Could someone tell me which function call in HttpFilterProc actaully result in open socket to 8009 port? Thanks - Original Message - From: James Chang [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Sunday, January 26, 2003 8:53 PM Subject: using ajp without tomcat Hi: I am trying to get ajp to work for other jsp/servlet engines other then tomcat. Right now I am working on IIS with isapi_redirector2.dll and listening on port 8009 with my own ajp listener. I downloaded isapi_redirector2.dll from: http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk2/release/v2.0. 2/bin/win32/ set up the registry settings and use the simple works2.properties file below. IIS shows the dll is loaded correctly, but when I try to request to http://localhost/examples/x , the isapi_redirector2.dll doesn't send any request to port 8009. Could anyone tell me what is wrong with my configuration file? Or is the dll somehow need tomcat to work (I have set it to use socket, but maybe the dll needs some configuration file or shared library from tomcat)?? Any pointer will be usefull. Thanks! the registry I used is: REGEDIT4 [HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Jakarta Isapi Redirector\2.0] serverRoot=d:\\tm extensionUri=/jakarta/isapi_redirector2.dll workersFile=D:\\shared\\iisredir\\workers2.properties authComplete=0 threadPool=5 All strings are properly installed. My workers2.properties file contains: # Define the communication channel [channel.socket:localhost:8009] info=Ajp13 forwarding over socket tomcatId=localhost:8009 # Map the Tomcat examples webapp to the Web server uri space [uri:/examples/*] info=Map the whole webapp -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
java.sql.SQLException: DBCP could not obtain an idle connection, pool exhausted
i have set up Tomcat 4.1(.12, i think) with DBCP native, connecting to Sql Server 2000 on a remote machine. with the same configuration at home i get connected just fine. at work, i get this error: java.sql.SQLException: DBCP could not obtain an idle connection, pool exhausted i'm getting this error upon first use of the database, so i do not think it's a problem with not closing connections previously in use. the only difference in configurations, now that i think about it, is i have apache running in front of tomcat on my box at work, but not at home. could that be it? does anybody know how to solve this? thanks barclay
Re: URL alias
Probably, using a filter is an overkill in this situation. If you are sending a GET request, just extend your URL: http://myhost:8080/webappname/login?event=login . If you are posting from a form, you can include a hidden parameter with name=event and value=login. Igor TN On Mon, 27 Jan 2003, Erik Price wrote: Paul Phillips wrote: Just for convenience sake, I would like to make an alias for login purposes that looks something like: http://myhost:8080/webappname/login I can't figure out how to map that to my controller servlet AND at the same time include the parameter event=login. The servlet-mapping configuration in web.xml will allow me to map login - controller, but how do I throw in the parameter and its value? Why not create a filter -- map login to your filter (LoginFilter) and have the Filter intercept the request and add the parameter to the request before it calls the doFilterChain() (which means before it passes the request to the Controller). Erik -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: apache does not talk to tomcat via jk2(ajp13)
I too encounter the same problem. I checked the docs on http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/index.html. However, it seems that it still shows wrong commands for jk2. For example, on http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk/aphowto.html , JkMount is still posted (http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk/aphowto.html#mod_jk%20Directives). If someone knows the correct info / settings for jk2, could some please post it here? :) - Andres On Tue, 2003-01-28 at 01:54, Victor Lewis wrote: Those are JK configuration directives, not JK2 configuration. See http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/index.html for how to configure JK2. -Victor -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: apache does not talk to tomcat via jk2(ajp13)
Andres, I too encounter the same problem. I checked the docs on http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/index.html . However, it seems that it still shows wrong commands for jk2. For example, on http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk/aphowto.html , JkMount is still posted (http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk/aphowt o.html#mod_jk%20Directives). Althought i can coincide with you that the documentation for JK/JK2 is far from perfect, the 2 last documents you point out are jk docos transformed to the new look, not jk2 docs, this directory bundles jk and jk2 docos together under jk2 directory.. TO take a look at apache directives for JK2 see at http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk2/configweb.html#S erver-specific%20configuration it must be clarified thought, any patches are welcomed as ever ;).. Saludos, Ignacio J. Ortega -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: java.sql.SQLException: DBCP could not obtain an idle connection, pool exhausted
Just a guess, but maybe this occurs while filling the connection pool with connections at the very beginning. Assume your connection pool manager was set up to open at least 100 connections. In case your SQL server at work doesn't allow that much connection or some other clients are using some already you might receive this error. Maybe check with your admin at work how many simultanious connection that sql db can serve. Maybe it's simply limited. You could also try to open a few connections manually to find out when your db says no more. -Original Message- From: Barclay A. Dunn [mailto:[EMAIL PROTECTED]] Sent: Montag, 27. Januar 2003 19:21 To: [EMAIL PROTECTED] Subject: java.sql.SQLException: DBCP could not obtain an idle connection, pool exhausted i have set up Tomcat 4.1(.12, i think) with DBCP native, connecting to Sql Server 2000 on a remote machine. with the same configuration at home i get connected just fine. at work, i get this error: java.sql.SQLException: DBCP could not obtain an idle connection, pool exhausted i'm getting this error upon first use of the database, so i do not think it's a problem with not closing connections previously in use. the only difference in configurations, now that i think about it, is i have apache running in front of tomcat on my box at work, but not at home. could that be it? does anybody know how to solve this? thanks barclay -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Session Timeout - Who has the final decision?
Hi All, I've checked the Tomcat-User and Struts-User archives for an answer to this, but am still not sure of the answer. Given that I can set a session timeout interval in Tomcat's configuration file (web.xml), the web application itself (web.xml), and also by setting 'session.setMaxInactiveInterval(#secs)', who wins? In other words, if I have the following: Tomcat timeout is 30 minutes Web Appl. timeout is 45 minutes session.setMaxInactiveInterval 3600 seconds (or 60 minutes) does the users session 'live' for the full 60 minutes? Or does one of the other settings take precedence? TIA! Jerry Jalenak Web Publishing LabOne, Inc. 10101 Renner Blvd. Lenexa, KS 66219 (913) 577-1496 [EMAIL PROTECTED] This transmission (and any information attached to it) may be confidential and is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient or the person responsible for delivering the transmission to the intended recipient, be advised that you have received this transmission in error and that any use, dissemination, forwarding, printing, or copying of this information is strictly prohibited. If you have received this transmission in error, please immediately notify LabOne at the following email address: [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: using ajp without tomcat
Maybe posting to tomcat-dev would get you a quicker answer. John -Original Message- From: James Chang [mailto:[EMAIL PROTECTED]] Sent: Monday, January 27, 2003 1:14 PM To: Tomcat Users List Subject: Re: using ajp without tomcat I have downloaded apache binary dist and the ajp connector source, and builded the IIS redirector (It was rather strange that apr.h is in apache binary dist but not in the apache source release). What I found with debug messages is, HttpFilterProc() is called with I request http://localhost/examples/x, which means the dll is installed correctly and the configuration files are correct (mappings and etc). However there is no line of code in HttpFilterProc() that actually calls anything to open the socket and send data. I checked several possible functions to see if they are the ones who send data, but all turn out to be some string manipulation functions. Could someone tell me which function call in HttpFilterProc actaully result in open socket to 8009 port? Thanks - Original Message - From: James Chang [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Sunday, January 26, 2003 8:53 PM Subject: using ajp without tomcat Hi: I am trying to get ajp to work for other jsp/servlet engines other then tomcat. Right now I am working on IIS with isapi_redirector2.dll and listening on port 8009 with my own ajp listener. I downloaded isapi_redirector2.dll from: http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk2 /release/v2.0. 2/bin/win32/ set up the registry settings and use the simple works2.properties file below. IIS shows the dll is loaded correctly, but when I try to request to http://localhost/examples/x , the isapi_redirector2.dll doesn't send any request to port 8009. Could anyone tell me what is wrong with my configuration file? Or is the dll somehow need tomcat to work (I have set it to use socket, but maybe the dll needs some configuration file or shared library from tomcat)?? Any pointer will be usefull. Thanks! the registry I used is: REGEDIT4 [HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Jakarta Isapi Redirector\2.0] serverRoot=d:\\tm extensionUri=/jakarta/isapi_redirector2.dll workersFile=D:\\shared\\iisredir\\workers2.properties authComplete=0 threadPool=5 All strings are properly installed. My workers2.properties file contains: # Define the communication channel [channel.socket:localhost:8009] info=Ajp13 forwarding over socket tomcatId=localhost:8009 # Map the Tomcat examples webapp to the Web server uri space [uri:/examples/*] info=Map the whole webapp -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
JK2 workers2 vs. jk workers???
I have seen jk.properties workers.properties BUT what is the difference with jk2 workers2?Do I need jk workers also? I guess the I am missing something here!!! I haven't found anything in the archives or docs (so far) that is helping. I'm assuming it is mod_jk2 instead of mod_jk?Would someone please give me some guidance on setting up Apache 2.0.43 in front of Tomcat 4.1.18 with multiple Virtual Hosts? The information in the documentation is tantalizing but I cannot quite get it to work. I just looking for a general theory of operation here. Do I need to create matching host entries in server.xml for each of the hosts in workers2.properties or can I configure the root of certain virtual hosts to specific contexts of localhost? For example can I use workers2.properties to make http://foo.mycompany.com go to http://localhost/app1 and http://bar.mycomapny.com go to http://localhost/app2? This is hinted at by the context and servlet properties of the uri config element but it is not clear. Thank You, Victor Lewis -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Bean class not found in web application
Eric, As a newbie, I use just getters and setters. Wilson - Original Message - From: Erik Price [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Monday, January 27, 2003 3:44 PM Subject: Re: Bean class not found in web application Wilson Snook wrote: The long and the short of it is I would recommend avoiding the property name 'uName'. I think I would also recommend not using Komodo 1.2 to write bean classes. However, I would recommend using JBuilder 6 for the purpose, even if it is a bit of a large beast for small beans. Just a quick question for anyone who cares to answer -- do you all use the PropertyChangeListener and PropertyChangeSupport.firePropertyChange() in your beans, or do you just create a simple class with getters and setters? I'm just wondering how worthwhile it would be to run through my beans and rewrite them with the PropertyChangeListener and PropertyChangeSupport classes (from package java.beans). Erik -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Session Timeout - Who has the final decision?
IMHO: Your web app web.xml overrides Tomcat's web.xml. Your application code overrides both. I've checked the Tomcat-User and Struts-User archives for an answer to this, but am still not sure of the answer. Given that I can set a session timeout interval in Tomcat's configuration file (web.xml), the web application itself (web.xml), and also by setting 'session.setMaxInactiveInterval(#secs)', who wins? In other words, if I have the following: Tomcat timeout is 30 minutes Web Appl. timeout is 45 minutes session.setMaxInactiveInterval 3600 seconds (or 60 minutes) does the users session 'live' for the full 60 minutes? Or does one of the other settings take precedence? -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Session Timeout - Who has the final decision?
Thanks for the reply. That's kind of what I suspected, but couldn't find anything that stated so -Original Message- From: mech [mailto:[EMAIL PROTECTED]] Sent: Monday, January 27, 2003 1:32 PM To: 'Tomcat Users List' Subject: RE: Session Timeout - Who has the final decision? IMHO: Your web app web.xml overrides Tomcat's web.xml. Your application code overrides both. I've checked the Tomcat-User and Struts-User archives for an answer to this, but am still not sure of the answer. Given that I can set a session timeout interval in Tomcat's configuration file (web.xml), the web application itself (web.xml), and also by setting 'session.setMaxInactiveInterval(#secs)', who wins? In other words, if I have the following: Tomcat timeout is 30 minutes Web Appl. timeout is 45 minutes session.setMaxInactiveInterval 3600 seconds (or 60 minutes) does the users session 'live' for the full 60 minutes? Or does one of the other settings take precedence? -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] This transmission (and any information attached to it) may be confidential and is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient or the person responsible for delivering the transmission to the intended recipient, be advised that you have received this transmission in error and that any use, dissemination, forwarding, printing, or copying of this information is strictly prohibited. If you have received this transmission in error, please immediately notify LabOne at the following email address: [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: java.sql.SQLException: DBCP could not obtain an idle connection, pool exhausted
weirdly, changing the maxActive (maximum number of dB connections in pool) from 0 (which is supposed to be unlimited) to anything higher solved this problem. so i guess 0 is NOT unlimited in this context! which kind of sucks. but we will tweak the live server to figure out what we need. i did confirm that our db has unlimited connections (certainly more than this one user running on localhost to test app changes could generate). thanks barclay -Original Message- From: mech [mailto:[EMAIL PROTECTED]] Sent: Monday, January 27, 2003 2:06 PM To: 'Tomcat Users List' Subject: RE: java.sql.SQLException: DBCP could not obtain an idle connection, pool exhausted Just a guess, but maybe this occurs while filling the connection pool with connections at the very beginning. Assume your connection pool manager was set up to open at least 100 connections. In case your SQL server at work doesn't allow that much connection or some other clients are using some already you might receive this error. Maybe check with your admin at work how many simultanious connection that sql db can serve. Maybe it's simply limited. You could also try to open a few connections manually to find out when your db says no more. -Original Message- From: Barclay A. Dunn [mailto:[EMAIL PROTECTED]] Sent: Montag, 27. Januar 2003 19:21 To: [EMAIL PROTECTED] Subject: java.sql.SQLException: DBCP could not obtain an idle connection, pool exhausted i have set up Tomcat 4.1(.12, i think) with DBCP native, connecting to Sql Server 2000 on a remote machine. with the same configuration at home i get connected just fine. at work, i get this error: java.sql.SQLException: DBCP could not obtain an idle connection, pool exhausted i'm getting this error upon first use of the database, so i do not think it's a problem with not closing connections previously in use. the only difference in configurations, now that i think about it, is i have apache running in front of tomcat on my box at work, but not at home. could that be it? does anybody know how to solve this? thanks barclay -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
HTTPS -- HTTP redirecting
Hello, Is it possible to configure Tomcat (4.1.x) in such a way that a request can be redirected automatically from HTTPS to HTTP port? Let's assume that a Website has two separate (non-overlapping) sets of resources (/non_secure_resources/* and /secure_resources/* respectively) and web.xml descriptor defines the following security constraints: security-constraint web-resource-collection web-resource-nameNon Secure Resources/web-resource-name url-pattern/non_secure_resources/*/url-pattern /web-resource-collection user-data-constraint transport-guaranteeNONE/transport-guarantee /user-data-constraint /security-constraint security-constraint web-resource-collection web-resource-nameSecure Resources/web-resource-name url-pattern/secure_resources/*/url-pattern /web-resource-collection user-data-constraint transport-guaranteeCONFIDENTIAL/transport-guarantee /user-data-constraint /security-constraint Then any HTTP request matching /secure_resources/* will be automatically redirected (assuming that an SSL certificate is installed). However, HTTPS requests matching /non_secure_resources/* (i.e. https://non_secure_resources/non-secure.jsp) are not redirected back to HTTP as I would expect from the first security constraint. The problem that I'm currently having is that some JSP pages under /secure_resources have links pointing to pages within the non-secure portion of the Website, i.e. /secure_resources/secure.jsp contains a link a href=/non_secure_resources/non-secure.jsp). (Also, please notice that these links doesn't explicitly specify the protocol, i.e. http://; because I don't want to hardcode the whole URL (some links are relative)). Considering this, when such a link is followed the protocol (HTTPS) is not changed back to HTTP. Does anyone know if there is a solution to this other than using absolute URLs with the HTTP protocol hardcoded in them? Thanks, Lukasz Szelag -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
detection infinite loops and/or recoursive code
hello! i'm looking for a detection of 'hanging' or 'unable to finish' requests. e.g.: while(true) loops in a jsp. no one would program something like this but on a server with multiple applications it happens sometime that under some circumstances a infinite loop or a recoursive loop is created. the cpu utilization is then near 100% and the only solution is to restart the server is it possible to set something like: - maximum execution time for a request - maximum memory consumtion for a request (in case of recoursion the memory consumtion can be extreme high) or to 'identify' these uggly peace of code? many thanx in advance, joe -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
HTTS -- HTTP redirecting
Hello, Is it possible to configure Tomcat (4.1.x) in such a way that a request can be redirected automatically from HTTPS to HTTP port? Let's assume that a Website has two separate (non-overlapping) sets of resources (/non_secure_resources/* and /secure_resources/* respectively) and web.xml descriptor defines the following security constraints: security-constraint web-resource-collection web-resource-nameNon Secure Resources/web-resource-name url-pattern/non_secure_resources/*/url-pattern /web-resource-collection user-data-constraint transport-guaranteeNONE/transport-guarantee /user-data-constraint /security-constraint security-constraint web-resource-collection web-resource-nameSecure Resources/web-resource-name url-pattern/secure_resources/*/url-pattern /web-resource-collection user-data-constraint transport-guaranteeCONFIDENTIAL/transport-guarantee /user-data-constraint /security-constraint Then any HTTP request matching /secure_resources/* will be automatically redirected (assuming that an SSL certificate is installed). However, HTTPS requests matching /non_secure_resources/* (i.e. https://non_secure_resources/non-secure.jsp) are not redirected back to HTTP as I would expect from the first security constraint. The problem that I'm currently having is that some JSP pages under /secure_resources have links pointing to pages within the non-secure portion of the Website, i.e. /secure_resources/secure.jsp contains a link a href=/non_secure_resources/non-secure.jsp). (Also, please notice that these links doesn't explicitly specify the protocol, i.e. http://; because I don't want to hardcode the whole URL (some links are relative)). Considering this, when such a link is followed the protocol (HTTPS) is not changed back to HTTP. Does anyone know if there is a solution to this other than using absolute URLs with the HTTP protocol hardcoded in them? Thanks, Lukasz Szelag -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Session Timeout - Who has the final decision?
Howdy, Consider the order in which these settings are applied: Tomcat timeout is 30 minutes Applied on tomcat startup. Web Appl. timeout is 45 minutes Overrides above when your context starts up. session.setMaxInactiveInterval 3600 seconds (or 60 minutes) Overrides above when the code executes. You wouldn't find this stated in a document most likely. It's just kind of an observation because of the order things are executed. There can be no conflict within the server on this matter. Yoav Shapira Millennium ChemInformatics -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
mod_jk2 directory mapping
Hi! How can I map http://host/a/index.html to http://host/some/a/index.html ? Well, can I actually at all? Thanks! Timo -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Having problems with endorsed directories working in Tomcat 4.1.18
I have changed the parser in the endorsed directory but tomcat does not seem to see the changes. When I compile using ant (and the endorsed directory in jre/lib/endorsed) all works as expected. Any help? Thanks, John -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: JK2 workers2 vs. jk workers???
Does anyone know of the location of some docs? And/Or have a sample configuration including virtual hosts. I am using: Apache 2.0.43 Tomcat 4.1.18 Windows 2000 Thanks much!!! - Original Message - From: chris schild [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Monday, January 27, 2003 1:33 PM Subject: JK2 workers2 vs. jk workers??? I have seen jk.properties workers.properties BUT what is the difference with jk2 workers2?Do I need jk workers also? I guess the I am missing something here!!! I haven't found anything in the archives or docs (so far) that is helping. I'm assuming it is mod_jk2 instead of mod_jk?Would someone please give me some guidance on setting up Apache 2.0.43 in front of Tomcat 4.1.18 with multiple Virtual Hosts? The information in the documentation is tantalizing but I cannot quite get it to work. I just looking for a general theory of operation here. Do I need to create matching host entries in server.xml for each of the hosts in workers2.properties or can I configure the root of certain virtual hosts to specific contexts of localhost? For example can I use workers2.properties to make http://foo.mycompany.com go to http://localhost/app1 and http://bar.mycomapny.com go to http://localhost/app2? This is hinted at by the context and servlet properties of the uri config element but it is not clear. Thank You, Victor Lewis -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
contents of common/lib
For the past several days, I've been trying to figure out what is causing the following error when trying to access any jsp (this is a new installation: tomcat 4.1.18, apache 2.0.44, j2sdk 1.4.1_01, win2k): org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: -1 in the jsp file: null Generated servlet error: [javac] Compiling 1 source file [ stack trace omitted ] I have tried several times to fix this by reinstalling tomcat, and noticed that a copy failed message appeared briefly in the status bar of the installer, and that this error seemed to happen as jars were being copied to $CATALINA_HOME/common/lib. The install continued, and appeared to complete succesfully, so I assumed that the installer had worked around the copy failure. Now I'm wondering if that's what has been causing my problems. Here is a list of the jars in my common/lib directory: ant.jar commons-collections.jar commons-logging-api.jar jasper-compiler.jar jasper-runtime.jar naming-factory.jar naming-common.jar naming-resources.jar servlet.jar Is there anything missing? Thanks, Derek Odegard [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: JK2 workers2 vs. jk workers???
here you find everything you need: http://www.galatea.com/flashguides/index chris schild wrote: Does anyone know of the location of some docs? And/Or have a sample configuration including virtual hosts. I am using: Apache 2.0.43 Tomcat 4.1.18 Windows 2000 Thanks much!!! - Original Message - From: chris schild [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Monday, January 27, 2003 1:33 PM Subject: JK2 workers2 vs. jk workers??? I have seen jk.properties workers.properties BUT what is the difference with jk2 workers2?Do I need jk workers also? I guess the I am missing something here!!! I haven't found anything in the archives or docs (so far) that is helping. I'm assuming it is mod_jk2 instead of mod_jk?Would someone please give me some guidance on setting up Apache 2.0.43 in front of Tomcat 4.1.18 with multiple Virtual Hosts? The information in the documentation is tantalizing but I cannot quite get it to work. I just looking for a general theory of operation here. Do I need to create matching host entries in server.xml for each of the hosts in workers2.properties or can I configure the root of certain virtual hosts to specific contexts of localhost? For example can I use workers2.properties to make http://foo.mycompany.com go to http://localhost/app1 and http://bar.mycomapny.com go to http://localhost/app2? This is hinted at by the context and servlet properties of the uri config element but it is not clear. Thank You, Victor Lewis -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: JK2 workers2 vs. jk workers???
Not for JK2. John -Original Message- From: list [mailto:[EMAIL PROTECTED]] Sent: Monday, January 27, 2003 3:02 PM To: Tomcat Users List Subject: Re: JK2 workers2 vs. jk workers??? here you find everything you need: http://www.galatea.com/flashguides/index chris schild wrote: Does anyone know of the location of some docs? And/Or have a sample configuration including virtual hosts. I am using: Apache 2.0.43 Tomcat 4.1.18 Windows 2000 Thanks much!!! - Original Message - From: chris schild [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Monday, January 27, 2003 1:33 PM Subject: JK2 workers2 vs. jk workers??? I have seen jk.properties workers.properties BUT what is the difference with jk2 workers2?Do I need jk workers also? I guess the I am missing something here!!! I haven't found anything in the archives or docs (so far) that is helping. I'm assuming it is mod_jk2 instead of mod_jk?Would someone please give me some guidance on setting up Apache 2.0.43 in front of Tomcat 4.1.18 with multiple Virtual Hosts? The information in the documentation is tantalizing but I cannot quite get it to work. I just looking for a general theory of operation here. Do I need to create matching host entries in server.xml for each of the hosts in workers2.properties or can I configure the root of certain virtual hosts to specific contexts of localhost? For example can I use workers2.properties to make http://foo.mycompany.com go to http://localhost/app1 and http://bar.mycomapny.com go to http://localhost/app2? This is hinted at by the context and servlet properties of the uri config element but it is not clear. Thank You, Victor Lewis -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: JK2 workers2 vs. jk workers???
Search for JkUriSet at http://marc.theaimsgroup.com/?l=tomcat-user list [EMAIL PROTECTED] 01/27/2003 12:01 PM Please respond to Tomcat Users List To: Tomcat Users List [EMAIL PROTECTED] cc: Subject:Re: JK2 workers2 vs. jk workers??? here you find everything you need: http://www.galatea.com/flashguides/index chris schild wrote: Does anyone know of the location of some docs? And/Or have a sample configuration including virtual hosts. I am using: Apache 2.0.43 Tomcat 4.1.18 Windows 2000 Thanks much!!! - Original Message - From: chris schild [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Monday, January 27, 2003 1:33 PM Subject: JK2 workers2 vs. jk workers??? I have seen jk.properties workers.properties BUT what is the difference with jk2 workers2?Do I need jk workers also? I guess the I am missing something here!!! I haven't found anything in the archives or docs (so far) that is helping. I'm assuming it is mod_jk2 instead of mod_jk?Would someone please give me some guidance on setting up Apache 2.0.43 in front of Tomcat 4.1.18 with multiple Virtual Hosts? The information in the documentation is tantalizing but I cannot quite get it to work. I just looking for a general theory of operation here. Do I need to create matching host entries in server.xml for each of the hosts in workers2.properties or can I configure the root of certain virtual hosts to specific contexts of localhost? For example can I use workers2.properties to make http://foo.mycompany.com go to http://localhost/app1 and http://bar.mycomapny.com go to http://localhost/app2? This is hinted at by the context and servlet properties of the uri config element but it is not clear. Thank You, Victor Lewis -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: JK2 workers2 vs. jk workers???
John, Would you recommend staying with the original mod_jk since I am using Win2k or is mod_jk2 the way to go? I am going to rebuild Tomcat since I have configured reconfigured it so much. My knowledge level, although still minimal, is much greater than it was a month ago... btw- I am still have problems with the msg: Apache Tomcat - HTTP Status 503 - Servlet SendMailServlet is currently unavailable Any ideas on that one? Thanks again! - Original Message - From: Turner, John [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Monday, January 27, 2003 2:23 PM Subject: RE: JK2 workers2 vs. jk workers??? Not for JK2. John -Original Message- From: list [mailto:[EMAIL PROTECTED]] Sent: Monday, January 27, 2003 3:02 PM To: Tomcat Users List Subject: Re: JK2 workers2 vs. jk workers??? here you find everything you need: http://www.galatea.com/flashguides/index chris schild wrote: Does anyone know of the location of some docs? And/Or have a sample configuration including virtual hosts. I am using: Apache 2.0.43 Tomcat 4.1.18 Windows 2000 Thanks much!!! - Original Message - From: chris schild [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Monday, January 27, 2003 1:33 PM Subject: JK2 workers2 vs. jk workers??? I have seen jk.properties workers.properties BUT what is the difference with jk2 workers2?Do I need jk workers also? I guess the I am missing something here!!! I haven't found anything in the archives or docs (so far) that is helping. I'm assuming it is mod_jk2 instead of mod_jk?Would someone please give me some guidance on setting up Apache 2.0.43 in front of Tomcat 4.1.18 with multiple Virtual Hosts? The information in the documentation is tantalizing but I cannot quite get it to work. I just looking for a general theory of operation here. Do I need to create matching host entries in server.xml for each of the hosts in workers2.properties or can I configure the root of certain virtual hosts to specific contexts of localhost? For example can I use workers2.properties to make http://foo.mycompany.com go to http://localhost/app1 and http://bar.mycomapny.com go to http://localhost/app2? This is hinted at by the context and servlet properties of the uri config element but it is not clear. Thank You, Victor Lewis -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: JK2 workers2 vs. jk workers???
It's up to you. I prefer JK right now, but lots of people are using JK2, and JK2 is where the development team is going. If you decide to use JK, my HOWTOs might help: http://www.johnturner.com, or try the ones at www.galatea.com/flashguides. I don't have HOWTOs for JK2 bookmarked, but I know some are out there. Regarding virtual hosts, think of it this way: Apache VirtualHost in httpd.conf = Tomcat Host in server.xml Apache DocumentRoot in httpd.conf = Tomcat Context in server.xml So, virtual hosting is pretty straight-forward as far as Tomcat is concerned...for every Apache VirtualHost, there should be a Tomcat Host in server.xml (or at least a Host Alias), and for every DocumentRoot, there should be a corresponding Context, though the actual paths of DocumentRoot and Context may not be identical based on what you are trying to do. In a default Tomcat install, there is one virtual host already setup (localhost) and four Contexts: /examples, /, /admin, and /manager. That should be enough to get you going. If you wanted to add your own, for example, like http://www.host-a.com/my.jsp, you would setup a Host element in server.xml with a name of www.host-a.com and then you would setup a ROOT Context (/). Lather, rinse, repeat. I don't have any ideas on your SendMailServlet message. John -Original Message- From: chris schild [mailto:[EMAIL PROTECTED]] Sent: Monday, January 27, 2003 3:44 PM To: Tomcat Users List Subject: Re: JK2 workers2 vs. jk workers??? John, Would you recommend staying with the original mod_jk since I am using Win2k or is mod_jk2 the way to go? I am going to rebuild Tomcat since I have configured reconfigured it so much. My knowledge level, although still minimal, is much greater than it was a month ago... btw- I am still have problems with the msg: Apache Tomcat - HTTP Status 503 - Servlet SendMailServlet is currently unavailable Any ideas on that one? Thanks again! - Original Message - From: Turner, John [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Monday, January 27, 2003 2:23 PM Subject: RE: JK2 workers2 vs. jk workers??? Not for JK2. John -Original Message- From: list [mailto:[EMAIL PROTECTED]] Sent: Monday, January 27, 2003 3:02 PM To: Tomcat Users List Subject: Re: JK2 workers2 vs. jk workers??? here you find everything you need: http://www.galatea.com/flashguides/index chris schild wrote: Does anyone know of the location of some docs? And/Or have a sample configuration including virtual hosts. I am using: Apache 2.0.43 Tomcat 4.1.18 Windows 2000 Thanks much!!! - Original Message - From: chris schild [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Monday, January 27, 2003 1:33 PM Subject: JK2 workers2 vs. jk workers??? I have seen jk.properties workers.properties BUT what is the difference with jk2 workers2?Do I need jk workers also? I guess the I am missing something here!!! I haven't found anything in the archives or docs (so far) that is helping. I'm assuming it is mod_jk2 instead of mod_jk?Would someone please give me some guidance on setting up Apache 2.0.43 in front of Tomcat 4.1.18 with multiple Virtual Hosts? The information in the documentation is tantalizing but I cannot quite get it to work. I just looking for a general theory of operation here. Do I need to create matching host entries in server.xml for each of the hosts in workers2.properties or can I configure the root of certain virtual hosts to specific contexts of localhost? For example can I use workers2.properties to make http://foo.mycompany.com go to http://localhost/app1 and http://bar.mycomapny.com go to http://localhost/app2? This is hinted at by the context and servlet properties of the uri config element but it is not clear. Thank You, Victor Lewis -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Doubt in Single Sign On !!!
On Mon, 27 Jan 2003, shanmugampl wrote: Date: Mon, 27 Jan 2003 14:13:57 +0530 From: shanmugampl [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED], [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Doubt in Single Sign On !!! Hi All, I am using tomcat 4.1.18 and have enabled Single Sign On. I have two contexts A and B and the files present inside the /jsp directories of both the contexts are secured. In the global web.xml file i have my session time out changed to 10 minutes. With this setup, i login into context A and after some time move to context B. After moving to context B, i was going through the files present in context B alone. As i kept on working in context B, the session of context A got timed out and i was again asked to authenticate myself. As i have enabled SSO, shouldn't accessing any one context keep all the other accessed contexts alive. i.e context A should be alive, even when not accessed for a long time because context B is accessed frequently. Hope i am clear. That is how SSO should work, right . Have I misunderstood anything or have I configured anything wrongly. SSO has nothing at all to do with session timeouts. It only involves authentication. Thanks Shanmugam.PL Craig -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: URL alias
On Mon, 27 Jan 2003 [EMAIL PROTECTED] wrote: Date: Mon, 27 Jan 2003 11:23:45 -0600 (CST) From: [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Re: URL alias Erik suggested: Why not create a filter -- map login to your filter (LoginFilter) and have the Filter intercept the request and add the parameter to the request before it calls the doFilterChain() (which means before it passes the request to the Controller). I thought about doing that, but (forgive me) - I can't figure out how to add a parameter! I see on the request API how to getParameter() and getParameterNames(), but I don't see a set method. How do I add a parameter in a filter? You can simulate adding a parameter (the servlet that is ultimately called cannot tell the difference) by doing the following: * Create a subclass of HttpServletRequestWrapper that overrides the getParameter() method and it's other friends. * In your Filter's doFilter() method, create an instance of your custom wrapper that wraps the request you originally received. * When you call chain.doFilter(), pass your wrapper instance instead of the original request. The net effect is that, when the servlet calls getParameter(), it is calling the method on your wrapper, which can do whatever it needs to do to simulate adding a new parameter. Paul Craig -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Session Timeout - Who has the final decision?
On Mon, 27 Jan 2003, Jerry Jalenak wrote: Date: Mon, 27 Jan 2003 13:22:47 -0600 From: Jerry Jalenak [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: '[EMAIL PROTECTED]' [EMAIL PROTECTED] Subject: Session Timeout - Who has the final decision? Hi All, I've checked the Tomcat-User and Struts-User archives for an answer to this, but am still not sure of the answer. Given that I can set a session timeout interval in Tomcat's configuration file (web.xml), the web application itself (web.xml), and also by setting 'session.setMaxInactiveInterval(#secs)', who wins? In other words, if I have the following: Tomcat timeout is 30 minutes Web Appl. timeout is 45 minutes session.setMaxInactiveInterval 3600 seconds (or 60 minutes) Whichever value is set last always wins. Presumably, if your app is explicitly setting this, it was done after the session was created (which is when the initial default value is applied). You can call setMaxInactiveInterval() on a given session instance as many times as you like, and the last value you set is always the one that will apply when the current request completes. does the users session 'live' for the full 60 minutes? Or does one of the other settings take precedence? Well, you could always *try* this and see for yourself too :-). TIA! Jerry Jalenak Craig -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: using ajp without tomcat
Actually I am posting for a friend. He is tracying the code to see what is going on I just thought since people already did a lot on this someone proboly has the answer right away :-) Anyway thanks for your help, I will go post on dev list instead Thanks again - Original Message - From: Turner, John [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Monday, January 27, 2003 1:27 PM Subject: RE: using ajp without tomcat Maybe posting to tomcat-dev would get you a quicker answer. John -Original Message- From: James Chang [mailto:[EMAIL PROTECTED]] Sent: Monday, January 27, 2003 1:14 PM To: Tomcat Users List Subject: Re: using ajp without tomcat I have downloaded apache binary dist and the ajp connector source, and builded the IIS redirector (It was rather strange that apr.h is in apache binary dist but not in the apache source release). What I found with debug messages is, HttpFilterProc() is called with I request http://localhost/examples/x, which means the dll is installed correctly and the configuration files are correct (mappings and etc). However there is no line of code in HttpFilterProc() that actually calls anything to open the socket and send data. I checked several possible functions to see if they are the ones who send data, but all turn out to be some string manipulation functions. Could someone tell me which function call in HttpFilterProc actaully result in open socket to 8009 port? Thanks - Original Message - From: James Chang [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Sunday, January 26, 2003 8:53 PM Subject: using ajp without tomcat Hi: I am trying to get ajp to work for other jsp/servlet engines other then tomcat. Right now I am working on IIS with isapi_redirector2.dll and listening on port 8009 with my own ajp listener. I downloaded isapi_redirector2.dll from: http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk2 /release/v2.0. 2/bin/win32/ set up the registry settings and use the simple works2.properties file below. IIS shows the dll is loaded correctly, but when I try to request to http://localhost/examples/x , the isapi_redirector2.dll doesn't send any request to port 8009. Could anyone tell me what is wrong with my configuration file? Or is the dll somehow need tomcat to work (I have set it to use socket, but maybe the dll needs some configuration file or shared library from tomcat)?? Any pointer will be usefull. Thanks! the registry I used is: REGEDIT4 [HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Jakarta Isapi Redirector\2.0] serverRoot=d:\\tm extensionUri=/jakarta/isapi_redirector2.dll workersFile=D:\\shared\\iisredir\\workers2.properties authComplete=0 threadPool=5 All strings are properly installed. My workers2.properties file contains: # Define the communication channel [channel.socket:localhost:8009] info=Ajp13 forwarding over socket tomcatId=localhost:8009 # Map the Tomcat examples webapp to the Web server uri space [uri:/examples/*] info=Map the whole webapp -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Having problems with endorsed directories working in Tomcat 4.1.18
Hello John, So, you are saying that you put your new parser in jee/lib/endorsed and expect Tomcat to pick that up like Ant did? Note that Tomcat also has an endorsed directory in CATALINA_HOME/common/endorsed. Jars in that directory will override not only the regular JDK libraries but also those libraries that were put in jre/lib/endorsed. Think of it as simply higher specificity. An endorsed directory specified by Tomcat will override the more general endorsed directory specified for the whole Java system. Jake Monday, January 27, 2003, 1:53:40 PM, you wrote: JT I have changed the parser in the endorsed directory but tomcat does not JT seem to see the changes. JT When I compile using ant (and the endorsed directory in JT jre/lib/endorsed) all works as expected. JT Any help? JT Thanks, JT John JT -- JT To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] JT For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- Best regards, Jacobmailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
getting java.lang.NoClassDefFoundError
I'm getting the following error: java.lang.NoClassDefFoundError: javax/servlet/http/HttpServletRequest when I try to execute the following: bean code: request(request, response) { request.getParamater(inputBox); //This line cause the error. } Why isn't this (javax/servlet/http/HttpServletRequest) in my/tomcat's classpath?? Is that the problem?? -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]