Re: Servlet newsgroup discussion on news.groups
I would agree for this, but with all this pedophilia stories, I can't find any good NNTP servers to use for newsgroups... anyidea ?? I want to use NNTP protocol.. and not dejanews.com or others http...
[strange bug] web.xml for servlet mapping exceed 4 url-pattern.
Hello I've discovered a strange bug. I have got a servlet that has to serve a few extensions : html, jsp, xml, pl, and so on.. I use the xml code ... when I put more than 4 servlet-mappings on the same servlet, the JSP are serve by tomcat and not by my servlet. How Strange ! could anyone explain why ?? I am using Linux Mandrake 7.2, Tomcat 3.2.2beta and JDK 1.3
Re: installing Cocoon inside Tomcat
> Javier Fernández a écrit : > > Hi, > How can we install Cocoon in Tomcat?. We have followed the steps in > the page of Tomcat, but it does not start. We have Tomcat alone, > without Apache. > What are we something wrong?. > Hello you'd better ask on cocoon-user list. What is the problem ?? it is very simple to install cocoon 1.8.2 on tomcat : first put the following jar files on tomcat/lib : - cocoon-classes - fop - turbine-pool - w3c - xalan - xerces then be sure the cocoon servelt is added into web.xml and loaded correctly at startup put a run-at-startup tag into the servelt. then look in your shell console if the servlet is well loaded then call yourserver/Cocoon.xml it is hard to answer to your problem because you don't say what is happening...
Re: Servlet jar files
David DELGRANCHE a écrit : > > Hi all, > > I would like to put all my servlet files in a jar file and then put the > jar file in the classes/ directory. By doing this, Tomcat doesn't find my > servlet and send me a HTTP 404 error. Does anyone how to specifiy to Tomcat > that the servlets are in a jar file? > Thanks a lot > David. the jar file must not be put into the classes directory but lib instead, isn't it ?
Very hard to stop tomcat3.2.2b2 on linux
Hello, I've got really hard problem to stop tomcat !!! I've received an exception into GenericServlet (a nullpointer exception) or tomcat's processes are not stopped.. then the connector is stopped (so I can not stop it anymore without killing processes !! any ideas ?
How to set an Error Handler ? (404, 500, and so on...)
How to set this handler ? I don't find how. I've looked in tomcat's code, and when there is an exception it seems there are attributes in the request that gives for examples the Throwable object. thanx for helping
HttpSession expires !!!
Hello, I've had to modify tomcat because I didn't know if there was a solution, I would like to be warned when a HttpSession expires and becomes invalidated. Is there a way to do this ? Or should I keep my modification in tomcat class to the expire() method ? thank you
How to handle so that a class from a jsp file implements an interface ?
Hello, how to handle so that a class from a jsp file implements an interface ? there is now way using the directive @page implements="..." Once again, I've modified tomcat so that it is possible, but I'd prefer not to have to :) thank you all
How many tomcat processes ??? (more than 20 for me...)
Hello to all, I've got currently a big problem. I have too many tomcat processes. I'm running under Linux Mandrake, latest version. I've made a simple test, I called bin/startup.sh without calling any web page. /usr/local/jdk1.3/jre/bin/exe/ja means java --Dtomcat_home so a tomcat process What is happening ? Why do I have httpd process ?? My machine is not on a open network and noone can access my machine. If I shutdown tomcat, I don't have any process anymore At 10:57, I did bin/startup.sh and then ps- fe at 11.37 !! sam 5828 1 0 10:57 pts/100:00:02 /usr/local/jdk1.3/jre/bin/exe/ja sam 5837 5828 0 10:57 pts/100:00:00 /usr/local/jdk1.3/jre/bin/exe/ja sam 5838 5837 0 10:57 pts/100:00:00 /usr/local/jdk1.3/jre/bin/exe/ja sam 5839 5837 0 10:57 pts/100:00:00 /usr/local/jdk1.3/jre/bin/exe/ja sam 5840 5837 0 10:57 pts/100:00:00 /usr/local/jdk1.3/jre/bin/exe/ja sam 5847 5837 0 10:58 pts/100:00:00 /usr/local/jdk1.3/jre/bin/exe/ja sam 5848 5837 0 10:58 pts/100:00:00 /usr/local/jdk1.3/jre/bin/exe/ja sam 5849 5837 0 10:58 pts/100:00:00 /usr/local/jdk1.3/jre/bin/exe/ja sam 5850 5837 0 10:58 pts/100:00:00 /usr/local/jdk1.3/jre/bin/exe/ja sam 5851 5837 0 10:58 pts/100:00:00 /usr/local/jdk1.3/jre/bin/exe/ja sam 5852 5837 0 10:58 pts/100:00:00 /usr/local/jdk1.3/jre/bin/exe/ja sam 5853 5837 0 10:58 pts/100:00:00 /usr/local/jdk1.3/jre/bin/exe/ja sam 5854 5837 0 10:58 pts/100:00:00 /usr/local/jdk1.3/jre/bin/exe/ja sam 5855 5837 0 10:58 pts/100:00:00 /usr/local/jdk1.3/jre/bin/exe/ja sam 5856 5837 0 10:58 pts/100:00:00 /usr/local/jdk1.3/jre/bin/exe/ja sam 5857 5837 0 10:58 pts/100:00:00 /usr/local/jdk1.3/jre/bin/exe/ja sam 5858 5837 0 10:58 pts/100:00:00 /usr/local/jdk1.3/jre/bin/exe/ja sam 5859 5837 0 10:58 pts/100:00:00 /usr/local/jdk1.3/jre/bin/exe/ja sam 5860 5837 0 10:58 pts/100:00:00 /usr/local/jdk1.3/jre/bin/exe/ja sam 5861 5837 0 10:58 pts/100:00:09 /usr/local/jdk1.3/jre/bin/exe/ja sam 5862 5837 1 10:58 pts/100:00:24 /usr/local/jdk1.3/jre/bin/exe/ja sam 5863 5837 1 10:58 pts/100:00:40 /usr/local/jdk1.3/jre/bin/exe/ja sam 5864 5837 2 10:58 pts/100:00:57 /usr/local/jdk1.3/jre/bin/exe/ja sam 5865 5837 3 10:58 pts/100:01:17 /usr/local/jdk1.3/jre/bin/exe/ja sam 5866 5837 4 10:58 pts/100:01:36 /usr/local/jdk1.3/jre/bin/exe/ja sam 5867 5837 5 10:58 pts/100:02:00 /usr/local/jdk1.3/jre/bin/exe/ja sam 5868 5837 6 10:58 pts/100:02:25 /usr/local/jdk1.3/jre/bin/exe/ja sam 5869 5837 7 10:58 pts/100:02:53 /usr/local/jdk1.3/jre/bin/exe/ja sam 5870 5837 8 10:58 pts/100:03:20 /usr/local/jdk1.3/jre/bin/exe/ja sam 5871 5837 0 10:58 pts/100:00:00 /usr/local/jdk1.3/jre/bin/exe/ja nobody5960 3858 0 11:15 ?00:00:00 /usr/share/apache/bin/httpd nobody5966 3858 0 11:19 ?00:00:00 /usr/share/apache/bin/httpd nobody5978 3858 0 11:23 ?00:00:00 /usr/share/apache/bin/httpd nobody5981 3858 0 11:27 ?00:00:00 /usr/share/apache/bin/httpd nobody5990 3858 0 11:31 ?00:00:00 /usr/share/apache/bin/httpd sam 6000 5837 0 11:35 pts/100:00:00 /usr/local/jdk1.3/jre/bin/exe/ja sam 6001 5837 0 11:35 pts/100:00:00 /usr/local/jdk1.3/jre/bin/exe/ja sam 6002 5837 0 11:35 pts/100:00:00 /usr/local/jdk1.3/jre/bin/exe/ja sam 6003 5837 0 11:35 pts/100:00:00 /usr/local/jdk1.3/jre/bin/exe/ja sam 6004 5837 0 11:35 pts/100:00:00 /usr/local/jdk1.3/jre/bin/exe/ja sam 6005 5837 0 11:35 pts/100:00:00 /usr/local/jdk1.3/jre/bin/exe/ja sam 6006 5837 0 11:35 pts/100:00:00 /usr/local/jdk1.3/jre/bin/exe/ja nobody6007 3858 0 11:35 ?00:00:00 /usr/share/apache/bin/httpd sam 6008 5837 0 11:35 pts/100:00:00 /usr/local/jdk1.3/jre/bin/exe/ja sam 6009 5837 0 11:35 pts/100:00:00 /usr/local/jdk1.3/jre/bin/exe/ja sam 6010 5837 0 11:35 pts/100:00:00 /usr/local/jdk1.3/jre/bin/exe/ja root 6024 2072 0 11:37 pts/300:00:00 ps -fe
Re: How many tomcat processes ??? (more than 20 for me...)
ooops I forgot to say I'm using tomcat 3.2.1
Re: add a new servlet ....
You have to put your class into WEB-INF/classes or a jar in WEB-INF/lib what do you mean with your println ? You can only write from init into System.out or System.err.. you don't have any response object. Anyway, what is the value to give for the load on startup ?? thank you, Sam, a savoisian user ;) [EMAIL PROTECTED] wrote: > I try to add a new servlet which is supposed to load on startup. But I > don't know where I'm supposed to put the class file. If I use a println() > method in the init fonction of my class, where is it supposed to write > something ??? > > my web.xml file : > > > > Settings > > > SettingsServlet > > > rootFile > c:\testJSP\init.conf > > > -2147483646 > > > > Settings > /servlet/Settings > > > > thks a lot for your answer > > David > a french tomcat beginner
Re: How many tomcat processes ??? (more than 20 for me...)
of course, I meant threads for process, what I wanted to underline is that there could be a link between httpd and tomcat.. httpd is started because I use mod_jk but I don't understand why httpd creates more processes when I do nothing... as tomcat does "Cato, Christopher" wrote: > The processes are not processes but rather Threads and they are displayed as > processes due to the Linux implementation of Threads. Why is HTTPD started? > Dont know, look at your startup script for tomcat. It probably runs tomcat > as mod_jk which requires HTTPD. > > > -Original Message- > > From: Samuel Arnod-Prin [mailto:[EMAIL PROTECTED]] > > Sent: den 27 mars 2001 11:51 > > To: [EMAIL PROTECTED] > > Subject: How many tomcat processes ??? (more than 20 for me...) > > > > > > Hello to all, > > > > I've got currently a big problem. I have too many tomcat > > processes. I'm > > running under Linux Mandrake, latest version. > > I've made a simple test, I called bin/startup.sh without > > calling any web > > page. > > /usr/local/jdk1.3/jre/bin/exe/ja means java --Dtomcat_home so a > > tomcat process > > > > What is happening ? Why do I have httpd process ?? My machine > > is not on > > a open network and noone can access my machine. If I > > shutdown tomcat, I > > don't have any process anymore > > > > At 10:57, I did bin/startup.sh and then ps- fe at 11.37 !! > > > > sam 5828 1 0 10:57 pts/100:00:02 > > /usr/local/jdk1.3/jre/bin/exe/ja > > sam 5837 5828 0 10:57 pts/100:00:00 > > /usr/local/jdk1.3/jre/bin/exe/ja > > sam 5838 5837 0 10:57 pts/100:00:00 > > /usr/local/jdk1.3/jre/bin/exe/ja > > sam 5839 5837 0 10:57 pts/100:00:00 > > /usr/local/jdk1.3/jre/bin/exe/ja > > sam 5840 5837 0 10:57 pts/100:00:00 > > /usr/local/jdk1.3/jre/bin/exe/ja > > sam 5847 5837 0 10:58 pts/100:00:00 > > /usr/local/jdk1.3/jre/bin/exe/ja > > sam 5848 5837 0 10:58 pts/100:00:00 > > /usr/local/jdk1.3/jre/bin/exe/ja > > sam 5849 5837 0 10:58 pts/100:00:00 > > /usr/local/jdk1.3/jre/bin/exe/ja > > sam 5850 5837 0 10:58 pts/100:00:00 > > /usr/local/jdk1.3/jre/bin/exe/ja > > sam 5851 5837 0 10:58 pts/100:00:00 > > /usr/local/jdk1.3/jre/bin/exe/ja > > sam 5852 5837 0 10:58 pts/100:00:00 > > /usr/local/jdk1.3/jre/bin/exe/ja > > sam 5853 5837 0 10:58 pts/100:00:00 > > /usr/local/jdk1.3/jre/bin/exe/ja > > sam 5854 5837 0 10:58 pts/100:00:00 > > /usr/local/jdk1.3/jre/bin/exe/ja > > sam 5855 5837 0 10:58 pts/100:00:00 > > /usr/local/jdk1.3/jre/bin/exe/ja > > sam 5856 5837 0 10:58 pts/100:00:00 > > /usr/local/jdk1.3/jre/bin/exe/ja > > sam 5857 5837 0 10:58 pts/100:00:00 > > /usr/local/jdk1.3/jre/bin/exe/ja > > sam 5858 5837 0 10:58 pts/100:00:00 > > /usr/local/jdk1.3/jre/bin/exe/ja > > sam 5859 5837 0 10:58 pts/100:00:00 > > /usr/local/jdk1.3/jre/bin/exe/ja > > sam 5860 5837 0 10:58 pts/100:00:00 > > /usr/local/jdk1.3/jre/bin/exe/ja > > sam 5861 5837 0 10:58 pts/100:00:09 > > /usr/local/jdk1.3/jre/bin/exe/ja > > sam 5862 5837 1 10:58 pts/100:00:24 > > /usr/local/jdk1.3/jre/bin/exe/ja > > sam 5863 5837 1 10:58 pts/100:00:40 > > /usr/local/jdk1.3/jre/bin/exe/ja > > sam 5864 5837 2 10:58 pts/100:00:57 > > /usr/local/jdk1.3/jre/bin/exe/ja > > sam 5865 5837 3 10:58 pts/100:01:17 > > /usr/local/jdk1.3/jre/bin/exe/ja > > sam 5866 5837 4 10:58 pts/100:01:36 > > /usr/local/jdk1.3/jre/bin/exe/ja > > sam 5867 5837 5 10:58 pts/100:02:00 > > /usr/local/jdk1.3/jre/bin/exe/ja > > sam 5868 5837 6 10:58 pts/100:02:25 > > /usr/local/jdk1.3/jre/bin/exe/ja > > sam 5869 5837 7 10:58 pts/100:02:53 > > /usr/local/jdk1.3/jre/bin/exe/ja > > sam 5870 5837 8 10:58 pts/100:03:20 > > /usr/local/jdk1.3/jre/bin/exe/ja > > sam 5871 5837 0 10:58 pts/100:00:00 > > /usr/local/jdk1.3/jre/bin/exe/ja > > nobody5960 3858 0 11:15 ?00:00:00 > > /usr/share/apache/bin/httpd > > nobody5966 3858 0 11:19 ?00:00:00 > > /usr/share/apache/bin/httpd > > nobody5978 3858 0 11:23 ?00:00:00 > > /usr/share/apache/bin/httpd > > nobody5981 3858 0 11:27 ?00:00:00 > > /usr/share/apache/bin/ht
Re: How many tomcat processes ??? (more than 20 for me...)
obody3567 612 0 Mar25 ?00:00:00 httpd > nobody3568 612 0 Mar25 ?00:00:00 httpd > nobody3569 612 0 Mar25 ?00:00:00 httpd > nobody3570 612 0 Mar25 ?00:00:00 httpd > nobody3571 612 0 Mar25 ?00:00:00 httpd > > So, yours looks okay to me.. Mine looks somewhat the same... > > > -Original Message- > > From: Samuel Arnod-Prin [mailto:[EMAIL PROTECTED]] > > Sent: den 27 mars 2001 13:05 > > To: [EMAIL PROTECTED] > > Subject: Re: How many tomcat processes ??? (more than 20 for me...) > > > > > > of course, I meant threads for process, > > what I wanted to underline is that there could be a link > > between httpd and > > tomcat.. > > httpd is started because I use mod_jk > > but I don't understand why httpd creates more processes when > > I do nothing... as > > tomcat does > > > > "Cato, Christopher" wrote: > > > > > The processes are not processes but rather Threads and they > > are displayed as > > > processes due to the Linux implementation of Threads. Why > > is HTTPD started? > > > Dont know, look at your startup script for tomcat. It > > probably runs tomcat > > > as mod_jk which requires HTTPD. > > > > > > > -Original Message- > > > > From: Samuel Arnod-Prin [mailto:[EMAIL PROTECTED]] > > > > Sent: den 27 mars 2001 11:51 > > > > To: [EMAIL PROTECTED] > > > > Subject: How many tomcat processes ??? (more than 20 for me...) > > > > > > > > > > > > Hello to all, > > > > > > > > I've got currently a big problem. I have too many tomcat > > > > processes. I'm > > > > running under Linux Mandrake, latest version. > > > > I've made a simple test, I called bin/startup.sh without > > > > calling any web > > > > page. > > > > /usr/local/jdk1.3/jre/bin/exe/ja means java > > --Dtomcat_home so a > > > > tomcat process > > > > > > > > What is happening ? Why do I have httpd process ?? My machine > > > > is not on > > > > a open network and noone can access my machine. If I > > > > shutdown tomcat, I > > > > don't have any process anymore > > > > > > > > At 10:57, I did bin/startup.sh and then ps- fe at 11.37 !! > > > > > > > > sam 5828 1 0 10:57 pts/100:00:02 > > > > /usr/local/jdk1.3/jre/bin/exe/ja > > > > sam 5837 5828 0 10:57 pts/100:00:00 > > > > /usr/local/jdk1.3/jre/bin/exe/ja > > > > sam 5838 5837 0 10:57 pts/100:00:00 > > > > /usr/local/jdk1.3/jre/bin/exe/ja > > > > sam 5839 5837 0 10:57 pts/100:00:00 > > > > /usr/local/jdk1.3/jre/bin/exe/ja > > > > sam 5840 5837 0 10:57 pts/100:00:00 > > > > /usr/local/jdk1.3/jre/bin/exe/ja > > > > sam 5847 5837 0 10:58 pts/100:00:00 > > > > /usr/local/jdk1.3/jre/bin/exe/ja > > > > sam 5848 5837 0 10:58 pts/100:00:00 > > > > /usr/local/jdk1.3/jre/bin/exe/ja > > > > sam 5849 5837 0 10:58 pts/100:00:00 > > > > /usr/local/jdk1.3/jre/bin/exe/ja > > > > sam 5850 5837 0 10:58 pts/100:00:00 > > > > /usr/local/jdk1.3/jre/bin/exe/ja > > > > sam 5851 5837 0 10:58 pts/100:00:00 > > > > /usr/local/jdk1.3/jre/bin/exe/ja > > > > sam 5852 5837 0 10:58 pts/100:00:00 > > > > /usr/local/jdk1.3/jre/bin/exe/ja > > > > sam 5853 5837 0 10:58 pts/100:00:00 > > > > /usr/local/jdk1.3/jre/bin/exe/ja > > > > sam 5854 5837 0 10:58 pts/100:00:00 > > > > /usr/local/jdk1.3/jre/bin/exe/ja > > > > sam 5855 5837 0 10:58 pts/100:00:00 > > > > /usr/local/jdk1.3/jre/bin/exe/ja > > > > sam 5856 5837 0 10:58 pts/100:00:00 > > > > /usr/local/jdk1.3/jre/bin/exe/ja > > > > sam 5857 5837 0 10:58 pts/100:00:00 > > > > /usr/local/jdk1.3/jre/bin/exe/ja > > > > sam 5858 5837 0 10:58 pts/100:00:00 > > > > /usr/local/jdk1.3/jre/bin/exe/ja > > > > sam 5859 5837 0 10:58 pts/100:00:00 > > > > /usr/local/jdk1.3/jre/bin/exe/ja > > > > sam 5860 5837 0 10:58 pts/100:00:00 > > > > /usr/local/jdk1.3/jre/bin/exe/ja > > > > sam
Re: How to get request prameters in right order.
There is a simple way... don't call request.getParameter otherwise the post-stream will be read. and read it by youself (request.getInputStream or something like that.. and parse the string yourself) Krzysztof Zielinski wrote: > Hello Filip, > > Tuesday, March 27, 2001, 7:24:27 PM, you wrote: > > FH> public java.lang.String getQueryString() > FH> in HTTPServletRequest and you can parse them yourself > > I'm afraid that parameters passed by the help method="post" in HTML > Form aren't available by getQueryString(). > > I can't use method="get" in HTML Form. > > -- > Best regards, > Krzysztofmailto:[EMAIL PROTECTED] > ICQ # 47933362