hey you
Norton AntiVirus eliminato1.txt Description: plain/text - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Setting classpath out of the webapp directory
Hi there, I'have been trying to set the classpath of the webapp out of the directory of this webapp. This is for me little important, since some classes I'd like to use (I have to use) in other webapps. I want to have only one file of this class -- I don't want to copy classes between the webapps. I'm sure it is possible to do it, as I need it, but I don't know how. Would be anybody so kind and help me with this? I would also like to export the lib directory of webapp out of the webapp directory so that the shared libaries could be presented as file only once. This is probably the same problem as above. Could anybody help me? Thanks a lot. Best Regards. Honza Spurny - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Setting classpath out of the webapp directory
On 5/3/2004 4:26 PM, Honza Spurn wrote: Hi there, I'have been trying to set the classpath of the webapp out of the directory of this webapp. This is for me little important, since some classes I'd like to use (I have to use) in other webapps. I want to have only one file of this class -- I don't want to copy classes between the webapps. I'm sure it is possible to do it, as I need it, but I don't know how. Would be anybody so kind and help me with this? I would also like to export the lib directory of webapp out of the webapp directory so that the shared libaries could be presented as file only once. This is probably the same problem as above. Could anybody help me? Thanks a lot. Best Regards. Honza Spurny - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] $CATALINA_HOME/common/lib - jars $CATALINA_HOME/common/classes - classes - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How to set different security layer in subcontext?
Hi there, please, I need to set unsecure connection in subcontext of secure context. :) It means: I have webapp1, that is set as: security-constraint web-resource-collection web-resource-namewebapp1/web-resource-name url-pattern/*/url-pattern http-methodGET/http-method http-methodPOST/http-method /web-resource-collection user-data-constraint transport-guaranteeCONFIDENTIAL/transport-guarantee /user-data-constraint /security-constraint What I need is, to set some subdirectory of webapp-direcotry to have no security connection. So the directory DIR should be accessible also in http requests. So I would like to specify something like this: security-constraint web-resource-collection web-resource-nameunsecure directory/web-resource-name url-pattern/DIR/*/url-pattern http-methodGET/http-method http-methodPOST/http-method /web-resource-collection user-data-constraint transport-guaranteeNONE/transport-guarantee /user-data-constraint /security-constraint I've tried this, but this doesn't work. Would be anybody so kind and help. Thanks a lot. Best Regards Honza Spurny - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Setting classpath out of the webapp directory
I know with Tomcat if you have shared classes, you can put them in the shared lib dir under tomcat. Your application classes %catalina_home%/webapps/root/WEB-INF/lib Shared classes %catalina_home%/lib -Original Message- From: Honza Spurn [mailto:[EMAIL PROTECTED] Sent: Monday, May 03, 2004 10:26 To: Tomcat Maillisting Subject: Setting classpath out of the webapp directory Hi there, I'have been trying to set the classpath of the webapp out of the directory of this webapp. This is for me little important, since some classes I'd like to use (I have to use) in other webapps. I want to have only one file of this class -- I don't want to copy classes between the webapps. I'm sure it is possible to do it, as I need it, but I don't know how. Would be anybody so kind and help me with this? I would also like to export the lib directory of webapp out of the webapp directory so that the shared libaries could be presented as file only once. This is probably the same problem as above. Could anybody help me? Thanks a lot. Best Regards. Honza Spurny - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Setting classpath out of the webapp directory
it's easy :) put your classes or jars to be *shared by your webapps* into the directory ---%TOMCAT_HOME%\shared\classes or %TOMCAT_HOME%\shared\lib Regards, Potomac - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
FW: how many sessions can serve
Well, hi guys, I did installed the jmeter, it almost works, but I am getting this message error in the .jtl log file, and graph cannot be drown sampleResult timeStamp=1083509446828 dataType=text threadName=FTHREAD-1 label=HTTP Request time=0 responseMessage=Non HTTP response message responseCode=Non HTTP response code success=false/ It doesn't work with both links: myusername:[EMAIL PROTECTED]/manager/list myusername:[EMAIL PROTECTED]/manager/status The first link works from the browser! In the jmeter manual it asks to provide /manager/status which is not exists! Thanks guys. -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 28, 2004 14:54 To: Tomcat Users List Subject: RE: how many sessions can serve Hi, Dude, google: http://www.google.com/search?sourceid=navclientq=jmeter. Yoav Shapira Millennium Research Informatics -Original Message- From: Futchi [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 28, 2004 2:45 AM To: 'Tomcat Users List' Subject: RE: how many sessions can serve Ok guys, let me know where can I find it? is it free? -Original Message- From: Yansheng Lin [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 27, 2004 21:49 To: 'Tomcat Users List' Subject: RE: how many sessions can serve Where did you go? Jakarta Indonesia? Kidding:). Hi, Jmeter is pretty simple to use. I think Yoav recommended me that tool a long time ago. -Yan -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: April 27, 2004 07:02 To: Tomcat Users List Subject: RE: how many sessions can serve Hi, It's gratifying to see the list remains the same while I'm gone on vacation ;) Just kidding. Tomcat's session serving limitations are limited mostly by your hardware (memory) and by what your application puts in the session: large attributes demand more memory. So you need to benchmark your app with a stress testing tool to see how many sessions you can serve. Yoav Shapira Millennium Research Informatics -Original Message- From: Futchi [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 27, 2004 9:58 AM To: 'Tomcat Users List'; [EMAIL PROTECTED] Subject: RE: how many sessions can serve What is this technet and why Tomcat can serve only one session? I guess that tomcat limits the session size!! If some one knows what is the maximum session size then we will be able to know ahead how many sessions tomcat-server can serve at a time -Original Message- From: Jim Smith [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 27, 2004 11:38 To: Tomcat Users List Subject: Re: how many sessions can serve QM wrote: On Mon, Apr 26, 2004 at 09:47:43AM +0200, wrote: : I am new to this list but not to Java, I just done setting up my : server/Tomcat, and I wonder how many session can Tomcat serve at a time, : or at least how to calculate this, If I have 2 GB RAM, and Dual CPUs : 3.06. Others have addressed your memory/sizing question, so I'll focus on the session question: It's not possible to (reliably) calculate this ahead of time. It is dependent on your app, not Tomcat. Has anyone published figures for well known apps (eg Pet Store) ? This would give a general guide eg. Hello World- 10,000,000 sessions Pet Store- 100,000 sessions technet- 1 session - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended
Re: Setting classpath out of the webapp directory
Eric Noel wrote: On 5/3/2004 4:26 PM, Honza Spurn wrote: Hi there, I'have been trying to set the classpath of the webapp out of the directory of this webapp. This is for me little important, since some classes I'd like to use (I have to use) in other webapps. I want to have only one file of this class -- I don't want to copy classes between the webapps. I'm sure it is possible to do it, as I need it, but I don't know how. Would be anybody so kind and help me with this? I would also like to export the lib directory of webapp out of the webapp directory so that the shared libaries could be presented as file only once. This is probably the same problem as above. Could anybody help me? Thanks a lot. Best Regards. Honza Spurny - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] $CATALINA_HOME/common/lib - jars $CATALINA_HOME/common/classes - classes After I did so, tomcat stops to work at all. Should I set some settings in tomcat or what is wrong, does anybody know about it. The error that occures is java.lnag.NoSuchMethodException: org.apache.catalina.startup.Catalina.setAwait(boolean). Only things I did are: - in the common directory I've created src directory - into the src dir I've copied all shared java-sourced classes - i've compiled them into the common/classes directory - i've copied some shared libaries into the common/lib - i've removed whole directory webapps/MyApp/WEB-INF/classes/ (classes direcotry is still presented, but it is almost empty -- except the messageResources files -- these were leaved in the original space) - i've restarted tomcat - errors occures Please can anybody help. Thanks a lot Best Regards Honza S. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Setting classpath out of the webapp directory
Place your classes in common/lib or shared/lib But you need to be careful. The common/lib and shared/lib classloaders cannot see the WEB-INF classloader - which means that you can easily get the no class found errors. Multiple copies of JAR files in each classloader is OK. You can do that via symlinks or better - make the copy of the libraries (or classes) as part of you ant build script. If its part of your ant build script - there is not extra work to do. http://jakarta.apache.org/tomcat/tomcat-4.1-doc/class-loader-howto.html -Tim Honza Spurn wrote: Hi there, I'have been trying to set the classpath of the webapp out of the directory of this webapp. This is for me little important, since some classes I'd like to use (I have to use) in other webapps. I want to have only one file of this class -- I don't want to copy classes between the webapps. I'm sure it is possible to do it, as I need it, but I don't know how. Would be anybody so kind and help me with this? I would also like to export the lib directory of webapp out of the webapp directory so that the shared libaries could be presented as file only once. This is probably the same problem as above. Could anybody help me? Thanks a lot. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Setting classpath out of the webapp directory
I've done: - in the common directory I've created src directory - into the src dir I've copied all shared java-sourced classes - i've compiled them into the common/classes directory - i've copied some shared libaries into the common/lib - i've removed whole directory webapps/MyApp/WEB-INF/classes/ (classes direcotry is still presented, but it is almost empty -- except the messageResources files -- these were leaved in the original space) - i've restarted tomcat Now no error occures. But after I want to connect to the webapp, that has some classes in the common/classes directory, the blank page in the browser occures and on the tomcat-terminal is written: java.lang.ClassCastException. This means, as I know, that tomcat can find this classes in the common/classes directory. :( Does anybody know, what I should set in the tomcat variables to let tomcat could search the common/classes directory for classes? Thanks a lot for help Honza S. Eric Noel wrote: On 5/3/2004 4:26 PM, Honza Spurn wrote: Hi there, I'have been trying to set the classpath of the webapp out of the directory of this webapp. This is for me little important, since some classes I'd like to use (I have to use) in other webapps. I want to have only one file of this class -- I don't want to copy classes between the webapps. I'm sure it is possible to do it, as I need it, but I don't know how. Would be anybody so kind and help me with this? I would also like to export the lib directory of webapp out of the webapp directory so that the shared libaries could be presented as file only once. This is probably the same problem as above. Could anybody help me? Thanks a lot. Best Regards. Honza Spurny - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] $CATALINA_HOME/common/lib - jars $CATALINA_HOME/common/classes - classes - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Setting classpath out of the webapp directory
Hi, I want to have only one file of this class -- I don't want to copy classes between the webapps. Why? Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Setting classpath out of the webapp directory
Shapira, Yoav wrote: Hi, I want to have only one file of this class -- I don't want to copy classes between the webapps. Why? Yoav Shapira Beacuase when you are developing both webapps at the same time, duplicates leads into some data inconsistences, doesn't it? Honza S. This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Setting classpath out of the webapp directory
Hi, Beacuase when you are developing both webapps at the same time, duplicates leads into some data inconsistences, doesn't it? Not if your development and deployment process is well-controlled. Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Setting classpath out of the webapp directory
Shapira, Yoav wrote: Hi, Beacuase when you are developing both webapps at the same time, duplicates leads into some data inconsistences, doesn't it? Not if your development and deployment process is well-controlled. Yoav Shapira OK, you are right, but I think, is really better to have the same code in one file -- i think is;t better than have one code in a lot of files, don't you? :) This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Setting classpath out of the webapp directory
Hi, OK, you are right, but I think, is really better to have the same code in one file -- i think is;t better than have one code in a lot of files, don't you? :) I completely agree, but the above is unrelated to your previous question. The same code should only be in one file, of course. Then you're only developing one place. Each time you make a new version of this shared library, you deploy it to all the applications that use it. This is elementary development process engineering. Don't waste your time hacking around strange classpath configurations, you'll get only headaches in the long run. Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
workers2.properties documentation?
Can anyone tell me where to find documentation on all the available variables possible in the workers2.properties for Tomcat 4.1? Thanks. Charles (Allen) Jordan [EMAIL PROTECTED] System Administrator(407)771-8919 Convergys 285 International Parkway, Lake Mary, FL 32746-5007 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Setting classpath out of the webapp directory
Hi, I think I'm not concerned by your message. Thanks in advanced to delete my adress from your list of users. -Message d'origine- De : Shapira, Yoav [mailto:[EMAIL PROTECTED] Envoye : lundi 3 mai 2004 15:17 A : Tomcat Users List Objet : RE: Setting classpath out of the webapp directory Hi, OK, you are right, but I think, is really better to have the same code in one file -- i think is;t better than have one code in a lot of files, don't you? :) I completely agree, but the above is unrelated to your previous question. The same code should only be in one file, of course. Then you're only developing one place. Each time you make a new version of this shared library, you deploy it to all the applications that use it. This is elementary development process engineering. Don't waste your time hacking around strange classpath configurations, you'll get only headaches in the long run. Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: workers2.properties documentation?
The docs were just updated. I had to read to code to get them that far. I guess you will too. In the Jakarta connectors project look in the directory /jk/native2/common/apr That is where all of the C code for the jk2 is located. -Original Message- From: Charles Jordan [mailto:[EMAIL PROTECTED] Sent: Monday, May 03, 2004 9:19 AM To: [EMAIL PROTECTED] Subject: workers2.properties documentation? Can anyone tell me where to find documentation on all the available variables possible in the workers2.properties for Tomcat 4.1? Thanks. Charles (Allen) Jordan [EMAIL PROTECTED] System Administrator(407)771-8919 Convergys 285 International Parkway, Lake Mary, FL 32746-5007 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: workers2.properties documentation?
you might be looking for this: http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk2/configwebcom.html if you're just getting started with jk, you should read this too - very good entry tutorial: http://jboss.org/wiki/Wiki.jsp?page=UsingMod_jkWithJBoss frank - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
webservices
Hi., 1.Does Tomcat Support Webservices?. If no anyother way to handle this? 2.what is wevservices project in jakarta site? Thanks., MALAI
Re: webservices
Take a look at the Axis project and any other you may find interesting at http://ws.apache.org/ Matt - Original Message - From: Malai [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Monday, May 03, 2004 8:52 AM Subject: webservices Hi., 1.Does Tomcat Support Webservices?. If no anyother way to handle this? 2.what is wevservices project in jakarta site? Thanks., MALAI - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat Java Processes
Hello. I'd like to know how Tomcat treats it connection established with the client (browser). Seeing from what apache does ( that is, the browser asks for a connection, the server responds, returns the page, and then sends a close statement to the client. The client receives the page, the close statement and confirms the close. After that, that specific connection is dead) does Tomcat act similarly ? I've noticed that I get lots and lots of java processes running and with a close_wait status. Does this mean that it doesn't close each request made from the browser ? Thanks a lot. Sincerely, John. -- Softway Softcomex Joo Augusto Charnet Computer Engineer - eSoftcomex Team Phone/Fax: 55 19 3739-9200 E-mail: [EMAIL PROTECTED] R. Conceicao, 233 - Cj, 609 - Centro 13010-050 - Campinas - SP - Brazil inline: e:\\Assinatura Digital\\Softway.gif
mod_jk2 - Win32 Alias problems
Greetings. Having a (couple of) problem(s) with the latest mod_jk2 build (which I am compiling myself with VisualC++ 6 - as well as trying the precompiled binary - same behaviour). I tried to see if there were any other posts regarding this issue - could not find any! The first problem is thus: I have multiple virtual hosts configured in Apache2 and Tomcat5. Some of the hosts have multiple aliases. The confiugration option I am using specifies the ServerAlias entries in the Apache2 VirtualHost blocks where applicable. I have the matching Alias/ entries in the TC5 Host/ blocks. Then for each VirtualHost I have the following JK directive set to ensure that JSP requests are passed to TC from Apache: Location /*.jsp JkUriSet worker ajp13:localhost:8009 /Location This is the last thing before /VirtualHost When using the latest mod_jk (which is now a .so even on Windows it seems - instead of a DLL) the ServerName (main server URL) works perfectly. All JSP posts happily get processed by TC as expected. Problem arises when you access the site using one of the ServerAliases - the index.jsp is processed fine by TC5 - however ALL OTHER JSP requests are being processed by Apache (i.e. shows the source as text or asks you to download the .jsp file when the JSP is a HREF link!). This definitely did not happen with earlier version of JK2! Another problem is that sometimes - when there is a highly processor intensive JSP page being processed by TC - or a JSP page that has a LOT of HTML commin back - JK seems to lose it. The HTML is all messed up - or it does not finish loading - or it includes HTML from JSPs beikng hosted on the same server - but completely different Hosts!! This definitely seems to be a JK2/CoyoteConnector issue (although I did also experience it with JK1.2 on older versions of TC (3 and 4)) as when you go through Tomcat's HTTP1.1 connector on a different port the problems never crop up. Has anyone else experienced this? Any feedback/assistance would be greatly appreciated! Best regards, Carl
RE: Tomcat Java Processes
Hi, Tomcat, like Apache httpd, implements the HTTP procotol, as specified here: http://www.ietf.org/rfc/rfc2616.txt?number=2616. That includes the connection handling part. If you're talking about other tomcat connectors, e.g. ones that implement the AJP protocol, the specification and handling may be vastly different from HTTP. So you need to be clearer in your question. Yoav Shapira Millennium Research Informatics -Original Message- From: João Augusto Charnet [mailto:[EMAIL PROTECTED] Sent: Monday, May 03, 2004 11:44 AM To: Tomcat Users List Subject: Tomcat Java Processes Hello. I'd like to know how Tomcat treats it connection established with the client (browser). Seeing from what apache does ( that is, the browser asks for a connection, the server responds, returns the page, and then sends a close statement to the client. The client receives the page, the close statement and confirms the close. After that, that specific connection is dead) does Tomcat act similarly ? I've noticed that I get lots and lots of java processes running and with a close_wait status. Does this mean that it doesn't close each request made from the browser ? Thanks a lot. Sincerely, John. -- Softway Softcomex João Augusto Charnet Computer Engineer - eSoftcomex Team Phone/Fax: 55 19 3739-9200 E-mail: [EMAIL PROTECTED] R. Conceicao, 233 - Cj, 609 - Centro 13010-050 - Campinas - SP - Brazil This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JSP and war deployment
I don't see why you don't want to use war files, but you could just place the directory containing your webapp in the folder where you usually would put the war file. Tomcat un-jars any war files automatically upon reboot or webapp installation, and then it uses the directories extracted from the war files. Chris Alvarez Web Application Services Novell, Inc., the leading provider of information solutions http://www.novell.com [EMAIL PROTECTED] 04/30 9:12 pm Hi there, i'm a tomcat newbie, i was wondering how jsp is deployed in tomcat ?*I am currently doing a j2ee course, they are using the weblogic application server and to redeploy jsp you have you pack it up into a war file after each change :\How do you avoid this ? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Chris Alvarez (801)861-3837 Novell, Inc., the leading provider of information solutions. http://www.novell.com
Solution for Tomcat IIS problem
-Original Message- From: Tolle Krez [mailto:[EMAIL PROTECTED] Sent: Monday, May 03, 2004 8:22 AM To: Paresh Varatkar Subject: Problem with Tomcat5 and IIS5 Hello Paresh, try to use group:lb:lb instead of just group:lb # define the worker [ajp13:localhost:8009] channel=channel.socket:localhost:8009 group=lb:lb [uri:/gf/*] group=lb:lb I hope this helps. -Original Message- From: Paresh Varatkar Sent: Thursday, April 29, 2004 8:25 AM To: [EMAIL PROTECTED] Subject: Problem with Tomcat5 and IIS5 Importance: High Hi, I have many times made tomcat to work with iis. This time I am getting HTTP 500 error. I checked my jakarta filter is green but its not producing any log In IIS log I get this. #Date: 2004-04-28 15:16:28 #Fields: date time c-ip cs-username s-ip s-port cs-method cs-uri-stem cs-uri-query \ sc-status cs(User-Agent) 2004-04-28 15:16:28 127.0.0.1 - 127.0.0.1 80 GET \ /jakarta/isapi_redirector2.dll - 500 \ Mozilla/4.0+(compatible;+MSIE+5.5;+Windows+NT+5.0;+T312461;+.NET+CLR+1.0.3705) \ 2004-04-28 15:16:30 127.0.0.1 - 127.0.0.1 80 GET /jakarta/isapi_redirector2.dll - 500 \ Mozilla/4.0+(compatible;+MSIE+5.5;+Windows+NT+5.0;+T312461;+.NET+CLR+1.0.3705) \ 2004-04-28 15:16:31 127.0.0.1 - 127.0.0.1 80 GET /jakarta/isapi_redirector2.dll - 500 \ Mozilla/4.0+(compatible;+MSIE+5.5;+Windows+NT+5.0;+T312461;+.NET+CLR+1.0.3705) Regards Paresh ___ My workers2.properties file is [shm] info=Scoreboard. Requried for reconfiguration and status with multiprocess servers. file=anon # Defines a load balancer named lb. Use even if you only have one machine. [lb:lb] # Example socket channel, override port and host. [channel.socket:localhost:8009] port=8009 host=127.0.01 # define the worker [ajp13:localhost:8009] channel=channel.socket:localhost:8009 group=lb # Map the Tomcat examples webapp to the Web server uri space [uri:/gf/*] group=lb [status:] info=Status worker, displays runtime information [uri:/jkstatus/*] info=The Tomcat /jkstatus handler group=status: __ My server.xml connector has(I tried both redirecting to 8080 as wellas 8443, both \ gives same error) !-- Define a non-SSL Coyote HTTP/1.1 Connector on the port specified during installation -- Connector port=8080 maxThreads=150 minSpareThreads=25 maxSpareThreads=75 enableLookups=false redirectPort=8443 acceptCount=100 debug=0 connectionTimeout=2 disableUploadTimeout=true / !-- Define a SSL Coyote HTTP/1.1 Connector on port 8443 -- !-- Connector port=8443 maxThreads=150 minSpareThreads=25 maxSpareThreads=75 enableLookups=false disableUploadTimeout=true acceptCount=100 debug=0 scheme=https secure=true Factory clientAuth=false protocol=TLS / /Connector -- !-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 -- Connector port=8009 enableLookups=false redirectPort=8080 debug=0 protocol=AJP/1.3 / ___ My Registry property are extensionUri=/jakarta/isapi_redirector2.dll serverRoot=C:\Tomcat logLevel=DEBUG workersFile=C:\Tomcat\conf\workers2.properties worker_mount_file=C:\Tomcat\conf\uriworkermap.properties (I know this is not needed \ but removing this does not make any change). \ __ \ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
startupw.exe classpath
I'm having classpath trouble when I start Tomcat 5.0.19 with the Start Tomcat shortcut that points to C:\Tomcat50\bin\tomcatw.exe //GT//Tomcat5 I want to include a directory that is outside of the tomcat install dir, e.g. c:\mydir, but I don't know how to add that directory to the classpath. I can edit setclasspath.bat to include that directory, and then start Tomcat with either startup.bat or catalina.bat and it works fine; is there an analogous file for tomcatw.exe? Thank you, Justin McReynolds Advanced Product Support Engineer - Stellent, Inc. - Office: (425) 896-7057 - Cell: (425) 985-2425 - [EMAIL PROTECTED]
Modify request in a Vavle?
Hi there, Is it possible to modify the content of a request (say, the SOAP message it carries) in a Tomcat valve? I was hoping to embed some info into the SOAP message and thus pass it to the subsequent Axis environment.. I had a look at the Request structure Tomcat valve captures, but couldn't find any convenient way to achieve the above. Can any one give me some suggestions? Thank you very much. Best regards, Rui - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Modify request in a Vavle?
Hi, You can modify some things in a Valve, such as request headers. Modifying the request content itself is trickier. I haven't tried to do that in a Valve, but since tomcat is open you can always modify the connector if you're hell-bent on going this way. Consider a Filter (javax.servlet.Filter) rather than a Valve if you need to modify headers or otherwise customize the request. A Filter in combination with an HttpServletRequestWrapper is not only effective and flexible, but also more portable than a Valve because it's not specific to Tomcat. Yoav Shapira Millennium Research Informatics -Original Message- From: Rui Zhang [mailto:[EMAIL PROTECTED] Sent: Monday, May 03, 2004 2:34 PM To: [EMAIL PROTECTED] Subject: Modify request in a Vavle? Hi there, Is it possible to modify the content of a request (say, the SOAP message it carries) in a Tomcat valve? I was hoping to embed some info into the SOAP message and thus pass it to the subsequent Axis environment.. I had a look at the Request structure Tomcat valve captures, but couldn't find any convenient way to achieve the above. Can any one give me some suggestions? Thank you very much. Best regards, Rui - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re:(ID-number: 286600) RE: Modify request in a Vavle?
Dear Tomcat Users List, The Support Request you submitted to Opera Premium Support with the Title of RE: Modify request in a Vavle? has been given the following ID-number: 286600 Please include the ID-number in the subject line if you want to reply to this e-mail. - Information below are for registered Opera users only: Please use the below URL if you wish to view the Support Request again: https://support.opera.no/bin/customer?a=286600+201555+xktppbuv -- Sincerely Yours, Customer Service Department Opera Software AS http://www.opera.com/ Copyright Opera Software - © All rights reserved. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Modify request in a Vavle?
Sorry, is it possible to provide a Wrapper around the captured request and do some processing while the request content is retieved from the associated InputStream? Thanks again, Rui On Mon, 3 May 2004, Rui Zhang wrote: Hi there, Is it possible to modify the content of a request (say, the SOAP message it carries) in a Tomcat valve? I was hoping to embed some info into the SOAP message and thus pass it to the subsequent Axis environment.. I had a look at the Request structure Tomcat valve captures, but couldn't find any convenient way to achieve the above. Can any one give me some suggestions? Thank you very much. Best regards, Rui - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re:(ID-number: 286605) Re: Modify request in a Vavle?
Dear Tomcat Users List, The Support Request you submitted to Opera Premium Support with the Title of Re: Modify request in a Vavle? has been given the following ID-number: 286605 Please include the ID-number in the subject line if you want to reply to this e-mail. - Information below are for registered Opera users only: Please use the below URL if you wish to view the Support Request again: https://support.opera.no/bin/customer?a=286605+201555+xktppbuv -- Sincerely Yours, Customer Service Department Opera Software AS http://www.opera.com/ Copyright Opera Software - © All rights reserved. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Modify request in a Vavle?
Hi Yoav, Many thanks for your advice. For some reasons, it would be most desirable if we could modify the content in a valve... Anyway, your info is very helpful. So you are saying that we can definitely modify the CONTENT of a request in a Filter? Cheers, Rui On Mon, 3 May 2004, Shapira, Yoav wrote: Hi, You can modify some things in a Valve, such as request headers. Modifying the request content itself is trickier. I haven't tried to do that in a Valve, but since tomcat is open you can always modify the connector if you're hell-bent on going this way. Consider a Filter (javax.servlet.Filter) rather than a Valve if you need to modify headers or otherwise customize the request. A Filter in combination with an HttpServletRequestWrapper is not only effective and flexible, but also more portable than a Valve because it's not specific to Tomcat. Yoav Shapira Millennium Research Informatics -Original Message- From: Rui Zhang [mailto:[EMAIL PROTECTED] Sent: Monday, May 03, 2004 2:34 PM To: [EMAIL PROTECTED] Subject: Modify request in a Vavle? Hi there, Is it possible to modify the content of a request (say, the SOAP message it carries) in a Tomcat valve? I was hoping to embed some info into the SOAP message and thus pass it to the subsequent Axis environment.. I had a look at the Request structure Tomcat valve captures, but couldn't find any convenient way to achieve the above. Can any one give me some suggestions? Thank you very much. Best regards, Rui - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Modify request in a Vavle?
Hi, Sorry, is it possible to provide a Wrapper around the captured request and do some processing while the request content is retieved from the associated InputStream? Yes. You might want to search for a book or tutorial that deals with servlet request/response wrappers. Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Modify request in a Vavle?
Hi, Anyway, your info is very helpful. So you are saying that we can definitely modify the CONTENT of a request in a Filter? What you would do is: - Create a custom InputStream - Create an HttpServletRequestWrapper - Create a Filter Map the filter to the requests you want to intercept. Have the filter wrap these requests in your HttpServletRequestWrapper. Have the wrapper substitute your InputStream for the real one. Then your InputStream can return whatever content you want. It's tricky to do correctly. It's probably a bad idea from the start (why not just have a good request, or tailor the web service to correctly handle/reject bad requests?). But your question was if it's possible at all, so yeah it is. Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Modify request in a Vavle?
I think that using a valve or a filter would work for that. Using Filters would be better though I think: http://java.sun.com/products/servlet/Filters.html -Original Message- From: Rui Zhang [mailto:[EMAIL PROTECTED] Sent: Monday, May 03, 2004 2:34 PM To: [EMAIL PROTECTED] Subject: Modify request in a Vavle? Hi there, Is it possible to modify the content of a request (say, the SOAP message it carries) in a Tomcat valve? I was hoping to embed some info into the SOAP message and thus pass it to the subsequent Axis environment.. I had a look at the Request structure Tomcat valve captures, but couldn't find any convenient way to achieve the above. Can any one give me some suggestions? Thank you very much. Best regards, Rui - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Modify request in a Vavle?
Hi, You can modify some things in a Valve, such as request headers. Modifying the request content itself is trickier. I haven't tried to do that in a Valve, but since tomcat is open you can always modify the connector if you're hell-bent on going this way. So, anyone has done it with a Valve?? Thanks, Rui Oxford Univ Computing Lab - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: startupw.exe classpath
On Mon, May 03, 2004 at 10:46:50AM -0700, Justin McReynolds wrote: : I want to include a directory that is outside of the tomcat install dir, : e.g. c:\mydir, but I don't know how to add that directory to the : classpath. : : I can edit setclasspath.bat to include that directory, and then start : Tomcat with either startup.bat or catalina.bat and it works fine; is : there an analogous file for tomcatw.exe? Is there any reason you're not putting these classes/jars in (standard) dirs: {tomcat install}/common/lib {tomcat install}/common/classes {webapp context}/WEB-INF/lib {webapp context}/WEB-INF/classes ? Those are the Tomcat standards. -QM -- software -- http://www.brandxdev.net tech news -- http://www.RoarNetworX.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: webservices
Regarding webservices:tomcat works with Axis http://ws.apache.org/axis/ - Do you Yahoo!? Win a $20,000 Career Makeover at Yahoo! HotJobs
Service Temporarily Unavailable
I thought I'd try this request one more time since I didn't get any responses my first time out: I finally got Apache2+Tomcat5+mod_jk2 all talking. I entered the address http://myhost/jkstatus; and received the correct response page. However, when I entered the address: httpd://myhost/jsp-examples, I get the following output: - Service Temporarily Unavailable The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later. Apache/2.0.49 (Unix) mod_jk2/2.0.4 Server at 192.168.1.101 Port 80 - Does anyone have a clue here? Thanks, Ken - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat Java Processes
João Augusto Charnet wrote: Hello. I'd like to know how Tomcat treats it connection established with the client (browser). Seeing from what apache does ( that is, the browser asks for a connection, the server responds, returns the page, and then sends a close statement to the client. The client receives the page, the close statement and confirms the close. After that, that specific connection is dead) does Tomcat act similarly ? I've noticed that I get lots and lots of java processes running and with a close_wait status. Does this mean that it doesn't close each request made from the browser ? Thanks a lot. Sincerely, John. -- http://www.sfw.com.br*Softway Softcomex* *João Augusto Charnet* Computer Engineer - eSoftcomex Team *Phone/Fax: 55 19 3739-9200 E-mail: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] R. Conceicao, 233 - Cj, 609 - Centro 13010-050 - Campinas - SP - Brazil * Apache has a connector attached to Tomcat. This isn't exactly like port 8080 or your port 80 on Apache. This is a communication port for the connector protocol. Wade -- Wade Chandler Red-e Set Grow, LLC Phone: 336-777-0075 x1705 Email: [EMAIL PROTECTED] www.redesetgrow.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Service Temporarily Unavailable
Ken, Lacking your config files, no one can say for sure (at least I can't). My guess is that you don't have jsp-examples mapped so that Apache2 knows to use jk2/Tomcat5 to service that URL. Robert Ken Ramirez wrote: I thought I'd try this request one more time since I didn't get any responses my first time out: I finally got Apache2+Tomcat5+mod_jk2 all talking. I entered the address http://myhost/jkstatus; and received the correct response page. However, when I entered the address: httpd://myhost/jsp-examples, I get the following output: - Service Temporarily Unavailable The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later. Apache/2.0.49 (Unix) mod_jk2/2.0.4 Server at 192.168.1.101 Port 80 - Does anyone have a clue here? Thanks, Ken - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Servlet generating applet
Anything under WEB-INF is not visible to clients. Your applet code needs to be somewhere the client can download it from. Mark -Original Message- From: Celona, Paul - AES [mailto:[EMAIL PROTECTED] Sent: Monday, May 03, 2004 9:45 PM To: Tomcat Users List Subject: Servlet generating applet Has anyone generated an html page from a servlet that contains an applet? I am having trouble with the browser finding the class specified in the code param. I've had codebase set to a number of things with no success. Is the codebase the root of the webapp? Or is it supposed to set to WEB-INF/classes. The applet works fine when not downloaded from Tomcat. Paul - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This email and any files transmitted with it are proprietary and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the sender. Please note that any views or opinions presented in this email are solely those of the author and do not necessarily represent those of ITT Industries, Inc. The recipient should check this email and any attachments for the presence of viruses. ITT Industries accepts no liability for any damage caused by any virus transmitted by this email. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat Filter Apache Axis ?
Hi there, Has anyone ever got a Tomcat Filter working with Axis? The Axis 1.1 does not support a filter.../filter in its web.xml. And if I insert the Filter into the Tomcat default web.xml, Axis even won't return its index.html page. The Filter, however, works fine with other webapps in my Tomcat. Cheers, Rui Oxford Univ Computing Lab - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Service Temporarily Unavailable
Ken, That is an indication that Apache thinks Tomcat is down. So either your Tomcat is not up or problems with Tomcat-Apache connection. Jason -Original Message- From: Ken Ramirez [mailto:[EMAIL PROTECTED] Sent: Monday, May 03, 2004 12:32 PM To: [EMAIL PROTECTED] Subject: Service Temporarily Unavailable I thought I'd try this request one more time since I didn't get any responses my first time out: I finally got Apache2+Tomcat5+mod_jk2 all talking. I entered the address http://myhost/jkstatus; and received the correct response page. However, when I entered the address: httpd://myhost/jsp-examples, I get the following output: - Service Temporarily Unavailable The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later. Apache/2.0.49 (Unix) mod_jk2/2.0.4 Server at 192.168.1.101 Port 80 - Does anyone have a clue here? Thanks, Ken - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat Filter Apache Axis ?
On Mon, May 03, 2004 at 09:37:12PM +0100, Rui Zhang wrote: :The Axis 1.1 does not support a filter.../filter in its web.xml. And if I insert : the Filter into the Tomcat default web.xml, Axis even won't return its : index.html page. The Filter, however, works fine with other webapps in my : Tomcat. What's the XML doctype declaration for the Axis web.xml? Servlet filters were introduced in servlet spec 2.3. If your doctype declaration specifies 2.2 or earlier, the DTD won't recognize the filter (and related) tags. (Solution: specify the 2.3 DTD or 2.4 schema.) -QM -- software -- http://www.brandxdev.net tech news -- http://www.RoarNetworX.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Need Solution to authenticated webpages and forms
I was able to set up basic authentication through tomcat for a directory my webapps/myapp directory contains file that are open for everyone my webapps/myapp/admin directory contrains protected pages When I use forms in the webapps/myapp directory, hitting the back button on the browser(internet explorer) after submit saves the users data. However, when I use a form in the webapps/myapp/admin directory, hitting back button does not save anything. I tried it with a very simple form form method=post action=test2.jsp input type=text input type=submit value=Go /form and it didn't work. The form that I am using has a lot of drop down boxes (basic numbers which I created functions with javascript). However, if the user hits submit and comes to a confirmation page then they will have to go back to the form and they wont' be able to, all the data will be lost... unless I create some kind of back button but not sure how to handle that with the javascript population of the drop down since javascript and jsp runs on client/server two different places. Any solutions for this type of thing? I opened a bug, but was pointed to another bug and asked to ask this on the group emails The other bug said to do this but I don't know where this stuff is suppose to go. Should it be in the webapps/myapp/admin section??? Should I call it admin.xml ? I tried: Context path=/admin docBase=admin Valve className=org.apache.catalina.authenticator.FormAuthenticator disableProxyCaching=false / /Context but that didn't seem to work at all.. Please help because.. I'm also a newbie so please don't speak to complicated.. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 5: What to look for when reciving 'Cannot forward after response has been committed'
More specific, please:). Normally you put a break point somewhere and trace it to the line that throws exception, if you have the source code for tomcat, you can step into that line. -Yan -Original Message- From: Lars Ohlén [mailto:[EMAIL PROTECTED] Sent: May 2, 2004 10:35 To: Tomcat Users List Subject: Tomcat 5: What to look for when reciving 'Cannot forward after response has been committed' Hi, While converting from an older Tomcat version I run into the IllegalStateException that says Cannot forward after response has been committed I dont think that I have duplicate forwards so there must be something else to look for (My guess is PrintWriter outputs, response.addCookie). Exception is throws from a servlet. /Lars - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DB connection pool problem
Hi, I am also having the problem with the connection pools. Since I am writing an application first time by using connection pools, I created a test application DBTest. I edited my server.xml and web.xml (of my application in following way-- #added to server.xml Context path=/DBTest docBase=DBTest debug=0 reloadable=true ResourceParams name=jdbc/conversion parameter nameusername/name valueROOT/value /parameter parameter namepassword/name valuePASSWORD/value /parameter parameter namedriverClassName/name valuecom.mysql.jdbc.Driver/value /parameter parameter nameurl/name valuejdbc:mysql://localhost/DB/value /parameter /ResourceParams /Context #web.xml web-app descriptionMySQL Test App/description resource-ref res-ref-namejdbc/conversion/res-ref-name res-typejavax.sql.DataSource/res-type res-authContainer/res-auth /resource-ref /web-app And I added the following statements to my Java class, (which works fine, when I use the connection objects by hardcoding the username and db).-- Context init = new InitialContext(); Context ctx = (Context) init.lookup(java:comp/env); DataSource dataSource = (DataSource)ctx.lookup(jdbc/conversion); But even after, making these changes, I cannot read any thing from database. I was wondering what more changes I need to made. I also tried to run my JAVA class (DAO) from command line, but I get the following exception-- Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial I tried to print outs the place where exception occurs in my code and found that exception occurs at dataSource = (DataSource)ctx.lookup(jdbc/conversion); Can any body please comment on whats going on wrong? When I run from command line, is tomcat used, I don't think so? So where is the problem? Any ideas?? Avinash Arora - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: DB connection pool problem
You are missing the Resource/ part (needs to be just above ResourceParams/ Resource name=jdbc/conversion auth=Container scope=Sharable type=javax.sql.DataSource/ grts, Pat -Original Message- From: Arora, Avinash [mailto:[EMAIL PROTECTED] Sent: Monday, May 03, 2004 3:10 PM To: Tomcat Users List Subject: DB connection pool problem Hi, I am also having the problem with the connection pools. Since I am writing an application first time by using connection pools, I created a test application DBTest. I edited my server.xml and web.xml (of my application in following way-- #added to server.xml Context path=/DBTest docBase=DBTest debug=0 reloadable=true ResourceParams name=jdbc/conversion parameter nameusername/name valueROOT/value /parameter parameter namepassword/name valuePASSWORD/value /parameter parameter namedriverClassName/name valuecom.mysql.jdbc.Driver/value /parameter parameter nameurl/name valuejdbc:mysql://localhost/DB/value /parameter /ResourceParams /Context #web.xml web-app descriptionMySQL Test App/description resource-ref res-ref-namejdbc/conversion/res-ref-name res-typejavax.sql.DataSource/res-type res-authContainer/res-auth /resource-ref /web-app And I added the following statements to my Java class, (which works fine, when I use the connection objects by hardcoding the username and db).-- Context init = new InitialContext(); Context ctx = (Context) init.lookup(java:comp/env); DataSource dataSource = (DataSource)ctx.lookup(jdbc/conversion); But even after, making these changes, I cannot read any thing from database. I was wondering what more changes I need to made. I also tried to run my JAVA class (DAO) from command line, but I get the following exception-- Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial I tried to print outs the place where exception occurs in my code and found that exception occurs at dataSource = (DataSource)ctx.lookup(jdbc/conversion); Can any body please comment on whats going on wrong? When I run from command line, is tomcat used, I don't think so? So where is the problem? Any ideas?? Avinash Arora - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: DB connection pool problem
I have just created a pool -- I hope it is really a pool. I used jtds jdbc driver to MS SQL Server on Windows. You may find some thing similar. Holp it helps. 1) bellow is the text in tomcat\conf\server.xml GlobalNamingResources Resource name=jdbc/DirectSQL auth=Container type=javax.sql.DataSource/ ResourceParams name=jdbc/DirectSQL parameter namefactory/name valueorg.apache.commons.dbcp.BasicDataSourceFactory/value /parameter parameter namemaxActive/name value255/value /parameter parameter namemaxIdle/name value10/value /parameter parameter namemaxWait/name value1/value /parameter parameter nameusername/name valueuser1/value /parameter parameter namepassword/name valuepasswd1/value /parameter parameter namedriverClassName/name valuenet.sourceforge.jtds.jdbc.Driver/value /parameter parameter nameurl/name valuejdbc:jtds:sqlserver://serverName:1433/value /parameter /ResourceParams ... 2) bellow is the text in tomcat\conf\Catalina\localhost\ROOT.XML --I create this file by myself Context path= docBase=ROOT debug=0 privileged=true !-- Link to the user database using dbc:jtds:sqlserver -- ResourceLink name=jdbc/DirectSQL global=jdbc/DirectSQL type=javax.sql.DataSource/ /Context This name is used in Java code. global is the name in xml file. they can be different. 3) my test jsp file is in \tomcat\webapps\ROOT\zuo\ Context ctx = new InitialContext(); if (ctx == null) { throw new Exception(Boom - No Context); } DataSource ds = (DataSource) ctx.lookup(java:comp/env/jdbc/DirectSQL); if (ds != null) con = ds.getConnection(); if (con != null){ str = select * from myTable; pStateSearch = con.prepareStatement(str, ResultSet.TYPE_SCROLL_SENSITIVE, ResultSet.CONCUR_READ_ONLY ); rs = pStateSearch.executeQuery(); That's all. -Original Message- From: Arora, Avinash [mailto:[EMAIL PROTECTED] Sent: Monday, May 03, 2004 3:10 PM To: Tomcat Users List Subject: DB connection pool problem Hi, I am also having the problem with the connection pools. Since I am writing an application first time by using connection pools, I created a test application DBTest. I edited my server.xml and web.xml (of my application in following way-- #added to server.xml Context path=/DBTest docBase=DBTest debug=0 reloadable=true ResourceParams name=jdbc/conversion parameter nameusername/name valueROOT/value /parameter parameter namepassword/name valuePASSWORD/value /parameter parameter namedriverClassName/name valuecom.mysql.jdbc.Driver/value /parameter parameter nameurl/name valuejdbc:mysql://localhost/DB/value /parameter /ResourceParams /Context #web.xml web-app descriptionMySQL Test App/description resource-ref res-ref-namejdbc/conversion/res-ref-name res-typejavax.sql.DataSource/res-type res-authContainer/res-auth /resource-ref /web-app And I added the following statements to my Java class, (which works fine, when I use the connection objects by hardcoding the username and db).-- Context init = new InitialContext(); Context ctx = (Context) init.lookup(java:comp/env); DataSource dataSource = (DataSource)ctx.lookup(jdbc/conversion); But even after, making these changes, I cannot read any thing from database. I was wondering what more changes I need to made. I also tried to run my JAVA class (DAO) from command line, but I get the following exception-- Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial I tried to print outs the place where exception occurs in my code and found that exception occurs at dataSource = (DataSource)ctx.lookup(jdbc/conversion); Can any body please comment on whats going on wrong? When I run from command line, is tomcat used, I don't think so? So where is the problem? Any ideas?? Avinash Arora - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: ?how configure tomcat to auto startup in linux?
maybe this will help #copy/modify the tomcat5.sh included in the jsvc.tar.gz\jsvc-src\native folder to /etc/init.d/tomcat5 #make sure it is executable (chmod a+x). #if rh #chkconfig tomcat5 on #service tomcat5 start #if debian #update-rc.d tomcat5 start 90 2 3 4 5 . stop 21 0 1 6 . #/etc/init.d/tomcat5 start - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat Filter Apache Axis ?
Sorry, Axis' web.xml now recognised the filter\fliter pattern, but Axis still did not work properly. Rui On Tue, 4 May 2004, Rui Zhang wrote: Thanks. I did change it to 2.3 DTD, but it still doesn't work. Cheers, Rui Oxford Univ Computing Lab What's the XML doctype declaration for the Axis web.xml? Servlet filters were introduced in servlet spec 2.3. If your doctype declaration specifies 2.2 or earlier, the DTD won't recognize the filter (and related) tags. (Solution: specify the 2.3 DTD or 2.4 schema.) -QM -- software -- http://www.brandxdev.net tech news -- http://www.RoarNetworX.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: ?how configure tomcat to auto startup in linux?
I can start/stop my tomcat fine and applications are running ok, i just need tomcat to autostart when system up. Linux version? Redhat Linux 9.0 Machine?(Intel?) Intel JDK version? jdk 1.4.2_04 Tomcat 5 Correct? 5.0.19 Planned use? Develop Production Internet Intranet Production Internet Will port 8080 serve your needs or do you need port 80? Currently running on port 80 Thanks for your time ebarrera - Original Message - From: Ing. Enrique de la Barrera Perez [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Monday, May 03, 2004 10:04 PM Subject: Re: ?how configure tomcat to auto startup in linux? Sorry, but i´m not a linux expert, so, this idea would be perfect but not for me. I have followed the instructions in http://jakarta.apache.org/tomcat/tomcat-5.0-doc/setup.html and everything seems to be ok, just that Tomcat dont start up: cd $CATALINA_HOME/bin tar xvfz jsvc.tar.gz cd jsvc-src autoconf ./configure make cp jsvc .. cd .. cd $CATALINA_HOME ./bin/jsvc -Djava.endorsed.dirs=./common/endorsed -cp ./bin/bootstrap.jar \ -outfile ./logs/catalina.out -errfile ./logs/catalina.err \ org.apache.catalina.startup.Bootstrap When i type this last command nothing happens, or at least, Tomcat dont start up ¿any guide about what i have to do? Regards ebarrera - Original Message - From: QM [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Monday, May 03, 2004 3:36 PM Subject: Re: ?how configure tomcat to auto startup in linux? On Mon, May 03, 2004 at 06:20:04PM -0700, Ing. Enrique de la Barrera Perez wrote: : Hello Tomcat users ??? : ?could somebody tell when to find documentation to configure tomcat to auto : startup in linux? Check /etc/init.d for examples of start scripts. Clone one of those and you're in business. You can then use plain old su, jsvc (search apache.org), or erni (brandxdev.net) to start the process as the Tomcat user instead of root. -QM -- software -- http://www.brandxdev.net tech news -- http://www.RoarNetworX.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: ?how configure tomcat to auto startup in linux?
There are instructions on how to do this on Oscar Carrillo's site. http://www.linuxjava.net/howto/webapp/#daemons Subir -Original Message- From: Ing. Enrique de la Barrera Perez [mailto:[EMAIL PROTECTED] Sent: Monday, May 03, 2004 7:29 PM To: Tomcat Users List Subject: Re: ?how configure tomcat to auto startup in linux? I can start/stop my tomcat fine and applications are running ok, i just need tomcat to autostart when system up. Linux version? Redhat Linux 9.0 Machine?(Intel?) Intel JDK version? jdk 1.4.2_04 Tomcat 5 Correct? 5.0.19 Planned use? Develop Production Internet Intranet Production Internet Will port 8080 serve your needs or do you need port 80? Currently running on port 80 Thanks for your time ebarrera - Original Message - From: Ing. Enrique de la Barrera Perez [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Monday, May 03, 2004 10:04 PM Subject: Re: ?how configure tomcat to auto startup in linux? Sorry, but i´m not a linux expert, so, this idea would be perfect but not for me. I have followed the instructions in http://jakarta.apache.org/tomcat/tomcat-5.0-doc/setup.html and everything seems to be ok, just that Tomcat dont start up: cd $CATALINA_HOME/bin tar xvfz jsvc.tar.gz cd jsvc-src autoconf ./configure make cp jsvc .. cd .. cd $CATALINA_HOME ./bin/jsvc -Djava.endorsed.dirs=./common/endorsed -cp ./bin/bootstrap.jar \ -outfile ./logs/catalina.out -errfile ./logs/catalina.err \ org.apache.catalina.startup.Bootstrap When i type this last command nothing happens, or at least, Tomcat dont start up ¿any guide about what i have to do? Regards ebarrera - Original Message - From: QM [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Monday, May 03, 2004 3:36 PM Subject: Re: ?how configure tomcat to auto startup in linux? On Mon, May 03, 2004 at 06:20:04PM -0700, Ing. Enrique de la Barrera Perez wrote: : Hello Tomcat users ??? : ?could somebody tell when to find documentation to configure tomcat to auto : startup in linux? Check /etc/init.d for examples of start scripts. Clone one of those and you're in business. You can then use plain old su, jsvc (search apache.org), or erni (brandxdev.net) to start the process as the Tomcat user instead of root. -QM -- software -- http://www.brandxdev.net tech news -- http://www.RoarNetworX.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: love letter?
No it isn't mine -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, May 03, 2004 8:46 AM To: [EMAIL PROTECTED] Subject: love letter? is that yours? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Here is the document
Here is the file. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: startupw.exe classpath
Run the command: tomcatw //ES//Tomcat5 (or right-click on the sys-tray icon), and add your directory to the Image Path. Justin McReynolds [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I'm having classpath trouble when I start Tomcat 5.0.19 with the Start Tomcat shortcut that points to C:\Tomcat50\bin\tomcatw.exe //GT//Tomcat5 I want to include a directory that is outside of the tomcat install dir, e.g. c:\mydir, but I don't know how to add that directory to the classpath. I can edit setclasspath.bat to include that directory, and then start Tomcat with either startup.bat or catalina.bat and it works fine; is there an analogous file for tomcatw.exe? Thank you, Justin McReynolds Advanced Product Support Engineer - Stellent, Inc. - Office: (425) 896-7057 - Cell: (425) 985-2425 - [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
JAAS, Cookie, Tomcat Managed Security problem
Hi, I am facing this problem while using Tomcat Managed security. I am using the JAASRealm and my own LoginModule ... works smoothly. It authenticates as well as authorizes. BUT, when a user has logged in from one computer, the another user cannot login unless the first user logs out first ... Cookies at work ! When I disable the cookies however, things stop working. If the Authentication fails at JAASRealm , I am thrown out to the proper error page I declared in Web.xml. But if the Authentication succeeds, (which I can ascertain from the logs) I get a 404 error saying... the resource http://myhost/myapp/j_security_check is not available. I cant find out why this happens since I can see the JSESSIONID being appended into the request when cookies are disabled. Plz help or point in the right direction if the same has happened with someone. Thanks in advance, -- Gagan. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Need Solution to authenticated webpages and forms
I'm not 100% sure this is going to help you much but it may be worthy of consideration if you're going to be implementing this kind of thing often. Have you looked at the Jakarta STRUTS framework? There's a whole lot of time-saving functionality built in, especially with regard to forms: validation, repopulation of form fields etc. In your case you could store the values the client enters in a bean. Store the bean in the client's session and have the JSP page with your form check for the existence of the bean attribute when its invoked. As a work around to the client clicking the browsers back button add some meta tags to prevent the page from being cached. Jonathan. - Original Message - From: Pleasant, Tracy [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, May 04, 2004 9:43 AM Subject: Need Solution to authenticated webpages and forms I was able to set up basic authentication through tomcat for a directory my webapps/myapp directory contains file that are open for everyone my webapps/myapp/admin directory contrains protected pages When I use forms in the webapps/myapp directory, hitting the back button on the browser(internet explorer) after submit saves the users data. However, when I use a form in the webapps/myapp/admin directory, hitting back button does not save anything. I tried it with a very simple form form method=post action=test2.jsp input type=text input type=submit value=Go /form and it didn't work. The form that I am using has a lot of drop down boxes (basic numbers which I created functions with javascript). However, if the user hits submit and comes to a confirmation page then they will have to go back to the form and they wont' be able to, all the data will be lost... unless I create some kind of back button but not sure how to handle that with the javascript population of the drop down since javascript and jsp runs on client/server two different places. Any solutions for this type of thing? I opened a bug, but was pointed to another bug and asked to ask this on the group emails The other bug said to do this but I don't know where this stuff is suppose to go. Should it be in the webapps/myapp/admin section??? Should I call it admin.xml ? I tried: Context path=/admin docBase=admin Valve className=org.apache.catalina.authenticator.FormAuthenticator disableProxyCaching=false / /Context but that didn't seem to work at all.. Please help because.. I'm also a newbie so please don't speak to complicated.. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[Ann] How Tomcat Works book -- at 45% discount for direct purchase from publisher
How Tomcat Works: A Guide to Developing Your Own Java Servlet Container by Budi Kurniawan and Paul Deck Published by BrainySoftware.com (www.brainysoftware.com) 464 pages, April 2004 ISBN: 0-9752128-0-X US$49.99/A$109.99/C$77.99 How Tomcat Works is the only book that explains the internal workings of Tomcat, the open source project used by millions of Java developers. Unlike other Tomcat titles, it is unique because it does not simply covers the configuration or servlet development with Tomcat. Rather, this book is meant for advanced readers interested in writing their own Tomcat modules or in understanding more beyond servlet/JSP programming. The authors of this book have cracked open Tomcat 4 and 5 and revealed the internal workings of each component. Upon understanding the contents of this book, you will be able to develop your own Tomcat components or extend the existing ones. In particular, this book explains: . How to develop Java web servers . Whether or not more Tomcat creates more than one instance for each servlet . How Tomcat runs a servlet that implements the SingleThreadModel interface . Why you cannot change the value of request parameters. . The two main modules of a servlet container: connector and container . How to build your own connector or extend the existing ones . The four types of containers: engine, host, context, wrapper . How Tomcat manages sessions and how to extend the session manager in a distributed environment. . The class loader and how to create custom loaders . How Tomcat implements security and basic/form-based/digest authentication . How realms and login configuration work. . How Tomcat processes the configuration file (server.xml) and converts the XML elements to Java objects using Digester . Tomcat's shutdown hook . JMX, Apache's Commons Modeler, and Tomcat JMX manageable resources --- Budi Kurniawan is the author of Java for the Web with Servlets, JSP, and EJB (NewRiders, 2002), a servlet/JSP book that stayed as the No.1 best-selling servlet/JSP book at amazon.com for 18 months. Budi is an IT consultant specializing in Internet and object-oriented programming. In addition to a number of computer books, he has published about 100 articles for more than 10 publications--including prestigious Java magazines, such as java.net, JavaPro, JavaWorld, and www.onjava.com. Budi is the author of the popular Brainysoftware.com File Upload Bean, which is licensed and purchased by many major corporations worldwide. Paul Deck is an IT architect with more than 15 years of experience. He has been involved in various projects in the United States, Canada, China, and Australia. Besides travelling, his interests include networking, Internet programming, design patterns, and user interface design. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: ?how configure tomcat to auto startup in linux?
Give some more information. Linux version? Machine?(Intel?) JDK version? Tomcat 5 Correct? Planned use? Develop Production Internet Intranet Will port 8080 serve your needs or do you need port 80? With this we can guide you as to which method to use. Doug www.parsonstechnical.com - Original Message - From: Ing. Enrique de la Barrera Perez [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Monday, May 03, 2004 10:04 PM Subject: Re: ?how configure tomcat to auto startup in linux? Sorry, but i´m not a linux expert, so, this idea would be perfect but not for me. I have followed the instructions in http://jakarta.apache.org/tomcat/tomcat-5.0-doc/setup.html and everything seems to be ok, just that Tomcat dont start up: cd $CATALINA_HOME/bin tar xvfz jsvc.tar.gz cd jsvc-src autoconf ./configure make cp jsvc .. cd .. cd $CATALINA_HOME ./bin/jsvc -Djava.endorsed.dirs=./common/endorsed -cp ./bin/bootstrap.jar \ -outfile ./logs/catalina.out -errfile ./logs/catalina.err \ org.apache.catalina.startup.Bootstrap When i type this last command nothing happens, or at least, Tomcat dont start up ¿any guide about what i have to do? Regards ebarrera - Original Message - From: QM [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Monday, May 03, 2004 3:36 PM Subject: Re: ?how configure tomcat to auto startup in linux? On Mon, May 03, 2004 at 06:20:04PM -0700, Ing. Enrique de la Barrera Perez wrote: : Hello Tomcat users ??? : ?could somebody tell when to find documentation to configure tomcat to auto : startup in linux? Check /etc/init.d for examples of start scripts. Clone one of those and you're in business. You can then use plain old su, jsvc (search apache.org), or erni (brandxdev.net) to start the process as the Tomcat user instead of root. -QM -- software -- http://www.brandxdev.net tech news -- http://www.RoarNetworX.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat Filter Apache Axis ?
Thanks. I did change it to 2.3 DTD, but it still doesn't work. Cheers, Rui Oxford Univ Computing Lab What's the XML doctype declaration for the Axis web.xml? Servlet filters were introduced in servlet spec 2.3. If your doctype declaration specifies 2.2 or earlier, the DTD won't recognize the filter (and related) tags. (Solution: specify the 2.3 DTD or 2.4 schema.) -QM -- software -- http://www.brandxdev.net tech news -- http://www.RoarNetworX.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: ?how configure tomcat to auto startup in linux?
Sorry, but i´m not a linux expert, so, this idea would be perfect but not for me. I have followed the instructions in http://jakarta.apache.org/tomcat/tomcat-5.0-doc/setup.html and everything seems to be ok, just that Tomcat dont start up: cd $CATALINA_HOME/bin tar xvfz jsvc.tar.gz cd jsvc-src autoconf ./configure make cp jsvc .. cd .. cd $CATALINA_HOME ./bin/jsvc -Djava.endorsed.dirs=./common/endorsed -cp ./bin/bootstrap.jar \ -outfile ./logs/catalina.out -errfile ./logs/catalina.err \ org.apache.catalina.startup.Bootstrap When i type this last command nothing happens, or at least, Tomcat dont start up ¿any guide about what i have to do? Regards ebarrera - Original Message - From: QM [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Monday, May 03, 2004 3:36 PM Subject: Re: ?how configure tomcat to auto startup in linux? On Mon, May 03, 2004 at 06:20:04PM -0700, Ing. Enrique de la Barrera Perez wrote: : Hello Tomcat users ??? : ?could somebody tell when to find documentation to configure tomcat to auto : startup in linux? Check /etc/init.d for examples of start scripts. Clone one of those and you're in business. You can then use plain old su, jsvc (search apache.org), or erni (brandxdev.net) to start the process as the Tomcat user instead of root. -QM -- software -- http://www.brandxdev.net tech news -- http://www.RoarNetworX.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: ?how configure tomcat to auto startup in linux?
On Mon, May 03, 2004 at 06:20:04PM -0700, Ing. Enrique de la Barrera Perez wrote: : Hello Tomcat users ??? : ?could somebody tell when to find documentation to configure tomcat to auto : startup in linux? Check /etc/init.d for examples of start scripts. Clone one of those and you're in business. You can then use plain old su, jsvc (search apache.org), or erni (brandxdev.net) to start the process as the Tomcat user instead of root. -QM -- software -- http://www.brandxdev.net tech news -- http://www.RoarNetworX.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Need Solution to authenticated webpages and forms
On Mon, May 03, 2004 at 05:43:03PM -0400, Pleasant, Tracy wrote: : The form that I am using has a lot of drop down boxes (basic numbers : which I created functions with javascript). However, if the user hits : submit and comes to a confirmation page then they will have to go back : to the form and they wont' be able to, all the data will be lost... : unless I create some kind of back button but not sure how to handle : that with the javascript population of the drop down since javascript : and jsp runs on client/server two different places. Essentially, you're looking for a (browser-neutral) way to maintain form input values between page clicks, especially for users clicking the back button. Is that correct? If so: 1/ Use session variables to hold the data. 2/ The Struts framework does a lot of this for you, at the expense of the learning curve. It's a toss-up between that, and designing your own framework for this purpose. 3/ This question isn't really a Tomcat issue. A general Java (servlets, JSP) forum may have more answers for you. -QM -- software -- http://www.brandxdev.net tech news -- http://www.RoarNetworX.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Does jscv corrupt Permission-settings ... ?
Hello some days ago i had some problems with mkdirs() with some services running in Tomcat-WebApps. (Subject was writing to File-System; IOException on File.mkdirs() and/or File.createNewFile() ) Doug gave me the final hint which helped me to solve the problem. (although i have to confess, that i do not understand all in detail why it did not worked before and why it is working now ) Originally i (or my admin) wanted to start tomcat using jsvc like it is recommended here - http://jakarta.apache.org/tomcat/tomcat-5.0-doc/setup.html ps auxfw shows me that jsvc is running as root, # root 9267 0.0 0.028 28 ?SApr17 0:02 runsv tomcat root 23875 0.0 0.0 1412 560 ?S00:00 0:00 \_ jsvc.exec -XX:NewSize=48m -XX:MaxNewSize=48m -XX:SurvivorRatio=8 tomcat5 23878 82.0 1.2 686988 26008 ? R00:00 0:00 \_ jsvc.exec -XX:NewSize=48m -XX:MaxNewSize=48m -XX:SurvivorRati tomcat5 23879 0.0 1.2 686988 26012 ? S00:00 0:00 \_ jsvc.exec -XX:NewSize=48m -XX:MaxNewSize=48m -XX:Survivor tomcat5 23880 2.0 1.2 686988 26012 ? S00:00 0:00 \_ jsvc.exec -XX:NewSize=48m -XX:MaxNewSize=48m -XX:Surv tomcat5 23881 0.0 1.2 686988 26020 ? S00:00 0:00 \_ jsvc.exec -XX:NewSize=48m -XX:MaxNewSize=48m -XX:Surv tomcat5 23882 0.0 1.2 686988 26020 ? S00:00 0:00 \_ jsvc.exec -XX:NewSize=48m -XX:MaxNewSize=48m -XX:Surv #. # although the script which calls jsvc wants tomcat5 to run it ... #-- script to call jsvc - #!/bin/sh JAVA_HOME=/usr/java JAVA_OPTS=${JAVA_OPTS} -XX:NewSize=48m -XX:MaxNewSize=48m -XX:SurvivorRatio=8 -Xms128m -Xmx512m CATALINA_OPTS= CATALINA_BASE=/home/hmb/catalina_5_19 #CATALINA_BASE=/tomcat/hmb export CATALINA_BASE CATALINA_HOME=$CATALINA_BASE CATALINA_TMPDIR=$CATALINA_BASE/temp JAVA_ENDORSED_DIRS=$CATALINA_HOME/common/endorsed CLASSPATH=\ $CATALINA_HOME/bin/commons-logging-api.jar:\ $JAVA_HOME/lib/tools.jar:\ $CATALINA_HOME/bin/commons-daemon.jar:\ $CATALINA_HOME/bin/bootstrap.jar . $CATALINA_HOME/bin/custom.sh umask 006 exec $CATALINA_HOME/bin/jsvc $JAVA_OPTS $CATALINA_OPTS \ -user tomcat5 \ -nodetach \ -home $JAVA_HOME \ -Djava.endorsed.dirs=$JAVA_ENDORSED_DIRS \ -Dcatalina.base=$CATALINA_BASE \ -Dcatalina.home=$CATALINA_HOME \ -Djava.io.tmpdir=$CATALINA_TMPDIR \ -outfile $CATALINA_BASE/logs/catalina.out \ -errfile '1' \ $CATALINA_OPTS \ -cp $CLASSPATH \ org.apache.catalina.startup.Bootstrap #-- EOF: script to call jsvc - when i call catalina.sh to start tomcat, e.g. see below #--- another script starting tomcat by using catalina.sh #!/bin/sh # XDEBUG=-Xnoagent -Xdebug -Xrunjdwp:transport=dt_socket,address=8001,server=y,suspend=n # export XDEBUG . ./custom.sh JAVA_OPTS=${JAVA_OPTS} -XX:NewSize=48m -XX:MaxNewSize=48m -XX:SurvivorRatio=8 -Xms128m -Xmx512m export JAVA_OPTS ./catalina.sh start #--- EOF: another script startin tomcat by using catalina.sh all processes belong to tomcat5 and everything is fine ps auxfw = #- tomcat5 25099 28.3 3.3 708200 68588 pts/1 S00:11 0:03 /usr/java/bin/java -Dlog4j.configuration=file:home/hmb/catalina_5 tomcat5 25100 0.0 3.3 708200 68588 pts/1 S00:11 0:00 \_ /usr/java/bin/java -Dlog4j.configuration=file:home/hmb/catali tomcat5 25101 0.9 3.3 708200 68588 pts/1 S00:11 0:00 \_ /usr/java/bin/java -Dlog4j.configuration=file:home/hmb/ca tomcat5 25102 0.0 3.3 708200 68588 pts/1 S00:11 0:00 \_ /usr/java/bin/java -Dlog4j.configuration=file:home/hmb/ca # . #- there are good reasons to start tomcat using jsvc, but when i do it, i have some problems with permissions in the file-system. are there some jsvc-cracks which already know the problem i described or did i something wrong. by the way, i have no reason to run tomcat as privileged service, port 8080 is okay. thanks in advance, kind reagrds, christoph Christoph, If you are going to run Tomcat on port 8080 and 8443 then you can use the normal startup script. If you need it on port 80 the you have two choices, run as root (not good) or use jsrv daemon which starts tomcat as root then changes the user id as set in the startup script. If you need to respawn the process if it fails then call the startup.sh from the inittab with repawn. Glad you got it going. Good luck. Doug - Original Message - From: Christoph Meier [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Sunday, May 02, 2004 10:42 AM Subject: Re: writing to File-System; IOException on File.mkdirs() and/or File.createNewFile() Doug finally, it works. This appears to be a permissions issue. ... you are
¿how configure tomcat to auto startup in linux?
Hello Tomcat users ¡¡¡ ¿could somebody tell when to find documentation to configure tomcat to auto startup in linux? Regards ebarrera
Is there removeAbandonedTimeout in jtds?
Is there a similar property like removeAbandonedTimeout in JTDS to be written in ResourceParams. I like to make the DB pool recycling a connection if it is idle for a while. Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Please help on my DB pool problem --- I followed the struction on the web
I misunderstood that MS JDBC Driver should be the best for its MS SQL Server. Sorry. Your instruction is very helpful. Now I decide to not use the MS driver for MS SQL Server. I have successfully created the Pool with net.sourceforge.jtds.jdbc.Driver. Thank you. -Original Message- From: Eric Noel [mailto:[EMAIL PROTECTED] Sent: Sunday, May 02, 2004 6:43 PM To: Tomcat Users List Subject: Re: Please help on my DB pool problem --- I followed the struction on the web On 5/3/2004 9:31 AM, Daxin Zuo wrote: I thought Microsoft was the best. if thats what you think, i guess you should stick with dotNet since with that you will have an all microsoft retrofitted program (e.g drivers, components, etc) :-) My jsp file is in tomcat\webapps\ROOT\zuo. In my tomcat\webapps\ROOT\WEB-INF\web.xml, there is no context block, should I create one or use resource-ref? If I need ot create a context block, Is the code bellow correct: context path=/zuo docBase=ROOT debug=0 privileged=true /context Context part is in server.xml or Catalina/hostname/APPNAME.xml. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
hey you
Norton AntiVirus gelöscht1.txt Description: plain/text - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Hey
Norton AntiVirus gelöscht1.txt Description: plain/text - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Servlet generating applet
Has anyone generated an html page from a servlet that contains an applet? I am having trouble with the browser finding the class specified in the code param. I've had codebase set to a number of things with no success. Is the codebase the root of the webapp? Or is it supposed to set to WEB-INF/classes. The applet works fine when not downloaded from Tomcat. Paul - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This email and any files transmitted with it are proprietary and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the sender. Please note that any views or opinions presented in this email are solely those of the author and do not necessarily represent those of ITT Industries, Inc. The recipient should check this email and any attachments for the presence of viruses. ITT Industries accepts no liability for any damage caused by any virus transmitted by this email. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Jikes: -encoding is unsupported
Dear all, I get the follow error message when I am trying to use jikes to replace javac in tomcat 5.1. [javac] use: jikes [options] [EMAIL PROTECTED] file.java... [javac] For more help, try -help or -version. [javac] Error: The option -encoding is unsupported in this build. Could anyone give me some hints about it? OS: MS Windown 2000 server Tomcat version: 5.1.18 Jikes Version: 1.20 JDKVersion : 1.4.1 web.xml segment: servlet servlet-namejsp/servlet-name servlet-classorg.apache.jasper.servlet.JspServlet/servlet-class init-param param-namefork/param-name param-valuefalse/param-value /init-param init-param param-namexpoweredBy/param-name param-valuefalse/param-value /init-param init-param param-namecompiler/param-name param-valuejikes/param-value /init-param load-on-startup3/load-on-startup /servlet CATALINA_OPS: -Dbuild.compiler.emacs=true steve
Tomcat cannot unpack war files
Hi Version Tomcat 4.1.18 OS: SUSE Linux kernel 4.2 Java: 1.4.2 unpackWars and autodeploy is set to true in server.xml BUT: Tomcat will not auto deploy or unpack the war files. Regards Lars Christoffersen - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Help with manager app
I have a rather urgent problem. I have been using tomcat for several years now, and normally weather the upgrades with some few problems, but nothing serious - until now. My problem - in the old Tomcat, I used the manager application to monitor the number of users accessing the system. In the old version, I had it set up so that external requests could NOT see the manager, ever. Now, under the new Tomcat, the manager app has changed. Today I also noticed that it is also available to the internet. How do I restrict access to the manager application to the local network - i.e. how do I turn off internet access to the manager app? Thanks in advance, -Richard - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Help with manager app
I am by no means a network configuration specialist, so take what I say with a grain of salt :) You havn't mentioned how Tomcat is accessed from the internet, such as do you have a Apache or IIS, server acting as a proxy/redirector to tomcat, or whether tomcat itself is internet facing. If you have a separate web server infront of tomcat, then the web server only needs to be configured with the URI's to pass through to tomcat for your web application AND NOT specify those URIs for the manager app. That way you can access the manager app from the internal network by directly going to tomcat, but the external internet users will never be able to access it, because no path exists to it for them. If however you tomcat is internet facing (not an option I would recommend) then I wouldn't know how you should properly deal with that. At least have a good password :) Regards, Shane -Original Message- From: Richard S. Huntrods [mailto:[EMAIL PROTECTED] Sent: Tuesday, 4 May 2004 1:41 PM To: [EMAIL PROTECTED] Subject: Help with manager app I have a rather urgent problem. I have been using tomcat for several years now, and normally weather the upgrades with some few problems, but nothing serious - until now. My problem - in the old Tomcat, I used the manager application to monitor the number of users accessing the system. In the old version, I had it set up so that external requests could NOT see the manager, ever. Now, under the new Tomcat, the manager app has changed. Today I also noticed that it is also available to the internet. How do I restrict access to the manager application to the local network - i.e. how do I turn off internet access to the manager app? Thanks in advance, -Richard - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Help with manager app
Richard, Use a remote address valve. http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/valve.html Set it up for allow and the IP ranges you want to get in. Doug www.parsonstechnical.com - Original Message - From: Richard S. Huntrods [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, May 04, 2004 1:41 AM Subject: Help with manager app I have a rather urgent problem. I have been using tomcat for several years now, and normally weather the upgrades with some few problems, but nothing serious - until now. My problem - in the old Tomcat, I used the manager application to monitor the number of users accessing the system. In the old version, I had it set up so that external requests could NOT see the manager, ever. Now, under the new Tomcat, the manager app has changed. Today I also noticed that it is also available to the internet. How do I restrict access to the manager application to the local network - i.e. how do I turn off internet access to the manager app? Thanks in advance, -Richard - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat cannot unpack war files
Lars, Does the folder name matching the war file name exist? If it has been created and not removed then Tomcat will not Deploy the war. Doug www.parsonstechnical.com - Original Message - From: Lars Ole Ruben Christoffersen [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Tuesday, May 04, 2004 1:35 AM Subject: Tomcat cannot unpack war files Hi Version Tomcat 4.1.18 OS: SUSE Linux kernel 4.2 Java: 1.4.2 unpackWars and autodeploy is set to true in server.xml BUT: Tomcat will not auto deploy or unpack the war files. Regards Lars Christoffersen - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]