AW: redirect problems?
Do you make a return after the sendRedirect? ... response.sendRedirect("/checkout2.jsp"); return; ... Otherwise, the output of checkout2.jsp is added (and not a 'new' output). Hint: Call sendRedirect before you make any output!!! -Ursprüngliche Nachricht- Von: jim [mailto:[EMAIL PROTECTED]] Gesendet am: Freitag, 27. Oktober 2000 18:41 An: [EMAIL PROTECTED] Betreff: redirect problems? Hi, We are using Apache 1.3.12 with Tomcat 3.1 and experiencing weird problems. 1. checkout.jsp (FORM collecting new user info) - POSTs to checkout_eng1.jsp 2. checkout_eng1.jsp - adds user from #1 and does a response.sendRedirect("/checkout2.jsp"); 3. checkout2.jsp shows the next FORM asking for mailing address information Weird Symptom #1 -- On any version of Internet Explorer (never on netscape) the POST to step #2 above fails and up comes this IE error "cannot find server or DNS error" which leads me to beleive that the response.sendredirect() is doing something odd, maybe not sending back the correct http location header or something If you immediatly hit the browsers back button and re-submit the form, it then works with no problem and as expected. This only seems to occur the first time submitting forms to a page that re-directs after an operation. Weird Symptom #2 occasionally on Internet Explorer AND Netscape. User submits info from form #1 above (checkout.jsp), their information is added to the database and they are redirected to checkout2.jsp, HOWEVER what is shown on checkout2.jsp is BOTH the previous pages contents (checkout.jsp) AND the expected contents of checkout2.jsp with a visible HTTP response header printed out in between checkout.jsp's contents and checkout2.jsp's contents ALL on visible on the URL checkout2.jsp Anyone have any ideas? I tried checking the bug database but it appears to be down.
Re: destroy() method invocation
Hi, "Craig R. McClanahan" wrote: You don't ... and you should NOT ... call destroy() on your servlet instance. Yes I understand that. I just meant to invoke the detroy method indirectly when launcing the shutdown tomcat script. Tomcat calls it for you when it is shut down normally. Failure to do so is a bug in Tomcat -- which may well be true in 3.1, but not in 3.2 or 4.0. OK, I'll check this out. For info, how do I know which version I have ;-) --mike
AW: Win98 Tomcat 3.1 - Starts to launch but then exists???
hi, have you checked if your TOMCAT_HOME ends with \jakarta-tomcat not \tomcat ? matthias -Ursprüngliche Nachricht- Von: David Harris [mailto:[EMAIL PROTECTED]] Gesendet am: Montag, 30. Oktober 2000 07:15 An: '[EMAIL PROTECTED]' Betreff: RE: Win98 Tomcat 3.1 - Starts to launch but then exists??? I've seen this problem, on the two installations that I found this happening, what was actually happening (after uncommenting out the @echo off lines in tomcat.bat is that an 'out of environment space' error was occurring. I think there are two ways to fix it... see this article: http://www.polymath-software.com/support/environ.shtml in short the method I used was no. 2 1) Open the SYSTEM.INI file and find the section "[NonWindowsApp]". 2) Ensure this section contains the following entry: CommandEnvSize=4096 obviously if it's not an environment space error, this won't work. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Monday, October 30, 2000 4:10 PM To: [EMAIL PROTECTED] Subject: RE: Win98 Tomcat 3.1 - Starts to launch but then exists??? Hello Belive it or not i faced the same problem ...and what did i do??? I just downloaded tomcat again ...and reinstalled it ..it executed successfully in first go cheers jayram - This mail sent through http://www.sify.com
catalina.sh IS tomcat.sh ?
I'm updating jakarta to 4.0 and i noticed that some scripts (and more?) has disapeared, which can be quiet crtitical since I had modified some ... So is catalina sh script the old tomcat.sh? Any more noticeable diffs? Thanx, --mike
response.sendRedirect stops working in Apache/Tomcat setup
Hi! I recently setup my Tomcat to run integrated with Apache. Everything worked fine, except that any jsp-page that contained a response.sendRedirect stopped redirecting. I don't get any response at all. Any clues? Thanks! /Martin Holmgren Check out the latest in z.com programming, produced exclusively for the net! http://www.z.com
Re: response.sendRedirect stops working in Apache/Tomcat setup
Instead of redirecting, try forwarding like this: getServletConfig().getServletContext().getRequestDispatcher("/jsp/forwardto.jsp").forward(request, response); Leon - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, October 30, 2000 6:44 AM Subject: response.sendRedirect stops working in Apache/Tomcat setup Hi!I recently setup my Tomcat to run integrated with Apache. Everything worked fine, except that any jsp-page that contained a response.sendRedirect stopped redirecting. I don't get any response at all. Any clues?Thanks!/Martin Holmgren Check out the latest in z.com programming, produced exclusively for the net! http://www.z.com
IIS-Tomcat problem: Posting forms
Hello everybody! I have a problem when trying to POST forms to ASP pages, it seems that the posted information gets lost. As far as I understand, IIS first tries to redirect requests to Tomcat and, if it's not handled, IIS takes care of it. So, I guess the information is being messed up when redirecting to Tomcat... Has anybody had the same problem or have a clue about what's happening? I'm using IIS 4 and Tomcat 3.1 Best regards, Mauro
May I ask a question of Tomcat?
Hi, I was installing Tomcat and Apache for testing. Most of functions were working fine. But there was a problem when I want to upload a file. A form tag was setting in a jsp file as following form enctype="multipart/form-data" action="/servlet/UploadDepartmentImage" method=POST when I submit to upload, the URL was transfered to http://servername/servlet/UploadDepartmentImage, this is a worng URL Actually, the correct URL should be http://servername/jeestore/servlet/jeestore/UploadDepartmentImage And, web.xml was setting as following web-app servlet servlet-namejeestore/servlet-name servlet-classcom.jeestore.JeestoreServlet/servlet-class init-param param-nameservlet.properties.location/param-name param-value/home/jeestore/etc/jeestore.properties/param-value /init-param load-on-startup1/load-on-startup /servlet servlet servlet-nameUploadLogo/servlet-name servlet-classcom.oreilly.servlet.UploadLogo/servlet-class load-on-startup2/load-on-startup /servlet servlet servlet-nameUploadProductImage/servlet-name servlet-classcom.oreilly.servlet.UploadProductImage/servlet-class load-on-startup3/load-on-startup /servlet servlet servlet-nameUploadDepartmentImage/servlet-name servlet-classcom.oreilly.servlet.UploadDepartmentImage/servlet-class load-on-startup4/load-on-startup /servlet /web-app Would you please tell me what's wrong? Thanks. Baron
Re: Session Info Sharing
And ... when is this servlet preloaded: is it when you start the server ? The line load-on-startup1/load-on-startup tells Tomcat to pre-load this servlet first (1) when Tomcat starts. If yes, does this mean that if you have 10 web-apps, each of which has one preloaded servlet, Tomcat will preload them all ? Tomcat will pre-load all the servlets you request. = Wyn Easton [EMAIL PROTECTED] __ Do You Yahoo!? Yahoo! Messenger - Talk while you surf! It's FREE. http://im.yahoo.com/
RE: Tomcat Apache
hello, download the source distribution of tomcat 3.2 beta 6. I am sure you would find subdirs under /src... -Giri -Original Message- From: Da Eriksson Brothers [mailto:[EMAIL PROTECTED]] Sent: Friday, October 27, 2000 5:18 PM To: '[EMAIL PROTECTED]' Subject: RE: Tomcat Apache No I got the source of tomcat. And untard it. I have a src dir though, but now that particular thing in it. On Fri, 27 Oct 2000, Jagannathan, Giri (c) wrote: Looks like you have the binary distribution of tomcat. U wouldnt find src directory under tomcat.. U got to download the source distribution of tomcat... -Original Message- From: Da Eriksson Brothers [mailto:[EMAIL PROTECTED]] Sent: Friday, October 27, 2000 4:15 PM To: [EMAIL PROTECTED] Subject: Tomcat Apache Im having trouble getting tomcat working with apache. I followed the user guide that comes with tomcat. First when it asks me to change direcotry into jakarta-tomcat/src.native/apache/jserv. and build the mod_jserv.so file with apxs, I don't have such a dir or any dir called jserv under the tomcat catalgue. I downloaded the file though, but I still can't get it working. I don't have apxs under my apache installation either. I can start up tomcat and connect, but when i try to run apache, I just get httpd could not be started. That is after I included the tomcat-apache.conf file. Could anyone please tell me what I might be missing here. I would really appreciate it. I can add I am running Slackware 7.1 and the apache installation that came with it. Thanks
Strange behavoir
This weekend Tomcat stopped running. It can be started but throws errors in the mod_jk.log. Then Apache will fail to start with no errors. If I comment out the Include tomcat line in the httpd.conf file, Apache runs fine. The lines in the mod_jk.log file are: [jk_ajp12_worker.c (201)]: In jk_worker_t::validate, resolve failed [jk_ajp12_worker.c (203)]: In jk_worker_t::validate, Error localhost 8007 [jk_worker.c (164)]: wc_create_worker validate failed for ajp12 [jk_worker.c (229)]: build_worker_map failed to create workerajp12 Does anyone have any ideas? The only thing that changed this weekend is that I added a second NIC and changed the domain name of the server. Everything else seems to be working fine. Please help...
RE: strange Error 404
Servus Wyn, first thanx for your answer. -Original Message- I'm sure the problem is with the URL used to access the servlet of WebAppB. I don't think so, because of the following behaviour: Our WebServerDirStructure looks like this /websites/WebAppA /websites/WebAppA/WEB-INF /websites/WebAppA/WEB-INF/classes ... /websites/WebAppB /websites/WebAppB/WEB-INF /websites/WebAppB/WEB-INF/classes ... as written in my first mail the whole site WebAppA is working as expected, the WebAppB only shows Error 404 If I remove /websites/WebAppA and rename /websites/WebAppB with /websites/WebAppA, the whole WebAppB is working (with the URR bla/WebAppA/fasel) Because of this I assume, that something in the configuration of tomcat doesn't like WebAppB. I have done a grep "WebAppA tomcat/conf/*" and a "grep WebAppB tomcat/conf/*". The result is, that all entries for WebAppA are the same as the entries for WebAppB. Near the same, because the string WebAppA is replaced by WebAppB in each entry. Are there any other locations apart from tomcat/conf, where I have to do some configuration respectively WebAppB. Greetings from Berlin Wolfgang
Making SOAP sample work on Tomcat
I run the SOAP GetQuote sample against Tomcat, and got the following error messages on the Tomcat screen: (Mon Oct 30 09:24:59 EST 2000) Processing SOAP request... java.lang.NullPointerException at org.apache.soap.server.http.RPCRouterServlet.doPost(RPCRouterServlet. java, Compiled Code) at javax.servlet.http.HttpServlet.service(HttpServlet.java:760) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.ja va, Compiled Code) at org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.ja va:597) at org.apache.tomcat.servlets.InvokerServlet.service(InvokerServlet.java :257) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.ja va, Compiled Code) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:559 ) at org.apache.tomcat.service.http.HttpConnectionHandler.processConnectio n(HttpConnectionHandler.java:160) at org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.j ava:338) at java.lang.Thread.run(Thread.java:479) Could you please help me determine what the problem is? Thanks = You guys start coding, I will figure out what they want. __ Do You Yahoo!? Yahoo! Messenger - Talk while you surf! It's FREE. http://im.yahoo.com/
Re: APJ12: connection failed
hello, apache and tomcat talk to each other using the ajp protocoll on a port, normally 8007. apache needs to have a plugin properly configured and running for this to work. there appears to be both mod_jserv and mod_jk you can use for this, where mod_jk is never. i use mod_jserv. read the installation instuctions, and find which plugin to use and where to put it (depending on your os config) and then change the apache startup file to include a file called tomcat.conf or something like that tomcat creates for apache when starting. hope this helps somewhat, even if i wasnt very specific. Natalie D Rassmann wrote: Hi, I have been trying to get Apache to start Tomcat and after many long days I have finally got Apache to start Tomcat. However, when I try to go to the examples page and have Apache serve the JSP or Servlet examples I get the following error: ajp12: can not connect to host 127.0.0.1:8007 ajp12: connection fail an error returned handling request via protocol "ajpv12" What does this mean? I see when I type netstats -a that both ports 8007 and 8080 are not listening. I tried changing the default port to 8009 and this did not work. Can anyone help me -- Joakim Verona [EMAIL PROTECTED] http://www.verona.se/
Re: AW: redirect problems?
yeah, I have returns, why does this do this, there is no documentation in the JSP spec saying i have to do returns after a redirect. Is this a bug in tomcat? On Mon, 30 Oct 2000, you wrote: Do you make a return after the sendRedirect? ... rresponse.sendRedirect("/checkout2.jsp"); return; ... Otherwise, the output of checkout2.jsp is added (and not a 'new' output). Hint: Call sendRedirect before you make any output!!! -Ursprüngliche Nachricht- Von: jim [mailto:[EMAIL PROTECTED]] Gesendet am: Freitag, 27. Oktober 2000 18:41 An: [EMAIL PROTECTED] Betreff: redirect problems? Hi, We are using Apache 1.3.12 with Tomcat 3.1 and experiencing weird problems. 1. checkout.jsp (FORM collecting new user info) - POSTs to checkout_eng1.jsp 2. checkout_eng1.jsp - adds user from #1 and does a response.sendRedirect("/checkout2.jsp"); 3. checkout2.jsp shows the next FORM asking for mailing address information Weird Symptom #1 -- On any version of Internet Explorer (never on netscape) the POST to step #2 above fails and up comes this IE error "cannot find server or DNS error" which leads me to beleive that the response.sendredirect() is doing something odd, maybe not sending back the correct http location header or something If you immediatly hit the browsers back button and re-submit the form, it then works with no problem and as expected. This only seems to occur the first time submitting forms to a page that re-directs after an operation. Weird Symptom #2 occasionally on Internet Explorer AND Netscape. User submits info from form #1 above (checkout.jsp), their information is added to the database and they are redirected to checkout2.jsp, HOWEVER what is shown on checkout2.jsp is BOTH the previous pages contents (checkout.jsp) AND the expected contents of checkout2.jsp with a visible HTTP response header printed out in between checkout.jsp's contents and checkout2.jsp's contents ALL on visible on the URL checkout2.jsp Anyone have any ideas? I tried checking the bug database but it appears to be down.
RE: Logger
You might just try Webtrends... -Original Message- From: Lacerda, Wellington (AFIS) [mailto:[EMAIL PROTECTED]] Sent: Monday, October 30, 2000 05:00 To: '[EMAIL PROTECTED]' Subject: RE: Logger Hi Craig, I need a logger to collect data on tomcat contexts usage. I want to know how many hits a certain context got, what is the most popular page, how many hits from inside versus from the outside, things like that. I was thinking on something like writing a RequestInterceptor for that. Is that the way or there are less painful paths ? Wellington -Original Message- From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]] Sent: 28 October 2000 04:00 To: [EMAIL PROTECTED] Subject: Re: Logger "Lacerda, Wellington (AFIS)" wrote: For tomcat contexts usage, not program logging. Will this new api be in Servlet 2.4 or 2.3 ? I saw the public draft 1 for 2.3 and saw nothing there. There are no substantive changes in 2.3 relative to logging ... what goes into future versions is totally up to the expert group at that time. Besides, we need something more immediate. What kinds of features are you looking for? Wellington Craig McClanahan
RE: APJ12: connection failed
hey, 1) Try changing the default apj12 worker definition section of workers.properties file as follows: worker.ajp12.host=your serverip(instead of the default localhost!) see if it works. 2) Make sure you have Included tomcat.conf at the end of httpd.conf if you are using mod_Jserv / Include mod_jk.conf-auto at the end of httpd.conf if you are using mod_JK. 2) Start tomcat first then apache!! Hope it helps. -Giri -Original Message- From: Joakim Verona [mailto:[EMAIL PROTECTED]] Sent: Monday, October 30, 2000 9:58 AM To: [EMAIL PROTECTED] Subject: Re: APJ12: connection failed hello, apache and tomcat talk to each other using the ajp protocoll on a port, normally 8007. apache needs to have a plugin properly configured and running for this to work. there appears to be both mod_jserv and mod_jk you can use for this, where mod_jk is never. i use mod_jserv. read the installation instuctions, and find which plugin to use and where to put it (depending on your os config) and then change the apache startup file to include a file called tomcat.conf or something like that tomcat creates for apache when starting. hope this helps somewhat, even if i wasnt very specific. Natalie D Rassmann wrote: Hi, I have been trying to get Apache to start Tomcat and after many long days I have finally got Apache to start Tomcat. However, when I try to go to the examples page and have Apache serve the JSP or Servlet examples I get the following error: ajp12: can not connect to host 127.0.0.1:8007 ajp12: connection fail an error returned handling request via protocol "ajpv12" What does this mean? I see when I type netstats -a that both ports 8007 and 8080 are not listening. I tried changing the default port to 8009 and this did not work. Can anyone help me -- Joakim Verona [EMAIL PROTECTED] http://www.verona.se/
reuse of JServ Applc. with Tomcat
Hi, I have a question to configure Apache to work with Tomcat instead of JServ. The Apache Sever works with Tomcat but I cannot find a solution for the servlet mapping. For JServ "/servlets/" maps the servlet repository. How must I configure Tomcat to use this Repository? regards Thomas
XML, DTD, Tomcat
Hi folks. I've got a servlet (actually a couple) that are doing some XML parsing (Mainly SAX, some DOM). The only problem I seem to be having is that when if I have a XML file that looks like this: ?xml version="1.0" encoding="UTF-8"? !DOCTYPE taglist SYSTEM "taglist.dtd" Tomcat looks for the DTD file in the TOMCAT_HOME/bin directory. the XML and DTD files are in my WEB-INF/classes part of my class path. From what I understand of XML, using the !DOCTYPE ... SYSTEM "file.dtd" where the dtd file is given as a URI with no path, the parser should look for the DTD file in the same directory as the XML file. It's probably something stupid on my part. I'm creating the InputSource using an input stream which I instantiate using "getResourceAsStream()", (which is probably where I'm going wrong). InputStream ist = FormattedTextWidgetStub.class.getResourceAsStream ( ATTR_TAGFILE ); InputSource iso = new InputSource ( ist ); parser.parse ( iso ); Is there a better way to get the InputSource? or is there any other way i can get tomcat to look for my DTD file in the same directory as my XML file (considering that I must keep my XML and DTD files in my classpath (under the WEB-INF/classes directory somewhere)? thanks very much. ...alex...
READ THIS First! Mailing-list archive and good tips
To unsubscribe from this list mailto:[EMAIL PROTECTED] To stop subscription for an alternate account (e.g. [EMAIL PROTECTED]) send an eMail to [EMAIL PROTECTED] Before posting any questions --- + We welcome open discussion of Tomcat issues at both advanced and beginner levels of expertise. However, please be respectful of other people's time. Before posting questions, do your own reading and research. As the saying goes, "There are no stupid questions"... except the ones you could have answered by yourself! Before posting a question, perform the following steps. + Be familiar with servlets in general. See: http://java.sun.com/products/servlet/ http://java.sun.com/products/jsp/ + Read any of the several published books about servlets or JSP. + Read the Servlet API 2.2 Specification. Download a copy of the spec in PostScript or Acrobat PDF formats: http://java.sun.com/products/servlet/download.html#specs The spec is currently not available online; you must download a copy. You may obtain free Acrobat PDF reader software from: http://www.adobe.com/products/acrobat/readstep.html Tomcat implements this spec, so think of it as one of Tomcat's manuals. + Read Tomcat's other documentation: http://jakarta.apache.org/tomcat/index.html + Study the Tomcat examples. First use the servlets found in the /examples context. Read their source code. Then try your own first servlets in the /examples context, and add an entry into /example/WEB-INF/web.xml + Search either of these two archives for past discussions. Contributed by Bob Tanner: http://archives.real-time.com/rte-tomcat/ Contributed by Philip J. Mikal: http://mikal.org/interests/java/tomcat/index.html Search for short phrases, such as your server error messages. Search the archive again with better or different phrases. Many beginner questions have already been asked, so please make several attempts at finding your question in the archive. + Read the FAQ (temporary(?) unavailable): http://jakarta.apache.org/jyve-faq/Turbine/screen/DisplayTopics/ Click the Jakarta link. + Search the bug report facility http://znutar.cortexity.com: provided by Nick Bauman. + Read this mailing list regularly, not just when you have a problem. + Examine your error messages problems not directly related to Tomcat, such as CLASSPATH problems. Write, compile, and run a "Hello World" application to be sure your problem is related to servlets or Tomcat. + Ask an expert in your company, school class, or local Java users group. http://industry.java.sun.com/jug/ + Do not treat this list as a dumping ground for your problems. Think of the list as a volunteer community of people engaging in respectful discussion. == THE MORAL OF THE STORY Help yourself first. Be responsible for your own learning. Try to solve your own problem. If you are still suffering, then post to this list. == + Be aware: This mailing list may contain viruses. Don't trust anybody. If your are not absolutely sure, do not open any attachments. Do not read the postings with a JavaScript-enabled email client. Microsoft Windows users: Disable all stuff like ActiveScripting etc. in your mail reader. Be careful with attachments, especially of type .exe .vbs or some virus attachments like "livestages.txt.shs". The .shs extension disappears/is not visible under Windows but represents an executable script which will execute when opened separately. + Other resources: - An archive of the mailing list for the developers building Tomcat discussing bugs, future releases, etc. http://www.metronet.com/~wjm/tomcat/ - Sun's mailing list for general servlet information: Search its archive at: http://archives.java.sun.com/archives/servlet-interest.html Subscribe only, if you are willing to receive hundred messages per day! - Search DejaNews at http://www.deja.com/home_ps.shtml - Look at jGuru, JCentral etc. - Search the whole Web with a popular search engine. As a developer of server applications you should know all about it. :-) You can find entire websites dedicated to Java servlets. Find the online versions of Java magazines with past articles on servlets and JSP. -- end --
freebsd, jdk1.2, tomcat 3.1 help
I can't get tomcat 3.1 to run under freebsd 3.4-RELEASE FreeBSD 3.4 Classic VM (build Linux_JDK_1.2.2_RC4, green threads, sunwjit) Here's the message I get When I try to connect Error reading request Resource temporarily unavailable: Resource temporarily una vailable It seems to run fine under jdk1.1.8. Has anyone gotten it to work ? thanks mike
Re: (Possible VIRUS) Re: ???????? - ????????????
"C. Jason Benedict" wrote: i have cut the binary code out of this one sinboda wrote: [Image] The original message made my Netscape running under RedHat 6.1 linux crash. I had to remove the message by other means before I could run netscape again. Don't know what that means. martin -- Martin Smith email: [EMAIL PROTECTED] Vollsveien 9 tel. : +47 6783 1202 P.O. Box 482 1327 Lysaker, Norway
RE: BindException on Solaris + Q
Does anyone know if/where I can get mod_jserv.so for sparc? Get the jserv src code from java.apache.org and statically link it into your apache instance. (makefiles are included so usually this is a triial task ;-). J PS (To Mike...) What is that lsof command you mentioned? I have never heard of it before. I just tried doing a 'which lsof' and it is not in my $PATH (nor in my $MANPATH). Is it 3rd party stuff that needs to be downloaded and installed separately? -Original Message- From: Mike Bremford [mailto:[EMAIL PROTECTED]] Sent: 30 October 2000 16:41 To: [EMAIL PROTECTED] Subject: RE: BindException on Solaris Tomcat also listens on port 8080 by default. Try netstat -a | grep 8080, or even better "lsof -i tcp:8080". Cheers... Mike -Original Message- From: Chris Francis [mailto:[EMAIL PROTECTED]] Sent: 30 October 2000 15:27 To: Tomcat-User (E-mail) Subject: BindException on Solaris I'm attempting to run Tomcat on a Solaris 7 machine. We get a java.net.BindException:Address already in use on startup. There's nothing already on port 8007. What else can we try? There's very little other feedback - nothing in the logs etc. Chris Francis, Software Engineer, Static 2358, Ltd. +44 (0) 20 7250 1244
Re: RE: [tomcat-user] issues with mod_jk (consuming 100% of cpu)
If you download with Netscape it can save it as text and that will leave it garbled. Download with Lynx or some other browser and you won't have that problem. Rick [EMAIL PROTECTED] wrote: Speaking of mod_jk, where can I find the source and instructions to compile it? Apache complains that the one I downloaded (linux i386) is 'garbled'. Thanks, ranko -Original Message- From: Kenneth Topp [mailto:[EMAIL PROTECTED]] Sent: Monday, October 30, 2000 1:45 PM To: [EMAIL PROTECTED] Subject: [tomcat-user] issues with mod_jk (consuming 100% of cpu) I've just noted a issue with mod_jk, causing the webserver to run out of control. The tomcat (3.2b4) process was restarted, and about 10 of the apache httpd's started consuming all of CPU. I had to kill them, but didn't need to restart apache in general. I (under linux) straced' the process, and it was repeating recv syscall. Anyone have expierience with this problem? I will try to repeat the problem with b6... I think the only thing that was different was possibly requests in midstate. Thanks, Kenneth Topp --- to unsubscribe: [EMAIL PROTECTED] for more info: http://jakarta.apache.org/getinvolved/mail.html
RE: [tomcat-user] issues with mod_jk (consuming 100% of cpu)
in the tomcat source bundle... --- to unsubscribe: [EMAIL PROTECTED] for more info: http://jakarta.apache.org/getinvolved/mail.html On Mon, 30 Oct 2000, Ranko Bijelonic wrote: Speaking of mod_jk, where can I find the source and instructions to compile it? Apache complains that the one I downloaded (linux i386) is 'garbled'. Thanks, ranko -Original Message- From: Kenneth Topp [mailto:[EMAIL PROTECTED]] Sent: Monday, October 30, 2000 1:45 PM To: [EMAIL PROTECTED] Subject: [tomcat-user] issues with mod_jk (consuming 100% of cpu) I've just noted a issue with mod_jk, causing the webserver to run out of control. The tomcat (3.2b4) process was restarted, and about 10 of the apache httpd's started consuming all of CPU. I had to kill them, but didn't need to restart apache in general. I (under linux) straced' the process, and it was repeating recv syscall. Anyone have expierience with this problem? I will try to repeat the problem with b6... I think the only thing that was different was possibly requests in midstate. Thanks, Kenneth Topp --- to unsubscribe: [EMAIL PROTECTED] for more info: http://jakarta.apache.org/getinvolved/mail.html
Configuring Tomcat - Examples don't work.
H- I have been through the archive and found references to this problem but haven't found any solutions. Or at least any that give examples on the solution. Being a newbie to tomcat (and linux to a degree) I was wondering if anyone could help me out with a Tomcat problem? Here's what I have so far. Linux: Redhat 6.2 Apache 1.3.12 Up and Running smoothly. Domain names work good and all that jazz. Tomcat 3.1 up and Running half way. Pulls up directory pages under examples (jsp, servlets, images) Tomcat WebServer v3.1 My servlets will run but the JSP examples come up with Error: 500 Location: /examples/jsp/dates/date.jsp sun/tools/javac/Main Yes the dreaded 500 error. My server is throwing out a lot of text when I try to execute a JSP example. But at the top it says. java.lang.NoClassDefFoundError: sun/tools/javac/Main Here's what I have for my env variables as per the documentation. TOMCAT_HOME=/usr/local/tomcat ; export TOMCAT_HOME set JAVA_HOME=/usr/local/jdk1.2.2; export JAVA_HOME set PATH=$PATH:$JAVA_HOME/bin; export PATH All the posts I've found on this issue say that the CLASSPATH isn't set to find tools.jar. My question is how do you set the classpath for tomcat? Could someone please give me an example of classpath setting? I tried set CLASSPATH=/usr/local/jdk1.2.2/lib; export CLASSPATH without success. 8^( Is this really the problem? Is it me, tomcat configuration, the planets? I'm very lost and frustrated on this issue. For a week now. Any assistance or insight anyone might have would be greatly appreciated. Thanks. -Sterling PS(I start Tomcat first, than restart Apache. None throw errors on loading.) PPS(Is there a Tomcat Newsgroup available, other than posting queries to the Apache one? (japan.www.server.apache) I see a lot of Tomcat posts up there but would like to focus on this program in the appropriate newsgroup, if possible. Hence this mailing list. 8^)
Re: Configuring Tomcat - Examples don't work.
Sterling wrote: java.lang.NoClassDefFoundError: sun/tools/javac/Main Add "$JAVA_HOME/lib/tools.jar" to your classpath. Adding just "$JAVA_HOME/lib" is not sufficient, because that only looks for unpacked classes -- not classes that are resident in JAR files in the named directory. Craig McClanahan
Managing Live Sessions
Hi All, I would like to limit number of live sessions to say x number. Is there a way where I can configure in Tomcat or in apache. Can I set the number of live sessions from Tomcat from a JSP or Servlet, if so could any let me know. Thanks --Anand _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. Share information about yourself, create your own public profile at http://profiles.msn.com.
RE: [tomcat-user] issues with mod_jk (consuming 100% of cpu)
Thanks guys, dowloaded, compiled, and working (kind of) -Original Message- From: Jagannathan, Giri (c) [mailto:[EMAIL PROTECTED]] Sent: Monday, October 30, 2000 2:02 PM To: '[EMAIL PROTECTED]' Subject: RE: [tomcat-user] issues with mod_jk (consuming 100% of cpu) U got to download the source dist. of tomcat 3.2b6 or later build the mod_jk modules follow the instructions given in this link: http://jakarta.apache.org/tomcat/jakarta-tomcat/src/doc/mod_jk-howto.html Giri -Original Message- From: Ranko Bijelonic [mailto:[EMAIL PROTECTED]] Sent: Monday, October 30, 2000 1:59 PM To: [EMAIL PROTECTED] Subject: RE: [tomcat-user] issues with mod_jk (consuming 100% of cpu) Speaking of mod_jk, where can I find the source and instructions to compile it? Apache complains that the one I downloaded (linux i386) is 'garbled'. Thanks, ranko -Original Message- From: Kenneth Topp [mailto:[EMAIL PROTECTED]] Sent: Monday, October 30, 2000 1:45 PM To: [EMAIL PROTECTED] Subject: [tomcat-user] issues with mod_jk (consuming 100% of cpu) I've just noted a issue with mod_jk, causing the webserver to run out of control. The tomcat (3.2b4) process was restarted, and about 10 of the apache httpd's started consuming all of CPU. I had to kill them, but didn't need to restart apache in general. I (under linux) straced' the process, and it was repeating recv syscall. Anyone have expierience with this problem? I will try to repeat the problem with b6... I think the only thing that was different was possibly requests in midstate. Thanks, Kenneth Topp --- to unsubscribe: [EMAIL PROTECTED] for more info: http://jakarta.apache.org/getinvolved/mail.html
jsp compilation problem
Hi all, Here is a snippet of jsp code that I am having trouble in compiling jsp pages: jsp:usebean id="traverser" scope="session" class="com.ss8networks.smp.sms.provisioning.jsp.Service800NumberBean" / % QuestionnaireTreeModel model = traverser.getModel(); if (model != null){ model.clearProvisionedData(model.getRoot().getInstanceID()); } % I get the following error: Error: 500 Location: /provision/service800number_start.jsp Internal Servlet Error: org.apache.jasper.JasperException: Unable to compile class for JSPD:\jakarta-tomcat\work\localhost_8080%2Fprovision\_0002fservice_00038_000 30_00030number_0005fstart_0002ejspservice800number_0005fstart_jsp_0.java:60: Undefined variable or class name: traverser QuestionnaireTreeModel model = traverser.getModel(); ^ 1 error at org.apache.jasper.compiler.Compiler.compile(Compiler.java, Compiled Code) at org.apache.jasper.runtime.JspServlet.loadJSP(JspServlet.java:413) at org.apache.jasper.runtime.JspServlet$JspServletWrapper.loadIfNecessary(JspSe rvlet.java:149) at org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspServlet.ja va:161) at org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java:261) at org.apache.jasper.runtime.JspServlet.service(JspServlet.java, Compiled Code) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java, Compiled Code) at org.apache.tomcat.core.RequestDispatcherImpl.forward(RequestDispatcherImpl.j ava:163) at org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:357) at _0002flogin_0002ejsplogin_jsp_0._jspService(_0002flogin_0002ejsplogin_jsp_0. java:75) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:126) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspServlet.ja va:174) at org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java:261) at org.apache.jasper.runtime.JspServlet.service(JspServlet.java, Compiled Code) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java, Compiled Code) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:559) at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC onnectionHandler.java, Compiled Code) at org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java, Compiled Code) at java.lang.Thread.run(Thread.java, Compiled Code) The problem seem to happen with only TomCat but when I run the same page under weblogic it runs smoothly. Can somebody please let me know what I am doing wrong or is it a bug in TOMcat jsp engine. Cheers, Sibon.
strange applet/plugin issues
im not sure where to get help on this one but here goes...perhaps someone here has had this problem: i am developing swing applets on a freebsd machine running tomcat 3.1. i write two hello world type applets that used swing. on my client machine (redhat 7, netscape 4.75) i installed the java plugin 1.3 so that i could view these applets in netscape. so the plugin was installed and i tested it by hitting some sample applets found in the Java Tutorial (Applet trail - on http://java.sun.com)...everything works. so i decide to build my webapp and deploy it. i do this with no errors or warnings. so far so good. then i decide to test out my applets (which by the way are called by using jsp:plugin/jsp:plugin). Applet 1: HelloSwingApplet - runs fine and all works !!! Applet 2: HeadingApplet - does not work, down in the status bar i get the following message: "Start: applet not initialized" and the applet area on the page shows the text "Loading Java Applet ... ". so i check and double and triple check my applet 2 code. everything is fine. i try copying the HelloSwingApplet code (with class name changed of course) to HeadingApplet and still the one works but the other does not. the two are, save the class and file name, identical. G. then it gets really wierd...i aska friend with a windows machine to hit the pages to see if i get any more information on the problem. he cannot get either applet to work. i scream. then i go back to my desk and try both on my machine again, only one works. so i search sun's site, the tomcat mailing list archive, and start looking at newsgroupsi do not find anything so i just restart tomcat and netscape and try again on my machinethis time NEITHER WORKS!!! ack! nothing changed in the codejust a restart of the server! this is driving me crazy. i will continue to try and dig up info on this but was hoping that someone else on this list knew what was going on. thanks in advance. bleh, david
Re: strange applet/plugin issues
now things are working againodd...very oddi think maybe my jdk/jre install is not clean. hr
Execute JSP's in a different directory - sans-examples.
H- I've been poking around the docs and archives for this list and from what I see there isn't a simple way to make this happen. Set up another directory that will execute JSP files without having to go through examples. (And from what I've seen this directory cannot be inside the httpd/htdocs directory either. True?) For example: Add to tomcat-apache.conf file: ApJServMount /MYDIRECTORY ajpv12://127.0.0.1:8007 Create a directory inside /usr/local/tomcat/webapps/MYDIRECTORY Create all the special JSP files and dirs in that directory META-INF, WEB-INF, images, jsp, servlets. Now modify the web.xml file inside WEB-INF to include every servlet that I'm going to use. When I create another servlet I must re-edit this file to include that servlet than reload Tomcat, Restart Apache. This can't be right. This is a lot of configuring just to pull up http://www.myserver.net/MYDIRECTORY and have it pull and executes JSP files. Is this the only way (did I even get it right?) or am I reading the wrong information? Thanks for any thoughts or insights you might have. -Sterling
server.xml and individual servlets
I'm fairly new to Tomcat and I have a configuration question. I want to register a number of individual servlets without grouping them under a web application as follows: path = domain/servlet1 will invoke servlet1 path = domain/servlet2 will invoke servlet2 . . . It seems that a "Context" tag will define a complete web app causing Tomcat to locate servlets specified in an associated Web Application Deployment Descriptor. Is there another tag in the server.dtd that will allow me to specify individual servlets as I've described above? Thanks for the info. Scott
Re: freebsd, jdk1.2, tomcat 3.1 help
Haberman-san wrote: I can't get tomcat 3.1 to run under freebsd 3.4-RELEASE FreeBSD 3.4 Classic VM (build Linux_JDK_1.2.2_RC4, green threads, sunwjit) I have not problem running the native FreeBSD port of 1.2.2 on FreeBSD 4.1-RELEASE. Have a look at http://java2.freebsd.methodsystems.com/java/jdk.html for the patchset. Koster-san has prepared an excellent tutorial on getting it all compiles at: http://web.inter.nl.net/users/kjkoster/java/index.html Also, I see that you have a JIT running. Was that JIT compiled for the Linux JDK 1.2.2? Or was it compiled for the native 1.1.8? Here's the message I get When I try to connect Error reading request Resource temporarily unavailable: Resource temporarily una vailable Do you know what resource it is talking about? Is it a ResourceBundle? Is it in your 1.1.8 classpath, but not your 1.2.2 classpath and/or tomcap classpath? -- Michael Westbay Work: Beacon-IT http://www.beacon-it.co.jp/ Home: http://www.seaple.icc.ne.jp/~westbay Commentary: http://www.japanesebaseball.com/
Re: ClassCastException,Beans, and Constant Restarts
I agree with you, there's no clarity about that issue, so I tried to put together some of the references in the different available documents: From the User Guide, defining the RELOADABLE parameter of the context tag in server.html: "When developing a servlet it is very convenient to have Tomcat reload it upon change, this lets you fix bugs and have Tomcat test the new code without the need to shutdown and restart. To turn on servlet reloading set the reloadable flag to true. Detecting changes however is time consuming; moreover, since the new servlets are getting loaded in a new class-loader object there are cases where this class-reloading trigger casts errors. To avoid these problems you can set the reloadable flag to false; this will disable the autoreload feature." From "Real World Configuration Tips": "Servlet auto-reloading is really useful for development time. However it is very expensive (in performance degradation terms) and may put your application in strange conflicts when classes that were loaded by a certain classloader cannot co-operate with classes loaded by the current classloader. So, unless you have a real need for class reloading during your deployment you should turn off the reloadable flag in your contexts. " From the Tomcat FAQ: "Does Tomcat reload changed servlets? " "Tomcat 3.1b reload changed servlets from it's WEB-INF directories. Note: Do NOT include the classes or .jar files from WEB-INF directories for which you want to enable automatic servlet reloading in the CLASSPATH of the shell that starts Tomcat. I had a two-day struggle with init-files, classpaths, reloads etc. before I spotted a small comment in tomcat.properties that states the CLASSPATH for the main execution of Tomcat must not contain servlets one wants to reload - and now I just want to let you know :) " From my experience with Tomcat 3.1: (maybe things have changed for 3.2 B6, the current milestone) - JSP's are regenerated and reloaded OK when they change. - Classes are NOT reloaded (succesfully) no matter if they are in the system CLASSPATH or in the WEB-INF directory You will always have to restart Tomcat Julio Serje Calian Tech. Ottawa, Canada. - Original Message - From: Steve Goyette [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, October 30, 2000 2:16 PM Subject: ClassCastException,Beans, and Constant Restarts I have read quite a few posts regarding this, but I could not find a clean cut answer. Using Tomcat 3.2 can I make changes to a bean, recompile, touch my JSP file that accesses that bean, and view my page with the new bean? Currently I am getting a ClassCastException. Why, when the JSP file has to be recompiled, does it not find the new version of the bean? Is there a workaround for this? thanks in advance, steve
RE: NT-Service-Howto
Hi Again, Everything is fine now. I had to use version 3.2 beta 6 for everything. Cound not mix them up. Regarfds, Jonah -Original Message- From: Hovnan Jonah Alexanian [mailto:[EMAIL PROTECTED]] Sent: Monday, October 30, 2000 2:39 PM To: [EMAIL PROTECTED] Subject: RE: NT-Service-Howto oops forgot to tell you that I am using Tomcat v3.1 but I also downloaded version 3.2 beta 6 and tried with that one but same results -Original Message- From: Hovnan Jonah Alexanian [mailto:[EMAIL PROTECTED]] Sent: Monday, October 30, 2000 2:09 PM To: [EMAIL PROTECTED] Subject: NT-Service-Howto Hi, I am a new tomcat user and for the last two days I have been trying to install the NT-Service. Can you help me... I downloaded jk_nt_service.exe and wrapper.properties. Made the two changes wrapper.tomcat_home = c:\tomcat wrapper.java_home = c:\jdk1.2.2 then I ran jk_nt_service -i Jakarta wrapper.properties. the wrapper.properties files is located in the same dir as the exe jk_no_service installed the service and reported no errors but the service does not start. I can manualy start tomcat and execute the examples. I think AJPV12 connecter is installed and running because there is an entry in the server.xml file plus i am able to start and stop tomcat using the supplied code. I can even run the isapi version from iis. Is there any error file jk_nt_service writes to that I can read and find out what is going on? I am using Windows2000 Advanced Server with and without IIS. From nt services i can see that Jakarta service is installed but after i start it it stops a second after it starts. Best regards Hovnan Jonah Alexanian (818) 954-4453
Re: catalina.sh IS tomcat.sh ?
"Craig R. McClanahan" wrote: For the purposes of starting up Tomcat 4.0, this is correct -- use catalina.sh or catalina.bat instead of tomcat.sh / tomcat.bat. Any more noticeable diffs? Quite a few. One of the primary reasons that Tomcat 4.0 is still "pre-alpha" is (incomplete or missing) documentation -- the code quality is getting there :-). Interesting differences: * No web connectors yet, only runs stand alone (this is being actively worked on). Thank you Craig. I'm using TomCat on Apavhe so i guess I shall wait for the web connectors ;-) --mike
RE: Servlet loading on linux startup
Hi, Maybe this is a file permissions or paths problem... Check what user tomcat runs as when started from inittab. Is this the same user you use when you "log in to linux" to start tomcat? If not, does this user have access permissions to the WEB-INF/classes directory, the web.xml file, etc? What about the environment variables like TOMCAT_HOME? Are they set correctly when tomcat is started from inittab? Regards, Simon -Original Message- From: Domenico di Girolamo [SMTP:[EMAIL PROTECTED]] Sent: Monday, October 30, 2000 7:31 PM To: Tomcat ML Subject: Servlet loading on linux startup If I start Tomcat from inittab on linux startup it do not load servlets on web.xml configured as load on startup. If I login into linux and stop and restart tomcat then it load servlets on startup. How can I solve this problem ? thanks Domenico