Re: OT: Apologies
Aoccdrnig to a rscheearch at Cmabrigde Uinervtisy, it deosn't mttaer in waht oredr the ltteers in a wrod are, the olny iprmoetnt tihng is taht the frist and lsat ltteer be at the rghit pclae. The rset can be a total mses and you can sitll raed it wouthit porbelm. Tihs is bcuseae the huamn mnid deos not raed ervey lteter by istlef, but the wrod as a wlohe. At 07:50 AM 9/24/2003 +0200, you wrote: I5 t43r3 a pr06l3m h3r3 ? On Mon, 22 Sep 2003, Christopher Williams wrote: Sorry, folks, I didn't mean to start a flame war. Also, I certainly didn't mean to call anybody a moron - I simply meant that sloppy writing makes you sound less intelligent than you really are (and unpunctuated sentences really are harder to read). I also appreciate that English is not everybody's first language. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] *** * Dr. John Wallis * * * * SFB 359: Reaktive Stromungen, Diffusion * * und Transport * * Universität Heidelberg * * Im Neuenheimer Feld 294 * * 69120 Heidelberg* * * * Tel. : +49 6221 54 4986 * * Email: [EMAIL PROTECTED] * *** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] LEGAL NOTICE This electronic mail transmission and any accompanying documents contain information belonging to the sender which may be confidential and legally privileged. This information is intended only for the use of the individual or entity to whom this electronic mail transmission was sent as indicated above. If you are not the intended recipient, any disclosure, copying, distribution, or action taken in reliance on the contents of the information contained in this transmission is strictly prohibited. If you have received this transmission in error, please delete the message. Thank you
Tomcat 4.1.24 (or 27) with Log4j 1.2.8 - Tomcat does not start
Hi All, I am migrating my current application to use Struts 1.1 and I am facing a problem. My current app. has logging implemented with log4J 1.2.8. I am facing a bizzare problem when using Log4J 1.2.8 with Tomcat 4.1.24 (or Tomcat 4.1.27) on Windows 2000 with JDK 1.4.1_02 When I put my log4j -1.2.8 in the jak*/common/lib directory, Tomcat refuses to start The exception throw is as follows: org.apache.commons.logging.LogConfigurationException: org.apache.commons.logging .LogConfigurationException: No suitable Log constructor [Ljava.lang.Class;@1a679 b7 for org.apache.commons.logging.impl.Log4JLogger at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactory Impl.java:532) at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactory Impl.java:272) at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:414) at org.apache.commons.digester.Digester.init(Digester.java:346) at org.apache.catalina.startup.Catalina.createStartDigester(Catalina.jav a:280) at org.apache.catalina.startup.Catalina.start(Catalina.java:441) at org.apache.catalina.startup.Catalina.execute(Catalina.java:400) at org.apache.catalina.startup.Catalina.process(Catalina.java:180) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203) Caused by: org.apache.commons.logging.LogConfigurationException: No suitable Log constructor [Ljava.lang.Class;@1a679b7 for org.apache.commons.logging.impl.Log4 JLogger at org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogF actoryImpl.java:432) at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactory Impl.java:525) ... 12 more Caused by: java.lang.NoClassDefFoundError: org/apache/log4j/Logger at java.lang.Class.getDeclaredConstructors0(Native Method) at java.lang.Class.privateGetDeclaredConstructors(Class.java:1590) at java.lang.Class.getConstructor0(Class.java:1762) at java.lang.Class.getConstructor(Class.java:1002) at org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogF actoryImpl.java:429) ... 13 more If I put my log4J in the jakarta../shared/lib or WEB-INF/lib, Tomcat does startup. However, Struts fails to initialize giving an exception as follows: javax.servlet.ServletException: Error instantiating servlet class org.apache.struts.action.ActionServlet at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:91 2) ... - Root Cause - java.lang.ExceptionInInitializerError Caused by: org.apache.commons.logging.LogConfigurationException: org.apache.commons.logging.LogConfigurationException: No suitable Log constructor [Ljava.lang.Class;@3a5794 for org.apache.commons.logging.impl.Log4JLogger at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.ja va:532) Caused by: org.apache.commons.logging.LogConfigurationException: No suitable Log constructor [Ljava.lang.Class;@3a5794 for org.apache.commons.logging.impl.Log4JLogger at org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryI mpl.java:432) at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.ja va:525) ... 28 more Caused by: java.lang.NoClassDefFoundError: org/apache/log4j/Logger at java.lang.Class.getDeclaredConstructors0(Native Method) at java.lang.Class.privateGetDeclaredConstructors(Class.java:1590) at java.lang.Class.getConstructor0(Class.java:1762) at java.lang.Class.getConstructor(Class.java:1002) at org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryI mpl.java:429) ... 29 more What am I missing? Thanks! Mahesh - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
running tomcat on port 443 as non-root
Hello I have to run Tomcat standalone as user e.g tomcat (non-root) on port 443. But the server doesn't start (not able to bind port 443). With 8443 everything works fine. Why can't tomcat do that like apache ? Thanks for hints or help. I'm running Version 4.1.27 on SuSE 8.2 with SUN Java 2 Standard Edition (build 1.4.1_02-b06) regards, Damian - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Threads and tomcat
Hi, I'm trying to get some info on the lifespan of a thread in tomcat (4), can somebody point me to some documentation or help me out? Cheers, Josh -- [ Josh 'G' McDonald ][ 0415 784 825 ][ http://www.gfunk007.com/ ] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: running tomcat on port 443 as non-root
On Wed, Sep 24, 2003 at 08:33:32AM +0200, Damian Egli wrote: : : I have to run Tomcat standalone as user e.g tomcat (non-root) on port 443. : But the server doesn't start (not able to bind port 443). : With 8443 everything works fine. : : Why can't tomcat do that like apache ? In order to bind to port 443 (or any port below 1024), you must be root. -- Eugene Lee http://www.coxar.pwp.blueyonder.co.uk/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: running tomcat on port 443 as non-root
Damian Egli wrote: Hello I have to run Tomcat standalone as user e.g tomcat (non-root) on port 443. But the server doesn't start (not able to bind port 443). With 8443 everything works fine. Why can't tomcat do that like apache ? Because Java wasn't designed to allow that. There are solutions which are being worked on, such as the commons-daemon project. Tomcat 5 is designed to take advantage of commons-daemon, so it allows running a low port without root. See the docs: http://jakarta.apache.org/tomcat/tomcat-5.0-doc/setup.html Thanks for hints or help. I'm running Version 4.1.27 on SuSE 8.2 with SUN Java 2 Standard Edition (build 1.4.1_02-b06) -- x Rémy Maucherat Senior Developer Consultant JBoss Group (Europe) SàRL x - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: IIS 5.1 and Tomcat 4
True, my mistake. ;-) The module that could not be found, it seems like IIS is talking about isapi_redirect.dll. I don't know really how it all works with these isapi filters, but the file should be downloadable from a browser, so you should try pointing your browser to http://locahost/jakarta/isapi_redirect.dll and make sure you can download the file. If that does not work you have access problems. The IIS user can't reach the file. I think we are close to a solution now. Mats Jon Skeet wrote: [Replying to two posts from Mats at once] (About not being able to sniff local packets) Correct, but can't you use a browser on another machine? Yes, but that wouldn't help - it's the IIS-Tomcat communication which is at issue here (I thought, anyway) and that would still be local. I don't have easy access to another machine to test all this with IIS on one box and Tomcat on another - although it's the next step if I can't get anywhere soon. What do you get in the browser when trying to connect? The specified module could not be found. Jon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: portals
Two good open source portal servers are: http://www.liferay.com http://jakarta.apache.org/jetspeed Both have mailing lists where you can ask questions at. Hope this helps. Mete -- Original Message -- From: mike jackson [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] Date: Tue, 23 Sep 2003 15:50:18 -0700 Can anyone suggest a good portal framework? I'm looking to migrate all of my applications to run within a portal, but I can't decide on one... --mikej -=-- mike jackson [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How can I change the default installation path when I install the rpm 4.1.24 version of Tomcat4?
Why not just use the tar.gz version? On Tuesday 23 September 2003 08:58 pm, you wrote: Hi, My installation files are tomcat4-4.1.24-full.2jpp.noarch.rpm. The default installation path is /var/tomcat4 Now,I want to change it to /usr/share/tomcat Can you help me out? Thank you! Wang _ Do You Yahoo!? []+ http://cn.rd.yahoo.com/mail_cn/tag/?http://cn.messenger.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Not getting the webpages shown in tomcat 4.1.24
hi friends, This is sathiyam KG, and i am currently working on a web Application project at client place Japan, using tomcat4.1.24+Apache2.0.46 on windows2000server. I am getting a strange problem of tomcat not showning any pages even the default tomcat page.But at the same time it does not show any error on the console.The server starts up with no error messages and does not show any error message at its console when i try to access the default jsp pages from the examples. How ever it gives an exception message in the log saying that nosuch method error.I do not under stand the reason why it is happenning to my laptop machine. I am running the same setup in my DELL pc where i have been going on so smoothly till now. To make my case more critical, even the tomcat from jbuilder environment run from my laptop is not showning pages but errors at the console.I have become weary, finding out solution to this problem. could you make out any meaning to my issue at hand now. Pl advise. thanks and regards sat - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
jserv status
Hello, someone know if there is any command line tool to query the port 8007 and get the status of the jservs processes. I would appreciate any help. Thanks in advance. Lucas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JDBC Realm problems
in case no one noticed and it matters, web.xml has following typo in it, where resource is spelled ressource: web-ressource-collection web-ressource-nametest/web-ressource-name I wish I had seen that earlier x_x. Thanks alot Paul, it's now showing up auth window. Unfortunately I have the same problem as mentionned here : http://archives.real-time.com/pipermail/tomcat-users/2003-January/094373.html Do I have to modify the source code of org.apache.catalina.realm.JDBCRealm to have it concatenate username+password to make md5 auth successfull on Postgres, or is there another workaround (maybe in TC5) ? Thanks laurent - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: IIS 5.1 and Tomcat 4
The module that could not be found, it seems like IIS is talking about isapi_redirect.dll. I don't know really how it all works with these isapi filters, but the file should be downloadable from a browser, so you should try pointing your browser to http://locahost/jakarta/isapi_redirect.dll and make sure you can download the file. If that does not work you have access problems. The IIS user can't reach the file. I think we are close to a solution now. Well done - that was indeed the problem! (I still can't download isapi_redirect.dll because I haven't given read access to the directory) but you pointed me in the right direction - I was pointing /jakarta at the tomcat directory rather than the directory underneath it. I've changed that, and it's all working fine now :) I think the reason I didn't check before was that clearly it *was* finding the module at some stage, otherwise I wouldn't have had an isapi.log file - but presumably it needs it in two different ways. Anyway, thank you ever so much - you're a star :) Jon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
MIME Types
Hi, Does anyone know the mime type for WAR files. I foud somewhere on the web that JAR files have a mime type of application/java-archive but cant find any info on WAR files. Thanks. Matt _ It's fast, it's easy and it's free. Get MSN Messenger today! http://www.msn.co.uk/messenger - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Configuring a JDBC Data Source
sounds like you need the commons-dbcp and commons-pool jar files as well. Adam On 09/24/2003 01:52 AM Renda, Michael wrote: I'm trying to configure a JDBC Data Source for a Tomcat 4.1.27 installation. I used the Admin tool which wrote the following entry to my server.xml file: GlobalNamingResources Resource name=jdbc/connection scope=Shareable type=javax.sql.DataSource/ ResourceParams name=jdbc/connection parameter namemaxWait/name value5000/value /parameter parameter namemaxActive/name value4/value /parameter parameter namepassword/name valuesecret/value /parameter parameter nameurl/name valuejdbc:microsoft:sqlserver:192.168.0.2:1433/value /parameter parameter namedriverClassName/name valuecom.microsoft.jdbc.sqlserver.SQLServerDriver/value /parameter parameter namemaxIdle/name value2/value /parameter parameter nameusername/name valuesa/value /parameter /ResourceParams /GlobalNamingResources I have placed the jar files for the sql/server jdbc driver in the common/lib directory. Now Tomcat won't start up. I have the following message in my log: INFO: Initializing Coyote HTTP/1.1 on port 8080 Exception during startup processing java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav a:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor Impl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203) Caused by: java.lang.NoClassDefFoundError: org/apache/commons/pool/impl/GenericObjectPool at org.apache.commons.dbcp.BasicDataSourceFactory.getObjectInstance(BasicDa taSourceFactory.java:121) at org.apache.naming.factory.ResourceFactory.getObjectInstance(ResourceFact ory.java:186) at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:301) at org.apache.naming.NamingContext.lookup(NamingContext.java:834) at org.apache.naming.NamingContext.lookup(NamingContext.java:194) at org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.createMBeans (GlobalResourcesLifecycleListener.java:214) at org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.createMBeans (GlobalResourcesLifecycleListener.java:220) at org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.createMBeans (GlobalResourcesLifecycleListener.java:181) at org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.lifecycleEve nt(GlobalResourcesLifecycleListener.java:149) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSu pport.java:166) at org.apache.catalina.core.StandardServer.start(StandardServer.java:2183) at org.apache.catalina.startup.Catalina.start(Catalina.java:512) at org.apache.catalina.startup.Catalina.execute(Catalina.java:400) at org.apache.catalina.startup.Catalina.process(Catalina.java:180) ... 5 more Can anyone tell me what I'm doing wrong here? Thanks, Mike Renda - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- struts 1.1 + tomcat 4.1.27 + java 1.4.2 Linux 2.4.20 RH9 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Is struts.jar mandatory for tomcat 4.1.24 ?
Hi Sarika, did you try a fresh installation of tomcat? I'm sure that would solve your problem. Each of your apps has a web.xml file and tomcat does not generate them itself. You write them yourself, or at least copy and edit them for each app you run on tomcat. To find out more about web.xml, read the servlet 2.3 specification from java.sun.com. It's quite readable. You also need to read up on the configuration of tomcat 'context' - the docs on the jakarta website are very comprehensive. In a normal installation of tomcat 4.1.x you will have a webapps directory jakarta-tomcat-4.1.xx/webapps and in that directory you will have a few applications in their subdirectories, plus the admin.xml file (and also the manager.xml file). The ROOT directory is just an application that appears on your website without any additional directory, i.e. http://localhost:8080/ Admin will be at http://localhost:8080/admin/ A directory under webapps normally be at http://localhost8080/directory/ If you do not have the admin.xml file, then you are not working with a default installation of tomcat. Since you are learning about tomcat, I would strongly recommend doing a fresh installation and seeing how the admin app works by default. HTH, Adam On 09/24/2003 05:14 AM Sarika N Inamdar wrote: Hi Adam and Yoav, Thanks much for the inputs. In our tomcat deployment we do not have admin.xml at all since we are not using any admin applications. Web.xml under webapps/ROOT/WEB-INF/lib has not been modified manually. It is generated when we build ROOT.war. Is there a way we can control as to how the web.xml be generated. I've no idea on how to use the web.xml. Am not sure why and how the actionServlet has come into web.xml Please let me know how can I avoid having this struts action Servlet in my web.xml. Because I thought a copy of web.xml is generated during ROOT.war deployment. Any light on this would be really helpful. Thanks, Sarika -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 23, 2003 6:29 PM To: Tomcat Users List Subject: RE: Is struts.jar mandatory for tomcat 4.1.24 ? Howdy, Why do you have the struts action servlet defined in web.xml and don't have the struts jar? Neither is required for tomcat, but if you have one you need to have the other... Yoav Shapira Millennium ChemInformatics -Original Message- From: Sarika N Inamdar [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 23, 2003 4:37 AM To: 'Tomcat Users List' Subject: RE: Is struts.jar mandatory for tomcat 4.1.24 ? Hi, Thanks for the inputs. We do not use any admin applications. We have web.xml in ROOT/WEB-INF/ directory. It has the following entry : servlet servlet-nameaction/servlet-name servlet-classorg.apache.struts.action.ActionServlet/servlet-class init-param param-nameapplication/param-name param-valueApplicationResources/param-value /init-param Is there a way that we can tell tomcat not to use struts.jar ? Do we need to make any changes in the web.xml ? Please let us know on this. Thanks Much, Sarika -Original Message- From: Adam Hardy [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 23, 2003 1:49 PM To: Tomcat Users List Subject: Re: Is struts.jar mandatory for tomcat 4.1.24 ? No it's not mandatory. But tomcat's admin app uses struts. This is controlled by an .xml file in your webapps directory, and it points to the deployment in tomcat/server/webapps/admin. Adam On 09/23/2003 06:07 AM Sarika N Inamdar wrote: Hi All, Please let me know if struts.jar should be present under /WEB-INF/lib with tomcat 4.1.24 ? We have jps's which do not struts. But when I start tomcat,encounter the following exception in /logs/localhost_log file . This execption does not hamper the functionality though !!! 2003-09-22 20:33:01 StandardContext[]: Servlet threw load() exception javax.servlet.ServletException: Wrapper cannot find servlet class org.apache.str uts.action.ActionServlet or a class it depends on at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper. java:891) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:82 3) at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContex t.java:3420) at org.apache.catalina.core.StandardContext.start(StandardContext.java:3 608) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188) at org.apache.catalina.core.StandardHost.start(StandardHost.java:738) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347 Thanks in Advance, Sarika - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- struts 1.1 + tomcat 4.1.27 + java 1.4.2 Linux 2.4.20 RH9
Re: MIME Types
HI matthew (Bdid u try with application/x-compress for war file type (Bsat (B- Original Message - (BFrom: "Matthew Oatham" [EMAIL PROTECTED] (BTo: [EMAIL PROTECTED] (BSent: Wednesday, September 24, 2003 5:19 PM (BSubject: MIME Types (B (B (B Hi, (B (B Does anyone know the mime type for WAR files. I foud somewhere on the web (B that JAR files have a mime type of application/java-archive but cant find (B any info on WAR files. (B (B Thanks. (B (B Matt (B (B _ (B It's fast, it's easy and it's free. Get MSN Messenger today! (B http://www.msn.co.uk/messenger (B (B (B - (B To unsubscribe, e-mail: [EMAIL PROTECTED] (B For additional commands, e-mail: [EMAIL PROTECTED] (B (B (B (B (B- (BTo unsubscribe, e-mail: [EMAIL PROTECTED] (BFor additional commands, e-mail: [EMAIL PROTECTED]
Re: MIME Types
On Wed, Sep 24, 2003 at 09:19:34AM +0100, Matthew Oatham wrote: : : Does anyone know the mime type for WAR files. I foud somewhere on the web : that JAR files have a mime type of application/java-archive but cant find : any info on WAR files. AFAIK, there is no official MIME type for .war files. The Java camp claims it as a web archive, while the Konqueror camp claims it as an archived HTML page. -- Eugene Lee http://www.coxar.pwp.blueyonder.co.uk/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: OT: Apologies
Stop it, you're giving me dxlseiya On 09/24/2003 08:18 AM Micael wrote: Aoccdrnig to a rscheearch at Cmabrigde Uinervtisy, it deosn't mttaer in waht oredr the ltteers in a wrod are, the olny iprmoetnt tihng is taht the frist and lsat ltteer be at the rghit pclae. The rset can be a total mses and you can sitll raed it wouthit porbelm. Tihs is bcuseae the huamn mnid deos not raed ervey lteter by istlef, but the wrod as a wlohe. At 07:50 AM 9/24/2003 +0200, you wrote: I5 t43r3 a pr06l3m h3r3 ? On Mon, 22 Sep 2003, Christopher Williams wrote: Sorry, folks, I didn't mean to start a flame war. Also, I certainly didn't mean to call anybody a moron - I simply meant that sloppy writing makes you sound less intelligent than you really are (and unpunctuated sentences really are harder to read). I also appreciate that English is not everybody's first language. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] *** * Dr. John Wallis * * * * SFB 359: Reaktive Stromungen, Diffusion * * und Transport * * Universität Heidelberg * * Im Neuenheimer Feld 294 * * 69120 Heidelberg* * * * Tel. : +49 6221 54 4986 * * Email: [EMAIL PROTECTED] * *** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] LEGAL NOTICE This electronic mail transmission and any accompanying documents contain information belonging to the sender which may be confidential and legally privileged. This information is intended only for the use of the individual or entity to whom this electronic mail transmission was sent as indicated above. If you are not the intended recipient, any disclosure, copying, distribution, or action taken in reliance on the contents of the information contained in this transmission is strictly prohibited. If you have received this transmission in error, please delete the message. Thank you -- struts 1.1 + tomcat 4.1.27 + java 1.4.2 Linux 2.4.20 RH9 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JDBC Realm problems
Don't you get: Digester.error(): org.xml.sax.SAXParseException: Element security-constraint requires additional elements. On 09/24/2003 09:48 AM Laurent Perez wrote: in case no one noticed and it matters, web.xml has following typo in it, where resource is spelled ressource: web-ressource-collection web-ressource-nametest/web-ressource-name I wish I had seen that earlier x_x. Thanks alot Paul, it's now showing up auth window. Unfortunately I have the same problem as mentionned here : http://archives.real-time.com/pipermail/tomcat-users/2003-January/094373.html Do I have to modify the source code of org.apache.catalina.realm.JDBCRealm to have it concatenate username+password to make md5 auth successfull on Postgres, or is there another workaround (maybe in TC5) ? Thanks laurent - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- struts 1.1 + tomcat 4.1.27 + java 1.4.2 Linux 2.4.20 RH9 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat crashing at random moments of time
Hi all, we are trying to run own web application (JSP, MySQL) on Slackware 9.0.0 with using tomcat-4.1.24 (used default configuration) and j2sdk1.4.1_02. And our problem is: at the random moments of time Tomcat unfortunately goes down with interrupting of service. :-( System.exit is definitely absent in our code. Nobody did stop Tomcat server. Log file catalina.out says just normal shutdown message, which is: Stopping service Tomcat-Standalone, and nothing else. No more information about this case. Any ideas? How to investigate/fix the problem? Is it possible to debug how it was happened? Tomcat or Java? Any help will be appreciated. -+-- Regards, Vitaliy Yermolenko. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat crashing at random moments of time
How do you start tomcat? by command line? Is the problem only there when you end the telnet session you used to start tomcat or close the terminal you used to start it? If so, do NOT use:./startup.sh instead use:nohup ./startup.sh Johan. - Original Message - From: Vitaliy Yermolenko [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, September 24, 2003 10:28 AM Subject: Tomcat crashing at random moments of time Hi all, we are trying to run own web application (JSP, MySQL) on Slackware 9.0.0 with using tomcat-4.1.24 (used default configuration) and j2sdk1.4.1_02. And our problem is: at the random moments of time Tomcat unfortunately goes down with interrupting of service. :-( System.exit is definitely absent in our code. Nobody did stop Tomcat server. Log file catalina.out says just normal shutdown message, which is: Stopping service Tomcat-Standalone, and nothing else. No more information about this case. Any ideas? How to investigate/fix the problem? Is it possible to debug how it was happened? Tomcat or Java? Any help will be appreciated. -+-- Regards, Vitaliy Yermolenko. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JDBC Realm problems
Don't you get: Digester.error(): org.xml.sax.SAXParseException: Element security-constraint requires additional elements. No I don't. Should I ? laurent - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JDBC Realm problems
Yes! I was unaware that you could disable xml parsing exceptions. But it seems you have. :( Perhaps it depends on the xml parser you are running. Mine is crimson (SAX?). Adam On 09/24/2003 11:29 AM Laurent Perez wrote: Don't you get: Digester.error(): org.xml.sax.SAXParseException: Element security-constraint requires additional elements. No I don't. Should I ? laurent - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- struts 1.1 + tomcat 4.1.27 + java 1.4.2 Linux 2.4.20 RH9 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JDBC Realm problems
Yes! I was unaware that you could disable xml parsing exceptions. But it seems you have. :( Sorry but I don't understand the link between my xml parser and Postgres' MD5 encoding. Do you have your Tomcat setup authenticating users against a Postgresql JDBCRealm using MD5 digest ? laurent - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JDBC Realm problems
Oh I'm very sorry, perhaps I confused your post with somebody else's. The problem I am referring to is the issue with the web-resource-name being spelt wrong. Adam On 09/24/2003 12:08 PM Laurent Perez wrote: Yes! I was unaware that you could disable xml parsing exceptions. But it seems you have. :( Sorry but I don't understand the link between my xml parser and Postgres' MD5 encoding. Do you have your Tomcat setup authenticating users against a Postgresql JDBCRealm using MD5 digest ? laurent - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- struts 1.1 + tomcat 4.1.27 + java 1.4.2 Linux 2.4.20 RH9 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
SOS JSTL
Hello, I am developing an application that uses Jstl for internationalization. I store a string called lang in a request attribute (${requestScope.lang}). This string is either fr or es. My page is sometimes in french even though the lang attribute is es and vice versa. It seems as if the ${requestScope.lang} is ignored. Can anyone help please? Thanks in advance, Julien. Here is the full content of my jsp: ** %-- == Index Page == --% %@ page import =com.parispano.latinamericaguide.* % %@ taglib uri=/WEB-INF/c.tld prefix=f % %@ taglib uri=/WEB-INF/fmt.tld prefix=fmt % %@ taglib uri=/WEB-INF/latinamericaguide.tld prefix=po % % /* We retrieve the Countries object from the servlet context. */ ServletContext sc = getServletContext(); Countries cs = (Countries)sc.getAttribute(countries); /* We apply the sorting criterion. */ String sortCriterion = request.getParameter(sortCriterion); Country[] countryArray = cs.getArray(sortCriterion); % fmt:setLocale value=${requestScope.lang}/ fmt:bundle basename=com.parispano.latinamericaguide.resources.labels html head titlefmt:message key=title_index_jsp//title link rel=StyleSheet type=text/css href=css/latinamericaguide.css/ /head body div id=logo_home img src=./media/logo_atlas.gif alt= /div div id=advertisement jsp:directive.include file=pages/modules/indexmodule.jsp / /div div id=left-column hola toto /div div id=country-list-box div id=language current language: ${requestScope.lang}br / a href=LanguageServlet?url=%=request.getRequestURL()%lang=po:RetrieveOther Language locale=${requestScope.lang}/Change Language/abr /br / /div div id=top-left div id=top-right /div /div div id=title img src=./media/po:I18nlizeImage imageName=atlas_latino locale=${requestScope.lang}/ alt= /div div id=sortingForm jsp:directive.include file=pages/sorterForm.jsp / /div table tr thfmt:message key=country_index_jsp//th thfmt:message key=capital_index_jsp//th thfmt:message key=landarea_index_jsp//th thfmt:message key=population_index_jsp//th thfmt:message key=gdp_index_jsp//th thfmt:message key=gdp_per_capita_index_jsp//th thfmt:message key=more_index_jsp//th /tr % int rowCol=0; for(int i=0; icountryArray.length; i++){ rowCol++; Country country = (Country)countryArray[i]; out.println(tr + ((rowCol%2==0)?(class=\evenRow\):(class=\oddRow\)) + ); out.println(td class=\countryName\ +country.getName() + /td); out.println(td class=\countryCapital\ +country.getCapital() + /td); out.println(td class=\number\ + country.getFormattedLandArea() + /td); out.println(td class=\number\ +country.getFormattedPopulation() + /td); out.println(td class=\number\ +country.getFormattedGdp() + /td); out.println(td class=\number\ +country.getFormattedGdp_per_head() + /td); out.println(tda class=\more\ href=\pais.jsp?countryID= + country.getId() + \más.../a/td); out.println(/tr); } % /table div id=bottom-left div id=bottom-right /div /div jsp:directive.include file=./pages/footer.jsp/ /div br / /body /html /fmt:bundle **
RE: Configuring a JDBC Data Source
I've got the commons-dbcp.jar file in the common/lib directory. Where do I find the commons-pool.jar file? Mike -Original Message- From: Adam Hardy [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 24, 2003 4:20 AM To: Tomcat Users List Subject: Re: Configuring a JDBC Data Source sounds like you need the commons-dbcp and commons-pool jar files as well. Adam On 09/24/2003 01:52 AM Renda, Michael wrote: I'm trying to configure a JDBC Data Source for a Tomcat 4.1.27 installation. I used the Admin tool which wrote the following entry to my server.xml file: GlobalNamingResources Resource name=jdbc/connection scope=Shareable type=javax.sql.DataSource/ ResourceParams name=jdbc/connection parameter namemaxWait/name value5000/value /parameter parameter namemaxActive/name value4/value /parameter parameter namepassword/name valuesecret/value /parameter parameter nameurl/name valuejdbc:microsoft:sqlserver:192.168.0.2:1433/value /parameter parameter namedriverClassName/name valuecom.microsoft.jdbc.sqlserver.SQLServerDriver/value /parameter parameter namemaxIdle/name value2/value /parameter parameter nameusername/name valuesa/value /parameter /ResourceParams /GlobalNamingResources I have placed the jar files for the sql/server jdbc driver in the common/lib directory. Now Tomcat won't start up. I have the following message in my log: INFO: Initializing Coyote HTTP/1.1 on port 8080 Exception during startup processing java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav a:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor Impl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203) Caused by: java.lang.NoClassDefFoundError: org/apache/commons/pool/impl/GenericObjectPool at org.apache.commons.dbcp.BasicDataSourceFactory.getObjectInstance(BasicDa taSourceFactory.java:121) at org.apache.naming.factory.ResourceFactory.getObjectInstance(ResourceFact ory.java:186) at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:301) at org.apache.naming.NamingContext.lookup(NamingContext.java:834) at org.apache.naming.NamingContext.lookup(NamingContext.java:194) at org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.createMBeans (GlobalResourcesLifecycleListener.java:214) at org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.createMBeans (GlobalResourcesLifecycleListener.java:220) at org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.createMBeans (GlobalResourcesLifecycleListener.java:181) at org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.lifecycleEve nt(GlobalResourcesLifecycleListener.java:149) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSu pport.java:166) at org.apache.catalina.core.StandardServer.start(StandardServer.java:2183) at org.apache.catalina.startup.Catalina.start(Catalina.java:512) at org.apache.catalina.startup.Catalina.execute(Catalina.java:400) at org.apache.catalina.startup.Catalina.process(Catalina.java:180) ... 5 more Can anyone tell me what I'm doing wrong here? Thanks, Mike Renda - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- struts 1.1 + tomcat 4.1.27 + java 1.4.2 Linux 2.4.20 RH9 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
IIS5+Tomcat4.1 integration problem
Hi all, Sorry for the repeated question. I've seached the archive and read many howtos and my problem still persists. The problem is that the isapi filter is not working i.e. red arrow in IIS. I tried isapi_redirector2.dll redirector.dll from jakarta site following the howto of the site, yet am not even getting the log file. If anybody succeeded in the integration and can provide me with the configuration file and the redirector used and the registry entry, I would appreciated vey much. Best Regards, Kareem Mahgoub - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: RE : Redirecting the output to a log file
Not really, that is why we all keep recommending commons-logging or log4j. -Tim Sarika N Inamdar wrote: Hi, Thanks for the solution. This works. Now my Servlets System.out is re-directed to log file. But I also see that tomcat logs lot of debug statements in the same debug. This would un-necessarily clutter our application log file. Is there a way we can filter tomcat System.out messages and log only our application System.out debug stmts ? Thanks for the help, Sarika - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Threads and tomcat
The lifespan of a thread or request? -Tim Josh G wrote: Hi, I'm trying to get some info on the lifespan of a thread in tomcat (4), can somebody point me to some documentation or help me out? Cheers, Josh - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: character encoding, JAAS, servlet filter vs. valve
Adam Hardy wrote: I can't see why. Perhaps you are overriding it later in the request processing? Struts uses response.setContentType() The docs say: overridden automatically if a * codeRequestDispatcher.forward()/code call is * ultimately invoked. but that leaves me none the wiser. Possible. I'm not that deep in the servlet processes, don't know what strange things are done. (I come from the Cocoon world and I'm afraid from the low abstraction in general ;-) ). But not the problem, we set the content type in one JSP that is included in every other JSP, so we have to maintain this also on one place only. Joerg Adam On 09/23/2003 03:25 PM Joerg Heinicke wrote: Joerg Heinicke wrote: I found http://jakarta.apache.org/struts/api/org/apache/struts/config/ControllerConfig.html#contentType and set the contentType in the struts-config.xml with controller contentType=text/html;charset=UTF-8/. Does not work as expected. Mozilla recognizes the pages know as ISO-8859-1 and no longer UTF-8. Joerg -- System Development VIRBUS AG Fon +49(0)341-979-7419 Fax +49(0)341-979-7409 [EMAIL PROTECTED] www.virbus.de - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: character encoding, JAAS, servlet filter vs. valve
Adam Hardy wrote: albeit - does not sound very English, but my dictionary knows it :-) Pronounced all - be - it which makes it sounds like 3 seperate but very english words. Never did know what it meant. Did I use it correctly? 8-) At least the translation in my dictionary makes sense :-P This becomes off topic now ... Joerg -- System Development VIRBUS AG Fon +49(0)341-979-7419 Fax +49(0)341-979-7409 [EMAIL PROTECTED] www.virbus.de - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
destroy() is not called when Context is reloaded
Hi, I use a servlet as a chat-server which uses a blocking doGet()-method. (I am using the chat-server-example from the book Java Servlet Programming). To make sure the context can be reloaded I included the destroy()-method in the servlet to remove all locks. The problem is, that the destroy()-method is not called (It should log a message). Is this due to the blocking doGet()? Is there a way to set a timeout when the destroy()-method should be called no matter the request-handling is done or not? I think I waited for 10 minutes or so, but destroy() wasn´t called. BTW, I am using Tomcat 4.0.6 (The one integrated into Netbeans). Is there a way to gracefully close the servlet? As far as I can see it cannot be done in the ContextListener since the servlets are closed before the ContextListener is called. Would be great if someone could help me. thanks, Philipp - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: portals
Look into Apache Jetspeed. It has a lot of good portal functionality and the price is right. On 9/23/03 6:50 PM, mike jackson [EMAIL PROTECTED] wrote: Can anyone suggest a good portal framework? I'm looking to migrate all of my applications to run within a portal, but I can't decide on one... --mikej -=-- mike jackson [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Dov Rosenberg President, Conviveon Corporation 370 Centerpointe Circle, suite 1178 Altamonte Springs, FL 32701 http://www.conviveon.com [EMAIL PROTECTED] (407) 339-1177 X102 (407) 339-6704 (FAX) (800) 475-9890 (407) 310-8316 (cell) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: destroy() is not called when Context is reloaded
Howdy, Maybe if you post your servlet's code we can help you.. Yoav Shapira Millennium ChemInformatics -Original Message- From: Philipp Leusmann [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 24, 2003 7:45 AM To: [EMAIL PROTECTED] Subject: destroy() is not called when Context is reloaded Hi, I use a servlet as a chat-server which uses a blocking doGet()-method. (I am using the chat-server-example from the book Java Servlet Programming). To make sure the context can be reloaded I included the destroy()-method in the servlet to remove all locks. The problem is, that the destroy()-method is not called (It should log a message). Is this due to the blocking doGet()? Is there a way to set a timeout when the destroy()-method should be called no matter the request-handling is done or not? I think I waited for 10 minutes or so, but destroy() wasn´t called. BTW, I am using Tomcat 4.0.6 (The one integrated into Netbeans). Is there a way to gracefully close the servlet? As far as I can see it cannot be done in the ContextListener since the servlets are closed before the ContextListener is called. Would be great if someone could help me. thanks, Philipp - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Is there any way to start 2 jvms in the same ServletContext?
Howdy, No way. It's not an oft-repeated question either. Yoav Shapira Millennium ChemInformatics -Original Message- From: HIRODE,KARTHEEK (HP-Boise,ex1) [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 23, 2003 10:19 PM To: [EMAIL PROTECTED] Subject: Is there any way to start 2 jvms in the same ServletContext? Hello all, This is probably an oft-repeated question, but is there any mechanism within the Tomcat framework to have TWO jvm's running in the same ServletContext? Workers? I don't believe so, but I want to confirm. Thanks --KH - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Is struts.jar mandatory for tomcat 4.1.24 ?
Howdy, Dude, get a servlets book. If you have no idea on how to use the web.xml you need some more serious guidance. Yoav Shapira Millennium ChemInformatics -Original Message- From: Sarika N Inamdar [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 23, 2003 11:15 PM To: 'Tomcat Users List' Subject: RE: Is struts.jar mandatory for tomcat 4.1.24 ? Hi Adam and Yoav, Thanks much for the inputs. In our tomcat deployment we do not have admin.xml at all since we are not using any admin applications. Web.xml under webapps/ROOT/WEB-INF/lib has not been modified manually. It is generated when we build ROOT.war. Is there a way we can control as to how the web.xml be generated. I've no idea on how to use the web.xml. Am not sure why and how the actionServlet has come into web.xml Please let me know how can I avoid having this struts action Servlet in my web.xml. Because I thought a copy of web.xml is generated during ROOT.war deployment. Any light on this would be really helpful. Thanks, Sarika -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 23, 2003 6:29 PM To: Tomcat Users List Subject: RE: Is struts.jar mandatory for tomcat 4.1.24 ? Howdy, Why do you have the struts action servlet defined in web.xml and don't have the struts jar? Neither is required for tomcat, but if you have one you need to have the other... Yoav Shapira Millennium ChemInformatics -Original Message- From: Sarika N Inamdar [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 23, 2003 4:37 AM To: 'Tomcat Users List' Subject: RE: Is struts.jar mandatory for tomcat 4.1.24 ? Hi, Thanks for the inputs. We do not use any admin applications. We have web.xml in ROOT/WEB-INF/ directory. It has the following entry : servlet servlet-nameaction/servlet-name servlet-classorg.apache.struts.action.ActionServlet/servlet-class init-param param-nameapplication/param-name param-valueApplicationResources/param-value /init-param Is there a way that we can tell tomcat not to use struts.jar ? Do we need to make any changes in the web.xml ? Please let us know on this. Thanks Much, Sarika -Original Message- From: Adam Hardy [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 23, 2003 1:49 PM To: Tomcat Users List Subject: Re: Is struts.jar mandatory for tomcat 4.1.24 ? No it's not mandatory. But tomcat's admin app uses struts. This is controlled by an .xml file in your webapps directory, and it points to the deployment in tomcat/server/webapps/admin. Adam On 09/23/2003 06:07 AM Sarika N Inamdar wrote: Hi All, Please let me know if struts.jar should be present under /WEB-INF/lib with tomcat 4.1.24 ? We have jps's which do not struts. But when I start tomcat,encounter the following exception in /logs/localhost_log file . This execption does not hamper the functionality though !!! 2003-09-22 20:33:01 StandardContext[]: Servlet threw load() exception javax.servlet.ServletException: Wrapper cannot find servlet class org.apache.str uts.action.ActionServlet or a class it depends on at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper. java:891) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:82 3) at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContex t.java:3420) at org.apache.catalina.core.StandardContext.start(StandardContext.java:3 608) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188) at org.apache.catalina.core.StandardHost.start(StandardHost.java:738) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347 Thanks in Advance, Sarika - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- struts 1.1 + tomcat 4.1.27 + java 1.4.2 Linux 2.4.20 RH9 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately
RE: Not getting the webpages shown in tomcat 4.1.24
Howdy, Post the errors from your server log. Yoav Shapira Millennium ChemInformatics -Original Message- From: kgsat [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 24, 2003 3:18 AM To: Tomcat Users List Subject: Not getting the webpages shown in tomcat 4.1.24 hi friends, This is sathiyam KG, and i am currently working on a web Application project at client place Japan, using tomcat4.1.24+Apache2.0.46 on windows2000server. I am getting a strange problem of tomcat not showning any pages even the default tomcat page.But at the same time it does not show any error on the console.The server starts up with no error messages and does not show any error message at its console when i try to access the default jsp pages from the examples. How ever it gives an exception message in the log saying that nosuch method error.I do not under stand the reason why it is happenning to my laptop machine. I am running the same setup in my DELL pc where i have been going on so smoothly till now. To make my case more critical, even the tomcat from jbuilder environment run from my laptop is not showning pages but errors at the console.I have become weary, finding out solution to this problem. could you make out any meaning to my issue at hand now. Pl advise. thanks and regards sat - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 4.1.24 (or 27) with Log4j 1.2.8 - Tomcat does not start
Howdy, I just answered this question on log4j-user. sarcasticThanks for cross-posting/sarcastic Yoav Shapira Millennium ChemInformatics -Original Message- From: Mahesh Joshi [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 24, 2003 2:25 AM To: [EMAIL PROTECTED] Subject: Tomcat 4.1.24 (or 27) with Log4j 1.2.8 - Tomcat does not start Hi All, I am migrating my current application to use Struts 1.1 and I am facing a problem. My current app. has logging implemented with log4J 1.2.8. I am facing a bizzare problem when using Log4J 1.2.8 with Tomcat 4.1.24 (or Tomcat 4.1.27) on Windows 2000 with JDK 1.4.1_02 When I put my log4j -1.2.8 in the jak*/common/lib directory, Tomcat refuses to start The exception throw is as follows: org.apache.commons.logging.LogConfigurationException: org.apache.commons.logging .LogConfigurationException: No suitable Log constructor [Ljava.lang.Class;@1a679 b7 for org.apache.commons.logging.impl.Log4JLogger at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactory Impl.java:532) at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactory Impl.java:272) at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:414) at org.apache.commons.digester.Digester.init(Digester.java:346) at org.apache.catalina.startup.Catalina.createStartDigester(Catalina.jav a:280) at org.apache.catalina.startup.Catalina.start(Catalina.java:441) at org.apache.catalina.startup.Catalina.execute(Catalina.java:400) at org.apache.catalina.startup.Catalina.process(Catalina.java:180) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203) Caused by: org.apache.commons.logging.LogConfigurationException: No suitable Log constructor [Ljava.lang.Class;@1a679b7 for org.apache.commons.logging.impl.Log4 JLogger at org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogF actoryImpl.java:432) at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactory Impl.java:525) ... 12 more Caused by: java.lang.NoClassDefFoundError: org/apache/log4j/Logger at java.lang.Class.getDeclaredConstructors0(Native Method) at java.lang.Class.privateGetDeclaredConstructors(Class.java:1590) at java.lang.Class.getConstructor0(Class.java:1762) at java.lang.Class.getConstructor(Class.java:1002) at org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogF actoryImpl.java:429) ... 13 more If I put my log4J in the jakarta../shared/lib or WEB-INF/lib, Tomcat does startup. However, Struts fails to initialize giving an exception as follows: javax.servlet.ServletException: Error instantiating servlet class org.apache.struts.action.ActionServlet at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.ja va:9 1 2) ... - Root Cause - java.lang.ExceptionInInitializerError Caused by: org.apache.commons.logging.LogConfigurationException: org.apache.commons.logging.LogConfigurationException: No suitable Log constructor [Ljava.lang.Class;@3a5794 for org.apache.commons.logging.impl.Log4JLogger at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryIm pl.j a va:532) Caused by: org.apache.commons.logging.LogConfigurationException: No suitable Log constructor [Ljava.lang.Class;@3a5794 for org.apache.commons.logging.impl.Log4JLogger at org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFac tory I mpl.java:432) at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryIm pl.j a va:525) ... 28 more Caused by: java.lang.NoClassDefFoundError: org/apache/log4j/Logger at java.lang.Class.getDeclaredConstructors0(Native Method) at java.lang.Class.privateGetDeclaredConstructors(Class.java:1590) at java.lang.Class.getConstructor0(Class.java:1762) at java.lang.Class.getConstructor(Class.java:1002) at org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFac tory I mpl.java:429) ... 29 more What am I missing? Thanks! Mahesh - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the
Broken pipe in Servlet.sercice()
Hi, We have an error that occured several times each day. We use a servlet to send serialized data to a java client. It always append when the servlet sent a big list of objects : 2003-09-15 12:35:56 StandardWrapperValve[ApplicationObjectServlet]: Servlet.service() for servlet ApplicationObjectServlet threw exception java.io.IOException: Broken pipe at java.net.SocketOutputStream.socketWrite (SocketOutputStream.java) at java.net.SocketOutputStream.write(byte[],int,int) (SocketOutputStream.java:91) (pc 15) at org.apache.catalina.connector.ResponseBase.flushBuffer (ResponseBase.java:674) (pc 25) We use GZIPOutputStream to send the data. In archives, I found that other people have had the same problem but it came from the user that click the stop button in the browser. It cannot be the case here because it's during communication between client and server in java directly. Does anybody have an idea about the problem? Is there a limitation to the size of data that we can send by a socket? Cécile SAINT-MARTIN Ouest-France Tel. 77.24 mailto:[EMAIL PROTECTED] -- Les informations ou pièces jointes contenues dans ce message sont confidentielles. Seul le destinataire expressément visé peut en prendre connaissance. Toute autre personne qui en divulguera, diffusera ou prendra des copies sera passible de poursuites. La société Ouest-France décline en outre, toute responsabilité de quelque nature que ce soit au titre de ce message s'il a été altéré, déformé ou falsifié. -- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Broken pipe in Servlet.sercice()
Howdy, We use a servlet to send serialized data to a java client. It always append Post the relevant servlet code. Is there a limitation to the size of data that we can send by a socket? No. Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Jasper compile errors and IE
I have an issue with JSP compile errors not being displayed in the browser when I am using IE. The situation only seems to happen when I try to compile a JSP that has lots of errors. If I have a large JSP (50+ lines or so) and create one error (like leaving a ; off the end of a line early in the JSP), lots of errors will be generated because of that. After doing packet traces, I found that Jasper is repsonding with all of the errors in an HTTP 500 but, the status line contains all of the errors (attached below). From what I can tell, when IE receives a response like this, it seems to get part of it and then just whack the connection to the web server before it has received the entire error. IE then displays one of its stupid messages like action canceled or cannot find server or DNS error. I can do this same thing with Mozilla and I get the errors back fine (big surprise). If I hit a JSP that generates a small number of compile errors, I can get the errors back fine in both browsers. Since Jasper is already returning the error as content in the HTTP repsonse, does it also have to include the entire thing in the status line? Should I report this as a bug? Thanks for any help. Tony HTTP/1.1 500 Unable+to+compile+class+for+JSP%0A%0AAn+error+occurred+at+line%3A+%2D1+in+the+jsp+file%3A+null%0A%0AGenerated+servlet+error%3A%0A%5Bjavac%5D+Since+fork+is+true%2C+ignoring+compiler+setting%2E%0A%5Bjavac%5D+Compiling+1+source+file%0A%5Bjavac%5D+Since+fork+is+true%2C+ignoring+compiler+setting%2E%0A%5Bjavac%5D+C%3A%5CDOCUME%7E1%5COWNER%7E1%2ERED%5CLOCALS%7E1%5CTemp%5CJetty%5F0%5F0%5F0%5F0%5F8080%5F%5Fdemo%5Cjsp%5Clookup%5Fjsp%2Ejava%3A65%3A+%27%3B%27+expected%0A%5Bjavac%5D+string+ldapProtocol+%3D+%22ldap%22%0A%5Bjavac%5D+%5E%0A%5Bjavac%5D+C%3A%5CDOCUME%7E1%5COWNER%7E1%2ERED%5CLOCALS%7E1%5CTemp%5CJetty%5F0%5F0%5F0%5F0%5F8080%5F%5Fdemo%5Cjsp%5Clookup%5Fjsp%2Ejava%3A45%3A+package+com%2Estoneware%2Ebeans+does+not+exist%0A%5Bjavac%5D+++com%2Estoneware%2Ebeans%2EStonewareBean+swBean+%3D+null%3B%0A%5Bjavac%5D++%5E%0A%5Bjavac%5D+C%3A%5CDOCUME%7E1%5COWNER%7E1%2ERED%5CLOCALS%7E1%5CTemp%5CJetty%5F0%5F0%5F0%5F0%5F8080%5F%5Fdemo%5Cjsp%5Clookup%5Fjsp%2Ejava%3A47%3A+package+com%2Estoneware%2Ebeans+does+not+exist%0A%5Bjavac%5D+swBean+%3D+%28com%2Estoneware%2Ebeans%2EStonewareBean%29+pageContext%2EgetAttribute%28%22swBean%22%2C+PageContext%2EAPPLICATION%5FSCOPE%29%3B%0A%5Bjavac%5D++%5E%0A%5Bjavac%5D+C%3A%5CDOCUME%7E1%5COWNER%7E1%2ERED%5CLOCALS%7E1%5CTemp%5CJetty%5F0%5F0%5F0%5F0%5F8080%5F%5Fdemo%5Cjsp%5Clookup%5Fjsp%2Ejava%3A50%3A+package+com%2Estoneware%2Ebeans+does+not+exist%0A%5Bjavac%5D+swBean+%3D+%28com%2Estoneware%2Ebeans%2EStonewareBean%29+java%2Ebeans%2EBeans%2Einstantiate%28this%2EgetClass%28%29%2EgetClassLoader%28%29%2C+%22com%2Estoneware%2Ebeans%2EStonewareBean%22%29%3B%0A%5Bjavac%5D++%5E%0A%5Bjavac%5D+C%3A%5CDOCUME%7E1%5COWNER%7E1%2ERED%5CLOCALS%7E1%5CTemp%5CJetty%5F0%5F0%5F0%5F0%5F8080%5F%5Fdemo%5Cjsp%5Clookup%5Fjsp%2Ejava%3A65%3A+cannot+resolve+symbol%0A%5Bjavac%5D+symbol++%3A+class+string+%0A%5Bjavac%5D+location%3A+class+org%2Eapache%2Ejsp%2Elookup%5Fjsp%0A%5Bjavac%5D+string+ldapProtocol+%3D+%22ldap%22%0A%5Bjavac%5D+%5E%0A%5Bjavac%5D+C%3A%5CDOCUME%7E1%5COWNER%7E1%2ERED%5CLOCALS%7E1%5CTemp%5CJetty%5F0%5F0%5F0%5F0%5F8080%5F%5Fdemo%5Cjsp%5Clookup%5Fjsp%2Ejava%3A136%3A+cannot+resolve+symbol%0A%5Bjavac%5D+symbol++%3A+variable+ldapServer+%0A%5Bjavac%5D+location%3A+class+org%2Eapache%2Ejsp%2Elookup%5Fjsp%0A%5Bjavac%5D+env%2Eput%28+Context%2EPROVIDER%5FURL%2C+ldapProtocol+%2B+%22%3A%2F%2F%22+%2B+ldapServer+%29%3B%0A%5Bjavac%5D+++%5E%0A%5Bjavac%5D+6+errors%0A%0A%0A - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Jasper compile errors and IE
Try this: substituting the appropriate parameters telnet myserver 80 GET /mypage HTTP/1.1 Connection: close Host: myserver User-Agent: IE UA ID And see what the response is. If the repsonse looks like a valid HTTP Response - then its an IE bug. -Tim Tony Thompson wrote: I have an issue with JSP compile errors not being displayed in the browser when I am using IE. The situation only seems to happen when I try to compile a JSP that has lots of errors. If I have a large JSP (50+ lines or so) and create one error (like leaving a ; off the end of a line early in the JSP), lots of errors will be generated because of that. After doing packet traces, I found that Jasper is repsonding with all of the errors in an HTTP 500 but, the status line contains all of the errors (attached below). From what I can tell, when IE receives a response like this, it seems to get part of it and then just whack the connection to the web server before it has received the entire error. IE then displays one of its stupid messages like action canceled or cannot find server or DNS error. I can do this same thing with Mozilla and I get the errors back fine (big surprise). If I hit a JSP that generates a small number of compile errors, I can get the errors back fine in both browsers. Since Jasper is already returning the error as content in the HTTP repsonse, does it also have to include the entire thing in the status line? Should I report this as a bug? Thanks for any help. Tony HTTP/1.1 500 Unable+to+compile+class+for+JSP%0A%0AAn+error+occurred+at+line%3A+%2D1+in+the+jsp+file%3A+null%0A%0AGenerated+servlet+error%3A%0A%5Bjavac%5D+Since+fork+is+true%2C+ignoring+compiler+setting%2E%0A%5Bjavac%5D+Compiling+1+source+file%0A%5Bjavac%5D+Since+fork+is+true%2C+ignoring+compiler+setting%2E%0A%5Bjavac%5D+C%3A%5CDOCUME%7E1%5COWNER%7E1%2ERED%5CLOCALS%7E1%5CTemp%5CJetty%5F0%5F0%5F0%5F0%5F8080%5F%5Fdemo%5Cjsp%5Clookup%5Fjsp%2Ejava%3A65%3A+%27%3B%27+expected%0A%5Bjavac%5D+string+ldapProtocol+%3D+%22ldap%22%0A%5Bjavac%5D+%5E%0A%5Bjavac%5D+C%3A%5CDOCUME%7E1%5COWNER%7E1%2ERED%5CLOCALS%7E1%5CTemp%5CJetty%5F0%5F0%5F0%5F0%5F8080%5F%5Fdemo%5Cjsp%5Clookup%5Fjsp%2Ejava%3A45%3A+package+com%2Estoneware%2Ebeans+does+not+exist%0A%5Bjavac%5D+++com%2Estoneware%2Ebeans%2EStonewareBean+swBean+%3D+null%3B%0A%5Bjavac%5D++%5E%0A%5Bjavac%5D+C%3A%5CDOCUME%7E1%5COWNER%7E1%2ERED%5CLOCALS%7E1%5CTemp%5CJet ty%5F0%5F0%5F0%5F0%5F8080%5F%5Fdemo%5Cjsp%5Clookup%5Fjsp%2Ejava%3A47%3A+package+com%2Estoneware%2Ebeans+does+not+exist%0A%5Bjavac%5D+swBean+%3D+%28com%2Estoneware%2Ebeans%2EStonewareBean%29+pageContext%2EgetAttribute%28%22swBean%22%2C+PageContext%2EAPPLICATION%5FSCOPE%29%3B%0A%5Bjavac%5D++%5E%0A%5Bjavac%5D+C%3A%5CDOCUME%7E1%5COWNER%7E1%2ERED%5CLOCALS%7E1%5CTemp%5CJetty%5F0%5F0%5F0%5F0%5F8080%5F%5Fdemo%5Cjsp%5Clookup%5Fjsp%2Ejava%3A50%3A+package+com%2Estoneware%2Ebeans+does+not+exist%0A%5Bjavac%5D+swBean+%3D+%28com%2Estoneware%2Ebeans%2EStonewareBean%29+java%2Ebeans%2EBeans%2Einstantiate%28this%2EgetClass%28%29%2EgetClassLoader%28%29%2C+%22com%2Estoneware%2Ebeans%2EStonewareBean%22%29%3B%0A%5Bjavac%5D++%5E%0A%5Bjavac%5D+C%3A%5CDOCUME%7E1%5COWNER%7E1%2ERED%5CLOCALS%7E1%5CTemp%5CJetty%5F0%5F0%5F0%5F0%5F8080%5F%5Fdemo%5Cjsp%5Clookup%5Fjsp%2Ejava%3A65%3A+cannot+r esolve+symbol%0A%5Bjavac%5D+symbol++%3A+class+string+%0A%5Bjav ac%5D+location%3A+class+org%2Eapache%2Ejsp%2Elookup%5Fjsp%0A%5Bjavac%5D+string+ldapProtocol+%3D+%22ldap%22%0A%5Bjavac%5D+%5E%0A%5Bjavac%5D+C%3A%5CDOCUME%7E1%5COWNER%7E1%2ERED%5CLOCALS%7E1%5CTemp%5CJetty%5F0%5F0%5F0%5F0%5F8080%5F%5Fdemo%5Cjsp%5Clookup%5Fjsp%2Ejava%3A136%3A+cannot+resolve+symbol%0A%5Bjavac%5D+symbol++%3A+variable+ldapServer+%0A%5Bjavac%5D+location%3A+class+org%2Eapache%2Ejsp%2Elookup%5Fjsp%0A%5Bjavac%5D+env%2Eput%28+Context%2EPROVIDER%5FURL%2C+ldapProtocol+%2B+%22%3A%2F%2F%22+%2B+ldapServer+%29%3B%0A%5Bjavac%5D+++%5E%0A%5Bjavac%5D+6+errors%0A%0A%0A - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: destroy() is not called when Context is reloaded
You can find the source here: http://www.servlets.com/jservlet/examples/ch10/ChatServlet.java The only thing I added is: public void destroy() { log(This servlet should be closed); } And I replaced one or two deprecated method-calls as described in sun's javadocs. These replacements shouldn´t hurt, I think. thanks, Philipp -Ursprüngliche Nachricht- Von: Shapira, Yoav [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 24. September 2003 14:50 An: Tomcat Users List Betreff: RE: destroy() is not called when Context is reloaded Howdy, Maybe if you post your servlet's code we can help you.. Yoav Shapira Millennium ChemInformatics -Original Message- From: Philipp Leusmann [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 24, 2003 7:45 AM To: [EMAIL PROTECTED] Subject: destroy() is not called when Context is reloaded Hi, I use a servlet as a chat-server which uses a blocking doGet()-method. (I am using the chat-server-example from the book Java Servlet Programming). To make sure the context can be reloaded I included the destroy()-method in the servlet to remove all locks. The problem is, that the destroy()-method is not called (It should log a message). Is this due to the blocking doGet()? Is there a way to set a timeout when the destroy()-method should be called no matter the request-handling is done or not? I think I waited for 10 minutes or so, but destroy() wasn´t called. BTW, I am using Tomcat 4.0.6 (The one integrated into Netbeans). Is there a way to gracefully close the servlet? As far as I can see it cannot be done in the ContextListener since the servlets are closed before the ContextListener is called. Would be great if someone could help me. thanks, Philipp - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
quick question
Hi, Can I envoke jsp from outside of the application directory. For example, I have /var/tomcat4/webapps/application/some.jsp. Can I put some.jsp in /home/apache/ (my apache docroot) and have it still work? Thanks, Steve - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: destroy() is not called when Context is reloaded
Howdy, Does RemoteDaemonHttpServlet extend HttpServlet? Yoav Shapira Millennium ChemInformatics -Original Message- From: Philipp Leusmann [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 24, 2003 9:29 AM To: Tomcat Users List Subject: AW: destroy() is not called when Context is reloaded You can find the source here: http://www.servlets.com/jservlet/examples/ch10/ChatServlet.java The only thing I added is: public void destroy() { log(This servlet should be closed); } And I replaced one or two deprecated method-calls as described in sun's javadocs. These replacements shouldn´t hurt, I think. thanks, Philipp -Ursprüngliche Nachricht- Von: Shapira, Yoav [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 24. September 2003 14:50 An: Tomcat Users List Betreff: RE: destroy() is not called when Context is reloaded Howdy, Maybe if you post your servlet's code we can help you.. Yoav Shapira Millennium ChemInformatics -Original Message- From: Philipp Leusmann [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 24, 2003 7:45 AM To: [EMAIL PROTECTED] Subject: destroy() is not called when Context is reloaded Hi, I use a servlet as a chat-server which uses a blocking doGet()-method. (I am using the chat-server-example from the book Java Servlet Programming). To make sure the context can be reloaded I included the destroy()-method in the servlet to remove all locks. The problem is, that the destroy()-method is not called (It should log a message). Is this due to the blocking doGet()? Is there a way to set a timeout when the destroy()-method should be called no matter the request-handling is done or not? I think I waited for 10 minutes or so, but destroy() wasn´t called. BTW, I am using Tomcat 4.0.6 (The one integrated into Netbeans). Is there a way to gracefully close the servlet? As far as I can see it cannot be done in the ContextListener since the servlets are closed before the ContextListener is called. Would be great if someone could help me. thanks, Philipp - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE : Broken pipe in Servlet.sercice()
Code for ApplicationObjectServlet : private void recupererListe( HttpServletRequest request, HttpServletResponse response, String nomObjet) throws IOException { try { List listeDonnee = (List) UtilsCom.litSurFluxZippe(request.getInputStream()); ServletContext context = getServletContext(); listeDonnee = (List) context.getAttribute(Liste + nomObjet); ByteCounterOutputStream byteCounterStream = new ByteCounterOutputStream(response.getOutputStream()); int start = byteCounterStream.bytesWrittenSoFar(); UtilsCom.ecritSurFluxZippe((Serializable)listeDonnee, byteCounterStream); int objectSize = byteCounterStream.bytesWrittenSoFar() - start; log.debug(Taille de l'objet serialise : + objectSize + octets); _nbBytesWritten += objectSize; } catch (ClassNotFoundException ex) { if (log.isEnabledFor(Priority.ERROR)) { log.error(ex.toString()); } } } ByteCounterOutputStream is just a class that inherit from DataOutputStream and that permits to know the number of bytes written. Here is the code for UtilsCom : public static void ecritSurFluxZippe(Serializable objectToSerialize, OutputStream out) throws java.io.IOException{ GZIPOutputStream zipStream = new GZIPOutputStream(out); ObjectOutputStream objectOutput = new ObjectOutputStream(zipStream); objectOutput.writeObject(objectToSerialize); objectOutput.flush(); objectOutput.close(); } Cécile SAINT-MARTIN Ouest-France Tel. 77.24 mailto:[EMAIL PROTECTED] Howdy, We use a servlet to send serialized data to a java client. It always append Post the relevant servlet code. Is there a limitation to the size of data that we can send by a socket? No. Yoav Shapira -- Les informations ou pièces jointes contenues dans ce message sont confidentielles. Seul le destinataire expressément visé peut en prendre connaissance. Toute autre personne qui en divulguera, diffusera ou prendra des copies sera passible de poursuites. La société Ouest-France décline en outre, toute responsabilité de quelque nature que ce soit au titre de ce message s'il a été altéré, déformé ou falsifié. -- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: destroy() is not called when Context is reloaded
yes http://www.servlets.com/cos/javadoc/com/oreilly/servlet/RemoteDaemonHttpServ let.html -Ursprüngliche Nachricht- Von: Shapira, Yoav [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 24. September 2003 15:34 An: Tomcat Users List Betreff: RE: destroy() is not called when Context is reloaded Howdy, Does RemoteDaemonHttpServlet extend HttpServlet? Yoav Shapira Millennium ChemInformatics -Original Message- From: Philipp Leusmann [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 24, 2003 9:29 AM To: Tomcat Users List Subject: AW: destroy() is not called when Context is reloaded You can find the source here: http://www.servlets.com/jservlet/examples/ch10/ChatServlet.java The only thing I added is: public void destroy() { log(This servlet should be closed); } And I replaced one or two deprecated method-calls as described in sun's javadocs. These replacements shouldn´t hurt, I think. thanks, Philipp -Ursprüngliche Nachricht- Von: Shapira, Yoav [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 24. September 2003 14:50 An: Tomcat Users List Betreff: RE: destroy() is not called when Context is reloaded Howdy, Maybe if you post your servlet's code we can help you.. Yoav Shapira Millennium ChemInformatics -Original Message- From: Philipp Leusmann [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 24, 2003 7:45 AM To: [EMAIL PROTECTED] Subject: destroy() is not called when Context is reloaded Hi, I use a servlet as a chat-server which uses a blocking doGet()-method. (I am using the chat-server-example from the book Java Servlet Programming). To make sure the context can be reloaded I included the destroy()-method in the servlet to remove all locks. The problem is, that the destroy()-method is not called (It should log a message). Is this due to the blocking doGet()? Is there a way to set a timeout when the destroy()-method should be called no matter the request-handling is done or not? I think I waited for 10 minutes or so, but destroy() wasn´t called. BTW, I am using Tomcat 4.0.6 (The one integrated into Netbeans). Is there a way to gracefully close the servlet? As far as I can see it cannot be done in the ContextListener since the servlets are closed before the ContextListener is called. Would be great if someone could help me. thanks, Philipp - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: destroy() is not called when Context is reloaded
Howdy, Then I don't know why destroy() is not being called. I certainly can't reproduce it, as I have many servlet in many webapps whose destroy method properly gets called on context reload, in both tomcat 4.1.x and 5.0.x. Sorry... Yoav Shapira Millennium ChemInformatics -Original Message- From: Philipp Leusmann [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 24, 2003 9:46 AM To: Tomcat Users List Subject: AW: destroy() is not called when Context is reloaded yes http://www.servlets.com/cos/javadoc/com/oreilly/servlet/RemoteDaemonHttpSer v let.html -Ursprüngliche Nachricht- Von: Shapira, Yoav [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 24. September 2003 15:34 An: Tomcat Users List Betreff: RE: destroy() is not called when Context is reloaded Howdy, Does RemoteDaemonHttpServlet extend HttpServlet? Yoav Shapira Millennium ChemInformatics -Original Message- From: Philipp Leusmann [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 24, 2003 9:29 AM To: Tomcat Users List Subject: AW: destroy() is not called when Context is reloaded You can find the source here: http://www.servlets.com/jservlet/examples/ch10/ChatServlet.java The only thing I added is: public void destroy() { log(This servlet should be closed); } And I replaced one or two deprecated method-calls as described in sun's javadocs. These replacements shouldn´t hurt, I think. thanks, Philipp -Ursprüngliche Nachricht- Von: Shapira, Yoav [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 24. September 2003 14:50 An: Tomcat Users List Betreff: RE: destroy() is not called when Context is reloaded Howdy, Maybe if you post your servlet's code we can help you.. Yoav Shapira Millennium ChemInformatics -Original Message- From: Philipp Leusmann [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 24, 2003 7:45 AM To: [EMAIL PROTECTED] Subject: destroy() is not called when Context is reloaded Hi, I use a servlet as a chat-server which uses a blocking doGet()- method. (I am using the chat-server-example from the book Java Servlet Programming). To make sure the context can be reloaded I included the destroy()-method in the servlet to remove all locks. The problem is, that the destroy()-method is not called (It should log a message). Is this due to the blocking doGet()? Is there a way to set a timeout when the destroy()-method should be called no matter the request-handling is done or not? I think I waited for 10 minutes or so, but destroy() wasn´t called. BTW, I am using Tomcat 4.0.6 (The one integrated into Netbeans). Is there a way to gracefully close the servlet? As far as I can see it cannot be done in the ContextListener since the servlets are closed before the ContextListener is called. Would be great if someone could help me. thanks, Philipp - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is
Re: IIS5+Tomcat4.1 integration problem
What do you have in your registry? Can you make an export and send it to the list? Mats Kareem Mahgoub wrote: Hi all, Sorry for the repeated question. I've seached the archive and read many howtos and my problem still persists. The problem is that the isapi filter is not working i.e. red arrow in IIS. I tried isapi_redirector2.dll redirector.dll from jakarta site following the howto of the site, yet am not even getting the log file. If anybody succeeded in the integration and can provide me with the configuration file and the redirector used and the registry entry, I would appreciated vey much. Best Regards, Kareem Mahgoub - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: destroy() is not called when Context is reloaded
even if the service-method is still running? Maybe I´ll have to try another tomcat-version... -Ursprüngliche Nachricht- Von: Shapira, Yoav [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 24. September 2003 15:47 An: Tomcat Users List Betreff: RE: destroy() is not called when Context is reloaded Howdy, Then I don't know why destroy() is not being called. I certainly can't reproduce it, as I have many servlet in many webapps whose destroy method properly gets called on context reload, in both tomcat 4.1.x and 5.0.x. Sorry... Yoav Shapira Millennium ChemInformatics -Original Message- From: Philipp Leusmann [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 24, 2003 9:46 AM To: Tomcat Users List Subject: AW: destroy() is not called when Context is reloaded yes http://www.servlets.com/cos/javadoc/com/oreilly/servlet/RemoteDae monHttpSer v let.html -Ursprüngliche Nachricht- Von: Shapira, Yoav [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 24. September 2003 15:34 An: Tomcat Users List Betreff: RE: destroy() is not called when Context is reloaded Howdy, Does RemoteDaemonHttpServlet extend HttpServlet? Yoav Shapira Millennium ChemInformatics -Original Message- From: Philipp Leusmann [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 24, 2003 9:29 AM To: Tomcat Users List Subject: AW: destroy() is not called when Context is reloaded You can find the source here: http://www.servlets.com/jservlet/examples/ch10/ChatServlet.java The only thing I added is: public void destroy() { log(This servlet should be closed); } And I replaced one or two deprecated method-calls as described in sun's javadocs. These replacements shouldn´t hurt, I think. thanks, Philipp -Ursprüngliche Nachricht- Von: Shapira, Yoav [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 24. September 2003 14:50 An: Tomcat Users List Betreff: RE: destroy() is not called when Context is reloaded Howdy, Maybe if you post your servlet's code we can help you.. Yoav Shapira Millennium ChemInformatics -Original Message- From: Philipp Leusmann [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 24, 2003 7:45 AM To: [EMAIL PROTECTED] Subject: destroy() is not called when Context is reloaded Hi, I use a servlet as a chat-server which uses a blocking doGet()- method. (I am using the chat-server-example from the book Java Servlet Programming). To make sure the context can be reloaded I included the destroy()-method in the servlet to remove all locks. The problem is, that the destroy()-method is not called (It should log a message). Is this due to the blocking doGet()? Is there a way to set a timeout when the destroy()-method should be called no matter the request-handling is done or not? I think I waited for 10 minutes or so, but destroy() wasn´t called. BTW, I am using Tomcat 4.0.6 (The one integrated into Netbeans). Is there a way to gracefully close the servlet? As far as I can see it cannot be done in the ContextListener since the servlets are closed before the ContextListener is called. Would be great if someone could help me. thanks, Philipp - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL
RE: destroy() is not called when Context is reloaded
If I were to add a jar in that webapp's WEB-INF lib dir during tomcat execution, I have seen the Servlet destroy() method get called. however, I think when you shutdown tomcat (even properly, meaning with the catalina stop), that the destroy() method does not get called. I guess another solution could be to use the ServletContextListener interface: http://java.sun.com/products/servlet/2.3/javadoc/javax/servlet/ServletContex tListener.html -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 24, 2003 9:47 AM To: Tomcat Users List Subject: RE: destroy() is not called when Context is reloaded Howdy, Then I don't know why destroy() is not being called. I certainly can't reproduce it, as I have many servlet in many webapps whose destroy method properly gets called on context reload, in both tomcat 4.1.x and 5.0.x. Sorry... Yoav Shapira Millennium ChemInformatics -Original Message- From: Philipp Leusmann [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 24, 2003 9:46 AM To: Tomcat Users List Subject: AW: destroy() is not called when Context is reloaded yes http://www.servlets.com/cos/javadoc/com/oreilly/servlet/RemoteDaemonHttpSer v let.html -Ursprüngliche Nachricht- Von: Shapira, Yoav [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 24. September 2003 15:34 An: Tomcat Users List Betreff: RE: destroy() is not called when Context is reloaded Howdy, Does RemoteDaemonHttpServlet extend HttpServlet? Yoav Shapira Millennium ChemInformatics -Original Message- From: Philipp Leusmann [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 24, 2003 9:29 AM To: Tomcat Users List Subject: AW: destroy() is not called when Context is reloaded You can find the source here: http://www.servlets.com/jservlet/examples/ch10/ChatServlet.java The only thing I added is: public void destroy() { log(This servlet should be closed); } And I replaced one or two deprecated method-calls as described in sun's javadocs. These replacements shouldn´t hurt, I think. thanks, Philipp -Ursprüngliche Nachricht- Von: Shapira, Yoav [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 24. September 2003 14:50 An: Tomcat Users List Betreff: RE: destroy() is not called when Context is reloaded Howdy, Maybe if you post your servlet's code we can help you.. Yoav Shapira Millennium ChemInformatics -Original Message- From: Philipp Leusmann [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 24, 2003 7:45 AM To: [EMAIL PROTECTED] Subject: destroy() is not called when Context is reloaded Hi, I use a servlet as a chat-server which uses a blocking doGet()- method. (I am using the chat-server-example from the book Java Servlet Programming). To make sure the context can be reloaded I included the destroy()-method in the servlet to remove all locks. The problem is, that the destroy()-method is not called (It should log a message). Is this due to the blocking doGet()? Is there a way to set a timeout when the destroy()-method should be called no matter the request-handling is done or not? I think I waited for 10 minutes or so, but destroy() wasn´t called. BTW, I am using Tomcat 4.0.6 (The one integrated into Netbeans). Is there a way to gracefully close the servlet? As far as I can see it cannot be done in the ContextListener since the servlets are closed before the ContextListener is called. Would be great if someone could help me. thanks, Philipp - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this
RE: IIS5+Tomcat4.1 integration problem
Do you have the libapr.dll and libaprutil.dll files in the same directory as the isapi_redirector2.dll? -Original Message- From: Mats Andersson [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 24, 2003 9:50 AM To: Tomcat Users List Subject: Re: IIS5+Tomcat4.1 integration problem What do you have in your registry? Can you make an export and send it to the list? Mats Kareem Mahgoub wrote: Hi all, Sorry for the repeated question. I've seached the archive and read many howtos and my problem still persists. The problem is that the isapi filter is not working i.e. red arrow in IIS. I tried isapi_redirector2.dll redirector.dll from jakarta site following the howto of the site, yet am not even getting the log file. If anybody succeeded in the integration and can provide me with the configuration file and the redirector used and the registry entry, I would appreciated vey much. Best Regards, Kareem Mahgoub - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: peer not authenticated
Hi... It is truth, I had installed 4.1.24 version and it haven't occured any error. It seems that 4.1.27 version is quite unstable yet. I´m thankful for your help, []'s Kleber - Original Message - From: Bill Barker [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, September 20, 2003 3:06 AM Subject: Re: peer not authenticated a) Grab the JSSESupport.java file from the CVS (using the coyote_10 branch), and compile it into server/classes. b) wait for the 4.1.28 release. Kleber [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi, Thanks again for your attention, and help... I'm with a doubt. You said that there was nothing wrong, however the warning message always appears. Won't this leave the webpage slower with lots of person accessing it? Is there any way to avoid this message appearing? I can´t leave this messages appears. []'s Kleber - Original Message - From: Bill Barker [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, September 19, 2003 1:25 AM Subject: Re: peer not authenticated It looks like I fixed it after 4.1.27. The message you are seeing is simply a debugging message that got left in the code. It doesn't mean that there is anything wrong with your keystore, or even that anything unusual is happening. All that it is saying is the the browser didn't send a certificate (which is normal when you have clientAuth=false). Kleber [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi Bill, For a test, I created a new keystore file that use the keytool from java: %JAVA_HOME%\bin\keytool -genkey -alias tomcat -keyalg RSA the password is: kleber My server.xml file is like this: Connector className=org.apache.coyote.tomcat4.CoyoteConnector redirectPort=443 bufferSize=2048 serverSocketTimeout=0 connectionUploadTimeout=30 port=443 connectionTimeout=6 scheme=https enableLookups=true secure=true protocolHandlerClassName=org.apache.coyote.http11.Http11Protocol debug=0 maxKeepAliveRequests=100 disableUploadTimeout=true proxyPort=0 maxProcessors=75 minProcessors=5 tcpNoDelay=true acceptCount=100 useURIValidationHack=false compression=off connectionLinger=-1 Factory className=org.apache.coyote.tomcat4.CoyoteServerSocketFactory rootFile=C:\WINDOWS\root.pem keystoreType=JKS keystorePass=kleber clientAuth=false randomFile=C:\WINDOWS\random.pem keystoreFile=c:\Tomcat\keystore\.keystore protocol=TLS/ /Connector As I ever had said, the page with https:// load normally at the browser, however at DOS windows appears this error: [WARN] Http11Processor - -Exception getting SSL attributes javax.net.ssl.SSLPeerUnverifiedException: peer not authenticatedjavax.net.ssl.SSLPeerUnverifiedException: peer not authenticated at com.sun.net.ssl.internal.ssl.SSLSessionImpl.getPeerCertificateChain(DashoA62 75) at org.apache.tomcat.util.net.jsse.JSSESupport.getX509Certificates(JSSESupport. java:113) at org.apache.tomcat.util.net.jsse.JSSESupport.getPeerCertificateChain(JSSESupp ort.java:161) at org.apache.coyote.http11.Http11Processor.action(Http11Processor.java:748) at org.apache.coyote.Response.action(Response.java:222) at org.apache.coyote.tomcat4.CoyoteAdapter.postParseRequest(CoyoteAdapter.java: 321) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:221) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:601) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne ction(Http11Protocol.java:392) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav a:619) at java.lang.Thread.run(Thread.java:484) I'm also attaching my keystore file I´m thankful for your attention... Kleber - Original Message - From: Bill Barker [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, September 18, 2003 12:03 AM Subject: Re: peer not authenticated That message is supposed to be only logged at 'debug' level. Could you post more of the stack trace, so I can see how to plug this message under normal use? The error itself is harmless (it's just telling you that the user didn't send a client cert, which is normal). Kleber [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi, My name is Kleber, I am brazilian and
RE: How to configure Tomcat to acceppt PUT requests for servlets?
Howdy, Hey I just stumbled on this post which may help: http://dotnetguy.techieswithcats.com/archives/003089.shtml By the way, how do you simulate a PUT request for testing? Yoav Shapira Millennium ChemInformatics -Original Message- From: Jürgen Schwarz [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 24, 2003 1:32 AM To: 'Tomcat Users List' Subject: AW: How to configure Tomcat to acceppt PUT requests for servlets? Yes, sorry, I meant PUT, but I have already a doPut() method in my servlet but it is never called because my calling client receives an error 405 from Tomcat 4.1.27 when setting the requestMethod to PUT. I use the 'standard' Tomcat server.xml configuration plus entries for my servlet but I have not configured any security constraints for my servlet. I have no idea what could be wrong... -Ursprüngliche Nachricht- Von: Shapira, Yoav [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 23. September 2003 15:56 An: Tomcat Users List Betreff: RE: How to configure Tomcat to acceppt PUT requests for servlets? Howdy, Assuming you meant PUT in the message just like in your subject: simply add a doPut method to your servlet. Tomcat won't reject this unless you have a security constraint only allowing certain methods and rejecting PUT. Yoav Shapira Millennium ChemInformatics -Original Message- From: Jürgen Schwarz [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 23, 2003 10:52 AM To: [EMAIL PROTECTED] Subject: How to configure Tomcat to acceppt PUT requests for servlets? Hi, how do I configure Tomcat 4.x to accept POST requests for my servlet? I always receive HTTP error 405 Method not allowed. POST works without problems. Regards, Juergen - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Stop Tomcat Remotely
Is there any way to stop tomcat from remote computer ? Tomcat is run as windows service. I know that it can be done through the windows UI ( if you have rights ), can it be somehow done through scripts ? Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: destroy() is not called when Context is reloaded
Yes I am only talking about context-reloading. and I already thought about setting a Context.Attribute in the ServletContextListener, but the ServletContextListener is not called if there are still any service-methods working. So it would of no use for me. also I just have experimented with destroy(). It IS called when the service-method is not working. But as soon as I place a for(;;) ; in the service-method, destroy is never called. Philipp -Ursprüngliche Nachricht- Von: Robert Priest [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 24. September 2003 15:53 An: 'Tomcat Users List' Betreff: RE: destroy() is not called when Context is reloaded If I were to add a jar in that webapp's WEB-INF lib dir during tomcat execution, I have seen the Servlet destroy() method get called. however, I think when you shutdown tomcat (even properly, meaning with the catalina stop), that the destroy() method does not get called. I guess another solution could be to use the ServletContextListener interface: http://java.sun.com/products/servlet/2.3/javadoc/javax/servlet/Ser vletContex tListener.html -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 24, 2003 9:47 AM To: Tomcat Users List Subject: RE: destroy() is not called when Context is reloaded Howdy, Then I don't know why destroy() is not being called. I certainly can't reproduce it, as I have many servlet in many webapps whose destroy method properly gets called on context reload, in both tomcat 4.1.x and 5.0.x. Sorry... Yoav Shapira Millennium ChemInformatics -Original Message- From: Philipp Leusmann [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 24, 2003 9:46 AM To: Tomcat Users List Subject: AW: destroy() is not called when Context is reloaded yes http://www.servlets.com/cos/javadoc/com/oreilly/servlet/RemoteDae monHttpSer v let.html -Ursprüngliche Nachricht- Von: Shapira, Yoav [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 24. September 2003 15:34 An: Tomcat Users List Betreff: RE: destroy() is not called when Context is reloaded Howdy, Does RemoteDaemonHttpServlet extend HttpServlet? Yoav Shapira Millennium ChemInformatics -Original Message- From: Philipp Leusmann [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 24, 2003 9:29 AM To: Tomcat Users List Subject: AW: destroy() is not called when Context is reloaded You can find the source here: http://www.servlets.com/jservlet/examples/ch10/ChatServlet.java The only thing I added is: public void destroy() { log(This servlet should be closed); } And I replaced one or two deprecated method-calls as described in sun's javadocs. These replacements shouldn´t hurt, I think. thanks, Philipp -Ursprüngliche Nachricht- Von: Shapira, Yoav [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 24. September 2003 14:50 An: Tomcat Users List Betreff: RE: destroy() is not called when Context is reloaded Howdy, Maybe if you post your servlet's code we can help you.. Yoav Shapira Millennium ChemInformatics -Original Message- From: Philipp Leusmann [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 24, 2003 7:45 AM To: [EMAIL PROTECTED] Subject: destroy() is not called when Context is reloaded Hi, I use a servlet as a chat-server which uses a blocking doGet()- method. (I am using the chat-server-example from the book Java Servlet Programming). To make sure the context can be reloaded I included the destroy()-method in the servlet to remove all locks. The problem is, that the destroy()-method is not called (It should log a message). Is this due to the blocking doGet()? Is there a way to set a timeout when the destroy()-method should be called no matter the request-handling is done or not? I think I waited for 10 minutes or so, but destroy() wasn´t called. BTW, I am using Tomcat 4.0.6 (The one integrated into Netbeans). Is there a way to gracefully close the servlet? As far as I can see it cannot be done in the ContextListener since the servlets are closed before the ContextListener is called. Would be great if someone could help me. thanks, Philipp - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail
Re: quick question
Hi Steven, You should be able to if your URI directive is something like, [uri:localhost/*.jsp]. The other thing that you need to do is set up the proper context for the JSP, so if you want to place them in /home/apache, you'll need to add the proper context directive in your server.xml file. Atreya Steven Garrett wrote: Hi, Can I envoke jsp from outside of the application directory. For example, I have /var/tomcat4/webapps/application/some.jsp. Can I put some.jsp in /home/apache/ (my apache docroot) and have it still work? Thanks, Steve - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Developer Greenfield Research Inc. atreya(AT)greenfieldresearch(DOT)ca (902)422-9426 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
(tomcat 4) absolute links in dir listing
Hi I'm building an 'agent' in front of our http filesystem. it checks every request, does some smart things and dispatches to the file requested in DefaultServlet. if I dispatch to a directory, the DefaultServlet returns a dirlisting. I like this a lot. but the links in it are abolute links, so the next click bypasses my agent. 'plain' Apache uses relative links. why did tomcat4 decide not to do that ? any easy way I can turn it off ? (without .. rebuilding DefaultServlet :-) thanks, *-pike Internet search engines that take money from Web sites in exchange for prominent placement should make that practice clearer to Web users, federal regulators said Friday.Many search engine Web sites, including AltaVista, LookSmart and AOL Search, give preferred placement to paid advertisers. The Federal Trade Commission said that prime space can confuse Web users who are looking for the best response to their search, rather than ads for sites that paid up front. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Configuring a JDBC Data Source
at jakarta.apache.org from their binary downloads page. On 09/24/2003 01:05 PM Renda, Michael wrote: I've got the commons-dbcp.jar file in the common/lib directory. Where do I find the commons-pool.jar file? Mike -Original Message- From: Adam Hardy [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 24, 2003 4:20 AM To: Tomcat Users List Subject: Re: Configuring a JDBC Data Source sounds like you need the commons-dbcp and commons-pool jar files as well. Adam On 09/24/2003 01:52 AM Renda, Michael wrote: I'm trying to configure a JDBC Data Source for a Tomcat 4.1.27 installation. I used the Admin tool which wrote the following entry to my server.xml file: GlobalNamingResources Resource name=jdbc/connection scope=Shareable type=javax.sql.DataSource/ ResourceParams name=jdbc/connection parameter namemaxWait/name value5000/value /parameter parameter namemaxActive/name value4/value /parameter parameter namepassword/name valuesecret/value /parameter parameter nameurl/name valuejdbc:microsoft:sqlserver:192.168.0.2:1433/value /parameter parameter namedriverClassName/name valuecom.microsoft.jdbc.sqlserver.SQLServerDriver/value /parameter parameter namemaxIdle/name value2/value /parameter parameter nameusername/name valuesa/value /parameter /ResourceParams /GlobalNamingResources I have placed the jar files for the sql/server jdbc driver in the common/lib directory. Now Tomcat won't start up. I have the following message in my log: INFO: Initializing Coyote HTTP/1.1 on port 8080 Exception during startup processing java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav a:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor Impl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203) Caused by: java.lang.NoClassDefFoundError: org/apache/commons/pool/impl/GenericObjectPool at org.apache.commons.dbcp.BasicDataSourceFactory.getObjectInstance(BasicDa taSourceFactory.java:121) at org.apache.naming.factory.ResourceFactory.getObjectInstance(ResourceFact ory.java:186) at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:301) at org.apache.naming.NamingContext.lookup(NamingContext.java:834) at org.apache.naming.NamingContext.lookup(NamingContext.java:194) at org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.createMBeans (GlobalResourcesLifecycleListener.java:214) at org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.createMBeans (GlobalResourcesLifecycleListener.java:220) at org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.createMBeans (GlobalResourcesLifecycleListener.java:181) at org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.lifecycleEve nt(GlobalResourcesLifecycleListener.java:149) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSu pport.java:166) at org.apache.catalina.core.StandardServer.start(StandardServer.java:2183) at org.apache.catalina.startup.Catalina.start(Catalina.java:512) at org.apache.catalina.startup.Catalina.execute(Catalina.java:400) at org.apache.catalina.startup.Catalina.process(Catalina.java:180) ... 5 more Can anyone tell me what I'm doing wrong here? Thanks, Mike Renda - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- struts 1.1 + tomcat 4.1.27 + java 1.4.2 Linux 2.4.20 RH9 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How to configure Tomcat to acceppt PUT requests for servlets?
Howdy, Please ignore my earlier response, WebDAV has nothing to do with it. I just verified PUT requests work fine in tomcat 4.1.27. I'm attaching a WAR with a servlet and a test class to show this is true. I'm also concurring with Mark Thomas in verifying bug 12938 (http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12938) is working. Yoav Shapira Millennium ChemInformatics -Original Message- From: Jürgen Schwarz [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 24, 2003 1:32 AM To: 'Tomcat Users List' Subject: AW: How to configure Tomcat to acceppt PUT requests for servlets? Yes, sorry, I meant PUT, but I have already a doPut() method in my servlet but it is never called because my calling client receives an error 405 from Tomcat 4.1.27 when setting the requestMethod to PUT. I use the 'standard' Tomcat server.xml configuration plus entries for my servlet but I have not configured any security constraints for my servlet. I have no idea what could be wrong... -Ursprüngliche Nachricht- Von: Shapira, Yoav [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 23. September 2003 15:56 An: Tomcat Users List Betreff: RE: How to configure Tomcat to acceppt PUT requests for servlets? Howdy, Assuming you meant PUT in the message just like in your subject: simply add a doPut method to your servlet. Tomcat won't reject this unless you have a security constraint only allowing certain methods and rejecting PUT. Yoav Shapira Millennium ChemInformatics -Original Message- From: Jürgen Schwarz [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 23, 2003 10:52 AM To: [EMAIL PROTECTED] Subject: How to configure Tomcat to acceppt PUT requests for servlets? Hi, how do I configure Tomcat 4.x to accept POST requests for my servlet? I always receive HTTP error 405 Method not allowed. POST works without problems. Regards, Juergen - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Is struts.jar mandatory for tomcat 4.1.24 ?
You know I think Sarika must have got thrown in the deep end. Perhaps he can demand they train him up, or at least pay for a few books! On 09/24/2003 02:51 PM Shapira, Yoav wrote: Howdy, Dude, get a servlets book. If you have no idea on how to use the web.xml you need some more serious guidance. Yoav Shapira Millennium ChemInformatics -Original Message- From: Sarika N Inamdar [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 23, 2003 11:15 PM To: 'Tomcat Users List' Subject: RE: Is struts.jar mandatory for tomcat 4.1.24 ? Hi Adam and Yoav, Thanks much for the inputs. In our tomcat deployment we do not have admin.xml at all since we are not using any admin applications. Web.xml under webapps/ROOT/WEB-INF/lib has not been modified manually. It is generated when we build ROOT.war. Is there a way we can control as to how the web.xml be generated. I've no idea on how to use the web.xml. Am not sure why and how the actionServlet has come into web.xml Please let me know how can I avoid having this struts action Servlet in my web.xml. Because I thought a copy of web.xml is generated during ROOT.war deployment. Any light on this would be really helpful. Thanks, Sarika -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 23, 2003 6:29 PM To: Tomcat Users List Subject: RE: Is struts.jar mandatory for tomcat 4.1.24 ? Howdy, Why do you have the struts action servlet defined in web.xml and don't have the struts jar? Neither is required for tomcat, but if you have one you need to have the other... Yoav Shapira Millennium ChemInformatics -Original Message- From: Sarika N Inamdar [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 23, 2003 4:37 AM To: 'Tomcat Users List' Subject: RE: Is struts.jar mandatory for tomcat 4.1.24 ? Hi, Thanks for the inputs. We do not use any admin applications. We have web.xml in ROOT/WEB-INF/ directory. It has the following entry : servlet servlet-nameaction/servlet-name servlet-classorg.apache.struts.action.ActionServlet/servlet-class init-param param-nameapplication/param-name param-valueApplicationResources/param-value /init-param Is there a way that we can tell tomcat not to use struts.jar ? Do we need to make any changes in the web.xml ? Please let us know on this. Thanks Much, Sarika -Original Message- From: Adam Hardy [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 23, 2003 1:49 PM To: Tomcat Users List Subject: Re: Is struts.jar mandatory for tomcat 4.1.24 ? No it's not mandatory. But tomcat's admin app uses struts. This is controlled by an .xml file in your webapps directory, and it points to the deployment in tomcat/server/webapps/admin. Adam On 09/23/2003 06:07 AM Sarika N Inamdar wrote: Hi All, Please let me know if struts.jar should be present under /WEB-INF/lib with tomcat 4.1.24 ? We have jps's which do not struts. But when I start tomcat,encounter the following exception in /logs/localhost_log file . This execption does not hamper the functionality though !!! 2003-09-22 20:33:01 StandardContext[]: Servlet threw load() exception javax.servlet.ServletException: Wrapper cannot find servlet class org.apache.str uts.action.ActionServlet or a class it depends on at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper. java:891) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:82 3) at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContex t.java:3420) at org.apache.catalina.core.StandardContext.start(StandardContext.java:3 608) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188) at org.apache.catalina.core.StandardHost.start(StandardHost.java:738) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347 Thanks in Advance, Sarika - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- struts 1.1 + tomcat 4.1.27 + java 1.4.2 Linux 2.4.20 RH9 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you.
Re: Configuring a JDBC Data Source
you should be able to find all the packages given below on the Tomcat website somewhere. Just browse around. Don't forget to unzip the packages, because they contain .jar's within the compressed download. DBCP uses the Jakarta-Commons Database Connection Pool packages: Jakarta-Commons DBCP 1.0 Jakarta-Commons Collections 2.0 Jakarta-Commons Pool 1.0 Third Party drivers should be in jarfiles, not zipfiles. Tomcat only adds $CATALINA_HOME/common/lib/*.jar to the classpath. (If the driver is already a zip file, simply rename it as .jar) -paul lomack - Original Message - From: Renda, Michael [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, September 24, 2003 7:05 AM Subject: RE: Configuring a JDBC Data Source I've got the commons-dbcp.jar file in the common/lib directory. Where do I find the commons-pool.jar file? Mike -Original Message- From: Adam Hardy [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 24, 2003 4:20 AM To: Tomcat Users List Subject: Re: Configuring a JDBC Data Source sounds like you need the commons-dbcp and commons-pool jar files as well. Adam On 09/24/2003 01:52 AM Renda, Michael wrote: I'm trying to configure a JDBC Data Source for a Tomcat 4.1.27 installation. I used the Admin tool which wrote the following entry to my server.xml file: GlobalNamingResources Resource name=jdbc/connection scope=Shareable type=javax.sql.DataSource/ ResourceParams name=jdbc/connection parameter namemaxWait/name value5000/value /parameter parameter namemaxActive/name value4/value /parameter parameter namepassword/name valuesecret/value /parameter parameter nameurl/name valuejdbc:microsoft:sqlserver:192.168.0.2:1433/value /parameter parameter namedriverClassName/name valuecom.microsoft.jdbc.sqlserver.SQLServerDriver/value /parameter parameter namemaxIdle/name value2/value /parameter parameter nameusername/name valuesa/value /parameter /ResourceParams /GlobalNamingResources I have placed the jar files for the sql/server jdbc driver in the common/lib directory. Now Tomcat won't start up. I have the following message in my log: INFO: Initializing Coyote HTTP/1.1 on port 8080 Exception during startup processing java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav a:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor Impl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203) Caused by: java.lang.NoClassDefFoundError: org/apache/commons/pool/impl/GenericObjectPool at org.apache.commons.dbcp.BasicDataSourceFactory.getObjectInstance(BasicDa taSourceFactory.java:121) at org.apache.naming.factory.ResourceFactory.getObjectInstance(ResourceFact ory.java:186) at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:301) at org.apache.naming.NamingContext.lookup(NamingContext.java:834) at org.apache.naming.NamingContext.lookup(NamingContext.java:194) at org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.createMBeans (GlobalResourcesLifecycleListener.java:214) at org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.createMBeans (GlobalResourcesLifecycleListener.java:220) at org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.createMBeans (GlobalResourcesLifecycleListener.java:181) at org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.lifecycleEve nt(GlobalResourcesLifecycleListener.java:149) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSu pport.java:166) at org.apache.catalina.core.StandardServer.start(StandardServer.java:2183) at org.apache.catalina.startup.Catalina.start(Catalina.java:512) at org.apache.catalina.startup.Catalina.execute(Catalina.java:400) at org.apache.catalina.startup.Catalina.process(Catalina.java:180) ... 5 more Can anyone tell me what I'm doing wrong here? Thanks, Mike Renda - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- struts 1.1 + tomcat 4.1.27 + java 1.4.2 Linux 2.4.20 RH9 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional
Re:IIS5+tomcat4.1 configuration problem
Hi list Thanks for the reply Please find attached my registry file. To Rober Priest : I don't have those files at all, could you please guide me where I can get them. Best Regards, Kareem Mahgoub - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: character encoding, JAAS, servlet filter vs. valve
Well post a message if you manage to sort it out. I now wasting time trying to get emacs to work with unicode, but when I've done that, I'll should be able to try out the same thing as you. The way I see it, as long as the html login page going out to the browser has character-encoding set to UTF-8, then there are no processes between form submit and the redisplay of the login name which would change its encoding. The string goes thro the http request, into tomcat, into struts action form and then back out into the html page again. I'll soon see I guess. Adam On 09/24/2003 01:31 PM Joerg Heinicke wrote: Adam Hardy wrote: I can't see why. Perhaps you are overriding it later in the request processing? Struts uses response.setContentType() The docs say: overridden automatically if a * codeRequestDispatcher.forward()/code call is * ultimately invoked. but that leaves me none the wiser. Possible. I'm not that deep in the servlet processes, don't know what strange things are done. (I come from the Cocoon world and I'm afraid from the low abstraction in general ;-) ). But not the problem, we set the content type in one JSP that is included in every other JSP, so we have to maintain this also on one place only. Joerg Adam On 09/23/2003 03:25 PM Joerg Heinicke wrote: Joerg Heinicke wrote: I found http://jakarta.apache.org/struts/api/org/apache/struts/config/ControllerConfig.html#contentType and set the contentType in the struts-config.xml with controller contentType=text/html;charset=UTF-8/. Does not work as expected. Mozilla recognizes the pages know as ISO-8859-1 and no longer UTF-8. Joerg -- struts 1.1 + tomcat 4.1.27 + java 1.4.2 Linux 2.4.20 RH9 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
HTTP method POST is not supported by this URL
Dear List, As a new subscriber (and user of Tomcat), please forgive me if this subject has been raised before. The company I work for has been supplied with a Java toolkit by an external contractor that allows us to access our database software through JSP pages. It uses the normal combination of servlets and beans. I noticed that the servlets in the toolkit did not support the POST method, and had the contractor modify them so that they implemented the doPost method (calling the doGet method). As I have access to the source, I can see that this has been done, and the contractor assures me that POST requests work OK on her machine. However, POST requests on my machine result in the following error page from Tomcat: HTTP Status 405 - HTTP method POST is not supported by this URL type Status report message HTTP method POST is not supported by this URL description The specified HTTP method is not allowed for the requested resource (HTTP method POST is not supported by this URL). Apache Tomcat/4.1.27 I am running a standard installation of Tomcat 4.1.27 and J2SE 1.4.2_01 (both runtime and SDK) on Windows XP Professional. I have not changed any of the configuration files in Tomcat. Can anyone help? Thanks, Andrew Willemsen - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: How to configure Tomcat to acceppt PUT requests for servlets?
Hi, I use a Java client to send the PUT request: -- cut here -- connection.setDoOutput(true); connection.setRequestMethod(PUT); connection.setUseCaches(false); connection.setRequestProperty(Content-Type,text/xml); os=connection.getOutputStream() os.write(myXmlData); os.flush(); os.close(); -- cut here -- It works perfectly when setting the requestMethod to POST but not with PUT. I'm now playing around with the web.xml of my application, maybe I have to configure something there to enable PUT. -Ursprüngliche Nachricht- Von: Shapira, Yoav [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 24. September 2003 15:19 An: Tomcat Users List Cc: [EMAIL PROTECTED] Betreff: RE: How to configure Tomcat to acceppt PUT requests for servlets? Howdy, Please ignore my earlier response, WebDAV has nothing to do with it. I just verified PUT requests work fine in tomcat 4.1.27. I'm attaching a WAR with a servlet and a test class to show this is true. I'm also concurring with Mark Thomas in verifying bug 12938 (http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12938) is working. Yoav Shapira Millennium ChemInformatics -Original Message- From: Jürgen Schwarz [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 24, 2003 1:32 AM To: 'Tomcat Users List' Subject: AW: How to configure Tomcat to acceppt PUT requests for servlets? Yes, sorry, I meant PUT, but I have already a doPut() method in my servlet but it is never called because my calling client receives an error 405 from Tomcat 4.1.27 when setting the requestMethod to PUT. I use the 'standard' Tomcat server.xml configuration plus entries for my servlet but I have not configured any security constraints for my servlet. I have no idea what could be wrong... -Ursprüngliche Nachricht- Von: Shapira, Yoav [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 23. September 2003 15:56 An: Tomcat Users List Betreff: RE: How to configure Tomcat to acceppt PUT requests for servlets? Howdy, Assuming you meant PUT in the message just like in your subject: simply add a doPut method to your servlet. Tomcat won't reject this unless you have a security constraint only allowing certain methods and rejecting PUT. Yoav Shapira Millennium ChemInformatics -Original Message- From: Jürgen Schwarz [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 23, 2003 10:52 AM To: [EMAIL PROTECTED] Subject: How to configure Tomcat to acceppt PUT requests for servlets? Hi, how do I configure Tomcat 4.x to accept POST requests for my servlet? I always receive HTTP error 405 Method not allowed. POST works without problems. Regards, Juergen - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: IIS5+tomcat4.1 configuration problem
Either from here: http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk2/nightly/win32 / http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk2/nightly/win3 2/ or download the latest apache and get them out of there. You definitely need those with isapi_redirector2.dll. -Original Message- From: kareem [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 24, 2003 10:18 AM To: [EMAIL PROTECTED] Subject: Re:IIS5+tomcat4.1 configuration problem Hi list Thanks for the reply Please find attached my registry file. To Rober Priest : I don't have those files at all, could you please guide me where I can get them. Best Regards, Kareem Mahgoub
Re: Tomcat 4.1.24 (or 27) with Log4j 1.2.8 - Tomcat does not start
Hi , If you read my post completely, you will see that I have already done that but then I get a similar exception with Struts 1.1 thanks! Mahesh - Original Message - From: Shapira, Yoav [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, September 24, 2003 5:57 AM Subject: RE: Tomcat 4.1.24 (or 27) with Log4j 1.2.8 - Tomcat does not start Howdy, I just answered this question on log4j-user. sarcasticThanks for cross-posting/sarcastic Yoav Shapira Millennium ChemInformatics -Original Message- From: Mahesh Joshi [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 24, 2003 2:25 AM To: [EMAIL PROTECTED] Subject: Tomcat 4.1.24 (or 27) with Log4j 1.2.8 - Tomcat does not start Hi All, I am migrating my current application to use Struts 1.1 and I am facing a problem. My current app. has logging implemented with log4J 1.2.8. I am facing a bizzare problem when using Log4J 1.2.8 with Tomcat 4.1.24 (or Tomcat 4.1.27) on Windows 2000 with JDK 1.4.1_02 When I put my log4j -1.2.8 in the jak*/common/lib directory, Tomcat refuses to start The exception throw is as follows: org.apache.commons.logging.LogConfigurationException: org.apache.commons.logging .LogConfigurationException: No suitable Log constructor [Ljava.lang.Class;@1a679 b7 for org.apache.commons.logging.impl.Log4JLogger at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactory Impl.java:532) at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactory Impl.java:272) at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:414) at org.apache.commons.digester.Digester.init(Digester.java:346) at org.apache.catalina.startup.Catalina.createStartDigester(Catalina.jav a:280) at org.apache.catalina.startup.Catalina.start(Catalina.java:441) at org.apache.catalina.startup.Catalina.execute(Catalina.java:400) at org.apache.catalina.startup.Catalina.process(Catalina.java:180) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203) Caused by: org.apache.commons.logging.LogConfigurationException: No suitable Log constructor [Ljava.lang.Class;@1a679b7 for org.apache.commons.logging.impl.Log4 JLogger at org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogF actoryImpl.java:432) at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactory Impl.java:525) ... 12 more Caused by: java.lang.NoClassDefFoundError: org/apache/log4j/Logger at java.lang.Class.getDeclaredConstructors0(Native Method) at java.lang.Class.privateGetDeclaredConstructors(Class.java:1590) at java.lang.Class.getConstructor0(Class.java:1762) at java.lang.Class.getConstructor(Class.java:1002) at org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogF actoryImpl.java:429) ... 13 more If I put my log4J in the jakarta../shared/lib or WEB-INF/lib, Tomcat does startup. However, Struts fails to initialize giving an exception as follows: javax.servlet.ServletException: Error instantiating servlet class org.apache.struts.action.ActionServlet at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.ja va:9 1 2) ... - Root Cause - java.lang.ExceptionInInitializerError Caused by: org.apache.commons.logging.LogConfigurationException: org.apache.commons.logging.LogConfigurationException: No suitable Log constructor [Ljava.lang.Class;@3a5794 for org.apache.commons.logging.impl.Log4JLogger at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryIm pl.j a va:532) Caused by: org.apache.commons.logging.LogConfigurationException: No suitable Log constructor [Ljava.lang.Class;@3a5794 for org.apache.commons.logging.impl.Log4JLogger at org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFac tory I mpl.java:432) at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryIm pl.j a va:525) ... 28 more Caused by: java.lang.NoClassDefFoundError: org/apache/log4j/Logger at java.lang.Class.getDeclaredConstructors0(Native Method) at java.lang.Class.privateGetDeclaredConstructors(Class.java:1590) at java.lang.Class.getConstructor0(Class.java:1762) at java.lang.Class.getConstructor(Class.java:1002) at org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFac tory I mpl.java:429) ... 29 more What am I missing? Thanks! Mahesh - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business
Re: Jasper compile errors and IE
From the traces I have already done, I am getting back a valid HTTP response (it works with Mozilla as well). So, it looks like it is probably an IE issue. However, I don't know that there is a good reason for Jasper to shove the entire error message in the status line. Am I correct in assuming that? [EMAIL PROTECTED] 09/24/03 08:15AM Try this: substituting the appropriate parameters telnet myserver 80 GET /mypage HTTP/1.1 Connection: close Host: myserver User-Agent: IE UA ID And see what the response is. If the repsonse looks like a valid HTTP Response - then its an IE bug. -Tim Tony Thompson wrote: I have an issue with JSP compile errors not being displayed in the browser when I am using IE. The situation only seems to happen when I try to compile a JSP that has lots of errors. If I have a large JSP (50+ lines or so) and create one error (like leaving a ; off the end of a line early in the JSP), lots of errors will be generated because of that. After doing packet traces, I found that Jasper is repsonding with all of the errors in an HTTP 500 but, the status line contains all of the errors (attached below). From what I can tell, when IE receives a response like this, it seems to get part of it and then just whack the connection to the web server before it has received the entire error. IE then displays one of its stupid messages like action canceled or cannot find server or DNS error. I can do this same thing with Mozilla and I get the errors back fine (big surprise). If I hit a JSP that generates a small number of compile errors, I can get the errors back fine in both browsers. Since Jasper is already returning the error as content in the HTTP repsonse, does it also have to include the entire thing in the status line? Should I report this as a bug? Thanks for any help. Tony HTTP/1.1 500 Unable+to+compile+class+for+JSP%0A%0AAn+error+occurred+at+line%3A+%2D1+in+the+jsp+file%3A+null%0A%0AGenerated+servlet+error%3A%0A%5Bjavac%5D+Since+fork+is+true%2C+ignoring+compiler+setting%2E%0A%5Bjavac%5D+Compiling+1+source+file%0A%5Bjavac%5D+Since+fork+is+true%2C+ignoring+compiler+setting%2E%0A%5Bjavac%5D+C%3A%5CDOCUME%7E1%5COWNER%7E1%2ERED%5CLOCALS%7E1%5CTemp%5CJetty%5F0%5F0%5F0%5F0%5F8080%5F%5Fdemo%5Cjsp%5Clookup%5Fjsp%2Ejava%3A65%3A+%27%3B%27+expected%0A%5Bjavac%5D+string+ldapProtocol+%3D+%22ldap%22%0A%5Bjavac%5D+%5E%0A%5Bjavac%5D+C%3A%5CDOCUME%7E1%5COWNER%7E1%2ERED%5CLOCALS%7E1%5CTemp%5CJetty%5F0%5F0%5F0%5F0%5F8080%5F%5Fdemo%5Cjsp%5Clookup%5Fjsp%2Ejava%3A45%3A+package+com%2Estoneware%2Ebeans+does+not+exist%0A%5Bjavac%5D+++com%2Estoneware%2Ebeans%2EStonewareBean+swBean+%3D+null%3B%0A%5Bjavac%5D++%5E%0A%5Bjavac%5D+C%3A%5CDOCUME%7E1%5COWNER%7E1%2ERED%5CLOCALS%7E1%5CTemp%5CJet ty%5F0%5F0%5F0%5F0%5F8080%5F%5Fdemo%5Cjsp%5Clookup%5Fjsp%2Ejava%3A47%3A+package+com%2Estoneware%2Ebeans+does+not+exist%0A%5Bjavac%5D+swBean+%3D+%28com%2Estoneware%2Ebeans%2EStonewareBean%29+pageContext%2EgetAttribute%28%22swBean%22%2C+PageContext%2EAPPLICATION%5FSCOPE%29%3B%0A%5Bjavac%5D++%5E%0A%5Bjavac%5D+C%3A%5CDOCUME%7E1%5COWNER%7E1%2ERED%5CLOCALS%7E1%5CTemp%5CJetty%5F0%5F0%5F0%5F0%5F8080%5F%5Fdemo%5Cjsp%5Clookup%5Fjsp%2Ejava%3A50%3A+package+com%2Estoneware%2Ebeans+does+not+exist%0A%5Bjavac%5D+swBean+%3D+%28com%2Estoneware%2Ebeans%2EStonewareBean%29+java%2Ebeans%2EBeans%2Einstantiate%28this%2EgetClass%28%29%2EgetClassLoader%28%29%2C+%22com%2Estoneware%2Ebeans%2EStonewareBean%22%29%3B%0A%5Bjavac%5D++%5E%0A%5Bjavac%5D+C%3A%5CDOCUME%7E1%5COWNER%7E1%2ERED%5CLOCALS%7E1%5CTemp%5CJetty%5F0%5F0%5F0%5F0%5F8080%5F%5Fdemo%5Cjsp%5Clookup%5Fjsp%2Ejava%3A65%3A+cannot+r esolve+symbol%0A%5Bjavac%5D+symbol++%3A+class+string+%0A%5Bjav ac%5D+location%3A+class+org%2Eapache%2Ejsp%2Elookup%5Fjsp%0A%5Bjavac%5D+string+ldapProtocol+%3D+%22ldap%22%0A%5Bjavac%5D+%5E%0A%5Bjavac%5D+C%3A%5CDOCUME%7E1%5COWNER%7E1%2ERED%5CLOCALS%7E1%5CTemp%5CJetty%5F0%5F0%5F0%5F0%5F8080%5F%5Fdemo%5Cjsp%5Clookup%5Fjsp%2Ejava%3A136%3A+cannot+resolve+symbol%0A%5Bjavac%5D+symbol++%3A+variable+ldapServer+%0A%5Bjavac%5D+location%3A+class+org%2Eapache%2Ejsp%2Elookup%5Fjsp%0A%5Bjavac%5D+env%2Eput%28+Context%2EPROVIDER%5FURL%2C+ldapProtocol+%2B+%22%3A%2F%2F%22+%2B+ldapServer+%29%3B%0A%5Bjavac%5D+++%5E%0A%5Bjavac%5D+6+errors%0A%0A%0A - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Running multiple instances of one webapp
On our instance of Tomcat 4.1.27 we have a webapp which we make available to a number of different clients, where the configuration variables (web.xml) are slightly different for each client. Currently, if we have three clients who wish to use the app, we make three copies of it and updated web.xml in each copy. Here's the question: is there a way to configure Tomcat to use just one copy of the app with three different web.xml's as opposed to making three copies of the entire app (without running multiple instances of Tomcat)? Jon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Configuring and using cgi scripts in Tomcat
I have the j2ee.jar file in the classpath...should that not provide the current jdk. Allen -Original Message- From: Mike Curwen [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 23, 2003 6:12 PM To: 'Tomcat Users List' Subject: RE: Configuring and using cgi scripts in Tomcat In the stack trace, root cause, you'll find: java.lang.NoSuchMethodError: java.lang.Runtime: method exec(Ljava/lang/String;[Ljava/lang/String;Ljava/io/File;)Ljava/lang/Proc ess; not found So something (org.apache.catalina.servlets.CGIServlet$CGIRunner.run) is trying to find a method called: java.langRuntime.exec(String, String[] File) But cannot find it. There is such a method, but only since JDK 1.3 So.. are you running at least 1.3? -Original Message- From: Wilson, Allen [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 23, 2003 5:22 PM To: Tomcat Users List Subject: RE: Configuring and using cgi scripts in Tomcat Okay... Found out that I did not have the mapping correct but when I changed it to go the ROOT/WEB-INF/cgi-bin. I have now getting the following error. Any help would be highly appreciate (even to the point of naming my next born after you.:-) ) Allen (error msg) HTTP Status 500 - -- -- type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception javax.servlet.ServletException: Servlet execution threw an exception at java.lang.Throwable.fillInStackTrace(Native Method) at java.lang.Throwable.fillInStackTrace(Compiled Code) at java.lang.Throwable.(Compiled Code) at java.lang.Exception.(Compiled Code) at javax.servlet.ServletException.(ServletException.java:132) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilt er(Applica tionFilterChain.java:269) at org.apache.catalina.core.ApplicationFilterChain.doFilter(Appli cationFilt erChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardW rapperValv e.java:260) at org.apache.catalina.core.StandardPipeline$StandardPipelineValv eContext.i nvokeNext(Compiled Code) at org.apache.catalina.core.StandardPipeline.invoke(Compiled Code) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardC ontextValv e.java:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValv eContext.i nvokeNext(Compiled Code) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipel ine.java:4 80) at org.apache.catalina.core.ContainerBase.invoke(Compiled Code) at org.apache.catalina.core.StandardContext.invoke(Compiled Code) at org.apache.catalina.core.StandardHostValve.invoke(StandardHost Valve.java :180) at org.apache.catalina.core.StandardPipeline$StandardPipelineValv eContext.i nvokeNext(Compiled Code) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDi spatcherVa lve.java:170) at org.apache.catalina.core.StandardPipeline$StandardPipelineValv eContext.i nvokeNext(Compiled Code) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReport Valve.java :172) at org.apache.catalina.core.StandardPipeline$StandardPipelineValv eContext.i nvokeNext(Compiled Code) at org.apache.catalina.valves.AccessLogValve.invoke(Compiled Code) at org.apache.catalina.core.StandardPipeline$StandardPipelineValv eContext.i nvokeNext(Compiled Code) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipel ine.java:4 80) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEn gineValve. java:174) at org.apache.catalina.core.StandardPipeline$StandardPipelineValv eContext.i nvokeNext(Compiled Code) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipel ine.java:4 80) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter. java:223) at org.apache.coyote.http11.Http11Processor.process(Compiled Code) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandle r.processC onnection(Http11Protocol.java:386) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(Compiled Code) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(Compiled Code) at java.lang.Thread.run(Thread.java:479) root cause java.lang.NoSuchMethodError: java.lang.Runtime: method exec(Ljava/lang/String;[Ljava/lang/String;Ljava/io/File;)Ljava /lang/Proc ess; not found at
RE: Configuring and using cgi scripts in Tomcat
Howdy, All j2ee.jar provides in the tomcat classpath is a headache. J2ee.jar contains the servlet classes, which is bad (http://jakarta.apache.org/tomcat/faq/classnotfound.html#filter). Also search the list archives on this... Yoav Shapira Millennium ChemInformatics -Original Message- From: Wilson, Allen [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 24, 2003 10:54 AM To: Tomcat Users List Subject: RE: Configuring and using cgi scripts in Tomcat I have the j2ee.jar file in the classpath...should that not provide the current jdk. Allen -Original Message- From: Mike Curwen [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 23, 2003 6:12 PM To: 'Tomcat Users List' Subject: RE: Configuring and using cgi scripts in Tomcat In the stack trace, root cause, you'll find: java.lang.NoSuchMethodError: java.lang.Runtime: method exec(Ljava/lang/String;[Ljava/lang/String;Ljava/io/File;)Ljava/lang/Pro c ess; not found So something (org.apache.catalina.servlets.CGIServlet$CGIRunner.run) is trying to find a method called: java.langRuntime.exec(String, String[] File) But cannot find it. There is such a method, but only since JDK 1.3 So.. are you running at least 1.3? -Original Message- From: Wilson, Allen [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 23, 2003 5:22 PM To: Tomcat Users List Subject: RE: Configuring and using cgi scripts in Tomcat Okay... Found out that I did not have the mapping correct but when I changed it to go the ROOT/WEB-INF/cgi-bin. I have now getting the following error. Any help would be highly appreciate (even to the point of naming my next born after you.:-) ) Allen (error msg) HTTP Status 500 - -- -- type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception javax.servlet.ServletException: Servlet execution threw an exception at java.lang.Throwable.fillInStackTrace(Native Method) at java.lang.Throwable.fillInStackTrace(Compiled Code) at java.lang.Throwable.(Compiled Code) at java.lang.Exception.(Compiled Code) at javax.servlet.ServletException.(ServletException.java:132) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilt er(Applica tionFilterChain.java:269) at org.apache.catalina.core.ApplicationFilterChain.doFilter(Appli cationFilt erChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardW rapperValv e.java:260) at org.apache.catalina.core.StandardPipeline$StandardPipelineValv eContext.i nvokeNext(Compiled Code) at org.apache.catalina.core.StandardPipeline.invoke(Compiled Code) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardC ontextValv e.java:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValv eContext.i nvokeNext(Compiled Code) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipel ine.java:4 80) at org.apache.catalina.core.ContainerBase.invoke(Compiled Code) at org.apache.catalina.core.StandardContext.invoke(Compiled Code) at org.apache.catalina.core.StandardHostValve.invoke(StandardHost Valve.java :180) at org.apache.catalina.core.StandardPipeline$StandardPipelineValv eContext.i nvokeNext(Compiled Code) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDi spatcherVa lve.java:170) at org.apache.catalina.core.StandardPipeline$StandardPipelineValv eContext.i nvokeNext(Compiled Code) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReport Valve.java :172) at org.apache.catalina.core.StandardPipeline$StandardPipelineValv eContext.i nvokeNext(Compiled Code) at org.apache.catalina.valves.AccessLogValve.invoke(Compiled Code) at org.apache.catalina.core.StandardPipeline$StandardPipelineValv eContext.i nvokeNext(Compiled Code) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipel ine.java:4 80) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEn gineValve. java:174) at org.apache.catalina.core.StandardPipeline$StandardPipelineValv eContext.i nvokeNext(Compiled Code) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipel ine.java:4 80) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter. java:223) at org.apache.coyote.http11.Http11Processor.process(Compiled Code) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandle r.processC onnection(Http11Protocol.java:386) at
[OFF TOPIC] Version Control
Sorry for the Off topic question I'm looking for suggestions for a free version control system. I've tried cvs before.but, the learning curve is really steep for me...i'd rather go with something that has a gui interface. Thanx in advance - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [OFF TOPIC] Version Control
Cvs does have many GUI interfaces. WinCVS being just one of these. _ Jeremy Nix Senior Application Developer Southwest Financial Ltd. [EMAIL PROTECTED] (513) 621-6699 ext 1158 -Original Message- From: Pitre, Russell [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 24, 2003 11:02 AM To: [EMAIL PROTECTED] Subject: [OFF TOPIC] Version Control Sorry for the Off topic question I'm looking for suggestions for a free version control system. I've tried cvs before.but, the learning curve is really steep for me...i'd rather go with something that has a gui interface. Thanx in advance - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OFF TOPIC] Version Control
Subversion (cross platform) can be used nicely with GUI TurtoiseSVN (Windows only). Pitre, Russell wrote: Sorry for the Off topic question I'm looking for suggestions for a free version control system. I've tried cvs before.but, the learning curve is really steep for me...i'd rather go with something that has a gui interface. Thanx in advance - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
JSP Compulation problem
Hi, I have Tomcat 4.1.18 running on Unix. As part of the application, I have a JSP file which shows the main page. I had problems with Tomcat caching it, so, I added a script to remove the localhost folder before tomcat starts up. But right now, whenever I start Tomcat and access the app, it is coming back with a message saying 'Unable to compile class for JSP - JASPERException'. Has anybody come across this error earlier? (after a few restarts, it start to work again). Please let me know if anybody has seen this and know what is a solution. Thanks -Manoj.
RE: [OFF TOPIC] Version Control
CVS has a gui interface. (Even more than one) http://www.wincvs.org/ http://www-csr.bessy.de/control/Soft/tkCVS/ http://www.tortoisecvs.org/ For a more complete overview see: http://www.cvshome.org/dev/addons.html -Original Message- From: Pitre, Russell [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 24, 2003 5:02 PM To: [EMAIL PROTECTED] Subject: [OFF TOPIC] Version Control Sorry for the Off topic question I'm looking for suggestions for a free version control system. I've tried cvs before.but, the learning curve is really steep for me...i'd rather go with something that has a gui interface. Thanx in advance - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JSP Compulation problem
well the easiest way is to remove just the .java and .class files and leave the directory structure. that's worked for me in the past. peter Pooleery, Manoj [EMAIL PROTECTED] wrote: Hi, I have Tomcat 4.1.18 running on Unix. As part of the application, I have a JSP file which shows the main page. I had problems with Tomcat caching it, so, I added a script to remove the localhost folder before tomcat starts up. But right now, whenever I start Tomcat and access the app, it is coming back with a message saying 'Unable to compile class for JSP - JASPERException'. Has anybody come across this error earlier? (after a few restarts, it start to work again). Please let me know if anybody has seen this and know what is a solution. Thanks -Manoj. - Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software
RE: Running multiple instances of one webapp
Howdy, Web.xml is part of the webapp, so no. But you can do something similar: define env-entry references in web.xml for those settings that are different for each copy of the webapp. Then define the values for these env entries different in server.xml. Each webapp's web.xml will be exactly the same but the JNDI lookup will get the value from server.xml which would be different for each webapp. Yoav Shapira Millennium ChemInformatics -Original Message- From: Jonathan A. Chase [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 24, 2003 10:45 AM To: Tomcat Users List Subject: Running multiple instances of one webapp On our instance of Tomcat 4.1.27 we have a webapp which we make available to a number of different clients, where the configuration variables (web.xml) are slightly different for each client. Currently, if we have three clients who wish to use the app, we make three copies of it and updated web.xml in each copy. Here's the question: is there a way to configure Tomcat to use just one copy of the app with three different web.xml's as opposed to making three copies of the entire app (without running multiple instances of Tomcat)? Jon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [OFF TOPIC] Version Control
I would try WinCvs for a beginner. Yes tortoise intergrates with explorer, but I find that WinCvs is more flexible. -Original Message- From: Ralph Einfeldt [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 24, 2003 11:14 AM To: Tomcat Users List Subject: RE: [OFF TOPIC] Version Control CVS has a gui interface. (Even more than one) http://www.wincvs.org/ http://www-csr.bessy.de/control/Soft/tkCVS/ http://www.tortoisecvs.org/ For a more complete overview see: http://www.cvshome.org/dev/addons.html -Original Message- From: Pitre, Russell [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 24, 2003 5:02 PM To: [EMAIL PROTECTED] Subject: [OFF TOPIC] Version Control Sorry for the Off topic question I'm looking for suggestions for a free version control system. I've tried cvs before.but, the learning curve is really steep for me...i'd rather go with something that has a gui interface. Thanx in advance - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Configuring and using cgi scripts in Tomcat
-Original Message- From: Wilson, Allen [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 24, 2003 9:54 AM To: Tomcat Users List Subject: RE: Configuring and using cgi scripts in Tomcat I have the j2ee.jar file in the classpath...should that not provide the current jdk. Well, no. j2ee.jar is just a library. It happens to be quite large and covers a LOT of functionality. But it is not a java runtime, and it doesn't contain any of the core java (j2se) classes. From the docs on j2ee 1.3.1: Supported Operating Systems and Required Software This release relies on the Java 2 SDK, Standard Edition (J2SE). The reason Yoav recommends you dump j2ee.jar is that it contains a number of classes that Tomcat *already* has, and it's easier to avoid conflicts between different class versions by just removing the entirely un-necessary j2ee.jar from Tomcat's view. Where does JAVA_HOME point to? It should point to an installation of the J2SE JDK version 1.3.x or above. -Original Message- From: Mike Curwen [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 23, 2003 6:12 PM To: 'Tomcat Users List' Subject: RE: Configuring and using cgi scripts in Tomcat In the stack trace, root cause, you'll find: java.lang.NoSuchMethodError: java.lang.Runtime: method exec(Ljava/lang/String;[Ljava/lang/String;Ljava/io/File;)Ljava /lang/Proc ess; not found So something (org.apache.catalina.servlets.CGIServlet$CGIRunner.run) is trying to find a method called: java.langRuntime.exec(String, String[] File) But cannot find it. There is such a method, but only since JDK 1.3 So.. are you running at least 1.3? -Original Message- From: Wilson, Allen [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 23, 2003 5:22 PM To: Tomcat Users List Subject: RE: Configuring and using cgi scripts in Tomcat Okay... Found out that I did not have the mapping correct but when I changed it to go the ROOT/WEB-INF/cgi-bin. I have now getting the following error. Any help would be highly appreciate (even to the point of naming my next born after you.:-) ) Allen (error msg) HTTP Status 500 - -- -- type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception javax.servlet.ServletException: Servlet execution threw an exception at java.lang.Throwable.fillInStackTrace(Native Method) at java.lang.Throwable.fillInStackTrace(Compiled Code) at java.lang.Throwable.(Compiled Code) at java.lang.Exception.(Compiled Code) at javax.servlet.ServletException.(ServletException.java:132) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilt er(Applica tionFilterChain.java:269) at org.apache.catalina.core.ApplicationFilterChain.doFilter(Appli cationFilt erChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardW rapperValv e.java:260) at org.apache.catalina.core.StandardPipeline$StandardPipelineValv eContext.i nvokeNext(Compiled Code) at org.apache.catalina.core.StandardPipeline.invoke(Compiled Code) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardC ontextValv e.java:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValv eContext.i nvokeNext(Compiled Code) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipel ine.java:4 80) at org.apache.catalina.core.ContainerBase.invoke(Compiled Code) at org.apache.catalina.core.StandardContext.invoke(Compiled Code) at org.apache.catalina.core.StandardHostValve.invoke(StandardHost Valve.java :180) at org.apache.catalina.core.StandardPipeline$StandardPipelineValv eContext.i nvokeNext(Compiled Code) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDi spatcherVa lve.java:170) at org.apache.catalina.core.StandardPipeline$StandardPipelineValv eContext.i nvokeNext(Compiled Code) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReport Valve.java :172) at org.apache.catalina.core.StandardPipeline$StandardPipelineValv eContext.i nvokeNext(Compiled Code) at org.apache.catalina.valves.AccessLogValve.invoke(Compiled Code) at org.apache.catalina.core.StandardPipeline$StandardPipelineValv eContext.i nvokeNext(Compiled Code) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipel ine.java:4 80) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEn gineValve.
Re: IIS5+tomcat4.1 configuration problem
Sorry, but I didn't get the attached file :-( Mats kareem wrote: Hi list Thanks for the reply Please find attached my registry file. To Rober Priest : I don't have those files at all, could you please guide me where I can get them. Best Regards, Kareem Mahgoub - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Mutual and Basic Authentication switched on for the same web application
Hi all Is there a way to switch on Mutual and Basic Authentication switched on for the same web application, such that certain URLs need Basic Authentication and Certain URLs use Mutual Authentication for the same web application. Regards Rudolf _ Talk to Karthikeyan. Watch his stunning feats. http://server1.msn.co.in/sp03/tataracing/index.asp Download images. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [OFF TOPIC] Version Control
I think what he really needs is a CVS client. Eclipse and NetBeans both integrate the CVS client. -Original Message- From: Robert Priest [mailto:[EMAIL PROTECTED] Sent: September 24, 2003 11:16 AM To: 'Tomcat Users List' Subject: RE: [OFF TOPIC] Version Control I would try WinCvs for a beginner. Yes tortoise intergrates with explorer, but I find that WinCvs is more flexible. -Original Message- From: Ralph Einfeldt [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 24, 2003 11:14 AM To: Tomcat Users List Subject: RE: [OFF TOPIC] Version Control CVS has a gui interface. (Even more than one) http://www.wincvs.org/ http://www-csr.bessy.de/control/Soft/tkCVS/ http://www.tortoisecvs.org/ For a more complete overview see: http://www.cvshome.org/dev/addons.html -Original Message- From: Pitre, Russell [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 24, 2003 5:02 PM To: [EMAIL PROTECTED] Subject: [OFF TOPIC] Version Control Sorry for the Off topic question I'm looking for suggestions for a free version control system. I've tried cvs before.but, the learning curve is really steep for me...i'd rather go with something that has a gui interface. Thanx in advance - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [OFF TOPIC] Version Control
The Client as well as a cvs server. -Original Message- From: Phillip Qin [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 24, 2003 11:48 AM To: 'Tomcat Users List' Subject: RE: [OFF TOPIC] Version Control I think what he really needs is a CVS client. Eclipse and NetBeans both integrate the CVS client. -Original Message- From: Robert Priest [mailto:[EMAIL PROTECTED] Sent: September 24, 2003 11:16 AM To: 'Tomcat Users List' Subject: RE: [OFF TOPIC] Version Control I would try WinCvs for a beginner. Yes tortoise intergrates with explorer, but I find that WinCvs is more flexible. -Original Message- From: Ralph Einfeldt [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 24, 2003 11:14 AM To: Tomcat Users List Subject: RE: [OFF TOPIC] Version Control CVS has a gui interface. (Even more than one) http://www.wincvs.org/ http://www-csr.bessy.de/control/Soft/tkCVS/ http://www.tortoisecvs.org/ For a more complete overview see: http://www.cvshome.org/dev/addons.html -Original Message- From: Pitre, Russell [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 24, 2003 5:02 PM To: [EMAIL PROTECTED] Subject: [OFF TOPIC] Version Control Sorry for the Off topic question I'm looking for suggestions for a free version control system. I've tried cvs before.but, the learning curve is really steep for me...i'd rather go with something that has a gui interface. Thanx in advance - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [OFF TOPIC] Version Control
WinCvs and TortoiseCvs are clients. -Original Message- From: Phillip Qin [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 24, 2003 11:48 AM To: 'Tomcat Users List' Subject: RE: [OFF TOPIC] Version Control I think what he really needs is a CVS client. Eclipse and NetBeans both integrate the CVS client. -Original Message- From: Robert Priest [mailto:[EMAIL PROTECTED] Sent: September 24, 2003 11:16 AM To: 'Tomcat Users List' Subject: RE: [OFF TOPIC] Version Control I would try WinCvs for a beginner. Yes tortoise intergrates with explorer, but I find that WinCvs is more flexible. -Original Message- From: Ralph Einfeldt [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 24, 2003 11:14 AM To: Tomcat Users List Subject: RE: [OFF TOPIC] Version Control CVS has a gui interface. (Even more than one) http://www.wincvs.org/ http://www-csr.bessy.de/control/Soft/tkCVS/ http://www.tortoisecvs.org/ For a more complete overview see: http://www.cvshome.org/dev/addons.html -Original Message- From: Pitre, Russell [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 24, 2003 5:02 PM To: [EMAIL PROTECTED] Subject: [OFF TOPIC] Version Control Sorry for the Off topic question I'm looking for suggestions for a free version control system. I've tried cvs before.but, the learning curve is really steep for me...i'd rather go with something that has a gui interface. Thanx in advance - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Configuring and using cgi scripts in Tomcat
JAVA_HOME points to /usr/java1.2. In that directory I have the j2ee and it information. I am currently downloading the Java 2 SDK, Standard Edition 1.4.2_01. If I install this and put the information in the class path..will it provide me with what I need. Allen -Original Message- From: Mike Curwen [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 24, 2003 10:26 AM To: 'Tomcat Users List' Subject: RE: Configuring and using cgi scripts in Tomcat -Original Message- From: Wilson, Allen [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 24, 2003 9:54 AM To: Tomcat Users List Subject: RE: Configuring and using cgi scripts in Tomcat I have the j2ee.jar file in the classpath...should that not provide the current jdk. Well, no. j2ee.jar is just a library. It happens to be quite large and covers a LOT of functionality. But it is not a java runtime, and it doesn't contain any of the core java (j2se) classes. From the docs on j2ee 1.3.1: Supported Operating Systems and Required Software This release relies on the Java 2 SDK, Standard Edition (J2SE). The reason Yoav recommends you dump j2ee.jar is that it contains a number of classes that Tomcat *already* has, and it's easier to avoid conflicts between different class versions by just removing the entirely un-necessary j2ee.jar from Tomcat's view. Where does JAVA_HOME point to? It should point to an installation of the J2SE JDK version 1.3.x or above. -Original Message- From: Mike Curwen [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 23, 2003 6:12 PM To: 'Tomcat Users List' Subject: RE: Configuring and using cgi scripts in Tomcat In the stack trace, root cause, you'll find: java.lang.NoSuchMethodError: java.lang.Runtime: method exec(Ljava/lang/String;[Ljava/lang/String;Ljava/io/File;)Ljava /lang/Proc ess; not found So something (org.apache.catalina.servlets.CGIServlet$CGIRunner.run) is trying to find a method called: java.langRuntime.exec(String, String[] File) But cannot find it. There is such a method, but only since JDK 1.3 So.. are you running at least 1.3? -Original Message- From: Wilson, Allen [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 23, 2003 5:22 PM To: Tomcat Users List Subject: RE: Configuring and using cgi scripts in Tomcat Okay... Found out that I did not have the mapping correct but when I changed it to go the ROOT/WEB-INF/cgi-bin. I have now getting the following error. Any help would be highly appreciate (even to the point of naming my next born after you.:-) ) Allen (error msg) HTTP Status 500 - -- -- type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception javax.servlet.ServletException: Servlet execution threw an exception at java.lang.Throwable.fillInStackTrace(Native Method) at java.lang.Throwable.fillInStackTrace(Compiled Code) at java.lang.Throwable.(Compiled Code) at java.lang.Exception.(Compiled Code) at javax.servlet.ServletException.(ServletException.java:132) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilt er(Applica tionFilterChain.java:269) at org.apache.catalina.core.ApplicationFilterChain.doFilter(Appli cationFilt erChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardW rapperValv e.java:260) at org.apache.catalina.core.StandardPipeline$StandardPipelineValv eContext.i nvokeNext(Compiled Code) at org.apache.catalina.core.StandardPipeline.invoke(Compiled Code) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardC ontextValv e.java:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValv eContext.i nvokeNext(Compiled Code) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipel ine.java:4 80) at org.apache.catalina.core.ContainerBase.invoke(Compiled Code) at org.apache.catalina.core.StandardContext.invoke(Compiled Code) at org.apache.catalina.core.StandardHostValve.invoke(StandardHost Valve.java :180) at org.apache.catalina.core.StandardPipeline$StandardPipelineValv eContext.i nvokeNext(Compiled Code) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDi spatcherVa lve.java:170) at org.apache.catalina.core.StandardPipeline$StandardPipelineValv eContext.i nvokeNext(Compiled Code) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReport Valve.java :172) at org.apache.catalina.core.StandardPipeline$StandardPipelineValv eContext.i nvokeNext(Compiled
RE: Configuring and using cgi scripts in Tomcat
It's probably called /usr/java1.2. because it : a) had j2ee1.2 in it? b) it had jdk 1.2 in it? If it's a), you don't even have a JDK. If it's b), then then JDK is too old. Either way, you don't have what you need. putting it in the classpath. That really is only important if you're compiling servlets or other java programs, and using the system classpath variable to do the compiling. Tomcat does not use system classpath variables. It uses JAVA_HOME. So just be sure to update JAVA_HOME to the newest JDK, and restart Tomcat. You should be good after that. -Original Message- From: Wilson, Allen [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 24, 2003 10:49 AM To: Tomcat Users List Subject: RE: Configuring and using cgi scripts in Tomcat JAVA_HOME points to /usr/java1.2. In that directory I have the j2ee and it information. I am currently downloading the Java 2 SDK, Standard Edition 1.4.2_01. If I install this and put the information in the class path..will it provide me with what I need. Allen -Original Message- From: Mike Curwen [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 24, 2003 10:26 AM To: 'Tomcat Users List' Subject: RE: Configuring and using cgi scripts in Tomcat -Original Message- From: Wilson, Allen [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 24, 2003 9:54 AM To: Tomcat Users List Subject: RE: Configuring and using cgi scripts in Tomcat I have the j2ee.jar file in the classpath...should that not provide the current jdk. Well, no. j2ee.jar is just a library. It happens to be quite large and covers a LOT of functionality. But it is not a java runtime, and it doesn't contain any of the core java (j2se) classes. From the docs on j2ee 1.3.1: Supported Operating Systems and Required Software This release relies on the Java 2 SDK, Standard Edition (J2SE). The reason Yoav recommends you dump j2ee.jar is that it contains a number of classes that Tomcat *already* has, and it's easier to avoid conflicts between different class versions by just removing the entirely un-necessary j2ee.jar from Tomcat's view. Where does JAVA_HOME point to? It should point to an installation of the J2SE JDK version 1.3.x or above. -Original Message- From: Mike Curwen [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 23, 2003 6:12 PM To: 'Tomcat Users List' Subject: RE: Configuring and using cgi scripts in Tomcat In the stack trace, root cause, you'll find: java.lang.NoSuchMethodError: java.lang.Runtime: method exec(Ljava/lang/String;[Ljava/lang/String;Ljava/io/File;)Ljava /lang/Proc ess; not found So something (org.apache.catalina.servlets.CGIServlet$CGIRunner.run) is trying to find a method called: java.langRuntime.exec(String, String[] File) But cannot find it. There is such a method, but only since JDK 1.3 So.. are you running at least 1.3? -Original Message- From: Wilson, Allen [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 23, 2003 5:22 PM To: Tomcat Users List Subject: RE: Configuring and using cgi scripts in Tomcat Okay... Found out that I did not have the mapping correct but when I changed it to go the ROOT/WEB-INF/cgi-bin. I have now getting the following error. Any help would be highly appreciate (even to the point of naming my next born after you.:-) ) Allen (error msg) HTTP Status 500 - -- -- type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception javax.servlet.ServletException: Servlet execution threw an exception at java.lang.Throwable.fillInStackTrace(Native Method) at java.lang.Throwable.fillInStackTrace(Compiled Code) at java.lang.Throwable.(Compiled Code) at java.lang.Exception.(Compiled Code) at javax.servlet.ServletException.(ServletException.java:132) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilt er(Applica tionFilterChain.java:269) at org.apache.catalina.core.ApplicationFilterChain.doFilter(Appli cationFilt erChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardW rapperValv e.java:260) at org.apache.catalina.core.StandardPipeline$StandardPipelineValv eContext.i nvokeNext(Compiled Code) at org.apache.catalina.core.StandardPipeline.invoke(Compiled Code) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardC ontextValv e.java:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValv
RE: Configuring and using cgi scripts in Tomcat
It is A... The machine this is on is a Sun with the 2.8 OS. The java directory was /usr/java1.2 and I add the current J2EE to it (at the time j2sdkee1.3.1) and I did not add a JDK. But this should be taken care of by adding Java 2 SDK, Standard Edition 1.4.2_01. I will try that and see what happens. Mike and Yoav..thanks for the help hopefully I can get this installed without any problems and everything works Allen -Original Message- From: Mike Curwen [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 24, 2003 10:57 AM To: 'Tomcat Users List' Subject: RE: Configuring and using cgi scripts in Tomcat It's probably called /usr/java1.2. because it : a) had j2ee1.2 in it? b) it had jdk 1.2 in it? If it's a), you don't even have a JDK. If it's b), then then JDK is too old. Either way, you don't have what you need. putting it in the classpath. That really is only important if you're compiling servlets or other java programs, and using the system classpath variable to do the compiling. Tomcat does not use system classpath variables. It uses JAVA_HOME. So just be sure to update JAVA_HOME to the newest JDK, and restart Tomcat. You should be good after that. -Original Message- From: Wilson, Allen [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 24, 2003 10:49 AM To: Tomcat Users List Subject: RE: Configuring and using cgi scripts in Tomcat JAVA_HOME points to /usr/java1.2. In that directory I have the j2ee and it information. I am currently downloading the Java 2 SDK, Standard Edition 1.4.2_01. If I install this and put the information in the class path..will it provide me with what I need. Allen -Original Message- From: Mike Curwen [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 24, 2003 10:26 AM To: 'Tomcat Users List' Subject: RE: Configuring and using cgi scripts in Tomcat -Original Message- From: Wilson, Allen [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 24, 2003 9:54 AM To: Tomcat Users List Subject: RE: Configuring and using cgi scripts in Tomcat I have the j2ee.jar file in the classpath...should that not provide the current jdk. Well, no. j2ee.jar is just a library. It happens to be quite large and covers a LOT of functionality. But it is not a java runtime, and it doesn't contain any of the core java (j2se) classes. From the docs on j2ee 1.3.1: Supported Operating Systems and Required Software This release relies on the Java 2 SDK, Standard Edition (J2SE). The reason Yoav recommends you dump j2ee.jar is that it contains a number of classes that Tomcat *already* has, and it's easier to avoid conflicts between different class versions by just removing the entirely un-necessary j2ee.jar from Tomcat's view. Where does JAVA_HOME point to? It should point to an installation of the J2SE JDK version 1.3.x or above. -Original Message- From: Mike Curwen [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 23, 2003 6:12 PM To: 'Tomcat Users List' Subject: RE: Configuring and using cgi scripts in Tomcat In the stack trace, root cause, you'll find: java.lang.NoSuchMethodError: java.lang.Runtime: method exec(Ljava/lang/String;[Ljava/lang/String;Ljava/io/File;)Ljava /lang/Proc ess; not found So something (org.apache.catalina.servlets.CGIServlet$CGIRunner.run) is trying to find a method called: java.langRuntime.exec(String, String[] File) But cannot find it. There is such a method, but only since JDK 1.3 So.. are you running at least 1.3? -Original Message- From: Wilson, Allen [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 23, 2003 5:22 PM To: Tomcat Users List Subject: RE: Configuring and using cgi scripts in Tomcat Okay... Found out that I did not have the mapping correct but when I changed it to go the ROOT/WEB-INF/cgi-bin. I have now getting the following error. Any help would be highly appreciate (even to the point of naming my next born after you.:-) ) Allen (error msg) HTTP Status 500 - -- -- type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception javax.servlet.ServletException: Servlet execution threw an exception at java.lang.Throwable.fillInStackTrace(Native Method) at java.lang.Throwable.fillInStackTrace(Compiled Code) at java.lang.Throwable.(Compiled Code) at java.lang.Exception.(Compiled Code) at javax.servlet.ServletException.(ServletException.java:132) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilt er(Applica tionFilterChain.java:269) at
Re: IIS5+tomcat4.1 configuration problem
you mean you have something to prevent files of type reg?? Best regards, Kareem Mahgoub Senior System Administrator Wayout Phone: +2023017153 Fax: +2023017130 45 El Batal Ahmed Abdel Aziz st. 14th Floor, Mohandeseen Cairo, Egypt - Original Message - From: Mats Andersson [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, September 24, 2003 5:35 PM Subject: Re: IIS5+tomcat4.1 configuration problem Sorry, but I didn't get the attached file :-( Mats kareem wrote: Hi list Thanks for the reply Please find attached my registry file. To Rober Priest : I don't have those files at all, could you please guide me where I can get them. Best Regards, Kareem Mahgoub - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Urgent plz...modjk2, Tomcat 4.1.27, apache 1.3.24 integration
Mohan, I believe this Address already in use message always means something else is already listening on the port/LAN card/IP address. Could be another Tomcat or another web server. Doc at www.johnturner.com/howto is best instruction on modjk2/Tomcat/apache. If on Windows, check services and use netstat (dos box) to check the system. Chuck -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 23, 2003 9:32 AM To: [EMAIL PROTECTED] Subject: Urgent plz...modjk2, Tomcat 4.1.27, apache 1.3.24 integration Hi All I am having apache 1.3.27, tomcat 4.1.27, i have compiled mod_jk2 on my machine, when i open the URL it says document contains no data the tomcat looks to be starting fine saying: Starting service Tomcat-Apache Apache Tomcat/4.1.27 Sep 23, 2003 9:17:17 AM org.apache.jk.common.ChannelSocket init INFO: Port busy 8009 java.net.BindException: Address already in use Sep 23, 2003 9:17:17 AM org.apache.jk.common.ChannelSocket in The httpd logs give out this error. Please help me if anyone knows anything about this error: aught SIGTERM, shutting down [Tue Sep 23 09:25:12 2003] [error] Cannot remove module mod_jk2.c: not found in module list [Tue Sep 23 09:25:13 2003] [error] Cannot remove module mod_jk2.c: not found in module list [Tue Sep 23 16:25:13 2003] ( info) [mod_jk2.c (208)]: Set serverRoot /etc/httpd Create config for main host [Tue Sep 23 09:25:14 2003] [notice] Apache/1.3.27 (Unix) (Red-Hat/Linux) mod_python/2.7.8 Python/1.5.2 mod_ssl/2.8.12 OpenSSL/0.9.6b PHP/4.1.2 mod_perl/1.26 FrontPage/5.0.2.2510 configured -- resuming normal operations [Tue Sep 23 09:25:14 2003] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec) [Tue Sep 23 09:25:14 2003] [notice] Accept mutex: sysvsem (Default: sysvsem) [Tue Sep 23 09:25:34 2003] [notice] child pid 1328 exit signal Segmentation fault (11) [Tue Sep 23 09:25:35 2003] [notice] child pid 1331 exit signal Segmentation fault (11) Thank you very much, please help me i am on a tight deadline --Mohan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Enabling error reports
Hi, I have Tomcat 4.1.27 installed and it isn't showing to the user the error report when it can't compile. Before upgrading from version 4.1.24 it was generating such reports (line with error, what happened, etc) and debugging was easier. Now it only logs to catalina.out and even there the message isn't very helpful. The only thing that I know was generating the error reports was when Tomcat couldn't find a class and the error was 500 server error. How to re-enable it? web.xml and server.conf are the same. I've searched google/archives without real success. I'm using jdk 1.4.2 on Linux. Thanks, -- Giovanni P. Tirloni - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Possible bug in Tomcat JSTL
Hello, I am struggling to get the fmt:message tag working in Tomcat 5.05. Here is what I do and the result I get: 1. I set the locale using a el expressions as follows: fmt:setLocale value=${requestScope.lang}/ 2. I then choose a resource bundle as follows: fmt:bundle basename=com.parispano.latinamericaguide.resources.labels 3. I finally display a message as follows: fmt:message key=country_index_jsp/ I have to retranslate and recompile the jsp in order for the locale to be taken into account. Is this a bug in Tomcat? If no what I am getting wrong? Thanks in advance, Julien.
Re: Possible bug in Tomcat JSTL
Julien, if I remember right there were some problems with earlier releases of JSTL regarding TagPooling and not re-setting the Locale, try the latest one (I think it's 1.0.3) to see if problems disappear. Cheers, Yann ** I am struggling to get the fmt:message tag working in Tomcat 5.05. Here is what I do and the result I get: 1. I set the locale using a el expressions as follows: fmt:setLocale value=${requestScope.lang}/ 2. I then choose a resource bundle as follows: fmt:bundle basename=com.parispano.latinamericaguide.resources.labels 3. I finally display a message as follows: fmt:message key=country_index_jsp/ I have to retranslate and recompile the jsp in order for the locale to be taken into account. Is this a bug in Tomcat? If no what I am getting wrong? Thanks in advance, Julien. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [OFF TOPIC] Version Control
CVSNT + Eclipse -Original Message- From: Pitre, Russell [mailto:[EMAIL PROTECTED] Sent: September 24, 2003 11:50 AM To: Tomcat Users List Subject: RE: [OFF TOPIC] Version Control The Client as well as a cvs server. -Original Message- From: Phillip Qin [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 24, 2003 11:48 AM To: 'Tomcat Users List' Subject: RE: [OFF TOPIC] Version Control I think what he really needs is a CVS client. Eclipse and NetBeans both integrate the CVS client. -Original Message- From: Robert Priest [mailto:[EMAIL PROTECTED] Sent: September 24, 2003 11:16 AM To: 'Tomcat Users List' Subject: RE: [OFF TOPIC] Version Control I would try WinCvs for a beginner. Yes tortoise intergrates with explorer, but I find that WinCvs is more flexible. -Original Message- From: Ralph Einfeldt [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 24, 2003 11:14 AM To: Tomcat Users List Subject: RE: [OFF TOPIC] Version Control CVS has a gui interface. (Even more than one) http://www.wincvs.org/ http://www-csr.bessy.de/control/Soft/tkCVS/ http://www.tortoisecvs.org/ For a more complete overview see: http://www.cvshome.org/dev/addons.html -Original Message- From: Pitre, Russell [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 24, 2003 5:02 PM To: [EMAIL PROTECTED] Subject: [OFF TOPIC] Version Control Sorry for the Off topic question I'm looking for suggestions for a free version control system. I've tried cvs before.but, the learning curve is really steep for me...i'd rather go with something that has a gui interface. Thanx in advance - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat 4 appears to ignore web.xml after upgrade
I upgraded a Tomcat installation from 3.2.3 to 4.1.24, with a virtual host configuration using apache. Everything works fine, except that nothing in the web.xml file seems to be registering. This same web.xml file worked in Tomcat 3.2.3. That is: - taglibs are only able to be referenced using their location not by the taglib-urimytaglib/taglib-uri directive. - servlets are not able to be referenced by their servlet mappings. More details on taglibs: In web.xml, the taglibs are added as below: taglib taglib-urimytaglib/taglib-uri taglib-location/WEB-INF/lib/mytaglib.tld/taglib-location /taglib In the file itself: %@ taglib uri=mytaglib prefix=mailer % does not work, but %@ taglib uri=/WEB-INF/lib/mytaglib.tld prefix=mailer % works. As for servlets, I have a servlet added to the web.xml file: servlet servlet-nameMyServlet/servlet-name servlet-classcom.groundzero.MyServlet/servlet-class /servlet servlet-mapping servlet-nameMyServlet/servlet-name url-pattern/MyServlet/url-pattern /servlet-mapping However, when I try to access the file, I get a Tomcat page that says resource not found. Again all files in lib/ and classes/ are being found. It just does not seem to register these mappings. My context host tags done as below: Host name=myvirtualdomain.com debug=0 appBase=/usr/local/www/docs/www.moparaction.com unpackWARs=true Aliaswww.myvirtualdomain.com/Alias Listener className=org.apache.ajp.tomcat4.config.ApacheConfig modJk=/etc/httpd/modules/mod_jk-1.3.eapi.so forwardAll=false append=true/ Logger className=org.apache.catalina.logger.FileLogger directory=logs prefix=myvirtualdomain suffix=.log timestamp=true/ Context path= docBase= debug=0 reloadable=true/ /Host Any help on this would be *extremely* helpful. Gabe - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 4 appears to ignore web.xml after upgrade
Howdy, sigh ;( This is a FAQ... /sigh Let me guess: you have errors in your tomcat server log telling you your web.xml is not valid according to the Servlet Specification v2.3 DTD. You either didn't see or chose to ignore those errors. Well, you can't. Ensure your web.xml is valid according to the above DTD. The error messages will tell you exactly what's wrong. Yoav Shapira Millennium ChemInformatics -Original Message- From: Gabe [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 24, 2003 2:50 PM To: [EMAIL PROTECTED] Subject: Tomcat 4 appears to ignore web.xml after upgrade I upgraded a Tomcat installation from 3.2.3 to 4.1.24, with a virtual host configuration using apache. Everything works fine, except that nothing in the web.xml file seems to be registering. This same web.xml file worked in Tomcat 3.2.3. That is: - taglibs are only able to be referenced using their location not by the taglib-urimytaglib/taglib-uri directive. - servlets are not able to be referenced by their servlet mappings. More details on taglibs: In web.xml, the taglibs are added as below: taglib taglib-urimytaglib/taglib-uri taglib-location/WEB-INF/lib/mytaglib.tld/taglib-location /taglib In the file itself: %@ taglib uri=mytaglib prefix=mailer % does not work, but %@ taglib uri=/WEB-INF/lib/mytaglib.tld prefix=mailer % works. As for servlets, I have a servlet added to the web.xml file: servlet servlet-nameMyServlet/servlet-name servlet-classcom.groundzero.MyServlet/servlet-class /servlet servlet-mapping servlet-nameMyServlet/servlet-name url-pattern/MyServlet/url-pattern /servlet-mapping However, when I try to access the file, I get a Tomcat page that says resource not found. Again all files in lib/ and classes/ are being found. It just does not seem to register these mappings. My context host tags done as below: Host name=myvirtualdomain.com debug=0 appBase=/usr/local/www/docs/www.moparaction.com unpackWARs=true Aliaswww.myvirtualdomain.com/Alias Listener className=org.apache.ajp.tomcat4.config.ApacheConfig modJk=/etc/httpd/modules/mod_jk-1.3.eapi.so forwardAll=false append=true/ Logger className=org.apache.catalina.logger.FileLogger directory=logs prefix=myvirtualdomain suffix=.log timestamp=true/ Context path= docBase= debug=0 reloadable=true/ /Host Any help on this would be *extremely* helpful. Gabe - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
mapping a servlet to multiple urls
I think I may be misunderstanding how to map multiple urls to a servlet. I have a very simple servlet which when I use the following mapping (for context prj) servlet-mapping servlet-namemyServlet/servlet-name url-pattern/servlet/fred/url-pattern /servlet-mapping everything works fine and I can see my servlet output at /prj/servlet/fred. If I try servlet-mapping servlet-namemyServlet/servlet-name url-pattern/servlet/*/url-pattern /servlet-mapping I can only see my servlet output at a url of /prj/servlet/* ie with an actual asterisk in the url. I thought the * acts as a wildcard and I was hoping to see my servlet output at urls such as /prj/servlet/fred and /prj/servlet/freddy I am using Tomcat 5 (standalone, not with httpd) as downloaded with Sun's web services development kit. Is it correct to expect that mapping to map the servlet to /prj/servlet/fred and /prj/servlet/freddy? If so, what am I missing or doing wrong? Many thanks, Marion - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]