Changing servlet directory
Hi, for some reasons i would like to place my servlets and java classes in a separate directory instead of WEB-INF/classes or WEB-INF/lib. I tried to add the classpath of my classes in the catalina.bat script as suggested by some ppl here. However, tomcat throws the following error: java.lang.NoClassDefFoundError: javax/servlet/http/HttpServlet Did adding extra classpath to catalina.bat affect the loading of tomcat's classes? Thansk in advance. Firestar __ Do You Yahoo!? Listen to your Yahoo! Mail messages from any phone. http://phone.yahoo.com
Bean Error
Hello I have a bean to manage form registration I think it is because nullpointerexception... (from the error below) at the foo.FormBean1.validate .. right? I read the error say (FormBean1.java.52)... it means that the error code in the line 52 right? the code : it is on line 52:if (telepon.equals() || (telepon==null)) { errors.put(telepon,Please enter your last name); telepon=; allOk=false; } and I don't know how to solve it ... Please hellp me... Error: 500 Location: /vcdshop/pendaftaran.jsp Internal Servlet Error: Root cause: java.lang.NullPointerException at foo.FormBean1.validate(FormBean1.java:52) -- it mean the error on line 52 of FormBean.java ... right or not? at _0002fpendaftaran_0002ejsppendaftaran_jsp_0._jspService(_0002fpendaftaran_00 02ejsppendaftaran_jsp_0.java:106) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServlet$JspCountedServlet.service(JspServlet.ja va:130) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja va:282) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:429) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:500) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405) at org.apache.tomcat.core.Handler.service(Handler.java:287) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:81 2) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:758) at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC onnectionHandler.java:213) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501) at java.lang.Thread.run(Thread.java:484)
AW: Bean Error
You should change if (telepon.equals() || (telepon==null)) { to if ((telepon==null) || telepon.equals()) { Expressions are evaluated from left to right, so if telepon is null you will get a NullPointerException for telepon.equals(). -Ursprüngliche Nachricht- Von: Isak Rickyanto [mailto:[EMAIL PROTECTED]] Gesendet: Sonntag, 30. September 2001 10:03 An: Tomcat User Group Betreff: Bean Error Hello I have a bean to manage form registration I think it is because nullpointerexception... (from the error below) at the foo.FormBean1.validate .. right? I read the error say (FormBean1.java.52)... it means that the error code in the line 52 right? the code : it is on line 52:if (telepon.equals() || (telepon==null)) { errors.put(telepon,Please enter your last name); telepon=; allOk=false; } and I don't know how to solve it ... Please hellp me... Error: 500 Location: /vcdshop/pendaftaran.jsp Internal Servlet Error: Root cause: java.lang.NullPointerException at foo.FormBean1.validate(FormBean1.java:52) -- it mean the error on line 52 of FormBean.java ... right or not? at _0002fpendaftaran_0002ejsppendaftaran_jsp_0._jspService(_0002f pendaftaran_00 02ejsppendaftaran_jsp_0.java:106) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServlet$JspCountedServlet.service (JspServlet.ja va:130) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service (JspServlet.ja va:282) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet .java:429) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:500) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper .java:405) at org.apache.tomcat.core.Handler.service(Handler.java:287) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) at org.apache.tomcat.core.ContextManager.internalService(ContextM anager.java:81 2) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:758) at org.apache.tomcat.service.http.HttpConnectionHandler.processCo nnection(HttpC onnectionHandler.java:213) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoin t.java:416) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPo ol.java:501) at java.lang.Thread.run(Thread.java:484)
How to use WebApp + web appl. root other than '$CATALINA_HOME/webapps'
Hi list I can figure out how to use the Catalina WebApp module together with applications residing in the '$CATALINA_HOME/webapps' directory. But what am I to give as arguments to the WebAppDeploy when I want to have the web application in another directory? It wouldn't be nice to change the CATALINA web app. root as I may have web apps all over the place, not just in a single directory. I assume that the WebApp module is only mapping URLs to an application residing in the tomcats app. root. Is it possible at all using the WebApp module? Best regards Aksel Schmidt Terma A/S Denmark [EMAIL PROTECTED]
[TC4] web.xml / Using Jikes Java Compiler
Hello, I've successfully setup Jikes with Tomcat 3 in the past. How do I set it up with Tomcat 4? Is it any different? Thanks, Chris
Ideas for future versions of Tomcat (a bit controversial maybe)?
Hello, I've been trying out JDK 1.4 quite a lot, and like it a lot! I was wondering, given that Tomcat is a reference implementation of the Servlet/JSP APIs, if it would be a good idea to become a very good example of certain new APIs as well. I've suggested a while back that the New scalable I/O channels could be used to boost performance. Since then, I've seen other opportunities for increasing effeciency, simplifying code, etc. For example, instead of maintaining and downloading APIs for logging, it might be better to depend upon the newer logging APIs. The same thing could be said of certain example applications (such as making Struts use the java.util.regex package instead of an external regular expression package -- but then, that's going a bit OT as there's a list for Struts too...!). Perhaps also the configuration could be stored using the preferences API, but I don't see so many benefits with a change of this type. Obviously, this would limit the accessibility of any such future version Tomcat to users of JDK 1.4, but I don't think that's a major problem in the majority of deployment situations (I'm guessing here, but I suspect it's quite likely to be true). Nevertheless, I think it would be a good step forward. -Chris
Troubles with binding Tomcat 4.0 to Apache 1.3...
Hi Ich have troubles with binding Tomcat 4.0 to Apache 1.3... in Windows 2000. There are modules web_app-module_x only for linux and mac on the apache server available. I din not manage to load an so-module in windows although some people say it is possible. In Linux, I get the following error message if I am trying to load the module mod_webapp.so. Syntax error on line 977 of /usr/apache/conf/httpd.conf: Invalid command 'LoadModule', perhaps mis-spelled or defined by a module not included in the server configuration Maybe, somebody can give me some advice? Mit freundlichen Grüßen Christian Schildt Diplom-Betriebswirt (FH) Softwaredeveloper Phone: 089/89013023 Mailto: [EMAIL PROTECTED] ELAXY AG Gutenbergstr. 5 D-82178 Puchheim bei München Phone: +089/8901300 Fax: +089/89013089 www.elaxy.com
Re: Ideas for future versions of Tomcat (a bit controversial maybe)?
That's one of the against reasons I thought of. Nevertheless, Tomcat 3 and 4 already exist, so that solution is already available to users of such platforms. Furthermore, Tomcat is not the only Servlet/JSP engine out there, so there are still alternatives for these platforms. I'm not generally for jumping automatically to the latest version of software, but I do think JDK1.4 offers a lot of benefits for server-type applications, and may therefore be worth targetting. In any case, such developments would probably take quite a lot of time to do well (especially the new I/O architecture), so the stability of the final JDK1.4 release should be well known before any such upgrade of Tomcat becomes available. -Chris - Original Message - From: Ralph Einfeldt [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, October 01, 2001 11:21 AM Subject: AW: Ideas for future versions of Tomcat (a bit controversial maybe)? Technically I like that idea. BUT expierence shows that it is not a good option to jump to early on new JDK for tools like tomcat. From listening to this list, I've got the feeling that there are several people in the world that don't have the will or the chance to upgrade to the newest JDK. Some use operating systems that are always a bit behind with the JDK (AIX, Mac OS, ...) some deploy to an ISP that won't upgrade that fast). -Ursprüngliche Nachricht- Von: chris brown [mailto:[EMAIL PROTECTED]] Gesendet: Montag, 1. Oktober 2001 10:54 An: [EMAIL PROTECTED] Betreff: Ideas for future versions of Tomcat (a bit controversial maybe)? Hello, I've been trying out JDK 1.4 quite a lot, and like it a lot! I was wondering, given that Tomcat is a reference implementation of the Servlet/JSP APIs, if it would be a good idea to become a very good example of certain new APIs as well. I've suggested a while back that the New scalable I/O channels could be used to boost performance. Since then, I've seen other opportunities for increasing effeciency, simplifying code, etc. For example, instead of maintaining and downloading APIs for logging, it might be better to depend upon the newer logging APIs. The same thing could be said of certain example applications (such as making Struts use the java.util.regex package instead of an external regular expression package -- but then, that's going a bit OT as there's a list for Struts too...!). Perhaps also the configuration could be stored using the preferences API, but I don't see so many benefits with a change of this type. Obviously, this would limit the accessibility of any such future version Tomcat to users of JDK 1.4, but I don't think that's a major problem in the majority of deployment situations (I'm guessing here, but I suspect it's quite likely to be true). Nevertheless, I think it would be a good step forward. -Chris
Tomcat Security Bind Exception as non ROOT user
All Attempting to bind the Tomcat (3.2.3) Java based deamon to a port below 1024 other than as the 'Root' user on a Solaris 8 (SPARC) operating system causes Java to throw a Security Bind exception. Any related information on how to solve this issue would be kindly appreciated. ... Stuart This message is for the designated recipient only and may contain privileged or confidential information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited. _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com
how to Harden the security of standalone tomcat on port 80?
All Does anybody have guidelines or advice on how to Harden the security of a standalone installation of Tomcat 3.2.3 on Solaris SPARC 8 ? ps. Thank you to those whom have answered previous questions posted to this List. Your help and suggestions have proved invaluable. ... Stuart This message is for the designated recipient only and may contain privileged or confidential information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited. _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com
Re: Ideas for future versions of Tomcat (a bit controversial maybe)?
Thanks. I'm aware of the tomcat-dev list, but posted it into the user list as such a change would have a big impact on users. Should get a wider range of comments and ideas this way... -Chris - Original Message - From: GOMEZ Henri [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, October 01, 2001 11:03 AM Subject: RE: Ideas for future versions of Tomcat (a bit controversial maybe)? Good stuff Chris. I forwarded to tomcat-dev, where evolutions of Tomcat are discussed... - Henri Gomez ___[_] EMAIL : [EMAIL PROTECTED](. .) PGP KEY : 697ECEDD...oOOo..(_)..oOOo... PGP Fingerprint : 9DF8 1EA8 ED53 2F39 DC9B 904A 364F 80E6 -Original Message- From: chris brown [mailto:[EMAIL PROTECTED]] Sent: Monday, October 01, 2001 10:54 AM To: [EMAIL PROTECTED] Subject: Ideas for future versions of Tomcat (a bit controversial maybe)? Hello, I've been trying out JDK 1.4 quite a lot, and like it a lot! I was wondering, given that Tomcat is a reference implementation of the Servlet/JSP APIs, if it would be a good idea to become a very good example of certain new APIs as well. I've suggested a while back that the New scalable I/O channels could be used to boost performance. Since then, I've seen other opportunities for increasing effeciency, simplifying code, etc. For example, instead of maintaining and downloading APIs for logging, it might be better to depend upon the newer logging APIs. The same thing could be said of certain example applications (such as making Struts use the java.util.regex package instead of an external regular expression package -- but then, that's going a bit OT as there's a list for Struts too...!). Perhaps also the configuration could be stored using the preferences API, but I don't see so many benefits with a change of this type. Obviously, this would limit the accessibility of any such future version Tomcat to users of JDK 1.4, but I don't think that's a major problem in the majority of deployment situations (I'm guessing here, but I suspect it's quite likely to be true). Nevertheless, I think it would be a good step forward. -Chris
followsoftlinks
Hi, I've installed Tomcat on FreeBSD using Apache to serve the static HTML files and it seems to work all fine. I've replaced the directory ROOT in the /webapps/ directory with a softlink to the Apache's root dir and that also seems to work. I have to create a contect for each directory in this root directory in order for the WEB-INF directory to be recognized by Tomcat and added to the tomcat-apache.conf. Isn't there a directive such as followsymlinks in apache so that Tomcat searches the entire path in the rootdir for directorys and WEB-INF stuff? Thnx in advance, Bob.
[OT] EJB tutorial links/tips?
Hello. I'm moving from pure servlets to mixed jsp/servlet/beans environment and would appreciate tips pointers to where I can find tutorials or guides for getting started with beans. Regards, Christopher Cato
InitParameters
Hello! I have some problems to read the init-parameters for my servlet. I'm usign tomcat 3.2.3, mod-jk. But tested with tomcat standalone on port 8080. Here's my web.xml, located on TOMCAT_HOME/webapps/test/WEB-INF/ web-app servlet servlet-nameremoteServlet/servlet-name servlet-classch.hephaistos.web.RemoteServlet/servlet-class init-param param-nameserver-host/param-name param-valuelocalhost/param-value /init-param init-param param-nameserver-name/param-name param-valueServletServer/param-value /init-param init-param param-nametimeout/param-name param-value8/param-value /init-param load-on-startup5/load-on-startup /servlet /web-app if I don't include the load-on-startup tag the init-param will never be read ! and here's a snippet of my servlet code: public class RemoteServlet extends HttpServlet implements RRemoteServlet { private String serverHost=localhost; private String severName=ServletServer; private RServletServer server; private int timeout=6; private static int count=0; private int number; public void init(ServletConfig config) throws ServletException { super.init(config); processes = new Hashtable(5); // config Log4J String prefix = this.getServletContext().getRealPath(/WEB-INF/conf/); Log.loadConfig(prefix+log4j.lcf); Log.log.debug(Log4J configuration laoded); // load configuration serverHost = config.getInitParameter(server-host); Log.web.info(Remote Host: +serverHost); severName = config.getInitParameter(server-name); Log.web.info(Server Name: +severName); String timeoutInit = config.getInitParameter(timeout); try{ timeout = Integer.parseInt(timeoutInit); } catch (NumberFormatException nfe){ timeout = 6; } Log.web.info(Timeout: +timeout); // test only use DEBUG-Mode count++; Log.web.debug(Servlet Instance Nr.+count); number=count; Log.web.debug(Servlet Nr.+number); // prepare Servlet for callbacks try{ UnicastRemoteObject.exportObject(this); } catch(RemoteException re){ re.printStackTrace(); } this.lookup(serverHost,severName); try{ this.server.register(this); Log.rmi.info(Servlet registred to +severName); } catch (RemoteException re){ Log.rmi.fatal(Register to [+severName+] failed!,re); } } Here the output I get from Tomcat: 2001-10-01 11:56:46 - ContextManager: Adding context Ctx( /test ) 0 DEBUG [main] hephaistos.log init - Log4J configuration laoded 21INFO [main] hephaistos.web init - Remote Host: localhost 21INFO [main] hephaistos.web init - Server Name: ServletServer 21INFO [main] hephaistos.web init - Timeout: 8 21DEBUG [main] hephaistos.web init - Servlet Instance Nr.1 21DEBUG [main] hephaistos.web init - Servlet Nr.1 241 INFO [main] hephaistos.rmi init - Servlet registred to ServletServer 2001-10-01 11:56:47 - PoolTcpConnector: Starting HttpConnectionHandler on 8080 2001-10-01 11:56:47 - PoolTcpConnector: Starting Ajp12ConnectionHandler on 8007 9594 DEBUG [Thread-21] hephaistos.log init - Log4J configuration laoded 9594 INFO [Thread-21] hephaistos.web init - Remote Host: null 9594 INFO [Thread-21] hephaistos.web init - Server Name: null 9594 INFO [Thread-21] hephaistos.web init - Timeout: 6 9594 DEBUG [Thread-21] hephaistos.web init - Servlet Instance Nr.2 9594 DEBUG [Thread-21] hephaistos.web init - Servlet Nr.2 11868 ERROR [Thread-21] hephaistos.rmi lookup - Lookup for [null] failed! java.rmi.UnknownHostException: Unknown host: null; nested exception is: java.net.UnknownHostException: null java.net.UnknownHostException: null at java.net.InetAddress.getAllByName0(InetAddress.java:571) . Thread [main] is launched on tomcat's startup, Thread [21] on the first request for this servlet. I don't understand why tomcat has initialized another intance of the servlet, he does it for every new request. If I don't read any init-params tomcat only uses one instance, even if I would implement the SingleThreadModel. What's wrong here?! Alessandro Di Maria
Tomcat 4 DataSource resource-env-ref problem
I got thru the DataSource casting problem and my app is running now, but I found curious entry in the application log: 2001-10-01 04:03:01 StandardContext[/arcotadmin]: Bind naming operation failed : javax.naming.NamingException: Name {0} is already bound in this Context For some reason, resource-env-ref entries in web.xml is failing to bind due to unknown conflict with Resource entries in server.xml. I have followed the Tomcat 4's JNDI/JDBC docs with appropriate tag name changes (res- to resource-) to avoid DTD validation failures. I suspect that this problem is due to InitialContext being read-only for some reason. Why would the doc require me to add resource-env-ref in web.xml if InitialContext is read-only? What gives? Best, Don Park Docuverse
Re: Changing servlet directory
Hi, remove your classes from the classpath. follow these steps.: in web.xml add details about your web-app. in tomcat 3.2 it was known as context mapping. just add your context under context manager and set the docBase attribute to the dir where your web-app is installed. Manu Hi, for some reasons i would like to place my servlets and java classes in a separate directory instead of WEB-INF/classes or WEB-INF/lib. I tried to add the classpath of my classes in the catalina.bat script as suggested by some ppl here. However, tomcat throws the following error: java.lang.NoClassDefFoundError: javax/servlet/http/HttpServlet Did adding extra classpath to catalina.bat affect the loading of tomcat's classes? Thansk in advance. Firestar __ Do You Yahoo!? Listen to your Yahoo! Mail messages from any phone. http://phone.yahoo.com _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com
Tomcat4 installer problem
I think there is a small problem with the windows installer failing to re-install all the web applications. After my initial installation I made a mistake and accidentally deleted the webapps folder. (Stupid I know!) I then re-ran the installer and it offered to update my current installation. This caused the webapps folder to be re-created but only with the manager and ROOT applications - all the examples are missing. I thought someone might want to take a look at this at some point. Ta!
Re: [OT] EJB tutorial links/tips?
Hi, goto www.java.sun.com and search for JavaBeans. the site has info about tutorials, books ,forums etc. Manu Hello. I'm moving from pure servlets to mixed jsp/servlet/beans environment and would appreciate tips pointers to where I can find tutorials or guides for getting started with beans. Regards, Christopher Cato _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com
RE: Oracle view compatible with JDBC realm
thanks for the reply. if you're using a view and it's working for you, then during our move from tomcat 3.2.1 to 3.2.3 we may have missed something. i'll be looking into it! Ryan J. Sonnek Programmer/Analyst Brown Printing Company 507.835.0803 mailto:[EMAIL PROTECTED] -Original Message- From: Ignacio J. Ortega [mailto:[EMAIL PROTECTED]] Sent: Friday, September 28, 2001 5:56 PM To: '[EMAIL PROTECTED]' Subject: RE: Oracle view compatible with JDBC realm Not a problem to use a view, should work well. i've use something similar and works nice.. Saludos , Ignacio J. Ortega -Mensaje original- De: Sonnek, Ryan [mailto:[EMAIL PROTECTED]] Enviado el: viernes 28 de septiembre de 2001 22:40 Para: '[EMAIL PROTECTED]' Asunto: Oracle view compatible with JDBC realm I'm currently developing on tomcat 3.2.3, and have had success using the jdbc realm setup. our previous setup had every user using their user_number and password to log into our system. now, we want to use the username, so we've created a view for tomcat to work with. our database is setup with an integer as the primary key, not the string 'username', so we needed to use a view to allow tomcat to see the string instead of the integer. since i've done this, i've been unable to have tomcat authenticate with our db server. has anyone out there done something similar? I'm stuck right now to the point that i either force users to use their user number or to drop this tomcat functionality, and write my own user management system. thanks. Ryan J. Sonnek Programmer/Analyst Brown Printing Company 507.835.0803 mailto:[EMAIL PROTECTED]
Re: Compile Servlet
Sounds like you might not have servlet.jar in your classpath. You might want to try using an IDE like Sun's new Forte 3. The CE version is free. -Vic Isak Rickyanto wrote: Hello all.. I am newbie... I want to compile my servlet , i have set TOMCAT_HOMe, JAVA_HOME and my javac not succedded to compile the servlet... And I confuse about setting classpath so my javac can found the servlet Please help me step by step about setting classpath in autoexec.bat and I want to know how to use javac in order to get the error message step by step .. because I confuse about looking for the error ... if the javac found a lot of errors
How to use jspc
Hi, thanks for all the help regarding using the jre with tomcat. In my development environment I have been placing all my jsp files into the webapps/myproject/ directory. Now I can see that I need to use the jspc to compile the jsp's so that I can distribute them with Tomcat and the JRE. Can someone point out how I should be using the jspc to compile the jsp's and then where I should be placing them. Thanks for the info. Alex
NullPointerException in getSession
Hi all. Does anyone know a solution to the exception presented below? It happens when I try to get an http session. The interesting thing is that this problem is not deterministic: sometimes it happens and sometimes it does not (obviously, using the same code and the same environment). Any help is welcome! Thanks, Daniel Novy. java.lang.NullPointerException at org.apache.tomcat.core.RequestImpl.getSession(RequestImpl.java:497) at org.apache.tomcat.facade.HttpServletRequestFacade.getSession(HttpServletRequ estFacade.java:382) at cetip.web.CtpRequest.getHttpSession(CtpRequest.java:350) at cetip.web.CtpWebUser.getSessionAttribute(CtpWebUser.java:467)
has anybody mod_webapp.dll ?
Hi I don't have Visual C++ to compile it, maybe could somebody send me mod_webapp.dll if he has? There is no mod_webapp for Windows on apache server now. Mit freundlichen Grüßen Christian Schildt Diplom-Betriebswirt (FH) Softwaredeveloper Phone: 089/89013023 Mailto: [EMAIL PROTECTED] ELAXY AG Gutenbergstr. 5 D-82178 Puchheim bei München Phone: +089/8901300 Fax: +089/89013089 www.elaxy.com
errorpage and attributes
Hi, I am using an error-page withing my web-app. I am using the page:errorPage=mypage directive to tell my jsps where the error-page is. Everything works fine. The errorpage is reached whenever an exception is raised within a jsp. But I wonder, how can I determine which jsp caused the error? It seems that there's only the implicit variable exception. While searching the mailinglist I found out, that there's a second way to define an errorpage using the error-page element within web.xml. According to the documentation I found there should be some Request-Attributes defined after my errorpage has been called, like: javax.servlet.error.status_code java.lang.Integer javax.servlet.error.exception_type java.lang.Class javax.servlet.error.message java.lang.String javax.servlet.error.exception java.lang.Throwable javax.servlet.error.request_uri java.lang.String javax.servlet.error.servlet_name java.lang.String (this is according to servlet spec 2.3 chapter 9.9.2) But in my error-jsp all these attributes are null (not set). Doesn't this mechanism work for jsps? thanks in advance, pero
RE: has anybody mod_webapp.dll ?
Please send me a copy too. Jim -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Monday, October 01, 2001 8:12 AM To: Tomcat-User Subject: has anybody mod_webapp.dll ? Hi I don't have Visual C++ to compile it, maybe could somebody send me mod_webapp.dll if he has? There is no mod_webapp for Windows on apache server now. Mit freundlichen Grüßen Christian Schildt Diplom-Betriebswirt (FH) Softwaredeveloper Phone: 089/89013023 Mailto: [EMAIL PROTECTED] ELAXY AG Gutenbergstr. 5 D-82178 Puchheim bei München Phone: +089/8901300 Fax: +089/89013089 www.elaxy.com
Servlets and JSP Error Pages
Hi, Is there a way to route exceptions thrown in servlets to a JSP error page? Brendan -- Brendan McKennaEmail: [EMAIL PROTECTED] Development Strategist Phone: +353-61-338177 Taringold Ltd. Fax: +353-61-338065
Re: InitParameters
I suggest you need to use your servlet-name to invoke your Servlet if you want to use your init-param, it will force your init-param to be included, for example: http://xxx.xxx.xxx.xxx:8080/myapp/servlet/remoteServlet if you use your Servlet class name to invoke your Servlet, for example: http://xxx.xxx.xxx.xxx:8080/myapp/servlet/ch.hephaistos.web.RemoteServlet now (I only have tried TC4.0), the default Servlet-declaration(instance) of your Servlet class will be invoked, which doesn't include your init-param if you include the load-on-startup tag, now I guess because it will force your Servlet engineer Not to use the default Servlet-declaration(instance), so you can get the init-param Bo Oct.01, 2001 Alessandro Di Maria wrote: Hello! I have some problems to read the init-parameters for my servlet. I'm usign tomcat 3.2.3, mod-jk. But tested with tomcat standalone on port 8080. Here's my web.xml, located on TOMCAT_HOME/webapps/test/WEB-INF/ web-app servlet servlet-nameremoteServlet/servlet-name servlet-classch.hephaistos.web.RemoteServlet/servlet-class init-param param-nameserver-host/param-name param-valuelocalhost/param-value /init-param init-param param-nameserver-name/param-name param-valueServletServer/param-value /init-param init-param param-nametimeout/param-name param-value8/param-value /init-param load-on-startup5/load-on-startup /servlet /web-app if I don't include the load-on-startup tag the init-param will never be read ! and here's a snippet of my servlet code: public class RemoteServlet extends HttpServlet implements RRemoteServlet { private String serverHost=localhost; private String severName=ServletServer; private RServletServer server; private int timeout=6; private static int count=0; private int number; public void init(ServletConfig config) throws ServletException { super.init(config); processes = new Hashtable(5); // config Log4J String prefix = this.getServletContext().getRealPath(/WEB-INF/conf/); Log.loadConfig(prefix+log4j.lcf); Log.log.debug(Log4J configuration laoded); // load configuration serverHost = config.getInitParameter(server-host); Log.web.info(Remote Host: +serverHost); severName = config.getInitParameter(server-name); Log.web.info(Server Name: +severName); String timeoutInit = config.getInitParameter(timeout); try{ timeout = Integer.parseInt(timeoutInit); } catch (NumberFormatException nfe){ timeout = 6; } Log.web.info(Timeout: +timeout); // test only use DEBUG-Mode count++; Log.web.debug(Servlet Instance Nr.+count); number=count; Log.web.debug(Servlet Nr.+number); // prepare Servlet for callbacks try{ UnicastRemoteObject.exportObject(this); } catch(RemoteException re){ re.printStackTrace(); } this.lookup(serverHost,severName); try{ this.server.register(this); Log.rmi.info(Servlet registred to +severName); } catch (RemoteException re){ Log.rmi.fatal(Register to [+severName+] failed!,re); } } Here the output I get from Tomcat: 2001-10-01 11:56:46 - ContextManager: Adding context Ctx( /test ) 0 DEBUG [main] hephaistos.log init - Log4J configuration laoded 21INFO [main] hephaistos.web init - Remote Host: localhost 21INFO [main] hephaistos.web init - Server Name: ServletServer 21INFO [main] hephaistos.web init - Timeout: 8 21DEBUG [main] hephaistos.web init - Servlet Instance Nr.1 21DEBUG [main] hephaistos.web init - Servlet Nr.1 241 INFO [main] hephaistos.rmi init - Servlet registred to ServletServer 2001-10-01 11:56:47 - PoolTcpConnector: Starting HttpConnectionHandler on 8080 2001-10-01 11:56:47 - PoolTcpConnector: Starting Ajp12ConnectionHandler on 8007 9594 DEBUG [Thread-21] hephaistos.log init - Log4J configuration laoded 9594 INFO [Thread-21] hephaistos.web init - Remote Host: null 9594 INFO [Thread-21] hephaistos.web init - Server Name: null 9594 INFO [Thread-21] hephaistos.web init - Timeout: 6 9594 DEBUG [Thread-21] hephaistos.web init - Servlet Instance Nr.2 9594 DEBUG [Thread-21] hephaistos.web init - Servlet Nr.2 11868 ERROR [Thread-21] hephaistos.rmi lookup - Lookup for [null] failed! java.rmi.UnknownHostException: Unknown host: null; nested exception is: java.net.UnknownHostException: null java.net.UnknownHostException: null at java.net.InetAddress.getAllByName0(InetAddress.java:571) . Thread [main] is launched on tomcat's startup, Thread [21]
Re: Servlets and JSP Error Pages
I think it's easier: Put this line every JSP: 1. %@ page errorPage=errorHandler.jsp% 2. Create an errorhandler JSP. (Example is attached.) Every throwable error will redirect to errorhandler.jsp. bye: horZsolt - Original Message - From: Arnaud Héritier [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, October 01, 2001 3:45 PM Subject: RE: Servlets and JSP Error Pages It's not a really clean solution but you can do it like this : try{ . }catch(Exception e){ RequestDispatcher rd = getServletContext().getRequestDispatcher(MyErrorPage.jsp); request.setAttribute(javax.servlet.jsp.jspException, e); rd.forward(request, response); } I tested it and it works. arno -Message d'origine- De: Brendan McKenna [SMTP:[EMAIL PROTECTED]] Date: lundi 1 octobre 2001 15:35 À: [EMAIL PROTECTED] Objet: Servlets and JSP Error Pages Hi, Is there a way to route exceptions thrown in servlets to a JSP error page? Brendan -- Brendan McKennaEmail: [EMAIL PROTECTED] Development StrategistPhone: +353-61-338177 Taringold Ltd.Fax: +353-61-338065 errorHandler.jsp
Using jsp / servlets for main web site?
I've been running apache for years and want to move to an xml-based operation. I found cocoon sported the best features (without having to move to IIS - God help us). I got Jakarta / Tomcat installed and running fine but cocoon2 always bombs out saying, The sitemap handler's sitemap is not available... but there is a sitemap file in the /cocoon/ URI. Anyway, my real question is whether or not jsp and servlets (namely, cocoon) can be served / used on port 80 (instead of 8080) while running my working apache server? Is this what mod_jk.so is for? I say it in the archives as a replacement for the depricated mod_jserv.so, which I've used with little to no problem in the past. Any comments would be appreciated and if anyone got cocoon working before (especially as part of the main site running apache), please let me know. I'm a newbie to tomcat but not servlets nor apache so be brutal with the tech-talk. TIA Heath Stewart Systems Administrator / Developer EsotericRealm http://www.esotericrealm.com/~hstewart/
Re: pulling my hair out re: EJB in tomcat
On Fri, 28 Sep 2001 [EMAIL PROTECTED] wrote: Now I just keep getting the java.lang.ClassCastException: javax.naming.NameClassPair on the sample's line: Object ref = jndiContext.lookup(interest/Interest); are you actually getting the classcast there? or on a subsequent line where its something like InterestHome iHome = (InterestHome) ref; ? Does doing a InterestHome iHome = (InterestHome) PortableRemoteObject.narrow( jndiContext.lookup(interest/Interest), InterestHome.class); Unfortunately, it's definitely happening during the lookup. If the lookup were to succeed, it would continue t0: InterestHome home = (InterestHome) PortableRemoteObject.narrow(ref, InterestHome.class); But it's not getting there. - Marty
Tomcat as a service
Hello all: My third posting...somebody please help! I am using tomcat 3.2.2 but dont have the jk_nt_service file with me. I tried downloading it from the apache site but it redirects me to the tomcat 3.2.3 binaries. Can somebody please tell me if I can use the exe from another version of tomcat? if not can somebody send me the exe file? thanks a bunch Prashanth _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com
Re: NullPointerException in getSession
You get this error message in 2 cases: 1. You want to acces the session, but it doesn't exist (use getSession(true)) 2. You want to acces a session value, but it doesn't exist: e.g: request.getSession().getValue(ANYTHING), and ANYTHING variable not in the session. - Original Message - From: Manu KY [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, October 01, 2001 4:34 PM Subject: Re: NullPointerException in getSession Hi, please paste the code for easy debugging!!!. did you do getSession(true)? Manu Hi all. Does anyone know a solution to the exception presented below? It happens when I try to get an http session. The interesting thing is that this problem is not deterministic: sometimes it happens and sometimes it does not (obviously, using the same code and the same environment). Any help is welcome! Thanks, Daniel Novy. java.lang.NullPointerException at org.apache.tomcat.core.RequestImpl.getSession(RequestImpl.java:497) at org.apache.tomcat.facade.HttpServletRequestFacade.getSession(HttpServletReq u estFacade.java:382) at cetip.web.CtpRequest.getHttpSession(CtpRequest.java:350) at cetip.web.CtpWebUser.getSessionAttribute(CtpWebUser.java:467) _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com
Configuration Problem?
Hi, I installed tomcat4 as a service. When I start tomcat using startup.bat, my application works fine, but when I start tomcat as a service it doesn't work. I don't get any errors, but in catalina_log tomcat stops after: 2001-09-29 10:41:23 HttpConnector Opening server socket on all host IP addresses usally he write something like: 2001-09-29 11:28:41 HttpConnector Opening server socket on all host IP addresses 2001-09-29 11:28:47 HttpConnector[80] Starting background thread 2001-09-29 11:28:47 HttpProcessor[80][0] Starting background thread 2001-09-29 11:28:47 HttpProcessor[80][1] Starting background thread 2001-09-29 11:28:47 HttpProcessor[80][2] Starting background thread 2001-09-29 11:28:47 HttpProcessor[80][3] Starting background thread 2001-09-29 11:28:47 HttpProcessor[80][4] Starting background thread Is it a configuration problem? thanks for any help Jens
RE: ResultSet
Hi Sio: I'm surprised with your CV, it's very interesting This is the exactly error: Error interno del servlet: javax.servlet.ServletException at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:399) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404) at org.apache.tomcat.core.Handler.service(Handler.java:286) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79 7) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743) at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC onnectionHandler.java:210) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498) at java.lang.Thread.run(Thread.java:484) Causa Raiz: java.lang.AbstractMethodError at jsp._0002fjsp_0002fCCreditosUT_0002ejspCCreditosUT_jsp_2._jspService(_0002fj sp_0002fCCreditosUT_0002ejspCCreditosUT_jsp_2.java:174) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja va:177) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404) at org.apache.tomcat.core.Handler.service(Handler.java:286) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79 7) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743) at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC onnectionHandler.java:210) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498) at java.lang.Thread.run(Thread.java:484) I received that message from a JSP that received a result set from a Bean. The JSP tries to show the result set with pagination (X records by page) This is the code: %! ResultSet rs; % %! int intTotalRegistros = 0; % %! int i = 0; % % intTotalRegistros = mybean.Cuenta_registros(); rs = mybean.consultarC(); System.out.println(Despues de llamar a consultarC); //I received this message ok % PBIMG height=10 src=../images/puntob1.gif width=10/B BResultados/B/P !-- the main table -- FORM METHOD=POST ACTION=CCreditosUT_Resp.jsp % try { if (intTotalRegistros 0 (rs.next() || RegistroActual = 1) ) { System.out.println(Reg. Actual es + RegistroActual); //I received this message ok rs.absolute(RegistroActual); System.out.println(Despues de absolute + RegistroActual); //I don't received this message int contador = 1; .. Claudia Sarmiento Medina System Analyst GLOBALSTAR - TESAM PERU S.A. T: 2124039/ 2124036 Ext C:870-7866 -Mensaje original- De: Siomara Pantarotto [mailto:[EMAIL PROTECTED]] Enviado el: Saturday, September 29, 2001 12:44 AM Para: [EMAIL PROTECTED] Asunto: Re: ResultSet It will be easier to help If you post the error, and the piece of code you are trying to use, in the body of the email. I don't know if it helps but I got some examples on JDBC, XML, JavaMail, etc... at: www.geocities.com/hisiomara (under tutorials) :-) Sio From: Claudia Sarmiento [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: '[EMAIL PROTECTED]' [EMAIL PROTECTED] Subject: ResultSet Date: Fri, 28 Sep 2001 19:46:49 -0500 Hello Everybody: I'm trying to show a resultset with pagination, i'm using the rs.absolute() to go to a specific row, but tomcat 3.2.1 send a error, Is there a restriction to use this method? Regards Claudia _ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
tomcat3.0-4.0 conversion problem with JSP's
Hello List! I'm having some difficulty in my conversion from Tomcat 3 to Tomcat 4. Although 3 has been stable, we've never been able to get multiple Vhosts running under a single JVM. Fortunately I have that working with Tomcat4.0 for servlets, but now, for some reason, my JSP's are failing. FWIW I basically kept all my old Apache configs, dumping the Jserv stuff in favor of WebAppDeploy. Previously (tomcat 3), I had in httpd.conf: AddType text/jsp .js AddHandler jserv-servlet .jsp and in my server.xml files: Context path=/jsp docBase=/path-to/jsp debug=0 reloadable=true and that was about it, for my Tomcat 4 server.xml, I put the same Context Path statement, and left the AddType/Handler stuff in httpd.conf. So the problem is that now Apache doesn't seem to know what a .js or .jsp file is! When I hit one of them, it just loads the jsp code up in my browser. I'm sure that there is some voodoo I'm missing to get Apache to pass the jsp's off to the new Tomcat setup, but as there isn't any documentation examples (that I can find) I'm at a loss. Any thoughts/experience/skulls to drink from? -- Matthew Boeckman(816) 777-2160 Manager - Systems Integration Saepio Technologies Those who would give up essential liberties for a measure of security, deserve neither liberty nor security. - Ben Franklin
Re: Session Timeout
Thanks Kim, it worked a treat! At 12:45 28/09/01 +0200, you wrote: You can do something like that: httpSession.setMaxInactiveInterval(yourintervalasintinseconds)); mfg. integris integrierte computersysteme GmbH i.A. Kim Hübel -- mailto:[EMAIL PROTECTED] http://www.integris.de Telefon: +49(6501)92800 Fax: +49(6501)2808 - Original Message - From: Fiona McEvoy [EMAIL PROTECTED] To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Friday, September 28, 2001 11:20 AM Subject: Session Timeout Running Tomcat 3.2, how do I set the default timeout for the session to more than 30 mins -I looked at the archives and I made changes to the session-timeout in server.xml file and the web.xml file as suggested, but this has not worked. Any advice much appreciated. Thanks, Fiona. ___ Fiona McEvoy, PROSE, 20 Grantham Street, Dublin 8, Ireland. Email: [EMAIL PROTECTED] Tel. (+353 1) 4783511, Fax. (+353 1) 4783937. ___ ___ Fiona McEvoy, PROSE, 20 Grantham Street, Dublin 8, Ireland. Email: [EMAIL PROTECTED] Tel. (+353 1) 4783511, Fax. (+353 1) 4783937. ___
Tomcat 4.0 and Cocoon on NT4.0 Sp6
Hi All I've downloaded Cocoon 2.0b2, followed the instruction to build cocoon.war and copied it into the Tomcat/webapps directory. I then shutdown and restarted Tomcat 4.0. When I try to call http://localhost:8080/cocoon I get the following displayed in the browser. What have I done wrong? Regards Roger type internal-servlet-error message Internal servlet error description Cocoon was not initialized. sender org.apache.cocoon.servlet.CocoonServlet source Cocoon servlet request-uri /cocoon/ embedded exception org.apache.avalon.framework.component.ComponentException: Could not access the Component for role: org.apache.cocoon.components.parser.Parser embedded exception stacktrace org.apache.avalon.framework.component.ComponentException: Could not access the Component for role: org.apache.cocoon.components.parser.Parser at org.apache.avalon.excalibur.component.ExcaliburComponentManager.lookup(Excal iburComponentManager.java:286) at org.apache.cocoon.Cocoon.configure(Cocoon.java:210) at org.apache.cocoon.Cocoon.initialize(Cocoon.java:160) at org.apache.cocoon.servlet.CocoonServlet.createCocoon(CocoonServlet.java:634) at org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:164) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:856) at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java: 3292) at org.apache.catalina.core.StandardContext.start(StandardContext.java:3402) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:785) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:415) at org.apache.catalina.core.StandardHost.install(StandardHost.java:643) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:647) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:777) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:463) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppor t.java:155) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1131) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:307) at org.apache.catalina.core.StandardService.start(StandardService.java:388) at org.apache.catalina.core.StandardServer.start(StandardServer.java:505) at org.apache.catalina.startup.Catalina.start(Catalina.java:776) at org.apache.catalina.startup.Catalina.execute(Catalina.java:681) at org.apache.catalina.startup.Catalina.process(Catalina.java:179) at java.lang.reflect.Method.invoke(Native Method) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:218) exception org.apache.avalon.framework.configuration.ConfigurationException: Error trying to load configurations stacktrace org.apache.avalon.framework.configuration.ConfigurationException: Error trying to load configurations at org.apache.cocoon.Cocoon.configure(Cocoon.java:220) at org.apache.cocoon.Cocoon.initialize(Cocoon.java:160) at org.apache.cocoon.servlet.CocoonServlet.createCocoon(CocoonServlet.java:634) at org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:164) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:856) at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java: 3292) at org.apache.catalina.core.StandardContext.start(StandardContext.java:3402) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:785) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:415) at org.apache.catalina.core.StandardHost.install(StandardHost.java:643) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:647) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:777) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:463) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppor t.java:155) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1131) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:307) at org.apache.catalina.core.StandardService.start(StandardService.java:388) at org.apache.catalina.core.StandardServer.start(StandardServer.java:505) at org.apache.catalina.startup.Catalina.start(Catalina.java:776) at org.apache.catalina.startup.Catalina.execute(Catalina.java:681) at org.apache.catalina.startup.Catalina.process(Catalina.java:179) at java.lang.reflect.Method.invoke(Native Method) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:218) _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com
Re: Tomcat as a service
Try a different solution: http://www.alexandriasc.com/software/JavaService/index.html I've used it with Tomcat 3 and 4, plus many other applications. It has a lot of useful configuration options, and I've never seen it crash or whatever. You may wish to modify the supplied install tomcat 4 script, as it needs to add -current %2 for the install line. -Chris - Original Message - From: Vara Prashanth [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, October 01, 2001 4:31 PM Subject: Tomcat as a service Hello all: My third posting...somebody please help! I am using tomcat 3.2.2 but dont have the jk_nt_service file with me. I tried downloading it from the apache site but it redirects me to the tomcat 3.2.3 binaries. Can somebody please tell me if I can use the exe from another version of tomcat? if not can somebody send me the exe file? thanks a bunch Prashanth _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com
getResourceAsStream() and exploring the archive
The ServletContext.getResourceAsStream() method is quite useful when you know in advance the names of resources to load. However, I'd like to know if there's any way to explore a WAR file (say, specify a setup subfolder in the WAR archive, then look at its contents). This way, any number of files with any name can be read. This is useful for example if each file is some sort of extensible setup info file, providing extensible deployment info. Any suggestions, apart from decompressing the archive and using classes/methods in java.io.* ? Thanks, Chris
Re: tomcat3.0-4.0 conversion problem with JSP's
I'm guessing you're using mod_webapp?? If so, check the documentation in the INSTALL.txt file for mod_webapp. The directives needed in httpd.conf are very different than for mod_jserv. On the otherhand, if you already have RTFM, then post relavant parts of your httpd.conf so we can see what's happening. --David Smith On Monday 01 October 2001 10:47 am, you wrote: Hello List! I'm having some difficulty in my conversion from Tomcat 3 to Tomcat 4. Although 3 has been stable, we've never been able to get multiple Vhosts running under a single JVM. Fortunately I have that working with Tomcat4.0 for servlets, but now, for some reason, my JSP's are failing. FWIW I basically kept all my old Apache configs, dumping the Jserv stuff in favor of WebAppDeploy. Previously (tomcat 3), I had in httpd.conf: AddType text/jsp .js AddHandler jserv-servlet .jsp and in my server.xml files: Context path=/jsp docBase=/path-to/jsp debug=0 reloadable=true and that was about it, for my Tomcat 4 server.xml, I put the same Context Path statement, and left the AddType/Handler stuff in httpd.conf. So the problem is that now Apache doesn't seem to know what a .js or .jsp file is! When I hit one of them, it just loads the jsp code up in my browser. I'm sure that there is some voodoo I'm missing to get Apache to pass the jsp's off to the new Tomcat setup, but as there isn't any documentation examples (that I can find) I'm at a loss. Any thoughts/experience/skulls to drink from?
RE: has anybody mod_webapp.dll ? Me too!!
Yes, I am also in need of mod_webapp.dll. Does anyone know if there is an expectation for this to be posted? J. Haller -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Monday, October 01, 2001 6:12 AM To: Tomcat-User Subject: has anybody mod_webapp.dll ? Hi I don't have Visual C++ to compile it, maybe could somebody send me mod_webapp.dll if he has? There is no mod_webapp for Windows on apache server now. Mit freundlichen Grüßen Christian Schildt Diplom-Betriebswirt (FH) Softwaredeveloper Phone: 089/89013023 Mailto: [EMAIL PROTECTED] ELAXY AG Gutenbergstr. 5 D-82178 Puchheim bei München Phone: +089/8901300 Fax: +089/89013089 www.elaxy.com
Re: Using jsp / servlets for main web site?
Is this on the default install of Cocoon2 (no edits, mods, etc, ...)?? If so, I got it to run straight out of the box with out a problem. I'm using RC1 at the moment with TC4, Apache 1.3.19, and mod_webapp.so under Mandrake 8. Presently in a development environment until I can learn enough about the sitemap.xmap files to be dangerous, but still I've seen your error message before, but am having trouble remembering what was done to fix it. Try doing a search on Google for your exact error message and see what you get. On connecting Apache and Tomcat, you have two options -- mod_webapp.so and mod_jk.so. Mod_jk.so is the older implementation and very stable for production use. Should be easily findable on one the Jakarta website. Mod_webapp.so is a very new package and I'm not really sure about it's release status at the moment. Pier Fumagalli is one of the major people working on that project and I haven't seen much of any posts from him in a while. Last I knew there were one or two major bugs still in need of resolution before 1.0 release. Good luck! --David Smith On Monday 01 October 2001 10:05 am, you wrote: I've been running apache for years and want to move to an xml-based operation. I found cocoon sported the best features (without having to move to IIS - God help us). I got Jakarta / Tomcat installed and running fine but cocoon2 always bombs out saying, The sitemap handler's sitemap is not available... but there is a sitemap file in the /cocoon/ URI. Anyway, my real question is whether or not jsp and servlets (namely, cocoon) can be served / used on port 80 (instead of 8080) while running my working apache server? Is this what mod_jk.so is for? I say it in the archives as a replacement for the depricated mod_jserv.so, which I've used with little to no problem in the past. Any comments would be appreciated and if anyone got cocoon working before (especially as part of the main site running apache), please let me know. I'm a newbie to tomcat but not servlets nor apache so be brutal with the tech-talk. TIA Heath Stewart Systems Administrator / Developer EsotericRealm http://www.esotericrealm.com/~hstewart/
Re:Tomcat 4.0 and Cocoon on NT4.0 Sp6
You should use the Cocoon rc1a release. It works out of the box with Tomcat 4.0 Jonathan Reply Separator Subject:Tomcat 4.0 and Cocoon on NT4.0 Sp6 Author: [EMAIL PROTECTED] Date: 10/1/2001 4:05 PM Hi All I've downloaded Cocoon 2.0b2, followed the instruction to build cocoon.war and copied it into the Tomcat/webapps directory. I then shutdown and restarted Tomcat 4.0. When I try to call http://localhost:8080/cocoon I get the following displayed in the browser. What have I done wrong? Regards Roger type internal-servlet-error message Internal servlet error description Cocoon was not initialized. sender org.apache.cocoon.servlet.CocoonServlet source Cocoon servlet request-uri /cocoon/ embedded exception org.apache.avalon.framework.component.ComponentException: Could not access the Component for role: org.apache.cocoon.components.parser.Parser embedded exception stacktrace org.apache.avalon.framework.component.ComponentException: Could not access the Component for role: org.apache.cocoon.components.parser.Parser at org.apache.avalon.excalibur.component.ExcaliburComponentManager.lookup(Excal iburComponentManager.java:286) at org.apache.cocoon.Cocoon.configure(Cocoon.java:210) at org.apache.cocoon.Cocoon.initialize(Cocoon.java:160) at org.apache.cocoon.servlet.CocoonServlet.createCocoon(CocoonServlet.java:634) at org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:164) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:856) at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java: 3292) at org.apache.catalina.core.StandardContext.start(StandardContext.java:3402) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:785) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:415) at org.apache.catalina.core.StandardHost.install(StandardHost.java:643) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:647) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:777) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:463) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppor t.java:155) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1131) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:307) at org.apache.catalina.core.StandardService.start(StandardService.java:388) at org.apache.catalina.core.StandardServer.start(StandardServer.java:505) at org.apache.catalina.startup.Catalina.start(Catalina.java:776) at org.apache.catalina.startup.Catalina.execute(Catalina.java:681) at org.apache.catalina.startup.Catalina.process(Catalina.java:179) at java.lang.reflect.Method.invoke(Native Method) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:218) exception org.apache.avalon.framework.configuration.ConfigurationException: Error trying to load configurations stacktrace org.apache.avalon.framework.configuration.ConfigurationException: Error trying to load configurations at org.apache.cocoon.Cocoon.configure(Cocoon.java:220) at org.apache.cocoon.Cocoon.initialize(Cocoon.java:160) at org.apache.cocoon.servlet.CocoonServlet.createCocoon(CocoonServlet.java:634) at org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:164) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:856) at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java: 3292) at org.apache.catalina.core.StandardContext.start(StandardContext.java:3402) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:785) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:415) at org.apache.catalina.core.StandardHost.install(StandardHost.java:643) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:647) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:777) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:463) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppor t.java:155) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1131) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:307) at org.apache.catalina.core.StandardService.start(StandardService.java:388) at org.apache.catalina.core.StandardServer.start(StandardServer.java:505) at org.apache.catalina.startup.Catalina.start(Catalina.java:776) at org.apache.catalina.startup.Catalina.execute(Catalina.java:681) at org.apache.catalina.startup.Catalina.process(Catalina.java:179) at java.lang.reflect.Method.invoke(Native Method) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:218) _ Do You Yahoo!?
Re: Troubles with binding Tomcat 4.0 to Apache 1.3...
I'm having the same problem. Linux RedHat 6.2, Apache 1.3.20, Tomcat 4.0, mod_webapp.so 1.0 Synax error on LoadModule line in httpd.conf Does anyone have any idea why this is happening? Mike Lindsey Berkeley [EMAIL PROTECTED] wrote: Hi Ich have troubles with binding Tomcat 4.0 to Apache 1.3... in Windows 2000. There are modules web_app-module_x only for linux and mac on the apache server available. I din not manage to load an so-module in windows although some people say it is possible. In Linux, I get the following error message if I am trying to load the module mod_webapp.so. Syntax error on line 977 of /usr/apache/conf/httpd.conf: Invalid command 'LoadModule', perhaps mis-spelled or defined by a module not included in the server configuration Maybe, somebody can give me some advice? Mit freundlichen Grüßen Christian Schildt Diplom-Betriebswirt (FH) Softwaredeveloper Phone: 089/89013023 Mailto: [EMAIL PROTECTED] ELAXY AG Gutenbergstr. 5 D-82178 Puchheim bei München Phone: +089/8901300 Fax: +089/89013089 www.elaxy.com
Examples in Tomcat 4.0
I installed the tomcat binaries on a Solaris 7 machine. The only configuration changes I made are: 1) changed the http port from 8080 to 7007 and 2) added JAVA_HOME=/opt/jdk to startup.sh I can get the servlet examples to run, but when I try to access the jsp examples I get a Document Contained No Data error and the server shuts itself down (crashes?). Any thoughts? Kelly Kleinfelder UNIX System Administrator Unbound Medicine, Inc. 610-627-9090 x229
RE: has anybody mod_webapp.dll ? Me too!!
I have build the mod_webapp.dll, but I seem to be having difficulty with Apache recognizing it. I keep getting an statement ... cannont load mod_webapp.dll, cannont find in directory. I have even gone to the effort of putting the full path to the .dll in the httpd.conf file. So, I may have build the .dll, has anyone build the .dll and been successful? --- Haller, Joe [EMAIL PROTECTED] wrote: Yes, I am also in need of mod_webapp.dll. Does anyone know if there is an expectation for this to be posted? J. Haller -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Monday, October 01, 2001 6:12 AM To: Tomcat-User Subject: has anybody mod_webapp.dll ? Hi I don't have Visual C++ to compile it, maybe could somebody send me mod_webapp.dll if he has? There is no mod_webapp for Windows on apache server now. Mit freundlichen Grüßen Christian Schildt Diplom-Betriebswirt (FH) Softwaredeveloper Phone: 089/89013023 Mailto: [EMAIL PROTECTED] ELAXY AG Gutenbergstr. 5 D-82178 Puchheim bei München Phone: +089/8901300 Fax: +089/89013089 www.elaxy.com = Phillip Mastroianni [EMAIL PROTECTED] [EMAIL PROTECTED] __ Do You Yahoo!? Listen to your Yahoo! Mail messages from any phone. http://phone.yahoo.com
Re: getResourceAsStream() and exploring the archive
On Mon, 1 Oct 2001, chris brown wrote: Date: Mon, 1 Oct 2001 17:22:05 +0200 From: chris brown [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: getResourceAsStream() and exploring the archive The ServletContext.getResourceAsStream() method is quite useful when you know in advance the names of resources to load. However, I'd like to know if there's any way to explore a WAR file (say, specify a setup subfolder in the WAR archive, then look at its contents). This way, any number of files with any name can be read. This is useful for example if each file is some sort of extensible setup info file, providing extensible deployment info. In Servlet 2.3 (and therefore available in Tomcat 4.0), a new call was added for precisely this purpose. Check out the Javadocs for ServletContext.getResourcePaths() Tomcat 4 uses this internally, for example, to build the directory listings of available resources in a directory when there is no welcome file available. Any suggestions, apart from decompressing the archive and using classes/methods in java.io.* ? In a servlet 2.2 environment, this is pretty much your only choice, and you have to make some non-portable assumptions about how tho figure out where the directory or WAR file is. Thanks, Chris Craig McClanahan
Re: Using jsp / servlets for main web site?
Out of the box, huh? I untar'ed tomcat (already have jdk 1.3.1 and jsse 1.0.2 installed) and got that setup and tested it - no problems. I untar'ed cocoon2 (latest) and did: ./build.sh --Dinclude.webapps.libs=yes -Dinstall.war=$CATALINA_HOME/webapps install This worked okay. I restarted tomcat and got the message I posted before. Did I do everything right? I also used mod_webapp.so to connect apache and tomcat. It almost works (it connects, that is). The examples warpconnection reports that it isn't deployed yet (even though I followed INSTALL.txt) but the cocoon connection I made using the .war file starts sending everything but xml files as octet streams. XML files is just returns the error in xhtml form (though not proper xhtml) - the same error as before. So, it's actually doing something, just not the right way. Should cocoon let regular HTML and PHP files be parsed by / sent from the server as normal and only try to parse xml files? If not, I'll have to unmount cocoon from apache's document root (/) and put it somewhere else (like /xml or something). TIA Heath Stewart Systems Administrator / Developer EsotericRealm http://www.esotericrealm.com/~hstewart/ - Original Message - From: David Smith [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, October 01, 2001 10:43 AM Subject: Re: Using jsp / servlets for main web site? Is this on the default install of Cocoon2 (no edits, mods, etc, ...)?? If so, I got it to run straight out of the box with out a problem. I'm using RC1 at the moment with TC4, Apache 1.3.19, and mod_webapp.so under Mandrake 8. Presently in a development environment until I can learn enough about the sitemap.xmap files to be dangerous, but still I've seen your error message before, but am having trouble remembering what was done to fix it. Try doing a search on Google for your exact error message and see what you get. On connecting Apache and Tomcat, you have two options -- mod_webapp.so and mod_jk.so. Mod_jk.so is the older implementation and very stable for production use. Should be easily findable on one the Jakarta website. Mod_webapp.so is a very new package and I'm not really sure about it's release status at the moment. Pier Fumagalli is one of the major people working on that project and I haven't seen much of any posts from him in a while. Last I knew there were one or two major bugs still in need of resolution before 1.0 release. Good luck! --David Smith On Monday 01 October 2001 10:05 am, you wrote: I've been running apache for years and want to move to an xml-based operation. I found cocoon sported the best features (without having to move to IIS - God help us). I got Jakarta / Tomcat installed and running fine but cocoon2 always bombs out saying, The sitemap handler's sitemap is not available... but there is a sitemap file in the /cocoon/ URI. Anyway, my real question is whether or not jsp and servlets (namely, cocoon) can be served / used on port 80 (instead of 8080) while running my working apache server? Is this what mod_jk.so is for? I say it in the archives as a replacement for the depricated mod_jserv.so, which I've used with little to no problem in the past. Any comments would be appreciated and if anyone got cocoon working before (especially as part of the main site running apache), please let me know. I'm a newbie to tomcat but not servlets nor apache so be brutal with the tech-talk. TIA Heath Stewart Systems Administrator / Developer EsotericRealm http://www.esotericrealm.com/~hstewart/
Examples of using mod_webapp with multiple virtual hosts?
Can someone send an example of configuring mod_webapp to work with multiple virtual hosts, all using the same IP number? I'm trying to get mod_webapp to work with OS X, and failing entirely. Coyote --- ron lussier / lenscraft fine art giclee prints [EMAIL PROTECTED] 229 8th street / studio 4 san francisco / ca 94103 http://www.lenscraft.com/ +1 415.241.0815
Re: tomcat3.0-4.0 conversion problem with JSP's
thanks for the reply. I re-read the install.txt file which is so generic as to be confusing. Eventually I setup a seperate jsp WebAppDeploy directive, but had to was the AddType/AddHandler stuff to get the jsp's to execute... now All of them are throwing exceptions, which i suspect has something to do with my classpath... so it's getting closer... David Smith wrote: I'm guessing you're using mod_webapp?? If so, check the documentation in the INSTALL.txt file for mod_webapp. The directives needed in httpd.conf are very different than for mod_jserv. On the otherhand, if you already have RTFM, then post relavant parts of your httpd.conf so we can see what's happening. --David Smith On Monday 01 October 2001 10:47 am, you wrote: Hello List! I'm having some difficulty in my conversion from Tomcat 3 to Tomcat 4. Although 3 has been stable, we've never been able to get multiple Vhosts running under a single JVM. Fortunately I have that working with Tomcat4.0 for servlets, but now, for some reason, my JSP's are failing. FWIW I basically kept all my old Apache configs, dumping the Jserv stuff in favor of WebAppDeploy. Previously (tomcat 3), I had in httpd.conf: AddType text/jsp .js AddHandler jserv-servlet .jsp and in my server.xml files: Context path=/jsp docBase=/path-to/jsp debug=0 reloadable=true and that was about it, for my Tomcat 4 server.xml, I put the same Context Path statement, and left the AddType/Handler stuff in httpd.conf. So the problem is that now Apache doesn't seem to know what a .js or .jsp file is! When I hit one of them, it just loads the jsp code up in my browser. I'm sure that there is some voodoo I'm missing to get Apache to pass the jsp's off to the new Tomcat setup, but as there isn't any documentation examples (that I can find) I'm at a loss. Any thoughts/experience/skulls to drink from? -- Matthew Boeckman(816) 777-2160 Manager - Systems Integration Saepio Technologies Those who would give up essential liberties for a measure of security, deserve neither liberty nor security. - Ben Franklin
Re: tomcat as service!
Vara, The binaries appear to be forward compatable. One interesting difference is that you have to use forward slashes in the newer version - the backslash directory separator no longer works when specifying the path to your configuration (wrapper.properties)file. A benefit of the newer version is you can specify the dependency of your Apache service on your Tomcat service from the command line rather than having to play around in the registry! Bruce - Original Message - From: Vara Prashanth [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, September 29, 2001 4:01 PM Subject: tomcat as service! Hello all: I am trying to run tomcat 3.2.2 as a service on my machine. The problem however is I don't have the jk_nt_service.exe file! Can anyone of you please tell me if I can use any oher version of the file? I tried looking up the 3.2.2 on the apache site but it gets re-directed to the 3.2.3 binaries. Does that mean I can use the exe file from there. thanks Prashanth _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com
Re: Using jsp / servlets for main web site?
The build command looks right. It's the same one I used. The only weirdness I experienced is that Cocoon 2 (beta 2 at least) would core dump the JVM with a seg fault. I fixed that with 'ulimit -s 2048' because Sun JDK 1.3.1 has a bug in it when stack size is set to 'unlimited' under linux. Sun's bug parade has a write-up for it. As I understand it, it's fixed in jdk 1.4, but that's still beta. I'm not well enough versed in how mod_webapp works to know what it grabs and doesn't grab. Looks like any request for the folder of an app is grabbed and sent to the app for processing. That may be based on what's in web.xml though. Someone with detailed knowledge of mod_webapp internals would have to answer that one. I do know in the case of Cocoon2, all requests with the path described in the WebAppDeploy directive are sent to Cocoon2 for processing. Example: httpd.conf: WebAppDeploy cocoon tc_connect /xml_test URL: http://localhost/xml_test/something.gif is sent to the cocoon context Mounting the root of the site to cocoon would send the entire site to Cocoon for processing. Then it's up to the sitemap.xmap to figure out how files are handled. Try deploying Cocoon2 to something like /xml_test instead and try it out. If that works, then you're probably a lot closer to the answer. --David Smith On Monday 01 October 2001 12:51 pm, you wrote: Out of the box, huh? I untar'ed tomcat (already have jdk 1.3.1 and jsse 1.0.2 installed) and got that setup and tested it - no problems. I untar'ed cocoon2 (latest) and did: ./build.sh --Dinclude.webapps.libs=yes -Dinstall.war=$CATALINA_HOME/webapps install This worked okay. I restarted tomcat and got the message I posted before. Did I do everything right? I also used mod_webapp.so to connect apache and tomcat. It almost works (it connects, that is). The examples warpconnection reports that it isn't deployed yet (even though I followed INSTALL.txt) but the cocoon connection I made using the .war file starts sending everything but xml files as octet streams. XML files is just returns the error in xhtml form (though not proper xhtml) - the same error as before. So, it's actually doing something, just not the right way. Should cocoon let regular HTML and PHP files be parsed by / sent from the server as normal and only try to parse xml files? If not, I'll have to unmount cocoon from apache's document root (/) and put it somewhere else (like /xml or something). TIA Heath Stewart Systems Administrator / Developer EsotericRealm http://www.esotericrealm.com/~hstewart/ - Original Message - From: David Smith [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, October 01, 2001 10:43 AM Subject: Re: Using jsp / servlets for main web site? Is this on the default install of Cocoon2 (no edits, mods, etc, ...)?? If so, I got it to run straight out of the box with out a problem. I'm using RC1 at the moment with TC4, Apache 1.3.19, and mod_webapp.so under Mandrake 8. Presently in a development environment until I can learn enough about the sitemap.xmap files to be dangerous, but still I've seen your error message before, but am having trouble remembering what was done to fix it. Try doing a search on Google for your exact error message and see what you get. On connecting Apache and Tomcat, you have two options -- mod_webapp.so and mod_jk.so. Mod_jk.so is the older implementation and very stable for production use. Should be easily findable on one the Jakarta website. Mod_webapp.so is a very new package and I'm not really sure about it's release status at the moment. Pier Fumagalli is one of the major people working on that project and I haven't seen much of any posts from him in a while. Last I knew there were one or two major bugs still in need of resolution before 1.0 release. Good luck! --David Smith On Monday 01 October 2001 10:05 am, you wrote: I've been running apache for years and want to move to an xml-based operation. I found cocoon sported the best features (without having to move to IIS - God help us). I got Jakarta / Tomcat installed and running fine but cocoon2 always bombs out saying, The sitemap handler's sitemap is not available... but there is a sitemap file in the /cocoon/ URI. Anyway, my real question is whether or not jsp and servlets (namely, cocoon) can be served / used on port 80 (instead of 8080) while running my working apache server? Is this what mod_jk.so is for? I say it in the archives as a replacement for the depricated mod_jserv.so, which I've used with little to no problem in the past. Any comments would be appreciated and if anyone got cocoon working before (especially as part of the main site running apache), please let me know. I'm a newbie to tomcat but not servlets nor apache so be brutal with the tech-talk. TIA Heath Stewart Systems
Re: Tomcat Hanging
Do a thread dump on the hanging process. Its CTRL-BREAK on a windows machine, I'm not sure of the Solaris equivalent command. It will likely show a few objects waiting indefinitely for some resource. In my experience it has always been my own code that trips up tomcat. Dave - Original Message - From: Jeremy P [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, October 01, 2001 12:42 PM Subject: Tomcat Hanging Hi all, I am having some trouble with a fleet of production tomcat servers. The servers are running Tomcat 3.2.3 in a fairly high-volume system (approx. 500,000 requests per day) on Solaris 8 using JDK1.3.1 . After starting the servers. They run fantastically for about 20 minutes, with no signs of being slow due to load or any other problems. After this 20 minutes, they hang completely. Running top on the machines shows that they drop off the CPU list completely. Running netstat shows that all connections are stuck in the ESTABLISHED state. Sometimes it takes longer than 20 minutes, sometimes less, but eventually it will hang in the described state. This problem occurs both when running tomcat in standalone operation and via the Apache module. I have seen a few bug reports describing similiar problems but they all say they were fixed prior to 3.2.3. Furthermore, I have even switched one of the machines to Tomcat 4 to see if that would fix the problem, but it did not. Has anyone encountered similiar problems, or have any suggestions as to what may be the cause. Thanks Jeremy __ Do You Yahoo!? Listen to your Yahoo! Mail messages from any phone. http://phone.yahoo.com
RE: Tomcat crashes after some requests
Ok, thank you all who answered. I'll try a new driver and see if it makes a difference. I've seen the driver list on Sun's page, but since we have a limited time to try and decide, which product do you (or anyone else with experience in this field) recommend ? I'm particularly interested in success stories accessing MS-Access. Best regards, Wesley --- Barney Hamish [EMAIL PROTECTED] wrote: I had a similar problem but it was due to the ODBC:JDBC bridge. As has been pointed out numerous times on the list the ODBC:JDBC bridge is not production ready. I replaced it with a production quality driver and it hasn't crashed since. It's worth a try. Hamish -Original Message- From: Wesley E. Ribeiro [mailto:[EMAIL PROTECTED]] Sent: Friday, September 28, 2001 3:16 PM To: [EMAIL PROTECTED] Subject: Tomcat crashes after some requests Hi ! We are using Tomcat 3.2.1 (stand-alone) in our project, and after some number of requests (this number is variable, but usually low, like 50 or so), Tomcat just crashes. There seems to be no useful information about the crash in the logs, and we could not identify a page (or sequence of pages), which could reproduce the crash. Also, when most crashes happen there is just one client browser accessing Tomcat. We are using WinNT 4.0, and Tomcat is being used as a NT service (created using the jk_nt_service utility). The JVM used is the one in the JDK1.3.1. The code in the jsp pages access Oracle and MS-Access databases (Oracle's JDBC driver and the JDBC-ODBC driver for Access), and the pages contents are very common: some tables, a few applets. I know this is little to work with, but any help is appreciated. Thanks, Wesley __ Do You Yahoo!? Listen to your Yahoo! Mail messages from any phone. http://phone.yahoo.com
Browser continues to run after response received
Hi, I hope I'm posting to the correct list, but here goes! I'm running Tomcat 3.2.3 standalone with IE 5.5 and I'm using Struts 1.0. I have a jsp which contains 2 IFrames which also contain jsp's. I use a javascript to submit one of the pages in the IFrame. The iframe page calls an Action object which returns my response. The response gets returned correctly with no delay, but my browser keeps running as if it is still waiting on a response. It will report Done in the status bar and the little icon at the top left hand corner of the screen stops turning, but the blue bar at the bottom of the screen still shows that its working. This hanging doesn't happen every single time I submit the page, but it does happen about 30% of the time. Even if the page is still working, I have no delay in getting a response if I submit the page again. I'm worried that my users will think that the page isn't complete since the jsp returns so quickly, yet the page appears to be working. I've seen some similar issues on this board and was wondering if anyone had any suggestions. Thanks for any help, K Lewis
RE: Browser continues to run after response received
Only because we had a different browser problem that was fixed by the latest IE Service Pack release, I thought I mention that IE 5.5 SP2 is the latest version. In case you're not running the latest, it might be worth verifying your problem against it. Jay -Original Message- From: Kia Lewis [mailto:[EMAIL PROTECTED]] Sent: Monday, October 01, 2001 1:35 PM To: '[EMAIL PROTECTED]' Subject: Browser continues to run after response received Hi, I hope I'm posting to the correct list, but here goes! I'm running Tomcat 3.2.3 standalone with IE 5.5 and I'm using Struts 1.0. I have a jsp which contains 2 IFrames which also contain jsp's. I use a javascript to submit one of the pages in the IFrame. The iframe page calls an Action object which returns my response. The response gets returned correctly with no delay, but my browser keeps running as if it is still waiting on a response. It will report Done in the status bar and the little icon at the top left hand corner of the screen stops turning, but the blue bar at the bottom of the screen still shows that its working. This hanging doesn't happen every single time I submit the page, but it does happen about 30% of the time. Even if the page is still working, I have no delay in getting a response if I submit the page again. I'm worried that my users will think that the page isn't complete since the jsp returns so quickly, yet the page appears to be working. I've seen some similar issues on this board and was wondering if anyone had any suggestions. Thanks for any help, K Lewis -- Jay Burgess Delano Technology Corporation mailto:[EMAIL PROTECTED] (913) 438-9444 x154
RE: Browser continues to run after response received
Unfortunately this isn't the case. I'm using IE 5.5 with SP2. -Original Message- From: Jay Burgess [mailto:[EMAIL PROTECTED]] Sent: Monday, October 01, 2001 3:32 PM To: [EMAIL PROTECTED] Subject: RE: Browser continues to run after response received Only because we had a different browser problem that was fixed by the latest IE Service Pack release, I thought I mention that IE 5.5 SP2 is the latest version. In case you're not running the latest, it might be worth verifying your problem against it. Jay -Original Message- From: Kia Lewis [mailto:[EMAIL PROTECTED]] Sent: Monday, October 01, 2001 1:35 PM To: '[EMAIL PROTECTED]' Subject: Browser continues to run after response received Hi, I hope I'm posting to the correct list, but here goes! I'm running Tomcat 3.2.3 standalone with IE 5.5 and I'm using Struts 1.0. I have a jsp which contains 2 IFrames which also contain jsp's. I use a javascript to submit one of the pages in the IFrame. The iframe page calls an Action object which returns my response. The response gets returned correctly with no delay, but my browser keeps running as if it is still waiting on a response. It will report Done in the status bar and the little icon at the top left hand corner of the screen stops turning, but the blue bar at the bottom of the screen still shows that its working. This hanging doesn't happen every single time I submit the page, but it does happen about 30% of the time. Even if the page is still working, I have no delay in getting a response if I submit the page again. I'm worried that my users will think that the page isn't complete since the jsp returns so quickly, yet the page appears to be working. I've seen some similar issues on this board and was wondering if anyone had any suggestions. Thanks for any help, K Lewis -- Jay Burgess Delano Technology Corporation mailto:[EMAIL PROTECTED] (913) 438-9444 x154
Re: Using jsp / servlets for main web site?
I just started over from scratch and have everything working right except for c2. I've google'd the 'net as much as I can google and haven't found a solution. I've tried several things people have done to get it working (like below), but to no avail: Here's what I've done so far (from the install files to a few suggestions. 1. Install tomcat and set $CATALINA_HOME to the installation point. 2. Same with c2, except with $COCOON2_HOME. 3. coped the xerces-*.jar from $COCOON2_HOM/lib to $CATALINA_HOME/server/lib 4. Uncommented the bit about using XercesParser in $CATALINE_HOME/webapps/cocoon/cocoon.xconf. 5. ./build.sh -Dinclude.webapp.libs=yes -Dinstall.war=$CATALINA_HOME/webapps 6. Restarted tomcat Everything talks on port 8080 (still haven't gotten SSL to work on 8443, but that's a different subject) fine: servlets run and jsp pages are parsed. I can even access with the /manager/ context with my changes to the tomcat-users.xml file, but I still can't access /cocoon. Same error: The sitemap handler's sitemap is not available. ... Does anyone else remember getting this and what they did to fix it? I can't find anymore ideas. TIA Heath Stewart Systems Administrator / Developer EsotericRealm http://www.esotericrealm.com/~hstewart/
Re: Using jsp / servlets for main web site?
BTW, here's the log message I get over and over again: 2001-10-01 14:56:09 DEBUG (2001-10-01) 14:56.09:234 [] (/cocoon/docs/s amples/referer/a/a.xml) HttpProcessor[8080][0]/DefaultLogKitManager: Logger for ca tegory root.xslt returned Heath Stewart Systems Administrator / Developer EsotericRealm http://www.esotericrealm.com/~hstewart/ - Original Message - From: David Smith [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, October 01, 2001 1:33 PM Subject: Re: Using jsp / servlets for main web site? The build command looks right. It's the same one I used. The only weirdness I experienced is that Cocoon 2 (beta 2 at least) would core dump the JVM with a seg fault. I fixed that with 'ulimit -s 2048' because Sun JDK 1.3.1 has a bug in it when stack size is set to 'unlimited' under linux. Sun's bug parade has a write-up for it. As I understand it, it's fixed in jdk 1.4, but that's still beta. I'm not well enough versed in how mod_webapp works to know what it grabs and doesn't grab. Looks like any request for the folder of an app is grabbed and sent to the app for processing. That may be based on what's in web.xml though. Someone with detailed knowledge of mod_webapp internals would have to answer that one. I do know in the case of Cocoon2, all requests with the path described in the WebAppDeploy directive are sent to Cocoon2 for processing. Example: httpd.conf: WebAppDeploy cocoon tc_connect /xml_test URL: http://localhost/xml_test/something.gif is sent to the cocoon context Mounting the root of the site to cocoon would send the entire site to Cocoon for processing. Then it's up to the sitemap.xmap to figure out how files are handled. Try deploying Cocoon2 to something like /xml_test instead and try it out. If that works, then you're probably a lot closer to the answer. --David Smith On Monday 01 October 2001 12:51 pm, you wrote: Out of the box, huh? I untar'ed tomcat (already have jdk 1.3.1 and jsse 1.0.2 installed) and got that setup and tested it - no problems. I untar'ed cocoon2 (latest) and did: ./build.sh --Dinclude.webapps.libs=yes -Dinstall.war=$CATALINA_HOME/webapps install This worked okay. I restarted tomcat and got the message I posted before. Did I do everything right? I also used mod_webapp.so to connect apache and tomcat. It almost works (it connects, that is). The examples warpconnection reports that it isn't deployed yet (even though I followed INSTALL.txt) but the cocoon connection I made using the .war file starts sending everything but xml files as octet streams. XML files is just returns the error in xhtml form (though not proper xhtml) - the same error as before. So, it's actually doing something, just not the right way. Should cocoon let regular HTML and PHP files be parsed by / sent from the server as normal and only try to parse xml files? If not, I'll have to unmount cocoon from apache's document root (/) and put it somewhere else (like /xml or something). TIA Heath Stewart Systems Administrator / Developer EsotericRealm http://www.esotericrealm.com/~hstewart/ - Original Message - From: David Smith [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, October 01, 2001 10:43 AM Subject: Re: Using jsp / servlets for main web site? Is this on the default install of Cocoon2 (no edits, mods, etc, ...)?? If so, I got it to run straight out of the box with out a problem. I'm using RC1 at the moment with TC4, Apache 1.3.19, and mod_webapp.so under Mandrake 8. Presently in a development environment until I can learn enough about the sitemap.xmap files to be dangerous, but still I've seen your error message before, but am having trouble remembering what was done to fix it. Try doing a search on Google for your exact error message and see what you get. On connecting Apache and Tomcat, you have two options -- mod_webapp.so and mod_jk.so. Mod_jk.so is the older implementation and very stable for production use. Should be easily findable on one the Jakarta website. Mod_webapp.so is a very new package and I'm not really sure about it's release status at the moment. Pier Fumagalli is one of the major people working on that project and I haven't seen much of any posts from him in a while. Last I knew there were one or two major bugs still in need of resolution before 1.0 release. Good luck! --David Smith On Monday 01 October 2001 10:05 am, you wrote: I've been running apache for years and want to move to an xml-based operation. I found cocoon sported the best features (without having to move to IIS - God help us). I got Jakarta / Tomcat installed and running fine but cocoon2 always bombs out saying, The sitemap handler's sitemap is not available... but there is a sitemap file in the /cocoon/ URI. Anyway, my real
Re: Using jsp / servlets for main web site?
OK, there should be more info in the logs at webapps/cocoon/WEB-INF/logs. Check it out and maybe post relevant parts to the cocoon-users list to see what they say since this isn't a Tomcat issue any more. Plus that list probably has one or two of the developers around who can offer expert advice. --David Smith On Monday 01 October 2001 03:37 pm, you wrote: I just started over from scratch and have everything working right except for c2. I've google'd the 'net as much as I can google and haven't found a solution. I've tried several things people have done to get it working (like below), but to no avail: Here's what I've done so far (from the install files to a few suggestions. 1. Install tomcat and set $CATALINA_HOME to the installation point. 2. Same with c2, except with $COCOON2_HOME. 3. coped the xerces-*.jar from $COCOON2_HOM/lib to $CATALINA_HOME/server/lib 4. Uncommented the bit about using XercesParser in $CATALINE_HOME/webapps/cocoon/cocoon.xconf. 5. ./build.sh -Dinclude.webapp.libs=yes -Dinstall.war=$CATALINA_HOME/webapps 6. Restarted tomcat Everything talks on port 8080 (still haven't gotten SSL to work on 8443, but that's a different subject) fine: servlets run and jsp pages are parsed. I can even access with the /manager/ context with my changes to the tomcat-users.xml file, but I still can't access /cocoon. Same error: The sitemap handler's sitemap is not available. ... Does anyone else remember getting this and what they did to fix it? I can't find anymore ideas. TIA Heath Stewart Systems Administrator / Developer EsotericRealm http://www.esotericrealm.com/~hstewart/
Default ContentType for JSP
Hi, [FreeBSD/Apache 1.3.20/Tomcat 4.0] How to set a kinda default Content Type of response in a JSP page ? I am not talknig about META ... content type setting, wich is an HTML issue. JSP-servlet translation always result in a servlet code with: ... response.setContentType(text/html;charset=ISO-8859-1); ... The only workaround I found is to use: ... response.setContectType(blah-blah); ... in the begining of JSP page, but I find this very annoying. thank you -- Plamen D. Petkov ICQ#2214327 [EMAIL PROTECTED] http://www.bgstore.com
Help, anyone have a set-up up for Tomcat
Hi, I distribute Tomcat with my apps. I am trying to create a set-up for Tomcat. I need something better than the zip file. Anyone have a set-up that installs the jdk/jre and Tomcat, adds the environment variables etc. Thanks for any help. Alex Colic
Is tomcat4 and jdk1.4beta2 okay?
I recently upgraded my JDK to use jdk1.4 beta 2 and am running tomcat 4.0 the most recent release driver and I am haviing trouble running any of the shipped samples (like numberguess jsp). The error I get is just below, is this a known problem? A Servlet Exception Has Occurred Root Cause: java.lang.NoClassDefFoundError: sun/tools/javac/Main at org.apache.jasper.compiler.SunJavaCompiler.compile(SunJavaCompiler.java:128) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:271) at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:543) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspSe rvlet.java:176) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja va:188) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473) at javax.servlet.http.HttpServlet.service(HttpServlet.java:1264) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:243) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja va:215) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase .java:472) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:2 46) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2366) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164 ) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:462) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java :163) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java: 1005) at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1098 ) at java.lang.Thread.run(Unknown Source)
Hekp regarding Heap Settings
Hi Everyone, Gentlemen i need some help regarding the Heap seetings in JVM. The environment is Linux 7-Tomcat -JDK1.3 .Right now the Heap settings are set to default)i.e. Minimim=1 and Max=64MB. How do we change the settings ,i know its using JVM Commands but where shd we make the changes ?? Thanks in advance ! Sam Mohbe
Re: Tag Problems when Compiling Against New Servlet.jar
These are exactly the errors you would get if you didn't have servlet.jar in your compile classpath at all -- double check your CLASSPATH to ensure that you're pointing at the right place. Craig On Mon, 1 Oct 2001, Hunter Hillegas wrote: Date: Mon, 01 Oct 2001 12:15:12 -0700 From: Hunter Hillegas [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: Tomcat User List [EMAIL PROTECTED] Subject: Tag Problems when Compiling Against New Servlet.jar I just started compiling my servlet/taglibs against the servlet.jar included with Tomcat 4. Now my taglibs are spouting a TON of errors when they used to cleanly compile... Some are like this: classes/com/guerrillabroadcasting/groundswell/tags/IterateTag.java:22: cannot resolve symbol symbol : variable SKIP_BODY location: class com.guerrillabroadcasting.groundswell.tags.IterateTag return SKIP_BODY; -- and -- classes/com/guerrillabroadcasting/groundswell/tags/IterateTag.java:25: cannot resolve symbol symbol : variable pageContext location: class com.guerrillabroadcasting.groundswell.tags.IterateTag pageContext.setAttribute(name, iterator.next()); Plus lots more... A quick look at the spec and I don't think all these things have changed... What's going on here? Hunter
RE: has anybody mod_webapp.dll ? Me too!!
Why not take a look at mod_jk with TC 4.0 ? http://jakarta.apache.org/~hgomez/ajp13-tc4.0/ - Henri Gomez ___[_] EMAIL : [EMAIL PROTECTED](. .) PGP KEY : 697ECEDD...oOOo..(_)..oOOo... PGP Fingerprint : 9DF8 1EA8 ED53 2F39 DC9B 904A 364F 80E6 -Original Message- From: Haller, Joe [mailto:[EMAIL PROTECTED]] Sent: Monday, October 01, 2001 7:26 PM To: '[EMAIL PROTECTED]' Subject: RE: has anybody mod_webapp.dll ? Me too!! In the absence of a mod_webapp.dll for Win32 platforms, Does anyone know about the performance or limitations of using Tomcat 4.0 in stand-alone mode? -Original Message- From: Haller, Joe [mailto:[EMAIL PROTECTED]] Sent: Monday, October 01, 2001 8:38 AM To: '[EMAIL PROTECTED]' Subject: RE: has anybody mod_webapp.dll ? Me too!! Yes, I am also in need of mod_webapp.dll. Does anyone know if there is an expectation for this to be posted? J. Haller -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Monday, October 01, 2001 6:12 AM To: Tomcat-User Subject: has anybody mod_webapp.dll ? Hi I don't have Visual C++ to compile it, maybe could somebody send me mod_webapp.dll if he has? There is no mod_webapp for Windows on apache server now. Mit freundlichen Grüßen Christian Schildt Diplom-Betriebswirt (FH) Softwaredeveloper Phone: 089/89013023 Mailto: [EMAIL PROTECTED] ELAXY AG Gutenbergstr. 5 D-82178 Puchheim bei München Phone: +089/8901300 Fax: +089/89013089 www.elaxy.com
tomcat 4 jsvc
Does anybody knows how to start tomcat 4 as non root on port 80 under linux using jsvc ? I get an error code 2 Dom
RE: Tomcat 3.2.2 crashes with JDBC
Hello all: This is a follow up to the problem I was having with MS access driver and Java. I just migrated my database from Access to MS SQL 2000 and stress tested the system. I am still getting an error which causes tomcat to crash. I dont quite know how to analyse the error file language! so I am attaching a copy of the error file tomcat produces before quitting. Can someone take a look at it and please tell me if it is a problem with the driver...or a problem with my crappy code? Thanks a lot Prashanth -Original Message- From: Randy Layman [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 27, 2001 7:01 AM To: [EMAIL PROTECTED] Subject: RE: Tomcat 3.2.2 crashes with JDBC Its also considered experimental by Sun. (They mention this in one of the closed bug reports about it - basically they know that the bridge isn't thread safe and they don't want to fix it). Randy -Original Message- From: Artigas, Ricardo Y. [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 26, 2001 9:02 PM To: [EMAIL PROTECTED] Subject: RE: Tomcat 3.2.2 crashes with JDBC Are you using the JDBC-ODBC bridge packaged with jdk? If so, it may be the cause of the problem. Try using another driver (type 3 or 4?). I've learned that the JDBC-ODBC bridge is not suggested for production use. HTH. :~) Ricky Y. Artigas Analyst/Programmer / Database Administrator Information Technology Division Easycall Communications Phils., Inc. --- IMPORTANT NOTICE: This message (and any attachment hereto) may contain privileged and/or confidential information specific to EasyCall. If you are not the intended addressee indicated in this message, you may not copy or disseminate this message (or any attachment hereto) to anyone. Instead, please destroy this message (and any attachment hereto), and kindly notify the sender by reply email. Any information in this message (and any attachment thereto) that do not relate to the official business of EasyCall shall be understood as neither given nor endorsed by the company. -Original Message- From: Vara Prashanth [SMTP:[EMAIL PROTECTED]] Sent: Thursday, September 27, 2001 7:22 AM To: [EMAIL PROTECTED] Subject:Tomcat 3.2.2 crashes with JDBC Hello all: I am facing a problem when I use JDBC to query a microsoft access database on a win2K advanced server! I was testing the system for stability using JMeter which essentially passes requests to a servlet. The servlet in turn queries an access database and responds. When the number of threads increases I get an error while closing the DB connection and Tomcat crashes producing a log file. I will be happy to send out the log file if required. Can you please help me solve the problem? Is this a problem with the access driver or with access or with my servlet or tomcat(although very unlikely!) Thanks in advance Prashanth _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com hs_err_pid2132.log
RE: tomcat 4 jsvc
Typo : s/roto/root/ it's root not roto :) - Henri Gomez ___[_] EMAIL : [EMAIL PROTECTED](. .) PGP KEY : 697ECEDD...oOOo..(_)..oOOo... PGP Fingerprint : 9DF8 1EA8 ED53 2F39 DC9B 904A 364F 80E6 -Original Message- From: GOMEZ Henri [mailto:[EMAIL PROTECTED]] Sent: Monday, October 01, 2001 11:55 PM To: [EMAIL PROTECTED] Subject: RE: tomcat 4 jsvc You should be roto to launch anything listening on port less than 1024. You could try to use sudo or maybe switch to port 8080, as it's by default - Henri Gomez ___[_] EMAIL : [EMAIL PROTECTED](. .) PGP KEY : 697ECEDD...oOOo..(_)..oOOo... PGP Fingerprint : 9DF8 1EA8 ED53 2F39 DC9B 904A 364F 80E6 -Original Message- From: Dom [mailto:[EMAIL PROTECTED]] Sent: Monday, October 01, 2001 11:49 PM To: [EMAIL PROTECTED] Subject: tomcat 4 jsvc Does anybody knows how to start tomcat 4 as non root on port 80 under linux using jsvc ? I get an error code 2 Dom
PLEASE HELP: HTTP Forwarding or proxy??
My system is as below: Internet - Machine1 - Firewall - Machine2 -Machine2 needs to be behind the firewall because it accepts socket communictions. -Machine2 ALSO runs a webserver that needs to be accessed from the Internet. THE PROBLEM - A machine on the Internet CANNOT see Machine2. BUT it can see Machine1. POSSIBLE SOLUTION? - If I use RequestDispatch.forward() that forwards requests to Machine2; will the response come directly from Machine2 OR will it come from Machine2, be passed through Machine1 and then reach the browser from the Internet? POSSIBLE IMPLEMENTATION 1- If the above solution is to write a servlet that listens and simply forwards requests, it will involve setting up a servlet enabled webserver on Machine1. Will this work? How do I write a servlet that maps to the URL: http://IP_ADDRESS/ and takes EVERY request coming to that IP?? and then converts that IP as below. How can I have a servlet that just converts the request - http://GLOBAL_IP_MACHINE1/index.html http://GLOBAL_IP_MACHINE1/servlet/test to http://INTERNAL_IP_MACHINE2/index.html http://INTERNAL_IP_MACHINE2/servlet/test Does anyone have any advice in this regard? Please advise! Cheers. Carlos
Re: mod_webapp deploy
Hi Manri !! So the answer was only to embed my virtual host and context in : Engine className=org.apache.catalina.connector.warp.WarpEngine name=Apache debug=0 It works now !! how did you gess that ??? Dom - Original Message - From: Manri Offermann [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, September 29, 2001 1:46 PM Subject: Re: mod_webapp deploy I have been struggling with this too. It really deserves some documentation: - get the source of mod_webapp.so and compile it. this is how I configured it server.xml: Service name=Tomcat-Apache Connector className=org.apache.catalina.connector.warp.WarpConnector port=8008 minProcessors=5 maxProcessors=75 enableLookups=true acceptCount=10 debug=0/ Engine className=org.apache.catalina.connector.warp.WarpEngine name=Apache debug=0 Logger className=org.apache.catalina.logger.FileLogger prefix=apache. suffix=.txt timestamp=true/ Realm className=org.apache.catalina.realm.MemoryRealm / . Host name=dell debug=0 appBase=webapps unpackWARs=true Logger className=org.apache.catalina.logger.FileLogger directory=logs prefix=localhost_log. suffix=.txt timestamp=true/ Context path= docBase=/home/eastbeem/www debug=0 reloadable=true/ /Host /Engine /Service httpd.conf: == LoadModule webapp_module /usr/lib/apache/mod_webapp.so AddModule mod_webapp.c NameVirtualHost 192.168.123.33 VirtualHost 192.168.123.33 ServerName dell DocumentRoot /home/eastbeem/www WebAppConnection warpConnection warp localhost:8008 WebAppDeploy /home/eastbeem/www warpConnection / Location /WEB-INF/ AllowOverride None deny from all /Location /VirtualHost hope this helps, manri - Original Message - From: Dom [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, September 29, 2001 7:28 PM Subject: mod_webapp deploy I'm trying to use Tomcat 4 with Apache 1.3 and mod_webapp Is there somwhere some howto or doc about that subject, I think it deserves more than 3 lines of rematks in server.xml. I try to use a web app in a virtual host, but deploy gives an error, as it tries to deploy it in $TOMCAT_HOME/webapps instead of the virtual host appBase and context docBase
Fw: Tomcat 4 Apache Windows2000
Anyone know where a person could find a copy of libapr.dll. The documentation says that I need it to load mod_webapp.so. It is probably right as I get an error loading it now. The following is from the install.txt file: For Windows your LoadModule directive looks like: LoadModule webapp_module modules/mod_webapp.so Another note for Windows: copy also the libapr.dll file with the module, or your Apache 1.3 web server will refuse to start reporting that the WebApp module cannot be loaded. Steve
Tomcat 4.0 specification compliance
Hi There, How compliant is Tomcat 4.0 with the Servlet 2.3 and JSP 1.2 specifications? the Jakarta site specifies that: Version 4.0 implements the final released versions of the Servlet 2.3 and JSP 1.2 specifications I guess that I am wondering at the use of the wording implements I have also been looking at the JRun site and they use 2-3 words to describe their adherence to the specifications (implements, supports and I think uses) and we have had issues using some of the features of the specification with JRun. Thanks Eric Wright, Programmer / Analyst Vivid Solutions Inc. INTERNET : [EMAIL PROTECTED]
Taglibs Jasper CompileException
I am getting a weird exception message when I try to use a taglib. I hope somebody reading this forum can enlighten me. This is my first foray into using taglibs. I have a JSP which has the following lines of code in place to use my taglib: %@ taglib uri=/WEB-INF/errorMessages-taglib.tld prefix=errorMessages % errorMessages:message key=all / I have the taglib descriptor file under the web application's WEB-INF directory named errorMessages-taglib.tld and it looks like this: - ?xml version=1.0 encoding=ISO-8859-1 ? !DOCTYPE taglib PUBLIC -//Sun Microsystems, Inc.//DTD JSP Tag Library 1.1//EN http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_1.dtd; taglib tlibversion1.0/tlibversion jspversion1.1/jspversion shortnameerrorMessages/shortname urn/urn infoA tag library to display error messages/info tag namemessage/name tagclassdataview.taghandler.ErrorMessagesTagHandler/tagclass infoOutputs an error message corresponding to the key provided, if present/info bodycontentEMPTY/bodycontent attribute namekey/name requiredfalse/required /attribute /tag /taglib -- I have included a taglib entry in my web.xml which looks like: taglib taglib-urierrorMessages/taglib-uri taglib-location/WEB-INF/errorMessages-taglib.tld/taglib-location /taglib Unfortunately I am getting a Jasper compile exception when I attempt to load the page, telling me that it can't open the tld and that I need to terminate a description element, even though there is no description element in the tld (included above). Below is the exception I get: Internal Servlet Error: org.apache.jasper.compiler.CompileException: /var/tomcat/webapps/dataview/Select.jsp(8,4) Unable to open taglibrary /WEB-INF/errorMessages-taglib.tld : Parse Error in the tag library descriptor: Next character must be terminating element description. at org.apache.jasper.compiler.JspParseEventListener.handleDirective(JspParseEventListener.java) at org.apache.jasper.compiler.DelegatingListener.handleDirective(DelegatingListener.java) at org.apache.jasper.compiler.Parser$Directive.accept(Parser.java) at org.apache.jasper.compiler.Parser.parse(Parser.java) at org.apache.jasper.compiler.Parser.parse(Parser.java) at org.apache.jasper.compiler.Parser.parse(Parser.java) at org.apache.jasper.compiler.Compiler.compile(Compiler.java) at org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java) at org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java) .. Can anybody see what it is that I'm doing wrong ? I thought that I had followed the examples in the references I've looked at but obviously something's not working as advertised. However the exception message doesn't make any sense in the context (though this is unfortunately typical of most exception messages), and there is nothing which I can see which relates to my tag library descriptor, so I am thinking that perhaps this exception is happening someplace else. In any event I'm clueless as to how I might proceed, I've tried several different approaches (moving the tld to a different directory, using a different or no taglib in web.xml, etc.) but with no luck at all. Thanks in advance for any suggestions or solutions. -James
RE: I Am So Dumb I Cannot Get Tag Libs to Work
Do you have your web.xml entries right? Try isolating the problem, specify /WEB-INF/gs_tags.tld for the uri attribute in the taglib directive and see what happens. Hope this helps. -Velmurugan Periasamy http://www.aegis.net -Original Message- From: Hunter Hillegas [mailto:[EMAIL PROTECTED]] Sent: Monday, October 01, 2001 6:31 PM To: Tomcat User List Subject: I Am So Dumb I Cannot Get Tag Libs to Work I'm trying to deploy my first tags... My WAR deploys correctly... I have the .tld under WEB-INF and it is named gs_tags.tld My test JSP page has this: %@ taglib uri=gs_tags prefix=gs % When I try to access the page I get: org.apache.jasper.JasperException: File /gs_tags not found So obviously Tomcat can't find the .tld file. All the examples I find reference remote URI's for the .tld files. What am I doing wrong? Hunter
RE: I Am So Dumb I Cannot Get Tag Libs to Work
If you are using JSP 1.2, the tags should be tlib-version and jsp-version instead of tlibversion and jspversion (these are JSP 1.1 tags) -Velmurugan Periasamy. http://www.aegis.net -Original Message- From: Hunter Hillegas [mailto:[EMAIL PROTECTED]] Sent: Monday, October 01, 2001 6:44 PM To: Tomcat User List Subject: Re: I Am So Dumb I Cannot Get Tag Libs to Work Ah Progress. That worked... Still, now it looks like there is trouble parsing my .tld... It claims that: XML parsing error on file /WEB-INF/gs_tags.tld: (line 10, col -1): Element taglib does not allow tlibversion here. My .tld looks like this: ?xml version=1.0 encoding=ISO-8859-1 ? !DOCTYPE taglib PUBLIC -//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2//EN http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_2.dtd; !-- a tag library descriptor -- taglib !-- The version number of this tag library -- tlibversion1.0/tlibversion !-- The JSP specification version required to function -- jspversion1.2/jspversion snip .. /taglib According to my books on taglibs, this should be valid, no? From: Vel Periasamy [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] Date: Mon, 1 Oct 2001 18:32:49 -0400 To: '[EMAIL PROTECTED]' [EMAIL PROTECTED] Subject: RE: I Am So Dumb I Cannot Get Tag Libs to Work Do you have your web.xml entries right? Try isolating the problem, specify /WEB-INF/gs_tags.tld for the uri attribute in the taglib directive and see what happens. Hope this helps. -Velmurugan Periasamy http://www.aegis.net -Original Message- From: Hunter Hillegas [mailto:[EMAIL PROTECTED]] Sent: Monday, October 01, 2001 6:31 PM To: Tomcat User List Subject: I Am So Dumb I Cannot Get Tag Libs to Work I'm trying to deploy my first tags... My WAR deploys correctly... I have the .tld under WEB-INF and it is named gs_tags.tld My test JSP page has this: %@ taglib uri=gs_tags prefix=gs % When I try to access the page I get: org.apache.jasper.JasperException: File /gs_tags not found So obviously Tomcat can't find the .tld file. All the examples I find reference remote URI's for the .tld files. What am I doing wrong? Hunter
tomcat4 and JDBCRealm problem
Hi all, I have tomcat4 set up on my winnt machine and it works fine with basic Memory realm authentication. I followed the steps in setting up a JDBCRealm using mysql and I get the following error when starting Tomcat: Starting service Tomcat-Standalone Apache Tomcat/4.0 Catalina.start: LifecycleException: Exception opening database connection: java.sql.SQLException: org.gjt.mm.mysql.Dri ver LifecycleException: Exception opening database connection: java.sql.SQLException: org.gjt.mm.mysql.Driver at org.apache.catalina.realm.JDBCRealm.start(JDBCRealm.java:615) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1108) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:307) at org.apache.catalina.core.StandardService.start(StandardService.java:388) at org.apache.catalina.core.StandardServer.start(StandardServer.java:505) at org.apache.catalina.startup.Catalina.start(Catalina.java:776) at org.apache.catalina.startup.Catalina.execute(Catalina.java:681) at org.apache.catalina.startup.Catalina.process(Catalina.java:179) at java.lang.reflect.Method.invoke(Native Method) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:218) - Root Cause - java.sql.SQLException: org.gjt.mm.mysql.Driver at org.apache.catalina.realm.JDBCRealm.open(JDBCRealm.java:538) at org.apache.catalina.realm.JDBCRealm.start(JDBCRealm.java:613) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1108) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:307) at org.apache.catalina.core.StandardService.start(StandardService.java:388) at org.apache.catalina.core.StandardServer.start(StandardServer.java:505) at org.apache.catalina.startup.Catalina.start(Catalina.java:776) at org.apache.catalina.startup.Catalina.execute(Catalina.java:681) at org.apache.catalina.startup.Catalina.process(Catalina.java:179) at java.lang.reflect.Method.invoke(Native Method) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:218) I've tried putting the mysql jar in c:\javalib and also under c:\tomcat4.0\lib but no luck. This is my server.xml file currently: !-- Because this Realm is here, an instance will be shared globally -- !-- Realm className=org.apache.catalina.realm.MemoryRealm / -- !-- Replace the above Realm with one of the following to get a Realm stored in a database and accessed via JDBC -- Realm className=org.apache.catalina.realm.JDBCRealm debug=99 driverName=org.gjt.mm.mysql.Driver connectionURL=jdbc:mysql://localhost:3306/tomcatusers?user=root userTable=users userNameCol=user_name userCredCol=user_pass userRoleTable=user_roles roleNameCol=role_name / I can see the tables I have setup on my nt box in mysql. I can query those tables using mysql. Any help is appreciated. Thanks, Bob
RE: Tomcat 3.2.2 crashes with JDBC
Hello all: This is a follow up to the problem I was having with MS access driver and Java. I just migrated my database from Access to MS SQL 2000 and stress tested the system. I am still getting an error which causes tomcat to crash. I dont quite know how to analyse the error file language! so I am attaching a copy of the error file tomcat produces before quitting. Can someone take a look at it and please tell me if it is a problem with the driver...or a problem with my crappy code? Thanks a lot Prashanth Here's the error file.. An unexpected exception has been detected in native code outside the VM. Unexpected Signal : EXCEPTION_ACCESS_VIOLATION occurred at PC=0x41166aba Function name=SQLGetData Library=C:\WINNT\System32\SQLSRV32.dll Current Java thread: at sun.jdbc.odbc.JdbcOdbc.getDataInteger(Native Method) at sun.jdbc.odbc.JdbcOdbc.SQLGetDataInteger(JdbcOdbc.java:3165) at sun.jdbc.odbc.JdbcOdbcResultSet.getDataInteger(JdbcOdbcResultSet.java:5338) at sun.jdbc.odbc.JdbcOdbcResultSet.getInt(JdbcOdbcResultSet.java:555) at sun.jdbc.odbc.JdbcOdbcConnection.buildTypeInfo(JdbcOdbcConnection.java:1474) at sun.jdbc.odbc.JdbcOdbcConnection.initialize(JdbcOdbcConnection.java:379) at sun.jdbc.odbc.JdbcOdbcDriver.connect(JdbcOdbcDriver.java:163) at java.sql.DriverManager.getConnection(DriverManager.java:517) at java.sql.DriverManager.getConnection(DriverManager.java:199) at dlnetSearchInfc.dBMgmFiles.processdBCmds.initiateDatabase(processdBCmds.java :21) at dlnetSearchInfc.searchProcess.processSearchResults.performSingleWildStringSe arch(processSearchResults.java:119) at dlnetSearchInfc.searchProcess.processSearchResults.getResultDocs(processSear chResults.java:41) at dlnetSearchInfc.searchProcess.processSearchString.getSearchPhraseResult(proc essSearchString.java:576) at dlnetSearchInfc.searchProcess.processSearchString.searchCorpus(processSearch String.java:74) at dlnetSearchInfc.dlnetSearch.searchButtonClicked(dlnetSearch.java:35) at dlnetSearchInfc.Search.doGet(Search.java:78) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405) at org.apache.tomcat.core.Handler.service(Handler.java:287) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79 7) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743) at org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection (Ajp12ConnectionHandler.java:166) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501) at java.lang.Thread.run(Thread.java:484) Dynamic libraries: 0x0040 - 0x00405000 c:\jdk1.3.1\bin\java.exe 0x77F8 - 0x77FFB000 C:\WINNT\System32\ntdll.dll 0x77DB - 0x77E0B000 C:\WINNT\system32\ADVAPI32.dll 0x77E8 - 0x77F35000 C:\WINNT\system32\KERNEL32.dll 0x77D4 - 0x77DAC000 C:\WINNT\system32\RPCRT4.dll 0x7800 - 0x78046000 C:\WINNT\system32\MSVCRT.dll 0x6D42 - 0x6D4EF000 c:\jdk1.3.1\jre\bin\hotspot\jvm.dll 0x77E1 - 0x77E74000 C:\WINNT\system32\USER32.dll 0x77F4 - 0x77F7C000 C:\WINNT\system32\GDI32.DLL 0x7757 - 0x775A C:\WINNT\System32\WINMM.dll 0x6D22 - 0x6D227000 c:\jdk1.3.1\jre\bin\hpi.dll 0x6D3B - 0x6D3BD000 c:\jdk1.3.1\jre\bin\verify.dll 0x6D25 - 0x6D266000 c:\jdk1.3.1\jre\bin\java.dll 0x6D3C - 0x6D3CD000 c:\jdk1.3.1\jre\bin\zip.dll 0x6D34 - 0x6D348000 C:\jdk1.3.1\jre\bin\net.dll 0x7505 - 0x75058000 C:\WINNT\System32\WSOCK32.dll 0x7503 - 0x75043000 C:\WINNT\System32\WS2_32.DLL 0x7502 - 0x75028000 C:\WINNT\System32\WS2HELP.DLL 0x74FD - 0x74FEF000 C:\WINNT\system32\msafd.dll 0x7501 - 0x75017000 C:\WINNT\System32\wshtcpip.dll 0x785C - 0x785CC000 C:\WINNT\System32\rnr20.dll 0x7798 - 0x779A4000 C:\WINNT\System32\DNSAPI.DLL 0x7734 - 0x77353000 C:\WINNT\System32\iphlpapi.dll 0x7752 - 0x77525000 C:\WINNT\System32\ICMP.DLL 0x7732 - 0x77337000 C:\WINNT\System32\MPRAPI.DLL 0x7515 - 0x7516 C:\WINNT\System32\SAMLIB.DLL 0x7517 - 0x751BF000 C:\WINNT\System32\NETAPI32.DLL 0x77BE - 0x77BEF000 C:\WINNT\System32\SECUR32.DLL 0x751C - 0x751C6000 C:\WINNT\System32\NETRAP.DLL 0x7795 - 0x77979000 C:\WINNT\system32\WLDAP32.DLL 0x77A5 - 0x77B3A000 C:\WINNT\system32\OLE32.DLL 0x779B - 0x77A4B000
i can't connect apache to tomcat 4 :(
I just installed tomcat 4.0 on redhat linux 2.2.16-22, apache 1.3.12, and I can't figure out how to get it connected to apache! it works to browse to kano.net:8080/examples but not to kano.net/examples. help please :) here's server.xml: Server port=8005 shutdown=SHUTDOWN debug=0 [.. standalone stuff ..] Service name=Tomcat-Apache Connector className=org.apache.catalina.connector.warp.WarpConnector port=8008 minProcessors=5 maxProcessors=75 enableLookups=true acceptCount=10 debug=4 / Engine className=org.apache.catalina.connector.warp.WarpEngine name=Apache defaultHost=kano.net debug=4 appBase=webapps Logger className=org.apache.catalina.logger.FileLogger prefix=apache_log. suffix=.txt timestamp=true / Realm className=org.apache.catalina.realm.MemoryRealm / /Engine /Service /Server and here's httpd.conf: [...] LoadModule webapp_module modules/mod_webapp.so [...] AddModule mod_webapp.c [...] VirtualHost 64.0.246.101 ServerName kano.net [...] WebAppConnection infoConnection info WebAppConnection warpConnection warp localhost:8008 WebAppDeploy null infoConnection /webappinfo/ WebAppDeploy examples warpConnection /examples/ /VirtualHost [...] I'm not sure what's happening with it...at all. it just says kano.net/examples is not found (404). i've used tomcat before, just not with apache. :/ thanks for any help anyone can give me. -kl
Coding Tags the Right Way
I have the Manning book, JSP Tag Libraries which I've been using to help develop some of my first tags. For their iterator tags that work with beans, they use a lot of reflection. I've not used reflection much in projects before this but I seem to remember from my education that reflection is a very expensive process... Anyone that has worked with tags have any insight as to how this design could negatively impact performance on the Web app? Hunter
Any reason to use Apache w/ Tomcat for webapp with all dynamic web pages?
If you're committed to a project where virtually all of the pages will be dynamically generated, through JSP most likely, and you're committed to using Tomcat, is there ANY good reason to use Apache, in addition to Tomcat? I surveyed the FAQ, and I didn't notice this question being specifically addressed. AFAIU, Apache is good for serving static pages or resources. If you're only serving dynamic content, it only serves to complicate the deployment, and serves no useful purpose. Can anyone give me any opposing viewpoint, assuming a dynamic webapp with Tomcat? -- === David M. Karr ; Best Consulting [EMAIL PROTECTED] ; Java/Unix/XML/C++/X ; BrainBench CJ12P (#12004)
configuring tomcat/apache
How do i configure apache to dynamically load contexts from tomcat. Regards Chandra
RE: get Servlet Context Name
Hi, Depends on what exactly you need. You could use .getRealPath(/) to get a String like /tomcat/webapps/my-web-app/, then you can parse it to isolate the my-web-app part. Personally, I use a Filter (but load-on-webapp-init Servlet will do) that takes a parameter like webapp=webapp.com and stores it in application (ServletContext) scope so it's available to any Servlet/JSP. Greetings, deacon Marcus -Original Message- From: chiuming [mailto:[EMAIL PROTECTED]] Sent: Tuesday, October 02, 2001 3:19 AM To: [EMAIL PROTECTED] Subject: get Servlet Context Name hi, any way I can get a servlet context ( web application )'s name with in a servlet? on Servlet API 2.2 (not Servlet 2.3) -OR- there is no way to do that? P.S. I am using tomcat... may I access internal tomcat object to achieve that? thanks __ Do You Yahoo!? Listen to your Yahoo! Mail messages from any phone. http://phone.yahoo.com
Re: Any reason to use Apache w/ Tomcat for webapp with all dynamic web pages?
Hey David, Don't know if you remember me from GTE NMO or not... Hope all's well with you and BEST. Apache supports HTTP 1.1 whereas the last I heard, Tomcat was only HTTP 1.0, so each request comes over it's own connection rather than sharing as with Apache. This means that Apache is still a good idea because it serves image files a bit more nicely along with the JSP generated page, and most web sites have a fair amount of image files. Apache is generally more robust and secure having been tested in production environments for a long time, and it will allow you to serve up other kinds of files nicely in the future (PHP, Perl, Python, CGI, etc.), and I'm sure it's SSL is must faster because it's native C code. Tomcat probably uses JSSE, and even Sun doesn't claim it's a production-quality SSL package, though it seems to work well enough for me (I use it for SOAP calls from the client side to our web service). Lastly, I use Apache+modSSL to run on a front-end server with the Tomcat system on a different computer (using NAT and a firewall to limit connections to the app server as through the connector ports). This provides some added security because Tomcat can run on a private network instead of the publicly accessible web server. David - David A. E. Wall Chief Software Architect Yozons, Inc. 724 17th Avenue Kirkland, WA 98033 USA Tel 425.822.4465[EMAIL PROTECTED] Fax 425.827.9415www.yozons.com - Original Message - From: David M. Karr [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, October 01, 2001 6:20 PM Subject: Any reason to use Apache w/ Tomcat for webapp with all dynamic web pages? If you're committed to a project where virtually all of the pages will be dynamically generated, through JSP most likely, and you're committed to using Tomcat, is there ANY good reason to use Apache, in addition to Tomcat? I surveyed the FAQ, and I didn't notice this question being specifically addressed. AFAIU, Apache is good for serving static pages or resources. If you're only serving dynamic content, it only serves to complicate the deployment, and serves no useful purpose. Can anyone give me any opposing viewpoint, assuming a dynamic webapp with Tomcat? -- === David M. Karr ; Best Consulting [EMAIL PROTECTED] ; Java/Unix/XML/C++/X ; BrainBench CJ12P (#12004)
Re: Tomcat 4.0 specification compliance
On Mon, 1 Oct 2001 [EMAIL PROTECTED] wrote: Date: Mon, 1 Oct 2001 15:28:44 -0700 From: [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Tomcat 4.0 specification compliance Hi There, How compliant is Tomcat 4.0 with the Servlet 2.3 and JSP 1.2 specifications? If Tomcat 4 doesn't implement 100% of the MUST features in these specifications, that is a bug that needs to be fixed ASAP. Tomcat 4 is used as the web container portion of the J2EE 1.3 reference implementation, and it passes all the current spec compliance tests. Beyond the required features, Tomcat 4 implements a very large percentage of the optional features - details would depend on which particular feature you are interested in. Craig McClanahan
Re: tomcat4 and JDBCRealm problem
The fact that you are getting a SQLException (rather than a ClassNotFoundException) implies that the problem is *not* in locating the driver - it is in the parameters you are specifying to establish the database connection. Double (and triple) check your values for the connectionName, connectionPassword, and connectionURL parameters, as well as the security permissions you have set up in the MySQL database itself. Craig McClanahan On Mon, 1 Oct 2001, Epling, Bob wrote: Date: Mon, 1 Oct 2001 16:50:41 -0600 From: Epling, Bob [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: tomcat4 and JDBCRealm problem Hi all, I have tomcat4 set up on my winnt machine and it works fine with basic Memory realm authentication. I followed the steps in setting up a JDBCRealm using mysql and I get the following error when starting Tomcat: Starting service Tomcat-Standalone Apache Tomcat/4.0 Catalina.start: LifecycleException: Exception opening database connection: java.sql.SQLException: org.gjt.mm.mysql.Dri ver LifecycleException: Exception opening database connection: java.sql.SQLException: org.gjt.mm.mysql.Driver at org.apache.catalina.realm.JDBCRealm.start(JDBCRealm.java:615) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1108) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:307) at org.apache.catalina.core.StandardService.start(StandardService.java:388) at org.apache.catalina.core.StandardServer.start(StandardServer.java:505) at org.apache.catalina.startup.Catalina.start(Catalina.java:776) at org.apache.catalina.startup.Catalina.execute(Catalina.java:681) at org.apache.catalina.startup.Catalina.process(Catalina.java:179) at java.lang.reflect.Method.invoke(Native Method) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:218) - Root Cause - java.sql.SQLException: org.gjt.mm.mysql.Driver at org.apache.catalina.realm.JDBCRealm.open(JDBCRealm.java:538) at org.apache.catalina.realm.JDBCRealm.start(JDBCRealm.java:613) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1108) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:307) at org.apache.catalina.core.StandardService.start(StandardService.java:388) at org.apache.catalina.core.StandardServer.start(StandardServer.java:505) at org.apache.catalina.startup.Catalina.start(Catalina.java:776) at org.apache.catalina.startup.Catalina.execute(Catalina.java:681) at org.apache.catalina.startup.Catalina.process(Catalina.java:179) at java.lang.reflect.Method.invoke(Native Method) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:218) I've tried putting the mysql jar in c:\javalib and also under c:\tomcat4.0\lib but no luck. This is my server.xml file currently: !-- Because this Realm is here, an instance will be shared globally -- !-- Realm className=org.apache.catalina.realm.MemoryRealm / -- !-- Replace the above Realm with one of the following to get a Realm stored in a database and accessed via JDBC -- Realm className=org.apache.catalina.realm.JDBCRealm debug=99 driverName=org.gjt.mm.mysql.Driver connectionURL=jdbc:mysql://localhost:3306/tomcatusers?user=root userTable=users userNameCol=user_name userCredCol=user_pass userRoleTable=user_roles roleNameCol=role_name / I can see the tables I have setup on my nt box in mysql. I can query those tables using mysql. Any help is appreciated. Thanks, Bob
Re: get Servlet Context Name
On Mon, 1 Oct 2001, chiuming wrote: Date: Mon, 1 Oct 2001 18:19:09 -0700 (PDT) From: chiuming [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: get Servlet Context Name hi, any way I can get a servlet context ( web application )'s name with in a servlet? on Servlet API 2.2 (not Servlet 2.3) There is no such thing as a servlet context name in servlet 2.2. In servlet 2.3, the context name is just a visual prompt for use in deployment tools -- it doesn't have anything at all to do with request processing. What are you trying to accomplish by asking for the name? If you are after the servlet context *path* (i.e. what goes on the front of the URL), you can get that (in either 2.2 or 2.3) by calling request.getContextPath(), but this only works when processing a request, not during the init() method. -OR- there is no way to do that? P.S. I am using tomcat... may I access internal tomcat object to achieve that? thanks Craig McClanahan
Re: Any reason to use Apache w/ Tomcat for webapp with all dynamicweb pages?
On 1 Oct 2001, David M. Karr wrote: Date: 01 Oct 2001 18:20:07 -0700 From: David M. Karr [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Any reason to use Apache w/ Tomcat for webapp with all dynamic web pages? If you're committed to a project where virtually all of the pages will be dynamically generated, through JSP most likely, and you're committed to using Tomcat, is there ANY good reason to use Apache, in addition to Tomcat? Good reasons to use Apache (or any other web server) in conjunction with Tomcat: * If you have Apache already installed, and don't want users to use a non-port-80 URL for JSP/servlet based applications. * If you need other functionality that Apache provides in addition to support for servlets and JSPs that Tomcat provides. * If you are doing *lots* of SSL stuff (current C-based implementations of SSL work faster in Apache, but the gap is narrowing). * If you need to run on port 80 and be non-root (although this is getting addressed in current versions of Tomcat). * If you have lots of static content that can be served from a directory other than the webapp's context path (right now, current Tomcat versions serve static content within the webapp directory faster stand-alone than they do behind Apache). When one or more of these reasons is applicable, definitely use Apache in front of Tomcat. If one of these reasons doesn't apply, then IMHO you are much better served just running Tomcat stand alone. As an extra added bonus, you get to keep all the hair you'd be pulling out trying to configure Apache+Tomcat :-). But, overall, isn't it nice to have a choice? Craig McClanahan
RE: Any reason to use Apache w/ Tomcat for webapp with all dynamicweb pages?
On Mon, 1 Oct 2001, John Dell wrote: Date: Mon, 1 Oct 2001 18:43:55 -0700 From: John Dell [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: RE: Any reason to use Apache w/ Tomcat for webapp with all dynamic web pages? Even in the most dynamic sites, I can't imagine that you don't have gif's, jpg's or png's. Also, hopefully you have linked external stylesheets and perhaps some reuseable javascript that is in a separate file. These items usually are served on most every page because they are related to the header or footer or navigation elements. AFAIK, this is where the advantage of a static page webserver or even a cache appliance comes in handy. Because you reduce the workload of the tomcat server to ~ONLY~ truly dynamic content. Do you have your browser set to cache reasonable amounts of stuff? If so, the performance of serving small amounts of static content (as would be typical of a web app that only used small images for buttons and such) is *totally* irrelevant after the first request for a particular static file. Why? Because the browser will send If-Modified-Since headers with each request for a URL it has in the cache, and Tomcat has the opportunity to answer with a Not Modified response instead of resending the data. Tomcat 4, for example, pulls this particular trick off with zero accesses to the server's disk drive. John Craig McClanahan
Re: Any reason to use Apache w/ Tomcat for webapp with all dynamicweb pages?
On Mon, 1 Oct 2001, David Wall wrote: Apache supports HTTP 1.1 whereas the last I heard, Tomcat was only HTTP 1.0, Tomcat 4 supports HTTP/1.1 in stand-alone mode (including persistent connections). Craig McClanahan
Re: Any reason to use Apache w/ Tomcat for webapp with all dynamic web pages?
* If you have Apache already installed, and don't want users to use a non-port-80 URL for JSP/servlet based applications. Very true, otherwise you need to run Tomcat as root. Also, Apache itself has some nice features, like mod_rewrite that can be helpful to handles changes in structure and such. I guess these days we also need to know if we're talking about the 3.2 or 4.0 versions of Tomcat since there are things like HTTP 1.1 in Tomcat 4.0. I'm still in 3.2 land and investigating whether 3.3 or 4.0 will work better for me in the future. The fear is that 4.0 is not as well tested yet. I also recall that there was (is?) a problem if lots of concurrent requests came in and Tomcat had to service them all using threads, whereas Apache will stop at a maximum rather than continue to try to service. DoS attacks are nasty no matter what, though. Also, if you use tools like WebTrends and such, they all know how to work off of Apache log files, so that format of log message can be quite important to analyze a site's usage, errors and performance. And can you roll log files with Tomcat yet? With Apache you can roll your log files so that they don't just keep getting bigger. David
Re: Any reason to use Apache w/ Tomcat for webapp with all dynamic web pages?
* If you have lots of static content that can be served from a directory other than the webapp's context path (right now, current Tomcat versions serve static content within the webapp directory faster stand-alone than they do behind Apache). Craig, what happens if the images are IN the webapp's context path? Seems like Apache still serves them up without Tomcat, though I don't know if there's a performance hit (like Apache asks Tomcat, tomcat says not found, and then Apache looks for it in its directories) or not. I know that Apache will serve up an image in a path like /app/images/pretty.gif even if /app is mapped to Tomcat (maybe I answered my own question, since I map /app/*.jsp and /app/servlet/* rather than /app/*). David
RE: get Servlet Context Name
could you tell me more how to make a filter? are you meaning init-parameter in web.xml? inorder to call getRealPath(/), I think I must have a request. anyway I can get the path(context) name during servlet init() stage? thanks again. --- Deacon Marcus [EMAIL PROTECTED] wrote: Hi, Depends on what exactly you need. You could use .getRealPath(/) to get a String like /tomcat/webapps/my-web-app/, then you can parse it to isolate the my-web-app part. Personally, I use a Filter (but load-on-webapp-init Servlet will do) that takes a parameter like webapp=webapp.com and stores it in application (ServletContext) scope so it's available to any Servlet/JSP. Greetings, deacon Marcus -Original Message- From: chiuming [mailto:[EMAIL PROTECTED]] Sent: Tuesday, October 02, 2001 3:19 AM To: [EMAIL PROTECTED] Subject: get Servlet Context Name hi, any way I can get a servlet context ( web application )'s name with in a servlet? on Servlet API 2.2 (not Servlet 2.3) -OR- there is no way to do that? P.S. I am using tomcat... may I access internal tomcat object to achieve that? thanks __ Do You Yahoo!? Listen to your Yahoo! Mail messages from any phone. http://phone.yahoo.com __ Do You Yahoo!? Listen to your Yahoo! Mail messages from any phone. http://phone.yahoo.com
Re: Any reason to use Apache w/ Tomcat for webapp with all dynamicweb pages?
On Mon, 1 Oct 2001, David Wall wrote: Date: Mon, 1 Oct 2001 20:18:37 -0700 From: David Wall [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED], David Wall [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Re: Any reason to use Apache w/ Tomcat for webapp with all dynamic web pages? * If you have Apache already installed, and don't want users to use a non-port-80 URL for JSP/servlet based applications. Very true, otherwise you need to run Tomcat as root. Also, Apache itself has some nice features, like mod_rewrite that can be helpful to handles changes in structure and such. I guess these days we also need to know if we're talking about the 3.2 or 4.0 versions of Tomcat since there are things like HTTP 1.1 in Tomcat 4.0. I'm still in 3.2 land and investigating whether 3.3 or 4.0 will work better for me in the future. The fear is that 4.0 is not as well tested yet. If download counts are any indication, 4.0 had more than 5 times as many as 3.3, even before the final release (the ratio is *much* higher now). I also know of lots of other projects that are embedding 4.0 into their environments, but don't personally know of any embedding 3.3 (that is not conclusive, because for obvious reasons I only notice the 4.0 ones, but 4.0's momentum is pretty clear :-). Now that the Servlet 2.3 and JSP 1.2 specs are final, you will also see releases from other containers that support them -- and the new features are very compelling for many application use cases. I also recall that there was (is?) a problem if lots of concurrent requests came in and Tomcat had to service them all using threads, whereas Apache will stop at a maximum rather than continue to try to service. DoS attacks are nasty no matter what, though. Dealing with this is a matter of appropriate configuration, no matter what technology you are using. Also, if you use tools like WebTrends and such, they all know how to work off of Apache log files, so that format of log message can be quite important to analyze a site's usage, errors and performance. And can you roll log files with Tomcat yet? With Apache you can roll your log files so that they don't just keep getting bigger. Tomcat 4 does this too :-). By default, it creates access_log format log files in a format consistent with web analysis software like WebTrends (you can also customize the format like you can with Apache). It also automatically rolls log files on the first request after midnight -- without restarting -- which is better than even Apache can claim. David Craig
Re: Any reason to use Apache w/ Tomcat for webapp with all dynamicweb pages?
On Mon, 1 Oct 2001, David Wall wrote: Date: Mon, 1 Oct 2001 20:26:44 -0700 From: David Wall [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED], David Wall [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Re: Any reason to use Apache w/ Tomcat for webapp with all dynamic web pages? * If you have lots of static content that can be served from a directory other than the webapp's context path (right now, current Tomcat versions serve static content within the webapp directory faster stand-alone than they do behind Apache). Craig, what happens if the images are IN the webapp's context path? Seems like Apache still serves them up without Tomcat, Yes, that's true for many web connector setups. though I don't know if there's a performance hit (like Apache asks Tomcat, tomcat says not found, and then Apache looks for it in its directories) or not. It depends on the programming of the web connector you are using. Of the choices available: * mod_jserv (Tomcat 3.x only) - slower than Tomcat stand-alone * mod_jk (Tomcat 3.x or 4.x) - application dependent, requires significant investment in configuration tuning * mod_webapp (Tomcat 4.x only) - current implementation forwards all requests for static files to Tomcat (and is thus slightly slower than Tomcat stand-alone), but the protocol is designed to take maximum advantage of Apache's ability to serve static content that is not protected by a security contraint or processed by a filter. I know that Apache will serve up an image in a path like /app/images/pretty.gif even if /app is mapped to Tomcat (maybe I answered my own question, since I map /app/*.jsp and /app/servlet/* rather than /app/*). There is ***ABSOLUTELY***, ***POSITIVELY***, no blanket statement about performance of Apache+Tomcat versus Tomcat standalone that is accurate under all circumstances. However, the old conventional wisdom (Apache+Tomcat serves static content from a web app faster than Tomcat standalone) is either inaccurate, or irrelevant, in a rapidlly growing number of use cases. The ***only*** way to find out for sure what works best for you is to try ***your*** application both ways. Don't believe anyone who tells you one way is *always* better or faster. David Craig
RE: get Servlet Context Name
On Mon, 1 Oct 2001, chiuming wrote: Date: Mon, 1 Oct 2001 20:45:19 -0700 (PDT) From: chiuming [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: RE: get Servlet Context Name could you tell me more how to make a filter? are you meaning init-parameter in web.xml? See Chapter 6 of the Servlet 2.3 Specification, available via: http://java.sun.com/products/servlet/download.html There have also been numerous JavaWorld articles (as well as Java Tech Tips on http://developer.java.sun.com) covering filters. Use the search engines on those sites to identify useful articles. inorder to call getRealPath(/), I think I must have a request. Nope .. the ServletContext.getRealPath() will work from an init() method as well. *However*, if your web app is running in a servlet container that runs apss directly from a WAR file (like Tomcat can) or from some other non-filesystem-based architecture (for example, the Oracle container that served its static content from BLOB objects in the database), this call will return null. The portable way to access static resources within your web app is to use the ServletContext.getResource() and ServletContext.getResourceAsStream() methods. See the servlet spec, and the associated JavaDocs, for more info. anyway I can get the path(context) name during servlet init() stage? As I said before, there is no such thing as a context name in Servlet 2.2. What is it that you are trying to accomplish? If you want the context *path*, it is only available during a request. thanks again. Craig
RE: get Servlet Context Name
Have you tried restarting the Apache server ? -Original Message- From: chiuming [mailto:[EMAIL PROTECTED]] Sent: Tuesday, October 02, 2001 5:45 AM To: [EMAIL PROTECTED] Subject: RE: get Servlet Context Name could you tell me more how to make a filter? are you meaning init-parameter in web.xml? inorder to call getRealPath(/), I think I must have a request. anyway I can get the path(context) name during servlet init() stage? thanks again. --- Deacon Marcus [EMAIL PROTECTED] wrote: Hi, Depends on what exactly you need. You could use .getRealPath(/) to get a String like /tomcat/webapps/my-web-app/, then you can parse it to isolate the my-web-app part. Personally, I use a Filter (but load-on-webapp-init Servlet will do) that takes a parameter like webapp=webapp.com and stores it in application (ServletContext) scope so it's available to any Servlet/JSP. Greetings, deacon Marcus -Original Message- From: chiuming [mailto:[EMAIL PROTECTED]] Sent: Tuesday, October 02, 2001 3:19 AM To: [EMAIL PROTECTED] Subject: get Servlet Context Name hi, any way I can get a servlet context ( web application )'s name with in a servlet? on Servlet API 2.2 (not Servlet 2.3) -OR- there is no way to do that? P.S. I am using tomcat... may I access internal tomcat object to achieve that? thanks __ Do You Yahoo!? Listen to your Yahoo! Mail messages from any phone. http://phone.yahoo.com __ Do You Yahoo!? Listen to your Yahoo! Mail messages from any phone. http://phone.yahoo.com ** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses. www.mimesweeper.com **
AW: Tomcat 3.2.2 crashes with JDBC
You are still using the JdbcOdbc bridge to connect to the database. So what others said about the stability of it, is still true, no matter which database you connect to. The cheapest solutions (in terms of license fees) I know: http://www.freetds.org/download.html (Not feature complete) http://www.microsoft.com/sql/downloads/2000/jdbc.asp (Beta, just a few days old) Or have a look for commercial ones: http://industry.java.sun.com/products/jdbc/drivers -Ursprüngliche Nachricht- Von: Vara Prashanth [mailto:[EMAIL PROTECTED]] Gesendet: Dienstag, 2. Oktober 2001 01:11 An: [EMAIL PROTECTED] Betreff: RE: Tomcat 3.2.2 crashes with JDBC Hello all: This is a follow up to the problem I was having with MS access driver and Java. I just migrated my database from Access to MS SQL 2000 and stress tested the system. I am still getting an error which causes tomcat to crash. I dont quite know how to analyse the error file language! so I am attaching a copy of the error file tomcat produces before quitting. Can someone take a look at it and please tell me if it is a problem with the driver...or a problem with my crappy code? Thanks a lot Prashanth Here's the error file.. An unexpected exception has been detected in native code outside the VM. Unexpected Signal : EXCEPTION_ACCESS_VIOLATION occurred at PC=0x41166aba Function name=SQLGetData Library=C:\WINNT\System32\SQLSRV32.dll Current Java thread: at sun.jdbc.odbc.JdbcOdbc.getDataInteger(Native Method) at sun.jdbc.odbc.JdbcOdbc.SQLGetDataInteger(JdbcOdbc.java:3165) at sun.jdbc.odbc.JdbcOdbcResultSet.getDataInteger(JdbcOdbcResultS et.java:5338) at sun.jdbc.odbc.JdbcOdbcResultSet.getInt(JdbcOdbcResultSet.java:555) at sun.jdbc.odbc.JdbcOdbcConnection.buildTypeInfo(JdbcOdbcConnect ion.java:1474) at sun.jdbc.odbc.JdbcOdbcConnection.initialize(JdbcOdbcConnection .java:379) at sun.jdbc.odbc.JdbcOdbcDriver.connect(JdbcOdbcDriver.java:163) at java.sql.DriverManager.getConnection(DriverManager.java:517) at java.sql.DriverManager.getConnection(DriverManager.java:199) at dlnetSearchInfc.dBMgmFiles.processdBCmds.initiateDatabase(proc essdBCmds.java :21) at dlnetSearchInfc.searchProcess.processSearchResults.performSing leWildStringSe arch(processSearchResults.java:119) at dlnetSearchInfc.searchProcess.processSearchResults.getResultDo cs(processSear chResults.java:41) at dlnetSearchInfc.searchProcess.processSearchString.getSearchPhr aseResult(proc essSearchString.java:576) at dlnetSearchInfc.searchProcess.processSearchString.searchCorpus (processSearch String.java:74) at dlnetSearchInfc.dlnetSearch.searchButtonClicked(dlnetSearch.java:35) at dlnetSearchInfc.Search.doGet(Search.java:78) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper .java:405) at org.apache.tomcat.core.Handler.service(Handler.java:287) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) at org.apache.tomcat.core.ContextManager.internalService(ContextM anager.java:79 7) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743) at org.apache.tomcat.service.connector.Ajp12ConnectionHandler.pro cessConnection (Ajp12ConnectionHandler.java:166) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoin t.java:416) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPo ol.java:501) at java.lang.Thread.run(Thread.java:484) Dynamic libraries: 0x0040 - 0x00405000 c:\jdk1.3.1\bin\java.exe 0x77F8 - 0x77FFB000 C:\WINNT\System32\ntdll.dll 0x77DB - 0x77E0B000 C:\WINNT\system32\ADVAPI32.dll 0x77E8 - 0x77F35000 C:\WINNT\system32\KERNEL32.dll 0x77D4 - 0x77DAC000 C:\WINNT\system32\RPCRT4.dll 0x7800 - 0x78046000 C:\WINNT\system32\MSVCRT.dll 0x6D42 - 0x6D4EF000 c:\jdk1.3.1\jre\bin\hotspot\jvm.dll 0x77E1 - 0x77E74000 C:\WINNT\system32\USER32.dll 0x77F4 - 0x77F7C000 C:\WINNT\system32\GDI32.DLL 0x7757 - 0x775A C:\WINNT\System32\WINMM.dll 0x6D22 - 0x6D227000 c:\jdk1.3.1\jre\bin\hpi.dll 0x6D3B - 0x6D3BD000 c:\jdk1.3.1\jre\bin\verify.dll 0x6D25 - 0x6D266000 c:\jdk1.3.1\jre\bin\java.dll 0x6D3C - 0x6D3CD000 c:\jdk1.3.1\jre\bin\zip.dll 0x6D34 - 0x6D348000 C:\jdk1.3.1\jre\bin\net.dll 0x7505 - 0x75058000 C:\WINNT\System32\WSOCK32.dll 0x7503 - 0x75043000 C:\WINNT\System32\WS2_32.DLL 0x7502 - 0x75028000 C:\WINNT\System32\WS2HELP.DLL 0x74FD - 0x74FEF000 C:\WINNT\system32\msafd.dll 0x7501 - 0x75017000