Servet initialization parameter in web.xml...
I have some initialization parameters for every servlet in my application wich I get from getInitParameter('paramname') method in my servlet I am getting these initialization parameters when I define them in WEB-INF/web.xml for each servlet in my application. But this is quite stupidity if I am defining same parameters for all ( around 300 servlets ) in web.xml... Is there any way to define these parameters globally so that that each servlet use the same parameters... regards, Prem.
AW: response.sendRedirect bug or feature
Title: AW: response.sendRedirect bug or feature Hi ! Just try: - ... if (a b) { response.sendRedirect(url1); return; } ... response.sendRedirect(url2); - Bye bye C.S. -Ursprüngliche Nachricht- Von: Zsolt Koppany [mailto:[EMAIL PROTECTED]] Gesendet: Donnerstag, 7. Dezember 2000 09:30 An: [EMAIL PROTECTED] Betreff: response.sendRedirect bug or feature Hi, I think it might have been changed since tomcat-3.2-beta-6 but now when I execute a response.sendRedirect(..) the rest of the jsp file is still executed. How can I prevent that? My example: if (a b) { response.sendRedirect(url1); // Here I don't want to proceed this jsp file because url1 creates a complete page on its own. } // Let's do somthing else! ... response.sendRedirect(url2); Zsolt -- Zsolt Koppany Intland GmbH www.intland.com Schulze-Delitzsch-Strasse 16 D-70565 Stuttgart Tel: +49-711-7871080 Fax: +49-711-7871017
Re: Tomcat on Linux
Hi Kevin, Are you using the apache connector ? If so, then set up apache to run as nobody, or httpd (it probably is already) and set the connector port above 1024. Then you'll be able to run tomcat under a normal user account, and the connector will provide your link to port 80. Hope that helps. Cheers, Marcus On Wed, 6 Dec 2000, Kevin Jones wrote: From a Linux newbie! What's the best way of getting Tomcat to run on port 80 on Linux (without running it as root)? I've re-configured Apache to run on 8080, I can start Tomcat as su on 80, but I'd like it to run on my account on 80. Anyone? Kevin Jones DevelopMentor www.develop.com -- . ,,$, Marcus Crafter ;$' ':Computer Systems Engineer $: : Open Software Associates GmbH $ o_)$$$: 82-84 Mainzer Landstrasse ;$,_/\ :' 60327 Frankfurt Germany ' /( \_' Email : [EMAIL PROTECTED] .Business Hours : +49 69 9757 200 : After Hours: +49 69 49086750
How to load file *.jar in directory lib of my website?
How to load file *.jar in directory "lib" of my website ? Ex: learn/WEB-INF/lib/a.jar In my document that I read, It(files *.jar) is automatical but I can not make this. Thanks. __ Do You Yahoo!? Yahoo! Shopping - Thousands of Stores. Millions of Products. http://shopping.yahoo.com/
RE: Tomcat on Linux
Ports numbered below 1024 are "special". You can only use them as root. # -Original Message- # From: Kevin Jones [mailto:[EMAIL PROTECTED]] # Sent: Wednesday, December 06, 2000 7:15 PM # To: Tomcat-User # Subject: Tomcat on Linux # # # From a Linux newbie! # # What's the best way of getting Tomcat to run on port 80 on # Linux (without # running it as root)? # I've re-configured Apache to run on 8080, I can start Tomcat # as su on 80, # but I'd like it to run on my account on 80. # # Anyone? # # Kevin Jones # DevelopMentor # www.develop.com #
Re: java.lang.ClassCastException
Date: Thu, 07 Dec 2000 08:20:47 + To: [EMAIL PROTECTED] From: "Jon Skeet" [EMAIL PROTECTED] Subject: Re: java.lang.ClassCastException Message-ID: [EMAIL PROTECTED] This an intermitten problem that crops up once in a while. A java object SearchResult is put into the Session object by servlet1 and taken out by servlet2 which type cast it back to (SearchResult), if it's not null. Ocassionally, servlet2 will throw java.lang.ClassCastException. However, the object retrieved is not null and it IS the correct casting. Is it perhaps due to a new classloader being used? Does this happen when the servlet is recompiled half way through the operation? Jon No, the servlet it not compiled in the server. It's compiled on my PC and uploaded. However, thanks for the tip. I can reproduce the error consistently now. It happens whenever my colleague or I uploaded servlet1 or servlet2 and the servlet reloads. I have stop/start tomcat to get rid of the exception. Presumably it forces tomcat to reload all the classes, not just the servlet in question. Funny thing is, the changes to servlet1/2 is trivial (e.g. add another statement "System.err.println();") and not related to the type casting/usage of the SearchResult class/object. Even the SearchResult class/object remains the same. Is this what you mean by new classloader being used? Well, at least I know what to look out for. Spent half a day wondering what went wrong with the servlets ... Thanks again. Cathy
Re: java.lang.ClassCastException
Is it perhaps due to a new classloader being used? Does this happen when the servlet is recompiled half way through the operation? No, the servlet it not compiled in the server. It's compiled on my PC and uploaded. However, thanks for the tip. I can reproduce the error consistently now. Yes, I essentially meant "has the servlet changed". It happens whenever my colleague or I uploaded servlet1 or servlet2 and the servlet reloads. I have stop/start tomcat to get rid of the exception. Presumably it forces tomcat to reload all the classes, not just the servlet in question. Funny thing is, the changes to servlet1/2 is trivial (e.g. add another statement "System.err.println();") and not related to the type casting/usage of the SearchResult class/object. Even the SearchResult class/object remains the same. Is this what you mean by new classloader being used? A new classloader will be used to load the new servlet. That classloader will be used within that servlet, and two different classloaders' versions of the same class count as different classes in the JVM. Thus the object in the session has the old classloader, whereas the thing trying to use it is using the new classloader. Just starting a new session each time you upload your servlet should cure the problem. Jon
tomat - how it works - caches servlets?
Hi I'm new to tomcat and am struggling to understand why a re-compiled class is not being used by a servlet. I've cleared out the 'work' directory. I've tried starting and stopping tomcat and have all of the servlets class files in jars in its webapps classes directory and the server.xml has the servlet's context set to reloadable="true" As I understood it new class definitions should be picked up when tomcat is re-started. A reloadable="true" should result in the new definition being picked up even without re-starting tomcat. But I'm still getting an old class from a ,now, non-existent, jar file being used. Does tomcat cache servlet output? This might explain why an 'old' page is being returned. If tomcat caches servlet pages is it possible to configure/clear the cache? Many thanks Ron Riley
Re: tomat - how it works - caches servlets?
First of all, are you using Tomcat 3.2? Version 3.1 has lots of bugs. 3.2 is much better about loading and reloading classes. Riley,R typed the following on 10:39 07/12/2000 + I've tried starting and stopping tomcat and have all of the servlets class files in jars in its webapps classes directory and the server.xml has the Are they in webapps/MYAPP/WEB-INF/lib, or webapps/MYAPP/WEB-INF/classes? The lib directory should be used for .jar files, classes for .class files (in the correct hierarchy). Are you sure Tomcat is using the .jar file you think it is? What happens if you completely delete the jar file? Does tomcat cache servlet output? This might explain why an 'old' page is being returned. If tomcat caches servlet pages is it possible to configure/clear the cache? It shouldn't - are you 100% sure your browser isn't doing the caching? Try clearing your browser's cache, exit and reopen it. --- bitBull makes the Internet bite: http://www.bitBull.com/demos/
bean-classes, classpath
Hi there, does anybody know where I have to put my bean-classes, when I want to use them in jsp-pages? I tried setting the classpath in tomcat.bat to point to the bean-classes, but that didn´t work. Any idea´s? regards, Andreas --- Andreas Ebbert, Kuthstrasse 43, 51107 Koeln e-mail: [EMAIL PROTECTED] Fon: 0221-8701503,Fax: 0221-5345842 ---
[Re] RE: NT-Service-howto feedback
Are you using JDK1.3 ? This is a know bug of JDK1.3. Change to 1.2.2. Check the archives for details. Or, if you _do_ want to use JDK1.3, use the JAVA Service Wrapper found at http://www.alexandriasc.com/software/JavaService/ It's free, and it works perfectly with JDK 1.3, i.e. no unwanted logoffs... I also believe that this bug was recently fixed and should be gone (or at least circumnavigable via a JVM command line switch) in the next JDK 1.3 release... np: Autechre - Acroyear 2 (LP5) - Sent through MailGateway - http://www.ssw.uni-linz.ac.at:2000/ Send or read your emails anywhere. -
How to design a application context servlet
Hi all ! We are at the moment designing a telecom focused portal here at Siemens Austria based on EJB technology. Due to the restrictions of EJB we are not able to cover port listeners inside the EJBs and are thinking of "outsourcing" this task to a JSP/Servlet engine. For this to work we would need a servlet that is started in the startup of the Servlet engine and will stay in memory (so not serialized/passivated) and active all the time. It will create a pool of threads that will listen on different ports for incoming messages from external systems and will forward this info via JMS to the EJB container. Now according to my fellows here the Servlet Spec 2.2 does NOT cover any "application scope" servlet. In other words it is NOT guaranteed that a servlet is active al the time Is this right ?? Is there no way to get a servlet to be in memory and active all the time the servlet engine is running ? Please respond to mailto:[EMAIL PROTECTED] Any help would be greatly appreciated with best regards and happy tomcatting :o) ET
RE: Tomcat, JSP and Cache
I tried that and it still cachesHELP!!! -Original Message- From: Julio Serje (@canada.com) [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 06, 2000 9:50 PM To: [EMAIL PROTECTED] Subject: Re: Tomcat, JSP and Cache As a suggestion, to help making sure that a page is not cached, add a random parameter to the link, something like a href="whateverlink.html?rnd=%=(int)(Math.random()*1000)% So at least every time the user reload this page the link will be different. Of course this technique presents limitations (for example, the index pages, etc) but may help in many cases. This is a simple and practical workaround, one that do not depend on a specific browser, proxie or type of user... while Pilho Kim patch is considered by the developers and the bug is fixed.. We used this approach with a servlet that was used as the SRC of an IMG. The servlet rendered a diferent image each time the page was served, but the cache of the browser was just displaying the last version of the image. In this case Pilho's bug wont fix the problem, but the random parameter will. Julio - Original Message - From: Pilho Kim [EMAIL PROTECTED] To: Tomcat-Dev [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Wednesday, December 06, 2000 9:05 PM Subject: RE: Tomcat, JSP and Cache Hi, Tomcat 3.x and 4.0 have a Cache-Control Bug. But, none of Tomcat commiters know that. Because I am not a commiter, I cannot fix the Bug of Tomcat. Try to check my page: http://www.javaclue.org/tomcat/patch32/dopatch.html Kim On Wed, 6 Dec 2000, Paulo Gaspar wrote: That looks more like a browser/proxy issue. Notice that: - Internet Explorer often caches pages when it should NOT do it; - Internet Explorer sometimes even uses a cache copy when you refresh; - Some browsers ignore those meta tags. - Proxies (usualy) ignore those meta tags. Solutions I use: - To control page caching I use HTTP headers; - To avoid Internet Explorer caching issues I use Netscape 4.7x (the page doesn't look so good but caching and refresh realy work in a predictable way. For more info on caching issues and the relevant HTTP headers read... Basics and HTTP headers: http://www.netapp.com/products/netcache/cache_basics.html http://www.mnot.net/cache_docs/ or http://www.web-caching.com/mnot_tutorial/notes.html THE web caching site: http://www.web-caching.com/ On Proxy caches: http://info.connect.com.au/docs/proxy/faq.html and, if you like RFCs: http://www.faqs.org/rfcs/rfc2187.html Have fun, Paulo Gaspar -Original Message- From: Adress, David S. [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 05, 2000 15:15 I was wondering if anyone can help. I have tomcat server 3.1 running a servlet and jsp page. I have a servlet calling a jsp page with the redirect method. I've put the required meta tags on the jsp page so the page should not cache. However, the page is still caching. In order for my page to display the proper results I need to have my browser reload. Are there any setups that need to be done to Tomcat or do I need to have a web server running also Thanks -Original Message- From: Pier P. Fumagalli [mailto:[EMAIL PROTECTED]] Sent: Monday, December 04, 2000 3:49 PM To: Adress, David S.; '[EMAIL PROTECTED]' Subject: Re: Tomcat, JSP and Cache Adress, David S. [EMAIL PROTECTED] wrote: I was wondering if you can help. Nope, I'm sorry... You'd better contact the Tomcat USERS mailing list. Check out http://jakarta.apache.org/mail.html Pier I have tomcat server running a jsp page. I've put the required meta tags so the page should not cache. However, the page is still caching. In order for my page to display the proper results I need to have my browser reload. Are there any setups that need to be done to Tomcat ??? Thanks -- Pier P. Fumagalli Apache Software Foundation mailto:[EMAIL PROTECTED] -- --
RE: Is their a bug in Tomcat with the RequestDispatcher.forward(url) method?
That's how it works -Original Message- From: David Rees [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 06, 2000 5:13 PM To: [EMAIL PROTECTED] Subject: RE: Is their a bug in Tomcat with the RequestDispatcher.forward(url) method? A forward is an internal redirect, the client never sees it (and therefore never updates the URL in the status bar of the browser). Tomcat is working properly, and it sounds like Weblogic is doing a redirect and is broken. -Dave -Original Message- From: Quenten Van Egeren [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 06, 2000 1:18 PM To: [EMAIL PROTECTED] Subject: Is their a bug in Tomcat with the RequestDispatcher.forward(url) method? I am using the following code snippet in one of my servlets : RequestDispatcher dispatcher = request.getRequestDispatcher(url); dispatcher.forward(request, response); When I do this type of thing under Weblogic 5.1, the url page is displayed and the url in the "Location" box on the browser is changed to this url (this is working correctly) When I do this under Apache/Tomcat the url page displays correctly, but the url in the Location box is the url of the previous page... Is there something special that I need to setup in one of the Tomcat config files, or is this a bug? Any help would be greatly appreciated. Thanks in advance, Quenten Van Egeren ([EMAIL PROTECTED]) __ Do You Yahoo!? Yahoo! Shopping - Thousands of Stores. Millions of Products. http://shopping.yahoo.com/
multipart requests and file uploads problems on the Apache connection
Hi I am running Tomcat 3.2 and Apache 1.3.12. I get some funny behaviour when uploading a file through the apache/tomcat connection. It looks like the input stream is broken. The output from Tomcat looks like Using classpath: /usr/local/tomcat/lib/ant.jar:/usr/local/tomcat/lib/jasper.jar:/usr/local/tomcat/lib/servlet.jar:/usr/local/tomcat/lib/test:/usr/local/tomcat/lib/webserver.jar:/usr/java/jdk/lib/tools.jar:/usr/java/jsse/lib/jcert.jar:/usr/java/jsse/lib/jsse.jar:/usr/java/jsse/lib/jnet.jar:/usr/java/jaxp/jaxp.jar:/usr/java/jaxp/parser.jar:/usr/java/jdk/bin Starting tomcat. Check logs/tomcat.log for error messages upload GIF using http://localhost:8080/spqr/servlet/LogoUpload LogoUpload.service: begin LogoUpload.service: reading file LogoUpload.service: reading new block len = 5283,5283 LogoUpload.service: reading file completed LogoUpload.service: file is GIF LogoUpload.service: looking for footer LogoUpload.service: found footer LogoUpload.service: end upload GIF using http://localhost/spqr/servlet/LogoUpload i.e. over LogoUpload.service: begin LogoUpload.service: reading file Y LogoUpload.service: reading new block len = 340,340 Y LogoUpload.service: reading new block len = 0,340 Y LogoUpload.service: reading new block len = 0,340 Y ... LogoUpload.service: reading new block len = 0,340 Y in an infinite loop! My code (attached) does not print the Y anywhere that I can see! The Apache httpd.conf file is out of the box with the mod_jk.conf.spqr (attached) file included right at the end. Do I have to configure anything in Apache to get it to pass the multi-part request without mangling it? Thanks Sandy package com.mapquest.spqr.db; import java.io.*; import java.net.*; import java.util.*; import javax.servlet.*; import javax.servlet.http.*; import com.oroinc.text.perl.*; public class LogoUpload extends HttpServlet { public static final int maxFileSize=65535; String[] getFileTypes( ) { return new String[] {".gif",".jpg", ".jpeg" }; } public void service( HttpServletRequest _req, HttpServletResponse _res ) throws ServletException, IOException { System.out.println( "LogoUpload.service: begin" ); Client client = (Client)_req.getSession( ).getAttribute( "client" ); if ( client == null ) { throw new ServletException( "No bean called \"client\" in session" ); } String user=client.getUser( ); // // Input and Output streams // InputStream is = _req.getInputStream(); // // Temporary ByteArray.The initial size is set to 8164. // A large initial size improves performance. // ByteArrayOutputStream bos = new ByteArrayOutputStream(8164); // // The files total length,including header and footer // int TotLen=0; int HeaderLen=0; int FooterLen=0; // // byte array for read // byte[] b = new byte[8164]; int len=0; // // Read the InputStream and store it in 'bos'. // System.out.println( "LogoUpload.service: reading file" ); try { while( ((len = is.read(b,0,8164)) != -1) TotLen = maxFileSize ) { bos.write(b,0,len); TotLen += len; System.out.println( "LogoUpload.service: reading new block len = "+len + "," +TotLen ); } is.close(); System.out.println( "LogoUpload.service: reading file completed" ); } catch(IOException e) { System.out.println( "LogoUpload.service: upload failed" ); throw new ServletException( "File upload failed", e ); } if ( TotLen maxFileSize ) { System.out.println( "LogoUpload.service: file too big" ); getServletContext( ) .getRequestDispatcher("/"+client.getDefaultLanguage( )+"/logo-big.jsp") .forward( _req, _res ); return; } String fileExtension = null; try { String GIFRegex = "/Content-Type: image/gif\r\n\r\n/"; String PJPEGRegex = "/Content-Type: image/pjpeg\r\n\r\n/"; String JPEGRegex = "/Content-Type: image/jpeg\r\n\r\n/"; String JPGRegex = "/Content-Type: image/jpg\r\n\r\n/"; String FooterRegex = "/(\r\n\\-+\\w+\\-+\r\n)/"; // // Create a Perl5Util instance. // Perl5Util Matcher = new Perl5Util(); // // check that the file is a GIF or a JPEG and find the end of the header //
Re: How to design a application context servlet
On Thu, 7 Dec 2000, Thomas Eitzenberger wrote: | For this to work we would need a servlet that is started in the startup | of the Servlet engine and will stay in memory (so not | serialized/passivated) and active all the time. It will create a pool of | threads that will listen on different ports for incoming messages from | external systems and will forward this info via JMS to the | EJB container. You can get a servlet to start up on startup of tomcat. This could fork off a (couple of) thread(s) that kept your threadpool running. If the servlet container decides that it doesn't need the servlet anymore, I don't think it would kill the threads. -- Mvh, Endre
Re: bean-classes, classpath
Try webapp/WEB-INF/classes Yomi andreas ebbert wrote: Hi there, does anybody know where I have to put my bean-classes, when I want to use them in jsp-pages? I tried setting the classpath in tomcat.bat to point to the bean-classes, but that didnt work. Any ideas? regards, Andreas --- Andreas Ebbert, Kuthstrasse 43, 51107 Koeln e-mail: [EMAIL PROTECTED] Fon: 0221-8701503, Fax: 0221-5345842 --- -- ~ Abayomi Ayodele Internet Systems Engineer Cable Internet Genesis Business Park Albert Drive Woking Surrey GU21 5RW Tel: (+44) 01483 587095 Mobile: (+44) 07967754196 Fax: (+44) 01483 251810 Email: [EMAIL PROTECTED]
Sharing web application
Hi everybody ! I was wondering if that was possible to share a single web application with multiple web sites. Is there anybody who tried it. All the web sites will be on the same server as well as the web application. Thanks ! Pascal-Eric Servais ( http://pages.infinit.net/denethor http://pages.infinit.net/denethor ) Cognicase ( division Web ) --- PGP Fingerprint : 8D0C FB66 CAF0 B9B3 E925 8D2E 7BDB 1D47 DC0B 4AEA "Engagez-vous qu'ils disaient, vous allez voir du pays...", Anonyme
Initial Context
Hi, who can tell me, which class or factory is responsible for retrieving the Initial Context (web.xml) . I think it should be a class that implements javax.naming.spi.InitialContextFactory ciao Chrisse
how to embedd bsf with tomat
hello how to embedd with tomcat bye Do You Yahoo!? Get your free @yahoo.co.in address at http://mail.yahoo.co.in
running init() twice?
Hello, I have a web page with 2 frames. Both frames invoke one servlet with different parameters. When I run this servlet, it seems like it is executing the init method twice, once for each frame. Is there an option that I can set in tomcat, which would make sure that the init method of my servlet only invoked once? Thanks irina begin:vcard n:Rubenchik;Irina tel;pager:888-919-6628 tel;work:212-762-1594 x-mozilla-html:FALSE org:MSDW;IT adr:;;750 7th Ave, 14th Floor;New York;NY;10019;USA version:2.1 email;internet:[EMAIL PROTECTED] fn:Irina Rubenchik end:vcard
Re: multipart requests and file uploads problems on the Apache connection
Sandy McPherson wrote: Looks like the Ajp13 is screwing up! The stuff works properly when I set the servlet protocol to Ajp12 Hi I am running Tomcat 3.2 and Apache 1.3.12. I get some funny behaviour when uploading a file through the apache/tomcat connection. It looks like the input stream is broken. The output from Tomcat looks like Using classpath: /usr/local/tomcat/lib/ant.jar:/usr/local/tomcat/lib/jasper.jar:/usr/local/tomcat/lib/servlet.jar:/usr/local/tomcat/lib/test:/usr/local/tomcat/lib/webserver.jar:/usr/java/jdk/lib/tools.jar:/usr/java/jsse/lib/jcert.jar:/usr/java/jsse/lib/jsse.jar:/usr/java/jsse/lib/jnet.jar:/usr/java/jaxp/jaxp.jar:/usr/java/jaxp/parser.jar:/usr/java/jdk/bin Starting tomcat. Check logs/tomcat.log for error messages upload GIF using http://localhost:8080/spqr/servlet/LogoUpload LogoUpload.service: begin LogoUpload.service: reading file LogoUpload.service: reading new block len = 5283,5283 LogoUpload.service: reading file completed LogoUpload.service: file is GIF LogoUpload.service: looking for footer LogoUpload.service: found footer LogoUpload.service: end upload GIF using http://localhost/spqr/servlet/LogoUpload i.e. over LogoUpload.service: begin LogoUpload.service: reading file Y LogoUpload.service: reading new block len = 340,340 Y LogoUpload.service: reading new block len = 0,340 Y LogoUpload.service: reading new block len = 0,340 Y ... LogoUpload.service: reading new block len = 0,340 Y in an infinite loop! My code (attached) does not print the Y anywhere that I can see! The Apache httpd.conf file is out of the box with the mod_jk.conf.spqr (attached) file included right at the end. Do I have to configure anything in Apache to get it to pass the multi-part request without mangling it? Thanks Sandy package com.mapquest.spqr.db; import java.io.*; import java.net.*; import java.util.*; import javax.servlet.*; import javax.servlet.http.*; import com.oroinc.text.perl.*; public class LogoUpload extends HttpServlet { public static final int maxFileSize=65535; String[] getFileTypes( ) { return new String[] {".gif",".jpg", ".jpeg" }; } public void service( HttpServletRequest _req, HttpServletResponse _res ) throws ServletException, IOException { System.out.println( "LogoUpload.service: begin" ); Client client = (Client)_req.getSession( ).getAttribute( "client" ); if ( client == null ) { throw new ServletException( "No bean called \"client\" in session" ); } String user=client.getUser( ); // // Input and Output streams // InputStream is = _req.getInputStream(); // // Temporary ByteArray.The initial size is set to 8164. // A large initial size improves performance. // ByteArrayOutputStream bos = new ByteArrayOutputStream(8164); // // The files total length,including header and footer // int TotLen=0; int HeaderLen=0; int FooterLen=0; // // byte array for read // byte[] b = new byte[8164]; int len=0; // // Read the InputStream and store it in 'bos'. // System.out.println( "LogoUpload.service: reading file" ); try { while( ((len = is.read(b,0,8164)) != -1) TotLen = maxFileSize ) { bos.write(b,0,len); TotLen += len; System.out.println( "LogoUpload.service: reading new block len = "+len + "," +TotLen ); } is.close(); System.out.println( "LogoUpload.service: reading file completed" ); } catch(IOException e) { System.out.println( "LogoUpload.service: upload failed" ); throw new ServletException( "File upload failed", e ); } if ( TotLen maxFileSize ) { System.out.println( "LogoUpload.service: file too big" ); getServletContext( ) .getRequestDispatcher("/"+client.getDefaultLanguage( )+"/logo-big.jsp") .forward( _req, _res ); return; } String fileExtension = null; try { String GIFRegex = "/Content-Type: image/gif\r\n\r\n/"; String PJPEGRegex = "/Content-Type: image/pjpeg\r\n\r\n/"; String JPEGRegex = "/Content-Type: image/jpeg\r\n\r\n/"; String JPGRegex = "/Content-Type: image/jpg\r\n\r\n/"; String FooterRegex =
Install Apache3.14 with mod_jk.so and Tomcat3.2
Hi, We are trying to get Apache3.14 working with mod_jk.so and Tomcat3.2 on a Digital Alpha Tru64 4.0D Unix, with J2SDK 1.2.2. Everything compiled fine (thanks to the other mail-threads :) Apache with mod_jserv runs fine. Now the configuration of Tomcat and Apache with mod_jk. That's hard! Anyone already up-and-running? Mario Beekwilder Software Engineer - CMG-TP
RE: Tomcat, JSP and Cache
Kim, It looks like you are heavily involved in working on bug fixes for Tomcat. Given that, I would suggest you get in contact with someone at the Apache Group and see if you can't get more access. From my perspective, it looks like your involvement would be both rewarding to you and very beneficial to the whole Jakarta community. Jake At 11:05 AM 12/7/2000 +0900, you wrote: Hi, Tomcat 3.x and 4.0 have a Cache-Control Bug. But, none of Tomcat commiters know that. Because I am not a commiter, I cannot fix the Bug of Tomcat. Try to check my page: http://www.javaclue.org/tomcat/patch32/dopatch.html Kim On Wed, 6 Dec 2000, Paulo Gaspar wrote: That looks more like a browser/proxy issue. Notice that: - Internet Explorer often caches pages when it should NOT do it; - Internet Explorer sometimes even uses a cache copy when you refresh; - Some browsers ignore those meta tags. - Proxies (usualy) ignore those meta tags. Solutions I use: - To control page caching I use HTTP headers; - To avoid Internet Explorer caching issues I use Netscape 4.7x (the page doesn't look so good but caching and refresh realy work in a predictable way. For more info on caching issues and the relevant HTTP headers read... Basics and HTTP headers: http://www.netapp.com/products/netcache/cache_basics.html http://www.mnot.net/cache_docs/ or http://www.web-caching.com/mnot_tutorial/notes.html THE web caching site: http://www.web-caching.com/ On Proxy caches: http://info.connect.com.au/docs/proxy/faq.html and, if you like RFCs: http://www.faqs.org/rfcs/rfc2187.html Have fun, Paulo Gaspar -Original Message- From: Adress, David S. [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 05, 2000 15:15 I was wondering if anyone can help. I have tomcat server 3.1 running a servlet and jsp page. I have a servlet calling a jsp page with the redirect method. I've put the required meta tags on the jsp page so the page should not cache. However, the page is still caching. In order for my page to display the proper results I need to have my browser reload. Are there any setups that need to be done to Tomcat or do I need to have a web server running also Thanks -Original Message- From: Pier P. Fumagalli [mailto:[EMAIL PROTECTED]] Sent: Monday, December 04, 2000 3:49 PM To: Adress, David S.; '[EMAIL PROTECTED]' Subject: Re: Tomcat, JSP and Cache Adress, David S. [EMAIL PROTECTED] wrote: I was wondering if you can help. Nope, I'm sorry... You'd better contact the Tomcat USERS mailing list. Check out http://jakarta.apache.org/mail.html Pier I have tomcat server running a jsp page. I've put the required meta tags so the page should not cache. However, the page is still caching. In order for my page to display the proper results I need to have my browser reload. Are there any setups that need to be done to Tomcat ??? Thanks -- Pier P. Fumagalli Apache Software Foundation mailto:[EMAIL PROTECTED] -- --
RE: Is their a bug in Tomcat with the RequestDispatcher.forward(u rl) method?
Thanks for the replies, I knew that the forward did an internal redirect, I was just confused as to why Weblogic was doing it one way and Tomcat another. So the next question is : what is the easiest way to do something like a response.sendRedirect() and still keep the request object intact? Thanks, Quenten --- "MacLaren, Donald" [EMAIL PROTECTED] wrote: That's how it works -Original Message- From: David Rees [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 06, 2000 5:13 PM To: [EMAIL PROTECTED] Subject: RE: Is their a bug in Tomcat with the RequestDispatcher.forward(url) method? A forward is an internal redirect, the client never sees it (and therefore never updates the URL in the status bar of the browser). Tomcat is working properly, and it sounds like Weblogic is doing a redirect and is broken. -Dave -Original Message- From: Quenten Van Egeren [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 06, 2000 1:18 PM To: [EMAIL PROTECTED] Subject: Is their a bug in Tomcat with the RequestDispatcher.forward(url) method? I am using the following code snippet in one of my servlets : RequestDispatcher dispatcher = request.getRequestDispatcher(url); dispatcher.forward(request, response); When I do this type of thing under Weblogic 5.1, the url page is displayed and the url in the "Location" box on the browser is changed to this url (this is working correctly) When I do this under Apache/Tomcat the url page displays correctly, but the url in the Location box is the url of the previous page... Is there something special that I need to setup in one of the Tomcat config files, or is this a bug? Any help would be greatly appreciated. Thanks in advance, Quenten Van Egeren ([EMAIL PROTECTED]) __ Do You Yahoo!? Yahoo! Shopping - Thousands of Stores. Millions of Products. http://shopping.yahoo.com/ __ Do You Yahoo!? Yahoo! Shopping - Thousands of Stores. Millions of Products. http://shopping.yahoo.com/
Re: Initial Context
Hi, In 'vanilla' tomcat 3.2 there is no jndi support. There are versions out there from commercial suppliers that support jndi but that's somewhat off-topic. Tomcat 4 is/will support jndi and provide features for support of the java:comp naming constructs -Thom [EMAIL PROTECTED] wrote: Hi, who can tell me, which class or factory is responsible for retrieving the Initial Context (web.xml) . I think it should be a class that implements javax.naming.spi.InitialContextFactory ciao Chrisse
VM terminates on NT
I am using tomcat on NT . my JSPs use JDBC-ODBC driver. The VM keeps terminating with a Dr. Watson Error. The same code works fine in JavaWebServer. Could someone help me with this Ravi
AW: Error 500
Have a look at the generated source _0002falter_0002ejspalter_jsp_1.java line 88. It somewhere under the work directory in the tomcat root. -Ursprüngliche Nachricht- Von: nitin mundada [mailto:[EMAIL PROTECTED]] Gesendet: Donnerstag, 7. Dezember 2000 08:47 An: [EMAIL PROTECTED] Betreff: Error 500 Hi i am getting Error 500, can any one tell me why. i am calling a jsp file alter.jsp through html file - start.html. html file is in /web directory, while jsp file is in /web//webapps/ROOT directory. this alter.jsp file calls servlet deleteuser, which is at /web//webapps/javaserv/WEB-INF/classes directory. the error i am getting is Error: 500 Location: /alter.jsp Internal Servlet Error: javax.servlet.ServletException: at org.apache.jasper.runtime.PageContextImpl.handlePageException( PageContextImpl.java:386) at _0002falter_0002ejspalter_jsp_1._jspService(_0002falter_0002ej spalter_jsp_1.java:131) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:126) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.runtime.JspServlet$JspServletWrapper.service (JspServlet.java:174) at org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet .java:261) at org.apache.jasper.runtime.JspServlet.service(JspServlet.java:369) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWra pper.java:503) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:559) at org.apache.tomcat.service.connector.Ajp12ConnectionHandler.pro cessConnection(Ajp12ConnectionHandler.java:156) at org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEnd point.java:338) at java.lang.Thread.run(Thread.java:475) Root cause: java.lang.NullPointerException: at _0002falter_0002ejspalter_jsp_1._jspService(_0002falter_0002ej spalter_jsp_1.java:88) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:126) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.runtime.JspServlet$JspServletWrapper.service (JspServlet.java:174) at org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet .java:261) at org.apache.jasper.runtime.JspServlet.service(JspServlet.java:369) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWra pper.java:503) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:559) at org.apache.tomcat.service.connector.Ajp12ConnectionHandler.pro cessConnection(Ajp12ConnectionHandler.java:156) at org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEnd point.java:338) at java.lang.Thread.run(Thread.java:475) can any one help me thanx nitin Do You Yahoo!? Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk or your free @yahoo.ie address at http://mail.yahoo.ie
Re: For what's it worth.
Hmm... I'm looking at it and I don't see it? -Original Message-From: micky mimo [EMAIL PROTECTED]To: [EMAIL PROTECTED] [EMAIL PROTECTED]Date: Wednesday, December 06, 2000 9:30 PMSubject: For what's it worth. The December issue of Java-pro magazine has an issue on Tomcat installation. It's worth checking out if you are a newbie.
RE: Can't find apxs command
Yes, you need to install apache-devel to get apxs. It will live in /usr/sbin. http://rpmfind.net/linux/RPM/redhat/7.0/i386/apache-devel-1.3.12-25.i386.htm l Pat -Original Message- From: James Devenish [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 07, 2000 3:51 AM To: [EMAIL PROTECTED] Subject: Re: Can't find apxs command On Wed, Dec 06, 2000 at 10:40:21AM -0800, Matt Becker wrote: Hi, I'm trying to compile mod_jk on a Red Hat 7.0 system with the latest Apache rpm, Tomcat 3.2, etc. but can't find the "apxs" command anywhere. I'm beginning to wonder if the problems I've had trying to get Tomcat and Apache working together come from that the Apache I'm using is preinstalled by Red Hat and maybe I should instead install the Linux without a web server and manually install Apache? Well, if you obtain an Apache distro from apache.org, it will contain the apxs script (the source distribution does, at least, so I assume the binary one does too). I notice that apxs is not included in the Debian apache package, however it does exist in the Debian apache-dev package. Perhaps there's a similar situation with RH7? Look for alternative apache packages. HTH
Tomcat under UNIX Newbie Question
Hi All, I've used Tomcat on Win32 a little, and I'm about to enter the world of Unix. I noticed that there is one .tar file for Unix, but I may be using Solaris, UnixWare 7 or FreeBSD for Intel, or AIX for Risc System 6000. Does the .tar file contain the Tomcat source only? If so, is the source completely portable across these systems. Regards, Stuart _ Get more from the Web. FREE MSN Explorer download : http://explorer.msn.com
RE: For what's it worth.
I didn't find it particularly enlightening -- it pretty much deals with just the simple stuff. -Original Message- From: micky mimo [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 06, 2000 7:43 PM To: [EMAIL PROTECTED] Subject: For what's it worth. The December issue of Java-pro magazine has an issue on Tomcat installation. It's worth checking out if you are a newbie.
RE: java.lang.ClassCastException
A new classloader will be used to load the new servlet. That classloader will be used within that servlet, and two different classloaders' versions of the same class count as different classes in the JVM. Thus the object in the session has the old classloader, whereas the thing trying to use it is using the new classloader. Just starting a new session each time you upload your servlet should cure the problem. I was having this same exact problem earlier this week. The suggestion then was to restart Tomcat. I will see if opening a new browser lets this work. Thanks for the tip, -Dave
RE: tomcat start help
I shure have. (In our case, the VM crashed right at the first page request) The solution that worked for us is to move to JDK 1.3 provided by Sun. The 1.3 version from Blackdown was not yet available at that time, and the one from IBM did suffer the same error. The solution as stated by RedHat is to upgrate glibc. Have a look at http://www.redhat.com/support/errata/rh7-errata-bugfixes.html I would also migrate to a final release, either 1.2.2 or 1.3 Tim -Original Message- From: [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]] Sent: Tuesday, December 05, 2000 9:43 PM To: [EMAIL PROTECTED] Subject: tomcat start help When I try to start tomcat I get the following: 2000-12-05 01:31:10 - ContextManager: Adding context Ctx( /examples ) SIGSEGV 11* segmentation violation si_signo [0]: no signal si_errno [0]: Success si_code [268545696]: unknown siginfo stackpointer=0x7fffec58 Full thread dump Classic VM (Linux_JDK_1.2.2_RC4, native threads): "Thread-0" (TID:0x30cd6c60, sys_thread_t:0x10208938, state:CW, native ID:0x1005) prio=5 at java.lang.Object.wait(Native Method) at java.lang.Object.wait(Object.java:424) at org.apache.tomcat.util.Queue.pull(Queue.java:89) at org.apache.tomcat.logging.LogDaemon$1.run(TomcatLogger.java:238) at org.apache.tomcat.logging.LogDaemon.run(TomcatLogger.java:254) "Finalizer" (TID:0x30cc0320, sys_thread_t:0x100985f0, state:CW, native ID:0xc04) prio=8 at java.lang.Object.wait(Native Method) at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:112) at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:127) at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:174) "Reference Handler" (TID:0x30cc03b0, sys_thread_t:0x10090fb0, state:CW, native ID:0x803) prio=10 at java.lang.Object.wait(Native Method) at java.lang.Object.wait(Object.java:424) at java.lang.ref.Reference$ReferenceHandler.run(Reference.java:114) "SIGQUIT handler" (TID:0x30cc03e0, sys_thread_t:0x10097ab8, state:R, native ID:0x402) prio=5 "main" (TID:0x30cc01e0, sys_thread_t:0x1001af20, state:R, native ID:0x400) prio=5 at org.apache.tomcat.util.xml.SetProperties.setProperty(XmlMapper.java:631) at org.apache.tomcat.util.xml.SetProperties.start(XmlMapper.java:611) at org.apache.tomcat.util.xml.XmlMapper.matchStart(XmlMapper.java:384) at org.apache.tomcat.util.xml.XmlMapper.startElement(XmlMapper.java:81) at com.sun.xml.parser.Parser.maybeElement(Parser.java:1391) at com.sun.xml.parser.Parser.content(Parser.java:1499) at com.sun.xml.parser.Parser.maybeElement(Parser.java:1400) at com.sun.xml.parser.Parser.content(Parser.java:1499) at com.sun.xml.parser.Parser.maybeElement(Parser.java:1400) at com.sun.xml.parser.Parser.parseInternal(Parser.java:492) at com.sun.xml.parser.Parser.parse(Parser.java:284) at javax.xml.parsers.SAXParser.parse(SAXParser.java:155) at javax.xml.parsers.SAXParser.parse(SAXParser.java:126) at org.apache.tomcat.util.xml.XmlMapper.readXml(XmlMapper.java:214) at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:187) at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235) Monitor Cache Dump: org.apache.tomcat.util.Queue@30CD6CB0/30D5D4D0: unowned Waiting to be notified: "Thread-0" (0x10208938) java.lang.ref.Reference$Lock@30CC03C0/30CF58A8: unowned Waiting to be notified: "Reference Handler" (0x10090fb0) java.lang.ref.ReferenceQueue$Lock@30CC0338/30CF5B90: unowned Waiting to be notified: "Finalizer" (0x100985f0) Registered Monitor Dump: utf8 hash table: unowned JNI pinning lock: unowned JNI global reference lock: unowned BinClass lock: unowned Class linking lock: unowned System class loader lock: unowned Code rewrite lock: unowned Heap lock: unowned Monitor cache lock: owner "main" (0x1001af20) 1 entry Thread queue lock: owner "main" (0x1001af20) 1 entry Monitor registry: owner "main" (0x1001af20) 1 entry That doesn't seem good. Any ideas? ACS
RE: response.sendRedirect bug or feature
Add a return statement: if (a b) { response.sendRedirect(url1); return; } // Do something else! response.sendRedirect(url1); -Dave -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Zsolt Koppany Sent: Thursday, December 07, 2000 12:30 AM To: [EMAIL PROTECTED] Subject: response.sendRedirect bug or feature Hi, I think it might have been changed since tomcat-3.2-beta-6 but now when I execute a response.sendRedirect(..) the rest of the jsp file is still executed. How can I prevent that? My example: if (a b) { response.sendRedirect(url1); // Here I don't want to proceed this jsp file because url1 creates a complete page on its own. } // Let's do somthing else! ... response.sendRedirect(url2); Zsolt -- Zsolt Koppany Intland GmbH www.intland.com Schulze-Delitzsch-Strasse 16 D-70565 Stuttgart Tel: +49-711-7871080 Fax: +49-711-7871017
HTTP 501 Not Implemented Error
I keep recieving this error. I thing I have everything installed correctly. Im using Win 2000 Pro (Workstation), IIS5.0 jakarta-tomcat-3.2, and jdk1.3. I have the registry keys set up ok and the filter is set up with the green arrow beside it in IIS, and tomcat start seems to be running ok. Thanking u in advance,
url mapping failing for xml extensions with cocoon.
hi guys I am trying to integrate cocoon with tomcat and apache.. Everything works fine when i try to access xml pages using tomcat standalone mode thru port 8080.. I later compiled mod_jk and successfully integrated apache with tomcat.. However when i try to access the context thru the ajp13 connector xml is being thrown to the client with out any xsl translation.. The cocoon WEB-INF file mentions a servlet org.apache.cocoon.Cocoon to handle all file names with xml extension I checked up WEB-INF of my context and it had the url pattern matching element.. servlet-mapping servlet-nameorg.apache.cocoon.Cocoon/servlet-name url-pattern*.xml/url-pattern /servlet-mapping Can any one tell me what i am missing.. I read thru the servlet spec too which mentioned that this kind of a maping is a extension mapping.. I am using 3.2 final tomcat along with apache 1.3.12 and cocoon 1.8 Awaiting ur speedy response.. Regards Anand ps : all the property files and WEB-INF files are attached ### many lines have been snipped ### # # Virtual Host configuration for the /ntoday context starts. # VirtualHost 192.168.3.39 ServerName xml.itgo.delhi DocumentRoot /usr/local/jakarta-home/dist/tomcat/webapps/ntoday Directory "/usr/local/jakarta-home/dist/tomcat/webapps/ntoday/WEB-INF" AllowOverride None deny from all /Directory Directory "/usr/local/jakarta-home/dist/tomcat/webapps/ntoday/META-INF" AllowOverride None deny from all /Directory JkMount /servlet/* ajp13 JkMount /*.jsp ajp13 AddHandler server-parsed .shtml AddTypetext/html .shtml /VirtualHost ### # Virutal Host configuration for the /ntoday context ends. ### ?xml version="1.0" encoding="ISO-8859-1"? !-- This is the web-app configurations that allow Cocoon to work under Apache Tomcat. Please, follow the installation section of the documentation for more information about installing Cocoon on Tomcat -- !DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN" "http://java.sun.com/j2ee/dtds/web-app_2.2.dtd" web-app servlet servlet-nameorg.apache.cocoon.Cocoon/servlet-name servlet-classorg.apache.cocoon.Cocoon/servlet-class init-param param-nameproperties/param-name param-valueWEB-INF/cocoon.properties/param-value /init-param /servlet servlet-mapping servlet-nameorg.apache.cocoon.Cocoon/servlet-name url-pattern/retest/*/url-pattern /servlet-mapping servlet-mapping servlet-nameorg.apache.cocoon.Cocoon/servlet-name url-pattern*.xml/url-pattern /servlet-mapping /web-app
Java VJM won't quit?
Hello... I'm attempting to setup Tomcat 3.2 on a Solaris 8/x86 machine. My setup is as follows: - Solaris 8/x86 - Apache 1.3.14 - mod_jk - PHP 4.0.3pl1 - mod_dav 1.0.2 java -version reports: java version "1.2.2" Solaris VM (build Solaris_JDK_1.2.2_05a, native threads, sunwjit) With that out of the way, here's my problem. When I attempt to execute a .JSP page the Java VJM launches (as seen with top), and starts to run. However, it keep on running, consuming more and more CPU power until it reaches around 50%. (This is a dual processor box.) The VJM will not quit. I've let it go for around three minutes before I've killed it several times. I get the exact same result when I use Tomcat via Apache/mod_jk, as well as the built-in HTTP server in Tomcat. (The HTTP server in Tomcat works, I should add.) I'm out of ideas for debugging. I see nothing unusual in the logs. Has anyone seen this before? I'm stumped. Thanks, Matt White Mad River Local Schools [EMAIL PROTECTED]
Obtaining the Jserv Module
I just installed the 3.2 and am in the process of making it on apache and during the build of Jserv I receive the following error # /opt/apache/bin/apxs -c *.c -o mod_jserv.so cc -Ae +z -DHPUX11 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite -O -DSHARED_MODULE -I/opt/apache/include -c *.c (Bundled) cc: warning 480: The -A option is available only with the C/ANSI C product; ignored. (Bundled) cc: warning 480: The +z option is available only with the C/ANSI C product; ignored. (Bundled) cc: warning 480: The -O option is available only with the C/ANSI C product; ignored. (Bundled) cc: warning 485: Can't open "*.c". apxs:Break: Command failed with rc=1 Any ideas or way I could find a pre-built version of mod_jserv.so... Dan
RE: VM terminates on NT
The JDBC-ODBC bridge supplied by Sun is not thread safe. If you are trying to use 2 connections (in any number of threads) at the same time (as in the ODBC drivers are sending information at the same time) then it will crash with a Dr. Watson Error. This is a known bug documented in Sun's Bug Parade. As I recall this has been known issue by Sun since the beta releases of JDBC and they had no plans to fix it. It probably worked under JavaWebServer due to some form of blocking that was happening higher up in the code. (Maybe the servlets were SingleThreadModel or JavaWebServer is not threaded?) The best solution is to get better drivers for your database. Randy -Original Message- From: Ravi Kiran D [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 07, 2000 10:34 AM To: [EMAIL PROTECTED] Subject: VM terminates on NT I am using tomcat on NT . my JSPs use JDBC-ODBC driver. The VM keeps terminating with a Dr. Watson Error. The same code works fine in JavaWebServer. Could someone help me with this Ravi
RE: Tomcat under UNIX Newbie Question
The TAR file contains the .class/.jar files that the JVM uses, as well as the startup/shutdown scripts written for NT (.bat) and UNIX (.sh), and the documentation (.html). Write Once, Run Many at its best!! Randy -Original Message- From: Stuart Morse [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 07, 2000 11:19 AM To: [EMAIL PROTECTED] Subject: Tomcat under UNIX Newbie Question Hi All, I've used Tomcat on Win32 a little, and I'm about to enter the world of Unix. I noticed that there is one .tar file for Unix, but I may be using Solaris, UnixWare 7 or FreeBSD for Intel, or AIX for Risc System 6000. Does the .tar file contain the Tomcat source only? If so, is the source completely portable across these systems. Regards, Stuart _ Get more from the Web. FREE MSN Explorer download : http://explorer.msn.com
Re: Tomcat under UNIX Newbie Question
there is a tomcat binary file that you can download and untar. no need to compile it. Stuart Morse wrote: Hi All, I've used Tomcat on Win32 a little, and I'm about to enter the world of Unix. I noticed that there is one .tar file for Unix, but I may be using Solaris, UnixWare 7 or FreeBSD for Intel, or AIX for Risc System 6000. Does the .tar file contain the Tomcat source only? If so, is the source completely portable across these systems. Regards, Stuart _ Get more from the Web. FREE MSN Explorer download : http://explorer.msn.com
SessionSerializer
Can someone tell me a little bit about something called SessionSerializer? Apparently something happens on reload, and SessionSerializer says (on stdout) that one of my objects doesn't serialize. I guess the point is that it should serialize the Session on it's way "down", and then deserilalize on it's way up again. Why do you get ClassCastExceptions anyway? -- Mvh, Endre
RE: 404 error w/ isapi_redirect.dll
Ignacio, Attached are the IIS log and the isapi.log (excerpt). Let me know if these are not the logs you intended. Gracias, Michael Kintzer -Original Message- From: Nacho [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 06, 2000 5:47 PM To: '[EMAIL PROTECTED]' Subject: RE: 404 error w/ isapi_redirect.dll Append logs excerpts please, i have the same conf working like a charm.. Saludos , Ignacio J. Ortega -Mensaje original- De: Kintzer, Michael [mailto:[EMAIL PROTECTED]] Enviado el: jueves 7 de diciembre de 2000 2:47 Para: '[EMAIL PROTECTED]' Asunto: RE: 404 error w/ isapi_redirect.dll I realize this topic has been covered nearly two months ago, but all the solutions given here have not worked for my environment. Here are the details: IIS 5.0, W2KPro, Tomcat 3.2 I've configured everything according to the Tomcat-IIS HowTo and confirmed the following are working: -Tomcat hosted jsp/examples work fine (i.e. localhost:8080/) -isapi_redirect.dll has the green arrow -log files are being generated -isapi_redirect.dll is recognizing that it should handle jsp requests as evidenced by the line GET "/jakarta/isapi_redirect.dll" 200 in my SYSTEM32/LogFiles/W3SVC1/ log. -I can browse to the jakarta virtual directory -Anonymous access is enabled and file permissions on the redirect dll are also enabled for Full Control for Everyone. -the uriworkermap.properties file and the -auto file show that the examples context is being served by ajp12 According to the HowTo, "200" implies the jakarta virtual directory is not configured for Execute permissions, but I've checked that and it is. I've rebooted and restarted both WWWService and AdminService, but nothing seems to fix the 404 error. Anybody have an idea for me? Thanks, Michael -Original Message- From: Paul FitzPatrick [mailto:[EMAIL PROTECTED]] Sent: Monday, October 16, 2000 7:26 AM To: [EMAIL PROTECTED] Subject: RE: 404 error w/ isapi_redirect.dll Stop/Start in the IIS Administrative Tool does not restart the admin service. You have to do this from the control panel or a Dos Prompt like thus : net stop "IIS Admin Service" net start "IIS Admin Service" There are dependant services you may need to restart as well - this is the batch file I use to stop : @ECHO OFF NET STOP "FTP Publishing Service" NET STOP "World Wide Web Publishing Service" NET STOP "IIS Admin Service" In reverse order and replace STOP with START to start them all. -Original Message- From: David Young [mailto:[EMAIL PROTECTED]] Sent: Monday, October 16, 2000 10:11 AM To: [EMAIL PROTECTED] Subject: Re: 404 error w/ isapi_redirect.dll Stop/start did not do it, but rebooting did! From: Kieran Fitzpatrick [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] Date: Mon, 16 Oct 2000 09:52:55 +1000 To: "'[EMAIL PROTECTED]'" [EMAIL PROTECTED] Subject: RE: 404 error w/ isapi_redirect.dll You might find that stopping and restarting the IIS Admin service via the Services applet in Control Panel is sufficient to get this working. At least this seemed to work for me. Good luck, Kieran -Original Message- From: Christian Thomsen [mailto:[EMAIL PROTECTED]] Sent: Monday, 16 October 2000 6:07 AM To: [EMAIL PROTECTED] Subject: Re: 404 error w/ isapi_redirect.dll Hi ! I had the same problem myself. I solved it by rebooting the computer (no kidding !). As I have verified several times, you have to do this when you change the IIS/Tomcat property files. I hope it helps, Chris - Original Message - From: "David Young" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, October 13, 2000 4:39 AM Subject: 404 error w/ isapi_redirect.dll Hello, I am trying to get Tomcat working with IIS using the isapi_redirect.dll. I followed the How To instructions by Gal Shachor, however when I attempt to access http://localhost/examples/, I get a 404 saying it can't find /jakarta/isapi_redirect.dll. - Windows 2000 Professional - IIS is running on port 80 - Anonymous access is enabled - I can browse to http://localhost/jakarta/, so the vdir seems OK - /jakarta vdir is set to allow execution - Permissions on isapi_redirect.dll allow everyone to exec - Tomcat is running fine on port 8080, including /examples isapi.log #Software: Microsoft Internet Information Services 5.0 #Version: 1.0 #Date: 2000-12-07 00:14:04 #Fields: date time c-ip cs-username s-sitename s-ip s-port cs-method cs-uri-stem cs-uri-query sc-status cs(User-Agent) 2000-12-07 00:14:04 192.168.0.249 - W3SVC1 192.168.0.230 80 GET /iisstart.asp - 200 Mozilla/4.0+(compatible;+MSIE+5.01;+Windows+NT+5.0) 2000-12-07 00:14:07 192.168.0.249 - W3SVC1 192.168.0.230 80 GET /favicon.ico - 404 Mozilla/4.0+(compatible;+MSIE+5.01;+Windows+NT+5.0) 2000-12-07 00:14:27 192.168.0.249 - W3SVC1
RE: RE: Tomcat and JNI
Title: RE: RE: Tomcat and JNI The solution to this problem was to add the location of the class that contains the native methods to the CLASSPATH prior to launching Tomcat. Eric. -Original Message- From: Niall Gormley [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 06, 2000 12:23 PM To: [EMAIL PROTECTED] Subject: Re: RE: Tomcat and JNI Eric, I have just finished integrating a large amount of 'C' code into servlets using JNI. One useful tool I used was trace (or truss on Solaris, there is a eqivalent on HP but I can't remember what is is.) This traces all the system calls and you shoud see that library it is trying to load when your code fails. In addition is all your C code compilied with the -pthread option? Regards, Niall Additions and Corrections welcome. _ Get your free E-mail at http://www.ireland.com
problems with '' and ''
Hi together, i have the problem that tomcat (3.1) doesn't like the '' and '' - symbols. I have to use it as a parameter which determines the next page. But either if i take the html-code ('lt;' and 'gt;') or the symbols itsself, tomcat doesn't show the correct page. Does anybody know my problem? Thanks. benjamin thym
Question about Buffering
I have a simple jsp that turns off buffering, and writes to the output stream, then loops for 30 seconds and writes again to the output stream (source at the bottom). My expectation was that, since there was no buffering that as I wrote to the stream, the result would print to the browser as the script ran, then 30 seconds later the rest of the text would print. Obviously this is a misconception, the jsp executes and when it is complete it sends everything. My question about the buffer is this, what if the buffer is filled, but the script is still processing? Is a second buffer filled or 3rd, etc. until the processing is completed and then all buffers get combined and sent in the stream? Thanks, and apolgoies if the question is overly-simplistic. Thanks. %@page import="java.util.*" % %@ page buffer="none" % % out.println("weoiruwieruwieru"); long lDelay = 1000*30; try {Thread.sleep(lDelay); } catch(InterruptedException e) { } out.println("brweoiruwieruwieru"); out.close(); % -- NOTICE: The information contained in this electronic mail transmission is intended by Convergys Corporation for the use of the named individual or entity to which it is directed and may contain information that is privileged or otherwise confidential. If you have received this electronic mail transmission in error, please delete it from your system without copying or forwarding it, and notify the sender of the error by reply email or by telephone (collect), so that the sender's address records can be corrected.
RE: 404 error w/ isapi_redirect.dll
Ignacio, Looks like my last post didn't make it through so I'll try again. I've appended logs from IIS and the isapi.log. Let me know if these were not what you intended. Gracias, Michael *** IIS Log * #Software: Microsoft Internet Information Services 5.0 #Version: 1.0 #Date: 2000-12-07 01:18:31 #Fields: date time c-ip cs-username s-sitename s-ip s-port cs-method cs-uri-stem cs-uri-query sc-status cs(User-Agent) 2000-12-07 01:18:31 127.0.0.1 - W3SVC1 127.0.0.1 80 GET /examples - 404 Mozilla/4.0+(compatible;+MSIE+5.01;+Windows+NT+5.0) 2000-12-07 01:20:11 192.168.0.249 - W3SVC1 192.168.0.230 80 GET /jakarta/isapi_redirect.dll - 200 Mozilla/4.0+(compatible;+MSIE+5.01;+Windows+NT+5.0) 2000-12-07 01:54:32 192.168.0.8 - W3SVC1 192.168.0.230 80 GET /examples:8080/jsp/index.html - 404 Mozilla/4.0+(compatible;+MSIE+5.01;+Windows+NT+5.0) *** isapi.log *** [jk_isapi_plugin.c (408)]: HttpFilterProc started [jk_isapi_plugin.c (429)]: In HttpFilterProc test redirection of /examples:8080/jsp/index.html [jk_uri_worker_map.c (344)]: Into jk_uri_worker_map_t::map_uri_to_worker [jk_uri_worker_map.c (434)]: jk_uri_worker_map_t::map_uri_to_worker, done without a match [jk_isapi_plugin.c (452)]: HttpFilterProc [/examples:8080/jsp/index.html] is not a servlet url [jk_isapi_plugin.c (461)]: HttpFilterProc check if [/examples:8080/jsp/index.html] is points to the web-inf directory [jk_uri_worker_map.c (175)]: Into jk_uri_worker_map_t::uri_worker_map_free [jk_uri_worker_map.c (326)]: Into jk_uri_worker_map_t::uri_worker_map_close [jk_uri_worker_map.c (334)]: jk_uri_worker_map_t::uri_worker_map_close, NULL parameter [jk_uri_worker_map.c (184)]: In jk_uri_worker_map_t::uri_worker_map_free, NULL parameters [jk_worker.c (109)]: Into wc_close [jk_worker.c (111)]: wc_close, done [jk_uri_worker_map.c (155)]: Into jk_uri_worker_map_t::uri_worker_map_alloc [jk_uri_worker_map.c (195)]: Into jk_uri_worker_map_t::uri_worker_map_open [jk_uri_worker_map.c (210)]: jk_uri_worker_map_t::uri_worker_map_open, rule map size is 2 [jk_uri_worker_map.c (266)]: Into jk_uri_worker_map_t::uri_worker_map_open, match rule /servlet/=ajp12 was added [jk_uri_worker_map.c (266)]: Into jk_uri_worker_map_t::uri_worker_map_open, match rule /examples/=ajp12 was added [jk_uri_worker_map.c (295)]: Into jk_uri_worker_map_t::uri_worker_map_open, there are 2 rules [jk_uri_worker_map.c (316)]: jk_uri_worker_map_t::uri_worker_map_open, done [jk_worker.c (82)]: Into wc_open [jk_worker.c (207)]: Into build_worker_map, creating 2 workers [jk_worker.c (213)]: build_worker_map, creating worker ajp12 [jk_worker.c (138)]: Into wc_create_worker [jk_worker.c (152)]: wc_create_worker, about to create instance ajp12 of ajp12 [jk_ajp12_worker.c (264)]: Into ajp12_worker_factory [jk_worker.c (161)]: wc_create_worker, about to validate and init ajp12 [jk_ajp12_worker.c (182)]: Into jk_worker_t::validate [jk_ajp12_worker.c (194)]: In jk_worker_t::validate for worker ajp12 contact is localhost:8007 [jk_worker.c (177)]: wc_create_worker, done [jk_worker.c (223)]: build_worker_map, removing old ajp12 worker [jk_worker.c (213)]: build_worker_map, creating worker ajp13 [jk_worker.c (138)]: Into wc_create_worker [jk_worker.c (152)]: wc_create_worker, about to create instance ajp13 of ajp13 [jk_ajp13_worker.c (708)]: Into ajp23_worker_factory [jk_worker.c (161)]: wc_create_worker, about to validate and init ajp13 [jk_ajp13_worker.c (383)]: Into jk_worker_t::validate [jk_ajp13_worker.c (396)]: In jk_worker_t::validate for worker ajp13 contact is localhost:8009 [jk_ajp13_worker.c (422)]: Into jk_worker_t::init [jk_worker.c (177)]: wc_create_worker, done [jk_worker.c (223)]: build_worker_map, removing old ajp13 worker [jk_worker.c (235)]: build_worker_map, done [jk_worker.c (102)]: wc_open, done * end * -Original Message- From: Nacho [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 06, 2000 5:47 PM To: '[EMAIL PROTECTED]' Subject: RE: 404 error w/ isapi_redirect.dll Append logs excerpts please, i have the same conf working like a charm.. Saludos , Ignacio J. Ortega -Mensaje original- De: Kintzer, Michael [mailto:[EMAIL PROTECTED]] Enviado el: jueves 7 de diciembre de 2000 2:47 Para: '[EMAIL PROTECTED]' Asunto: RE: 404 error w/ isapi_redirect.dll I realize this topic has been covered nearly two months ago, but all the solutions given here have not worked for my environment. Here are the details: IIS 5.0, W2KPro, Tomcat 3.2 I've configured everything according to the Tomcat-IIS HowTo and confirmed the following are working: -Tomcat hosted jsp/examples work fine (i.e. localhost:8080/) -isapi_redirect.dll has the green arrow -log files are being generated -isapi_redirect.dll is recognizing that it should handle jsp requests as
RE: For what's it worth.
Title: RE: For what's it worth. I agree, but like I said this is for the newbie. /===\ | Micky Mimo | | Systems Specialist | | (781) 457 - 1317 | | [EMAIL PROTECTED] | \===/ -Original Message- From: Duane Morse [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 07, 2000 12:03 PM To: '[EMAIL PROTECTED]' Subject: RE: For what's it worth. I didn't find it particularly enlightening -- it pretty much deals with just the simple stuff. -Original Message- From: micky mimo [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 06, 2000 7:43 PM To: [EMAIL PROTECTED] Subject: For what's it worth. The December issue of Java-pro magazine has an issue on Tomcat installation. It's worth checking out if you are a newbie.
Re: XSLT Transformations with Tomcat 3.2 Final and Xalan or XT?
I think the answer for this comes from the Cocoon Documentation. Tomcat has a minimal XML implementation called XML.jar. This file has to be later in your CLASSPATH that Xerces or Xalan. Now if you use Tomcat.sh, the script will put your existing CLASSPATH after Tomcat's configured classpath. You can add Xerces and Xalan into your $TOMCAT_HOME/lib directory but you need to rename them so the appear at the top of a directory listing. i.e. aa_Xerces.jar aa_Xalan.jar. David Geary wrote: Has anyone had success processing XML files with XSLT from a JSP page? I've tried various combinations of XT and Xalan with Tomcat and Resin, with very limited success. I'd really like to process XML with Xalan or XT using Tomcat3.2, but with Tomcat3.2 and Xalan I get a NoSuchMethodException from the bowels of Xalan, and with Tomcat3.2 and XT the transformation fails silently. david
Accessing the ServletOutputStream via RequestInterceptors
Hello, all, I'm trying to find a way to modify the content of a servlet after the servlet has completed all of its processing but before it actually gets sent to the browser (obviously). Here's the context. Our web site stores all its content in XML. All servlets, jsps, and static files return this XML and what I'd like to do is turn it all into HTML on the fly without each servlet, etc., having to worry about doing the transformation itself. My naive first idea was to set the content-type to text/cml (CML is the name of the markup language) and have a CmlToHtmlInterceptor (extends BaseInterceptor) with a afterBody method that would check the content-type and if it's text/cml, retrieve the contents (maybe from a ByteBuffer), run it through an XSL engine, turning it into HTML and sending that back after changing the appropriate headers (content-type, content-length, etc.). Here are my problems: 1) I don't understand the order in which the interceptor methods are called. Should this be done in afterBody? postService? Is the calling sequence documented anywhere? 2) I don't understand the relationship between ByteBuffers and ServletOutputStreams. Or am I completely barking up the wrong tree? Maybe what I mean to ask is how do I get the contents of a servlet in a way that's suitable for modification? 3) This is incidental, but Request.getContentLength() always gives me a -1 when called in afterBody and postService. Request.getOutputBuffer().count (correctly) gives me 8192 (for the small pages I've done). How/where do I get an accurate content-length? One level up, does this seem like a reasonable way to do the transformation of aggregate XML docs? I didn't want to make a TransformationServlet and have everything forward requests off to it for a number of reasons -- orthogonality being a prime one. On the other hand, my understanding of the Tomcat 3.1 code base is spotty at best. I may have no idea what I'm doing. Any feedback would be most appreciated! Thanks, Alex
AW: Java VJM won't quit?
Two suggestions for a cause: Recursive includes. Endless loop. -Ursprüngliche Nachricht- Von: Matt White [mailto:[EMAIL PROTECTED]] Gesendet: Donnerstag, 7. Dezember 2000 18:20 An: [EMAIL PROTECTED] Betreff: Java VJM won't quit? Hello... I'm attempting to setup Tomcat 3.2 on a Solaris 8/x86 machine. My setup is as follows: - Solaris 8/x86 - Apache 1.3.14 - mod_jk - PHP 4.0.3pl1 - mod_dav 1.0.2 java -version reports: java version "1.2.2" Solaris VM (build Solaris_JDK_1.2.2_05a, native threads, sunwjit) With that out of the way, here's my problem. When I attempt to execute a .JSP page the Java VJM launches (as seen with top), and starts to run. However, it keep on running, consuming more and more CPU power until it reaches around 50%. (This is a dual processor box.) The VJM will not quit. I've let it go for around three minutes before I've killed it several times. I get the exact same result when I use Tomcat via Apache/mod_jk, as well as the built-in HTTP server in Tomcat. (The HTTP server in Tomcat works, I should add.) I'm out of ideas for debugging. I see nothing unusual in the logs. Has anyone seen this before? I'm stumped. Thanks, Matt White Mad River Local Schools [EMAIL PROTECTED]
Re: Is their a bug in Tomcat with the RequestDispatcher.forward(u rl) method?
Quenten Van Egeren wrote: Thanks for the replies, I knew that the forward did an internal redirect, I was just confused as to why Weblogic was doing it one way and Tomcat another. So the next question is : what is the easiest way to do something like a response.sendRedirect() and still keep the request object intact? Frankly, there isn't - response.sendRedirect instructs the browser to start a new request and get a different page, so it works as if you were opening a new browser window and loading that page; only session objects will live long enough to get to that new page intact... -- Kurt Bernhard Pruenner --- Haendelstrasse 17 --- 4020 Linz --- Austria Music: http://www.mp3.com/Leak --- Work: http://www.ssw.uni-linz.ac.at ...It might be written "Mindfuck", but it's spelt "L-A-I-N"... np: Boards Of Canada - XYZ (Peel Session broadcast)
Reloading - again..
Sorry for going on and on with this, but I cannot stop being puzzled by it. It seems like Tomcat only really reloads the one class that you hit first. I do a full recompile (deleting all class files just to be sure!), and look at the tomcat log while clicking reload. These logs are both right after a full recompile, but hitting different servlets first: Here I hit "Initialize" first, and then "design.Topbar" and then "Workbench". 2000-12-07 07:04:38 - ContextManager: Host = endre.devel.coretrek.com 2000-12-07 07:04:38 - ContextManager: SM: Prefix match /itraks/servlet/Initialize - /servlet/Initialize/* Initialize(Initialize/null) null 2000-12-07 07:04:38 - ContextManager: SimpleMapper1: Adjust for prefix map /servlet/Initialize 2000-12-07 07:04:38 - ContextManager: SimpleMapper1: SM: After mapping R( /itraks + /servlet/Initialize + null) Initialize(Initialize/null) 2000-12-07 07:04:38 - Ctx( /itraks ): Pre servlet destroy Initialize(Initialize/null) 2000-12-07 07:04:39 - Ctx( /itraks ): Post servlet destroy Initialize(Initialize/null) 2000-12-07 07:04:39 - ContextManager: Reloading context Ctx( /itraks ) 2000-12-07 07:04:39 - Ctx( /itraks ): Pre servlet init Initialize(Initialize/null) 2000-12-07 07:04:39 - Ctx( /itraks ): Post servlet init Initialize(Initialize/null) 2000-12-07 07:04:39 - ContextManager: Host = endre.devel.coretrek.com 2000-12-07 07:04:39 - ContextManager: SM: Prefix match /itraks/servlet/design.Topbar - /servlet/design.Topbar/* design.Topbar(design.Topbar/null) null 2000-12-07 07:04:39 - ContextManager: SimpleMapper1: Adjust for prefix map /servlet/design.Topbar 2000-12-07 07:04:39 - ContextManager: SimpleMapper1: SM: After mapping R( /itraks + /servlet/design.Topbar + null) design.Topbar(design.Topbar/null) 2000-12-07 07:04:39 - ContextManager: Host = endre.devel.coretrek.com 2000-12-07 07:04:39 - ContextManager: SM: Prefix match /itraks/servlet/Workbench - /servlet/Workbench/* Workbench(Workbench/null) null 2000-12-07 07:04:39 - ContextManager: SimpleMapper1: Adjust for prefix map /servlet/Workbench 2000-12-07 07:04:39 - ContextManager: SimpleMapper1: SM: After mapping R( /itraks + /servlet/Workbench + null) Workbench(Workbench/null) This is strange right away, because why aren't all the servlets destroyed right away? I mean, they're all ditched right away, since a context reload actually puts the whole ClassLoader out of scope and makes a new one to be able to reload the classes. So why aren't they all destroyed too? Then this is if I hit Workbench first, and then hit the "design.Topbar". 2000-12-07 07:08:43 - ContextManager: Host = endre.devel.coretrek.com 2000-12-07 07:08:43 - ContextManager: SM: Prefix match /itraks/servlet/Workbench - /servlet/Workbench/* Workbench(Workbench/null) null 2000-12-07 07:08:43 - ContextManager: SimpleMapper1: Adjust for prefix map /servlet/Workbench 2000-12-07 07:08:43 - ContextManager: SimpleMapper1: SM: After mapping R( /itraks + /servlet/Workbench + null) Workbench(Workbench/null) 2000-12-07 07:08:43 - Ctx( /itraks ): Pre servlet destroy Workbench(Workbench/null) 2000-12-07 07:08:43 - Ctx( /itraks ): Post servlet destroy Workbench(Workbench/null) 2000-12-07 07:08:43 - ContextManager: Reloading context Ctx( /itraks ) 2000-12-07 07:08:43 - Ctx( /itraks ): Pre servlet init Workbench(Workbench/null) 2000-12-07 07:08:43 - Ctx( /itraks ): Post servlet init Workbench(Workbench/null) 2000-12-07 07:08:49 - ContextManager: Host = endre.devel.coretrek.com 2000-12-07 07:08:49 - ContextManager: SM: Prefix match /itraks/servlet/design.Topbar - /servlet/design.Topbar/* design.Topbar(design.Topbar/null) null 2000-12-07 07:08:49 - ContextManager: SimpleMapper1: Adjust for prefix map /servlet/design.Topbar 2000-12-07 07:08:49 - ContextManager: SimpleMapper1: SM: After mapping R( /itraks + /servlet/design.Topbar + null) design.Topbar(design.Topbar/null) Why is this so? One more thing: Shouldn't the "load-on-startup" servlets also be started up again on a context-reload? btw; I'm using tomcat 3.2 final. -- Mvh, Endre
Sending Email
Hi I am trying to send email and stored the data at the same time using JSP in Tomcat. I am kind of researching a way to do it but does anyone know the easiest way to implement this Thanks Tim
mod_jserv
I am trying to get Tomcat and Apache working but from reading the "Tomcat - A Minimalistic User's Guide" I learn that I need a modified version of mod_jserv. I downloaded Tomcat 3.2 and mod_jserv is not there. Where can I find the modified mod_jserv that it is refering to. Thanks -- \ / \ / -+( ) +-- Jack Frillman| ^ " Carrots are divine you | LEXIS-NEXIS Sr. Software Engineer| *\/|\get a dozen for a dime, | P.O. Box 933 (513) 865-6800 | |/it's magic! | Dayton, Oh 45401 EXT. 4812 | |-Bugs Bunny | -+/ \ +-- | / -- --
Re: cgi-bin
Pierre Roy wrote: Yes, I thought one could handle cgi-bin with Tomcat. Apparently I can either install Apache or call my .exe files from a servlet. You've got it right. Note that if your .exe program expects to be called as a CGI script, you will need to set the environment variables defined by the CGI specification prior to invoking the program. This means you'll be doing about 80% of a general purpose servlet to support CGI scripts in Tomcat stand-alone. If anyone wants to write and contribute a such a servlet that supports CGI scripts, I would be happy to include it in the standard Tomcat distribution. Thank you all for helpful information. Pierre Craig McClanahan
Re: container managed authentication - how?
Christian Sell wrote: hello, I just installed Tomcat 3.2 and deployed my web application, which is running sucessfully nuder Orion and JRun, using form-based authentication. However, Tomcat completely ignores the security-constraint settings. How can I get Tomcat to enforce this? Does Tomcat support container-managed security? thanks in advance.. Christian BTW, Heres my web.xml, in case somebody wants to take a look: Thanks for including this -- it is the key to understanding your problem. In your security-constraint, you are specifying url-pattern entries that are not legal according to the servlet specification (such as "*/WCFAdmin.jsp" and "*/wcfsystem"). The legal syntax only allows "*" wildcards at the *end* of the URL, not the beginning. If JRun supports these values, it is doing so outside of the servlet spec, and is therefore not portable. For more information on the legal syntax for URL patterns, and pretty much everything else that is mandated about servlets, see the Servlet API Specification, version 2.2, which you can download from http://java.sun.com/products/servlet/download.html. Craig McClanahan
Re: Turning off /servlet/* mapping?
Thom Park wrote: Hello, this works for specific servlets in specific web-apps. I was curious how to turn off the 'magic' backwards compatability mapping of /servlet/ in general. To be honest, I was trying to find where this default mapping is being performed. I would have thought if I removed the prefix= attribute from the InvokerInterceptor in servlet.xml that would have solved the issue. but that doesn't seem to do anything. If you do not want the invoker functionality at all, simply remove the InvokerInterceptor entry completely. If you want to change the prefix that it matches against, modify the prefix attribute (removing it just uses the default value of "/servlet/"). I understand I can craft specific servlet-mappings for each application - what about 'standalone' servlets (I.e. those not in web-apps). I can always modifiy the ROOT/WEB-INF/web.xml to cover that case, however, If I were to turn off the /servlet/ mapping then I wouldn't have to edit all of those web.xml files in the web-apps ( and non-webapps). In a servlet 2.2 environment, there is really no such thing as a "standalone" servlet by your definition. Any request URI that is not matched by one of the installed webapps is handled by the ROOT webapp. I think what I'm asking here is whether the default mapping for any given servlet is "http[s]://address:port/[webapp]/servlet/[servlet-name]"? To be pedantic, it is actually http[s]://address[:port][/webapp]/servlet/servlet-name-or-servlet-class but that is only because the invoker interceptor is installed by default. If you remove it, as described above, the only way a servlet can be invoked is if it matches a servlet-mapping entry in some web application's web.xml file. NOTE: The invoker facility is *not* a part of the servlet API specification, so it is *not* guaranteed to work (or work identically) in every servlet container. It seems to me that, unless I setup a url-pattern then this is the case - I'd just like that to be verified so I can stick it in some documentation that I'm writing :-) The documentation for url-pattern, and pretty much everything else about the web.xml file, is the Servlet API Specification, which you can download from http://java.sun.com/products/servlet/download.html. thanks, Thom Craig McClanahan
Re: RES: importing javax.mail.* from within JSP servlets
"Jose Euclides da Silva Junior - DIGR.O" wrote: Hi Craiq, what do you about using java mail api to upload a multipart-form/data into a JSP or servlet? Thanks Craiq The JavaMail API itself doesn't do everything you need to deal with uploaded files. You should try Jason Hunter's library (http://www.servlets.com) or the file upload processing that was recently added to the Struts framework (http://jakarta.apache.org/struts). José Euclides Júnior Craig McClanahan
Re: JSP page not reloading
Sandhya MS wrote: Hi, We have tried from different machines. So, it cannot be a browser fault. In fact, we do shift+refresh, and we clear the cache in the browser before refreshing it. It must be a tomcat setting that we are missing out. We have observed this- if we change the jsp code sitting on the server m/c, the change is reflected. However, if i edit the jsp code from a m/c other than the server, even though the file is saved, tomcat is not refreshing it. If anybody has a solution please get in touch. The 'reloadable="true"' setting on a context has no effect on JSP pages -- the originally requested page is checked every time for whether it needs to be reloaded, independent of the reloadable setting. The only thing I can think of is that you are referencing a page with an include directive, like this (assume the current page is "thisjsp.jsp"): %@include file="otherjsp.jsp" % In this case, changes to "otherjsp.jsp" will not be detected -- you have to modify the calling page ("thisjsp.jsp") to have Tomcat notice it. Thanks, Sandhya Craig McClanahan PS: Can I ask a really silly question? I've seen people using the abbreviation "m/c" on various mailing lists, and I'm not sure what it means. Could someone explain it for me?
Re: How to design a application context servlet
I've been adminning java-based sites on linux platforms for a year and a half now, and in my experience there is only one way to make sure your servlet is available at all times 1) create a servelet in a zone only accessible from localhost and your trusted gateway, and make sure YOU DO NOT CACHE THIS SERVLET 2) this servlet makes the same system calls as the one that's public, but it only needs to return values from those calls. The values need to be expected; ie, you need to be able to compre the returned value to a known good expected value 3) write a shell script (you could do it in perl, but why load another interpreter every 60 seconds? it's a waste of resources on your server) that calls the private servlet, and checks the returned values against the expected values. 4) run this script from cron every 60 seconds. Any less, and you're unnecessarily loading the server. Any more, and you have too much downtime. 4) if they match, life is grand! exit 1 5) if they don't match, log the diagnostics and restart the JVM. I've attached a script that I use to monitor my application servers. It can detect a downed JVM within one second, and have it restarted within 3 (it's takes a couple of seconds for the JVM to grab 1.5G of heap size) Today Thomas Eitzenberger spoke thusly: : Date: Thu, 07 Dec 2000 15:00:57 +0100 : From: Thomas Eitzenberger [EMAIL PROTECTED] : Reply-To: [EMAIL PROTECTED] : To: "Lacerda, Wellington (AFIS)" [EMAIL PROTECTED] : Cc: "'[EMAIL PROTECTED]'" [EMAIL PROTECTED] : Subject: Re: How to design a application context servlet : : Refining Request for Help : We need to have this running in a servlet as we are working in a high available : context and that way we could rely on the JSP Engine to provide the servlet : under any circumstances. We could of course create such processes outside but : woul dhave to implement some kind of task manager / watchdog to be HA again :o( : : /Refining : : A HREF="mailto:[EMAIL PROTECTED]"I know how to help ya :o)/a : : help me PLEASE : : ET : : "Lacerda, Wellington (AFIS)" wrote: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ Robert Miller Unix Systems Administrator Internet Operations PictureIQ Corporation - fix your photos online! http://www.pictureiq.com - - - - - - - - - - - - - - - - - - - - - #!/bin/bash2 # this script examines PictureIQStatusServlet and logs its trials and tribulations # [EMAIL PROTECTED] 11-00 # ### # ### globals # ### a_ChannelDir=/etc/httpd/conf/jserv/ b_ChannelDir=/etc/httpd/bhost/jserv/ # we'll assemble lock_${thisChannel} when we check for it logFile=/var/log/httpd/keepalive channelList=( \ a \ b \ ) httpdHandler=apachectl jvmHandler=jserv kaLockFile=/tmp/kaLockFile a_HostURL=http://localhost/PictureIQStatusServlet b_HostURL=http://localhost:8080/PictureIQStatusServlet statusReturnFile=/tmp/jvmstatus.$$ # ### # ### functions # ### # ### f_isJVMup(){ # this is purely for logging purposes if [ -z $(ps ax | grep java_${thisChannel} | grep -v grep | tr -d ' ') ] then echo "$(date) java_${thisChannel} is NOT running" ${logFile} else echo "$(date) $(ps ax | grep java_${thisChannel} | grep -v grep)" ${logFile} fi }; # end f_isJVMup # ### # ### f_restart(){ # this restarts dead daemons, logging the whole sordid affair # make sure each startup command exits 0 if ${httpdHandler}.${thisChannel} stop then if killall -9 java_${thisChannel} then if ${httpdHandler}.${thisChannel} start then if ${jvmHandler}.${thisChannel} start then # and then make sure everyone knows about it echo -e "$(date) channel ${thisChannel} servers restarted\n" ${logFile} else echo -e "$(date) ${jvmHandler}.${thisChannel} start failed\n" ${logFile} exit 1 fi else echo -e "$(date) ${httpdHandler}.${thisChannel} start failed\n" ${logFile} exit 1 fi else echo -e "$(date) killall -9 java_${thisChannel} failed\n" ${logFile} fi else echo -e "$(date) ${httpdHandler}.${thisChannel} stop failed\n" ${logFile} fi }; # end f_restart() # ### # ### f_checkPIQStatus(){ # this is where we actually query the servlet # wget opts= quiet, timeout 3 secs, 1 try, stdout ${statusReturnFile} /usr/local/bin/wget -q -T 3 -t 1 -O ${statusReturnFile} ${thisURL} # /usr/local/bin/wget -q -T 3 -t 1 -O ${statusReturnFile} \${"${thisChannel}_HostURL"} # /usr/local/bin/wget -q -T 3 -t 1 -O ${statusReturnFile} $(echo "${thisChannel}_HostURL") if grep -e
RE: 404 error w/ isapi_redirect.dll
Hola Michael: isapi_redirector.dll dont support ajp13 only ajp12... In your logs ajp13 seems configured too, delete all the configs related to ajp13 in all the *.properties files needed. It seems autoconfig includes ALL the connectors configured in his auto files, you can comment de connector definition on server.xml, or make your own modifications to the generated files. Saludos , Ignacio J. Ortega -Mensaje original- De: Kintzer, Michael [mailto:[EMAIL PROTECTED]] Enviado el: jueves 7 de diciembre de 2000 19:05 Para: '[EMAIL PROTECTED]' Asunto: RE: 404 error w/ isapi_redirect.dll Ignacio, Attached are the IIS log and the isapi.log (excerpt). Let me know if these are not the logs you intended. Gracias, Michael Kintzer -Original Message- From: Nacho [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 06, 2000 5:47 PM To: '[EMAIL PROTECTED]' Subject: RE: 404 error w/ isapi_redirect.dll Append logs excerpts please, i have the same conf working like a charm.. Saludos , Ignacio J. Ortega -Mensaje original- De: Kintzer, Michael [mailto:[EMAIL PROTECTED]] Enviado el: jueves 7 de diciembre de 2000 2:47 Para: '[EMAIL PROTECTED]' Asunto: RE: 404 error w/ isapi_redirect.dll I realize this topic has been covered nearly two months ago, but all the solutions given here have not worked for my environment. Here are the details: IIS 5.0, W2KPro, Tomcat 3.2 I've configured everything according to the Tomcat-IIS HowTo and confirmed the following are working: -Tomcat hosted jsp/examples work fine (i.e. localhost:8080/) -isapi_redirect.dll has the green arrow -log files are being generated -isapi_redirect.dll is recognizing that it should handle jsp requests as evidenced by the line GET "/jakarta/isapi_redirect.dll" 200 in my SYSTEM32/LogFiles/W3SVC1/ log. -I can browse to the jakarta virtual directory -Anonymous access is enabled and file permissions on the redirect dll are also enabled for Full Control for Everyone. -the uriworkermap.properties file and the -auto file show that the examples context is being served by ajp12 According to the HowTo, "200" implies the jakarta virtual directory is not configured for Execute permissions, but I've checked that and it is. I've rebooted and restarted both WWWService and AdminService, but nothing seems to fix the 404 error. Anybody have an idea for me? Thanks, Michael -Original Message- From: Paul FitzPatrick [mailto:[EMAIL PROTECTED]] Sent: Monday, October 16, 2000 7:26 AM To: [EMAIL PROTECTED] Subject: RE: 404 error w/ isapi_redirect.dll Stop/Start in the IIS Administrative Tool does not restart the admin service. You have to do this from the control panel or a Dos Prompt like thus : net stop "IIS Admin Service" net start "IIS Admin Service" There are dependant services you may need to restart as well - this is the batch file I use to stop : @ECHO OFF NET STOP "FTP Publishing Service" NET STOP "World Wide Web Publishing Service" NET STOP "IIS Admin Service" In reverse order and replace STOP with START to start them all. -Original Message- From: David Young [mailto:[EMAIL PROTECTED]] Sent: Monday, October 16, 2000 10:11 AM To: [EMAIL PROTECTED] Subject: Re: 404 error w/ isapi_redirect.dll Stop/start did not do it, but rebooting did! From: Kieran Fitzpatrick [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] Date: Mon, 16 Oct 2000 09:52:55 +1000 To: "'[EMAIL PROTECTED]'" [EMAIL PROTECTED] Subject: RE: 404 error w/ isapi_redirect.dll You might find that stopping and restarting the IIS Admin service via the Services applet in Control Panel is sufficient to get this working. At least this seemed to work for me. Good luck, Kieran -Original Message- From: Christian Thomsen [mailto:[EMAIL PROTECTED]] Sent: Monday, 16 October 2000 6:07 AM To: [EMAIL PROTECTED] Subject: Re: 404 error w/ isapi_redirect.dll Hi ! I had the same problem myself. I solved it by rebooting the computer (no kidding !). As I have verified several times, you have to do this when you change the IIS/Tomcat property files. I hope it helps, Chris - Original Message - From: "David Young" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, October 13, 2000 4:39 AM Subject: 404 error w/ isapi_redirect.dll Hello, I am trying to get Tomcat working with IIS using the isapi_redirect.dll. I followed the How To instructions by Gal Shachor, however when I attempt to access http://localhost/examples/, I get a 404 saying it can't find /jakarta/isapi_redirect.dll. - Windows 2000 Professional - IIS is running on port 80 - Anonymous access is enabled - I can
RE: Tomcat on Linux
Thanks Marcus, I wanted to use it standalone, but I've come to the conclusion that the connector is the best way to go, Kevin Jones DevelopMentor www.develop.com -Original Message- From: Marcus Crafter [mailto:[EMAIL PROTECTED]] Sent: 07 December 2000 09:52 To: Tomcat-User Subject: Re: Tomcat on Linux Hi Kevin, Are you using the apache connector ? If so, then set up apache to run as nobody, or httpd (it probably is already) and set the connector port above 1024. Then you'll be able to run tomcat under a normal user account, and the connector will provide your link to port 80. Hope that helps. Cheers, Marcus On Wed, 6 Dec 2000, Kevin Jones wrote: From a Linux newbie! What's the best way of getting Tomcat to run on port 80 on Linux (without running it as root)? I've re-configured Apache to run on 8080, I can start Tomcat as su on 80, but I'd like it to run on my account on 80. Anyone? Kevin Jones DevelopMentor www.develop.com -- . ,,$, Marcus Crafter ;$' ':Computer Systems Engineer $: : Open Software Associates GmbH $ o_)$$$: 82-84 Mainzer Landstrasse ;$,_/\ :' 60327 Frankfurt Germany ' /( \_' Email : [EMAIL PROTECTED] .Business Hours : +49 69 9757 200 : After Hours: +49 69 49086750
RE: Tomcat 3.2 stability
Does anybody already have something like this. Duane Morse [EMAIL PROTECTED] on 12/07/2000 11:59:24 AM Please respond to [EMAIL PROTECTED] To: "'[EMAIL PROTECTED]'" [EMAIL PROTECTED] cc: Subject: RE: Tomcat 3.2 stability You might want to write a simple JSP or servlet that you could hit to get information about memory and thread usage; that might provide some clues. -Original Message- From: Matthew Preston [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 07, 2000 6:36 AM To: tomcat user Subject: Tomcat 3.2 stability Has anyone noticed any stability problems with the recently relesaed Tomcat 3.2? The situation: After running a couple of web apps for ~4 days with light/moderate usage Tomcat becomes very slow and starts using 100% cpu. This never happened with Tomcat 3.1. This was seen running on a resonably fast P3 computer with 128 megs ram and NT4 with jdk 1.3. Is this a known problem? Cheers, Matt
Worker Classpath
Does anyone know of a way to override the classpath for a single AJP13 worker? I'd like to have a worker (or set of load-balanced workers) set aside which has a classpath set to point at a location where the java files will not be changed (a "staging" type of environment - com.mycomp.temp for example) - but have another http server on another port which sends requests to another set of workers whose classpath points to another java "development" directory which will constantly be changing (also com.mycomp.temp but from a different unix directory). I realize I could just copy tomcat and change the ports and it would do the same thing - but if possible I'd like to use the workers and run only one tomcat instance. Thanks, - Brent
mod_jk and Apache on Windows NT
Hi all, I realize there have been similar posts, but I cannot find an answer that can help me. I have Tomcat 3.2 that works just fine by itself but I want to use Apache as the web server. It is all on an NT box. When I put the required LoadModule directive for the mod_jk.dll module and supporting JK* directives in the httpd.conf file and restart Apache, Apache will not restart. If I take out the LoadModule directive Apache starts up just fine (no surprise there). What I am wondering is, has anyone run into this problem? Is there a way to ensure that my workers.properties file is correct? Is there a way to see if the dll is functioning correctly? Thanks for any help, Rey
Looking for server.xml example
Example for server.xml in the Tomcat docs is NOT of server.xml The example labeled: "Option 2 - Same Tomcat for all Virtual Hosts (server.xml)" is the same as the httpd.conf section not of server.xml At http://jakarta.apache.org/tomcat/jakarta-tomcat/src/doc/tomcat-apache-howto.html#virtual_hosting Can anyone provide a proper example ? Later ... Rich Roth --- On-the-Net Direct: Box 927, Northampton, MA 01061 Email: [EMAIL PROTECTED] Url: http://east.on-the-net.com ~~~ i-Depth lets you Add Instant Depth to your Website~~~ ~~~ 7 day free trial at: http://www.i-depth.com/signup.htm ~~~
mod_jk help
Hi, everyone. Still banging my brains out on compiling mod_jk! When the compiling process gets to listing a whole bunch of ".o" files it stops on jk_ajp12_worker.o and the line right after it says that the command failed. The parameters to the apx command I'm using is:: apxs -c-I/usr/java/jdk1.3/include -I/usr/java/jdk1.3/include/linux -I/usr/apache/include -I../jk/mod_jk.c ../jk/*.c which I've seen posted here recently. I've also tried using a similar apxs command which is pointed out in a how to doc I read and get the same kind of results. I'm using Red Hat 7.0, Tom Cat 3.2, Apache 1.3.14, and Java SDK 1.3. Thank you for all your help! Matt Matt BeckerMythic Wave Productions, Inc.21053 Devonshire, #201Chatsworth, Ca. 91311[EMAIL PROTECTED]
Re: Java VJM won't quit?
The following article: http://java.sun.com/products//jdk/1.2/docs/tooldocs/solaris/threads.html It discusses native and green threads on Solaris, and says: "In some instances, it may be advisable to use the default green threads. Native code that is not multithread safe (MT-safe) may not work correctly with native threads." AFAIK, the only native code in Tomcat is the mod_jserv/mod_jk stuff, so it wouldn't explain why using the built-in server does it too. Anyway, you could try `setenv THREADS_FLAG green`, and then restart Tomcat *and* Apache, and see if that helps. This profiling tool may also be of use: http://java.sun.com/people/billf/heap/ --Jeff On Thu, 7 Dec 2000, Matt White wrote: Hello... I'm attempting to setup Tomcat 3.2 on a Solaris 8/x86 machine. My setup is as follows: - Solaris 8/x86 - Apache 1.3.14 - mod_jk - PHP 4.0.3pl1 - mod_dav 1.0.2 java -version reports: java version "1.2.2" Solaris VM (build Solaris_JDK_1.2.2_05a, native threads, sunwjit) With that out of the way, here's my problem. When I attempt to execute a .JSP page the Java VJM launches (as seen with top), and starts to run. However, it keep on running, consuming more and more CPU power until it reaches around 50%. (This is a dual processor box.) The VJM will not quit. I've let it go for around three minutes before I've killed it several times. I get the exact same result when I use Tomcat via Apache/mod_jk, as well as the built-in HTTP server in Tomcat. (The HTTP server in Tomcat works, I should add.) I'm out of ideas for debugging. I see nothing unusual in the logs. Has anyone seen this before? I'm stumped. Thanks, Matt White Mad River Local Schools [EMAIL PROTECTED]
RE: mod_jk.so problem
I had a similar problem with apache...I needed to recompile it so it would accept dynamic loading of modules...Sounds like your apache bin doesn't support dynamic loading. to enable as a dynamic loading try: ./configure --enable-module=most --enable-shared=max make install -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 07, 2000 11:32 AM To: [EMAIL PROTECTED] Subject: mod_jk.so problem hello my environment is thus: tomcat 3.2 apache 1.3.14 redhat 6.2 this is my problem: on issuing the command: /usr/local/apache/bin/httpd start i get this error: Syntax error on line 8 of /usr/local/jakarta-tomcat-3.2/conf/mod_jk.conf-auto: Cannot load /usr/local/apache/libexec/mod_jk.so into server: /usr/local/apache/libexec/mod_jk.so: undefined symbol: map_name_at line 8 of my mod_jk.conf-auto looks like this: LoadModule jk_module libexec/mod_jk.so any ideas? -bill
RE: mod_jk.so problem
let me know if this works or not, please... I had a similar problem with apache...I needed to recompile it so it would accept dynamic loading of modules...Sounds like your apache bin doesn't support dynamic loading. to enable as a dynamic loading try: ./configure --enable-module=most --enable-shared=max make install -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 07, 2000 11:32 AM To: [EMAIL PROTECTED] Subject: mod_jk.so problem hello my environment is thus: tomcat 3.2 apache 1.3.14 redhat 6.2 this is my problem: on issuing the command: /usr/local/apache/bin/httpd start i get this error: Syntax error on line 8 of /usr/local/jakarta-tomcat-3.2/conf/mod_jk.conf-auto: Cannot load /usr/local/apache/libexec/mod_jk.so into server: /usr/local/apache/libexec/mod_jk.so: undefined symbol: map_name_at line 8 of my mod_jk.conf-auto looks like this: LoadModule jk_module libexec/mod_jk.so any ideas? -bill
RE: Java VJM won't quit?
Add to that the possibility that something in a native method has gone bonkers. -Original Message- From: Ralph Einfeldt [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 07, 2000 12:10 PM To: '[EMAIL PROTECTED]' Subject: AW: Java VJM won't quit? Two suggestions for a cause: Recursive includes. Endless loop. -Ursprüngliche Nachricht- Von: Matt White [mailto:[EMAIL PROTECTED]] Gesendet: Donnerstag, 7. Dezember 2000 18:20 An: [EMAIL PROTECTED] Betreff: Java VJM won't quit? Hello... I'm attempting to setup Tomcat 3.2 on a Solaris 8/x86 machine. My setup is as follows: - Solaris 8/x86 - Apache 1.3.14 - mod_jk - PHP 4.0.3pl1 - mod_dav 1.0.2 java -version reports: java version "1.2.2" Solaris VM (build Solaris_JDK_1.2.2_05a, native threads, sunwjit) With that out of the way, here's my problem. When I attempt to execute a .JSP page the Java VJM launches (as seen with top), and starts to run. However, it keep on running, consuming more and more CPU power until it reaches around 50%. (This is a dual processor box.) The VJM will not quit. I've let it go for around three minutes before I've killed it several times. I get the exact same result when I use Tomcat via Apache/mod_jk, as well as the built-in HTTP server in Tomcat. (The HTTP server in Tomcat works, I should add.) I'm out of ideas for debugging. I see nothing unusual in the logs. Has anyone seen this before? I'm stumped. Thanks, Matt White Mad River Local Schools [EMAIL PROTECTED]
RE: mod_jserv
With 3.2, I believe the recommended module to use is mod_jk. There are issues with mod_jserv that mod_jk fixes (https for one). Check the mod_jk howto for more info. http://jakarta.apache.org/tomcat/jakarta-tomcat/src/doc/mod_jk-howto.html Pat -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 07, 2000 12:12 PM To: [EMAIL PROTECTED] Subject: mod_jserv I am trying to get Tomcat and Apache working but from reading the "Tomcat - A Minimalistic User's Guide" I learn that I need a modified version of mod_jserv. I downloaded Tomcat 3.2 and mod_jserv is not there. Where can I find the modified mod_jserv that it is refering to. Thanks -- \ / \ / -+( ) +-- Jack Frillman| ^ " Carrots are divine you | LEXIS-NEXIS Sr. Software Engineer| *\/|\get a dozen for a dime, | P.O. Box 933 (513) 865-6800 | |/it's magic! | Dayton, Oh 45401 EXT. 4812 | |-Bugs Bunny | -+/ \ +-- | / -- --
FW: Obtaining the Jserv Module
I'm not sure if my first email went so this is why I'm posting again sorry for any duplication if any... Dan -Original Message- From: Dan R. Labonte Sent: Thursday, December 07, 2000 12:34 PM To: '[EMAIL PROTECTED]' Subject: Obtaining the Jserv Module I just installed the 3.2 and am in the process of making it on apache and during the build of Jserv I receive the following error # /opt/apache/bin/apxs -c *.c -o mod_jserv.so cc -Ae +z -DHPUX11 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite -O -DSHARED_MODULE -I/opt/apache/include -c *.c (Bundled) cc: warning 480: The -A option is available only with the C/ANSI C product; ignored. (Bundled) cc: warning 480: The +z option is available only with the C/ANSI C product; ignored. (Bundled) cc: warning 480: The -O option is available only with the C/ANSI C product; ignored. (Bundled) cc: warning 485: Can't open "*.c". apxs:Break: Command failed with rc=1 Any ideas or way I could find a pre-built version of mod_jserv.so... Dan
RE: RE: Tomcat and JNI
Title: RE: RE: Tomcat and JNI Eric: Is the jni_connect.dll required for accessing native code from a servlet? I'm having the UnsatisfiedLinkError problem that you have mentioned previously. I'm running on Win2K, with Tomcat 3.2. On a related note, what is jni_server.xml needed for? Thanks for any assistance, Michael Kintzer -Original Message-From: Eric Lee (LYN) (EUS) [mailto:[EMAIL PROTECTED]]Sent: Thursday, December 07, 2000 10:08 AMTo: '[EMAIL PROTECTED]'Subject: RE: RE: Tomcat and JNI The solution to this problem was to add the location of the class that contains the native methods to the CLASSPATH prior to launching Tomcat. Eric. -Original Message- From: Niall Gormley [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 06, 2000 12:23 PM To: [EMAIL PROTECTED] Subject: Re: RE: Tomcat and JNI Eric, I have just finished integrating a large amount of 'C' code into servlets using JNI. One useful tool I used was trace (or truss on Solaris, there is a eqivalent on HP but I can't remember what is is.) This traces all the system calls and you shoud see that library it is trying to load when your code fails. In addition is all your C code compilied with the -pthread option? Regards, Niall Additions and Corrections welcome. _ Get your free E-mail at http://www.ireland.com
How to use i18n with JSP/XSL?
Hi, I'm using Tomcat 3.2 with the Jakarta taglibs. I've a JSP using the xsl:apply tag. In the XSL stylesheet used, I tried to insert custom JSP tags to get i18n resources but the processor parses it as an XML namespace: Parser error: The namespace prefix "hotwire" was not declared. It tried to wrap the tag with xsl:text disable-output-escaping="yes" so that the processor would not evaluate it, but the JSP tag then gets directly printed on the HTML page without being interpreted by the JSPServlet. Is xsl:apply directly printing the result to the outputstream or substituting it inline in the JSP? In the first case, is there anyway to have the XML output substituted in the JSP code and evaluated by the JSPServlet instead? In the latter case, why is my custom tag not being evaluated? Any other way to make XSL stylesheets use Java ResourceBundles for i18n? Any help would be greatly appreciated! begin:vcard n:Bouteille;Cyril tel;work:(415) 247-9494 x 305 x-mozilla-html:FALSE url:http://www.hotwire.com org:a href=http://www.hotwire.comimg border=0 src=http://www.hotwire.com/assets/logo_white.gif/a version:2.1 email;internet:[EMAIL PROTECTED] title:Senior J2EE Software Engineer note:a href=http://calendar.yahoo.com/cyrilbouteilleView my agenda/a adr;quoted-printable:;;333 Market St=0D=0ASuite #100;San Francisco;California;94105;USA x-mozilla-cpt:;-6160 fn:Cyril Bouteille end:vcard S/MIME Cryptographic Signature
RE: formbased security
I am answering my own question...if anyone cares... What I realized is that j_username and j_password are just strings on the session... -Original Message- From: John de la Garza [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 07, 2000 1:17 PM To: Tomcat-Users (E-mail) Subject: formbased security I am using formbased security as my main security for the site I'm working on... I have a option on the menu that lets users change their info... The problem happens when they change their password. As soon as the password is updated in the database the user is no longer logged in... I am using the JDBC Realm... any suggestions? I was thinking of have the servlet that does the jdbc stuff post to j_security_check...this probably wont work though...
RE: mod_jk and Apache on Windows NT
Here is the ** only ** line I've added to httpd.conf: include /jakarta-tomcat-3.2/conf/mod_jk.conf-auto Then I put the mod_jk.dll in /apache/modules, started tomcat then started apache. You shouldn't need to manually add any LoadModule directives or anything else. You may eventually have to define contexts in tomcat/conf/server.xml, but not just to get started. See guidelines for getting started in tomcat/doc/tomcat-apache-howto.html. -Original Message- From: Hernandez, Rey [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 07, 2000 5:27 PM To: '[EMAIL PROTECTED]' Subject: mod_jk and Apache on Windows NT Hi all, I realize there have been similar posts, but I cannot find an answer that can help me. I have Tomcat 3.2 that works just fine by itself but I want to use Apache as the web server. It is all on an NT box. When I put the required LoadModule directive for the mod_jk.dll module and supporting JK* directives in the httpd.conf file and restart Apache, Apache will not restart. If I take out the LoadModule directive Apache starts up just fine (no surprise there). What I am wondering is, has anyone run into this problem? Is there a way to ensure that my workers.properties file is correct? Is there a way to see if the dll is functioning correctly? Thanks for any help, Rey
RE: mod_jk help
The line with a bunch of .o files is where the linker is invoked to link the objects. The problem is probably wrong options to the linker. I had a similar problem under AIX, and it took considerable sleuthing to figure it out. What errors exactly are you getting? -Original Message-From: Matt Becker [mailto:[EMAIL PROTECTED]]Sent: Thursday, December 07, 2000 1:31 PMTo: tomcat mailing listSubject: mod_jk help Hi, everyone. Still banging my brains out on compiling mod_jk! When the compiling process gets to listing a whole bunch of ".o" files it stops on jk_ajp12_worker.o and the line right after it says that the command failed. The parameters to the apx command I'm using is:: apxs -c-I/usr/java/jdk1.3/include -I/usr/java/jdk1.3/include/linux -I/usr/apache/include -I../jk/mod_jk.c ../jk/*.c which I've seen posted here recently. I've also tried using a similar apxs command which is pointed out in a how to doc I read and get the same kind of results. I'm using Red Hat 7.0, Tom Cat 3.2, Apache 1.3.14, and Java SDK 1.3. Thank you for all your help! Matt Matt BeckerMythic Wave Productions, Inc.21053 Devonshire, #201Chatsworth, Ca. 91311[EMAIL PROTECTED]
servlet or page target _top in IE
Hi, Ok, in Navigator I can use META HTTP-EQUIV="Window-target" CONTENT="_top" and have a servlet call a page and have that page not be in a frame. As usual, Navigator and IE don't agree. IE ignores this META tag so the page still appears in the frame. I also tried response.setHeader("Window-target", "_top"); but that doesn't work for Navigator or IE. So anyone know how to target _top? Michael J. Remijan Software Engineer dChain Commerce 2401 South Neil Street Champaign, IL 61820 217.398.1860 x249
RE: mod_jk and Apache on Windows NT
Where is LoadModule pointing??? Did you enter them yourself or did you let Tomcat create the mod_jk.conf-auto, then include that or copy that info to another file and then include that file in httpd.conf? I would recommend the second way. Make sure the mod_jk.dll is located in [apache home]/modules the LoadModule directive should look like this: LoadModule jk_module modules/mod_jk.dll To include the the configuration file with your mod_jk stuff in it, do something like this in httpd.conf Include "C:/Program Files/Apache Group/Jakarta/Tomcat/conf/mod_jk.conf" That should work for you jake -Original Message- From: Hernandez, Rey [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 07, 2000 4:27 PM To: '[EMAIL PROTECTED]' Subject: mod_jk and Apache on Windows NT Hi all, I realize there have been similar posts, but I cannot find an answer that can help me. I have Tomcat 3.2 that works just fine by itself but I want to use Apache as the web server. It is all on an NT box. When I put the required LoadModule directive for the mod_jk.dll module and supporting JK* directives in the httpd.conf file and restart Apache, Apache will not restart. If I take out the LoadModule directive Apache starts up just fine (no surprise there). What I am wondering is, has anyone run into this problem? Is there a way to ensure that my workers.properties file is correct? Is there a way to see if the dll is functioning correctly? Thanks for any help, Rey
Native Libraries Problem.
Hi, I have a servlet that uses classes and functions in a native library... Running a test java application went fine... LD_LIBRARY_PATH and the native *.so were in the right places... While trying to employ the same procedure in tomcat I get the following Message: java.lang.UnsatisfiedLinkError My development environment is as follows: Tomcat 3.1 Solaris 2.6 JDK 1.2.2 (japaense edition) Even RTFM would be appreciated if you can direct me to the right FM..;-) Thanks in advance.. Cheers, John Clark -- /) John Clark Naldoza y Lopez (\ / )Software Design Engineer II ( \ _( (__ Web-Application Development_) )_ (((\ \ /_Cable Modem Network Management System _\ / /))) ( \_/ / NEC Telecom Software Phils., Inc. \ \_/ ) \ / \ / \_/ phone: (+63 32) 233-9142 loc. 3112\_/ / / cellphone: (+63 919) 813-6274 \ \ / / email: [EMAIL PROTECTED]\ \
Re: XSLT Transformations with Tomcat 3.2 Final and Xalan or XT?
In case anyone's interested, I was using Xalan 2.0, which I just noticed today is a Developer's alpha release. I switched to Xalan 1.2, and everything works fine. Thanks to all of you that responded. david David Geary wrote: Has anyone had success processing XML files with XSLT from a JSP page? I've tried various combinations of XT and Xalan with Tomcat and Resin, with very limited success. I'd really like to process XML with Xalan or XT using Tomcat3.2, but with Tomcat3.2 and Xalan I get a NoSuchMethodException from the bowels of Xalan, and with Tomcat3.2 and XT the transformation fails silently. david
Re: getServletContext return nullpointer-exception
andreas ebbert wrote: Hi, I am trying to get a servlets context with getServletContext() but all I get is a NullPointerException. Can anybody help me? greetings, Andreas The usual reason for this is a failure to call super.init() in your servlet init method. Assuming your init is: public void init( ServletConfig config ){ super.init( config ) ; // Essential!! } -- WBB - [EMAIL PROTECTED] Java Cert mock exams http://www.lanw.com/java/javacert/ Author of Java Developer's Guide to Servlets and JSP ISBN 0-7821-2809-2
RE: JSP page not reloading
m/c probably means "machine"! regards sam... -Original Message- From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 07, 2000 11:38 AM To: [EMAIL PROTECTED] Cc: Hussein Badakhchani Subject: Re: JSP page not reloading Sandhya MS wrote: Hi, We have tried from different machines. So, it cannot be a browser fault. In fact, we do shift+refresh, and we clear the cache in the browser before refreshing it. It must be a tomcat setting that we are missing out. We have observed this- if we change the jsp code sitting on the server m/c, the change is reflected. However, if i edit the jsp code from a m/c other than the server, even though the file is saved, tomcat is not refreshing it. If anybody has a solution please get in touch. The 'reloadable="true"' setting on a context has no effect on JSP pages -- the originally requested page is checked every time for whether it needs to be reloaded, independent of the reloadable setting. The only thing I can think of is that you are referencing a page with an include directive, like this (assume the current page is "thisjsp.jsp"): %@include file="otherjsp.jsp" % In this case, changes to "otherjsp.jsp" will not be detected -- you have to modify the calling page ("thisjsp.jsp") to have Tomcat notice it. Thanks, Sandhya Craig McClanahan PS: Can I ask a really silly question? I've seen people using the abbreviation "m/c" on various mailing lists, and I'm not sure what it means. Could someone explain it for me?
mod_jk help
Hi, everyone. Still banging my brains out on compiling mod_jk! When the compiling process gets to listing a whole bunch of ".o" files it stops on jk_ajp12_worker.o and the line right after it says that the command failed. The parameters to the apx command I'm using is:: apxs -c-I/usr/java/jdk1.3/include -I/usr/java/jdk1.3/include/linux -I/usr/apache/include -I../jk/mod_jk.c ../jk/*.c which I've seen posted here recently. I've also tried using a similar apxs command which is pointed out in a how to doc I read and get the same kind of results. I'm using Red Hat 7.0, Tom Cat 3.2, Apache 1.3.14, and Java SDK 1.3. Thank you for all your help! Matt Matt BeckerMythic Wave Productions, Inc.21053 Devonshire, #201Chatsworth, Ca. 91311[EMAIL PROTECTED]
java.io.IOException: broken pipe causing Tomcat to crash
I've been load testing a servlet which uses ObjectStreams to communicate with client applets over HTTP. All requests are being forwarded to Tomcat from Apache using mod_jserv with the ajpv12 connector. Under high loads (~80 requests/sec) I intermittantly but consistently get the following error logged to myapplication's logfile: java.io.IOException: Broken pipe. The exception occurs in the following code: HttpServletResponse res OutputStream out = res.getOutputStream();obOutStream = new ObjectOutputStream(out);obOutStream.writeObject(msg);obOutStream.flush();obOutStream.close(); I believe it happens at the writeObject() call and yes, I am properly wrapping this all in a try/catch block. The exception always causes Tomcat to become unresponsive - I can't shut it down with the shutdown.sh script, and it no loger responds to client queries. I suspect that either tomcat or the JVM is going into a busy loop somwhere because `top` always reveals that I have two java processes which are consuming 75% and 25% of the CPU respectively. My enviroment is: Redhat 6.2 Sun JDK 1.3.0 Tomcat 3.2 release Apache 1.3.14 PIII 800, 256M RAM I'm using the PoolTcpConnector AJPV12 connector with the default thread settings (50 max, 25 max spare, 10 min spare). It seems clear to me that this is a bug in Tomcat - even if my servlet is doing something wrong Tomcat shouldn't choke because of it. Anyone have any ideas what could be causing this? *Any* workarounds would be greatly appreciated! Incidentally, the reason I'm using mod_jserv is that I've been unable to get mod_jk to work with ajpv13 - for some reason the autogenerated mod_jk.conf-auto always uses ajpv12. Anyone know how to change this? Thanks! Eric
Would you be so kind to give me a step by step manual about how to intall Apache+TomCat in solaris2.7?
Dear Sir, Would you be so kind to give me a step by step manual about how to intall Apache+TomCat in solaris2.7?Thanks in advance! Best Regards! Xie Bo
Re: Would you be so kind to give me a step by step manual about how to intall Apache+TomCat in solaris2.7?
Chinese version guide. Maybe helpful for u. http://www.lovejsp.com/doc/tomcat/tomcat_ugc1.html Xie Bo wrote: Dear Sir, Would you be so kind to give me a step by step manual about how to intall Apache+TomCat in solaris2.7?Thanks in advance! Best Regards! Xie Bo
Virtual Hosting - Port based with Tomcat 3.2
What I want is any requests to http://mars.its.deakin.edu.au:8000/servlet/testform to be handled by the webapps/connect/WEB-INF/classes/testform servlet. This is so I can define some aliases that are applicable only to the 8000 port. I cannot get it to work as expected, what am I doing wrong? Thanks Jason --- This is my server.xml fragment to define a host, do I need to specify a port as well? Host name="mars.its.deakin.edu.au" Context path="" docBase="webapps/connect" crossContext="false" debug="7" reloadable="true" /Context /Host This is a fragment from mod_jk.conf that I have tried to use. Listen 8000 VirtualHost mars.its.deakin.edu.au:8000 DocumentRoot /opt/tomcat/webapps/connect Directory "/opt/tomcat/webapps/connect" Options Indexes FollowSymLinks /Directory Alias /admin /opt/tomcat/webapps/connect/admin JkMount /servlet/* ajp13 JkMount /*.jsp ajp13 Location /WEB-INF/ AllowOverride None deny from all /Location /VirtualHost --- -- Jason Pell Senior Analyst/Programmer Deakin Software Services Pty Ltd 12 Gheringhap St, Geelong Victoria 3220 Australia Phone: 03 5227 8858 International: +61 3 5227 8858 Fax: 03 5227 8907 International: +61 3 5227 8907 E-mail [EMAIL PROTECTED] http://www.dssonline.com.au Customer Support Hotline: 1800 620 497 "Callista - the brightest solution in university management" --- Important Notice: The contents of this email transmission, including attachments, may be privileged and confidential. Any unauthorised use of the contents is expressly prohibited. If you have received this transmission in error, please advise the sender by return email or telephone immediately and destroy all versions. ---
Tomcat 3.2 Final/ Error code 10053
Greetings, Using tomcat 3.2 standalone on NT4. Everything seems to work, including SSL, but I get the following sort of output to stdout on each invocation: 2000-11-07 10:12:01 - Ctx( ): IOException in: R( + /index.html + null) socketwrite error (code=10053)2000-11-07 10:12:01 - Ctx( ): IOException in: R( + /tomcat-power.gif + null) socket write error (code=10053) Anyone know what this might be, or where it is coming from in the codebase? I did do a search through the mailinglist archives and did not find anythingmatching "10053". Dave
how to maintain session between HTTP and HTTPS?
I'm trying to find a way to maintain session between HTTP and HTTPS: some pages (html/jsp), such as login and credit card info, need to transported under HTTPS, but the rest does not need to. I prefer not to spending the extra cpu circles for unnecessary encryption since the servers may be under heavy cpu utilization due to generating images for returning to user. Any suggestions? Thanks. Weigen __ Do You Yahoo!? Yahoo! Shopping - Thousands of Stores. Millions of Products. http://shopping.yahoo.com/
Re: Internal Server Error
Which Apache you use? If you use 1.3.X, comment out all these inprocess things, since you do not do inprocess stuff. You can do inprocess only with Apache 2.X which is still alpha... Jan [EMAIL PROTECTED] On Thu, 7 Dec 2000 [EMAIL PROTECTED] wrote: I'm running Tomcat 3.2 using mod_jk and apache. It appears that sometimes when Apache forwards a request to Tomcat either TC wasnt ready for the connection or something strange because I get an immediate "Internal Server Error" issued by Apache. It's so immediate I can tell that Apache isn't passing the connection over to Tomcat or something... here is what my mod_jk.conf and workers.properties files look like. Any help would be appreciated... # mod_jk.conf # LoadModule jk_module libexec/mod_jk.so JkWorkersFile /raid/home/intadmin/integration/tomcat/conf/workers.properties JkLogFile /raid/home/intadmin/integration/tomcat/logs/mod_jk.log JkLogLevel error JkMount /*.jsp ajp13 JkMount /servlet/* ajp13 Alias /admin "/raid/home/intadmin/integration/tomcat/webapps/admin" Directory "/raid/home/intadmin/integration/tomcat/webapps/admin" Options Indexes FollowSymLinks /Directory JkMount /admin/servlet/* ajp13 JkMount /admin/*.jsp ajp13 Location "/admin/WEB-INF/" AllowOverride None deny from all /Location Location "/admin/META-INF/" AllowOverride None deny from all /Location # workers.properties # workers.tomcat_home=/raid/home/intadmin/integration/tomcat workers.java_home=/usr/java ps=/ worker.list=ajp12, ajp13 worker.ajp12.port=8007 worker.ajp12.host=localhost worker.ajp12.type=ajp12 worker.ajp12.lbfactor=1 worker.ajp13.port=8009 worker.ajp13.host=localhost worker.ajp13.type=ajp13 worker.ajp13.lbfactor=1 worker.loadbalancer.type=lb worker.loadbalancer.balanced_workers=ajp12, ajp13 worker.inprocess.type=jni worker.inprocess.class_path=$(workers.tomcat_home)$(ps)classes worker.inprocess.class_path=$(workers.tomcat_home)$(ps)lib$(ps)jaxp.jar worker.inprocess.class_path=$(workers.tomcat_home)$(ps)lib$(ps)parser.jar worker.inprocess.class_path=$(workers.tomcat_home)$(ps)lib$(ps)jasper.jar worker.inprocess.class_path=$(workers.tomcat_home)$(ps)lib$(ps)servlet.jar worker.inprocess.class_path=$(workers.tomcat_home)$(ps)lib $(ps)webserver.jar worker.inprocess.class_path=$(workers.java_home)$(ps)lib$(ps)tools.jar worker.inprocess.cmd_line=-config worker.inprocess.cmd_line=$(workers.tomcat_home)/conf/jni_server.xml worker.inprocess.cmd_line=-home worker.inprocess.cmd_line=$(workers.tomcat_home) worker.inprocess.jvm_lib=$(workers.java_home)$(ps)jre$(ps)bin$(ps)classic $(ps)jvm.dll worker.inprocess.stdout=$(workers.tomcat_home)$(ps)inprocess.stdout worker.inprocess.stderr=$(workers.tomcat_home)$(ps)inprocess.stderr worker.inprocess.sysprops=tomcat.home=$(workers.tomcat_home)
Re: Virtual Hosting - Port based with Tomcat 3.2
I may be missing something, but either you do virtual hosts in Apache (i.e., in the httpd.conf) and tomcat talks to apache via ajp1x and does not know about hosts or anything - it is just a worker who talks to apache and serves whatever apache tells him to serve. or tomcat is standalone, and does not talk to apache via ajp1x, but is itself a Web server, and talks HTML to outside world. Then it can do virtual hosts. In short you have to decide who does virtual hosts, apache or tomcat. Probably you could make tomcat talk to apache and do virtual hosts by itself (then apache would not know about tomcat odd jobs on the side) but why? If you went through all this effort to make tomcat talk to apache via mod_jk, then let Apache do the virtual hosts, and make tomcat what it does best, serve JSP and servlets... Jan [EMAIL PROTECTED] On Fri, 8 Dec 2000, Jason Pell wrote: What I want is any requests to http://mars.its.deakin.edu.au:8000/servlet/testform to be handled by the webapps/connect/WEB-INF/classes/testform servlet. This is so I can define some aliases that are applicable only to the 8000 port. I cannot get it to work as expected, what am I doing wrong? Thanks Jason --- This is my server.xml fragment to define a host, do I need to specify a port as well? Host name="mars.its.deakin.edu.au" Context path="" docBase="webapps/connect" crossContext="false" debug="7" reloadable="true" /Context /Host This is a fragment from mod_jk.conf that I have tried to use. Listen 8000 VirtualHost mars.its.deakin.edu.au:8000 DocumentRoot /opt/tomcat/webapps/connect Directory "/opt/tomcat/webapps/connect" Options Indexes FollowSymLinks /Directory Alias /admin /opt/tomcat/webapps/connect/admin JkMount /servlet/* ajp13 JkMount /*.jsp ajp13 Location /WEB-INF/ AllowOverride None deny from all /Location /VirtualHost --- -- Jason Pell Senior Analyst/Programmer Deakin Software Services Pty Ltd 12 Gheringhap St, Geelong Victoria 3220 Australia Phone: 03 5227 8858 International: +61 3 5227 8858 Fax: 03 5227 8907 International: +61 3 5227 8907 E-mail [EMAIL PROTECTED] http://www.dssonline.com.au Customer Support Hotline: 1800 620 497 "Callista - the brightest solution in university management" --- Important Notice: The contents of this email transmission, including attachments, may be privileged and confidential. Any unauthorised use of the contents is expressly prohibited. If you have received this transmission in error, please advise the sender by return email or telephone immediately and destroy all versions. ---
does tomcat jsp runtime require jdk ?
Does Tomcat release of jsp runtime require production environments to have jdk installed separately. This was the case with older reference implementations from Sun/Javasoft of jswdk1.0 releases. My question is again do they need jdk and not jre. If the answer is yes, I would appreciate if someone can tell me what specific reason does tomcat need a separate jdk (is it javac?) thanks in advance, Sanjay _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com