AW: Tomcat - Request Handling
If the resources are allocated in the jsp there are two options: - use a try/finally block in your jsp where you release all resources that are allocated - if you have several jsp's that allocate the same resources you can create a subclass that allocates and free's the resources (have done that more than 2 years ago, so I can't remember the details) P.S: Make shure that your code doesn't produce a deadlock if two or more requests are processed at the same time. (That's my first guess for the reason that causes the symptoms you observed) Watch for synchronized and for locks on resources you use (database, files, ...). -Ursprüngliche Nachricht- Von: Reto Badertscher [mailto:[EMAIL PROTECTED]] Gesendet: Donnerstag, 24. Januar 2002 08:42 An: Tomcat Users List Betreff: Tomcat - Request Handling What can i do to ensure that the resource is always released (my servlet forwards to a JSP, after the JSP has finished the resource can be released). Would it be better to write a subclass of a JSP and implement this in a finally block of the service method? -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Stand alone Tomcat 3.2.2 - Virtual hosting
I have a problem where I am loosing my gif's when I set up virtual hosting. Using Tomcat 3.2.2 in stand alone mode, I have updated server.xml to include: Host name=domain1 Context path= docBase=webapps/myapp ... /Context /Host My gif files are located under webapps/myapp/image and are referenced in code as such - in fact, everything works fine without the virtual hosting. However, when I add in the Host name..., I can't see any gifs when I run the application. I have tried to find the images under every path I can think of with no luck. Has anyone run into this problem before or does anyone have a solution? As always, all help is greatly appreciated! Thanks; Mark
AW: Tomcat - Request Handling
Thanks for your help. I thought that a filter would be the best place to release resources? I'll check for deadlocks - that seems to be pretty hard. Reto -Ursprüngliche Nachricht- Von: Ralph Einfeldt [mailto:[EMAIL PROTECTED]] Gesendet: Donnerstag, 24. Januar 2002 09:22 An: Tomcat Users List Betreff: AW: Tomcat - Request Handling If the resources are allocated in the jsp there are two options: - use a try/finally block in your jsp where you release all resources that are allocated - if you have several jsp's that allocate the same resources you can create a subclass that allocates and free's the resources (have done that more than 2 years ago, so I can't remember the details) P.S: Make shure that your code doesn't produce a deadlock if two or more requests are processed at the same time. (That's my first guess for the reason that causes the symptoms you observed) Watch for synchronized and for locks on resources you use (database, files, ...). -Ursprüngliche Nachricht- Von: Reto Badertscher [mailto:[EMAIL PROTECTED]] Gesendet: Donnerstag, 24. Januar 2002 08:42 An: Tomcat Users List Betreff: Tomcat - Request Handling What can i do to ensure that the resource is always released (my servlet forwards to a JSP, after the JSP has finished the resource can be released). Would it be better to write a subclass of a JSP and implement this in a finally block of the service method? -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: mod_webapp building help
I have the same problem under RedHat 7.2. If you know how to fix it, notify me, please. Lloyd Meinholz wrote: The TEST thing seems to be fixed in the latest nightly build (20021119) and in the 4.0.2-b2 src download page. I'm having other problems on Sparc Solaris 8. I get the following messages: *** Warning: This library needs some functionality provided by -lwebapp. *** I have the capability to make that library automatically link in when *** you link to this library. But I can only do this if you have a *** shared version of the library, which you do not appear to have. *** Warning: libtool could not satisfy all declared inter-library *** dependencies of module mod_webapp. Therefore, libtool will create *** a static module, that should work as long as the dlopening *** application is linked with the -dlopen flag. Did you have this problem or have any idea how to fix it? I have a libwebapp.a and libwebapp.la built but no .so and I don't know how to build one and I'm not even sure that's what's being refered to by -lwebapp. Did you have this problem or do you have any idea how to solve it? Thanks, Lloyd -Original Message- From: Thad Humphries [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 23, 2002 2:45 PM To: Tomcat Users List Subject: Re: mod_webapp building help There is a README.txt file in the directory. Use that to learn how to point to apxs, etc. When I last downloaded the 4.0.1 source, the configure script was missing. I had to copy that out of my copy of the 4.0 source. I built mod_webapp on Sun Solaris 2.7 just last week. There were some tricks in doing it. First, I had to install a number of GNU tools on my SPARC (I got them from http://www.sunfreeware.com/). Second, I edited the configure script (again, the one from 4.0). I changed line 2505 from if {TEST} i! ${local_target} = apr to if ${TEST} ${local_target} = apr Lastly, I had to edit the Makefile.in to point to /usr/local/bin/libtool since the configure script did not properly @@LIBTOOL@@. All that finally built a mod_webapp.so for Solaris 2.7 and that has been working for me with Tomcat 4.0.1. On Wed, 2002-01-23 at 14:35, Rahadul Kabir wrote: can someone please tell me how to build Webapp-module from the source. is there any documentation about this on the Jakarta page. thanks. --rahad -- -- -- Thad Humphries ...no religious test shall ever be required Web Development Manager as a qualification to any office or public Phone: 540/675-3015, x225trust under the United States. -Article VI -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- - Gabriel Lopez Millan - Grupo ANTS-CIRCuS Facultad de Informática Universidad de Murcia (España) Tfo: +34 968367645
RE: Where is wrapper.properties in Tomcat 4.0.1?
Hi Tom, -Original Message- From: Tom Bednarz [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 23, 2002 5:12 PM To: Tomcat Users List Subject: RE: Where is wrapper.properties in Tomcat 4.0.1? Hi Anton, No parameter does not work but tomcat /? works. I guess it must be argc 1 to get the usage displayed. Oops, sorry, to lazy to check :) Do you know where I can get the sources for the Win32 service code. I am currently writing a library which allows a generic way to implement java programs as Win32 System Services. It seems that TOMCAT uses something similar. It could save me some time if I could look at those sources. (It must be a mixture of Java and C / C++ in conjunction with JNI) Since Tomcat is open source I suggest you search in CVS at http://cvs.apache.org/viewcvs/jakarta-tomcat-4.0/ There is folder http://cvs.apache.org/viewcvs/jakarta-tomcat-4.0/service/src/native/windows/ but it looks like empty, so maybe it resides in Tomcat 3.2 or 3.3 repository. I think you could try to get answers at tomcat-dev. BTW, could you post the results of your search? Thanks for your input! Thomas Anton. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
setting classpath in TOMCAT 4.0
hi all, I faced problem when try to set CLASSPATH in TOMCAT. I have my own java beans and servlets which located in others path. Where should i set these path in order to let TOMCAT refer it in runtime? -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
AW: Tomcat - Request Handling
I don't think that there is something like a general best place. It depends on design of the application. I like to keep the timeframe as short as possible where resources like databases or memory are allocated. That has for us the implication that the allocation of a resource is as near as possible to it's use and so is the deallocation. So I don't like the idea to use a filter to allocate and deallocate resources. Filter are for me tools to modify the request or the response or a place to do authentication and things like that. I admit that this is a quite personal standpoint. Some ways to get a better idea what happens: - If you are using unix/linux send a kill -QUIT pid to the vm. Then you will get a stacktrace for each thread in the core file. (I'm not shure if this is right in the windows world: start tomcat in a console so that the console stays open and hit something like control-z in the console window) - Attach a debugger and look at the stack for the threads - Use log messages to get a better idea what's the last thing that happens in each request. -Ursprüngliche Nachricht- Von: Reto Badertscher [mailto:[EMAIL PROTECTED]] Gesendet: Donnerstag, 24. Januar 2002 09:34 An: Tomcat Users List Betreff: AW: Tomcat - Request Handling Thanks for your help. I thought that a filter would be the best place to release resources? I'll check for deadlocks - that seems to be pretty hard. Reto -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Who starts tomcat??
Hi, -Original Message- From: Emerson [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 23, 2002 8:42 PM To: Tomcat Users List Subject: RE: Who starts tomcat?? does it (tomcat 4) have already a good user interface to the manager webapp? Yeap, you just need to make some changes to web.xml of manager application, like docs says :)) Anton. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Sources for Tomcat 4.0.1 Win32 Service
Hi, -Original Message- From: Tom Bednarz [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 23, 2002 6:35 PM To: [EMAIL PROTECTED] Subject: Sources for Tomcat 4.0.1 Win32 Service Hi, More specifically I currently have the following problem: I have uninstalled the service to re-install it with special JVM parameters. If I execute tomcat /? I get the following help: D:\Tomcat4.0\bintomcat /? To install a service: -install service_name jvm_library (jvm_option)* -start start_class [-method start_method] [-params (start_parameter)+] [-stop start_class [-method stop_method] [-params (stop_parameter)+]] [-out out_log_file] [-err err_log_file] [-current current_dir] [-path extra_path] To uninstall a service: -uninstall service_name Unfortunately I have no idea what the name of the start class is. Also I don't know if there are any more parameters. Name of start class for me is org.apache.catalina.startup.BootstrapService, it also a stop class too. Here is me inst.bat for installing Tomcat as a service: (all at one line) @tomcat.exe -install Tom C:\jdk1.3\jre\bin\hotspot\jvm.dll -jvm_option -Djava.class.path=C:\tomcat.402b2\bin\bootstrap.jar -jvm_option -Dcatalina.home=C:\tomcat.402b2 -start org.apache.catalina.startup.BootstrapService -params start -stop org.apache.catalina.startup.BootstrapService -params stop -out C:\tomcat.402b2\logs\service.out -err C:\tomcat.402b2\logs\service.err I guess I should call something like: tomcat -install Apache Tomcat 4.0 d:\javasoft\jre131\bin\hotspot\jvm.dll -Xms64M -Xmx512MB -start LOTS OF PARAMETERS I DON'T KNOW You still can add -X or -server options but they should be after -jvm_option. Is there anywhere some documentation on this or can anybody help me? Many thanks for your help! Thomas Hope it helps. Anton. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
My Apache1.3+ Tomcat4.0.1 are running well together, but ...
I don't know the method that I used to bind them is right, please help me. Of course edit the httpd.conf file . first, find these four lines in the httpd.conf file : 1,#LoadModule proxy_module modules/mod_proxy.so 2,#AddModule mod_proxy.c 3,#IfModule mod_proxy.c ... 4,#/IfModule second,get rid of the four # symbols. third,at the middle of 3 and 4 insert some lines just as this: ProxyRequests On ProxyPass /stateless/ http://hostname:8080/stateless/ ProxyPassReverse /stateless/ http://hostname:8080/stateless/ at last, restart the apache, all are OK! who know the reason! (I got it from the document of oc4j)
RE: setting classpath in TOMCAT 4.0
Hi, -Original Message- From: Jeff Ong [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 24, 2002 12:47 PM To: Tomcat Users List Subject: setting classpath in TOMCAT 4.0 hi all, I faced problem when try to set CLASSPATH in TOMCAT. I have my own java beans and servlets which located in others path. Where should i set these path in order to let TOMCAT refer it in runtime? You just need to put your classes to WEB-INF/classes of your web-application or to WEB-INF/lib if they're packaged as .jar There are couple of places you could also use, just RTM :)) Anton. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
mod_webapp problem.. please haaaalp
I am having problems with mod_webapp.. Yes i have browsed the archives, no i haven't found an answer. Heres the scenario . Tomcat 4.0.1 and Apache 1.3.22 running on solaris 8 sparc. Both of these work fine independantly. Entry in httpd.conf LoadModule webapp_module libexec/mod_webapp.so WebAppConnection warpConnection warp localhost:8008 WebAppDeploy webdav warpConnection /webdav/ WebAppInfo /webappinfo Entry in apache error log file when trying /webappinfo [Thu Jan 24 12:36:41 2002] [error] [client 10.7.235.141] File does not exist: /usr/local/apache_1.3.22/htdocs/webappinfo Any ideas please. I would realy like to get thois working. Oh dear, I think you'll find reality's on the blink again. -- Marvin The Paranoid Android -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: setting classpath in TOMCAT 4.0
thanks Anton :) - Original Message - From: Anton Brazhnyk [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Thursday, January 24, 2002 7:15 PM Subject: RE: setting classpath in TOMCAT 4.0 Hi, -Original Message- From: Jeff Ong [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 24, 2002 12:47 PM To: Tomcat Users List Subject: setting classpath in TOMCAT 4.0 hi all, I faced problem when try to set CLASSPATH in TOMCAT. I have my own java beans and servlets which located in others path. Where should i set these path in order to let TOMCAT refer it in runtime? You just need to put your classes to WEB-INF/classes of your web-application or to WEB-INF/lib if they're packaged as .jar There are couple of places you could also use, just RTM :)) Anton. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: mod_webapp problem.. please haaaalp
I would try: LoadModule webapp_module libexec/mod_webapp.so WebAppConnection warpConnection warp localhost:8008 WebAppDeploy examples warpConnection /examples for a start. also you missed AddModule mod_webapp.c in your httpd.conf and did you specify your SeverName as well (very important)? Dom -Original Message- From: thys de wet [mailto:[EMAIL PROTECTED]] Sent: 24 January 2002 10:59 To: [EMAIL PROTECTED] Subject: mod_webapp problem.. please hlp I am having problems with mod_webapp.. Yes i have browsed the archives, no i haven't found an answer. Heres the scenario . Tomcat 4.0.1 and Apache 1.3.22 running on solaris 8 sparc. Both of these work fine independantly. Entry in httpd.conf LoadModule webapp_module libexec/mod_webapp.so WebAppConnection warpConnection warp localhost:8008 WebAppDeploy webdav warpConnection /webdav/ WebAppInfo /webappinfo Entry in apache error log file when trying /webappinfo [Thu Jan 24 12:36:41 2002] [error] [client 10.7.235.141] File does not exist: /usr/local/apache_1.3.22/htdocs/webappinfo Any ideas please. I would realy like to get thois working. Oh dear, I think you'll find reality's on the blink again. -- Marvin The Paranoid Android -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
ClassCastException in tomcat4
Hello.. I have a problem with tomcat 4. My servlet application run's fine under jserv and tomcat 3.3 under tomcat4 receive a java.lang.ClassCastException deep in my startup process.. load classes with the classLoader.. try { System.out.println(loadClass:+clazz); Object o = Thread.currentThread().getContextClassLoader().loadClass(clazz).newInstance(); System.out.println(Instance:+o.toString()); de.SB.parser.hook.Section s = (de.SB.parser.hook.Section)o; } catch(Exception e) { System.out.println(e.toString()); } Here my STDOUT: loadClass:de.SB..parser.hook.Section Instance:de.SB.parser.hook.Section@62cb55 java.lang.ClassCastException: de.SB.parser.hook.Section a simple TypeCast.. I use under all versions (jserv,tomcat3.3,tomcat4) java version 1.3.1 Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1-b24) Java HotSpot(TM) Client VM (build 1.3.1-b24, mixed mode) Linux Kernal 2.4.10 I attempted also that: ClassLoader.getSystemClassLoader().loadClass(clazz).newInstance(); but the instance of Section is really ok I hope yours can help me rene -- _ never trust a klingon -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: mod_webapp problem.. please haaaalp
I've tried that, my servername is specified in httpd.conf, I've also added Addmodule mod_webapp.c. I still get the same problems.. -Original Message- From: Cressatti, Dominique [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 24, 2002 1:32 PM To: Tomcat Users List Subject: RE: mod_webapp problem.. please hlp I would try: LoadModule webapp_module libexec/mod_webapp.so WebAppConnection warpConnection warp localhost:8008 WebAppDeploy examples warpConnection /examples for a start. also you missed AddModule mod_webapp.c in your httpd.conf and did you specify your SeverName as well (very important)? Dom -Original Message- From: thys de wet [mailto:[EMAIL PROTECTED]] Sent: 24 January 2002 10:59 To: [EMAIL PROTECTED] Subject: mod_webapp problem.. please hlp I am having problems with mod_webapp.. Yes i have browsed the archives, no i haven't found an answer. Heres the scenario . Tomcat 4.0.1 and Apache 1.3.22 running on solaris 8 sparc. Both of these work fine independantly. Entry in httpd.conf LoadModule webapp_module libexec/mod_webapp.so WebAppConnection warpConnection warp localhost:8008 WebAppDeploy webdav warpConnection /webdav/ WebAppInfo /webappinfo Entry in apache error log file when trying /webappinfo [Thu Jan 24 12:36:41 2002] [error] [client 10.7.235.141] File does not exist: /usr/local/apache_1.3.22/htdocs/webappinfo Any ideas please. I would realy like to get thois working. Oh dear, I think you'll find reality's on the blink again. -- Marvin The Paranoid Android -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
READER to InputStream
I know I'm a looser but can anybody tell me quickly how I can get a Reader to an InputStream. I've searched for quite a while but I didn't find anything yet ! PLEASE Thanx Oliver AXA eSolutions GmbH AXA Konzern AG Germany Oliver Lauer Web Architect Wörthstraße 34 D-50668 Köln Germany Tel.: +49 221 148 31277 Fax: +49 221 148 43963 Mobil: +49 179 59 064 59 e-Mail: [EMAIL PROTECTED] _ -- Aus Rechts- und Sicherheitsgruenden ist die in dieser E-Mail gegebene Information nicht rechtsverbindlich. Eine rechtsverbindliche Bestaetigung reichen wir Ihnen gerne auf Anforderung in schriftlicher Form nach. Beachten Sie bitte, dass jede Form der unautorisierten Nutzung, Veroeffentlichung, Vervielfaeltigung oder Weitergabe des Inhalts dieser E-Mail nicht gestattet ist.Diese Nachricht ist ausschliesslich fuer den bezeichneten Adressaten oder dessen Vertreter bestimmt. Sollten Sie nicht der vorgesehene Adressat dieser E-Mail oder dessen Vertreter sein, so bitten wir Sie, sich mit dem Absender der E-Mail in Verbindung zu setzen. For legal and security reasons the information provided in this e-mail is not legally binding. Upon request we would be pleased to provide you with a legally binding confirmation in written form. Any form of unauthorised use, publication, reproduction, copying or disclosure of the content of this e-mail is not permitted. This message is exclusively for the person addressed or their representative. If you are not the intended recipient of this message and its contents, please notify the sender immediately. == -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: READER to InputStream
You need a Reader object pointing to an InputStream ? Reader r=new java.io.InputStreamReader(myInputStream); is it that what you want ? -Original Message- From: Lauer, Oliver [mailto:[EMAIL PROTECTED]] Sent: donderdag 24 januari 2002 13:05 To: Tomcat Users List (E-Mail) Subject: READER to InputStream I know I'm a looser but can anybody tell me quickly how I can get a Reader to an InputStream. I've searched for quite a while but I didn't find anything yet ! PLEASE Thanx Oliver AXA eSolutions GmbH AXA Konzern AG Germany Oliver Lauer Web Architect Wörthstraße 34 D-50668 Köln Germany Tel.: +49 221 148 31277 Fax: +49 221 148 43963 Mobil: +49 179 59 064 59 e-Mail: [EMAIL PROTECTED] _ -- Aus Rechts- und Sicherheitsgruenden ist die in dieser E-Mail gegebene Information nicht rechtsverbindlich. Eine rechtsverbindliche Bestaetigung reichen wir Ihnen gerne auf Anforderung in schriftlicher Form nach. Beachten Sie bitte, dass jede Form der unautorisierten Nutzung, Veroeffentlichung, Vervielfaeltigung oder Weitergabe des Inhalts dieser E-Mail nicht gestattet ist.Diese Nachricht ist ausschliesslich fuer den bezeichneten Adressaten oder dessen Vertreter bestimmt. Sollten Sie nicht der vorgesehene Adressat dieser E-Mail oder dessen Vertreter sein, so bitten wir Sie, sich mit dem Absender der E-Mail in Verbindung zu setzen. For legal and security reasons the information provided in this e-mail is not legally binding. Upon request we would be pleased to provide you with a legally binding confirmation in written form. Any form of unauthorised use, publication, reproduction, copying or disclosure of the content of this e-mail is not permitted. This message is exclusively for the person addressed or their representative. If you are not the intended recipient of this message and its contents, please notify the sender immediately. == -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: mod_webapp problem.. please haaaalp
you know what I meant by servername (not the one associated with virtualhost)? unommenting #ServerName and specifying your box like: ServerName DNSNameOfyourServer. Also did you remove/unmented that WebAppInfo directive? Also where did you put WebAppconnection? just after LoadModule? Dom -Original Message- From: thys de wet [mailto:[EMAIL PROTECTED]] Sent: 24 January 2002 12:02 To: 'Tomcat Users List' Subject: RE: mod_webapp problem.. please hlp I've tried that, my servername is specified in httpd.conf, I've also added Addmodule mod_webapp.c. I still get the same problems.. -Original Message- From: Cressatti, Dominique [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 24, 2002 1:32 PM To: Tomcat Users List Subject: RE: mod_webapp problem.. please hlp I would try: LoadModule webapp_module libexec/mod_webapp.so WebAppConnection warpConnection warp localhost:8008 WebAppDeploy examples warpConnection /examples for a start. also you missed AddModule mod_webapp.c in your httpd.conf and did you specify your SeverName as well (very important)? Dom -Original Message- From: thys de wet [mailto:[EMAIL PROTECTED]] Sent: 24 January 2002 10:59 To: [EMAIL PROTECTED] Subject: mod_webapp problem.. please hlp I am having problems with mod_webapp.. Yes i have browsed the archives, no i haven't found an answer. Heres the scenario . Tomcat 4.0.1 and Apache 1.3.22 running on solaris 8 sparc. Both of these work fine independantly. Entry in httpd.conf LoadModule webapp_module libexec/mod_webapp.so WebAppConnection warpConnection warp localhost:8008 WebAppDeploy webdav warpConnection /webdav/ WebAppInfo /webappinfo Entry in apache error log file when trying /webappinfo [Thu Jan 24 12:36:41 2002] [error] [client 10.7.235.141] File does not exist: /usr/local/apache_1.3.22/htdocs/webappinfo Any ideas please. I would realy like to get thois working. Oh dear, I think you'll find reality's on the blink again. -- Marvin The Paranoid Android -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: mod_webapp problem.. please haaaalp
my httpd.conf now looks like : ServerName isolde.ics.didata.com LoadModule webapp_module libexec/mod_webapp.so AddModule mod_webapp.c WebAppConnection warpConnection warp localhost:8008 WebAppDeploy webdav warpConnection /webdav/ WebAppInfo /webappinfo still no joy :( -Original Message- From: Cressatti, Dominique [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 24, 2002 2:14 PM To: Tomcat Users List Subject: RE: mod_webapp problem.. please hlp you know what I meant by servername (not the one associated with virtualhost)? unommenting #ServerName and specifying your box like: ServerName DNSNameOfyourServer. Also did you remove/unmented that WebAppInfo directive? Also where did you put WebAppconnection? just after LoadModule? Dom -Original Message- From: thys de wet [mailto:[EMAIL PROTECTED]] Sent: 24 January 2002 12:02 To: 'Tomcat Users List' Subject: RE: mod_webapp problem.. please hlp I've tried that, my servername is specified in httpd.conf, I've also added Addmodule mod_webapp.c. I still get the same problems.. -Original Message- From: Cressatti, Dominique [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 24, 2002 1:32 PM To: Tomcat Users List Subject: RE: mod_webapp problem.. please hlp I would try: LoadModule webapp_module libexec/mod_webapp.so WebAppConnection warpConnection warp localhost:8008 WebAppDeploy examples warpConnection /examples for a start. also you missed AddModule mod_webapp.c in your httpd.conf and did you specify your SeverName as well (very important)? Dom -Original Message- From: thys de wet [mailto:[EMAIL PROTECTED]] Sent: 24 January 2002 10:59 To: [EMAIL PROTECTED] Subject: mod_webapp problem.. please hlp I am having problems with mod_webapp.. Yes i have browsed the archives, no i haven't found an answer. Heres the scenario . Tomcat 4.0.1 and Apache 1.3.22 running on solaris 8 sparc. Both of these work fine independantly. Entry in httpd.conf LoadModule webapp_module libexec/mod_webapp.so WebAppConnection warpConnection warp localhost:8008 WebAppDeploy webdav warpConnection /webdav/ WebAppInfo /webappinfo Entry in apache error log file when trying /webappinfo [Thu Jan 24 12:36:41 2002] [error] [client 10.7.235.141] File does not exist: /usr/local/apache_1.3.22/htdocs/webappinfo Any ideas please. I would realy like to get thois working. Oh dear, I think you'll find reality's on the blink again. -- Marvin The Paranoid Android -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
AW: READER to InputStream
No, I've a Reader and need an InputStream, sounds silly but the API needs so...:-( AXA eSolutions GmbH AXA Konzern AG Germany Oliver Lauer Web Architect Wörthstraße 34 D-50668 Köln Germany Tel.: +49 221 148 31277 Fax: +49 221 148 43963 Mobil: +49 179 59 064 59 e-Mail: [EMAIL PROTECTED] _ -Ursprüngliche Nachricht- Von: Walter De Wit [mailto:[EMAIL PROTECTED]] Gesendet: Donnerstag, 24. Januar 2002 13:09 An: 'Tomcat Users List' Betreff: RE: READER to InputStream You need a Reader object pointing to an InputStream ? Reader r=new java.io.InputStreamReader(myInputStream); is it that what you want ? -Original Message- From: Lauer, Oliver [mailto:[EMAIL PROTECTED]] Sent: donderdag 24 januari 2002 13:05 To: Tomcat Users List (E-Mail) Subject: READER to InputStream I know I'm a looser but can anybody tell me quickly how I can get a Reader to an InputStream. I've searched for quite a while but I didn't find anything yet ! PLEASE Thanx Oliver AXA eSolutions GmbH AXA Konzern AG Germany Oliver Lauer Web Architect Wörthstraße 34 D-50668 Köln Germany Tel.: +49 221 148 31277 Fax: +49 221 148 43963 Mobil: +49 179 59 064 59 e-Mail: [EMAIL PROTECTED] _ -- Aus Rechts- und Sicherheitsgruenden ist die in dieser E-Mail gegebene Information nicht rechtsverbindlich. Eine rechtsverbindliche Bestaetigung reichen wir Ihnen gerne auf Anforderung in schriftlicher Form nach. Beachten Sie bitte, dass jede Form der unautorisierten Nutzung, Veroeffentlichung, Vervielfaeltigung oder Weitergabe des Inhalts dieser E-Mail nicht gestattet ist.Diese Nachricht ist ausschliesslich fuer den bezeichneten Adressaten oder dessen Vertreter bestimmt. Sollten Sie nicht der vorgesehene Adressat dieser E-Mail oder dessen Vertreter sein, so bitten wir Sie, sich mit dem Absender der E-Mail in Verbindung zu setzen. For legal and security reasons the information provided in this e-mail is not legally binding. Upon request we would be pleased to provide you with a legally binding confirmation in written form. Any form of unauthorised use, publication, reproduction, copying or disclosure of the content of this e-mail is not permitted. This message is exclusively for the person addressed or their representative. If you are not the intended recipient of this message and its contents, please notify the sender immediately. == -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- Aus Rechts- und Sicherheitsgruenden ist die in dieser E-Mail gegebene Information nicht rechtsverbindlich. Eine rechtsverbindliche Bestaetigung reichen wir Ihnen gerne auf Anforderung in schriftlicher Form nach. Beachten Sie bitte, dass jede Form der unautorisierten Nutzung, Veroeffentlichung, Vervielfaeltigung oder Weitergabe des Inhalts dieser E-Mail nicht gestattet ist.Diese Nachricht ist ausschliesslich fuer den bezeichneten Adressaten oder dessen Vertreter bestimmt. Sollten Sie nicht der vorgesehene Adressat dieser E-Mail oder dessen Vertreter sein, so bitten wir Sie, sich mit dem Absender der E-Mail in Verbindung zu setzen. For legal and security reasons the information provided in this e-mail is not legally binding. Upon request we would be pleased to provide you with a legally binding confirmation in written form. Any form of unauthorised use, publication, reproduction, copying or disclosure of the content of this e-mail is not permitted. This message is exclusively for the person addressed or their representative. If you are not the intended recipient of this message and its contents, please notify the sender immediately. == -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: mod_webapp problem.. please haaaalp
LoadModule webapp_module libexec/mod_webapp.so has to be under other LoadModule lines AddModule mod_webapp.c has to be under other AddModule lines and then add WebAppConnection warpConnection warp localhost:8008 WebAppDeploy examples warpConnection /examples at the END of your httpd.conf and remove the one you had before. Then see if apache still complains. if not I'll tell you how to test it then. Dom -Original Message- From: thys de wet [mailto:[EMAIL PROTECTED]] Sent: 24 January 2002 12:19 To: 'Tomcat Users List' Subject: RE: mod_webapp problem.. please hlp my httpd.conf now looks like : ServerName isolde.ics.didata.com LoadModule webapp_module libexec/mod_webapp.so AddModule mod_webapp.c WebAppConnection warpConnection warp localhost:8008 WebAppDeploy webdav warpConnection /webdav/ WebAppInfo /webappinfo still no joy :( -Original Message- From: Cressatti, Dominique [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 24, 2002 2:14 PM To: Tomcat Users List Subject: RE: mod_webapp problem.. please hlp you know what I meant by servername (not the one associated with virtualhost)? unommenting #ServerName and specifying your box like: ServerName DNSNameOfyourServer. Also did you remove/unmented that WebAppInfo directive? Also where did you put WebAppconnection? just after LoadModule? Dom -Original Message- From: thys de wet [mailto:[EMAIL PROTECTED]] Sent: 24 January 2002 12:02 To: 'Tomcat Users List' Subject: RE: mod_webapp problem.. please hlp I've tried that, my servername is specified in httpd.conf, I've also added Addmodule mod_webapp.c. I still get the same problems.. -Original Message- From: Cressatti, Dominique [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 24, 2002 1:32 PM To: Tomcat Users List Subject: RE: mod_webapp problem.. please hlp I would try: LoadModule webapp_module libexec/mod_webapp.so WebAppConnection warpConnection warp localhost:8008 WebAppDeploy examples warpConnection /examples for a start. also you missed AddModule mod_webapp.c in your httpd.conf and did you specify your SeverName as well (very important)? Dom -Original Message- From: thys de wet [mailto:[EMAIL PROTECTED]] Sent: 24 January 2002 10:59 To: [EMAIL PROTECTED] Subject: mod_webapp problem.. please hlp I am having problems with mod_webapp.. Yes i have browsed the archives, no i haven't found an answer. Heres the scenario . Tomcat 4.0.1 and Apache 1.3.22 running on solaris 8 sparc. Both of these work fine independantly. Entry in httpd.conf LoadModule webapp_module libexec/mod_webapp.so WebAppConnection warpConnection warp localhost:8008 WebAppDeploy webdav warpConnection /webdav/ WebAppInfo /webappinfo Entry in apache error log file when trying /webappinfo [Thu Jan 24 12:36:41 2002] [error] [client 10.7.235.141] File does not exist: /usr/local/apache_1.3.22/htdocs/webappinfo Any ideas please. I would realy like to get thois working. Oh dear, I think you'll find reality's on the blink again. -- Marvin The Paranoid Android -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Tomcat Performance Expectations?
One common misconception that people seem to have about Tomcat (and application servers in general) is that you can predict how well an application will perform on that server without any real details of the application, but exact hardware details. For almost all applications that Tomcat is going to serve, the majority of CPU time will be spent in your application. The majority of network traffic will be specific to your application. The majority of memory might be your application (Tomcat might actually tie with you here). The point being, of all the possible factors that can limit the transactions per second or whatever other performance metric you want to consider, your application is the biggest blocker, not Tomcat, not the OS. My best advice is for you to try it out. Set up a load test and see. One potential bottleneck you didn't mention, by the way, is your bandwidth between you and your users - this can also limit the number of transactions (which is a rather vague term when discussing app servers) you will receive. Randy -Original Message- From: Brown Bay [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 23, 2002 10:49 PM To: Tomcat Users List Subject: Tomcat Performance Expectations? I have a single servlet based application. This application is accessed througha browser and travels over to a high performance database through a RMI-IIOP connection. It is not the best application in terms of code tuning. We are deploying this application on Tomcat 4.0.1, Apache 1.3, Suse Linux 7.0 on a PIII 800Mz machine with 800Mz RAM. We are not planning on adding multiple instances of Tomcat/Apache for the time being (or we are not quite sure that our machine might be able to sustain that many threads of either) Based on this what is the maximum number or requests that I can expect to obtain from my applications. Can I expect say 1000 (or maybe 5000 or more) concurrent users. How many requests/sec can I expect while delivering acceptible response on the browser. The reason I have asked such an open-ended question is that you might have deployed your production system on such a configuration and must have achieved some bechmarks. Please take the time and give me an estimate. Thanks in advance. Brown. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: READER to InputStream
No, I've a Reader and need an InputStream, sounds silly but the API needs so...:-( The abstract class Reader doesn't have any method to report which InputStream it is connected to. I think you may be out of luck. On the other hand, tell us more about the problem - it sounds interesting. J. -- You're only jealous cos the little penguins are talking to me. *** For more information on Ordnance Survey products and services, visit our web site at http://www.ordnancesurvey.co.uk *** -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Tomcat/Apache acces control
hi everybody, I'd like that directories under my Virtual Host's DocumentRoot can't be browsed by an URL ... I supposed that the Apache configuration could resolve this (in a Directory directive, put the line Options -Indexes), but it doesn't work ...(browsing is always enabled by the Tomcat/Apache service!!) Is this with tomcat configuration (server.xml or web.xml) that I can control this stuff or do I have a problem with my httpd.conf ? Directory /var/tomcat4/webapps/univ Options None Order Allow,Deny Deny from all /Directory thanks in advance -- Julien OIX Service Informatique de Gestion Tél: 02 40 99 83 65 mail: [EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
FW: servlets work but JSPs not!
-Original Message- From: Elif Zeynep Buyukduman [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 24, 2002 2:28 PM To: [EMAIL PROTECTED] Subject: servlets work but JSPs not! hi, I am a quite new user of Tomcat. I did set it up, but there seems to be a simple problem. When I run the server and open the entrance page on the browser(localhost:8080), i can view the servlet examples, that are given by tomcat but the JSP Examples do not execute, server errors occur, and are printed like: --- Apache Tomcat/4.0.1 - HTTP Status 500 - Internal Server Error type Exception report message Internal Server Error description The server encountered an internal error (Internal Server Error) that prevented it from fulfilling this request. exception javax.servlet.ServletException: sun/tools/javac/Main at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:484) 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:201) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase .java:472) 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:2344) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164 ) 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:462) 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 :163) 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.connector.http.HttpProcessor.process(HttpProcessor.java: 1011) at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1106 ) at java.lang.Thread.run(Thread.java:536) root cause java.lang.NoClassDefFoundError: sun/tools/javac/Main at org.apache.jasper.compiler.SunJavaCompiler.compile(SunJavaCompiler.java:128) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:271) at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:546) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspSe rvlet.java:177) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja va:189) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474) 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
RE: servlets work but JSPs not!
You do not have your JAVA_HOME environtment variable set correctly, specifically JAVA_HOME/lib/javac.jar is not a valid file path. Randy -Original Message- From: Elif Zeynep Buyukduman [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 24, 2002 7:42 AM To: [EMAIL PROTECTED] Subject: FW: servlets work but JSPs not! -Original Message- From: Elif Zeynep Buyukduman [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 24, 2002 2:28 PM To: [EMAIL PROTECTED] Subject: servlets work but JSPs not! hi, I am a quite new user of Tomcat. I did set it up, but there seems to be a simple problem. When I run the server and open the entrance page on the browser(localhost:8080), i can view the servlet examples, that are given by tomcat but the JSP Examples do not execute, server errors occur, and are printed like: -- -- -- -- -- -- --- Apache Tomcat/4.0.1 - HTTP Status 500 - Internal Server Error type Exception report message Internal Server Error description The server encountered an internal error (Internal Server Error) that prevented it from fulfilling this request. exception javax.servlet.ServletException: sun/tools/javac/Main at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:484) 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:201) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardP ipeline.java:5 66) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(Aut henticatorBase .java:472) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardP ipeline.java:5 64) at org.apache.catalina.valves.CertificatesValve.invoke(Certificat esValve.java:2 46) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardP ipeline.java:5 64) 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.StandardContext.invoke(StandardContex t.java:2344) at org.apache.catalina.core.StandardHostValve.invoke(StandardHost Valve.java:164 ) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardP ipeline.java:5 66) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDi spatcherValve. java:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardP ipeline.java:5 64) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReport Valve.java:170 ) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardP ipeline.java:5 64) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValv e.java:462) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardP ipeline.java:5 64) 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.StandardEngineValve.invoke(StandardEn gineValve.java :163) 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.connector.http.HttpProcessor.process(HttpP rocessor.java: 1011) at org.apache.catalina.connector.http.HttpProcessor.run(HttpProce ssor.java:1106 ) at java.lang.Thread.run(Thread.java:536) root cause java.lang.NoClassDefFoundError: sun/tools/javac/Main at org.apache.jasper.compiler.SunJavaCompiler.compile(SunJavaComp iler.java:128) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:271) at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:546) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfN ecessary(JspSe rvlet.java:177) at
specifying servlet in subdirectory in web.xml
Hi, how do I specify the location of class in a subdirectory. I have HelloWorldExample.class and LocalStrings.properties under /webapps/test/WEB-INF/classes and my web.xml looks like: ... servlet servlet-namehello/servlet-name servlet-classHelloWorldExample/servlet-class /servlet servlet-mapping servlet-namehello/servlet-name url-pattern/hello/url-pattern /servlet-mapping ... It all works find I point my browser to http://localhost:8080/test/hello. However if I move HelloWorldExample.class and LocalStrings.properties under /webapps/test/WEB-INF/classes/hello and change my web.xml (to reflect the move) to: ... servlet servlet-namehello/servlet-name servlet-classhello.HelloWorldExample/servlet-class /servlet ... pointing my browser to http://localhost:8080/test/hello comes up with: error 500 location/test/hello internal error java.lang.NoClassDefFoundError: hello/HelloWorldExample (wrong name: HelloWorldExample) why? I suspect that didn't define the path in servlet-class correctly so what's the right syntax? Thanks Dom
RE: mod_webapp problem.. please haaaalp
I did all that. I still get The requestes URL /examples was not found on this server any further ideas ? -Original Message- From: Cressatti, Dominique [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 24, 2002 2:25 PM To: Tomcat Users List Subject: RE: mod_webapp problem.. please hlp LoadModule webapp_module libexec/mod_webapp.so has to be under other LoadModule lines AddModule mod_webapp.c has to be under other AddModule lines and then add WebAppConnection warpConnection warp localhost:8008 WebAppDeploy examples warpConnection /examples at the END of your httpd.conf and remove the one you had before. Then see if apache still complains. if not I'll tell you how to test it then. Dom -Original Message- From: thys de wet [mailto:[EMAIL PROTECTED]] Sent: 24 January 2002 12:19 To: 'Tomcat Users List' Subject: RE: mod_webapp problem.. please hlp my httpd.conf now looks like : ServerName isolde.ics.didata.com LoadModule webapp_module libexec/mod_webapp.so AddModule mod_webapp.c WebAppConnection warpConnection warp localhost:8008 WebAppDeploy webdav warpConnection /webdav/ WebAppInfo /webappinfo still no joy :( -Original Message- From: Cressatti, Dominique [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 24, 2002 2:14 PM To: Tomcat Users List Subject: RE: mod_webapp problem.. please hlp you know what I meant by servername (not the one associated with virtualhost)? unommenting #ServerName and specifying your box like: ServerName DNSNameOfyourServer. Also did you remove/unmented that WebAppInfo directive? Also where did you put WebAppconnection? just after LoadModule? Dom -Original Message- From: thys de wet [mailto:[EMAIL PROTECTED]] Sent: 24 January 2002 12:02 To: 'Tomcat Users List' Subject: RE: mod_webapp problem.. please hlp I've tried that, my servername is specified in httpd.conf, I've also added Addmodule mod_webapp.c. I still get the same problems.. -Original Message- From: Cressatti, Dominique [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 24, 2002 1:32 PM To: Tomcat Users List Subject: RE: mod_webapp problem.. please hlp I would try: LoadModule webapp_module libexec/mod_webapp.so WebAppConnection warpConnection warp localhost:8008 WebAppDeploy examples warpConnection /examples for a start. also you missed AddModule mod_webapp.c in your httpd.conf and did you specify your SeverName as well (very important)? Dom -Original Message- From: thys de wet [mailto:[EMAIL PROTECTED]] Sent: 24 January 2002 10:59 To: [EMAIL PROTECTED] Subject: mod_webapp problem.. please hlp I am having problems with mod_webapp.. Yes i have browsed the archives, no i haven't found an answer. Heres the scenario . Tomcat 4.0.1 and Apache 1.3.22 running on solaris 8 sparc. Both of these work fine independantly. Entry in httpd.conf LoadModule webapp_module libexec/mod_webapp.so WebAppConnection warpConnection warp localhost:8008 WebAppDeploy webdav warpConnection /webdav/ WebAppInfo /webappinfo Entry in apache error log file when trying /webappinfo [Thu Jan 24 12:36:41 2002] [error] [client 10.7.235.141] File does not exist: /usr/local/apache_1.3.22/htdocs/webappinfo Any ideas please. I would realy like to get thois working. Oh dear, I think you'll find reality's on the blink again. -- Marvin The Paranoid Android -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: specifying servlet in subdirectory in web.xml
The directories under the classes directory correspond to the package statement used in the source file. If you want to call your class hello.HelloWorldExample then you need to put package hello; as the first line of HelloWorldExample.java and recompile. Randy -Original Message- From: Cressatti, Dominique [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 24, 2002 7:40 AM To: Tomcat Users List Subject: specifying servlet in subdirectory in web.xml Hi, how do I specify the location of class in a subdirectory. I have HelloWorldExample.class and LocalStrings.properties under /webapps/test/WEB-INF/classes and my web.xml looks like: ... servlet servlet-namehello/servlet-name servlet-classHelloWorldExample/servlet-class /servlet servlet-mapping servlet-namehello/servlet-name url-pattern/hello/url-pattern /servlet-mapping ... It all works find I point my browser to http://localhost:8080/test/hello. However if I move HelloWorldExample.class and LocalStrings.properties under /webapps/test/WEB-INF/classes/hello and change my web.xml (to reflect the move) to: ... servlet servlet-namehello/servlet-name servlet-classhello.HelloWorldExample/servlet-class /servlet ... pointing my browser to http://localhost:8080/test/hello comes up with: error 500 location/test/hello internal error java.lang.NoClassDefFoundError: hello/HelloWorldExample (wrong name: HelloWorldExample) why? I suspect that didn't define the path in servlet-class correctly so what's the right syntax? Thanks Dom -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: servlets work but JSPs not!
thanks Randy, but isn`t this variable line correct? set path=JAVA_HOME;C:\jdk1.1.8\ i think it is. oooRR do i need to do something specific: e.g. set path=JAVA_HOME;C:\jdk1.1.8\bin\ ?? Zeynep -Original Message- From: Randy Layman [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 24, 2002 1:55 PM To: 'Tomcat Users List' Subject: RE: servlets work but JSPs not! You do not have your JAVA_HOME environtment variable set correctly, specifically JAVA_HOME/lib/javac.jar is not a valid file path. Randy -Original Message- From: Elif Zeynep Buyukduman [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 24, 2002 7:42 AM To: [EMAIL PROTECTED] Subject: FW: servlets work but JSPs not! -Original Message- From: Elif Zeynep Buyukduman [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 24, 2002 2:28 PM To: [EMAIL PROTECTED] Subject: servlets work but JSPs not! hi, I am a quite new user of Tomcat. I did set it up, but there seems to be a simple problem. When I run the server and open the entrance page on the browser(localhost:8080), i can view the servlet examples, that are given by tomcat but the JSP Examples do not execute, server errors occur, and are printed like: -- -- -- -- -- -- --- Apache Tomcat/4.0.1 - HTTP Status 500 - Internal Server Error type Exception report message Internal Server Error description The server encountered an internal error (Internal Server Error) that prevented it from fulfilling this request. exception javax.servlet.ServletException: sun/tools/javac/Main at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:484) 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:201) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardP ipeline.java:5 66) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(Aut henticatorBase .java:472) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardP ipeline.java:5 64) at org.apache.catalina.valves.CertificatesValve.invoke(Certificat esValve.java:2 46) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardP ipeline.java:5 64) 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.StandardContext.invoke(StandardContex t.java:2344) at org.apache.catalina.core.StandardHostValve.invoke(StandardHost Valve.java:164 ) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardP ipeline.java:5 66) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDi spatcherValve. java:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardP ipeline.java:5 64) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReport Valve.java:170 ) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardP ipeline.java:5 64) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValv e.java:462) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardP ipeline.java:5 64) 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.StandardEngineValve.invoke(StandardEn gineValve.java :163) 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.connector.http.HttpProcessor.process(HttpP rocessor.java: 1011) at org.apache.catalina.connector.http.HttpProcessor.run(HttpProce ssor.java:1106 ) at java.lang.Thread.run(Thread.java:536) root cause java.lang.NoClassDefFoundError: sun/tools/javac/Main at
RE: Who starts tomcat??
Nice job on the script John. One comment about runlevels rc.X directories for linux users though... It appears to differ from Solaris a bit. Thought this explanation might be useful to anyone who, like me, is knew to Unix and scripting... Hence, apologies for any inaccuracies! Took me a bit to fathom all this out! I guess it expands on Ron's explanation. The format of the script in init.d looks something like this: #!/bin/sh #Start TC # case $1 in start) echo Starting TomCat 4 su - nocat -c usr/local/tomcat/bin/startup.sh ;; stop) echo Stopping TomCat 4 su - nocat -c /usr/local/tomcat/bin/shutdown.sh ;; restart) ;; esac When a Unix box boots the init process passes start to the script, conversely on shutdown it passes stop. In the rc0.d directory a sym. link: ln -s ../init.d/nameofscript Kxxservicename is needed where xx is a number up to 99 and servicename is a meaningful name. In the rc2.d directory a sym. link: ln -s ../init.d/nameofscript Sxxservicename is also needed. Note the K and S - K for kill and S for start. Everything in rc0.d is executed with value stop when the machine hits run-level 0 (shutdown) and everything in rc2.d is executed with value start when the machine hits run-level 2 (multi-user). There are other rc directories - e.g. 6 for reboot - but 0 and 2 should be enough. Most linux systems use either run level 3 or 5 for normal operations. 3 - Normal operations 5 - Normal operations w/ X-Windows login So basically use John's 'ln' command above from the rc3.d rc5.d directories also. One final note, the scripts (via the links) are executed in increasing servicename order. (S00, S05, S10, S15,...) so keep this in mind if you have any dependincies. Multiple scripts with the same servicename (number) don't appear to be a problem, but, there is no guarantee which will be executed first. Seems to work fine on Solaris 8. Note that the env. variables CATALINA_HOME and JAVA_HOME are set in catalina.sh. Thanks, John Quote for the week: The men with the muck-rakes are often indispensable to the well-being of society; but only if they know when to stop raking the muck. Theodore Roosevelt, Speech in New York, 11 Nov. 1902 -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: READER to InputStream
Stuff your readers content in an array and open an InputStream with the array...(ByteArrayInputStream takes an array as a constructor) You have to play around with it though, since it could be that it needs some conversion of some sort to corrrectly end up in the inputstream.. Mvgr, Martin -Original Message- From: Lauer, Oliver [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 24, 2002 13:19 To: 'Tomcat Users List' Subject: AW: READER to InputStream No, I've a Reader and need an InputStream, sounds silly but the API needs so...:-( AXA eSolutions GmbH AXA Konzern AG Germany Oliver Lauer Web Architect Wörthstraße 34 D-50668 Köln Germany Tel.: +49 221 148 31277 Fax: +49 221 148 43963 Mobil: +49 179 59 064 59 e-Mail: [EMAIL PROTECTED] _ -Ursprüngliche Nachricht- Von: Walter De Wit [mailto:[EMAIL PROTECTED]] Gesendet: Donnerstag, 24. Januar 2002 13:09 An: 'Tomcat Users List' Betreff: RE: READER to InputStream You need a Reader object pointing to an InputStream ? Reader r=new java.io.InputStreamReader(myInputStream); is it that what you want ? -Original Message- From: Lauer, Oliver [mailto:[EMAIL PROTECTED]] Sent: donderdag 24 januari 2002 13:05 To: Tomcat Users List (E-Mail) Subject: READER to InputStream I know I'm a looser but can anybody tell me quickly how I can get a Reader to an InputStream. I've searched for quite a while but I didn't find anything yet ! PLEASE Thanx Oliver AXA eSolutions GmbH AXA Konzern AG Germany Oliver Lauer Web Architect Wörthstraße 34 D-50668 Köln Germany Tel.: +49 221 148 31277 Fax: +49 221 148 43963 Mobil: +49 179 59 064 59 e-Mail: [EMAIL PROTECTED] _ -- -- -- Aus Rechts- und Sicherheitsgruenden ist die in dieser E-Mail gegebene Information nicht rechtsverbindlich. Eine rechtsverbindliche Bestaetigung reichen wir Ihnen gerne auf Anforderung in schriftlicher Form nach. Beachten Sie bitte, dass jede Form der unautorisierten Nutzung, Veroeffentlichung, Vervielfaeltigung oder Weitergabe des Inhalts dieser E-Mail nicht gestattet ist.Diese Nachricht ist ausschliesslich fuer den bezeichneten Adressaten oder dessen Vertreter bestimmt. Sollten Sie nicht der vorgesehene Adressat dieser E-Mail oder dessen Vertreter sein, so bitten wir Sie, sich mit dem Absender der E-Mail in Verbindung zu setzen. For legal and security reasons the information provided in this e-mail is not legally binding. Upon request we would be pleased to provide you with a legally binding confirmation in written form. Any form of unauthorised use, publication, reproduction, copying or disclosure of the content of this e-mail is not permitted. This message is exclusively for the person addressed or their representative. If you are not the intended recipient of this message and its contents, please notify the sender immediately. == == == -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- Aus Rechts- und Sicherheitsgruenden ist die in dieser E-Mail gegebene Information nicht rechtsverbindlich. Eine rechtsverbindliche Bestaetigung reichen wir Ihnen gerne auf Anforderung in schriftlicher Form nach. Beachten Sie bitte, dass jede Form der unautorisierten Nutzung, Veroeffentlichung, Vervielfaeltigung oder Weitergabe des Inhalts dieser E-Mail nicht gestattet ist.Diese Nachricht ist ausschliesslich fuer den bezeichneten Adressaten oder dessen Vertreter bestimmt. Sollten Sie nicht der vorgesehene Adressat dieser E-Mail oder dessen Vertreter sein, so bitten wir Sie, sich mit dem Absender der E-Mail in Verbindung zu setzen. For legal and security reasons the information provided in this e-mail is not legally binding. Upon request we would be pleased to provide you with a legally binding confirmation in written form. Any form of unauthorised use, publication, reproduction, copying or disclosure of the content of this e-mail is not permitted. This message is exclusively for the person addressed or their representative. If you are not the intended recipient of this message and its contents, please notify the sender immediately. == -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe:
AW: READER to InputStream / SOAP/JAXB
Hi, I'm using SOAP with JAXB to make me nice Java from that XML :-) I receive the XML via attachement: --- AttachmentPart attachment = (AttachmentPart)it.next(); Object content = attachment.getContent(); javax.xml.transform.stream.StreamSource contentSource = (javax.xml.transform.stream.StreamSource)content; I need an InputStream for the unmarshal method of the generated JAXB classes (stoccs) This one doesn't work - it is null: -- InputStream ip = contentSource.getInputStream(); --- The contentSource has only a Reader; a String Reader. The method below works: --- java.io.StringReader sr = (java.io.StringReader)contentSource.getReader(); --- But this is the JAXB-method and it requires an InputStream: --- stoccs = stoccs.unmarshal (isr); --- Thanx AXA eSolutions GmbH AXA Konzern AG Germany Oliver Lauer Web Architect Wörthstraße 34 D-50668 Köln Germany Tel.: +49 221 148 31277 Fax: +49 221 148 43963 Mobil: +49 179 59 064 59 e-Mail: [EMAIL PROTECTED] _ -Ursprüngliche Nachricht- Von: Justin Rowles [mailto:[EMAIL PROTECTED]] Gesendet: Donnerstag, 24. Januar 2002 13:30 An: 'Tomcat Users List' Betreff: RE: READER to InputStream No, I've a Reader and need an InputStream, sounds silly but the API needs so...:-( The abstract class Reader doesn't have any method to report which InputStream it is connected to. I think you may be out of luck. On the other hand, tell us more about the problem - it sounds interesting. J. -- You're only jealous cos the little penguins are talking to me. *** For more information on Ordnance Survey products and services, visit our web site at http://www.ordnancesurvey.co.uk *** -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- Aus Rechts- und Sicherheitsgruenden ist die in dieser E-Mail gegebene Information nicht rechtsverbindlich. Eine rechtsverbindliche Bestaetigung reichen wir Ihnen gerne auf Anforderung in schriftlicher Form nach. Beachten Sie bitte, dass jede Form der unautorisierten Nutzung, Veroeffentlichung, Vervielfaeltigung oder Weitergabe des Inhalts dieser E-Mail nicht gestattet ist.Diese Nachricht ist ausschliesslich fuer den bezeichneten Adressaten oder dessen Vertreter bestimmt. Sollten Sie nicht der vorgesehene Adressat dieser E-Mail oder dessen Vertreter sein, so bitten wir Sie, sich mit dem Absender der E-Mail in Verbindung zu setzen. For legal and security reasons the information provided in this e-mail is not legally binding. Upon request we would be pleased to provide you with a legally binding confirmation in written form. Any form of unauthorised use, publication, reproduction, copying or disclosure of the content of this e-mail is not permitted. This message is exclusively for the person addressed or their representative. If you are not the intended recipient of this message and its contents, please notify the sender immediately. == -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: servlets work but JSPs not!
You need set JAVA_HOME=C:\jdk1.1.8 for Tomcat to work. If you want to type java at a command prompt you want set PATH=C:\jdk1.1.8\bin Randy -Original Message- From: Elif Zeynep Buyukduman [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 24, 2002 7:48 AM To: Tomcat Users List Subject: RE: servlets work but JSPs not! thanks Randy, but isn`t this variable line correct? set path=JAVA_HOME;C:\jdk1.1.8\ i think it is. oooRR do i need to do something specific: e.g. set path=JAVA_HOME;C:\jdk1.1.8\bin\ ?? Zeynep -Original Message- From: Randy Layman [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 24, 2002 1:55 PM To: 'Tomcat Users List' Subject: RE: servlets work but JSPs not! You do not have your JAVA_HOME environtment variable set correctly, specifically JAVA_HOME/lib/javac.jar is not a valid file path. Randy -Original Message- From: Elif Zeynep Buyukduman [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 24, 2002 7:42 AM To: [EMAIL PROTECTED] Subject: FW: servlets work but JSPs not! -Original Message- From: Elif Zeynep Buyukduman [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 24, 2002 2:28 PM To: [EMAIL PROTECTED] Subject: servlets work but JSPs not! hi, I am a quite new user of Tomcat. I did set it up, but there seems to be a simple problem. When I run the server and open the entrance page on the browser(localhost:8080), i can view the servlet examples, that are given by tomcat but the JSP Examples do not execute, server errors occur, and are printed like: -- -- -- -- -- -- --- Apache Tomcat/4.0.1 - HTTP Status 500 - Internal Server Error type Exception report message Internal Server Error description The server encountered an internal error (Internal Server Error) that prevented it from fulfilling this request. exception javax.servlet.ServletException: sun/tools/javac/Main at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:484) 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:201) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardP ipeline.java:5 66) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(Aut henticatorBase .java:472) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardP ipeline.java:5 64) at org.apache.catalina.valves.CertificatesValve.invoke(Certificat esValve.java:2 46) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardP ipeline.java:5 64) 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.StandardContext.invoke(StandardContex t.java:2344) at org.apache.catalina.core.StandardHostValve.invoke(StandardHost Valve.java:164 ) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardP ipeline.java:5 66) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDi spatcherValve. java:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardP ipeline.java:5 64) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReport Valve.java:170 ) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardP ipeline.java:5 64) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValv e.java:462) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardP ipeline.java:5 64) 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.StandardEngineValve.invoke(StandardEn gineValve.java :163) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardP ipeline.java:5 66) at
Absolute path in AutoWebApp - bug?
Hi! On win32-platform it seems that using an absolute path in the dir property of the AutoWebApp tag in my server.xml does not work properly. I have the following directive set in my server.xml: AutoWebApp dir=d:/testa/jakarta-tomcat-3.3a/webapps host=DEFAULT/ Starting tomcat, the following message appears in the console: AutoWebApp: No autoconf directory c:\vosp2\d:\testa\jakarta-tomcat-3.3a\webapps Since c:\vosp2 is declared as the home property in my ContextManager tag, it seems to me like the AutoWebApp tag does not support absolute paths... I need to make this work. Is there a workaround? Thanks /Erik _ Chatta med vänner online, prova MSN Messenger: http://messenger.msn.se -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: specifying servlet in subdirectory in web.xml
Thanks a lot of things start to make sense now Dom -Original Message- From: Randy Layman [mailto:[EMAIL PROTECTED]] Sent: 24 January 2002 11:59 To: 'Tomcat Users List' Subject: RE: specifying servlet in subdirectory in web.xml The directories under the classes directory correspond to the package statement used in the source file. If you want to call your class hello.HelloWorldExample then you need to put package hello; as the first line of HelloWorldExample.java and recompile. Randy -Original Message- From: Cressatti, Dominique [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 24, 2002 7:40 AM To: Tomcat Users List Subject: specifying servlet in subdirectory in web.xml Hi, how do I specify the location of class in a subdirectory. I have HelloWorldExample.class and LocalStrings.properties under /webapps/test/WEB-INF/classes and my web.xml looks like: ... servlet servlet-namehello/servlet-name servlet-classHelloWorldExample/servlet-class /servlet servlet-mapping servlet-namehello/servlet-name url-pattern/hello/url-pattern /servlet-mapping ... It all works find I point my browser to http://localhost:8080/test/hello. However if I move HelloWorldExample.class and LocalStrings.properties under /webapps/test/WEB-INF/classes/hello and change my web.xml (to reflect the move) to: ... servlet servlet-namehello/servlet-name servlet-classhello.HelloWorldExample/servlet-class /servlet ... pointing my browser to http://localhost:8080/test/hello comes up with: error 500 location/test/hello internal error java.lang.NoClassDefFoundError: hello/HelloWorldExample (wrong name: HelloWorldExample) why? I suspect that didn't define the path in servlet-class correctly so what's the right syntax? Thanks Dom -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Tomcat/Apache acces control
Hi, -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Julien OIX Sent: Thursday, January 24, 2002 2:37 PM To: Tomcat list Subject: Tomcat/Apache acces control hi everybody, I'd like that directories under my Virtual Host's DocumentRoot can't be browsed by an URL ... I supposed that the Apache configuration could resolve this (in a Directory directive, put the line Options -Indexes), but it doesn't work ...(browsing is always enabled by the Tomcat/Apache service!!) Is this with tomcat configuration (server.xml or web.xml) that I can control this stuff or do I have a problem with my httpd.conf ? I don't know about the way (if possible) to do it with Apache, but you should be able to do it with Tomcat. if you don't care about indexing in the apps other then yours you could edit your CATALINA_BASE/conf/web.xml servlet servlet-namedefault/servlet-name servlet-classorg.apache.catalina.servlets.DefaultServlet/servlet-class init-param param-namedebug/param-name param-value0/param-value /init-param init-param param-namelistings/param-name param-valuefalse/param-value !-- HERE it was true by default -- /init-param /servlet or you could disable an indexing in your app only, in its web.xml : servlet servlet-namemy_default/servlet-name servlet-classorg.apache.catalina.servlets.DefaultServlet/servlet-class init-param param-namedebug/param-name param-value0/param-value /init-param init-param param-namelistings/param-name param-valuefalse/param-value /init-param /servlet servlet-mapping servlet-namemy_default/servlet-name url-pattern//url-pattern /servlet-mapping thanks in advance -- Julien OIX Service Informatique de Gestion T?l: 02 40 99 83 65 mail: [EMAIL PROTECTED] Hope it helps. Anton. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: servlets work but JSPs not!
did u set your CLASSPATH correctly ? -Original Message- From: Elif Zeynep Buyukduman [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 24, 2002 2:48 PM To: Tomcat Users List Subject: RE: servlets work but JSPs not! thanks Randy, but isn`t this variable line correct? set path=JAVA_HOME;C:\jdk1.1.8\ i think it is. oooRR do i need to do something specific: e.g. set path=JAVA_HOME;C:\jdk1.1.8\bin\ ?? Zeynep -Original Message- From: Randy Layman [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 24, 2002 1:55 PM To: 'Tomcat Users List' Subject: RE: servlets work but JSPs not! You do not have your JAVA_HOME environtment variable set correctly, specifically JAVA_HOME/lib/javac.jar is not a valid file path. Randy -Original Message- From: Elif Zeynep Buyukduman [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 24, 2002 7:42 AM To: [EMAIL PROTECTED] Subject: FW: servlets work but JSPs not! -Original Message- From: Elif Zeynep Buyukduman [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 24, 2002 2:28 PM To: [EMAIL PROTECTED] Subject: servlets work but JSPs not! hi, I am a quite new user of Tomcat. I did set it up, but there seems to be a simple problem. When I run the server and open the entrance page on the browser(localhost:8080), i can view the servlet examples, that are given by tomcat but the JSP Examples do not execute, server errors occur, and are printed like: -- -- -- -- -- -- --- Apache Tomcat/4.0.1 - HTTP Status 500 - Internal Server Error type Exception report message Internal Server Error description The server encountered an internal error (Internal Server Error) that prevented it from fulfilling this request. exception javax.servlet.ServletException: sun/tools/javac/Main at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:484) 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:201) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardP ipeline.java:5 66) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(Aut henticatorBase .java:472) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardP ipeline.java:5 64) at org.apache.catalina.valves.CertificatesValve.invoke(Certificat esValve.java:2 46) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardP ipeline.java:5 64) 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.StandardContext.invoke(StandardContex t.java:2344) at org.apache.catalina.core.StandardHostValve.invoke(StandardHost Valve.java:164 ) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardP ipeline.java:5 66) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDi spatcherValve. java:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardP ipeline.java:5 64) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReport Valve.java:170 ) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardP ipeline.java:5 64) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValv e.java:462) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardP ipeline.java:5 64) 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.StandardEngineValve.invoke(StandardEn gineValve.java :163) 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.connector.http.HttpProcessor.process(HttpP rocessor.java: 1011) at
AW: READER to InputStream
But I need byte[] - how do I get that ? AXA eSolutions GmbH AXA Konzern AG Germany Oliver Lauer Web Architect Wörthstraße 34 D-50668 Köln Germany Tel.: +49 221 148 31277 Fax: +49 221 148 43963 Mobil: +49 179 59 064 59 e-Mail: [EMAIL PROTECTED] _ -Ursprüngliche Nachricht- Von: Martin van den Bemt [mailto:[EMAIL PROTECTED]] Gesendet: Donnerstag, 24. Januar 2002 13:41 An: Tomcat Users List Betreff: RE: READER to InputStream Stuff your readers content in an array and open an InputStream with the array...(ByteArrayInputStream takes an array as a constructor) You have to play around with it though, since it could be that it needs some conversion of some sort to corrrectly end up in the inputstream.. Mvgr, Martin -Original Message- From: Lauer, Oliver [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 24, 2002 13:19 To: 'Tomcat Users List' Subject: AW: READER to InputStream No, I've a Reader and need an InputStream, sounds silly but the API needs so...:-( AXA eSolutions GmbH AXA Konzern AG Germany Oliver Lauer Web Architect Wörthstraße 34 D-50668 Köln Germany Tel.: +49 221 148 31277 Fax: +49 221 148 43963 Mobil: +49 179 59 064 59 e-Mail: [EMAIL PROTECTED] _ -Ursprüngliche Nachricht- Von: Walter De Wit [mailto:[EMAIL PROTECTED]] Gesendet: Donnerstag, 24. Januar 2002 13:09 An: 'Tomcat Users List' Betreff: RE: READER to InputStream You need a Reader object pointing to an InputStream ? Reader r=new java.io.InputStreamReader(myInputStream); is it that what you want ? -Original Message- From: Lauer, Oliver [mailto:[EMAIL PROTECTED]] Sent: donderdag 24 januari 2002 13:05 To: Tomcat Users List (E-Mail) Subject: READER to InputStream I know I'm a looser but can anybody tell me quickly how I can get a Reader to an InputStream. I've searched for quite a while but I didn't find anything yet ! PLEASE Thanx Oliver AXA eSolutions GmbH AXA Konzern AG Germany Oliver Lauer Web Architect Wörthstraße 34 D-50668 Köln Germany Tel.: +49 221 148 31277 Fax: +49 221 148 43963 Mobil: +49 179 59 064 59 e-Mail: [EMAIL PROTECTED] _ -- -- -- Aus Rechts- und Sicherheitsgruenden ist die in dieser E-Mail gegebene Information nicht rechtsverbindlich. Eine rechtsverbindliche Bestaetigung reichen wir Ihnen gerne auf Anforderung in schriftlicher Form nach. Beachten Sie bitte, dass jede Form der unautorisierten Nutzung, Veroeffentlichung, Vervielfaeltigung oder Weitergabe des Inhalts dieser E-Mail nicht gestattet ist.Diese Nachricht ist ausschliesslich fuer den bezeichneten Adressaten oder dessen Vertreter bestimmt. Sollten Sie nicht der vorgesehene Adressat dieser E-Mail oder dessen Vertreter sein, so bitten wir Sie, sich mit dem Absender der E-Mail in Verbindung zu setzen. For legal and security reasons the information provided in this e-mail is not legally binding. Upon request we would be pleased to provide you with a legally binding confirmation in written form. Any form of unauthorised use, publication, reproduction, copying or disclosure of the content of this e-mail is not permitted. This message is exclusively for the person addressed or their representative. If you are not the intended recipient of this message and its contents, please notify the sender immediately. == == == -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- Aus Rechts- und Sicherheitsgruenden ist die in dieser E-Mail gegebene Information nicht rechtsverbindlich. Eine rechtsverbindliche Bestaetigung reichen wir Ihnen gerne auf Anforderung in schriftlicher Form nach. Beachten Sie bitte, dass jede Form der unautorisierten Nutzung, Veroeffentlichung, Vervielfaeltigung oder Weitergabe des Inhalts dieser E-Mail nicht gestattet ist.Diese Nachricht ist ausschliesslich fuer den bezeichneten Adressaten oder dessen Vertreter bestimmt. Sollten Sie nicht der vorgesehene Adressat dieser E-Mail oder dessen Vertreter sein, so bitten wir Sie, sich mit dem Absender der E-Mail in Verbindung zu setzen. For legal and security reasons the information provided in this e-mail is not legally binding. Upon request we would be pleased to provide you with a legally binding confirmation in written form. Any form of unauthorised use, publication, reproduction, copying or disclosure of the content of
Re: Fwd: Re: Tomcat 4.0.2-b2 + JSSE + Security Manager
Hi Glenn, Thanks for the advice. My last try was to leave security manager with just these lines: grant { permission java.security.AllPermission; }; ( which I premuse is the same as running without a security manager ) and it didn't work. I opened a bug report because I don't think I'm able to do something further. Thanks for the help ! Renato - Brazil On Wed, 23 Jan 2002 20:17:49 -0600, Glenn Nielsen [EMAIL PROTECTED] escreveu : Oh, one more thing you can try. Configure the following permission in your catalina.policy. permission java.security.SecurityPermission getProperty.cert.provider.x509v1; Regards, Glenn Renato wrote: This is the last message I got, besides the usual already reported. default context init failed: java.security.PrivilegedActionException java.security.NoSuchAlgorithmException: Algorithm SunX509 not available Looking at the docs, it looks like it couldn't find the JSSE libraries. I even forced the jsse.jar, jcert.jar and jnet.jar on the global classpath when starting Catalina but I still can't use Security Manager and JSSE at the same time. Anything else I could do ? On Tue, 22 Jan 2002 13:58:17 -0600, Glenn Nielsen [EMAIL PROTECTED] escreveu : Try starting tomcat 4 with -security and the following properties defined: -Djava.security.debug=access,failure -Djava.net.debug=ssl That should generate alot of debug data to help you track down the source of the problem. Regards, Glenn Renato wrote: Hi all, I'm installing Tomcat 4.0.2B2. Everything is fine except for the following: - I try to run a servlet that uses JSSE. If I start Catalina without the '- security' it works fine, if I start with the '-security' it generates the error: java.net.SocketException: SSL implementation not available (...) The JSSE libraries are on ${java.home}/jre/lib/ext and this path has permission to all. I also tried on Tomcat 3.3 and the servlet works with or without the security manager. Any hint ? Thanks Renato - Brazil -- To unsubscribe, e-mail: mailto:tomcat-dev- [EMAIL PROTECTED] For additional commands, e-mail: mailto:tomcat-dev- [EMAIL PROTECTED] -- -- Glenn Nielsen [EMAIL PROTECTED] | /* Spelin donut madder| MOREnet System Programming | * if iz ina coment. | Missouri Research and Education Network | */ | -- -- To unsubscribe, e-mail: mailto:tomcat-dev- [EMAIL PROTECTED] For additional commands, e-mail: mailto:tomcat-dev- [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:tomcat-dev- [EMAIL PROTECTED] For additional commands, e-mail: mailto:tomcat-dev- [EMAIL PROTECTED] -- -- Glenn Nielsen [EMAIL PROTECTED] | /* Spelin donut madder| MOREnet System Programming | * if iz ina coment. | Missouri Research and Education Network | */ | -- -- To unsubscribe, e-mail: mailto:tomcat-dev- [EMAIL PROTECTED] For additional commands, e-mail: mailto:tomcat-dev- [EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
JDBC drivers
All, The JDBC drivers provided by Oracle are zipped but as I understand it, only jar files are recognised. Is this correct? If so, I guess I'll have to unzip and then jar? I'm using TC 4 on Solaris 8. Thanks, John Quote for the week: The men with the muck-rakes are often indispensable to the well-being of society; but only if they know when to stop raking the muck. Theodore Roosevelt, Speech in New York, 11 Nov. 1902 -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: servlets work but JSPs not!
For Tomcat 4 (which is what this person is using - the stack trace mentions Catalina), the CLASSPATH environment variable is not used since so many people didn't understand how to properly set it up for TC 3.1 and 3.2. Randy -Original Message- From: Altug B. Altintas [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 24, 2002 8:02 AM To: Tomcat Users List Subject: RE: servlets work but JSPs not! did u set your CLASSPATH correctly ? -Original Message- From: Elif Zeynep Buyukduman [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 24, 2002 2:48 PM To: Tomcat Users List Subject: RE: servlets work but JSPs not! thanks Randy, but isn`t this variable line correct? set path=JAVA_HOME;C:\jdk1.1.8\ i think it is. oooRR do i need to do something specific: e.g. set path=JAVA_HOME;C:\jdk1.1.8\bin\ ?? Zeynep -Original Message- From: Randy Layman [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 24, 2002 1:55 PM To: 'Tomcat Users List' Subject: RE: servlets work but JSPs not! You do not have your JAVA_HOME environtment variable set correctly, specifically JAVA_HOME/lib/javac.jar is not a valid file path. Randy -Original Message- From: Elif Zeynep Buyukduman [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 24, 2002 7:42 AM To: [EMAIL PROTECTED] Subject: FW: servlets work but JSPs not! -Original Message- From: Elif Zeynep Buyukduman [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 24, 2002 2:28 PM To: [EMAIL PROTECTED] Subject: servlets work but JSPs not! hi, I am a quite new user of Tomcat. I did set it up, but there seems to be a simple problem. When I run the server and open the entrance page on the browser(localhost:8080), i can view the servlet examples, that are given by tomcat but the JSP Examples do not execute, server errors occur, and are printed like: -- -- -- -- -- -- --- Apache Tomcat/4.0.1 - HTTP Status 500 - Internal Server Error type Exception report message Internal Server Error description The server encountered an internal error (Internal Server Error) that prevented it from fulfilling this request. exception javax.servlet.ServletException: sun/tools/javac/Main at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:484) 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:201) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardP ipeline.java:5 66) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(Aut henticatorBase .java:472) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardP ipeline.java:5 64) at org.apache.catalina.valves.CertificatesValve.invoke(Certificat esValve.java:2 46) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardP ipeline.java:5 64) 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.StandardContext.invoke(StandardContex t.java:2344) at org.apache.catalina.core.StandardHostValve.invoke(StandardHost Valve.java:164 ) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardP ipeline.java:5 66) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDi spatcherValve. java:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardP ipeline.java:5 64) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReport Valve.java:170 ) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardP ipeline.java:5 64) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValv e.java:462) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardP ipeline.java:5 64) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
RE: JDBC drivers
JAR = Zip + restrictions on the structure. It turns out that Oracle was kind enough to include the correct structure so all you need to do is rename the .zip to .jar. Randy -Original Message- From: John Wadkin [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 24, 2002 8:35 AM To: Tomcat Users List (E-mail) Subject: JDBC drivers All, The JDBC drivers provided by Oracle are zipped but as I understand it, only jar files are recognised. Is this correct? If so, I guess I'll have to unzip and then jar? I'm using TC 4 on Solaris 8. Thanks, John Quote for the week: The men with the muck-rakes are often indispensable to the well-being of society; but only if they know when to stop raking the muck. Theodore Roosevelt, Speech in New York, 11 Nov. 1902 -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Tomcat/Apache acces control
Anton Brazhnyk a écrit : Hi, -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Julien OIX Sent: Thursday, January 24, 2002 2:37 PM To: Tomcat list Subject: Tomcat/Apache acces control hi everybody, I'd like that directories under my Virtual Host's DocumentRoot can't be browsed by an URL ... I supposed that the Apache configuration could resolve this (in a Directory directive, put the line Options -Indexes), but it doesn't work ...(browsing is always enabled by the Tomcat/Apache service!!) Is this with tomcat configuration (server.xml or web.xml) that I can control this stuff or do I have a problem with my httpd.conf ? I don't know about the way (if possible) to do it with Apache, but you should be able to do it with Tomcat. if you don't care about indexing in the apps other then yours you could edit your CATALINA_BASE/conf/web.xml servlet servlet-namedefault/servlet-name servlet-classorg.apache.catalina.servlets.DefaultServlet/servlet-class init-param param-namedebug/param-name param-value0/param-value /init-param init-param param-namelistings/param-name param-valuefalse/param-value !-- HERE it was true by default -- /init-param /servlet or you could disable an indexing in your app only, in its web.xml : servlet servlet-namemy_default/servlet-name servlet-classorg.apache.catalina.servlets.DefaultServlet/servlet-class init-param param-namedebug/param-name param-value0/param-value /init-param init-param param-namelistings/param-name param-valuefalse/param-value /init-param /servlet servlet-mapping servlet-namemy_default/servlet-name url-pattern//url-pattern /servlet-mapping thanks in advance -- Julien OIX Service Informatique de Gestion T?l: 02 40 99 83 65 mail: [EMAIL PROTECTED] Hope it helps. Anton. That's right thanks a lot, anton -- Julien OIX Service Informatique de Gestion Tél: 02 40 99 83 65 mail: [EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: JDBC drivers
just rename the file, you don't have unzip and rejar it (a jar is a zip file..) Mvgr Martin -Original Message- From: John Wadkin [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 24, 2002 14:35 To: Tomcat Users List (E-mail) Subject: JDBC drivers All, The JDBC drivers provided by Oracle are zipped but as I understand it, only jar files are recognised. Is this correct? If so, I guess I'll have to unzip and then jar? I'm using TC 4 on Solaris 8. Thanks, John Quote for the week: The men with the muck-rakes are often indispensable to the well-being of society; but only if they know when to stop raking the muck. Theodore Roosevelt, Speech in New York, 11 Nov. 1902 -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Tomcat / SOAP
Hi, Can someone tell me if tomcat supports SOAP? Best regards, Loïc -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: READER to InputStream
As I said, you have to play with it.. You can always stuff the array in a String and do a getBytes() afterwards ;)) Mvgr, Martin -Original Message- From: Lauer, Oliver [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 24, 2002 14:20 To: 'Tomcat Users List' Subject: AW: READER to InputStream But I need byte[] - how do I get that ? AXA eSolutions GmbH AXA Konzern AG Germany Oliver Lauer Web Architect Wörthstraße 34 D-50668 Köln Germany Tel.: +49 221 148 31277 Fax: +49 221 148 43963 Mobil: +49 179 59 064 59 e-Mail: [EMAIL PROTECTED] _ -Ursprüngliche Nachricht- Von: Martin van den Bemt [mailto:[EMAIL PROTECTED]] Gesendet: Donnerstag, 24. Januar 2002 13:41 An: Tomcat Users List Betreff: RE: READER to InputStream Stuff your readers content in an array and open an InputStream with the array...(ByteArrayInputStream takes an array as a constructor) You have to play around with it though, since it could be that it needs some conversion of some sort to corrrectly end up in the inputstream.. Mvgr, Martin -Original Message- From: Lauer, Oliver [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 24, 2002 13:19 To: 'Tomcat Users List' Subject: AW: READER to InputStream No, I've a Reader and need an InputStream, sounds silly but the API needs so...:-( AXA eSolutions GmbH AXA Konzern AG Germany Oliver Lauer Web Architect Wörthstraße 34 D-50668 Köln Germany Tel.: +49 221 148 31277 Fax: +49 221 148 43963 Mobil: +49 179 59 064 59 e-Mail: [EMAIL PROTECTED] _ -Ursprüngliche Nachricht- Von: Walter De Wit [mailto:[EMAIL PROTECTED]] Gesendet: Donnerstag, 24. Januar 2002 13:09 An: 'Tomcat Users List' Betreff: RE: READER to InputStream You need a Reader object pointing to an InputStream ? Reader r=new java.io.InputStreamReader(myInputStream); is it that what you want ? -Original Message- From: Lauer, Oliver [mailto:[EMAIL PROTECTED]] Sent: donderdag 24 januari 2002 13:05 To: Tomcat Users List (E-Mail) Subject: READER to InputStream I know I'm a looser but can anybody tell me quickly how I can get a Reader to an InputStream. I've searched for quite a while but I didn't find anything yet ! PLEASE Thanx Oliver AXA eSolutions GmbH AXA Konzern AG Germany Oliver Lauer Web Architect Wörthstraße 34 D-50668 Köln Germany Tel.: +49 221 148 31277 Fax: +49 221 148 43963 Mobil: +49 179 59 064 59 e-Mail: [EMAIL PROTECTED] _ -- -- -- Aus Rechts- und Sicherheitsgruenden ist die in dieser E-Mail gegebene Information nicht rechtsverbindlich. Eine rechtsverbindliche Bestaetigung reichen wir Ihnen gerne auf Anforderung in schriftlicher Form nach. Beachten Sie bitte, dass jede Form der unautorisierten Nutzung, Veroeffentlichung, Vervielfaeltigung oder Weitergabe des Inhalts dieser E-Mail nicht gestattet ist.Diese Nachricht ist ausschliesslich fuer den bezeichneten Adressaten oder dessen Vertreter bestimmt. Sollten Sie nicht der vorgesehene Adressat dieser E-Mail oder dessen Vertreter sein, so bitten wir Sie, sich mit dem Absender der E-Mail in Verbindung zu setzen. For legal and security reasons the information provided in this e-mail is not legally binding. Upon request we would be pleased to provide you with a legally binding confirmation in written form. Any form of unauthorised use, publication, reproduction, copying or disclosure of the content of this e-mail is not permitted. This message is exclusively for the person addressed or their representative. If you are not the intended recipient of this message and its contents, please notify the sender immediately. == == == -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- Aus Rechts- und Sicherheitsgruenden ist die in dieser E-Mail gegebene Information nicht rechtsverbindlich. Eine rechtsverbindliche Bestaetigung reichen wir Ihnen gerne auf Anforderung in schriftlicher Form nach. Beachten Sie bitte, dass jede Form der unautorisierten Nutzung, Veroeffentlichung, Vervielfaeltigung oder Weitergabe des Inhalts dieser E-Mail nicht gestattet ist.Diese Nachricht ist ausschliesslich fuer den bezeichneten Adressaten oder dessen Vertreter bestimmt. Sollten Sie nicht der
RE: Tomcat / SOAP
see http://xml.apache.org/soap/docs/index.html for a soap implementation.. Mvgr, Martin -Original Message- From: Loïc Lefèvre [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 24, 2002 14:43 To: Mailing List Tomcat Subject: Tomcat / SOAP Hi, Can someone tell me if tomcat supports SOAP? Best regards, Loïc -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
AW: Tomcat / SOAP
Or have a look at the JAXM-package from SUN. I work with that...and TC. Oliver AXA eSolutions GmbH AXA Konzern AG Germany Oliver Lauer Web Architect Wörthstraße 34 D-50668 Köln Germany Tel.: +49 221 148 31277 Fax: +49 221 148 43963 Mobil: +49 179 59 064 59 e-Mail: [EMAIL PROTECTED] _ -Ursprüngliche Nachricht- Von: Loïc Lefèvre [mailto:[EMAIL PROTECTED]] Gesendet: Donnerstag, 24. Januar 2002 14:43 An: Mailing List Tomcat Betreff: Tomcat / SOAP Hi, Can someone tell me if tomcat supports SOAP? Best regards, Loïc -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- Aus Rechts- und Sicherheitsgruenden ist die in dieser E-Mail gegebene Information nicht rechtsverbindlich. Eine rechtsverbindliche Bestaetigung reichen wir Ihnen gerne auf Anforderung in schriftlicher Form nach. Beachten Sie bitte, dass jede Form der unautorisierten Nutzung, Veroeffentlichung, Vervielfaeltigung oder Weitergabe des Inhalts dieser E-Mail nicht gestattet ist.Diese Nachricht ist ausschliesslich fuer den bezeichneten Adressaten oder dessen Vertreter bestimmt. Sollten Sie nicht der vorgesehene Adressat dieser E-Mail oder dessen Vertreter sein, so bitten wir Sie, sich mit dem Absender der E-Mail in Verbindung zu setzen. For legal and security reasons the information provided in this e-mail is not legally binding. Upon request we would be pleased to provide you with a legally binding confirmation in written form. Any form of unauthorised use, publication, reproduction, copying or disclosure of the content of this e-mail is not permitted. This message is exclusively for the person addressed or their representative. If you are not the intended recipient of this message and its contents, please notify the sender immediately. == -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: sending mail thru servlets
If you are adding jars outside of a WEB-INF/lib, you will have to restart Tomcat. The classloaders involved are only built during startup. If you are adding a jar to a web application, then you should only have to restart the web application. Cheers, Larry -Original Message- From: Anuerin G. Diaz [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 24, 2002 2:33 PM To: Tomcat Users List Subject: Re: sending mail thru servlets hi, kindly disregard the problem, i just copied the the jar files to the ${TOMCAT_HOME}/lib/apps directory and restarted tomcat. do i have to restart tomcat everytime i add a new jar library? help on how to automate this step ( copying of jar files to necessary locations) would be greatly appreciated. ciao! On Thu, 24 Jan 2002 14:05:06 -0500 Anuerin G. Diaz [EMAIL PROTECTED] wrote: hi, snip i noticed that the jar files were not copied to the deployment directory. where in the ${TOMCAT_HOME}/lib directory should i manually place the JavaMail (and JAF) APIs? or is this an ant-related question? thanks! -- Programming, an artform that fights back. = Anuerin G. Diaz Design Engineer Millennium Software, Incorporated 2305 B West Tower, Philippines Stocks Exchange Center, Exchange Road, Ortigas Center, Pasig City Tel# 638-3070 loc. 72 Fax# 638-3079 = -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- Programming, an artform that fights back. = Anuerin G. Diaz Design Engineer Millennium Software, Incorporated 2305 B West Tower, Philippines Stocks Exchange Center, Exchange Road, Ortigas Center, Pasig City Tel# 638-3070 loc. 72 Fax# 638-3079 = -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
AW: Tomcat - Request Handling
Yeah, fully agree - but implementing a filter i'm sure that my locks are removed. The workflow i think is now: -Servlet - JSP - Filter Thanks for your solutions. So I don't like the idea to use a filter to allocate and deallocate resources. The other solution is to overwrite the _jspService method to put the code into the finally section, or an eventhandler when the page was released (this indeed i would prefer), but don't know exactly how to do it. Regards Reto -Ursprüngliche Nachricht- Von: Ralph Einfeldt [mailto:[EMAIL PROTECTED]] Gesendet: Donnerstag, 24. Januar 2002 10:08 An: Tomcat Users List Betreff: AW: Tomcat - Request Handling I don't think that there is something like a general best place. It depends on design of the application. I like to keep the timeframe as short as possible where resources like databases or memory are allocated. That has for us the implication that the allocation of a resource is as near as possible to it's use and so is the deallocation. So I don't like the idea to use a filter to allocate and deallocate resources. Filter are for me tools to modify the request or the response or a place to do authentication and things like that. I admit that this is a quite personal standpoint. Some ways to get a better idea what happens: - If you are using unix/linux send a kill -QUIT pid to the vm. Then you will get a stacktrace for each thread in the core file. (I'm not shure if this is right in the windows world: start tomcat in a console so that the console stays open and hit something like control-z in the console window) - Attach a debugger and look at the stack for the threads - Use log messages to get a better idea what's the last thing that happens in each request. -Ursprüngliche Nachricht- Von: Reto Badertscher [mailto:[EMAIL PROTECTED]] Gesendet: Donnerstag, 24. Januar 2002 09:34 An: Tomcat Users List Betreff: AW: Tomcat - Request Handling Thanks for your help. I thought that a filter would be the best place to release resources? I'll check for deadlocks - that seems to be pretty hard. Reto -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: failure of Tomcat standalone to start
Bruce, Perhaps a clue to the problem. I attempted to start tomcat standalone under a debugger. i.e. ./bin/catalina debug Then issue the command: run I then obtained the following error message: Exception occurred: java.lang.NoSuchMethodError (uncaught) thread=main, org.apache.catalina.core.StandardServer.start(), line=502, bci=95 java.lang.reflect.InvocationTargetException: java.lang.NoSuchMethodError at org.apache.catalina.core.StandardContext.postWorkDirectory(StandardContext.java:3919) at org.apache.catalina.core.StandardContext.start(StandardContext.java:3328) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123) at org.apache.catalina.core.StandardHost.start(StandardHost.java:612) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:307) at org.apache.catalina.core.StandardService.start(StandardService.java:388) at org.apache.catalina.core.StandardServer.start(StandardServer.java:505) at org.apache.catalina.startup.Catalina.start(Catalina.java:776) at org.apache.catalina.startup.Catalina.execute(Catalina.java:681) at org.apache.catalina.startup.Catalina.process(Catalina.java:179) at java.lang.reflect.Method.invoke(Native Method) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243) I do not have the source but this may well be the reason why it fails to start with no message in the log. Have you the means to guess at the reason behind this? Regards, David. On Tuesday 22 January 2002 1:59 pm, you wrote: I don't think that there is a permissions issue as I tested this as root and the problem still occurred for me. The one point that you raised does need investigation. A clean install. I have previous versions of Tomcat installations on my machine (3.2, 3.1). Although you are supposed to be able to run them without interference controlled by JAVA_HOME, TOMCAT_HOME, CATALINA_HOME, maybe there is an issue here? Let's stay on the case, Bruce --- David Hewlett [EMAIL PROTECTED] wrote: Thanks, Good information indeed. But this makes me very curious. For a colleague did succeed with JDK1.3.1! There is a mystery here. Maybe related to permissions? Regards, David. On Tuesday 22 January 2002 2:36 am, you wrote: Hello David, Michael. I downloaded the j2sdk 1.4 beta 3 (actually the one with forte bundled with it) and changed my JAVA_HOME environment variable to point to this installation and it worked. Of course, this sdk is beta. If you could live with that then you can explore tomcat 4. Let me know if you find anything new. Thanks, Bruce __ Do You Yahoo!? Send FREE video emails in Yahoo! Mail! http://promo.yahoo.com/videomail/ __ Do You Yahoo!? Send FREE video emails in Yahoo! Mail! http://promo.yahoo.com/videomail/ -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: READER to InputStream
Hi, I'd suggest to implement your own stream with public int read() { return underlyingReader.read(); } it won't be so simple I think, but as starting point... Advantage - no need in buffers (memory) -Original Message- From: Lauer, Oliver [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 24, 2002 13:19 To: 'Tomcat Users List' Subject: AW: READER to InputStream No, I've a Reader and need an InputStream, sounds silly but the API needs so...:-( AXA eSolutions GmbH AXA Konzern AG Germany Oliver Lauer Web Architect W?rthstra?e 34 D-50668 K?ln Germany Tel.: +49 221 148 31277 Fax: +49 221 148 43963 Mobil: +49 179 59 064 59 e-Mail: [EMAIL PROTECTED] _ Anton. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
AW: Tomcat Performance Expectations?
Hello, i'm currently testing the application and agree with you. Nevertheless i would be happy if i had some guidelines for configuring Tomcat in a production environment (e.g. impact on setting the different parameters, which settings work best for which type of application, a.s.o). Regards Reto -Ursprüngliche Nachricht- Von: Randy Layman [mailto:[EMAIL PROTECTED]] Gesendet: Donnerstag, 24. Januar 2002 12:45 An: 'Tomcat Users List' Betreff: RE: Tomcat Performance Expectations? One common misconception that people seem to have about Tomcat (and application servers in general) is that you can predict how well an application will perform on that server without any real details of the application, but exact hardware details. For almost all applications that Tomcat is going to serve, the majority of CPU time will be spent in your application. The majority of network traffic will be specific to your application. The majority of memory might be your application (Tomcat might actually tie with you here). The point being, of all the possible factors that can limit the transactions per second or whatever other performance metric you want to consider, your application is the biggest blocker, not Tomcat, not the OS. My best advice is for you to try it out. Set up a load test and see. One potential bottleneck you didn't mention, by the way, is your bandwidth between you and your users - this can also limit the number of transactions (which is a rather vague term when discussing app servers) you will receive. Randy -Original Message- From: Brown Bay [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 23, 2002 10:49 PM To: Tomcat Users List Subject: Tomcat Performance Expectations? I have a single servlet based application. This application is accessed througha browser and travels over to a high performance database through a RMI-IIOP connection. It is not the best application in terms of code tuning. We are deploying this application on Tomcat 4.0.1, Apache 1.3, Suse Linux 7.0 on a PIII 800Mz machine with 800Mz RAM. We are not planning on adding multiple instances of Tomcat/Apache for the time being (or we are not quite sure that our machine might be able to sustain that many threads of either) Based on this what is the maximum number or requests that I can expect to obtain from my applications. Can I expect say 1000 (or maybe 5000 or more) concurrent users. How many requests/sec can I expect while delivering acceptible response on the browser. The reason I have asked such an open-ended question is that you might have deployed your production system on such a configuration and must have achieved some bechmarks. Please take the time and give me an estimate. Thanks in advance. Brown. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Absolute path in AutoWebApp - bug?
This is fixed in the current Tomcat 3.3.1-dev, which you can get at: http://jakarta.apache.org/builds/jakarta-tomcat/nightly-3.3.x/ Cheers, Larry -Original Message- From: Erik Billerby [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 24, 2002 7:50 AM To: [EMAIL PROTECTED] Subject: Absolute path in AutoWebApp - bug? Hi! On win32-platform it seems that using an absolute path in the dir property of the AutoWebApp tag in my server.xml does not work properly. I have the following directive set in my server.xml: AutoWebApp dir=d:/testa/jakarta-tomcat-3.3a/webapps host=DEFAULT/ Starting tomcat, the following message appears in the console: AutoWebApp: No autoconf directory c:\vosp2\d:\testa\jakarta-tomcat-3.3a\webapps Since c:\vosp2 is declared as the home property in my ContextManager tag, it seems to me like the AutoWebApp tag does not support absolute paths... I need to make this work. Is there a workaround? Thanks /Erik _ Chatta med vänner online, prova MSN Messenger: http://messenger.msn.se -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
[Repost] Re: Context problem (I think)
Still I could not solve the problem. Please, some suggestion? Thanks to all! Marcelo--- Thanks Dan! But I would like not to have to modify the servlet since it'sthird-party´s servlet. Do you have some solution configuring only the side TC? How I do the corresponding thing to "virtual directories" of IIS in TC? The only thing that I want to obtain is that TC understands "/myapp"like a context that it has docBase that I define (i.e.docBase="c:/Project/myapp"). Then, when the servlet ask for http://localhost:8080/myapp/some.jsp(this string is generated by it), TC knows where to find the information (inthis case, the jsp page in "c:/Project/myapp/some.jsp"). Thanks again for new suggestions. Marcelo- Original Message -From: "Dan Miller" [EMAIL PROTECTED]To: "Tomcat Users List" [EMAIL PROTECTED]Sent: Tuesday, January 22, 2002 6:32 PMSubject: Re: Context problem (I think) I would recommend trying something like this, assuming that I have understood your question. First, get the ServletContext that you aretrying to access and the forward/include onward. Example:getServletContext().getContext("/myapp/").getRequestDispatcher("/myapp/myarc h.jsp").forward(request, response); Dan - Original Message - From: "Marcelo Demestri" [EMAIL PROTECTED] To: "Tomcat Users List" [EMAIL PROTECTED] Sent: Tuesday, January 22, 2002 8:51 PM Subject: Context problem (I think) Hi everybody! I have a little question for you: I have a servlet that responds requests like http://localhost:8080/servlet/myservlet?param1=value1param2=value2 With those parameters he knows what application must deploy. He generatea path like this: "/myapp/myarch.jsp" But instead of looking for it within "/myapp", apparently it looks for within "/ROOT/myapp" I want to move my jsp pages outside the "webapps" folder. I try with context: i.e. Context path="/myapp" docBase="c:/Project/myapp" debug="0" reloadable="true"/ But when my servlet generate the string "/myapp/myarch.jsp", he always look into "/ROOT/myapp" instead of "c:/Project/myapp/". He doesn'trecognize the "/myapp" like a web application (a context). The stranger of all this is that in JRun+IIS (with virtual directories created in home of IIS) my servlet works, that is to say, it findsthe jsp's! And I read Craig in a previous mail say VirtualDirectory (IIS)=Context (TC) Some idea, explanation or suggestion? Very many thanks to all... Marcelo -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: [Repost] Re: Context problem (I think)
Your problem is the implementation of the original servlet, it is trying to do a Servlet forward (i.e. using the RequestDispatcher to call forward), which requires the destination to be in the SAME webapp (which is why you are getting /ROOT/myApp). You need to either implement the servlet yourself or you need to live with the fact that myApp must be a sub-folder of the context holding the servlet. Those are the only choices that I see you having. Virtual Directories in IIS won't help since the forward call is internal to Tomcat and the JSP and Servlet specs are pretty clear on how web apps have to work (and forwarding between them would violate those rules). Randy -Original Message- From: Marcelo Demestri [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 24, 2002 2:18 PM To: Tomcat Users List Subject: [Repost] Re: Context problem (I think) Still I could not solve the problem. Please, some suggestion? Thanks to all! Marcelo --- Thanks Dan! But I would like not to have to modify the servlet since it's third-party´s servlet. Do you have some solution configuring only the side TC? How I do the corresponding thing to virtual directories of IIS in TC? The only thing that I want to obtain is that TC understands /myapp like a context that it has docBase that I define (i.e. docBase=c:/Project/myapp). Then, when the servlet ask for http://localhost:8080/myapp/some.jsp http://localhost:8080/myapp/some.jsp (this string is generated by it), TC knows where to find the information (in this case, the jsp page in c:/Project/myapp/some.jsp). Thanks again for new suggestions. Marcelo - Original Message - From: Dan Miller [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] Sent: Tuesday, January 22, 2002 6:32 PM Subject: Re: Context problem (I think) I would recommend trying something like this, assuming that I have understood your question. First, get the ServletContext that you are trying to access and the forward/include onward. Example: getServletContext().getContext(/myapp/).getRequestDispatcher(/myapp/myarc h.jsp).forward(request, response); Dan - Original Message - From: Marcelo Demestri [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] Sent: Tuesday, January 22, 2002 8:51 PM Subject: Context problem (I think) Hi everybody! I have a little question for you: I have a servlet that responds requests like http://localhost:8080/servlet/myservlet?param1=value1 http://localhost:8080/servlet/myservlet?param1=value1param2=value2 param2=value2 With those parameters he knows what application must deploy. He generate a path like this: /myapp/myarch.jsp But instead of looking for it within /myapp, apparently it looks for within /ROOT/myapp I want to move my jsp pages outside the webapps folder. I try with context: i.e. Context path=/myapp docBase=c:/Project/myapp debug=0 reloadable=true/ But when my servlet generate the string /myapp/myarch.jsp, he always look into /ROOT/myapp instead of c:/Project/myapp/. He doesn't recognize the /myapp like a web application (a context). The stranger of all this is that in JRun+IIS (with virtual directories created in home of IIS) my servlet works, that is to say, it finds the jsp's! And I read Craig in a previous mail say VirtualDirectory (IIS)=Context (TC) Some idea, explanation or suggestion? Very many thanks to all... Marcelo
Tomcat netbeans/forte
Dear all, I'm trying to configure the following development environment: 1. Editing JSP's in Netbeans 3.3 2. Running JSP's under external stand-alone Tomcat 4.01 running in remote debugging mode (JPDA). 3. Watching for runtime errors, exceptions, etc. in Netbeans. I'm able to start tomcat in JPDA, i can attach tomcat to netbeans (i get the Connection established message), but i get **no** tomcat output in netbeans. I see the runtime errors in tomcat logs only. Is this configuration supposed to work? Does anybody use something similar? Is there a way out? Any answers would be greatly appreciated. Regards, Ilya -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
mod_jk bug ?
Hi, I encountered the following error when accessing any java servlet(e.g.http://localhost/servlet/SnoopServlet) through Internet Explorer of PocketPC : java.lang.NumberFormatException at org.apache.tomcat.util.buf.Ascii.parseInt(Ascii.java:188) at org.apache.tomcat.util.buf.ByteChunk.getInt(ByteChunk.java:439) at org.apache.tomcat.util.buf.MessageBytes.getInt(MessageBytes.java:577) at org.apache.ajp.RequestHandler.decodeRequest(RequestHandler.java:299) at org.apache.ajp.Ajp13.handleMessage(Ajp13.java:310) at org.apache.ajp.Ajp13.receiveNextRequest(Ajp13.java:278) at org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:367 ) at org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:476) at java.lang.Thread.run(Thread.java:484) However, there is no problem to access the servlet with IE or Netscape on Windows. Tested platform : OS : Solaris 8, Windows 2000 Web server : Apache 1.3.22 Tomcat version : 4.0.1 and 4.0.2b2 mod_jk version : 1.0 and 1.1 come with Tomcat 3.3 and Tomcat 3.2.4 with AJP13 Is this a bug in Tomcat ? WebApp module on Solaris is working fine and doesn't have this problem. However, I couldn't test WebApp module on Windows as the only available binary of webapp-module-1.0.0 doesn't run on my windows 2000 and is known to be buggy on Windows. Thanks in advance for any help. Best Regards, Thum -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: servlets work but JSPs not!
set path=JAVA_HOME;C:\jdk1.1.8\ JDK 1.1.8?? Doesn't Tomcat 4 require a Java 2 JDK like 1.3.1? Just an observation. --David On Thursday 24 January 2002 07:50 am, you wrote: For Tomcat 4 (which is what this person is using - the stack trace mentions Catalina), the CLASSPATH environment variable is not used since so many people didn't understand how to properly set it up for TC 3.1 and 3.2. Randy -Original Message- From: Altug B. Altintas [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 24, 2002 8:02 AM To: Tomcat Users List Subject: RE: servlets work but JSPs not! did u set your CLASSPATH correctly ? -Original Message- From: Elif Zeynep Buyukduman [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 24, 2002 2:48 PM To: Tomcat Users List Subject: RE: servlets work but JSPs not! thanks Randy, but isn`t this variable line correct? set path=JAVA_HOME;C:\jdk1.1.8\ i think it is. oooRR do i need to do something specific: e.g. set path=JAVA_HOME;C:\jdk1.1.8\bin\ ?? Zeynep -Original Message- From: Randy Layman [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 24, 2002 1:55 PM To: 'Tomcat Users List' Subject: RE: servlets work but JSPs not! You do not have your JAVA_HOME environtment variable set correctly, specifically JAVA_HOME/lib/javac.jar is not a valid file path. Randy -Original Message- From: Elif Zeynep Buyukduman [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 24, 2002 7:42 AM To: [EMAIL PROTECTED] Subject: FW: servlets work but JSPs not! -Original Message- From: Elif Zeynep Buyukduman [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 24, 2002 2:28 PM To: [EMAIL PROTECTED] Subject: servlets work but JSPs not! hi, I am a quite new user of Tomcat. I did set it up, but there seems to be a simple problem. When I run the server and open the entrance page on the browser(localhost:8080), i can view the servlet examples, that are given by tomcat but the JSP Examples do not execute, server errors occur, and are printed like: -- -- -- -- -- -- --- Apache Tomcat/4.0.1 - HTTP Status 500 - Internal Server Error type Exception report message Internal Server Error description The server encountered an internal error (Internal Server Error) that prevented it from fulfilling this request. exception javax.servlet.ServletException: sun/tools/javac/Main at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:484) 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:201) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardP ipeline.java:5 66) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(Aut henticatorBase .java:472) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardP ipeline.java:5 64) at org.apache.catalina.valves.CertificatesValve.invoke(Certificat esValve.java:2 46) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardP ipeline.java:5 64) 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.StandardContext.invoke(StandardContex t.java:2344) at org.apache.catalina.core.StandardHostValve.invoke(StandardHost Valve.java:164 ) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardP ipeline.java:5 66) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDi spatcherValve. java:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardP ipeline.java:5 64) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReport Valve.java:170 ) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardP ipeline.java:5
Help giving Tomcat more memory
I'm still experiencing the memory leak with JSPs that I asked about yesterday, and I'm trying to give Tomcat more memory, but it's apparently not working. I changed the following line in tomcat.bat.:startServer from %_STARTJAVA% %TOMCAT_OPTS% -Djava.security.policy . . . to %_STARTJAVA% -Xms 256m -Xmx 384m %TOMCAT_OPTS% -Djava.security.policy . . . However, Tomcat ran out of memory around 78MB. What am I doing wrong? Thanks --Michael -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Help giving Tomcat more memory
No space and capital M works for me (i.e. -Xms256M -Xmx384M), but I'm not sure what is required. Randy -Original Message- From: Michael Molloy [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 24, 2002 8:47 AM To: Tomcat Subject: Help giving Tomcat more memory I'm still experiencing the memory leak with JSPs that I asked about yesterday, and I'm trying to give Tomcat more memory, but it's apparently not working. I changed the following line in tomcat.bat.:startServer from %_STARTJAVA% %TOMCAT_OPTS% -Djava.security.policy . . . to %_STARTJAVA% -Xms 256m -Xmx 384m %TOMCAT_OPTS% -Djava.security.policy . . . However, Tomcat ran out of memory around 78MB. What am I doing wrong? Thanks --Michael -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Tomcat Performance Expectations?
Hi Randy, Thank you for your reply. One common misconception that people seem to have about Tomcat (and application servers in general) is that you can predict how well an application will perform on that server without any real details of the application, but exact hardware details. I understand that it is a vague and open ended question and I mentioned it so in the email. What I am looking for is a ballpark figure that might not work for me but will give me something to shoot for/surpass. Not having worked on Tomcat or any other app server performance issues leaves me asking this question. For almost all applications that Tomcat is going to serve, the majority of CPU time will be spent in your application. The majority of network traffic will be specific to your application. The majority of memory might be your application (Tomcat might actually tie with you here). The point being, of all the possible factors that can limit the transactions per second or whatever other performance metric you want to consider, your application is the biggest blocker, not Tomcat, not the OS. That is true. My application does require network traffic. But I have used network monitoring tools like ntop etc. and am sure that network is not a bottleneck for this application. About the memory, I have used OptimizeIt and know where the memory bottlenecks are and am confident that garbage collection takes care of it (though there are some places that can be tuned) My best advice is for you to try it out. Set up a load test and see. One potential bottleneck you didn't mention, by the way, is your bandwidth between you and your users - this can also limit the number of transactions (which is a rather vague term when discussing app servers) you will receive. I have used load tests and for a single test it takes close to 3 min and have tested for 500 instances of the same test at the same time achieving decent performance. Bandwidth is not bottleneck bcoz all users are on T1 line. So what I am looking for are ballpark figures. Hope this information helps you and other tomcat list users to estimate the application. For the benefit of other listers I am pasting the email I wrote earlier below. * I have a single servlet based application. This application is accessed througha browser and travels over to a high performance database through a RMI-IIOP connection. It is not the best application in terms of code tuning. We are deploying this application on Tomcat 4.0.1, Apache 1.3, Suse Linux 7.0 on a PIII 800Mz machine with 800Mz RAM. We are not planning on adding multiple instances of Tomcat/Apache for the time being (or we are not quite sure that our machine might be able to sustain that many threads of either) Based on this what is the maximum number or requests that I can expect to obtain from my applications. Can I expect say 1000 (or maybe 5000 or more) concurrent users. How many requests/sec can I expect while delivering acceptible response on the browser. The reason I have asked such an open-ended question is that you might have deployed your production system on such a configuration and must have achieved some bechmarks. Please take the time and give me an estimate. Thanks in advance. * Thanks Brown. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
default context with webapp vs. mod_jk
Hi, The current behavior of webapp with default context like WebAppDeploy examples conn / will capture all URI regardless of the content type (dynamic or static). This poses a problem when Tomcat is deployed with Apache. Is this behavior going be fixed like that ? Any plan to support a more flexible scheme as in mod_jk which allows one to set a more refine URL mapping, e.g. JkMount /*.jsp ajp13 JkMount /servlet/* ajp13 JkMount /examples/* ajp13 instead of sending all requests with / to Tomcat. Although I managed to run WebApp module and mod_jk in the same process to serve different mounting requirements, this is undesirable in the long run. Thanks in advanced for any help. Best Regards, Thum -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Heres a DUMP!
apache 1.3.22 and tomcat 4.0.1 on RH Linux 7.1 with mod_webapp. It starts fine. I can access examples. But if I try to access cocoon it dumps. I stopped Apache and restarted tomcat by itself. And when tried to access cocoon it dumped again. I am attaching the catablina.out.dump for your attention. Is this the right channel or should I send it to tomcat-dev instead? I have apache 1.3.14 working fine with tomcat 3.2.3. Because I want to take advantage of the new servlet/jsp specs., I decided to move to tomcat 4.0. But certainly it is not an easy thing to do. Has anybody done that transition successfully? I could use all the help you can give me. Regards. Do You Yahoo!? Yahoo! Auctions Great stuff seeking new owners! Bid now! Starting service Tomcat-Standalone Apache Tomcat/4.0 Loading catalog: /ahmed.alawy.com/cocoon/resources/entities/catalog Starting service Tomcat-Apache Apache Tomcat/4.0 Server 1.6 is running Press [Ctrl]+[C] to abort SIGSEGV 11* segmentation violation si_signo [11]: SIGSEGV 11* segmentation violation si_errno [0]: Success si_code [1]: SEGV_MAPERR [addr: 0x0] stackpointer=0x449c1d2c Full thread dump Classic VM (1.2.2-L, green threads): Thread-14 (TID:0x40e571e0, sys_thread_t:0x958fe10, state:R) prio=5 at java.lang.ClassLoader.findLoadedClass(Native Method) at java.lang.ClassLoader.loadClass(ClassLoader.java:275) at java.lang.ClassLoader.loadClass(ClassLoader.java:243) at org.apache.avalon.excalibur.component.ExcaliburComponentManager.lookup(Unknown Source) at org.apache.avalon.excalibur.component.ExcaliburComponentManager.lookup(Unknown Source) at org.apache.cocoon.sitemap.AbstractSitemap.compose(AbstractSitemap.java:123) at org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(Unknown Source) at org.apache.avalon.excalibur.component.ThreadSafeComponentHandler.initialize(Unknown Source) at org.apache.cocoon.components.language.generator.GeneratorSelector.addGenerator(GeneratorSelector.java:135) at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.addCompiledComponent(ProgramGeneratorImpl.java:345) at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(ProgramGeneratorImpl.java:179) at org.apache.cocoon.sitemap.Handler.run(Handler.java:208) at java.lang.Thread.run(Thread.java:475) Thread-13 (TID:0x40e679d8, sys_thread_t:0x95877f8, state:CW) prio=5 at java.net.SocketInputStream.socketRead(Native Method) at java.net.SocketInputStream.read(SocketInputStream.java:86) at java.io.BufferedInputStream.fill(BufferedInputStream.java:186) at java.io.BufferedInputStream.read(BufferedInputStream.java:204) at java.io.DataInputStream.readUnsignedShort(DataInputStream.java:288) at java.io.DataInputStream.readUTF(DataInputStream.java:517) at java.io.DataInputStream.readUTF(DataInputStream.java:494) at org.hsqldb.ServerConnection.run(ServerConnection.java:116) Thread-11 (TID:0x40e67b30, sys_thread_t:0x9575f68, state:CW) prio=5 at java.net.SocketInputStream.socketRead(Native Method) at java.net.SocketInputStream.read(SocketInputStream.java:86) at java.io.BufferedInputStream.fill(BufferedInputStream.java:186) at java.io.BufferedInputStream.read(BufferedInputStream.java:204) at java.io.DataInputStream.readUnsignedShort(DataInputStream.java:288) at java.io.DataInputStream.readUTF(DataInputStream.java:517) at java.io.DataInputStream.readUTF(DataInputStream.java:494) at org.hsqldb.ServerConnection.run(ServerConnection.java:116) Thread-9 (TID:0x40e67c88, sys_thread_t:0x94c0518, state:CW) prio=5 at java.net.SocketInputStream.socketRead(Native Method) at java.net.SocketInputStream.read(SocketInputStream.java:86) at java.io.BufferedInputStream.fill(BufferedInputStream.java:186) at java.io.BufferedInputStream.read(BufferedInputStream.java:204) at java.io.DataInputStream.readUnsignedShort(DataInputStream.java:288) at java.io.DataInputStream.readUTF(DataInputStream.java:517) at java.io.DataInputStream.readUTF(DataInputStream.java:494) at org.hsqldb.ServerConnection.run(ServerConnection.java:116) Thread-7 (TID:0x40e67de8, sys_thread_t:0x9550660, state:CW) prio=5 at java.net.SocketInputStream.socketRead(Native Method) at java.net.SocketInputStream.read(SocketInputStream.java:86) at java.io.BufferedInputStream.fill(BufferedInputStream.java:186) at java.io.BufferedInputStream.read(BufferedInputStream.java:204) at java.io.DataInputStream.readUnsignedShort(DataInputStream.java:288) at java.io.DataInputStream.readUTF(DataInputStream.java:517) at java.io.DataInputStream.readUTF(DataInputStream.java:494) at
Session timeouts
I've added to the following line to my server.xml to try and increase timeouts for the webapp 'matt' but it doesn't appear to have any effect. Am I missing something? Context path=/matt docBase=matt defaultSessionTimeOut=120/ Thanks, Matt -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Tomcat and getting it to run under JDeveloper
Since Oracle are now giving away their nice JDeveloper I thought I'd try to run my Apache Turbine applications and debug them with JDeveloper. Turbine 2.1 includes Tomcat 4.0b6. I picked up the following source from the Netbeans mailing list ( I never got it to work with NetBeans 3.3 and Tomcat 4.0) public class StartTomcat { public static final String CATALINA_HOME = C:/tdk; public static void main (String args[]) { try { System.setProperty(user.dir,CATALINA_HOME); String startArgs[] = { start}; org.apache.catalina.startup.Bootstrap.main(startArgs); } catch(Exception e) { e.printStackTrace(System.out); } } } When I set this to be my start class in JDeveloper it uses the following kick off. C:\Oracle\jdk1.3\bin\javaw.exe -ojvm -classpath C:\tdk\webapps\rwtransform\WEB-INF\classes;C:\tdk\bin\bootstrap.jar;C:\tdk\w ebapps\rwtransform\WEB-INF\lib\activation-1.0.1.jar;C:\tdk\webapps\rwtransfo rm\WEB-INF\lib\ant-optional.jar;C:\tdk\webapps\rwtransform\WEB-INF\lib\class es12.jar;C:\tdk\webapps\rwtransform\WEB-INF\lib\ecs-1.4.1.jar;C:\tdk\webapps \rwtransform\WEB-INF\lib\Ftp.jar;C:\tdk\webapps\rwtransform\WEB-INF\lib\FTPP rotocol.jar;C:\tdk\webapps\rwtransform\WEB-INF\lib\jakarta-regexp-1.3-dev.ja r;C:\tdk\webapps\rwtransform\WEB-INF\lib\jdbc-se2.0.jar;C:\tdk\webapps\rwtra nsform\WEB-INF\lib\jdbc2_0-stdext.jar;C:\tdk\webapps\rwtransform\WEB-INF\lib \log4j-1.1.jar;C:\tdk\webapps\rwtransform\WEB-INF\lib\mail-1.2.jar;C:\tdk\we bapps\rwtransform\WEB-INF\lib\oro.jar;C:\tdk\webapps\rwtransform\WEB-INF\lib \patbin151_122.jar;C:\tdk\webapps\rwtransform\WEB-INF\lib\patbin151_13.jar;C :\tdk\webapps\rwtransform\WEB-INF\lib\turbine-2.1.jar;C:\tdk\webapps\rwtrans form\WEB-INF\lib\velocity-1.2-dev.jar;C:\tdk\webapps\rwtransform\WEB-INF\lib \village-1.5.1.jar;C:\tdk\webapps\rwtransform\WEB-INF\lib\xalan-1.2.1.jar;C: \tdk\webapps\rwtransform\WEB-INF\lib\xerces-1.3.0.jar;C:\tdk\common\lib\jndi .jar;C:\tdk\common\lib\naming.jar;C:\tdk\common\lib\resources.jar;C:\tdk\com mon\lib\servlet.jar;C:\Oracle\jdev\lib\jdev-rt.jar com.roamware.rwtransform.startup.StartTomcat Directory C:\tdk\common\lib does not exist Process exited with exit code 1. The key message seems to be the one where it says that C:\tdk\common\lib does not exist . Any ideas or suggestions? David -Original Message- From: Ilya Khandamirov [mailto:[EMAIL PROTECTED]] Sent: 24 January 2002 14:28 To: 'Tomcat Users List' Subject: Tomcat netbeans/forte Dear all, I'm trying to configure the following development environment: 1. Editing JSP's in Netbeans 3.3 2. Running JSP's under external stand-alone Tomcat 4.01 running in remote debugging mode (JPDA). 3. Watching for runtime errors, exceptions, etc. in Netbeans. I'm able to start tomcat in JPDA, i can attach tomcat to netbeans (i get the Connection established message), but i get **no** tomcat output in netbeans. I see the runtime errors in tomcat logs only. Is this configuration supposed to work? Does anybody use something similar? Is there a way out? Any answers would be greatly appreciated. Regards, Ilya -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: servlets work but JSPs not!
Tomcat is said to require JDK 1.2 or above. But it didn't reject to set itself up with this version and the servlet examples work well with this verison of JDK. the main problem: at sun`s web page I couldn't find JDK 1.2 or newer versions. I am gonna get mad! there are discussion boards and etc. about JDK 1.2 but i cannot reach a download... I think the same with you; the problem should be caused by JDK version mismatch.. does anybody know from where to download JDK 1.2 (or newer)? Zeynep -Original Message- From: David Smith [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 24, 2002 11:27 AM To: Tomcat Users List Subject: Re: servlets work but JSPs not! set path=JAVA_HOME;C:\jdk1.1.8\ JDK 1.1.8?? Doesn't Tomcat 4 require a Java 2 JDK like 1.3.1? Just an observation. --David On Thursday 24 January 2002 07:50 am, you wrote: For Tomcat 4 (which is what this person is using - the stack trace mentions Catalina), the CLASSPATH environment variable is not used since so many people didn't understand how to properly set it up for TC 3.1 and 3.2. Randy -Original Message- From: Altug B. Altintas [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 24, 2002 8:02 AM To: Tomcat Users List Subject: RE: servlets work but JSPs not! did u set your CLASSPATH correctly ? -Original Message- From: Elif Zeynep Buyukduman [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 24, 2002 2:48 PM To: Tomcat Users List Subject: RE: servlets work but JSPs not! thanks Randy, but isn`t this variable line correct? set path=JAVA_HOME;C:\jdk1.1.8\ i think it is. oooRR do i need to do something specific: e.g. set path=JAVA_HOME;C:\jdk1.1.8\bin\ ?? Zeynep -Original Message- From: Randy Layman [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 24, 2002 1:55 PM To: 'Tomcat Users List' Subject: RE: servlets work but JSPs not! You do not have your JAVA_HOME environtment variable set correctly, specifically JAVA_HOME/lib/javac.jar is not a valid file path. Randy -Original Message- From: Elif Zeynep Buyukduman [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 24, 2002 7:42 AM To: [EMAIL PROTECTED] Subject: FW: servlets work but JSPs not! -Original Message- From: Elif Zeynep Buyukduman [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 24, 2002 2:28 PM To: [EMAIL PROTECTED] Subject: servlets work but JSPs not! hi, I am a quite new user of Tomcat. I did set it up, but there seems to be a simple problem. When I run the server and open the entrance page on the browser(localhost:8080), i can view the servlet examples, that are given by tomcat but the JSP Examples do not execute, server errors occur, and are printed like: -- -- -- -- -- -- --- Apache Tomcat/4.0.1 - HTTP Status 500 - Internal Server Error type Exception report message Internal Server Error description The server encountered an internal error (Internal Server Error) that prevented it from fulfilling this request. exception javax.servlet.ServletException: sun/tools/javac/Main at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:484) 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:201) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardP ipeline.java:5 66) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(Aut henticatorBase .java:472) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardP ipeline.java:5 64) at org.apache.catalina.valves.CertificatesValve.invoke(Certificat esValve.java:2 46) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardP ipeline.java:5 64) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipel ine.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
Re: Help giving Tomcat more memory
I'll give that a try. Thanks. --Michael On Thursday 24 January 2002 09:03 am, you wrote: No space and capital M works for me (i.e. -Xms256M -Xmx384M), but I'm not sure what is required. Randy -Original Message- From: Michael Molloy [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 24, 2002 8:47 AM To: Tomcat Subject: Help giving Tomcat more memory I'm still experiencing the memory leak with JSPs that I asked about yesterday, and I'm trying to give Tomcat more memory, but it's apparently not working. I changed the following line in tomcat.bat.:startServer from %_STARTJAVA% %TOMCAT_OPTS% -Djava.security.policy . . . to %_STARTJAVA% -Xms 256m -Xmx 384m %TOMCAT_OPTS% -Djava.security.policy . . . However, Tomcat ran out of memory around 78MB. What am I doing wrong? Thanks --Michael -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Tomcat Performance Expectations?
--- Brown Bay [EMAIL PROTECTED] wrote: My best advice is for you to try it out. Set up a load test and see. One potential bottleneck you didn't mention, by the way, is your bandwidth between you and your users - this can also limit the number of transactions (which is a rather vague term when discussing app servers) you will receive. I have used load tests and for a single test it takes close to 3 min and have tested for 500 instances of the same test at the same time achieving decent performance. Bandwidth is not bottleneck bcoz all users are on T1 line. So what I am looking for are ballpark figures. Hope this information helps you and other tomcat list users to estimate the application. For the benefit of other listers I am pasting the email I wrote earlier below. Brown, Because there are so many variables (application processing, network conditions, hardware specs), I think the best you can hope for is to come up with ballpark figures that are specific to your environment. The good news is that you've already got a load test in place. To get a sense of what your best case figures would be, create a simple servlet or JSP that outputs Hello World. Then use your test client to stress test that application for a period of time. This should give you the performance figures to strive for within your environment. Orion __ Do You Yahoo!? Great stuff seeking new owners in Yahoo! Auctions! http://auctions.yahoo.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: servlets work but JSPs not!
What platform are you running? I know JDK's for 1.3.1 are available at: http://java.sun.com/j2se/1.3/ for Windows, Solaris, and Linux. You might have to look at IBM's JDK (or one of the others) if these don't cover your platform. --David On Thursday 24 January 2002 09:59 am, you wrote: Tomcat is said to require JDK 1.2 or above. But it didn't reject to set itself up with this version and the servlet examples work well with this verison of JDK. the main problem: at sun`s web page I couldn't find JDK 1.2 or newer versions. I am gonna get mad! there are discussion boards and etc. about JDK 1.2 but i cannot reach a download... I think the same with you; the problem should be caused by JDK version mismatch.. does anybody know from where to download JDK 1.2 (or newer)? Zeynep -Original Message- From: David Smith [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 24, 2002 11:27 AM To: Tomcat Users List Subject: Re: servlets work but JSPs not! set path=JAVA_HOME;C:\jdk1.1.8\ JDK 1.1.8?? Doesn't Tomcat 4 require a Java 2 JDK like 1.3.1? Just an observation. --David On Thursday 24 January 2002 07:50 am, you wrote: For Tomcat 4 (which is what this person is using - the stack trace mentions Catalina), the CLASSPATH environment variable is not used since so many people didn't understand how to properly set it up for TC 3.1 and 3.2. Randy -Original Message- From: Altug B. Altintas [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 24, 2002 8:02 AM To: Tomcat Users List Subject: RE: servlets work but JSPs not! did u set your CLASSPATH correctly ? -Original Message- From: Elif Zeynep Buyukduman [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 24, 2002 2:48 PM To: Tomcat Users List Subject: RE: servlets work but JSPs not! thanks Randy, but isn`t this variable line correct? set path=JAVA_HOME;C:\jdk1.1.8\ i think it is. oooRR do i need to do something specific: e.g. set path=JAVA_HOME;C:\jdk1.1.8\bin\ ?? Zeynep -Original Message- From: Randy Layman [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 24, 2002 1:55 PM To: 'Tomcat Users List' Subject: RE: servlets work but JSPs not! You do not have your JAVA_HOME environtment variable set correctly, specifically JAVA_HOME/lib/javac.jar is not a valid file path. Randy -Original Message- From: Elif Zeynep Buyukduman [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 24, 2002 7:42 AM To: [EMAIL PROTECTED] Subject: FW: servlets work but JSPs not! -Original Message- From: Elif Zeynep Buyukduman [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 24, 2002 2:28 PM To: [EMAIL PROTECTED] Subject: servlets work but JSPs not! hi, I am a quite new user of Tomcat. I did set it up, but there seems to be a simple problem. When I run the server and open the entrance page on the browser(localhost:8080), i can view the servlet examples, that are given by tomcat but the JSP Examples do not execute, server errors occur, and are printed like: -- -- -- -- -- -- --- Apache Tomcat/4.0.1 - HTTP Status 500 - Internal Server Error type Exception report message Internal Server Error description The server encountered an internal error (Internal Server Error) that prevented it from fulfilling this request. exception javax.servlet.ServletException: sun/tools/javac/Main at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:484) 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:201) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardP ipeline.java:5 66) at
AW: servlets work but JSPs not!
http://java.sun.com/j2se/1.3/ http://java.sun.com/j2se/1.4/ http://www-106.ibm.com/developerworks/java/jdk/?dwzone=java -Ursprüngliche Nachricht- Von: Elif Zeynep Buyukduman [mailto:[EMAIL PROTECTED]] Gesendet: Donnerstag, 24. Januar 2002 15:59 An: Tomcat Users List Betreff: RE: servlets work but JSPs not! snip/ the main problem: at sun`s web page I couldn't find JDK 1.2 or newer versions. I am gonna get mad! there are discussion boards and etc. about JDK 1.2 but i cannot reach a download... snip/ -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
win32 install fail : Encountered exception java.lang.InternalError: jzentry == 0
h i, I would like to reload the web application that is contained in my war file. 1) I override my war file 2) I use the remove request of the application manager 3) I use the install request of the application manager in 50 % of the case, I receive this message FAIL - Encountered exception java.lang.InternalError: jzentry == 0 the war file is correct and if I restart tomcat the new webapplication works fine. here is the context I use for this application : !-- Server Context -- Context path=/server docBase=server.war debug=0 reloadable=true/ here are my vitual host attributes Host name=localhost debug=0 appBase=webapps unpackWARs=false What is wrong ? thanks Olivier here is the corresponding part of the log 2002-01-24 00:01:41 Manager: remove: Removing web application at '/server' 2002-01-24 00:01:41 StandardHost[localhost]: Removing web application at context path /server 2002-01-24 00:01:52 Manager: install: Installing web application at '/server' from 'jar:file:c:/tomcat4.0/webapps/server.war!/' 2002-01-24 00:01:52 StandardHost[localhost]: Installing web application at context path /server from URL jar:file:c:/tomcat4.0/webapps/server.war!/ 2002-01-24 00:01:52 ManagerServlet.install[/server] java.lang.InternalError: jzentry == 0 at java.util.zip.ZipFile$2.nextElement(Unknown Source) at org.apache.naming.resources.WARDirContext.loadEntries(WARDirContext.java:764) at org.apache.naming.resources.WARDirContext.setDocBase(WARDirContext.java:190) at org.apache.catalina.core.StandardContext.setResources(StandardContext.java:1107) at org.apache.catalina.core.StandardContext.start(StandardContext.java:3302) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:785) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:454) at org.apache.catalina.core.StandardHost.install(StandardHost.java:712) at org.apache.catalina.servlets.ManagerServlet.install(ManagerServlet.java:376) at org.apache.catalina.servlets.ManagerServlet.doGet(ManagerServlet.java:277) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:201) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:518) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2344) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:462) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:163) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1011) at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1106) at java.lang.Thread.run(Unknown Source)
Re: servlets work but JSPs not!
Elif Zeynep Buyukduman a écrit : Tomcat is said to require JDK 1.2 or above. But it didn't reject to set itself up with this version and the servlet examples work well with this verison of JDK. the main problem: at sun`s web page I couldn't find JDK 1.2 or newer versions. I am gonna get mad! there are discussion boards and etc. about JDK 1.2 but i cannot reach a download... I think the same with you; the problem should be caused by JDK version mismatch.. does anybody know from where to download JDK 1.2 (or newer)? Zeynep -Original Message- From: David Smith [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 24, 2002 11:27 AM To: Tomcat Users List Subject: Re: servlets work but JSPs not! set path=JAVA_HOME;C:\jdk1.1.8\ JDK 1.1.8?? Doesn't Tomcat 4 require a Java 2 JDK like 1.3.1? Just an observation. --David On Thursday 24 January 2002 07:50 am, you wrote: For Tomcat 4 (which is what this person is using - the stack trace mentions Catalina), the CLASSPATH environment variable is not used since so many people didn't understand how to properly set it up for TC 3.1 and 3.2. Randy -Original Message- From: Altug B. Altintas [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 24, 2002 8:02 AM To: Tomcat Users List Subject: RE: servlets work but JSPs not! did u set your CLASSPATH correctly ? -Original Message- From: Elif Zeynep Buyukduman [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 24, 2002 2:48 PM To: Tomcat Users List Subject: RE: servlets work but JSPs not! thanks Randy, but isn`t this variable line correct? set path=JAVA_HOME;C:\jdk1.1.8\ i think it is. oooRR do i need to do something specific: e.g. set path=JAVA_HOME;C:\jdk1.1.8\bin\ ?? Zeynep -Original Message- From: Randy Layman [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 24, 2002 1:55 PM To: 'Tomcat Users List' Subject: RE: servlets work but JSPs not! You do not have your JAVA_HOME environtment variable set correctly, specifically JAVA_HOME/lib/javac.jar is not a valid file path. Randy -Original Message- From: Elif Zeynep Buyukduman [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 24, 2002 7:42 AM To: [EMAIL PROTECTED] Subject: FW: servlets work but JSPs not! -Original Message- From: Elif Zeynep Buyukduman [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 24, 2002 2:28 PM To: [EMAIL PROTECTED] Subject: servlets work but JSPs not! hi, I am a quite new user of Tomcat. I did set it up, but there seems to be a simple problem. When I run the server and open the entrance page on the browser(localhost:8080), i can view the servlet examples, that are given by tomcat but the JSP Examples do not execute, server errors occur, and are printed like: -- -- -- -- -- -- --- Apache Tomcat/4.0.1 - HTTP Status 500 - Internal Server Error type Exception report message Internal Server Error description The server encountered an internal error (Internal Server Error) that prevented it from fulfilling this request. exception javax.servlet.ServletException: sun/tools/javac/Main at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:484) 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:201) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardP ipeline.java:5 66) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(Aut henticatorBase .java:472) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardP ipeline.java:5 64) at org.apache.catalina.valves.CertificatesValve.invoke(Certificat esValve.java:2 46) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
Tomcat prerequisites
Hi, Does anybody know where I could find prerequisites for installing Tomcat ? Any list of minimum requirements for hardware / software needed to operate Tomcat ? Thanks for any help. Frederic -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Help giving Tomcat more memory
Okay, I tried Randy's suggestion below, no spaces and a capital M, but the application still ran out of memory around 79 megs (Windows 2000 Server). I'm fiddling around with a simple java program on my linux box trying to figure this out. My main method is public static void main(String args[]) { while(true); } I then start the program with java -Xms145M -Xmx160M test If I understand this correctly, the initial heap size should be 145 megs. However, looking at my processes, there is only about 7200K allocated for the program. Why doesn't it start out at 145? That is the same behaviour I'm seeing on the Win2K machine with Tomcat. It ignores the initial heap size I'm specifying and starts around 16MB, and then dies around 78. Am I misunderstanding how the -Xms and -Xmx flags work? Thanks --Michael On Thursday 24 January 2002 08:57 am, you wrote: I'll give that a try. Thanks. --Michael On Thursday 24 January 2002 09:03 am, you wrote: No space and capital M works for me (i.e. -Xms256M -Xmx384M), but I'm not sure what is required. Randy -Original Message- From: Michael Molloy [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 24, 2002 8:47 AM To: Tomcat Subject: Help giving Tomcat more memory I'm still experiencing the memory leak with JSPs that I asked about yesterday, and I'm trying to give Tomcat more memory, but it's apparently not working. I changed the following line in tomcat.bat.:startServer from %_STARTJAVA% %TOMCAT_OPTS% -Djava.security.policy . . . to %_STARTJAVA% -Xms 256m -Xmx 384m %TOMCAT_OPTS% -Djava.security.policy . . . However, Tomcat ran out of memory around 78MB. What am I doing wrong? Thanks --Michael -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Tomcat prerequisites
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 -Original Message- From: Frederic Michoulier [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 24, 2002 10:41 AM To: Tomcat Users List Subject: Tomcat prerequisites Hi, Does anybody know where I could find prerequisites for installing Tomcat ? Any list of minimum requirements for hardware / software needed to operate Tomcat ? E, Tomcat documentation perhaps? http://jakarta.apache.org/tomcat/tomcat-4.0-doc/RUNNING.txt -BEGIN PGP SIGNATURE- Version: PGPfreeware 7.0.3 for non-commercial use http://www.pgp.com iQA/AwUBPFAsFljCfVNHgcFCEQLRtgCgrm6D9oWuh+xkH48xh0a+p5bb+y0An0z1 WzTjDv51kGsggBc1SfBI+6Ox =JbvV -END PGP SIGNATURE- -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
running servlet manually
How do I run manually a servlet located in subdirectory. I mean I can run HelloWorldExample directly (not using web.xml) by doing: http://localost:8080/appdir/servlet/HelloWorldExample when it is located in: /webapp/appdir/WEB-INF/classes/ but how would I do it (specify the subdirectory) if HelloWorldExample.class was located in /webapp/appdir/WEB-INF/classes/subdir/ Thanks Dom
Pooling database connections: best practices?
I'm just wondering what kind of best practices are recommended for pooling database connections - with Tomcat and perhaps JSP/Servlets in general. Thanks, Sean LeBlanc -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Pooling database connections: best practices?
just use a 3rd party component. check out the www.bitmechanic.com JDBC-Pool. have a nice day -reynir -Original Message- From: Sean LeBlanc [mailto:[EMAIL PROTECTED]] Sent: 24. janúar 2002 16:00 To: [EMAIL PROTECTED] Subject: Pooling database connections: best practices? I'm just wondering what kind of best practices are recommended for pooling database connections - with Tomcat and perhaps JSP/Servlets in general. Thanks, Sean LeBlanc -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: running servlet manually
i think, if you have that servlet in the package then http://localost:8080/appdir/servlet/subdir.HelloWorldExample will work, or else i think http://localost:8080/appdir/servlet/subdir/HelloWorldExample may also work i dont no for sure about the second case, but the package thing works for sure --- Cressatti, Dominique [EMAIL PROTECTED] wrote: How do I run manually a servlet located in subdirectory. I mean I can run HelloWorldExample directly (not using web.xml) by doing: http://localost:8080/appdir/servlet/HelloWorldExample when it is located in: /webapp/appdir/WEB-INF/classes/ but how would I do it (specify the subdirectory) if HelloWorldExample.class was located in /webapp/appdir/WEB-INF/classes/subdir/ Thanks Dom __ Do You Yahoo!? Great stuff seeking new owners in Yahoo! Auctions! http://auctions.yahoo.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
mod_webapp and Tomcat 4.0 - can not call servlet class directly
Tomcat Users: I have searched Google and the JGuru FAQ trying to get a understanding of how to use the WebAppDeploy to map to the /ROOT webapp, so I can call a servlet class that sits inside that directory directly using Apache. Using Tomcat Standalone, on port 8080, I am able to call my servlet using : http://server.domain.com:8080/servlet/com.widgetfactory.Widget?Cmd=wigitize but http://server.domain.com:90/servlet/com.widgetfactory.Widget?Cmd=wigitize fails. (port 90 is where the Apache Server runs currently) I have tried WebAppDeploy ROOT warp / but I get class not deployed errors. I have read a few pages that say this isn't recommended, and I can see why, but unfortunately I'm working with a third party product with 100+ .html/.js pages that call this servlet in that manner. Does anyone have ideas for what I can do to pinpoint the problem? This seems so basic...did I miss a link to a good web page on this? Approximately a 6 months ago I used this same tool under Tomcat 3.2, and mod_jk, but I would like to keep up with the new stuff. Any help greatly appreciated! -M. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Pooling database connections: best practices?
Also DbConnectionPool at www.javaexchange.com. Don't know about the one mentioned below, but the one at JavaExchange is free. Working very well for me. --Michael On Thursday 24 January 2002 10:56 am, you wrote: just use a 3rd party component. check out the www.bitmechanic.com JDBC-Pool. have a nice day -reynir -Original Message- From: Sean LeBlanc [mailto:[EMAIL PROTECTED]] Sent: 24. janúar 2002 16:00 To: [EMAIL PROTECTED] Subject: Pooling database connections: best practices? I'm just wondering what kind of best practices are recommended for pooling database connections - with Tomcat and perhaps JSP/Servlets in general. Thanks, Sean LeBlanc -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: kindly confirm the uninstall steps...
Can anyone kindly address this question? +Andy -Original Message- From: Ruben, Andy B. Sent: Tuesday, January 15, 2002 4:09 PM To: '[EMAIL PROTECTED]' Subject: kindly confirm the uninstall steps... Folks- I loaded a copy of tomcat 3.2.1 on my laptop to test this server platform for the possibilities of developing .jsp's and as an alternate to IIS. However, due to a number of reasons, I have decided that migrating the platform of our webserver at this time is not a priority. Therefore, I would like to uninstall the Apache software from this laptop. I have looked through the dir structure for any README documents or uninstall instructions and could not find anything. Therefore, in order to avoid %^$ing any configs on this development machine, I wanted to confirm with you folks the uninstall steps first. Please reply to confirm the steps below or correct me so that I can get the cleanest uninstall possible. First, the OS on this computer is Windows 2K Professional, and has Tomcat 3.2 on it as well as IIS 5.0. Since I did not see Tomcat (or any reference to Apache software) listed in the add/remove software area of the control panel, can I just: 1-Go into the C:/jakarta-tomcat/bin directory and run the shutdown.bat? 2-After shutting down the apache server, then go ahead and DELETE the entire dir structure from my C:/ ? I guess that (again) I wanted to double check with you folks since I really liked the Apache products, but simply cannot find the time to implement this migration at this time. Thanks in advance for your help. Andy Ruben IT Specialist/Webmaster http://vaww.cheyenne.med.va.gov 307.778.7523 -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: kindly confirm the uninstall steps...
Just shutdown the server and delete the tomcat directory. Only version 4.0 has an un-install routine on windows. --- [EMAIL PROTECTED] wrote: Can anyone kindly address this question? +Andy -Original Message- From: Ruben, Andy B. Sent: Tuesday, January 15, 2002 4:09 PM To: '[EMAIL PROTECTED]' Subject:kindly confirm the uninstall steps... Folks- I loaded a copy of tomcat 3.2.1 on my laptop to test this server platform for the possibilities of developing .jsp's and as an alternate to IIS. However, due to a number of reasons, I have decided that migrating the platform of our webserver at this time is not a priority. Therefore, I would like to uninstall the Apache software from this laptop. I have looked through the dir structure for any README documents or uninstall instructions and could not find anything. Therefore, in order to avoid %^$ing any configs on this development machine, I wanted to confirm with you folks the uninstall steps first. Please reply to confirm the steps below or correct me so that I can get the cleanest uninstall possible. First, the OS on this computer is Windows 2K Professional, and has Tomcat 3.2 on it as well as IIS 5.0. Since I did not see Tomcat (or any reference to Apache software) listed in the add/remove software area of the control panel, can I just: 1-Go into the C:/jakarta-tomcat/bin directory and run the shutdown.bat? 2-After shutting down the apache server, then go ahead and DELETE the entire dir structure from my C:/ ? I guess that (again) I wanted to double check with you folks since I really liked the Apache products, but simply cannot find the time to implement this migration at this time. Thanks in advance for your help. Andy Ruben IT Specialist/Webmaster http://vaww.cheyenne.med.va.gov 307.778.7523 -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] = Brian C. Claridge Software/Web Developer http://www.zerosleep.com [EMAIL PROTECTED] __ Do You Yahoo!? Great stuff seeking new owners in Yahoo! Auctions! http://auctions.yahoo.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Pooling database connections: best practices?
I concur, we've been using DbConnectionPool for over year with no problems. We've used it with Oracle, MS-SQL and MySQL with no problems. Jim Urban Product Manager Netsteps Inc. Suite 505E 1 Pierce Pl. Itasca, IL 60143 Voice: (630) 250-3045 x2164 Fax: (630) 250-3046 -Original Message- From: Michael Molloy [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 24, 2002 9:13 AM To: Tomcat Users List Subject: Re: Pooling database connections: best practices? Also DbConnectionPool at www.javaexchange.com. Don't know about the one mentioned below, but the one at JavaExchange is free. Working very well for me. --Michael On Thursday 24 January 2002 10:56 am, you wrote: just use a 3rd party component. check out the www.bitmechanic.com JDBC-Pool. have a nice day -reynir -Original Message- From: Sean LeBlanc [mailto:[EMAIL PROTECTED]] Sent: 24. janúar 2002 16:00 To: [EMAIL PROTECTED] Subject: Pooling database connections: best practices? I'm just wondering what kind of best practices are recommended for pooling database connections - with Tomcat and perhaps JSP/Servlets in general. Thanks, Sean LeBlanc -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Tomcat prerequisites
Well I can't find any list of computers and their OSs that would let Apache/Tomcat work. Would it be OK on iSeries, Windows NT, 2000, AIX, HP-UX, Solaris ? I have already read the doc you are mentioning but it does not help me much... Thanks for answering anyway. It's just that other, commercial web app servers provide you with such lists so you can tell your customer he's OK with his gear or not. Any other idea of wher to find more information ? I have searched through the mailing list archive as well. - Message d'origine - De : Emir Alikadic [EMAIL PROTECTED] Does anybody know where I could find prerequisites for installing Tomcat ? Any list of minimum requirements for hardware / software needed to operate Tomcat ? E, Tomcat documentation perhaps? http://jakarta.apache.org/tomcat/tomcat-4.0-doc/RUNNING.txt -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
BLOB FROM JSP PAGE
Hello, Is there a way to display images from database blob fields within only jsp, i know that it is impossible because of you can not handle an another outputstream within jsp. But this is a very critical for our application design. sincerely , Ugur
Default servlet / directory listings: different settings per context
Hello, I'm well aware how to globally enable or disable directory listings within Tomcat (by modifying the listings parameter of the default servlet). However, I don't know how to set this up correctly context-by-context. Here's what I've tried: - copying the servlet and servlet-mapping elements as-is from the global web.xml to the web.xml of a particular context. This doesn't work, as the context is not initialised due to the duplicate servlet definition. - copying the servlet and servlet-mapping elements from the global web.xml to the web.xml of a particular context, but changing the name in both elements to default2. The context starts, but the servlet is never invoked (the default global servlet seems to intercept and process the request, because the request is handled as expected from the global web.xml, but not according to the params of the context's web.xml). I don't want to remove the global definition of the default servlet, because that becomes somewhat tedious if I've got to copy it to each context I deploy. This is also unsuitable when I wish to deploy a WAR file, as I have to unpack it and modify it's web.xml. Furthermore, I can't leave the default servlet's definition in any redistributable webapp that I create, because it's not guaranteed that the implementing class (org.apache.catalina.servlets.DefaultServlet) will be available on other servlet version, or if the class is the same version. How can I achieve the desired configuration? Thanks in advance, -Chris B. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Tomcat prerequisites
-Original Message- From: Frederic Michoulier [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 24, 2002 11:27 AM To: Tomcat Users List Subject: Re: Tomcat prerequisites Well I can't find any list of computers and their OSs that would let Apache/Tomcat work. Would it be OK on iSeries, Windows NT, 2000, AIX, HP-UX, Solaris ? I have already read the doc you are mentioning but it does not help me much... Thanks for answering anyway. As implied by the referenced document - if you can get Java to run on the platform (Java 2 for Tomcat 4), then you can run Tomcat. It's just that other, commercial web app servers provide you with such lists so you can tell your customer he's OK with his gear or not. With open source, every one is a volunteer. That is the cost - you save capital but should expect to put a little work into figuring things out for yourself. Any other idea of wher to find more information ? I have searched through the mailing list archive as well. Mailing list and archive are the best sources followed by the documentation, but nothing bets a little experimentation and self-directed learning. Randy - Message d'origine - De : Emir Alikadic [EMAIL PROTECTED] Does anybody know where I could find prerequisites for installing Tomcat ? Any list of minimum requirements for hardware / software needed to operate Tomcat ? E, Tomcat documentation perhaps? http://jakarta.apache.org/tomcat/tomcat-4.0-doc/RUNNING.txt -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
How access the Manager-App not over localhost
this works: --- http://ufasrv05:8080/manager/list -- OK - Listed applications for virtual host localhost this doesn't work http://ufa/manager/list -- Apache Tomcat/4.0.2-b2 - HTTP Status 403 - Access to the requested resource has been denied type Status report message Access to the requested resource has been denied description Access to the specified resource (Access to the requested resource has been denied) has been forbidden. question: - I need to manage my tomcat over the internet how can I do this? Do I have to set up a local Host? Thanks for your help Beat Friedli _ Testen Sie MSN Messenger für Ihren Online-Chat mit Freunden: http://messenger.msn.de -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: BLOB FROM JSP PAGE
No, JSPs have text only output. You will need to use a servlet and response.getOutputStream to send images (or other BLOBs). Randy -Original Message- From: Mehmet Ugur Kuzu (LinkPlus) [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 24, 2002 11:26 AM To: '[EMAIL PROTECTED]' Subject: BLOB FROM JSP PAGE Hello, Is there a way to display images from database blob fields within only jsp, i know that it is impossible because of you can not handle an another outputstream within jsp. But this is a very critical for our application design. sincerely , Ugur -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
TC 3.3a: strange auto-generated context
I am completely new to Tomcat and just installed TC3.3a for a third party application. The application puts its stuff in $TOMCAT_HOME/webapps/xxx_arch. When starting Tomcat 3.3a it creates a context xxx/arch while I'd expect xxx_arch like Tomcat 3.2.1 did. Is this an expected change? To set the desired context (xxx_arch) I created an conf/apps-xxx_arch.xml but now I get both: xxx_arch and xxx/arch. Is there any configuration file to change this behavior? Thanks, Michael -- Michael Lemke -- Information Services Communication (ISC 1) INA-Schaeffler KG, Tel: +49 (0)9132 - 82 3441 Industriestr 1-3,e-mail: [EMAIL PROTECTED] D-91074 Herzogenaurach http://www.ina.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Tomcat prerequisites
Would it be OK on iSeries, Windows NT, 2000, AIX, HP-UX, Solaris ? The short answer is - yes. Tomcat is written in Java and will run on any Java enabled OS which supports the current TCPIP implementation. We have clients running Tomcat on WinNT, Win2K and Solaris. As for hardware, that depends on the volume of concurrent hits, complexity of the application etc. Jim -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: servlets work but JSPs not!
On Thu, 24 Jan 2002, Elif Zeynep Buyukduman wrote: Date: Thu, 24 Jan 2002 16:59:03 +0200 From: Elif Zeynep Buyukduman [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: RE: servlets work but JSPs not! Tomcat is said to require JDK 1.2 or above. But it didn't reject to set itself up with this version and the servlet examples work well with this verison of JDK. the main problem: at sun`s web page I couldn't find JDK 1.2 or newer versions. I am gonna get mad! there are discussion boards and etc. about JDK 1.2 but i cannot reach a download... http://java.sun.com/j2se Version 1.3.1 is the current production version; a release candidate of version 1.4 was recently published as well (it will go final soon). I think the same with you; the problem should be caused by JDK version mismatch.. does anybody know from where to download JDK 1.2 (or newer)? Zeynep Craig -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
tomcat question
Hi, if in a jsp file i Use a response.sendRedirect(), the path of servername becomes http://hostname:0/context/ What's up? Andrea -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: BLOB FROM JSP PAGE
Have you thought of using a servlet mapped to the file you are working with (ie servlet mapping to *.jpg)? I haven't tried it, but in theory (this is how I would do it if I had to), the servlet would catch the request, access the info from the db and return the binary data. Since the client makes the request for images separate from the HTML page, you'll also have to include some info in the URL (GET request) for the image so the servlet knows which one to get. Just a thought that might get you where you want to go. --David On Thursday 24 January 2002 11:25 am, you wrote: Hello, Is there a way to display images from database blob fields within only jsp, i know that it is impossible because of you can not handle an another outputstream within jsp. But this is a very critical for our application design. sincerely , Ugur -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: setting classpath in TOMCAT 4.0
On Thu, 24 Jan 2002, Jeff Ong wrote: Date: Thu, 24 Jan 2002 18:47:10 +0800 From: Jeff Ong [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED], jEff oNg [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: setting classpath in TOMCAT 4.0 hi all, I faced problem when try to set CLASSPATH in TOMCAT. I have my own java beans and servlets which located in others path. Where should i set these path in order to let TOMCAT refer it in runtime? You don't -- CLASSPATH causes more grief for Tomcat users than anything except web connector configuration. Move the beans into the directories identified by the Tomcat documentation (http://jakarta.apache.org/tomcat/tomcat-4.0-doc/class-loader-howto.html). Alternatively, you can modify the startup/shutdown scripts in the bin directory, but then you're on your own for figuring out class loading problems. Craig -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Tomcat prerequisites
Thanks for this rapid reply, I would like to make apache 1.3.22 and tomcat/catalina work together on NT or 2000 Thank you - Original Message - From: Jim Urban [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED]; Frederic Michoulier [EMAIL PROTECTED] Sent: Thursday, January 24, 2002 5:43 PM Subject: RE: Tomcat prerequisites Would it be OK on iSeries, Windows NT, 2000, AIX, HP-UX, Solaris ? The short answer is - yes. Tomcat is written in Java and will run on any Java enabled OS which supports the current TCPIP implementation. We have clients running Tomcat on WinNT, Win2K and Solaris. As for hardware, that depends on the volume of concurrent hits, complexity of the application etc. Jim -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]