RE: getConnection() returning a NULL JDBC driver
Hi Rosdi, I tried your suggestions without much luck. When I create a context reference to the Interbase DB the code fails on the following line: DataSource ds = (DataSource) envCtx.lookup(jdbcTranshub); with the error: Name jdbcTranshub is not bound in this Context The entry I created in the Server.XML file is: Context path=C:\Program Files\Apache Group\Tomcat 4.1\webapps\transhub docBase=transhub debug=0 reloadable=true crossContext=true ResourceLink global=jdbc/Transhub name=jdbcTranshub type=javax.sql.DataSource/ /Context Java code is: Context initCtx = new InitialContext(); Context envCtx = (Context) initCtx.lookup(java:comp/env); DataSource ds = (DataSource) envCtx.lookup(jdbcTranshub); Connection conn = ds.getConnection(); Any other ideas? Thanks in advance, Rob. PS: I did remove the Resource-Ref out of the web.xml file as well. -Original Message- From: Rosdi bin Kasim [mailto:[EMAIL PROTECTED]] Sent: Monday, 2 September 2002 12:13 PM To: Tomcat Users List Subject: Re: getConnection() returning a NULL JDBC driver Robert, First of all.., I am using Oracle and Tomcat 4.1.9, so my answer might not apply to your problem.. I got the same error like yours.. but after I removed all reference to the datasource in web.xml and then I declared a ResourceLink like this in my server.xml my program is running perfectly. Here is my global datasource in server.xml Resource auth=Container name=jdbc/epantaidbPool scope=Shareable type=javax.sql.DataSource/ ResourceParams name=jdbc/epantaidbPool parameter nameusername/name valueepuser/value /parameter parameter nameurl/name valuejdbc:oracle:thin:@localhost:1521:epantai/value /parameter parameter namepassword/name valuezaq12wsx/value /parameter parameter namemaxActive/name value20/value /parameter parameter namemaxWait/name value5000/value /parameter parameter namedriverClassName/name valueoracle.jdbc.driver.OracleDriver/value /parameter parameter namemaxIdle/name value10/value /parameter /ResourceParams And then here is the resource link for my application, also in server.xml. Context className=org.apache.catalina.core.StandardContext cachingAllowed=true charsetMapperClass=org.apache.catalina.util.CharsetMapper cookies=true crossContext=false debug=0 docBase=C:\jakarta-tomcat-4.1.9\webapps\mediline_upload mapperClass=org.apache.catalina.core.StandardContextMapper path=/mediline_upload privileged=false reloadable=false useNaming=true wrapperClass=org.apache.catalina.core.StandardWrapper ResourceLink global=jdbc/epantaidbPool name=jdbc/epantaidbPool type=javax.sql.DataSource/ /Context Then I create a singleton class to initialise the datasource, all my codes then get the connection from this singleton class. I attach the server.xml, web.xml, ConnCache.java, and DatabaseManager.java for your reference. Hope that helps.. Regards, Rosdi. - Original Message - From: Robert Dunn [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Monday, September 02, 2002 9:37 AM Subject: getConnection() returning a NULL JDBC driver Hi all, I am attempting to get a connection to the JDBC entry from the server.xml file and keep getting the error Cannot load JDBC driver class 'null'. The error occurs when I attempt to call ds.getConnection();. I have placed all of the Interbase JAR files in the Common\Lib directory; Do I need to register these with Tomcat somehow? All of the files/system are detailed below. Any ideas would be helpful. Platform: WinXP Tomcat 4.1.9 Stand Alone Java code: Context initCtx = new InitialContext(); Context envCtx = (Context) initCtx.lookup(java:comp/env); DataSource ds = (DataSource) envCtx.lookup(jdbc/Transhub); Connection conn = ds.getConnection(); The entry in the web.xml file is as follows: resource-ref descriptionInterbase JDBC/description res-ref-namejdbc/Transhub/res-ref-name res-typejavax.sql.DataSource/res-type res-authContainer/res-auth /resource-ref Entry from the server.xml file is: Resource name=jdbc/Transhub auth=Container type=javax.sql.DataSource description=Resource name for the interbase client connection/ ResourceParams name=jdbc/Transhub parameter namedescription/name valueResource Parameters for the Transhub Interbase DB/value /parameter parameter namemaxActive/name value8/value /parameter parameter namemaxIdle/name value4/value /parameter parameter nameuser/name valuesysdba/value /parameter
Re: getConnection() returning a NULL JDBC driver
Oh!.. Robert, btw.., I used tomcat admin to add the ResourceLink... try this url, http://localhost:8080/admin go to your apps and add the link from there This will make sure the xml is generated properly. - Original Message - From: Rosdi bin Kasim [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Monday, September 02, 2002 2:56 PM Subject: Re: getConnection() returning a NULL JDBC driver Try this: DataSource ds = (DataSource) envCtx.lookup(jdbc/Transhub); and for your ResourceLink, try ResourceLink global=jdbc/Transhub name=jdbc/Transhub type=javax.sql.DataSource/ I dont know if that would make any difference.. but it works for me.. - Original Message - From: Robert Dunn [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Monday, September 02, 2002 2:44 PM Subject: RE: getConnection() returning a NULL JDBC driver Hi Rosdi, I tried your suggestions without much luck. When I create a context reference to the Interbase DB the code fails on the following line: DataSource ds = (DataSource) envCtx.lookup(jdbcTranshub); with the error: Name jdbcTranshub is not bound in this Context The entry I created in the Server.XML file is: Context path=C:\Program Files\Apache Group\Tomcat 4.1\webapps\transhub docBase=transhub debug=0 reloadable=true crossContext=true ResourceLink global=jdbc/Transhub name=jdbcTranshub type=javax.sql.DataSource/ /Context Java code is: Context initCtx = new InitialContext(); Context envCtx = (Context) initCtx.lookup(java:comp/env); DataSource ds = (DataSource) envCtx.lookup(jdbcTranshub); Connection conn = ds.getConnection(); Any other ideas? Thanks in advance, Rob. PS: I did remove the Resource-Ref out of the web.xml file as well. -Original Message- From: Rosdi bin Kasim [mailto:[EMAIL PROTECTED]] Sent: Monday, 2 September 2002 12:13 PM To: Tomcat Users List Subject: Re: getConnection() returning a NULL JDBC driver Robert, First of all.., I am using Oracle and Tomcat 4.1.9, so my answer might not apply to your problem.. I got the same error like yours.. but after I removed all reference to the datasource in web.xml and then I declared a ResourceLink like this in my server.xml my program is running perfectly. Here is my global datasource in server.xml Resource auth=Container name=jdbc/epantaidbPool scope=Shareable type=javax.sql.DataSource/ ResourceParams name=jdbc/epantaidbPool parameter nameusername/name valueepuser/value /parameter parameter nameurl/name valuejdbc:oracle:thin:@localhost:1521:epantai/value /parameter parameter namepassword/name valuezaq12wsx/value /parameter parameter namemaxActive/name value20/value /parameter parameter namemaxWait/name value5000/value /parameter parameter namedriverClassName/name valueoracle.jdbc.driver.OracleDriver/value /parameter parameter namemaxIdle/name value10/value /parameter /ResourceParams And then here is the resource link for my application, also in server.xml. Context className=org.apache.catalina.core.StandardContext cachingAllowed=true charsetMapperClass=org.apache.catalina.util.CharsetMapper cookies=true crossContext=false debug=0 docBase=C:\jakarta-tomcat-4.1.9\webapps\mediline_upload mapperClass=org.apache.catalina.core.StandardContextMapper path=/mediline_upload privileged=false reloadable=false useNaming=true wrapperClass=org.apache.catalina.core.StandardWrapper ResourceLink global=jdbc/epantaidbPool name=jdbc/epantaidbPool type=javax.sql.DataSource/ /Context Then I create a singleton class to initialise the datasource, all my codes then get the connection from this singleton class. I attach the server.xml, web.xml, ConnCache.java, and DatabaseManager.java for your reference. Hope that helps.. Regards, Rosdi. - Original Message - From: Robert Dunn [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Monday, September 02, 2002 9:37 AM Subject: getConnection() returning a NULL JDBC driver Hi all, I am attempting to get a connection to the JDBC entry from the server.xml file and keep getting the error Cannot load JDBC driver class 'null'. The error occurs when I attempt to call ds.getConnection();. I have placed all of the Interbase JAR files in the Common\Lib directory; Do I need to register these with Tomcat somehow? All of the files/system are detailed below. Any ideas would be helpful. Platform: WinXP Tomcat 4.1.9 Stand Alone Java code: Context initCtx = new InitialContext();
Re: altering the request URI in a filter
Bill Barker wrote: jfc [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi, Tomcat 404, jdk1.3: Is it possible to alter the request's URI after authentication but before the request is delegated to a Struts action mapping? The beauty of Filters is that anything is possible :-). The Filter (at least under Tomcat) will only be invoked after authentication, but before the Struts servlet. I would like to be able to strip a string from the request URI which is there solely for the purposes of enforcing the web container to obtain authentication and authorization info. (if the web container's auth cache has been turned off). You would need to wrap the Request with one that over-rides (at least) getRequestURI, and getServletPath, and in some cases, getPathInfo (although, since Struts uses extension mappings, the last one shouldn't apply in your case). Cheers jfc -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] Hi, Thanks for the reply. How can I actually set the new value/s on the request? I don't see any setter methods or any fields which can be used to hold the new value. The only setters I can see are setAttribute and setRequest. jfc -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Tomcat Clustering.
Would you like to post your workers file D Luminous Heart wrote: Greetings, I have a cluster of 3 tomcats running on linux box. I have the three tc4.0.4 instances in a loadbalancing mode. The problem is when one fails none of the others pick up and my app wont serve any requests untill I shut the faulty tc. Only at that point one of the other two will work. And if I restart the faulty one it will start working again. Should there be a failover behavior or loadbalance on tc does not support that? Thank you. __ Do You Yahoo!? Yahoo! Finance - Get real-time stock quotes http://finance.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]
Application configuration is destroyed when making undeploy in Tomcat 4.1
Hello tomcat users, I'm using a deploytool from JWSDP (or Ant tasks) to remotely deploy my application. My development cycle has the following steps: 1: Write code 2: Undeploy an application 3: Deploy an application 4: GOTO 1 The problem is, at step 2 all the configuration for my application which i've created using admin tool or by manually editing server.xml is lost. My question is: is there some possibility to remotely update only the .war-file of my application on the server but leave the configuration in server.xml as it is? Trying to execute deploy twice causes an error: -- FAIL - Application already exists at path /webappdemo -- Please cc your answer to [EMAIL PROTECTED] Thanks in advance -- Andrei Svirida -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
4.0.4 digest.sh - NoClassDefFoundError: org/apache/catalina/startup/Tool
Any idea? BTW: In which jar is located org/apache/catalina/startup/Tool class? -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
CRL in Tomcat
I asked this question last week, but I didn't receive any answers so far: I'm using Tomcat 4.0.2 (stand-alone) with SSL on Solaris 8, but I can't figure out how I can setup a Certificate Revocation List (CRL) in tomcat? Is it possible to store certificates that are revoked in a Revocation List in tomcat? And if so, how do I have to set this up? Hopefully somebody can help me with this question. Thanx in advance, Regards, Mario Mario Klaver Senior Consultant Cap Gemini Ernst Young Telecom Media Networks Mobile: +31 (0) 6 185 134 01 Office: +32 (0) 2708 1723 Email: [EMAIL PROTECTED] -- This message contains information that may be privileged or confidential and is the property of the Cap Gemini Ernst Young Group. It is only intended for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
how to avoid the directory list without any index.html/jsp
hi all, i am using tomcat 4.0.4 how to avoid the directory list without any index.html or index.jsp by redirect to 403 forbidden error instead of any welcome page but how to config? thanks for any help micheal _ Join the worlds largest e-mail service with MSN Hotmail. http://www.hotmail.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
AW: how to avoid the directory list without any index.html/jsp
You can force tomcat not to index your directories: Edit your web.xml and change the listings parameter. servlet servlet-namedefault/servlet-name servlet-classorg.apache.catalina.servlets.DefaultServlet/servlet-clas s init-param param-namedebug/param-name param-value0/param-value /init-param init-param param-namelistings/param-name param-valuefalse/param-value /init-param load-on-startup1/load-on-startup /servlet Now tomcat will not show the dirs. You can configure some custom error pages like this: web-app error-page error-code404/error-code location/errorpages/401.jsp/location /error-page A way to redirect on a special error code to your own errorpage. Hope this helps. Regs Holger -Ursprüngliche Nachricht- Von: micheal lau [mailto:[EMAIL PROTECTED]] Gesendet: Montag, 2. September 2002 11:57 An: [EMAIL PROTECTED] Betreff: how to avoid the directory list without any index.html/jsp hi all, i am using tomcat 4.0.4 how to avoid the directory list without any index.html or index.jsp by redirect to 403 forbidden error instead of any welcome page but how to config? thanks for any help micheal _ Join the worlds largest e-mail service with MSN Hotmail. http://www.hotmail.com -- 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: Startup-Problems: Tomcat 4.0.4 binary on Linux w/J2SDK 1.3.1
Tim Funk wrote: 1) A java process in linux shows up many times with ps or top (because of multiple threads) 2) See logs/catalina.out for an error message. There is propably a misconfig in server.xml or another run time error the tomcat cannot recover from. In any case the logs/catalina.out captures stdout/stderr. Tim, Thanks much for your reply. I am using an unmodified server.xml from the binary distribution and logs/catalina.out is empty; it contains nothing at all. Sorry - this is the first time I am using tomcat; how can I track this error down? What options do I have? Thanks! Kilian -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Tomcat and JSP problem
The problem as you no doubt know is that the jsp compile is not finding MechanicBean.class. You need to make sure that MechanicBean is in a package as otherwise the jsp compiler will look for classes in the default package which for the jsp compiler is org.apache.jsp. Just add (I'll use your email address for uniqueness) package com.hotmail.ttum; to the top of the MechanicBean.java file and then in the jsp file go for com.hotmail.ttum.MechanicBean Make sure that MechanicBean.class is then put in [TomcatRoot]\webapps\[your webapp]\WEB-INF\classes\com\hotmail\ttum\ Hope this helps Best Wishes John Burgess [EMAIL PROTECTED] Tel: 01865 718666 Fax: 01865 718600 PS to write to the list the mailing address is HYPERLINK mailto:[EMAIL PROTECTED][EMAIL PROTECTED] see my CC to this letter -Original Message- From: Tuangporn Khawcharoenporn [mailto:[EMAIL PROTECTED]] Sent: Sunday, September 01, 2002 4:39 AM To: [EMAIL PROTECTED] Subject: Tomcat and JSP problem Hi Sorry to email you directly. I saw your posted message on Tomcat-User list. I have already subscribed to the list but I don't know how to post the message. Would you please suggest me? I also have one critical problem with my JSP project that I would appreciate to have an idea from you. I'm trying to solve this problem for my JSP project for many days. I'm using Tomcat 4.0.3 and jdk1.3.1. Everything I set for PATH or symtem variables are working fine with Servlet. The application I am developing is to use JSP with JavaBeans. I use the bean class called MechanicBean and use MechanicInfo.jsp to instantiate the bean class with this tag, ?xml:namespace prefix = jsp / However, after running the program, the error shown in the browser as type: Exception report message: Internal Server Error description: The server encountered an internal error (Internal Server Error) that prevented it from fulfilling this request. exception: org.apache.jasper.JasperException: Unable to compile class for JSP An error occured at line 9 in the jsp file: /MechanicInfo.jsp Generated servlet error: D:\tomcat4\work\localhost\Mechanic\MechanicInfo$jsp.jsp.java:60: Class org.apache.jsp.MechanicBean not found. ... ... I was wondering what is the source of the problem. I have already defined the compiled bean class to use. Is this the problem of Tomcat 4.0.3 or the application itself? How to solve this problem? I would very much appreciate your suggestion. Thank you. Tum Tuangporn Khawcharoenporn (Tum) _ MSN Photos is the easiest way to share and print your photos: HYPERLINK http://g.msn.com/1HM1ENTH/c156??PI=44361Click Here --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.381 / Virus Database: 214 - Release Date: 02/08/02 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.384 / Virus Database: 216 - Release Date: 21/08/02
Re: mod_jk2 - error on tomcat4.0.4 side?
hi, I've checked the responses yet, set to root user and group my apache2 and tomcat4.0.4 home dirs recursively, and checked and confirmed that tomcat4.0.4/lib/ really has the libjkjni.so, however still got the same error in catalina.out, and nothing listens for me on port 8080. Those who said could make it work without any problem should specify us some info on their system (linux distrib, version of glibc libs, jdk version, apache version, their source for the jakarta-tomcat-connectors, file size for jtc.jar and libjkjni.so, their specific location.) My details are as follows: OS: RedHat Linux 7.2 (glibc-2.2.4.-24, gcc-2.96-98, libtool-1.4-8) JDK: Sun JDK 1.3.1_03 Apache: Apache2.0.40 from apache distribution tarball (tgz) JTC: jakarta-tomcat-connectors project from CVS as of Aug 28, 2002 jtc.jar: 364363 bytes in $CATALINA_HOME/server/lib/ libjkjni.so: 620780 bytes in $CATALINA_HOME/lib/ If all of these vital info are the same for those who have no errors, please note us. Regards, Thomas - Original Message - From: Peter T. Abplanalp [EMAIL PROTECTED] Sent: Saturday, August 31, 2002 00:13 Subject: Re: mod_jk2 - error on tomcat4.0.4 side? -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Fri, Aug 30, 2002 at 02:50:39PM -0700, Ray Madigan wrote: Peter - thanks for your help on this issue. welcome. well, this is gonna be like trying to find a needle in a haystack. let's try this, remove all tomcat and apache logs, start tomcat, wait 30 seconds, start apache, wait 30 seconds and send me (let's take that one off list) the tomcat and apache logs. if we find the answer, we can post that to the list. - -- Peter Abplanalp -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: getConnection() returning a NULL JDBC driver
Try this: DataSource ds = (DataSource) envCtx.lookup(jdbc/Transhub); and for your ResourceLink, try ResourceLink global=jdbc/Transhub name=jdbc/Transhub type=javax.sql.DataSource/ I dont know if that would make any difference.. but it works for me.. - Original Message - From: Robert Dunn [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Monday, September 02, 2002 2:44 PM Subject: RE: getConnection() returning a NULL JDBC driver Hi Rosdi, I tried your suggestions without much luck. When I create a context reference to the Interbase DB the code fails on the following line: DataSource ds = (DataSource) envCtx.lookup(jdbcTranshub); with the error: Name jdbcTranshub is not bound in this Context The entry I created in the Server.XML file is: Context path=C:\Program Files\Apache Group\Tomcat 4.1\webapps\transhub docBase=transhub debug=0 reloadable=true crossContext=true ResourceLink global=jdbc/Transhub name=jdbcTranshub type=javax.sql.DataSource/ /Context Java code is: Context initCtx = new InitialContext(); Context envCtx = (Context) initCtx.lookup(java:comp/env); DataSource ds = (DataSource) envCtx.lookup(jdbcTranshub); Connection conn = ds.getConnection(); Any other ideas? Thanks in advance, Rob. PS: I did remove the Resource-Ref out of the web.xml file as well. -Original Message- From: Rosdi bin Kasim [mailto:[EMAIL PROTECTED]] Sent: Monday, 2 September 2002 12:13 PM To: Tomcat Users List Subject: Re: getConnection() returning a NULL JDBC driver Robert, First of all.., I am using Oracle and Tomcat 4.1.9, so my answer might not apply to your problem.. I got the same error like yours.. but after I removed all reference to the datasource in web.xml and then I declared a ResourceLink like this in my server.xml my program is running perfectly. Here is my global datasource in server.xml Resource auth=Container name=jdbc/epantaidbPool scope=Shareable type=javax.sql.DataSource/ ResourceParams name=jdbc/epantaidbPool parameter nameusername/name valueepuser/value /parameter parameter nameurl/name valuejdbc:oracle:thin:@localhost:1521:epantai/value /parameter parameter namepassword/name valuezaq12wsx/value /parameter parameter namemaxActive/name value20/value /parameter parameter namemaxWait/name value5000/value /parameter parameter namedriverClassName/name valueoracle.jdbc.driver.OracleDriver/value /parameter parameter namemaxIdle/name value10/value /parameter /ResourceParams And then here is the resource link for my application, also in server.xml. Context className=org.apache.catalina.core.StandardContext cachingAllowed=true charsetMapperClass=org.apache.catalina.util.CharsetMapper cookies=true crossContext=false debug=0 docBase=C:\jakarta-tomcat-4.1.9\webapps\mediline_upload mapperClass=org.apache.catalina.core.StandardContextMapper path=/mediline_upload privileged=false reloadable=false useNaming=true wrapperClass=org.apache.catalina.core.StandardWrapper ResourceLink global=jdbc/epantaidbPool name=jdbc/epantaidbPool type=javax.sql.DataSource/ /Context Then I create a singleton class to initialise the datasource, all my codes then get the connection from this singleton class. I attach the server.xml, web.xml, ConnCache.java, and DatabaseManager.java for your reference. Hope that helps.. Regards, Rosdi. - Original Message - From: Robert Dunn [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Monday, September 02, 2002 9:37 AM Subject: getConnection() returning a NULL JDBC driver Hi all, I am attempting to get a connection to the JDBC entry from the server.xml file and keep getting the error Cannot load JDBC driver class 'null'. The error occurs when I attempt to call ds.getConnection();. I have placed all of the Interbase JAR files in the Common\Lib directory; Do I need to register these with Tomcat somehow? All of the files/system are detailed below. Any ideas would be helpful. Platform: WinXP Tomcat 4.1.9 Stand Alone Java code: Context initCtx = new InitialContext(); Context envCtx = (Context) initCtx.lookup(java:comp/env); DataSource ds = (DataSource) envCtx.lookup(jdbc/Transhub); Connection conn = ds.getConnection(); The entry in the web.xml file is as follows: resource-ref descriptionInterbase JDBC/description res-ref-namejdbc/Transhub/res-ref-name res-typejavax.sql.DataSource/res-type res-authContainer/res-auth /resource-ref Entry from the server.xml file is: Resource name=jdbc/Transhub
Re: How does Tomcat and/or servlets handle HTTP chunked reads?
Saw your post on tomcat list. Im gettin ready to do similiar activity. I wanna do imagemaping, some of which include pdf files. Im using Tomcat 4.1.7 standalone - no apache httpd. I had some pages that used imagemaps and found that they dont seem to work with the coyote http in Standalone Tomcat. The map file works great under apache httpd, but doesnt seem to wanna work with Tomcat. I have a montage of images that I used mapedit to create map file for coordinates and then when user clicks coordinate in montage, the image is supposed to get exploded to full screen image. I have seen some postings that indicate a combination of jsp and bean is needed to accomplish this under Tomcat. ??? Have you been able to get pdf files??? Im sure the process will have some similarities with my task. I'm just curious how Tomcat handles HTTP requests that only want a portion of the content. I'm specifically interested in things like PDF files, which is the most common client of chunked data. I suppose its solely up to the Servlet to figure out that the request wants a chunk of data (from the request headers) and return the appropriate bits (and status code), correct? Has anyone played with this at all? We're getting ready to put some Filters in front of some PDFs, and this little detail caught my eye. We haven't actually tried anything yet. Just wondering what others experiences were regarding chunked reads. Thanx! Regards, Will Hartung ([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]
Tomcat + Apache, it works!!!
Hi all, I am so very glad because this weekend I got a self-compiled Apache 1.3.26 and a self-compiled tomcat 4.0.4 working together with mod_jk.so (on a self-compiled linux btw). It was a bit hard to get started (the manuals, umm..), but yes... Open Source kicks asses!! You developers rock!! REALLY!!! [/me hugs the open source community] ;) Now I´ll go for tomcat 4.1.x, I think. And a self-compiled cocoon, slide, ozone etc... ingmar -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
problems with fitlers in chain
Hi, I try to write three filters in chain, where each filter can modify request and finaly give request to jsp page, but it isn`t work so. Each filter gets only new request, not that from previous filter :( For example: 1auth filter (request, response){ out.println(filter1); request.addAttribute(asd,asdfa); chain.doFilter(request, response); } 2control filter(request, response){ out.println(filter2); out.println((String)request.getAttribute(asd)); request.addAtribute(ttt,ttt); chain.doFilter(request, response); } 3conn filter(request, response){ out.println(filter3); out.println((String)request.getAttribute(asd)); out.println((String)request.getAttribute(ttt)); chain.doFilter(request,response); } And as a result I get respnse: filter1 filter2 null filter3 null null In web.xml they are defined in order 1,2,3 and mapped to one jsp page. What I do wrong ??? Or is it some tomcat bug ??? Maybe there is some workaraound ??? ARvils [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
eliminating the stickiness in mod_jk
Hi Group ! Does anyone know if it's possible to eliminate the stickiness feature of mod_jk module ? I have 2 tomcats operating with 1 apache and I'd like each request to be directed to adifferent tomcat each time. It seems that mod_jk keeps bringing the same session to the same tomcat :( Any ideas ? Ciao, Tal [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Server memory usage
TC4.0.4, jdk1.4.0_01, RH7.3 on P3-633MHz, 256MB RAM When I start TC, I find 28 Java processes for a total of 829MB used. Is there a way to make it use less memory, so that it runs only out of RAM? Thank you all. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Problems with Tomcat 4.0.4 and IExplorer Pocket PC 2002
Hi Jakarta addicts, I'm working with an IIS 5.0 and Tomcat 4.0.4 with the Isapi_redirector well configured. I can access to the examples of Tomcat with Internet Explorer and Netscape Navigator right but I can't see them on my PDA HP Jornada 568 with the Pocket IExplorer. Who can help me? Thanks!!! Alex
Tomcat/Mysql/Woody
Hi, I'm sorry, I'm new to this mailing list, and I didn't find any post in the archive about this subjector I don't know how to search. I've got a problem since I upgraded from debian potato to debian woody. the following jsp file doesn't display the same thing on the different debian distro. it just extract data from a mysql database. - %@ page import=java.sql.* % % String connectionURL = jdbc:mysql://localhost:3306/dbname?user=dbuserpassword=xxx; Connection connection = null; Statement statement = null; ResultSet rs = null; % html head meta http-equiv=Content-Type content=text/html; charset=iso-8859-1 /head hé hé hé body % Class.forName(org.gjt.mm.mysql.Driver).newInstance(); connection = DriverManager.getConnection(connectionURL, , ); statement = connection.createStatement(); rs = statement.executeQuery(SELECT * FROM xxx); while (rs.next()) { out.println(rs.getString(description)+br); } rs.close(); % /body/html - this jsp displays, on the potato box : -- hé hé hé Revue d'histoire consacrée à la période de la Révolution française et de l'Empire. ... -- the same jsp displays, on the woody box : -- hé hé hé Revue d'histoire consacr?e ? la p?riode de la R?volution fran?aise et de l'Empire. ... -- as you can see, french special characters are now ? when they are extracted from the mysql DB. but if I check the mysql manually or with phpmyadmin, french character are still there ! I'm using mysql-3.23.51 and jakarta-tomcat-4.0.4 on both systems same config files ! if anybody has a clue . thanks a lot Luc -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Tomcat Clustering.
Here is my workers file. Please notice that I mounting tomcat context as such in my mod_jk.conf file: JkMount /* loadbalancer JkMount /servlet/* loadbalancer loadbalancer is defined in the following workers file. Thank you in advance. === workers.properties = workers.tomcat_home=/usr/local/tomcat workers.java_home=/usr/local/j2sdk1.4.0 ps=/ worker.list=tc13,intra13, extra13, loadbalancer worker.tc13.port=8039 worker.tc13.host=localhost worker.tc13.type=ajp13 worker.tc13.lbfactor=1 worker.intra13.port=8049 worker.intra13.host=localhost worker.intra13.type=ajp13 worker.intra13.lbfactor=1 worker.extra13.port=8059 worker.extra13.host=localhost worker.extra13.type=ajp13 worker.extra13.lbfactor=1 worker.tc41Intra.port=9009 worker.tc41Intra.host=localhost worker.tc41Intra.type=ajp13 worker.tc41Intra.lbfactor=1 worker.loadbalancer.type=lb worker.loadbalancer.balanced_workers=tc13, intra13, extra13 worker.inprocess.type=jni worker.inprocess.class_path=$(workers.tomcat_home)$(ps)lib$(ps)tomcat.jar worker.inprocess.cmd_line=start worker.inprocess.jvm_lib=$(workers.java_home)$(ps)jre$(ps)bin$(ps)classic$(ps)libjvm.so worker.inprocess.stdout=$(workers.tomcat_home)$(ps)logs$(ps)inprocess.stdout worker.inprocess.stderr=$(workers.tomcat_home)$(ps)logs$(ps)inprocess.stderr == End workers.properties == --- David Cassidy [EMAIL PROTECTED] wrote: Would you like to post your workers file D Luminous Heart wrote: Greetings, I have a cluster of 3 tomcats running on linux box. I have the three tc4.0.4 instances in a loadbalancing mode. The problem is when one fails none of the others pick up and my app wont serve any requests untill I shut the faulty tc. Only at that point one of the other two will work. And if I restart the faulty one it will start working again. Should there be a failover behavior or loadbalance on tc does not support that? Thank you. __ Do You Yahoo!? Yahoo! Finance - Get real-time stock quotes http://finance.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! Finance - Get real-time stock quotes http://finance.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Connection pool examples
Hi everyone! I would like to know if there are some practical examples about how to implement the Data Base Connection Pool API. (Tomcat, Oracle) Could you please give me some references? Thanks in advance Nancy. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Server memory usage
In linux - threaded processes show up multiple times in top (or ps). Once entry for each thread. Summing the entries in top will yield an incorrect memory usage. Just take one of the entries to get the amount of memory used by java. (Unless you have multiple real java processes running, in which case, use the parent process id to figure things out) Mihai Gheorghiu wrote: TC4.0.4, jdk1.4.0_01, RH7.3 on P3-633MHz, 256MB RAM When I start TC, I find 28 Java processes for a total of 829MB used. Is there a way to make it use less memory, so that it runs only out of RAM? Thank you all. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Server memory usage
I checked with ps -Al and I understand what you wrote. I used Gnome System Monitor - Memory usage (resident). Is it making the same mistake? -Original Message- From: Tim Funk [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Date: Monday, September 02, 2002 11:07 AM Subject: Re: Server memory usage In linux - threaded processes show up multiple times in top (or ps). Once entry for each thread. Summing the entries in top will yield an incorrect memory usage. Just take one of the entries to get the amount of memory used by java. (Unless you have multiple real java processes running, in which case, use the parent process id to figure things out) Mihai Gheorghiu wrote: TC4.0.4, jdk1.4.0_01, RH7.3 on P3-633MHz, 256MB RAM When I start TC, I find 28 Java processes for a total of 829MB used. Is there a way to make it use less memory, so that it runs only out of RAM? Thank you all. -- 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]
[OT] Re: Server memory usage
I do not use GUI tools so I have no expertise in this area. Mihai Gheorghiu wrote: I checked with ps -Al and I understand what you wrote. I used Gnome System Monitor - Memory usage (resident). Is it making the same mistake? -Original Message- From: Tim Funk [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Date: Monday, September 02, 2002 11:07 AM Subject: Re: Server memory usage In linux - threaded processes show up multiple times in top (or ps). Once entry for each thread. Summing the entries in top will yield an incorrect memory usage. Just take one of the entries to get the amount of memory used by java. (Unless you have multiple real java processes running, in which case, use the parent process id to figure things out) Mihai Gheorghiu wrote: TC4.0.4, jdk1.4.0_01, RH7.3 on P3-633MHz, 256MB RAM When I start TC, I find 28 Java processes for a total of 829MB used. Is there a way to make it use less memory, so that it runs only out of RAM? -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Tomcat Clustering.
I think i can see what it is :) Your workers.list defines for mod_jk what servers to use. In the case below it will use tc13 until it doesn't work / too overworked. Change the line so it's worker.list=loadbalancer Now your balanced_workers will work as the loadbalancer is in control. worker.loadbalancer.balanced_workers=tc13, intra13, extra13 Hope this works David Luminous Heart wrote: Here is my workers file. Please notice that I mounting tomcat context as such in my mod_jk.conf file: JkMount /* loadbalancer JkMount /servlet/* loadbalancer loadbalancer is defined in the following workers file. Thank you in advance. === workers.properties = workers.tomcat_home=/usr/local/tomcat workers.java_home=/usr/local/j2sdk1.4.0 ps=/ worker.list=tc13,intra13, extra13, loadbalancer worker.tc13.port=8039 worker.tc13.host=localhost worker.tc13.type=ajp13 worker.tc13.lbfactor=1 worker.intra13.port=8049 worker.intra13.host=localhost worker.intra13.type=ajp13 worker.intra13.lbfactor=1 worker.extra13.port=8059 worker.extra13.host=localhost worker.extra13.type=ajp13 worker.extra13.lbfactor=1 worker.tc41Intra.port=9009 worker.tc41Intra.host=localhost worker.tc41Intra.type=ajp13 worker.tc41Intra.lbfactor=1 worker.loadbalancer.type=lb worker.loadbalancer.balanced_workers=tc13, intra13, extra13 worker.inprocess.type=jni worker.inprocess.class_path=$(workers.tomcat_home)$(ps)lib$(ps)tomcat.jar worker.inprocess.cmd_line=start worker.inprocess.jvm_lib=$(workers.java_home)$(ps)jre$(ps)bin$(ps)classic$(ps)libjvm.so worker.inprocess.stdout=$(workers.tomcat_home)$(ps)logs$(ps)inprocess.stdout worker.inprocess.stderr=$(workers.tomcat_home)$(ps)logs$(ps)inprocess.stderr == End workers.properties == --- David Cassidy [EMAIL PROTECTED] wrote: Would you like to post your workers file D Luminous Heart wrote: Greetings, I have a cluster of 3 tomcats running on linux box. I have the three tc4.0.4 instances in a loadbalancing mode. The problem is when one fails none of the others pick up and my app wont serve any requests untill I shut the faulty tc. Only at that point one of the other two will work. And if I restart the faulty one it will start working again. Should there be a failover behavior or loadbalance on tc does not support that? Thank you. __ Do You Yahoo!? Yahoo! Finance - Get real-time stock quotes http://finance.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! Finance - Get real-time stock quotes http://finance.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: Server memory usage
if you use the ps command with the 'f' switch you will see how the processes are related to each other D Tim Funk wrote: In linux - threaded processes show up multiple times in top (or ps). Once entry for each thread. Summing the entries in top will yield an incorrect memory usage. Just take one of the entries to get the amount of memory used by java. (Unless you have multiple real java processes running, in which case, use the parent process id to figure things out) Mihai Gheorghiu wrote: TC4.0.4, jdk1.4.0_01, RH7.3 on P3-633MHz, 256MB RAM When I start TC, I find 28 Java processes for a total of 829MB used. Is there a way to make it use less memory, so that it runs only out of RAM? Thank you all. -- 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 Clustering.
I will try your suggestion and hope it works for me. Thanks a million for your help. --- David Cassidy [EMAIL PROTECTED] wrote: I think i can see what it is :) Your workers.list defines for mod_jk what servers to use. In the case below it will use tc13 until it doesn't work / too overworked. Change the line so it's worker.list=loadbalancer Now your balanced_workers will work as the loadbalancer is in control. worker.loadbalancer.balanced_workers=tc13, intra13, extra13 Hope this works David Luminous Heart wrote: Here is my workers file. Please notice that I mounting tomcat context as such in my mod_jk.conf file: JkMount /* loadbalancer JkMount /servlet/* loadbalancer loadbalancer is defined in the following workers file. Thank you in advance. === workers.properties = workers.tomcat_home=/usr/local/tomcat workers.java_home=/usr/local/j2sdk1.4.0 ps=/ worker.list=tc13,intra13, extra13, loadbalancer worker.tc13.port=8039 worker.tc13.host=localhost worker.tc13.type=ajp13 worker.tc13.lbfactor=1 worker.intra13.port=8049 worker.intra13.host=localhost worker.intra13.type=ajp13 worker.intra13.lbfactor=1 worker.extra13.port=8059 worker.extra13.host=localhost worker.extra13.type=ajp13 worker.extra13.lbfactor=1 worker.tc41Intra.port=9009 worker.tc41Intra.host=localhost worker.tc41Intra.type=ajp13 worker.tc41Intra.lbfactor=1 worker.loadbalancer.type=lb worker.loadbalancer.balanced_workers=tc13, intra13, extra13 worker.inprocess.type=jni worker.inprocess.class_path=$(workers.tomcat_home)$(ps)lib$(ps)tomcat.jar worker.inprocess.cmd_line=start worker.inprocess.jvm_lib=$(workers.java_home)$(ps)jre$(ps)bin$(ps)classic$(ps)libjvm.so worker.inprocess.stdout=$(workers.tomcat_home)$(ps)logs$(ps)inprocess.stdout worker.inprocess.stderr=$(workers.tomcat_home)$(ps)logs$(ps)inprocess.stderr == End workers.properties == --- David Cassidy [EMAIL PROTECTED] wrote: Would you like to post your workers file D Luminous Heart wrote: Greetings, I have a cluster of 3 tomcats running on linux box. I have the three tc4.0.4 instances in a loadbalancing mode. The problem is when one fails none of the others pick up and my app wont serve any requests untill I shut the faulty tc. Only at that point one of the other two will work. And if I restart the faulty one it will start working again. Should there be a failover behavior or loadbalance on tc does not support that? Thank you. __ Do You Yahoo!? Yahoo! Finance - Get real-time stock quotes http://finance.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! Finance - Get real-time stock quotes http://finance.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! Finance - Get real-time stock quotes http://finance.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
TR: Using Packages for Bean Classes
for your information... N i c o l a s S i l b e r z a h n 100% Java, Mobile, Offline awareWapaka Browser for mobile development (XHTML, WML)/100% Java, Mobile, Offline aware www.Wapaka.com -Message d'origine- De : A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]De la part de Hans Bergsten Envoye : dimanche 1 septembre 2002 00:44 A : [EMAIL PROTECTED] Objet : Re: Using Packages for Bean Classes Nicolas S i l b e r z a h n wrote: Hans Bergsten, author of JavaServer Pages in its paper Hans's Top Ten JSP Tips (google it for URL) wrote: Using Packages for Bean Classes When you develop a bean to be used in a JSP page, I recommend that you make it part of a named package. A Java class that does not use a package statement ends up in the so-called unnamed package. The servlet class generated from the JSP page is, however, typically assigned to a named package. If you try to refer to a class in the unnamed package from a class in a named package, Java cannot find the class unless you use an import statement to import it. In a JSP page that means you must use both a page directive to import the class, and the jsp:useBean action to make it available: %@ page import=UserInfoBean % jsp:useBean id=userInfo class=UserInfoBean / it seems it does not work anymore with Tomcat 4.1.9: F:\Tomcat 4.1.9\work\Standalone\localhost\ecomm\contact_jsp.java:11: '.' expected import UserInfoBean; ^ How to write it now if I don't want my beans in a package? This has nothing to do with Tomcat 4.1.x. It's due to a correction in Sun's JDK 1.4.x, see Sun's Bug Parade: http://developer.java.sun.com/developer/bugParade/bugs/4361575.html Based on the comments there, it's breaking code in many places and is a very unpopular change that I wasn't aware of until I saw your mail and did some research. Your choices at this point is to use a different compiler (e.g. Jikes or Sun's JDK 1.3.x) or place your beans in a package (which I recommend no matter what). Hans -- Hans Bergsten [EMAIL PROTECTED] Gefion Software http://www.gefionsoftware.com JavaServer Pageshttp://TheJSPBook.com === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Tomcat Clustering.
helps only good if it works ... let us know if it does ! you might want to see what jsessionid gets set to. if the loadbalancer is working correctly it'll append the servers name to the jsessionid cookie. If you've got mozilla you can examine the cookies easily D Luminous Heart wrote: I will try your suggestion and hope it works for me. Thanks a million for your help. --- David Cassidy [EMAIL PROTECTED] wrote: I think i can see what it is :) Your workers.list defines for mod_jk what servers to use. In the case below it will use tc13 until it doesn't work / too overworked. Change the line so it's worker.list=loadbalancer Now your balanced_workers will work as the loadbalancer is in control. worker.loadbalancer.balanced_workers=tc13, intra13, extra13 Hope this works David Luminous Heart wrote: Here is my workers file. Please notice that I mounting tomcat context as such in my mod_jk.conf file: JkMount /* loadbalancer JkMount /servlet/* loadbalancer loadbalancer is defined in the following workers file. Thank you in advance. === workers.properties = workers.tomcat_home=/usr/local/tomcat workers.java_home=/usr/local/j2sdk1.4.0 ps=/ worker.list=tc13,intra13, extra13, loadbalancer worker.tc13.port=8039 worker.tc13.host=localhost worker.tc13.type=ajp13 worker.tc13.lbfactor=1 worker.intra13.port=8049 worker.intra13.host=localhost worker.intra13.type=ajp13 worker.intra13.lbfactor=1 worker.extra13.port=8059 worker.extra13.host=localhost worker.extra13.type=ajp13 worker.extra13.lbfactor=1 worker.tc41Intra.port=9009 worker.tc41Intra.host=localhost worker.tc41Intra.type=ajp13 worker.tc41Intra.lbfactor=1 worker.loadbalancer.type=lb worker.loadbalancer.balanced_workers=tc13, intra13, extra13 worker.inprocess.type=jni worker.inprocess.class_path=$(workers.tomcat_home)$(ps)lib$(ps)tomcat.jar worker.inprocess.cmd_line=start worker.inprocess.jvm_lib=$(workers.java_home)$(ps)jre$(ps)bin$(ps)classic$(ps)libjvm.so worker.inprocess.stdout=$(workers.tomcat_home)$(ps)logs$(ps)inprocess.stdout worker.inprocess.stderr=$(workers.tomcat_home)$(ps)logs$(ps)inprocess.stderr == End workers.properties == --- David Cassidy [EMAIL PROTECTED] wrote: Would you like to post your workers file D Luminous Heart wrote: Greetings, I have a cluster of 3 tomcats running on linux box. I have the three tc4.0.4 instances in a loadbalancing mode. The problem is when one fails none of the others pick up and my app wont serve any requests untill I shut the faulty tc. Only at that point one of the other two will work. And if I restart the faulty one it will start working again. Should there be a failover behavior or loadbalance on tc does not support that? Thank you. __ Do You Yahoo!? Yahoo! Finance - Get real-time stock quotes http://finance.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! Finance - Get real-time stock quotes http://finance.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! Finance - Get real-time stock quotes http://finance.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: How to keep track of sessions
Hi, Mark. To give my own 2 cents, I use a session listener for exactly the same issue: Get information how many sessions are active, who is logged on etc. Currently my application struggles with a memory leak, and I suspect the vector not being cleaned up thoroughly (my problem :-( ). Hiran - Hiran Chaudhuri SAG Systemhaus GmbH Elsenheimerstraße 11 80687 München Germany [EMAIL PROTECTED] Phone +49-89-54742-134 Fax +49-6151-9234-5134 -Original Message- From: Mark O'Driscoll [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 14, 2002 3:21 PM To: Tomcat Users List Subject: Re: How to keep track of sessions I am using the sessions to keep track of who is logged on, for how long and what they have done. Obviously there are other non servlet ways to do this but as tomcat gives the opportunity to track sessions, I thought I'd use it. Session persistence highlights a 'hole' in the sessionListener interface. BTW: I'm surprised you think sessions should not be persisted. I think it's cool! Thanks for the help. - Original Message - From: Shapira, Yoav [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, August 14, 2002 2:17 PM Subject: RE: How to keep track of sessions Howdy, Sessions are not meant to be persisted across server restarts. Obviously other people have other opinions about that. Which is why I still suggested a solution I've used in the past ;) Even though I disagree with the approach of persisting someone else's proprietary internal objects, I assume that whoever asked the question has a reasonable and well-thought out cause, so I try to help. I'm still unclear as to why one would want to save the session object itself, as opposed to only the parts of interest from it. Does it have to do with load-balancing, wanting to somehow augment / superimpose on the built-in mechanism? Yoav Shapira Millennium ChemInformatics -- -- This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. -- -- -- 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: A question about jni used in tomcat!
yes, tomcat does support it. Can you get it to work outside of Tomcat. Once that is done try moving it into Tomcat. If you still have trouble we need more information, maybe the error you are getting. Lance -Original Message- From: Struts [mailto:[EMAIL PROTECTED]] Sent: Friday, August 30, 2002 9:26 AM To: Tomcat Users List Subject: Re: A question about jni used in tomcat! you can see help of tomcat,you can search what you want from the help of tomcat/ - Original Message - From: wq [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, August 29, 2002 11:00 AM Subject: A question about jni used in tomcat! hi,tomcat-user: I am a chinese tomcat-user.Now i meet some questions when i use tomcat.Under linux platform,I hava 3 files:mybean.class,myso.so,myjsp.jsp.I want myjsp.jsp envoke mybean,and mybean file envoke myso file(myjsp-mybean-myso).But I cannot do it successfully.By the way,I have set $LD_LIBRARY_PATH,$CLASSPATH.So i wonder if the tomcat container can support jni?If can,how should i do? Best wishes and thanks a lot! wq [EMAIL PROTECTED] 2002-08-29 -- 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]
Data Base Connection
Hi all! I have 2 web applications that runs in my Tomcat 4.1.8 server. Every thing works fine if i run only one of the two applications. If i run one application and then the other i get this exception org.apache.jasper.JasperException: Native Library C:\oracle\ora81\bin\ocijdbc8.dll already loaded in another classloader I´m trying to create a data source to solve this problem, i´ve done all i found in tomcat-docs: 1. Create the data source Resource name=jdbc/myoracle auth=Container type=javax.sql.DataSource/ ResourceParams name=jdbc/myoracle parameter namefactory/name valueorg.apache.commons.dbcp.BasicDataSourceFactory/value /parameter parameter namedriverClassName/name valueoracle.jdbc.driver.OracleDriver/value /parameter parameter nameurl/name valuejdbc:oracle:oci8:[EMAIL PROTECTED]:1521:mysid/value /parameter parameter nameusername/name valuescott/value /parameter parameter namepassword/name valuetiger/value /parameter parameter namemaxActive/name value20/value /parameter parameter namemaxIdle/name value10/value /parameter parameter namemaxWait/name value-1/value /parameter /ResourceParams 2. Configure web.xml (i added this line) resource-ref descriptionOracle Datasource example/description res-ref-namejdbc/myoracle/res-ref-name res-typejavax.sql.DataSource/res-type res-authContainer/res-auth /resource-ref 3. I have a bean that creates a connection like this Context initContext = new InitialContext(); Context envContext = (Context)initContext.lookup(java:/comp/env); DataSource ds = (DataSource)envContext.lookup(jdbc/myoracle); Connection conn = ds.getConnection(); The problem is that the connection whit my oracle data base cannot be creates because i get this execption: java.sql.SQLException: Cannot load JDBC driver class 'null' I don´t know if the problem is with the bean or with the server.xml or with both How can i check if the Data source is working fine since i found nothing in the log files. Thanks in advance -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Connection pool examples
Search the archives.. I posted a guide/example regarding this not so long ago. Try to search for keywords like, datasource, JNDI, Oracle, connection pool, etc... - Original Message - From: Nancy Crisostomo Martinez [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Monday, September 02, 2002 11:13 PM Subject: Connection pool examples Hi everyone! I would like to know if there are some practical examples about how to implement the Data Base Connection Pool API. (Tomcat, Oracle) Could you please give me some references? Thanks in advance Nancy. -- 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: Data Base Connection
Search the archives. I posted an example how to setup a datasource for oracle database (but it was using tomcat 4.1.9). Btw, try to upgrade to tomcat 4.1.9, it has some bug fixes regarding JNDI and datasource. - Original Message - From: Isabel Lameda [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, September 03, 2002 12:34 AM Subject: Data Base Connection Hi all! I have 2 web applications that runs in my Tomcat 4.1.8 server. Every thing works fine if i run only one of the two applications. If i run one application and then the other i get this exception org.apache.jasper.JasperException: Native Library C:\oracle\ora81\bin\ocijdbc8.dll already loaded in another classloader I´m trying to create a data source to solve this problem, i´ve done all i found in tomcat-docs: 1. Create the data source Resource name=jdbc/myoracle auth=Container type=javax.sql.DataSource/ ResourceParams name=jdbc/myoracle parameter namefactory/name valueorg.apache.commons.dbcp.BasicDataSourceFactory/value /parameter parameter namedriverClassName/name valueoracle.jdbc.driver.OracleDriver/value /parameter parameter nameurl/name valuejdbc:oracle:oci8:[EMAIL PROTECTED]:1521:mysid/value /parameter parameter nameusername/name valuescott/value /parameter parameter namepassword/name valuetiger/value /parameter parameter namemaxActive/name value20/value /parameter parameter namemaxIdle/name value10/value /parameter parameter namemaxWait/name value-1/value /parameter /ResourceParams 2. Configure web.xml (i added this line) resource-ref descriptionOracle Datasource example/description res-ref-namejdbc/myoracle/res-ref-name res-typejavax.sql.DataSource/res-type res-authContainer/res-auth /resource-ref 3. I have a bean that creates a connection like this Context initContext = new InitialContext(); Context envContext = (Context)initContext.lookup(java:/comp/env); DataSource ds = (DataSource)envContext.lookup(jdbc/myoracle); Connection conn = ds.getConnection(); The problem is that the connection whit my oracle data base cannot be creates because i get this execption: java.sql.SQLException: Cannot load JDBC driver class 'null' I don´t know if the problem is with the bean or with the server.xml or with both How can i check if the Data source is working fine since i found nothing in the log files. Thanks in advance -- 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]
NullPointerException on Netscape 6.2
I get this exception everytime I try to login into my application, running on tc4.0.4, on Netscape 6.2. However that the application works fine with all versions of IE. I am sure it is a Netscape issue, but has anyone experienced anything like that? It seems that my username and password are not passed through when I sign in using netscape. Does netscape support tomcat sessions? == Exception on Netscape 6.2 = Apache Tomcat/4.0.4 - HTTP Status 500 - Internal Server Error type Exception report message Internal Server Error description The server encountered an internal error (Internal Server Error) that prevented it from fulfilling this request. exception javax.servlet.ServletException: java.lang.NullPointerException at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:471) at org.apache.jsp.inbox$jsp._jspService(inbox$jsp.java:1090) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:201) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) at org.apache.catalina.authenticator.SingleSignOn.invoke(SingleSignOn.java:368) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:458) at org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:551) at java.lang.Thread.run(Thread.java:536) root cause java.lang.Exception: NullPointerException:: java.lang.NullPointerException at org.apache.jsp.inbox$jsp._jspService(inbox$jsp.java:1074) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:201) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247) at
mod webapps make fails
Hello all, perhaps someone solved the following problem apache 1.3.26 working fine tomcat 4.0.4 working fine try to build mod_webapp out of webapp-module-1.0.1-tc401.tar.gz everything goes well until make. make stops with the following exception report: make[4]: Leaving directory `/luna_2/tomcat/webapp-module-1.0.1-tc401/apr/tables' make[3]: Leaving directory `/luna_2/tomcat/webapp-module-1.0.1-tc401/apr/tables' Making all in file_io/unix make[3]: Entering directory `/luna_2/tomcat/webapp-module-1.0.1-tc401/apr/file_io/unix' make[4]: Entering directory `/luna_2/tomcat/webapp-module-1.0.1-tc401/apr/file_io/unix' /bin/sh ..//libtool --silent --mode=compile gcc -g -O2 -DHAVE_CONFIG_H -DLINUX=2 -D_REENTRANT -I ../../include -I../../include/arch/unix -I../../include/arch/unix -c dir.c touch dir.lo ..//libtool: ..//libtool: Datei oder Verzeichnis nicht gefunden make[4]: *** [dir.lo] Error 127 make[4]: Leaving directory `/luna_2/tomcat/webapp-module-1.0.1-tc401/apr/file_io/unix' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/luna_2/tomcat/webapp-module-1.0.1-tc401/apr/file_io/unix' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/luna_2/tomcat/webapp-module-1.0.1-tc401/apr' make[1]: Exiting directory /luna_2/tomcat/webapp-module-1.0.1-tc401/apr make[1]: *** [template] Error 2 make[1]: Leaving directory `/luna_2/tomcat/webapp-module-1.0.1-tc401' make: *** [apr-build] Error 2 does anybody have an idea what's wrong there? greetings Bernhard Blasen -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
[Re: mod webapps make fails]
Hello all, found the solution of my problem. you have to use apr_APACHE_2_0_35.tar.gz and jakarta-tomcat-connectors-4.0.4-src.tar.gz instead of webapp-module-1.0.1-tc401.tar.gz Then everything works fine. Thanx anyway Bernhard Blasen Hello all, perhaps someone solved the following problem apache 1.3.26 working fine tomcat 4.0.4 working fine try to build mod_webapp out of webapp-module-1.0.1-tc401.tar.gz everything goes well until make. make stops with the following exception report: make[4]: Leaving directory `/luna_2/tomcat/webapp-module-1.0.1-tc401/apr/tables' make[3]: Leaving directory `/luna_2/tomcat/webapp-module-1.0.1-tc401/apr/tables' Making all in file_io/unix make[3]: Entering directory `/luna_2/tomcat/webapp-module-1.0.1-tc401/apr/file_io/unix' make[4]: Entering directory `/luna_2/tomcat/webapp-module-1.0.1-tc401/apr/file_io/unix' /bin/sh ..//libtool --silent --mode=compile gcc -g -O2 -DHAVE_CONFIG_H -DLINUX=2 -D_REENTRANT -I ../../include -I../../include/arch/unix -I../../include/arch/unix -c dir.c touch dir.lo ..//libtool: ..//libtool: Datei oder Verzeichnis nicht gefunden make[4]: *** [dir.lo] Error 127 make[4]: Leaving directory `/luna_2/tomcat/webapp-module-1.0.1-tc401/apr/file_io/unix' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/luna_2/tomcat/webapp-module-1.0.1-tc401/apr/file_io/unix' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/luna_2/tomcat/webapp-module-1.0.1-tc401/apr' make[1]: Exiting directory /luna_2/tomcat/webapp-module-1.0.1-tc401/apr make[1]: *** [template] Error 2 make[1]: Leaving directory `/luna_2/tomcat/webapp-module-1.0.1-tc401' make: *** [apr-build] Error 2 does anybody have an idea what's wrong there? greetings Bernhard Blasen -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
mod_jk for IBM AIX System....?
Hi Experts! I am havig problems in Integrating my Apache(1.3) with Tomcat(4.0.4) on IBM AIX (5.1) System. It seems that it needs mod_jk.so file which is very difficult to get for IBM AIX System. Does anyone know how and from where to get that file? Can anyone forward me the file and the instructions of configuring and installing the file? THANKS VERY MUCH. Manoj G. Kithany [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Tomcat 4.0.4 under Windows NT crashes: memory cannot be read
Randall, I installed the 1.3.1 JSDK in place of 1.2, and this error _seems_ to have gone away. Since it wasn't 100% repeatable, I can't be sure, and will have to test it on my colleague's machine (which always tended to manifest the fault more often), but I may be lucky. You suggested I install JSDK 1.3.1 or 1.4.0: I wasn't able to install the latter, because InstallShield crashed Interface not found when it started the install proper, after unpacking its files. Surely Sun can't have left such an obvious bug, but perhaps they don't support NT 4 any more? In answer to your question, I'd been running Tomcat stand-alone, not glued to Apache. Finally, with reference to a comment in your earlier mail, is Tomcat indeed 100% Java? I.e. it doesn't include any native code? If so, I wonder what it was provoking to crash the 1.2 JVM (assuming that is indeed what happened) - nothing I've run has ever managed that before, not even the same application under a different server. (Since the fault appeared on two different machines, with different hardware configurations and Windows versions, I'd been assuming it was unlikely to be hardware or drivers.) Anyway, thanks for the advice. My colleague's machine is in France until next week, but when I can get at it, I'll post again if upgrading his JVM doesn't fix the problem. Jocelyn Paine http://www.ifs.org.uk/~popx/ +44 (0)7768 534 091 On Sun, 1 Sep 2002, Randall R Schulz wrote: Jocelyn, I didn't read enough or carefully enough. You really ought to get a more up-to-date version of the JRE or SDK. I recommend 1.4.0_01 or 1.3.1, but using 1.2 at this point is not a good idea. By the way, how do you (or your colleague) you get Tomcat to run as a service? Via Apache? Are you certain that it's the Tomcat process that's crashing? Your diagnostic didn't include the application name that is (I believe) in the window title of the alert whose contents you reported. Is it java.exe or something else? Randall Schulz Mountain View, CA USA At 23:59 2002-08-31, you wrote: My system: Tomcat 4.0.4 is running stand-alone on Windows NT 4 (service pack 3); starting it by invoking Tomcat's startup.bat from a DOS window. My Java is Sun's Classic VM (build JDK-1.2-V, native threads). Machine is a 64 MB Dell Latitude. My colleague's system is a new Sony Vaio running Windows XP, same version of Tomcat, also a Sun JVM but probably a slightly newer one. Tomcat running as a service... Jocelyn Paine -- 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 Clustering.
Ok. I made the modifications you suggested. As you saw in my workers file I have 3 tcs; tc13, extra13, and intra13. I turned cookies on with IE. When I go to http://mySite.com I see a cookie being set by let us say tc13. Then I click on the link to my application on the front page and sometimes I get another cookie sent by tc13, other times by another worker. And of course I am using tc13 as an example, but I saw this behavior with the three. Does that mean I am in good shape now? Clustering is a great thing. I am thinking to move next to Oriely's memory space clustering model. Has anyone tried it? Thank, David, for your help. --- David Cassidy [EMAIL PROTECTED] wrote: helps only good if it works ... let us know if it does ! you might want to see what jsessionid gets set to. if the loadbalancer is working correctly it'll append the servers name to the jsessionid cookie. If you've got mozilla you can examine the cookies easily D Luminous Heart wrote: I will try your suggestion and hope it works for me. Thanks a million for your help. --- David Cassidy [EMAIL PROTECTED] wrote: I think i can see what it is :) Your workers.list defines for mod_jk what servers to use. In the case below it will use tc13 until it doesn't work / too overworked. Change the line so it's worker.list=loadbalancer Now your balanced_workers will work as the loadbalancer is in control. worker.loadbalancer.balanced_workers=tc13, intra13, extra13 Hope this works David Luminous Heart wrote: Here is my workers file. Please notice that I mounting tomcat context as such in my mod_jk.conf file: JkMount /* loadbalancer JkMount /servlet/* loadbalancer loadbalancer is defined in the following workers file. Thank you in advance. === workers.properties = workers.tomcat_home=/usr/local/tomcat workers.java_home=/usr/local/j2sdk1.4.0 ps=/ worker.list=tc13,intra13, extra13, loadbalancer worker.tc13.port=8039 worker.tc13.host=localhost worker.tc13.type=ajp13 worker.tc13.lbfactor=1 worker.intra13.port=8049 worker.intra13.host=localhost worker.intra13.type=ajp13 worker.intra13.lbfactor=1 worker.extra13.port=8059 worker.extra13.host=localhost worker.extra13.type=ajp13 worker.extra13.lbfactor=1 worker.tc41Intra.port=9009 worker.tc41Intra.host=localhost worker.tc41Intra.type=ajp13 worker.tc41Intra.lbfactor=1 worker.loadbalancer.type=lb worker.loadbalancer.balanced_workers=tc13, intra13, extra13 worker.inprocess.type=jni worker.inprocess.class_path=$(workers.tomcat_home)$(ps)lib$(ps)tomcat.jar worker.inprocess.cmd_line=start worker.inprocess.jvm_lib=$(workers.java_home)$(ps)jre$(ps)bin$(ps)classic$(ps)libjvm.so worker.inprocess.stdout=$(workers.tomcat_home)$(ps)logs$(ps)inprocess.stdout worker.inprocess.stderr=$(workers.tomcat_home)$(ps)logs$(ps)inprocess.stderr == End workers.properties == --- David Cassidy [EMAIL PROTECTED] wrote: Would you like to post your workers file D Luminous Heart wrote: Greetings, I have a cluster of 3 tomcats running on linux box. I have the three tc4.0.4 instances in a loadbalancing mode. The problem is when one fails none of the others pick up and my app wont serve any requests untill I shut the faulty tc. Only at that point one of the other two will work. And if I restart the faulty one it will start working again. Should there be a failover behavior or loadbalance === message truncated === __ Do You Yahoo!? Yahoo! Finance - Get real-time stock quotes http://finance.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
compilation error of Tomcat by tyrex
this appear while i compile tomcat 4.0 -- build-main: [echo] - Java-utils - [echo] -- puretls.present = ${puretls.present} [echo] -- jsse.present = true [echo] -- commons-logging = true [echo] -- jmx = true build-catalina: [javac] Compiling 3 source files to /usr/local/jakarta-tomcat-4.0/catalina/build/server/classes [javac] Note: sun.tools.javac.Main has been deprecated. [javac] /usr/local/jakarta-tomcat-4.0/catalina/src/share/org/apache/naming/factory/T yrexDataSourceFactory.java:77: Class tyrex.jdbc.ServerDataSource not found in import. [javac] import tyrex.jdbc.ServerDataSource; [javac] ^ [javac] /usr/local/jakarta-tomcat-4.0/catalina/src/share/org/apache/naming/factory/T yrexDataSourceFactory.java:78: Class tyrex.jdbc.xa.EnabledDataSource not found in import. [javac] import tyrex.jdbc.xa.EnabledDataSource; [javac] ^ [javac] /usr/local/jakarta-tomcat-4.0/catalina/src/share/org/apache/naming/factory/T yrexTransactionFactory.java:75: Class tyrex.tm.Tyrex not found in import. [javac] import tyrex.tm.Tyrex; [javac] ^ [javac] 3 errors, 1 warning BUILD FAILED /usr/local/jakarta-tomcat-4.0/catalina/build.xml:789: Compile failed, messages should have been provided. - if you know the problem, please, tell me that solution. Best regards Andres Hernandez Chile -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Connection pool examples
One more question about this: Is it possible to implement a pool connection using Jakarta commons in Tomcat 3.3 or do I have to upgrade to 4.x? This is because I found a couple of examples but they are implemented in Tomcat 4.x. If I have to upgrade, which version do you recomend me? Thanks, Nancy. Rosdi bin Kasim wrote: Search the archives.. I posted a guide/example regarding this not so long ago. Try to search for keywords like, datasource, JNDI, Oracle, connection pool, etc... - Original Message - From: Nancy Crisostomo Martinez [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Monday, September 02, 2002 11:13 PM Subject: Connection pool examples Hi everyone! I would like to know if there are some practical examples about how to implement the Data Base Connection Pool API. (Tomcat, Oracle) Could you please give me some references? Thanks in advance Nancy. -- 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]
Need to restart tomcat when beans are updated (Tomcat 4.04)
Have just completed upgrade from tomcat-3.2.1 to tomcat-4.0.4. this works good, but has problem when a java beans is updated - the tomcat server need to be restarted before the change is visible. I didn't have this problem with tc 3.2.1, but need to upgrade to support new application. Has anyone else seen this problem ? I have noticed it with Linux and Windows. Any help offered would be much appreciated. thanks, Raj
RE: Adding HTTPS to Tomcat/Apache/mod_jk install on NT
For those people who want binaries of Apache with SSL for win32, the urls: - http://www.gknw.de/development/apache/ - http://www.pcp-computer.de/gkn/apache/httpd-2.0/win32/ (mirror?) provide pre-compiled binaries. Make sure you get version 2.0.40, because 2.0.39 has a nasty bug with serving pdfs. -- Mathew Pole Web Architect, Gerard Industries email: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] phone: 08 8269 0511 ext 313, fax: 08 8340 1212, mobile: 0403 164 617 -Original Message- From: Kenny G. Dubuisson, Jr. [mailto:[EMAIL PROTECTED]] Sent: Thursday, 22 August 2002 11:19 PM To: [EMAIL PROTECTED] Subject: Adding HTTPS to Tomcat/Apache/mod_jk install on NT Hello again all listers. I was wondering if anyone could point me in the right direction on setting up HTTPS on my Apache 2.0.40 / Tomcat 4.0.4 / mod_jk installation on WinNT 4? Any help would be greatly appreciated. Thanks, Kenny -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
JAVA PROCESS
Hi all: When I start catalina in Linux, I type: ps aux |grep java And The system has 36 java process but the java process grows... Can you help me, please? Is it normal? Thank you very much. Ángel -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Servlets are not executing init()
Hi, I have just reinstalled my computer, fdisk, format install. I have packaged up my webapp into a war and deployed it to Tomcat. But when I go to the servlet I get null pointer exception errors, because somethings have not been executed in the init() methods. What would be the reason for the init methods not being executed??? Is there a proper way to test this is the problem? It was working yesturday, I haven't changed any code just reinstalled my system. If you need more info I can give it, if you want the war file I can upload it somewhere. Please help me, Nicholas Orr ** The information contained in this e-mail is confidential and is intended only for the use of the addressee(s). If you receive this e-mail in error, any use, distribution or copying of this e-mail is not permitted. You are requested to forward unwanted e-mail and address any problems to the MIM Holdings Limited Support Centre. For general enquires: ++61 7 3833 8000 Support Centre e-mail: [EMAIL PROTECTED] Support Centre phone: Australia 1800500646 International ++61 7 38338042 ** -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Tomcat and select multiple
Quick question, what's tomcat do when multiple form values are posted under the same name, like in a select multiple, or two checkboxes with the same name? -- -Josh And can you tell me, doctor, why I still can't get to sleep? And why the Channel Seven chopper chills me to my feet? And what's this rash that comes and goes, can you tell me what it means? God help me, I was only nineteen. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Tomcat 5 Connectors
Hi all, I was wondering if the eventual Tomcat 5 release is going to include a connector which allows different SSL implementations to be specified, ala support for PureTLS in Tomcat 3.3 ? This is one of the best security features I have come across so far since it allows you to choose your SSL implementation, instead of being forced to JSSE. Btw. What is that status of Tomcat 5. When will the first source be released ? -- Trevor Nielsen -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Servlets are not executing init() **Resolved**
Found out the problem, there was a ClassNotFoundException Error, fixed and all is working, forgot to install a database driver. Nicholas Orr -Original Message- From: Nicholas Orr [mailto:[EMAIL PROTECTED]] Sent: Tuesday, 3 September 2002 10:42 AM To: Tomcat Mailing List Subject: Servlets are not executing init() Hi, I have just reinstalled my computer, fdisk, format install. I have packaged up my webapp into a war and deployed it to Tomcat. But when I go to the servlet I get null pointer exception errors, because somethings have not been executed in the init() methods. What would be the reason for the init methods not being executed??? Is there a proper way to test this is the problem? It was working yesturday, I haven't changed any code just reinstalled my system. If you need more info I can give it, if you want the war file I can upload it somewhere. Please help me, Nicholas Orr ** The information contained in this e-mail is confidential and is intended only for the use of the addressee(s). If you receive this e-mail in error, any use, distribution or copying of this e-mail is not permitted. You are requested to forward unwanted e-mail and address any problems to the MIM Holdings Limited Support Centre. For general enquires: ++61 7 3833 8000 Support Centre e-mail: [EMAIL PROTECTED] Support Centre phone: Australia 1800500646 International ++61 7 38338042 ** -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Tomcat and select multiple
-Original Message- From: Josh G [mailto:[EMAIL PROTECTED]] Sent: Monday, September 02, 2002 6:02 PM To: Tomcat Users List Subject: Tomcat and select multiple Quick question, what's tomcat do when multiple form values are posted under the same name, like in a select multiple, or two checkboxes with the same name? The first value will be available to you through getParameter(), and you can get them all using getParameterValues(). -- Martin Cooper -- -Josh And can you tell me, doctor, why I still can't get to sleep? And why the Channel Seven chopper chills me to my feet? And what's this rash that comes and goes, can you tell me what it means? God help me, I was only nineteen. -- 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: altering the request URI in a filter
-Original Message- From: jfc [mailto:[EMAIL PROTECTED]] Sent: Monday, September 02, 2002 1:51 AM To: Tomcat Users List Subject: Re: altering the request URI in a filter [snip] Hi, Thanks for the reply. How can I actually set the new value/s on the request? I don't see any setter methods or any fields which can be used to hold the new value. The only setters I can see are setAttribute and setRequest. Since you're the one implementing the wrapper class, you can choose to add whatever methods you see fit. -- Martin Cooper jfc -- 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]
TC4.1.10: Can't install new app directly from GUI
I very recently upgraded from TC 4.0.4 to TC 4.1.10. I hadn't looked at the manager app before (I don't know when it became a reality). It looks quite convenient. It is very nice once I get an application installed. Then, I can just reload and rerun the app without restarting TC. It appears that you can only do a Reload when you've installed a non-WAR (exploded directory). This is fine, but what I'm having trouble with is figuring out how to install a new app directly from the GUI. I've been able to do it through the browser URL api, but not from the GUI. I don't see any documentation on how to use the Manager GUI, although most of it is pretty self-explanatory. In the Install: box, there are three fields: 1. Path - I would guess this would be the context root for the application 2. Config URL - I'm not certain what this would be 3. WAR URL- I would assume this is the path to the WAR or to the root of the exploded directory. So, I would figure that I would enter the following values and click Install (the two non-null values are exactly the values I used on the URL api): Path: /strutsel-exercise-taglib Config URL: blank WAR URL:file:/c:/cygwin/home/dmkarr/java/struts-el/dist/webapps/exercise-taglib When I click Install, I get FAIL - Encountered exception java.net.MalformedURLException: no protocol:. One other annoying aspect of this is that once you get the error, it blows away the field values. I would guess that if I had mistyped one character in a long URL, it would fail with some sort of a not found error, and make me start over. In addition, it might make it friendlier if the field widths were wider (perhaps one per line?). -- === David M. Karr ; Java/J2EE/XML/Unix/C++ [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: TC4.1.10: Can't install new app directly from GUI
Hi, I haven't used the gui manager but I have noticed that in your: WAR URL: file:/c:/cygwin/home/dmkarr/java/struts-el/dist/webapps/exercise-taglib You are using file:/ instead of file:/// which is required. You see: java.net.MalformedURLException: no protocol:. Means it didn't find http://, ftp:// file:/// which are the valid protocols, there may be more but these are the main ones. Hope this helps, Nicholas Orr -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Tuesday, 3 September 2002 2:13 PM To: [EMAIL PROTECTED] Subject: TC4.1.10: Can't install new app directly from GUI I very recently upgraded from TC 4.0.4 to TC 4.1.10. I hadn't looked at the manager app before (I don't know when it became a reality). It looks quite convenient. It is very nice once I get an application installed. Then, I can just reload and rerun the app without restarting TC. It appears that you can only do a Reload when you've installed a non-WAR (exploded directory). This is fine, but what I'm having trouble with is figuring out how to install a new app directly from the GUI. I've been able to do it through the browser URL api, but not from the GUI. I don't see any documentation on how to use the Manager GUI, although most of it is pretty self-explanatory. In the Install: box, there are three fields: 1. Path - I would guess this would be the context root for the application 2. Config URL - I'm not certain what this would be 3. WAR URL- I would assume this is the path to the WAR or to the root of the exploded directory. So, I would figure that I would enter the following values and click Install (the two non-null values are exactly the values I used on the URL api): Path: /strutsel-exercise-taglib Config URL: blank WAR URL: file:/c:/cygwin/home/dmkarr/java/struts-el/dist/webapps/exercise-taglib When I click Install, I get FAIL - Encountered exception java.net.MalformedURLException: no protocol:. One other annoying aspect of this is that once you get the error, it blows away the field values. I would guess that if I had mistyped one character in a long URL, it would fail with some sort of a not found error, and make me start over. In addition, it might make it friendlier if the field widths were wider (perhaps one per line?). -- === David M. Karr ; Java/J2EE/XML/Unix/C++ [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] ** The information contained in this e-mail is confidential and is intended only for the use of the addressee(s). If you receive this e-mail in error, any use, distribution or copying of this e-mail is not permitted. You are requested to forward unwanted e-mail and address any problems to the MIM Holdings Limited Support Centre. For general enquires: ++61 7 3833 8000 Support Centre e-mail: [EMAIL PROTECTED] Support Centre phone: Australia 1800500646 International ++61 7 38338042 ** -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Tomcat/Mysql/Woody
On Mon, Sep 02, 2002 at 04:36:11PM +0200, Luc Santeramo wrote: ... this jsp displays, on the potato box : -- hé hé hé Revue d'histoire consacrée à la période de la Révolution française et de l'Empire. ... -- the same jsp displays, on the woody box : -- hé hé hé Revue d'histoire consacr?e ? la p?riode de la R?volution fran?aise et de l'Empire. ... -- as you can see, french special characters are now ? when they are extracted from the mysql DB. but if I check the mysql manually or with phpmyadmin, french character are still there ! I'm using mysql-3.23.51 and jakarta-tomcat-4.0.4 on both systems same config files ! if anybody has a clue . Probably your system locale changed. If you type 'locale', what does it show? You can run 'dpkg-reconfigure locale' as root to configure installed locales and set a default. --Jeff thanks a lot Luc -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: JAVA PROCESS
Ángel, I assume no other Java programs are running and that all 36 of the entries you're seeing in the ps output are from Catalina. This implies that 36 threads have been created by Catalina. Under Linux, each thread shows up separately in the ps listing. On my Windows system (Win 2K, Tomcat 4.0.4, J2 SDK 1.4.0_01) merely starting Tomcat causes 30 threads to be created, corresponding to the six configured connectors each with a minProcessors= attribute of 5. Check your .../conf/server.xml file for Connector elements and add up all the minProcessors= attributes. That should be your 36. If the number grows and stays up even when there are no requests being processed, it might be a sign of a problem. If the number fluctuates but returns to 36 when Tomcat is again idle, then things are OK. Randall Schulz Mountain View, CA USA At 17:28 2002-09-02, you wrote: Hi all: When I start catalina in Linux, I type: ps aux |grep java And The system has 36 java process but the java process grows... Can you help me, please? Is it normal? Thank you very much. Ángel -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Tomcat stops automatically
Hi, I am running Tomcat 3.2.3 on Linux 6.1 with JDK1.2.2 . Few websites are configured on this Apache web server. Recently I am experiencing a peculiar problem. Tomcat suddenly stops working have no clue any of the logs for this stoppage. Everytime the server needs to reboot as restarting Tomcat actually doesn't start the service. Would really appreciate if you can please suggest or help me solving this issue. Thanks in advance. -best regards Sujoy -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Tomcat stops automatically
On Tue, Sep 03, 2002 at 04:50:43AM -, Sujoy Ghosh wrote: Hi, I am running Tomcat 3.2.3 on Linux 6.1 with JDK1.2.2 . Few websites are configured on this Apache web server. Recently I am experiencing a peculiar problem. Tomcat suddenly stops working have no clue any of the logs for this stoppage. Everytime the server needs to reboot as restarting Tomcat actually doesn't start the service. 'stops working' as in, the JVM crashes (do 'ps axw' and check for java threads), or as in Tomcat 'hangs' and stops responding? Are you *sure* you're capturing all the logs? IIRC, by default Tomcat 3.2.3 sends logs to the console of the user who last restarted it, so you effectively lose them when that user logs out. Anyway, if the JVM is crashing, upgrade the JVM; if Tomcat is hanging, either fix your app :) or upgrade Tomcat. --Jeff Would really appreciate if you can please suggest or help me solving this issue. Thanks in advance. -best regards Sujoy -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: TC4.1.10: Can't install new app directly from GUI
On 02 Sep 2002 21:12:59 -0700, David M. Karr [EMAIL PROTECTED] said: I don't see any documentation on how to use the Manager GUI, In the Install: box, there are three fields... Here's how to install a web app using the Tomcat Web Application Manager for files in a local Windows file system: Path: /myapp Config URL: file:///C:/something/myapp.xml WAR URL: file:///C:/something/myapp.war The Path is the context name you want for the web app, like http://localhost:8080/myapp/. The Config URL is a path to a file that contains the parameters you would add to the server.xml file (or add to the webapps directory as a file myapp.xml under the new TC4.1 scheme). The WAR URL is the path to the war file. It COULD begin with jar:file:// and end with !/ but it doesn't have to. -- Daniel [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: deploying war file and Document base ... does not exist
On Sun, 01 Sep 2002 16:35:16 -0500, Jacob Kjome [EMAIL PROTECTED] said: Yes, but now you are constrained by the fact that the app is running directly from myapp.war which means that you have no filesystem access to your webapp. For instance, the following will return null in your setup... String contextPath = getServletContext().getRealPath(/); This is because there is no real path on your system for your webapp since it is running out of an archive, not out of a directory on the filesystem... Jake, Thanks, I've gotten around that issue by getting the path to the context attribute javax.servlet.context.tempdir. Seems to work just fine for me, both with apps deployed as unarchived wars and those deployed through the manager interface as unexploded wars. Here's the method I use. It may be helpful to others... I wonder if this will work on servlet containers that are not Tomcat (Resin, etc)? /** * Utility method returns a path to a log file WITHOUT USING * context.getRealPath(/). Suitable when an app is deployed * from an unexploded war file. * * @param context the ServletContext object * @return logFilePath such as tomcat/logs/myapp.log * @exception ServletException thrown by any error * @exception IOException thrown by attempts to access files that don't exist */ protected static String getLogFilePath(ServletContext context) throws ServletException, IOException { String logFilePath = null; // find out if a configuration parameter defines the path to a logfile: if (context.getInitParameter(com.mycom.myapp.logfilepath) != null !DEFAULT.equals(context.getInitParameter(com.mycom.logfilepath).toUpperCase())) { logFilePath = context.getInitParameter(com.mycom.myapp.logfilepath); } else { String logFileName = myapp.log; String slash = System.getProperty(file.separator); // try getting the tempdir value, it looks like // C:\tomcat4\work\Standalone\localhost\myapp, // it works better than context.getRealPath(/) because // context.getRealPath(/) doesn't work well when the // app is deployed from an unexploded war file String lengthyPath = ((File) context.getAttribute(javax.servlet.context.tempdir)).getParent(); if (lengthyPath == null) { String msg = FATAL: cannot obtain file system reference, cannot set log file; System.out.println(msg); context.log(msg); throw new ServletException(msg); } lengthyPath = lengthyPath.substring(0, lengthyPath.lastIndexOf(slash)); lengthyPath = lengthyPath.substring(0, lengthyPath.lastIndexOf(slash)); logFilePath = lengthyPath.substring(0, lengthyPath.lastIndexOf(slash)) + slash + logs + slash + logFileName; // when we're done, the log filepath should look like: // C:\tomcat\logs\myapp.log } return logFilePath; } -- Daniel [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: deploying war file and Document base ... does not exist
On Sun, 01 Sep 2002 04:09:52 -0500, Jacob Kjome [EMAIL PROTECTED] said: Don't put your app inside $TOMCAT_HOME/webapps and use the install or deploy task to dynamically deploy your app. This can be done through the ant tasks using something like install url=${manager.url} username=${manager.username} password=${manager.password} path=${app.path} war=file://${build.home}/WEB-INF/myapp.xml / myapp.xml would have a Context docBase=../ or something like that pointing to the base of the webapp. Note that I have *not* gotten this to work on Windows... if you get it to work on Windows, please tell me which version of Tomcat you succeeded on and describe what you did to make it work. Jake, Here's what works for me under Windows with TC4.1.9b (in my ant build.xml file). I have to point the war attribute to an exploded war directory (not a war file) or else I can't reload. I'm happy with this for development purposes. For permanent deployment, they've got to copy the myapp.war file and myapp.xml file into the webapps directory. There's no deploy action in the Tomcat Web App Manager. target name=install depends=compile description=Install application to servlet container !-- The myapp.xml file is where the container-managed data sources are specified -- !-- The war attribute points to the build directory, not an actual war file! -- install url=${manager.url} username=${manager.username} password=${manager.password} path=${app.path} config=file://${basedir}/myapp.xml war=file://${build.home}/ !-- You can't reload if you install a war file like this: config=file://${dist.home}/myapp.xml war=file://${dist.home}/myapp.war/ -- /target -- Daniel [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Re: Tomcat stops automatically
Hi Jeff, Thanks for your help.As you said I have got only two logs to check jasper servlet -- where there is no clue for this Tomcat stoppage. Meanwhile I checked the ps axw for java threads found it more than 100 threads are running -- don't know whether this is causing the problem or not ? Can you pls suggest on this ? Or if I have to upgrade the Tomcat - which version to choose -- will Tomcat 4.0.4 tackle this. In that case (few newbee questions) 1. how to configure a Virtual site under this ? FYI: I am running a virtual site (jsp page) configured in Apache running at port 80, mapped to a virtual IP. 2. In tomcat3.2.3 I used in httpd.conf file to Include /tomcat_home/conf/apache-tomcat.conf -- where in Tomcat 4 how to integrate this. 3. Do I need to use mod_jk.so library to work this virtual mapping. Would really appreciate your comment on this. Thanks in advance. -regards Sujoy -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]