Tomcat standalone followup question
I know this comes up all the time, but here is a followup question: It seems like one of the main reasons people advocate having Apache, and not just Tomcat by itself, is if you have to use PHP or CGI stuff with the server. If you are in a case where you know that you will never ever have to use any of those things on the same server, and if most of your pages are dynamic, is there still any reason to use Apache? One of the main things I like about Tomcat is that it is pure Java which means it is much safer for handling untrusted user input than something written in C, like Apache. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: French characters displaying using Tomcat 3.3
If you are using Jikes on your Debian system, then this is a known problem with no other work-around than to use javac. If you are using javac, then you must make certain that your JSP file has been saved with the same charset that is specified in your %@page contentType=...% directive (or iso-latin-1, if there is no contentType directive). Since the JSP-1.1 spec that Tomcat 3.3.x implements doesn't have the %@page pageEncoding=...% directive, as an implementation detail it uses the same encoding as the contentType directive. The intermediate .java file (which you can check in the $TOMCAT_HOME/work directory) will be written using UTF-8 encoding (which is why Jikes fails, since it can't be told to read UTF-8). Javac will be instructed to compile the file as UTF-8, so everything should work from here. Hopefully, there is enough information here to allow you to pin down at what stage the encoding is breaking. KONHAWA [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi to all, I'm using Tomcat 3.3 for a web application. I deployed it on Win 2000 and on Linux Mandrake 8.0 and I didn't faced no problem. But when I deployed it on Debian Linux, accent characters and other special french characters did not apear like they shoud. Is it possible to configure Tomcat so that it could support a type of character encoding, or it's the OS whish have to be configured? in any case tell me how to proceed. Tanks! __ Yahoo! - We Remember 9-11: A tribute to the more than 3,000 lives lost http://dir.remember.yahoo.com/tribute -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: contentType (charset) in included file is not avairable...
On Sunday 08 September 2002 20:45, you wrote: Hello, I wrote Japanese (euc-jp) string at HTML parts in test.jsp, and this test.jsp include include_test.jsp like %@ include file=include_test.jsp % . In this case, Japanese string is broken.. tomcat: 3.2.4, redhat: 7.2J, j2sdk-131_02 Does anyone know any idea? Have you tried to put the directive %@ page contentType=text/html; charset=euc-jp % into test.jsp instead of include_test.jsp? For me it worked well with cyrillyc encoding. The only point that this directive can not be used twice: one time in test.jsp, second time in include_test.jsp ilis [source file: test.jsp] %@ include file=include_test.jsp %. jsp code meta http-equiv=Content-Type content=text/html; charset=euc-jp html head /head body Japanese [include file: include_test.jsp] %@ page contentType=text/html; charset=euc-jp % jsp code Thanks in advance Kimihiko Kitase -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: AIX Connector Woes (success)
Hi Daniel! Thanks a lot for your howto :) IT WORKED !! My system hast the following configuration: AIX 4.3.3 Apache 2.0.40 Tomcat 4.0.4 (also the connector, mod_jk) gcc 2.95.3 libtool 1.42 autoconf 2.53 aclocal 1.4 automake 1.4 make 3.79.1 I did it exactly as you described. (Apache 2 was already made) 1) set CATALINE_HOME, JAVA_HOME 2) cd jakarta-tomcat-connectors-4.0.4-src/jk/native 3) ./buildconf.sh 4) ./configure --with-apxs=/www/apache2/bin/apxs 5) cd common 6) make 7) cd ../apache-2.0 and here I entered the changed libtool-commands: 8) /bin/sh /www/apache2/build/libtool --silent --mode=compile gcc \ -g -O2 -mthreads -DNO_DBM_REWRITEMAP-U__STR__ -D_USE_IRS -D_THREAD_SAFE \ -DAP_HAVE_DESIGNATED_INITIALIZER -DUSE_APACHE_MD5 -D_REENTRANT \ -I/www/apache2/include -I../common -prefer-pic -c mod_jk.c touch mod_jk.slo 9) /bin/sh /www/apache2/build/libtool --silent --mode=link gcc -g \ -O2 -mthreads -DNO_DBM_REWRITEMAP -U__STR__ -D_USE_IRS -D_THREAD_SAFE \ -DAP_HAVE_DESIGNATED_INITIALIZER -DUSE_APACHE_MD5 -D_REENTRANT \ -I/apps/usr/local/apache2/include \ -export-dynamic -Wl,-brtl -Wl,-brtl -o mod_jk.la -rpath \ /www/apache2/modules -module -avoid-version mod_jk.lo \ ../common/jk_ajp12_worker.lo ../common/jk_connect.lo \ ../common/jk_msg_buff.lo ../common/jk_util.lo ../common/jk_ajp13.lo \ ../common/jk_pool.lo ../common/jk_worker.lo ../common/jk_ajp13_worker.lo \ ../common/jk_lb_worker.lo ../common/jk_sockbuf.lo ../common/jk_map.lo \ ../common/jk_uri_worker_map.lo ../common/jk_ajp14.lo \ ../common/jk_ajp14_worker.lo ../common/jk_md5.lo \ ../common/jk_ajp_common.lo ../common/jk_context.lo I needed the change the -pthread into -mthreads (I think because auf gcc 2.95.3) and I added two more -D options which my configure-script wrote into the orig. apache-2.0/Makefile. Your last point - the libtool --install - worked, but didn't the result expected. So I overjumped that point and copied the mod_jk.so manually. 10) cp apache-2.0/.libs/libmod_jk.so.0.0.0 /www/apache2/modules/mod_jk.so I also use the same mod_jk.conf and workers.properties as in Apache 1.3 and it works fine! I will also send my binary mod_jk.so to John in order to get the collection more complete :) Perhaps I'll manage to build mod_jk2 und mod_webapp also. Have a nice day/night Johannes -Daniel Rinehart [EMAIL PROTECTED] schrieb: - An: Tomcat Users List [EMAIL PROTECTED] Von: Daniel Rinehart [EMAIL PROTECTED] Datum: 10.09.2002 10:03PM Thema: RE: AIX Connector Woes (success) Excellent. Let us know, perhaps the hacking you did would work for other platforms, as well. I've had fairly significant grief building the connectors from 4.1.10 source on RedHat 7.2, which is a little surprising to me. If it's hard on Linux, it must be a royal PITA on other platforms, though Detlev Beutner already has Windows-DLL versions of 4.1.10 available, so maybe I am missing something. Below is a condensed version of what I did to compile a valid libmod_jk.so for Apache 2.0.40/Tomcat 4.1.10 on AIX 5.1. At this point I can't make any guarantees that this will work for anyone else, but hopefully it will. I'm also 100% positive that this can be made easier and more automated, but I don't currently pose the time to start hacking the autoconf scripts. My build environment is setup as follows, with GNU binaries in my path before OS specific ones: tar 1.13.25 libtoolize 1.4d aclocal 1.6.2 automake 1.6.2 autoconf 2.53 make 3.79.1 gcc 3.2 Additionally I have the following environment variables set: CATALINA_HOME=/apps/jakarta-tomcat-4.1.9 JAVA_HOME=/usr/java130/ Apache 2.0.40 was built and installed into /apps/usr/local/apache2 with the following options. I don't know if this will matter, but since I use the libtool generated by Apache instead of the one created by mod_jk, I'm including it for completeness (long lines wrapped): ./configure --prefix=/apps/usr/local/apache2 --enable-mods-shared=all --enable-cgi --enable-expires --enable-headers --enable-info --enable-rewrite --enable-so --enable-ssl --disable-dav --disable-dav-fs --disable-auth-digest --with-mpm=worker With the above command on my system I needed to hack libaprutil a little to get it to compile and install but that's a little off topic. Once Apache was built and installed I ran the following commands (long lines wrapped): tar -zxf jakarta-tomcat-connectors-4.1.10-src.tar.gz cd jakarta-tomcat-connectors-4.1.10-src/jk/native ./buildconf.sh ./configure --with-apxs=/apps/usr/local/apache2/bin/apxs cd common/ make cd ../apache-2.0/ /bin/sh /apps/usr/local/apache2/build/libtool --silent --mode=compile gcc -g -O2 -pthread -DNO_DBM_REWRITEMAP-U__STR__ -D_USE_IRS -D_THREAD_SAFE -DAP_HAVE_DESIGNATED_INITIALIZER -I/apps/usr/local/apache2/include -I../common -prefer-pic -c mod_jk.c touch mod_jk.slo /bin/sh /apps/usr/local/apache2/build/libtool --silent --mode=link gcc -g -O2 -pthread -DNO_DBM_REWRITEMAP -U__STR__ -D_USE_IRS -D_THREAD_SAFE
Re: more configuration questions
On Wed, 2002-09-11 at 02:07, Craig Longman wrote: is there any other way to set this on the context level? that would be ideal for my purposes. one would think that makes sense, right? i mean, the getServerName() and getServerPort() are both in the ServletContext, which is kind of what we're talking about here. most of the methods in ServletContext return data that are very specific to an individual context (as in the server.xml contexts). not sure what i was thinking here, getServerName/Port are, of course, in the ServletRequest object. sigh. but anyway, the question is still, can i set the proxy stuff at the context level, or can i at least change the servername for the session cookie stuff to be at the context level. cheers, -- CraigL-Thx(); Be Developer ID: 5852 signature.asc Description: This is a digitally signed message part
Re: global.jsa
You seem to have implemented the correct interfaces. However, I've not seen your web.xml deployment descriptor. You'll need to refer to your class in two separate places in web.xml in order for both event types (session and application) to be sent to your class. I suspect that the servlet engine will create one separate instance of the class for listening to application start/stop and another for session activation/deactivation. If you really need to store everything in one instance of the class, you could always add this (the servlet context listener) as a servlet context attribute, and then when a session starts or ends, call a method of the first instance by getting the copy you put in the servlet context. I'd personally make two classes, for readability and simplicity though! - Chris - Original Message - From: Felipe Schnack [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, September 10, 2002 8:14 PM Subject: Re: global.jsa Hi! I saw this post of yours in the tomcat list and tried myself. For some reason it doesn works... you can help me? I don't know what to do, it works for application start/stop, but not for session. On Mon, 2002-09-09 at 05:51, Chris Brown wrote: Hello, I've seen a few answers to your question suggesting that you use a servlet that loads on startup. I have another suggestion that you may prefer to emulate global.asa: implement ServletContextListener and HttpSessionActivationListener. javax.servlet.ServletContextListener ...sends you events when the webapp starts and ends. javax.servlet.http.HttpSessionActivationListener ...sends you events when a session is created or destroyed. You'll find javadocs for these items in the following path with a default tomcat installation, obviously relative to the root of your installation: /tomcat-docs/servletapi/index.html To use them, you'll need to add appropriate XML elements to web.xml (refer to a tutorial or the web.xml DTD). It's simple and works well. - Chris - Original Message - From: neal [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Tuesday, September 03, 2002 10:14 AM Subject: global.jsa Is there such a thing as a global.jsa file in Tomcat? I first saw this concept (an idea taken from ASP's global.asa) implemented in JRUN. If there is a global.jsa, does anyone know of any docs on this? If not, is there an alternative? The reason I would want to use this is to instantiate, populate, and cache a few objects upon startup of the application. If Tomcat does not provide a global.jsa...does anyone know how otherwise to achieve the goal? Thanks. Neal -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- Felipe Schnack Analista de Sistemas [EMAIL PROTECTED] Cel.: (51)91287530 Linux Counter #281893 Faculdade Ritter dos Reis www.ritterdosreis.br [EMAIL PROTECTED] Fone/Fax.: (51)32303328 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Multiple instances of Tomcat
Hi, I have multiple instances of Tomcat4.0.3, say, TC1, TC2, TC3 running on different m/c's and all these are talking to the same database. I have some application objects stored in each instance. My requirement: When I refresh an app object say app1 in TC1, I want to refresh this object in TC2 and TC3 too. These app objects store same data from the DB, but are specific to that tomcat instance. How do I achieve this ? Any pointers to this are highly appreciated. TIA Santosh __ Yahoo! - We Remember 9-11: A tribute to the more than 3,000 lives lost http://dir.remember.yahoo.com/tribute -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Multiple instances of Tomcat
The answer would depend upon what event, etc., is the occasion for the refresh[ing of] an app object. If the objects store the same data, sounds as if you really don't want multiple objects. Do you mean Value Objects? You can do all this many, many, many different ways. What do you mean when you say you have the application objects stored? You have a common database but yet different storage for the application objects. So, you must mean something other than database storage. What kind of storage? Serialized? If you are serializiong three objects outside the database with the identical features and need to refresh them to be the same, why not just write them to the common database? I probably don't understand what you have in mind. I like this problems that sound like this though. At 12:25 AM 9/11/2002 -0700, you wrote: Hi, I have multiple instances of Tomcat4.0.3, say, TC1, TC2, TC3 running on different m/c's and all these are talking to the same database. I have some application objects stored in each instance. My requirement: When I refresh an app object say app1 in TC1, I want to refresh this object in TC2 and TC3 too. These app objects store same data from the DB, but are specific to that tomcat instance. How do I achieve this ? Any pointers to this are highly appreciated. TIA Santosh __ Yahoo! - We Remember 9-11: A tribute to the more than 3,000 lives lost http://dir.remember.yahoo.com/tribute -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Multiple instances of Tomcat
-Original Message- From: Santosh Kulkarni [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 11, 2002 12:25 AM To: [EMAIL PROTECTED] Subject: Multiple instances of Tomcat Hi, I have multiple instances of Tomcat4.0.3, say, TC1, TC2, TC3 running on different m/c's and all these are talking to the same database. I have some application objects stored in each instance. My requirement: When I refresh an app object say app1 in TC1, I want to refresh this object in TC2 and TC3 too. These app objects store same data from the DB, but are specific to that tomcat instance. How do I achieve this ? Any pointers to this are highly appreciated. My 2 cents. You can run a daemon thread which shall check the values in your database after a specified time gap say 2 mins, and if the database value has been changed, then the corresponding value in the context can be refreshed. TIA Santosh Vikram. __ Yahoo! - We Remember 9-11: A tribute to the more than 3,000 lives lost http://dir.remember.yahoo.com/tribute -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Tomcat running as a service...
Hi there... I have installed Tomcat on my Win2000 server and it's running perfectly!! One question I have though...How do I get Tomcat to start automatically on my server as it boots (so that I don't have to logon). I have tried installing Tomcat as a service, but it doesn't work (seems that the Tomcat.exe isn't all that is required to get Tomcat up and running). Any other suggestions? Thanks! Regards, Joseph Shaw MCP 2000, ITE Dipl. Millennium Computer Services (Tel)+27 21 4481777 (fax)+27 21 448 1982 ** Disclaimer : This message contains confidential information and is intended only for the addressee. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately if you have received this e-mail by mistake and delete this e-mail from your system. Millennium accepts no liability for the content of this email, or for the consequences of any actions taken on the basis of the information provided, unless that information is subsequently confirmed in writing. Any views or opinions presented in this email are solely those of the author and do not necessarily represent those of the company. Employees of Millennium are expressly required not to make defamatory statements and not to infringe or authorize any infringement of copyright or any other legal right by email communications. Any such communication is contrary to company policy and outside the scope of the employment of the individual concerned. The company will not accept any liability in respect of such communication, and the employee responsible will be personally liable for any damages or other liability arising Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. ** -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
jdbc datasource setting problem for tomcat 4.1
hi, I test some Web Applications with tomcat 4.1.0 and Oracle Database... when i set datasource for jdbc in tomcat, i found error message in tomcat console window.. i intalled tomcat 4.1 on my windows 2000 professional OS... my configuration files are like below.. thanks for any reply and help... 1. context part in server.xml Context path=/Cewolf docBase=Cewolf debug=0 Resource name=jdbc/FruitDB auth=Container type=javax.sql.DataSource/ ResourceParams name=jdbc/FruitDB parameter namefactory/name valueorg.apache.commons.dbcp.BasicDataSourceFactory/value /parameter parameter namedriverClassName/name valueoracle.jdbc.driver.OracleDriver/value /parameter parameter nameurl/name valuejdbc:oracle:thin:127.0.0.1:1521:ora817/value /parameter parameter nameusername/name valuescott/value /parameter parameter namepassword/name valuetiger/value /parameter parameter namemaxActive/name value20/value /parameter parameter namemaxIdle/name value10/value /parameter parameter namemaxWait/name value-1/value /parameter /ResourceParams /Context 2. web.xml for my test web app ?xml version=1.0 encoding=ISO-8859-1? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd; web-app display-nameCeWolf/display-name descriptionCewolf demos/description resource-ref descriptionTest DataSource/description res-ref-namejdbc/FruitDB/res-ref-name res-typejavax.sql.DataSource/res-type res-authContainer/res-auth /resource-ref servlet servlet-nameCewolfServlet/servlet-name servlet-classde.laures.cewolf.CewolfRenderer/servlet-class load-on-startup1/load-on-startup /servlet servlet-mapping servlet-nameCewolfServlet/servlet-name url-pattern/cewolf/*/url-pattern /servlet-mapping session-config session-timeout30/session-timeout /session-config welcome-file-list welcome-fileindex.jsp/welcome-file welcome-fileindex.html/welcome-file welcome-fileindex.htm/welcome-file /welcome-file-list /web-app 3. under those environment, i saw error message like below on the tomcat console.. [INFO] Http11Protocol - -Initializing Coyote HTTP/1.1 on port 8080 Starting service Tomcat-Standalone Apache Tomcat/4.1.10 org.xml.sax.SAXParseException: The content of element type web-app must match (icon?,display-name?,description?,distributable?,context-param*,filter*,filter- mapping*,listener*,servlet*,servlet-mapping*,session-config?,mime-mapping*,welco me-file-list?,error-page*,taglib*,resource-env-ref*,resource-ref*,security-const raint*,login-config?,security-role*,env-entry*,ejb-ref*,ejb-local-ref*). at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:232) at org.apache.xerces.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.java:173) at org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:362) at org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:296) at org.apache.xerces.impl.dtd.XMLDTDValidator.handleEndElement(XMLDTDValidator.java:1953) at org.apache.xerces.impl.dtd.XMLDTDValidator.endElement(XMLDTDValidator.java:878) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.handleEndElement(XMLDocumentFragmentScannerImpl.java:1144) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(XMLDocumentFragmentScannerImpl.java:987) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1445) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:333) at org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:524) at org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:580) at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152) at org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1169) at org.apache.commons.digester.Digester.parse(Digester.java:1495) at org.apache.catalina.startup.ContextConfig.applicationConfig(ContextConfig.java:282) at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:639) at
RE: Tomcat running as a service...
1 - At the Tomcat's Installation, you can sepcify to install Tomcat as a service. 2 - Tomcat.exe works great to create a service, there is some options to specify -Message d'origine- De : Joseph Duncan Shaw [mailto:[EMAIL PROTECTED]] Envoyé : mercredi 11 septembre 2002 09:48 À : '[EMAIL PROTECTED]' Objet : Tomcat running as a service... Hi there... I have installed Tomcat on my Win2000 server and it's running perfectly!! One question I have though...How do I get Tomcat to start automatically on my server as it boots (so that I don't have to logon). I have tried installing Tomcat as a service, but it doesn't work (seems that the Tomcat.exe isn't all that is required to get Tomcat up and running). Any other suggestions? Thanks! Regards, Joseph Shaw MCP 2000, ITE Dipl. Millennium Computer Services (Tel)+27 21 4481777 (fax)+27 21 448 1982 ** Disclaimer : This message contains confidential information and is intended only for the addressee. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately if you have received this e-mail by mistake and delete this e-mail from your system. Millennium accepts no liability for the content of this email, or for the consequences of any actions taken on the basis of the information provided, unless that information is subsequently confirmed in writing. Any views or opinions presented in this email are solely those of the author and do not necessarily represent those of the company. Employees of Millennium are expressly required not to make defamatory statements and not to infringe or authorize any infringement of copyright or any other legal right by email communications. Any such communication is contrary to company policy and outside the scope of the employment of the individual concerned. The company will not accept any liability in respect of such communication, and the employee responsible will be personally liable for any damages or other liability arising Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. ** -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Exceptions when starting tomcat 3.2.4
I've recently started using tomcat 3.2.4 and am receiving ClassNotFoundException(s) when starting the servlet container. I suspect it's due to a bad classpath but I'm not really certain what jar file the classes would/should be in. I've attached output from starting the server perhaps someone would be kind enough to tell me how to solve the problem. All of the .jar files listed in the classpath exist. Other than that there isn't much I can say. Any suggestions? Thanks Rob Starting tomcat. Guessing TOMCAT_HOME from tomcat.sh to /usr/pkg/tomcat/bin/.. Setting TOMCAT_HOME to /usr/pkg/tomcat/bin/.. Using classpath: /usr/pkg/tomcat/lib/jasper.jar:/usr/pkg/tomcat/lib/test:/usr/pkg/tomcat/lib/webserver.jar:/usr/pkg/java/lib/tools.jar:/usr/pkg/lib/java/servlet.jar:/usr/pkg/lib/java/servlet.jar:/usr/pkg/lib/java/crimson.jar:/usr/pkg/lib/ java/ant.jar 2002-09-11 18:17:32 - ContextManager: Adding context Ctx( /examples ) Starting tomcat. Check logs/tomcat.log for error messages 2002-09-11 18:17:32 - ContextManager: Adding context Ctx( /admin ) 2002-09-11 18:17:32 - ContextManager: Adding context Ctx( ) 2002-09-11 18:17:32 - ContextManager: Adding context Ctx( /test ) 2002-09-11 18:17:32 - ContextManager: Adding context Ctx( /struts-example ) 2002-09-11 18:17:32 - ContextManager: Adding context Ctx( /struts-documentation ) java.lang.ClassNotFoundException: org.apache.tomcat.loader.AdaptiveClassLoader12 at java.net.URLClassLoader$1.run(URLClassLoader.java:200) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:299) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:286) at java.lang.ClassLoader.loadClass(ClassLoader.java:255) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:120) at org.apache.tomcat.loader.AdaptiveServletLoader.getClassLoader(Unknown Source) at org.apache.tomcat.loader.AdaptiveServletLoader.loadClass(Unknown Source) at org.apache.tomcat.core.ServletWrapper.loadServlet(Unknown Source) at org.apache.tomcat.core.ServletWrapper.init(Unknown Source) at org.apache.tomcat.context.LoadOnStartupInterceptor.contextInit(Unknown Source) at org.apache.tomcat.core.ContextManager.initContext(Unknown Source) at org.apache.tomcat.core.ContextManager.init(Unknown Source) at org.apache.tomcat.startup.Tomcat.execute(Unknown Source) at org.apache.tomcat.startup.Tomcat.main(Unknown Source) java.lang.ClassNotFoundException: org.apache.jasper.servlet.JasperLoader12 at java.net.URLClassLoader$1.run(URLClassLoader.java:200) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:299) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:286) at java.lang.ClassLoader.loadClass(ClassLoader.java:255) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:120) at org.apache.jasper.servlet.JspServlet.init(Unknown Source) at org.apache.tomcat.core.ServletWrapper.doInit(Unknown Source) at org.apache.tomcat.core.Handler.init(Unknown Source) at org.apache.tomcat.core.ServletWrapper.init(Unknown Source) at org.apache.tomcat.context.LoadOnStartupInterceptor.contextInit(Unknown Source) at org.apache.tomcat.core.ContextManager.initContext(Unknown Source) at org.apache.tomcat.core.ContextManager.init(Unknown Source) at org.apache.tomcat.startup.Tomcat.execute(Unknown Source) at org.apache.tomcat.startup.Tomcat.main(Unknown Source) java.lang.ClassNotFoundException: org.apache.tomcat.loader.AdaptiveClassLoader12 at java.net.URLClassLoader$1.run(URLClassLoader.java:200) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:299) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:286) at java.lang.ClassLoader.loadClass(ClassLoader.java:255) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:120) at org.apache.tomcat.loader.AdaptiveServletLoader.getClassLoader(Unknown Source) at org.apache.tomcat.loader.AdaptiveServletLoader.loadClass(Unknown Source) at org.apache.tomcat.core.ServletWrapper.loadServlet(Unknown Source) at
RE: French characters displaying using Tomcat 3.3
I have had problems with foreign characters under Solaris (not debian but still unix). In my case it turned out to be because of several things (at different times) so I would check the following: - Check the locale of your machine is set to something sensible. - Check you have some foreign character packs installed. - If MySQL is involved - check you are not using the (old) version of the mm.mysql driver that messes up foreign characters. I hope that helps, Anthony. -Original Message- From: KONHAWA [SMTP:[EMAIL PROTECTED]] Sent: 10 September 2002 17:57 To: [EMAIL PROTECTED] Subject: French characters displaying using Tomcat 3.3 Hi to all, I'm using Tomcat 3.3 for a web application. I deployed it on Win 2000 and on Linux Mandrake 8.0 and I didn't faced no problem. But when I deployed it on Debian Linux, accent characters and other special french characters did not apear like they shoud. Is it possible to configure Tomcat so that it could support a type of character encoding, or it's the OS whish have to be configured? in any case tell me how to proceed. Tanks! ** This email 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 have received this email in error please notify the system manager. This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses. www.mimesweeper.com ** -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: jdbc datasource setting problem for tomcat 4.1
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 11, 2002 12:58 AM To: [EMAIL PROTECTED] Subject: jdbc datasource setting problem for tomcat 4.1 hi, I test some Web Applications with tomcat 4.1.0 and Oracle Database... when i set datasource for jdbc in tomcat, i found error message in tomcat console window.. i intalled tomcat 4.1 on my windows 2000 professional OS... my configuration files are like below.. thanks for any reply and help... 1. context part in server.xml Context path=/Cewolf docBase=Cewolf debug=0 Resource name=jdbc/FruitDB auth=Container type=javax.sql.DataSource/ ResourceParams name=jdbc/FruitDB parameter namefactory/name valueorg.apache.commons.dbcp.BasicDataSourceFactory/value /parameter parameter namedriverClassName/name valueoracle.jdbc.driver.OracleDriver/value /parameter parameter nameurl/name valuejdbc:oracle:thin:@127.0.0.1:1521:ora817/value /parameter parameter nameusername/name valuescott/value /parameter parameter namepassword/name valuetiger/value /parameter parameter namemaxActive/name value20/value /parameter parameter namemaxIdle/name value10/value /parameter parameter namemaxWait/name value-1/value /parameter /ResourceParams /Context This seems to be fine. 2. web.xml for my test web app ?xml version=1.0 encoding=ISO-8859-1? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd; web-app display-nameCeWolf/display-name descriptionCewolf demos/description resource-ref descriptionTest DataSource/description res-ref-namejdbc/FruitDB/res-ref-name res-typejavax.sql.DataSource/res-type res-authContainer/res-auth /resource-ref servlet servlet-nameCewolfServlet/servlet-name servlet-classde.laures.cewolf.CewolfRenderer/servlet-class load-on-startup1/load-on-startup /servlet servlet-mapping servlet-nameCewolfServlet/servlet-name url-pattern/cewolf/*/url-pattern /servlet-mapping session-config session-timeout30/session-timeout /session-config welcome-file-list welcome-fileindex.jsp/welcome-file welcome-fileindex.html/welcome-file welcome-fileindex.htm/welcome-file /welcome-file-list /web-app Write your resource-ref tag at the end. The dtd requires that resource-ref should come after servlet-mapping*,session-config. 3. under those environment, i saw error message like below on the tomcat console.. [INFO] Http11Protocol - -Initializing Coyote HTTP/1.1 on port 8080 Starting service Tomcat-Standalone Apache Tomcat/4.1.10 org.xml.sax.SAXParseException: The content of element type web-app must match (icon?,display-name?,description?,distributable?,context-para m*,filter*,filter- mapping*,listener*,servlet*,servlet-mapping*,session-config?,m ime-mapping*,welco me-file-list?,error-page*,taglib*,resource-env-ref*,resource-r ef*,security-const raint*,login-config?,security-role*,env-entry*,ejb-ref*,ejb-lo cal-ref*). at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseExcep tion(ErrorHandlerWrapper.java:232) at org.apache.xerces.util.ErrorHandlerWrapper.error(ErrorHandlerW rapper.java:173) at org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorRe porter.java:362) at org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorRe porter.java:296) at org.apache.xerces.impl.dtd.XMLDTDValidator.handleEndElement(XM LDTDValidator.java:1953) at org.apache.xerces.impl.dtd.XMLDTDValidator.endElement(XMLDTDVa lidator.java:878) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.handleEn dElement(XMLDocumentFragmentScannerImpl.java:1144) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndE lement(XMLDocumentFragmentScannerImpl.java:987) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$Fragment ContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1445) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocu ment(XMLDocumentFragmentScannerImpl.java:333) at org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfigurat ion.java:524) at org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfigurat ion.java:580) at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152) at
Message in logs: Http10Interceptor: SocketException readingrequest, ignored
We have this estrange message in tomcat logs, it seems not to be quite important, because everything seems to work fine... did anybody knows the meaning of this message? 2002-09-09 17:55:18 - Http10Interceptor: SocketException reading request, ignored Thanks in advance. -- Carlos J. Ramos Genasys II Spain, S.A.U. Administrador de Sistemas Ventura de la Vega 5 Tel:+34-91-3649100 ext 170 28014 Madrid Fax:+34-91-3649119 Spain Email: [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Question using the new Tomcat 4.1.10 Admin GUI
Hi, I am having trouble getting my war files to install correctly using the new graphic Web Application Manager. What is the syntax of the items that are inserted within the three text fields? Particularly for a Windows environment? I just get errors on bad context or malformed URLs but have no reference on how to remedy it. Specific instructions would be very useful. Thanks, Jeff -- Jeff C. Michaelson Interrogen.com email: [EMAIL PROTECTED] cell:(651) 338-8660 -- -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: RE: jdbc datasource setting problem for tomcat 4.1
Thanks for your help.. it works.. :-) > > > -¿øº»¸Þ½ÃÁö- > º¸³½»ç¶÷: "VikramjitSingh" <[EMAIL PROTECTED]> > ¹Þ´Â»ç¶÷: "'Tomcat Users List'" <[EMAIL PROTECTED]> > ³¯Â¥: 2002/09/11(¼ö)17:31 > Á¦¸ñ: RE: jdbc datasource setting problem for tomcat 4.1 > > > -Original Message- > > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > > Sent: Wednesday, September 11, 2002 12:58 AM > > To: [EMAIL PROTECTED] > > Subject: jdbc datasource setting problem for tomcat 4.1 > > > > > > hi, I test some Web Applications with tomcat 4.1.0 and Oracle > > Database... > > when i set datasource for jdbc in tomcat, i found error > > message in tomcat console window.. > > i intalled tomcat 4.1 on my windows 2000 professional OS... > > my configuration files are like below.. thanks for any reply > > and help... > > > > 1. context part in server.xml > > > > > > type="javax.sql.DataSource"/> > > > > > > factory > > > > org.apache.commons.dbcp.BasicDataSourceFactory > > > > > > driverClassName > > oracle.jdbc.driver.OracleDriver > > > > > > url > > jdbc:oracle:thin:@127.0.0.1:1521:ora817 > > > > > > username > > scott > > > > > > password > > tiger > > > > > > maxActive > > 20 > > > > > > maxIdle > > 10 > > > > > > maxWait > > -1 > > > > > > > > This seems to be fine. > > > > > 2. web.xml for my test web app > > > > > > > > PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" > > "http://java.sun.com/dtd/web-app_2_3.dtd"> > > > > > > CeWolf > > Cewolf demos > > > > Test DataSource > > jdbc/FruitDB > > javax.sql.DataSource > > Container > > > > > > CewolfServlet > > de.laures.cewolf.CewolfRenderer > > 1 > > > > > > CewolfServlet > > /cewolf/* > > > > > > 30 > > > > > >index.jsp > >index.html > >index.htm > > > > > > Write your tag at the end. The dtd requires that > should come after servlet-mapping*,session-config. > > > > > 3. under those environment, i saw error message like below on > > the tomcat console.. > > [INFO] Http11Protocol - -Initializing Coyote HTTP/1.1 on port 8080 > > Starting service Tomcat-Standalone > > Apache Tomcat/4.1.10 > > org.xml.sax.SAXParseException: The content of element type > > "web-app" must match > > "(icon?,display-name?,description?,distributable?,context-para > m*,filter*,filter- > > mapping*,listener*,servlet*,servlet-mapping*,session-config?,m > > ime-mapping*,welco > > me-file-list?,error-page*,taglib*,resource-env-ref*,resource-r > > ef*,security-const > > raint*,login-config?,security-role*,env-entry*,ejb-ref*,ejb-lo > > cal-ref*)". > > at > > org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseExcep > > tion(ErrorHandlerWrapper.java:232) > > at > > org.apache.xerces.util.ErrorHandlerWrapper.error(ErrorHandlerW > > rapper.java:173) > > at > > org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorRe > > porter.java:362) > > at > > org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorRe > > porter.java:296) > > at > > org.apache.xerces.impl.dtd.XMLDTDValidator.handleEndElement(XM > > LDTDValidator.java:1953) > > at > > org.apache.xerces.impl.dtd.XMLDTDValidator.endElement(XMLDTDVa > > lidator.java:878) > > at > > org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.handleEn > > dElement(XMLDocumentFragmentScannerImpl.java:1144) > > at > > org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndE > > lement(XMLDocumentFragmentScannerImpl.java:987) > > at > > org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$Fragment > > ContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1445) > > at > > org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocu > > ment(XMLDocumentFragmentScannerImpl.java:333) > > at > > org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfigurat > > ion.java:524) > > at > > org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfigurat > > ion.java:580) > > at > > org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152) > > at > > org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXP > > arser.java:1169) > > at > > org.apache.commons.digester.Digester.parse(Digester.java:1495) > > at > > org.apache.catalina.startup.ContextConfig.applicationConfig(Co > > ntextConfig.java:282) > > at > >
RE: server.xml and configuring connection pools (URGENT: please look)
Thanks Bill I understand you answer. Thank you for that. I was hoping it was different but now that I know what it's doing I'm happier. Donie -Original Message- From: Bill Barker [mailto:[EMAIL PROTECTED]] Sent: 11 September 2002 06:13 To: [EMAIL PROTECTED] Subject: Re: server.xml and configuring connection pools (URGENT: please look) The acceptCount is nearly useless (unless you *really* know what you are doing), since it only sets the TCP/IP backlog (which is one of those things, that if you don't know what it is, you don't need it :). There is a one-to-one mapping of socket connections to threads, so setting maxProcessors to 20 means that Tomcat will only accept 20 socket connections. This could be from 20 different IPs, or much less if some clients aren't using keep-alive. On the other hand increasing the number of threads doesn't really cost you anything, since the unused ones are blocked until a request comes in. What the acceptCount is doing for you is allowing each client to stack up 100 different requests in the queue. I don't know of any client that would even think of trying something like this, which is why it's not that useful. Donie Kelly [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi all Simple problem I guess. I'm trying to limit tomcat to 20 threads max but still accept connections using the acceptCount parameter of Connector in server.xml. My problem is that the application will accept up to 20 connections and give connection refused for everything else. What am I doing wrong? I thought I would have to make 120 active connections before I would get connection refused? My config is below Thanks Donie Connector className=org.apache.catalina.connector.http.HttpConnector port=80 minProcessors=5 maxProcessors=20 enableLookups=true redirectPort=443 acceptCount=100 debug=0 connectionTimeout=6/ -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: compiling files in the classes directory
Sorry, you'll have to compile yourself Best Wishes John Burgess [EMAIL PROTECTED] Tel: 01865 718666 Fax: 01865 718600 -Original Message- From: Richard Chamberlain [mailto:[EMAIL PROTECTED]] Sent: Tuesday, September 10, 2002 11:27 PM To: Tomcat List Subject: compiling files in the classes directory Hello, Sorry if this is a really dumb question. Do java files in WEB-INF/classes automatically get compiled? I just presumed they would because that's the default behavior of resin, however I've created a java file and it doesn't appear to be doing so. If it doesn't is there anyway of getting Tomcat to do that? - or do I have to stop being lazy and compile myself? Thanks in advance, Richard -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.384 / Virus Database: 216 - Release Date: 21/08/02 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.384 / Virus Database: 216 - Release Date: 21/08/02 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Multiple instances of Tomcat
If you really need this you can do in very different ways. A file can be generated by one instance saying I (TC1) refreshed. All tomcats are checking from time to time (you specifiy) if there's this new file. When there's each tomcat must write its line (I TCi refreshed). The last one deletes the file. When say a file, it can be a table on database. Or you can send an email from each tomcat refreshing to all you want to be warned. Each tomcat would be checking on its mail box. Or even easier you have a servlet responsible for refreshing the object in each tomcat which receives the request for refreshing its object. Each toncat would then call the corresponding servlet through redirect for warning them. you can do by SMS too lol - Original Message - From: Santosh Kulkarni [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, September 11, 2002 9:25 AM Subject: Multiple instances of Tomcat Hi, I have multiple instances of Tomcat4.0.3, say, TC1, TC2, TC3 running on different m/c's and all these are talking to the same database. I have some application objects stored in each instance. My requirement: When I refresh an app object say app1 in TC1, I want to refresh this object in TC2 and TC3 too. These app objects store same data from the DB, but are specific to that tomcat instance. How do I achieve this ? Any pointers to this are highly appreciated. TIA Santosh __ Yahoo! - We Remember 9-11: A tribute to the more than 3,000 lives lost http://dir.remember.yahoo.com/tribute -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Tomcat 3.2.4 slow with Jdk1.4 and SSL
I forgot to mention that my server works behind apache which is doing all the encryption, so at least my performance problem is definitely caused at the client side, i.e. within the java-code using the https implementation from jdk1.4. But even my tomcat alone is very fast. In my test environment I can access the server both on port 443 (then apache will handle the encryption, leaving tomcat nothing to do but answer the request unencrypted over ajp) and on 8443 (then tomcat will do the encryption, probably with the help of the jdk1.4 components that were a part of JSSE prior to jdk1.4). There is no notable difference in speed between the two requests, not even if I close the browser to enforce a new ssl-handshake for each request. But thanks for the suggestions anyway, Bill. I downloaded PureTLS and the required packages for use on the client side. Unfortunately, there is no https protocol handler (at least none that I found so far) that could provide a replacement for the sun implementation. I'm looking for something to specify in the following two statements to use PureTLS instead of the functionality provided by jdk1.4: System.setProperty(java.protocol.handler.pkgs, com.sun.net.ssl.internal.www.protocol); -- here Security.addProvider( new com.sun.net.ssl.internal.ssl.Provider()); -- and here Do you (or does anyone) know of something like this for PureTLS? And Wolfgang (you're right by the way assuming that I'm from germany, but I hope our problem has nothing to do with that ;-), can you confirm that the problem is on the client side in the java code? How is the performance of your tomcat when you access the same resources with a browser? The forum-postings you quoted seem to imply that the low performance could have been a problem of jdk's prior to 1.4 as well which simply did not show (at least from within applets running inside IE) because IE used it's own ssl/https-implementation when used with jdk1.3 (and earlier) and jdk1.4's if used with that version. greetings Andreas Mohrig -Original Message- From: Bill Barker [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 11, 2002 7:29 AM To: [EMAIL PROTECTED] Subject: Re: Tomcat 3.2.4 slow with Jdk1.4 and SSL I think that you are out of luck with 3.2.x. With 3.3.1 and 4.1.10 you can use PureTLS (http://www.rtfm.com/puretls). (With 4.0.4, you need to use the CoyoteConnector plugin to enable it). I've heard good reports about using it with client-certs, but haven't tried it myself. Unfortunately, the documentation is still a little weak. :( The best place is the 3.3.1 documentation http://jakarta.apache.org/tomcat/tomcat-3.3-doc/tomcat-ssl-howto.html. The translation to the 4.x CoyoteConnector is pretty straight-forward (the SSL attributes are on the Factory), but AFAIK, nobody has actually written it up yet. Wolfgang Stein [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I realize you are also a German resident and remember the download of JSSE were differing for non-US citizens. I assume we are victims of a hidden key escrow or Echelon's information gathering efforts :-) But, all joking(?) aside: This seems to be a known jdk1.4 issue. There are some related postings at the developer connection forums, e.g. http://forum.java.sun.com/thread.jsp?forum=2thread=239231) It ends up in the recommendation to use a commercial product but also states that SUN's implementation were one of the better implementations ... So, did anybody succeed in using a third party JSSE that works with tomcat and sufficient performance? Any suggestions ? Thanks in advance, Wolfgang -Original Message- From: Andreas Mohrig [mailto:[EMAIL PROTECTED]] Sent: Tuesday, September 10, 2002 2:20 PM To: 'Tomcat Users List' Subject: RE: Tomcat 3.2.4 slow with Jdk1.4 and SSL I'm using Tomcat 4.0.4 with Jdk1.4 (on both Linux-Server and Windows NT client) and worrying about a quite similar problem. The server is extremely fast (I'd say the answer takes some milliseconds) when I access it with a browser (e.g. MS IE 5.0), but it takes about 20 seconds (!) when I try a request using java code like this: URL url = new URL(https://myserver/myresource;); URLConnection con = url.openConnection(); BufferedReader reader = new BufferedReader(new InputStreamReader(con.getInputStream())); StringBuffer resultbuffer = new StringBuffer(); String result = reader.readLine(); while (result!=null) { resultbuffer.append(result); resultbuffer.append(\n); result = reader.readLine(); } reader.close(); This is true for subsequent requests as well. The content consists of about 100 bytes which should be no problem. So: yes, I'm experiencing a heavy performance problem. I can't say if it is a performance decrease, though, since I did not test with older Jdk's and jsse (perhaps I
RE: Servlet's loading twice on start-up--DRIVING ME NUTS!
I got this problem this is the solution that someone told me. - Original Message - From: Cox, Charlie [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Friday, August 30, 2002 3:18 PM Subject: RE: Servlet Instances any webapp whose physical location is a subdirecty of the 'appBase' setting in your server.xml(default is 'webapps') will be loaded as a context automatically by tomcat. take this example: you have a context defined in /tomcat/webapps/aaa the default 'appbase' is webapps. So aaa would automatically be loaded by tomcat even if you didn't define a context for it in server.xml. this way you can access it as www.myhost.com/aaa now if you defined a context such that www.myhost.com/bbb is using the context aaa, then you now have two ways to access your context, each loaded separately. to disable the automatic loading, change your appbase to an empty directory(i.e. /tomcat/webapps/dummy) Charlie - Original Message - From: Peter Lin [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, September 11, 2002 4:38 AM Subject: Re: Servlet's loading twice on start-up--DRIVING ME NUTS! I actually wrote a short document describing this docroot configuration problem and submitted it to tomcat-dev, but it didn't get any response from the developers. unfortunately, they are all very busy. I'm willing to revise the initial draft I wrote to include this kind of information if one of the developers is willing to sign off/speak up for it. peter lin Jeff Wishnie wrote:I have a very simple Tomcat install with one application. The web.xml for the applicaiton loads two servlets on start-up. According to my logs both servlets have their init() methods called _twice_. I've looked through the list archives and gone through the mentionned causes of this problem and, assuming I understand the issues, have ruled them out. 1. The servlets are _not_ throwing exceptions 2. I have only _one_ context defined in server.xml and it is _not_ the default context. I'm going nuts here and would be very grateful for any help folks on the list can provide. Here are the details of my set-up: Tomcat: 4.1.7-LE JDK: 1.4.0_01 OS: Redhat 7.2 Tomcat layout: One web application in: $TOMCAT_HOME/ROOT/MyApp Here are revelant sections from $TOMCAT_HOME/conf/server.xml: autoDeploy=false directory=logs prefix=localhost_log. suffix=.txt timestamp=true/ reloadable=false / [note that autoDeploy and reloadable are false and that the Context path=/, _not_ ] Here are relevent sections from $TOMCAT_HOME/ROOT/MyApp/WEB-INF/web,xml: initServlet com.foo.InitServlet 10 serviceInit com.foo.ServiceInitServlet endpoint http://foo.com/service/bar?wsdl 20 Why is Init getting called TWICE for each servlet?? Help! Thanks! - Jeff -- To unsubscribe, e-mail: For additional commands, e-mail: - Yahoo! - We Remember 9-11: A tribute to the more than 3,000 lives lost -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Tomcat 'out of environment space' message
Hi everyone Thanks to those who offered assistance for the 'out of environment space' mesg... it works ! :-) Would I have to set classpaths or is this done automatically on installation ? I reason I ask is because I see I have 2 autoexec.bat files on my machine.. one on c:\autoexec.bat and the other under c:\tomcat\autoexec.bat ... presumably one should only have one autoexec.bat file! I think I have 2 separate versions because I installed a different version of Tomcat on my machine and the autoexec.bat file was on that cd when I copied it across . I viewed the c:\tomcat\autoexec.bat file and decided to move the 'SET classpath' settings to the c:\autoexec.bat file , and it had disasterous consequences ...couldn't load Win98 ! I managed to salvage my machine , and restored the autoexec.bat files to their original format . The question is one supposed to have more than one autoexec.bat file and can I put all the settings in one file (I noticed that both files differ quite drastically) . Thanks Samantha ## Attention: This e-mail message is privileged and confidential. If you are not the intended recipient please delete the message and notify the sender. Any views or opinions presented are solely those of the author. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: compiling files in the classes directory
OK. Thanks for the reply. On Wed, 11 Sep 2002 10:15:36 +0100, John Burgess [EMAIL PROTECTED] said: Sorry, you'll have to compile yourself Best Wishes John Burgess [EMAIL PROTECTED] Tel: 01865 718666 Fax: 01865 718600 -Original Message- From: Richard Chamberlain [mailto:[EMAIL PROTECTED]] Sent: Tuesday, September 10, 2002 11:27 PM To: Tomcat List Subject: compiling files in the classes directory Hello, Sorry if this is a really dumb question. Do java files in WEB-INF/classes automatically get compiled? I just presumed they would because that's the default behavior of resin, however I've created a java file and it doesn't appear to be doing so. If it doesn't is there anyway of getting Tomcat to do that? - or do I have to stop being lazy and compile myself? Thanks in advance, Richard -- http://fastmail.fm - Sent .002 seconds ago -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
session timeout on Tomcat
hi, could somebody explain to me what possibly went wrong about my application. what i did was, i set the maxInactiveIinterval time for 30 secs. on my servlet then i added to my HttpSession object an object that implements HttpSessionBindingListener so that i can keep track and see what happen when session expires. this scenario works fine, my session was invalidated after session timeout and the sessionlistener was notified. my problem is when i access my web application by using two browsers and let the 1st browser remain idle until session expires. the 2nd browser session also expires when 1st browser session expires i can say this because it put a trace line on valueUnbound of the sessionlistener object and two session id were displayed this was the session of both browser. what went wrong with this? i'm using Tomcat 4.0 thanks a lot randie -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: compiling files in the classes directory
Hi, This is what I thought also, but my beans seem to get compiled automatically when the JSP which uses them gets compiled. If I want it to be recompiled again I have to remove the files from tomcats work directory. I am using tomcat 4.0.4 and I have to say this behavior confused me, as it is not what I thought was supposed to happen. Regards, Wm. At 10:32 11/09/2002, you wrote: OK. Thanks for the reply. On Wed, 11 Sep 2002 10:15:36 +0100, John Burgess [EMAIL PROTECTED] said: Sorry, you'll have to compile yourself Best Wishes John Burgess [EMAIL PROTECTED] Tel: 01865 718666 Fax: 01865 718600 -Original Message- From: Richard Chamberlain [mailto:[EMAIL PROTECTED]] Sent: Tuesday, September 10, 2002 11:27 PM To: Tomcat List Subject: compiling files in the classes directory Hello, Sorry if this is a really dumb question. Do java files in WEB-INF/classes automatically get compiled? I just presumed they would because that's the default behavior of resin, however I've created a java file and it doesn't appear to be doing so. If it doesn't is there anyway of getting Tomcat to do that? - or do I have to stop being lazy and compile myself? Thanks in advance, Richard -- http://fastmail.fm - Sent .002 seconds ago -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.386 / Virus Database: 218 - Release Date: 09/09/2002 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Migrating from Tomcat 3.2.4 to 3.3.1, server.xml question
All, I have a bit of a legacy installation of Tomcat 3.2.4 on a server which I wish to get moved over to 3.3.1, the question I have is it possible to simply use the existing configuration files, such as server.xml if I build the new(er) version of tomcat. I appreciate that there are additional directives which appeared at 3.3 but should the old configuration files be usable straight off? Also, if anyone's gone through this is the path is there anything specificly that I should look out for? Server is UnixWare 7.1.1 running JDK 1.3 and currently Apache-SSL 1.3.26/1.48 Many thanks John Boo _ This message has been checked for all known viruses by Star Internet delivered through the MessageLabs Virus Control Centre. For further information visit http://www.star.net.uk/stats.asp This email 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 have received this email in error please notify the system manager. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Servlet's loading twice on start-up--DRIVING ME NUTS!
yeah that is the solution. I had written a document describing this issue and how to correctly configure server.xml. it was submitted to tomcat-dev, with a proposal subject, but the developers were to busy. This kind of documentation really should be included with Tomcat and a more descriptive comment should also be included in server.xml itself. In a perfect world, the developers would have time to both code and document, but until they have to sleep too. I am willing to revise the documentation and clean it up, if the developers decide including this kind of documentation is important enough. peter lin --- Rui Fernandes [EMAIL PROTECTED] wrote: I got this problem this is the solution that someone told me. __ Yahoo! - We Remember 9-11: A tribute to the more than 3,000 lives lost http://dir.remember.yahoo.com/tribute -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Initialisation on the first request
I am working with a distributed system. I chose to start Apache-Tomcat as NT service. I want to get the ORB's request on the first request. How do I know that it is the first request ? How can I do this ? in the servlet controller ? or with Listener ? Thanks a lot. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Hosting services
Hi, I'm looking for a hosting service in USA right now. What would you recomend ? The applications use : - two virtual hosts (private/public), - tomcat 4.04 ( has been tested in tomcat 4.1.10), - MySQL database (or Oracle, MSSQL, DB2 (have been tested)), - features of using web.xml configurations (for initialize on startup, servlet-mappings, etc). The applications can be deployed as war/ear or folders over ftp. We need access to be able to start/stop the applications or tomcat-service. Preferably we would like to be able to run asp too, so that really means that the server needs to run IIS and win2k server (not unix). Preferably we would like to have dedicated JVM, or tomcat instance. please recomend something you have tried or tested your self, I've found probably 100 different ISP that provide some kind of Java, some obviously dont fit, others may, yet others we might change our apps to work with, but I dont have time to sign up and try em all out :) thank you [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: tomcat 4.1.9 tag pooling and HOW-TO on custom tags?
You're going to have to provide more details. Most likely the tag isn't compliant. I would suggest trying a similar test with JSTL first. I've used JSTL core tags to iterate with tomcat 4.1.10 and they work fine. the next step it to look at how JSTL handles iteration and compare it to your custom tag. I'm guessing you extended javax.servlet.jsp.tagext.IterationTag. You may want to consider changing it to extend javax.servlet.jsp.jstl.core.LoopTag, LoopTagStatus or LoopTagSupport. most likely the index information isn't being stored correctly and lost. Therefore it begins at the start every time. peter --- Liu, Xiaoyan [EMAIL PROTECTED] wrote: Hi, I just tried our custom tags on Tomcat4.1.9 with jdk1.4. Some iteration kind of tags seem not working properly. For instance: mytag:loop collection=X mytag:value object=element / /mytag:loop loops on a collection X but always prints out the first element in the collection. My guess is that 'mytag:value' tag is being pooled and the same tag instance is used. So what are the caveats of writing custom tags with tag pooling in action? My tags do have 'release()' method. What does 'tagPool.reuse()' do exactly? thanks. liu __ Yahoo! - We Remember 9-11: A tribute to the more than 3,000 lives lost http://dir.remember.yahoo.com/tribute -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: How do I change the default loaded web page?
Two ways: 1) just put in a meta refresh tag in index.html pointing to main.jsp with a refresh of 0. That's the crude way. 2) the right way is to check out the welcome-page element of web.xml. John -Original Message- From: Ryan Lim [mailto:[EMAIL PROTECTED]] Sent: Tuesday, September 10, 2002 7:28 PM To: [EMAIL PROTECTED] Subject: How do I change the default loaded web page? I just installed tomcat 4 and am currently writing a few jsp pages. Currently the default page that is always loaded by tomcat is index.html. However I want to have a jsp page loaded by default. For instance, I always want the webserver to load up main.jsp when I access tomcat in my web browser. How would I go about doing this? Thanks Ryan -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: How do I change the default loaded web page?
In the web.xml of your webapp, you can specify the welcome-file which is an XML Tag for the webapp description. -Message d'origine- De : Turner, John [mailto:[EMAIL PROTECTED]] Envoyé : mercredi 11 septembre 2002 14:15 À : 'Tomcat Users List' Objet : RE: How do I change the default loaded web page? Two ways: 1) just put in a meta refresh tag in index.html pointing to main.jsp with a refresh of 0. That's the crude way. 2) the right way is to check out the welcome-page element of web.xml. John -Original Message- From: Ryan Lim [mailto:[EMAIL PROTECTED]] Sent: Tuesday, September 10, 2002 7:28 PM To: [EMAIL PROTECTED] Subject: How do I change the default loaded web page? I just installed tomcat 4 and am currently writing a few jsp pages. Currently the default page that is always loaded by tomcat is index.html. However I want to have a jsp page loaded by default. For instance, I always want the webserver to load up main.jsp when I access tomcat in my web browser. How would I go about doing this? Thanks Ryan -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Servlet's loading twice on start-up--DRIVING ME NUTS!
How about posting the document to the list? Or, if you like, I would be glad to host it. I've got bandwidth going to waste. That goes for anyone else that has additional docs that they've written. I would be glad to host them, or link to them if you have them hosted somewhere else. I have a couple dozen URLs bookmarked that provide additional Tomcat info, including the HOWTOs that others have written, and will be posting a page with links to all of them very soon. I would love to add more to the list. John -Original Message- From: Peter Lin [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 11, 2002 7:14 AM To: Tomcat Users List Subject: RE: Servlet's loading twice on start-up--DRIVING ME NUTS! yeah that is the solution. I had written a document describing this issue and how to correctly configure server.xml. it was submitted to tomcat-dev, with a proposal subject, but the developers were to busy. This kind of documentation really should be included with Tomcat and a more descriptive comment should also be included in server.xml itself. In a perfect world, the developers would have time to both code and document, but until they have to sleep too. I am willing to revise the documentation and clean it up, if the developers decide including this kind of documentation is important enough. peter lin --- Rui Fernandes [EMAIL PROTECTED] wrote: I got this problem this is the solution that someone told me. __ Yahoo! - We Remember 9-11: A tribute to the more than 3,000 lives lost http://dir.remember.yahoo.com/tribute -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Hosting services
With the price of computers these days, it might make more sense to colo instead of share. I don't know of any shared-hosting provider with Tomcat support that will let you stop/start at will, especially on Windows. Colo, on the other hand, is very cheap nowadays. You can find nice colo plans for less than $150 US per month, which isn't bad at all in my book. There are cheaper colo options, but you get what you pay for. With colo, you could do whatever you wanted to the server. John -Original Message- From: Reynir Hübner [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 11, 2002 7:06 AM To: Tomcat Users List Subject: Hosting services Hi, I'm looking for a hosting service in USA right now. What would you recomend ? The applications use : - two virtual hosts (private/public), - tomcat 4.04 ( has been tested in tomcat 4.1.10), - MySQL database (or Oracle, MSSQL, DB2 (have been tested)), - features of using web.xml configurations (for initialize on startup, servlet-mappings, etc). The applications can be deployed as war/ear or folders over ftp. We need access to be able to start/stop the applications or tomcat-service. Preferably we would like to be able to run asp too, so that really means that the server needs to run IIS and win2k server (not unix). Preferably we would like to have dedicated JVM, or tomcat instance. please recomend something you have tried or tested your self, I've found probably 100 different ISP that provide some kind of Java, some obviously dont fit, others may, yet others we might change our apps to work with, but I dont have time to sign up and try em all out :) thank you [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Hosting services
Have you looked at assortedInternet.com? They don't let you stop Tomcat but you can use the manager app to restart your app which would allow you to customize your web.xml file. They are running Tomcat 4x (not sure whether it's 4.0.1 or 4.0.4) and Postgresql/mySql. - Original Message - From: Turner, John [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Wednesday, September 11, 2002 8:27 AM Subject: RE: Hosting services With the price of computers these days, it might make more sense to colo instead of share. I don't know of any shared-hosting provider with Tomcat support that will let you stop/start at will, especially on Windows. Colo, on the other hand, is very cheap nowadays. You can find nice colo plans for less than $150 US per month, which isn't bad at all in my book. There are cheaper colo options, but you get what you pay for. With colo, you could do whatever you wanted to the server. John -Original Message- From: Reynir Hübner [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 11, 2002 7:06 AM To: Tomcat Users List Subject: Hosting services Hi, I'm looking for a hosting service in USA right now. What would you recomend ? The applications use : - two virtual hosts (private/public), - tomcat 4.04 ( has been tested in tomcat 4.1.10), - MySQL database (or Oracle, MSSQL, DB2 (have been tested)), - features of using web.xml configurations (for initialize on startup, servlet-mappings, etc). The applications can be deployed as war/ear or folders over ftp. We need access to be able to start/stop the applications or tomcat-service. Preferably we would like to be able to run asp too, so that really means that the server needs to run IIS and win2k server (not unix). Preferably we would like to have dedicated JVM, or tomcat instance. please recomend something you have tried or tested your self, I've found probably 100 different ISP that provide some kind of Java, some obviously dont fit, others may, yet others we might change our apps to work with, but I dont have time to sign up and try em all out :) thank you [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Servlet's loading twice on start-up--DRIVING ME NUTS!
I'll revise the document and post it again. I was planning on finding some free website to host it, but since you offered I don't have to search. hopefully I can find 2 hours tonight to revise and clean up the document. peter lin --- Turner, John [EMAIL PROTECTED] wrote: How about posting the document to the list? Or, if you like, I would be glad to host it. I've got bandwidth going to waste. That goes for anyone else that has additional docs that they've written. I would be glad to host them, or link to them if you have them hosted somewhere else. I have a couple dozen URLs bookmarked that provide additional Tomcat info, including the HOWTOs that others have written, and will be posting a page with links to all of them very soon. I would love to add more to the list. John -Original Message- From: Peter Lin [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 11, 2002 7:14 AM To: Tomcat Users List Subject: RE: Servlet's loading twice on start-up--DRIVING ME NUTS! yeah that is the solution. I had written a document describing this issue and how to correctly configure server.xml. it was submitted to tomcat-dev, with a proposal subject, but the developers were to busy. This kind of documentation really should be included with Tomcat and a more descriptive comment should also be included in server.xml itself. In a perfect world, the developers would have time to both code and document, but until they have to sleep too. I am willing to revise the documentation and clean it up, if the developers decide including this kind of documentation is important enough. peter lin --- Rui Fernandes [EMAIL PROTECTED] wrote: I got this problem this is the solution that someone told me. __ Yahoo! - We Remember 9-11: A tribute to the more than 3,000 lives lost http://dir.remember.yahoo.com/tribute -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] __ Yahoo! - We Remember 9-11: A tribute to the more than 3,000 lives lost http://dir.remember.yahoo.com/tribute -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Tomcat standalone followup question
One simple reason: to run on port 80, Tomcat has to run as root. Java and JVM security model aside, most admins would avoid running anything on port 80 as root. I'm more of a sys-admin than a developer, so something like that is very important to me. If one of our developers told me to install Tomcat on port 80 and let it run as root, I would tell them to go fly a kite. Or, I would do it, and from that point on consider that machine untrusted and compromised. I would also put that developer's home phone, cell phone, and email first on the 24/7/365 alert call list. :) Maybe I am too paranoid (not necessarily a bad thing in a sys-admin), but I'd trust Apache on port 80 long before I would trust Tomcat on port 80, even if Apache is written in C. There are many more reasons, not just PHP or CGI. If you need to use any of Apache's modules, for example, like mod_rewrite, or mod_proxy, or any of the others. The list of why you might want to use Apache+Tomcat instead of just Tomcat is actually pretty large. Load balancing and request handling are other reasons. I have 13 Tomcat instances running, with many more in the pipeline...they all can't bind to port 80. The end result is to just use what works best for you in your situation. Nobody else has your exact, identical solution in your exact, identical environment, so the only one who can decide what's right is you. If it's Tomcat stand-alone on port 80, go for it. If it isn't, that's cool, too. John -Original Message- From: Joe Tomcat [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 11, 2002 2:21 AM To: Tomcat Users List Subject: Tomcat standalone followup question I know this comes up all the time, but here is a followup question: It seems like one of the main reasons people advocate having Apache, and not just Tomcat by itself, is if you have to use PHP or CGI stuff with the server. If you are in a case where you know that you will never ever have to use any of those things on the same server, and if most of your pages are dynamic, is there still any reason to use Apache? One of the main things I like about Tomcat is that it is pure Java which means it is much safer for handling untrusted user input than something written in C, like Apache. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Hosting services
when I try accessing the page http://assortedInternet.com , I get INTERNAL SERVER ERROR. it doesn't make not very good first impression... thanx anyway, -reynir -Original Message- From: Ben Souther [mailto:[EMAIL PROTECTED]] Sent: 11. september 2002 12:35 To: Tomcat Users List Subject: Re: Hosting services Have you looked at assortedInternet.com? They don't let you stop Tomcat but you can use the manager app to restart your app which would allow you to customize your web.xml file. They are running Tomcat 4x (not sure whether it's 4.0.1 or 4.0.4) and Postgresql/mySql. - Original Message - From: Turner, John [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Wednesday, September 11, 2002 8:27 AM Subject: RE: Hosting services With the price of computers these days, it might make more sense to colo instead of share. I don't know of any shared-hosting provider with Tomcat support that will let you stop/start at will, especially on Windows. Colo, on the other hand, is very cheap nowadays. You can find nice colo plans for less than $150 US per month, which isn't bad at all in my book. There are cheaper colo options, but you get what you pay for. With colo, you could do whatever you wanted to the server. John -Original Message- From: Reynir Hübner [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 11, 2002 7:06 AM To: Tomcat Users List Subject: Hosting services Hi, I'm looking for a hosting service in USA right now. What would you recomend ? The applications use : - two virtual hosts (private/public), - tomcat 4.04 ( has been tested in tomcat 4.1.10), - MySQL database (or Oracle, MSSQL, DB2 (have been tested)), - features of using web.xml configurations (for initialize on startup, servlet-mappings, etc). The applications can be deployed as war/ear or folders over ftp. We need access to be able to start/stop the applications or tomcat-service. Preferably we would like to be able to run asp too, so that really means that the server needs to run IIS and win2k server (not unix). Preferably we would like to have dedicated JVM, or tomcat instance. please recomend something you have tried or tested your self, I've found probably 100 different ISP that provide some kind of Java, some obviously dont fit, others may, yet others we might change our apps to work with, but I dont have time to sign up and try em all out :) thank you [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Tomcat running as a service...
Paste the following to a command line: %CATALINA_HOME%\bin\tomcat.exe -install Apache-Catalina %JAVA_HOME%\jre\bin\server\jvm.dll -Djava.class.path=%CATALINA_HOME%\bin\bootstrap.jar;%JAVA_HOME%\lib\tools.jar -Dcatalina.home=%CATALINA_HOME% %CATALINA_OPTS% -Xrs -start org.apache.catalina.startup.BootstrapService -params start -stop org.apache.catalina.startup.BootstrapService -params stop -out %CATALINA_HOME%\logs\stdout.log -err %CATALINA_HOME%\logs\stderr.log To uninstall the sevice use: %CATALINA_HOME%\bin\tomcat.exe -uninstall Apache-Catalina Make sure that you open the command line *after* you have set CATALINA_HOME, CATALINA_OPTS, and JAVA_HOME. This way it guarantees that your command window will have the proper values of the current environment variables. Jake At 10:28 AM 9/11/2002 +0200, you wrote: 1 - At the Tomcat's Installation, you can sepcify to install Tomcat as a service. 2 - Tomcat.exe works great to create a service, there is some options to specify -Message d'origine- De : Joseph Duncan Shaw [mailto:[EMAIL PROTECTED]] Envoyé : mercredi 11 septembre 2002 09:48 À : '[EMAIL PROTECTED]' Objet : Tomcat running as a service... Hi there... I have installed Tomcat on my Win2000 server and it's running perfectly!! One question I have though...How do I get Tomcat to start automatically on my server as it boots (so that I don't have to logon). I have tried installing Tomcat as a service, but it doesn't work (seems that the Tomcat.exe isn't all that is required to get Tomcat up and running). Any other suggestions? Thanks! Regards, Joseph Shaw MCP 2000, ITE Dipl. Millennium Computer Services (Tel)+27 21 4481777 (fax)+27 21 448 1982 ** Disclaimer : This message contains confidential information and is intended only for the addressee. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately if you have received this e-mail by mistake and delete this e-mail from your system. Millennium accepts no liability for the content of this email, or for the consequences of any actions taken on the basis of the information provided, unless that information is subsequently confirmed in writing. Any views or opinions presented in this email are solely those of the author and do not necessarily represent those of the company. Employees of Millennium are expressly required not to make defamatory statements and not to infringe or authorize any infringement of copyright or any other legal right by email communications. Any such communication is contrary to company policy and outside the scope of the employment of the individual concerned. The company will not accept any liability in respect of such communication, and the employee responsible will be personally liable for any damages or other liability arising Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. ** -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Shutdown problem
Hi, This was discussed many times ;) You probably have non-daemon threads still running. The JVM will keep running as long as non-daemon threads haven't terminated (see java.lang.Thread docs). Yoav Shapira Millennium ChemInformatics -Original Message- From: Michael Petres [mailto:[EMAIL PROTECTED]] Sent: Tuesday, September 10, 2002 7:32 PM To: [EMAIL PROTECTED] Subject: Shutdown problem Perhaps this was discussed before... I can't find a suitable solution to my problem on the archives... When I stop tomcat using the shutdown.bat (shutdown.sh) on Windows 2000, the java process in which tomcat runs is not terminated. While servlets are active, they no longer respond to requests... What could be causing this? No errors reported in the log files... Michael Petres ~ InnovObjX Corp. Web: www.innovobjx.com Tel: 905-729-2235 x3 Fax: 905-729-2235 ~ This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: tomcat 4.1.10: war deploy in default context not working.
For anyone interested, this is a bug. Refer to http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12521 HTML Manager cannot deploy war file with path=/ Regards, Gabriele. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: AIX Connector Woes (success)
I've posted AIX binaries for Apache 2.0.40 to my site. Both mod_jk and mod_jk2 for AIX 4.3.3 are there, courtesy of Johannes Grumböck, based on Daniel Rinehart's AIX HOWTO. http://www.johnturner.com/howto John -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 11, 2002 3:02 AM To: [EMAIL PROTECTED] Subject: RE: AIX Connector Woes (success) Hi Daniel! Thanks a lot for your howto :) IT WORKED !! My system hast the following configuration: AIX 4.3.3 Apache 2.0.40 Tomcat 4.0.4 (also the connector, mod_jk) gcc 2.95.3 libtool 1.42 autoconf 2.53 aclocal 1.4 automake 1.4 make 3.79.1 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Initialisation on the first request
Or perhaps with a filter? -Original Message- From: Heligon Sandra [mailto:[EMAIL PROTECTED]] Sent: woensdag 11 september 2002 13:15 To: '[EMAIL PROTECTED]' Subject: Initialisation on the first request I am working with a distributed system. I chose to start Apache-Tomcat as NT service. I want to get the ORB's request on the first request. How do I know that it is the first request ? How can I do this ? in the servlet controller ? or with Listener ? Thanks a lot. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Tomcat running as a service...
That's what I done too. And if you want to specify the Tomcat's configuration file, you insert between -params and start: -config PathOfTheServer.xml -Message d'origine- De : Jacob Kjome [mailto:[EMAIL PROTECTED]] Envoyé : mercredi 11 septembre 2002 15:05 À : Tomcat Users List Objet : RE: Tomcat running as a service... Paste the following to a command line: %CATALINA_HOME%\bin\tomcat.exe -install Apache-Catalina %JAVA_HOME%\jre\bin\server\jvm.dll -Djava.class.path=%CATALINA_HOME%\bin\bootstrap.jar;%JAVA_HOME%\lib\tools.ja r -Dcatalina.home=%CATALINA_HOME% %CATALINA_OPTS% -Xrs -start org.apache.catalina.startup.BootstrapService -params start -stop org.apache.catalina.startup.BootstrapService -params stop -out %CATALINA_HOME%\logs\stdout.log -err %CATALINA_HOME%\logs\stderr.log To uninstall the sevice use: %CATALINA_HOME%\bin\tomcat.exe -uninstall Apache-Catalina Make sure that you open the command line *after* you have set CATALINA_HOME, CATALINA_OPTS, and JAVA_HOME. This way it guarantees that your command window will have the proper values of the current environment variables. Jake At 10:28 AM 9/11/2002 +0200, you wrote: 1 - At the Tomcat's Installation, you can sepcify to install Tomcat as a service. 2 - Tomcat.exe works great to create a service, there is some options to specify -Message d'origine- De : Joseph Duncan Shaw [mailto:[EMAIL PROTECTED]] Envoyé : mercredi 11 septembre 2002 09:48 À : '[EMAIL PROTECTED]' Objet : Tomcat running as a service... Hi there... I have installed Tomcat on my Win2000 server and it's running perfectly!! One question I have though...How do I get Tomcat to start automatically on my server as it boots (so that I don't have to logon). I have tried installing Tomcat as a service, but it doesn't work (seems that the Tomcat.exe isn't all that is required to get Tomcat up and running). Any other suggestions? Thanks! Regards, Joseph Shaw MCP 2000, ITE Dipl. Millennium Computer Services (Tel)+27 21 4481777 (fax)+27 21 448 1982 *** * ** Disclaimer : This message contains confidential information and is intended only for the addressee. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately if you have received this e-mail by mistake and delete this e-mail from your system. Millennium accepts no liability for the content of this email, or for the consequences of any actions taken on the basis of the information provided, unless that information is subsequently confirmed in writing. Any views or opinions presented in this email are solely those of the author and do not necessarily represent those of the company. Employees of Millennium are expressly required not to make defamatory statements and not to infringe or authorize any infringement of copyright or any other legal right by email communications. Any such communication is contrary to company policy and outside the scope of the employment of the individual concerned. The company will not accept any liability in respect of such communication, and the employee responsible will be personally liable for any damages or other liability arising Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. *** * ** -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Tomcat 'out of environment space' message
Hi everyone Thanks to those who offered assistance for the 'out of environment space' mesg... it works ! :-) Would I have to set classpaths or is this done automatically on installation ? I reason I ask is because I see I have 2 autoexec.bat files on my machine.. one on c:\autoexec.bat and the other under c:\tomcat\autoexec.bat ... presumably one should only have one autoexec.bat file! I think I have 2 separate versions because I installed a different version of Tomcat on my machine and the autoexec.bat file was on that cd when I copied it across . I viewed the c:\tomcat\autoexec.bat file and decided to move the 'SET classpath' settings to the c:\autoexec.bat file , and it had disasterous consequences ...couldn't load Win98 ! I managed to salvage my machine , and restored the autoexec.bat files to their original format . The question is one supposed to have more than one autoexec.bat file and can I put all the settings in one file (I noticed that both files differ quite drastically) . Thanks Samantha ## Attention: This e-mail message is privileged and confidential. If you are not the intended recipient please delete the message and notify the sender. Any views or opinions presented are solely those of the author. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Catalina doesn't like JRE, but works fine with JDK
I just installed JRE 1.3.1_04 and JDK 1.3.1_04 successively. Pointing JAVA_HOME to JDK for Tomcat 4.1.10 works fine, setting JAVA_HOME to JRE gives the error message: The JAVA_HOME environment variable is not defined correctly I found the message often in tomcat-users list but in the context of misspellings. In my case i can eliminate a misspelling. So, what makes the difference between JDK and JRE for Tomcat 4.1.10 ? -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Catalina doesn't like JRE, but works fine with JDK
Tomcat needs the JDK to compile JSP pages. The JRE does not include the compiler. Donie -Original Message- From: Wolfgang Stein [mailto:[EMAIL PROTECTED]] Sent: 11 September 2002 14:29 To: [EMAIL PROTECTED] Subject: Catalina doesn't like JRE, but works fine with JDK I just installed JRE 1.3.1_04 and JDK 1.3.1_04 successively. Pointing JAVA_HOME to JDK for Tomcat 4.1.10 works fine, setting JAVA_HOME to JRE gives the error message: The JAVA_HOME environment variable is not defined correctly I found the message often in tomcat-users list but in the context of misspellings. In my case i can eliminate a misspelling. So, what makes the difference between JDK and JRE for Tomcat 4.1.10 ? -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
HTTP 404 on j_security_check
Hi I use a Form based authentification in web.xml : [...] login-config auth-methodFORM/auth-method realm-nameAuthentication Area/realm-name form-login-config form-login-page/login.jsp/form-login-page form-error-page/login_failed.jsp/form-error-page /form-login-config /login-config [...] in login.jsp : [...] form method=GET action=j_security_check input type=text name=j_username input type=password name=j_password /form [...] authentification works great but after, if i click on the Back button of my browser to go back on the login page and i try the authentification again, Tomcat launch a HTTP 404 error on /j_security_check (page refresh don't change anything) in access.log (i protect /pages/* and login form is in /login.jsp): 10.20.0.7 - - [10/Sep/2002:11:01:15 -0500] GET /pages/home.jsp HTTP/1.1 302 764 10.20.0.7 - - [10/Sep/2002:11:01:15 -0500] GET /login.jsp HTTP/1.1 200 7070 10.20.0.7 - - [10/Sep/2002:11:01:21 -0500] GET /j_security_check?j_username=bobj_password=bob HTTP/1.1 302 764 10.20.0.7 - bob [10/Sep/2002:11:01:23 -0500] GET /pages/home.jsp HTTP/1.1 200 5018 here, all is ok , i'm authentified as bob (i think that 302 HTTP return code is a good thing ? servlet redirection ??) now i click on back button and attempt to re-authentifiate bob and ... 10.20.0.7 - bob [10/Sep/2002:11:01:29 -0500] GET /j_security_check?j_username=bobj_password=bob HTTP/1.1 404 734 404 error ... Do you have a solution ? Thanks a lot. (bilingue english/french) -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Catalina doesn't like JRE, but works fine with JDK
Actually, Jasper (the JSP compiler) use classes that comes with the JDK and are not included with the JRE. Specifically, it uses the tools.jar file included with the JDK. -- Jeanfrancois Wolfgang Stein wrote: I just installed JRE 1.3.1_04 and JDK 1.3.1_04 successively. Pointing JAVA_HOME to JDK for Tomcat 4.1.10 works fine, setting JAVA_HOME to JRE gives the error message: The JAVA_HOME environment variable is not defined correctly I found the message often in tomcat-users list but in the context of misspellings. In my case i can eliminate a misspelling. So, what makes the difference between JDK and JRE for Tomcat 4.1.10 ? -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: HTTP 404 on j_security_check
All, My solution was to bypass it all together. I wanted to use that realm in order to enable single sign on for multiple webapps. After a week of struggling with problems exactly like you described, I finally gave up. After thinking for a few minutes I guessed (correctly) that single sign on after authentication can be accomplished easily by setting a cookie (which is what the catalina code does) since a cookie can easily survive between calls to different webapps. I had already had code in my servlet and jsp pages to check for a logged In object in the users session. I just modified it slightly to check for the cookie as well. It works great and I don't have any of the issues of redirecting to pages that come with using the form based authentication. mike/ -Original Message- From: Maxime Colas des Francs [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 11, 2002 8:43 AM To: Tomcat Users List Subject: HTTP 404 on j_security_check Hi I use a Form based authentification in web.xml : [...] login-config auth-methodFORM/auth-method realm-nameAuthentication Area/realm-name form-login-config form-login-page/login.jsp/form-login-page form-error-page/login_failed.jsp/form-error-page /form-login-config /login-config [...] in login.jsp : [...] form method=GET action=j_security_check input type=text name=j_username input type=password name=j_password /form [...] authentification works great but after, if i click on the Back button of my browser to go back on the login page and i try the authentification again, Tomcat launch a HTTP 404 error on /j_security_check (page refresh don't change anything) in access.log (i protect /pages/* and login form is in /login.jsp): 10.20.0.7 - - [10/Sep/2002:11:01:15 -0500] GET /pages/home.jsp HTTP/1.1 302 764 10.20.0.7 - - [10/Sep/2002:11:01:15 -0500] GET /login.jsp HTTP/1.1 200 7070 10.20.0.7 - - [10/Sep/2002:11:01:21 -0500] GET /j_security_check?j_username=bobj_password=bob HTTP/1.1 302 764 10.20.0.7 - bob [10/Sep/2002:11:01:23 -0500] GET /pages/home.jsp HTTP/1.1 200 5018 here, all is ok , i'm authentified as bob (i think that 302 HTTP return code is a good thing ? servlet redirection ??) now i click on back button and attempt to re-authentifiate bob and ... 10.20.0.7 - bob [10/Sep/2002:11:01:29 -0500] GET /j_security_check?j_username=bobj_password=bob HTTP/1.1 404 734 404 error ... Do you have a solution ? Thanks a lot. (bilingue english/french) -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: HTTP 404 on j_security_check
That is correct behavior. You cannot access the j-security_check page directly. You hava to access one of you regular pages and Tomcat will go to your form page. Rick - Original Message - Hi I use a Form based authentification in web.xml : [...] login-config auth-methodFORM/auth-method realm-nameAuthentication Area/realm-name form-login-config form-login-page/login.jsp/form-login-page form-error-page/login_failed.jsp/form-error-page /form-login-config /login-config [...] in login.jsp : [...] form method=GET action=j_security_check input type=text name=j_username input type=password name=j_password /form [...] authentification works great but after, if i click on the Back button of my browser to go back on the login page and i try the authentification again, Tomcat launch a HTTP 404 error on /j_security_check (page refresh don't change anything) in access.log (i protect /pages/* and login form is in /login.jsp): 10.20.0.7 - - [10/Sep/2002:11:01:15 -0500] GET /pages/home.jsp HTTP/1.1 302 764 10.20.0.7 - - [10/Sep/2002:11:01:15 -0500] GET /login.jsp HTTP/1.1 200 7070 10.20.0.7 - - [10/Sep/2002:11:01:21 -0500] GET /j_security_check?j_username=bobj_password=bob HTTP/1.1 302 764 10.20.0.7 - bob [10/Sep/2002:11:01:23 -0500] GET /pages/home.jsp HTTP/1.1 200 5018 here, all is ok , i'm authentified as bob (i think that 302 HTTP return code is a good thing ? servlet redirection ??) now i click on back button and attempt to re-authentifiate bob and ... 10.20.0.7 - bob [10/Sep/2002:11:01:29 -0500] GET /j_security_check?j_username=bobj_password=bob HTTP/1.1 404 734 404 error ... Do you have a solution ? Thanks a lot. (bilingue english/french) -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
New JK/JK2 documentation available
This is pretty recent (it wasn't there a couple days ago), and includes information on building the connectors for various OSs. There are also links to the binary area, but none of the binaries are there. http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/index.html For bookmarking purposes, it looks like future binaries will be available here: http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk/release/ - John John Turner [EMAIL PROTECTED] | 248-488-3466 Advertising Audit Service http://www.aas.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: New JK/JK2 documentation available
In addition, a bunch of new resources have been added to the Tomcat 4.1 docs over 4.0 docs: http://jakarta.apache.org/tomcat/tomcat-4.1-doc/index.html John -Original Message- From: Turner, John [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 11, 2002 10:16 AM To: '[EMAIL PROTECTED]' Subject: New JK/JK2 documentation available This is pretty recent (it wasn't there a couple days ago), and includes information on building the connectors for various OSs. There are also links to the binary area, but none of the binaries are there. http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/index.html For bookmarking purposes, it looks like future binaries will be available here: http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk/release/ - John -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Hosting services
it doesn't make not very good first impression... I can't imagine that it would. I've been using them for a few months and they've been good. Good luck with your search. -Ben - Original Message - From: Reynir Hübner [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, September 11, 2002 8:38 AM Subject: RE: Hosting services when I try accessing the page http://assortedInternet.com , I get INTERNAL SERVER ERROR. it doesn't make not very good first impression... thanx anyway, -reynir -Original Message- From: Ben Souther [mailto:[EMAIL PROTECTED]] Sent: 11. september 2002 12:35 To: Tomcat Users List Subject: Re: Hosting services Have you looked at assortedInternet.com? They don't let you stop Tomcat but you can use the manager app to restart your app which would allow you to customize your web.xml file. They are running Tomcat 4x (not sure whether it's 4.0.1 or 4.0.4) and Postgresql/mySql. - Original Message - From: Turner, John [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Wednesday, September 11, 2002 8:27 AM Subject: RE: Hosting services With the price of computers these days, it might make more sense to colo instead of share. I don't know of any shared-hosting provider with Tomcat support that will let you stop/start at will, especially on Windows. Colo, on the other hand, is very cheap nowadays. You can find nice colo plans for less than $150 US per month, which isn't bad at all in my book. There are cheaper colo options, but you get what you pay for. With colo, you could do whatever you wanted to the server. John -Original Message- From: Reynir Hübner [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 11, 2002 7:06 AM To: Tomcat Users List Subject: Hosting services Hi, I'm looking for a hosting service in USA right now. What would you recomend ? The applications use : - two virtual hosts (private/public), - tomcat 4.04 ( has been tested in tomcat 4.1.10), - MySQL database (or Oracle, MSSQL, DB2 (have been tested)), - features of using web.xml configurations (for initialize on startup, servlet-mappings, etc). The applications can be deployed as war/ear or folders over ftp. We need access to be able to start/stop the applications or tomcat-service. Preferably we would like to be able to run asp too, so that really means that the server needs to run IIS and win2k server (not unix). Preferably we would like to have dedicated JVM, or tomcat instance. please recomend something you have tried or tested your self, I've found probably 100 different ISP that provide some kind of Java, some obviously dont fit, others may, yet others we might change our apps to work with, but I dont have time to sign up and try em all out :) thank you [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
AW: Catalina doesn't like JRE, but works fine with JDK
Nevertheless tomcat should run with the JRE unless tomcat doesn't have to compile jsp's at runtime. (if you don't use jsp's or use just precompiled jsp's). -Ursprüngliche Nachricht- Von: Jean-Francois Arcand [mailto:[EMAIL PROTECTED]] Gesendet: Mittwoch, 11. September 2002 15:59 An: Tomcat Users List Betreff: Re: Catalina doesn't like JRE, but works fine with JDK Actually, Jasper (the JSP compiler) use classes that comes with the JDK and are not included with the JRE. Specifically, it uses the tools.jar file included with the JDK. -- Jeanfrancois Wolfgang Stein wrote: I just installed JRE 1.3.1_04 and JDK 1.3.1_04 successively. Pointing JAVA_HOME to JDK for Tomcat 4.1.10 works fine, setting JAVA_HOME to JRE gives the error message: The JAVA_HOME environment variable is not defined correctly -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
AW: Catalina doesn't like JRE, but works fine with JDK
I don't have tomcat 4.10 at hand, but have a look at bin/setclasspath.[sh|bat] to see the requirements for the JAVA_HOME. In tomcat 4.0.3 it was just the existence of $JAVA_HOME/bin/java. (Under linux/unix this file is also checked for readability) -Ursprüngliche Nachricht- Von: Wolfgang Stein [mailto:[EMAIL PROTECTED]] Gesendet: Mittwoch, 11. September 2002 15:29 An: [EMAIL PROTECTED] Betreff: Catalina doesn't like JRE, but works fine with JDK Pointing JAVA_HOME to JDK for Tomcat 4.1.10 works fine, setting JAVA_HOME to JRE gives the error message: The JAVA_HOME environment variable is not defined correctly I found the message often in tomcat-users list but in the context of misspellings. what makes the difference between JDK and JRE for Tomcat 4.1.10 ? -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Tomcat shared libraries
Craig R. McClanahan wrote: Tomcat 3.2 used CLASSPATH the way you are asking for. It resulted in CLASSPATH problems being the second largest catecategory of user problems (behind configuring web connectors, but only barely). Tomcat 3.3 and 4.x ignore CLASSPATH, and this category of user problems has basically vanished. Sounds like a smart move to me (especially since that was my choice, and I've adamantly resisted the idea of regressing back ever since). By the way, symlinks are the right answer to your dilemma (from common/lib to wherever the legacy JAR files are. There is one potential problem with using symlinks, they won't work with the Java SecurityManager for setting a security policy. Perhaps installing those jars in $JAVA_HOME/jre/lib/ext would work. That would be common across all the platforms. Craig McClanahan On Wed, 11 Sep 2002, Herrick, Rick wrote: Date: Wed, 11 Sep 2002 05:29:12 +0200 From: Herrick, Rick [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: '[EMAIL PROTECTED]' [EMAIL PROTECTED] Subject: Tomcat shared libraries I'm currently in the process of developing a web application with Tomcat as the default reference platform. Although we'll support running with BEA, JRun, etc., our installer app will install and modify settings only if you're installing for Tomcat. I have to make a decision on how to proceed with our installer and really need to understand this problem. Now the problem is this: Tomcat doesn't use libraries from anywhere but within its scope. That is, it ignores the system classpath in its default configuration. I've read the class loader how-to (which isn't really a how-to, but whatever), and also worked with it for quite some time, so I understand pretty well how it works. Basically your classes and JARs need to be placed somewhere within the context of Tomcat: WEB-INF\classes, WEB-INF\lib, $CATALINA_HOME/common/classes, $CATALINA_HOME/common/endorsed/*.jar, $CATALINA_HOME/common/lib/*.jar, $CATALINA_HOME/shared/classes, and $CATALINA_HOME/shared/lib/*.jar. The problem is that this is a strictly web app-centric view of the world. In fact, many of the libraries that we need to use from within our web app are standard class libraries that other non-web applications need to use, such as our main server product, our non-web client applications, development tools, and so on. This leaves me three choices: * Replicate the libraries in two places, one for non-web apps and one for web apps (this solution, BTW, has to be cross-platform capable, so using links is out). This is less than desirable because of the maintenance problem with controlling versions. * Place the primary libraries within the Tomcat context and refer the other applications to that location. This doesn't work both for legacy and upgrade reasons (i.e. if you've already got a server installed, it expects to find its support libraries in a particular place and not have them moved over to another location) and because it's nonsensical for a non-web-based application to refer to an app server's repository. * Mung around with the batch files and add the required directories to the classpath for Tomcat. I do the third. This works just dandy: my required libraries remain in their central product-centric location, everyone can find what they need, and there's only one version of the libraries around (well, it's a development machine, so of course there's about 10 versions of every library around, but *I* know where they are :^). I browsed through the archives of this list and found the following quote: From http://www.mail-archive.com/tomcat-user@jakarta.apache.org/msg64144.html: How do I add an existing jar to a servlet's classpath, if that jar doesn't want to live under WEB-INF/lib? (I ultimately asked this here, and got a solid you can't response, so I'm satisfied. However, I've seen this asked here often, so it'd make a great FAQ submission.--Paul Brinkley My question is, why is this so? Why is it that you can't? Since I know you can in practice (by setting the CLASSPATH sometime after setclasspath.bat nukes the system classpath or by removing setclasspath.bat altogether), the prohibition seems arbitrary. Is there a security issue with Tomcat doing class loading outside of the Tomcat context? It seems to me that it's mainly due to a provincial view of a web app as a self-contained entity, but in reality most of the people I know writing web apps nowadays are running into *exactly* this sort of issue again and again. So to make our installer work, at this point I'm actually moving the existing setclasspath.bat file to some tmp name and creating a new one that sets the CLASSPATH to what we need. Is there any problem with this other than it's not cool to monkey with another product's settings? Thanks for getting through all this! Any help or explanation is greatly appreciated. Rick Herrick, senior software engineer CIS/TM (303) 362-4892
Re: Multiple instances of Tomcat
Use Object Relational Bridge: http://jakarta.apache.org/ojb/ You can run it on a seperate system and use it to persist objects for all three instance of Tomcat. Regards, Glenn Santosh Kulkarni wrote: Hi, I have multiple instances of Tomcat4.0.3, say, TC1, TC2, TC3 running on different m/c's and all these are talking to the same database. I have some application objects stored in each instance. My requirement: When I refresh an app object say app1 in TC1, I want to refresh this object in TC2 and TC3 too. These app objects store same data from the DB, but are specific to that tomcat instance. How do I achieve this ? Any pointers to this are highly appreciated. TIA Santosh __ Yahoo! - We Remember 9-11: A tribute to the more than 3,000 lives lost http://dir.remember.yahoo.com/tribute -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: New JK/JK2 documentation available
Thanks John, that will be very usefull to test the performance and functional enhancements between Jk and Jk2 Connectors. -Message d'origine- De : Turner, John [mailto:[EMAIL PROTECTED]] Envoyé : mercredi 11 septembre 2002 16:24 À : 'Tomcat Users List' Objet : RE: New JK/JK2 documentation available In addition, a bunch of new resources have been added to the Tomcat 4.1 docs over 4.0 docs: http://jakarta.apache.org/tomcat/tomcat-4.1-doc/index.html John -Original Message- From: Turner, John [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 11, 2002 10:16 AM To: '[EMAIL PROTECTED]' Subject: New JK/JK2 documentation available This is pretty recent (it wasn't there a couple days ago), and includes information on building the connectors for various OSs. There are also links to the binary area, but none of the binaries are there. http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/index.html For bookmarking purposes, it looks like future binaries will be available here: http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk/release/ - John -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: New JK/JK2 documentation available
Thank the tomcat developers, not me! :) John -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 11, 2002 11:02 AM To: Tomcat Users List Subject: RE: New JK/JK2 documentation available Thanks John, that will be very usefull to test the performance and functional enhancements between Jk and Jk2 Connectors. -Message d'origine- De : Turner, John [mailto:[EMAIL PROTECTED]] Envoyé : mercredi 11 septembre 2002 16:24 À : 'Tomcat Users List' Objet : RE: New JK/JK2 documentation available In addition, a bunch of new resources have been added to the Tomcat 4.1 docs over 4.0 docs: http://jakarta.apache.org/tomcat/tomcat-4.1-doc/index.html John -Original Message- From: Turner, John [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 11, 2002 10:16 AM To: '[EMAIL PROTECTED]' Subject: New JK/JK2 documentation available This is pretty recent (it wasn't there a couple days ago), and includes information on building the connectors for various OSs. There are also links to the binary area, but none of the binaries are there. http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/index.html For bookmarking purposes, it looks like future binaries will be available here: http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk/release/ - John -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: New JK/JK2 documentation available
That's right, But thanks to prevent us ;-) -Message d'origine- De : Turner, John [mailto:[EMAIL PROTECTED]] Envoyé : mercredi 11 septembre 2002 16:58 À : 'Tomcat Users List' Objet : RE: New JK/JK2 documentation available Thank the tomcat developers, not me! :) John -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 11, 2002 11:02 AM To: Tomcat Users List Subject: RE: New JK/JK2 documentation available Thanks John, that will be very usefull to test the performance and functional enhancements between Jk and Jk2 Connectors. -Message d'origine- De : Turner, John [mailto:[EMAIL PROTECTED]] Envoyé : mercredi 11 septembre 2002 16:24 À : 'Tomcat Users List' Objet : RE: New JK/JK2 documentation available In addition, a bunch of new resources have been added to the Tomcat 4.1 docs over 4.0 docs: http://jakarta.apache.org/tomcat/tomcat-4.1-doc/index.html John -Original Message- From: Turner, John [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 11, 2002 10:16 AM To: '[EMAIL PROTECTED]' Subject: New JK/JK2 documentation available This is pretty recent (it wasn't there a couple days ago), and includes information on building the connectors for various OSs. There are also links to the binary area, but none of the binaries are there. http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/index.html For bookmarking purposes, it looks like future binaries will be available here: http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk/release/ - John -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: POST request processing failure
Hah! Back many months ago the problem you are reporting would cause an infinite loop in the Processor. So I fixed the infinite loop bug and added code to report when these POST problems occur. I don't know what the source of the problem is, perhaps the remote client is aborting the connection before the POST completes? If you find out the source of the problem please let me know! Regards, Glenn Rossen Raykov wrote: I have Tomcat 4.0.4/Struts 1.0.2 with Apache 1.3.26 connected by mod_jk/1.2.0, ajp13 protocol, running on Sparc Solaris 8. The problem that I have is that from time to time there are 500 errors in my Apache log. The corresponding error on Tomcat side is: java.lang.RuntimeException: Read of HTTP Request POST parameters failed: read content length A complete trace is included in the bottom of the e-mail. This only happens during POST request. According to the log it happened with many different browsers including MSIE 5 and 6 and different Netscape flavors, that's why I believe this is not a browser related issue. The logged posted data size is either 4276 or 1024 bytes and the reported time processing varies from 1 to more than 7000 seconds! I saw some similar postages but without any useful answers or comments. Is that a known/common bug and is there any solution for it? Regards, Rossen --- COMPLETE ERROR TRACE - java.lang.RuntimeException: Read of HTTP Request POST parameters failed: read content length at org.apache.catalina.connector.HttpRequestBase.parseParameters(HttpRequestBas e.java:658) at org.apache.catalina.connector.HttpRequestBase.getParameterNames(HttpRequestB ase.java:723) at org.apache.catalina.connector.RequestFacade.getParameterNames(RequestFacade. java:165) at org.apache.struts.util.RequestUtils.populate(RequestUtils.java:743) at org.apache.struts.action.ActionServlet.processPopulate(ActionServlet.java:20 61) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1564) at org.apache.struts.action.SecureActionServlet.process(D:/CvsProjects/StrutsEx tTry/src/org/apache/struts/action/SecureActionServlet.java:97) at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:510) at javax.servlet.http.HttpServlet.service(HttpServlet.java:760) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:243) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja va:190) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase .java:475) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:2 46) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180 ) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve. java:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170 ) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java :174) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66)
Re: Hosting services
Hello, If you use PostgreSQL instead of MysQL (why any one would use this I don't know), Command Prompt -- http://www.commandprompt.com/ might be of use. On Wed, 11 Sep 2002, Reynir Hübner wrote: Hi, I'm looking for a hosting service in USA right now. What would you recomend ? The applications use : - two virtual hosts (private/public), - tomcat 4.04 ( has been tested in tomcat 4.1.10), - MySQL database (or Oracle, MSSQL, DB2 (have been tested)), - features of using web.xml configurations (for initialize on startup, servlet-mappings, etc). The applications can be deployed as war/ear or folders over ftp. We need access to be able to start/stop the applications or tomcat-service. Preferably we would like to be able to run asp too, so that really means that the server needs to run IIS and win2k server (not unix). Preferably we would like to have dedicated JVM, or tomcat instance. please recomend something you have tried or tested your self, I've found probably 100 different ISP that provide some kind of Java, some obviously dont fit, others may, yet others we might change our apps to work with, but I dont have time to sign up and try em all out :) thank you [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: AW: Catalina doesn't like JRE, but works fine with JDK
The Admin tool that comes with Tomcat contains a lot of JSP and use Struts. -- Jeanfrancois Ralph Einfeldt wrote: Nevertheless tomcat should run with the JRE unless tomcat doesn't have to compile jsp's at runtime. (if you don't use jsp's or use just precompiled jsp's). -Ursprüngliche Nachricht- Von: Jean-Francois Arcand [mailto:[EMAIL PROTECTED]] Gesendet: Mittwoch, 11. September 2002 15:59 An: Tomcat Users List Betreff: Re: Catalina doesn't like JRE, but works fine with JDK Actually, Jasper (the JSP compiler) use classes that comes with the JDK and are not included with the JRE. Specifically, it uses the tools.jar file included with the JDK. -- Jeanfrancois Wolfgang Stein wrote: I just installed JRE 1.3.1_04 and JDK 1.3.1_04 successively. Pointing JAVA_HOME to JDK for Tomcat 4.1.10 works fine, setting JAVA_HOME to JRE gives the error message: The JAVA_HOME environment variable is not defined correctly -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: POST request processing failure
I suspected that this may be related to that old issue since it disappeared after the upgrade to 4.0.4. I believe it is connected to the ajp13 protocol but I can not prove it. The strangest thing is the length of the posted request - it is always power of 1K. BW you said that you fix the Processor but how you are detecting that the connection to the httpd is closed without any changes in the C binary? As I remember in the old version of this bug there was an infinite data exchange between the httpd and Tomcat. At that time trus was reporting something like: 0.0703 recv(26, 0xFFBEE4A0, 4, 0) = 4 0xFFBEE4A0: A B\003 0.0710 recv(26, 0x0025D888, 3, 0) = 3 0x0025D888: 061FFA 0.0715 send(26, 0x0025F890, 4, 0) = 4 0x0025F890: 12 4\0\0 0.0720 recv(26, 0xFFBEE4A0, 4, 0) = 4 0xFFBEE4A0: A B\003 0.0723 recv(26, 0x0025D888, 3, 0) = 3 0x0025D888: 061FFA 0.0727 send(26, 0x0025F890, 4, 0) = 4 Was this completely because tomcat connector only? Regards, Rossen -Original Message- From: Glenn Nielsen [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 11, 2002 11:06 AM To: Tomcat Users List Subject: Re: POST request processing failure Hah! Back many months ago the problem you are reporting would cause an infinite loop in the Processor. So I fixed the infinite loop bug and added code to report when these POST problems occur. I don't know what the source of the problem is, perhaps the remote client is aborting the connection before the POST completes? If you find out the source of the problem please let me know! Regards, Glenn Rossen Raykov wrote: I have Tomcat 4.0.4/Struts 1.0.2 with Apache 1.3.26 connected by mod_jk/1.2.0, ajp13 protocol, running on Sparc Solaris 8. The problem that I have is that from time to time there are 500 errors in my Apache log. The corresponding error on Tomcat side is: java.lang.RuntimeException: Read of HTTP Request POST parameters failed: read content length A complete trace is included in the bottom of the e-mail. This only happens during POST request. According to the log it happened with many different browsers including MSIE 5 and 6 and different Netscape flavors, that's why I believe this is not a browser related issue. The logged posted data size is either 4276 or 1024 bytes and the reported time processing varies from 1 to more than 7000 seconds! I saw some similar postages but without any useful answers or comments. Is that a known/common bug and is there any solution for it? Regards, Rossen --- COMPLETE ERROR TRACE - java.lang.RuntimeException: Read of HTTP Request POST parameters failed: read content length at org.apache.catalina.connector.HttpRequestBase.parseParameters( HttpRequestBas e.java:658) at org.apache.catalina.connector.HttpRequestBase.getParameterName s(HttpRequestB ase.java:723) at org.apache.catalina.connector.RequestFacade.getParameterNames( RequestFacade. java:165) at org.apache.struts.util.RequestUtils.populate(RequestUtils.java:743) at org.apache.struts.action.ActionServlet.processPopulate(ActionS ervlet.java:20 61) at org.apache.struts.action.ActionServlet.process(ActionServlet.j ava:1564) at org.apache.struts.action.SecureActionServlet.process(D:/CvsPro jects/StrutsEx tTry/src/org/apache/struts/action/SecureActionServlet.java:97) at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:510) at javax.servlet.http.HttpServlet.service(HttpServlet.java:760) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilt er(Application FilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(Appli cationFilterCh ain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardW rapperValve.ja va:243) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardP ipeline.java:5 66) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipel ine.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContextValve.invoke(StandardC ontextValve.ja va:190) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardP ipeline.java:5 66) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(Aut henticatorBase .java:475) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardP ipeline.java:5 64) at
Which server.xml component marks JVM bounds
Contexts share one JVM correct? Do Hosts share the same JVM? The server.xml file has a comment about a Server as a representation of the entire JVM. Does that mean that there is no way to have Host elements have their own JVM? I'm trying to avoid having completely separate installations of Tomcat with their own server.xml file. Applications served from the same server have to be separated into their own JVMs... (maybe even because they need to run with an older servlet specification because someone was too lazy to port them to the newer calls :) Any suggestions appreciated. thanks, d. -- David Mossakowski [EMAIL PROTECTED] Instinet Corporation 212.310.7275 Disclaimer This message is intended only for the use of the Addressee and may contain information that is PRIVILEGED and/or CONFIDENTIAL or both. This email is intended only for the personal and confidential use of the recipient(s) named above. If the reader of this email is not an intended recipient, you have received this email in error and any review, dissemination, distribution or copying is strictly prohibited. If you have received this email in error, please notify the sender immediately by return mail and permanently deleting the copy you received. Thank you. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Iplanet6.0 Sp2 + tomcat4.0
Hi All, Anybody successfull in integrating Netscape's Iplanet6.0 sp2 with tomcat4.0 ? I found some docs, but they all refer to Netscape 3.X and 4.X series, I did not see any docs for new versions of Nescape web server. thanks -Raj
RE: Tomcat shared libraries
-Original Message- From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]] Sent: Tuesday, September 10, 2002 9:42 PM To: Tomcat Users List Subject: Re: Tomcat shared libraries Tomcat 3.3 and 4.x ignore CLASSPATH, and this category of user problems has basically vanished. Sounds like a smart move to me (especially since that was my choice, and I've adamantly resisted the idea of regressing back ever since). I can see why the problem has vanished, but it's like saying that you never get athlete's foot now that you've cut your legs off. Instead it solves the problem by cordoning off a whole area of functionality that's actually vitally important to many people who have to integrate web applications into a broader context. It is NOT an acceptable recourse to have to install ALL libraries into the Tomcat installation. I mean, for example, if Apache required you to install Tomcat into the Apache installation directory to integrate Tomcat into Apache, you'd be understandably peeved. That's essentially the situation with Tomcat now. It's fine for web applications that basically stand-alone, but more and more that is NOT going to be the context in which they operate. Furthermore, I've noticed the existence of a whole other class of question involving Why can't my web application find my properties, jar, or class file? You may get less of those questions than you did with classpath, but it seems like a case of cutting off your nose to spite your face. By the way, symlinks are the right answer to your dilemma (from common/lib to wherever the legacy JAR files are. Like I said, that's NOT a workable solution, since the majority of our installations run on Windows platforms that don't support symlinks in the manner that Unix does. So I was correct in my original assumption, which is that this is mainly an arbitrary design decision. If so, then it's a VERY bad one that doesn't really consider development outside of the Tomcat space or interlocking development between web apps and non web apps. It basically puts users in the position of having to rewrite core Tomcat scripts for each different application they create, which is both ugly AND non-extensible. Consider, for example, someone who has a Tomcat system already configured. We have to create a batch file that essentially overrides their existing configuration. That can either break the installation or cause the customer to have to go through a process of integrating our settings with their existing settings. The best solution would be one in which the ability to create an extensible class path was switchable and perhaps was off by default. E.g. CATALINA_USE_SYSTEM_SETTINGS (I like verbose env var names now that you don't normally blow the environment space with them :^) would be set to false by default. If it was true, then it would use system settings for CLASSPATH, etc.
RE: SSL on Tomcat standalone not working
I'm having the same problem. Can you let me know if you find a solution? Thanks, Ian -Original Message- From: Michael Petres [mailto:[EMAIL PROTECTED]] Sent: Tuesday, September 10, 2002 6:51 PM To: [EMAIL PROTECTED] Subject: SSL on Tomcat standalone not working I have a tomcat standalone deployment I am trying to enable SSL on. I have faithfully followed the SSL-how to. When I start tomcat the error logs indicate NO errors. The port 8443 has an HTTP connector loaded on it. The problem is that when I try to access a webapp on port 8443 (works on port 8080), the reply the browser gets is: _ [1][1]. I tried using a Mozilla browser and it asks me what to do with a file that is being downloaded ??? The Catalina*.log file contains these entries: 2002-09-10 18:51:47 HttpProcessor[8443][4] An incoming request is being assigned 2002-09-10 18:51:47 HttpProcessor[8443][4] The incoming request has been awaited 2002-09-10 18:51:47 HttpProcessor[8443][4] parseConnection: address=/192.168.0.214, port=8443 I don't know where to begin looking for the problem... I am using jdk 1.4.1 and my server.xml has the following directive: Connector className=org.apache.catalina.connector.http.HttpConnector port=8443 minProcessors=5 maxProcessors=75 enableLookups=true acceptCount=10 debug=0 scheme=https secure=true Factory className=org.apache.catalina.net.SSLServerSocketFactory clientAuth=false protocol=TLS/ /Connector Michael Petres ~ InnovObjX Corp. Web: www.innovobjx.com Tel: 905-729-2235 x3 Fax: 905-729-2235 ~ -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: PROBLEM with Tomcat 4.10 and Jasper
[EMAIL PROTECTED] writes: Hello, I am French, sorry for my englais. I have a problem with Tomcat 4.10 and Jasper I use tags jsp:include... . That functions very well with Tomcat 4.0.x but not with Tomcat 4.10 I you sendings my log and my file jsp + file compiled (Tomcat 4.0.4 and 4.10). I've got exactly the same problem. ..Nick -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
SSL on Tomcat standalone not working
Just a silly suggestion from my own silly experiences with Tomcat 3: If i typed http:// instead of https:// then i always got some Maybe that helps Wolfgang -Original Message- From: Ratner, Ian [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 11, 2002 5:55 PM To: 'Tomcat Users List' Subject: RE: SSL on Tomcat standalone not working I'm having the same problem. Can you let me know if you find a solution? Thanks, Ian -Original Message- From: Michael Petres [mailto:[EMAIL PROTECTED]] Sent: Tuesday, September 10, 2002 6:51 PM To: [EMAIL PROTECTED] Subject: SSL on Tomcat standalone not working I have a tomcat standalone deployment I am trying to enable SSL on. I have faithfully followed the SSL-how to. When I start tomcat the error logs indicate NO errors. The port 8443 has an HTTP connector loaded on it. The problem is that when I try to access a webapp on port 8443 (works on port 8080), the reply the browser gets is: -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: POST request processing failure
I fixed the nasty infinite loop bug but there is still a periodic failure happening during POST's. I don't know if the failed POST's are a mod_jk bug or a problem with the remote clients HTTP POST. It happens infrequently. I just haven't had the time to try and track it down any further. What I saw was the mod_jk side kept the socket open but never completed sending the post data that was set in the content length. This left the Processor in an infinite loop trying to read from the socket. On the mod_jk side it can detect when the remote client goes away, it then closes the connection it has to Tomcat. Which would then cause the AJP Processor read to fail. Regards, Glenn Rossen Raykov wrote: I suspected that this may be related to that old issue since it disappeared after the upgrade to 4.0.4. I believe it is connected to the ajp13 protocol but I can not prove it. The strangest thing is the length of the posted request - it is always power of 1K. BW you said that you fix the Processor but how you are detecting that the connection to the httpd is closed without any changes in the C binary? As I remember in the old version of this bug there was an infinite data exchange between the httpd and Tomcat. At that time trus was reporting something like: 0.0703 recv(26, 0xFFBEE4A0, 4, 0) = 4 0xFFBEE4A0: A B\003 0.0710 recv(26, 0x0025D888, 3, 0) = 3 0x0025D888: 061FFA 0.0715 send(26, 0x0025F890, 4, 0) = 4 0x0025F890: 12 4\0\0 0.0720 recv(26, 0xFFBEE4A0, 4, 0) = 4 0xFFBEE4A0: A B\003 0.0723 recv(26, 0x0025D888, 3, 0) = 3 0x0025D888: 061FFA 0.0727 send(26, 0x0025F890, 4, 0) = 4 Was this completely because tomcat connector only? Regards, Rossen -Original Message- From: Glenn Nielsen [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 11, 2002 11:06 AM To: Tomcat Users List Subject: Re: POST request processing failure Hah! Back many months ago the problem you are reporting would cause an infinite loop in the Processor. So I fixed the infinite loop bug and added code to report when these POST problems occur. I don't know what the source of the problem is, perhaps the remote client is aborting the connection before the POST completes? If you find out the source of the problem please let me know! Regards, Glenn Rossen Raykov wrote: I have Tomcat 4.0.4/Struts 1.0.2 with Apache 1.3.26 connected by mod_jk/1.2.0, ajp13 protocol, running on Sparc Solaris 8. The problem that I have is that from time to time there are 500 errors in my Apache log. The corresponding error on Tomcat side is: java.lang.RuntimeException: Read of HTTP Request POST parameters failed: read content length A complete trace is included in the bottom of the e-mail. This only happens during POST request. According to the log it happened with many different browsers including MSIE 5 and 6 and different Netscape flavors, that's why I believe this is not a browser related issue. The logged posted data size is either 4276 or 1024 bytes and the reported time processing varies from 1 to more than 7000 seconds! I saw some similar postages but without any useful answers or comments. Is that a known/common bug and is there any solution for it? Regards, Rossen --- COMPLETE ERROR TRACE - java.lang.RuntimeException: Read of HTTP Request POST parameters failed: read content length at org.apache.catalina.connector.HttpRequestBase.parseParameters( HttpRequestBas e.java:658) at org.apache.catalina.connector.HttpRequestBase.getParameterName s(HttpRequestB ase.java:723) at org.apache.catalina.connector.RequestFacade.getParameterNames( RequestFacade. java:165) at org.apache.struts.util.RequestUtils.populate(RequestUtils.java:743) at org.apache.struts.action.ActionServlet.processPopulate(ActionS ervlet.java:20 61) at org.apache.struts.action.ActionServlet.process(ActionServlet.j ava:1564) at org.apache.struts.action.SecureActionServlet.process(D:/CvsPro jects/StrutsEx tTry/src/org/apache/struts/action/SecureActionServlet.java:97) at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:510) at javax.servlet.http.HttpServlet.service(HttpServlet.java:760) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilt er(Application FilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(Appli cationFilterCh ain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardW rapperValve.ja va:243) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardP ipeline.java:5 66) at
RE: PROBLEM with Tomcat 4.10 and Jasper
Does FIECONJV1.getCONTCO(vect) returns a String? -Message d'origine- De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Envoyé : mercredi 11 septembre 2002 17:44 À : [EMAIL PROTECTED] Objet : PROBLEM with Tomcat 4.10 and Jasper Hello, I am French, sorry for my englais. I have a problem with Tomcat 4.10 and Jasper I use tags jsp:include... . That functions very well with Tomcat 4.0.x but not with Tomcat 4.10 I you sendings my log and my file jsp + file compiled (Tomcat 4.0.4 and 4.10). thank you in advance Log == JSP source file == TOMCAT 4.10 == TOMCAT 4.0.4 == greetings. Christophe BAROIN JP Services 16, Rue de Moronval 28100 DREUX Tél. : 02.37.38.92.12 Fax : 02.37.42.87.58 E Mail :[EMAIL PROTECTED] Visiter notre site sur http://www.jpservices.fr -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: session timeout on Tomcat
Your browsers shared the session which is what the session id being the same suggests. Use two physicly separate computers (KVM switch ok) to do the same test to be absolutely sure that this is still happening (it won't :) d. randie ursal wrote: hi, could somebody explain to me what possibly went wrong about my application. what i did was, i set the maxInactiveIinterval time for 30 secs. on my servlet then i added to my HttpSession object an object that implements HttpSessionBindingListener so that i can keep track and see what happen when session expires. this scenario works fine, my session was invalidated after session timeout and the sessionlistener was notified. my problem is when i access my web application by using two browsers and let the 1st browser remain idle until session expires. the 2nd browser session also expires when 1st browser session expires i can say this because it put a trace line on valueUnbound of the sessionlistener object and two session id were displayed this was the session of both browser. what went wrong with this? i'm using Tomcat 4.0 thanks a lot randie -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- David Mossakowski [EMAIL PROTECTED] Instinet Corporation 212.310.7275 *** Disclaimer This message is intended only for the use of the Addressee and may contain information that is PRIVILEGED and/or CONFIDENTIAL or both. This email is intended only for the personal and confidential use of the recipient(s) named above. If the reader of this email is not an intended recipient, you have received this email in error and any review, dissemination, distribution or copying is strictly prohibited. If you have received this email in error, please notify the sender immediately by return mail and permanently deleting the copy you received. Thank you. *** -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Tomcat 'out of environment space' message
Hi Samantha, up to Win98 Windows loads c:\autoexec.bat during startup. No other autexec.bat is read. You can have more than one, but only the one in c:\ is processed. To run Tomcat you don't need the classpath variable as far as I know. As long as you don't need it for other purposes don't set it. In case you need it: I experienced that including . (dot - the current directory) makes life much easier, like for instance set classpath=.;d:\java For compiling webapps better use Ant or the facilities in your IDE (I like Eclipse very much). In both cases you don't need to set the classpath variable. Andreas Hi everyone Thanks to those who offered assistance for the 'out of environment space' mesg... it works ! :-) Would I have to set classpaths or is this done automatically on installation ? I reason I ask is because I see I have 2 autoexec.bat files on my machine.. one on c:\autoexec.bat and the other under c:\tomcat\autoexec.bat ... presumably one should only have one autoexec.bat file! I think I have 2 separate versions because I installed a different version of Tomcat on my machine and the autoexec.bat file was on that cd when I copied it across . I viewed the c:\tomcat\autoexec.bat file and decided to move the 'SET classpath' settings to the c:\autoexec.bat file , and it had disasterous consequences ...couldn't load Win98 ! I managed to salvage my machine , and restored the autoexec.bat files to their original format . The question is one supposed to have more than one autoexec.bat file and can I put all the settings in one file (I noticed that both files differ quite drastically) . Thanks Samantha ## Attention: This e-mail message is privileged and confidential. If you are not the intended recipient please delete the message and notify the sender. Any views or opinions presented are solely those of the author. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: PROBLEM with Tomcat 4.10 and Jasper
Sorry for this mail, I don't have seen that you had posted the generated servlet file. The java.net.URLEncoder.encode() is deprecated in JDK 1.4. What do you use? -Message d'origine- De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Envoyé : mercredi 11 septembre 2002 18:20 À : Tomcat Users List Objet : RE: PROBLEM with Tomcat 4.10 and Jasper Does FIECONJV1.getCONTCO(vect) returns a String? -Message d'origine- De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Envoyé : mercredi 11 septembre 2002 17:44 À : [EMAIL PROTECTED] Objet : PROBLEM with Tomcat 4.10 and Jasper Hello, I am French, sorry for my englais. I have a problem with Tomcat 4.10 and Jasper I use tags jsp:include... . That functions very well with Tomcat 4.0.x but not with Tomcat 4.10 I you sendings my log and my file jsp + file compiled (Tomcat 4.0.4 and 4.10). thank you in advance Log == JSP source file == TOMCAT 4.10 == TOMCAT 4.0.4 == greetings. Christophe BAROIN JP Services 16, Rue de Moronval 28100 DREUX Tél. : 02.37.38.92.12 Fax : 02.37.42.87.58 E Mail :[EMAIL PROTECTED] Visiter notre site sur http://www.jpservices.fr -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: HttpResponseBase.sendRedirect vs JetSpeed
On Tue, 10 Sep 2002, Samuel Cheung wrote: Date: Tue, 10 Sep 2002 23:02:53 -0500 From: Samuel Cheung [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Subject: RE: HttpResponseBase.sendRedirect vs JetSpeed Craig, Thanks for your help. When you say * You are using a web connector that does its own buffering., do you mean the Web connector within Tomcat? Isn't tomcat 4.1 use coyote as its web connector? Tomcat standalone uses Coyote -- I don't know what it's buffering semantics are. But by web connectors I was specifically referring to running Tomcat behind Apache (or IIS) using mod_jk and friends. You might also try calling response.flushBuffer() instead of flushing the output stream or writer itself. Craig Thanks again. -Original Message- From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]] Sent: Tuesday, September 10, 2002 10:48 PM To: Tomcat Users List Subject: RE: HttpResponseBase.sendRedirect vs JetSpeed Possible reasons: * You are opening an HTML element like table or p and not closing it before the flush, and writing to a browser that does not incrementally render (like Netscape 4.x). * You are using a web connector that does its own buffering. * There is a proxy or something in between. * Bug in 4.1.10 (submit a bug report). Counting on incremental output being visible is a very chancy bet. Craig On Tue, 10 Sep 2002, Samuel Cheung wrote: Date: Tue, 10 Sep 2002 22:38:15 -0500 From: Samuel Cheung [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Subject: RE: HttpResponseBase.sendRedirect vs JetSpeed Craig, Thanks. But when i try to call the flush() method incrementally during the execution of the doGet(), the client does not display anything. The browser keeps loading and displayed everything at the end. I am using Tomcat 4.1.10 for this example. Thanks for your help. Sam public void doGet() { int count = 0; response.setBufferSize(1); PrintWriter out = response.getWriter(); for (int i= 0; i 10; i++) { out.println(h1 Count: ); out.println(count++); out.println(/h1); System.out.println (print log count: + count); out.flush(); response.flushBuffer(); Thread.sleep(5000); } -Original Message- From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]] Sent: Tuesday, September 10, 2002 10:28 PM To: Tomcat Users List Subject: RE: HttpResponseBase.sendRedirect vs JetSpeed Yes, you can call writer.flush() or response.flushBuffer(). See the servlet spec for all the details: http://java.sun.com/products/servlet/download.html Craig On Tue, 10 Sep 2002, Samuel Cheung wrote: Date: Tue, 10 Sep 2002 18:04:00 -0500 From: Samuel Cheung [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Subject: RE: HttpResponseBase.sendRedirect vs JetSpeed Does the servlet spec allows servlets to flush() the outputStream of the HTTP response class? Or it will be ignored by the container as well? Thanks. -Original Message- From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]] Sent: Tuesday, September 10, 2002 5:53 PM To: Tomcat Users List Subject: Re: HttpResponseBase.sendRedirect vs JetSpeed Per the servlet spec, it is not legal to modify HTTP headers from inside an include (either RD.include() or jsp:include)), and any such attempt will be ignored by the container. You can certainly build Tomcat from source and make the modification you're talking about in your copy, but you'll be making your copy non-spec-compliant if you do. Craig On Tue, 10 Sep 2002, Erich Bratton wrote: Date: Tue, 10 Sep 2002 17:22:59 -0500 From: Erich Bratton [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: HttpResponseBase.sendRedirect vs JetSpeed Hi, We're working on getting JetSpeed up and running with some portlets using Velocity and some using JSP. We are seeing behavior where, even using Tomcat 4.1 with a bufferSize set to 100k, when a JSP page calls response.sendRedirect(), nothing happens. The problem appears to be in HttpResponseBase, lines 1132-1133, where it checks to see if it is being called from a RequestDispatcher.include() and if so, it just returns and silently does nothing. This behavior seems odd, since lines 1128-1130 check to see if the response has been committed already, and if so, it throws an Exception. Having said all this, is this a bug? Is there a way to configure this behavior from a config file somewhere? Is there a way for us to compile a version of HttpResponseBase with lines 1132-1133
RE: POST request processing failure
I'm not familiar how mod_jk is working. Having said that, my guess is that mod_jk is waiting to will out a buffer before to sent it to the java side. I think so because of the well aligned size reported in the log file. It may be because of incorrect length checking or something like that. I do not think it's because the client have closed it's connection since I have common errors about that and they are completely different from this one. In that case mod_jk is performing correctly and it is informing he java side about that. The problem can be because of something like loop while(content-length) but I do not have the time to check mod_jk sources :( One more time all this is a guess. The thing that bothers me is that I'm not able to reproduce the error on my one. I remember a postage explaining how one can do that but it was not working for me. If I can reproduce it most probably I'll be able to fix it also. Regards, Rossen -Original Message- From: Glenn Nielsen [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 11, 2002 12:07 PM To: Tomcat Users List Subject: Re: POST request processing failure I fixed the nasty infinite loop bug but there is still a periodic failure happening during POST's. I don't know if the failed POST's are a mod_jk bug or a problem with the remote clients HTTP POST. It happens infrequently. I just haven't had the time to try and track it down any further. What I saw was the mod_jk side kept the socket open but never completed sending the post data that was set in the content length. This left the Processor in an infinite loop trying to read from the socket. On the mod_jk side it can detect when the remote client goes away, it then closes the connection it has to Tomcat. Which would then cause the AJP Processor read to fail. Regards, Glenn Rossen Raykov wrote: I suspected that this may be related to that old issue since it disappeared after the upgrade to 4.0.4. I believe it is connected to the ajp13 protocol but I can not prove it. The strangest thing is the length of the posted request - it is always power of 1K. BW you said that you fix the Processor but how you are detecting that the connection to the httpd is closed without any changes in the C binary? As I remember in the old version of this bug there was an infinite data exchange between the httpd and Tomcat. At that time trus was reporting something like: 0.0703 recv(26, 0xFFBEE4A0, 4, 0) = 4 0xFFBEE4A0: A B\003 0.0710 recv(26, 0x0025D888, 3, 0) = 3 0x0025D888: 061FFA 0.0715 send(26, 0x0025F890, 4, 0) = 4 0x0025F890: 12 4\0\0 0.0720 recv(26, 0xFFBEE4A0, 4, 0) = 4 0xFFBEE4A0: A B\003 0.0723 recv(26, 0x0025D888, 3, 0) = 3 0x0025D888: 061FFA 0.0727 send(26, 0x0025F890, 4, 0) = 4 Was this completely because tomcat connector only? Regards, Rossen -Original Message- From: Glenn Nielsen [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 11, 2002 11:06 AM To: Tomcat Users List Subject: Re: POST request processing failure Hah! Back many months ago the problem you are reporting would cause an infinite loop in the Processor. So I fixed the infinite loop bug and added code to report when these POST problems occur. I don't know what the source of the problem is, perhaps the remote client is aborting the connection before the POST completes? If you find out the source of the problem please let me know! Regards, Glenn Rossen Raykov wrote: I have Tomcat 4.0.4/Struts 1.0.2 with Apache 1.3.26 connected by mod_jk/1.2.0, ajp13 protocol, running on Sparc Solaris 8. The problem that I have is that from time to time there are 500 errors in my Apache log. The corresponding error on Tomcat side is: java.lang.RuntimeException: Read of HTTP Request POST parameters failed: read content length A complete trace is included in the bottom of the e-mail. This only happens during POST request. According to the log it happened with many different browsers including MSIE 5 and 6 and different Netscape flavors, that's why I believe this is not a browser related issue. The logged posted data size is either 4276 or 1024 bytes and the reported time processing varies from 1 to more than 7000 seconds! I saw some similar postages but without any useful answers or comments. Is that a known/common bug and is there any solution for it? Regards, Rossen --- COMPLETE ERROR TRACE - java.lang.RuntimeException: Read of HTTP Request POST parameters failed: read content length at org.apache.catalina.connector.HttpRequestBase.parseParameters( HttpRequestBas e.java:658) at
Tomcat with ASP pages
Hi, i'm traing to run an asp page into tomcat, it's possible? thanks = Lionel A. Tafel Consultor - Analista de Sistemas Byte Tech S.A. - Buenos Aires - Argentina Av. Del Libertador 15090 (B1641ANT) - Acassuso Tel : (54+)4707-0077 Cel : (54+)155-013-0806 www.bytetech.com.ar __ Yahoo! - We Remember 9-11: A tribute to the more than 3,000 lives lost http://dir.remember.yahoo.com/tribute -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
linux redhat support
Hi, are all versions of linux redhat (e.g., version 7.2, 7.3) running stable with tomcat 4.0.4 under IBM jdk1.3.1? where can i find such information? thanks in advance, Lior Graf Cellpay ltd e-mail: [EMAIL PROTECTED] phone: +972(3)9034334 (222) mobile: +972(51)507302 fax:+972(3)9034335 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
relative path/context problem
Hello All, I'm seeing some really odd behaviour, I hope someone can tell me what i'm doing wrong. I've written some jsp/servlet code with Forte 4.0, created a war file and deployed it on Tomcat 4.0.4. ( I deployed it by putting the war file in the webapps dir and restarting Tomcat) The war file was my_stuff.war so the url is http://localhost:8080/my_stuff/index.jsp That works fine. As I started developing a little code I got to a point I wanted a link back to the entry of the site, I thought a href=/index.jspBack to Top/a would do the job. But this link pointed to http://localhost:8080/my_stuff/servlet/index.jsp I was confused so to simplify things I went back to index.jsp and put a link to itself in the file. When you mouse over the link, the address it point to is http://localhost:8080/index.jsp Shouldn't Tomcat be prepending http://localhost:8080/my_stuff onto any link I specify like this a href=/somefile.jspMy Link/a I'm playing around with what's called a model 2 architecture where a jsp page calls a servlet which does some data processing and then forwards the request to another jsp page and I'm not having any trouble with path's when I forward the request, just with links in the jsp pages. what's really maddening is that in playing around with this I've seen it work correctly and seen it fail. Obviously I'm doing something boneheaded, any ideas?? Dave -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Tomcat shared libraries
See intermixed. On Wed, 11 Sep 2002, Herrick, Rick wrote: Date: Wed, 11 Sep 2002 08:46:18 -0700 From: Herrick, Rick [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: '[EMAIL PROTECTED]' [EMAIL PROTECTED] Subject: RE: Tomcat shared libraries -Original Message- From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]] Sent: Tuesday, September 10, 2002 9:42 PM To: Tomcat Users List Subject: Re: Tomcat shared libraries Tomcat 3.3 and 4.x ignore CLASSPATH, and this category of user problems has basically vanished. Sounds like a smart move to me (especially since that was my choice, and I've adamantly resisted the idea of regressing back ever since). I can see why the problem has vanished, but it's like saying that you never get athlete's foot now that you've cut your legs off. Instead it solves the problem by cordoning off a whole area of functionality that's actually vitally important to many people who have to integrate web applications into a broader context. It is NOT an acceptable recourse to have to install ALL libraries into the Tomcat installation. I mean, for example, if Apache required you to install Tomcat into the Apache installation directory to integrate Tomcat into Apache, you'd be understandably peeved. That's essentially the situation with Tomcat now. It's fine for web applications that basically stand-alone, but more and more that is NOT going to be the context in which they operate. Tomcat gets around 100k downloads per month from the main Apache web site (plus unknown numbers of redistributions). Of the downloaders, a majority are Windows users. Of those, a majority are still on Win98 (often installing Tomcat on their home PCs to learn about it). Successfully using the CLASSPATH (required by Tomcat 3.2.x) requires the ability to perform all of the following tasks correctly: * Edit the syntax of your set CLASSPATH command flawlessly (we're talking about users who typically have never seen a batch script before). * If you do this in your autoexec.bat file, you'd better also know how to edit config.sys to expand your environment space (as in a message thread just today from a 3.2 user). * If you have a very large number of JAR files or directories to include, it's still not going to work -- Windows imposes an upper limit on the length of an environment variable value. The failure mode symptoms when you hit this one can be very difficult to diagnose. You may be blessed with users for whom these sorts of things are not issues. Tomcat isn't. Furthermore, I've noticed the existence of a whole other class of question involving Why can't my web application find my properties, jar, or class file? You may get less of those questions than you did with classpath, but it seems like a case of cutting off your nose to spite your face. Over the last three years, about 95% of such reports are caused by not understanding the package structure of Java and how that has to be reflected in your internal directory or JAR structure -- thus, it's going to happen whether you use a CLASSPATH or not. The other 5% were legitimate bugs in the classloaders of various Tomcat versions that have since been fixed. If this feature truly didn't work, there would be zero Struts applications that run on Tomcat (Struts happens to rely heavily on this sort of thing). And that's clearly not the case ... By the way, symlinks are the right answer to your dilemma (from common/lib to wherever the legacy JAR files are. Like I said, that's NOT a workable solution, since the majority of our installations run on Windows platforms that don't support symlinks in the manner that Unix does. So I was correct in my original assumption, which is that this is mainly an arbitrary design decision. If so, then it's a VERY bad one that doesn't really consider development outside of the Tomcat space or interlocking development between web apps and non web apps. It basically puts users in the position of having to rewrite core Tomcat scripts for each different application they create, which is both ugly AND non-extensible. Consider, for example, someone who has a Tomcat system already configured. We have to create a batch file that essentially overrides their existing configuration. That can either break the installation or cause the customer to have to go through a process of integrating our settings with their existing settings. Not arbitrary .. deliberate. Messing with CLASSPATH is not something that any Java developer should have to worry about (it's one of the worst features of the platform) -- and the direction of recent changes in the platform itself (creation of the extensions facility in $JAVA_HOME/jre/lib/ext, the Class-Path attribute on MANIFEST.MF files in JARs, the design goal for webapps that they should be self-contained in the first place, and so on) imply that Tomcat is in the mainstream on this topic. The
Re: relative path/context problem
I think it will work if you take out the /. Like this: a href=index.jspBack to Top/a Tell me. Bye, Mauro On Wed, 11 Sep 2002, Dave Robbins wrote: Hello All, I'm seeing some really odd behaviour, I hope someone can tell me what i'm doing wrong. I've written some jsp/servlet code with Forte 4.0, created a war file and deployed it on Tomcat 4.0.4. ( I deployed it by putting the war file in the webapps dir and restarting Tomcat) The war file was my_stuff.war so the url is http://localhost:8080/my_stuff/index.jsp That works fine. As I started developing a little code I got to a point I wanted a link back to the entry of the site, I thought a href=/index.jspBack to Top/a would do the job. But this link pointed to http://localhost:8080/my_stuff/servlet/index.jsp I was confused so to simplify things I went back to index.jsp and put a link to itself in the file. When you mouse over the link, the address it point to is http://localhost:8080/index.jsp Shouldn't Tomcat be prepending http://localhost:8080/my_stuff onto any link I specify like this a href=/somefile.jspMy Link/a I'm playing around with what's called a model 2 architecture where a jsp page calls a servlet which does some data processing and then forwards the request to another jsp page and I'm not having any trouble with path's when I forward the request, just with links in the jsp pages. what's really maddening is that in playing around with this I've seen it work correctly and seen it fail. Obviously I'm doing something boneheaded, any ideas?? Dave -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- Ing.Mauro Daniel Ardolino Departamento de Desarrollo y Servicios Altersoft Billinghurst 1599 - Piso 9 C1425DTE - Capital Federal Tel/Fax: 4821-3376 / 4822-8759 mailto: [EMAIL PROTECTED] website: http://www.altersoft.com.ar -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Tomcat with ASP pages
I don't think there's anyway to do so directly. There are several options for running ASP under Linux; just search Google. If your running NT, then configure IIS to work with tomcat for your JSP/JAVA stuff and leave the ASP to IIS. -Original Message- From: Lionel Tafel [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 11, 2002 11:27 AM To: Tomcat Users List Subject: Tomcat with ASP pages Hi, i'm traing to run an asp page into tomcat, it's possible? thanks = Lionel A. Tafel Consultor - Analista de Sistemas Byte Tech S.A. - Buenos Aires - Argentina Av. Del Libertador 15090 (B1641ANT) - Acassuso Tel : (54+)4707-0077 Cel : (54+)155-013-0806 www.bytetech.com.ar __ Yahoo! - We Remember 9-11: A tribute to the more than 3,000 lives lost http://dir.remember.yahoo.com/tribute -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: relative path/context problem
What servlet mapping(s) do you have setup in web.xml? Dave Robbins wrote: Hello All, I'm seeing some really odd behaviour, I hope someone can tell me what i'm doing wrong. I've written some jsp/servlet code with Forte 4.0, created a war file and deployed it on Tomcat 4.0.4. ( I deployed it by putting the war file in the webapps dir and restarting Tomcat) The war file was my_stuff.war so the url is http://localhost:8080/my_stuff/index.jsp That works fine. As I started developing a little code I got to a point I wanted a link back to the entry of the site, I thought a href=/index.jspBack to Top/a would do the job. But this link pointed to http://localhost:8080/my_stuff/servlet/index.jsp I was confused so to simplify things I went back to index.jsp and put a link to itself in the file. When you mouse over the link, the address it point to is http://localhost:8080/index.jsp Shouldn't Tomcat be prepending http://localhost:8080/my_stuff onto any link I specify like this a href=/somefile.jspMy Link/a I'm playing around with what's called a model 2 architecture where a jsp page calls a servlet which does some data processing and then forwards the request to another jsp page and I'm not having any trouble with path's when I forward the request, just with links in the jsp pages. what's really maddening is that in playing around with this I've seen it work correctly and seen it fail. Obviously I'm doing something boneheaded, any ideas?? Dave -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Catalina doesn't like JRE, but works fine with JDK
I do believe that it is missing a java compiler -- and the tools.jar that can be used for it. Tom Velhdouse - Original Message - From: Wolfgang Stein [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, September 11, 2002 8:29 AM Subject: Catalina doesn't like JRE, but works fine with JDK I just installed JRE 1.3.1_04 and JDK 1.3.1_04 successively. Pointing JAVA_HOME to JDK for Tomcat 4.1.10 works fine, setting JAVA_HOME to JRE gives the error message: The JAVA_HOME environment variable is not defined correctly I found the message often in tomcat-users list but in the context of misspellings. In my case i can eliminate a misspelling. So, what makes the difference between JDK and JRE for Tomcat 4.1.10 ? -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Managing a Listener
Doug, Read your mail on this. Can you elucidate on filters and listeners some more based on your experience? Say, advantages of using a filter instead of a listener? Will appreciate your insights.. Thanks -Original Message- From: Srofe, Douglas (c) [mailto:[EMAIL PROTECTED]] Sent: Tuesday, September 10, 2002 2:11 PM To: 'Tomcat Users List' Subject: RE: Managing a Listener Craig, I have had some of the same issues to deal with. I accomplished this using a filter instead of a listener. The reason I used a filter is because it had access to the request and response information. A listener only had access to the session. For config information I used a class I wrote and obtained via a built-in JNDI resource. The class contained a static hash table that I populated with individual session (i.e. web app) information. I configured the filter to only look at requests of .jsp or servlets, otherwise everything comes through the filter (graphic requests, html, etc. If this is not enough to get you started, I would be happy to fill in some more specifics. Doug Srofe WDS interaktiv -- Notice: This e-mail message, together with any attachments, contains information of Merck Co., Inc. (Whitehouse Station, New Jersey, USA) that may be confidential, proprietary copyrighted and/or legally privileged, and is intended solely for the use of the individual or entity named in this message. If you are not the intended recipient, and have received this message in error, please immediately return this by e-mail and then delete it. == -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: New JK/JK2 documentation available
It would be interesting to see the performance against mod_webapp (on Apache2) as well. Tom Veldhouse - Original Message - From: [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, September 11, 2002 10:01 AM Subject: RE: New JK/JK2 documentation available Thanks John, that will be very usefull to test the performance and functional enhancements between Jk and Jk2 Connectors. -Message d'origine- De : Turner, John [mailto:[EMAIL PROTECTED]] Envoyé : mercredi 11 septembre 2002 16:24 À : 'Tomcat Users List' Objet : RE: New JK/JK2 documentation available In addition, a bunch of new resources have been added to the Tomcat 4.1 docs over 4.0 docs: http://jakarta.apache.org/tomcat/tomcat-4.1-doc/index.html John -Original Message- From: Turner, John [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 11, 2002 10:16 AM To: '[EMAIL PROTECTED]' Subject: New JK/JK2 documentation available This is pretty recent (it wasn't there a couple days ago), and includes information on building the connectors for various OSs. There are also links to the binary area, but none of the binaries are there. http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/index.html For bookmarking purposes, it looks like future binaries will be available here: http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk/release/ - John -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Servlet's loading twice on start-up--DRIVING ME NUTS!
This is the solution I ended up using--but shouldn't setting host autoDeploy=false keep Tomcat from creating a context for web-apps in the AppBase? Is this a bug in 4.1.7 that autoDeploy=false seems not to effect this behavior? Thanks, Jeff - Original Message - From: Rui Fernandes [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, September 11, 2002 2:12 AM Subject: RE: Servlet's loading twice on start-up--DRIVING ME NUTS! I got this problem this is the solution that someone told me. - Original Message - From: Cox, Charlie [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Friday, August 30, 2002 3:18 PM Subject: RE: Servlet Instances any webapp whose physical location is a subdirecty of the 'appBase' setting in your server.xml(default is 'webapps') will be loaded as a context automatically by tomcat. take this example: you have a context defined in /tomcat/webapps/aaa the default 'appbase' is webapps. So aaa would automatically be loaded by tomcat even if you didn't define a context for it in server.xml. this way you can access it as www.myhost.com/aaa now if you defined a context such that www.myhost.com/bbb is using the context aaa, then you now have two ways to access your context, each loaded separately. to disable the automatic loading, change your appbase to an empty directory(i.e. /tomcat/webapps/dummy) Charlie - Original Message - From: Peter Lin [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, September 11, 2002 4:38 AM Subject: Re: Servlet's loading twice on start-up--DRIVING ME NUTS! I actually wrote a short document describing this docroot configuration problem and submitted it to tomcat-dev, but it didn't get any response from the developers. unfortunately, they are all very busy. I'm willing to revise the initial draft I wrote to include this kind of information if one of the developers is willing to sign off/speak up for it. peter lin Jeff Wishnie wrote:I have a very simple Tomcat install with one application. The web.xml for the applicaiton loads two servlets on start-up. According to my logs both servlets have their init() methods called _twice_. I've looked through the list archives and gone through the mentionned causes of this problem and, assuming I understand the issues, have ruled them out. 1. The servlets are _not_ throwing exceptions 2. I have only _one_ context defined in server.xml and it is _not_ the default context. I'm going nuts here and would be very grateful for any help folks on the list can provide. Here are the details of my set-up: Tomcat: 4.1.7-LE JDK: 1.4.0_01 OS: Redhat 7.2 Tomcat layout: One web application in: $TOMCAT_HOME/ROOT/MyApp Here are revelant sections from $TOMCAT_HOME/conf/server.xml: autoDeploy=false directory=logs prefix=localhost_log. suffix=.txt timestamp=true/ reloadable=false / [note that autoDeploy and reloadable are false and that the Context path=/, _not_ ] Here are relevent sections from $TOMCAT_HOME/ROOT/MyApp/WEB-INF/web,xml: initServlet com.foo.InitServlet 10 serviceInit com.foo.ServiceInitServlet endpoint http://foo.com/service/bar?wsdl 20 Why is Init getting called TWICE for each servlet?? Help! Thanks! - Jeff -- To unsubscribe, e-mail: For additional commands, e-mail: - Yahoo! - We Remember 9-11: A tribute to the more than 3,000 lives lost -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: relative path/context problem
I have 1 servlet name EntryBean in a package called phonebook should web.xml have entries for jsp pages? here's the whole file ?xml version=1.0 encoding=UTF-8? !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-nameEntryBean/servlet-name servlet-classphonebook.EntryBean/servlet-class /servlet servlet-mapping servlet-nameEntryBean/servlet-name url-pattern/servlet/phonebook.EntryBean/url-pattern /servlet-mapping session-config session-timeout 30 /session-timeout /session-config welcome-file-list welcome-file index.jsp /welcome-file welcome-file index.html /welcome-file welcome-file index.htm /welcome-file /welcome-file-list /web-app What servlet mapping(s) do you have setup in web.xml? Dave Robbins wrote: Hello All, I'm seeing some really odd behaviour, I hope someone can tell me what i'm doing wrong. I've written some jsp/servlet code with Forte 4.0, created a war file and deployed it on Tomcat 4.0.4. ( I deployed it by putting the war file in the webapps dir and restarting Tomcat) The war file was my_stuff.war so the url is http://localhost:8080/my_stuff/index.jsp That works fine. As I started developing a little code I got to a point I wanted a link back to the entry of the site, I thought a href=/index.jspBack to Top/a would do the job. But this link pointed to http://localhost:8080/my_stuff/servlet/index.jsp I was confused so to simplify things I went back to index.jsp and put a link to itself in the file. When you mouse over the link, the address it point to is http://localhost:8080/index.jsp Shouldn't Tomcat be prepending http://localhost:8080/my_stuff onto any link I specify like this a href=/somefile.jspMy Link/a I'm playing around with what's called a model 2 architecture where a jsp page calls a servlet which does some data processing and then forwards the request to another jsp page and I'm not having any trouble with path's when I forward the request, just with links in the jsp pages. what's really maddening is that in playing around with this I've seen it work correctly and seen it fail. Obviously I'm doing something boneheaded, any ideas?? Dave -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Can't start tomcat...
I'm a complete tomcat newbie, just downloaded tomcat 4.1.10 yesterday and put it on my Windows 2000 PC. When I try to start it I get the following error: = Bootstrap: Class loader creation threw exception java.lang.IllegalMonitorStateException: current thread not owner at org.apache.catalina.loader.StandardClassLoader.addRepositoryInternal(Compiled Code) at org.apache.catalina.loader.StandardClassLoader.init(Compiled Code) at org.apache.catalina.startup.ClassLoaderFactory.createClassLoader(Compiled Code) at org.apache.catalina.startup.Bootstrap.main(Compiled Code) = Can anyone help with this? Many thanks in advance, Curt -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Migrating from Tomcat 3.2.4 to 3.3.1, server.xml question
You will need to start with Tomcat 3.3.1's default server.xml and add appropriate changes from your 3.2.4 installation. The 3.2.4 server.xml isn't usable in 3.3.1, as is. You can still define contexts in server.xml, but Tomcat 3.3.1 provides a better mechanism where they are placed in a separate file(s). Thus, you can modify them without modifying your server.xml. For the important changes from Tomcat 3.2.x to Tomcat 3.3, see: http://jakarta.apache.org/tomcat/tomcat-3.3-doc/readme For reference information on Tomcat 3.3.1's server.xml, see: http://jakarta.apache.org/tomcat/tomcat-3.3-doc/serverxml.html For other Tomcat 3.3.1 information, start here: http://jakarta.apache.org/tomcat/tomcat-3.3-doc/index.html Cheers, Larry -Original Message- From: Boocock, John (Academy) [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 11, 2002 6:17 AM To: '[EMAIL PROTECTED]' Subject: Migrating from Tomcat 3.2.4 to 3.3.1, server.xml question All, I have a bit of a legacy installation of Tomcat 3.2.4 on a server which I wish to get moved over to 3.3.1, the question I have is it possible to simply use the existing configuration files, such as server.xml if I build the new(er) version of tomcat. I appreciate that there are additional directives which appeared at 3.3 but should the old configuration files be usable straight off? Also, if anyone's gone through this is the path is there anything specificly that I should look out for? Server is UnixWare 7.1.1 running JDK 1.3 and currently Apache-SSL 1.3.26/1.48 Many thanks John Boo _ This message has been checked for all known viruses by Star Internet delivered through the MessageLabs Virus Control Centre. For further information visit http://www.star.net.uk/stats.asp This email 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 have received this email in error please notify the system manager. -- To unsubscribe, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: relative path/context problem
you sir, are incredibly smart Thanks I think it will work if you take out the /. Like this: a href=index.jspBack to Top/a Tell me. Bye, Mauro On Wed, 11 Sep 2002, Dave Robbins wrote: Hello All, I'm seeing some really odd behaviour, I hope someone can tell me what i'm doing wrong. I've written some jsp/servlet code with Forte 4.0, created a war file and deployed it on Tomcat 4.0.4. ( I deployed it by putting the war file in the webapps dir and restarting Tomcat) The war file was my_stuff.war so the url is http://localhost:8080/my_stuff/index.jsp That works fine. As I started developing a little code I got to a point I wanted a link back to the entry of the site, I thought a href=/index.jspBack to Top/a would do the job. But this link pointed to http://localhost:8080/my_stuff/servlet/index.jsp I was confused so to simplify things I went back to index.jsp and put a link to itself in the file. When you mouse over the link, the address it point to is http://localhost:8080/index.jsp Shouldn't Tomcat be prepending http://localhost:8080/my_stuff onto any link I specify like this a href=/somefile.jspMy Link/a I'm playing around with what's called a model 2 architecture where a jsp page calls a servlet which does some data processing and then forwards the request to another jsp page and I'm not having any trouble with path's when I forward the request, just with links in the jsp pages. what's really maddening is that in playing around with this I've seen it work correctly and seen it fail. Obviously I'm doing something boneheaded, any ideas?? Dave -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- Ing.Mauro Daniel Ardolino Departamento de Desarrollo y Servicios Altersoft Billinghurst 1599 - Piso 9 C1425DTE - Capital Federal Tel/Fax: 4821-3376 / 4822-8759 mailto: [EMAIL PROTECTED] website: http://www.altersoft.com.ar -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: relative path/context problem
Hello Dave, The issue is that you are specifying a path to the root of your server. Any time you provide /mypage.html, it will ignore the current directory you are in and reference the root of the web server. What you want is ./mypage.html or just mypage.html. What you should be doing when using MVC, though is choose a mapping for pages that are to go through you controller servlet. The Barracuda project generally maps *.event to the controller. So, no matter where you are in your directory hierarchy of your current context, the appropriate event will be fired. However, even in this case, if your context we /mycontext and your link inside a page in that context was /myevent.event, this still would end up going to the root of your webserver and not be served by the current webapp context. Instead, you would use ./myevent.event or just myevent.event as the URL. Does that make sense? Jake Wednesday, September 11, 2002, 11:37:09 AM, you wrote: DR Hello All, DR I'm seeing some really odd behaviour, I hope someone can tell me what i'm DR doing wrong. I've written some jsp/servlet code with Forte 4.0, created a DR war file and deployed it on Tomcat 4.0.4. ( I deployed it by putting the DR war file in the webapps dir and restarting Tomcat) The war file was DR my_stuff.war so the url is DR http://localhost:8080/my_stuff/index.jsp DR That works fine. As I started developing a little code I got to a point I DR wanted a link back to the entry of the site, I thought DR a href=/index.jspBack to Top/a DR would do the job. But this link pointed to DR http://localhost:8080/my_stuff/servlet/index.jsp DR I was confused so to simplify things I went back to index.jsp and put a DR link to itself in the file. When you mouse over the link, the address it DR point to is DR http://localhost:8080/index.jsp DR Shouldn't Tomcat be prepending DR http://localhost:8080/my_stuff DR onto any link I specify like this DR a href=/somefile.jspMy Link/a DR I'm playing around with what's called a model 2 architecture where a jsp DR page calls a servlet which does some data processing and then forwards the DR request to another jsp page and I'm not having any trouble with path's when DR I forward the request, just with links in the jsp pages. DR what's really maddening is that in playing around with this I've seen it DR work correctly and seen it fail. Obviously I'm doing something boneheaded, DR any ideas?? DR Dave DR -- DR To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] DR For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- Best regards, Jacobmailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Tomcat with ASP pages
Search for Chilisoft ASP.. - Original Message - From: Brad Rhoads [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Wednesday, September 11, 2002 12:51 PM Subject: RE: Tomcat with ASP pages I don't think there's anyway to do so directly. There are several options for running ASP under Linux; just search Google. If your running NT, then configure IIS to work with tomcat for your JSP/JAVA stuff and leave the ASP to IIS. -Original Message- From: Lionel Tafel [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 11, 2002 11:27 AM To: Tomcat Users List Subject: Tomcat with ASP pages Hi, i'm traing to run an asp page into tomcat, it's possible? thanks = Lionel A. Tafel Consultor - Analista de Sistemas Byte Tech S.A. - Buenos Aires - Argentina Av. Del Libertador 15090 (B1641ANT) - Acassuso Tel : (54+)4707-0077 Cel : (54+)155-013-0806 www.bytetech.com.ar __ Yahoo! - We Remember 9-11: A tribute to the more than 3,000 lives lost http://dir.remember.yahoo.com/tribute -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Tomcat with ASP pages
That's now a Sun product: http://wwws.sun.com/software/chilisoft/index.html John -Original Message- From: Ben Souther [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 11, 2002 1:28 PM To: Tomcat Users List; [EMAIL PROTECTED] Subject: Re: Tomcat with ASP pages Search for Chilisoft ASP.. - Original Message - From: Brad Rhoads [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Wednesday, September 11, 2002 12:51 PM Subject: RE: Tomcat with ASP pages I don't think there's anyway to do so directly. There are several options for running ASP under Linux; just search Google. If your running NT, then configure IIS to work with tomcat for your JSP/JAVA stuff and leave the ASP to IIS. -Original Message- From: Lionel Tafel [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 11, 2002 11:27 AM To: Tomcat Users List Subject: Tomcat with ASP pages Hi, i'm traing to run an asp page into tomcat, it's possible? thanks = Lionel A. Tafel -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: SSL on Tomcat standalone not working
Great tip :), of course you need to use https://, what an oversight on my part... oh well But shouldn't Tomcat return an error page if someone types in http://servername:8443/ by mistake? It is rather ambiguous what's going on with the current return of '' Michael Petres ~ InnovObjX Corp. Web: www.innovobjx.com Tel: 905-729-2235 x3 Fax: 905-729-2235 ~ -Original Message- From: Wolfgang Stein [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 11, 2002 12:03 PM To: [EMAIL PROTECTED] Subject: SSL on Tomcat standalone not working Just a silly suggestion from my own silly experiences with Tomcat 3: If i typed http:// instead of https:// then i always got some Maybe that helps Wolfgang -Original Message- From: Ratner, Ian [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 11, 2002 5:55 PM To: 'Tomcat Users List' Subject: RE: SSL on Tomcat standalone not working I'm having the same problem. Can you let me know if you find a solution? Thanks, Ian -Original Message- From: Michael Petres [mailto:[EMAIL PROTECTED]] Sent: Tuesday, September 10, 2002 6:51 PM To: [EMAIL PROTECTED] Subject: SSL on Tomcat standalone not working I have a tomcat standalone deployment I am trying to enable SSL on. I have faithfully followed the SSL-how to. When I start tomcat the error logs indicate NO errors. The port 8443 has an HTTP connector loaded on it. The problem is that when I try to access a webapp on port 8443 (works on port 8080), the reply the browser gets is: -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Shutdown problem
Ok, There is a thread running after shutdown that is the AWT EventDispatchThread. How do I kill this puppy? Michael Petres ~ InnovObjX Corp. Web: www.innovobjx.com Tel: 905-729-2235 x3 Fax: 905-729-2235 ~ -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 11, 2002 9:01 AM To: Tomcat Users List Subject: RE: Shutdown problem Hi, This was discussed many times ;) You probably have non-daemon threads still running. The JVM will keep running as long as non-daemon threads haven't terminated (see java.lang.Thread docs). Yoav Shapira Millennium ChemInformatics -Original Message- From: Michael Petres [mailto:[EMAIL PROTECTED]] Sent: Tuesday, September 10, 2002 7:32 PM To: [EMAIL PROTECTED] Subject: Shutdown problem Perhaps this was discussed before... I can't find a suitable solution to my problem on the archives... When I stop tomcat using the shutdown.bat (shutdown.sh) on Windows 2000, the java process in which tomcat runs is not terminated. While servlets are active, they no longer respond to requests... What could be causing this? No errors reported in the log files... Michael Petres ~ InnovObjX Corp. Web: www.innovobjx.com Tel: 905-729-2235 x3 Fax: 905-729-2235 ~ -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]