Re: mod_webapp (Tomcat 4.0 b2, b3): compilation quick fix
It's a bit stupid to reply to your own post. Anyway... Apache will fail to start with staticly linked mod_webapp due to the fact that this module is not capable of handling the second pass of the configuration file successfuly. It will report 'Duplicate connection name'. The originating file is wa_connection.c. Since the WebAppConnection has been defined in the first pass, it won't accept the same one in the second pass because it checks for duplicate connections. Bojan Bojan Smojver wrote: > > I've posted to this list a few days ago a message related to the > compilation problems of mod_webapp. It seems that the versions that come > with b2 and b3 of Tomcat 4.0 are screwed (even after cleaning double new > lines in Makefiles). I didn't have the patience to go through the code > to determine why (a lame way of saying that I don't have a clue what's > in there ;-) > > The quick fix in order to get it to *compile* is to revert to b1 > release. And just as an FYI, it can also be compiled and statically > linked into Apache. Just whack mod_webapp.c into webapplib directory, > put mod_webapp.o into the OBJS in the Makefile for webapplib. This will > place the object file into libwebapp.a after compilation. Then create a > directory under src/modules (Apache source) for it and copy the library > (libwebapp.a) there. Create Makefile.tmpl, for instance: > > -- > LIB=libwebapp.a > > all: ${LIB} > > ${LIB}: > ${RANLIB} $@ > > clean: > -- > > libwebapp.module file, for instance: > > -- > Name: webapp_module > ConfigStart > LIBS="-Lmodules/webapp -L../modules/webapp > -L../../modules/webapp -lwebapp -ldl $LIBS" > RULE_HIDE=yes > ConfigEnd > -- > > run configure (activate the module) and it should get into Apache after > you run make. > > Back to testing its functionality now... > > Bojan
Re: Testing JSP
Hi, Try to refresh the browser. Press Shift+Reload To reload the again from the server. If even than never works delete all the files in the work directory of tomcat and restart tomcat HTH Moin. "Joseph A. Noble" wrote: > Hello List, > > How do I get tomcat to re-compile a JSP page? I've successfully loaded > a JSP page and it runs fine. I made a slight change and now can not > figure out how to get tomcat to recognize the changes to the JSP page > source. > > HELP > -joe- > -- > [EMAIL PROTECTED] >http://www.flashman.com/ (303) 971-8780 > B-24 Crew Registry http://www.flashman.com/cgi-bin/crew-reg.cgi
RE: ISAPI filter question
Thanks a lot for your help! Borislav -Original Message- From: Ricardo Gladwell [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 05, 2001 5:25 AM To: [EMAIL PROTECTED] Subject: RE: ISAPI filter question The ISAPI filter is not responsible for starting Tomcat: it merely handles redirecting requests from IIS to Tomcat. You can configure your machine to start Tomcat automatically: http://jakarta.apache.org/tomcat/jakarta-tomcat/src/doc/NT-Service-howto.htm l And you can even configure Tomcat to start in the same service as your web server: http://jakarta.apache.org/tomcat/jakarta-tomcat/src/doc/in-process-howto.htm l Most of this documentation should be in the Tomcat standard download. Yours... -- Ricardo Gladwell UBQT Media PLC Mobile: (07779) 841 444 > -Original Message- > From: Borislav Iordanov [mailto:[EMAIL PROTECTED]] > Sent: 05 April 2001 02:49 > To: Tomcat User List > Subject: ISAPI filter question > > > Hi, > > I've used tomcat for a while, starting it from the command line. Now, I've > configured the ISAPI filter for IIS 5.0 under Windoz 2000 Professional and > it works fine also. Except, I'm wondering why do I have to start > tomcat from > the shell as usual? Why doesn't the ISAPI filter start it? What are all > those configuration variables (classpaths, tomcat home directory) in > 'workers.properties' used for, if the filter seems to be > communicating with > tomcat through TCP/IP (on the port 8007 set for the worker)? Maybe I'm > missing some configuration variable that'll make the filter start tomcat > automatically... > > Thanks, > Borislav >
Tomcat Seesion Expiry.
Hi.. I am using Tomcat 3.2 and I have set the Session Inactive Time as 20 minutes. Can anyone tell me properly what tasks Tomcat will perform after expiry of inactive time. How can i catch thse tasks, so that i can force tomcat to do some Finalising jobs for my application. Thanks for the time. Regards. L G GoundalkarIntertec Communications Pvt LtdINDIA
Re: question about uploading files and multipart/form-data FORMS
HI Andreas -- Thanks for your reply. I also have no problem with tomcat. It's Apache with JServ that causes me problems. So I was wondering if there is a problem just with Jserv. I believe another Email on this read said that it is a known problem with an earlier JServ Betty - Original Message - From: Andreas Mecky To: [EMAIL PROTECTED] Sent: Wednesday, April 04, 2001 2:17 AM Subject: AW: question about uploading files and multipart/form-data FORMS Hi Betty, I am using the perfect class from O'Reilly (MultiPartReuqest) for uploading files. This classes works fine for me. I never had any problems with Tomcat and uploading any kind of file. OK, I haven't tested all types of files to be honest but so far everything is fine. Try this classes. WBR Andreas -Ursprüngliche Nachricht-Von: Betty Chang [mailto:[EMAIL PROTECTED]]Gesendet: Mittwoch, 4. April 2001 02:56An: [EMAIL PROTECTED]Betreff: question about uploading files and multipart/form-data FORMS Hi All -- With Tomcat, I have no problems submitting forms with ENCTYPE="multipart/form-data" and uploading files into my server. However, when I was using Apache/JServ, certain files will not upload because the code that reads the uploaded data dies on a read() call somewhere with an application null error. I cannot determine what causes the problem -- it's not the type of file, or anything, such certain files, and .doc files seem to be the most troublesome. Has anyone else seen this problem with apache/Jserv, but not with Tomcat? Thanks Betty Portal Wave, Inc.Catalyst for Collaborative Commercewww.portalwave.com
Security issues with tomcat-apache combo
Here is the situation: I have some webapps that I would like to require password access to. I can do this using the web.xml file if I only use tomcat. The problem: I need to have tomcat be a plugin to apache, but when I run them together apache handles all requests that are not for jsp's or servlets. This causes all non jsp or servlet stuff to be unprotected. Questions: Is there a way to allow tomcat to handle all requests and still be able to use the dynamically generated mod_jk.conf-auto file? Is there another better way to setup coordinate security in tomcat+apache? Thanks in advance, Michael Hale RoleModel Software (www.rolemodelsoft.com) - The XP Software Studio [EMAIL PROTECTED] 919.557.6352
Mobile Computers
Hello there. This question has nothing to do with APACHE or TOMCAT per say. but here it goes: I think it was sometime time last year when I saw an article in the Linux Journal about mobile computers. I think there were designed to use the CROUSE chip from Transmeta. There was several pictures of some of these computers (If we can call it that...). They seemed to be about the size of a book (8 inches wide by 12 inches long, I think). The looked like a cross between a PDA and one of those PADs used in the Star Trek shows, but bigger. They showed sceeenshots of the display and it showed full color graphics, etc... I think the article mentioned these products were going to be available by now... Does anyone remember this article and if so when on what issue of the Linux Journal was it in? Also any links to the sites where I can find information about buying one of those computers.. Thanks -Alberto- [EMAIL PROTECTED]
Apache Internal Server Error
Hi all. I'm writing because i have a "ghost" problem :) Sometime (i haven't understood when !!) i receive from Apache (1.3.12) an Internal Server Error when i invoke from IE 5.5 my webapp (a servlet and a seriuous of jsp). In mod_jk.log file i saw this message: [jk_ajp13.c (346)]: Into ajp13_marshal_into_msgb [jk_ajp13.c (480)]: ajp13_marshal_into_msgb - Done [jk_ajp13_worker.c (203)]: connection_tcp_get_message: Error - jk_tcp_socket_recvfull failed [jk_ajp13.c (346)]: Into ajp13_marshal_into_msgb [jk_ajp13.c (480)]: ajp13_marshal_into_msgb - Done If i re-send the request to my webapp all return ok (sometime i need 2-3 refresh). I'm using tomcat 3.2.1 with a simple configuration: a context named "service" mounted with "JkMount /service/* ajp13". Using Tomcat 3.1 i never had this problem (ajp12). Anyone that can help me ? Thanks in advance.
Tomcat3.2+Redhat 7.0+glibc-2.x.x+jdk1.x == stable??
Hi; I know its kind of an open ended question, but I would like some input (factual or anecdotal) on other peoples success in running various combinations of glibc + jdk + kernel (does kernel mattrer much?). I am currently running the Sun JDK 1.3.0 with glibc-2.1.92 and kernel 2.2.16-22 on a *very* stock RH 7.0. This combination is proving itself to be quite unstable, with the Tomcat http listener and/or servlet engine dying under moderate loads (less than 4,000 hits roughly over 8 hours). The glibc + kernel are stock RH7.0 pieces, and while I am sure I can probably gain some stability by upgrading to newer ones, I would like to know if there is a "optimal" (used loosely) combination that exists. I am inheriting this setup from an Admin that thought that Linux 'sucked' and that we should move to NT. The previous admin didn't know how to use rpm, compile a kernel, or have a clue as to what glibc is. Needless to say, I can probably add some value and squeeze some better performance from our Tomcat app servers. Cheers Chris Price
mod_webapp (Tomcat 4.0 b2, b3): compilation quick fix
I've posted to this list a few days ago a message related to the compilation problems of mod_webapp. It seems that the versions that come with b2 and b3 of Tomcat 4.0 are screwed (even after cleaning double new lines in Makefiles). I didn't have the patience to go through the code to determine why (a lame way of saying that I don't have a clue what's in there ;-) The quick fix in order to get it to *compile* is to revert to b1 release. And just as an FYI, it can also be compiled and statically linked into Apache. Just whack mod_webapp.c into webapplib directory, put mod_webapp.o into the OBJS in the Makefile for webapplib. This will place the object file into libwebapp.a after compilation. Then create a directory under src/modules (Apache source) for it and copy the library (libwebapp.a) there. Create Makefile.tmpl, for instance: -- LIB=libwebapp.a all: ${LIB} ${LIB}: ${RANLIB} $@ clean: -- libwebapp.module file, for instance: -- Name: webapp_module ConfigStart LIBS="-Lmodules/webapp -L../modules/webapp -L../../modules/webapp -lwebapp -ldl $LIBS" RULE_HIDE=yes ConfigEnd -- run configure (activate the module) and it should get into Apache after you run make. Back to testing its functionality now... Bojan
Testing JSP
Hello List, How do I get tomcat to re-compile a JSP page? I've successfully loaded a JSP page and it runs fine. I made a slight change and now can not figure out how to get tomcat to recognize the changes to the JSP page source. HELP -joe- -- [EMAIL PROTECTED] http://www.flashman.com/ (303) 971-8780 B-24 Crew Registry http://www.flashman.com/cgi-bin/crew-reg.cgi
Re: I have tried everything, can anyone point me to some help?
we are using mod_jserv yes, it is apache and virtual hosting as well - Original Message - From: "Brandon Cruz" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, April 06, 2001 11:01 PM Subject: RE: I have tried everything, can anyone point me to some help? > Are you using mod_jk or mod_jserv for your connector? Also, I am using > jdk1.2.2, do you think that makes any difference? I am totally out of > ideas... Also, do you do any virtual hosting, and are you using apache as > the webserver? > > Brandon > > -Original Message- > From: kreso [mailto:[EMAIL PROTECTED]] > Sent: Friday, April 06, 2001 5:58 PM > To: [EMAIL PROTECTED] > Subject: Re: I have tried everything, can anyone point me to some help? > > > we do not include mod_jk, > we include only tomcat.conf and that works fine... > > let me know if you need more details > > - Original Message - > From: "Brandon Cruz" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Friday, April 06, 2001 10:41 PM > Subject: RE: I have tried everything, can anyone point me to some help? > > > > I can startup tomcat, I can go to the example servlets and .jsp's if I go > to > > port 8080 (the default). > > > > I have commented out the connector for the HTTP port on server.xml. I can > > still start Tomcat. On normal startup, does it say Tomcat Server started, > > check /logs/tomcat.log for errors? When I check the log, no errors are > > displayed. So... to this point everything looks fine. > > > > When I try to restart apache and have the include file in there to > > mod_jk.conf, apache won't start, but the log does not generate any errors > at > > all, if just doesn't start. Any ideas? > > > > Brandon > > > > > > > > -Original Message- > > From: kreso [mailto:[EMAIL PROTECTED]] > > Sent: Friday, April 06, 2001 5:37 PM > > To: [EMAIL PROTECTED] > > Subject: Re: I have tried everything, can anyone point me to some help? > > > > > > what do you mean: nothing works... > > can you give more details... > > > > starting: when you try to run ./startup.sh > > do you get anyting... etc.. etc... > > give us more details... > > > > > > - Original Message - > > From: "Brandon Cruz" <[EMAIL PROTECTED]> > > To: <[EMAIL PROTECTED]> > > Sent: Friday, April 06, 2001 10:30 PM > > Subject: I have tried everything, can anyone point me to some help? > > > > > > > > > > > > > I am using Redhat Linux 6.2 > > > > > > I have several virtual hosts running under Apache. > > > > > > I want to set up Tomcat to act as the jsp/servlet engine > > > > > > I have everything set up just as the documentation and everyone else > tells > > > me > > > > > > I am using mod_jk to connect to Tomcat > > > > > > Nothing works, is there some type of support I can pay for or something > > that > > > anyone knows of??? > > > > > > > > > Any help would REALLY be appreciated!!! > > > > > > > > > > > > > > >
RE: I have tried everything, can anyone point me to some help?
Are you using mod_jk or mod_jserv for your connector? Also, I am using jdk1.2.2, do you think that makes any difference? I am totally out of ideas... Also, do you do any virtual hosting, and are you using apache as the webserver? Brandon -Original Message- From: kreso [mailto:[EMAIL PROTECTED]] Sent: Friday, April 06, 2001 5:58 PM To: [EMAIL PROTECTED] Subject: Re: I have tried everything, can anyone point me to some help? we do not include mod_jk, we include only tomcat.conf and that works fine... let me know if you need more details - Original Message - From: "Brandon Cruz" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, April 06, 2001 10:41 PM Subject: RE: I have tried everything, can anyone point me to some help? > I can startup tomcat, I can go to the example servlets and .jsp's if I go to > port 8080 (the default). > > I have commented out the connector for the HTTP port on server.xml. I can > still start Tomcat. On normal startup, does it say Tomcat Server started, > check /logs/tomcat.log for errors? When I check the log, no errors are > displayed. So... to this point everything looks fine. > > When I try to restart apache and have the include file in there to > mod_jk.conf, apache won't start, but the log does not generate any errors at > all, if just doesn't start. Any ideas? > > Brandon > > > > -Original Message- > From: kreso [mailto:[EMAIL PROTECTED]] > Sent: Friday, April 06, 2001 5:37 PM > To: [EMAIL PROTECTED] > Subject: Re: I have tried everything, can anyone point me to some help? > > > what do you mean: nothing works... > can you give more details... > > starting: when you try to run ./startup.sh > do you get anyting... etc.. etc... > give us more details... > > > - Original Message - > From: "Brandon Cruz" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Friday, April 06, 2001 10:30 PM > Subject: I have tried everything, can anyone point me to some help? > > > > > > > > I am using Redhat Linux 6.2 > > > > I have several virtual hosts running under Apache. > > > > I want to set up Tomcat to act as the jsp/servlet engine > > > > I have everything set up just as the documentation and everyone else tells > > me > > > > I am using mod_jk to connect to Tomcat > > > > Nothing works, is there some type of support I can pay for or something > that > > anyone knows of??? > > > > > > Any help would REALLY be appreciated!!! > > > > > > >
Re: I have tried everything, can anyone point me to some help?
we do not include mod_jk, we include only tomcat.conf and that works fine... let me know if you need more details - Original Message - From: "Brandon Cruz" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, April 06, 2001 10:41 PM Subject: RE: I have tried everything, can anyone point me to some help? > I can startup tomcat, I can go to the example servlets and .jsp's if I go to > port 8080 (the default). > > I have commented out the connector for the HTTP port on server.xml. I can > still start Tomcat. On normal startup, does it say Tomcat Server started, > check /logs/tomcat.log for errors? When I check the log, no errors are > displayed. So... to this point everything looks fine. > > When I try to restart apache and have the include file in there to > mod_jk.conf, apache won't start, but the log does not generate any errors at > all, if just doesn't start. Any ideas? > > Brandon > > > > -Original Message- > From: kreso [mailto:[EMAIL PROTECTED]] > Sent: Friday, April 06, 2001 5:37 PM > To: [EMAIL PROTECTED] > Subject: Re: I have tried everything, can anyone point me to some help? > > > what do you mean: nothing works... > can you give more details... > > starting: when you try to run ./startup.sh > do you get anyting... etc.. etc... > give us more details... > > > - Original Message - > From: "Brandon Cruz" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Friday, April 06, 2001 10:30 PM > Subject: I have tried everything, can anyone point me to some help? > > > > > > > > I am using Redhat Linux 6.2 > > > > I have several virtual hosts running under Apache. > > > > I want to set up Tomcat to act as the jsp/servlet engine > > > > I have everything set up just as the documentation and everyone else tells > > me > > > > I am using mod_jk to connect to Tomcat > > > > Nothing works, is there some type of support I can pay for or something > that > > anyone knows of??? > > > > > > Any help would REALLY be appreciated!!! > > > > > > >
RE: I have tried everything, can anyone point me to some help?
I can startup tomcat, I can go to the example servlets and .jsp's if I go to port 8080 (the default). I have commented out the connector for the HTTP port on server.xml. I can still start Tomcat. On normal startup, does it say Tomcat Server started, check /logs/tomcat.log for errors? When I check the log, no errors are displayed. So... to this point everything looks fine. When I try to restart apache and have the include file in there to mod_jk.conf, apache won't start, but the log does not generate any errors at all, if just doesn't start. Any ideas? Brandon -Original Message- From: kreso [mailto:[EMAIL PROTECTED]] Sent: Friday, April 06, 2001 5:37 PM To: [EMAIL PROTECTED] Subject: Re: I have tried everything, can anyone point me to some help? what do you mean: nothing works... can you give more details... starting: when you try to run ./startup.sh do you get anyting... etc.. etc... give us more details... - Original Message - From: "Brandon Cruz" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, April 06, 2001 10:30 PM Subject: I have tried everything, can anyone point me to some help? > > > I am using Redhat Linux 6.2 > > I have several virtual hosts running under Apache. > > I want to set up Tomcat to act as the jsp/servlet engine > > I have everything set up just as the documentation and everyone else tells > me > > I am using mod_jk to connect to Tomcat > > Nothing works, is there some type of support I can pay for or something that > anyone knows of??? > > > Any help would REALLY be appreciated!!! > >
Tomcat3.2.1 -ClassNotFoundException error when using Third-party libraries
Hi there: I'm having the following configuration and I'm using mod_jk instead of mod_jserv and starting Tomcat using startup.sh script provided. Tomcat 3.2.1+Apache1.3.9+Sun Solaris2.7 I have a servlet (TopicServlet) which is using a thirdparty library(PANJA.jar). When I'm running the same code but using main() I could be able to get the code work but when I tried to run it as a servlet I'm getting the following error. I could reach the servlet (configured server.xml and web.xml) and even put PANJA.jar in WEB-INF/lib of Tomcat. Also I included it(PANJA.jar) in CLASSPATH while running the startup.sh srcipt. I don't know where I'm going wrong. Please help. PS: PANJA.MtClass.mtInitializer(MtClass.java:163) - I'm calling MtClass's mtInitializer("Topic"). Topic and TopicList are my classes. Thanks, Srujan java.lang.ClassNotFoundException: Topic at java.net.URLClassLoader$1.run(URLClassLoader.java:200) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:297) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:286) at java.lang.ClassLoader.loadClass(ClassLoader.java:253) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:120) at PANJA.MtClass.mtInitializer(MtClass.java:163) at Topic.mtClass(Topic.java:45) at Topic.openInstanceCursor(Topic.java:35) at TopicList.getTopics(TopicList.java:16) at TopicServlet.doGet(TopicServlet.java:42) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404) at org.apache.tomcat.core.Handler.service(Handler.java:286) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743) at org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection(Ajp12ConnectionHandler.java:166) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498) at java.lang.Thread.run(Thread.java:484) --== Sent via Deja.com ==-- http://www.deja.com/
Re: I have tried everything, can anyone point me to some help?
what do you mean: nothing works... can you give more details... starting: when you try to run ./startup.sh do you get anyting... etc.. etc... give us more details... - Original Message - From: "Brandon Cruz" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, April 06, 2001 10:30 PM Subject: I have tried everything, can anyone point me to some help? > > > I am using Redhat Linux 6.2 > > I have several virtual hosts running under Apache. > > I want to set up Tomcat to act as the jsp/servlet engine > > I have everything set up just as the documentation and everyone else tells > me > > I am using mod_jk to connect to Tomcat > > Nothing works, is there some type of support I can pay for or something that > anyone knows of??? > > > Any help would REALLY be appreciated!!! > >
I have tried everything, can anyone point me to some help?
I am using Redhat Linux 6.2 I have several virtual hosts running under Apache. I want to set up Tomcat to act as the jsp/servlet engine I have everything set up just as the documentation and everyone else tells me I am using mod_jk to connect to Tomcat Nothing works, is there some type of support I can pay for or something that anyone knows of??? Any help would REALLY be appreciated!!!
Re: apach, tomcat, linux, java combo
> > does anyone have any recommendations for the best combination of apache, > tomcat, java to install on a linux box? > thanks > But what do you mean on "best combination"??? Just take the latest versions of Java and Apache and stable version of Tomcat and it will work :))) Sincerely, Felix.
apach, tomcat, linux, java combo
does anyone have any recommendations for the best combination of apache, tomcat, java to install on a linux box? thanks
Re: Tomcat Sessions
Hi, I'll wager that you've cached your session object between requests and the HttpSessionFacade object has been 'recycled'. I got horribly burned by this in some code I wrote - I was caching the session object in the ServletContext (naughty) and, if the session object was non-null, I tried to fetch a value from the session. The problem was that the vital link between the HttpSessionFacade object and the 'real' session object had been broken. The facade object couldn't 'delegate' the getValue() call to the real session object. Costin has developed some fixes for this in the 3.3 code line and the same behavior isn't present in tomcat 4.x. However, tomcat 3.2 does suffer from this problem. I put together a hack for 3.2.x to get around this problem - in the org.apache.tomcat.facade.HttpSessionFacade.java I replaced the original getSession() method with the following method. As you can see, all I did was to return the 'real' HttpSession instead of the session facade. Costin's assistance in achieving this solution was invaluable. /** begin code fragment ***/ public HttpSession getSession(boolean create) { HttpSession realSession = request.getSession( create ); // test to see if we're using this 'hack' or original behaviour... String useSessionFacade = System.getProperty("tomcat.useSessionFacade"); if ( (useSessionFacade == null) || (useSessionFacade.compareToIgnoreCase("false")==0) ) { // // use default behavior (return 'real' session object) // return realSession; } else { /* * return to original tomcat 3.2.1 behaviour - use a sessionFacade */ if( realSession == null ) { if( sessionFacade!= null) sessionFacade.recycle(); return null; } if(sessionFacade==null) sessionFacade=new HttpSessionFacade(); sessionFacade.setRealSession( realSession ); return sessionFacade; } } /*** end code fragment ***/ Alternative: For those loathe to build a different version of tomcat 3.2.x, that the following coding approach helped avoid this problem at least for my situation, (essentially I got rid of the caching). Sorry. but it's yet another awful counter example [must rank up there with those "Shape" examples from the GoF pattern book ;-) ] This one sticks a CountMe object into the session object. The call to session.isNew() determines whether the session object is a brand new session object, or whether I've just picked up the already existing one. Note, programmatically this does the same as caching the session object, it's just a little bit different. It won't do for all cases but, in order to workaround this problem it worked fine for me ;-) public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { response.setContentType(CONTENT_TYPE); PrintWriter out = response.getWriter(); out.println(""); out.println("SessionTest"); out.println(""); HttpSession session = request.getSession(true); if ( session.isNew() ) { out.println("Created brand new session for this request"); } CountMe ctr = (CountMe)session.getAttribute("Counter"); if ( ctr == null ) { out.println("no counter associated with session - creating new one"); ctr = new CountMe(); ctr.increment(); session.setAttribute("Counter",ctr); } else { ctr.increment(); session.setAttribute("Counter",ctr); } out.println("Current value of (Session)counter = " + ctr.getCounter()); out.println(""); } Noone Anil Kumar wrote: Here is the trace: java.lang.NullPointerException at org.apache.tomcat.facade.HttpSessionFacade.getValue(Compiled Code) at org.apache.tomcat.facade.HttpSessionFacade.getValue(Compiled Code) at SessionTrack.run(Compiled Code) at java.lang.Thread.run(Compiled Code) In SessionTrack class i am trying to retrive the values(mode,lastAcessTime ,IdleTime etc) which are stored in the HttpSession Object. Noone Anil Kumar wrote: Yes, i was using HttpServletRequest.getSession() function call inside getSession( req ) function, It's working fine with Servlet runner but not with tomcat as i said ... William Kaufman wrote: Is there any difference in : Jsdk2.0 HttpSession Object & the above one org.apache.tomcat.facade.HttpSessionFacade IS an HttpSession. So whenever we try to access the current session object, it seems that we get NULL object in Tomcat. I don't know what getSession(HttpServletRequest) is--it doesn't seem to be in the JSDK 2.0. You should call HttpServletRequest.getSession() -- if you still have trouble, the problem is somewhere else. You should check where that stack trace is coming from. -- Bill K. -- http://www.borland.com
Tomcat on Solaris
Hi All -- I'm trying to install Tomcat on Solaris 8 (sparc) and am running into problems. I'm running Tomcat 3.2.1, with java 1.2.2: java version "1.2.2" Solaris VM (build Solaris_JDK_1.2.2_06, native threads, sunwjit) I have tomcat installed and running happily (more or less) on an identical (or so I thought!) machine. First I tried installing from a newly downloaded .tar.gz and got the following exception: Exception in thread "main" java.lang.ExceptionInInitializerError: java.util.Mi ssingResourceException: Can't find resource for base name org.apache.tomcat.reso urces.LocalStrings, locale en at java.lang.Throwable.fillInStackTrace(Native Method) at java.lang.Throwable.(Throwable.java:94) at java.lang.Exception.(Exception.java:42) at java.lang.RuntimeException.(RuntimeException.java:47) at java.util.MissingResourceException.(MissingResourceException.java:54) at java.util.ResourceBundle.getBundle(Compiled Code) at java.util.ResourceBundle.getBundle(ResourceBundle.java:339) at org.apache.tomcat.util.StringManager.(StringManager.java:115) at org.apache.tomcat.util.StringManager.getManager(StringManager.java:260) at Given that, tried tarring up my working tomcat from the other solaris box and moving it over, and got the same exception. All of my environment settings between the two Solaris machines *should* be identical. In fact, the machine that does work was, two weeks ago, an exact copy of the one that is failing... Has anyone run into something similar before? If so, I'd be thrilled to hear a fix. Thanks, Anne [EMAIL PROTECTED]
test
test
RE: simple question for servlet-configuration of tomcat
In Tomcat 3.2.2 (I know that's the version I'm running - I think its the version of the source that I checked) the preference for servlet/webApp is hardwired into the code that generates the automatic config files. It takes no notice of anything in the server.xml file (which I think is at least a little unfriendly) To have the behaviour you requested you'll have to edit those (or actually the files you derived from those when you first set up Tomcat) In the case sited for PWS under Win98 it looks like you would have to modify the file derived from %TOMCAT_HOME%\conf\uriworkermap.properties-auto HTH BTW In my example below it looks like Tomcat is serving my static content. :-( > -Original Message- > From: Brett Knights [mailto:[EMAIL PROTECTED]] > Sent: Friday, April 06, 2001 10:16 AM > To: '[EMAIL PROTECTED]' > Subject: RE: simple question for servlet-configuration of tomcat > > > > What I have to do (in the configuration files) when I want > to start my > > servlets with the URL: > > > > http://localhost/servlet/TestServlet > > > > and not with a WEPAPP-Directory like > > http://localhost/example/servlet/TestServlet > > > > Which settings I have to do in the configuration-files and in which > > directory I have to put my Servlets ? > > > > >You just have to declare a context like this: > > > > reloadable="false" > > > > > > > I don't think this is necessarily correct in all circumstances. > > Try as I might I can't get any of the automatically generated > files to reflect that I want to access my servlets at > /webapp/servletalias > rather than at /webapp/servlet/servletalias > > I did succeed in making this work with tomcat and apache by > editing my tomcat.conf file as follows: > > Alias /webApp "C:/ApacheGroup/Tomcat/webapps/webApp " > > Options Indexes FollowSymLinks > > ApJServMount /webApp /webApp >
Re: Problem with mod_jk build
Hi Brandon, First of all, did you download the *source* distribution for Jakarta? In order to compile your own mod_jk.so, you need the source distribution -- jakarta-tomcat-3.2.1-src.tar.gz. When you have the source untarred, cd into the source directory and then to: src/native/apache1.3/ In there you will find Makefiles for different systems. Rename the correct one for your system from Makefile.system to just Makefile. Then run the command 'make' in that directory. If everything is ok, mod-jk.so will be made for you in that directory. Copy it to your apache/libexec and update your httpd.conf (or include mod_jk.conf into your httpd.conf...) It's pretty easy and it worked for me the first time. Thanks, --jeff - Original Message - From: "Brandon Cruz" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, April 06, 2001 5:11 PM Subject: RE: Problem with mod_jk build > > I really need some help quick!!! When it is telling me to use this command > to build mod_jk... > > apxs -o > mod_jk.so -I../jk -I/usr/local/jdk/include -I/usr/local/jdk/include/linux -c > *.c ../jk/*.c > > Does that mean that I need to substitute something in for the *.c? It keeps > telling me that gcc: *.c no such file or directory > > If anyone knows what is going on, please help, I am very frustrated with > this, have been working on it for 2 days. > > Thank you! > > Brandon Cruz > > -Original Message- > From: Brandon Cruz [mailto:[EMAIL PROTECTED]] > Sent: Friday, April 06, 2001 4:39 PM > To: [EMAIL PROTECTED] > Subject: Problem with mod_jk build > > > > > > Quick question... > If I have a binary version of mod_jk.so, do I have to build it? It said it > is already built for Linux, but I can't get apache to start when I put that > into apache's libexec directory and include the mod_jk.conf-auto. What am I > doing wrong? I have tried to build mod_jk, but get all kinds of errors > telling me that files do not exist. > > Brandon Cruz > > >
Re: Problem with mod_jk build
Do you have these lines, either in mod_jk.conf or httpd.conf LoadModule jk_module libexec/mod_jk.so AddModule mod_jk.c You shouldn't be able to start Apache without them. You should get unknown directive errors. Make sure those are in there somewhere (I recommend putting them in httpd.conf along with all the other module loads). Also I recommend copying mod_jk.conf-auto to mod_jk.conf, and including that file from httpd.conf. What kind of errors are you getting on Apache startup? -Scott -- Scott Tatum | [EMAIL PROTECTED] Senior Applications Developer, Special Projects WorldCom | http://www.wcom.com/ Brandon Cruz wrote: > Quick question... > If I have a binary version of mod_jk.so, do I have to build it? It said it > is already built for Linux, but I can't get apache to start when I put that > into apache's libexec directory and include the mod_jk.conf-auto. What am I > doing wrong? I have tried to build mod_jk, but get all kinds of errors > telling me that files do not exist. > > Brandon Cruz
RE: Problem with mod_jk build
I really need some help quick!!! When it is telling me to use this command to build mod_jk... apxs -o mod_jk.so -I../jk -I/usr/local/jdk/include -I/usr/local/jdk/include/linux -c *.c ../jk/*.c Does that mean that I need to substitute something in for the *.c? It keeps telling me that gcc: *.c no such file or directory If anyone knows what is going on, please help, I am very frustrated with this, have been working on it for 2 days. Thank you! Brandon Cruz -Original Message- From: Brandon Cruz [mailto:[EMAIL PROTECTED]] Sent: Friday, April 06, 2001 4:39 PM To: [EMAIL PROTECTED] Subject: Problem with mod_jk build Quick question... If I have a binary version of mod_jk.so, do I have to build it? It said it is already built for Linux, but I can't get apache to start when I put that into apache's libexec directory and include the mod_jk.conf-auto. What am I doing wrong? I have tried to build mod_jk, but get all kinds of errors telling me that files do not exist. Brandon Cruz
[Accidental Crashes] Bus Error
Hi All, I am not subscribed to the list, so please include me ([EMAIL PROTECTED]) in your reply. Accidentally, the Tomcat server 3.2.1 crashes with the following error: - Bus Error si_signo [10]: Bus Error si_errno [0]: Error 0 si_code [1]: BUS_ADRALN [addr: 0x9] stackpointer=FA7AFF08 "SeedGenerator Thread" (TID:0x5f9e34, sys_thread_t:0x5f9db8, state:CW, thread_t: t@40, threadID:0xfa301dc8, stack_bottom:0xfa302000, stack_size:0x2) prio=1 [1] java.lang.Object.wait(Object.java:424) [2] sun.security.provider.SeedGenerator.run(SeedGenerator.java:107) [3] java.lang.Thread.run(Thread.java:484) --- "Thread-24" (TID:0x12c104, sys_thread_t:0x12c088, state:MW, thread_t: t@1, threa dID:0x24ac8, stack_bottom:0xffbf, stack_size:0x80) prio=5 ... -- Can anybody help? Thanks a lot. -- Mousheng Xu The information contained in this email is intended for the personal and confidential use of the addressee only. It may also be privileged information. If you are not the intended recipient then you are hereby notified that you have received this document in error and that any review, distribution or copying of this document is strictly prohibited. If you have received this communication in error, please notify Celltech Group immediately on: +44 (0)1753 534655, or email '[EMAIL PROTECTED]' Celltech Group plc 216 Bath Road, Slough, SL1 4EN, Berkshire, UK Registered Office as above. Registered in England No. 2159282
Re: J2EE?
Bo, How is your day going? I just want to say Hi~ :-) Pae -Original Message- From: Bo Xu <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] <[EMAIL PROTECTED]> Date: Friday, April 06, 2001 2:41 PM Subject: Re: J2EE? >Mark Arroyo wrote: > >> Hi, >> >> I am new to Tomcat. I want to develop J2EE applications. Does tomcat support >> J2EE? >> If so how do I configure it to use J2EE? Thanks in advance! >> >> Mark > >Hi :-) I remember: > - J2EE RI 1.3beta uses TC4.0 as "built-in" Servlet container > - jboss can auto-start and work with TC(3/4?) > - I guess you also can use TC as a "independent" Servlet container > and use JNDI(default is in TCP 1050?) to work with your EJB > container. > > >Bo >Apr.06, 2001 > > > > > >
Re: J2EE?
Mark, Tomcat, a.k.a., TC, is a Java/Servlet and Java Server Pages(JSP) container. And those two technologies are just part of the J2EE. Go to Sun site to see what J2EE cover in terms of techonologies. Pae >Hi, > > >I am new to Tomcat. I want to develop J2EE applications. Does tomcat support >J2EE? >If so how do I configure it to use J2EE? Thanks in advance! > >Mark >
Re: J2EE?
Mark Arroyo wrote: > Hi, > > I am new to Tomcat. I want to develop J2EE applications. Does tomcat support > J2EE? > If so how do I configure it to use J2EE? Thanks in advance! > > Mark Hi :-) I remember: - J2EE RI 1.3beta uses TC4.0 as "built-in" Servlet container - jboss can auto-start and work with TC(3/4?) - I guess you also can use TC as a "independent" Servlet container and use JNDI(default is in TCP 1050?) to work with your EJB container. Bo Apr.06, 2001
Problem with mod_jk build
Quick question... If I have a binary version of mod_jk.so, do I have to build it? It said it is already built for Linux, but I can't get apache to start when I put that into apache's libexec directory and include the mod_jk.conf-auto. What am I doing wrong? I have tried to build mod_jk, but get all kinds of errors telling me that files do not exist. Brandon Cruz
RE: prob with shutdown script
Quick question... If I have a binary version of mod_jk.so, do I have to build it? It said it is already built for Linux, but I can't get apache to start when I put that into apache's libexec directory and include the mod_jk.conf-auto. What am I doing wrong? I have tried to build mod_jk, but get all kinds of errors telling me that files do not exist. Brandon Cruz
J2EE?
Hi, I am new to Tomcat. I want to develop J2EE applications. Does tomcat support J2EE? If so how do I configure it to use J2EE? Thanks in advance! Mark
RE: Tomcat.policy
> Does anyone know how to modify the tomcat.policy file located > in the conf directory of tomcat? Use Emacs. ("But, seriously, folks,...") It's a standard Java security policy file. The docs are at http://java.sun.com/j2se/1.3/docs/guide/security/PolicyFiles.html -- Bill K.
Please Remove me
Please remove me from the tomcat mailing list. Thanks Oliver
Re: Tomcat articles on the O'Reilly Network
thanks for the tip... - Original Message - From: "Joel Parramore" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, April 06, 2001 8:18 AM Subject: Tomcat articles on the O'Reilly Network > > FYI: there are some interesting articles on the O'Reilly Network about > installing and configuring Tomcat as well as dealing with web applications > which look to be good reads > > Using Tomcat - http://www.oreillynet.com/pub/ct/33 > > which comprises two articles > > Java Web Applications - > http://www.oreillynet.com/pub/a/onjava/2001/03/15/tomcat.html > Installing and Configuring Tomcat - > http://www.oreillynet.com/pub/a/onjava/2001/03/29/tomcat.html > > > Regards, > Joel Parramore >
prob with shutdown script
I was trying to get tomcat going and I too am having trouble with the stop script. I looked in your archives, but see nothing on how to fix it. Well, except for one on ajp12 in front of connection name which is not helping. Can you help me? What is missing or wrong? Below is there sequence of errors: thanks! == Stop tomcat java.net.ConnectException: Connection refused at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.socketConnect(Compiled Code) at java.net.PlainSocketImpl.doConnect(Compiled Code) at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:125) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:112) at java.net.Socket.(Socket.java:269) at java.net.Socket.(Socket.java:98) at org.apache.tomcat.startup.Tomcat.stopTomcat(Compiled Code) at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:130) at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:163) = -- Deidrad begin:vcard n:Powell;Deidra tel;pager:800/636-4255 tel;fax:919/253-6336 tel;work:919/253-6870 x-mozilla-html:FALSE url:www.interpath.net org:Engineering;Database version:2.1 email;internet:[EMAIL PROTECTED] title:Principal D.B.A. adr;quoted-printable:;;5150 McCrimmon Parkway=0D=0ASuite 419;Morrisville;N.C.;27560;USA fn:Deidra Powell end:vcard
Tomcat.policy
Does anyone know how to modify the tomcat.policy file located in the conf directory of tomcat? Jessica
Tomcat processes.
When I start Tomcat I see the following- = [vikas@wow bin]$ ps -aefl --cols=300 | grep java 000 S vikas 858 1 4 60 0- 35712 rt_sig 13:47 pts/0 00:00:01 /net/java/jdk1.3/bin/i386/native_threads/java -Dtomcat.home=./.. org.apache.tomcat.startup.Tomcat 040 S vikas 903 858 0 60 0- 35712 do_pol 13:47 pts/0 00:00:00 /net/java/jdk1.3/bin/i386/native_threads/java -Dtomcat.home=./.. org.apache.tomcat.startup.Tomcat 040 S vikas 904 903 0 60 0- 35712 nanosl 13:47 pts/0 00:00:00 /net/java/jdk1.3/bin/i386/native_threads/java -Dtomcat.home=./.. org.apache.tomcat.startup.Tomcat 040 S vikas 905 903 0 60 0- 35712 nanosl 13:47 pts/0 00:00:00 /net/java/jdk1.3/bin/i386/native_threads/java -Dtomcat.home=./.. org.apache.tomcat.startup.Tomcat ... ... ... 040 S vikas 948 903 0 60 0- 35712 nanosl 13:47 pts/0 00:00:00 /net/java/jdk1.3/bin/i386/native_threads/java -Dtomcat.home=./.. org.apache.tomcat.startup.Tomcat 040 S vikas 949 903 0 60 0- 35712 nanosl 13:47 pts/0 00:00:00 /net/java/jdk1.3/bin/i386/native_threads/java -Dtomcat.home=./.. org.apache.tomcat.startup.Tomcat == It looks like that PID 858 creates a process (PID-903) which in turn creates 46 Tomcat processes (PIDS: 904-949). Where is it configured? Is there any way I can change this? So that I can start Tomcat with the no. of processes I want, say 25, 100.. whatever.. Any help in this regard is appreciated. Thanks, Vikas.
Re: Apache + Tomcat configuration
>Did you put in another context entry in the server.xml file >similar to this: > >docBase="webapps/examples" >crossContext="false" >debug="0" >reloadable="true" > > > >(exchange "examples" with your own directory "mytest") > >-Original Message- >From: Zhengan Cai [mailto:[EMAIL PROTECTED]] >Sent: 06 April 2001 15:00 >To: Apache/Tomcat >Subject: Apache + Tomcat configuration > > >Hi, everyone: > >I am trying to setup Apache + Tomcat to run JSP and Servlets on Win. 2000. I >am using Apache 1.3.19, and Tomcat 3.2.1. > >I created my own directory in >%TOMCAT_HOME%/webapps/mytest, copied the structure from >%TOMCAT_HOME%/webapps/examples such as WEB-INF, META-INF I put my >servlets .class files in the ../mytest/WEB-INF/classes/aaa.class. > >I did some configurations in Tomcat: Server.xml, Tomcat-Apache.conf, >Tomcat.conf; and in Apache: httpd.conf > >Now I can use Apache + Tomcat to run my JSP files, BUT I can ONLY run the >system provided sample Servlets files. I CAN'T run my own Servelts files no >matter where I put the .class files. Did you restart the TC? --- "Just want to make sure!!!" :-) Pae > >Could you give me a help for the configuration as my assignment is almost >due ? > >Thank you very much for your time and concern. > >E-mail: [EMAIL PROTECTED] > >Zhengan Cai
Re: Which workers am I using?
In order to get Apache to use ajp13, you have to use your own config files. The auto files always use ajp12. You'll need to change workers.properties so that your workers have a type of ajp13. I don't think it matters what your workers are called, though most people have the protocol as part of the worker name. It's possible that your worker could have a name with ajp12 in it, even though its type is ajp13 and it might make deceiving log entries that way. -Scott -- Scott Tatum | [EMAIL PROTECTED] Senior Applications Developer, Special Projects WorldCom | http://www.wcom.com/ Peter Smith wrote: > I can see the ajp12 and 13 worker threads being > instantiated (via log messages in the console) when I > crank up Tomcat, but how do I know if the 13's are > being used at all? All my auto-generated files > continue to point to 'ajp12' workers, even after I've > changed almost every reference I can find in any > properties file I can find. Does it even matter > what's in these 'auto' files? I'm not even sure it > matters which worker(s) I'm using, but the docs said > it did. > > I've pointed Apache/Tomcat to look at a customized > version of the 'mod_jk-auto' file with most/all > 'ajp12' references changed to 'ajp13'. Is this even > necessary? What else might I need to do? > > Thank you! > > --Peter-- > [EMAIL PROTECTED] > > __ > Do You Yahoo!? > Get email at your own domain with Yahoo! Mail. > http://personal.mail.yahoo.com/
Re: Tomcat Sessions
Here is the trace: java.lang.NullPointerException at org.apache.tomcat.facade.HttpSessionFacade.getValue(Compiled Code) at org.apache.tomcat.facade.HttpSessionFacade.getValue(Compiled Code) at SessionTrack.run(Compiled Code) at java.lang.Thread.run(Compiled Code) In SessionTrack class i am trying to retrive the values(mode,lastAcessTime ,IdleTime etc) which are stored in the HttpSession Object. Noone Anil Kumar wrote: Yes, i was using HttpServletRequest.getSession() function call inside getSession( req ) function, It's working fine with Servlet runner but not with tomcat as i said ... William Kaufman wrote: Is there any difference in : Jsdk2.0 HttpSession Object & the above one org.apache.tomcat.facade.HttpSessionFacade IS an HttpSession. So whenever we try to access the current session object, it seems that we get NULL object in Tomcat. I don't know what getSession(HttpServletRequest) is--it doesn't seem to be in the JSDK 2.0. You should call HttpServletRequest.getSession() -- if you still have trouble, the problem is somewhere else. You should check where that stack trace is coming from. -- Bill K.
Re: Tomcat Sessions
Yes, i was using HttpServletRequest.getSession() function call inside getSession( req ) function, It's working fine with Servlet runner but not with tomcat as i said ... William Kaufman wrote: Is there any difference in : Jsdk2.0 HttpSession Object & the above one org.apache.tomcat.facade.HttpSessionFacade IS an HttpSession. So whenever we try to access the current session object, it seems that we get NULL object in Tomcat. I don't know what getSession(HttpServletRequest) is--it doesn't seem to be in the JSDK 2.0. You should call HttpServletRequest.getSession() -- if you still have trouble, the problem is somewhere else. You should check where that stack trace is coming from. -- Bill K.
Which workers am I using?
I can see the ajp12 and 13 worker threads being instantiated (via log messages in the console) when I crank up Tomcat, but how do I know if the 13's are being used at all? All my auto-generated files continue to point to 'ajp12' workers, even after I've changed almost every reference I can find in any properties file I can find. Does it even matter what's in these 'auto' files? I'm not even sure it matters which worker(s) I'm using, but the docs said it did. I've pointed Apache/Tomcat to look at a customized version of the 'mod_jk-auto' file with most/all 'ajp12' references changed to 'ajp13'. Is this even necessary? What else might I need to do? Thank you! --Peter-- [EMAIL PROTECTED] __ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/
Re: Servlet auto-reloading under ROOT context (was RE: simple question for servlet-configuration of tomcat)
I have a *similar* problem. None of my servlets are being reloaded using Tomcat 4, b3. This includes the servlets in /examples context. The only way I've been able to get servlets to reload (aside from re-starting Tomcat) is to run /manager/reload?path=/. Apparently servlet reloading is completely broke in T4 b2/3. - Original Message - From: "Joel Parramore" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, April 06, 2001 2:28 PM Subject: Servlet auto-reloading under ROOT context (was RE: simple question for servlet-configuration of tomcat) > > On a slightly related note: are servlets under the ROOT context > automatically reloaded? > > The docs in server.xml would appear to indicate that reloadable="true" is > the default, but there's no entry for the ROOT context in my server.xml > file, and it appears to be inconsistent on our server with regard to > reloading a servlet which has (definitely) changed in > webapps/ROOT/WEB-INF/classes (i.e., Tomcat apparently reloaded the servlet > each time the class was changed, then suddenly stopped doing so, with no > configuration changes made). > > Would placing an explicit CONTEXT entry for the ROOT in the server.xml file, > i.e., > > path="/" > docbase="webapps/ROOT" > crossContext="false" > debug="0" > reloadable="true"> > > > resolve this issue? Has anyone else encountered a similar problem? > > I can supply more configuration upon request, but at least I'll note that > the server configuration is with Apache 1.3.14 and Tomcat 3.2.1 running > Redhat Linux 7.0 on an Intel box, JDK 1.2.2. Tomcat, aside from slight > changes for mod_jk operation with Apache, is unchanged from the default > configuration. > > Regards, > Joel Parramore > > > > -Original Message- > > From: Mandar Joshi [mailto:[EMAIL PROTECTED]] > > Sent: Friday, April 06, 2001 2:51 PM > > To: [EMAIL PROTECTED] > > Subject: Re: simple question for servlet-configuration of tomcat > > > > > > > > You simply need to put your stuff uner ROOT context. > > > > > > - Original Message - > > From: "TOPO graphics GmbH" <[EMAIL PROTECTED]> > > To: <[EMAIL PROTECTED]> > > Sent: Friday, April 06, 2001 7:19 AM > > Subject: simple question for servlet-configuration of tomcat > > > > > > > Hello, > > > > > > since several weeks I am testing tomcat as a Servlet Engine with great > > > success. I use Win98 SE2 with PWS. > > > Now I have a simple problem (I think): > > > > > > What I have to do (in the configuration files) when I want to start my > > > servlets with the URL: > > > > > > http://localhost/servlet/TestServlet > > > > > > and not with a WEPAPP-Directory like > > > http://localhost/example/servlet/TestServlet > > > > > > Which settings I have to do in the configuration-files and in which > > > directory I have to put my Servlets ? > > > > > > Thanks a lot for your answer > > > > > > With best regards > > > > > > M. Thorand > > > > > > TOPO graphics > > > Geographische Informationssysteme GmbH > > > > > > EMail: [EMAIL PROTECTED] > > > >
RE: Tomcat Sessions
Is there any difference in : Jsdk2.0 HttpSession Object & the above one org.apache.tomcat.facade.HttpSessionFacade IS an HttpSession. So whenever we try to access the current session object, it seems that we get NULL object in Tomcat. I don't know what getSession(HttpServletRequest) is--it doesn't seem to be in the JSDK 2.0. You should call HttpServletRequest.getSession() -- if you still have trouble, the problem is somewhere else. You should check where that stack trace is coming from. -- Bill K.
Re: Dates in Java
Milt! Stop it, you're posting an out topic message! We're not discussing here about policies, we're talkig about Tomcat! :) regards. > On Fri, 6 Apr 2001, Jeff Kilbride wrote: > > > There's also something to be said for using a little tact. "You > > might get more help posting your question on a general Java forum" > > -- and then pointing the way -- is better than using three question > > marks and implying that the other person's question is "so > > simple". Responses like this scare new programmers off the lists. > [ ... ] > > True, but I don't see anything so rude about what the person wrote, > despite the use of multiple question marks and the "so simple" -- I've > seen a lot worse (hell, I've responded a lot worse myself :-). And I > could see how it can be a little annoying after a whole bunch of such > posts. Also remember that it's quite possible that English is not his > native language. > > Anyway, this list has seemed reasonable on-topic (as well as useful > and friendly) since I joined, so this probably isn't something to be > concerned about (on either side). > > > > - Original Message - > > From: "Milt Epstein" <[EMAIL PROTECTED]> > > To: <[EMAIL PROTECTED]> > > Sent: Friday, April 06, 2001 7:05 AM > > Subject: Re: Dates in Java > > > > > > > On Fri, 6 Apr 2001, Martin Mauri wrote: > > > > > > > Hey...don't be so rude, let the boys work their problems out... > > > > > > There is something to be said for keeping a list on-topic, and people > > > asking questions on appropriate forums. > > > > > > > > > > > Are we in the tomcat-user forum ??? > > > > > I don't see the relationship between a so simple constructor problem > > > > > (which Javadoc solve quiet easily ...) and Tomcat ... > > > > > > > > > > > > > > > Alistair Hopkins a écrit : > > > > > > > > > > > > try "select myDate - 7 from myTable;" in your SQL statement for a > > quick > > > > fix > > > > > > :-) > > > > > > (works on postgres, don't know about msql) > > > > > > > > > > > > -Original Message- > > > > > > From: Michael Wentzel [mailto:[EMAIL PROTECTED]] > > > > > > Sent: Friday, April 06, 2001 12:58 PM > > > > > > To: '[EMAIL PROTECTED]' > > > > > > Subject: RE: Dates in Java > > > > > > > > > > > > I have a simple question about the Date object (or similar object) > > > > > > > > > > > > I have a mySQL table with a DATETIME cell. I want to get the date > > from > > > > this > > > > > > cell > > > > > > > > > > > > (formatted like so: e.g. 2001-03-23 13:04:59) > > > > > > > > > > > > and retrieve the date that is exactly 7 days earlier than the > > retrieved > > > > > > date. > > > > > > > > > > > > What is the easiest way to do this? I noticed a lot of method > > > > deprecations > > > > > > in the specs and I am having trouble using the Date object. > > > > > > - > > > > > > For example, > > > > > > DateTest.java:20: cannot resolve symbol > > > > > > symbol : constructor Date () > > > > > > location: class java.sql.Date > > > > > > Date d = new Date(); > > > > > > ^ > > > > > > 1 error > > > > > > > > > > > > - > > > > > > > > > > > > > > > > > > -- > > > > -- > > > > > > - > > > > > > First, in regards to displaying your date use the > > java.text.DateFormat > > > > > > class(note DateFormat > > > > > > is abstract so of course you'll want to use one of the > > 'implementation' > > > > > > classes). Since > > > > > > java.sql.Date extends java.util.Date you can of course use the > > > > > > java.text.DateFormat classes > > > > > > to format a java.sql.Date. > > > > > > > > > > > > Secondly, the problem you are having using java.sql.Date could be if > > you > > > > are > > > > > > importing java.util.*. This will import java.util.Date in addition > > to > > > > > > java.sql.Date. > > > > > > Therefore, when you code Date d = new Date() the compiler doesn't > > know > > > > which > > > > > > classdef > > > > > > to use. One solution to to not import anything using splay(*). > > This is > > > > the > > > > > > way we > > > > > > do it. You import block may get a little large but it also makes it > > > > easier > > > > > > for other > > > > > > developers to figure out where to look for source. Another is to > > code > > > > it as > > > > > > java.sql.Date d = new java.sql.Date(); > > > > > > > > > > > > --- > > > > > > Michael Wentzel > > > > > > Software Developer > > > > > > Software As We Think - http://www.aswethink.com > > > > > > > > > > -- > > > > > Cordialement, > > > > > > > > > > > > > > > Stéphane BAUDET > > > > > > > > > > _ > > > > > GL Trade > > > > > 48, rue Notre Dame des Victoires - 75002 Paris > > > > > Tel : 01 53 40 43 12 (interne 1312) > > > > > Fax : 01 53 40 01 40 > > > > > Email : [EMAIL PROTECTED] > > > > > _ > > > > > > > > > > Mil
Re: Superclass for JSPs?
I honestly don't know if it's possible to subclass your JSP pages, but I may have a hack workaround. First, know that you can declare a 'jspinit()' method that is just like the 'init()' method in your servlet. Search the following doc for details: http://developer.java.sun.com/developer/onlineTraining/JSPIntro/contents.html Also, you might use the 'include' directive to include a jsp file in all of your other jsp pages. For instance, you may write a 'init_and_utils.jsp' file and use the jsp include directive to attach it to each of your other jsp's. --Peter-- --- "Felix A. Milovanov" <[EMAIL PROTECTED]> wrote: > Hello all, > > i just started using Java for server-side WEB > development ( I've 4 years of > this development in C and Perl ). When I read about > JSPs, I found than JSP is > compiled into servlet on a first call and than runs > like a servlet. > > The question is : is it possible to have a > superclass for my JSPs? I need to > make some activity before each JSP is called. I made > a superclass for my > servlets, so I cat write my servlets inherited from > baseServlet and do not worry > about pre-request activity. But how can I do it for > JSP??? > > Sincerely, > > Felix. __ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/
Re: Dates in Java
On Fri, 6 Apr 2001, Jeff Kilbride wrote: > There's also something to be said for using a little tact. "You > might get more help posting your question on a general Java forum" > -- and then pointing the way -- is better than using three question > marks and implying that the other person's question is "so > simple". Responses like this scare new programmers off the lists. [ ... ] True, but I don't see anything so rude about what the person wrote, despite the use of multiple question marks and the "so simple" -- I've seen a lot worse (hell, I've responded a lot worse myself :-). And I could see how it can be a little annoying after a whole bunch of such posts. Also remember that it's quite possible that English is not his native language. Anyway, this list has seemed reasonable on-topic (as well as useful and friendly) since I joined, so this probably isn't something to be concerned about (on either side). > - Original Message - > From: "Milt Epstein" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Friday, April 06, 2001 7:05 AM > Subject: Re: Dates in Java > > > > On Fri, 6 Apr 2001, Martin Mauri wrote: > > > > > Hey...don't be so rude, let the boys work their problems out... > > > > There is something to be said for keeping a list on-topic, and people > > asking questions on appropriate forums. > > > > > > > > Are we in the tomcat-user forum ??? > > > > I don't see the relationship between a so simple constructor problem > > > > (which Javadoc solve quiet easily ...) and Tomcat ... > > > > > > > > > > > > Alistair Hopkins a écrit : > > > > > > > > > > try "select myDate - 7 from myTable;" in your SQL statement for a > quick > > > fix > > > > > :-) > > > > > (works on postgres, don't know about msql) > > > > > > > > > > -Original Message- > > > > > From: Michael Wentzel [mailto:[EMAIL PROTECTED]] > > > > > Sent: Friday, April 06, 2001 12:58 PM > > > > > To: '[EMAIL PROTECTED]' > > > > > Subject: RE: Dates in Java > > > > > > > > > > I have a simple question about the Date object (or similar object) > > > > > > > > > > I have a mySQL table with a DATETIME cell. I want to get the date > from > > > this > > > > > cell > > > > > > > > > > (formatted like so: e.g. 2001-03-23 13:04:59) > > > > > > > > > > and retrieve the date that is exactly 7 days earlier than the > retrieved > > > > > date. > > > > > > > > > > What is the easiest way to do this? I noticed a lot of method > > > deprecations > > > > > in the specs and I am having trouble using the Date object. > > > > > - > > > > > For example, > > > > > DateTest.java:20: cannot resolve symbol > > > > > symbol : constructor Date () > > > > > location: class java.sql.Date > > > > > Date d = new Date(); > > > > > ^ > > > > > 1 error > > > > > > > > > > - > > > > > > > > > > > > > > -- > > > -- > > > > > - > > > > > First, in regards to displaying your date use the > java.text.DateFormat > > > > > class(note DateFormat > > > > > is abstract so of course you'll want to use one of the > 'implementation' > > > > > classes). Since > > > > > java.sql.Date extends java.util.Date you can of course use the > > > > > java.text.DateFormat classes > > > > > to format a java.sql.Date. > > > > > > > > > > Secondly, the problem you are having using java.sql.Date could be if > you > > > are > > > > > importing java.util.*. This will import java.util.Date in addition > to > > > > > java.sql.Date. > > > > > Therefore, when you code Date d = new Date() the compiler doesn't > know > > > which > > > > > classdef > > > > > to use. One solution to to not import anything using splay(*). > This is > > > the > > > > > way we > > > > > do it. You import block may get a little large but it also makes it > > > easier > > > > > for other > > > > > developers to figure out where to look for source. Another is to > code > > > it as > > > > > java.sql.Date d = new java.sql.Date(); > > > > > > > > > > --- > > > > > Michael Wentzel > > > > > Software Developer > > > > > Software As We Think - http://www.aswethink.com > > > > > > > > -- > > > > Cordialement, > > > > > > > > > > > > Stéphane BAUDET > > > > > > > > _ > > > > GL Trade > > > > 48, rue Notre Dame des Victoires - 75002 Paris > > > > Tel : 01 53 40 43 12 (interne 1312) > > > > Fax : 01 53 40 01 40 > > > > Email : [EMAIL PROTECTED] > > > > _ > > > > > > > Milt Epstein > > Research Programmer > > Software/Systems Development Group > > Computing and Communications Services Office (CCSO) > > University of Illinois at Urbana-Champaign (UIUC) > > [EMAIL PROTECTED] > > > Milt Epstein Research Programmer Software/Systems Development Group Computing and Communications Services Office (CCSO) University of Illinois at Urbana-Champaign (UIUC) [EMAIL PROTECTED]
Tomcat Sessions
Hi , We are running tomcat 3.2.1 on WinNT with Apache Server 1.3.12, and here is the problem that we are facing with Session: "HttpSession session = getSession(req)" where req is the HttpServletRequest object. is working fine with ServletRunner (provided by Jsdk2.0) but when we start using it with Tomcat, the session object is of type as follows: HTTP Session = org.apache.tomcat.facade.HttpSessionFacade@8f04cf35 Is there any difference in : Jsdk2.0 HttpSession Object & the above one So whenever we try to access the current session object, it seems that we get NULL object in Tomcat. Please help me out in solving this problem... Thanks in advance, Anil
Servlet auto-reloading under ROOT context (was RE: simple question for servlet-configuration of tomcat)
On a slightly related note: are servlets under the ROOT context automatically reloaded? The docs in server.xml would appear to indicate that reloadable="true" is the default, but there's no entry for the ROOT context in my server.xml file, and it appears to be inconsistent on our server with regard to reloading a servlet which has (definitely) changed in webapps/ROOT/WEB-INF/classes (i.e., Tomcat apparently reloaded the servlet each time the class was changed, then suddenly stopped doing so, with no configuration changes made). Would placing an explicit CONTEXT entry for the ROOT in the server.xml file, i.e., resolve this issue? Has anyone else encountered a similar problem? I can supply more configuration upon request, but at least I'll note that the server configuration is with Apache 1.3.14 and Tomcat 3.2.1 running Redhat Linux 7.0 on an Intel box, JDK 1.2.2. Tomcat, aside from slight changes for mod_jk operation with Apache, is unchanged from the default configuration. Regards, Joel Parramore > -Original Message- > From: Mandar Joshi [mailto:[EMAIL PROTECTED]] > Sent: Friday, April 06, 2001 2:51 PM > To: [EMAIL PROTECTED] > Subject: Re: simple question for servlet-configuration of tomcat > > > > You simply need to put your stuff uner ROOT context. > > > - Original Message - > From: "TOPO graphics GmbH" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Friday, April 06, 2001 7:19 AM > Subject: simple question for servlet-configuration of tomcat > > > > Hello, > > > > since several weeks I am testing tomcat as a Servlet Engine with great > > success. I use Win98 SE2 with PWS. > > Now I have a simple problem (I think): > > > > What I have to do (in the configuration files) when I want to start my > > servlets with the URL: > > > > http://localhost/servlet/TestServlet > > > > and not with a WEPAPP-Directory like > > http://localhost/example/servlet/TestServlet > > > > Which settings I have to do in the configuration-files and in which > > directory I have to put my Servlets ? > > > > Thanks a lot for your answer > > > > With best regards > > > > M. Thorand > > > > TOPO graphics > > Geographische Informationssysteme GmbH > > > > EMail: [EMAIL PROTECTED] > >
Re: simple question for servlet-configuration of tomcat
You simply need to put your stuff uner ROOT context. - Original Message - From: "TOPO graphics GmbH" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, April 06, 2001 7:19 AM Subject: simple question for servlet-configuration of tomcat > Hello, > > since several weeks I am testing tomcat as a Servlet Engine with great > success. I use Win98 SE2 with PWS. > Now I have a simple problem (I think): > > What I have to do (in the configuration files) when I want to start my > servlets with the URL: > > http://localhost/servlet/TestServlet > > and not with a WEPAPP-Directory like > http://localhost/example/servlet/TestServlet > > Which settings I have to do in the configuration-files and in which > directory I have to put my Servlets ? > > Thanks a lot for your answer > > With best regards > > M. Thorand > > TOPO graphics > Geographische Informationssysteme GmbH > > EMail: [EMAIL PROTECTED] >
Re: Problems with caching?
Are you using the include file directive to include the files? If you are, then that is the problem. JSP's won't recompile if a file they include is updated, only if the jsp file itself is updated. There are two ways to get around this: 1. Load the jsp file and save it (may have to add a space, remove it, then save or something similar) 2. Use the touch command unix to update the timestamps on all your jsp files. This will cause them all to recompile. (e.g. go to your dir with the jsp's and do a "touch *.jsp") This might be preferable since you are dealing with header includes. Hope this helps. -Scott Melissa Matthews wrote: > > > Does anyone know if there is a problem with regular HTML files being > somehow cached by Tomcat 3.2.1 on Solaris 2.8? I have replaced > > some HTML header pages, but I still see the old ones. I have searched > and can not find those files anywhere. If I go > directly to an shtml file that includes the HTML header files, it > shows the new header, but the JSP pages always show > the old headers. I tried renaming the header to another name and then > the JSP page showed the new header. > > I have deleted all of the pages from the work directory. > > Any suggestions? Thanks in advance. > > Melissa -- Scott Tatum | [EMAIL PROTECTED] Senior Applications Developer, Special Projects WorldCom | http://www.wcom.com/
RE: virtual hosting with tomcat and apache
Does anyone have any experience with several virtual hosts, all running tomcat in one virtual machine? This seems to be the best solution for us to keep within our server's limits. We have many sites and that many JVM's would take all our resources. Any help would be greatly appreciated. What does your tomcat-apache.conf look like, what does your server.xml look like, do you use mod_jserv, and do you just include the tomcat-apache.conf in your httpd.conf file? Thanks! Brandon Cruz -Original Message- From: Jeff Kilbride [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 05, 2001 9:46 PM To: [EMAIL PROTECTED] Subject: Re: virtual hosting with tomcat and apache Hi Brandon, I'm doing a lot of virtual hosting with Apache + Tomcat, but in my case only one of my Vhosts needs Tomcat. So, I'm setting mine up with the "one JVM for all hosts" config. It's actually pretty simple. Use the directive in your server.xml file: In either your httpd.conf or mod_jk.conf, add your Vhost: (can be name-based or ip-based) ServerName your.vhost.domain ServerAdmin your_admin@domain DocumentRoot "/path/to/your/normal/html" JkMount /servlet/* ajp13 JkMount /*.jsp ajp13 Alias /alias_dir "/path/to/your/docBase" allow from all AllowOverride None deny from all AllowOverride None deny from all This simple config works for me. You can add several Vhosts this way, as long as you don't mind running them in the same JVM. Check out the mod_jk Howto. That's where I got most of this info. Thanks, --jeff - Original Message - From: "Scott Tatum" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, April 05, 2001 4:00 PM Subject: Re: virtual hosting with tomcat and apache > Your first message went through. Tomcat can do exactly what you need. It can be > configured to run several vhosts, each as their own application. Normally you > give each vhost its own Tomcat instance, to provide a clean separation of > runtime enviroments between sites. It also gives you the ability to restart one > Tomcat instance without having to bring them all down (at least, with ajp12). I > believe that you can also run them all under one Tomcat instance. I have done > this before with Tomcat standalone, I assume it also works connected to Apache, > but I recommend going the separate VM route if you are running vhosts. > > I recommend the latest version of Apache (currently 1.3.19) and Tomcat 3.2.1. I > think 3.2.2 will be out in the next couple of weeks, it would be a good choice > as well. You should use mod_jk, and not mod_jserv. I recommend getting both the > binary and source versions of 3.2.1. Use the binary version for Tomcat itself, > and use the source version just for compiling mod_jk. Configuring > Apache+Tomcat+mod_jk+vhosts is not a trivial task for sure, and there's not a > concise resource for setting it all up. The documentation that comes with > Tomcat has a lot of information, but the pieces you need are spread across > several documents. Be sure to read the mod_jk howto, as well as the workers > howto. > > As far as configuration goes, don't use the automatically generated config > files - they aren't going to have what you want for vhosts. Just create them > from scratch. With the aforementioned setup, the important config files are > server.xml, workers.properties, uriworkermap.properties, and mod_jk.conf. A few > other files (web.xml, web.dtd, tomcat-users.xml, tomcat.policy) are also > important, just not usually for initial setup. When you find the section in the > documentation that talks about creating a separate server.xml file for each > vhost, you are looking in the right place. In order to do separate VM's that is > the route you need to go. Also, watch out for the dreaded CPU loop, which is > easy to do with virtual hosts. See the 3.2.1 release notes, section 6.11 for > that. I've had some interesting experiences with that issue in the past couple > of days, and I'm going to make a separate post to the group with some insights > I haven't seen posted yet. > > Tomcat is well suited for what you want to do, but I can assure you it's going > to take a couple of hours minimum figuring out how to configure it the way you > want it. So grab your favorite drink and have a seat. If you encounter any > snags along the way (which you will) mail to the group or to me personally, > preferably to the group. I will respond either way. :) (now that I have caught > up on my 1500 message backlog, ugh) Good luck! > > -Scott > > -- > Scott Tatum | [EMAIL PROTECTED] > Senior Applications Developer, Special Projects > WorldCom | http://www.wcom.com/ > > Brandon Cruz wrote: > > > I sent a message a while ago, but don't think it went though. Basically, I > > am using Tomcat as a servlet/jsp engine for a site that uses Apache as t
Tomcat startup problem on NT
Hi, I Installed Tomcat on WindowsNT4.0 .It was working fine and suddenly I got a message as follows .I sthere any body who can help me? Please e-mail it to [EMAIL PROTECTED] Jay ERROR: The requested URL could not be retrieved While trying to retrieve the URL: http://localhost:8080/ The following error was encountered: ERROR 207 -- Cannot access the proxy-cache server through the URL that you entered. This means that: You may not use this proxy to connect to that url. __ Get your own FREE, personal Netscape Webmail account today at http://webmail.netscape.com/
Superclass for JSPs?
Hello all, i just started using Java for server-side WEB development ( I've 4 years of this development in C and Perl ). When I read about JSPs, I found than JSP is compiled into servlet on a first call and than runs like a servlet. The question is : is it possible to have a superclass for my JSPs? I need to make some activity before each JSP is called. I made a superclass for my servlets, so I cat write my servlets inherited from baseServlet and do not worry about pre-request activity. But how can I do it for JSP??? Sincerely, Felix.
Apache+Tomcat+vhosts insights, discussion (long)
I too had the utilization problems associated with Apache and Tomcat 3.2.1. Actually, the problem also manifests itself in Tomcat standalone. After researching the problem and eventually coming up with a solution, I realized a couple of things that I have not seen posted to the list, so I thought I would share them and possibly help some others out. First of all let me explain my setup. Our group does a lot of Intranet applications for different groups and we have recently moved from JRun 3 to using Tomcat 3.2.1 for our servlet container. And I must say, even though the initial setup and administration was tedious, Tomcat is a faster, more stable environment for us. Our development environment is a PC running RH6.2, and our production boxes are usually running some version of Solaris, and in this particular case, Solaris 8. Both setups are using Apache1.3.19+Tomcat 3.2.1 and Java SDK 1.3.0_02. We run separate VM's for each virtual host/application. Our production boxes typically hold several production websites, each with their own virtual host. The name of the production box itself doesn't host a site, just the CNAME's we have registered for that host. For example, the production server may be called pserv, with aliases app1, app2, app3, etc. We don't have (or want) a website called pserv.wcomnet.com (wcomnet.com is our Intranet domain), but we do have the websites app1.wcomnet.com, app2.wcomnet.com, etc. I don't know how representative this is of people using Apache+Tomcat and virtual hosts, but it is a good fit for us, and Tomcat handles it well. The configuration files look something like this: -workers.properties- worker.list=app1-ajp12, app2-ajp12, app3-ajp12 worker.app1-ajp12.port=8000 worker.app1-ajp12.host=localhost worker.app1-ajp12.type=ajp12 worker.app1-ajp12.lbfactor=1 worker.app2-ajp12.port=8001 worker.app2-ajp12.host=localhost worker.app2-ajp12.type=ajp12 worker.app2-ajp12.lbfactor=1 worker.app3-ajp12.port=8001 worker.app3-ajp12.host=localhost worker.app3-ajp12.type=ajp12 worker.app3-ajp12.lbfactor=1 -uriworkermap.properties- /*.jsp=app1-ajp12 /servlet/*=app1-ajp12 /*.jsp=app2-ajp12 /servlet/*=app2-ajp12 /*.jsp=app3-ajp12 /servlet/*=app3-ajp12 -mod_jk.conf- JkWorkersFile /usr/tomcat/conf/workers.properties JkLogFile /usr/apache/logs/mod_jk.log JkLogLevel error NameVirtualHost 1.1.1.1 # ip's changed to protect the innocent ServerName app1.wcomnet.com DocumentRoot /usr/tomcat/vhosts/app1 ErrorLog /usr/tomcat/vhosts/app1/WEB-INF/logs/error_log CustomLog /usr/tomcat/vhosts/app1/WEB-INF/logs/access_log common JkLogFile /usr/tomcat/vhosts/app1/WEB-INF/logs/mod_jk.log JkMount /servlet/* app1-ajp12 JkMount /*.jsp app1-ajp12 AllowOverride None deny from all ServerName app2.wcomnet.com DocumentRoot /usr/tomcat/vhosts/app2 ErrorLog /usr/tomcat/vhosts/app2/WEB-INF/logs/error_log CustomLog /usr/tomcat/vhosts/app2/WEB-INF/logs/access_log common JkLogFile /usr/tomcat/vhosts/app2/WEB-INF/logs/mod_jk.log JkMount /servlet/* app2-ajp12 JkMount /*.jsp app2-ajp12 AllowOverride None deny from all ServerName app3.wcomnet.com DocumentRoot /usr/tomcat/vhosts/app3 ErrorLog /usr/tomcat/vhosts/app3/WEB-INF/logs/error_log CustomLog /usr/tomcat/vhosts/app3/WEB-INF/logs/access_log common JkLogFile /usr/tomcat/vhosts/app3/WEB-INF/logs/mod_jk.log JkMount /servlet/* app3-ajp12 JkMount /*.jsp app3-ajp12 AllowOverride None deny from all -server-app1.xml- # most of this is left out, only the custom bits listed I'll exclude server-app2.xml and server-app3.xml for brevity's sake. They are the same as app1's xml file, but with the different directory names and appropriate ports for the Connectors. I'm not sure if the Host directive is even necessary. In a standalone Tomcat setup it would be, but I think the mod_jk.conf is handles that now. I have them in there just in case. I'm sure some of you are already wondering why I didn't use the webapps directory. There are a couple of reasons for that. We have several different developers, each working on their particular applications. I wanted to have the work directory (the auto-compiled servlets from jsp) for a given application located under the webapp's directory structure. That way developers who are mapping drives via Samba can see/manipulate the generated servlet code along with everything else. I could have done that through the ContextManager directive while keeping it under webapps, but that produces some anomalies: - Tomcat automatically looks in the webapps dir and creates contexts for everything there. I already have my contexts setup th
Tomcat dies on it own ??
I have an application that is running on tomcat. I have observed that if i bring up tomcat and leave it running without accessing the application for sometime , tomcat dies on it's own. The only thing i see in the logs is the following message about 5 or 6 times before it dies: 2001-04-05 04:39:49 - ContextManager: SocketException reading request, ignored - java.net.SocketExce ption: Connection reset by peer at java.net.PlainSocketImpl.socketAvailable(Native Method) at java.net.PlainSocketImpl.available(PlainSocketImpl.java:429) at java.net.SocketInputStream.available(SocketInputStream.java:141) at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC onnectionHand ler.java:214) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498) at java.lang.Thread.run(Thread.java:479) can anybody provide some clues ?? I am running tomcat 3.2.1 on solaris. Thanks in advance Srini
Problems with caching?
Title: Problems with caching? Does anyone know if there is a problem with regular HTML files being somehow cached by Tomcat 3.2.1 on Solaris 2.8? I have replaced some HTML header pages, but I still see the old ones. I have searched and can not find those files anywhere. If I go directly to an shtml file that includes the HTML header files, it shows the new header, but the JSP pages always show the old headers. I tried renaming the header to another name and then the JSP page showed the new header. I have deleted all of the pages from the work directory. Any suggestions? Thanks in advance. Melissa
Re: How to reload library classes?
Yes. Auto-reloading is not recommended for a production server. --jeff - Original Message - From: "Naren Dasu" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Friday, April 06, 2001 10:22 AM Subject: RE: How to reload library classes? > Are there any performance implications when you set the 'reloadable' to > true ? Does tomcat check every time a servlet is invoked ? > > naren > > > At 12:05 PM 4/6/01 +1000, Warren Crossing wrote: > >tomcat only reloads classes that are in WEB-INF/lib/ or WEB-INF/classes > >where the reloadable is set to true in web.xml > >the classes cannot be in the classpath look at classloader.html in the src > >tree > > > >documentation ?? anyone can write some! > > > >-Original Message- > >From: Felix A. Milovanov [mailto:[EMAIL PROTECTED]] > >Sent: Friday, 6 April 2001 11:56 AM > >To: [EMAIL PROTECTED] > >Subject: How to reload library classes? > > > > > > Hello all, > > > > I'm a new user in Tomcat and Java and I've found a problem. I compile my > >library classes to some directory ( /usr/classes ) and there is a structire > >like > > > >/usr/classes/com/my/package1 > >/usr/classes/com/my/package2 > > > > I've added /usr/classes to classpath, and it works - my classes could be > >used by my servlets. BUT! If I recompile any class from that library, Tomcat > >does not reloads them and servlets use the previous version of libraries. > > > > Is there any way to say Tomcat to automatically reload that classes? And > >the very common question - where can I get WHOLE documentation on Tomcat? > >I've just found minimalistic guide... > > > > Sincerely, > > Felix. > > >
Re: ??? Does Tomcat 4 b3 Support Reloading ???
Tony LaPaso wrote: > Hello, > > By reading the documentation, it seems Tomcat 4 b3 should support servlet > reloading but this does not seem to be the case. > > After a fresh install of Tomcat 4 b3 I modified the SnoopServlet and the > change was *not* picked up even though the examples Context has > reloadable="true" specified. > > Has anyone else had this problem? > > Is there a version of Tomcat that *does successfully reload changed > servlets? > > Thanks. Hi :-) from my work, I also can not auto-reload MyServlet with jakarta-tomcat-4.0-b(2/3)(standalone, JDK1.3, winnt40). but with jakarta-tomcat-4.0-b1(standalone, JDK1.3, winnt40), auto-reloading works Well, and please notice that only those MyServlet classes which are in WEB-INF/classes(WEB-INF/lib with jar-style?) can be auto-reloaded. Bo April.06, 2001
Servlet Contexts and sessions
Hey all. This is sortof a JSP/Servlet related question, but it falls within the scope of this forum: Can someone give me a compelling reason why sessions cannot be shared across contexts? I realize this is part of the Servlet 2.2 spec, and not strictly speaking a tomcat issue, but perhaps there is a way to work around this limitation in tomcat? I can't think of a good reason for disallowing session sharing between contexts. Ideas? Thanks in advance, -Andy
RE: How to reload library classes?
Are there any performance implications when you set the 'reloadable' to true ? Does tomcat check every time a servlet is invoked ? naren At 12:05 PM 4/6/01 +1000, Warren Crossing wrote: >tomcat only reloads classes that are in WEB-INF/lib/ or WEB-INF/classes >where the reloadable is set to true in web.xml >the classes cannot be in the classpath look at classloader.html in the src >tree > >documentation ?? anyone can write some! > >-Original Message- >From: Felix A. Milovanov [mailto:[EMAIL PROTECTED]] >Sent: Friday, 6 April 2001 11:56 AM >To: [EMAIL PROTECTED] >Subject: How to reload library classes? > > > Hello all, > > I'm a new user in Tomcat and Java and I've found a problem. I compile my >library classes to some directory ( /usr/classes ) and there is a structire >like > >/usr/classes/com/my/package1 >/usr/classes/com/my/package2 > > I've added /usr/classes to classpath, and it works - my classes could be >used by my servlets. BUT! If I recompile any class from that library, Tomcat >does not reloads them and servlets use the previous version of libraries. > > Is there any way to say Tomcat to automatically reload that classes? And >the very common question - where can I get WHOLE documentation on Tomcat? >I've just found minimalistic guide... > > Sincerely, > Felix. >
??? Does Tomcat 4 b3 Support Reloading ???
Hello, By reading the documentation, it seems Tomcat 4 b3 should support servlet reloading but this does not seem to be the case. After a fresh install of Tomcat 4 b3 I modified the SnoopServlet and the change was *not* picked up even though the examples Context has reloadable="true" specified. Has anyone else had this problem? Is there a version of Tomcat that *does successfully reload changed servlets? Thanks.
Using the directive (Feature request?)
Is there any plan to include pattern matching in the directive in the server.xml file? Right now, in order to catch requests to mydomain.com and www.mydomain.com, you have to use two directives. The problem with this is that it loads two instances of all your servlets/jsp's. I'm using DB connection pools and I'd like to avoid loading everything twice -- creating twice as many connections to my DB. Something like: or even being able to list multiple combinations, to avoid pattern matching: would really help. I'm using 3.2.1 and haven't tried any of the betas, yet. Is this available in 3.3 or 4.0? Thanks, --jeff
RE: simple question for servlet-configuration of tomcat
> What I have to do (in the configuration files) when I want to start my > servlets with the URL: > > http://localhost/servlet/TestServlet > > and not with a WEPAPP-Directory like > http://localhost/example/servlet/TestServlet > > Which settings I have to do in the configuration-files and in which > directory I have to put my Servlets ? > > >You just have to declare a context like this: > > reloadable="false" > > > I don't think this is necessarily correct in all circumstances. Try as I might I can't get any of the automatically generated files to reflect that I want to access my servlets at /webapp/servletalias rather than at /webapp/servlet/servletalias I did succeed in making this work with tomcat and apache by editing my tomcat.conf file as follows: Alias /webApp "C:/ApacheGroup/Tomcat/webapps/webApp " Options Indexes FollowSymLinks ApJServMount /webApp /webApp
Re: Dates in Java
I think you need a java.sql.Timestamp type as compared to java.util.Date type To create new timestamp or long time = System.currentTimeMillis(); Timestamp currentTime = new Timestamp( time ); ... This object will hold the date and time. If you want to format the time differently use Calendar and Formatter to achieve this. Alvin Jeff Kilbride wrote: > There's also something to be said for using a little tact. "You might get > more help posting your question on a general Java forum" -- and then > pointing the way -- is better than using three question marks and implying > that the other person's question is "so simple". Responses like this scare > new programmers off the lists. > > I remember my first post... > > --jeff > > - Original Message - > From: "Milt Epstein" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Friday, April 06, 2001 7:05 AM > Subject: Re: Dates in Java > > > On Fri, 6 Apr 2001, Martin Mauri wrote: > > > > > Hey...don't be so rude, let the boys work their problems out... > > > > There is something to be said for keeping a list on-topic, and people > > asking questions on appropriate forums. > > > > > > > > Are we in the tomcat-user forum ??? > > > > I don't see the relationship between a so simple constructor problem > > > > (which Javadoc solve quiet easily ...) and Tomcat ... > > > > > > > > > > > > Alistair Hopkins a écrit : > > > > > > > > > > try "select myDate - 7 from myTable;" in your SQL statement for a > quick > > > fix > > > > > :-) > > > > > (works on postgres, don't know about msql) > > > > > > > > > > -Original Message- > > > > > From: Michael Wentzel [mailto:[EMAIL PROTECTED]] > > > > > Sent: Friday, April 06, 2001 12:58 PM > > > > > To: '[EMAIL PROTECTED]' > > > > > Subject: RE: Dates in Java > > > > > > > > > > I have a simple question about the Date object (or similar object) > > > > > > > > > > I have a mySQL table with a DATETIME cell. I want to get the date > from > > > this > > > > > cell > > > > > > > > > > (formatted like so: e.g. 2001-03-23 13:04:59) > > > > > > > > > > and retrieve the date that is exactly 7 days earlier than the > retrieved > > > > > date. > > > > > > > > > > What is the easiest way to do this? I noticed a lot of method > > > deprecations > > > > > in the specs and I am having trouble using the Date object. > > > > > - > > > > > For example, > > > > > DateTest.java:20: cannot resolve symbol > > > > > symbol : constructor Date () > > > > > location: class java.sql.Date > > > > > Date d = new Date(); > > > > > ^ > > > > > 1 error > > > > > > > > > > - > > > > > > > > > > > > > > -- > > > -- > > > > > - > > > > > First, in regards to displaying your date use the > java.text.DateFormat > > > > > class(note DateFormat > > > > > is abstract so of course you'll want to use one of the > 'implementation' > > > > > classes). Since > > > > > java.sql.Date extends java.util.Date you can of course use the > > > > > java.text.DateFormat classes > > > > > to format a java.sql.Date. > > > > > > > > > > Secondly, the problem you are having using java.sql.Date could be if > you > > > are > > > > > importing java.util.*. This will import java.util.Date in addition > to > > > > > java.sql.Date. > > > > > Therefore, when you code Date d = new Date() the compiler doesn't > know > > > which > > > > > classdef > > > > > to use. One solution to to not import anything using splay(*). > This is > > > the > > > > > way we > > > > > do it. You import block may get a little large but it also makes it > > > easier > > > > > for other > > > > > developers to figure out where to look for source. Another is to > code > > > it as > > > > > java.sql.Date d = new java.sql.Date(); > > > > > > > > > > --- > > > > > Michael Wentzel > > > > > Software Developer > > > > > Software As We Think - http://www.aswethink.com > > > > > > > > -- > > > > Cordialement, > > > > > > > > > > > > Stéphane BAUDET > > > > > > > > _ > > > > GL Trade > > > > 48, rue Notre Dame des Victoires - 75002 Paris > > > > Tel : 01 53 40 43 12 (interne 1312) > > > > Fax : 01 53 40 01 40 > > > > Email : [EMAIL PROTECTED] > > > > _ > > > > > > > Milt Epstein > > Research Programmer > > Software/Systems Development Group > > Computing and Communications Services Office (CCSO) > > University of Illinois at Urbana-Champaign (UIUC) > > [EMAIL PROTECTED] > >
Re: Dates in Java
There's also something to be said for using a little tact. "You might get more help posting your question on a general Java forum" -- and then pointing the way -- is better than using three question marks and implying that the other person's question is "so simple". Responses like this scare new programmers off the lists. I remember my first post... --jeff - Original Message - From: "Milt Epstein" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, April 06, 2001 7:05 AM Subject: Re: Dates in Java > On Fri, 6 Apr 2001, Martin Mauri wrote: > > > Hey...don't be so rude, let the boys work their problems out... > > There is something to be said for keeping a list on-topic, and people > asking questions on appropriate forums. > > > > > Are we in the tomcat-user forum ??? > > > I don't see the relationship between a so simple constructor problem > > > (which Javadoc solve quiet easily ...) and Tomcat ... > > > > > > > > > Alistair Hopkins a écrit : > > > > > > > > try "select myDate - 7 from myTable;" in your SQL statement for a quick > > fix > > > > :-) > > > > (works on postgres, don't know about msql) > > > > > > > > -Original Message- > > > > From: Michael Wentzel [mailto:[EMAIL PROTECTED]] > > > > Sent: Friday, April 06, 2001 12:58 PM > > > > To: '[EMAIL PROTECTED]' > > > > Subject: RE: Dates in Java > > > > > > > > I have a simple question about the Date object (or similar object) > > > > > > > > I have a mySQL table with a DATETIME cell. I want to get the date from > > this > > > > cell > > > > > > > > (formatted like so: e.g. 2001-03-23 13:04:59) > > > > > > > > and retrieve the date that is exactly 7 days earlier than the retrieved > > > > date. > > > > > > > > What is the easiest way to do this? I noticed a lot of method > > deprecations > > > > in the specs and I am having trouble using the Date object. > > > > - > > > > For example, > > > > DateTest.java:20: cannot resolve symbol > > > > symbol : constructor Date () > > > > location: class java.sql.Date > > > > Date d = new Date(); > > > > ^ > > > > 1 error > > > > > > > > - > > > > > > > > > > -- > > -- > > > > - > > > > First, in regards to displaying your date use the java.text.DateFormat > > > > class(note DateFormat > > > > is abstract so of course you'll want to use one of the 'implementation' > > > > classes). Since > > > > java.sql.Date extends java.util.Date you can of course use the > > > > java.text.DateFormat classes > > > > to format a java.sql.Date. > > > > > > > > Secondly, the problem you are having using java.sql.Date could be if you > > are > > > > importing java.util.*. This will import java.util.Date in addition to > > > > java.sql.Date. > > > > Therefore, when you code Date d = new Date() the compiler doesn't know > > which > > > > classdef > > > > to use. One solution to to not import anything using splay(*). This is > > the > > > > way we > > > > do it. You import block may get a little large but it also makes it > > easier > > > > for other > > > > developers to figure out where to look for source. Another is to code > > it as > > > > java.sql.Date d = new java.sql.Date(); > > > > > > > > --- > > > > Michael Wentzel > > > > Software Developer > > > > Software As We Think - http://www.aswethink.com > > > > > > -- > > > Cordialement, > > > > > > > > > Stéphane BAUDET > > > > > > _ > > > GL Trade > > > 48, rue Notre Dame des Victoires - 75002 Paris > > > Tel : 01 53 40 43 12 (interne 1312) > > > Fax : 01 53 40 01 40 > > > Email : [EMAIL PROTECTED] > > > _ > > > > Milt Epstein > Research Programmer > Software/Systems Development Group > Computing and Communications Services Office (CCSO) > University of Illinois at Urbana-Champaign (UIUC) > [EMAIL PROTECTED] >
RE: tomcat installation on Windows 2000
http://jakarta.apache.org/tomcat/jakarta-tomcat/src/doc/tomcat-iis-howto.html Then follow the instructions as for tomcat-IIS4-NT4 Etienne -Original Message-From: Hossein Horrian [mailto:[EMAIL PROTECTED]]Sent: vendredi 6 avril 2001 18:00To: [EMAIL PROTECTED]Subject: tomcat installation on Windows 2000 Is there any documentation for installing tomcat on Windows 2000? I would appreciate your help. Thank you, Hossein Horrian Email [EMAIL PROTECTED]
RE: XSLT vs. JSP
Well actually in the context of generating web applications, XSLT and JSP are both competing. IMHO, XSLT has the huge advantage of separating content and format, unlike JSP. XSLT is also turing complete, I would think for many applications it would be a much better solution than Perl/LineNoise :-) -Original Message- From: Rui M . Silva Seabra [mailto:[EMAIL PROTECTED]] Sent: Friday, April 06, 2001 4:29 PM To: [EMAIL PROTECTED] Subject: Re: XSLT vs. JSP On Fri, Apr 06, 2001 at 09:15:34AM -0600, Jason Izatt wrote: > My upfront apologies for an off-topic posting. > I'm looking for a good discussion forum on the XSLT vs. JSP argument. Can > anyone point me to a good place? I can't, but I also cannot see any argument between XSLT and JSP since they do different things. Anyway, XSLT can't beat a half decent perl programmer. Hugs, rms -- + No matter how much you do, you never do enough -- unknown + Whatever you do will be insignificant, | but it is very important that you do it -- Ghandi + So let's do it...?
Re: XSLT vs. JSP
On Fri, Apr 06, 2001 at 09:15:34AM -0600, Jason Izatt wrote: > My upfront apologies for an off-topic posting. > I'm looking for a good discussion forum on the XSLT vs. JSP argument. Can > anyone point me to a good place? I can't, but I also cannot see any argument between XSLT and JSP since they do different things. Anyway, XSLT can't beat a half decent perl programmer. Hugs, rms -- + No matter how much you do, you never do enough -- unknown + Whatever you do will be insignificant, | but it is very important that you do it -- Ghandi + So let's do it...?
Tomcat Source Archive Errors?
Is it just me or does the tomcat src tar's at: http://jakarta.apache.org/builds/jakarta-tomcat/release/v3.2.1/src/ have errors in? I am having "tar: directory checksum error" on the files: jakarta-tomcat-3.2.1-src.tar.Z12-Dec-2000 15:10 1.7M tar archive jakarta-tomcat-3.2.1-src.tar.gz 12-Dec-2000 15:11 899k GZIP compressed file The zip file seems okay, but I can't seem to compile that for some reason (text conversion problems I think). Or is it just me... :) Thanks for any help... (I need mod_jk! :) Kieron Wilkinson ViewGate Networks www.viewgate.com Enabling Episode Accountability in IP Service Creation
Tomcat articles on the O'Reilly Network
FYI: there are some interesting articles on the O'Reilly Network about installing and configuring Tomcat as well as dealing with web applications which look to be good reads Using Tomcat - http://www.oreillynet.com/pub/ct/33 which comprises two articles Java Web Applications - http://www.oreillynet.com/pub/a/onjava/2001/03/15/tomcat.html Installing and Configuring Tomcat - http://www.oreillynet.com/pub/a/onjava/2001/03/29/tomcat.html Regards, Joel Parramore
RE: OutputStream Already in USE ..!!!!
Usually, you don't set the Content-Length because that's generated pages, and if you set a Content-Length higher than the real size of the generated gif, I don't know how IE or Netscape will react... But you can try it. I think you just have to set the Content-Length the same way you set the Content-Type. Hope that'll help. Benoît Ps: Please, try to send your mail in plain text format, otherwise, you annoy Michael ;-) -Message d'origine- De : Lakshmeenrayana [mailto:[EMAIL PROTECTED]] Envoyé : vendredi 6 avril 2001 21:26 À : [EMAIL PROTECTED]; [EMAIL PROTECTED] Objet : Re: OutputStream Already in USE .. Thanks Benoit and Michael It works in Netscape. But one more strange problem has arrived. If the Size of the graph ( image ) is less..approximately less than 5k or so... The same problem persists..(ASCII Characters output). So how to set the content length..? since i don't know the content length of the graph image generated by the GIF encoder. Please help again. Thanks for the time. Regards.. L G Goundalkar Intertec Communications Pvt Ltd INDIA - Original Message - From: Benoît Jacquemont To: [EMAIL PROTECTED] Sent: Friday, April 06, 2001 2:18 PM Subject: RE: OutputStream Already in USE .. I don't know why you get a OutputStream already in use, but the reason why it works with IE and not with Netscape may be because you do not set properly the Content-type of your image. Indeed, IE seems to be a little bit cleverer than Netscape because it interprets the real content of a file before displaying it instead of only looking at the Content-type header property. So you have to be more explicit with Netscape. Benoît I am using Tomcat and trying to write a Gif file to client browser window using JSP. I use ACME - GifEncoder to convert the picture to GIF. The Encoder needs OutputStream type object as one of the parameter in its constructor. I am using ServletOutputStream object for this, which i got through response.getOutputStream(). But the tomcat gives Error as "OutputStream already been used." But the GIF image is Displayed properly in IE 5.0. It gives ASCII charactes in Netscape. Why is this so. Please help. Thanks for the time. Regards. L G Goundalkar Intertec Communications Pvt Ltd INDIA
Re: XSLT vs. JSP
See www.oreilly.com. -- - Torgeir
XSLT vs. JSP
My upfront apologies for an off-topic posting. I'm looking for a good discussion forum on the XSLT vs. JSP argument. Can anyone point me to a good place? --Jason
RE: tomcat startup problem
Run 'tomcat.bat run' at command prompt instead of startup.bat. This will allow you to see stack trace. --- Michael Wentzel Software Developer Software As We Think - http://www.aswethink.com
RE: tomcat startup problem
You sould try to open a command line window, got to the tomcat/bin directory and try tomcat run. You'll see what's exactly the problem since the window won't close. Benoît > Hi, > > I have tomcat 3.2.1 running on win 2k with jdk 1.3 > > Everything was running perfectly until a while ago. Suddenly > when I see, > tomcat is shutdown and all the windows are closed. I tried to restart. > Tomcat starts opening in the new window. I think it loads the > loadon startup > servlet and then when it comes to PoolTcpConnector, the > window is closed > and tomcat is shut down. I'm not sure, if the problem is at > PoolTcpConnector > or not. I can't see that. It just closes down. > > I can't see any tomcat.log files. > > Can someone please answer this asap. I'm kinda in a big fix. > > thanks a bunch, > Lakshmi
tomcat installation on Windows 2000
Is there any documentation for installing tomcat on Windows 2000? I would appreciate your help. Thank you, Hossein Horrian Email [EMAIL PROTECTED]
tomcat startup problem
Hi, I have tomcat 3.2.1 running on win 2k with jdk 1.3 Everything was running perfectly until a while ago. Suddenly when I see, tomcat is shutdown and all the windows are closed. I tried to restart. Tomcat starts opening in the new window. I think it loads the loadon startup servlet and then when it comes to PoolTcpConnector, the window is closed and tomcat is shut down. I'm not sure, if the problem is at PoolTcpConnector or not. I can't see that. It just closes down. I can't see any tomcat.log files. Can someone please answer this asap. I'm kinda in a big fix. thanks a bunch, Lakshmi
RE: simple question for servlet-configuration of tomcat
Please look at the answers after posting a question. I have already answered to your question yesterday: > Hi, >You just have to declare a context like this: > > >in your TOMCAT_HOME/conf/server.xml. You should also remove the ROOT context and the ROOT directory that is in the webapp >directory. >Anyway, in real world, I mean in production environment, you should remove all the contexts that don't deal with your app, >and all the subdirectory within the /webapp. >Benoît > Hello, > > since several weeks I am testing tomcat as a Servlet Engine with great > success. I use Win98 SE2 with PWS. > Now I have a simple problem (I think): > > What I have to do (in the configuration files) when I want to start my > servlets with the URL: > > http://localhost/servlet/TestServlet > > and not with a WEPAPP-Directory like > http://localhost/example/servlet/TestServlet > > Which settings I have to do in the configuration-files and in which > directory I have to put my Servlets ? > > Thanks a lot for your answer > > With best regards > > M. Thorand > > TOPO graphics > Geographische Informationssysteme GmbH > > EMail: [EMAIL PROTECTED] >
Re: OutputStream Already in USE ..!!!!
Thanks Benoit and Michael It works in Netscape. But one more strange problem has arrived. If the Size of the graph ( image ) is less..approximately less than 5k or so... The same problem persists..(ASCII Characters output). So how to set the content length..? since i don't know the content length of the graph image generated by the GIF encoder. Please help again. Thanks for the time. Regards.. L G GoundalkarIntertec Communications Pvt LtdINDIA - Original Message - From: Benoît Jacquemont To: [EMAIL PROTECTED] Sent: Friday, April 06, 2001 2:18 PM Subject: RE: OutputStream Already in USE .. I don't know why you get a OutputStream already in use, but the reason why it works with IE and not with Netscape may be because you do not set properly the Content-type of your image. Indeed, IE seems to be a little bit cleverer than Netscape because it interprets the real content of a file before displaying it instead of only looking at the Content-type header property. So you have to be more explicit with Netscape. Benoît I am using Tomcat and trying to write a Gif file to client browser window using JSP. I use ACME - GifEncoder to convert the picture to GIF. The Encoder needs OutputStream type object as one of the parameter in its constructor. I am using ServletOutputStream object for this, which i got through response.getOutputStream(). But the tomcat gives Error as "OutputStream already been used." But the GIF image is Displayed properly in IE 5.0. It gives ASCII charactes in Netscape. Why is this so. Please help. Thanks for the time. Regards. L G GoundalkarIntertec Communications Pvt LtdINDIA
simple question for servlet-configuration of tomcat
Hello, since several weeks I am testing tomcat as a Servlet Engine with great success. I use Win98 SE2 with PWS. Now I have a simple problem (I think): What I have to do (in the configuration files) when I want to start my servlets with the URL: http://localhost/servlet/TestServlet and not with a WEPAPP-Directory like http://localhost/example/servlet/TestServlet Which settings I have to do in the configuration-files and in which directory I have to put my Servlets ? Thanks a lot for your answer With best regards M. Thorand TOPO graphics Geographische Informationssysteme GmbH EMail: [EMAIL PROTECTED]
RE: Apache + Tomcat Configuration
Dear Michael, I just reach the TomCat mailing List this morning and even if I'm using mailing list for a long time, I'm a little bit supprised by your behaviour. What is exactly your role on this list? Trying sharing knowledge like a lot of people or just controlling all the mails that are posted? It seems that you have nothing else to do than being boring with people. A mailing list is something alive. Even if there can be mails that doesn't match exactly the subject, a lot of people could find them interesting. Hope people on this list are more open-minded than you are! David. -Message d'origine- De: Michael Wentzel [SMTP:[EMAIL PROTECTED]] Date: vendredi 6 avril 2001 15:20 A: '[EMAIL PROTECTED]' Objet: RE: Apache + Tomcat Configuration > I am trying to setup Apache + Tomcat to run JSP and Servlets > on Win. 2000. I > am using Apache 1.3.19, and Tomcat 3.2.1. > > I created my own directory in > %TOMCAT_HOME%/webapps/mytest, copied the structure from > %TOMCAT_HOME%/webapps/examples such as WEB-INF, META-INF I put my > servlets .class files in the ../mytest/WEB-INF/classes/aaa.class. > > I did some configurations in Tomcat: Server.xml, Tomcat-Apache.conf, > Tomcat.conf; and in Apache: httpd.conf > > Now I can use Apache + Tomcat to run my JSP files, BUT I can > ONLY run the > system provided sample Servlets files. I CAN'T run my own > Servelts files no > matter where I put the .class files. > > Could you give me a help for the configuration as my > assignment is almost > due ? First, posting the same question multiple times will not expedite a faster response to your question. People might just get ticked off and not reply at all. Now, I will pose a couple questions: 1. How are you trying to access your servlets? (/mytest/servlets/aaa, mytest/aaa, etc...) 2. What are your configurations, in your webapps web.xml, for your servlets? 3. What is the exact error message you are receiving? 404? 500? etc... The more information you can provide the faster a solution can be found. --- Michael Wentzel Software Developer Software As We Think - http://www.aswethink.com
Re: Dates in Java
On Fri, 6 Apr 2001, Martin Mauri wrote: > Hey...don't be so rude, let the boys work their problems out... There is something to be said for keeping a list on-topic, and people asking questions on appropriate forums. > > Are we in the tomcat-user forum ??? > > I don't see the relationship between a so simple constructor problem > > (which Javadoc solve quiet easily ...) and Tomcat ... > > > > > > Alistair Hopkins a écrit : > > > > > > try "select myDate - 7 from myTable;" in your SQL statement for a quick > fix > > > :-) > > > (works on postgres, don't know about msql) > > > > > > -Original Message- > > > From: Michael Wentzel [mailto:[EMAIL PROTECTED]] > > > Sent: Friday, April 06, 2001 12:58 PM > > > To: '[EMAIL PROTECTED]' > > > Subject: RE: Dates in Java > > > > > > I have a simple question about the Date object (or similar object) > > > > > > I have a mySQL table with a DATETIME cell. I want to get the date from > this > > > cell > > > > > > (formatted like so: e.g. 2001-03-23 13:04:59) > > > > > > and retrieve the date that is exactly 7 days earlier than the retrieved > > > date. > > > > > > What is the easiest way to do this? I noticed a lot of method > deprecations > > > in the specs and I am having trouble using the Date object. > > > - > > > For example, > > > DateTest.java:20: cannot resolve symbol > > > symbol : constructor Date () > > > location: class java.sql.Date > > > Date d = new Date(); > > > ^ > > > 1 error > > > > > > - > > > > > > > -- > -- > > > - > > > First, in regards to displaying your date use the java.text.DateFormat > > > class(note DateFormat > > > is abstract so of course you'll want to use one of the 'implementation' > > > classes). Since > > > java.sql.Date extends java.util.Date you can of course use the > > > java.text.DateFormat classes > > > to format a java.sql.Date. > > > > > > Secondly, the problem you are having using java.sql.Date could be if you > are > > > importing java.util.*. This will import java.util.Date in addition to > > > java.sql.Date. > > > Therefore, when you code Date d = new Date() the compiler doesn't know > which > > > classdef > > > to use. One solution to to not import anything using splay(*). This is > the > > > way we > > > do it. You import block may get a little large but it also makes it > easier > > > for other > > > developers to figure out where to look for source. Another is to code > it as > > > java.sql.Date d = new java.sql.Date(); > > > > > > --- > > > Michael Wentzel > > > Software Developer > > > Software As We Think - http://www.aswethink.com > > > > -- > > Cordialement, > > > > > > Stéphane BAUDET > > > > _ > > GL Trade > > 48, rue Notre Dame des Victoires - 75002 Paris > > Tel : 01 53 40 43 12 (interne 1312) > > Fax : 01 53 40 01 40 > > Email : [EMAIL PROTECTED] > > _ > Milt Epstein Research Programmer Software/Systems Development Group Computing and Communications Services Office (CCSO) University of Illinois at Urbana-Champaign (UIUC) [EMAIL PROTECTED]
RE: mod_jk under darwin (OS X)
I followed the suggestions on this page, and it worked for me http://www.omnigroup.com/mailman/archive/macosx-dev/2001-January/008142.html Steve Fyfe CNI Corporation Milford New Hampshire [EMAIL PROTECTED] (603) 673-6600 -Original Message- From: [EMAIL PROTECTED] Sent: Friday, April 06, 2001 2:32 AM To: <[EMAIL PROTECTED]> Subject:mod_jk under darwin (OS X) Hi all, I'm trying to get mod_jk to compile under OS X but it seems that it relies on glibc - which is not (yet?) ported to Darwin. Does anybody know if this happens to be the case and if so is there any other way to get mod_jk to compile? Cheers, -Morten --- Rayon Interactive AS http://www.rayon.no Morten Lerskau R nseth mailto:[EMAIL PROTECTED] Karenslyst All 16d Tlf.: (47) 2213 5250 0278 OsloFax : (47) 2213 5260 Norway ICQ: 25163080 PGP fingerprint: F851 91B6 1D81 1409 8B62 3E14 5A60 65F8 5AF4 56AF
RE: Apache + Tomcat Configuration
> I am trying to setup Apache + Tomcat to run JSP and Servlets > on Win. 2000. I > am using Apache 1.3.19, and Tomcat 3.2.1. > > I created my own directory in > %TOMCAT_HOME%/webapps/mytest, copied the structure from > %TOMCAT_HOME%/webapps/examples such as WEB-INF, META-INF I put my > servlets .class files in the ../mytest/WEB-INF/classes/aaa.class. > > I did some configurations in Tomcat: Server.xml, Tomcat-Apache.conf, > Tomcat.conf; and in Apache: httpd.conf > > Now I can use Apache + Tomcat to run my JSP files, BUT I can > ONLY run the > system provided sample Servlets files. I CAN'T run my own > Servelts files no > matter where I put the .class files. > > Could you give me a help for the configuration as my > assignment is almost > due ? First, posting the same question multiple times will not expedite a faster response to your question. People might just get ticked off and not reply at all. Now, I will pose a couple questions: 1. How are you trying to access your servlets? (/mytest/servlets/aaa, mytest/aaa, etc...) 2. What are your configurations, in your webapps web.xml, for your servlets? 3. What is the exact error message you are receiving? 404? 500? etc... The more information you can provide the faster a solution can be found. --- Michael Wentzel Software Developer Software As We Think - http://www.aswethink.com
Apache + Tomcat configuration
Hi, everyone: I am trying to setup Apache + Tomcat to run JSP and Servlets on Win. 2000. I am using Apache 1.3.19, and Tomcat 3.2.1. I created my own directory in %TOMCAT_HOME%/webapps/mytest, copied the structure from %TOMCAT_HOME%/webapps/examples such as WEB-INF, META-INF I put my servlets .class files in the ../mytest/WEB-INF/classes/aaa.class. I did some configurations in Tomcat: Server.xml, Tomcat-Apache.conf, Tomcat.conf; and in Apache: httpd.conf Now I can use Apache + Tomcat to run my JSP files, BUT I can ONLY run the system provided sample Servlets files. I CAN'T run my own Servelts files no matter where I put the .class files. Could you give me a help for the configuration as my assignment is almost due ? Thank you very much for your time and concern. E-mail: [EMAIL PROTECTED] Zhengan Cai
Apache + Tomcat Configuration
Hi, everyone: I am trying to setup Apache + Tomcat to run JSP and Servlets on Win. 2000. I am using Apache 1.3.19, and Tomcat 3.2.1. I created my own directory in %TOMCAT_HOME%/webapps/mytest, copied the structure from %TOMCAT_HOME%/webapps/examples such as WEB-INF, META-INF I put my servlets .class files in the ../mytest/WEB-INF/classes/aaa.class. I did some configurations in Tomcat: Server.xml, Tomcat-Apache.conf, Tomcat.conf; and in Apache: httpd.conf Now I can use Apache + Tomcat to run my JSP files, BUT I can ONLY run the system provided sample Servlets files. I CAN'T run my own Servelts files no matter where I put the .class files. Could you give me a help for the configuration as my assignment is almost due ? Thank you very much for your time and concern. E-mail: [EMAIL PROTECTED] Zhengan Cai
RE: JDBCReamls Still freeze after 24 hours wokrs
Here are the logs : 2001-04-05 08:02:18 - ContextManager: JDBCRealm: The database connection is null or was found to be closed. Trying to re-open it. 2001-04-05 08:02:18 - ContextManager: JDBCRealm: Auth ok, first role=cap_acheteur _conn != null Sql query : select * from role 2001-04-06 09:43:29 - ContextManager: Error mapping the request R( /capimmo + /my/ + null) 302 2001-04-06 09:43:29 - Ctx( /capimmo ): Handler tomcat.redirectHandler(null/null) tomcat.redirectHandler 2001-04-06 09:43:29 - ContextManager: Authorize status 401 2001-04-06 09:43:29 - ContextManager: Authorize error R( /capimmo + /my/index.jsp + null) 401 2001-04-06 09:43:29 - Ctx( /capimmo ): Handler tomcat.formAuthHandler(null/null) tomcat.formAuthHandler 2001-04-06 09:43:29 - Ctx( /capimmo ): Handler tomcat.redirectHandler(null/null) tomcat.redirectHandler 2001-04-06 09:43:29 - ContextManager: Authorize status 401 2001-04-06 09:43:29 - ContextManager: Authorize status 401 2001-04-06 09:43:29 - ContextManager: Authorize status 401 2001-04-06 09:43:29 - ContextManager: Authorize status 401 2001-04-06 09:43:36 - Ctx( /capimmo ): Handler tomcat.redirectHandler(null/null) tomcat.redirectHandler 2001-04-06 09:43:36 - ContextManager: JDBCRealm: The database connection is null or was found to be closed. Trying to re-open it. java.io.IOException: Broken pipe at java.net.SocketOutputStream.socketWrite(Native Method) at java.net.SocketOutputStream.write(SocketOutputStream.java:83) at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:72) at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:130) at java.io.DataOutputStream.flush(DataOutputStream.java:104) at org.gjt.mm.mysql.MysqlIO.send(MysqlIO.java) at org.gjt.mm.mysql.MysqlIO.sendCommand(MysqlIO.java) at org.gjt.mm.mysql.MysqlIO.sqlQueryDirect(MysqlIO.java) at org.gjt.mm.mysql.Connection.execSQL(Connection.java) at org.gjt.mm.mysql.PreparedStatement.executeQuery(PreparedStatement.java) at org.apache.tomcat.request.JDBCRealm.authenticate(JDBCRealm.java:299) at org.apache.tomcat.request.JDBCRealm.authenticate(JDBCRealm.java:453) at org.apache.tomcat.core.ContextManager.doAuthenticate(ContextManager.java:837) at org.apache.tomcat.core.RequestImpl.getRemoteUser(RequestImpl.java:341) at org.apache.tomcat.request.JDBCRealm.authorize(JDBCRealm.java:475) at org.apache.tomcat.core.ContextManager.doAuthorize(ContextManager.java:855) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:789) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743) at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:213) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498) at java.lang.Thread.run(Thread.java:484) 2001-04-06 09:43:36 - ContextManager: JDBCRealm: There was an SQLException while in authenticate: testAll 2001-04-06 09:43:36 - ContextManager: JDBCRealm: SQLException: java.sql.SQLException: Communication link failure: java.io.IOException 2001-04-06 09:43:36 - ContextManager: Authorize status 401 2001-04-06 09:43:36 - ContextManager: Authorize error R( /capimmo + /my/index.jsp + null) 401 2001-04-06 09:43:36 - Ctx( /capimmo ): Handler tomcat.formAuthHandler(null/null) tomcat.formAuthHandler 2001-04-06 09:43:36 - Ctx( /capimmo ): Handler tomcat.redirectHandler(null/null) tomcat.redirectHandler 2001-04-06 09:43:37 - ContextManager: Authorize status 401 2001-04-06 09:43:37 - ContextManager: Authorize status 401 2001-04-06 09:43:37 - ContextManager: Authorize status 401 2001-04-06 09:43:37 - ContextManager: Authorize status 401 I wonder, in my project I use a database Pooling from tableGenerator (http://freespace.virgin.net/joe.carter/TableGen/index.html) that use 2 class : DbGlobal And DatabaseAccess that use org.ewin.sql.* pakadges; the line " _conn != null Sql query : select * from role" came from my debugge variable, it means that theis was a sql query It seams to me that the session never ends. and that it broke the pipe in the end. Could you help me ?? At 13:13 04/04/2001 +0200, you wrote: >Please some logs, config files..every bit of info you can send will be >useful trying to find that.. attached files better.. > >Versions of JDBC drivers & db too > >TIA > >Saludos , >Ignacio J. Ortega > > > > -Mensaje original- > > De: Kaneda K [mailto:[EMAIL PROTECTED]] > > Enviado el: miércoles 4 de abril de 2001 13:02 > > Para: [EMAIL PROTECTED] > > Asunto: JDBCReamls Still freeze after 24 hours wokrs > > > > > > > > Hello, I upgrade my tomcat to 3.2.2 beta 6 (BTW how to check > > version when > > you did not downloaded it yourself ?) and the JDBCReamls > > stil
RE: OutputStream Already in USE ..!!!!
I don't know why you get a OutputStream already in use, but the reason why it works with IE and not with Netscape may be because you do not set properly the Content-type of your image. Indeed, IE seems to be a little bit cleverer than Netscape because it interprets the real content of a file before displaying it instead of only looking at the Content-type header property. So you have to be more explicit with Netscape. Benoît I am using Tomcat and trying to write a Gif file to client browser window using JSP. I use ACME - GifEncoder to convert the picture to GIF. The Encoder needs OutputStream type object as one of the parameter in its constructor. I am using ServletOutputStream object for this, which i got through response.getOutputStream(). But the tomcat gives Error as "OutputStream already been used." But the GIF image is Displayed properly in IE 5.0. It gives ASCII charactes in Netscape. Why is this so. -- The OutputStream already in use is because the automatically generated code in a jsp class file gets the output stream as a JSPWriter therefore when getOutputStream() is called it thinks there is already an 'external lock' of this resource object and doesn't think it can use it. BTW, please post to the list in plain text. This has been stated over and over and is also listed on the website as one of the mailing list guidelines. More people will be willing to answer your questions if you post in plain text. --- Michael Wentzel Software Developer Software As We Think - http://www.aswethink.com
RE: OutputStream Already in USE ..!!!!
I don't know why you get a OutputStream already in use, but the reason why it works with IE and not with Netscape may be because you do not set properly the Content-type of your image. Indeed, IE seems to be a little bit cleverer than Netscape because it interprets the real content of a file before displaying it instead of only looking at the Content-type header property. So you have to be more explicit with Netscape. Benoît I am using Tomcat and trying to write a Gif file to client browser window using JSP. I use ACME - GifEncoder to convert the picture to GIF. The Encoder needs OutputStream type object as one of the parameter in its constructor. I am using ServletOutputStream object for this, which i got through response.getOutputStream(). But the tomcat gives Error as "OutputStream already been used." But the GIF image is Displayed properly in IE 5.0. It gives ASCII charactes in Netscape. Why is this so. Please help. Thanks for the time. Regards. L G GoundalkarIntertec Communications Pvt LtdINDIA
OuputStream Already in Use..!!! Please Help
I am using Tomcat and trying to write a Gif file to client browser window using JSP. I use ACME - GifEncoder to convert the picture to GIF. The Encoder needs OutputStream type object as one of the parameter in its constructor. I am using ServletOutputStream object for this, which i got through response.getOutputStream(). But the tomcat gives Error as "OutputStream already been used." But the GIF image is Displayed properly in IE 5.0. It gives ASCII charactes in Netscape. Why is this so. Please help. Thanks for the time. Regards. L G GoundalkarIntertec Communications Pvt LtdINDIA
[Fwd: stop script errors]
Original Message Subject: stop script errors Date: Thu, 05 Apr 2001 16:58:40 -0400 From: Deidra Powell <[EMAIL PROTECTED]> Organization: Interpath Communications, Inc. To: [EMAIL PROTECTED] I was trying to get tomcat going and I too am having trouble with the stop script. I looked in your archives, but see nothing on how to fix it. Well, except for one on ajp12 in front of connection name which is not helping. Can you help me? What is missing or wrong? Below is there sequence of errors: thanks! == Stop tomcat java.net.ConnectException: Connection refused at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.socketConnect(Compiled Code) at java.net.PlainSocketImpl.doConnect(Compiled Code) at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:125) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:112) at java.net.Socket.(Socket.java:269) at java.net.Socket.(Socket.java:98) at org.apache.tomcat.startup.Tomcat.stopTomcat(Compiled Code) at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:130) at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:163) = -- Deidra L. Powell
OutputStream Already in USE ..!!!!
I am using Tomcat and trying to write a Gif file to client browser window using JSP. I use ACME - GifEncoder to convert the picture to GIF. The Encoder needs OutputStream type object as one of the parameter in its constructor. I am using ServletOutputStream object for this, which i got through response.getOutputStream(). But the tomcat gives Error as "OutputStream already been used." But the GIF image is Displayed properly in IE 5.0. It gives ASCII charactes in Netscape. Why is this so. Please help. Thanks for the time. Regards. L G GoundalkarIntertec Communications Pvt LtdINDIA
RE: TomCat installation
Hi David, There's really good documentation with the Tomcat 3.2.1 distribution: howto-tomcat et howto-tomcat-apache. I use these well-written to build my systems based on Tomcat and Apache, and they're work great. Anyway, since Tomcat is a Java program, you just need to copy it into a directory and expand all the file and directory from the tar.gz. Then set the JAVA_HOME environment variable to your java path (for example: /usr/local/jdk1.3), and use the startup.sh/bat script which is in the TOMCAT_HOME/bin directory. Sometimes, on Windows, you need to start once the tomcat_env script before starting tomcat to set all the environment variables... Benoit > Hi all, > > I've just downloaded TomCat 3.1.1 to use it on Solaris > and on Windows too. > It seems there is no installation instructions. So I have several > questions: > - How do I have to specify to Apache Server to workwith TomCat? > - It seems there is a web.xml file in which they have > put some servlets > caracteristics. Do I have to put in it all the informations > on my servlets? > How do I have to install TomCat? > > thanks for help > > David. > > David DELGRANCHE > [EMAIL PROTECTED] > Tel: 02.99 05.34.25 > Fax: 02.99.05.34.05 > Sogitec Industries > 24, Avenue Lavoisier > ZI du Champ Niguel > 35174 BRUZ CEDEX > >
RE: Tomcat 3.2.1 JDK1.3.0 on Solaris - processor usage.
Please see my 3rd paragraph. The readme was the first place I looked. I am aware of this bug. It is not what caused our processor usage to spiral. Perhaps I should have said "all our contexts/webapps are configured correctly". -Original Message- From: DONNIE HALE [mailto:[EMAIL PROTECTED]] Sent: 06 April 2001 13:58 To: [EMAIL PROTECTED] Subject: Re: Tomcat 3.2.1 JDK1.3.0 on Solaris - processor usage. Check out the 3.2.1 release notes at http://jakarta.apache.org/tomcat/jakarta-tomcat/src/doc/readme - section 6.11. This has been posted a few times here in the last month. Donnie >>> [EMAIL PROTECTED] 04/06/01 06:31AM >>> Has anyone experienced this? Tomcat 3.2.1 with Sun's JDK1.3.0_02 on Solaris 8 64 bit on a twin processor Sparc box. Under certain circumstances (regularly but not consistently) our webapp causes the processor usage of the java process on one processor to rise quickly to 80% and just sit there or therabouts. Bizarrely, this figure (80%) seemed to vary. Sometimes it would be 80, sometimes 90 and originally with Tomcat 3.2 beta8 it was 100%. Restarting Tomcat (and hence the JVM) always solved it. Our root context is configured correctly, so we knew it wasn't the known processor usage bug. We patched Solaris, the JDK and brought Tomcat to 3.2.1 with no success. Eventually we rolled back the JDK (and hence the JVM) to V1.2.2_07 and this solved it. As an aside can anyone point me towards some documentaion about getting the JVM to use both processors? Please bear in mind I am the Tomcat/Solaris guy NOT the webapp developer! Gary
RE: Scope of Mailing List (was RE: Dates in Java)
> Are we in the tomcat-user forum ??? > I don't see the relationship between a so simple constructor problem > (which Javadoc solve quiet easily ...) and Tomcat ... I agree that this list is not the place for this question(the proper place would be java.sun.com JDC groups) but most of the time it is faster and simpler to just answer the questions and get it off the list. Here's a somewhat basic guideline for good posting: * Evaluate scope of question(if it doesn't correlate directly to tomcat don't post it here). An example would be: -> Using java.sql.Date doesn't really belong in tomcat-user. -> Using DB Connection Pooling with Tomcat does belong here. * First check archives(link can be found tomcat website). * Then post it if you still have a question. (Another good guideline is... Please post in plain text. Not HTML, etc.) --- Michael Wentzel Software Developer Software As We Think - http://www.aswethink.com
pageContext from a bean?
Is it possible to access the pageContext from inside a bean without passing it in? More specifically, I need to access the request object. I've tried referencing pageContext by itself with no luck and I've also done this JspFactory factory = JspFactory.getDefaultFactory(); PageContext pageContext = factory.getPageContext(null, null, null, null, true, 8192, true); HttpServletRequest incomingRequest = (javax.servlet.http.HttpServletRequest) pageContext.getRequest(); Thanks for any help dave -- Dave Weis