Re: jsp modifications not visible after tomcat restart?
yes, this should force a compilation of the jsp's. i have had that happen before and deletion of work dir followed by a restart loaded the new jsp's. Thank you, Nikil - Original Message From: Szabolcs Márton [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Tuesday, October 2, 2007 8:04:47 AM Subject: Re: jsp modifications not visible after tomcat restart? hi sometimes, delete /work dir at catalina_home helps, but i have the same problems sometimes. Something like the server doesnot recognize, that tha file changed and need recompile. regards Szabi 2007/10/2, loredana loredana [EMAIL PROTECTED]: I remember something like this happened to me a couple of years back but don't remember how I solved it. I run a tomcat 6 and I have a jsp file within an application. I remember that if I do a modification in a jsp file I don't have to restart tomcat, it's enough to copy the jsp file in the webapps/appfolder/ and refresh in browser. well that doesn't work for me. Even worse, I can even restart tomcat and the modifications in the jsp are still not visible. The only way I can see the modification is if I rename the file. So if have an index.jsp, I modify something in it...refresh the browser...nothing. I go and rename the index.jsp in index2.jsp then i will see the modifications. What can cause this behaviour? I thought it's the browser cache but it's not..cleaned it, even restarted broswer and still nothing. the only way I can see the modifications is if I rename the file. Anybody had a similar problem? Got a little couch potato? Check out fun summer activities for kids. http://search.yahoo.com/search?fr=oni_on_mailp=summer+activities+for+kidscs=bz - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Take the Internet to Go: Yahoo!Go puts the Internet in your pocket: mail, news, photos more. http://mobile.yahoo.com/go?refer=1GNXIC
Fresh install of Tomcat - getting frustrated with the JSP no working
Hello I have install a new fresh Tomcat 6, and I have JAVA 6 (all the newest versions from their sites) I have tried many things, but still while html and servlet work, JSP just won't work! I even tried using this Tomcat version and help - http://www.coreservlets.com/Apache-Tomcat-Tutorial/ http://www.coreservlets.com/Apache-Tomcat-Tutorial/ But still nothing This are the errors I get type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception org.apache.jasper.JasperException: Unable to compile class for JSP: An error occurred at line: 22 in the generated java fileThe method getJspApplicationContext(ServletContext) is undefined for the type JspFactory An error occurred at line: 82 in the generated java fileThe method handlePageException(Exception) in the type PageContext is not applicable for the arguments (Throwable) Stacktrace: org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:92) org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:330) org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:423) org.apache.jasper.compiler.Compiler.compile(Compiler.java:308) org.apache.jasper.compiler.Compiler.compile(Compiler.java:286) org.apache.jasper.compiler.Compiler.compile(Compiler.java:273) org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:566) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:317) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266) javax.servlet.http.HttpServlet.service(HttpServlet.java:865) note The full stack trace of the root cause is available in the Apache Tomcat/6.0.14 logs and this one HTTP Status 500 - type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception org.apache.jasper.JasperException: Unable to compile class for JSP: Stacktrace: org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:85) org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:330) org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:415) org.apache.jasper.compiler.Compiler.compile(Compiler.java:308) org.apache.jasper.compiler.Compiler.compile(Compiler.java:286) org.apache.jasper.compiler.Compiler.compile(Compiler.java:273) org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:566) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:308) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266) javax.servlet.http.HttpServlet.service(HttpServlet.java:865) note The full stack trace of the root cause is available in the Apache Tomcat/6.0.10 logs. What can I do please? Thank you! -- View this message in context: http://www.nabble.com/Fresh-install-of-Tomcat---getting-frustrated-with-the-JSP-no-working-tf4560454.html#a13014781 Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Fresh install of Tomcat - getting frustrated with the JSP no working
Here is the JSP - just a very simple one !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.0 Transitional//EN !-- Simple JSP file to test server setup and configuration. Taken from Core Servlets and JavaServer Pages 2nd Edition from Prentice Hall and Sun Microsystems Press, http://www.coreservlets.com/. (C) 2003 Marty Hall; may be freely used or adapted. -- HTML HEADTITLEJSP Test/TITLE/HEAD BODY BGCOLOR=#FDF5E6 H1JSP Test/H1 Time: %= new java.util.Date() % /BODY/HTML and this is the log file: 03/10/2007 12:24:47 org.apache.catalina.core.StandardWrapperValve invoke SEVERE: Servlet.service() for servlet jsp threw exception org.apache.jasper.JasperException: Unable to compile class for JSP: Stacktrace: at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:85) at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:330) at org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:415) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:308) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:286) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:273) at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:566) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:308) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266) at javax.servlet.http.HttpServlet.service(HttpServlet.java:865) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:228) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:216) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:634) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:445) at java.lang.Thread.run(Thread.java:619) What can I do please ? -- View this message in context: http://www.nabble.com/Fresh-install-of-Tomcat---getting-frustrated-with-the-JSP-no-working-tf4560454.html#a13016034 Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat/Plesk datasource setup problems
Turns out datasource configuration is not possible using Plesk as a shared tomcat server, the guys at Plesk themselves told me. That sucks. Means I have to create and manage the Datasource in my app... minor refactoring, but not a nice way of doing it. I also use hibernate and could only get that working by defining its own connection pooling. So now I have two pools :(( --- Pid [EMAIL PROTECTED] wrote: Charl Gerber wrote: Hi, I just moved my hosting from a provider where I had a private Tomcat server with complete control over it to a provider that uses Plesk and I share the Tomcat server with other users. The provider has no Tomcat knowledge in house and the Tomcat service is rarely used, so they couldn't help me with this problem. which version of tomcat? I want to create a jdbc datasource for my application. If we manually create it in server.xml, the provider claims that the changes are overwritten and removed every time someone uploads a new .war file. (Is this true?) AFAIK, server.xml is not altered by war file deployments. Tomcat would need to be restarted in order that those alterations to server.xml are evaluated. I also do not want to define the datasource as eg a global resource, as it would mean the other users of the tomcat server can get access to my database. I tried to configure the datasource in the context.xml of my application and put it in my .war file. This works fine on my development server, but when uploaded to the Tomcat server with Plesk, a server.xml entry for my application is created without the datasource settings and I cannot access my database. What are the details of the entry being made in server.xml? Is Plesk making these alterations? What process are you using to upload the WAR? How and where can I properly define a datasource for my application so that Plesk will set the Tomcat configuration correctly? META-INF/context.xml is the best location I think. Please provide more details about the tomcat version and the answer to the questions above. p CG - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Fresh install of Tomcat - getting frustrated with the JSP no working
If I recall correctly, in JSP spec 1.1, the argument for handlePageException() was Exception. In JSP spec 1.2 and later, the argument is Throwable. It would appear you have a servlet.jar from Servlet 2.2/JSP 1.1 somehow becoming the jar this JSP is running against, causing the method signature mismatch. Make sure you don't have a copy of servlet.jar in the WEB-INF/lib of your webapp or somewhere else involved with the running server, such as in the lib/ext directory of your JDK or JRE. In Tomcat 6, the JSP API classes are found in jsp-api.jar and servlet API classes are found in servlet-api.jar, with both located in the lib directory of the Tomcat 6 installation. Any servlet.jar you find involved with this server would contain out of date classes for this server. Cheers, Larry -Original Message- From: niblz [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 03, 2007 4:29 AM To: users@tomcat.apache.org Subject: Fresh install of Tomcat - getting frustrated with the JSP no working Hello I have install a new fresh Tomcat 6, and I have JAVA 6 (all the newest versions from their sites) I have tried many things, but still while html and servlet work, JSP just won't work! I even tried using this Tomcat version and help - http://www.coreservlets.com/Apache-Tomcat-Tutorial/ http://www.coreservlets.com/Apache-Tomcat-Tutorial/ But still nothing This are the errors I get type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception org.apache.jasper.JasperException: Unable to compile class for JSP: An error occurred at line: 22 in the generated java fileThe method getJspApplicationContext(ServletContext) is undefined for the type JspFactory An error occurred at line: 82 in the generated java fileThe method handlePageException(Exception) in the type PageContext is not applicable for the arguments (Throwable) Stacktrace: org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorH andler.java:92) org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.j ava:330) org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:4 23) org.apache.jasper.compiler.Compiler.compile(Compiler.java:308) org.apache.jasper.compiler.Compiler.compile(Compiler.java:286) org.apache.jasper.compiler.Compiler.compile(Compiler.java:273) org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.j ava:566) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.j ava:317) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320 ) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266) javax.servlet.http.HttpServlet.service(HttpServlet.java:865) note The full stack trace of the root cause is available in the Apache Tomcat/6.0.14 logs and this one HTTP Status 500 - --- - type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception org.apache.jasper.JasperException: Unable to compile class for JSP: Stacktrace: org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorH andler.java:85) org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.j ava:330) org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:4 15) org.apache.jasper.compiler.Compiler.compile(Compiler.java:308) org.apache.jasper.compiler.Compiler.compile(Compiler.java:286) org.apache.jasper.compiler.Compiler.compile(Compiler.java:273) org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.j ava:566) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.j ava:308) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320 ) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266) javax.servlet.http.HttpServlet.service(HttpServlet.java:865) note The full stack trace of the root cause is available in the Apache Tomcat/6.0.10 logs. What can I do please? Thank you! -- View this message in context: http://www.nabble.com/Fresh-install-of- Tomcat---getting-frustrated-with-the-JSP-no-working- tf4560454.html#a13014781 Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat/Plesk datasource setup problems
What about putting a listener in your web.xml that create a connection pool and link it to jndi? En l'instant précis du 03/10/07 14:01, Charl Gerber s'exprimait en ces termes: Turns out datasource configuration is not possible using Plesk as a shared tomcat server, the guys at Plesk themselves told me. That sucks. Means I have to create and manage the Datasource in my app... minor refactoring, but not a nice way of doing it. I also use hibernate and could only get that working by defining its own connection pooling. So now I have two pools :(( --- Pid [EMAIL PROTECTED] wrote: Charl Gerber wrote: Hi, I just moved my hosting from a provider where I had a private Tomcat server with complete control over it to a provider that uses Plesk and I share the Tomcat server with other users. The provider has no Tomcat knowledge in house and the Tomcat service is rarely used, so they couldn't help me with this problem. which version of tomcat? I want to create a jdbc datasource for my application. If we manually create it in server.xml, the provider claims that the changes are overwritten and removed every time someone uploads a new .war file. (Is this true?) AFAIK, server.xml is not altered by war file deployments. Tomcat would need to be restarted in order that those alterations to server.xml are evaluated. I also do not want to define the datasource as eg a global resource, as it would mean the other users of the tomcat server can get access to my database. I tried to configure the datasource in the context.xml of my application and put it in my .war file. This works fine on my development server, but when uploaded to the Tomcat server with Plesk, a server.xml entry for my application is created without the datasource settings and I cannot access my database. What are the details of the entry being made in server.xml? Is Plesk making these alterations? What process are you using to upload the WAR? How and where can I properly define a datasource for my application so that Plesk will set the Tomcat configuration correctly? META-INF/context.xml is the best location I think. Please provide more details about the tomcat version and the answer to the questions above. p CG - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- http://www.devlog.be (a belgian developer's logs) - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat/Plesk datasource setup problems
Why not move your hosting to an isp who provides a vps? Then you get complete control of your own tomcat; the whole thing looks and feels like you have your own server, even though you are sharing the physical machine.:w The prices I've seen are comparable to those where you have to share your tomcat. My 2 cents... Ken Bowen Charl Gerber wrote: Turns out datasource configuration is not possible using Plesk as a shared tomcat server, the guys at Plesk themselves told me. That sucks. Means I have to create and manage the Datasource in my app... minor refactoring, but not a nice way of doing it. I also use hibernate and could only get that working by defining its own connection pooling. So now I have two pools :(( --- Pid [EMAIL PROTECTED] wrote: Charl Gerber wrote: Hi, I just moved my hosting from a provider where I had a private Tomcat server with complete control over it to a provider that uses Plesk and I share the Tomcat server with other users. The provider has no Tomcat knowledge in house and the Tomcat service is rarely used, so they couldn't help me with this problem. which version of tomcat? I want to create a jdbc datasource for my application. If we manually create it in server.xml, the provider claims that the changes are overwritten and removed every time someone uploads a new .war file. (Is this true?) AFAIK, server.xml is not altered by war file deployments. Tomcat would need to be restarted in order that those alterations to server.xml are evaluated. I also do not want to define the datasource as eg a global resource, as it would mean the other users of the tomcat server can get access to my database. I tried to configure the datasource in the context.xml of my application and put it in my .war file. This works fine on my development server, but when uploaded to the Tomcat server with Plesk, a server.xml entry for my application is created without the datasource settings and I cannot access my database. What are the details of the entry being made in server.xml? Is Plesk making these alterations? What process are you using to upload the WAR? How and where can I properly define a datasource for my application so that Plesk will set the Tomcat configuration correctly? META-INF/context.xml is the best location I think. Please provide more details about the tomcat version and the answer to the questions above. p CG - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Foreign Language on web
Hello, in our application we have a text area, where in different language text needs to be entered, for instant French. Can any one of you help or guide in this regard. -- Regards Girish S.Havaldar
Re: Foreign Language on web
But in our application we are not making use of struts frame work. On 03/10/2007, Heping Ling [EMAIL PROTECTED] wrote: Even though I have not done it myself and I do not know if there are other ways, I do know that by using Struts you can display your contents in difference languages. Struts is an Apache product: http://struts.apache.org/ Jason -Original Message- From: Girish Havaldar [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 03, 2007 9:44 AM To: Tomcat Users List Subject: Foreign Language on web Hello, in our application we have a text area, where in different language text needs to be entered, for instant French. Can any one of you help or guide in this regard. -- Regards Girish S.Havaldar - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Regards Girish S.Havaldar
RE: Fresh install of Tomcat - getting frustrated with the JSP no working
Man you are a genius!!! Problem solved! It seem I had a thing in my path, where an older version of some api's like Servlet.api was casuing some mismatch! Now Every thing work very nice! Thank you guys :) Larry Isaacs wrote: If I recall correctly, in JSP spec 1.1, the argument for handlePageException() was Exception. In JSP spec 1.2 and later, the argument is Throwable. It would appear you have a servlet.jar from Servlet 2.2/JSP 1.1 somehow becoming the jar this JSP is running against, causing the method signature mismatch. Make sure you don't have a copy of servlet.jar in the WEB-INF/lib of your webapp or somewhere else involved with the running server, such as in the lib/ext directory of your JDK or JRE. In Tomcat 6, the JSP API classes are found in jsp-api.jar and servlet API classes are found in servlet-api.jar, with both located in the lib directory of the Tomcat 6 installation. Any servlet.jar you find involved with this server would contain out of date classes for this server. Cheers, Larry -Original Message- From: niblz [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 03, 2007 4:29 AM To: users@tomcat.apache.org Subject: Fresh install of Tomcat - getting frustrated with the JSP no working Hello I have install a new fresh Tomcat 6, and I have JAVA 6 (all the newest versions from their sites) I have tried many things, but still while html and servlet work, JSP just won't work! I even tried using this Tomcat version and help - http://www.coreservlets.com/Apache-Tomcat-Tutorial/ http://www.coreservlets.com/Apache-Tomcat-Tutorial/ But still nothing This are the errors I get type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception org.apache.jasper.JasperException: Unable to compile class for JSP: An error occurred at line: 22 in the generated java fileThe method getJspApplicationContext(ServletContext) is undefined for the type JspFactory An error occurred at line: 82 in the generated java fileThe method handlePageException(Exception) in the type PageContext is not applicable for the arguments (Throwable) Stacktrace: org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorH andler.java:92) org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.j ava:330) org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:4 23) org.apache.jasper.compiler.Compiler.compile(Compiler.java:308) org.apache.jasper.compiler.Compiler.compile(Compiler.java:286) org.apache.jasper.compiler.Compiler.compile(Compiler.java:273) org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.j ava:566) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.j ava:317) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320 ) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266) javax.servlet.http.HttpServlet.service(HttpServlet.java:865) note The full stack trace of the root cause is available in the Apache Tomcat/6.0.14 logs and this one HTTP Status 500 - --- - type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception org.apache.jasper.JasperException: Unable to compile class for JSP: Stacktrace: org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorH andler.java:85) org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.j ava:330) org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:4 15) org.apache.jasper.compiler.Compiler.compile(Compiler.java:308) org.apache.jasper.compiler.Compiler.compile(Compiler.java:286) org.apache.jasper.compiler.Compiler.compile(Compiler.java:273) org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.j ava:566) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.j ava:308) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320 ) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266) javax.servlet.http.HttpServlet.service(HttpServlet.java:865) note The full stack trace of the root cause is available in the Apache Tomcat/6.0.10 logs. What can I do please? Thank you! -- View this message in context: http://www.nabble.com/Fresh-install-of- Tomcat---getting-frustrated-with-the-JSP-no-working- tf4560454.html#a13014781 Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail:
RE: Fresh install of Tomcat - getting frustrated with the JSP noworking
From: niblz [mailto:[EMAIL PROTECTED] Subject: Re: Fresh install of Tomcat - getting frustrated with the JSP noworking http://www.coreservlets.com/Apache-Tomcat-Tutorial/ At least part of that tutorial is fatally flawed, and the author should be ashamed of himself. One must *never* set CLASSPATH to include the servlet-api.jar and jsp-api.jar (besides, he gave incorrect locations). Get rid of the CLASSPATH - you don't need it. I have download this OFFICIAL example http://tomcat.apache.org/tomcat-6.0-doc/appdev/sample/ Works fine for me; where did you put it? - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Fresh install of Tomcat - getting frustrated with the JSP no working
O I have got mine from the offical Tomcat site, and other version from here http://www.coreservlets.com/Apache-Tomcat-Tutorial/ Aa for copying things to my web-inf, well no The only thing I have done is putting the JSP in the ROOT dir in the web-app and trying to get into it Also I have download this OFFICIAL example http://tomcat.apache.org/tomcat-6.0-doc/appdev/sample/ And nothing (and I am sure this VERY simple example should work with out any problems) What shell I do now please? Pid-2 wrote: Right. Where did you get Tomcat 6 from, and what OS are you running? Have you moved or copied any of the libraries from Tomcat/lib to your WEB-INF/lib? p niblz wrote: Here is the JSP - just a very simple one !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.0 Transitional//EN !-- Simple JSP file to test server setup and configuration. Taken from Core Servlets and JavaServer Pages 2nd Edition from Prentice Hall and Sun Microsystems Press, http://www.coreservlets.com/. (C) 2003 Marty Hall; may be freely used or adapted. -- HTML HEADTITLEJSP Test/TITLE/HEAD BODY BGCOLOR=#FDF5E6 H1JSP Test/H1 Time: %= new java.util.Date() % /BODY/HTML and this is the log file: 03/10/2007 12:24:47 org.apache.catalina.core.StandardWrapperValve invoke SEVERE: Servlet.service() for servlet jsp threw exception org.apache.jasper.JasperException: Unable to compile class for JSP: Stacktrace: at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:85) at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:330) at org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:415) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:308) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:286) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:273) at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:566) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:308) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266) at javax.servlet.http.HttpServlet.service(HttpServlet.java:865) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:228) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:216) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:634) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:445) at java.lang.Thread.run(Thread.java:619) What can I do please ? - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Fresh-install-of-Tomcat---getting-frustrated-with-the-JSP-no-working-tf4560454.html#a13019654 Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: AJP Flush Packet causing text/plain output
I encountered a similar problem, where one servlet had a bug where the headers would be set _after_ the data had been sent. The result was that unrelated responses would come back as text/plain. Once I found the offending code and fixed it, the issue has not surfaced again. Mark On 9/24/07, Larry Reisler [EMAIL PROTECTED] wrote: We recently switched our development JBOSS instance from 4.05GA to 4.21GA, where we are have been using mod_jk for connecting an Apache front end server (2.2) to the Tomcat AppServer. We have noticed periodic times when the apache web server will return data with a content-type of plain/text (the server default) instead of the real content-type, and a chunked encoding (even if the AppServer was producing a non-chunked content). We tried switch to mod_proxy_ajp, but got the same result. A bit of sleuthing (2 days X 2 engineers) revealed that the AJP connection on Tomcat is sending a SEND_BODY_CHUNK (which I assume is a flush packet) periodically that seem to be confusing mod_jk. We can see in the mod_jk and mod_proxy_ajp debug log that the correct headers are coming from the Tomcat server. However, it seems like mod_jk and mod_proxy_ajp are losing all the header information regarding the packet (including the Powered by headers, content-type, content-length, cookies, etc.). In normal operation, for a sample small transaction, we would see this sequence in response: SEND_HEADERS SEND_BODY_CHUNK END_RESPONSE When the output would come out as text/plain, we would see this sequence: SEND_BODY_CHUNK SEND_HEADERS SEND_BODY_CHUNK END_RESPONSE Is there something we should have configured differently so that mod_jk or mod_proxy_ajp will behave better? - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Foreign Language on web
Even though I have not done it myself and I do not know if there are other ways, I do know that by using Struts you can display your contents in difference languages. Struts is an Apache product: http://struts.apache.org/ Jason -Original Message- From: Girish Havaldar [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 03, 2007 9:44 AM To: Tomcat Users List Subject: Foreign Language on web Hello, in our application we have a text area, where in different language text needs to be entered, for instant French. Can any one of you help or guide in this regard. -- Regards Girish S.Havaldar - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tomcat iptables problem
Thanks a lot for all your valuable answers! Unfortunately none of them helped me. Let me give you an example of this strange behavior (tomcat starting very slowly [3min.]). iptables Ruleset: - Chain INPUT (policy DROP) target prot opt source destination accept bla bla accept bla bla Chain FORWARD (policy DROP) target prot opt source destination accept bla bla accept bla bla Chain OUTPUT (policy DROP) target prot opt source destination accept bla bla accept bla bla - = Tomcat starts slowly. Then I do the following: iptables -P INPUT ACCEPT iptables -P OUTPUT ACCEPT iptables -P FORWARD ACCEPT iptables -F INPUT iptables -F OUTPUT iptables -F FORWARD So I get: - Chain INPUT (policy ACCEPT) target prot opt source destination Chain FORWARD (policy ACCEPT) target prot opt source destination Chain OUTPUT (policy ACCEPT) target prot opt source destination - = Tomcat still (!!!) starts slowly! (Why???) Only when I restart the whole Debian machine and do not start the firewall tomcat starts fast. The system is Debian 4.0 with a 2.6.18-4-xen-amd64 kernel and apache-tomcat-5.5.23 (same behavior with apache-tomcat-6.0.14). Any suggestions? Many thanks in advance Dieter Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Dieter, Dieter Schicker wrote: Now I set up an iptables firewall (with fwbuilder) with the following open ports: 8080 (http), 8005 (shutdown?), 8009 (ajp connector) and all lo traffic is allowed. What about outgoing allowed ports? With this configuration I have the following behavior: Tomcat needs 3 minutes to shut down and another 3 minutes to start up again. If it runs it runs perfectly ... I'm not sure about shutdown, but if your server (or application) is configured to use, say, an XML document with a SYSTEM ID that points to an outside URL (for instance: http://java.sun.com/dtd/web-app_2_3.dtd), the XML parser might be attempting to access that URL. If your firewall is preventing outgoing HTTP connections (good old port 80), it might waste a lot of time re-trying before it finally gives up and reads non-validated XML). I would change your iptables configuration to set all outgoing rejected requests to LOG as well as reject, and then you can watch the iptables log (usually the kernel log on Debian IIRC) for requests to foreign hosts on port 80. Hope that helps, - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHAsQE9CaO5/Lv0PARAkrSAKCa6D0xMiG6zo4SdP5r3FVbEN30+ACgonNN UuRz6pB8z+UUciozFLGv3eY= =N69G -END PGP SIGNATURE- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Dieter Schicker INIG - Department of Information Processing in the Humanities Karl Franzens University of Graz Merangasse 70 A-8020 Graz Tel.: +43 316 380 8012 http://www-gewi.uni-graz.at/inig/ -- Student of Computer Science Graz University of Technology [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Foreign Language on web
Girish Havaldar wrote: Hello, in our application we have a text area, where in different language text needs to be entered, for instant French. Can any one of you help or guide in this regard. Sure can, if there's actually a question about a problem you're having with the Tomcat server. Please provide the version number you are using and the version of Java you have installed. p - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Foreign Language on web
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Girish, Girish Havaldar wrote: in our application we have a text area, where in different language text needs to be entered, for instant French. Can any one of you help or guide in this regard. You want to have the user enter text in a different language? That shouldn't be a problem. Just let them know please enter your text in French. Maybe I don't understand your problem. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHA6eq9CaO5/Lv0PARAiPxAJ9Ie236d3YpjRdBLcbQEIjDnMT6FQCguLhj ndJ6AoP+TKP5ZAspkY1wRAw= =uDuF -END PGP SIGNATURE- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tomcat iptables problem
Sorry, of course the accept bla bla goes into a separate line! Dieter Schicker wrote: Thanks a lot for all your valuable answers! Unfortunately none of them helped me. Let me give you an example of this strange behavior (tomcat starting very slowly [3min.]). iptables Ruleset: - Chain INPUT (policy DROP) target prot opt source destination accept bla bla accept bla bla Chain FORWARD (policy DROP) target prot opt source destinationaccept bla bla accept bla bla Chain OUTPUT (policy DROP) target prot opt source destinationaccept bla bla accept bla bla - = Tomcat starts slowly. Then I do the following: iptables -P INPUT ACCEPT iptables -P OUTPUT ACCEPT iptables -P FORWARD ACCEPT iptables -F INPUT iptables -F OUTPUT iptables -F FORWARD So I get: - Chain INPUT (policy ACCEPT) target prot opt source destination Chain FORWARD (policy ACCEPT) target prot opt source destination Chain OUTPUT (policy ACCEPT) target prot opt source destination - = Tomcat still (!!!) starts slowly! (Why???) Only when I restart the whole Debian machine and do not start the firewall tomcat starts fast. The system is Debian 4.0 with a 2.6.18-4-xen-amd64 kernel and apache-tomcat-5.5.23 (same behavior with apache-tomcat-6.0.14). Any suggestions? Many thanks in advance Dieter Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Dieter, Dieter Schicker wrote: Now I set up an iptables firewall (with fwbuilder) with the following open ports: 8080 (http), 8005 (shutdown?), 8009 (ajp connector) and all lo traffic is allowed. What about outgoing allowed ports? With this configuration I have the following behavior: Tomcat needs 3 minutes to shut down and another 3 minutes to start up again. If it runs it runs perfectly ... I'm not sure about shutdown, but if your server (or application) is configured to use, say, an XML document with a SYSTEM ID that points to an outside URL (for instance: http://java.sun.com/dtd/web-app_2_3.dtd), the XML parser might be attempting to access that URL. If your firewall is preventing outgoing HTTP connections (good old port 80), it might waste a lot of time re-trying before it finally gives up and reads non-validated XML). I would change your iptables configuration to set all outgoing rejected requests to LOG as well as reject, and then you can watch the iptables log (usually the kernel log on Debian IIRC) for requests to foreign hosts on port 80. Hope that helps, - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHAsQE9CaO5/Lv0PARAkrSAKCa6D0xMiG6zo4SdP5r3FVbEN30+ACgonNN UuRz6pB8z+UUciozFLGv3eY= =N69G -END PGP SIGNATURE- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Dieter Schicker INIG - Department of Information Processing in the Humanities Karl Franzens University of Graz Merangasse 70 A-8020 Graz Tel.: +43 316 380 8012 http://www-gewi.uni-graz.at/inig/ Dieter Schicker INIG - Department of Information Processing in the Humanities Karl Franzens University of Graz Merangasse 70 A-8020 Graz Tel.: +43 316 380 8012 http://www-gewi.uni-graz.at/inig/ -- Student of Computer Science Graz University of Technology [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
client footprint identification for statistic purposes behind a NAT-mode router
Hi, I have tomcat 5.5 installed and would like to exploit the log records it is registering. My problem is that the webserver is behind a router with NAT activated, so what I see is the same host (actually the router) accessing hundreds of times to the website, instead of seeing hundreds of single (but different) users. Does any of you know anything about this issue? is Tomcat able to store original host IP in the log files? Any suggestion would be helpful. Thanks, Jorge
Re: Foreign Language on web
Tomcat 5.5 Java1.5.0_06 On 03/10/2007, Pid [EMAIL PROTECTED] wrote: Girish Havaldar wrote: Hello, in our application we have a text area, where in different language text needs to be entered, for instant French. Can any one of you help or guide in this regard. Sure can, if there's actually a question about a problem you're having with the Tomcat server. Please provide the version number you are using and the version of Java you have installed. p - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Regards Girish S.Havaldar
Re: tomcat iptables problem
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Dieter, Dieter Schicker wrote: [all chains set to drop unless otherwise configured] = Tomcat starts slowly. :( Then I do the following: [all chains set to accept, all chains empty] = Tomcat still (!!!) starts slowly! (Why???) :( Only when I restart the whole Debian machine and do not start the firewall tomcat starts fast. What about doing /etc/init.d/iptables stop when the firewall is running. Does Tomcat then start and stop more quickly? I find it hard to believe that the presence of the iptables kernel module is causing this problem. /etc/init.d/iptables stop should set all the rules to allow everything, while the same command with start should load the rules you have configured for the host. See if that does anything. The important thing is that there /are/ times when it starts up quickly. That's good, because that means it's possible ;) - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHA6li9CaO5/Lv0PARAidYAJ0Q0znqi2xu02uZ6uwatD1kZBmYgQCfQTMF IqX42e199hyP7v4RF330Jxw= =7VuT -END PGP SIGNATURE- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: client footprint identification for statistic purposes behind a NAT-mode router
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jorge, Jorge Martinez wrote: My problem is that the webserver is behind a router with NAT activated, so what I see is the same host (actually the router) accessing hundreds of times to the website, instead of seeing hundreds of single (but different) users. Hmm. I have my Tomcat fronted with Apache httpd and also have a (development) server behind a NAT-enabled router. From outside the router, IP addresses are logged appropriately (that is, it does not look like the router itself is making all the requests). I'll try to access Tomcat directly from the outside and see what the Tomcat access log files say. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHA6or9CaO5/Lv0PARAghCAKCdz7Tu7DqnhAxFp9gbmSLSj5zj8wCgtK/v 3W7rFyOsFN2l5zMANr5g7Uw= =vv8a -END PGP SIGNATURE- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Foreign Language on web
Ya thats fine if the language is English, what if Japanese or chines text needs to be entered, what are the things we need to provide user, so that user will just select the language which he wants and enters the text in that language. I think am not representing my problem correctly. On 03/10/2007, Christopher Schultz [EMAIL PROTECTED] wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Girish, Girish Havaldar wrote: in our application we have a text area, where in different language text needs to be entered, for instant French. Can any one of you help or guide in this regard. You want to have the user enter text in a different language? That shouldn't be a problem. Just let them know please enter your text in French. Maybe I don't understand your problem. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHA6eq9CaO5/Lv0PARAiPxAJ9Ie236d3YpjRdBLcbQEIjDnMT6FQCguLhj ndJ6AoP+TKP5ZAspkY1wRAw= =uDuF -END PGP SIGNATURE- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Regards Girish S.Havaldar
Re: client footprint identification for statistic purposes behind a NAT-mode router
Are those log entries with the router's address coming from clients in the local network, or from the internet? With my NAT gateway, I see the correct IP addresses for clients coming in from the internet, but local clients that use the internet site name (www.mywhatever.com) show up as coming from the router's IP. -- Len On 10/3/07, Jorge Martinez [EMAIL PROTECTED] wrote: Hi, I have tomcat 5.5 installed and would like to exploit the log records it is registering. My problem is that the webserver is behind a router with NAT activated, so what I see is the same host (actually the router) accessing hundreds of times to the website, instead of seeing hundreds of single (but different) users. Does any of you know anything about this issue? is Tomcat able to store original host IP in the log files? Any suggestion would be helpful. Thanks, Jorge - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: client footprint identification for statistic purposes behind a NAT-mode router
Thanks Chris, it would be good to know about the result of your test. I'm going to test what happens when accessing to Tomcat from the internal network though behind the router. Cheers, 2007/10/3, Christopher Schultz [EMAIL PROTECTED]: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jorge, Jorge Martinez wrote: My problem is that the webserver is behind a router with NAT activated, so what I see is the same host (actually the router) accessing hundreds of times to the website, instead of seeing hundreds of single (but different) users. Hmm. I have my Tomcat fronted with Apache httpd and also have a (development) server behind a NAT-enabled router. From outside the router, IP addresses are logged appropriately (that is, it does not look like the router itself is making all the requests). I'll try to access Tomcat directly from the outside and see what the Tomcat access log files say. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHA6or9CaO5/Lv0PARAghCAKCdz7Tu7DqnhAxFp9gbmSLSj5zj8wCgtK/v 3W7rFyOsFN2l5zMANr5g7Uw= =vv8a -END PGP SIGNATURE- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Jorge Martinez 630934694
Re: client footprint identification for statistic purposes behind a NAT-mode router
Thanks Len, My log entries correspond to clients from the internet. Local clients are logged as 'localhost', but I have not yet tested what happens with LAN clients. My problem is however internet clients. Cheers, 2007/10/3, Len Popp [EMAIL PROTECTED]: Are those log entries with the router's address coming from clients in the local network, or from the internet? With my NAT gateway, I see the correct IP addresses for clients coming in from the internet, but local clients that use the internet site name (www.mywhatever.com) show up as coming from the router's IP. -- Len On 10/3/07, Jorge Martinez [EMAIL PROTECTED] wrote: Hi, I have tomcat 5.5 installed and would like to exploit the log records it is registering. My problem is that the webserver is behind a router with NAT activated, so what I see is the same host (actually the router) accessing hundreds of times to the website, instead of seeing hundreds of single (but different) users. Does any of you know anything about this issue? is Tomcat able to store original host IP in the log files? Any suggestion would be helpful. Thanks, Jorge - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Jorge Martinez 630934694
Re: Foreign Language on web
Girish Havaldar wrote: Ya thats fine if the language is English, what if Japanese or chines text needs to be entered, what are the things we need to provide user, so that user will just select the language which he wants and enters the text in that language. I think am not representing my problem correctly. I agree. Is the problem that *you* don't know what language they're choosing, or that *they* don't know what language to use? p (Please only reply to the list, I don't need a copy as well) On 03/10/2007, Christopher Schultz [EMAIL PROTECTED] wrote: Girish, Girish Havaldar wrote: in our application we have a text area, where in different language text needs to be entered, for instant French. Can any one of you help or guide in this regard. You want to have the user enter text in a different language? That shouldn't be a problem. Just let them know please enter your text in French. Maybe I don't understand your problem. -chris - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Help - javax.servlet.UnavailableException: No resources
Hi, I am trying to use webDAV servlet in my application So I downloaded the webDAV Servlet and included it in my application. I put it in mypackage package. But when a request is directed to this servlet, I get the following error. INFO: Marking servlet webdav as unavailable Oct 3, 2007 4:47:15 PM org.apache.catalina.core.StandardWrapperValve invoke SEVERE: Allocate exception for servlet webdav javax.servlet.UnavailableException: No resources at org.apache.catalina.servlets.DefaultServlet.init(DefaultServlet.java:320) at mypackage.WebdavServlet.init(WebdavServlet.java:221) at javax.servlet.GenericServlet.init(GenericServlet.java:212) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1139) at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:791) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:127) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:874) at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689) at java.lang.Thread.run(Unknown Source) Just to test whether I can deploy this webDAV servlet, I have removed everything from my web application and Here is my web.xml content: !DOCTYPE web-app PUBLIC '-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN' 'http://java.sun.com/dtd/web-app_2_3.dtd' web-app servlet servlet-namewebdav/servlet-name servlet-classmypackage.WebdavServlet/servlet-class init-param param-namedebug/param-name param-value1/param-value /init-param init-param param-namelistings/param-name param-valuetrue/param-value /init-param servlet-classmypackage.WebdavServlet/servlet-class /servlet servlet-mapping servlet-namewebdav/servlet-name url-pattern/*/url-pattern /servlet-mapping /web-app I am new to Tomcat and webDAV, but I think the problem is in deployment, but I don't know where? I am using Tomcat plugins for Eclipse to deploy the web application. regards, /shahab - Tonight's top picks. What will you watch tonight? Preview the hottest shows on Yahoo! TV.
RE: Foreign Language on web
From: Girish Havaldar [mailto:[EMAIL PROTECTED] what are the things we need to provide user, so that user will just select the language which he wants and enters the text in that language. Do you need to know the language in which the user has entered the text? Or do you just need the text? If you need to know the language, you probably need to provide a HTML select field with different options for the different languages, so that the user can tell you. Otherwise, you just need a HTML text input box on the page, and to be very careful with your character encodings all the way through the application and the HTML pages. I'd suggest standardising on UTF-8 as your character encoding for all pages and all text. The user's browser, keyboard etc. has the appropriate keyboard settings to allow them to enter text in their own language. Or have I misunderstood the question? - Peter - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Foreign Language on web
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Girish, Girish Havaldar wrote: Ya thats fine if the language is English, what if Japanese or Chinese text needs to be entered, what are the things we need to provide user, so that user will just select the language which he wants and enters the text in that language. Well, you certainly need to ask the user what language they are going to enter. Might I suggest a drop-down that contains a list of the languages you support? On our site, we provide both language and country, so we can have (for instance) separate British and US English text if we want. I think am not representing my problem correctly. I think you're right. Let me guess: you have an application that currently deals exclusively in a single language. You want to allow other languages. You have a lot of work to do. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHA68A9CaO5/Lv0PARAtC3AKCfURu5pa4jp4/RUHzhDhfE1VNtdgCghnjf 3z7JJevVTlnsLUr8M6jUHC8= =3R1b -END PGP SIGNATURE- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: client footprint identification for statistic purposes behind a NAT-mode router
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jorge, Jorge Martinez wrote: Thanks Chris, it would be good to know about the result of your test. I'm going to test what happens when accessing to Tomcat from the internal network though behind the router. Something else must be wrong with your host or network configuration: I always get the correct IP address. I'm just using the standard AccessLogValve(in TC 5.5). I merely uncommented said valve in the stock server.xml to test it out. Hope that helps, - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHA7DI9CaO5/Lv0PARAu5OAJ9gSBCznTVCV6+Bil7yNd06Otdw9ACgmVwp L62F/5lqJA757ZwF7DiZggQ= =azty -END PGP SIGNATURE- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: client footprint identification for statistic purposes behind a NAT-mode router
Hi, I do not know what NAT router you are using, but I would check the configuration or manual to see that it is setup to forward source IP Addresses. Jorge Martinez wrote: Thanks Len, My log entries correspond to clients from the internet. Local clients are logged as 'localhost', but I have not yet tested what happens with LAN clients. My problem is however internet clients. Cheers, 2007/10/3, Len Popp [EMAIL PROTECTED]: Are those log entries with the router's address coming from clients in the local network, or from the internet? With my NAT gateway, I see the correct IP addresses for clients coming in from the internet, but local clients that use the internet site name (www.mywhatever.com) show up as coming from the router's IP. -- Len On 10/3/07, Jorge Martinez [EMAIL PROTECTED] wrote: Hi, I have tomcat 5.5 installed and would like to exploit the log records it is registering. My problem is that the webserver is behind a router with NAT activated, so what I see is the same host (actually the router) accessing hundreds of times to the website, instead of seeing hundreds of single (but different) users. Does any of you know anything about this issue? is Tomcat able to store original host IP in the log files? Any suggestion would be helpful. Thanks, Jorge - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Regards Gabe Wong Private JVM JAVA Hosting Automation http://www.ngasi.com - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Filters do not apply after redirect to the url that serving by Servlet
Hi all, Do not know if this a problem with Tomcat or with Servlet 2.4 spec I have a FilterA that redirects from /news to the /mvc/news.html Then I have a DispatcherServelt that mapped to the /mvc/* And a FilterB that mapped to *.html for both REQUEST and REDIRECT methods like this filter-mapping filter-namefilterB/filter-name url-pattern*.html/url-pattern dispatcherREQUEST/dispatcher dispatcherFORWARD/dispatcher /filter-mapping FilterB does not apply during processing After adding filter-mapping filter-namefilterB/filter-name url-pattern/mvc/url-pattern dispatcherFORWARD/dispatcher /filter-mapping It works like intended. I understand that Mapping for URL does not apply when I forward on URL that matching some servlet, very strange but this workaround proves it I'm using Tomcat 5.5.9 under java 5 Please suggest whether it is a bug or a standard behavior, as for me it is a bug Thanks in advance Mykola
RE: Fresh install of Tomcat - getting frustrated with the JSP noworking
From: Marty Hall [mailto:[EMAIL PROTECTED] Subject: RE: Fresh install of Tomcat - getting frustrated with the JSP noworking If you compile directly (from TextPad or UltraEdit or the command line), then you need to either set the CLASSPATH variable or pass -classpath on the command line or put the JARs in the ext folder (this is in the development environment, not the server environment). That is indeed correct. However, the links within the tutorial indicate that CLASSPATH should be set for the Tomcat server execution, not just servlet compilation. Including those jars in the CLASSPATH during Tomcat execution causes multiple copies of the classes to be loaded under different classloaders, resulting in no end of grief with CNFE problems. (Also, the given location of the jars is incorrect for Tomcat 6.) - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: client footprint identification for statistic purposes behind a NAT-mode router
I'll try Chris, at least I have somewhere to start with. Thanks again. Cheers, 2007/10/3, Christopher Schultz [EMAIL PROTECTED]: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jorge, Jorge Martinez wrote: Thanks Chris, it would be good to know about the result of your test. I'm going to test what happens when accessing to Tomcat from the internal network though behind the router. Something else must be wrong with your host or network configuration: I always get the correct IP address. I'm just using the standard AccessLogValve(in TC 5.5). I merely uncommented said valve in the stock server.xml to test it out. Hope that helps, - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHA7DI9CaO5/Lv0PARAu5OAJ9gSBCznTVCV6+Bil7yNd06Otdw9ACgmVwp L62F/5lqJA757ZwF7DiZggQ= =azty -END PGP SIGNATURE- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Jorge Martinez 630934694
Re: client footprint identification for statistic purposes behind a NAT-mode router
Hi Gabe, many thanks, I'll try that. Hope the problem is so easy to fix. Cheers, 2007/10/3, Gabe Wong [EMAIL PROTECTED]: Hi, I do not know what NAT router you are using, but I would check the configuration or manual to see that it is setup to forward source IP Addresses. Jorge Martinez wrote: Thanks Len, My log entries correspond to clients from the internet. Local clients are logged as 'localhost', but I have not yet tested what happens with LAN clients. My problem is however internet clients. Cheers, 2007/10/3, Len Popp [EMAIL PROTECTED]: Are those log entries with the router's address coming from clients in the local network, or from the internet? With my NAT gateway, I see the correct IP addresses for clients coming in from the internet, but local clients that use the internet site name (www.mywhatever.com) show up as coming from the router's IP. -- Len On 10/3/07, Jorge Martinez [EMAIL PROTECTED] wrote: Hi, I have tomcat 5.5 installed and would like to exploit the log records it is registering. My problem is that the webserver is behind a router with NAT activated, so what I see is the same host (actually the router) accessing hundreds of times to the website, instead of seeing hundreds of single (but different) users. Does any of you know anything about this issue? is Tomcat able to store original host IP in the log files? Any suggestion would be helpful. Thanks, Jorge - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Regards Gabe Wong Private JVM JAVA Hosting Automation http://www.ngasi.com - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Jorge Martinez 630934694
Re: Foreign Language on web
On 03/10/2007, Peter Crowther [EMAIL PROTECTED] wrote: From: Girish Havaldar [mailto:[EMAIL PROTECTED] what are the things we need to provide user, so that user will just select the language which he wants and enters the text in that language. Do you need to know the language in which the user has entered the text? Or do you just need the text? No, this time,you are almost near,i need text, i need user to enter text in French, Japanese, Hindi(Indian Language) etc.,. By standardizing to UTF-8 and providing the respective Font,we 'll be able to accomplish the things? you mentioned about Keyboard setting, can you please brief me about keyboard setting little more. If you need to know the language, you probably need to provide a HTML select field with different options for the different languages, so that the user can tell you. Otherwise, you just need a HTML text input box on the page, and to be very careful with your character encodings all the way through the application and the HTML pages. I'd suggest standardising on UTF-8 as your character encoding for all pages and all text. The user's browser, keyboard etc. has the appropriate keyboard settings to allow them to enter text in their own language. Or have I misunderstood the question? - Peter - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Regards Girish S.Havaldar
RE: Foreign Language on web
From: Girish Havaldar [mailto:[EMAIL PROTECTED] i need text, i need user to enter text in French, Japanese, Hindi(Indian Language) etc.,. OK. By standardizing to UTF-8 and providing the respective Font, we 'll be able to accomplish the things? If you're just using HTML and Tomcat, you don't need to provide the font. That's up to the user. A user who works in (say) Japanese will already have a Japanese font installed on their machine, or they wouldn't be able to use the machine in their own language. You should probably make sure your Web pages use CSS with font definitions that have a large range of the Unicode glyphs defined, but you probably don't need to download the font. This is a good thing, given that (for example) the Arial Unicode MS TrueType font file was 21 megabytes last time I checked. you mentioned about Keyboard setting, can you please brief me about keyboard setting little more. It's not your problem - again, it's the user's. A user who usually works in (say) Japanese will already have a Japanese keyboard installed on their machine, and will know how to use it. Otherwise, again, they would not be able to do their normal work. All of this assumes that your users are normal Internet users from around the world. If you're writing software for a different audience, tell us! - Peter - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Foreign Language on web
IMO, this is not tomcat specific, so reply to me off line if you want to discuss it further. I'm not 100% certain, but shouldn't you simply be specifying the appropriate international character set to use for that instance of your application? A text field is a text field, it's the character set the determines the language in use. Any UTF-8 application should be able to use the international character sets. The secondary issue is changing your labels, etc., but that sort of internationalization is fairly straightforward and done in lots of applications. Our app (see: centriccrm.com -- it's open source) is set up for internationalization and we have functional versions in a wide variety of languages. Thanks, J Girish Havaldar wrote: Ya thats fine if the language is English, what if Japanese or chines text needs to be entered, what are the things we need to provide user, so that user will just select the language which he wants and enters the text in that language. I think am not representing my problem correctly. On 03/10/2007, Christopher Schultz [EMAIL PROTECTED] wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Girish, Girish Havaldar wrote: in our application we have a text area, where in different language text needs to be entered, for instant French. Can any one of you help or guide in this regard. You want to have the user enter text in a different language? That shouldn't be a problem. Just let them know please enter your text in French. Maybe I don't understand your problem. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHA6eq9CaO5/Lv0PARAiPxAJ9Ie236d3YpjRdBLcbQEIjDnMT6FQCguLhj ndJ6AoP+TKP5ZAspkY1wRAw= =uDuF -END PGP SIGNATURE- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Joshua J. Fielek Sr. Software Engineer Centric CRM 223 East City Hall Ave., Suite 212 Norfolk, VA 23510 Phone : (757) 627-3002x6656 Mobile : (757) 754-4462 Fax: (757) 627-8773 Email : [EMAIL PROTECTED] http://www.centriccrm.com - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
FindClass org/apache/catalina/startup/Bootstrap failed
I downloaded and ran the Tomcat 6.0.14 Windows Service Installer. When I try to start Tomcat from Control Panel - Services, it does not start and I get the following error message in jakarta_service_20071003.log: [2007-10-03 11:31:39] [info] Procrun (2.0.3.0) started [2007-10-03 11:31:39] [info] Running Service... [2007-10-03 11:31:39] [info] Starting service... [2007-10-03 11:31:39] [443 javajni.c] [error] FindClass org/apache/catalina/startup/Bootstrap failed [2007-10-03 11:31:39] [997 prunsrv.c] [error] Failed loading main org/apache/catalina/startup/Bootstrap class C:\Program Files\Apache Software Foundation\Tomcat 6.0\bin\bootstrap.jar [2007-10-03 11:31:39] [1260 prunsrv.c] [error] ServiceStart returned 3 [2007-10-03 11:31:39] [info] Run service finished. [2007-10-03 11:31:39] [info] Procrun finished. The RUNNING.txt file says to use $CATALINA_HOME\bin\startup.bat, however, there is no startup.bat in C:\Program Files\Apache Software Foundation\Tomcat 6.0\bin or installed anywhere else on the whole file system (under C:) The tomcat6.exe does not show a usage message which called with -h. Running tomcat6.exe without any arguments does not seem to start the web server, and calling it repeatedly throws an OutOfMemoryError. I am using java version 1.6.0_02 Marlin W. Pierce Software Engineer - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Fresh install of Tomcat - getting frustrated with the JSP noworking
From: Marty Hall [mailto:[EMAIL PROTECTED] Subject: RE: Fresh install of Tomcat - getting frustrated with the JSP noworking Sorry if I was unclear. The part on setting the CLASSPATH was under the section entitled Setting up your Development Environment. Part of the problem is the link to the CLASSPATH section from Executive Summary. When following that link, the fact that it's under the Development Environment section can't be seen. There needs to be a stronger statement that setting CLASSPATH is *only* for compilation of servlets, and that it must be removed prior to actually running Tomcat. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Filters do not apply after redirect to the url that serving by Servlet
Better use /mvc/* as url pattern than /mvc if you want it to apply to /mvc/news.html Mykola Paliyenko a écrit : Hi all, Do not know if this a problem with Tomcat or with Servlet 2.4 spec I have a FilterA that redirects from /news to the /mvc/news.html Then I have a DispatcherServelt that mapped to the /mvc/* And a FilterB that mapped to *.html for both REQUEST and REDIRECT methods like this filter-mapping filter-namefilterB/filter-name url-pattern*.html/url-pattern dispatcherREQUEST/dispatcher dispatcherFORWARD/dispatcher /filter-mapping FilterB does not apply during processing After adding filter-mapping filter-namefilterB/filter-name url-pattern/mvc/url-pattern dispatcherFORWARD/dispatcher /filter-mapping It works like intended. I understand that Mapping for URL does not apply when I forward on URL that matching some servlet, very strange but this workaround proves it I'm using Tomcat 5.5.9 under java 5 Please suggest whether it is a bug or a standard behavior, as for me it is a bug Thanks in advance Mykola - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat/Plesk datasource setup problems
I currently DO have my own Tomcat server, but the application is now moved to South Africa (site for a business over there, makes it a lot faster for the users who will 99% be based in SA) and Tomcat hosting alone is difficult, leave alone a private JVM. --- Ken Bowen [EMAIL PROTECTED] wrote: Why not move your hosting to an isp who provides a vps? Then you get complete control of your own tomcat; the whole thing looks and feels like you have your own server, even though you are sharing the physical machine.:w The prices I've seen are comparable to those where you have to share your tomcat. My 2 cents... Ken Bowen Charl Gerber wrote: Turns out datasource configuration is not possible using Plesk as a shared tomcat server, the guys at Plesk themselves told me. That sucks. Means I have to create and manage the Datasource in my app... minor refactoring, but not a nice way of doing it. I also use hibernate and could only get that working by defining its own connection pooling. So now I have two pools :(( --- Pid [EMAIL PROTECTED] wrote: Charl Gerber wrote: Hi, I just moved my hosting from a provider where I had a private Tomcat server with complete control over it to a provider that uses Plesk and I share the Tomcat server with other users. The provider has no Tomcat knowledge in house and the Tomcat service is rarely used, so they couldn't help me with this problem. which version of tomcat? I want to create a jdbc datasource for my application. If we manually create it in server.xml, the provider claims that the changes are overwritten and removed every time someone uploads a new .war file. (Is this true?) AFAIK, server.xml is not altered by war file deployments. Tomcat would need to be restarted in order that those alterations to server.xml are evaluated. I also do not want to define the datasource as eg a global resource, as it would mean the other users of the tomcat server can get access to my database. I tried to configure the datasource in the context.xml of my application and put it in my .war file. This works fine on my development server, but when uploaded to the Tomcat server with Plesk, a server.xml entry for my application is created without the datasource settings and I cannot access my database. What are the details of the entry being made in server.xml? Is Plesk making these alterations? What process are you using to upload the WAR? How and where can I properly define a datasource for my application so that Plesk will set the Tomcat configuration correctly? META-INF/context.xml is the best location I think. Please provide more details about the tomcat version and the answer to the questions above. p CG - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat/Plesk datasource setup problems
How? I tried that, but kept on getting messages that the comp:env thingey was read-only and I couldn't set up a jndi datasource that could be used by my application, jstl and hibernate in one go. I'd be delighted if someone could give me a working example. What about putting a listener in your web.xml that create a connection pool and link it to jndi? En l'instant précis du 03/10/07 14:01, Charl Gerber s'exprimait en ces termes: Turns out datasource configuration is not possible using Plesk as a shared tomcat server, the guys at Plesk themselves told me. That sucks. Means I have to create and manage the Datasource in my app... minor refactoring, but not a nice way of doing it. I also use hibernate and could only get that working by defining its own connection pooling. So now I have two pools :(( --- Pid [EMAIL PROTECTED] wrote: Charl Gerber wrote: Hi, I just moved my hosting from a provider where I had a private Tomcat server with complete control over it to a provider that uses Plesk and I share the Tomcat server with other users. The provider has no Tomcat knowledge in house and the Tomcat service is rarely used, so they couldn't help me with this problem. which version of tomcat? I want to create a jdbc datasource for my application. If we manually create it in server.xml, the provider claims that the changes are overwritten and removed every time someone uploads a new .war file. (Is this true?) AFAIK, server.xml is not altered by war file deployments. Tomcat would need to be restarted in order that those alterations to server.xml are evaluated. I also do not want to define the datasource as eg a global resource, as it would mean the other users of the tomcat server can get access to my database. I tried to configure the datasource in the context.xml of my application and put it in my .war file. This works fine on my development server, but when uploaded to the Tomcat server with Plesk, a server.xml entry for my application is created without the datasource settings and I cannot access my database. What are the details of the entry being made in server.xml? Is Plesk making these alterations? What process are you using to upload the WAR? How and where can I properly define a datasource for my application so that Plesk will set the Tomcat configuration correctly? META-INF/context.xml is the best location I think. Please provide more details about the tomcat version and the answer to the questions above. p CG - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- http://www.devlog.be (a belgian developer's logs) - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat/Plesk datasource setup problems
I am not sure how a private JVM on a VPS or on a regular shared OS can be more difficult than the challenges you are facing with the present shared JVM. A shared JVM is good for a very basic JSP/Servlet application. However by its nature (shared), you will not be able to do certain configurations required for more complex applications because that is only possible on your own private installation or instance. Remember on a shared JVM, you as well as others are using the same application server instance and JVM. So image if everyone is able to make changes on the global configuration file e.g. server.xml,etc. Charl Gerber wrote: I currently DO have my own Tomcat server, but the application is now moved to South Africa (site for a business over there, makes it a lot faster for the users who will 99% be based in SA) and Tomcat hosting alone is difficult, leave alone a private JVM. --- Ken Bowen [EMAIL PROTECTED] wrote: Why not move your hosting to an isp who provides a vps? Then you get complete control of your own tomcat; the whole thing looks and feels like you have your own server, even though you are sharing the physical machine.:w The prices I've seen are comparable to those where you have to share your tomcat. My 2 cents... Ken Bowen Charl Gerber wrote: Turns out datasource configuration is not possible using Plesk as a shared tomcat server, the guys at Plesk themselves told me. That sucks. Means I have to create and manage the Datasource in my app... minor refactoring, but not a nice way of doing it. I also use hibernate and could only get that working by defining its own connection pooling. So now I have two pools :(( --- Pid [EMAIL PROTECTED] wrote: Charl Gerber wrote: Hi, I just moved my hosting from a provider where I had a private Tomcat server with complete control over it to a provider that uses Plesk and I share the Tomcat server with other users. The provider has no Tomcat knowledge in house and the Tomcat service is rarely used, so they couldn't help me with this problem. which version of tomcat? I want to create a jdbc datasource for my application. If we manually create it in server.xml, the provider claims that the changes are overwritten and removed every time someone uploads a new .war file. (Is this true?) AFAIK, server.xml is not altered by war file deployments. Tomcat would need to be restarted in order that those alterations to server.xml are evaluated. I also do not want to define the datasource as eg a global resource, as it would mean the other users of the tomcat server can get access to my database. I tried to configure the datasource in the context.xml of my application and put it in my .war file. This works fine on my development server, but when uploaded to the Tomcat server with Plesk, a server.xml entry for my application is created without the datasource settings and I cannot access my database. What are the details of the entry being made in server.xml? Is Plesk making these alterations? What process are you using to upload the WAR? How and where can I properly define a datasource for my application so that Plesk will set the Tomcat configuration correctly? META-INF/context.xml is the best location I think. Please provide more details about the tomcat version and the answer to the questions above. p CG - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional
RE: FindClass org/apache/catalina/startup/Bootstrap failed
From: Marlin Pierce [mailto:[EMAIL PROTECTED] Subject: FindClass org/apache/catalina/startup/Bootstrap failed I downloaded and ran the Tomcat 6.0.14 Windows Service Installer. The .exe download does not include any of the very useful scripts, unfortunately. You might try removing the one you installed, and then download and install the .zip version, which does include the scripts. After you've verified basic operation via startup.bat and shutdown.bat, then run service.bat to create the Windows service. You can access the service attributes with the tomcat6w.exe program. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 6 client auth. by certificate
On 10/2/07, damovsky [EMAIL PROTECTED] wrote: Then, I edit server.xml in tomcat and add this code: Connector port=7443 maxThreads=150 minSpareThreads=25 maxSpareThreads=75 enableLookups=true disableUploadTimeout=true acceptCount=100 protocol=HTTP/1.1 scheme=https secure=true sslProtocol=TLS I believe you need to add SSLEnabled=true keystoreFile=webapps\server-keystore2.jks truststoreFile=webapps\truststore-itcilo2.jks I don't think this is causing your problem, but putting those files under webapps feels like a really bad idea to me... :-) FWIW, -- Hassan Schroeder [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 6 client auth. by certificate
Hassan Schroeder-2 wrote: On 10/2/07, damovsky wrote: Connector port=7443 maxThreads=150 minSpareThreads=25 maxSpareThreads=75 enableLookups=true disableUploadTimeout=true acceptCount=100 protocol=HTTP/1.1 scheme=https secure=true sslProtocol=TLS I believe you need to add SSLEnabled=true keystoreFile=webapps\server-keystore2.jks truststoreFile=webapps\truststore-itcilo2.jks I don't think this is causing your problem, but putting those files under webapps feels like a really bad idea to me... :-) FWIW, -- Hassan Schroeder [EMAIL PROTECTED] Yes, i have the truststoreFile and keystore file in webapps directory. It is not working with param sslenabled=true :-( -- View this message in context: http://www.nabble.com/Tomcat-6-client-auth.-by-certificate-tf4560099.html#a13025281 Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 6 client auth. by certificate
From: damovsky [mailto:[EMAIL PROTECTED] Subject: Re: Tomcat 6 client auth. by certificate Yes, i have the truststoreFile and keystore file in webapps directory. The point was that may not be the most secure location for them. Putting them in conf or a subdirectory thereof would avoid exposing them to anyone with access to webapps. It is not working with param sslenabled=true :-( It's SSLEnabled, not sslenabled (case matters); are you just being sloppy with the e-mail, or did you spell it incorrectly in the XML? - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 6 client auth. by certificate
Caldarale, Charles R wrote: It is not working with param sslenabled=true :-( It's SSLEnabled, not sslenabled (case matters); are you just being sloppy with the e-mail, or did you spell it incorrectly in the XML? - Chuck In server.xml I have SSLEnabled=true, of course. -- View this message in context: http://www.nabble.com/Tomcat-6-client-auth.-by-certificate-tf4560099.html#a13025862 Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat/Plesk datasource setup problems
Costs - the only way I can get a private Tomcat JVM in South Africa, is dedicated hosting. Ie, renting a complete machine. Costs are about 10x as much as shared VM. As I said, I have a private VM at a US based account and it works beautifully, but in South Africa (where the app MUST be hosted), we do not have that option without very high costs. --- Gabe Wong [EMAIL PROTECTED] wrote: I am not sure how a private JVM on a VPS or on a regular shared OS can be more difficult than the challenges you are facing with the present shared JVM. A shared JVM is good for a very basic JSP/Servlet application. However by its nature (shared), you will not be able to do certain configurations required for more complex applications because that is only possible on your own private installation or instance. Remember on a shared JVM, you as well as others are using the same application server instance and JVM. So image if everyone is able to make changes on the global configuration file e.g. server.xml,etc. Charl Gerber wrote: I currently DO have my own Tomcat server, but the application is now moved to South Africa (site for a business over there, makes it a lot faster for the users who will 99% be based in SA) and Tomcat hosting alone is difficult, leave alone a private JVM. --- Ken Bowen [EMAIL PROTECTED] wrote: Why not move your hosting to an isp who provides a vps? Then you get complete control of your own tomcat; the whole thing looks and feels like you have your own server, even though you are sharing the physical machine.:w The prices I've seen are comparable to those where you have to share your tomcat. My 2 cents... Ken Bowen Charl Gerber wrote: Turns out datasource configuration is not possible using Plesk as a shared tomcat server, the guys at Plesk themselves told me. That sucks. Means I have to create and manage the Datasource in my app... minor refactoring, but not a nice way of doing it. I also use hibernate and could only get that working by defining its own connection pooling. So now I have two pools :(( --- Pid [EMAIL PROTECTED] wrote: Charl Gerber wrote: Hi, I just moved my hosting from a provider where I had a private Tomcat server with complete control over it to a provider that uses Plesk and I share the Tomcat server with other users. The provider has no Tomcat knowledge in house and the Tomcat service is rarely used, so they couldn't help me with this problem. which version of tomcat? I want to create a jdbc datasource for my application. If we manually create it in server.xml, the provider claims that the changes are overwritten and removed every time someone uploads a new .war file. (Is this true?) AFAIK, server.xml is not altered by war file deployments. Tomcat would need to be restarted in order that those alterations to server.xml are evaluated. I also do not want to define the datasource as eg a global resource, as it would mean the other users of the tomcat server can get access to my database. I tried to configure the datasource in the context.xml of my application and put it in my .war file. This works fine on my development server, but when uploaded to the Tomcat server with Plesk, a server.xml entry for my application is created without the === message truncated === - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Foreign Language on web
Hi, I'm a Japanese. Simply put Japanese Only notification on the web page, which is enough to notify the user which language should be used. Or you can identify which language is main language from the users' browser information. If they are Japanese, most of them are using Japanese language version of IE, Firefox or another browser. Takashi. - Original Message - From: Girish Havaldar [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Wednesday, October 03, 2007 11:43 PM Subject: Re: Foreign Language on web Ya thats fine if the language is English, what if Japanese or chines text needs to be entered, what are the things we need to provide user, so that user will just select the language which he wants and enters the text in that language. I think am not representing my problem correctly. On 03/10/2007, Christopher Schultz [EMAIL PROTECTED] wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Girish, Girish Havaldar wrote: in our application we have a text area, where in different language text needs to be entered, for instant French. Can any one of you help or guide in this regard. You want to have the user enter text in a different language? That shouldn't be a problem. Just let them know please enter your text in French. Maybe I don't understand your problem. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHA6eq9CaO5/Lv0PARAiPxAJ9Ie236d3YpjRdBLcbQEIjDnMT6FQCguLhj ndJ6AoP+TKP5ZAspkY1wRAw= =uDuF -END PGP SIGNATURE- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Regards Girish S.Havaldar - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat/Plesk datasource setup problems
Thanks for clarifying. Sound like you are caught between a rock and a hard place. Good luck. Charl Gerber wrote: Costs - the only way I can get a private Tomcat JVM in South Africa, is dedicated hosting. Ie, renting a complete machine. Costs are about 10x as much as shared VM. As I said, I have a private VM at a US based account and it works beautifully, but in South Africa (where the app MUST be hosted), we do not have that option without very high costs. --- Gabe Wong [EMAIL PROTECTED] wrote: I am not sure how a private JVM on a VPS or on a regular shared OS can be more difficult than the challenges you are facing with the present shared JVM. A shared JVM is good for a very basic JSP/Servlet application. However by its nature (shared), you will not be able to do certain configurations required for more complex applications because that is only possible on your own private installation or instance. Remember on a shared JVM, you as well as others are using the same application server instance and JVM. So image if everyone is able to make changes on the global configuration file e.g. server.xml,etc. Charl Gerber wrote: I currently DO have my own Tomcat server, but the application is now moved to South Africa (site for a business over there, makes it a lot faster for the users who will 99% be based in SA) and Tomcat hosting alone is difficult, leave alone a private JVM. --- Ken Bowen [EMAIL PROTECTED] wrote: Why not move your hosting to an isp who provides a vps? Then you get complete control of your own tomcat; the whole thing looks and feels like you have your own server, even though you are sharing the physical machine.:w The prices I've seen are comparable to those where you have to share your tomcat. My 2 cents... Ken Bowen Charl Gerber wrote: Turns out datasource configuration is not possible using Plesk as a shared tomcat server, the guys at Plesk themselves told me. That sucks. Means I have to create and manage the Datasource in my app... minor refactoring, but not a nice way of doing it. I also use hibernate and could only get that working by defining its own connection pooling. So now I have two pools :(( --- Pid [EMAIL PROTECTED] wrote: Charl Gerber wrote: Hi, I just moved my hosting from a provider where I had a private Tomcat server with complete control over it to a provider that uses Plesk and I share the Tomcat server with other users. The provider has no Tomcat knowledge in house and the Tomcat service is rarely used, so they couldn't help me with this problem. which version of tomcat? I want to create a jdbc datasource for my application. If we manually create it in server.xml, the provider claims that the changes are overwritten and removed every time someone uploads a new .war file. (Is this true?) AFAIK, server.xml is not altered by war file deployments. Tomcat would need to be restarted in order that those alterations to server.xml are evaluated. I also do not want to define the datasource as eg a global resource, as it would mean the other users of the tomcat server can get access to my database. I tried to configure the datasource in the context.xml of my application and put it in my .war file. This works fine on my development server, but when uploaded to the Tomcat server with Plesk, a server.xml entry for my application is created without the === message truncated === - To start a new topic, e-mail:
MX4J for Tomcat
Greetings, I am trying to get xml back via MX4J to retrieve Tomcat information. I followed the instruction on how to enable mx4j for Tomcat server.xml: Connector port=${AJP.PORT} handler.list=mx mx.enabled=true mx.httpHost=${JMX.HOST} mx.httpPort=${JMX.PORT} protocol=AJP/1.3 / And I was able to hit the MX4J page on http://JMX.HOST:JMX:PORThttp://jmx.host/ .. However, I would like to just get XML back vs. the HTML (i.e. *DefaultProcessorMBean). Currently Tomcat creates **XSLTProcessorMBean instead. Is there a way to set the mx properties so it will serve out XML vs. HTML? Thanks,
Re: Tomcat 6 client auth. by certificate
On 10/3/07, damovsky [EMAIL PROTECTED] wrote: In server.xml I have SSLEnabled=true, of course. So what do your logs say about Connector startup? -- Hassan Schroeder [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: ServletContext.getContextPath()
It looks like the method ServletContext.getContextPath() was added in version 2.5 of the Servlet API (supported by Tomcat 6.0), but was not present in version 2.4 (supported by Tomcat 5.5). Is there any way to get this information at webapp load time, i.e. inside a ServletContextListener.contextInitialized() function (or any time before the first request) in Tomcat 5.5? I'd really love to have the context path before the first request, but can't yet force our user base to upgrade to Tomcat 6.0. Thoughts? --Brendan
Re: Filters do not apply after redirect to the url that serving by Servlet
David it is not about /mvc or /mvc/* it is about *.html filter does not apply on /mvc/news.html please read carefully the whole problem. On 10/3/07, David Delbecq [EMAIL PROTECTED] wrote: Better use /mvc/* as url pattern than /mvc if you want it to apply to /mvc/news.html Mykola Paliyenko a écrit : Hi all, Do not know if this a problem with Tomcat or with Servlet 2.4 spec I have a FilterA that redirects from /news to the /mvc/news.html Then I have a DispatcherServelt that mapped to the /mvc/* And a FilterB that mapped to *.html for both REQUEST and REDIRECT methods like this filter-mapping filter-namefilterB/filter-name url-pattern*.html/url-pattern dispatcherREQUEST/dispatcher dispatcherFORWARD/dispatcher /filter-mapping FilterB does not apply during processing After adding filter-mapping filter-namefilterB/filter-name url-pattern/mvc/url-pattern dispatcherFORWARD/dispatcher /filter-mapping It works like intended. I understand that Mapping for URL does not apply when I forward on URL that matching some servlet, very strange but this workaround proves it I'm using Tomcat 5.5.9 under java 5 Please suggest whether it is a bug or a standard behavior, as for me it is a bug Thanks in advance Mykola - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- WBR, Mykola
Re: Help - javax.servlet.UnavailableException: No resources
shahab wrote: So I downloaded the webDAV Servlet and included it in my application. From where? The webdav servlet is part of the standard Tomcat distribution. Mark - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: AJP Flush Packet causing text/plain output
this is probably what you run into http://issues.apache.org/bugzilla/show_bug.cgi?id=43478 Filip Mark Deneen wrote: I encountered a similar problem, where one servlet had a bug where the headers would be set _after_ the data had been sent. The result was that unrelated responses would come back as text/plain. Once I found the offending code and fixed it, the issue has not surfaced again. Mark On 9/24/07, Larry Reisler [EMAIL PROTECTED] wrote: We recently switched our development JBOSS instance from 4.05GA to 4.21GA, where we are have been using mod_jk for connecting an Apache front end server (2.2) to the Tomcat AppServer. We have noticed periodic times when the apache web server will return data with a content-type of plain/text (the server default) instead of the real content-type, and a chunked encoding (even if the AppServer was producing a non-chunked content). We tried switch to mod_proxy_ajp, but got the same result. A bit of sleuthing (2 days X 2 engineers) revealed that the AJP connection on Tomcat is sending a SEND_BODY_CHUNK (which I assume is a flush packet) periodically that seem to be confusing mod_jk. We can see in the mod_jk and mod_proxy_ajp debug log that the correct headers are coming from the Tomcat server. However, it seems like mod_jk and mod_proxy_ajp are losing all the header information regarding the packet (including the Powered by headers, content-type, content-length, cookies, etc.). In normal operation, for a sample small transaction, we would see this sequence in response: SEND_HEADERS SEND_BODY_CHUNK END_RESPONSE When the output would come out as text/plain, we would see this sequence: SEND_BODY_CHUNK SEND_HEADERS SEND_BODY_CHUNK END_RESPONSE Is there something we should have configured differently so that mod_jk or mod_proxy_ajp will behave better? - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 6 client auth. by certificate
I assume that the trust store contains a certificate that matches the one of the browser, if not, then you can't do client-auth try doing it with a java client first so that you can see how it works, Filip Hassan Schroeder wrote: On 10/3/07, damovsky [EMAIL PROTECTED] wrote: In server.xml I have SSLEnabled=true, of course. So what do your logs say about Connector startup? - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Removal from mailing list
Once on the list, always on the list. I've been trying to get off the list for years :) To: users@tomcat.apache.org Subject: Removal from mailing list From: [EMAIL PROTECTED] Date: Wed, 3 Oct 2007 09:36:46 +1000 Please remove me from the mailing list. Thankyou. Stephen Morris Security Technician, IT Security Access Management Technology Security Risk, National Australia Bank Level 8, 800 Bourke St, Melbourne VIC 3000 Tel: +61 (0) 3 8634 1755 | Mob: 0438 537 569 Email: [EMAIL PROTECTED]National Australia Bank Ltd - ABN 12 004 044 937 This email may contain confidential information. If you are not the intended recipient, please immediately notify us at [EMAIL PROTECTED] or by replying to the sender, and then destroy all copies of this email. Except where this email indicates otherwise, views expressed in this email are those of the sender and not of National Australia Bank Ltd. Advice in this email does not take account of your objectives, financial situation, or needs. It is important for you to consider these matters and, if the e-mail refers to a product(s), you should read the relevant Product Disclosure Statement(s)/other disclosure document(s) before making any decisions. If you do not want email marketing from us in future, forward this email with unsubscribe in the subject line to [EMAIL PROTECTED] in order to stop marketing emails from this sender. National Australia Bank Ltd does not represent that this email is free of errors, viruses or interference. _ Windows Live Hotmail and Microsoft Office Outlook – together at last. Get it now. http://office.microsoft.com/en-us/outlook/HA102225181033.aspx?pid=CL100626971033 - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
which JRE is Tomcat using?
Hello: I have two JREs on my system, a Java 5 distribution and a Java 6 distribution. How can I decipher which JRE my Tomcat service is running on? Is there a tomcat5.exe command I can use? Or does the setting reside in a configuration file within Tomcat? The reason for this question is that I want to change the JRE my Tomcat uses and I need a way to query Tomcat as to which JRE its using. Thanks. Eric -- John (Eric) Hamacher Java Developer Madison, Wisconsin (608)-334-9260
RE: which JRE is Tomcat using?
From: John Eric Hamacher [mailto:[EMAIL PROTECTED] Subject: which JRE is Tomcat using? I have two JREs on my system, a Java 5 distribution and a Java 6 distribution. How can I decipher which JRE my Tomcat service is running on? Use the Java tab of the tomcat5w.exe program to see what the service is using, assuming the Use default checkbox isn't set. If Use default is set, the choice of JVM depends on registry settings. You can see the level of the JRE in use on Tomcat's status page: http://hostname:port/manager/status - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Axis is not working.
Hello, I am using Jakarta Tomcat 6.0.10. I followed the tutorial from Configuring Using Apache Tomcat 6 at http://www.coreservlets.com;. Installation is fine, tomcat works well for servets and JSP. After I installed Axis-1.4, I typed the url http://localhost/axis;. I get [code]HTTP Status 404 - /axis/ type Status report message /axis/ description The requested resource (/axis/) is not available. [/code] I checked the classpath it is okay. I did copy webapp file to a right place. CLASSPATH=.;C:\apache-tomcat-6.0.10\lib\servlet-api.jar;C:\apache-tomcat-6.0.14\lib\jsp-api.jar;C:\apache-tomcat-6.0.14\lib\el-api.jar;C:\Program Files\jade\lib\http.jar;C:Program Files\jade\lib\iiop.jar;C:\Program Files\jade\lib\jade.jar;C:\Program Files\jade\lib\jadeTools.jar;C:\Program Files\Jade\lib\common-codec-1.3.jar;C:\Program Files\Jade\lib\Base64.jar;C:\cygwin\bin;C:\axis\lib\axis.jar;C:\axis\lib\common-discovery-0.2.jar;C:\axis\lib\commons-logging-1.0.4.jar;C:\axis\lib\jaxrpc.jar;C:\axis\lib\saaj.jar;C:\axis\lib\log4j-1.2.8.jar;C:\axis\lib\xml-apis.jar;C:\axis\lib\xercesImpl.jar. I check the log file. I see Oct 3, 2007 9:37:21 PM org.apache.catalina.core.StandardContext listenerStart SEVERE: Error configuring application listener of class org.apache.axis.transport.http.AxisHTTPSessionListener java.lang.NoClassDefFoundError: org/apache/commons/discovery/tools/DiscoverSingleton at org.apache.axis.components.logger.LogFactory$1.run(LogFactory.java:45) at java.security.AccessController.doPrivileged(Native Method) at org.apache.axis.components.logger.LogFactory.getLogFactory(LogFactory.java:41) at org.apache.axis.components.logger.LogFactory.clinit(LogFactory.java:33) at org.apache.axis.transport.http.AxisHTTPSessionListener.clinit(AxisHTTPSessionListener.java:33) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:513) at java.lang.Class.newInstance0(Class.java:355) at java.lang.Class.newInstance(Class.java:308) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3771) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4336) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:761) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:741) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525) at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:920) at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:883) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1023) at org.apache.catalina.core.StandardHost.start(StandardHost.java:719) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1015) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443) at org.apache.catalina.core.StandardService.start(StandardService.java:448) at org.apache.catalina.core.StandardServer.start(StandardServer.java:710) at org.apache.catalina.startup.Catalina.start(Catalina.java:552) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413) Oct 3, 2007 9:37:21 PM org.apache.catalina.core.StandardContext listenerStart SEVERE: Skipped installing application listeners due to previous error(s) Oct 3, 2007 9:37:22 PM org.apache.catalina.core.ApplicationContext log INFO: ContextListener: contextInitialized() Oct 3, 2007 9:37:22 PM org.apache.catalina.core.ApplicationContext log INFO: SessionListener: contextInitialized() Oct 3, 2007 9:37:22 PM org.apache.catalina.core.ApplicationContext log INFO: ContextListener: attributeAdded('org.apache.catalina.Registry', '[EMAIL PROTECTED]') Oct 3, 2007 9:37:22 PM org.apache.catalina.core.ApplicationContext log INFO:
RE: Axis is not working.
From: zhshqzyc [mailto:[EMAIL PROTECTED] Subject: Axis is not working. I checked the classpath it is okay. No, it isn't o.k. No CLASSPATH should be used when running Tomcat. The referenced tutorial fails to make clear that setting CLASSPATH is only for compiling servlets, not for server execution. Remove the environment variable. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Axis is not working.
Which environment variable should be removed? CLASSPATH? OR AXISCLASSPATH? Thanks! Caldarale, Charles R wrote: From: zhshqzyc [mailto:[EMAIL PROTECTED] Subject: Axis is not working. I checked the classpath it is okay. No, it isn't o.k. No CLASSPATH should be used when running Tomcat. The referenced tutorial fails to make clear that setting CLASSPATH is only for compiling servlets, not for server execution. Remove the environment variable. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Axis-is-not-working.-tf4565424.html#a13031775 Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Axis is not working.
From: zhshqzyc [mailto:[EMAIL PROTECTED] Subject: RE: Axis is not working. Which environment variable should be removed? CLASSPATH? CLASSPATH is the only one I mentioned. You might want to read over the description of Tomcat's classloading mechanism to make sure the jars needed by your webapp are located in the proper directories: http://tomcat.apache.org/tomcat-6.0-doc/class-loader-howto.html - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Implementing HttpSession
Rather than using Tomcat's own HttpSession, I may be implementing HttpSession to write to shared storage or to the client. (Or if for no other reason, then to learn something.) Do you know of any HttpSession implementations that are publicly available, as the task of storing session state in places other than web server memory is common enough that I'd hope others have already done so? A quick web search didn't reveal anything too exciting. There are a couple of methods I'm having trouble understanding how to implement. The first is isNew(). Looking through the StandardSession code, I can't tell exactly when to set this to true and false - all I know is that initially upon session creation on the server (e.g. in ManagerBase.createSession()), the new property is set to true. In what cases is it set to false, and how would a web application developer use this method? How can you tell Tomcat to use your implementation of HttpSession, so that when you call request.getSession(), it returns that object? In the above case, would Tomcat take care of calling setMaxInactiveInterval and providing a value for getServletContext()? Thanks. -- View this message in context: http://www.nabble.com/Implementing-HttpSession-tf4565627.html#a13032004 Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Race condition with values displayed across redirects
I have a question about whether there is a race condition with the following technique for displaying messages across redirects. If you submit a form with an invalid value on page P1 and the receiving servlet S redirects to another page P2, you'd like page P2 to contain a message saying You entered an invalid value. You can only put the value in the session (not the request, because it's a redirect, not a forward), with session.setAttribute(message,You entered an invalid value). In page P2, you'd display ${message}. But to ensure that the message doesn't remain in the method upon every access to page P2, including when valid information is submitted, you'd create a filter that applies to servlet S with the following code: chain.doFilter(request,response); session.removeAttribute(message); This method seems to work, but is there a race condition? My understanding is that when a servlet does a redirect, the redirect occurs in a new thread and the rest of the current servlet execution continues (including filters) to completion in the current thread. Couldn't the filter on servlet S complete execution (and remove the message attribute) before page P2 renders, thereby leaving ${message} empty? Thanks. -- View this message in context: http://www.nabble.com/Race-condition-with-values-displayed-across-redirects-tf4565759.html#a13032386 Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re-map Axis2 URL in Tomcat - Possible?
Hi All, I have tried to install and run Axis2 on Tomcat 5.0 and it was working fine. However, i notice that for me to engage my service in tomcat the URL would be something like http://IP+port/axis2/services/myService Is it possible for me to change that or uses Tomcat filter to map it (i'm thinking of a URL mapping in web.xml) to become something like this? http://IP+port/axis2/myService Any ideas or comments are welcomed. Thanx FooShyn - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]