security hole on windows tomcat?
I came across what appears to be a security hole when running tomcat. I'm not sure how widespread it is, but my linux server is safe, yet my windows XP, tomcat 4.1.24 is vulnerable. I found that if you append %20 to a jsp page it shows the source code instead of displaying the page: http://192.168.1.54:8080/index.jsp shows page as expected http://192.168.1.54:8080/index.jsp%20 shows source code of index.jsp So how widespread is this? Paul Sundling - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
WINXP + TOMCAT + apache
__ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Does anyone know the cause of this exception ?
The usual reason is simply that the user hit the stop button in the browser. Mufaddal Khumri [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] The root cause below told me that the Cataglog_jsp.java threw an error at Line 75. Line 75 in that file is: JspRuntimeLibrary.include(request, response, /include/header.jsp, out, true); The above code corresponds to the following line in Catalog.jsp: jsp:include page=/include/header.jsp flush=true/ Does anybody know what could cause the error below? Caused by: javax.net.ssl.SSLException: java.net.SocketException: Broken pipe at com.sun.net.ssl.internal.ssl.BaseSSLSocketImpl.a(DashoA6275) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA6275) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA6275) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA6275) at com.sun.net.ssl.internal.ssl.AppOutputStream.write(DashoA6275) at org.apache.coyote.http11.InternalOutputBuffer$OutputStreamOutputBuffer.d oWrite(InternalOutputBuffer.java:668) at org.apache.coyote.http11.filters.ChunkedOutputFilter.doWrite(ChunkedOutp utFilter.java:166) at org.apache.coyote.http11.InternalOutputBuffer.doWrite(InternalOutputBuff er.java:523) at org.apache.coyote.Response.doWrite(Response.java:524) at org.apache.coyote.tomcat4.OutputBuffer.realWriteBytes(OutputBuffer.java: 384) at org.apache.tomcat.util.buf.ByteChunk.flushBuffer(ByteChunk.java:360) at org.apache.coyote.tomcat4.OutputBuffer.flush(OutputBuffer.java:345) at org.apache.coyote.tomcat4.CoyoteWriter.flush(CoyoteWriter.java:119) at org.apache.jasper.runtime.JspWriterImpl.flush(JspWriterImpl.java:209) ... 39 more Caused by: java.net.SocketException: Broken pipe at java.net.SocketOutputStream.socketWrite0(Native Method) at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92) at java.net.SocketOutputStream.write(SocketOutputStream.java:136) at com.sun.net.ssl.internal.ssl.OutputRecord.a(DashoA6275) ... 50 more 2003-08-11 16:01:27 StandardWrapperValve[jsp]: Servlet.service() for servlet jsp threw exception org.apache.jasper.JasperException: Connection has been shutdown: javax.net.ssl.SSLException: java.net.SocketException: Broken pipe at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja va:248) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica tionFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt erChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv e.java:260) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i nvokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4 80) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv e.java:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i nvokeNext(StandardPipeline.java:643) at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.ja va:246) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i nvokeNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4 80) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:241 5) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java :180) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i nvokeNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherVa lve.java:170) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i nvokeNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java :172) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i nvokeNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4 80) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve. java:174) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i nvokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4 80) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223) at
pageContext.handlePageException(t);
Sorry for my ignorance and bad memory, but I forgot how to fix this problem in tomcat 4.1.24. I'm getting this error when just trying to view the tomcat ROOT webapp: org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: -1 in the jsp file: null Generated servlet error: [javac] Since fork is true, ignoring compiler setting. [javac] Compiling 1 source file [javac] Since fork is true, ignoring compiler setting. [javac] F:\Program Files\Apache Group\Tomcat 4.1\work\Standalone\localhost\_\index_jsp.java:266: handlePageException(java.lang.Exception) in javax.servlet.jsp.PageContext cannot be applied to (java.lang.Throwable) [javac] if (pageContext != null) pageContext.handlePageException(t); [javac] ^ [javac] 1 error at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:130) at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:293) at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:353) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:370) at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:473) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:190) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241) at javax.servlet.http.HttpServlet.service(HttpServlet.java:865) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:594) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:392) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619) at java.lang.Thread.run(Thread.java:536) Note: changing the 'fork' init param doesn't help! _ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat+MySQL. Intermitent DbcpException: Server configuration denies access to data source
Hi! I'm using Tomcat 4.1.24 with Apache 2 and MySQL 4.0.13. I have the mysql- connector-java-2.0.14-bin.jar in commons/lib. The application runs normally, and usually about once or twice a day I get this exception org.apache.commons.dbcp.DbcpException: java.sql.SQLException: Server configuration denies access to data source. Once the exception occurs, it happens for every request and Tomcat needs restarting. Before getting this exception, I used to run out of connections, and therefore I added to the server.xml parameter namelogAbandoned/name valuetrue/value /parameter parameter nameremoveAbandoned/name valuetrue/value /parameter I guess it could be related... I include the exception and my server.xml file. Any help appreciated. Monica 2003-08-07 15:55:02 StandardWrapperValve[StructureServlet]: Servlet.service () for servlet StructureServlet threw exception org.apache.commons.dbcp.DbcpException: java.sql.SQLException: Server configuration denies access to data source at org.apache.commons.dbcp.DriverConnectionFactory.createConnection (DriverConnectionFactory.java:85) at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject (PoolableConnectionFactory.java:184) at org.apache.commons.pool.impl.GenericObjectPool.borrowObject (GenericObjectPool.java) at org.apache.commons.dbcp.AbandonedObjectPool.borrowObject (AbandonedObjectPool.java:117) at org.apache.commons.dbcp.PoolingDataSource.getConnection (PoolingDataSource.java:110) at org.apache.commons.dbcp.BasicDataSource.getConnection (BasicDataSource.java:312) at com.ah.auk.db.DBUtil.getDBConnection(DBUtil.java:54) at com.ah.auk.db.DB.checkDBCon(DB.java:34) at com.ah.auk.db.HotelDBReader.getHotelsInGeoEntry (HotelDBReader.java:64) at com.ah.auk.delegates.CountyHelper.getHotelsPerCounty (CountyHelper.java:100) at com.ah.auk.box.CountyListBox.getCounties(CountyListBox.java:118) at com.ah.auk.box.CountyListBox.configure(CountyListBox.java:63) at com.ah.auk.core.BoxManager.configureBoxes(BoxManager.java:41) at com.ah.auk.structure.StructureServlet.doGet (StructureServlet.java:74) at javax.servlet.http.HttpServlet.service(HttpServlet.java) at javax.servlet.http.HttpServlet.service(HttpServlet.java) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (Unknown Source) at org.apache.catalina.core.ApplicationFilterChain.doFilter(Unknown Source) at com.ah.auk.context.ContextFilter.doFilter(ContextFilter.java:158) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (Unknown Source) at org.apache.catalina.core.ApplicationFilterChain.doFilter(Unknown Source) at org.apache.catalina.core.StandardWrapperValve.invoke(Unknown Source) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(Unknown Source) at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source) at org.apache.catalina.core.ContainerBase.invoke(Unknown Source) at org.apache.catalina.core.StandardContextValve.invoke(Unknown Source) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(Unknown Source) at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source) at org.apache.catalina.core.ContainerBase.invoke(Unknown Source) at org.apache.catalina.core.StandardContext.invoke(Unknown Source) at org.apache.catalina.core.StandardHostValve.invoke(Unknown Source) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(Unknown Source) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(Unknown Source) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(Unknown Source) at org.apache.catalina.valves.ErrorReportValve.invoke(Unknown Source) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(Unknown Source) at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source) at org.apache.catalina.core.ContainerBase.invoke(Unknown Source) at org.apache.catalina.core.StandardEngineValve.invoke(Unknown Source) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(Unknown Source) at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source) at org.apache.catalina.core.ContainerBase.invoke(Unknown Source) at org.apache.coyote.tomcat4.CoyoteAdapter.service (CoyoteAdapter.java:223) at org.apache.jk.server.JkCoyoteHandler.invoke (JkCoyoteHandler.java:261) at org.apache.jk.common.HandlerRequest.invoke (HandlerRequest.java:360) at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:604) at
HttpSessionListener: Negative session count
Hello J2EE programmers I wrote a JSP some time ago that uses a class SessionCounter (which implements HttpSessionListener) to count the active sessions of a web application and to display them. Unfortunately there seems to be a problem with my program, because the web application says that there are currently -18 active sessions. However, the lowest possible count should be 0. Of course I could implement the sessionDestroyed the following way (to prohibit a negative session count, but then the current session count would not be correct, not? public void sessionDestroyed(HttpSessionEvent event) { if (activeSessions 0) activeSessions--; } Code of JSP file: tr tdConcurrent sessions:/td td%= SessionCounter.getActiveSessions() %/td /tr tr tdLast refresh:/td td%= new Date() %/td /tr tr tdLast session change:/td td%= SessionCounter.getLastChange() %/td /tr Here's the class SessionCounter, which belongs to a utility JAR that is situated in the lib directory of The web application. public class SessionCounter implements HttpSessionListener { /** Static variable to keep track of the current number of active sessions. */ private static int activeSessions = 0; public void sessionCreated(HttpSessionEvent event) { activeSessions++; } public void sessionDestroyed(HttpSessionEvent event) { activeSessions--; } public static int getActiveSessions() { return activeSessions; } } I'm using Tomcat 4.1.24 and hope that someone of you might give me a hint on how I can get a reliable session counter. Christian - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Japanese Characters in JSP's
Hi All, I'm having a bit of trouble with getting JSP's with Japanese characters within them. I'm working with a Windows XP system with JDK 1.4.2 and Tomcat 4.1.24. The problem seems persistent, though, on RH Linux with JDK 1.4.1_03 as well. I have no problem with Russian, Arabic, Hebrew, and other non-Latin-1 character sets, just Japanese (so far). More confusing, my test file is a very simple HTML document that Tomcat services properly when I'm simply calling it as an HTML file, such as: http://localhost:8080/testfile.html All I do is rename it to testfile.jsp, and it comes out all garbled. I've done the same test with a myriad of HTML files with various character sets including cp1251, iso8859-5, etc. Everything works fine except for Japanese -- I believe my file uses Shift_JIS. I don't have test files for other multi-byte character sets so I've no idea if it's exclusive to Japanese or if, for example, Chinese would not work either. I've also tried adding response.setLocale (new java.util.Locale (ja)) to the top of the page; it made no difference. I've also tried reading everything I could find, and I'm empty handed. This seems like it shouldn't be quite as difficult as it is. TIA! -Fred - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Problem with mod_jk2
Hello, I've compiled mod_jk2, and installed it intirely according to the instructions on the website. I'm using apache 2.0.47 and tomcat 4.1.24 I have the impression that the mod_jk2 modules is loaded correctly, but that it is completely ignoring my workers2.properties file. No URL mappings work. I do have an apache installation that is a bit peculiar. To make ist short, conf is not a subdir of ${serverroot}. Now the website says the following: The config file is named workers2.properties, located by default in ${serverRoot}/conf, where ${serverRoot} is the web server dir, like /usr/local/apache. It is possible to modify the location of the file using server-specific directives. Can someone enlighten me as to which server-specific directive I can use to tell mod_jk2 where the workers2.properties file is? (JkWorkersFile as in mod_jk doesn't work, it throws a syntax error from Apache...) TIA Krist van Besien --- Krist van Besien Unix Specialist BZBD Bundesamt für Informatik und Telekommunikation BIT Monbijoustrasse 74, CH-3003 Bern Tel. +41 31 322 24 46 added interaction www.informatik.admin.ch - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomat and ssl
If anything, it's a lowercase k. John Johnson, David wrote: Does Apache take notice of case? I always use JKMount instead of JkMount (capital K). Could be your gremlin... Dave -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, August 11, 2003 3:00 PM To: [EMAIL PROTECTED] Subject: Tomat and ssl Greetings, I've added the mod_jk to my apache httpd.conf file and I've placed the info from John Turner's How TO This is what my virtual host container but I'm getting an error when I try to restart apache Any ideas? VirtualHost *:443 DocumentRoot /usr/local/jakarta-tomcat-4.1.27/webapps ServerName placeanad.classifiedmarketplace.net ErrorLog logs/placeanadclassi.com-error_log CustomLog logs/placeanadclassi.com-access_log common SSLEnable SSLCertificateFile /usr/local/apache/conf/ssl.crt/server1.crt SSLCertificateKeyFile /usr/local/apache/conf/ssl.crt/server1.key JkMount /* ajp13 JkMount /*.jsp ajp13 JkMount /servelet/* ajp13 /VirtualHost -bash-2.05b# cd ../bin205C written -bash-2.05b# ./apachectl configtest Syntax error on line 1002 of /usr/local/apache/conf/httpd.conf: Invalid command 'JkMount', perhaps mis-spelled or defined by a module not included in the server configuration Bobbie Atristain Internet Systems Administrator Media General, INC. 804.649.6156 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How to configure to use tomcat and struts to use log4j?
Hi Shapira, that is what I get when log4.jar is in my .../WEB-INF/lib. struts.jar is also in my .../WEB-INF/lib. Can that cause the problem? How can I fix that? Zsolt javax.servlet.ServletException: Error instantiating servlet class org.apache.struts.action.ActionServlet at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:912) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:823) at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3420) at org.apache.catalina.core.StandardContext.start(StandardContext.java:3608) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188) at org.apache.catalina.core.StandardHost.start(StandardHost.java:738) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347) at org.apache.catalina.core.StandardService.start(StandardService.java:497) at org.apache.catalina.core.StandardServer.start(StandardServer.java:2190) at org.apache.catalina.startup.Catalina.start(Catalina.java:512) at org.apache.catalina.startup.Catalina.execute(Catalina.java:400) at org.apache.catalina.startup.Catalina.process(Catalina.java:180) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203) - Root Cause - java.lang.NoClassDefFoundError: org/apache/log4j/Layout at org.apache.commons.logging.impl.Log4jFactory.getInstance(Log4jFactory.java:140) at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:257) at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:390) at org.apache.struts.action.ActionServlet.clinit(ActionServlet.java:375) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) at java.lang.reflect.Constructor.newInstance(Unknown Source) at java.lang.Class.newInstance0(Unknown Source) at java.lang.Class.newInstance(Unknown Source) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:903) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:823) at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3420) at org.apache.catalina.core.StandardContext.start(StandardContext.java:3608) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188) at org.apache.catalina.core.StandardHost.start(StandardHost.java:738) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347) at org.apache.catalina.core.StandardService.start(StandardService.java:497) at org.apache.catalina.core.StandardServer.start(StandardServer.java:2190) at org.apache.catalina.startup.Catalina.start(Catalina.java:512) at org.apache.catalina.startup.Catalina.execute(Catalina.java:400) On Wed, 2003-08-06 at 22:01, Shapira, Yoav wrote: Howdy, I have tried so many things to use log4j from tomcat and struts and finaly I found the solution that I have to copy log4.jar into common/lib server/lib and application/WEB-INF/lib (to be able to get jsp files compiled). I find it a bit complicated that I have to copy the same jar file into three different directories. Is there a better way? Simply put log4j.jar in WEB-INF/lib, and your log4j configuration file in WEB-INF/classes. That's it. Don't have copies of log4j in commons/lib or server/lib, nor a log4j configuration file there. Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 4.1x with IIS 6 on Windows server 2003
So, Mark, What did you do finally? Just left it there or did you contact anybody to write connector for IIS 6? If so, please let me know. Kiran - Original Message - From: Mark Schmeets [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Monday, August 11, 2003 10:08 AM Subject: Re: Tomcat 4.1x with IIS 6 on Windows server 2003 Bala Kiran wrote: Yes. I did reboot the system. Did you try with IIS 6 on Windows Server 2003? Kiran - Original Message - From: vikas jain [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, August 11, 2003 8:44 AM Subject: Re: Tomcat 4.1x with IIS 6 on Windows server 2003 Did you reboot the system? From: Bala Kiran [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: Re: Tomcat 4.1x with IIS 6 on Windows server 2003 Date: Mon, 11 Aug 2003 08:01:46 -0500 I guess it does. Here is a posting on JGURU.com : http://jguru.com/forums/view.jsp?EID=1098654 Anybody who tried similar setup? Pls advise me. Do I need to go back to IIS 5.0 on Windows Server 2003? How soon Tomcat will have support for IIS 6.0? Kiran - Original Message - From: Reynir Hübner [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Monday, August 11, 2003 4:26 AM Subject: RE: Tomcat 4.1x with IIS 6 on Windows server 2003 Hi, I think IIS 6 is not supported yet, it may at somepoint, but it doesn't work right now. Bye -reynir -Original Message- From: Bala Kiran [mailto:[EMAIL PROTECTED] Sent: 10. ágúst 2003 20:47 To: Tomcat Users List Subject: Tomcat 4.1x with IIS 6 on Windows server 2003 Has anybody configured Tomcat 4.1x with IIS 6.0 on Windows server 2003? Please advise me. I'm trying to configure the same, but I'm getting 404 - Page Can not be displayed error. I checked the log. It does not seem like raising any red flags. But, here is the log info. Any help is highly appreciated: === [Sun Aug 10 10:59:43 2003] [jk_isapi_plugin.c (1018)]: Using registry. [Sun Aug 10 10:59:43 2003] [jk_isapi_plugin.c (1020)]: Using log file D:\Apache Group\Tomcat 4.1\logs\jk_iis.log. [Sun Aug 10 10:59:43 2003] [jk_isapi_plugin.c (1021)]: Using log level 0. [Sun Aug 10 10:59:43 2003] [jk_isapi_plugin.c (1022)]: Using extension uri /tomcat/isapi_redirect.dll. [Sun Aug 10 10:59:43 2003] [jk_isapi_plugin.c (1023)]: Using worker file D:\Apache Group\Tomcat 4.1\conf\workers.properties. [Sun Aug 10 10:59:43 2003] [jk_isapi_plugin.c (1024)]: Using worker mount file D:\Apache Group\Tomcat 4.1\conf\uriworkermap.properties. [Sun Aug 10 10:59:43 2003] [jk_isapi_plugin.c (1025)]: Using uri select 0. [Sun Aug 10 10:59:43 2003] [jk_uri_worker_map.c (172)]: Into jk_uri_worker_map_t::uri_worker_map_alloc [Sun Aug 10 10:59:43 2003] [jk_uri_worker_map.c (375)]: Into jk_uri_worker_map_t::uri_worker_map_open [Sun Aug 10 10:59:43 2003] [jk_uri_worker_map.c (396)]: jk_uri_worker_map_t::uri_worker_map_open, rule map size is 3 [Sun Aug 10 10:59:43 2003] [jk_uri_worker_map.c (321)]: Into jk_uri_worker_map_t::uri_worker_map_open, match rule /examples/=testWorker was added [Sun Aug 10 10:59:43 2003] [jk_uri_worker_map.c (299)]: Into jk_uri_worker_map_t::uri_worker_map_open, suffix rule /examples/.jsp=testWorker was added [Sun Aug 10 10:59:43 2003] [jk_uri_worker_map.c (321)]: Into jk_uri_worker_map_t::uri_worker_map_open, match rule /examples/servlet/=testWorker was added [Sun Aug 10 10:59:43 2003] [jk_uri_worker_map.c (408)]: Into jk_uri_worker_map_t::uri_worker_map_open, there are 3 rules [Sun Aug 10 10:59:43 2003] [jk_uri_worker_map.c (422)]: jk_uri_worker_map_t::uri_worker_map_open, done [Sun Aug 10 10:59:43 2003] [jk_worker.c (88)]: Into wc_open [Sun Aug 10 10:59:43 2003] [jk_worker.c (222)]: Into build_worker_map, creating 1 workers [Sun Aug 10 10:59:43 2003] [jk_worker.c (228)]: build_worker_map, creating worker testWorker [Sun Aug 10 10:59:43 2003] [jk_worker.c (148)]: Into wc_create_worker [Sun Aug 10 10:59:43 2003] [jk_worker.c (162)]: wc_create_worker, about to create instance testWorker of ajp13 [Sun Aug 10 10:59:43 2003] [jk_ajp13_worker.c (108)]: Into ajp13_worker_factory [Sun Aug 10 10:59:43 2003] [jk_worker.c (171)]: wc_create_worker, about to validate and init testWorker [Sun Aug 10 10:59:43 2003] [jk_ajp_common.c (1343)]: Into jk_worker_t::validate [Sun Aug 10 10:59:43 2003] [jk_ajp_common.c (1364)]: In jk_worker_t::validate for worker testWorker contact is localhost:8009 [Sun Aug 10 10:59:43 2003] [jk_ajp_common.c (1397)]: Into jk_worker_t::init [Sun Aug 10 10:59:43 2003] [jk_ajp_common.c (1421)]: In jk_worker_t::init, setting socket timeout to 0 [Sun Aug 10 10:59:43 2003] [jk_worker.c (187)]: wc_create_worker, done [Sun Aug 10 10:59:43 2003] [jk_worker.c (238)]: build_worker_map, removing old testWorker worker
RE: confirm unsubscribe from tomcat-user@jakarta.apache.org
Please remove me from your mailing list. -Original Message- From: Caoilte O'Connor [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 05, 2003 8:47 AM To: [EMAIL PROTECTED] Subject: Re: confirm unsubscribe from [EMAIL PROTECTED] On Tuesday 05 August 2003 13:46, [EMAIL PROTECTED] wrote: Hi! This is the ezmlm program. I'm managing the [EMAIL PROTECTED] mailing list. I'm working for my owner, who can be reached at [EMAIL PROTECTED] To confirm that you would like [EMAIL PROTECTED] removed from the tomcat-user mailing list, please send an empty reply to this address: tomcat-user-uc.1060087583.johegacmfgakbdcefkli-me=caoilte [EMAIL PROTECTED] Usually, this happens when you just hit the reply button. If this does not work, simply copy the address and paste it into the To: field of a new message. or click here: mailto:tomcat-user-uc.1060087583.johegacmfgakbdcefkli-me [EMAIL PROTECTED] I haven't checked whether your address is currently on the mailing list. To see what address you used to subscribe, look at the messages you are receiving from the mailing list. Each message has your address hidden inside its return path; for example, [EMAIL PROTECTED] receives messages with return path: tomcat-user-return-number[EMAIL PROTECTED] he.org. Some mail programs are broken and cannot handle long addresses. If you cannot reply to this request, instead send a message to [EMAIL PROTECTED] and put the entire address listed above into the Subject: line. --- Administrative commands for the tomcat-user list --- I can handle administrative requests automatically. Please do not send them to the list address! Instead, send your message to the correct command address: To subscribe to the list, send a message to: [EMAIL PROTECTED] To remove your address from the list, send a message to: [EMAIL PROTECTED] Send mail to the following for info and FAQ for this list: [EMAIL PROTECTED] [EMAIL PROTECTED] Similar addresses exist for the digest list: [EMAIL PROTECTED] [EMAIL PROTECTED] To get messages 123 through 145 (a maximum of 100 per request), mail: [EMAIL PROTECTED] To get an index with subject and author for messages 123-456 , mail: [EMAIL PROTECTED] They are always returned as sets of 100, max 2000 per request, so you'll actually get 100-499. To receive all messages with the same subject as message 12345, send an empty message to: [EMAIL PROTECTED] The messages do not really need to be empty, but I will ignore their content. Only the ADDRESS you send to is important. You can start a subscription for an alternate address, for example [EMAIL PROTECTED], just add a hyphen and your address (with '=' instead of '@') after the command word: [EMAIL PROTECTED] g To stop subscription for this address, mail: [EMAIL PROTECTED] org In both cases, I'll send a confirmation message to that address. When you receive it, simply reply to it to complete your subscription. If despite following these instructions, you do not get the desired results, please contact my owner at [EMAIL PROTECTED] Please be patient, my owner is a lot slower than I am ;-) --- Enclosed is a copy of the request I received. Return-Path: [EMAIL PROTECTED] Received: (qmail 28476 invoked from network); 5 Aug 2003 12:46:22 - Received: from zinc.btinternet.com (194.73.73.148) by daedalus.apache.org with SMTP; 5 Aug 2003 12:46:22 - Received: from host217-44-174-234.range217-44.btcentralplus.com ([217.44.174.234] helo=caryatin.mshome.net) by zinc.btinternet.com with esmtp (Exim 3.22 #23) id 19k1Cn-0002vI-00 for [EMAIL PROTECTED]; Tue, 05 Aug 2003 13:46:22 +0100 From: Caoilte O'Connor [EMAIL PROTECTED] To: [EMAIL PROTECTED] Date: Tue, 5 Aug 2003 13:46:21 +0100 User-Agent: KMail/1.5.2 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: [EMAIL PROTECTED] X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: JkMount causing problems
How would I fix that so it wouldn't be overwritten? -Original Message- From: John Turner [mailto:[EMAIL PROTECTED] Sent: Monday, August 11, 2003 3:08 PM To: Tomcat Users List Subject: Re: JkMount causing problems Are you sure its set to info? If you're using the auto-generation feature of Tomcat, then your change is probably getting overwritten. There should be something if JkLogLevel is set to info. John [EMAIL PROTECTED] wrote: Yes I don't have a mod_jk.log being created with the level set to info -Original Message- From: Atristain, Bobbie J. Sent: Monday, August 11, 2003 3:03 PM To: [EMAIL PROTECTED] Subject: RE: JkMount causing problems yes -Original Message- From: John Turner [mailto:[EMAIL PROTECTED] Sent: Monday, August 11, 2003 2:41 PM To: Tomcat Users List Subject: Re: JkMount causing problems You have no mod_jk.log, even with JkLogLevel set to info? John [EMAIL PROTECTED] wrote: The local host file doesn't say anything and I don't have a mod_jk.log being created. But I can't see any reason for it to not work. I have removed the 2nd 2 JkMount statements but the same thing is happening at http://placeanad.classifiedmarketplace.net No idea what is going on? -Original Message- From: John Turner [mailto:[EMAIL PROTECTED] Sent: Monday, August 11, 2003 2:28 PM To: Tomcat Users List Subject: Re: JkMount causing problems One thing is that DocumentRoot is typically not webapps but some directory under webapps, like webapps/ROOT or webapps/myApp or whatever. What URL is causing the 500 error? What do Tomcat's logs say? Also, try setting JkLogLevel to info, restarting, and trying it then. Also, the JkMounts you have are redundant...if you have /*, there's no need for the other two, as /* means send everything to Tomcat. John [EMAIL PROTECTED] wrote: When I have the JkMount statements in my virtual host directives the server gives me a internal 500 server error message and the error log doesn't say anything This is what I have in my virtual host directives VirtualHost *:443 DocumentRoot /usr/local/jakarta-tomcat-4.1.27/webapps ServerName placeanad.classifiedmarketplace.net ErrorLog logs/placeanadclassi.com-error_log CustomLog logs/placeanadclassi.com-access_log common SSLEnable SSLCertificateFile /usr/local/apache1/conf/ssl.crt/server3.crt SSLCertificateKeyFile /usr/local/apache1/conf/ssl.crt/server.key3 JkMount /* ajp13 JkMount /*.jsp ajp13 JkMount /servlet/* ajp13 /VirtualHost Any ideas? Thanks, bobbie Bobbie Atristain Internet Systems Administrator Media General, INC. 804.649.6156 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Starting tomcat from init scripts (HP/UX)
Hi, It's been a while since I tinkered with HP/UX but it seems to me that you can set all your varibles in the default tomcat start scripts and then call the default startup.sh and shutdown.sh. -e On Thu, 7 Aug 2003, Lott, Carey wrote: Hi, The above subject is based on the exact same topic I found in the archives from back in January, but no solution was ever posted. We are having the exact same problem that Pascal was having. We are trying to start tomcat from an init script at boot time. I have the needed variables in the init script, and the init script calls catalina.sh directly. Below is a copy of my script. I have used the script to stop and start tomcat manually without a problem. However, when Tomcat tries to start at boot time the run control information states that it can't start as root, and it is going to try as bin, but it is unsuccessful. Does anybody know why it wouldn't be able to start as root? What can I do to fix this? Init script: - #!/bin/sh # Start/Stop for Tomcat Java Servlet Container # CATALINA_HOME=/bto/appl/apache/jakarta-tomcat-4.0.4 export CATALINA_HOME JAVA_HOME=/opt/java1.4 export JAVA_HOME CLASSPATH=/bto/appl/apache/jakarta-tomcat-4.0.4/common/lib/servlet.jar:/opt /java1.4/jre/lib/rt.jar:/opt/java1.4/lib/tools.jar:/opt/java1.4/lib/dt.jar:/ opt/java1.4/lib/htmlconverter.jar:/opt/java1.4/jre/lib/charsets.jar:/opt/jav a1.4/jre/lib/javaplugin.jar:/opt/java1.4/jre/lib/ext/dnsns.jar:/opt/java1.4/ jre/lib/ext/localedata.jar:/opt/java1.4/jre/lib/ext/ldapsec.jar:/opt/java1.4 /jre/lib/jce.jar:/opt/java1.4/jre/lib/jsse.jar:.:/bto/appl/apache/jakarta-to mcat-4.0.4/webapps/esd/WEB-INF/classes:/bto/appl/apache/jakarta-tomcat-4.0.4 /webapps/esd/WEB-INF/lib:/bto/appl/apache/htdocs/esd/java:/bto/sys/oracle/pr oduct/8.0.6/jdbc/lib/classes111.zip export CLASSPATH case $1 in 'start') /bto/appl/apache/jakarta-tomcat-4.0.4/bin/catalina.sh start /bto/appl/apache/jakarta-tomcat-4.0.4/logs/bootlogstart.txt 21 ;; 'stop') /bto/appl/apache/jakarta-tomcat-4.0.4/bin/catalina.sh stop /bto/appl/apache/jakarta-tomcat-4.0.4/logs/bootlogstop.txt 21 ;; esac Thank you for any help you can offer. Carey signature nameCarey Lott/name posWeb Tools Support/pos orgInfrastructure Storage Tools Support/org companyEDS/company accountBellSouth/account email[EMAIL PROTECTED]/email ipager[EMAIL PROTECTED]/ipager /signature - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Hardware loadbalancing with JK2
Make sure you have a connectionTimout defined in your server.xml for the coyote connector. By default it's 0 (which I gather to be infinite). Setting it to 6 or 12 will make the connection timeout. I am unsure about the cache thing you are talking about because I just use the normal JK2 loadbalancing but it seems that if you make the connections timeout it won't send a keepalive. -e On Mon, 11 Aug 2003, Mark Gastel wrote: Hi Eric, Thanks. At this point I'm a bit more comfortable using a hardware loadbalancer over the jk2 stuff. we've been using a css in production for well over a year. Unlike tomcat or apache I've seen very little movement in the jk2 code base and the documentation is very confusing at times. My problem is not the basic configuration ...I have a working setup. My problem is because mod_jk2 is using a connection cache (keepalive connections or something) it is sending requests to a service that has been disabled. This really sucks if you want to upgrade a tomcat instance. If I can get jk2 to establish a new connection with every request this problem disappears. No matter what I do I can't get this to happen. Thanks! Mark -Original Message- From: Eric J. Pinnell [mailto:[EMAIL PROTECTED] Sent: Monday, August 11, 2003 5:04 PM To: Tomcat Users List Subject: Re: Hardware loadbalancing with JK2 Hi, Using the CSS between Apache and Tomcat seems a bit overkill as Tomcat provides all the functionality that a CSS would. However I think you can get it to work. All you need is a single worker to the CSS. From there the CSS should bust it out and spread it across the various Tomcats. There wouldn't be any loadbalancing in the JK2 configuration. Just like a web server might have multiple hosts behind it, to the outside world you only see one IP. Same thing goes for JK2. I don't have a properties file handy but search the archives and you'll find an example. You just want a real basic single worker config. I think there might be one in the JK2 docs. Make sure to configure the CSS to make the sessions sticky by some mechanism (unless you are using clustering) otherwise Tomcat could goof up. -e On Mon, 11 Aug 2003, Mark Gastel wrote: Hi, I am trying to get hardware load balancing to work between apache 2.0.46/mod_jk2, a cisco css and tomcat 4.1.27. The way this works is an ajp13 service has been created on the css. Apache talks to this css ajp service which is split among several tomcat instances... Now the problem: Because mod_jk2 seems to have some form of connection caching going, when I disable a tomcat instance it still receives ajp13 connections. Is there a way to disable the connection caching in JK2 and forcing it to establish a new connection with every hit? I know this would give a performance hit, but it will give me fine grain control over how traffic is distributed. If you could attach a piece of a workers2.properties file I would really appreciate it!! Thanks Mark - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Classpath too long 4.1.27?
Anyone having issues with a long classpath? java.io.IOException: CreateProcess: javac.exe -classpath E:\Servers\tomcat4\bin\bootstrap.jar;F:\Inetpub\new_voroot\WEB-INF\lib\cookietag.jar;F:\Inetpub\new_voroot\WEB-INF\lib\log4j.jar;F:\Inetpub\new_voroot\WEB-INF\lib\mail.jar;F:\Inetpub\new_voroot\WEB-INF\lib\string.jar;F:\Inetpub\new_voroot\WEB-INF\lib\voslogs.jar;F:\Inetpub\new_voroot\WEB-INF\lib\vosmail.jar;F:\Inetpub\new_voroot\WEB-INF\lib\voweb.jar;E:\Servers\tomcat4\shared\classes;E:\Servers\tomcat4\common\classes;E:\Servers\tomcat4\common\endorsed\xercesImpl.jar;E:\Servers\tomcat4\common\endorsed\xmlParserAPIs.jar;E:\Servers\tomcat4\common\lib\activation.jar;E:\Servers\tomcat4\common\lib\ant.jar;E:\Servers\tomcat4\common\lib\commons-collections.jar;E:\Servers\tomcat4\common\lib\commons-dbcp.jar;E:\Servers\tomcat4\common\lib\commons-logging-api.jar;E:\Servers\tomcat4\common\lib\commons-pool.jar;E:\Servers\tomcat4\common\lib\dom.jar;E:\Servers\tomcat4\common\lib\jasper-compiler.jar;E:\Servers\tomcat4\common\lib\jasper-runtime.jar;E:\Servers\tomcat4\common\lib\jaxen-full.j? Thats what shows up in my logs. Its like the classpath is too long and it's cutting it off with the question mark. Does anyone have any ideas? It stopped compiling my jsp's once I got to 4.1.27. -Matt - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat v4.0 Admin Utility Crashing again
Howdy, Update to the latest version of the java and install its required Solaris patches. (Find them in the Solaris OS patches sections of this page: http://java.sun.com/j2se/1.4.2/download.html) Yoav Shapira Millennium ChemInformatics -Original Message- From: Thomas, Kevin [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 06, 2003 9:27 AM To: 'Tomcat Users List' Subject: Tomcat v4.0 Admin Utility Crashing again Hi again, Sorry to be a pain. But we are continuing to have Tomcat crash on us whenever we try to access Jsp pages. It would appear that there is a problem with the HotSpot JVMcan anyone help or possibly point me in the right direction. I've searched the Sun Java site and essentially they have a bug report for this but it's been closed off as un-reproductable, which is carp, because I can repeat the problem time and time again. Any help would be much appreciated. Cheers, Kev. -Original Message- From: Thomas, Kevin [mailto:[EMAIL PROTECTED] Sent: 05 August 2003 10:20 To: 'Tomcat Users List' Subject: Tomcat v4.0 Admin Utility Crashing Hi, I'm currently running Java version 1.3.1_08 with Tomcat v4 on a Solaris box (SunOS 5.6). I've been trying to run the ADMIN utility and until now wasn't even able to get the JSP pages to compile. I had this newer version of Java installed and I can now get the Login page displaying. However, after logging in, the index.jsp page is not always loading consistently and will sometimes crash Tomcat. The latest error was recorded as: An unexpected exception has been detected in native code outside the VM. Unexpected Signal : 11 occurred at PC=0x91874 Function name=(N/A) Library=(N/A) NOTE: We are unable to locate the function name symbol for the error just occurred. Please refer to release documentation for possible reason and solutions. Current Java thread: Dynamic libraries: 0x1 /usr/local/j2se/bin/../bin/sparc/native_threads/java 0xef77 /usr/lib/libthread.so.1 0xef7b /usr/lib/libdl.so.1 0xef68 /usr/lib/libc.so.1 0xef75 /usr/platform/SUNW,Ultra-Enterprise/lib/libc_psr.so.1 0xee80 /usr/local/j2se/jre/lib/sparc/client/libjvm.so 0xef64 /usr/lib/libCrun.so.1 0xef62 /usr/lib/libsocket.so.1 0xef58 /usr/lib/libnsl.so.1 0xef54 /usr/lib/libm.so.1 0xef67 /usr/lib/libw.so.1 0xef51 /usr/lib/libmp.so.2 0xef4e /usr/local/j2se/jre/lib/sparc/native_threads/libhpi.so 0xef4b /usr/local/j2se/jre/lib/sparc/libverify.so 0xef46 /usr/local/j2se/jre/lib/sparc/libjava.so 0xef43 /usr/local/j2se/jre/lib/sparc/libzip.so 0xeb0a /usr/local/j2se/jre/lib/sparc/libnet.so 0xeb08 /usr/lib/nss_files.so.1 Local Time = Tue Aug 5 10:25:56 2003 Elapsed Time = 64520 # # The exception above was detected in native code outside the VM # # Java VM: Java HotSpot(TM) Client VM (1.3.1_08-b03 mixed mode) # Can anyone shed some light on this at all. This error also appeared in the catalina.out log file during one attempt to run. [INFO] Http11Protocol - -Starting Coyote HTTP/1.1 protocol handler on port 8080 javax.servlet.UnavailableException: MBeanServer is not available at org.apache.webapp.admin.ApplicationServlet.initServer(Unknown Source) at org.apache.webapp.admin.ApplicationServlet.getServer(Unknown Source) at org.apache.webapp.admin.TomcatTreeBuilder.buildTree(Unknown Source) at org.apache.webapp.admin.SetUpTreeAction.perform(Unknown Source) at org.apache.struts.action.ActionServlet.processActionPerform(ActionServl et.j a va:1788) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1584) at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:492) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Unknow n Source) at org.apache.catalina.core.ApplicationFilterChain.doFilter(Unknown Source) at org.apache.catalina.core.StandardWrapperValve.invoke(Unknown Source) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext. invo k eNext(Unknown Source) at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source) at org.apache.catalina.core.ContainerBase.invoke(Unknown Source) at org.apache.catalina.core.StandardContextValve.invoke(Unknown Source) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext. invo k eNext(Unknown Source) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(Unknown Source) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext. invo k eNext(Unknown Source) at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source) at
Re: [OT] Some one executing windows commands in Tomcat 4.1.18.
Then contact your ISP's abuse center and tell them that a machine on their network is infected. That's the only way it will go away, otherwise you will keep seeing it. John Antony paul wrote: Althoug it is an intranet application Tomcat is listening on the public IP address accessible from internet(temporary arrangement) and the IP address in the log is out side the intranet but of same ISP. The IIS is not running but we have some other web server program(probably apache) which listens on this IP address. - Original Message - From: Ralph Einfeldt [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Tuesday, August 12, 2003 2:08 PM Subject: RE: [OT] Some one executing windows commands in Tomcat 4.1.18. There is someone from xx.xx.xx.xx trying to use an IIS vulnerability. If it's realy intranet your admin should have a look at the offending pc if it is infected by a virus. (Not shure out of the head if this is nimda, code red or what else) This vulnerability is not affecting tomcat. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: mod_jk2 on Solaris 8 - symbol apr_socket_timeout_set: referencedsymbol not found
There's no need to specify any of the Java stuffthe module is a C module built for Apache, references to Java are superfluous, and AFAIK ignored. John J.P. Wadkin C9951627 wrote: Yep. I tried building with specific connector sources and with the source bundle that contains all the connectors. The VM is in /usr/java If I had the JAVA_HOME variable set I expect that the script would correctly find the Java installation (?), but it shouldn't make any difference whether I use an environment variable or a switch to specify the location? John -Original Message- From: Eric J. Pinnell [mailto:[EMAIL PROTECTED] Sent: 12 August 2003 16:06 To: Tomcat Users List Subject: RE: mod_jk2 on Solaris 8 - symbol apr_socket_timeout_set: referenced symbol not found Are you using: http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk2/release/v 2.0.2/src/jakarta-tomcat-connectors-jk2-2.0.2-src.tar.gz ? You shouldn't have to declare a VM. It should compile (and work) fine with just apxs. -e - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Https not working
You can configure tomcat to handle https connections directly, its usually port 8443. other than that, it shouldn't matter to tomcat if its http or https if its going through apache. Apache will handle all the ssl connections. -Original Message- From: Kurt Overberg [mailto:[EMAIL PROTECTED] Sent: Friday, August 08, 2003 3:37 PM To: Tomcat Users List Subject: Re: Https not working Neither of those urls are passing through you apache, unless you have it configured to run on port 8080 (which is usually the Tomcat port). Not sure if you can configure Tomcat to use SSL directly, but I do know that just sticking an 'https' in front of it won't work. You need to set up apache so it deals with the http/https side of things and configure a connector (the thing that allows apache to forward requests to Tomcat's AJP13 port). /kurt [EMAIL PROTECTED] wrote: Greetings, I'm running Tomcat primarily as a Servlet/JSP container behind Apache so I have configure the primary web server to handle the SSL connections from users. So if my apache box will negotiate all SSL-related functionality what do I have to do in tomcat to get it to work? If you go to http://placeanad.classifiedmarketplace.net:8080/AdWebster works But https://placeanad.classifiedmarketplace.net:8080/AdWebster does not work Thanks, Bobbie Bobbie Atristain Internet Systems Administrator Media General, INC. 804.649.6156 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: integration of apache2.0.40 tomcat4.1.27
ÔÚ 2003-08-09 13:14:00 ÄúдµÀ£º Hi all,of you ? Could you tell me ? Thanks~~ I have installed RH9 and it contains apache2.0.40. Then I installed tomcat4.1.27 by binary. After that I want to integrate them to work together by using jk2. What is the easy way to integrate them? Any document that shows step by step integration? I found jakarta site have a related document about it. But I can't find the bin mod_jk2 for 2.0.40 in jakarta site. Where can I find mod_jk2 for 2.0.40? Any guide line to build it myself? I wonder why jakarta site doesn't have mod_jk2-2.0.40 for download. Rgds, unplug - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] mqg - SOUVENIR --- . | Souvenir of China | | A Good Place for You | `-- http://www.souvenirchina.com -' mailto:[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: cookie problem
The request.getCookies() will return null if no cookies were sent with the request. You should check that cookies != null before checking cookies.length -Original Message- From: Paul [mailto:[EMAIL PROTECTED] Sent: 12 August 2003 17:13 To: Tomcat Users List Subject: cookie problem I hava a JSP application under Tomcat 4.1.24, jdk 1.4, running as service on win2k currently in standalone mode. The default index.jsp page checks for cookie that has not yet been set. Under Tomcat 3.x (jdk 1.2), this cookie checking does not generate an error; however, under Tomcat 4 it generates an HTTP Status 500 exception report, where the root cause is given as java.lang.NullPointerException. If i subsequently run a page which does not check for cookie, that non-cookie checking page loads fine; and then the cookie checking page loads fine without any exception report. It is only when the cookie checking page runs FIRST that error message is generated. I am uncertain if this is some sort of jsp error or some sort of Tomcat error. here is code used to check for cookie, where that cookie does not exist when this code generates error. But then again, that cookie still does not exist when this code works fine (ie, after running a jsp that does not check for cookie) - which is why i am wondering if this has something to do with Tomcat 4, or perhaps how it is configured??? Cookie[] cookies = request.getCookies(); for(int j=0; jcookies.length; j++) { cookieName = cookies[j].getName(); cookieValue = cookies[j].getValue(); if (cookieName.equals(ex)) { xx = cookieValue; // wher xx is previously defined as a String object break; } } Any and all help is more than welcome, as i am a bit stumped as to how to begin troubleshooting this. -paul lomack - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Automatic switch from http to https doesn't work for IE, does for Netscape
ÔÚ 2003-08-09 16:30:00 ÄúдµÀ£º Tomcat 4.0.6of you ? Could you tell me ? Thanks~~ Windows 2000 IE 5, SP3 Netscape 7.02 I have a website which is part public, part secure. There are html entries such as lt a href=members/index.jsp gt in the public area which will jump to the secure area. The site is entered, by default using http://localhost:8080 but the members area is protected via SSL and transport guarantee stanzas security-constraint web-resource-collection web-resource-nameScoutGroup-Secure/web-resource-name url-pattern/members/*/url-pattern /web-resource-collection auth-constraint role-namemember/role-name /auth-constraint user-data-constraint transport-guaranteeCONFIDENTIAL/transport-guarantee /user-data-constraint /security-constraint I understand that this should force any http://localhost:8080/scoutgroup/members request to switch to https://localhost:8443/scoutgroup/members. Under Netscape it does and I am notified that I am going to a secure page, prompted to accept the SSL certificate then driven through my logon.jsp to response.encodeURL(j_security_check). Under IE, however, I am notified that I am going to a secure page, prompted to accept the SSL certificate then told the page cannot be found. For testing purposes, I tried putting http://localhost:8080/scoutgroup/members in the browser's address box. The access log contains the following (with my annotations prefixed with ) Using IE 127.0.0.1 - - [09/Aug/2003:15:09:28 1] GET /scoutgroup/members/index.jsp HTTP/1.1 302 654 127.0.0.1 - - [09/Aug/2003:15:09:30 1] GET /scoutgroup/members/index.jsp HTTP/1.1 302 654 127.0.0.1 - - [09/Aug/2003:15:09:30 1] a ] ?4? Yq8*+??R?I?T:??[EMAIL PROTECTED] /?4? HTTP/0.9 501 988 Using Netscape 127.0.0.1 - - [09/Aug/2003:15:59:48 1] GET /scoutgroup/members/index.jsp HTTP/1.1 302 654 127.0.0.1 - - [09/Aug/2003:15:59:50 1] GET /scoutgroup/members/index.jsp HTTP/1.1 302 654 127.0.0.1 - - [09/Aug/2003:15:59:50 1] GET /scoutgroup/logon.jsp HTTP/1.1 200 576 127.0.0.1 - - [09/Aug/2003:16:01:07 1] POST /scoutgroup/j_security_check HTTP/1.1 302 654 127.0.0.1 - nichm001 [09/Aug/2003:16:01:07 1] GET /scoutgroup/members/index.jsp HTTP/1.1 200 427 Both browsers caused the same response (SC_MOVED_TEMPORARILY/302) as they attempted to navigate to the security check but then IE generated something very peculiar and appeared to try to renegotiate the protocol to http/0.9 before giving up. I've checked the logs - can't find anything more informative than above. I've tried running Tomcat via the catalina run command line option but there is no extra info there either. I know I can modify my code to always force the full path into hyperlinks but that's not good programming and has enormous potential for maintenance problems. Where do I look now? Murray - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] mqg - SOUVENIR --- . | Souvenir of China | | A Good Place for You | `-- http://www.souvenirchina.com -' mailto:[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]