Connection failed when connecting to MySQL server
I have tomcat-4.1.18 server and mysql-3.23.52 server on the same machine (RedHat Linux 8) In my webapps/application/WEB_INF/lib/ folder, I have 2 .jar files. One is myapplication .jar and other is JConnector(downloaded from mysql.com). One of the files in my application contains the following lines: Class.forName(com.mysql.jdbc.Driver).newInstance(); Connection conn = DriverManager.getConnection(jdbc:mysql://localhost/?user=usernamepassword=password); But whenever I try to open my .jsp page, the Connection fails to the Tomcat Server and after that no other page opens. i.e the server itself crashes. I tried the following change: Connection conn = DriverManager.getConnection(jdbc:mysql://192.168.100.38:3306/?user=usernamepassword=password); But the problem remains. Can anyone help me urgently. Thanks in advance. Sulabh
Controlling access to j_security_check
Hi! I want to limt access to j_security_check. If there have been a certain number of requests to j_security_check with one j_username and some invalid j_password, the following requests to j_security_check with the same j_username shold be redirected to another page where the user has to do some tasks to be able to login again. I found out that it is not possible to plave a Filter in front of j_security_check in tomcat. So what would be a convienient way to control access to j_security_check in tomcat? Regards, Henrik - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: PDF File on Documentation Web Site Corrupted?
Daniel, Just to let you know I get an error also. I am using Adobe reader 6.0 on WinXP and get an error about unable to extract font. Looks like they created the first document using a font named EHPFDM+Arial but failed to package it in the document. The second document gives unrecognized token scnTwGS1was found. You may need to repost this later next week to catch the eye of the responsible parties. Doug www.parsonstechnical.com - Original Message - From: SANTOS, DANIEL (SBCSI) [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Friday, July 02, 2004 2:30 PM Subject: PDF File on Documentation Web Site Corrupted? When attempting to view a PDF on the Tomcat Architecture at http://jakarta.apache.org/tomcat/tomcat-5.0-doc/architecture/requestProc ess/requestProcess.pdf I get errors in Acrobat Reader. Same thing for http://jakarta.apache.org/tomcat/tomcat-5.0-doc/architecture/startup/ser verStartup.pdf. Does anybody know who is responsible for these and if there is any way to correct them? Thanks Daniel - 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: Controlling access to j_security_check
I think Matt Rable has something that does what you need as part of his AppFuse development. http://raibledesigns.com/wiki/Wiki.jsp?page=AppFuse Jake At 10:40 AM 7/3/2004 +0200, you wrote: Hi! I want to limt access to j_security_check. If there have been a certain number of requests to j_security_check with one j_username and some invalid j_password, the following requests to j_security_check with the same j_username shold be redirected to another page where the user has to do some tasks to be able to login again. I found out that it is not possible to plave a Filter in front of j_security_check in tomcat. So what would be a convienient way to control access to j_security_check in tomcat? Regards, Henrik - 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: Virtual Hosts on Tomcat 5
Hi Steve, just add an Alias directive nested in the Host-Element. An example can be seen in http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/host.html hope that helps Marco --- http://www.optik-preisvergleich.de http://www.druckerpatronen--preisvergleich.de http://www.lenses-price-comparison.com Am Freitag 02 Juli 2004 21:55 schrieb Steve Beaman: I'm using Tomcat 5 standalone. Everything works just fine, but now I need to enter my virtual hosts information in the server.xml file. Does anybody have a server.xml file that uses virtual hosts that I could use as an example? Thanks. --- - Steve Beaman [EMAIL PROTECTED] Altura International http://SHOP.COM http://www.catalogcity.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: question on tomcat's JSESSIONID
[EMAIL PROTECTED] wrote: Hi, I have 2 questions regarding tomcat: 1- I am wondering if it is possible to rename the JSESSIONID cookie to something else. I am interseted in renaming it host_port_JSESSIONID this way JSESSION ids generated by webservers on the same domain (domain.com) will not conflict with each other. (I have a special setup with a portal webserver which relays cookies to other webservers in the same domain) I know this can be done with WebLogic : you can customize the name of the JSESSIONID cookie in weblogic.xml. Is it possible to do this with tomcat? Of course you could change the source. I doubt this cookie name can be configured. Due to cookie domain conflict with the JSESSIONID of two servers we once patched the Tomcat binaries directly. Just search in \server\lib jars for classes (as far as I remember there are only 2-3 .class files that need to be patched) with the string JSESSIONID, take a hex editor and set it to JSESS123ID for example. Put the patched class files back into the jars etc. Make sure that the string has the same length as the original cookie name! Kind of a hack, but it works! Greetings Michael - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
c:if test=${} - won't accept any expressions for test!!!
When I tried the following: code: c:if test=${!empty param.name} NO name specified! /c:if I get this error: code: Exception message: /GuestBook/AddEntryHandler.jsp(18,2) According to TLD or attribute directive in tag file, attribute test does not accept any expressions Stack Trace: Error message: /GuestBook/AddEntryHandler.jsp(18,2) According to TLD or attribute directive in tag file, attribute test does not accept any expressions org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:39) org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:376) org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:150) org.apache.jasper.compiler.Validator$ValidateVisitor.checkXmlAttributes(Validator.java:941) org.apache.jasper.compiler.Validator$ValidateVisitor.visit(Validator.java:696) org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1441) org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2163) org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2213) org.apache.jasper.compiler.Validator$ValidateVisitor.visit(Validator.java:716) org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1441) org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2163) org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2213) org.apache.jasper.compiler.Validator$ValidateVisitor.visit(Validator.java:716) org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1441) org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2163) org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2213) org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2219) org.apache.jasper.compiler.Node$Root.accept(Node.java:456) org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2163) org.apache.jasper.compiler.Validator.validate(Validator.java:1475) org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:214) org.apache.jasper.compiler.Compiler.compile(Compiler.java:461) org.apache.jasper.compiler.Compiler.compile(Compiler.java:442) org.apache.jasper.compiler.Compiler.compile(Compiler.java:430) org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:274) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236) javax.servlet.http.HttpServlet.service(HttpServlet.java:810) org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237) org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157) com.jspbook.GZIPFilter.doFilter(GZIPFilter.java:37) org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186) org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157) org.ablogic.web.CacheFilter.doFilter(CacheFilter.java:130) org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186) org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157) org.ablogic.web.IPBlockFilter.doFilter(IPBlockFilter.java:135) org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186) org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157) org.ablogic.web.TraceFilter.doFilter(TraceFilter.java:69) org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186) org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157) org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214) org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198) org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152) org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137) org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117) org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102) org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
Sysdeo, Eclipse, Tomcat
I am trying to figure out how to debug servlets and JSPs. I am running Windows ME, Tomcat 5.0, Eclipse 2.1.3, and Sysdeo Tomcat Plugin 3.0.0.alpha1. So, how should Sysdeo be set up? Should I be able to set a breakpoint normally in a servlet? How do I set a breakpoint in JSP? Where is my soruce (and binaries) supposed to be? Miscellaneous questions: 1. What is Tomcat base? (Preferences/Tomcat) 2. Any JVM settings needed? (Preferences/Tomcat/JVM settings) Thanks for your help. I have already tried to find a tutorial on the Web, but nothing has helped. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]