Building Tomcat Problem
When I run ./build.sh dist I get the following error. Exception in thread main java.lang.NoClassDefFoundError: org/apache/tools/ant/Main I have looked and looked, I can't figure it out Please Help! Gerald Waugh Front Street Networks LLC 229 Front Street Suite #C New Haven, CT 06513-3203 http://FrontStreetNetworks.Com/
Possible thread deadlocking in 3.2.2 beta 5?
Hello, I have an app I just ported to Tomcat 3.2.2 beta 5 that runs fine for a while, and then begins to run slower and slower until it dies. From looking at the log files, it appears that 3.2.2 beta 5 is thread deadlocking and thus running out of resources. The log file shows Full thread dump... sections where you can see the JVM is having problems releasing threads. The really weird thing is that this is not a high volume server. It received no more than 300 hits over the period of a week. However, that was enough traffic to kill it. I have the same exact app running on another machine under 3.2.1 with no problems. If you look at the log file on the 3.2.1 machine, there are no Full thread dump... errors and the app has been up for months. Thus, something appears to have changed between these versions that is affecting my app's thread usage. There are a few environmental differences between the two implementations of Tomcat. I have 3.2.2 beta 5 on a quad processor WinNT 4 Sp6a machine w/128mb allocated to Tomcat. 3.2.1 runs on a single processor Win2K server w/64mb allocated to Tomcat. Could the multi-processor server be a factor? Both servers are using Sun JDK 1.2.2. Since the log file to 3.2.2 beta 5 is so big, I have posted it to the URL : http://www.poptarantula.com/logs/jvm.stderr_5_22_01.txt Does any one have any idea what could be causing this behavior? Are there any known fixes? Thank you in advance for your help. Best regards, Joel Kozlow [EMAIL PROTECTED]
RE: Sorry, message sent 3 times in error
I apologize, I mistakenly sent my message 3 different times. When my first post did not arrive within 2 hours, I assumed there must be security restrictions on which mail accounts can post messages. Thus, I tried again with a different account. This was entirely my errorsorry :) -Original Message- From: midian [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 22, 2001 9:40 AM To: '[EMAIL PROTECTED]' Subject: Thread deadlocking in 3.2.2 beta 5? Hello, I have an app I just ported to Tomcat 3.2.2 beta 5 that runs fine for a while, and then begins to run slower and slower until it dies. From looking at the log files, it appears that 3.2.2 beta 5 is thread deadlocking and thus running out of resources. The log file shows Full thread dump... sections where you can see the JVM is having problems releasing threads. The really weird thing is that this is not a high volume server. It received no more than 300 hits over the period of a week. However, that was enough traffic to kill it. I have the same exact app running on another machine under 3.2.1 with no problems. If you look at the log file on the 3.2.1 machine, there are no Full thread dump... errors and the app has been up for months. Thus, something appears to have changed between these versions that is affecting my app's thread usage. There are a few environmental differences between the two implementations of Tomcat. I have 3.2.2 beta 5 on a quad processor WinNT 4 Sp6a machine w/128mb allocated to Tomcat. 3.2.1 runs on a single processor Win2K server w/64mb allocated to Tomcat. Could the multi-processor server be a factor? Both servers are using Sun JDK 1.2.2. Since the log file to 3.2.2 beta 5 is so big, I have posted it to the URL : http://www.poptarantula.com/logs/jvm.stderr_5_22_01.txt Does any one have any idea what could be causing this behavior? Are there any known fixes? Thank you in advance for your help. Best regards, Joel Kozlow [EMAIL PROTECTED] Sn. Developer Hewtlett-Packard
RE: Thread deadlocking in 3.2.2 beta 5?
Hello Marc, You and I think alike :). I have already upgraded the single processor Server to 3.2.2 beta 5. I ran a battery of tests at it to simulate heavy load. So far, there are no thread deadlocking errors reported. Thus, I think you are correct in your assessment that this may have something to do with a multi-processor server. However, before we go too far down this road, I thought I would see if any one else is running Tomcat on a multi-processor box with NT 4? I would also be happy to help out in diagnosing this problem. Again, if we confirm that no one else has really tested a multi-processor environment, I can take the following steps: * Install Tomcat 3.2.2 beta 5 on a development server * Run the product with debug logging * If necessary, run the entire server in a JBuilder debug session * Provide any test results that you request Please let me know how I may be of further assistance. Thank you again for your help. Best regards, Joel Kozlow -Original Message- From: Marc Saegesser [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 22, 2001 2:27 PM To: [EMAIL PROTECTED] Subject: RE: Thread deadlocking in 3.2.2 beta 5? It is possible that running on a multi-processor machine has uncovered a thread synchronization problem. Could you provide a little more information about the application? Are JSP files changing and being recompiled often or is it mostly static? Could try running Tomcat 3.2.2b5 on a single processor machine and see what happens? I'll try to look into this but these are things are notoriously hard to track down. -Original Message- From: Joel Kozlow [mailto:[EMAIL PROTECTED]]On Behalf Of midian Sent: Tuesday, May 22, 2001 11:40 AM To: '[EMAIL PROTECTED]' Subject: Thread deadlocking in 3.2.2 beta 5? Hello, I have an app I just ported to Tomcat 3.2.2 beta 5 that runs fine for a while, and then begins to run slower and slower until it dies. From looking at the log files, it appears that 3.2.2 beta 5 is thread deadlocking and thus running out of resources. The log file shows Full thread dump... sections where you can see the JVM is having problems releasing threads. The really weird thing is that this is not a high volume server. It received no more than 300 hits over the period of a week. However, that was enough traffic to kill it. I have the same exact app running on another machine under 3.2.1 with no problems. If you look at the log file on the 3.2.1 machine, there are no Full thread dump... errors and the app has been up for months. Thus, something appears to have changed between these versions that is affecting my app's thread usage. There are a few environmental differences between the two implementations of Tomcat. I have 3.2.2 beta 5 on a quad processor WinNT 4 Sp6a machine w/128mb allocated to Tomcat. 3.2.1 runs on a single processor Win2K server w/64mb allocated to Tomcat. Could the multi-processor server be a factor? Both servers are using Sun JDK 1.2.2. Since the log file to 3.2.2 beta 5 is so big, I have posted it to the URL : http://www.poptarantula.com/logs/jvm.stderr_5_22_01.txt Does any one have any idea what could be causing this behavior? Are there any known fixes? Thank you in advance for your help. Best regards, Joel Kozlow [EMAIL PROTECTED] Sn. Developer Hewtlett-Packard
Re: Building Tomcat Problem
Jarek Krochmalski [EMAIL PROTECTED] wrote download and compile jakarta-ant from www.apache.org Thanks, but I downloaded the binary and installed it. My /etc/profile: #Java Environment JAVA_HOME=/home/local/jdk1.2.2 export JAVA_HOME export PATH=${PATH}:${JAVA_HOME}/bin #Tomcat Environment TOMCAT_HOME=/home/local/tomcat export TOMCAT_HOME export PATH=${PATH}:${TOMCAT_HOME}/bin #jakarta-ant home ANT_HOME=/home/local/jakarta/jakarta-ant export ANT_HOME export PATH=${PATH}:${ANT_HOME}/bin #Jakarat home JAKARTA_HOME=/home/local/jakarta export JAKARTA_HOME export PATH=${PATH}:${JAKARTA_HOME}/bin #Set Classpaths for java servlets CLASSPATH=$TOMCAT_HOME/lib/servlet.jar:$JAVA_HOME/lib/:$TOMCAT_HOME/lib:$TOMCAT_ HOME/classes: export CLASSPATH And my $PATH: [root /root]# echo $PATH /bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/usr/bin/X11:/home/ local/jdk1.2.2/bin:/home/local/tomcat/bin:/home/local/jakarta/jakarta-ant/bin:/h ome/local/jakarta/bin:/sbin:/usr/sbin:/usr/local/bin:/usr/local/sbin And [root /root]# ls $JAKARTA_HOME jakarta-ant jakarta-servletapi I did not have any room in /usr/local so installing everything in /home/local.
Using = 150 CustomTags on a JSP breaks the VM for all Tomcats (4.0b5/3.2.2b3-b5)
Hi all, I'm facing a showstopper for further usage of tomcat. Placing a lot (=150) custom tags on a JSP brings down the VM on Win-platforms (Win2k and NT4.0 latest SP) (Tested with JDK1.3 and JDK1.3.1 (beta)) The creation of the corresponding java file (from the JSP) and the compilation to the class-file seems to work, but the execution breaks. The error message is: # # HotSpot Virtual Machine Error, Internal Error # Please report this error at # http://java.sun.com/cgi-bin/bugreport.cgi # # Error ID: 47454E45524154452F4F502D41500E435050084B # # Problematic Thread: prio=5 tid=0x8ebd470 nid=0x54c runnable # The same JSP works fine under JRUN3.1 (SP2). I'm attaching the war with the test case. It contains the JSP (TagTest.jsp). The tag which is used in this JSP is the html:Img-Tag from the Struts project (1.0 b2). Actually the problem is related to any custom-tags. I've used the one from Struts, just to be sure that the problem is not related to my tags. Any help will be wellcome, Thanks, fm
RE: Using = 150 CustomTags on a JSP breaks the VM for all Tomcats (4.0b5/3.2.2b3-b5)
Sorry about this, but the war-file is 100k; can't attach it as stated. I'm attaching the JSP. It requires the struts.jar and the struts-html.tld to work (actually to not work :( Regards, fm TagTest.jsp TagTest.jsp
JSP Naming Standards ?
Are there recognised naming standards for JSP's ? If I have a customer login page for Company ABC should I call it. ABC_Customer_Login or abc_cutomer_login or abccustomerlogin or abcCustomerLogin or what ? Please could you give me a reference to the standard, as I only want to change everything once ! Thanks David
RE: Possible thread deadlocking in 3.2.2 beta 5?
Hi , just an idea ; upgrade your jdk from JDK-1.2.2_006 to JDK1.3 regards .. -Original Message- From: Joel - Jakarta List [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 22, 2001 9:53 PM To: '[EMAIL PROTECTED]' Subject: Possible thread deadlocking in 3.2.2 beta 5? Hello, I have an app I just ported to Tomcat 3.2.2 beta 5 that runs fine for a while, and then begins to run slower and slower until it dies. From looking at the log files, it appears that 3.2.2 beta 5 is thread deadlocking and thus running out of resources. The log file shows Full thread dump... sections where you can see the JVM is having problems releasing threads. The really weird thing is that this is not a high volume server. It received no more than 300 hits over the period of a week. However, that was enough traffic to kill it. I have the same exact app running on another machine under 3.2.1 with no problems. If you look at the log file on the 3.2.1 machine, there are no Full thread dump... errors and the app has been up for months. Thus, something appears to have changed between these versions that is affecting my app's thread usage. There are a few environmental differences between the two implementations of Tomcat. I have 3.2.2 beta 5 on a quad processor WinNT 4 Sp6a machine w/128mb allocated to Tomcat. 3.2.1 runs on a single processor Win2K server w/64mb allocated to Tomcat. Could the multi-processor server be a factor? Both servers are using Sun JDK 1.2.2. Since the log file to 3.2.2 beta 5 is so big, I have posted it to the URL : http://www.poptarantula.com/logs/jvm.stderr_5_22_01.txt Does any one have any idea what could be causing this behavior? Are there any known fixes? Thank you in advance for your help. Best regards, Joel Kozlow [EMAIL PROTECTED]
Re: Error when Including resources in JSP
Well I still haven't got any responses to my problem below. --- Allan Kamau [EMAIL PROTECTED] wrote: Hi all,I get errors when I include a cocoon processed .xml file in .jsp file in Tomcat-3.2.1The resource.xml calls an xml generating servlet that I have written. If I call the resource.xml?month=5year=2001 on my browser it works just fine.However when I use I get java.lang.IllegalStateException writer is already being used for this requestif I use On requesting the .jsp I get an java.lang.NullPointerException Now I think the problem is that the .xml being generated by cocoon is tring to obtain a new PrintWriter object. If this is the case how can I solve it. I have tried passing the out object from jsp to the servlet including in the resource.xml by using 'request.setAttribute(out,out)' but I am unable to obtain it in the servlet using '... out=request.getAttribute(out)' Below is the code for the resource.xml?month=5year=2001 http://localhost:8080/projsp/XML/jsp/monthDays.jsp?month=+request.getParameter(month)++request.getParameter(year) Below it the direct error output I get if I use the from the .jspCocoon 1.8.2 Error found handling the request. java.lang.IllegalStateException: Writer is already being used for this requestat org.apache.tomcat.facade.HttpServletResponseFacade.getOutputStream(HttpServletResponseFacade.java:158) at org.apache.cocoon.response.HttpServletResponseFacade.getOutputStream(HttpServletResponseFacade.java:85) at org.apache.cocoon.Engine.handle(Engine.java:483) at org.apache.cocoon.Cocoon.service(Cocoon.java:183) 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.facade.RequestDispatcherImpl.include(RequestDispatcherImpl.java:345) at org.apache.jasper.runtime.PageContextImpl.include(PageContextImpl.java:414) at diary.jsp._0002fdiary_0002fjsp_0002fdefault_00038_0002ejspdefault8_jsp_13._jspService(_0002fdiary_0002fjsp_0002fdefault_00038_0002ejspdefault8_jsp_13.java:65) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:177) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391) 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.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:210) 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) Finally Thanks in advance.Allan Kamau. - Do You Yahoo!? Yahoo! Auctions $2 Million Sweepstakes - Got something to sell? __ Do You Yahoo!? Yahoo! Auctions - buy the things you want at great prices http://auctions.yahoo.com/
Re: Well....Here it is!!!!!
yes, but for english people like myself, living in uk, I don't think it will work! - Original Message - From: [EMAIL PROTECTED] Sent: Tuesday, May 22, 2001 1:44 PM Subject: WellHere it is! Hi,''Making over half million dollars every 4 to 5 months fromyour home for an investment of only $25 U.S. Dollars expenseone time'' THANKS TO THE COMPUTER AGE AND THE INTERNET!=BE A MILLIONAIRE LIKE OTHERS WITHIN A YEAR!!!Before you say ''Bull'', please read the following. This isthe letter you have been hearing about on the news lately.Due to the popularity of this letter on the internet, anational weekly news program recently devoted an entire showto the investigation of this program described below, to seeif it really can make people money.The show also investigated whether or not the program waslegal. Their findings proved once and for all that there are''absolutely NO laws prohibiting the participation in theprogram and if people can follow the simple instructions,they are bound to make some mega bucks with only $25 out ofpocket cost''.DUE TO THE RECENT INCREASE OF POPULARITY RESPECT THISPROGRAM HAS ATTAINED, IT IS CURRENTLY WORKING BETTER THANEVER.This is what one had to say: ''Thanks to this profitableopportunity. I was approached many times before but eachtime I passed on it. I am so glad I finally joined just tosee what one could expect in return for the minimal effortand money required. To my astonishment, I received total $610,470.00 in 21 weeks, with money still coming in''.Pam Hedland, Fort Lee, New Jersey.-Here is another testimonial:''This program has been around for a long time but I neverbelieved in it. But one day when I received this again inthe mail I decided to gamble my $25 on it. I followed thesimple instructions and voila' - 3 weeks later the moneystarted to come in. First month I only made $240.00 but thenext 2 months after that I made a total of $290,000.00. Sofar, in the past 8 months by re-entering the program, I havemade over $710,000.00 and I am playing it again.The key tosuccess in this program is to follow the simple steps andNOT change anything'' More testimonials later but first,PRINT THIS NOW FOR YOUR FUTURE REFERENCE$$$If you would like to make at least $500,000 every 4 to 5months easily and comfortably, please read thefollowing...THEN READ IT AGAIN and AGAIN!!!$$$FOLLOW THE SIMPLE INSTRUCTION BELOW AND YOUR FINANCIALDREAMS WILL COME TRUE, GUARANTEED!INSTRUCTIONS: Order all 5 reports shown on the listbelow.For each report, send $5 CASH, THE NAME NUMBER OF THEREPORT YOU ARE ORDERING and YOUR E-MAIL ADDRESS to theperson whose name appears ON THAT LIST next to the report.MAKE SURE YOUR RETURN ADDRESS IS ON YOUR ENVELOPE TOP LEFTCORNER in case of any mail problems.When you place your order, make sure you order each ofthe 5 reports.You will need all 5 reports so that you cansave them on your computer and resell them. YOUR TOTAL COST$5 X 5 = $25.00.Within a few days you will receive, vie e-mail, each ofthe 5 reports from these 5 different individuals. Save themon your computer so they will be accessible for you to sendto the 1,000's of people who will order them from you. Alsomake a floppy of these reports and keep it on your desk incase something happen to your computer.IMPORTANT __ DO NOT alter the names of the people whoare listed next to each report, or their sequence on thelist, in any way other than what is instructed below in step'' 1 through 6 '' or you will loose out on majority of yourprofits. Once you understand the way this works, you willalso see how it does not work if you change it.Remember, this method has been tested, and if you alter, itwill NOT work!!! People have tried to put theirfriends/relatives names on all five thinking they could getall the money. But it does not work this way. Believe us, weall have tried to be greedy and then nothing happened. So DoNot try to change anything other than what is instructed.Because if you do, it will not work for you.Remember,honesty reaps the reward!!!1After you have ordered all 5 reports, take thisadvertisement and REMOVE the name address of the person inREPORT #5. This person has made it through the cycle and isno doubt counting their fortune.2Move the name address in REPORT #4 down TO REPORT #5.3Move the name address in REPORT #3 down TO REPORT #4.4Move the name address in REPORT #2 down TO REPORT #3.5Move the name address in REPORT #1 down TO REPORT #26Insert YOUR name address in the REPORT #1 Position.PLEASE
Tomcat vs. Other App Servers
Hi, I have been working with Tomcat for a few months now with little problems. I am wondering if this app server is ready for prime time when it comes to business end of the things. What do the other servers that cost upwards of $1 offer that Tomcat doesn't? Also, I have been hearing a lot about Caucho's Resin Servlet engine as another open source alternative? Anyone have any takes on the app server market? Thanks Curtis
NT Service Problem
Hi all , I used jk_nt_service.exe to add Tomcat like NT service . I modified wrapper.properties file and then updated parameters as follows: wrapper.tomcat_home = path of TOMCAT_HOME wrapper.java_home = path of JAVA_HOME I finished adding Tomcat into a NT service named TomcatService, and i saw it's existed at Control Panel. But When i start service use net start "service name" Error happens like following : The TomcatService service is starting.The TomcatService service could not be started. The service did not report an error. More help is available by typing NET HELPMSG 3534. Anybody help me , what's this error , how could i fix it ?? Thank you Huynh Tin
debugging of jsp's
Just dreaming load here; How would it be possible to write a debugger for jsp's that interpreted a jsp page, and made the content of the pageContext available with a nice gui? I know this is all possible to retrieve by attaching a debugger to tomcat, but this gives me a strickly servlet view, not a jsp page view. Being able to toggle between the jsp and the generated code at debug time would also be nice.. -- - Torgeir
sendRedirect using POST
Hi Looking through the archives I could not see if this was resolved by anybody. I am trying to use a servlet that is posted user authentication data to post the data back to a redirect url. Is it possible to use sendRedirect or another technique to POST the return paramters to a URL? Thanks Glyn
sendRedirect using POST
Hi Looking through the archives I could not see if this was resolved by anybody. I am trying to use a servlet that is posted user authentication data to post the data back to a redirect url. Is it possible to use sendRedirect or another technique to POST the return paramters to a URL? Thanks Glyn
Re: sendRedirect using POST
Hi Glyn! Glyn Walters wrote: Looking through the archives I could not see if this was resolved by anybody. I am trying to use a servlet that is posted user authentication data to post the data back to a redirect url. Is it possible to use sendRedirect or another technique to POST the return paramters to a URL? Probably it's not in the archives, since it's not a Tomcat-related question. Anyways, if you're inside a webapp (another servlet in the same context), use RequestDispatcher.forward(); if it's a remote URL, use sendRedirect. POST data should be resent too. Un saludo, Alex.
ISAPI dll Download URL
Sorry for the bother, but the basic links to binary Tomcat downloads appears circular. Will appreciate subject URL. Thanks, all. Arnold Shore Annapolis, MD USA
Re:Problem running tomcat 4 in apache 1.3.19
Would you please tell me how to compile web_apps.so. I got error with pthread ... (serveral people had the same error but I could not find the solution on tomcat list) when i start apache. Someone suggested that module should be compiled with LD_LIBRARY_PATH properly set up, but I checked it and it still does not work. My machine: Linux Mandrake with kernel 2.4.1 IBMJdk1.3 gcc version: 2.95.3 Regards, Tomek /) Tomasz Sucharzewski (\ / )Unix/Sybase Administrator ( \ _( (__ Web-Application Development_) )_ (((\ \ /_ Electronic Data Processing Department _\ / /))) ( \_/ / ING Bank N.V. \ \_/ ) \ / \ / \_/ phone: (+48 22) 820-41-58 \_/ / / mobilephone: (+48 606) 666-015\ \ / / email: [EMAIL PROTECTED] \ \ Reply Separator Subject:Problem running tomcat 4 in apache 1.3.19 Author: [EMAIL PROTECTED] Date: 01-05-21 23:58 Hi, After a struggle to get tomcat 4 running on my systen (running on Linux with jdk 1.3.1), I tried to configure tomcat 4 to run with apache. After following (some) of the instructions in the server.xml and other sources I got the web_webapp.so actually compiled and running in apache ( which means : apache doesn't crash when I start it up..). I mounted the examples to be served by tomcat 4 and when I go there (say http://servername/examples/ I get a nice directory overview and I want to click on servlets. then I get a nice exception (without exception..) : java.lang.NullPointerException at javax.servlet.http.HttpUtils.getRequestURL(HttpUtils.java:338) at org.apache.catalina.connector.HttpResponseBase.toAbsolute(HttpResponseBase.j ava:669) at org.apache.catalina.connector.HttpResponseBase.sendRedirect(HttpResponseBase .java:1072) at org.apache.catalina.connector.HttpResponseFacade.sendRedirect(HttpResponseFa cade.java:150) at org.apache.catalina.servlets.DefaultServlet.serveResource(DefaultServlet.jav a:1084) at org.apache.catalina.servlets.DefaultServlet.doGet(DefaultServlet.java:519) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) snap a lot All this stuff is working great on the 8080 port, which is handled by tomcat itself. Can anybody enlighten me on what is going on or how to correctly configure (and compile) the connection to tomcat Note : the example of mounting _INFO_ to eg /tomcatinfo/ works... Thanx for the help.. Mvgr, Martin van den Bemt - ATTENTION: The information in this electronic mail message is private and confidential, and only intended for the addressee. Should you receive this message by mistake, you are hereby notified that any disclosure, reproduction, distribution or use of this message is strictly prohibited. Please inform the sender by reply transmission and delete the message without copying or opening it. Messages and attachments are scanned for all viruses known. If this message contains password-protected attachments, the files have NOT been scanned for viruses by the ING mail domain. Always scan attachments before opening them. -
tomcat4 / apache 1.3.x integration problem
Hello! Like some others I have a problem with connecting the tomcat 4 (beta 4 or 5) with the apache 1.3.19. The computer is a solaris 8 (sparc) system with jdk1.3 and a gcc compiler I could successfully compile a mod_webapp.so file. Although after copying it to the apache/libexec folder and running apachectl configtest I get the error: libapr.so.0: symbol __eprintf: referenced symbol not found Can anyone help me with this error message? For compiling the mod_webapp.so I had to compile the apr package from apache. My guess is, that I don't have the matching version of it. On http://apr.apache.org/ I just go tthe latest snapshot apr_20010523060225.tar.gz Is this a good one? Is there somewhere a ready distribution tar? And which one works with tomcat4. Any help is appreciated, Markus Albrecht Email: [EMAIL PROTECTED]
Re: Tomcat vs. Other App Servers
Well, this is interesting I've raised this issue many times around me and it always becomes a philisophical debate on open-source and stuff like "is open-source compatible with a companies needs" etc I've also discussed this with one of the guys working on the Orion app server. And I wrote a paper on this for a conference in my university. First of all, you need to take into perspective a few points : Tomcat is NOT an application server, it cannot run EJB, it is not built on a J2EE model, you can't deploy beans and such Tomcat isservlet engine, it processes JSP and servlets. Now, let's talk about "web*" app servers, like websphere and weblogic. Both these products cost thousands of dollars, $10k as you put it is not including services offered by IBM or BEA, the manufacturers. Both these products are very heavy, and DO NOT run well on a i386 architectures compared to when they run on 64 bit machines, like Solaris Sparc machines. (I've used weblogic on a sunblade in a production environment and it runs nicely). Websphere is a security nightmare, you can crah it by telnetting garbage to it on port 8009 (if i remember corrrectly) So choosing a server depends on your needs. Application Architecture : Apparently, you don't need a J2EE architecture, since you've been working with tomcat for a while. Tomcat can suit you well. Costs : If youcan't affordservices, a 30 000 $ server, $10 000 for weblogic or websphere, go with tomcat. Performances : On a pentium architecture, tomcat runs a million times faster. The architecture I like (and recommend my customers) is Apache with mod_jserv and Tomcat, on a linux box, on a dual-pentium 3 server. Why dual proc ? Memory leaks =) Apache is the most widely used web server out there, it has nothing to prove, it is secure and administrable, performant etc... It runs better than all its expensive competitors. So it comes down now to politics, if someone somewhere in the process refuses to rely on open source software, go with the bigshots, and don't hesitate to buy services and support (not necessarily from the manufacturer), you'll gain alot of time and money in the long run. The arguments against using open-source are usually the following : * We don't get support : false, many small start-ups offer consulting and support for less than the big shots, and you get support from the community for free (like on this list) * It can get discontinued without warning : inexact : the Apache foundation has been around for longer than most dotcoms, and doesn't show signs of weaknesses. And didn't Symantec discontinue Visual Café ? * It's buggy software : and websphere and weblogic aren't ? Websphere (on NT) has been used in my school to demonstrate the bugs in the Swing API. I keep tweaking the weblogic perl scripts too... Tomcat has a new release every night or so. * The developpement is hectic : did you ever see a company release software on time ? ask the gamers out there... * Why is it free if it's so good ? : so people use it, so programmers get some glory, so you can get rich and make a donation... And afterall, Websphere runs Apache as an http server. (yes, IBM managed to SELL Apache). And some of the most talented programmers in the worldwork for the Apache foundation. I personnaly don't hesitate running a stable version of Apache/Tomcat in a prod environment. About Resin, It's really nice and it's fun to use, and performant. It costs 500$, and you can plug it in Apache. It's not open-source, if i remember correctly, and the EJB part is beta, it's not fully J2EE compliant. If you want a good J2EE compliant app server, you can purchase Orion app server (http://www.orionserver.com) for $1500 or so. - Original Message - From: Curtis Spencer To: Tomcat User List Sent: Wednesday, May 23, 2001 10:55 AM Subject: Tomcat vs. Other App Servers Hi, I have been working with Tomcat for a few months now with little problems. I am wondering if this app server is ready for prime time when it comes to business end of the things. What do the other servers that cost upwards of $1 offer that Tomcat doesn't? Also, I have been hearing a lot about Caucho's Resin Servlet engine as another open source alternative? Anyone have any takes on the app server market? Thanks Curtis
Re: sendRedirect using POST
I never resolved it... you can workaround it using an intermediate javascript page, but avoid it. You can use headers. - Original Message - From: Glyn Walters [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, May 23, 2001 12:41 PM Subject: sendRedirect using POST Hi Looking through the archives I could not see if this was resolved by anybody. I am trying to use a servlet that is posted user authentication data to post the data back to a redirect url. Is it possible to use sendRedirect or another technique to POST the return paramters to a URL? Thanks Glyn
Multiple requests
I have been load testing our servlet and under high load requests start to take a long time (30secs ish). When a request takes this long a browser resubmits the request automatically. Is there a status I can send to the browser to say that the server is actually doing something and therefore stop duplicate requests coming through, or do I need to do some synchronise code on the session (which seems a little dodgy to me). Thanks. Dave. [EMAIL PROTECTED]
Re: Images not showing on Win2000
probably something with the space needing to be a %20 - Original Message - From: oLi [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, May 21, 2001 4:47 PM Subject: Re: Images not showing on Win2000 I get the same under NT. Obviously it is a bug, when I have my static content served by IIS it works fine. oLi --- Eric Lubin [EMAIL PROTECTED] schrieb: Can someone running Jakarta Tomcat 3.2.1 on Windows 2000 test this for me? Maybe it's a bug and i'll post it to the dev list. Create a new directory Put 2 JPG images in it, or the same one renamed. Name one hello.jpg and the other hello test.jpg (WITH THE SPACE) Now point your browser at that directory and let Tomcat build the page for you. Click on both images In my case, only the first one will display. The second will give a 404 page not found error. Eric Lubin [EMAIL PROTECTED] __ Do You Yahoo!? Gesendet von Yahoo! Mail - http://mail.yahoo.de
Urgent question on extra line with Tomcat Jsp
Dear all, I have encounter a strange behaviour with Tomcat 3.2 When I use jsp to output a line to html or other format. The resulting page will append a line before the content. this make some of my applications work inproperly as they parse the content uncorrectly. Does any one encounter similar situation?? How can I determine if it is the problem of Tomcat or other parts?? Thanks Bryan
RE: NT Service Problem
Make sure there is a "logs" directory under %TOMCAT_HOME%. If there is a logs directory delete the logfiles and attempt to start the service. Then, check the logfiles to see if they reveal anything useful. There must be a logs directory before the service will run. -Original Message-From: Huynh Tin [mailto:[EMAIL PROTECTED]]Sent: Wednesday, May 23, 2001 5:46 AMTo: [EMAIL PROTECTED]Subject: NT Service Problem Hi all , I used jk_nt_service.exe to add Tomcat like NT service . I modified wrapper.properties file and then updated parameters as follows: wrapper.tomcat_home = path of TOMCAT_HOME wrapper.java_home = path of JAVA_HOME I finished adding Tomcat into a NT service named TomcatService, and i saw it's existed at Control Panel. But When i start service use net start "service name" Error happens like following : The TomcatService service is starting.The TomcatService service could not be started. The service did not report an error. More help is available by typing NET HELPMSG 3534. Anybody help me , what's this error , how could i fix it ?? Thank you Huynh Tin
Milestone 3 as service?
Does anyone have Jakarta 3.3-m3 (Milestone 3 build) running on NT/2000 as a service? I had 3.2.1 running fine, but with this new version, the service seems to start and stop immediately. Is there a log anywhere to look at?? I notice that a lot of the conf and jar files have changed directories. Do I need to change anything other than the first 2 lines of wrapper.properties? Thanks, Eric
RE: sendRedirect using POST
Thanks. I am trying to do something using javascript but I take your point. What do you mean by using headers though? The redirect needs to go back to an ASP. -Original Message- From: Arnaud Dostes - NTI [mailto:[EMAIL PROTECTED]] Sent: 23 May 2001 12:19 To: [EMAIL PROTECTED] Subject: Re: sendRedirect using POST I never resolved it... you can workaround it using an intermediate javascript page, but avoid it. You can use headers. - Original Message - From: Glyn Walters [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, May 23, 2001 12:41 PM Subject: sendRedirect using POST Hi Looking through the archives I could not see if this was resolved by anybody. I am trying to use a servlet that is posted user authentication data to post the data back to a redirect url. Is it possible to use sendRedirect or another technique to POST the return paramters to a URL? Thanks Glyn
RE: Urgent question on extra line with Tomcat Jsp
JSP send all characters you have written into JPS. So that it passes back all new lines you have used in your code (including all white characters). Jan On Wednesday, May 23, 2001 2:52 PM, wtonetwork.com [SMTP:[EMAIL PROTECTED]] wrote: Dear all, I have encounter a strange behaviour with Tomcat 3.2 When I use jsp to output a line to html or other format. The resulting page will append a line before the content. this make some of my applications work inproperly as they parse the content uncorrectly. Does any one encounter similar situation?? How can I determine if it is the problem of Tomcat or other parts?? Thanks Bryan __ Tato komunikace je urcena vyhradne pro adresata a je duverna. This communication is intended solely for the addressee and is confidential.
How to change subscription options for this list
How do I set my subscription options to NO DIGEST for this list
Re: Urgent question on extra line with Tomcat Jsp
Hi Jan, Sorry, I still don't understand what's the problem. What do you mean by JPS? In the code, I don't have any white characters/new lines at the beginning. How should I solve this? thanks Bryan - Original Message - From: Pernica, Jan [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, May 23, 2001 8:42 PM Subject: RE: Urgent question on extra line with Tomcat Jsp JSP send all characters you have written into JPS. So that it passes back all new lines you have used in your code (including all white characters). Jan On Wednesday, May 23, 2001 2:52 PM, wtonetwork.com [SMTP:[EMAIL PROTECTED]] wrote: Dear all, I have encounter a strange behaviour with Tomcat 3.2 When I use jsp to output a line to html or other format. The resulting page will append a line before the content. this make some of my applications work inproperly as they parse the content uncorrectly. Does any one encounter similar situation?? How can I determine if it is the problem of Tomcat or other parts?? Thanks Bryan __ Tato komunikace je urcena vyhradne pro adresata a je duverna. This communication is intended solely for the addressee and is confidential.
problem with /jakarta/isapi_redirect.dll on win2k
Howdy I have looked at the docs, faq and gone throught the list archive, but not found a solution to my particular problem. I have installed tc 3.2.1 on a win2k prof machine with iis 5, running tomcat out of process. I can run tomcat with no problems as a service or as a stand alone executable. I can also load isapi_redirect.dll as a ISAPI filter and it shows the green light. I have tripple checked that the right permissions have been setup on the virtual directory /jakarta, and that it includes execute permissions. Can anyone please help me or point me in the right direction. I get an file not found error when run the examples, BUT I get NO ERROR when I run http://localhost:8080/examples/jsp/index.html. Thanks Rob Now for the problem details: When from my browser I call http://localhost/examples/jsp/index.html;, I get the followinf out put: Not Found (404) Original request: /jakarta/isapi_redirect.dll Not found request: /jakarta/isapi_redirect.dll Web Logfile has the following: 12:52:51 127.0.0.1 W3SVC1 80 GET /jakarta/isapi_redirect.dll 401 12:52:51 127.0.0.1 W3SVC1 80 GET /jakarta/isapi_redirect.dll 200 The output from tomcat: 2001-05-23 03:05:41 - Ctx( ): 404 R( + /jakarta/isapi_redirect.dll + null) null
Re: problem with /jakarta/isapi_redirect.dll on win2k
UNSUBSCRIBE - Original Message - From: Robert, Betts [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, May 23, 2001 9:18 AM Subject: problem with /jakarta/isapi_redirect.dll on win2k Howdy I have looked at the docs, faq and gone throught the list archive, but not found a solution to my particular problem. I have installed tc 3.2.1 on a win2k prof machine with iis 5, running tomcat out of process. I can run tomcat with no problems as a service or as a stand alone executable. I can also load isapi_redirect.dll as a ISAPI filter and it shows the green light. I have tripple checked that the right permissions have been setup on the virtual directory /jakarta, and that it includes execute permissions. Can anyone please help me or point me in the right direction. I get an file not found error when run the examples, BUT I get NO ERROR when I run http://localhost:8080/examples/jsp/index.html. Thanks Rob Now for the problem details: When from my browser I call http://localhost/examples/jsp/index.html;, I get the followinf out put: Not Found (404) Original request: /jakarta/isapi_redirect.dll Not found request: /jakarta/isapi_redirect.dll Web Logfile has the following: 12:52:51 127.0.0.1 W3SVC1 80 GET /jakarta/isapi_redirect.dll 401 12:52:51 127.0.0.1 W3SVC1 80 GET /jakarta/isapi_redirect.dll 200 The output from tomcat: 2001-05-23 03:05:41 - Ctx( ): 404 R( + /jakarta/isapi_redirect.dll + null) null
problem with /jakarta/isapi_redirect.dll on win2k
Howdy I have looked at the docs, faq and gone throught the list archive, but not found a solution to my particular problem. I have installed tc 3.2.1 on a win2k prof machine with iis 5, running tomcat out of process. I can run tomcat with no problems as a service or as a stand alone executable. I can also load isapi_redirect.dll as a ISAPI filter and it shows the green light. I have tripple checked that the right permissions have been setup on the virtual directory /jakarta, and that it includes execute permissions. Can anyone please help me or point me in the right direction. I get an file not found error when run the examples, BUT I get NO ERROR when I run http://localhost:8080/examples/jsp/index.html. Thanks Rob Now for the problem details: When from my browser I call http://localhost/examples/jsp/index.html;, I get the followinf out put: Not Found (404) Original request: /jakarta/isapi_redirect.dll Not found request: /jakarta/isapi_redirect.dll Web Logfile has the following: 12:52:51 127.0.0.1 W3SVC1 80 GET /jakarta/isapi_redirect.dll 401 12:52:51 127.0.0.1 W3SVC1 80 GET /jakarta/isapi_redirect.dll 200 The output from tomcat: 2001-05-23 03:05:41 - Ctx( ): 404 R( + /jakarta/isapi_redirect.dll + null) null
Re: Multiple requests
Hi David! You can commit the response, and then the request will not be resubmitted. But it's difficult, since the problem was that Tomcat is not honoring the requests, to begin with. In iPlanet, you can tell how many requests can be queued; it would be interesting to know whether you can do the same in Tomcat. I know how to configure a thread pool, but not queue size! Un saludo, Alex. David Oxley wrote: I have been load testing our servlet and under high load requests start to take a long time (30secs ish). When a request takes this long a browser resubmits the request automatically. Is there a status I can send to the browser to say that the server is actually doing something and therefore stop duplicate requests coming through, or do I need to do some synchronise code on the session (which seems a little dodgy to me). Thanks. Dave. [EMAIL PROTECTED]
RE: Using = 150 CustomTags on a JSP breaks the VM for all Tomcats (4.0b5/3.2.2b3-b5)
I tried your example and got the same result using JDK1.2.2/Hotspot. When I use a non-hotspot JVM I get an out of memory error. If you haven't already, please submit a bug report about this at http://nagoya.apache.org/bugzilla/ -Original Message- From: Mueller, Franz [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 23, 2001 2:17 AM To: '[EMAIL PROTECTED]' Subject: Using = 150 CustomTags on a JSP breaks the VM for all Tomcats (4.0b5/3.2.2b3-b5) Hi all, I'm facing a showstopper for further usage of tomcat. Placing a lot (=150) custom tags on a JSP brings down the VM on Win-platforms (Win2k and NT4.0 latest SP) (Tested with JDK1.3 and JDK1.3.1 (beta)) The creation of the corresponding java file (from the JSP) and the compilation to the class-file seems to work, but the execution breaks. The error message is: # # HotSpot Virtual Machine Error, Internal Error # Please report this error at # http://java.sun.com/cgi-bin/bugreport.cgi # # Error ID: 47454E45524154452F4F502D41500E435050084B # # Problematic Thread: prio=5 tid=0x8ebd470 nid=0x54c runnable # The same JSP works fine under JRUN3.1 (SP2). I'm attaching the war with the test case. It contains the JSP (TagTest.jsp). The tag which is used in this JSP is the html:Img-Tag from the Struts project (1.0 b2). Actually the problem is related to any custom-tags. I've used the one from Struts, just to be sure that the problem is not related to my tags. Any help will be wellcome, Thanks, fm
Help needed to start tomcat 4 beta 4
I am trying to run tomcat 4 beta 4 on two different systems and am unable to do so on either of them I would really appreciate if I could get some advice on this. In both cases no change has been made to the server.xml file The first system is a Win 98 system with the following configuration Autoexec.bat: PATH C:\WINDOWS;C:\WINDOWS\COMMAND;D:\jdk1.3\bin; SET TOMCAT_HOME=c:\tc4b4 SET JAVA_HOME=D:\jdk1.3 SET CLASSPATH=. shell environment memory has been set via the dos window shortcut to 4096 On Running the startup.bat file 1) the following message appears Using CLASSPATH: ..\bin\bootstrap.jar;D:\jdk1.3 \lib\tools.jar 2) a 2nd Dos Window opens with the following message Starting service Tomcat-Standalone Apache Tomcat/4.0-b4 Starting service Tomcat-Apache Apache Tomcat/4.0-b4 Now when I try to access the following URL http://localhost:8080/ it is inaccessible The 2nd system is a Windows NT Workstation 4 SP 3 with the following configuration: COMPUTERNAME=FW ComSpec=D:\WINNT\system32\cmd.exe HOMEDRIVE=D: HOMEPATH=\ JAVA_HOME=D:\jdk1.3 LOGONSERVER=\\FW NUMBER_OF_PROCESSORS=1 OS=Windows_NT Os2LibPath=D:\WINNT\system32\os2\dll; Path=D:\WINNT\system32;D:\WINNT; D:\jdk1.3\bin PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH PROCESSOR_ARCHITECTURE=x86 PROCESSOR_IDENTIFIER=x86 Family 5 Model 4 Stepping 4, GenuineIntel PROCESSOR_LEVEL=5 PROCESSOR_REVISION=0404 PROMPT=$P$G SystemDrive=D: SystemRoot=D:\WINNT TEMP=D:\TEMP TMP=D:\TEMP TOMCAT_HOME=D:\tc4b4 USERDOMAIN=FW USERNAME=Administrator USERPROFILE=D:\WINNT\Profiles\Administrator.002 windir=D:\WINNT D:\path PATH=D:\WINNT\system32;D:\WINNT; D:\jdk1.3\bin On Running the startup.bat file 1) the following message appears Using CLASSPATH: ..\bin\bootstrap.jar;D:\jdk1.3 \lib\tools.jar 2) a 2nd Dos Window opens with the following message Starting service Tomcat-Standalone Apache Tomcat/4.0-b4 Starting service Tomcat-Apache Apache Tomcat/4.0-b4 Now when I try to access the following URL http://localhost:8080/ it is inaccessible looking forward to a solution Anwar
Multiple contexts under IIS on different virtual hosts.
I'm trying to get multiple contexts on the same machine, under different hosts. To explain what I'm trying to do: Let's say I have a machine called HAL. I have two sites hosted on it, let's call them www.site1.com and www.site2.com. I want to have a Tomcat context on each, let's say /foo, so that requests to www.site1.com/foo/xxx.jsp and www.site2.com/foo/xxx.jsp will be redirected to Tomcat. I'm not sure about the way to set up IIS so that this will happen...do I set up the jakarta filter and virtual dir on Default Web Site, or do I put these on each virtual web site in IIS? And if so, do I have to name them uniquely? Or do I have to do something even weirder, like have Tomcat set up in different directories. Maybe I'm doing something really dumb, but I just can't figure out what is going on, as I can't get this to work. Thanks, Sean
lb-problem with mod_jk: high cpu load on apache when tomcat breaks down
Hello tomcat-users, We are having a problem with mod_jk and load balancing. Does anyone else have had similar problems with that kind of architecture setup? Our System: === Alteon switch (round robin) | | three Apache 1.3.19 on three SPARC-Servers (called s1,s2,s3)(3 CPU, 3 GB) | |each: mod_jk with lb (in case of s1: 1*s1,0.001*s2,0.001*s3) | | | two tomcats-3.2.1 on each server (jdk1.2.2, native threads, -Xms50M -Xoss4M -Xss4M -Xmx600M) We chose this architecture because the alteon is not able to perform session tracking properly. The Problem: On startup, the system works fine. Each java-Process has about 1-8% CPU load. After one day or so, one tomcat takes 40% CPU load or more. I think the reason is inside our applications. But thats not the error I want to post: After the error of a tomcat, the httpd-processes on EACH Server begin to take a lot of CPU time (8-30% each). In server-status I can see that the processes are waiting for a response of that tomcat. Of course I want to have a fault tolerance, but when I have a problem with one server, the other servers go down too. Did/Does anyone have the same problem and/or a similar system architecture? Maybe anyone solved that problem? Greetings and thanks in advance, Timo Carl begin:vcard n:Carl;Timo tel;fax:++49/40/3703-7759 tel;work:++49/40/3703-7275 x-mozilla-html:FALSE url:http://www.travelchannel.de org:G+J travelchannel;Technik version:2.1 email;internet:[EMAIL PROTECTED] adr;quoted-printable:;;Am Baumwall 11=0D=0AD-20459 Hamburg fn:Timo Carl end:vcard
How do you make Apache to access remote tomcat with mod_jk ?
Hi ! Valeriy told it's possible to access remote tomcat server from Apache. I guess configuration is necessary in tomcat.conf and mod_jk.conf. If possible could someone tell me what propeties are the one to configure. Would be great help! Thank you
Re: Help needed to start tomcat 4 beta 4
Check server.xml: Connector className=org.apache.catalina.connector.http.HttpConnector port=8080 minProcessors=5 maxProcessors=75 acceptCount=10 debug=0 connectionTimeout=6/ maybe you not set port=8080 - Original Message - From: wasims@comsats [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, May 23, 2001 10:28 PM Subject: Help needed to start tomcat 4 beta 4 I am trying to run tomcat 4 beta 4 on two different systems and am unable to do so on either of them I would really appreciate if I could get some advice on this. In both cases no change has been made to the server.xml file The first system is a Win 98 system with the following configuration Autoexec.bat: PATH C:\WINDOWS;C:\WINDOWS\COMMAND;D:\jdk1.3\bin; SET TOMCAT_HOME=c:\tc4b4 SET JAVA_HOME=D:\jdk1.3 SET CLASSPATH=. shell environment memory has been set via the dos window shortcut to 4096 On Running the startup.bat file 1) the following message appears Using CLASSPATH: ..\bin\bootstrap.jar;D:\jdk1.3 \lib\tools.jar 2) a 2nd Dos Window opens with the following message Starting service Tomcat-Standalone Apache Tomcat/4.0-b4 Starting service Tomcat-Apache Apache Tomcat/4.0-b4 Now when I try to access the following URL http://localhost:8080/ it is inaccessible The 2nd system is a Windows NT Workstation 4 SP 3 with the following configuration: COMPUTERNAME=FW ComSpec=D:\WINNT\system32\cmd.exe HOMEDRIVE=D: HOMEPATH=\ JAVA_HOME=D:\jdk1.3 LOGONSERVER=\\FW NUMBER_OF_PROCESSORS=1 OS=Windows_NT Os2LibPath=D:\WINNT\system32\os2\dll; Path=D:\WINNT\system32;D:\WINNT; D:\jdk1.3\bin PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH PROCESSOR_ARCHITECTURE=x86 PROCESSOR_IDENTIFIER=x86 Family 5 Model 4 Stepping 4, GenuineIntel PROCESSOR_LEVEL=5 PROCESSOR_REVISION=0404 PROMPT=$P$G SystemDrive=D: SystemRoot=D:\WINNT TEMP=D:\TEMP TMP=D:\TEMP TOMCAT_HOME=D:\tc4b4 USERDOMAIN=FW USERNAME=Administrator USERPROFILE=D:\WINNT\Profiles\Administrator.002 windir=D:\WINNT D:\path PATH=D:\WINNT\system32;D:\WINNT; D:\jdk1.3\bin On Running the startup.bat file 1) the following message appears Using CLASSPATH: ..\bin\bootstrap.jar;D:\jdk1.3 \lib\tools.jar 2) a 2nd Dos Window opens with the following message Starting service Tomcat-Standalone Apache Tomcat/4.0-b4 Starting service Tomcat-Apache Apache Tomcat/4.0-b4 Now when I try to access the following URL http://localhost:8080/ it is inaccessible looking forward to a solution Anwar
RE: Multiple requests
This isn't the problem. Tomcat is calling my servlet, but because the machine is so busy it is taking a long time to construct the response, and hence the request is resubmitted before it has sent back the response. I need a way to tell the browser that the server has received the request and that a response will be along shortly. Is this what the SC_CONTINUE header does, or is there another header I can send. Thanks. Dave [EMAIL PROTECTED] -Original Message- From: Alex Fernández [mailto:[EMAIL PROTECTED]] Sent: 23 May 2001 14:50 To: [EMAIL PROTECTED] Subject: Re: Multiple requests Hi David! You can commit the response, and then the request will not be resubmitted. But it's difficult, since the problem was that Tomcat is not honoring the requests, to begin with. In iPlanet, you can tell how many requests can be queued; it would be interesting to know whether you can do the same in Tomcat. I know how to configure a thread pool, but not queue size! Un saludo, Alex. David Oxley wrote: I have been load testing our servlet and under high load requests start to take a long time (30secs ish). When a request takes this long a browser resubmits the request automatically. Is there a status I can send to the browser to say that the server is actually doing something and therefore stop duplicate requests coming through, or do I need to do some synchronise code on the session (which seems a little dodgy to me). Thanks. Dave. [EMAIL PROTECTED]
Threads please help
I'm having problems doing 16 or more simultaneous access of Tomcat 3.2.1 on NT I tried to hit http://localhost:8080/ with 16 or more threads. And I get connection refused for the requests after 15. Is there a limit to the number of concurrent connections? If so, how can I change it? (or is that not recommended?) Is this a NT thing? Does anyone else see this? I tried Apache and it has no problems with 100 simultaneous threads. Preemptive thanks, Han
AW: Urgent question on extra line with Tomcat Jsp
If you have something like: %! % jsp:useBean ... /jsp:useBean % % html /html There will be 3 empty lines in the result before html. To avoid that you have to format your code like that: %! %jsp:useBean ... /jsp:useBean% %html -Ursprungliche Nachricht- Von: wtonetwork.com [mailto:[EMAIL PROTECTED]] Gesendet: Mittwoch, 23. Mai 2001 15:37 An: [EMAIL PROTECTED] Betreff: Re: Urgent question on extra line with Tomcat Jsp snip/ I have encounter a strange behaviour with Tomcat 3.2 When I use jsp to output a line to html or other format. The resulting page will append a line before the content. this make some of my applications work inproperly as they parse the content uncorrectly. Does any one encounter similar situation?? How can I determine if it is the problem of Tomcat or other parts?? snip/
Re: Redhat 7.1 ApacheTomcat How-to (long)
It doesn't seem to be the problem. So far I've managed building my own mod_jk.so and starting Apache with it (I don't have any problem at Apache startup unlike days before). Now It seems like Apache doesn't recognize /examples as a Tomcat directory, it's the same message as I doesn't use Tomcat. I'd like to know the moment Apache connects with Tomcat either using 8007 port or 8009 port, because obviously, my mod_jk.so is not working there. On May 22, 2001 09:44 am, you wrote: Now I have the following message when I try to access to http://localhost/examples Forbidden You don't have permission to access /examples on this server. You should have something similar to the following in your $TOMCAT_HOME/conf/mod_jk.conf # # Auto configuration for the /examples context starts. # # # The following line makes apache aware of the location of the /examples context # Alias /examples /usr/local/jakarta-tomcat- 3.2.1/webapps/examples Directory /usr/local/jakarta-tomcat- 3.2.1/webapps/examples Options Indexes FollowSymLinks /Directory # # The following line mounts all JSP files and the /servlet/ uri to tomcat # JkMount /examples/servlet/* ajp12 JkMount /examples/*.jsp ajp12 # # The following line prohibits users from directly accessing WEB-INF # Location /examples/WEB-INF/ AllowOverride None deny from all /Location # # The following line prohibits users from directly accessing META-INF # Location /examples/META-INF/ AllowOverride None deny from all /Location ### # Auto configuration for the /examples context ends. ### Do I have to edit my httpd.conf file and add /examples?? I'd suggest adding any desiered contexts to your $TOMCAT_HOME/conf/mod_jk.conf. Neil --
RE: Multiple contexts under IIS on different virtual hosts.
I know it's bad form to follow up to your own message, but I found the problem almost as soon as I posted this...I needed to restart the whole IIS service, not just the virtual web site. -Original Message- From: Sean LeBlanc [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 23, 2001 8:31 AM To: TomCat Subject: Multiple contexts under IIS on different virtual hosts. I'm trying to get multiple contexts on the same machine, under different hosts. To explain what I'm trying to do: Let's say I have a machine called HAL. I have two sites hosted on it, let's call them www.site1.com and www.site2.com. I want to have a Tomcat context on each, let's say /foo, so that requests to www.site1.com/foo/xxx.jsp and www.site2.com/foo/xxx.jsp will be redirected to Tomcat. I'm not sure about the way to set up IIS so that this will happen...do I set up the jakarta filter and virtual dir on Default Web Site, or do I put these on each virtual web site in IIS? And if so, do I have to name them uniquely? Or do I have to do something even weirder, like have Tomcat set up in different directories. Maybe I'm doing something really dumb, but I just can't figure out what is going on, as I can't get this to work. Thanks, Sean
Re: Multiple requests
So, just to clarify: The request arrives, Tomcat processes it and sends it to your servlet. You do: response.setContentType(text/html); // commits the response response.flushBuffer(); and, while your servlet thinks what it must send next, the browser resends the response. Is this the case? What browser is it? Mine (Netscape Communicator 4.7) does not. Un saludo, Alex. David Oxley wrote: This isn't the problem. Tomcat is calling my servlet, but because the machine is so busy it is taking a long time to construct the response, and hence the request is resubmitted before it has sent back the response. I need a way to tell the browser that the server has received the request and that a response will be along shortly. Is this what the SC_CONTINUE header does, or is there another header I can send. Thanks. Dave [EMAIL PROTECTED] -Original Message- From: Alex Fernández [mailto:[EMAIL PROTECTED]] Sent: 23 May 2001 14:50 To: [EMAIL PROTECTED] Subject: Re: Multiple requests Hi David! You can commit the response, and then the request will not be resubmitted. But it's difficult, since the problem was that Tomcat is not honoring the requests, to begin with. In iPlanet, you can tell how many requests can be queued; it would be interesting to know whether you can do the same in Tomcat. I know how to configure a thread pool, but not queue size! Un saludo, Alex. David Oxley wrote: I have been load testing our servlet and under high load requests start to take a long time (30secs ish). When a request takes this long a browser resubmits the request automatically. Is there a status I can send to the browser to say that the server is actually doing something and therefore stop duplicate requests coming through, or do I need to do some synchronise code on the session (which seems a little dodgy to me). Thanks. Dave. [EMAIL PROTECTED]
problem to handle sessions with Tomcat
Hello Here I face a problem with Apache1.3.14+Tomcat3.2.1 . I am building up a login module in which the process flows like: login.jsp--LoginServlet--login_success.jsp. In the servlet , on the successful login , i am initiating a session and putting some values. But I am not able to get back the same vakues in the login_success.jsp. In fact the session id of the session initiated in the servlet and the same of the session retrieved in jsp are different. I have tested the code in JavaWebserver2.0 and also in the same Tomcat-Apache environment at some other place.In both the case the problem did not arise. So i guess in my environmental set up , i missed out some configuration. But nobody yet able to point out exactly what configuration is missing and what is the remedy. I am using JDK1.2.2 on WIN2K and Oracle8i. The problem persists even after complete reinstallation of everything. If somebody already faced it and knows the solution, please help me as soon as possible. Regards and best wishes Sibendu
RE: Apache and remote tomcat server
We got this working by replicating the tomcat directory structure on the apache box. the reason for this lies somewhere in the way MOD_DIR and AUTO_INDEXING work. A good example of what i mean follows for the below to work you would have to have a /test directory on you apache server. even if you did not have any data in it. When mod_dir checks to see if a directory exists it does not for some reason transverse accross the plugin but only the local filesystem based upon your DOC_ROOT directory. On you tomcat server you would create a directory called test inside the ROOT directory of jakarta-tomcat /usr/local/jakarta-tomcat/webapps/ROOT/test This is where you JSP's would go. You will also need to modify you workers.properties file and put a copy of it on the apache server. the particular line that is important for this is the host line. It is set by default to be "localhost" change it to the machine that is your tomcat server. IfModule mod_jk.c JkWorkersFile /usr/local/apache/conf/workers.properties JkLogFile logs/jk.log JkLogLevel warn JkMount /*.jsp ajpB12 JkMount /test/servlet/* ajpB12 JkMount /test/*.jsp ajpB12 Alias /test "/usr/local/jakarta-tomcat/webapps/test" Directory "/usr/local/jakarta-tomcat/webXpps/test" Options Indexes FollowSymLinks /Directory Alias /test "/usr/local/jakarta-tomcat/webapps/ROOT/test" Directory "/usr/local/jakarta-tomcat/webXpps/ROOT" Options Indexes FollowSymLinks /Directory /IfModule This is the only way we have found that allow mod_jk to work correctly with tomcat and apache. if some else on this list has gotten this to work, possibly a more correct way please post it to the list. If this is the correct way please let me know i have not been able to find ANY documentation pertaining to the setup of mod_jk using remote workers. Good luck with this, Israel -Original Message- From: Y Toshiko [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 22, 2001 10:46 PM To: [EMAIL PROTECTED] Subject: Apache and remote tomcat server I've going through the archives and discovered many messages relating to this problem. As in "mod_jk and remote tomcat server" (25 Apr 2001), Jserv enables Apache to access remote tomcat. Is it possible to do the same thing with mod_jk? Any advise or information is appreciated. Toshiko -- Note: The information contained in this message may be privileged and confidential and protected from disclosure. If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by replying to the message and deleting it from your computer. Thank you. --
RE: 3.2.1 Dies
Someone about a month ago mentioned that this was a bug in Tomcat where it chokes when the max threads is exceeded. I've had the same problem with load testing that I've done and increasing the max threads worked for the number of threads I had. Unfortunately, this fix in not scaleable... bill -Original Message- From: Thom Park [mailto:[EMAIL PROTECTED]] Sent: Monday, May 21, 2001 4:25 PM To: [EMAIL PROTECTED] Subject: Re: 3.2.1 Dies I wasn't able to check for dead threads - My symptom was that the tomcat process would 'hang' and no longer process connections. I never got it to crash per se, but it sure stopped on me real good... Increasing the pool size resolved the problem, specifically the following parameters (neatly copied from the tomcat users guide) Parameter name=max_threads value=30/ Parameter name=max_spare_threads value=20/ Parameter name=min_spare_threads value=5 / The values were arbitrary - I stuck mine up to max_threads = 200, max_spare_threads=20, min_spare_threads=20 and lo - the hang problem went away. It seems to me that when tomcat (3.2.1) get's pressed for thread resources, it doesn't do a very good job of recovering from this. I would have thought that having a min_spare_threads set to some non-zero value, that there would still be some spare threads for clean up work to be performed but, as far as I can tell, when you max out your threads, your stuck pending a reboot. -Thom Hunter Hillegas wrote: How can I check to see if I have a lot of dead threads? Hunter From: Devon Ziegler [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] Date: Mon, 21 May 2001 16:43:04 -0400 To: [EMAIL PROTECTED] Subject: RE: 3.2.1 Dies Interesting.used up all free threads.increase thread pool. shouldn't users just have to wait for a free thread if they hit the pool limit? Increasing it should let more requests be handled simultaneously, but how would it help longevity? I'm not saying it won't. Just skeptical. That said, I seem to lose threads with tomcat 3.2.1 on Linux 2.2.14 using Sun's 1.3 JDK. What I mean is that dead threads pile up WELL in excess of the thread pool limit. These threads don't seem to handle requests any more. Tomcat slows down quite noticeably too. I'm not sure I have ever left it up long enough to know if it might just die after enough threads pile up(well, it definitely would when it hit the OS' thread limit). Are you seeing far more threads than you would expect (well in excess of the pool size)? Maybe we are suffering from the same malady. -- http://www.borland.com/newsgroups http://www.borland.com/devsupport/disclaim.html
Re: tomcat4 / apache 1.3.x integration problem
Markus Mailinglists wrote: Hello! Like some others I have a problem with connecting the tomcat 4 (beta 4 or 5) with the apache 1.3.19. The computer is a solaris 8 (sparc) system with jdk1.3 and a gcc compiler I could successfully compile a mod_webapp.so file. Although after copying it to the apache/libexec folder and running apachectl configtest I get the error: libapr.so.0: symbol __eprintf: referenced symbol not found Can anyone help me with this error message? Probably some flags missing, have a look in APRVARS... I have EXTRA_CFLAGS=-g -mt but I am not using the gcc. For compiling the mod_webapp.so I had to compile the apr package from apache. My guess is, that I don't have the matching version of it. On http://apr.apache.org/ I just go tthe latest snapshot apr_20010523060225.tar.gz Is this a good one? Is there somewhere a ready distribution tar? And which one works with tomcat4. Any help is appreciated, Markus Albrecht Email: [EMAIL PROTECTED]
NT problem : Tomcat service stops when user logs out of NT
Title: SSL support for Tomcat 3.2.1 with IIS I know this is in the archives somewhere but I cannot find it. Is there a problem when running the Tomcat wrapper jk_nt_service.exe with JDK/JRE 1.3? If I remember correctly, the problem is that if you start the service and then you log out of NT, the service is shutdown. And, supposedly, this is not a problem when using JDK/JRE 1.3. If this is indeed a problem, are there any suggestions as to how to run tomcat as a service in the JDK/JRE 1.3 environment? Has anyone had luck with the JavaService app? thanks, ron
I am looking for a comprehensive set of documentation.
Title: I am looking for a comprehensive set of documentation. Is there anything available in print? Is there more than what is included, the overview stuff? Thanks in advance, Fred
Re: 3.2.1 Dies
Yeah, I'm still having problems in this area. Is 3.2.2 improved? I've seen a few messages about thread dead-lock problems lately on 3.2.2... I'm now logging the output of the tomcat.sh script so I should see if it is OutOfMemory or whatever when everything dies... Hunter From: Bill Graham [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] Date: Wed, 23 May 2001 09:14:09 -0700 To: [EMAIL PROTECTED] Subject: RE: 3.2.1 Dies Someone about a month ago mentioned that this was a bug in Tomcat where it chokes when the max threads is exceeded. I've had the same problem with load testing that I've done and increasing the max threads worked for the number of threads I had. Unfortunately, this fix in not scaleable... bill
Which connector is correct for Tomcat4b5 Apache 1.3.19 ?
When using Tomcat 4b5, which "connector" is the one that I should use to connect Tomcat with Apache 1.3.19 for WinNT4? I have looked extensively through documentation and archives but cannot determine which connector to use. The server.xml file that comes with Tomcat4b5 has this quoted reference: "The MOD_WEBAPP connector is used to connect Apache 1.3 with Tomcat 4.0 as its servlet container. This is built by following these steps: - cd {TOMCAT-SRC-HOME}/connectors - make - (Edit "Makedefs" as needed for your installation) - make - su root - cp connectors/apache-1.3/mod_webapp.so {APACHE_HOME}/libexec - exit To configure the Apache side, you must ensure that you have a "ServerName" directive defined in "httpd.conf". Then, lines like these to the bottom of your "httpd.conf" file: LoadModule webapp_module libexec/mod_webapp.so WebAppConnection warpConnection warp localhost:8008 WebAppMount examples warpConnection /examples/ Finally, modify the "defaultHost" attribute in the "Engine" directive below to match the "ServerName" setting defined in "https.conf". The next time you restart Apache (after restarting Tomcat, if needed) the connection will be established, and all applications you make visible via "WebAppMount" directives can be accessed through Apache. " From what I gather from this comment, mod_webapp is what the authors of Catalina want me to use, especially since mod_webapp is the only connector in the src. Also, this message in the release notes: " MOD_WEBAPP Connector: " "A new version of the Apache 1.3 side of the MOD_WEBAPP connector is included in this release, in the "connectors" directory. It has not been tested heavily yet, so it should be considered experimental." Yet I see many references within the mail list regarding mod_jk or mod_jserv, and almost nothing regarding mod_webapp. Is anyone using it? Is there some documentation site on mod_webapp that I can visit? (I found nothing about it one the Jakarta web site.) Any *gotchas* with regards to this? I would deeply appreciate any experience or insights that users might have. Thanks in advance. -Christian Christian Rudolph Software Engineer NewsEdge Corporation 80 Blanchard Road Burlington, MA 01803 [EMAIL PROTECTED]
RE: NT problem : Tomcat service stops when user logs out of NT
Title: SSL support for Tomcat 3.2.1 with IIS Ronald, The archives for this mailing list are in: http://mikal.org/interests/java/tomcat/index.jsp -Christian -Original Message-From: Ronald G. Louzon [mailto:[EMAIL PROTECTED]]Sent: Wednesday, May 23, 2001 12:38 PMTo: '[EMAIL PROTECTED]'Subject: NT problem : Tomcat service stops when user logs out of NT I know this is in the archives somewhere but I cannot find it. Is there a problem when running the Tomcat wrapper jk_nt_service.exe with JDK/JRE 1.3? If I remember correctly, the problem is that if you start the service and then you log out of NT, the service is shutdown. And, supposedly, this is not a problem when using JDK/JRE 1.3. If this is indeed a problem, are there any suggestions as to how to run tomcat as a service in the JDK/JRE 1.3 environment? Has anyone had luck with the JavaService app? thanks, ron
How to fix ClassCastException in Windows
When trying to execute Tomcat4.0-b5 from DOS, I received ClassCastExceptions. After searching the mail, I saw someone mention that classes loaded by different classloaders are treated as different classes even though the names may match. I made the following changes to 'catalina.bat' and it works now. 1) Explicitly added every .jar or directory to source/.class to classpath defined in catalina.bat 2) Changed the start class from org.apache.catalina.startup.BootStrap to org.apache.catalina.startup.Catalina 3) No .jar files in magic directories server/lib or common/lib. Don't know if this matters. __ Do You Yahoo!? Yahoo! Auctions - buy the things you want at great prices http://auctions.yahoo.com/
RE: Basic Doubt
Try making a request just like you would on port 8080, something like: http://Hostname:80/vitualroot/servlet/Servletname The way it works is, when Tomcat stars up, it recreates it's mod_jk.conf file each time. It puts in there all the subdirectories that are under it's webapps directory as virtual directories. Thus if you want to access the file: /%tomcat_home%/webapps/testsite/index.html through Apache and Tomcat you would make the request to: http://Hostname/testsite/index.html Because inside the mod_jk.conf there is redirector on the path testsite that passes that request to Tomcat. See if that works. Nathan -Original Message- From: Venkatesh Sangam [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 22, 2001 6:18 PM To: [EMAIL PROTECTED] Subject: RE: Basic Doubt Hi Nathan, I made the request on port 80 by saying http://hostname:80/ and the apache default page is dispayed .. does this mean that both apache and tomcat are working fine .. in what cases does the request is serverd by tomcat .. how do I access servlets without using the port number ?? Do I have to make changes in web.xml file to include servlet thanks Venkatesh From: Nathan Brown [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: RE: Basic Doubt Date: Tue, 22 May 2001 17:46:05 -0700 Venkatesh, Tomcat listens for activity on several ports (depending on how you configure it). The ports of most concert are: 8080 Http Request Handler 8007 Ajp12 Connection Handler Depending on the Apache module you use (JServe or mod_JK)will dictate which port the connection will pass through. But if you make a request directly to 8080 it will be Tomcat that answers, not Apache. Try making the same request on port 80 and see what happens. If Apache gives you a 404, then I would guess you don't have the Apache module installed correctly. Make sure you have either jserve or mod_jk installed in the apache module directory and that you have added something to the effect of: include /usr/local/tomcat/conf/mod_jk.conf or the equivalent for your os and install path. Hope that helps, Nathan -Original Message- From: Venkatesh Sangam [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 22, 2001 4:51 PM To: [EMAIL PROTECTED] Subject: Basic Doubt Hi, I am using Apache with Tomcat .. how are the requests shared between apache and Tomcat .. If I access the servlet as http://Hostname:8080/servlet/Servletname ..will the request be served by tomcat or Apache .. In what cases the request is served by Apache thnaks Venkatesh _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
Include question...
Is this possible (see CODE)? I have a file that depends on the query string for display. Can I have include files based on that query string too? If action=edit show the data in form fields otherwise show it in formatted text. When the files are included vs. when the page is compiled and executed (see EXCEPTION). Thanks peops! EXCEPTION Unable to compile class 'try' without 'catch' or 'finally' but I dont have any exception handling in the page. /EXCEPTION CODE % if(action.equals(edit)){ % %@ include file=includes/edit_staff.jsp% % }else{ % %@ include file=includes/view_staff.jsp% % } % /CODE Kyle Burke
mod_jserv.so or mod_jserv_tomcat.so?
Just trying to figure out which I should be using for Tomcat 3.2.1 since the documentation explains building mod_jserv but if I look at the already compiled dir (http://jakarta.apache.org/tomcat/tomcat-3.2-doc/uguide/tomcat_ug.html) I only see mod_jk.so and mod_jserv_tomcat.so. If I use these, how does this affect my tomcat.conf file? Instead of having: IfModule mod_jserv.c Should it be: IfModule mod_jserv_tomcat.c Or... IfModule mod_jk.c Also, I tried building mod_jserv (on Redhat 7.0 with gcc version 2.96 2731) but it dies at the end, so that's why I headed to the already compiled versions: $ apxs -c -o mod_jserv.so *.c gcc -DLINUX=2 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/usr/local/apache/include -c autochange.c gcc -DLINUX=2 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/usr/local/apache/include -c jserv_ajpv11.c gcc -DLINUX=2 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/usr/local/apache/include -c jserv_ajpv12.c gcc -DLINUX=2 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/usr/local/apache/include -c jserv_balance.c gcc -DLINUX=2 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/usr/local/apache/include -c jserv_image.c gcc -DLINUX=2 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/usr/local/apache/include -c jserv_mmap.c gcc -DLINUX=2 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/usr/local/apache/include -c jserv_protocols.c gcc -DLINUX=2 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/usr/local/apache/include -c jserv_status.c gcc -DLINUX=2 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/usr/local/apache/include -c jserv_utils.c gcc -DLINUX=2 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/usr/local/apache/include -c jserv_watchdog.c gcc -DLINUX=2 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/usr/local/apache/include -c jserv_wrapper.c gcc -DLINUX=2 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/usr/local/apache/include -c jserv_wrapper_unix.c gcc -DLINUX=2 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/usr/local/apache/include -c jserv_wrapper_win.c gcc -DLINUX=2 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/usr/local/apache/include -c mod_jserv.c -o mod_jserv.so mod_jserv.o jserv_wrapper_win.o jserv_wrapper_unix.o jserv_wrapper.o jserv_watchdog.o jserv_utils.o jserv_status.o jserv_protocols.o jserv_mmap.o jserv_image.o jserv_balance.o jserv_ajpv12.o jserv_ajpv11.o autochange.o apxs:Break: Command failed with rc=16777215
RE: Multiple requests
I am not doing the flushBuffer(). But apart from that, that is what I am doing. Will the flushBuffer() prevent the browser from doing its subsequent request. We are using IE5. Dave [EMAIL PROTECTED] -Original Message- From: Alex Fernández [mailto:[EMAIL PROTECTED]] Sent: 23 May 2001 16:34 To: [EMAIL PROTECTED] Subject: Re: Multiple requests So, just to clarify: The request arrives, Tomcat processes it and sends it to your servlet. You do: response.setContentType(text/html); // commits the response response.flushBuffer(); and, while your servlet thinks what it must send next, the browser resends the response. Is this the case? What browser is it? Mine (Netscape Communicator 4.7) does not. Un saludo, Alex. David Oxley wrote: This isn't the problem. Tomcat is calling my servlet, but because the machine is so busy it is taking a long time to construct the response, and hence the request is resubmitted before it has sent back the response. I need a way to tell the browser that the server has received the request and that a response will be along shortly. Is this what the SC_CONTINUE header does, or is there another header I can send. Thanks. Dave [EMAIL PROTECTED] -Original Message- From: Alex Fernndez [mailto:[EMAIL PROTECTED]] Sent: 23 May 2001 14:50 To: [EMAIL PROTECTED] Subject: Re: Multiple requests Hi David! You can commit the response, and then the request will not be resubmitted. But it's difficult, since the problem was that Tomcat is not honoring the requests, to begin with. In iPlanet, you can tell how many requests can be queued; it would be interesting to know whether you can do the same in Tomcat. I know how to configure a thread pool, but not queue size! Un saludo, Alex. David Oxley wrote: I have been load testing our servlet and under high load requests start to take a long time (30secs ish). When a request takes this long a browser resubmits the request automatically. Is there a status I can send to the browser to say that the server is actually doing something and therefore stop duplicate requests coming through, or do I need to do some synchronise code on the session (which seems a little dodgy to me). Thanks. Dave. [EMAIL PROTECTED]
IIS (Pws) default website and the tomcat context path.
Hi, I am using personnel web server. I have set up the pws default website to one of my tomcat context directories. I get my login.jsp (which I have set it as default). When I say submit, I get the following error. If I don't use the default website, but instead create a virtual directory and point to my tomcat context directory, then everything is fine. Is this issue already discussed? If so, point me to those messages. -Aswath -- HTTP Error 405 405 Method Not Allowed The method specified in the Request Line is not allowed for the resource identified by the request. Please ensure that you have the proper MIME type set up for the resource you are requesting. Please contact the server's administrator if this problem persists. --- _ Get your FREE download of MSN Explorer at http://explorer.msn.com
JSP to Servlet Loosing Session Info
I noticed some posts about people having problems loosing the session information when using JSPs with servlets. For examples if I did the following in a JSP: FORM ACTION=/servlet/com.mycom.MyServlet ... when MyServlet got control, the Session was empty. I found out that if I did this the right way and defined the servlet in my web.xml, e.g., servlet servlet-nametheServlet/servlet-name servlet-classcom.mycom.MyServlet/servlet-class /servlet servlet-mapping servlet-nametheServlet/servlet-name url-patternsomeServlet/url-pattern /servlet-mapping and in the JSP said: FORM ACTION=someServlet ... then all worked fine. You may have to adjust the path a bit depending upon where your JSP is, etc. The Tomcat mapping trace can help you debug mapping problems. This seems like it is a Tomcat bug, but the above is not only a workaround, but a more maintainable way of doing things. Frank Lawlor Athens Group, Inc. (512) 345-0600 x151 Athens Group, an employee-owned consulting firm integrating technology strategy and software solutions.
RE: Include question...
This was an 'Internal Servlet Error' by the way. Stack trace follows. Thanks. Internal Servlet Error: org.apache.jasper.JasperException: Unable to compile class for JSPD:\tomcat\work\localhost_8080%2Fadmin\_0002faboutus_0002fedit_0005fstaff_ 0002ejspedit_0005fstaff_jsp_25.java:140: 'catch' without 'try'. } catch (Exception ex) { ^ D:\tomcat\work\localhost_8080%2Fadmin\_0002faboutus_0002fedit_0005fstaff_000 2ejspedit_0005fstaff_jsp_25.java:149: 'try' without 'catch' or 'finally'. } ^ D:\tomcat\work\localhost_8080%2Fadmin\_0002faboutus_0002fedit_0005fstaff_000 2ejspedit_0005fstaff_jsp_25.java:149: '}' expected. } ^ 3 errors at org.apache.jasper.compiler.Compiler.compile(Compiler.java:254) at org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:462) at org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java:146) at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:433) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspSe rvlet.java:152) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja va:164) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391) 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:79 7) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743) at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC onnectionHandler.java:210) 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) -Original Message- From: Kyle Burke [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 23, 2001 1:40 PM To: Tomcat-Users Subject: Include question... Is this possible (see CODE)? I have a file that depends on the query string for display. Can I have include files based on that query string too? If action=edit show the data in form fields otherwise show it in formatted text. When the files are included vs. when the page is compiled and executed (see EXCEPTION). Thanks peops! EXCEPTION Unable to compile class 'try' without 'catch' or 'finally' but I dont have any exception handling in the page. /EXCEPTION CODE % if(action.equals(edit)){ % %@ include file=includes/edit_staff.jsp% % }else{ % %@ include file=includes/view_staff.jsp% % } % /CODE Kyle Burke
RE: Thread deadlocking in 3.2.2 beta 5?
Joel, I put Tomcat 3.2.2b5 on a dual processor NTServer box. I've been beating on it all morning with JMeter using a sequence of JSPs and servlets from the examples webapp that ships with Tomcat. Several times while the stress test is running I touch to update the timestamp on all the JSP files to force a re-compile. So far its been running fine and I haven't seen any thread hang problems. I'd be interested to know if you can duplicate the deadlock problem on your system using the stuff from the examples webapp? -Original Message- From: Joel Kozlow [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 22, 2001 6:58 PM To: '[EMAIL PROTECTED]' Subject: RE: Thread deadlocking in 3.2.2 beta 5? Hello Marc, You and I think alike :). I have already upgraded the single processor Server to 3.2.2 beta 5. I ran a battery of tests at it to simulate heavy load. So far, there are no thread deadlocking errors reported. Thus, I think you are correct in your assessment that this may have something to do with a multi-processor server. However, before we go too far down this road, I thought I would see if any one else is running Tomcat on a multi-processor box with NT 4? I would also be happy to help out in diagnosing this problem. Again, if we confirm that no one else has really tested a multi-processor environment, I can take the following steps: * Install Tomcat 3.2.2 beta 5 on a development server * Run the product with debug logging * If necessary, run the entire server in a JBuilder debug session * Provide any test results that you request Please let me know how I may be of further assistance. Thank you again for your help. Best regards, Joel Kozlow -Original Message- From: Marc Saegesser [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 22, 2001 2:27 PM To: [EMAIL PROTECTED] Subject: RE: Thread deadlocking in 3.2.2 beta 5? It is possible that running on a multi-processor machine has uncovered a thread synchronization problem. Could you provide a little more information about the application? Are JSP files changing and being recompiled often or is it mostly static? Could try running Tomcat 3.2.2b5 on a single processor machine and see what happens? I'll try to look into this but these are things are notoriously hard to track down. -Original Message- From: Joel Kozlow [mailto:[EMAIL PROTECTED]]On Behalf Of midian Sent: Tuesday, May 22, 2001 11:40 AM To: '[EMAIL PROTECTED]' Subject: Thread deadlocking in 3.2.2 beta 5? Hello, I have an app I just ported to Tomcat 3.2.2 beta 5 that runs fine for a while, and then begins to run slower and slower until it dies. From looking at the log files, it appears that 3.2.2 beta 5 is thread deadlocking and thus running out of resources. The log file shows Full thread dump... sections where you can see the JVM is having problems releasing threads. The really weird thing is that this is not a high volume server. It received no more than 300 hits over the period of a week. However, that was enough traffic to kill it. I have the same exact app running on another machine under 3.2.1 with no problems. If you look at the log file on the 3.2.1 machine, there are no Full thread dump... errors and the app has been up for months. Thus, something appears to have changed between these versions that is affecting my app's thread usage. There are a few environmental differences between the two implementations of Tomcat. I have 3.2.2 beta 5 on a quad processor WinNT 4 Sp6a machine w/128mb allocated to Tomcat. 3.2.1 runs on a single processor Win2K server w/64mb allocated to Tomcat. Could the multi-processor server be a factor? Both servers are using Sun JDK 1.2.2. Since the log file to 3.2.2 beta 5 is so big, I have posted it to the URL : http://www.poptarantula.com/logs/jvm.stderr_5_22_01.txt Does any one have any idea what could be causing this behavior? Are there any known fixes? Thank you in advance for your help. Best regards, Joel Kozlow [EMAIL PROTECTED] Sn. Developer Hewtlett-Packard
RE: I am looking for a comprehensive set of documentation.
Title: I am looking for a comprehensive set of documentation. Fred, I'm not sure if there are docs out there, but you can run javadoc on the src files in the %TOMCAT_HOME%\src\ directory and subsequent child directories. Seems to be well commented. -Original Message-From: Fred Huelsbeck [mailto:[EMAIL PROTECTED]]Sent: Wednesday, May 23, 2001 12:42 PMTo: [EMAIL PROTECTED]Subject: I am looking for a comprehensive set of documentation. Is there anything available in print? Is there more than what is included, the "overview" stuff? Thanks in advance, Fred
Non http servlet?
Hi: I need to create a servlet extended from Servlet rather than HttpServlet. I will be using a protocol based on XML rather than HTTP. Is it possible to do this using Tomcat? If so, any hints? Thanks in advance. -- D. Jay Newman ! For the pleasure and the profit it derives [EMAIL PROTECTED] ! I arrange things, like furniture, and http://www.sprucegrove.com/~jay/ ! daffodils, and ...lives. -- Hello Dolly
Setting Up a JDBC Realm
Hi, I am using Tomcat 4 b5 I do face a real trouble with setting-up a JDBC Realm using an Oracle Database, I think did exactly the same as the tutorial but it doesn't seem to work properly. Are there any specific actions to take in order to make it work. I am new to this list if someone already talked about this problem, can you point me to the lists archives please. Daniel Duchaussoy
Repost: AdaptiveClassLoader problems with Tomcat 3.2.1, IIS and Struts web apps
I have not seen any responses on this so I'm trying again: I have two struts-based web apps installed under a single instance of Tomcat (Struts Beta 1, Tomcat 3.2.1 connected to IIS 4.0 on Windows NT via isapi_redirect.dll). They are defined within server.xml as follows: Context path=/cdl docBase=d:/projects/cdl crossContext=false debug=1 reloadable=true trusted=false /Context Context path=/enroll docBase=d:/projects/benefits_enrollment crossContext=false debug=1 reloadable=true trusted=false /Context Accessing the first web application is fine. The problem that I am having is that any attempt to access start.do on the second web application (/enroll), the server log returns: 2001-05-08 10:51:10 - path=/enroll :action: Error creating ActionForm instance of class 'com.globalmedic.benefits.enrollment.forms.login.LoginForm' - java.lang.ClassNotFoundException: com.globalmedic.benefits.enrollment.forms.login.LoginForm at org.apache.tomcat.loader.AdaptiveClassLoader.loadClass(AdaptiveClassLoader.j ava:524) 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 org.apache.struts.action.ActionServlet.processActionForm(ActionServlet.java: 1645) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1520) at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:491) 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:79 7) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743) at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC onnectionHandler.java:210) 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) It seems as if it is attempting to load classes within the context of the first web application. If I reverse the order of the context definitions in server.xml, I will have a similar problem with the /cdl app. I have verified the following: - struts.jar exists only in the WEB-INF/lib directory of each web application - tomcat.log verifies that the web.xml of each application is being read I have tried setting up different AJP12 workers to service each application but that seems to have no effect. I have also noticed that the jasper.log shows Classpath according to the servlet engine referring only to one of the two web apps. Is it possible to have two web apps running in a single instance of Tomcat? Have I overlooked something? I did not have any problems hosting multiple web apps using with JRun... Any insight is appreciated. Eric Wu Java Architect GlobalMedic Inc. 8200 Decarie Blvd., Suite 205 Montreal, Qc. Canada, H4P 2P5 Tel: (514) 738-6770 Ext. 239 Fax: (514) 738-4827 Email: [EMAIL PROTECTED] Web: http://www.globalmedic.com/ Gold Medal Winner at the 2000 WWW Health Awards
Form based Authentication - URLs with username:password are not supported
Title: Form based Authentication - URLs with username:password are not supported When using form based authentication urls username and password do not work i.e. http://alex:[EMAIL PROTECTED]/examples it works just fine with basic authentication but not with form based
RE: problem with /jakarta/isapi_redirect.dll on win2k
Did you check the settings in the registry (under HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Jakarta Isapi Redirector\1.0)? Verify that the extension_uri, worker_file and worker_mount_file settings are pointing to the correct files. Eric -Original Message- From: Robert, Betts [mailto:[EMAIL PROTECTED]] Sent: May 23, 2001 9:37 AM To: [EMAIL PROTECTED] Subject: problem with /jakarta/isapi_redirect.dll on win2k Howdy I have looked at the docs, faq and gone throught the list archive, but not found a solution to my particular problem. I have installed tc 3.2.1 on a win2k prof machine with iis 5, running tomcat out of process. I can run tomcat with no problems as a service or as a stand alone executable. I can also load isapi_redirect.dll as a ISAPI filter and it shows the green light. I have tripple checked that the right permissions have been setup on the virtual directory /jakarta, and that it includes execute permissions. Can anyone please help me or point me in the right direction. I get an file not found error when run the examples, BUT I get NO ERROR when I run http://localhost:8080/examples/jsp/index.html. Thanks Rob Now for the problem details: When from my browser I call http://localhost/examples/jsp/index.html;, I get the followinf out put: Not Found (404) Original request: /jakarta/isapi_redirect.dll Not found request: /jakarta/isapi_redirect.dll Web Logfile has the following: 12:52:51 127.0.0.1 W3SVC1 80 GET /jakarta/isapi_redirect.dll 401 12:52:51 127.0.0.1 W3SVC1 80 GET /jakarta/isapi_redirect.dll 200 The output from tomcat: 2001-05-23 03:05:41 - Ctx( ): 404 R( + /jakarta/isapi_redirect.dll + null) null
How to use Tomkat with apache.
I'm new to tomkat and I'd like to use JSP with apache. I use Red Hat 7.1 I try to find somebody, something, sites , books but nothing explain how configure the machine to use tomkat for using JSP. Please ... say me where can I find how configure and use tomkat or explain how do that. Thank you in advance, Mario.
RE: KeepAlive and sendRedirect Vs jsp:forward
I have been having tons of problems with response.sendRedirect() and can't figure out what in the world is causing it. I'll try forward and see how that works, thanks :-) Brandon -Original Message- From: Shahed A Moolji [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 23, 2001 3:08 PM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: KeepAlive and sendRedirect Vs jsp:forward Hi, I am using TC 3.2.1 w/Apache and ajp13 - JDK 1.3.1 Solaris 8 Sparc If I have keepalive turned on in apache, my response.sendRedirect() dont seem to work well. However jsp:forward seems to work. What is the difference from the point of view of the browser between the 2 ? Thanks Shahed
Re: How to use Tomkat with apache.
Bonjourno! I managed to get tomcat working on my computer, here is what I did. 1) Make sure you have JDK 1.3 installed on your computer (to verify, type in java -version) In order to make JDK 1.3 run properly on RedHat 7.1, in your /etc/profile file put in a line saying: ulimit -s 2000 also, make sure that the following files exist: /usr/bin/expr /usr/bin/dirname /usr/bin/cut /usr/bin/head Those files are used by the java script that launches the actual JVM. For instance, on my computer, my java 1.3 sdk is installed at /usr/j2sdk1_3_0 so if I type in more /usr/j2sdk1_3_0/bin/java it shows the shell script used to launch the JVM. 2) download the tomcat binaries (3.2.1 is the latest non-beta) 3) unzip the tomcat binaries somewhere appropriate For example: on my computer I put tomcat in /usr/local/jakarta-tomcat-3.2.1 4) edit the startup script(s) in the bin subdirectory of your tomcat installation on my computer: /usr/local/jakarta-tomcat-3.2.1/bin 5) launch tomcat and have fun! Hope this helps! -Mike Jennings - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, May 23, 2001 1:40 PM Subject: How to use Tomkat with apache. I'm new to tomkat and I'd like to use JSP with apache. I use Red Hat 7.1 I try to find somebody, something, sites , books but nothing explain how configure the machine to use tomkat for using JSP. Please ... say me where can I find how configure and use tomkat or explain how do that. Thank you in advance, Mario.
Re: How to use Tomkat with apache.
Bonjourno! I managed to get tomcat working on my computer, here is what I did. 1) Make sure you have JDK 1.3 installed on your computer (to verify, type in java -version) In order to make JDK 1.3 run properly on RedHat 7.1, in your /etc/profile file put in a line saying: ulimit -s 2000 also, make sure that the following files exist: /usr/bin/expr /usr/bin/dirname /usr/bin/cut /usr/bin/head Those files are used by the java script that launches the actual JVM. For instance, on my computer, my java 1.3 sdk is installed at /usr/j2sdk1_3_0 so if I type in more /usr/j2sdk1_3_0/bin/java it shows the shell script used to launch the JVM. 2) download the tomcat binaries (3.2.1 is the latest non-beta) 3) unzip the tomcat binaries somewhere appropriate For example: on my computer I put tomcat in /usr/local/jakarta-tomcat-3.2.1 4) edit the startup script(s) in the bin subdirectory of your tomcat installation on my computer: /usr/local/jakarta-tomcat-3.2.1/bin 5) launch tomcat and have fun! Hope this helps! -Mike Jennings - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, May 23, 2001 1:40 PM Subject: How to use Tomkat with apache. I'm new to tomkat and I'd like to use JSP with apache. I use Red Hat 7.1 I try to find somebody, something, sites , books but nothing explain how configure the machine to use tomkat for using JSP. Please ... say me where can I find how configure and use tomkat or explain how do that. Thank you in advance, Mario.
Aliasing urls in Tomcat (without using Apache)
Hi guys, During development we would like to use Tomcat locally without having an Apache front end, then only have an Apache front end proxy passing to Tomcat when it goes into production. We are running into problems with how to replicate the proxy pass functionality of Apache in Tomcat. Eg say we have a context of /context and in its base directory there was a subdirectory called my_directory. To get rid of the context out of the url in Apache for the public site we would just do the following proxy pass proxypass /my_directory http://localhost:8080/context/my_directory where localhost:8080 is of course picked up by Tomcat. This would mean the url would look like http://mydomain.com/my_directory - much tidier than http://mydomain.com/context/my_directory We cannot work out how to set up a similar arrangement in Tomcat. Note: we are *not* asking how to make context=my_directory, so we can't just add another context my_directory that maps through to the same base directory as context. Any ideas people? Regards, Graeme.
RE: Aliasing urls in Tomcat (without using Apache)
I'm not sure I get you, but, can't you just alias the servlet's URL using the url-pattern tag in your web.xml? (Take a look at the DTD for web.xml, at, http://java.sun.com/j2ee/dtds/web-app_2_2.dtd or in the JSDK spec.) -- Bill K. -Original Message- From: Graeme Miller [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 23, 2001 2:38 PM To: '[EMAIL PROTECTED]' Subject: Aliasing urls in Tomcat (without using Apache) Hi guys, During development we would like to use Tomcat locally without having an Apache front end, then only have an Apache front end proxy passing to Tomcat when it goes into production. We are running into problems with how to replicate the proxy pass functionality of Apache in Tomcat. Eg say we have a context of /context and in its base directory there was a subdirectory called my_directory. To get rid of the context out of the url in Apache for the public site we would just do the following proxy pass proxypass /my_directory http://localhost:8080/context/my_directory where localhost:8080 is of course picked up by Tomcat. This would mean the url would look like http://mydomain.com/my_directory - much tidier than http://mydomain.com/context/my_directory We cannot work out how to set up a similar arrangement in Tomcat. Note: we are *not* asking how to make context=my_directory, so we can't just add another context my_directory that maps through to the same base directory as context. Any ideas people? Regards, Graeme.
RE: ===Session Question===
If you just want the request object (the parameters) to be passed call the servlet2 with the request object and finish what you're doing and the request object is gong after that. Simple. You can also create an hashtable in the session with those values from the request object and delete the hashtable from the session when you're finished, this way you can use a redirect to the next servlet, so people don't have to resubmit the request on a refresh.. Have fun, Martin van den Bemt -Original Message- From: anil [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 22, 2001 9:26 PM To: tomcat Subject: ===Session Question=== Hello, I do have servlet that process request and forward to another servlet. like. -request- Servlet1---servlet2 session-obj-1session-obj1(destroy session-obj1 request is done-user gets html back) At the end of sevlet2, user get html window back. I want setup a session object in servlet valid only for that request. I mean it should not valid beyond servlet2. if I use request.getSession(x), this session-obj1 is valid until the browser is closed. is there anyway to do this without calling removeAttribute() thanks anil
linux/tomcat woes
hi gang! i'm a linux newbie, so please bear with me. i'm running red hat linux 6.2. i installed apache 1.3.19 and tested it, so i know that its working. tomcat 3.2.1 is giving me problems. i java 2se 1.3.1 (and tested it, so i know it's working). i then un-tarred the tomcat tarball and set the environment variables from bash as follows: export JAVA_HOME=/usr/local/jdk1.3.1 export TOMCAT_HOME=/usr/local/tomcat i then typed in the following (from bash) from the tomcat/bin directory: ./startup some messages appeared on the screen, then bash appeared to hang (it didn't return to the prompt after a few minutes). i didn't get a tomcat.log file so i can't figure out what went wrong. can someone please help me troubleshoot this madness? tia if (duane.douglas) { coder = asp * cold fusion * xml * sql server * javascript }
RE: virtual host
What's the use of making virtual hosts in tomcat then? (if the full content of WEB-INF is the same...).. Just leave the virtual hosting to apache. I never set a virtual host in tomcat in my life ;-)) (they all just call the same context on there own host). Mvgr, Martin -Original Message- From: Andrea Mari [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 22, 2001 11:21 PM To: [EMAIL PROTECTED] Subject: virtual host Hi, I've 2 virtual hosts: xxx.doamin.com and yyy.domain.com, configured in server.xml (Tomcat 3.2.1) and httpd.conf (Apache 1.3.x). Can I share the WEB-INF directory between these two virtual hosts? Thanks Andrea
RE: IDE for tomcat
Netbeans 3.2 is way faster than the older netbeans / forte stuff. Just switch off the forms and all other unneeded modules and it will be faster ;-)) Mvgr, Martin -Original Message- From: Warren Crossing [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 23, 2001 2:29 AM To: '[EMAIL PROTECTED]' Subject: RE: IDE for tomcat hey how are you =) i think forte netbeans sun for java community edition is pretty good at jsp servlet dev with tomcat.. but you need a sixtybillion-gigaflop supercomputer to get it running smoothly ( its a bit of a resource hog ) but its features really rule! l8r. -Original Message- From: aswath satrasala [mailto:[EMAIL PROTECTED]] Sent: Wednesday, 23 May 2001 8:22 AM To: [EMAIL PROTECTED] Subject: IDE for tomcat Hello, I am using IIS and tomcat and I am looking an IDE that integrates IIS and tomcat. or is there an IDE which closely works with tomcat. For example to configure the context/application path, or to setup multiple sites etc. Regards -Aswath _ Get your FREE download of MSN Explorer at http://explorer.msn.com
RE: Help Needed
Do something like this : int maxConnections = 33; String httpd = /usr/local/apache/conf/httpd.conf; String tmphttpd = /usr/local/apache/conf/httpd.new; String oldhttpd = /usr/local/apache/conf/httpd.old; BufferedReader in = new BufferedReader(new FileReader(new File(httpd))); BufferedWriter out = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(, true))); while ((str=in.readLine()) !=null) { if (str.startsWith(maxconnections=)) { out.write(maxconnections=+newMaxConnections); }else{ out.write(str); } } out.close(); in.close(); File h = new File(httpd); File t = new File(tmphttpd); File o = new File(oldhttpd); h.renameTo(o); t.renameTo(h); //EOF Not the most beautifull code and if you get rid of all the typos I made, you could use this (I'll leave the main to you...) Mvgr, Martin -Original Message- From: Venkatesh Sangam [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 23, 2001 3:20 AM To: [EMAIL PROTECTED] Subject: RE: Help Needed I will b changing the value of max connections before the apache server is started .. is there any other way (other than fileoutputstream) to modify the max connections ?? thanks Venkatesh From: Warren Crossing [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: '[EMAIL PROTECTED]' [EMAIL PROTECTED] Subject: RE: Help Needed Date: Wed, 23 May 2001 10:30:03 +1000 Maybe you can write to the file wil java.io.FileOutputStream, not nice to code really. would apache even listen to a runtime modification of this value? Probably just best to pick a value and run with it. -Original Message- From: Venkatesh Sangam [mailto:[EMAIL PROTECTED]] Sent: Wednesday, 23 May 2001 9:42 AM To: [EMAIL PROTECTED] Subject: RE: Help Needed Hi, can I write a Java program to change the max connections ?? can a Java program access the httpd.conf file ?? Moreover there is an attribute called maxconnections in conf/tomcat.properties what is the difference between the one specified in httpd/conf/httpd.conf and the one specified in conf/tomcat.properties Please tell me if this attribute could be changed from a Java Program .. thanks Venkatesh From: Nael Mohammad [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: '[EMAIL PROTECTED]' [EMAIL PROTECTED] Subject: RE: Help Needed Date: Tue, 22 May 2001 14:05:39 -0700 Go to the httpd.conf file and look for MAX Connections and change the default to whatever you want it to be. /etc/httpd/conf/httpd.conf -Original Message- From: Venkatesh Sangam [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 22, 2001 11:01 AM To: [EMAIL PROTECTED] Subject: Help Needed Hi, can anyone please tell me how to change maxconnections for Apache.. please help thanks Venkatesh _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
Install problems in FreeBSD 4.2
Hi, I recently downloaded and installed jdk1.3.0_02 on a FreeBSD system. I followed the instructions included with the jakarta-tomcat README which indicated that I needed to set an environment variable of JAVA_HOME=/usr/local/jdk1.3.0_02 and add $JAVA_HOME/bin to the PATH. The instructions indicate that I should set the CLASSPATH if needed, but I do not know if it is needed, or what it should be set to. When I try to run ./bootstrap.sh for jakarta-ant (install instructions for tomcat say it is next step in setup of tomcat) I get: /usr/local/jdk1.3.0_02/bin/java: /usr/bin/expr: not found Error: can't find libjava.so. The same messages pops up if I try to run ./build.sh for tomcat without first installing ant. The jdk was installed from j2sdk-1_3_1-linux-i386.bin. How do I get past this error message to the next error message? I have been unable to find documentation for setting this up in FreeBSD, so if someone can point me in the direction of some, I would greatly appreciate it. Thanks.
mod_jk is garbled? Garbled? I got the binary...
Upgraded Apache to 1.3.20, got Tomcat 3.2.1. Downloaded binary of mod_jk, but when it tries to load it I get: Starting httpd: Syntax error on line 8 of /usr/local/tomcat/conf/mod_jk_set.conf: API module structure `jk_module' in file /usr/local/apache/libexec/mod_jk.so is garbled - perhaps this is not an Apache module DSO? What's the deal with that? Any ideas? Tried compiling myself, but apxs dies at the end. I got it from the linux dir, and I'm running Redhat 7.0 Thanks..
RE: Problem running tomcat 4 in apache 1.3.19
See http://marc.theaimsgroup.com/?l=tomcat-devm=99020542608948w=2 (the ant-dev mailinglist...). The Exception btw is caused by a bug... If you call the http://servername/examples/servlets/ you get the nullpointer exception, because it cannot find what the welcome page should be (eg index.html) and passes the null value. If you call http://servername/examples/servlets/index.html it works fine.. Have fun, Martin van den Bemt -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 23, 2001 12:53 PM To: [EMAIL PROTECTED] Subject: Re:Problem running tomcat 4 in apache 1.3.19 Would you please tell me how to compile web_apps.so. I got error with pthread ... (serveral people had the same error but I could not find the solution on tomcat list) when i start apache. Someone suggested that module should be compiled with LD_LIBRARY_PATH properly set up, but I checked it and it still does not work. My machine: Linux Mandrake with kernel 2.4.1 IBMJdk1.3 gcc version: 2.95.3 Regards, Tomek /) Tomasz Sucharzewski (\ / )Unix/Sybase Administrator ( \ _( (__ Web-Application Development_) )_ (((\ \ /_ Electronic Data Processing Department _\ / /))) ( \_/ / ING Bank N.V. \ \_/ ) \ / \ / \_/ phone: (+48 22) 820-41-58 \_/ / / mobilephone: (+48 606) 666-015\ \ / / email: [EMAIL PROTECTED] \ \ Reply Separator Subject:Problem running tomcat 4 in apache 1.3.19 Author: [EMAIL PROTECTED] Date: 01-05-21 23:58 Hi, After a struggle to get tomcat 4 running on my systen (running on Linux with jdk 1.3.1), I tried to configure tomcat 4 to run with apache. After following (some) of the instructions in the server.xml and other sources I got the web_webapp.so actually compiled and running in apache ( which means : apache doesn't crash when I start it up..). I mounted the examples to be served by tomcat 4 and when I go there (say http://servername/examples/ I get a nice directory overview and I want to click on servlets. then I get a nice exception (without exception..) : java.lang.NullPointerException at javax.servlet.http.HttpUtils.getRequestURL(HttpUtils.java:338) at org.apache.catalina.connector.HttpResponseBase.toAbsolute(HttpResp onseBase.j ava:669) at org.apache.catalina.connector.HttpResponseBase.sendRedirect(HttpRe sponseBase .java:1072) at org.apache.catalina.connector.HttpResponseFacade.sendRedirect(Http ResponseFa cade.java:150) at org.apache.catalina.servlets.DefaultServlet.serveResource(DefaultS ervlet.jav a:1084) at org.apache.catalina.servlets.DefaultServlet.doGet(DefaultServlet.java:519) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) snap a lot All this stuff is working great on the 8080 port, which is handled by tomcat itself. Can anybody enlighten me on what is going on or how to correctly configure (and compile) the connection to tomcat Note : the example of mounting _INFO_ to eg /tomcatinfo/ works... Thanx for the help.. Mvgr, Martin van den Bemt - ATTENTION: The information in this electronic mail message is private and confidential, and only intended for the addressee. Should you receive this message by mistake, you are hereby notified that any disclosure, reproduction, distribution or use of this message is strictly prohibited. Please inform the sender by reply transmission and delete the message without copying or opening it. Messages and attachments are scanned for all viruses known. If this message contains password-protected attachments, the files have NOT been scanned for viruses by the ING mail domain. Always scan attachments before opening them. -
RE: 3.2.1 Dies
I can't say I know FOR SURE that the threads were dead, but after a considerable length of time they never accumulated any more CPU usage time (as seen via top or ps) whereas some of the others did. I know for sure I had far more threads than the max_threads setting (12 for me) because I'd see in excess of 80 threads for tomcat on the system after several days uptime. I might try upping the max_threads to see if that helps. We were trying to limit concurrent usage of the box (via tomcat) because other apps use the same box and we didn't want to use too many resources. That said, we'd rather have a stable tomcat and overload the box a bit on occasion :) than an unstable/really slow tomcat. -Devon Devon C. Ziegler [EMAIL PROTECTED] 2504 Preston Lake Dr. Tucker, GA 30084 770-908-9462 -Original Message- From: Thom Park [mailto:[EMAIL PROTECTED]] Sent: Monday, May 21, 2001 7:25 PM To: [EMAIL PROTECTED] Subject: Re: 3.2.1 Dies I wasn't able to check for dead threads - My symptom was that the tomcat process would 'hang' and no longer process connections. I never got it to crash per se, but it sure stopped on me real good... Increasing the pool size resolved the problem, specifically the following parameters (neatly copied from the tomcat users guide) Parameter name=max_threads value=30/ Parameter name=max_spare_threads value=20/ Parameter name=min_spare_threads value=5 / The values were arbitrary - I stuck mine up to max_threads = 200, max_spare_threads=20, min_spare_threads=20 and lo - the hang problem went away. It seems to me that when tomcat (3.2.1) get's pressed for thread resources, it doesn't do a very good job of recovering from this. I would have thought that having a min_spare_threads set to some non-zero value, that there would still be some spare threads for clean up work to be performed but, as far as I can tell, when you max out your threads, your stuck pending a reboot. -Thom Hunter Hillegas wrote: How can I check to see if I have a lot of dead threads? Hunter From: Devon Ziegler [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] Date: Mon, 21 May 2001 16:43:04 -0400 To: [EMAIL PROTECTED] Subject: RE: 3.2.1 Dies Interesting.used up all free threads.increase thread pool. shouldn't users just have to wait for a free thread if they hit the pool limit? Increasing it should let more requests be handled simultaneously, but how would it help longevity? I'm not saying it won't. Just skeptical. That said, I seem to lose threads with tomcat 3.2.1 on Linux 2.2.14 using Sun's 1.3 JDK. What I mean is that dead threads pile up WELL in excess of the thread pool limit. These threads don't seem to handle requests any more. Tomcat slows down quite noticeably too. I'm not sure I have ever left it up long enough to know if it might just die after enough threads pile up(well, it definitely would when it hit the OS' thread limit). Are you seeing far more threads than you would expect (well in excess of the pool size)? Maybe we are suffering from the same malady. -- http://www.borland.com/newsgroups http://www.borland.com/devsupport/disclaim.html
RE: KeepAlive and sendRedirect Vs jsp:forward
If you do a response.senRedirect() and the redirect is empty, the servlet calls itself without parameters... (at least in tomcat, not in jserv..). Maby that's causing the problem.. Mvgr, Martin van den Bemt -Original Message- From: Brandon Cruz [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 23, 2001 11:05 PM To: [EMAIL PROTECTED] Subject: RE: KeepAlive and sendRedirect Vs jsp:forward I have been having tons of problems with response.sendRedirect() and can't figure out what in the world is causing it. I'll try forward and see how that works, thanks :-) Brandon -Original Message- From: Shahed A Moolji [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 23, 2001 3:08 PM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: KeepAlive and sendRedirect Vs jsp:forward Hi, I am using TC 3.2.1 w/Apache and ajp13 - JDK 1.3.1 Solaris 8 Sparc If I have keepalive turned on in apache, my response.sendRedirect() dont seem to work well. However jsp:forward seems to work. What is the difference from the point of view of the browser between the 2 ? Thanks Shahed
Re: Install problems in FreeBSD 4.2
That's a jdk configuration problem, not a tomcat problem. If you can successfully get run a simple command like: java -version then you can move on to the tomcat-related stuff. I've never gotten jdk 1.3 to work in BSD, but you should make sure that the following files exist: /usr/bin/expr /usr/bin/dirname /usr/bin/cut /usr/bin/head If they exist somewhere else (eg. /bin/cut ) then copy them to the expected location (or link them) Hope this helps! -Mike Jennings - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, May 23, 2001 2:33 PM Subject: Install problems in FreeBSD 4.2 Hi, I recently downloaded and installed jdk1.3.0_02 on a FreeBSD system. I followed the instructions included with the jakarta-tomcat README which indicated that I needed to set an environment variable of JAVA_HOME=/usr/local/jdk1.3.0_02 and add $JAVA_HOME/bin to the PATH. The instructions indicate that I should set the CLASSPATH if needed, but I do not know if it is needed, or what it should be set to. When I try to run ./bootstrap.sh for jakarta-ant (install instructions for tomcat say it is next step in setup of tomcat) I get: /usr/local/jdk1.3.0_02/bin/java: /usr/bin/expr: not found Error: can't find libjava.so. The same messages pops up if I try to run ./build.sh for tomcat without first installing ant. The jdk was installed from j2sdk-1_3_1-linux-i386.bin. How do I get past this error message to the next error message? I have been unable to find documentation for setting this up in FreeBSD, so if someone can point me in the direction of some, I would greatly appreciate it. Thanks.
Re: virtual host
I would a site on www.domain.com and another site on wap.domain.com. they are the web and the wap site. I would also that .jsp files are always sent to Tomcat , even if I call www.domain.com/first.jsp or .domain.com/folder1/second.jsp (th same thing for the wap.domain.com). How do I configure Tomcat and Apache? Thanks Andrea - Original Message - From: Martin van den Bemt [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, May 23, 2001 11:56 PM Subject: RE: virtual host What's the use of making virtual hosts in tomcat then? (if the full content of WEB-INF is the same...).. Just leave the virtual hosting to apache. I never set a virtual host in tomcat in my life ;-)) (they all just call the same context on there own host). Mvgr, Martin -Original Message- From: Andrea Mari [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 22, 2001 11:21 PM To: [EMAIL PROTECTED] Subject: virtual host Hi, I've 2 virtual hosts: xxx.doamin.com and yyy.domain.com, configured in server.xml (Tomcat 3.2.1) and httpd.conf (Apache 1.3.x). Can I share the WEB-INF directory between these two virtual hosts? Thanks Andrea
Re: mod_jk is garbled? Garbled? I got the binary...
I had the same problem and, definetely, you have to build your own mod_jk.so. Try downloading another version of Apache (not installing it)and use it's apxs. I have 1.3.19 and it works fine, only follow the mod_jk page instructions: Make sure you have Perl 5 installed. The apxs script used to build the module is written in Perl. Change directory to jakarta-tomcat/src/native/apache1.3 (or apache2.0). Run the apxs command that came with your apache distribution (hint: look in /usr/local/apache/bin, /usr/sbin, or wherever you intalled apache). Type the command all on one line. For Linux: apxs -o mod_jk.so -I../jk -I/usr/local/jdk/include - I/usr/local/jdk/include/linux -c *.c ../jk/*.c Your build may fail because the object files from the ../jk directory have been compiled to the current directory, rather than their source directory. Running gcc -shared -o mod_jk.so *.o should finish the build. Good luck! Renato Upgraded Apache to 1.3.20, got Tomcat 3.2.1. Downloaded binary of mod_jk, but when it tries to load it I get: Starting httpd: Syntax error on line 8 of /usr/local/tomcat/conf/mod_jk_set.conf: API module structure `jk_module' in file /usr/local/apache/libexec/mod_jk.so is garbled - perhaps this is not an Apache module DSO? What's the deal with that? Any ideas? Tried compiling myself, but apxs dies at the end. I got it from the linux dir, and I'm running Redhat 7.0 Thanks.. --
*** Ordinary users can kill the tomcat server? ***
Hello list, I noticed that even if I start tomcat as root, ordinary users can simply run the shutdown.sh script themselves and cause it to terminate. This can't be right, can it? I mean, it doesn't seem like normal users should be able to kill system services right? Did I do something wrong in the configuration or is this normal behavior? Thanks. - Arcadio
Please help. Accessing protected url from java when using form based authentication
Title: Please help. Accessing protected url from java when using form based authentication I need to access a protected resource on my web site from java. I use form based authentication and I was hoping that following sequence will make it but it dos not 1. Open url to protected resource. get JSESSIONID from headers 2. Post to /mycontext/login/j_security_check with cookie set to JSESSIONID=session id from prev step and name and password as POST parameters 3. Access protected resource again using the same session id Any help is greatly appreciated Alex
JDBC/ODBC: Technological choice
Hello guys I am building an intranet on a window NT environment. I hate ASP, so I decided to use JSP as the server-side language. I chose Tomcat to run my JSP and I installed it as a IIS plugin. Now, I have to connect my JSPs with the databases (they use Access -- ouch! ) I never did that before and I don't know if I should use JDBC I or IV. So my questions are: -first, is it possible to use a JDBC IV sheme with Tomcat -if so, how is it possible? How is it made? In other words, where can i find documentation about that? -why it is recommended to use JDBC IV when dealing with intranet? -JDBC-ODBC bridge vs JDBC IV: how slower? Which one is simplier to setup? -Finally, is it difficult to deal with JDBC, to deploy it? A lot of question, isn't it? I would also apreciate if some of you could share their experience of building a JDBC/JSP/Tomcat infrastructure. Thx !
RE: Please help. Accessing protected url from java when using form based authentication
Title: Please help. Accessing protected url from java when using form based authentication Please UNSUBSCRIBE me. I did not subscribe to this listserve. -Original Message-From: Roytman, Alex [mailto:[EMAIL PROTECTED]]Sent: Wednesday, May 23, 2001 1:26 PMTo: '[EMAIL PROTECTED]'Subject: Please help. Accessing protected url from java when using form based authentication I need to access a protected resource on my web site from java. I use form based authentication and I was hoping that following sequence will make it but it dos not 1. Open url to protected resource. get JSESSIONID from headers 2. Post to /mycontext/login/j_security_check with cookie set to JSESSIONID=session id from prev step and name and password as POST parameters 3. Access protected resource again using the same session id Any help is greatly appreciated Alex
RE: *** Ordinary users can kill the tomcat server? ***
Please UNSUBSCRIBE me. I did not subscribe to this listserve. -Original Message- From: Arcadio A. Sincero Jr. [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 23, 2001 4:55 PM To: [EMAIL PROTECTED] Subject: *** Ordinary users can kill the tomcat server? *** Hello list, I noticed that even if I start tomcat as root, ordinary users can simply run the shutdown.sh script themselves and cause it to terminate. This can't be right, can it? I mean, it doesn't seem like normal users should be able to kill system services right? Did I do something wrong in the configuration or is this normal behavior? Thanks. - Arcadio
RE: JDBC/ODBC: Technological choice
Please UNSUBSCRIBE me. I did not subscribe to this listserve. -Original Message- From: Alexandre Bouchard [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 23, 2001 5:34 PM To: tomcat-user Subject: JDBC/ODBC: Technological choice Hello guys I am building an intranet on a window NT environment. I hate ASP, so I decided to use JSP as the server-side language. I chose Tomcat to run my JSP and I installed it as a IIS plugin. Now, I have to connect my JSPs with the databases (they use Access -- ouch! ) I never did that before and I don't know if I should use JDBC I or IV. So my questions are: -first, is it possible to use a JDBC IV sheme with Tomcat -if so, how is it possible? How is it made? In other words, where can i find documentation about that? -why it is recommended to use JDBC IV when dealing with intranet? -JDBC-ODBC bridge vs JDBC IV: how slower? Which one is simplier to setup? -Finally, is it difficult to deal with JDBC, to deploy it? A lot of question, isn't it? I would also apreciate if some of you could share their experience of building a JDBC/JSP/Tomcat infrastructure. Thx !
RE: *** Ordinary users can kill the tomcat server? ***
It may be because the permission for the shutdown.sh script was granted to everyone. Change the permissions for the shutdown script so not everyone can execute it. HTH. :^) Ricky Y. Artigas Analyst/Programmer / Database Administrator Information Technology Division Easycall Communications Phils., Inc. - Easycall Internet - 418 Arayat St., Mandaluyong City 1550, Philippines Personal WAP Site: http://www.buzzed.co.uk/mobile/?rya Company Website: http://www.easycall.com.ph Tel.no: (+632) 5338001 ext.6574 Mobile:(+63) 0917-8951783 Pager: 141-002955 Email: [EMAIL PROTECTED] --- IMPORTANT NOTICE: This message (and any attachment hereto) may contain privileged and/or confidential information specific to EasyCall. If you are not the intended addressee indicated in this message, you may not copy or disseminate this message (or any attachment hereto) to anyone. Instead, please destroy this message (and any attachment hereto), and kindly notify the sender by reply email. Any information in this message (and any attachment thereto) that do not relate to the official business of EasyCall shall be understood as neither given nor endorsed by the company. -Original Message- From: Brian George [SMTP:[EMAIL PROTECTED]] Sent: Thursday, May 24, 2001 8:54 AM To: [EMAIL PROTECTED] Subject: RE: *** Ordinary users can kill the tomcat server? *** Please UNSUBSCRIBE me. I did not subscribe to this listserve. -Original Message- From: Arcadio A. Sincero Jr. [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 23, 2001 4:55 PM To: [EMAIL PROTECTED] Subject: *** Ordinary users can kill the tomcat server? *** Hello list, I noticed that even if I start tomcat as root, ordinary users can simply run the shutdown.sh script themselves and cause it to terminate. This can't be right, can it? I mean, it doesn't seem like normal users should be able to kill system services right? Did I do something wrong in the configuration or is this normal behavior? Thanks. - Arcadio
Re: *** Ordinary users can kill the tomcat server? ***
Nah .. thats not gonna work. Because a user can always download the tomcat package him/herself and get the stuff s/he needs to shut it down. In fact, I think anyone can connect to port 8007 and tell Tomcat to shutdown! - Arcadio - Original Message - From: Artigas, Ricardo Y. [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, May 23, 2001 9:16 PM Subject: RE: *** Ordinary users can kill the tomcat server? *** It may be because the permission for the shutdown.sh script was granted to everyone. Change the permissions for the shutdown script so not everyone can execute it. HTH. :^) Ricky Y. Artigas Analyst/Programmer / Database Administrator Information Technology Division Easycall Communications Phils., Inc. - Easycall Internet - 418 Arayat St., Mandaluyong City 1550, Philippines Personal WAP Site: http://www.buzzed.co.uk/mobile/?rya Company Website: http://www.easycall.com.ph Tel.no: (+632) 5338001 ext.6574 Mobile:(+63) 0917-8951783 Pager: 141-002955 Email: [EMAIL PROTECTED] --- IMPORTANT NOTICE: This message (and any attachment hereto) may contain privileged and/or confidential information specific to EasyCall. If you are not the intended addressee indicated in this message, you may not copy or disseminate this message (or any attachment hereto) to anyone. Instead, please destroy this message (and any attachment hereto), and kindly notify the sender by reply email. Any information in this message (and any attachment thereto) that do not relate to the official business of EasyCall shall be understood as neither given nor endorsed by the company. -Original Message- From: Brian George [SMTP:[EMAIL PROTECTED]] Sent: Thursday, May 24, 2001 8:54 AM To: [EMAIL PROTECTED] Subject: RE: *** Ordinary users can kill the tomcat server? *** Please UNSUBSCRIBE me. I did not subscribe to this listserve. -Original Message- From: Arcadio A. Sincero Jr. [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 23, 2001 4:55 PM To: [EMAIL PROTECTED] Subject: *** Ordinary users can kill the tomcat server? *** Hello list, I noticed that even if I start tomcat as root, ordinary users can simply run the shutdown.sh script themselves and cause it to terminate. This can't be right, can it? I mean, it doesn't seem like normal users should be able to kill system services right? Did I do something wrong in the configuration or is this normal behavior? Thanks. - Arcadio
RE: JDBC/ODBC: Technological choice
-first, is it possible to use a JDBC IV sheme with Tomcat Yes. -if so, how is it possible? How is it made? The same way you use any JDBC implementation. In other words, where can i find documentation about that? The obvious place would be Sun's JDBC home page: http://java.sun.com/products/jdbc/ You should also check the home page of your JDBC implementation's vendor (e.g., www.oracle.com .) -why it is recommended to use JDBC IV when dealing with intranet? Type 1 and 2 generally require direct access to the database (i.e., that it's sitting on your own computer); and types 1 through 3 use JNI (which may be restricted by sandbox permissions). -JDBC-ODBC bridge vs JDBC IV: how slower? Which one is simplier to setup? Sun's JDBC-ODBC isn't supported for production environments. Your best bet is to use the vendor's own JDBC implementation (if available), or a third-party's. -Finally, is it difficult to deal with JDBC, to deploy it? No more than any Java code, especially with a type 4 driver. -- Bill K. -Original Message- From: Alexandre Bouchard [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 23, 2001 5:34 PM To: tomcat-user Subject: JDBC/ODBC: Technological choice Hello guys I am building an intranet on a window NT environment. I hate ASP, so I decided to use JSP as the server-side language. I chose Tomcat to run my JSP and I installed it as a IIS plugin. Now, I have to connect my JSPs with the databases (they use Access -- ouch! ) I never did that before and I don't know if I should use JDBC I or IV. So my questions are: -first, is it possible to use a JDBC IV sheme with Tomcat -if so, how is it possible? How is it made? In other words, where can i find documentation about that? -why it is recommended to use JDBC IV when dealing with intranet? -JDBC-ODBC bridge vs JDBC IV: how slower? Which one is simplier to setup? -Finally, is it difficult to deal with JDBC, to deploy it? A lot of question, isn't it? I would also apreciate if some of you could share their experience of building a JDBC/JSP/Tomcat infrastructure. Thx !
Re: NT problem : Tomcat service stops when user logs out of NT
SSL support for Tomcat 3.2.1 with IISYou can compile this c file to DLL: *** /* cl /GD /LD -I D:\usr\jdk1.3\include -I D:\usr\jdk1.3\include\win32 JNI_OnLoad.c */ #include windows.h #include winbase.h #include stdio.h #include jni.h BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) { return TRUE; } BOOL __stdcall HandleConsole(DWORD dwMsg) { switch (dwMsg) { file://case CTRL_C_EVENT : file://case CTRL_BREAK_EVENT : file://case CTRL_CLOSE_EVENT : file://case CTRL_SHUTDOWN_EVENT : case CTRL_LOGOFF_EVENT : return TRUE; } return FALSE; } JNIEXPORT jint JNICALL JNI_OnLoad(JavaVM *vm, void *reserved) { SetConsoleCtrlHandler(HandleConsole, TRUE); return 0x10002; } *** and add the code to org.apache.catalina.startup.Bootstrap *** static { try { System.loadLibrary(DLS); System.err.println(Load library 'DLS' success); } catch(Throwable throwable) { System.err.println(Load library 'DLS' fail( + throwable.getMessage() + )); } } *** Then jvm will discard user logs out of NT signal,good luck ! - Original Message - From: Ronald G. Louzon To: '[EMAIL PROTECTED]' Sent: Thursday, May 24, 2001 12:38 AM Subject: NT problem : Tomcat service stops when user logs out of NT I know this is in the archives somewhere but I cannot find it. Is there a problem when running the Tomcat wrapper jk_nt_service.exe with JDK/JRE 1.3? If I remember correctly, the problem is that if you start the service and then you log out of NT, the service is shutdown. And, supposedly, this is not a problem when using JDK/JRE 1.3. If this is indeed a problem, are there any suggestions as to how to run tomcat as a service in the JDK/JRE 1.3 environment? Has anyone had luck with the JavaService app? thanks, ron DLS.dll bootstrap.jar