RE: Please help me on a question about TOMCAT OR APACHE + TOMCAT
Anybody familiar with sql ? I have a question here, how to link 2 tables from JSP when they have a same field name ?
Re: installation
It's based on the configuration of your server. if there is a FTP service running on your server,you can upload your files with FTP client such as CuteFTP. Therefore ,you can directly copy your JSP files to the server - Original Message - From: Atif Munir [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, May 10, 2002 2:09 PM Subject: installation I wana to upload my jsp based web site.I have Apache running on my server...What should me do now? which things are necessary to be installed on server? Thanks in advance atif -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
AW: Tomcat process takes 246M whereas total java heap is 127M
There is some data that is not stored in the heap: - The Stack Each thread has at least one stack. The Sun VM has two stacks per thread. (One for the java code, one for the c code) The size of the java stack is not specied, the size of the c stack is controlled by the option -Xss (the default depends on the underlying OS: typical value between 2 and 16 MB per thread) - Static data - The VM iself I'm not shure wether classes that are loaded at runtime are stored in the heap. (Never had enough interest in this to look in the java spec) A memory leak is unlikely to explain what you see as the memory leak just increases the heap and not the difference between heap and total memory. Other possible explanations: - The physical memory gets fragmented over time. - In a real bad implementation of a VM it is possible that the size of allocation blocks don't match the size of the os. (e.g. VM grows in 2KB blocks and the os has minimal blocksize of 4KB) -Ursprüngliche Nachricht- Von: Christophe Reynaud [mailto:[EMAIL PROTECTED]] Gesendet: Dienstag, 9. April 2002 20:52 An: Tomcat Users List Betreff: Tomcat process takes 246M whereas total java heap is 127M Hello, We use tomcat 3.3.1 on Linux RH 7.2. JVM : IBM 1.3 top -c tells that the tomcat threads take 246M but if we use the Java function totalMemory(), it tells that the JVM uses 127M for the heap. Where is the rest of memory ? I expected that the JVM used more than only the total of the heap, but in this case it is almost the double ! Any ideas about the reasons of this problem ? Are there some momory leaks in the JVM ? Thanks. Christophe -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
AW: Tomcat intermittent failures
Have you verified if your apache got hit, with the request that caused a 'file not found'? (We have seen in the past some obscure errors that turned out to be caching problems of browsers and proxy caches where the server wasn't hit at all) If your apache got hit, did the request hit tomcat ? If it hit tomcat can you find any error message that may correspond to the failure? (in the tomcat or the apache logs) -Ursprüngliche Nachricht- Von: David Bank [mailto:[EMAIL PROTECTED]] Gesendet: Dienstag, 9. April 2002 19:56 An: [EMAIL PROTECTED] Betreff: Tomcat intermittent failures exist, but when we attempt to access that particular JSP thru Apache, we get 404 - File Not Found. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Clustering HTTP Sessions in Tomcat
Filip Hanik has written a great article on HTTP Session Replication using Tomcat 4. http://www.theserverside.com/resources/index.jsp In this article we will cover one of the clustering technologies, HTTP session replication, that is used within the J2EE model. In the second half of the article, an example is provided of how session replication can be implemented using Tomcat in conjunction with JavaGroups, a communication protocol which can perform reliable multicast operations to transfer session state between nodes. Dion -- \\|// (o o) +oOOo-(_)-oOOo--+ | [EMAIL PROTECTED] | Dew knot trussed yore spell chequer two| | www.almaer.com/dion | fined awl yore mistakes | +---+ -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
AW: Please help me on a question about TOMCAT OR APACHE + TOMCAT
Although that doesn't have to anything with jsp: If you have two tables (a and b) with two columns (id and name) You can use something like Select a.name, b.name from a, b where a.id = b.id If you db support column aliases, you can also use something like Select a.name foo, b.name bar from a, b where a.id = b.id where foo and bar are arbitrary labels, that can be used to access the colums. -Ursprüngliche Nachricht- Von: Lee Chin Khiong [mailto:[EMAIL PROTECTED]] Gesendet: Mittwoch, 10. April 2002 08:43 An: 'Tomcat Users List' Betreff: RE: Please help me on a question about TOMCAT OR APACHE + TOMCAT snip/ Anybody familiar with sql ? I have a question here, how to link 2 tables from JSP when they have a same field name ? snip/ -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: urlencoded session html-redirection-bug
When you encode the url, the first time the jsessionid is attached to the URL, but if your browser have cookies enabled, a cookie is assigned and the jsessionid parameter is not shown anymore. I tried this widh IE5 IE6 an NE4.7 and works. If you disable cookies, you'll see the URL always with the jsessionid attached. Regards Giorgio - Original Message - From: Michael [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, April 09, 2002 7:52 PM Subject: urlencoded session html-redirection-bug Hallo! please help!!! when I encode an URL and do something like: meta http-equiv=refresh content=10; URL=/myURL;jsessionid=og9obimzx2 neither Netscape 4.xx nor InternetExplorer 5.5 handle the ;jsessionid correct. they redirect to the URL /myURL WITHOUT the ;jsessionid Netscape 6.2 and Opera 6.1 handle this redirection as expected and concat the ;jsessionid=... to the URL! any idea??? I need this feature for NS4 and IE5.5 !!! thanks michi -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Disabling the DefaultContext
Hi, I have more han one directory under webapps ( my appBase ). However, I would like to load each directory's apps with different tomcat 4 instances. The problem is that a context is created for each directory, although it is not declared in my server.xml.I understand that the DefaultContext is responsible for this. Is there a way to disable this feature ? Thanks, Yuval -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re : Re: urlencoded session html-redirection-bug
When you encode the url, the first time the jsessionid is attached to the URL, but if your browser have cookies enabled, a cookie is assigned and the jsessionid parameter is not shown anymore. thanks for your comment - but this isn't the problem! to handle the first-time URLencode after session-creation, I redirect (302) to the same URL with a QueryStringParameter FirstAccessSession - in this request I now see, if the Session is obtained by cookie or by URL! I do another redirect to the (now correctly) urlencoded URL (of course without the FirstAccessSession-Parameter). This URL now has the sessionid encoded in its URL only, if the browser doesn't support cookies! My problem: I have a browser with cookies disabled - a html-redirect like meta http-equiv=refresh content=10; URL=/myURL;jsessionid=og9obimzx2 is misunderstood by many browsers (NS 4.x, IE5.x, IE6 ...) because of the second ; before jsessionid! the signature of the html-redirect-function is (int delayInSeconds;String redirectURL) separated by a ;! The second ; makes the browsers believe: here the URLString ends - but this isn't correct! The browser is redirected to the URL without encoded sessionid - and so looses its session!!! so how to make a HTML-redirect with URL-encoded sessionid? thanks michi - Original Message - From: Michael [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, April 09, 2002 7:52 PM Subject: urlencoded session html-redirection-bug Hallo! please help!!! when I encode an URL and do something like: meta http-equiv=refresh content=10; URL=/myURL;jsessionid=og9obimzx2 neither Netscape 4.xx nor InternetExplorer 5.5 handle the ;jsessionid correct. they redirect to the URL /myURL WITHOUT the ;jsessionid Netscape 6.2 and Opera 6.1 handle this redirection as expected and concat the ;jsessionid=... to the URL! any idea??? I need this feature for NS4 and IE5.5 !!! thanks michi -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: HTTP Tunnel (a response please????)
Excelent, sounds ideal. Thank you very much. Stuart -Original Message- From: Marc Chamberlin [mailto:[EMAIL PROTECTED]] Sent: 10 April 2002 05:42 To: Tomcat Users List Subject: Re: HTTP Tunnel (a response please) Stuart I am using an HTTP Tunneling protocol (for serialized Java objects) to handle communication from my servlets back to my applet front ends and it works great... I designed my applets to maintain state information and send this along with a request for new data, from it's associated servlet, at regular intervals (which is settable by the applet user for periods up to several minutes between requests) and the connection appears to stay open for as long as the applet/browser is running If you want a good source of info on how to set up a applet/servlet pair that uses HTTP tunneling protocols, get a copy of Core Servlets and Java Server Pages by Marty Hall and published by Sun Microsystems He has a very good example of how to set these up Marc Chamberlin - Original Message - From: [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Tuesday, April 09, 2002 6:24 AM Subject: RE: HTTP Tunnel (a response please) That's the way HTTP works. You browser connects to a web server when it makes a request. And once it gets a response, it disconnects. The connection, it creates, may be persistent (default with HTTP/1.1) though. But servers generally timeout after being idle for sometime. So what you are looking for in terms of consistent or persistent connections may not be guaranteed this way. You should consider using sessions in your servlet or jsp (that is if you just want to persist the user state) or maybe use sockets (may run into firewall/security issues) RS Stuart Stephen [EMAIL PROTECTED] on 04/09/2002 07:41:22 AM Please respond to Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] cc: Subject: RE: HTTP Tunnel (a response please) -Original Message- From: Stuart Stephen [mailto:[EMAIL PROTECTED]] Sent: 08 April 2002 22:16 To: Tomcat Users List Subject: HTTP Tunnel Hi everybody, I'm looking to make an HTTP tunnel servlet or jsp page that will keep the user connected consistently rather than it disconnecting and re-connecting each time a request is sent. Could anyone help me out here? Stuart -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
war Deployement ?
Hello, I package my web app as a war file. Probelm is that I'd like to do all initialization in my war file. But my server configuration file (server.xml) need to intialize the weapp RDBM driver : Resource name=jdbc/myDB auth=Container type=javax.sql.DataSource/ ResourceParams name=jdbc/myDB parameternameuser/namevaluesa/value/parameter parameternamepassword/namevalue/value/parameter parameternamedriverClassName/name valueorg.hsqldb.jdbcDriver/value/parameter parameternamedriverName/name valuejdbc:hsqldb:D:/mywebapp/src/docroot/WEB-INF/databases/myDB/value/parameter /ResourceParams . So is there informations about how to package those servers configurations informations into a war to deploy my webapp without modifying server.xml ? thanks. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Apache 2.0 and Tomcat 4.0, index.jsp
I get Tomcat 4.03 with the Connectors 4.0.4b and Apache working, but even if i put DirectoryIndex index.jsp index.htm in httpd.conf. Tomcat ignores them could somebody..have a answer thanks -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Clustering HTTP Sessions in Tomcat
anyone got anything like this for the tomcat 3 series ? Ta D Dion Almaer wrote: Filip Hanik has written a great article on HTTP Session Replication using Tomcat 4. http://www.theserverside.com/resources/index.jsp In this article we will cover one of the clustering technologies, HTTP session replication, that is used within the J2EE model. In the second half of the article, an example is provided of how session replication can be implemented using Tomcat in conjunction with JavaGroups, a communication protocol which can perform reliable multicast operations to transfer session state between nodes. Dion -- \\|// (o o) +oOOo-(_)-oOOo--+ | [EMAIL PROTECTED] | Dew knot trussed yore spell chequer two| | www.almaer.com/dion | fined awl yore mistakes | +---+ -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Is there a native JDBC driver for MS Access?
Adrian Beech wrote: Um, okay then how stable is the JDBC/ODBC bridge? As I previously mentioned in my initial posting some bits and peices that I've read suggest that this method of connecting to a DB back end is, or can be, a little dodgy. The comments basically revolved around the premise that the bridge is not capable of being threaded and it is considered by Sun to still be experimental. I got the impression that there is potential for data loss or corruption along with performance related issues. I guess I really need to know if it is reasonable to use Tomcat to host an environment that relies on this sort of DB connectivity. Adrian [EMAIL PROTECTED] - Original Message - From: Matt Gregory [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Saturday, April 06, 2002 11:06 PM Subject: Re: Is there a native JDBC driver for MS Access? No, you are forced to use the JDBC/ODBC bridge or purchase one of the proprietary drivers available. I know there are Paradox, FoxPro and dBase IV drivers but I have not seen any for Access. - Original Message - From: Adrian Beech [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Sunday, April 07, 2002 6:47 AM Subject: Is there a native JDBC driver for MS Access? G'day all, Is there a native JDBC driver for MS Access? A few postings I've seen in the list archive make mentioned that the JDBC/ODBC bridge is a bit dodgy. I have Tomcat 4.03 running as a standalone on a Win 2k pro box with JDK 1.3.1 installed. I'm rather new to Tomcat, JSP, JDBC, etc... Any help would be appreciated. Adrian Beech [EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] I was under the impression that it was recommended that you obtain a commercial JDBC driver from a vendor such as your RDBMS /middleware vendor as the JDBC-ODBC driver is usaually used for experimental use or if no other is available. Anyway there is mysql odbc which works fine with Mysql back-end and front-end M$ Aceess 2000. Cheers Chuck Amadi Systems Programmer -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
AW: Re : Re: urlencoded session html-redirection-bug
Are there special reasons why you redirect in the html and not with response.sendRedirect ? I don't think that there is an easy way to get the meta tag working. (Something like writing a filter or using mod_rewrite to rewrites /myURL?jsessionid=og9obimzx2 and using a selfmade encodeUrl()) -Ursprüngliche Nachricht- Von: Michael [mailto:[EMAIL PROTECTED]] Gesendet: Mittwoch, 10. April 2002 09:55 An: Giorgio Ponza Cc: [EMAIL PROTECTED] Betreff: Re : Re: urlencoded session html-redirection-bug snip/ meta http-equiv=refresh content=10; URL=/myURL;jsessionid=og9obimzx2 is misunderstood by many browsers (NS 4.x, IE5.x, IE6 ...) because of the second ; before jsessionid! the signature of the html-redirect-function is (int delayInSeconds;String redirectURL) separated by a ;! The second ; makes the browsers believe: here the URLString ends - but this isn't correct! The browser is redirected to the URL without encoded sessionid - and so looses its session!!! snip/ -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Tomcat process takes 246M whereas total java heap is 127M
Do you know if there is a simple solution to pre-compile the JSP's ? (And to tell tomcat not to re-compile the JSP's ?) Thanks Jay Gardner wrote: There are definitely memory leaks in javac. This is a problem when jspc compiles your jsp code in the same JVM as the TC server. --Jay Gardner -Original Message- From: Christophe Reynaud [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 09, 2002 12:52 PM To: Tomcat Users List Subject: Tomcat process takes 246M whereas total java heap is 127M Hello, We use tomcat 3.3.1 on Linux RH 7.2. JVM : IBM 1.3 top -c tells that the tomcat threads take 246M but if we use the Java function totalMemory(), it tells that the JVM uses 127M for the heap. Where is the rest of memory ? I expected that the JVM used more than only the total of the heap, but in this case it is almost the double ! Any ideas about the reasons of this problem ? Are there some momory leaks in the JVM ? Thanks. Christophe -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: installation
hi to upload the files is not a problme I want to check is that working fine or not? how can i check that atif DingHui wrote: It's based on the configuration of your server. if there is a FTP service running on your server,you can upload your files with FTP client such as CuteFTP. Therefore ,you can directly copy your JSP files to the server - Original Message - From: Atif Munir [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, May 10, 2002 2:09 PM Subject: installation I wana to upload my jsp based web site.I have Apache running on my server...What should me do now? which things are necessary to be installed on server? Thanks in advance atif -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Handle exceptions correctly
I found that there was an error IN my error page that's why I had all this trouble ! On Tuesday 09 April 2002 17:54, Raphael Di Cicco wrote: I know but the exception is pointing to if (pageContext != null) pageContext.handlePageException(t); That's not very useful to find out what happened. And I can tell you these are exceptions I'm almost sure. On Tuesday 09 April 2002 17:49, Jeff Larsen wrote: The error message looks more like your page just has some mismatched brackets and not a problem with exceptions. If you have a hard time finding it in your source jsp. Look at $TOMCAT_HOME/work/host/context/yourfile$jsp.java. This is the compilable java source for your jsp. Jeff - Original Message - From: Raphael Di Cicco [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, April 09, 2002 10:10 AM Subject: Handle exceptions correctly Hi, I used to handle exceptions quite weel within my JSP pages. This is what I chose to do : - always throw Exceptions inside my Java methods and don't catch them inside. - don't do a try{} catch{} statement within my JSP pages. - but include an error page so that errors get redirected there. It used to work quite well but now whenever I get a small exception somewhere in the code all I have is a message saying : org.apache.jasper.JasperException: Unable to compile class for JSP } catch (Throwable t) { ^ } ^ } ^ 3 errors at The problem is that I don't know what I have changed in my code, not much. Do you know what type of problems that can occur with this ? Thanks for your help -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
On timeout
Hi, I have had this problem for a long time. This may not be very difficult but still. I have a timeout on my server, let's say 10 minutes. After 10 minutes, all session variables are destructed, so the user gets an exception message once he tries to interact with the application. Is there anyway I can detect this so that I can warn the user ? Thanks, Raphaël -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: installation
There must be a JSP/Servlet engin running on your server,such as TOMCAT, JRun,JServ,etc. - Original Message - From: Atif Munir [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Friday, May 10, 2002 5:39 PM Subject: Re: installation hi to upload the files is not a problme I want to check is that working fine or not? how can i check that atif DingHui wrote: It's based on the configuration of your server. if there is a FTP service running on your server,you can upload your files with FTP client such as CuteFTP. Therefore ,you can directly copy your JSP files to the server - Original Message - From: Atif Munir [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, May 10, 2002 2:09 PM Subject: installation I wana to upload my jsp based web site.I have Apache running on my server...What should me do now? which things are necessary to be installed on server? Thanks in advance atif -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Starting Tomcat 4 as an NT service
NT Services are installed at the command line with --install and removed with --remove following the .exe name. Notice there are TWO hyphens before install and remove. - Original Message - From: Ken Anderson [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Saturday, April 27, 2002 4:48 PM Subject: Re: Starting Tomcat 4 as an NT service On WinXP, I found I had to do %CATALINA_HOME%\bin\tomcat.exe -uninstall Apache Tomcat To uninstall the Tomcat Service. %CATALINA_HOME%\bin\tomcat.exe -uninstall Apache-Catalina gave me a cryptic error about overlapped i/o in progress and didn't remove the service. Ken Jacob Kjome wrote: Hello rsudama, Just a note. I've posted this answer twice before on this list. Please search the archives because it *has* been answered and I gave the solution in the email and didn't ask anyone to search anywhere for the answer. Anyway, here it is again: I distilled the following from this article: http://www.webmasterbase.com/printTemplate.php?aid=305 Assuming you have all your environment variables set, just copy+paste the following to a command line... To Install Catalina Service: %CATALINA_HOME%\bin\tomcat.exe -install Apache-Catalina %JAVA_HOME%\jre\bin\server\jvm.dll -Djava.class.path=%CATALINA_HOME%\bin\boo tstrap.jar;%JAVA_HOME%\lib\tools.jar -Dcatalina.home=%CATALINA_HOME% %CATALINA_OPTS% -Xrs -start org.apache.catalina.startup.Bootstrap -params start -stop org.apache.catalina.startup.Bootstrap -params stop -out %CATALINA_HOME%\logs\stderr.log To Uninstall Catalina Service: %CATALINA_HOME%\bin\tomcat.exe -uninstall Apache-Catalina Now, check in your Services applet and the Apache-Catalina service should be there. Jake Tuesday, April 09, 2002, 2:08:10 PM, you wrote: roc Yes, I understand perfectly well that it's an option in the installer. I'm roc trying to find out where the documentation are sources are for this tool that is roc included as part of the open source distribution. If there's some reasons for roc not distributing the sources for the tool itself (or how about the whole install roc program?) that's fine, but it would be nice if there was at least some roc documentation on its use. As far as I can tell, the general attitude of the roc Tomcat community on this is we've figured out a way to get this done, and roc here's a bunch of pointers to places where you can figure it our for yourself. roc I already have other tools that can do this if I need to, but since a perfectly roc good tool has already been developed by someone I'd rather use that if it's roc possible. roc - Ram roc [EMAIL PROTECTED] on 04/09/2002 01:22:22 PM roc Please respond to Tomcat Users List [EMAIL PROTECTED] roc To: 'Tomcat Users List' roc [EMAIL PROTECTED] roc cc: (bcc: Ram Sudama/ON Technology) roc Subject: RE: Starting Tomcat 4 as an NT service service. However, no one has seemed to address how Tomcat 4.0.3 roc actually _is_ installed as an NT service. roc It is now included as an option in the installer. roc - tex roc -- roc To unsubscribe: mailto:[EMAIL PROTECTED] roc For additional commands: mailto:[EMAIL PROTECTED] roc Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: On timeout
maybe you can use this method in your JSP boolean session.isNew() saying if the session id is just created or not. Giorgio - Original Message - From: Raphael Di Cicco [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, April 10, 2002 11:06 AM Subject: On timeout Hi, I have had this problem for a long time. This may not be very difficult but still. I have a timeout on my server, let's say 10 minutes. After 10 minutes, all session variables are destructed, so the user gets an exception message once he tries to interact with the application. Is there anyway I can detect this so that I can warn the user ? Thanks, Raphaël -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
realm jdbc oracle problem
I am getting error like at the bottom when i want to use jdbc realm against oracle 9i db, is this a bug ? how can i resolve this , Starting service Tomcat-Standalone Apache Tomcat/4.0.2 Catalina.start: LifecycleException: Exception opening database connection: jav a.sql.SQLException: oracle.jdbc.driver.OracleDriver LifecycleException: Exception opening database connection: java.sql.SQLExcepti on: oracle.jdbc.driver.OracleDriver at org.apache.catalina.realm.JDBCRealm.start(JDBCRealm.java:615) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1108) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:343 ) at org.apache.catalina.core.StandardService.start(StandardService.java:3 88) at org.apache.catalina.core.StandardServer.start(StandardServer.java:506 ) at org.apache.catalina.startup.Catalina.start(Catalina.java:781) at org.apache.catalina.startup.Catalina.execute(Catalina.java:681) at org.apache.catalina.startup.Catalina.process(Catalina.java:179) at java.lang.reflect.Method.invoke(Native Method) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243) - Root Cause - java.sql.SQLException: oracle.jdbc.driver.OracleDriver at org.apache.catalina.realm.JDBCRealm.open(JDBCRealm.java:538) at org.apache.catalina.realm.JDBCRealm.start(JDBCRealm.java:613) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1108) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:343 ) at org.apache.catalina.core.StandardService.start(StandardService.java:3 88) at org.apache.catalina.core.StandardServer.start(StandardServer.java:506 ) at org.apache.catalina.startup.Catalina.start(Catalina.java:781) at org.apache.catalina.startup.Catalina.execute(Catalina.java:681) at org.apache.catalina.startup.Catalina.process(Catalina.java:179) at java.lang.reflect.Method.invoke(Native Method) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)
RE: realm jdbc oracle problem
Mehmet, Oracle provides a new JDBC driver for 9i instead of that for 8i. Are you sure that you are using correct driver? Murat. -Original Message- From: Mehmet Ugur Kuzu (LinkPlus) [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 10, 2002 12:04 PM To: 'Tomcat Users List' Subject: realm jdbc oracle problem I am getting error like at the bottom when i want to use jdbc realm against oracle 9i db, is this a bug ? how can i resolve this , Starting service Tomcat-Standalone Apache Tomcat/4.0.2 Catalina.start: LifecycleException: Exception opening database connection: jav a.sql.SQLException: oracle.jdbc.driver.OracleDriver LifecycleException: Exception opening database connection: java.sql.SQLExcepti on: oracle.jdbc.driver.OracleDriver at org.apache.catalina.realm.JDBCRealm.start(JDBCRealm.java:615) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1108) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:343 ) at org.apache.catalina.core.StandardService.start(StandardService.java:3 88) at org.apache.catalina.core.StandardServer.start(StandardServer.java:506 ) at org.apache.catalina.startup.Catalina.start(Catalina.java:781) at org.apache.catalina.startup.Catalina.execute(Catalina.java:681) at org.apache.catalina.startup.Catalina.process(Catalina.java:179) at java.lang.reflect.Method.invoke(Native Method) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243) - Root Cause - java.sql.SQLException: oracle.jdbc.driver.OracleDriver at org.apache.catalina.realm.JDBCRealm.open(JDBCRealm.java:538) at org.apache.catalina.realm.JDBCRealm.start(JDBCRealm.java:613) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1108) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:343 ) at org.apache.catalina.core.StandardService.start(StandardService.java:3 88) at org.apache.catalina.core.StandardServer.start(StandardServer.java:506 ) at org.apache.catalina.startup.Catalina.start(Catalina.java:781) at org.apache.catalina.startup.Catalina.execute(Catalina.java:681) at org.apache.catalina.startup.Catalina.process(Catalina.java:179) at java.lang.reflect.Method.invoke(Native Method) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)
mounting a hard disk to linux
hello, i am trying to mount a hard disk of 2 gb onto linux. what should i do to mount it i did try to format it with ntfs file system and then entered the entry into the fstab file and specified the file system as ntfs, but i got the message that the file system is not supported by kernel. although the books says linux supports ntfs plz tell me how to go about. i could have also specified the file system as dos, but then how to dos format the disk and is it necessary to have a dos partition on linux then ? thanx in advance Lalit Nagpal. - Do You Yahoo!? Yahoo! Tax Center - online filing with TurboTax
RE: mounting a hard disk to linux
If possible, you can format it as FAT32 then mount it as VFAT. Murat. -Original Message- From: Lalit Nagpal [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 10, 2002 12:40 PM To: [EMAIL PROTECTED] Subject: mounting a hard disk to linux hello, i am trying to mount a hard disk of 2 gb onto linux. what should i do to mount it i did try to format it with ntfs file system and then entered the entry into the fstab file and specified the file system as ntfs, but i got the message that the file system is not supported by kernel. although the books says linux supports ntfs plz tell me how to go about. i could have also specified the file system as dos, but then how to dos format the disk and is it necessary to have a dos partition on linux then ? thanx in advance Lalit Nagpal. - Do You Yahoo!? Yahoo! Tax Center - online filing with TurboTax
Re: AW: Re : Re: urlencoded session html-redirection-bug
Am Mittwoch, 10. April 2002 10:29 schrieben Sie: Are there special reasons why you redirect in the html and not with response.sendRedirect ? yes - a response.sendRedirect won't be recognized by the user! I want the user to see, that something happened - and after a few seconds he is going to be redirected! I don't think that there is an easy way to get the meta tag working. (Something like writing a filter or using mod_rewrite to rewrites /myURL?jsessionid=og9obimzx2 and using a selfmade encodeUrl()) mod_rewrite is a good idea! meanwhile I do the meta-tag-redirect not to 'response.encodeURL(request.getRequestedURI())' but to 'request.getRequestedURI() + ?redirectTo= + java.net.URLEncoder.encode(response.encodeURL(request.getRequestURI())' if I get a parameter named redirectTo in my servlet, I do a 'response.sendRedirect(request.getParameter(redirectTo))' thanks michi snip/ meta http-equiv=refresh content=10; URL=/myURL;jsessionid=og9obimzx2 is misunderstood by many browsers (NS 4.x, IE5.x, IE6 ...) because of the second ; before jsessionid! the signature of the html-redirect-function is (int delayInSeconds;String redirectURL) separated by a ;! The second ; makes the browsers believe: here the URLString ends - but this isn't correct! The browser is redirected to the URL without encoded sessionid - and so looses its session!!! snip/ -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Re: urlencoded session html-redirection-bug
So, try this way: meta http-equiv=refresh content=10; URL='myURL?;jsessionid=og9obimzx2' with the single ' after = and before closing and the ? before the jsessionid i tried with some url and works, hope also for you Regards Giorgio - Original Message - From: Michael [EMAIL PROTECTED] To: Giorgio Ponza [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Wednesday, April 10, 2002 9:55 AM Subject: Re : Re: urlencoded session html-redirection-bug When you encode the url, the first time the jsessionid is attached to the URL, but if your browser have cookies enabled, a cookie is assigned and the jsessionid parameter is not shown anymore. thanks for your comment - but this isn't the problem! to handle the first-time URLencode after session-creation, I redirect (302) to the same URL with a QueryStringParameter FirstAccessSession - in this request I now see, if the Session is obtained by cookie or by URL! I do another redirect to the (now correctly) urlencoded URL (of course without the FirstAccessSession-Parameter). This URL now has the sessionid encoded in its URL only, if the browser doesn't support cookies! My problem: I have a browser with cookies disabled - a html-redirect like meta http-equiv=refresh content=10; URL=/myURL;jsessionid=og9obimzx2 is misunderstood by many browsers (NS 4.x, IE5.x, IE6 ...) because of the second ; before jsessionid! the signature of the html-redirect-function is (int delayInSeconds;String redirectURL) separated by a ;! The second ; makes the browsers believe: here the URLString ends - but this isn't correct! The browser is redirected to the URL without encoded sessionid - and so looses its session!!! so how to make a HTML-redirect with URL-encoded sessionid? thanks michi - Original Message - From: Michael [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, April 09, 2002 7:52 PM Subject: urlencoded session html-redirection-bug Hallo! please help!!! when I encode an URL and do something like: meta http-equiv=refresh content=10; URL=/myURL;jsessionid=og9obimzx2 neither Netscape 4.xx nor InternetExplorer 5.5 handle the ;jsessionid correct. they redirect to the URL /myURL WITHOUT the ;jsessionid Netscape 6.2 and Opera 6.1 handle this redirection as expected and concat the ;jsessionid=... to the URL! any idea??? I need this feature for NS4 and IE5.5 !!! thanks michi --- - -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: realm jdbc oracle problem
check your driver - Original Message - From: Mehmet Ugur Kuzu (LinkPlus) [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Wednesday, April 10, 2002 18:03 Subject: realm jdbc oracle problem I am getting error like at the bottom when i want to use jdbc realm against oracle 9i db, is this a bug ? how can i resolve this , Starting service Tomcat-Standalone Apache Tomcat/4.0.2 Catalina.start: LifecycleException: Exception opening database connection: jav a.sql.SQLException: oracle.jdbc.driver.OracleDriver LifecycleException: Exception opening database connection: java.sql.SQLExcepti on: oracle.jdbc.driver.OracleDriver at org.apache.catalina.realm.JDBCRealm.start(JDBCRealm.java:615) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1108) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:343 ) at org.apache.catalina.core.StandardService.start(StandardService.java:3 88) at org.apache.catalina.core.StandardServer.start(StandardServer.java:506 ) at org.apache.catalina.startup.Catalina.start(Catalina.java:781) at org.apache.catalina.startup.Catalina.execute(Catalina.java:681) at org.apache.catalina.startup.Catalina.process(Catalina.java:179) at java.lang.reflect.Method.invoke(Native Method) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243) - Root Cause - java.sql.SQLException: oracle.jdbc.driver.OracleDriver at org.apache.catalina.realm.JDBCRealm.open(JDBCRealm.java:538) at org.apache.catalina.realm.JDBCRealm.start(JDBCRealm.java:613) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1108) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:343 ) at org.apache.catalina.core.StandardService.start(StandardService.java:3 88) at org.apache.catalina.core.StandardServer.start(StandardServer.java:506 ) at org.apache.catalina.startup.Catalina.start(Catalina.java:781) at org.apache.catalina.startup.Catalina.execute(Catalina.java:681) at org.apache.catalina.startup.Catalina.process(Catalina.java:179) at java.lang.reflect.Method.invoke(Native Method) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243) -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
native lib not found in common/lib but works in WEB-INF/lib
Hi, I have a problem with tomcat and the oracle oci driver. This only occurs if I use jdk 1.4 and works fine with jdk1.3. The Oracle oci driver needs a native library (ocijdbc8.dll). This library is on my PATH and tomcat loads it fine if I place the oracle java libs (classes12.jar) in WEB-INF/lib of my project. But because native libraries may only be loaded once you suggest to put it in common/lib. With jdk1.3 this works, with jdk1.4 I get the following error: java.lang.UnsatisfiedLinkError: no ocijdbc8 in java.library.path at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1410) at java.lang.Runtime.loadLibrary0(Runtime.java:772) at java.lang.System.loadLibrary(System.java:832) at oracle.jdbc.oci8.OCIDBAccess.logon(OCIDBAccess.java:228) at oracle.jdbc.driver.OracleConnection.(OracleConnection.java:246) at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java:365) at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:260) [...] Any ideas? Is this a bug? My setup: Windows 2000 Prof / Tomcat 4.0.3/4.0.4b2 / sun jdk1.4 / oracle client 8.1.7 Regards Christoph -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Apache 2.0 and Tomcat 4.0, index.jsp
Torsten Fohrer a écrit : I get Tomcat 4.03 with the Connectors 4.0.4b and Apache working, but even if i put DirectoryIndex index.jsp index.htm in httpd.conf. Tomcat ignores them could somebody..have a answer thanks edit $TOMCAT_HOME/conf/web.xml or your $TOMCAT_HOME/webapps/$YOURAPP/WEB-INF/web.xml; at the end of this file, you find the welcome-file-list section, which has the same effect that DirectoryIndex directive under Apache welcome-file-list welcome-fileindex.jsp/welcome-file welcome-fileframeset.html/welcome-file welcome-fileaccueil.htm/welcome-file welcome-filedefault.htm/welcome-file /welcome-file-list hopes this helps -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- Julien OIX Service Informatique de Gestion Tél: 02 40 99 83 65 mail: [EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
mod_jk for apache2.0 compilation error
There's error when i compile J-T-C form CVS My sys config: kernel 2.4.18 glibc 2.2.5 apache 2.0.35 tried both j2sdk 1.4 and 1.3.1_03 here's what i get after running build script: /usr/local/apache2/build/libtool --silent --mode=link gcc -o mod_jk.so -rpath /u sr/local/apache2/modules -module -avoid-version -I../common -I/usr/local/apache2 /include -I/usr/local/java/jdk1.3.1_03/include -I/usr/local/java/jdk1.3.1_03/inc lude/linux mod_jk.lo jk_worker.lo jk_util.lo jk_uri_worker_map.lo jk_sockbuf.l o jk_pool.lo jk_nwmain.lo jk_msg_buff.lo jk_md5.lo jk_map.lo jk_lb_worker.lo jk_ jni_worker.lo jk_context.lo jk_connect.lo jk_ajp_common.lo jk_ajp14_worker.lo jk _ajp14.lo jk_ajp13_worker.lo jk_ajp13.lo jk_ajp12_worker.lo /usr/lib/crt1.o: In function `_start': /usr/lib/crt1.o(.text+0x18): undefined reference to `main' mod_jk.lo: In function `ws_start_response': /home/chuck/oss/jakarta-tomcat-connectors/jk/native/apache-2.0/mod_jk.c:225: und efined reference to `apr_psprintf' /home/chuck/oss/jakarta-tomcat-connectors/jk/native/apache-2.0/mod_jk.c:229: und efined reference to `apr_pstrdup' /home/chuck/oss/jakarta-tomcat-connectors/jk/native/apache-2.0/mod_jk.c:230: und efined reference to `ap_content_type_tolower' /home/chuck/oss/jakarta-tomcat-connectors/jk/native/apache-2.0/mod_jk.c:233: und efined reference to `apr_table_set' /home/chuck/oss/jakarta-tomcat-connectors/jk/native/apache-2.0/mod_jk.c:236: und efined reference to `apr_table_set' . . u may not be interested in such long long list .. 69: undefined reference to `dlclose' collect2: ld returned 1 exit status apxs:Error: Command failed with rc=65536 -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: installation
if they're not simple JSP that can't be tested with just a browser, than you may have to do what everyone else does, use JUnit or something similar. It all depends on the level of testing you want to perform. Regression testing, basic does it work test, white box or black box testing. There's a wide variety of tests, so you're going to have to provide more detailed information for others to provide useful suggestions. peter lin Atif Munir wrote: hi to upload the files is not a problme I want to check is that working fine or not? how can i check that atif DingHui wrote: It's based on the configuration of your server. if there is a FTP service running on your server,you can upload your files with FTP client such as CuteFTP. Therefore ,you can directly copy your JSP files to the server - Original Message - From: Atif Munir [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, May 10, 2002 2:09 PM Subject: installation I wana to upload my jsp based web site.I have Apache running on my server...What should me do now? which things are necessary to be installed on server? Thanks in advance atif -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: mounting a hard disk to linux
2 daft questions ... 1) whats a post like this doing in the tomcat forum ? 2) why WHY WHY would you format a disk to be used by linux as a windows format ? Try ext2 / ext3 / any of the other native formats ! They are alot better ! NTFS is an 'experimental' filing system under linux ATM IIRC good luck ! D Murat Buyukkal ([EMAIL PROTECTED]) wrote: If possible, you can format it as FAT32 then mount it as VFAT. Murat. -Original Message- From: Lalit Nagpal [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 10, 2002 12:40 PM To: [EMAIL PROTECTED] Subject: mounting a hard disk to linux hello, i am trying to mount a hard disk of 2 gb onto linux. what should i do to mount it i did try to format it with ntfs file system and then entered the entry into the fstab file and specified the file system as ntfs, but i got the message that the file system is not supported by kernel. although the books says linux supports ntfs plz tell me how to go about. i could have also specified the file system as dos, but then how to dos format the disk and is it necessary to have a dos partition on linux then ? thanx in advance Lalit Nagpal. - Do You Yahoo!? Yahoo! Tax Center - online filing with TurboTax -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
AW: Apache 2.0 and Tomcat 4.0, index.jsp
thanks, for help but it doesn't work, the only thing that is working is this Command in httpd.conf JkMount /* ajp13.but then can I use tomcat purethats faster .. i have found it that's helpbut now static index files are delivered by tomcat too... JkMount / ajp13 but better than non index.jsp thanks all -Ursprüngliche Nachricht- Von: Julien OIX [mailto:[EMAIL PROTECTED]] Gesendet: Mittwoch, 10. April 2002 12:20 An: Tomcat Users List Betreff: Re: Apache 2.0 and Tomcat 4.0, index.jsp Torsten Fohrer a écrit : I get Tomcat 4.03 with the Connectors 4.0.4b and Apache working, but even if i put DirectoryIndex index.jsp index.htm in httpd.conf. Tomcat ignores them could somebody..have a answer thanks edit $TOMCAT_HOME/conf/web.xml or your $TOMCAT_HOME/webapps/$YOURAPP/WEB-INF/web.xml; at the end of this file, you find the welcome-file-list section, which has the same effect that DirectoryIndex directive under Apache welcome-file-list welcome-fileindex.jsp/welcome-file welcome-fileframeset.html/welcome-file welcome-fileaccueil.htm/welcome-file welcome-filedefault.htm/welcome-file /welcome-file-list hopes this helps -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- Julien OIX Service Informatique de Gestion Tél: 02 40 99 83 65 mail: [EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Integrating with JDBCRealm
You can probably do this with JAAS, which is included in j2sdk1.4.0 and was an add-on on 1.3. The main problem I had originally was with the CallbackHandler, which is supposed to get input from the user. I couldn't figure out how to have the CallbackHandler object create an HTML form, send that to the user, and have the submit bring the data back into the originating (or a cooperating) object. I think there are ways to do it, but I never did get that worked out, so I subclassed LoginContext so I could pass the account ID / password data into the LoginModule. It all works fine for authentication. Authorization doesn't seem to be working in Tomcat 4 yet (in fact, you get different behaviors out of 4.0.1 and 4.0.3 with the same application). This approach doesn't use any of Tomcat's security mechanisms (other than running with a security manager). If you look into all that and are interested in the LoginContext source, let me know. Also, if you want links to some of Sun's documentation on JAAS, I can go dig those out. Mark -Original Message- From: David Lu [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 09, 2002 9:14 PM To: [EMAIL PROTECTED] Subject: Integrating with JDBCRealm Hi, I am able to get JDBCRealm working in my app. However, I also like to create a login form that posts to my own servlet instead of j_security_check. This allows me to manually authenticate the user, and sends him on to the appropriate home page depending on his role. What's the best way of doing this in Tomcat? Can I hook in to Tomcat's Authenticator and JDBCRealm? Or do I need to extend them and write my own? I'd like to have both systems work together, i.e. if a user authenticates via my servlet then I do not want Tomcat's container managed authentication to kick in. I'm running Tomcat version 4.0.3. - David - -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
upgrade
Hi all, I have a question regarding how to upgrade tomcat. I think this problem is common to everyone because tomcat is a servlet engine which is in constant evolution. So for example I have apache + tomcat 4.0.2 with my web applications under /webapps: how can I upgrade to tomcat 4.0.3, which solves some bugs, without reinstalling all ( and configure workers.properties, servlet.xml, web.xml, ) ? I think this is an important point because people can be discourage using tomcat if it's difficult to upgrade. Thanks for your help Laura -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
createNewFile method not found error(JSP)-Peculiar problem(Help please)
Hi all, In my JSP,I am using the following code segment. java.io.File statusFile = new java.io.File(d:/temp/test1); statusFile.createNewFile(); I am using TOMCAT 3.2.3 in Windows2000 machine.(JDK1.3) It is throwing following error. org.apache.jasper.JasperException: Unable to compile class for JSPD:\jakarta-tomcat-3.2.3\work\localhost_8080%2FWindchillConnector6\_0002fjsp_0002fWindchillServerConfig_0005fGUI_0005f write_0002ejspWindchillServerConfig_0005fGUI_0005fwrite_jsp_0.java:431: Method createNewFile() not found in class java.io.File. statusFile.createNewFile(); ^ 1 error Can any one of you throw some light on this? I don't understand this problem. With Regards K.RajeshKannan _ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
NoPermissionException in tomcat3.3.1 but not tomcat3.2.4
Hello, I've used JNDI to replace a context's attribute. I connect using rootDN. However, I can do it in tomcat3.2.4 and in console java application. BUT NOT tomcat3.3.1 or tomcat4.0.3. Do anyone know why?? com.macroview.sso.main.SSOException: javax.naming.NoPermissionException: [LDAP: error code 50 - Insufficient 'write' privilege to the 'idletimeout' attribute of entry 'cn=test,ou=user,o=software,c=hk,dc=macroview,dc=com'. ]; remaining name 'cn=test,ou=user,o=software,c=hk,dc=macroview,dc=com' Thx. and Regards. Steve. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: On timeout
In my web app, I check the session variable in each servlet and redirect to my login servlet if the sesssion is null. I use a helper method in my servlet baseclass. If you want to see it in action, try http:www.epixography.com/light/Start The session timeout is 30 minutes, so be prepared to wait! David Raphael Di Cicco wrote: Hi, I have had this problem for a long time. This may not be very difficult but still. I have a timeout on my server, let's say 10 minutes. After 10 minutes, all session variables are destructed, so the user gets an exception message once he tries to interact with the application. Is there anyway I can detect this so that I can warn the user ? Thanks, Raphaël -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: On timeout
I don't know if there's an easy way to tell your user that they've timed out before theysubmit something, but in your JSP/servlet action you can also use something like HttpSession session = request.getSession(false); where request is HttpServletRequest. If session is null, the timeout has expired and you can display an appropriate page. See http://java.sun.com/products/servlet/2.1/api/javax.servlet.http.HttpServletR equest.html Mark -Original Message- From: Giorgio Ponza [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 10, 2002 4:26 AM To: Tomcat Users List Subject: Re: On timeout maybe you can use this method in your JSP boolean session.isNew() saying if the session id is just created or not. Giorgio - Original Message - From: Raphael Di Cicco [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, April 10, 2002 11:06 AM Subject: On timeout Hi, I have had this problem for a long time. This may not be very difficult but still. I have a timeout on my server, let's say 10 minutes. After 10 minutes, all session variables are destructed, so the user gets an exception message once he tries to interact with the application. Is there anyway I can detect this so that I can warn the user ? Thanks, Raphaël -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
AW: upgrade
Although we currently are not using tomcat this is how we would use it: /usr/local/java/jakarta-tomcat-4.0.2 /usr/local/java/jakarta-tomcat-4.0.3 Here we have the original distribution. /www/online/domain/ conf/ Here we have our edited config files for the site bin/ Here we have scripts that sets following env vars to start and stop tomcat: JAVA_HOME, CATALINA_HOME and CATALINA_BASE CATALINA_HOME points to the tomcat version we wan to use for a given site. (We have one server per site) CATALINA_BASE points to the base directory of the site As long as the config files are backward compatible you can upgrade and downgrade by changing CATALINA_HOME in the script(s). If you have to upgrade config files it get's complicated. Using CVS (or other tools like that) can help with that, but depending on the nature of the upgrade this can become a great burden. -Ursprüngliche Nachricht- Von: Laura [mailto:[EMAIL PROTECTED]] Gesendet: Mittwoch, 10. April 2002 14:05 An: [EMAIL PROTECTED] Betreff: upgrade snip/ I think this problem is common to everyone because tomcat is a servlet engine which is in constant evolution. So for example I have apache + tomcat 4.0.2 with my web applications under /webapps: how can I upgrade to tomcat 4.0.3, which solves some bugs, without reinstalling all ( and configure workers.properties, servlet.xml, web.xml, ) ? snip/ -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Custom error message
With Tomcat 3.2.4, i try to define a custom message for the error code 500 without changing the LocalStrings.properties file. I use response.sendError(500,particular message) in order to define a new message but it doesn't works. The error message is always the same (Cf. Ressources Bundle) Does anyone have any recommendations? Thanks. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: OT: Question to hardware requirements
This is difficult question which may be the reason why nobody has answered yet. We run several standalone tomcat on solaris and linux. They serve mainly dynamic pages with tight database access. I have no clue whith the XML to HTML stuff. From my experience with it I give a guess: 1) 1000 MHz, 512MB and a desktop harddisk should be sufficient 2) standalone configuration is the best choice according to your description -- HTH Bernhard Wraase -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Tomcat 4.x and Database Connection Pooling
Hi, I'm developing a web application using the Struts framework, running on Tomcat 4.0.3, from which I need to access a MySQL database. I've read various mailing lists etc looking for the best way to achieve this, but not had much luck. Struts provides a basic Connection Pool, but user comments suggest that this is not suitable for large-scale, high-traffic applications, and also that it will soon be removed from Struts in favour of a container-managed connection pool. I've found references to DbConnectionBroker and Jakarta's commons-dbcp module. It seems to make sense to use the latter, to keep the entire project neatly under the Jakarta project, but I'd appreciate comments on either. I'm fairly new to Tomcat (and Servlets), and I can't find any simple examples of how to use one of these connection pools. I suspect that I need to add something to my server.xml, and instantiate the pool in the servlet's init() method. It would be greatly appreciated if someone could provide some simple instructions to get me started - sample code would be fantastic. I hope to write about my experiences with this once I understand it - there seems to be a need for documentation in this area. Regards, Ric Searle Web Application Developer -- Dialogue Communications Ltd http://www.dialogue.co.uk +44 (0) 114 221 0307 -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Please help me on a question about TOMCAT OR APACHE + TOMCAT
Try something like this: select a.fieldname1, b.fieldname1 from table1 a, table2 b Where you put the a after the first table name and the b after the second table name. Then you refer to the fieldnames with those letters first so sql knows which table to look in for that field. Dale Nicholson -Original Message- From: Lee Chin Khiong [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 10, 2002 1:43 AM To: 'Tomcat Users List' Subject: RE: Please help me on a question about TOMCAT OR APACHE + TOMCAT Anybody familiar with sql ? I have a question here, how to link 2 tables from JSP when they have a same field name ? -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: realm jdbc oracle problem
yes i am sure -Original Message- From: Murat Buyukkal ([EMAIL PROTECTED]) [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 10, 2002 12:34 PM To: Tomcat Users List Subject: RE: realm jdbc oracle problem Mehmet, Oracle provides a new JDBC driver for 9i instead of that for 8i. Are you sure that you are using correct driver? Murat. -Original Message- From: Mehmet Ugur Kuzu (LinkPlus) [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 10, 2002 12:04 PM To: 'Tomcat Users List' Subject: realm jdbc oracle problem I am getting error like at the bottom when i want to use jdbc realm against oracle 9i db, is this a bug ? how can i resolve this , Starting service Tomcat-Standalone Apache Tomcat/4.0.2 Catalina.start: LifecycleException: Exception opening database connection: jav a.sql.SQLException: oracle.jdbc.driver.OracleDriver LifecycleException: Exception opening database connection: java.sql.SQLExcepti on: oracle.jdbc.driver.OracleDriver at org.apache.catalina.realm.JDBCRealm.start(JDBCRealm.java:615) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1108) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:343 ) at org.apache.catalina.core.StandardService.start(StandardService.java:3 88) at org.apache.catalina.core.StandardServer.start(StandardServer.java:506 ) at org.apache.catalina.startup.Catalina.start(Catalina.java:781) at org.apache.catalina.startup.Catalina.execute(Catalina.java:681) at org.apache.catalina.startup.Catalina.process(Catalina.java:179) at java.lang.reflect.Method.invoke(Native Method) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243) - Root Cause - java.sql.SQLException: oracle.jdbc.driver.OracleDriver at org.apache.catalina.realm.JDBCRealm.open(JDBCRealm.java:538) at org.apache.catalina.realm.JDBCRealm.start(JDBCRealm.java:613) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1108) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:343 ) at org.apache.catalina.core.StandardService.start(StandardService.java:3 88) at org.apache.catalina.core.StandardServer.start(StandardServer.java:506 ) at org.apache.catalina.startup.Catalina.start(Catalina.java:781) at org.apache.catalina.startup.Catalina.execute(Catalina.java:681) at org.apache.catalina.startup.Catalina.process(Catalina.java:179) at java.lang.reflect.Method.invoke(Native Method) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)
RE: realm jdbc oracle problem
it was just about a classpath problem -Original Message- From: Galbayar [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 10, 2002 12:53 PM To: Tomcat Users List Subject: Re: realm jdbc oracle problem check your driver - Original Message - From: Mehmet Ugur Kuzu (LinkPlus) [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Wednesday, April 10, 2002 18:03 Subject: realm jdbc oracle problem I am getting error like at the bottom when i want to use jdbc realm against oracle 9i db, is this a bug ? how can i resolve this , Starting service Tomcat-Standalone Apache Tomcat/4.0.2 Catalina.start: LifecycleException: Exception opening database connection: jav a.sql.SQLException: oracle.jdbc.driver.OracleDriver LifecycleException: Exception opening database connection: java.sql.SQLExcepti on: oracle.jdbc.driver.OracleDriver at org.apache.catalina.realm.JDBCRealm.start(JDBCRealm.java:615) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1108) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:343 ) at org.apache.catalina.core.StandardService.start(StandardService.java:3 88) at org.apache.catalina.core.StandardServer.start(StandardServer.java:506 ) at org.apache.catalina.startup.Catalina.start(Catalina.java:781) at org.apache.catalina.startup.Catalina.execute(Catalina.java:681) at org.apache.catalina.startup.Catalina.process(Catalina.java:179) at java.lang.reflect.Method.invoke(Native Method) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243) - Root Cause - java.sql.SQLException: oracle.jdbc.driver.OracleDriver at org.apache.catalina.realm.JDBCRealm.open(JDBCRealm.java:538) at org.apache.catalina.realm.JDBCRealm.start(JDBCRealm.java:613) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1108) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:343 ) at org.apache.catalina.core.StandardService.start(StandardService.java:3 88) at org.apache.catalina.core.StandardServer.start(StandardServer.java:506 ) at org.apache.catalina.startup.Catalina.start(Catalina.java:781) at org.apache.catalina.startup.Catalina.execute(Catalina.java:681) at org.apache.catalina.startup.Catalina.process(Catalina.java:179) at java.lang.reflect.Method.invoke(Native Method) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243) -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Please help me on a question about TOMCAT OR APACHE + TOMCAT
I would suggest a minor addition to the below ... where a.fieldname1= b.fieldname1 otherwise the results could be eerrr well rather large ( select what you want ...) Nicholson, Dale wrote: Try something like this: select a.fieldname1, b.fieldname1 from table1 a, table2 b Where you put the a after the first table name and the b after the second table name. Then you refer to the fieldnames with those letters first so sql knows which table to look in for that field. Dale Nicholson -Original Message- From: Lee Chin Khiong [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 10, 2002 1:43 AM To: 'Tomcat Users List' Subject: RE: Please help me on a question about TOMCAT OR APACHE + TOMCAT Anybody familiar with sql ? I have a question here, how to link 2 tables from JSP when they have a same field name ? -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Tomcat4 / OpenLDAP - Encrypted connectionPassword in JNDI Realm(server.xml) - Please Help
Hi Jeremy, Sorry to muddy the waters but here's my $0.02 It is possible to improve things a tiny bit without changing Tomcat (apologies if you already know this). It is not necessary for Tomcat to bind to your OpenLDAP server as OpenLDAP's rootdn. You can provide a dn and password for a regular entity but they must have read access to the userPassword attribute in all the objects that Tomcat is going to look at. This is just a matter of setting the correct permissions in slapd.conf. Obviously, this wouldn't prevent an attacker from snooping your plaintext password, using this to look at the digested passwords in the server and then performing dictionary/brute force attacks on them. However, it does prevent an attacker from snooping your password and using it to delete everything in your LDAP directory or messing around with it in another way. If you are worried about passive attacks on the network then the new 'bind as user' functionality available in CVS is perhaps better but it doesn't solve the problem completely. Everytime a user is authenticated and Tomcat binds as that user, their password will fly across the network in plaintext because Tomcat uses simple binds. An attacker just has to listen on the network for long enough and they could pick up all the passwords they wanted. If you would like to be really paranoid, and this takes effort, you could change the way Tomcat binds to the directory. You would just write a custom realm for your needs which would be based upon JNDIRealm. If you have a look in org.apache.catalina.realm.JNDIRealm, you could change the open() method to use a different authentication mechanism. JDK1.4 allows the use of SASL. OpenLDAP can do it if you bolt Cyrus on to the side of it, although I should warn you that its not a fun job and the best you're likely to get right now is DIGEST-MD5 authentication, which doesn't prevent active attacks, and another database of users. Perhaps a simpler change would be to make Tomcat use SSL for all its operations on the directory. Its expensive on the Tomcat and LDAP servers but the code change is tiny, its fairly easy to setup ldap + ssl and it would ensure that those passwords can't be read in transit. I guess it depends upon your personal requirements. Richard Jeremy Prellwitz wrote on Tuesday 09 April 2002: h, ..what do you think about a solution that would prompt for the password on startup? Maybe put a certain string into the connectionPassword (e.g. PROMPT), and then that would trigger Tomcat to request this input interactively? Does this sound reasonable? I've not really stepped into core project code before, but i'm willing to give it a go. Could you help me get started by pointing me in the general direction of the appropriate source? Thanks. Original message Date: Tue, 09 Apr 2002 17:24:04 +0100 From: John Holman [EMAIL PROTECTED] Subject: Re: Tomcat4 / OpenLDAP - Encrypted connectionPassword in JNDI Realm (server.xml) - Please Help To: Tomcat Users List [EMAIL PROTECTED] Hi Jeremy. For the JNDI realm to connect to the directory server with administrator privileges it needs to know the plaintext password. Having a digest in the config file isn't possible because the realm can't reconstruct the plaintext password from it. I suppose some other encryption would be possible, but you'd still need to have the plaintext key for *that* in some file somewhere, so I doubt it would make much difference. As you say, having the admin password in the config file is certainly a security issue, and is one of the disadvantages of the way that the realm currently included in Tomcat 4.0 operates. The new JNDI realm in the CVS HEAD authenticates by binding to the directory as the user rather than connecting as an administrator and retrieving the user's password. This normally needs no special privileges, so no password need be given in the config file. The new realm is not included in the Tomcat 4.0 releases (so far at least) but I could send you a jar file to install in server/lib giving the same functionality for Tomcat 4.0.x if that would help. John. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Tomcat 4.x and Database Connection Pooling
if performance is a critical requirement, than I would suggest writing a custom bean specific to the jdbc driver you intend to use. If Jakarta common provides all the features you need, than go with it. If your application needs to support multiple databases and jdbc drivers, be warned that not all jdbc drivers implement pooling, nor do they implement it the same way. In particular, jdbc drivers for SQLserver vary significantly in implementation, so doing real world benchmarks of each driver is critical. If commons doesn't provide the features you need, like scrollable resultsets, you may want to implement jdbc 2.0 compliant pooling driver using javax.sql api. good luck peter lin Ric Searle wrote: Hi, I'm developing a web application using the Struts framework, running on Tomcat 4.0.3, from which I need to access a MySQL database. I've read various mailing lists etc looking for the best way to achieve this, but not had much luck. Struts provides a basic Connection Pool, but user comments suggest that this is not suitable for large-scale, high-traffic applications, and also that it will soon be removed from Struts in favour of a container-managed connection pool. I've found references to DbConnectionBroker and Jakarta's commons-dbcp module. It seems to make sense to use the latter, to keep the entire project neatly under the Jakarta project, but I'd appreciate comments on either. I'm fairly new to Tomcat (and Servlets), and I can't find any simple examples of how to use one of these connection pools. I suspect that I need to add something to my server.xml, and instantiate the pool in the servlet's init() method. It would be greatly appreciated if someone could provide some simple instructions to get me started - sample code would be fantastic. I hope to write about my experiences with this once I understand it - there seems to be a need for documentation in this area. Regards, Ric Searle Web Application Developer -- Dialogue Communications Ltd http://www.dialogue.co.uk +44 (0) 114 221 0307 -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
CLIENT-CERT auth by webapp
Hi, Has anyone managed to get CLIENT-CERT authentication to work at the webapp level rather than specifying clientAuth=true in a connector and having to use it for all webapps? I've got it to work at the connector level but not by webapp. Thanks, Richard -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Tomcat intermittent failures
Joseph, Thanks for writing. I'm aware of the artificial connection-limit inder W2KPro, but we are running the server product, which admittedly is the Pro product with a few Registry changes and a few things like Terminal Server tacked on. In any case, I don't think we're running into the problem you describe, because we only have 2-3 people at present hitting the box at the same time. David Bank NC CATS Project Manager Accountability Services - Testing NC Department of Public Instruction 301 Wilmington Street Raleigh, NC 27601 919-807-3796 [EMAIL PROTECTED] 04/10/02 02:07AM I have seen similar behaviour before on a Win2K box, but it was a Win2K professional computer. The problem is that Win2K pro only allows a certain number of incoming connections, I believe 10. We saw this during unit testing of components when developers were testing on their own computers (before moving to a QA box). What I don't know off the top of my head, is whether it is possible a setting exists in Win2K server to control the number of connections to allow. Just thought this info might give someone else, or you, an idea or two. Hope it helps. Joe - Original Message - From: David Bank [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, April 09, 2002 10:55 AM Subject: Tomcat intermittent failures Good morning, afternoon, evening, or whichever local timeperiod you are currently experiencing. I've just joined the list, seeking help on a rather perplexing Tomcat problem we've been having. All assistance will be greatly appreciated. Our environment Windows 2000 Server (sorry) with SP2 (we're moving to Linux, I promise!) Apache v1.3.23 Tomcat v3.3a (running as a NT service) Sun JDK 1.3.1_02 Our problem Occasionally, especially after editing a JSP file or files, Tomcat will suddenly fail to find the .java and .class files that go with a particular JSP. Looking in the work directory reveals that the files exist, but when we attempt to access that particular JSP thru Apache, we get 404 - File Not Found. We have had some success in causing this problem to go away by shutting down the Apache and Tomcat services, deleting the appropriate .java and .class (and .ver) files, restarting the Tomcat and Apache services, and hitting Reload on the browser. Sometimes (about 50% of the time) when we do this, Tomcat suddenly finds the files and the JSP runs, new .java and .class files are created, and we get the proper output. The remaining 50% of the time, it falls to one of two happenstances. Either (30%) we do the shutdown-services-and-delete routine followed by a reboot and the problem goes away, or (20%) we keep retrying on different clients until the problem suddenly vanishes. This problem is intermittent. Sometimes we'll get it with FOO.JSP but not BAR.JSP. We'll then take a corrective action (described above) and suddenly we'll get it with BAR.JSP but not FOO.JSP. Both JSP files are very similar, and there's nothing exotic about our coding. Sometimes the problem goes away with some waiting. This happens with both IE and Netscape clients, and with clients on different networks and behind different firewall/proxy situations, so we don't think that firewall, proxy or other network architecture issues are contributing factors. This happens to clients on the same LAN as the servers. Needless to say, we're quite perplexed, and don't understand what is going wrong. If anyone has any suggestions or recommendations, please respond. David Bank NC CATS Project Manager Accountability Services - Testing NC Department of Public Instruction 301 Wilmington Street Raleigh, NC 27601 919-807-3796 -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
REPOST: XXX Assert failed, buff too small -- Help!!
I am *still* troubleshooting this issue, and am in dire need of help. Is anyone out there uploading large files via SSL/HTTPS? New discoveries: 1. Added some debugging code to Ajp13.class to output buff, length, etc., results are as follows: JR: Array: buff(from)=[B@7f92f5, pos(fromIndex)=6, dest(to)=[B@9505f, 0(toIndex), length(count)=8186 JR: Buff: length=8186, Buff: 8192 ... repeats for all 1364 correct AJP packets, then ... JR: Array: buff(from)=[B@7f92f5, pos(fromIndex)=6, dest(to)=[B@9505f, 0(toIndex), length(count)=8186 JR: Buff: length=65311, Buff: 8192 XXX Assert failed, buff too small: length=65311, Buff: 8192 JR: Array: buff(from)=[B@7f92f5, pos(fromIndex)=6, dest(to)=[B@9505f, 0(toIndex), length(count)=65311 ... then the AIOOB exception in the application log. 2. Have upgraded Tomcat from 4.0.1 to 4.0.3 3. Have upgraded to yet the latest ISAPI_REDIRECT(or).dll 4. Have explored all IIS registry settings without being able to change the results at all. 5. Tried other servlets besides O'Reilly with the same result (not surprising, the error occurs in AJP or isapi_redirect - still can't narrow down chain of events). 6. ASP pages used for upload do not have this problem (albeit they are considerably slower). Desparately looking for help or advice!! Thanks, John Roth, Director net.Media Provider Solutions Corp. -Original Message- From: John Roth [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 03, 2002 3:40 PM To: Tomcat User Group (E-mail) Subject: RE: XXX Assert failed, buff too small After two weeks, I am still troubleshooting the same problem uploading files via https where the filesize is greater than 10.7MB. I am not having much luck determining the order in which to problem flows, but the following things are happening: 1. stdout.log records XXX Assert failed, buff too small after which ajp13Packet.class exceptions with AIOOBE. 2. isapi_redirect gets a ReadClient failed, followed shortly by ServerSupportFunction failed. 3. IIS sends a reset flag to the client. 4. Socket timeout as client acks the reset flag. I am not able to determine the chain of events, ie: IIS reset/Client reset-ReadClient fails-AIOOBE or AIOOBE-ReadClient fails-IIS reset/Client reset. We are using the O'Reilly multipart upload servlet, and it has been upgraded to the latest version. The same thing happens when testing with other JSP based solutions (such as JSPSmartUpload) but not with ASP-based uploads. The next series of questions is this: 1. I noticed that 4.0.3 includes a significantly changed ajp connector. Had anyone been using is successfully or know if the changes address this issue? 2. Any ideas on how to more closely determine to order of the described order of events? Some of the logs reports milliseconds, most don't, so I can't seem to absolutely determine the order of events. 3. I have adjusted several TCP parameters in the Windows registry, but nothing seems to change the fact that the error always occurs on the 1365th AJP packet. None of the buffers within isapi_redirect.dll appear to correlate to this number. Anyone familiar with the inner workings of isapi_redirect (dated feb 14, 2002)? Any desperately needed help would be appreciated. Thanks, john -Original Message- From: John Roth [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 20, 2002 4:39 PM To: Tomcat User Group (E-mail) Subject: XXX Assert failed, buff too small We are having a problem with Tomcat using an upload servlet to upload potentially large files (up to 100MB). The servlet works fine for all file sizes in the following instances: http://servername/app/UploadFiles.jsp http://servername:8080/app/UploadFiles.jsp but when using https (ie: https://servername/app/UploadFiles.jsp, we get 'Page Cannot Be Displayed'. A summary of the error logs is below: IIS_Redirect.Log [Wed Mar 20 15:49:20 2002] [jk_ajp13_worker.c (206)]: sending to ajp13 #8192 [Wed Mar 20 15:49:20 2002] [jk_ajp13_worker.c (258)]: received from ajp13 #3 [Wed Mar 20 15:49:20 2002] [jk_isapi_plugin.c (426)]: Into jk_ws_service_t::read [Wed Mar 20 15:49:20 2002] [jk_isapi_plugin.c (426)]: Into jk_ws_service_t::read ... this repeats 1364 times, everytime, before the following: ... [Wed Mar 20 15:49:20 2002] [jk_ajp13_worker.c (206)]: sending to ajp13 #8192 [Wed Mar 20 15:49:20 2002] [jk_ajp13_worker.c (258)]: received from ajp13 #3 [Wed Mar 20 15:49:20 2002] [jk_isapi_plugin.c (426)]: Into jk_ws_service_t::read [Wed Mar 20 15:49:20 2002] [jk_isapi_plugin.c (426)]: Into jk_ws_service_t::read [Wed Mar 20 15:49:20 2002] [jk_isapi_plugin.c (460)]: jk_ws_service_t::read, ReadClient failed stdout.log -- Starting service Tomcat-Standalone-(Staging) Apache Tomcat/4.0.1 [Ajp13] bad read: -103 XXX Assert failed, buff too small Note: Yes, I have been following the list, and I don't know what causes -103 either, but with the exception of this servlet, our app has been running
best combination of jdk and tomcat version(with iplanet)
im to develop a new system w/ iPlanet, jdk, tomcat combination. what was the best combination of jdk and tomcat(version) in terms of stability? im thinking of jdk131 and tomcat 3.4 right now. also the compatibility with iPlanet has to be considered. im not using any new jsp/servlet version(1.2 and 2.3) programs. any suggestions will be appreciated. thanks in advance. __ Do You Yahoo!? Yahoo! BB is Broadband by Yahoo! http://bb.yahoo.co.jp/ -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Bug in Tomcat 3.3.1 with getPathInfo() ?
As far as I understand, calling request.getPathInfo() should return an encoded string. With Tomcat 3.3.1, it returns the plus sign instead of encoding it to a space. (Besides, it works ok with Tomcat 3.2X) Is this a bug or intended? Thanks in advance Olaf Vetter -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: xml - unspecified error in IE 5.5, Tomcat 3.2.1
If encoding isn't specified, the encoding should default to utf-8 (per the W3C xml spec). I don't know of any reason not to use utf-8. Thank you, Mike Millson Web Systems Engineer Sun Certified Programmer for Java2 Platform AableTech Solutions, Inc. 770.414.8834 404.219.3177 cell 770.414.8206 fax http://www.atsga.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 09, 2002 5:43 PM To: Tomcat Users List Subject: Re: xml - unspecified error in IE 5.5, Tomcat 3.2.1 i tried MSXML 3.0 SP2 and MSXML 4.0. For both these guys, the browser displayed the error message - System does not support the specified encoding. The servlet that sends the xml back doesn't set any encoding or anything. I tried adding the various encoding values in the ?xml version =1.0 encoding=iso-8859-1? tag of the xml document. But the same error message. RS Ingo Bruell [EMAIL PROTECTED] on 04/09/2002 04:44:27 PM Please respond to Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] cc: Subject: Re: xml - unspecified error in IE 5.5, Tomcat 3.2.1 Hi Tomcat, rtc Anyone has an idea why IE 5.5 displays the following error when Tomcat rtc 3.2.1 (servlet) sends back xml to the browser. rtc The XML page cannot be displayed. Please check the error and try again. rtc Unspecified error rtc The same program works on JRun. I suspect the content type could be a rtc problem. But ain't sure. Anyone experienced this. If I use an XSLT rtc processor (Xerces) on the server-side and then send back HTML it works rtc fine. So the xml transformed to HTML works allright. It's just that XML rtc doesn't display on IE 5.5. Do you know any other browser that displays XML? rtc By the way I also use Apache in front of Tomcat. rtc Any solutions/ideas/comments? Have you installed the msxml patch from microsoft ? I do not know the url but look at http://www.microsoft.com/ so long Ingo Bruell --- [EMAIL PROTECTED] [EMAIL PROTECTED] ICQ# 40377720 OldenburgPGP-Fingerprint: CB01 AE12 B359 87C4 BF1C 953C 8FE7 C648 169E E5FC Germany PGP-Public-Key available at pgpkeys.mit.edu -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Tomcat 3.2.1 - Axi problem
I've followed the installing instructions but anyway I get the following error when I first try to run the Administer Axis. Localization: /axis/servlet/AdminServlet Internal servlet error: java.lang.AbstractMethodError at org.apache.axis.deployment.wsdd.WSDDElement.validateCandidateElement(Unknown Source) at org.apache.axis.deployment.wsdd.WSDDElement.(Unknown Source) at org.apache.axis.deployment.wsdd.WSDDDeployment.(Unknown Source) at org.apache.axis.deployment.wsdd.WSDDDocument.(Unknown Source) at org.apache.axis.configuration.FileProvider.configureEngine(Unknown Source) at org.apache.axis.AxisEngine.init(Unknown Source) at org.apache.axis.AxisEngine.(Unknown Source) at org.apache.axis.server.AxisServer.(Unknown Source) at org.apache.axis.server.DefaultAxisServerFactory.createNewServer(Unknown Source) at org.apache.axis.server.DefaultAxisServerFactory.getServer(Unknown Source) at org.apache.axis.server.AxisServer.getServer(Unknown Source) at org.apache.axis.transport.http.AxisServlet.getEngine(Unknown Source) at org.apache.axis.transport.http.AdminServlet.getEngine(Unknown Source) at org.apache.axis.transport.http.AdminServlet.doGet(Unknown Source) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404) at org.apache.tomcat.core.Handler.service(Handler.java:286) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79 7) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743) at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC onnectionHandler.java:210) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498) at java.lang.Thread.run(Thread.java:484) any idea? thanks! Martin -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Tomcat 4.x and Database Connection Pooling
Performance isn't so important as future-proofing - I don't want to have to re-write the db interface when struts drops it's connection pool provision, for example. I believe that mm.mysql does support pooling, although I take your point that others may not. I can't see us moving away from MySQL at the moment, so that's fine. My use of the database is really quite simple, so I'm sure that commons would be fine, but at the moment I don't know where to start integrating it with my Struts project. Does the container manage the pool (i.e. some server.xml configuration needed)? Or do I instantiate and manage the pool from within my application, and if so, how? Regards, Ric Searle Web Application Developer -- Dialogue Communications Ltd http://www.dialogue.co.uk +44 (0) 114 221 0307 On Wednesday, April 10, 2002, at 02:44 pm, peter lin wrote: if performance is a critical requirement, than I would suggest writing a custom bean specific to the jdbc driver you intend to use. If Jakarta common provides all the features you need, than go with it. If your application needs to support multiple databases and jdbc drivers, be warned that not all jdbc drivers implement pooling, nor do they implement it the same way. In particular, jdbc drivers for SQLserver vary significantly in implementation, so doing real world benchmarks of each driver is critical. If commons doesn't provide the features you need, like scrollable resultsets, you may want to implement jdbc 2.0 compliant pooling driver using javax.sql api. good luck peter lin -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Bug in Tomcat 3.3.1 with getPathInfo() ?
According to RFC2396, '+' is are reserved character in the query string, but not in the path portion of a URL. There was a bug fix in Tomcat 3.3.1 to avoid translating '+' to ' ' in the parts of the URL prior to the query string. Cheers, Larry -Original Message- From: Olaf Vetter [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 10, 2002 10:40 AM To: [EMAIL PROTECTED] Subject: Bug in Tomcat 3.3.1 with getPathInfo() ? As far as I understand, calling request.getPathInfo() should return an encoded string. With Tomcat 3.3.1, it returns the plus sign instead of encoding it to a space. (Besides, it works ok with Tomcat 3.2X) Is this a bug or intended? Thanks in advance Olaf Vetter -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Content-Encoding - URGENT Please
Marhaba Ibrahim, I am not sure if someone else has already answered your question If you are using JSP 1.2 or servlet 2.3 (if you use tomcat 4 ) then you can use response.setCharacterEncoding(UTF-8); method. I think this will work. Cheers :) - Original Message - From: Mohammed Ibrahim [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Tuesday, April 09, 2002 8:09 AM Subject: Re: Content-Encoding - URGENT Please Hi Randy, Thanks for the quick response. I tried using response.setContentType() method but it works the same way as %@ page % tag and tried to convert the page content to UTF. since the content is already in UTF it gets messed up. Is there a way we can set the default encoding header sent by the server to the browser to utf-8? Thanks Gulshan - Original Message - From: randy melder [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Monday, April 08, 2002 5:15 PM Subject: RE: Content-Encoding - URGENT Please Look at the servlet API. There is a set content type function. I'm sorry, I don't have it in front of me. But the answer is using a Servlet API function. Good Luck, .randy /*** * Cheery Lynn Interactive, LLC * http://www.cheerylynn.com/ * tel://602 279 0135 * Web Applications-- ***/ -Original Message- From: Mohammed Ibrahim [mailto:[EMAIL PROTECTED]] Sent: Monday, April 08, 2002 4:53 PM To: [EMAIL PROTECTED] Subject: Content-Encoding - URGENT Please Hi, I am having trouble setting the page content type and encoding on my JSP pages. The content on the JSP page is already in UTF-8 format and so we cannot use %@ page % tag to set content type and have to use HTML META TAG to set these headers. But tomcat alwasys sets the page encoding to western european ISO and browser is ignoring the META tag. The sam page works fine with Weblogic. Please help me resolve this problem. Thanks Gulshan -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Tomcat 4.x and Database Connection Pooling
Hi Ric, Struts provides a basic Connection Pool, but user comments suggest that this is not suitable for large-scale, high-traffic applications, and also that it will soon be removed from Struts in favour of a container-managed connection pool So what will Tomcat Users do? Will Tomcat get a container manages connection pool? What is the reason for removing it form Struts? R. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Getting a servlet running under Tomcat-Apache 4.0.3
Greetings, y'all. * I've read all the documentation I can find. * I've emulated all the examples. * I've asked people I know who have set up servlets before. I still can't get access to the servlet I just wrote and installed. No matter how I've set up servlet-mappings, or url-patterns, or otherwise, I get 404'd on any attempt to test the servlet. The class files are where they're supposed to be, and the manager HTML applet says that the servlet is loaded and running. Supposedly (based on reading docs and looking at examples) servlet servlet-nameMySeatingServlet/servlet-name servlet-classSeating/servlet-class /servlet servlet-mapping servlet-nameMySeatingServlet/servlet-name url-pattern/seating/url-pattern /servlet-mapping in my web.xml file should be sufficient to get the servlet mapped to a url, but http://localhost:8080/seating produces nothing but a 404, specifically type Status report message /seating description The requested resource (/seating) is not available. Obviously I'm either misinterpreting the documentation, missed something somewhere, or making a bad assumption. I'd appreciate any input I could get on this, because the servlet customer is breathing down my neck for the prototype, which I would like to test before delivering it jbm! -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Newbie question
Hi I'm trying to do my first servlet. I've compiled a simple HelloWorld class. Now, where is the root Tomcat directory where may I put it ? How could I define a new one for my tests ? Thanks in advance jl _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Bug in Tomcat 3.3.1 with getPathInfo() ?
OK. But now, is there any way to distinguish between a '+' that results from encoding '%2B' and a '+' that stands for ' ' ? In other words, if request.getPathInfo() returns '/Hit+Run' , this could be '/Hit+Run' or '/Hit Run' ... Olaf [EMAIL PROTECTED] 10.04.2002 17:07 According to RFC2396, '+' is are reserved character in the query string, but not in the path portion of a URL. There was a bug fix in Tomcat 3.3.1 to avoid translating '+' to ' ' in the parts of the URL prior to the query string. Cheers, Larry -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: AW: Tomcat intermittent failures
Ralph, Thanks for writing. We've been able to reproduce the situation on machines which were directly connected to the same LAN on which the servers are located (and therefore no proxy was involved), and we tried clearing browser caches on these machines. The problem persisted. When the problem occurs, some .JSP files will compile and run fine, others won't. So we know Apache is hitting Tomcat and Tomcat is running because some files work and some don't. It'll just change - as I said before, we'll do the restart thing, or even reboot the whole box, and before, FOO.JSP wouldn't work but BAR.JSP would, and after FOO.JSP will work and BAR.JSP won't. But a .JSP file works each time, confirming that we are hitting Apache and Apache is hitting Tomcat. David Bank NC CATS Project Manager Accountability Services - Testing NC Department of Public Instruction 301 Wilmington Street Raleigh, NC 27601 919-807-3796 [EMAIL PROTECTED] 04/10/02 03:00AM Have you verified if your apache got hit, with the request that caused a 'file not found'? (We have seen in the past some obscure errors that turned out to be caching problems of browsers and proxy caches where the server wasn't hit at all) If your apache got hit, did the request hit tomcat ? If it hit tomcat can you find any error message that may correspond to the failure? (in the tomcat or the apache logs) -Ursprüngliche Nachricht- Von: David Bank [mailto:[EMAIL PROTECTED]] Gesendet: Dienstag, 9. April 2002 19:56 An: [EMAIL PROTECTED] Betreff: Tomcat intermittent failures exist, but when we attempt to access that particular JSP thru Apache, we get 404 - File Not Found. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Tomcat 4.x and Database Connection Pooling
Not sure - probably a little out of my depth here, but poolman (www.codestudio.com), which used to do connection pooling stuff is no longer available, and it's author claims that: If you are looking for connection and object pooling mechanisms, they can now be found in application servers such as JRun, Tomcat and the Jakarta Project, and other J2EE products and servers. Which is where my journey started...! Ric Searle Web Application Developer -- Dialogue Communications Ltd http://www.dialogue.co.uk +44 (0) 114 221 0307 On Wednesday, April 10, 2002, at 04:18 pm, rainer jünger wrote: Hi Ric, Struts provides a basic Connection Pool, but user comments suggest that this is not suitable for large-scale, high-traffic applications, and also that it will soon be removed from Struts in favour of a container-managed connection pool So what will Tomcat Users do? Will Tomcat get a container manages connection pool? What is the reason for removing it form Struts? R. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Tomcat 4.x and Database Connection Pooling
On Wed, 10 Apr 2002, rainer jünger wrote: Date: Wed, 10 Apr 2002 17:18:34 +0200 From: rainer jünger [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: Re: Tomcat 4.x and Database Connection Pooling Hi Ric, Struts provides a basic Connection Pool, but user comments suggest that this is not suitable for large-scale, high-traffic applications, and also that it will soon be removed from Struts in favour of a container-managed connection pool So what will Tomcat Users do? Will Tomcat get a container manages connection pool? http://jakarta.apache.org/tomcat/tomcat-4.0-doc/jndi-resources-howto.html What is the reason for removing it form Struts? That was a hypothetical example of a possible future situation that would cause the need to change your code. R. Craig McClanahan -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Tomcat 4.x and Database Connection Pooling
If you are looking for connection pooling which will work with any database check out DbConnectionBroker at http://www.javaexchange.com/ Jim -Original Message- From: Ric Searle [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 10, 2002 10:23 AM To: Tomcat Users List Subject: Re: Tomcat 4.x and Database Connection Pooling Not sure - probably a little out of my depth here, but poolman (www.codestudio.com), which used to do connection pooling stuff is no longer available, and it's author claims that: If you are looking for connection and object pooling mechanisms, they can now be found in application servers such as JRun, Tomcat and the Jakarta Project, and other J2EE products and servers. Which is where my journey started...! Ric Searle Web Application Developer -- Dialogue Communications Ltd http://www.dialogue.co.uk +44 (0) 114 221 0307 On Wednesday, April 10, 2002, at 04:18 pm, rainer jünger wrote: Hi Ric, Struts provides a basic Connection Pool, but user comments suggest that this is not suitable for large-scale, high-traffic applications, and also that it will soon be removed from Struts in favour of a container-managed connection pool So what will Tomcat Users do? Will Tomcat get a container manages connection pool? What is the reason for removing it form Struts? R. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Getting a servlet running under Tomcat-Apache 4.0.3
Try: http://localhost:8080/servlet/seating or http://localhost:8080/servlet/MySeatingServlet RS Brook Monroe [EMAIL PROTECTED] on 04/10/2002 10:13:56 AM Please respond to Tomcat Users List [EMAIL PROTECTED] To: '[EMAIL PROTECTED]' [EMAIL PROTECTED] cc: Subject: Getting a servlet running under Tomcat-Apache 4.0.3 Greetings, y'all. * I've read all the documentation I can find. * I've emulated all the examples. * I've asked people I know who have set up servlets before. I still can't get access to the servlet I just wrote and installed. No matter how I've set up servlet-mappings, or url-patterns, or otherwise, I get 404'd on any attempt to test the servlet. The class files are where they're supposed to be, and the manager HTML applet says that the servlet is loaded and running. Supposedly (based on reading docs and looking at examples) servlet servlet-nameMySeatingServlet/servlet-name servlet-classSeating/servlet-class /servlet servlet-mapping servlet-nameMySeatingServlet/servlet-name url-pattern/seating/url-pattern /servlet-mapping in my web.xml file should be sufficient to get the servlet mapped to a url, but http://localhost:8080/seating produces nothing but a 404, specifically type Status report message /seating description The requested resource (/seating) is not available. Obviously I'm either misinterpreting the documentation, missed something somewhere, or making a bad assumption. I'd appreciate any input I could get on this, because the servlet customer is breathing down my neck for the prototype, which I would like to test before delivering it jbm! -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Getting a servlet running under Tomcat-Apache 4.0.3
Under what context path is your servlet deployed? The context path is typically the name of the directory under $TOMCAT_HOME/webapps in which your app resides. Unless your app is deployed in the ROOT context, your URL should be http://localhost:8080/context/seating. Jeff - Original Message - From: Brook Monroe [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, April 10, 2002 10:13 AM Subject: Getting a servlet running under Tomcat-Apache 4.0.3 Greetings, y'all. * I've read all the documentation I can find. * I've emulated all the examples. * I've asked people I know who have set up servlets before. I still can't get access to the servlet I just wrote and installed. No matter how I've set up servlet-mappings, or url-patterns, or otherwise, I get 404'd on any attempt to test the servlet. The class files are where they're supposed to be, and the manager HTML applet says that the servlet is loaded and running. Supposedly (based on reading docs and looking at examples) servlet servlet-nameMySeatingServlet/servlet-name servlet-classSeating/servlet-class /servlet servlet-mapping servlet-nameMySeatingServlet/servlet-name url-pattern/seating/url-pattern /servlet-mapping in my web.xml file should be sufficient to get the servlet mapped to a url, but http://localhost:8080/seating produces nothing but a 404, specifically type Status report message /seating description The requested resource (/seating) is not available. Obviously I'm either misinterpreting the documentation, missed something somewhere, or making a bad assumption. I'd appreciate any input I could get on this, because the servlet customer is breathing down my neck for the prototype, which I would like to test before delivering it jbm! -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Getting a servlet running under Tomcat-Apache 4.0.3
Hi! something not directly mentioned in the howtos for deploying a servlet: you have to update the TOMCAT_HOME/conf/server.xml file for installing your application in the web-app-directory. You have to add an entry like Context path=/seating docBase=seating debug=0 reloadable=true/ in server.xml if you have your servlet in a folder named TOMCAT_HOME/web-app/seating/WEB-INF/classes I too was wandering some time what to do for making my servlet work in a different folder than /web-app/examples ... Perhaps this helps. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
AW: AW: Tomcat intermittent failures
Sorry , but if one jsp works and another not, that doesn't nessesarily mean that the one that didn't work hit the server just because the other did it. With verification i wass thinking of looking at the access log. If apache was hit, hat you should find an corresponding entry in the access.log for this request with the error code 404. If tomcat was hit you should see some messages in the logs that are produced by tomcat. (Depends on the verbosity that you defined) If apache was hit but not tomcat, I would expect an error message in the log of apache. If tomcat was hit I would expect an error message in one of the logs of tomcat. Make shure that you start apache and tomcat in way that stderr and stdout are captured in a log file. -Ursprüngliche Nachricht- Von: David Bank [mailto:[EMAIL PROTECTED]] Gesendet: Mittwoch, 10. April 2002 17:21 An: [EMAIL PROTECTED] Betreff: Re: AW: Tomcat intermittent failures Ralph, Thanks for writing. We've been able to reproduce the situation on machines which were directly connected to the same LAN on which the servers are located (and therefore no proxy was involved), and we tried clearing browser caches on these machines. The problem persisted. When the problem occurs, some .JSP files will compile and run fine, others won't. So we know Apache is hitting Tomcat and Tomcat is running because some files work and some don't. It'll just change - as I said before, we'll do the restart thing, or even reboot the whole box, and before, FOO.JSP wouldn't work but BAR.JSP would, and after FOO.JSP will work and BAR.JSP won't. But a .JSP file works each time, confirming that we are hitting Apache and Apache is hitting Tomcat. David Bank NC CATS Project Manager Accountability Services - Testing NC Department of Public Instruction 301 Wilmington Street Raleigh, NC 27601 919-807-3796 [EMAIL PROTECTED] 04/10/02 03:00AM Have you verified if your apache got hit, with the request that caused a 'file not found'? (We have seen in the past some obscure errors that turned out to be caching problems of browsers and proxy caches where the server wasn't hit at all) If your apache got hit, did the request hit tomcat ? If it hit tomcat can you find any error message that may correspond to the failure? (in the tomcat or the apache logs) -Ursprüngliche Nachricht- Von: David Bank [mailto:[EMAIL PROTECTED]] Gesendet: Dienstag, 9. April 2002 19:56 An: [EMAIL PROTECTED] Betreff: Tomcat intermittent failures exist, but when we attempt to access that particular JSP thru Apache, we get 404 - File Not Found. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Config Q: Using beans without creating context
I have tomcat running with the following virtual hosts: localhost - docroot: C:\Program Files\Apache Tomcat 4.0\webapps\ROOT locala - docroot: D:\locala localb - docroot: D:\localb localc - docroot: D:\localc One JSP on localc uses a bean. The page works fine if I stick it in \examples\jsp and the bean in \examples\WEB-INF\jsp\beans. What do I have to do to make it work from the document root of virtual host localc? I'd rather not create a subdirectory, I'd like the url to be localc/beantest.jsp NOT localc/beanapp/beantest.jsp -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: repost an unanswered question.
I have the same problem with tomcat 4.0.1 running on win2000. But hte problem is not persistent, namely , sometimes happens sometimes not. I couldn't find out the reason, so i couldn't give any explanation to our client other than saying just refresh and the problem will go away. Any one has a better explanation thanks .. - Original Message - From: todd tredeau [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Tuesday, April 09, 2002 5:38 AM Subject: Re: repost an unanswered question. Ok... I'll bite... I've seen this error (or lack of it), when I get errors with an incompatbile jndirealm and enabling jmx beans are you getting any kind of errors at tomcat startup, or in your log files I understand you say basically reload after and it works. I also ran into this when I began testing Chiki, it seems that when I updated to Tomcat 4.0.X the problem went away... So I didn't really try to fix it, but upgraded past the issue...I hope this helps.. from a non-technical perspective.. todd http://www.wiserlabz.com collaborative effort to promote Novell and Open Source solutions Alvin Wang wrote: I'm not complaining. But I read someone said that they always can get positive responses for their postings. Maybe my question is naive, but I try again. -Original Message- From: Alvin Wang [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 03, 2002 4:18 PM To: Tomcat Users List Cc: SERVLET-INTEREST Subject: JDBCRealm problem (EMPTY page after login) Hi! I am using JDBCRealm in Tomcat to setup the user authentication. For example if the user want to access abc.html, Tomcat will first display the login.jsp page. However, after the user logs in, it shows an BLANK page. The user has to refresh the browser to see the content of abc.html Can any guru tell me how to fix this? Thanks! Alvin -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Persistent Context names with auto-deploy
Since you are using the manager app to deploy your war files, there is no need to keep the war files in the webapps directory. Make a separate directory outside of /www/webapps, perhaps /www/war. Then Tomcat won't find them when it starts up. Jeff - Original Message - From: bryan collins [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, April 10, 2002 12:15 AM Subject: Persistent Context names with auto-deploy Hi, I have an environment that serves requests via apache, on Solaris. I have configured Tomcat 4.0.3 with mod_jk, most things appear to be working just fine. Apache is configured to pass /apps/* to tomcat via ajp13 protocol. Tomcat is configured with an appbase of /www/webapps I automatically deploy my .war files on paths of /apps/servletname so I can have completely independant contexts for each servlet. This works, and I can access the app via apache. However, when tomcat restarts, it finds the servlet in the appbase, since unpackWARS=true, and automatically deploys it under / My question is, How can I force persistance of Context paths across a Tomcat restart, when using automatic deploy (via the manager app) i.e auto-deploy foo.war on /apps/foo (via manager) TC extracts the war to /www/webapps/foo, everything works perfectly. After TC restart, TC deploys the servlet as /foo, not /apps/foo. Any ideas? Many Thanks Bry -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Getting a servlet running under Tomcat-Apache 4.0.3
Gosh! I just read the reply I posted. Oops! with a big O. The URLs should actually be: http://localhost:8080/servlet/Seating or http://localhost:8080/seating Ofcourse, assuming you deployed your servlet under the ROOT webapp. And since the second URL doesn't work for you, I'd check to see if the ROOT application was deployed or not. Check your logs. I apologize. RS [EMAIL PROTECTED] on 04/10/2002 10:28:59 AM Please respond to Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] cc: Subject: Re: Getting a servlet running under Tomcat-Apache 4.0.3 Try: http://localhost:8080/servlet/seating or http://localhost:8080/servlet/MySeatingServlet RS Brook Monroe [EMAIL PROTECTED] on 04/10/2002 10:13:56 AM Please respond to Tomcat Users List [EMAIL PROTECTED] To: '[EMAIL PROTECTED]' [EMAIL PROTECTED] cc: Subject: Getting a servlet running under Tomcat-Apache 4.0.3 Greetings, y'all. * I've read all the documentation I can find. * I've emulated all the examples. * I've asked people I know who have set up servlets before. I still can't get access to the servlet I just wrote and installed. No matter how I've set up servlet-mappings, or url-patterns, or otherwise, I get 404'd on any attempt to test the servlet. The class files are where they're supposed to be, and the manager HTML applet says that the servlet is loaded and running. Supposedly (based on reading docs and looking at examples) servlet servlet-nameMySeatingServlet/servlet-name servlet-classSeating/servlet-class /servlet servlet-mapping servlet-nameMySeatingServlet/servlet-name url-pattern/seating/url-pattern /servlet-mapping in my web.xml file should be sufficient to get the servlet mapped to a url, but http://localhost:8080/seating produces nothing but a 404, specifically type Status report message /seating description The requested resource (/seating) is not available. Obviously I'm either misinterpreting the documentation, missed something somewhere, or making a bad assumption. I'd appreciate any input I could get on this, because the servlet customer is breathing down my neck for the prototype, which I would like to test before delivering it jbm! -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Getting a servlet running under Tomcat-Apache 4.0.3
Fabian: something not directly mentioned in the howtos for deploying a servlet: you have to update the TOMCAT_HOME/conf/server.xml file for installing your application in the web-app-directory. You have to add an entry like Context path=/seating docBase=seating debug=0 reloadable=true/ in server.xml if you have your servlet in a folder named TOMCAT_HOME/web-app/seating/WEB-INF/classes That was the first thing I did, actually. No variations on that theme seem to be making any difference, and it doesn't matter whether it's under the Tomcat-Standalone or Tomcat-Apache section Jeff: Under what context path is your servlet deployed? The context path is typically the name of the directory under $TOMCAT_HOME/webapps in which your app resides. It's deployed where the examples are, and where the manager is. The specific path is drive:\Tomcat\webapps\MySeatMap\ with the class files in drive:\Tomcat\webapps\MySeatMap\WEB-INF\classes I've tried permuting this almost to exhaustion. I've been reading the example setups, and I can't even figure out how the HelloWorldExample class gets called. Something to do with filter tags, but I can't make out what's happening. And to repeat: I know the servlet is running, because the manager and the logs confirm it. For grins and giggles, here's the web.xml file. ?xml version=1.0 encoding=ISO-8859-1? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd; web-app servlet servlet-name MySeatMap /servlet-name servlet-class /MySeatMap /servlet-class /servlet servlet-mapping servlet-name MySeatMap /servlet-name url-pattern /seating /url-pattern /servlet-mapping servlet-mapping servlet-name MySeatMap /servlet-name url-pattern /seating/ /url-pattern /servlet-mapping servlet-mapping servlet-name MySeatMap /servlet-name url-pattern*.map/url-pattern /servlet-mapping /web-app And the context entry: Context path=/MySeatMap docBase=MySeatMap isReloadable=true debug=2 crossContent=true/ Anyone see anything (in)obviously wrong? jbm! -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Newbie question
Hi Javier! Servlets should be under webapps/yourcontext/WEB-INF/classes/ directory. yourcontext can be anyone like, ROOT, examples,etc. One more thing do not forget to append /servlet/ to your url. Just to be more helpful for a new comer : say you put your HelloWorld servlet under tomcathome/webapps/ROOT/WEB-INF/classes/ your url should be like this: http://localhost:8080/servlet/HelloWorld Hope this helps :) - Original Message - From: Javier A. Leyba [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, April 10, 2002 11:19 PM Subject: Newbie question Hi I'm trying to do my first servlet. I've compiled a simple HelloWorld class. Now, where is the root Tomcat directory where may I put it ? How could I define a new one for my tests ? Thanks in advance jl _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Newbie question
On 11/04/2002 at 0:18 yilmaz wrote: Hi Javier! Servlets should be under webapps/yourcontext/WEB-INF/classes/ directory. yourcontext can be anyone like, ROOT, examples,etc. One more thing do not forget to append /servlet/ to your url. Just to be more helpful for a new comer : say you put your HelloWorld servlet under tomcathome/webapps/ROOT/WEB-INF/classes/ your url should be like this: http://localhost:8080/servlet/HelloWorld Hope this helps :) Thanks a lot. jl _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Getting a servlet running under Tomcat-Apache 4.0.3
What path does the Manager display for your app? If tomcat is auto-deploying your app, then it should be /MySeatMap since that is the subdir of webapps in which your WEB-INF/web.xml resides. Then you should be accessing http://localhost:8080/MySeatMap/seating If you are using a Context path=/mypath docBase=MySeatMap / element in server.xml, then your URL should be http://localhost:8080/mypath/seating Remember, the servlet-mapping elements only tell the container which servlet classes to invoke WITHIN that servlet's context path. Nothing in web.xml defines the context path itself. Try the above URL's and let us know if it works. Jeff - Original Message - From: Brook Monroe [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, April 10, 2002 10:55 AM Subject: RE: Getting a servlet running under Tomcat-Apache 4.0.3 Fabian: something not directly mentioned in the howtos for deploying a servlet: you have to update the TOMCAT_HOME/conf/server.xml file for installing your application in the web-app-directory. You have to add an entry like Context path=/seating docBase=seating debug=0 reloadable=true/ in server.xml if you have your servlet in a folder named TOMCAT_HOME/web-app/seating/WEB-INF/classes That was the first thing I did, actually. No variations on that theme seem to be making any difference, and it doesn't matter whether it's under the Tomcat-Standalone or Tomcat-Apache section Jeff: Under what context path is your servlet deployed? The context path is typically the name of the directory under $TOMCAT_HOME/webapps in which your app resides. It's deployed where the examples are, and where the manager is. The specific path is drive:\Tomcat\webapps\MySeatMap\ with the class files in drive:\Tomcat\webapps\MySeatMap\WEB-INF\classes I've tried permuting this almost to exhaustion. I've been reading the example setups, and I can't even figure out how the HelloWorldExample class gets called. Something to do with filter tags, but I can't make out what's happening. And to repeat: I know the servlet is running, because the manager and the logs confirm it. For grins and giggles, here's the web.xml file. ?xml version=1.0 encoding=ISO-8859-1? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd; web-app servlet servlet-name MySeatMap /servlet-name servlet-class /MySeatMap /servlet-class /servlet servlet-mapping servlet-name MySeatMap /servlet-name url-pattern /seating /url-pattern /servlet-mapping servlet-mapping servlet-name MySeatMap /servlet-name url-pattern /seating/ /url-pattern /servlet-mapping servlet-mapping servlet-name MySeatMap /servlet-name url-pattern*.map/url-pattern /servlet-mapping /web-app And the context entry: Context path=/MySeatMap docBase=MySeatMap isReloadable=true debug=2 crossContent=true/ Anyone see anything (in)obviously wrong? jbm! -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Getting a servlet running under Tomcat-Apache 4.0.3
Jeff: The path listed in the manager is /MySeatMap. http://localhost:8080/MySeatMap/seating works. Amazing. :) Got a big list of errors to resolve, which is what I was looking for. Thanks! (Off for the rest of the day...see y'all in the AM) jbm! -Original Message- From: Jeff Larsen [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 10, 2002 12:14 PM To: Tomcat Users List Subject: Re: Getting a servlet running under Tomcat-Apache 4.0.3 What path does the Manager display for your app? If tomcat is auto-deploying your app, then it should be /MySeatMap since that is the subdir of webapps in which your WEB-INF/web.xml resides. Then you should be accessing http://localhost:8080/MySeatMap/seating If you are using a Context path=/mypath docBase=MySeatMap / element in server.xml, then your URL should be http://localhost:8080/mypath/seating Remember, the servlet-mapping elements only tell the container which servlet classes to invoke WITHIN that servlet's context path. Nothing in web.xml defines the context path itself. Try the above URL's and let us know if it works. Jeff - Original Message - From: Brook Monroe [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, April 10, 2002 10:55 AM Subject: RE: Getting a servlet running under Tomcat-Apache 4.0.3 Fabian: something not directly mentioned in the howtos for deploying a servlet: you have to update the TOMCAT_HOME/conf/server.xml file for installing your application in the web-app-directory. You have to add an entry like Context path=/seating docBase=seating debug=0 reloadable=true/ in server.xml if you have your servlet in a folder named TOMCAT_HOME/web-app/seating/WEB-INF/classes That was the first thing I did, actually. No variations on that theme seem to be making any difference, and it doesn't matter whether it's under the Tomcat-Standalone or Tomcat-Apache section Jeff: Under what context path is your servlet deployed? The context path is typically the name of the directory under $TOMCAT_HOME/webapps in which your app resides. It's deployed where the examples are, and where the manager is. The specific path is drive:\Tomcat\webapps\MySeatMap\ with the class files in drive:\Tomcat\webapps\MySeatMap\WEB-INF\classes I've tried permuting this almost to exhaustion. I've been reading the example setups, and I can't even figure out how the HelloWorldExample class gets called. Something to do with filter tags, but I can't make out what's happening. And to repeat: I know the servlet is running, because the manager and the logs confirm it. For grins and giggles, here's the web.xml file. ?xml version=1.0 encoding=ISO-8859-1? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd; web-app servlet servlet-name MySeatMap /servlet-name servlet-class /MySeatMap /servlet-class /servlet servlet-mapping servlet-name MySeatMap /servlet-name url-pattern /seating /url-pattern /servlet-mapping servlet-mapping servlet-name MySeatMap /servlet-name url-pattern /seating/ /url-pattern /servlet-mapping servlet-mapping servlet-name MySeatMap /servlet-name url-pattern*.map/url-pattern /servlet-mapping /web-app And the context entry: Context path=/MySeatMap docBase=MySeatMap isReloadable=true debug=2 crossContent=true/ Anyone see anything (in)obviously wrong? jbm! -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
FW: Tomcat 3.3.1 on HP-UX
After installing tomcat 3.3.1 on a HP-UX 11 box and setting up required variables and verifying network related files, I am getting the following errors when I run the startup.sh. suerr.txt Needless to say, when I try the url http://localhost:8080/index.html I get following errors. Forbidden You are not permitted to access the remote system. If this is an error, then you should contact your local firewall administrator Our Firewall Admin says there is nothing wrong with the firewall. There are no other processes that are using port 8080 for tomact to complain that the address is already in use. There is no Apache webserver or Oracle. The only thing is tomcat. I had no luck with the 4.0.1 version also. My question is, why is firewall coming into picture if I am trying tomact as a stand alone on the local host ?. Also when I run, shutdown.sh I get the following errors. sderr.txt Can any one help me understand what is happening ?. Thanks Raj root@m020plts:/meta1/jakarta-tomcat-3.3.1/bin ./startup.sh Using classpath: ./../lib/tomcat.jar Using JAVA_HOME: /opt/java1.3 Using TOMCAT_HOME: /meta1/jakarta-tomcat-3.3.1 2002-04-10 11:23:20 - ServerXmlReader: Config=$TOMCAT_HOME/conf/server.xml 2002-04-10 11:23:20 - PathSetter: home=/meta1/jakarta-tomcat-3.3.1 2002-04-10 11:23:22 - ContextXmlReader: Context config=$TOMCAT_HOME/conf/apps-127.0.0.1.xml 2002-04-10 11:23:22 - ContextXmlReader: Context config=$TOMCAT_HOME/conf/apps-admin.xml 2002-04-10 11:23:24 - ContextXmlReader: Context config=$TOMCAT_HOME/conf/apps-examples.xml 2002-04-10 11:23:24 - AutoWebApp: Loaded from config: DEFAULT:/admin 2002-04-10 11:23:24 - AutoWebApp: Auto-Adding DEFAULT:/ 2002-04-10 11:23:25 - AutoWebApp: Loaded from config: DEFAULT:/examples 2002-04-10 11:23:25 - ContextManager: Tomcat configured and in stable state 2002-04-10 11:23:26 - ContextManager: Adding DEFAULT:/admin 2002-04-10 11:23:26 - ContextManager: Adding DEFAULT:/examples 2002-04-10 11:23:26 - ContextManager: Adding DEFAULT:/ROOT EmbededTomcat: Init time 59056 Guessed home=/meta1/jakarta-tomcat-3.3.1 Exception: java.lang.reflect.InvocationTargetException java.lang.reflect.InvocationTargetException: org.apache.tomcat.core.TomcatException: Root cause - Address already in use:8080 at org.apache.tomcat.modules.server.PoolTcpConnector.engineStart(PoolTcpConnector.java:132) at org.apache.tomcat.core.ContextManager.start(ContextManager.java:639) at org.apache.tomcat.startup.EmbededTomcat.start(EmbededTomcat.java:586) at org.apache.tomcat.startup.EmbededTomcat.execute1(EmbededTomcat.java:710) at org.apache.tomcat.startup.EmbededTomcat$1.run(EmbededTomcat.java:687) at org.apache.tomcat.util.compat.Jdk12Support$PrivilegedProxy.run(Jdk12Support.java:190) at java.security.AccessController.doPrivileged(Native Method) at org.apache.tomcat.util.compat.Jdk12Support.doPrivileged(Jdk12Support.java:100) at org.apache.tomcat.startup.EmbededTomcat.execute(EmbededTomcat.java:685) at java.lang.reflect.Method.invoke(Native Method) at org.apache.tomcat.util.IntrospectionUtils.execute(IntrospectionUtils.java:87) at org.apache.tomcat.startup.Main.execute(Main.java:313) at org.apache.tomcat.startup.Main.main(Main.java:140) Root Exception: org.apache.tomcat.core.TomcatException: Root cause - Address already in use:8080 org.apache.tomcat.core.TomcatException: Root cause - Address already in use:8080 at org.apache.tomcat.modules.server.PoolTcpConnector.engineStart(PoolTcpConnector.java:132) at org.apache.tomcat.core.ContextManager.start(ContextManager.java:639) at org.apache.tomcat.startup.EmbededTomcat.start(EmbededTomcat.java:586) at org.apache.tomcat.startup.EmbededTomcat.execute1(EmbededTomcat.java:710) at org.apache.tomcat.startup.EmbededTomcat$1.run(EmbededTomcat.java:687) at org.apache.tomcat.util.compat.Jdk12Support$PrivilegedProxy.run(Jdk12Support.java:190) at java.security.AccessController.doPrivileged(Native Method) at org.apache.tomcat.util.compat.Jdk12Support.doPrivileged(Jdk12Support.java:100) at org.apache.tomcat.startup.EmbededTomcat.execute(EmbededTomcat.java:685) at java.lang.reflect.Method.invoke(Native Method) at org.apache.tomcat.startup.Main.execute(Main.java:313) at org.apache.tomcat.startup.Main.main(Main.java:140) root@m020plts:/meta1/jakarta-tomcat-3.3.1/bin ./shutdown.sh Using classpath: ./../lib/tomcat.jar Using JAVA_HOME: /opt/java1.3 Using TOMCAT_HOME: /meta1/jakarta-tomcat-3.3.1 Stopping Tomcat. Stopping tomcat on null:-1 null Error stopping Tomcat with Ajp12 on null:-1 java.net.UnknownHostException: m020plts -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Tomcat 4.x and Database Connection Pooling
Hi Craig, So what will Tomcat Users do? Will Tomcat get a container manages connection pool? http://jakarta.apache.org/tomcat/tomcat-4.0-doc/jndi-resources-howto.html What is the reason for removing it form Struts? That was a hypothetical example of a possible future situation that would cause the need to change your code. Sorry somehow I don't understand your answer. Did you wont to give me a hint that I can avoid to change the code in future by using JNDI? Still, what will happen to the Connection Pooling in future in Struts or in Tomcat? thanks, rainer juenger -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Tomcat 4.x and Database Connection Pooling
Hi Jim, If you are looking for connection pooling which will work with any database check out DbConnectionBroker at http://www.javaexchange.com/ DbConnectionBroker is only providing as the developer calls it a 2 Tier model. So there is not actually a Connection Pool that manages the connection independently and the application is only taking and giving back connections. rainer juenger -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
WAP Woes
Dear All, We're having trouble using Tomcat 3.2 to serve up WML with some WAP gateways. For testing purposes, I'm using a very simple hello world jsp that can be accessed without any issue via some gateways, but on others the request just times out. Does anyone have any ideas? Unfortunately, I don't have any technical information on the gateways that are causing trouble. Using the standard Apache/Tomcat configuration works fine for all gateways. However, the sessionid is lost after a redirection on some WAP gateways (despite calling response.encodeRedirectURL). For example, the client is instructed to redirect to e.g. http://blah.com/servlet/aservlet;jsessionid=xxx but when the request is received, the ;jsessionid=xxx part of the URI is lost. I've read elsewhere that redirections should be avoided for WAP clients, but I was hoping to work around the issue for the time being. Any ideas would appreciated. Cheers, Graham. Graham Stirling Yakara Plc. tel: (+44) 131 624 8906 mail: [EMAIL PROTECTED] web: http://www.yakara.com e-mail and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you are not an intended recipient, please notify [EMAIL PROTECTED] immediately. Please note that some of our communications may contain confidential information which it could be a criminal offence for you to disclose or use without authority. This email is not intended nor should it be taken to create any legal relations contractual or otherwise. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
J2SE v1.4 Compatibility
Is a J2SE 1.4 version of Tomcat available? Jim Urban Product Manager Netsteps Inc. Suite 295 500 Park Blvd. Itasca, IL 60143 Voice: (630) 250-3045 x106 Fax: (630) 250-3046 -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: J2SE v1.4 Compatibility
i'm running it on 1.4. -Original Message- From: Jim Urban [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 10, 2002 12:04 PM To: Tomcat-User Subject: J2SE v1.4 Compatibility Is a J2SE 1.4 version of Tomcat available? Jim Urban Product Manager Netsteps Inc. Suite 295 500 Park Blvd. Itasca, IL 60143 Voice: (630) 250-3045 x106 Fax: (630) 250-3046 -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Tomcat 4.x and Database Connection Pooling
On Wed, 10 Apr 2002, rainer jünger wrote: Date: Wed, 10 Apr 2002 18:42:39 +0200 From: rainer jünger [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: Re: Tomcat 4.x and Database Connection Pooling Hi Craig, So what will Tomcat Users do? Will Tomcat get a container manages connection pool? http://jakarta.apache.org/tomcat/tomcat-4.0-doc/jndi-resources-howto.html What is the reason for removing it form Struts? That was a hypothetical example of a possible future situation that would cause the need to change your code. Sorry somehow I don't understand your answer. Struts is ***NOT*** going to remove its own connection pool :-). However, the internal implementation is changing in Struts 1.1 to use the commons-dbcp implementation underneath. The person who made this comment was illustrating a *possible* scenario: - You write your app against the Struts APIs - Struts removed its connection pool - You now have to rewrite your apps Although this particular scenario won't happen, it does illustrate the potential for problems of reliance on specific APIs versus standardized approaches (when they exist). Did you wont to give me a hint that I can avoid to change the code in future by using JNDI? Struts developers who are writing apps for J2EE app servers, or servlet containers that support JNDI, should definitely use JNDI based data sources. This is the standard, portable, API for accessing resources. Still, what will happen to the Connection Pooling in future in Struts or in Tomcat? Struts: The connection pool API (org.apache.struts.util.GenericDataSource), the corresponding configuration in struts-config.xml, and the way to retrieve data sources from ActionServlet, will remain in Struts -- backwards compatibility is a key Struts feature. The internal implementation will change, but the APIs will not. Tomcat: As far as I'm concerned, JNDI support is a now and forever more feature of Tomcat 4 and later. It's the standard access mechanism for J2EE app servers as well. Recommendation: If you can, you should use JNDI based access to data sources. This is both portable across containers, and portable across Struts versus non-Struts applications. In addition, it can be used from directly from within a JavaBean implementing your business logic, without requiring a reference to ActionServlet or the servlet context (or the web layer at all). thanks, rainer juenger Craig -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Newbie question
On 11/04/2002 at 0:18 yilmaz wrote: Hi Javier! Servlets should be under webapps/yourcontext/WEB-INF/classes/ directory. yourcontext can be anyone like, ROOT, examples,etc. One more thing do not forget to append /servlet/ to your url. Just to be more helpful for a new comer : say you put your HelloWorld servlet under tomcathome/webapps/ROOT/WEB-INF/classes/ your url should be like this: http://localhost:8080/servlet/HelloWorld Hope this helps :) I've tried but it didn't work. I've made a new directory called classes under /Program Files/Apache Tomcat 4.0/webapps/ROOT/WEB-INF and I copied my HelloWorldExample.class to this directory. From my browser I tried http://localhost:8080/servlet/HelloWorldExample and I received a The requested resource (/servlet/HelloWorldExample) is not available. message. Need I to define a new context ? jl _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Bug in Tomcat 3.3.1 with getPathInfo() ?
I think if request.getPathInfo() returns '/Hit+Run', then the path info was '/Hit+Run' or '/Hit%2BRun'. The path would have to be '/Hit%20Run' for getPathInfo() to return '/Hit Run' on Tomcat 3.3.1. Cheers, Larry -Original Message- From: Olaf Vetter [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 10, 2002 11:20 AM To: [EMAIL PROTECTED] Subject: RE: Bug in Tomcat 3.3.1 with getPathInfo() ? OK. But now, is there any way to distinguish between a '+' that results from encoding '%2B' and a '+' that stands for ' ' ? In other words, if request.getPathInfo() returns '/Hit+Run' , this could be '/Hit+Run' or '/Hit Run' ... Olaf [EMAIL PROTECTED] 10.04.2002 17:07 According to RFC2396, '+' is are reserved character in the query string, but not in the path portion of a URL. There was a bug fix in Tomcat 3.3.1 to avoid translating '+' to ' ' in the parts of the URL prior to the query string. Cheers, Larry -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: J2SE v1.4 Compatibility
Have you had any problems? Do you use any other packages such as FOP, Xerces, Xalan, Batik etc with your servlets? Have you used JDBC 3.0 with servlets? We are considering the move to 1.4 and we would like to avoid the common pitfalls others have had. Thanks, Jim -Original Message- From: Jolet, John [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 10, 2002 12:03 PM To: 'Tomcat Users List' Subject: RE: J2SE v1.4 Compatibility i'm running it on 1.4. -Original Message- From: Jim Urban [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 10, 2002 12:04 PM To: Tomcat-User Subject: J2SE v1.4 Compatibility Is a J2SE 1.4 version of Tomcat available? Jim Urban Product Manager Netsteps Inc. Suite 295 500 Park Blvd. Itasca, IL 60143 Voice: (630) 250-3045 x106 Fax: (630) 250-3046 -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Newbie question
I've tried but it didn't work. I've made a new directory called classes under /Program Files/Apache Tomcat 4.0/webapps/ROOT/WEB-INF and I copied my HelloWorldExample.class to this directory. From my browser I tried http://localhost:8080/servlet/HelloWorldExample and I received a The requested resource (/servlet/HelloWorldExample) is not available. message. If you put it in ROOT, then you should put your HelloWorldExample in classes as in Apache Tomcat4.0/webapps/ROOT/WEB-INF/classes then run it as http://localhost:8080/HelloWorldExample That ROOT name under webapps is your context path. ROOT is a special case that you can omit, but if you have other names like myserv then you will need to use myserv as your context path as in http://localhost:8080/myserv/HelloWorldExample If that still doesn't work, it's your web.xml file. Ricky -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Problems w/ NS3.62 and Tomcat 3.3 (nsapi_redirector.so)
Hi, I'm trying to configure Netscape Server (3.62) to handle jsp through Tomcat 3.31. Tomcat seems to work just fine. We compiled nsapi_redirector.so and it finished without any hassle. But after configuring NS according to this guide: http://jakarta.apache.org/tomcat/tomcat-3.3-doc/tomcat-netscape-howto.html, the secure server won't start up ending with this error message: -- conf_init: Error running init function load-modules: dlopen of /export/home/tomcat/bin/netscape/nsapi_redirector.so failed (ld.so.1: ns-httpd: fatal: relocation error: file /export/home/tomcat/bin/netscape/nsapi_redirector.so: symbol ajp13_worker_factory: referenced symbol not found) -- Any idea what might be wrong? Many thanks, -Dennis -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Mod_WebApp trouble
Hi! I'm working for a long time using Tomcat (3.1, 3.2, 3.3, 4.0 and now 4.0.3). I have several apps that uses JNDI DataSources to access database. All working fine (congratulations by great work to Jakarta people). Now, I'm trying to use Apache Httpd as main server, and use Catalina only to processes JSP. The problem is: how do I configure Resource for the context in server.xml (please, note: I need to configure this for mod_webapp, not for catalina stand-alone. I've this config working fine for catalina standalone). For JDBC realm auth, I just copied respective section from my standalone area. But when I copy Context.../Context, catalina don't startup (XML error: appear that Context need to be inside a Host tag). Then I copied my Host and /Host tag from catalina standalone, but when I execute context.loookup in my code, I get NullPointerException. Again, my application works fine in Catalina standalone. And this works fine in HP-AS (another similar product). So, I know that this is not a programming issue. Please, someone can send me any tips? I lost several hours searching mail list, but nothing was found. Thanks, Edson Carlos Ericksson Richter Gerente de Tecnologia ECONET Soluções Web +55 61 326 5115 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.344 / Virus Database: 191 - Release Date: 02/04/02 -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
java.lang.NullPointerException
I've just configured Tomcat 3.3a and Apache 1.3.24 on a W2K professional machine. Everything seems to work ok (Apache forwards servlet requests to Tomcat). However, when I try to access my servlet the following message is written to Tomcat's log directory: 2002-04-10 10:15:58 - /PSIRxConnect: Exception in R( /PSIRxConnect + /servlet/Jaws + /PSIRx/PSIRxMain/f_usernamepassword) - java.lang.NullPointerException at com.sybase.jaws.JawsServlet.processRequest(JawsServlet.java, Compiled Code) at com.sybase.jaws.JawsServlet.doGet(JawsServlet.java:162) at javax.servlet.http.HttpServlet.service(HttpServlet.java) at javax.servlet.http.HttpServlet.service(HttpServlet.java) at org.apache.tomcat.facade.ServletHandler.doService(Unknown Source) at org.apache.tomcat.core.Handler.invoke(Unknown Source) at org.apache.tomcat.core.Handler.service(Unknown Source) at org.apache.tomcat.facade.ServletHandler.service(Unknown Source) at org.apache.tomcat.core.ContextManager.internalService(Unknown Source) at org.apache.tomcat.core.ContextManager.service(Unknown Source) at org.apache.tomcat.modules.server.Ajp12Interceptor.processConnection(Unknown Source) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(Unknown Source) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(Unknown Source) at java.lang.Thread.run(Thread.java:479) Tomcat seems to find and execute my servlet. Then it dies on the apache stuff. Is this a Tomcat Class issue? Any help would be greatly appreciated. Dave -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
How to pre-compile JSP's ?
Do you know if there is a simple solution to pre-compile the JSP's ? (And to tell tomcat not to re-compile the JSP's ?) Thanks Jay Gardner wrote: There are definitely memory leaks in javac. This is a problem when jspc compiles your jsp code in the same JVM as the TC server. --Jay Gardner -Original Message- From: Christophe Reynaud [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 09, 2002 12:52 PM To: Tomcat Users List Subject: Tomcat process takes 246M whereas total java heap is 127M Hello, We use tomcat 3.3.1 on Linux RH 7.2. JVM : IBM 1.3 top -c tells that the tomcat threads take 246M but if we use the Java function totalMemory(), it tells that the JVM uses 127M for the heap. Where is the rest of memory ? I expected that the JVM used more than only the total of the heap, but in this case it is almost the double ! Any ideas about the reasons of this problem ? Are there some momory leaks in the JVM ? Thanks. Christophe -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Tomcat 4.x and Database Connection Pooling
Hi Craig, Sorry somehow I don't understand your answer. Struts is ***NOT*** going to remove its own connection pool :-). Thanks thats an answer even I can understand ; ). However, the internal implementation is changing in Struts 1.1 to use the commons-dbcp implementation underneath. this might answer the primar question form Ric as well. Recommendation: If you can, you should use JNDI thanks I 'll consider it! Craig Your answer helped me now a lot. Rainer -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RES: Mod_WebApp trouble
I've discovered what I'm doing wrong: I need to name virtual host with same name that Apache expects to see... Thanks to all. Atenciosamente, Edson Carlos Ericksson Richter Gerente de Tecnologia ECONET Soluções Web +55 61 326 5115 -Mensagem original- De: Edson Carlos Ericksson Richter [mailto:[EMAIL PROTECTED]] Enviada em: quarta-feira, 10 de abril de 2002 14:28 Para: Tomcat Users List Assunto: Mod_WebApp trouble Hi! I'm working for a long time using Tomcat (3.1, 3.2, 3.3, 4.0 and now 4.0.3). I have several apps that uses JNDI DataSources to access database. All working fine (congratulations by great work to Jakarta people). Now, I'm trying to use Apache Httpd as main server, and use Catalina only to processes JSP. The problem is: how do I configure Resource for the context in server.xml (please, note: I need to configure this for mod_webapp, not for catalina stand-alone. I've this config working fine for catalina standalone). For JDBC realm auth, I just copied respective section from my standalone area. But when I copy Context.../Context, catalina don't startup (XML error: appear that Context need to be inside a Host tag). Then I copied my Host and /Host tag from catalina standalone, but when I execute context.loookup in my code, I get NullPointerException. Again, my application works fine in Catalina standalone. And this works fine in HP-AS (another similar product). So, I know that this is not a programming issue. Please, someone can send me any tips? I lost several hours searching mail list, but nothing was found. Thanks, Edson Carlos Ericksson Richter Gerente de Tecnologia ECONET Soluções Web +55 61 326 5115 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.344 / Virus Database: 191 - Release Date: 02/04/02 -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.344 / Virus Database: 191 - Release Date: 02/04/02 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.344 / Virus Database: 191 - Release Date: 02/04/02 -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Please help me on a question about TOMCAT OR APACHE + TOMCAT
Tomcat Standalone is not an enterprise webserver, and will not stand up to the pounding that Apache can take. I think you would find that your response time drops off rather quickly if you are hosting 200 active virtual domains. If you don't serve many concurrent requests, and don't need the power and flexibility of apache, tomcat standalone is fine. Ken Lalit Nagpal wrote: hello, i am using tomcat as a standalone. i have jsps and servlets working quiet normally, i see no reason why apache should be connected to tomcat if servlets and jsp serve your purpose. although some people argue that for static pages apache will respond to requests much faster than tomcat. however i feel the response time difference is negligible. bye Lalit Nagpal - Do You Yahoo!? Yahoo! Tax Center - online filing with TurboTax -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]