Classpath and Aliases on Tomcat 4
G'Day, I hope I'm not about to rehash an old subject here. I couldn't find a satisfactory answer in the mail archives. I have a web-based application that is not designed as a webapp. It has a single servlet as its interface to the world. This servlet, and all of its supporting classes, are in a directory on the file system. Some of the classes are unpackaged, while most of them are in JAR or ZIP files. It also relies on another directory on the file system for images. I am trying to configure a webapp to use this application. I need to know how to do two things: Add elements to the classpath from elsewhere on the file system; and add a static directory to a web app (as in the Alias command in the Apache web server). Currently, I have created a seperate web app for the static files and just pointed its base directory at the images directory. I was hoping for a better way (other than to use IIS or Apache). The classpath issue is more difficult. I was able to accomplish this in Tomcat 3 by passing the -Dorg.apache.tomcat.apps.classpath=xxx system property in the tomcat.bat file. Tomcat 4 (Catalina) doesn't seem to know about this property. I tried adding the path directly to Tomcat's classpath, but it seems that in that case, the wrong class loader is used: I get a NoClassDefFoundError on HttpServlet. Any suggestions anyone? All help muchly appreciated. Thanks, Matt -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
AW: auto deploy WAR + embedded tomcat
Your mail client uses a from like [EMAIL PROTECTED]. The is an empty alias. Some mail clients (like outlook) display the name of the receiver whenever they find such a from address (see below in the line starting with Von:). So there are two problems: - Your mail client produces a cripled from address May be you can change that. I don't use hotmail, but my freemail provider has the option to change/select the from address that shall be used. - Some mail clients get confused by this addresses -Ursprüngliche Nachricht- Von: Ralph Einfeldt [mailto:[EMAIL PROTECTED]] Gesendet: Dienstag, 8. Oktober 2002 07:47 An: [EMAIL PROTECTED] Betreff: RE: auto deploy WAR + embedded tomcat Hmm.. Don't know why that is, I'm sending this question from my hotmail account which should be Patrick Lacson. -P -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Forwarding in servlets.
Is there any way besides the following : request.setAttribute(selectedScreen, request.getServletPath()) ; RequestDispatcher dispatcher = request.getRequestDispatcher(/test.jsp) ; if (dispatcher!=null) { dispatcher.forward(request, response) ; } to forward a request to a jsp page. Is it possible to use response.sendRedirect like in jsp ? Any suggestions will be great. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
org.xml.sax.SAXException
I'm getting the following error using jakarta-tomcat-3.3.1 org.xml.sax.SAXException: System property org.xml.sax.driver not specified I'm using xalan.jar and xerces.jar in my classpath and also I've removed parser.jar from the lib. Any clue? - Chandra - Do you Yahoo!? Faith Hill - Exclusive Performances, Videos, more faith.yahoo.com
AW: Forwarding in servlets.
You can use response.sendRedirect in servlets. But keep in mind that this is a complette different thing than dispatcher.forward(). redirect() forces the client to do a second request to the url. (You can see this in the browser as it will show a different URL). Forward() works internally, the response to the initial request is created by the given servlet/jsp. This is transparent to the client. -Ursprüngliche Nachricht- Von: Kwok Peng Tuck [mailto:[EMAIL PROTECTED]] Gesendet: Dienstag, 8. Oktober 2002 08:42 An: [EMAIL PROTECTED] Betreff: Forwarding in servlets. RequestDispatcher dispatcher = request.getRequestDispatcher(/test.jsp) ; if (dispatcher!=null) { dispatcher.forward(request, response) ; } to forward a request to a jsp page. Is it possible to use response.sendRedirect like in jsp ? -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: AW: Forwarding in servlets.
Thanks, so the question now would be like this. With the dispatcher.forward() method, is it possible to POST data instead of tacking parameters at the end of test.jsp ? Ralph Einfeldt wrote: You can use response.sendRedirect in servlets. But keep in mind that this is a complette different thing than dispatcher.forward(). redirect() forces the client to do a second request to the url. (You can see this in the browser as it will show a different URL). Forward() works internally, the response to the initial request is created by the given servlet/jsp. This is transparent to the client. -Ursprüngliche Nachricht- Von: Kwok Peng Tuck [mailto:[EMAIL PROTECTED]] Gesendet: Dienstag, 8. Oktober 2002 08:42 An: [EMAIL PROTECTED] Betreff: Forwarding in servlets. RequestDispatcher dispatcher = request.getRequestDispatcher(/test.jsp) ; if (dispatcher!=null) { dispatcher.forward(request, response) ; } to forward a request to a jsp page. Is it possible to use response.sendRedirect like in jsp ? -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
AW: AW: Forwarding in servlets.
As forward works internally you can add parameters to the request. At this point this has nothing to do with GET or POST. -Ursprüngliche Nachricht- Von: Kwok Peng Tuck [mailto:[EMAIL PROTECTED]] Gesendet: Dienstag, 8. Oktober 2002 08:56 An: Tomcat Users List Betreff: Re: AW: Forwarding in servlets. Thanks, so the question now would be like this. With the dispatcher.forward() method, is it possible to POST data instead of tacking parameters at the end of test.jsp ? -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: AW: AW: Forwarding in servlets.
So I just do this ? RequestDispatcher dispatcher = request.getRequestDispatcher(/test.jsp?blah=bleh) ; if (dispatcher!=null) { dispatcher.forward(request, response) ; } Ralph Einfeldt wrote: As forward works internally you can add parameters to the request. At this point this has nothing to do with GET or POST. -Ursprüngliche Nachricht- Von: Kwok Peng Tuck [mailto:[EMAIL PROTECTED]] Gesendet: Dienstag, 8. Oktober 2002 08:56 An: Tomcat Users List Betreff: Re: AW: Forwarding in servlets. Thanks, so the question now would be like this. With the dispatcher.forward() method, is it possible to POST data instead of tacking parameters at the end of test.jsp ? -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: org.xml.sax.SAXException
you must put parser.jar in lib/common I use parser crimson, and have no problem I have a question Do you know how to access database via JDBC driver with tomcat 3.3.1? thanks -Message d'origine- De: Chandra Sekhar [SMTP:[EMAIL PROTECTED]] Date: mardi 8 octobre 2002 08:40 À:[EMAIL PROTECTED] Objet:org.xml.sax.SAXException I'm getting the following error using jakarta-tomcat-3.3.1 org.xml.sax.SAXException: System property org.xml.sax.driver not specified I'm using xalan.jar and xerces.jar in my classpath and also I've removed parser.jar from the lib. Any clue? - Chandra - Do you Yahoo!? Faith Hill - Exclusive Performances, Videos, more faith.yahoo.com
AW: Why does one java process continue to run and take more and more CPU?
I see some options for further investigation: - Look in the log file to see if this process produces any output. - Print out a stack trace Wait until this happens again, send a 'kill -QUIT pid'to the vm look in the log file that contains the output to stderr. This will contain a stack trace for each thread. - Attach a debugger Wait until this happens again, and look what the threads are doing. -Ursprüngliche Nachricht- Von: Brandon Cruz [mailto:[EMAIL PROTECTED]] Gesendet: Montag, 7. Oktober 2002 23:40 An: Tomcat Users List Betreff: Why does one java process continue to run and take more and more CPU? Running Tomcat 3.2.4, Sun JDK 1.3.1_01, AJP13, Apache 1.3.x on Linux. One java process seems to keep running and take more and more CPU as time goes on. It just slowly keeps growing and slowing down the system. Right now, I look and it has been running for 2338 minutes and is taking 48.9% of the CPU. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: TOmcat 4.0.1 and JDOM b8
Hi Malachi, Thanks for your responses. I've uncompressed the two jar files (xercesImpl.jar that I use before and xerces.jar from JDOM). But there are so many classes... Which of them should I remplace from a version to another? Regards, Cyril. ___ Cyril Vidal Email: [EMAIL PROTECTED] Web: http://www.planetexml.com - Original Message - From: Malachi de AElfweald [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Tuesday, October 08, 2002 5:44 AM Subject: Re: TOmcat 4.0.1 and JDOM b8 Incompatible object argument for function call Sounds like the API changed and one of your servlets expected one format, and the other servlet expected another... If you open the jars, you should be able to compare the two files Malachi 10/7/2002 2:48:00 PM, Cyril Vidal [EMAIL PROTECTED] wrote: Yes, in fact, I've put the xerces.jar given with JDOM in $JAVA_HOME/jre/lib/ext. And I've no more the SAXNotRecognized Exception. But, it's very strange, I've got now the following error when I run another servlet that was running well before the manipulation. Here is the beggining of my very basic code: // Imported TraX classes import javax.xml.transform.TransformerFactory; import javax.xml.transform.Transformer; import javax.xml.transform.stream.StreamSource; import javax.xml.transform.stream.StreamResult; import javax.xml.transform.TransformerException; import javax.xml.transform.TransformerConfigurationException; // Imported java classes import java.io.FileOutputStream; import java.io.FileNotFoundException; import java.io.IOException; import org.apache.xerces.parsers.DOMParser; import org.w3c.dom.Document; import org.w3c.dom.NodeList; import java.io.*; import javax.servlet.*; import javax.servlet.http.*; public class TransformServlet extends HttpServlet { public void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException { String thisProduct_id = request.getParameter(product_id); and here is the Exception generated by Tomcat: root cause java.lang.VerifyError: (class: TransformServlet, method: doGet signature: (Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResp o nse;)V) Incompatible object argument for function call at java.lang.Class.newInstance0(Native Method) at java.lang.Class.newInstance(Class.java:237) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:820) at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:615) at org.apache.catalina.servlets.InvokerServlet.serveRequest(InvokerServlet.jav a :396) at org.apache.catalina.servlets.InvokerServlet.doGet(InvokerServlet.java:180) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) What do you think is still wrong? Do I have to do something especially with TOmcat? Thanks for your responses, Cyril. ___ Cyril Vidal Email: [EMAIL PROTECTED] Web: http://www.planetexml.com - Original Message - From: Malachi de AElfweald [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED]; Tomcat Users List [EMAIL PROTECTED] Sent: Monday, October 07, 2002 10:28 PM Subject: Re: TOmcat 4.0.1 and JDOM b8 Also, make sure that an older version is not in $JAVA_HOME/jre/lib/ext cuz that would get used first Malachi 10/7/2002 1:14:36 PM, Padhu Vinirs [EMAIL PROTECTED] wrote: JDOM is only a easy-to-use-wrapper for java programmers around standard xml parsers. The 'SAXNotRecognizedOption is an object in xerces.jar. make sure the xerces.jar that comes with JDOM beta 8 is in your web app's classpath. Maybe JDOM beta 8 supports a version of xerces that Tomcat is not supporting. -- padhu cyril vidal wrote: Hi, I'm using Tomcat 4.0.1 and I have such a code snippet, using JDOM beta 8: import java.io.*; import javax.servlet.*; import javax.servlet.http.*; import org.jdom.Element; import org.jdom.Document; import org.jdom.output.XMLOutputter; import org.jdom.input.SAXBuilder; import org.jdom.JDOMException; public class AddToOrder extends HttpServlet { public Document getDocument(File sourceFile, PrintWriter errorsOut) { try { SAXBuilder builder = new SAXBuilder(); Document document = builder.build(sourceFile); return document; } catch (JDOMException e) { errorsOut.print(Un problème s'est produit pendant la construction du document : +e.getMessage() + br/ + Un document vide est retourné.); return new Document(new Element(blank)); ... I receive systematically the following error message : root cause java.lang.NoClassDefFoundError: org/xml/sax/SAXNotRecognizedException at AddToOrder.getDocument(AddToOrder.java:15) at AddToOrder.doGet(AddToOrder.java:68)
AW: AW: AW: Forwarding in servlets.
That's what the spec says. (It works for me in tc 4.0.3) -Ursprüngliche Nachricht- Von: Kwok Peng Tuck [mailto:[EMAIL PROTECTED]] Gesendet: Dienstag, 8. Oktober 2002 09:13 An: Tomcat Users List Betreff: Re: AW: AW: Forwarding in servlets. So I just do this ? RequestDispatcher dispatcher = request.getRequestDispatcher(/test.jsp?blah=bleh) ; if (dispatcher!=null) { dispatcher.forward(request, response) ; } -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Correction RE: 503 Servlet Unavailable when migrating from tomcat 4.0.1 to 4.0.5
For Information This problem was due to the WebappClassLoader correctly refusing to load the .jar file containing my servlet because it also contained some older javax.servlet classes which is explicitly forbidden in the servlet spec 2.3 Adrian -Original Message- From: Colquhoun, Adrian [mailto:[EMAIL PROTECTED]] Sent: 02 October 2002 15:58 To: 'Tomcat Users List' Subject: Correction RE: 503 Servlet Unavailable when migrating from tomcat 4.0.1 to 4.0.5 Correction - this is a migration from 4.0.1 to 4.0.5 ! Sorry Adrian -Original Message- From: Colquhoun, Adrian [mailto:[EMAIL PROTECTED]] Sent: 02 October 2002 15:49 To: '[EMAIL PROTECTED]' Subject: 503 Servlet Unavailable when migrating from tomcat 4.0.4 to 4.0.5 Hi, I have recent migrated from tomcat 4.0.4 to tomcat 4.0.5 (Windows 2000, java 1.3.1). My tomcat 4.0.5 installation appears to be working correctly (I can execute the servlet examples etc). I have attempted to migrate an existing web application from the 4.0.4 installation the 4.0.5 installation by copying it (i.e. its directory under the webapps directory) and restarting the server. The application works happily under 4.0.4 but immediately generates a 503 Servlet Unavailable error in 4.0.5. I have examined the tomcat log which indicates that the problem is a ClassNotFound exception for my servlet class (i.e. the class loader cannot find it under 4.0.5). The servlet class required is present and is located in a .jar file under the ./lib directory of the web application. If I copy the .jar file to the {TOMCAT_HOME}/lib directory the servlet is found ! So, my question is - Why cant me servlet be located in the .jar file under the lib directory (using 4.0.5) ? Thanks Adrian === Information in this email and any attachments are confidential, and may not be copied or used by anyone other than the addressee, nor disclosed to any third party without our permission. There is no intention to create any legally binding contract or other commitment through the use of this email. Experian Limited (registration number 653331). Registered office: Talbot House, Talbot Street, Nottingham NG1 5HF -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Tomcat won't work with jdk 1.4.0
Hi, There should not be problem running tomcat on Solaris 8. I am running Tomcat 4.1.12 with JDK 1.4 on Solaris without any problem. I have just switched from Tomcat 4.0.3 to 4.1.12. Your problem is the log4j.jar is missing from you your libs. Your application (or some of the lib) is using log4j libraby for logging. Copy the log4j.jar in your $TOMCAT_HOME/common/lib and it should work fine. Raj Chuck Carson wrote: I am running the binary distribution of tomcat 4.0.5 on Solaris 8. It works with jdk1.3.1_05, but I am trying to get it running with jdk1.4.0_02 and I get the following exception in catalina.out: Exception during startup processing java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav a:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor Impl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243) Caused by: java.lang.NoClassDefFoundError: org/apache/log4j/Category at org.opennms.web.authenticate.Authentication.clinit(Authentication.java :39) at org.opennms.web.authenticate.OpenNMSTomcatRealm.init(OpenNMSTomcatReal m.java:125) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorA ccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingCons tructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:274) at java.lang.Class.newInstance0(Class.java:296) at java.lang.Class.newInstance(Class.java:249) at org.apache.catalina.util.xml.ObjectCreate.start(XmlMapper.java:617) at org.apache.catalina.util.xml.XmlMapper.matchStart(XmlMapper.java:412) at org.apache.catalina.util.xml.XmlMapper.startElement(XmlMapper.java:91) at org.xml.sax.helpers.XMLReaderAdapter.startElement(XMLReaderAdapter.java: 329) at org.apache.xerces.parsers.SAXParser.startElement(SAXParser.java:1376) at org.apache.xerces.validators.common.XMLValidator.callStartElement(XMLVal idator.java:1284) at org.apache.xerces.framework.XMLDocumentScanner.scanElement(XMLDocumentSc anner.java:1806) at org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatc h(XMLDocumentScanner.java:1182) at org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScan ner.java:381) at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1098) at org.xml.sax.helpers.XMLReaderAdapter.parse(XMLReaderAdapter.java:223) at javax.xml.parsers.SAXParser.parse(SAXParser.java:362) at javax.xml.parsers.SAXParser.parse(SAXParser.java:301) at org.apache.catalina.util.xml.XmlMapper.readXml(XmlMapper.java:228) at org.apache.catalina.startup.Catalina.start(Catalina.java:725) at org.apache.catalina.startup.Catalina.execute(Catalina.java:681) at org.apache.catalina.startup.Catalina.process(Catalina.java:179) Anyone have any ideas? Thanks CC -- This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message, which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
DBMS access denied with Jakarta NT Service
Hi all, I'm having database access denied when running Jakarta as an NT Service, while no db access problems when running as a standalone program. This is the spec: Jakarta-Tomcat 3.3.1, servicing servlets and jsp requested by IIS through isapi_redirect.dll, Windows 2000 Server. Thanks for any suggestion -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: DBMS access denied with Jakarta NT Service
excuse me but I would like to know how do you do to access a database with tomcat 3.3.1 server.xml? web.xml? lookup? Can you give me a complete exemple? thanks for your help -Message d'origine- De: Cinzia S [SMTP:[EMAIL PROTECTED]] Date: mardi 8 octobre 2002 10:10 À:[EMAIL PROTECTED] Objet:DBMS access denied with Jakarta NT Service Hi all, I'm having database access denied when running Jakarta as an NT Service, while no db access problems when running as a standalone program. This is the spec: Jakarta-Tomcat 3.3.1, servicing servlets and jsp requested by IIS through isapi_redirect.dll, Windows 2000 Server. Thanks for any suggestion -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
JSP-Tags: bodyContent == null in doAfterBody() in TomCat, not in iPlanet
Hi there I have a small TagLib Library in developed in iPlanet 6 with java 1.2.2. There it's working well. Now a wanted to migrate to Tomcat 4.1.12, Apache HTTP Server 2.0.40, mod_jk2, J2SDK 1.4.1, Win2000 (for testing, Solaris later) But there, in the doAfterBody() method of the JSP-Tag I can't get the bodyContent. Where the bug? In Tomcat or in me? Thanks for every hint Braini Following my source files : --- [tagTest.jsp] --- %@ page contentType = text/html % %@ taglib uri=/tlds/tagTest.tld prefix=myTag % % String strRoot = request.getContextPath(); % !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN html head titleBraini's tag tests/title meta http-equiv=Content-Type content=text/html; charset=iso-8859-1 /head body h2Braini's tag tests/h2 h2Register here with your e-mail address/h2 br myTag:form language=en form action=/LDAPaccess method=POST bMail address: /b input type=text name=myTagTest_MAIL_req_1_MAIL maxlength=50 size=30 value=[EMAIL PROTECTED] input type=submit name=Submit /form /myTag:form /body /html --- [tagTest.tld] --- ?xml version=1.0 encoding=ISO-8859-1 ? !DOCTYPE taglib PUBLIC -//Sun Microsystems, Inc.//DTD JSP Tag Library 1.1//EN http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_1.dtd; taglib tlibversion1.0/tlibversion jspversion1.1/jspversion shortnametagTest/shortname infoSome tests in Tomcat 4.1.12/info tag nameform/name tagclassch.TagTest/tagclass bodycontentJSP/bodycontent infoA tag to test bodyContent in Tomcat/info attribute namelanguage/name requiredfalse/required rtexprvaluetrue/rtexprvalue /attribute /tag /taglib --- [ch.TagTest.java] --- package ch; import javax.servlet.jsp.tagext.BodyTagSupport; import javax.servlet.jsp.tagext.BodyContent; import javax.servlet.jsp.JspTagException; import javax.servlet.jsp.JspException; import javax.servlet.jsp.PageContext; import javax.servlet.http.HttpSession; public class TagTest extends BodyTagSupport { private String strLanguage = en; static { System.out.println(TagTest: static: Running static part of tag); } //end static public void setLanguage(String strLanguage) { this.strLanguage = strLanguage; } public String getLanguage() { return strLanguage; } public int doStartTag() throws JspException { System.out.println(TagTest.doStartTag: Running); return EVAL_BODY_INCLUDE; } //end doStartTag(); public int doAfterBody() throws JspTagException { System.out.println(TagTest.doAfterBody: Running); HttpSession session = pageContext.getSession(); BodyContent bodyContent = getBodyContent(); if(bodyContent == null) { System.err.println(TagTest.doAfterBody(): Warning: tagTest:form is empty); } else { System.out.println(TagTest.doAfterBody(): tagTest:form:\n + bodyContent.getString()); } //end else(bodyContent present) return SKIP_BODY; //no further body processing should be performed. } //end doAfterBody() public int doEndTag() throws JspException { System.out.println(TagTest.doEndTag: Running); return EVAL_PAGE; } //end to EndTag() } //end class TagTest --- [System.out / System.err] --- TagTest: static: Running static part of tag TagTest.doStartTag: Running TagTest.doAfterBody: Running TagTest.doAfterBody(): Warning: tagTest:form is empty TagTest.doEndTag: Running -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Error using ajp13 protocol
Hi Marc, Though I am not expert in the JK Connectors, But it is very clear that mod_jk part at apache is not able to connect to the tomcat process. There may be three reason for this:- 1. Your JK connector on tomcat is not listening on port 8009. 2. The host name of the worker in worker.properties and tomcat does not match. 3. Tomct is not running at all. Pleas double check your JK connector configuration in server.xml. Check the default host name in tomcat and worker.properties for the local_pt1 match. Try telneting to the host and port you have configured in worker.properties. Raj Marc Vila Pérez wrote: Hi! I'm trying to connect apache with tomcat, using jk (ajp13), in my mod_jk.log (debug log level), I can read this: [Tue Oct 08 02:49:20 2002] [jk_uri_worker_map.c (172)]: Into jk_uri_worker_map_t::uri_worker_map_alloc [Tue Oct 08 02:49:20 2002] [jk_uri_worker_map.c (375)]: Into jk_uri_worker_map_t::uri_worker_map_open [Tue Oct 08 02:49:20 2002] [jk_uri_worker_map.c (396)]: jk_uri_worker_map_t::uri_worker_map_open, rule map size is 1 [Tue Oct 08 02:49:20 2002] [jk_uri_worker_map.c (299)]: Into jk_uri_worker_map_t::uri_worker_map_open, suffix rule /.jsp=local_pt1 was added [Tue Oct 08 02:49:20 2002] [jk_uri_worker_map.c (408)]: Into jk_uri_worker_map_t::uri_worker_map_open, there are 1 rules [Tue Oct 08 02:49:20 2002] [jk_uri_worker_map.c (422)]: jk_uri_worker_map_t::uri_worker_map_open, done [Tue Oct 08 02:49:20 2002] [jk_worker.c (88)]: Into wc_open [Tue Oct 08 02:49:20 2002] [jk_worker.c (222)]: Into build_worker_map, creating 1 workers [Tue Oct 08 02:49:20 2002] [jk_worker.c (228)]: build_worker_map, creating worker local_pt1 [Tue Oct 08 02:49:20 2002] [jk_worker.c (148)]: Into wc_create_worker [Tue Oct 08 02:49:20 2002] [jk_worker.c (162)]: wc_create_worker, about to create instance local_pt1 of ajp13 [Tue Oct 08 02:49:20 2002] [jk_ajp13_worker.c (108)]: Into ajp13_worker_factory [Tue Oct 08 02:49:20 2002] [jk_worker.c (171)]: wc_create_worker, about to validate and init local_pt1 [Tue Oct 08 02:49:20 2002] [jk_ajp_common.c (1206)]: Into jk_worker_t::validate [Tue Oct 08 02:49:20 2002] [jk_ajp_common.c (1226)]: In jk_worker_t::validate for worker local_pt1 contact is localhost:8009 [Tue Oct 08 02:49:20 2002] [jk_ajp_common.c (1254)]: Into jk_worker_t::init [Tue Oct 08 02:49:20 2002] [jk_ajp_common.c (1274)]: In jk_worker_t::init, setting socket timeout to 0 [Tue Oct 08 02:49:20 2002] [jk_worker.c (187)]: wc_create_worker, done [Tue Oct 08 02:49:20 2002] [jk_worker.c (238)]: build_worker_map, removing old local_pt1 worker [Tue Oct 08 02:49:20 2002] [jk_worker.c (250)]: build_worker_map, done [Tue Oct 08 02:49:20 2002] [jk_worker.c (111)]: wc_open, done 1 [Tue Oct 08 02:49:21 2002] [jk_uri_worker_map.c (172)]: Into jk_uri_worker_map_t::uri_worker_map_alloc [Tue Oct 08 02:49:21 2002] [jk_uri_worker_map.c (375)]: Into jk_uri_worker_map_t::uri_worker_map_open [Tue Oct 08 02:49:21 2002] [jk_uri_worker_map.c (396)]: jk_uri_worker_map_t::uri_worker_map_open, rule map size is 1 [Tue Oct 08 02:49:21 2002] [jk_uri_worker_map.c (299)]: Into jk_uri_worker_map_t::uri_worker_map_open, suffix rule /.jsp=local_pt1 was added [Tue Oct 08 02:49:21 2002] [jk_uri_worker_map.c (408)]: Into jk_uri_worker_map_t::uri_worker_map_open, there are 1 rules [Tue Oct 08 02:49:21 2002] [jk_uri_worker_map.c (422)]: jk_uri_worker_map_t::uri_worker_map_open, done [Tue Oct 08 02:49:21 2002] [jk_worker.c (88)]: Into wc_open [Tue Oct 08 02:49:21 2002] [jk_worker.c (222)]: Into build_worker_map, creating 1 workers [Tue Oct 08 02:49:21 2002] [jk_worker.c (228)]: build_worker_map, creating worker local_pt1 [Tue Oct 08 02:49:21 2002] [jk_worker.c (148)]: Into wc_create_worker [Tue Oct 08 02:49:21 2002] [jk_worker.c (162)]: wc_create_worker, about to create instance local_pt1 of ajp13 [Tue Oct 08 02:49:21 2002] [jk_ajp13_worker.c (108)]: Into ajp13_worker_factory [Tue Oct 08 02:49:21 2002] [jk_worker.c (171)]: wc_create_worker, about to validate and init local_pt1 [Tue Oct 08 02:49:21 2002] [jk_ajp_common.c (1206)]: Into jk_worker_t::validate [Tue Oct 08 02:49:21 2002] [jk_ajp_common.c (1226)]: In jk_worker_t::validate for worker local_pt1 contact is localhost:8009 [Tue Oct 08 02:49:21 2002] [jk_ajp_common.c (1254)]: Into jk_worker_t::init [Tue Oct 08 02:49:21 2002] [jk_ajp_common.c (1274)]: In jk_worker_t::init, setting socket timeout to 0 [Tue Oct 08 02:49:21 2002] [jk_worker.c (187)]: wc_create_worker, done [Tue Oct 08 02:49:21 2002] [jk_worker.c (238)]: build_worker_map, removing old local_pt1 worker [Tue Oct 08 02:49:21 2002] [jk_worker.c (250)]: build_worker_map, done [Tue Oct 08 02:49:21 2002] [jk_worker.c (111)]: wc_open, done 1 (I don't know why repeat two times the sames, but seems that start ok) [Tue Oct 08 02:50:10 2002] [jk_uri_worker_map.c (460)]: Into
Re: Tomcat won't work with jdk 1.4.0
Raj Saini wrote: Hi, There should not be problem running tomcat on Solaris 8. I am running Tomcat 4.1.12 with JDK 1.4 on Solaris without any problem. I have just switched from Tomcat 4.0.3 to 4.1.12. Could you share your jk2.properties then? I'm running on Solaris 8 (SPARC) using JDK 1.4 and Tomcat 4.1.12 (tried Tomcat 4.1.12-LE-jdk14 too) and trying to use the AF_UNIX socket (which apparently requires apr) with no success. I get the following error: Oct 8, 2002 4:29:55 AM org.apache.commons.modeler.Registry loadRegistry INFO: Loading registry information Oct 8, 2002 4:29:55 AM org.apache.commons.modeler.Registry getRegistry INFO: Creating new Registry instance Oct 8, 2002 4:29:56 AM org.apache.commons.modeler.Registry getServer INFO: Creating MBeanServer Oct 8, 2002 4:29:58 AM org.apache.coyote.http11.Http11Protocol init INFO: Initializing Coyote HTTP/1.1 on port 8080 Starting service Tomcat-Standalone Apache Tomcat/4.1.12 Oct 8, 2002 4:30:11 AM org.apache.coyote.http11.Http11Protocol start INFO: Starting Coyote HTTP/1.1 on port 8080 Oct 8, 2002 4:30:11 AM org.apache.jk.server.JkMain newHandler SEVERE: Can't create apr java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory at org.apache.jk.apr.AprImpl.clinit(AprImpl.java:340) I have a tiny jsp that displays the System.getProperty( java.class.path ): * CLASSPATH: /em/opt/j2sdk1.4.0_02/lib/tools.jar:/em/opt/j2sdk1.4.0_02/jre/lib/jsse.jar:/em/opt/jakarta-tomcat-4.1.12/bin/bootstrap.jar Help, advice appreciated. Thanks in advance, Paul Your problem is the log4j.jar is missing from you your libs. Your application (or some of the lib) is using log4j libraby for logging. Copy the log4j.jar in your $TOMCAT_HOME/common/lib and it should work fine. Raj Chuck Carson wrote: I am running the binary distribution of tomcat 4.0.5 on Solaris 8. It works with jdk1.3.1_05, but I am trying to get it running with jdk1.4.0_02 and I get the following exception in catalina.out: Exception during startup processing java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav a:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor Impl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243) Caused by: java.lang.NoClassDefFoundError: org/apache/log4j/Category at org.opennms.web.authenticate.Authentication.clinit(Authentication.java :39) at org.opennms.web.authenticate.OpenNMSTomcatRealm.init(OpenNMSTomcatReal m.java:125) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorA ccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingCons tructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:274) at java.lang.Class.newInstance0(Class.java:296) at java.lang.Class.newInstance(Class.java:249) at org.apache.catalina.util.xml.ObjectCreate.start(XmlMapper.java:617) at org.apache.catalina.util.xml.XmlMapper.matchStart(XmlMapper.java:412) at org.apache.catalina.util.xml.XmlMapper.startElement(XmlMapper.java:91) at org.xml.sax.helpers.XMLReaderAdapter.startElement(XMLReaderAdapter.java: 329) at org.apache.xerces.parsers.SAXParser.startElement(SAXParser.java:1376) at org.apache.xerces.validators.common.XMLValidator.callStartElement(XMLVal idator.java:1284) at org.apache.xerces.framework.XMLDocumentScanner.scanElement(XMLDocumentSc anner.java:1806) at org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatc h(XMLDocumentScanner.java:1182) at org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScan ner.java:381) at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1098) at org.xml.sax.helpers.XMLReaderAdapter.parse(XMLReaderAdapter.java:223) at javax.xml.parsers.SAXParser.parse(SAXParser.java:362) at javax.xml.parsers.SAXParser.parse(SAXParser.java:301) at org.apache.catalina.util.xml.XmlMapper.readXml(XmlMapper.java:228) at org.apache.catalina.startup.Catalina.start(Catalina.java:725) at org.apache.catalina.startup.Catalina.execute(Catalina.java:681) at org.apache.catalina.startup.Catalina.process(Catalina.java:179) Anyone have any ideas? Thanks CC -- This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if
Tomcat JMX
I understand Tomcat 4.1 is based on JMX. I there any documentation on this. - Is there any HTML adapter? If so is it activated by default or...? On what URL? - How do I register my MBeans? /Roland Nygren Security: Restricted -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: AW: AW: AW: Forwarding in servlets.
Ok thanks. Ralph Einfeldt wrote: That's what the spec says. (It works for me in tc 4.0.3) -Ursprüngliche Nachricht- Von: Kwok Peng Tuck [mailto:[EMAIL PROTECTED]] Gesendet: Dienstag, 8. Oktober 2002 09:13 An: Tomcat Users List Betreff: Re: AW: AW: Forwarding in servlets. So I just do this ? RequestDispatcher dispatcher = request.getRequestDispatcher(/test.jsp?blah=bleh) ; if (dispatcher!=null) { dispatcher.forward(request, response) ; } -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: org.xml.sax.SAXException
We are using xerces.jar as a SAX parser. And we even put this under lib/common, still we are gettign the problem. Also that system classpath is set to xerces.jar. Do you have any answer? For database connection download classes12.zip and place it under lib/common and rename it classes12.jar as tomcat can't read zip files. Thanks CLAIRE Celine wrote: you must put parser.jar in lib/common I use parser crimson, and have no problem I have a question Do you know how to access database via JDBC driver with tomcat 3.3.1? thanks -Message d'origine- De: Chandra Sekhar [SMTP:[EMAIL PROTECTED]] Date: mardi 8 octobre 2002 08:40 À: [EMAIL PROTECTED] Objet: org.xml.sax.SAXException I'm getting the following error using jakarta-tomcat-3.3.1 org.xml.sax.SAXException: System property org.xml.sax.driver not specified I'm using xalan.jar and xerces.jar in my classpath and also I've removed parser.jar from the lib. Any clue? - Chandra - Do you Yahoo!? Faith Hill - Exclusive Performances, Videos, more faith.yahoo.com - Do you Yahoo!? Faith Hill - Exclusive Performances, Videos, more faith.yahoo.com
RE: org.xml.sax.SAXException
where can I download classes12.zip -Message d'origine- De: Chandra Sekhar [SMTP:[EMAIL PROTECTED]] Date: mardi 8 octobre 2002 11:27 À:Tomcat Users List Objet:RE: org.xml.sax.SAXException We are using xerces.jar as a SAX parser. And we even put this under lib/common, still we are gettign the problem. Also that system classpath is set to xerces.jar. Do you have any answer? For database connection download classes12.zip and place it under lib/common and rename it classes12.jar as tomcat can't read zip files. Thanks CLAIRE Celine wrote: you must put parser.jar in lib/common I use parser crimson, and have no problem I have a question Do you know how to access database via JDBC driver with tomcat 3.3.1? thanks -Message d'origine- De: Chandra Sekhar [SMTP:[EMAIL PROTECTED]] Date: mardi 8 octobre 2002 08:40 À: [EMAIL PROTECTED] Objet: org.xml.sax.SAXException I'm getting the following error using jakarta-tomcat-3.3.1 org.xml.sax.SAXException: System property org.xml.sax.driver not specified I'm using xalan.jar and xerces.jar in my classpath and also I've removed parser.jar from the lib. Any clue? - Chandra - Do you Yahoo!? Faith Hill - Exclusive Performances, Videos, more faith.yahoo.com - Do you Yahoo!? Faith Hill - Exclusive Performances, Videos, more faith.yahoo.com
RE: org.xml.sax.SAXException
you can find it in your %ORACLE_HOME%\ora81\jdbc\lib directory. -Message d'origine- De: CLAIRE Celine [mailto:[EMAIL PROTECTED]] Date: mardi 8 octobre 2002 11:30 À: Tomcat Users List Objet: RE: org.xml.sax.SAXException where can I download classes12.zip -Message d'origine- De: Chandra Sekhar [SMTP:[EMAIL PROTECTED]] Date: mardi 8 octobre 2002 11:27 À: Tomcat Users List Objet: RE: org.xml.sax.SAXException We are using xerces.jar as a SAX parser. And we even put this under lib/common, still we are gettign the problem. Also that system classpath is set to xerces.jar. Do you have any answer? For database connection download classes12.zip and place it under lib/common and rename it classes12.jar as tomcat can't read zip files. Thanks CLAIRE Celine wrote: you must put parser.jar in lib/common I use parser crimson, and have no problem I have a question Do you know how to access database via JDBC driver with tomcat 3.3.1? thanks -Message d'origine- De: Chandra Sekhar [SMTP:[EMAIL PROTECTED]] Date: mardi 8 octobre 2002 08:40 À: [EMAIL PROTECTED] Objet: org.xml.sax.SAXException I'm getting the following error using jakarta-tomcat-3.3.1 org.xml.sax.SAXException: System property org.xml.sax.driver not specified I'm using xalan.jar and xerces.jar in my classpath and also I've removed parser.jar from the lib. Any clue? - Chandra - Do you Yahoo!? Faith Hill - Exclusive Performances, Videos, more faith.yahoo.com - Do you Yahoo!? Faith Hill - Exclusive Performances, Videos, more faith.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Configuring Tomcat4.1 to use Apache2.0.43 win32, Doc's not clear
Documentation exist here : http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk/release/v1.2.0/doc/ Binaries are here : http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk/release/v1.2.0/bin/win32/ You should now be ready to use JK with Apache 2.0.43 Nota, you could .so or .dll are the same thing for Apache 2.0.43 on Windows boxes. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
jk2 uri mapping of SSL vhost
If anyone knows how to map requests from a virtual host (*:443) to a context ... I would be very thankful for any hint. I use mod_jk2 2.0.0 with Apache 2.0.43, mapping via [uri:/xyz/*] works for the default context, but not for the virtual context used for SSL, also mapping via [uri:*:443] doesn't do anything ... question: shouldn't [uri:/xyz/*] map uris from any virtual host, not just the default one? -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Tomcat won't work with jdk 1.4.0
I am not using JK2. I am using Jk. btw, why do you need the jk2.properties file. Your problem is some where else. jk2.properties is used by the apache not by the tomcat (If I am not wrong). From your exception is seems that you dont have common-logging.jar file in your $TOMCAT_HOME/common/lib directory. It supposed to be part of the distribution. If the the file is there, then it is not inculded in your classpath. This also should be done automatically, if you have not modified any thing. Raj Brzezinski, Paul J wrote: Raj Saini wrote: Hi, There should not be problem running tomcat on Solaris 8. I am running Tomcat 4.1.12 with JDK 1.4 on Solaris without any problem. I have just switched from Tomcat 4.0.3 to 4.1.12. Could you share your jk2.properties then? I'm running on Solaris 8 (SPARC) using JDK 1.4 and Tomcat 4.1.12 (tried Tomcat 4.1.12-LE-jdk14 too) and trying to use the AF_UNIX socket (which apparently requires apr) with no success. I get the following error: Oct 8, 2002 4:29:55 AM org.apache.commons.modeler.Registry loadRegistry INFO: Loading registry information Oct 8, 2002 4:29:55 AM org.apache.commons.modeler.Registry getRegistry INFO: Creating new Registry instance Oct 8, 2002 4:29:56 AM org.apache.commons.modeler.Registry getServer INFO: Creating MBeanServer Oct 8, 2002 4:29:58 AM org.apache.coyote.http11.Http11Protocol init INFO: Initializing Coyote HTTP/1.1 on port 8080 Starting service Tomcat-Standalone Apache Tomcat/4.1.12 Oct 8, 2002 4:30:11 AM org.apache.coyote.http11.Http11Protocol start INFO: Starting Coyote HTTP/1.1 on port 8080 Oct 8, 2002 4:30:11 AM org.apache.jk.server.JkMain newHandler SEVERE: Can't create apr java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory at org.apache.jk.apr.AprImpl.clinit(AprImpl.java:340) I have a tiny jsp that displays the System.getProperty( java.class.path ): * CLASSPATH: /em/opt/j2sdk1.4.0_02/lib/tools.jar:/em/opt/j2sdk1.4.0_02/jre/lib/jsse.jar:/em/opt/jakarta-tomcat-4.1.12/bin/bootstrap.jar Help, advice appreciated. Thanks in advance, Paul Your problem is the log4j.jar is missing from you your libs. Your application (or some of the lib) is using log4j libraby for logging. Copy the log4j.jar in your $TOMCAT_HOME/common/lib and it should work fine. Raj Chuck Carson wrote: I am running the binary distribution of tomcat 4.0.5 on Solaris 8. It works with jdk1.3.1_05, but I am trying to get it running with jdk1.4.0_02 and I get the following exception in catalina.out: Exception during startup processing java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav a:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor Impl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243) Caused by: java.lang.NoClassDefFoundError: org/apache/log4j/Category at org.opennms.web.authenticate.Authentication.clinit(Authentication.java :39) at org.opennms.web.authenticate.OpenNMSTomcatRealm.init(OpenNMSTomcatReal m.java:125) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorA ccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingCons tructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:274) at java.lang.Class.newInstance0(Class.java:296) at java.lang.Class.newInstance(Class.java:249) at org.apache.catalina.util.xml.ObjectCreate.start(XmlMapper.java:617) at org.apache.catalina.util.xml.XmlMapper.matchStart(XmlMapper.java:412) at org.apache.catalina.util.xml.XmlMapper.startElement(XmlMapper.java:91) at org.xml.sax.helpers.XMLReaderAdapter.startElement(XMLReaderAdapter.java: 329) at org.apache.xerces.parsers.SAXParser.startElement(SAXParser.java:1376) at org.apache.xerces.validators.common.XMLValidator.callStartElement(XMLVal idator.java:1284) at org.apache.xerces.framework.XMLDocumentScanner.scanElement(XMLDocumentSc anner.java:1806) at org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatc h(XMLDocumentScanner.java:1182) at org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScan ner.java:381) at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1098) at org.xml.sax.helpers.XMLReaderAdapter.parse(XMLReaderAdapter.java:223) at javax.xml.parsers.SAXParser.parse(SAXParser.java:362) at javax.xml.parsers.SAXParser.parse(SAXParser.java:301) at
One Context - two diffenrnt URLs
I am Balu, working as a software engineer, I am having a problem in tomcat - apache configuration. If time permits , please help me. Here is the problem(UNIX). one context named GREAT is in TOMCAT 3.2.3. Apache 1.3.9 should service urls of two types. The URL types are 1) http://www.foo.com/servlet/MyServlet 2) http://www.foo.com/defservlet/YourServlet I am having all servlet classes file in the dir webapps/GREAT/WEB-INF/classes My web.xml file looks like bellow. servlet servlet-nameMyServlet/servlet-name servlet-classMyServlet/servlet-class /servlet servlet servlet-nameYourServlett/servlet-name servlet-classYourServlet/servlet-class /servlet servlet-mapping servlet-nameMyServlet/servlet-name url-pattern/servlet/MyServlet/url-pattern /servlet-mapping servlet-mapping servlet-nameYourServlet/servlet-name url-pattern/defservlet/YourServlet/url-pattern /servlet-mapping My server.xml file part lokes like Context path=What I have to put docBase=webapps/GREAT crossContext=false debug=0 reloadable=false /Context -- [ I placed two context named servlet and defservlet in server.xml. But one Httpsession created in defservlet context not visible in servlet context.] Please let me know What are all the changes have to make in server.xml file, tomcat.conf file and tomcat-apache.conf file? Expecting your reply Balachandar = One important key to success is self-confidence. An important key to self-confidence is preparation __ Do you Yahoo!? Faith Hill - Exclusive Performances, Videos More http://faith.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Start up fails - TC 4.1.12/JDK 1.4/ Solaris 9
I am reposting... Anyone have any ideas for me? I need someone to throw me a bone... I am an admin of a tomcat setup. I am putting together a new machine and am using all the latest stuff with all the fixins. In a nutshell, my specs... Tomcat 4.1.12 (built from source) - used all required commons-* from BUILDING.txt - all commons-* exist in ${tomcat_home}/common/lib. Java 1.4 Solaris 9 my compile ran find. my startup did not. After running startup.sh here is my output: Below that is my server.xml. (it's the default with no changes..) - Oct 3, 2002 6:39:06 PM org.apache.commons.digester.Digester startElement SEVERE: Begin event threw exception java.lang.ClassNotFoundException: org.apache.catalina.core.StandardServer at org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader .java:992) at org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader .java:857) at org.apache.commons.digester.ObjectCreateRule.begin(ObjectCreateRule.java:252 ) at org.apache.commons.digester.Digester.startElement(Digester.java:1237) at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1490) at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:500) at org.apache.crimson.parser.Parser2.parse(Parser2.java:305) at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:442) at org.apache.commons.digester.Digester.parse(Digester.java:1495) at org.apache.catalina.startup.Catalina.start(Catalina.java:449) at org.apache.catalina.startup.Catalina.execute(Catalina.java:400) at org.apache.catalina.startup.Catalina.process(Catalina.java:180) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39 ) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl .java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203) Catalina.start: java.lang.ClassNotFoundException: org.apache.catalina.core.StandardServer java.lang.ClassNotFoundException: org.apache.catalina.core.StandardServer at org.apache.commons.digester.Digester.createSAXException(Digester.java:2312) at org.apache.commons.digester.Digester.createSAXException(Digester.java:2332) at org.apache.commons.digester.Digester.startElement(Digester.java:1240) at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1490) at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:500) at org.apache.crimson.parser.Parser2.parse(Parser2.java:305) at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:442) at org.apache.commons.digester.Digester.parse(Digester.java:1495) at org.apache.catalina.startup.Catalina.start(Catalina.java:449) at org.apache.catalina.startup.Catalina.execute(Catalina.java:400) at org.apache.catalina.startup.Catalina.process(Catalina.java:180) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39 ) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl .java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203) === BEGIN server.xml = !-- Example Server Configuration File -- !-- Note that component elements are nested corresponding to their parent-child relationships with each other -- !-- A Server is a singleton element that represents the entire JVM, which may contain one or more Service instances. The Server listens for a shutdown command on the indicated port. Note: A Server is not itself a Container, so you may not define subcomponents such as Valves or Loggers at this level. -- Server port=8005 shutdown=SHUTDOWN debug=1 !-- Uncomment these entries to enable JMX MBeans support -- Listener className=org.apache.catalina.mbeans.ServerLifecycleListener debug=0/ Listener className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener debug=0/ !-- Global JNDI resources -- GlobalNamingResources !-- Test entry for demonstration purposes -- Environment name=simpleValue type=java.lang.Integer value=30/ !-- Editable user database that can also be used by UserDatabaseRealm to authenticate users -- Resource name=UserDatabase auth=Container type=org.apache.catalina.UserDatabase description=User database that can be updated and saved /Resource ResourceParams name=UserDatabase parameter namefactory/name valueorg.apache.catalina.users.MemoryUserDatabaseFactory/value
Re: How to specify the location of a properties file.
I use the getResourceAsStram() method also, but i find that my IDE, tends to remove the properties file from my classpath, as soon as I do a build, which is not nice. In the particular case i have now, I don't want to specify the parameters in my web.xml, because the utility that requires a properties file, is not actually a web-app, rather a bunch of utility classes used by my webapp. Im not keen to implement a setProperties() method, as this would mean changing stuff, so im just re-copying the properties into my classes folder after each build.. (unless someone can tell me how to tell WSAD to stop deleting my properties file... but .. *ahem* thats not a Tomcat question :) Cheers, Mehdi Justin Ruthenbeck justinr@nextengiTo: Tomcat Users List [EMAIL PROTECTED] ne.com cc: Subject: Re: How to specify the location of a properties file. 07/10/2002 22:20 Please respond to Tomcat Users List Niaz ... The idea is to load the properties file like you would any other java resource at runtime ... this is (almost) always better, IMHO, than using something J2EE-specific like initialization parameters to a servlet. The relevant code would look something like this: InputStream inStream = this.getClass().getResourceAsStream(/my.props); Properties props = new Properties(inStream); or Properties prop = new Properties(); prop.load(this.getClass().getResourceAsStream(/MyProperties.properties)); There was a thread some time ago that went over this. You can see the details at: http://www.mail-archive.com/tomcat-user@jakarta.apache.org/msg63518.html Hope this helps... justin At 01:40 PM 10/7/2002, you wrote: Justin, I am facing the same problem. Your approach seems to be an elegent one. Would you mind eleborating on the idea a little bit more. Some code snippet would definitely be helpful. I thank you in advance. niaz. - Original Message - From: Justin Ruthenbeck [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Monday, October 07, 2002 4:06 PM Subject: Re: How to specify the location of a properties file. Shaun -- Consider dynamically loading the properties file from your classpath using a class loader. This way, you can put the files anywhere you please and just include that directory in your classpath (or put them someplace already in your classpath). If you need more specifics, let me know and I'd be happy to help... justin At 01:00 PM 10/7/2002, you wrote: I've got a servlet running under Tomcat and I need to read in the contents of a properties file. There will be different properties files for each system specified using an init parameter. I'm having problems reading this property file at the moment in my java class as the way I am doing it at the moment always looks where I started Tomcat from i.e the /bin directory. I can specify a full path to the file but this is not very system independent and limits me to either Windows or Unix. What I need is to specify the location of the file relative to the webapp directory. I have tried the url class but it doesn't seem to work, or maybe it is working but looking in a different place to where my properties file is. Can anyone suggest what I am doing wrong or provide any help on the use of urls in Tomcat? Thanks Shaun -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands,
Re: Start up fails - TC 4.1.12/JDK 1.4/ Solaris 9
At 06:44 8.10.2002 -0500, Shortt, Kevin wrote: I am reposting... Anyone have any ideas for me? I need someone to throw me a bone... There's something wrong in your server.xml or web.xml. Make sure both files are well formed and start with XML declaration: ?xml version=1.0 Hannu Kivimaki -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
jakarta slide question.
I've got slide setup under Tomcat and I'm accessing it using a webfolder. When I access the webfolder I find a sub-folder called files, I suppose this is from settings either in my Domain.xml or my web.xml, can anyone give me the location in my domain.xml or web.xml that refers to this sub-folder, and also can anyone tell me where the actual location of files under the files sub-folder would be found? -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Start up fails - TC 4.1.12/JDK 1.4/ Solaris 9
This is my first line of the web.xml: ?xml version=1.0 encoding=ISO-8859-1? Both files are unchanged from the ant dist build. I am beginning to learn more about xml as I go, but not sure where to begin to troubleshoot. I've been building and installing TC for a while, but I usually have trouble building it. Once it's built, it has always worked right out of the gate. -k -Original Message- From: Hannu Kivimäki [mailto:[EMAIL PROTECTED]] Sent: Tuesday, October 08, 2002 8:05 AM To: Tomcat Users List Subject: Re: Start up fails - TC 4.1.12/JDK 1.4/ Solaris 9 At 06:44 8.10.2002 -0500, Shortt, Kevin wrote: I am reposting... Anyone have any ideas for me? I need someone to throw me a bone... There's something wrong in your server.xml or web.xml. Make sure both files are well formed and start with XML declaration: ?xml version=1.0 Hannu Kivimaki -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: tomcat 4.1.12 with apache1.3.26 and mod_jk integration error .
Take a look at the docs for the ApacheConfig Listener...there are parameters there to stop things like appending to mod_jk.conf, which might be what is happening. In other words, shut everything down, wait a bit, delete mod_jk.conf, then start up Tomcat and see if the mod_jk.conf file is correct (make sure permissions on mod_jk.conf file are correct, too...the user Tomcat is running as should have write/delete access to that file). It's possible that you just keep using the same mod_jk.conf file, a new one may not be getting written everytime Tomcat starts. For the 8080 message, make sure you have a HTTP connector on 8080 enabled in server.xml. Take a second and go back through my HOWTO (not the connector build steps). There are only 4 or 5 specific changes to make to httpd.conf and server.xml to get Apache working with Tomcat...and none of those changes are major. John -Original Message- From: Lambert, Stephen : CO IR [mailto:[EMAIL PROTECTED]] Sent: Monday, October 07, 2002 7:31 PM To: 'Tomcat Users List' Subject: RE: tomcat 4.1.12 with apache1.3.26 and mod_jk integration error . Changes below completed. Apache now starts with no warning! However, result of http://localhost:8080/examples is unable to locate server localhost:8080 And result of http://localhost/examples finds the jsp examples with a URL of http://w121c20.legacyhs/examples/ What's bizarre is that the mod_jk.conf file is once again populated with a second VirtualHost directive after starting Tomcat. So if I stop/start Tomcat/Apache the VirtualHost warning message re-appears. Stephen. -Original Message- From: Turner, John [mailto:[EMAIL PROTECTED]] Sent: Monday, October 07, 2002 3:08 PM To: 'Tomcat Users List' Subject: RE: tomcat 4.1.12 with apache1.3.26 and mod_jk intergration error . In your server.xml, change the defaultHost parameter of your Engine element to localhost. You're getting that Apache error because you have two VirtualHost definitions for w121c20.legacyhs in mod_jk.conf. There should only be one. Also, change ServerName in httpd.conf to w121c20.legacyhs. Give that a try, and see what happens. John -Original Message- From: Lambert, Stephen : CO IR [mailto:[EMAIL PROTECTED]] Sent: Monday, October 07, 2002 5:58 PM To: 'Tomcat Users List' Subject: RE: tomcat 4.1.12 with apache1.3.26 and mod_jk intergration error . -Original Message- From: Turner, John [mailto:[EMAIL PROTECTED]] Sent: Monday, October 07, 2002 2:50 PM To: 'Tomcat Users List' Subject: RE: tomcat 4.1.12 with apache1.3.26 and mod_jk intergration error . Post your httpd.conf, and mod_jk.conf if your JK commands are not in httpd.conf. John -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Classpath and Aliases on Tomcat 4
tomcat does not use the classpath. your classes must go under /tomcat/common/lib or within your context. you can try soft links, but they are disabled in 4.1.x by default. for your static files, just create a directory under your context - then you can access it as a subdir in your url. you also need to rename your .zip files that contatin classes to .jar Charlie -Original Message- From: Matthew Smith [mailto:[EMAIL PROTECTED]] Sent: Tuesday, October 08, 2002 2:23 AM To: Tomcat Users List (E-mail) Subject: Classpath and Aliases on Tomcat 4 G'Day, I hope I'm not about to rehash an old subject here. I couldn't find a satisfactory answer in the mail archives. I have a web-based application that is not designed as a webapp. It has a single servlet as its interface to the world. This servlet, and all of its supporting classes, are in a directory on the file system. Some of the classes are unpackaged, while most of them are in JAR or ZIP files. It also relies on another directory on the file system for images. I am trying to configure a webapp to use this application. I need to know how to do two things: Add elements to the classpath from elsewhere on the file system; and add a static directory to a web app (as in the Alias command in the Apache web server). Currently, I have created a seperate web app for the static files and just pointed its base directory at the images directory. I was hoping for a better way (other than to use IIS or Apache). The classpath issue is more difficult. I was able to accomplish this in Tomcat 3 by passing the -Dorg.apache.tomcat.apps.classpath=xxx system property in the tomcat.bat file. Tomcat 4 (Catalina) doesn't seem to know about this property. I tried adding the path directly to Tomcat's classpath, but it seems that in that case, the wrong class loader is used: I get a NoClassDefFoundError on HttpServlet. Any suggestions anyone? All help muchly appreciated. Thanks, Matt -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: jakarta slide question.
Found answer. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Forwarding in servlets.
Please remember that in both forward and send re-direct, execution of the current servlet will resume unless you put a return statement after the forward or re-direct statement. if (dispatcher!=null) { dispatcher.forward(request, response) ; return; } -Original Message- From: Kwok Peng Tuck [mailto:[EMAIL PROTECTED]] Sent: 08 October, 2002 12:42 AM To: [EMAIL PROTECTED] Subject: Forwarding in servlets. Is there any way besides the following : request.setAttribute(selectedScreen, request.getServletPath()) ; RequestDispatcher dispatcher = request.getRequestDispatcher(/test.jsp) ; if (dispatcher!=null) { dispatcher.forward(request, response) ; } to forward a request to a jsp page. Is it possible to use response.sendRedirect like in jsp ? Any suggestions will be great. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: DBMS access denied with Jakarta NT Service
Don't you think the name and version number of the DBMS would be of the least bit help in solving your issue? -Original Message- From: Cinzia S [mailto:[EMAIL PROTECTED]] Sent: 08 October, 2002 2:10 AM To: [EMAIL PROTECTED] Subject: DBMS access denied with Jakarta NT Service Hi all, I'm having database access denied when running Jakarta as an NT Service, while no db access problems when running as a standalone program. This is the spec: Jakarta-Tomcat 3.3.1, servicing servlets and jsp requested by IIS through isapi_redirect.dll, Windows 2000 Server. Thanks for any suggestion -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: NullPointerException
you're going to need to provide some source code or a stack trace. where is the class you are instantiated located? in your web-inf/classes, in common/lib, etc? 'all sorts of problems' is rather vague. If you provide more specifics, you are more likely to get help. Charlie -Original Message- From: Ben Monnahan [mailto:[EMAIL PROTECTED]] Sent: Tuesday, October 08, 2002 1:16 AM To: [EMAIL PROTECTED] Subject: NullPointerException Hi all, Does anyone have any ideas why I would get a NullPointerException when instanciating a class inside of a servlet when the class works fine when run as its own program? I am using Java 1.4.0_01 from Sun and Tomcat 4.1.10 with the invoker servlet disabled. On a separate but somewhat related note; I have been having all sorts of problems with servlets in Tomcat. Am I alone in this or is it just a complicated system? Thanks, Ben Monnahan -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Error using ajp13 protocol
Hi Raj (and thank you for your help yesterday)... I tried to connect using telenet to localhost 8009 and... there wasn't connection refused, but the connection wasn't accepted (showed the Escape character ... ), finally I killed the telnet process because no response was given. I think that the ajp13 connector (tomcat) is not running in the rigth way, because, seems that apache finds the worker (the worker name is ok): [Tue Oct 08 02:49:21 2002] [jk_worker.c (187)]: wc_create_worker, done [Tue Oct 08 02:49:21 2002] [jk_worker.c (238)]: build_worker_map, removing old local_pt1 worker [Tue Oct 08 02:49:21 2002] [jk_worker.c (250)]: build_worker_map, done [Tue Oct 08 02:49:21 2002] [jk_worker.c (111)]: wc_open, done 1 My workers.properties is: ps=/ worker.list=local_pt1 worker.local_pt1.port=8009 worker.local_pt1.host=localhost worker.local_pt1.type=ajp13 worker.local_pt1.lbfactor=1 My server.xml: !-- Define an AJP 1.3 Connector on port 8009 -- Connector className=org.apache.ajp.tomcat4.Ajp13Connector port=8009 minProcessors=5 maxProcessors=75 acceptCount=10 debug=0/ And, in catalina_log, seems that the connector starts all threads: 2002-10-08 02:35:06 Ajp13Connector[8009] Opening server socket on all host IP addresses 2002-10-08 02:35:06 Ajp13Connector[8009] Starting background thread 2002-10-08 02:35:06 Ajp13Processor[8009][0] Starting background thread 2002-10-08 02:35:06 Ajp13Processor[8009][1] Starting background thread 2002-10-08 02:35:06 Ajp13Processor[8009][2] Starting background thread 2002-10-08 02:35:06 Ajp13Processor[8009][3] Starting background thread 2002-10-08 02:35:06 Ajp13Processor[8009][4] Starting background thread Any ideas? Regards! Marc Raj Saini wrote: Hi Marc, Though I am not expert in the JK Connectors, But it is very clear that mod_jk part at apache is not able to connect to the tomcat process. There may be three reason for this:- 1. Your JK connector on tomcat is not listening on port 8009. 2. The host name of the worker in worker.properties and tomcat does not match. 3. Tomct is not running at all. Pleas double check your JK connector configuration in server.xml. Check the default host name in tomcat and worker.properties for the local_pt1 match. Try telneting to the host and port you have configured in worker.properties. Raj Marc Vila Pérez wrote: Hi! I'm trying to connect apache with tomcat, using jk (ajp13), in my mod_jk.log (debug log level), I can read this: [Tue Oct 08 02:49:20 2002] [jk_uri_worker_map.c (172)]: Into jk_uri_worker_map_t::uri_worker_map_alloc [Tue Oct 08 02:49:20 2002] [jk_uri_worker_map.c (375)]: Into jk_uri_worker_map_t::uri_worker_map_open [Tue Oct 08 02:49:20 2002] [jk_uri_worker_map.c (396)]: jk_uri_worker_map_t::uri_worker_map_open, rule map size is 1 [Tue Oct 08 02:49:20 2002] [jk_uri_worker_map.c (299)]: Into jk_uri_worker_map_t::uri_worker_map_open, suffix rule /.jsp=local_pt1 was added [Tue Oct 08 02:49:20 2002] [jk_uri_worker_map.c (408)]: Into jk_uri_worker_map_t::uri_worker_map_open, there are 1 rules [Tue Oct 08 02:49:20 2002] [jk_uri_worker_map.c (422)]: jk_uri_worker_map_t::uri_worker_map_open, done [Tue Oct 08 02:49:20 2002] [jk_worker.c (88)]: Into wc_open [Tue Oct 08 02:49:20 2002] [jk_worker.c (222)]: Into build_worker_map, creating 1 workers [Tue Oct 08 02:49:20 2002] [jk_worker.c (228)]: build_worker_map, creating worker local_pt1 [Tue Oct 08 02:49:20 2002] [jk_worker.c (148)]: Into wc_create_worker [Tue Oct 08 02:49:20 2002] [jk_worker.c (162)]: wc_create_worker, about to create instance local_pt1 of ajp13 [Tue Oct 08 02:49:20 2002] [jk_ajp13_worker.c (108)]: Into ajp13_worker_factory [Tue Oct 08 02:49:20 2002] [jk_worker.c (171)]: wc_create_worker, about to validate and init local_pt1 [Tue Oct 08 02:49:20 2002] [jk_ajp_common.c (1206)]: Into jk_worker_t::validate [Tue Oct 08 02:49:20 2002] [jk_ajp_common.c (1226)]: In jk_worker_t::validate for worker local_pt1 contact is localhost:8009 [Tue Oct 08 02:49:20 2002] [jk_ajp_common.c (1254)]: Into jk_worker_t::init [Tue Oct 08 02:49:20 2002] [jk_ajp_common.c (1274)]: In jk_worker_t::init, setting socket timeout to 0 [Tue Oct 08 02:49:20 2002] [jk_worker.c (187)]: wc_create_worker, done [Tue Oct 08 02:49:20 2002] [jk_worker.c (238)]: build_worker_map, removing old local_pt1 worker [Tue Oct 08 02:49:20 2002] [jk_worker.c (250)]: build_worker_map, done [Tue Oct 08 02:49:20 2002] [jk_worker.c (111)]: wc_open, done 1 [Tue Oct 08 02:49:21 2002] [jk_uri_worker_map.c (172)]: Into jk_uri_worker_map_t::uri_worker_map_alloc [Tue Oct 08 02:49:21 2002] [jk_uri_worker_map.c (375)]: Into jk_uri_worker_map_t::uri_worker_map_open [Tue Oct 08 02:49:21 2002] [jk_uri_worker_map.c (396)]: jk_uri_worker_map_t::uri_worker_map_open, rule
RE: Configuring Tomcat4.1 to use Apache2.0.43 win32, Doc's not clear
In addition to Jacob's concise post, I would add that if you can, re-install everything to places with NO spaces in the pathnames. Yes, the Apache installer puts things in a path with spaces, but the people who wrote the Apache installer were never concerned with what effect that would have on integrating other things with Apache. Based on my experience, and other posts on the lists, integrating Apache with Tomcat can be problematic if your pathnames have spaces. John -Original Message- From: Admin Dobsons.org [mailto:[EMAIL PROTECTED]] Sent: Monday, October 07, 2002 11:20 PM To: [EMAIL PROTECTED] Subject: Configuring Tomcat4.1 to use Apache2.0.43 win32, Doc's not clear I'm trying to configure Tomcat 4.1 to run under Apache 2.0.43 on Windows 2000 Advanced server I have succesfuly installed Apache 2.0.43 j2sdk-1_4_1-windows Tomcat 4.1 I'm having trouble connecting Tomcat and Apache. I've read all the documents and everytime I think I know were to go to edit a file or look for a auto created file its not there. I would like to use the Apache auto-configure or any other method that is easy so I can begin the learning process. What I've try so far: *Installed applications -Apache 2.0.43 -j2sdk-1_4_1-windows -Tomcat 4.1 *Edited httpd.conf Just addedInclude C:\Program Files\Apache Group\Tomcat 4.1/conf/jk/mod_jk.conf-auto *Copied mod_jk-2.0.42.dll Into C:\Program Files\Apache Group\Apache2\modules *Edit server.xml looked for AutoWebApp in C:\Program Files\Apache Group\Tomcat 4.1\conf\server.xml I could not find any line with AutoWebApp in it. So I just added ApacheConfig / just above the final /server Here is an exerpt from the manual To configure Tomcat to generate the Apache auto-configuration add the following block to your TOMCAT_HOME/conf/server.xml file after AutoWebApp ... /. ApacheConfig / This is were I get lost. Also I'm not sure I'm copying the dll into the right directory. All the other files in the module directory are of the .so extention so the mod_jk-2.0.42.dll is the only dll.The manual is also not specif were to put the dll. or at least the path is not refference the same as my instalation. Thanks in advance for any and all support You can reach me at [EMAIL PROTECTED] or the board. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: jakarta slide question.
Hi Bryan, better ask at Slide Users Mailing List slide- [EMAIL PROTECTED]. /files is specified in Domain.xml, see filespath/files/filespath. Files can be found in the folder specified in contentstore classname=slidestore.reference.FileContentStore parameter name=rootpathc:\contentstore/parameter ... If you don't put c:\ in front of it contentstore will be created in the directory, where you started Tomcat from, probably tomcathome/bin. Take notice of the comments in Domain.xml and web.xml. Default memory store won't be persistent. Hope that helps. Andreas On 8 Oct 2002 at 14:21, bryan wrote: I've got slide setup under Tomcat and I'm accessing it using a webfolder. When I access the webfolder I find a sub-folder called files, I suppose this is from settings either in my Domain.xml or my web.xml, can anyone give me the location in my domain.xml or web.xml that refers to this sub-folder, and also can anyone tell me where the actual location of files under the files sub-folder would be found? -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: How to specify the location of a properties file.
Hi Mehdi, I have my properties file in /WEB-INF. Eclipse doesn't delete it there. I access it with InputStream propsIn = servletContext.getResourceAsStream(/WEB- INF/dms.properties); props.load(propsIn); As far as I know this also works when the web-app ist deployed as a war without expansion. Hope that helps. Andreas On 8 Oct 2002 at 12:48, [EMAIL PROTECTED] wrote: I use the getResourceAsStram() method also, but i find that my IDE, tends to remove the properties file from my classpath, as soon as I do a build, which is not nice. In the particular case i have now, I don't want to specify the parameters in my web.xml, because the utility that requires a properties file, is not actually a web-app, rather a bunch of utility classes used by my webapp. Im not keen to implement a setProperties() method, as this would mean changing stuff, so im just re-copying the properties into my classes folder after each build.. (unless someone can tell me how to tell WSAD to stop deleting my properties file... but .. *ahem* thats not a Tomcat question :) Cheers, Mehdi Justin Ruthenbeck justinr@nextengiTo: Tomcat Users List [EMAIL PROTECTED] ne.com cc: Subject: Re: How to specify the location of a properties file. 07/10/2002 22:20 Please respond to Tomcat Users List Niaz ... The idea is to load the properties file like you would any other java resource at runtime ... this is (almost) always better, IMHO, than using something J2EE-specific like initialization parameters to a servlet. The relevant code would look something like this: InputStream inStream = this.getClass().getResourceAsStream(/my.props); Properties props = new Properties(inStream); or Properties prop = new Properties(); prop.load(this.getClass().getResourceAsStream(/MyProperties.properties)); There was a thread some time ago that went over this. You can see the details at: http://www.mail-archive.com/tomcat-user@jakarta.apache.org/msg63518.html Hope this helps... justin At 01:40 PM 10/7/2002, you wrote: Justin, I am facing the same problem. Your approach seems to be an elegent one. Would you mind eleborating on the idea a little bit more. Some code snippet would definitely be helpful. I thank you in advance. niaz. - Original Message - From: Justin Ruthenbeck [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Monday, October 07, 2002 4:06 PM Subject: Re: How to specify the location of a properties file. Shaun -- Consider dynamically loading the properties file from your classpath using a class loader. This way, you can put the files anywhere you please and just include that directory in your classpath (or put them someplace already in your classpath). If you need more specifics, let me know and I'd be happy to help... justin At 01:00 PM 10/7/2002, you wrote: I've got a servlet running under Tomcat and I need to read in the contents of a properties file. There will be different properties files for each system specified using an init parameter. I'm having problems reading this property file at the moment in my java class as the way I am doing it at the moment always looks where I started Tomcat from i.e the /bin directory. I can specify a full path to the file but this is not very system independent and limits me to either Windows or Unix. What I need is to specify the location of the file relative to the webapp directory. I have tried the url class but it doesn't seem to work, or maybe it is working but looking in a different place to where my properties file is. Can anyone suggest what I am doing wrong or provide any help on
RE: Tomcat vs Websphere sendRedirect
Hi, It's WebSphere that's broken here, not Tomcat. You've just been taking advantage of that prepending, which is not supposed to happen. sendRedirect() is supposed to be resolved relative to the web server root if you give it something that starts with a /. Yoav Shapira Millennium ChemInformatics -Original Message- From: Jared Reeve [mailto:[EMAIL PROTECTED]] Sent: Monday, October 07, 2002 5:57 PM To: [EMAIL PROTECTED] Subject: Tomcat vs Websphere sendRedirect In WebSphere I do a sendRedirect(/servlet/MyServlet) within a servlet and it works successfully. It prepends the host and root URI. Why can't I do the same thing in Tomcat? It does not prepend the root URI. Do I not have something configured correctly? I would like to port this application without changing any code. Thanks. function SetDomain(d) { document.domain = d; } - Do you Yahoo!? Faith Hill - Exclusive Performances, Videos, more faith.yahoo.com 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: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: AW: AW: AW: Forwarding in servlets.
u can also use response.sendRedirect( url); regards Sonam --- Kwok Peng Tuck [EMAIL PROTECTED] wrote: Ok thanks. Ralph Einfeldt wrote: That's what the spec says. (It works for me in tc 4.0.3) -Ursprüngliche Nachricht- Von: Kwok Peng Tuck [mailto:[EMAIL PROTECTED]] Gesendet: Dienstag, 8. Oktober 2002 09:13 An: Tomcat Users List Betreff: Re: AW: AW: Forwarding in servlets. So I just do this ? RequestDispatcher dispatcher = request.getRequestDispatcher(/test.jsp?blah=bleh) ; if (dispatcher!=null) { dispatcher.forward(request, response) ; } -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] __ Do you Yahoo!? Faith Hill - Exclusive Performances, Videos More http://faith.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: One Context - two diffenrnt URLs
--- Bala [EMAIL PROTECTED] wrote: I am Balu, working as a software engineer, I am having a problem in tomcat - apache configuration. If time permits , please help me. Here is the problem(UNIX). one context named GREAT is in TOMCAT 3.2.3. Apache 1.3.9 should service urls of two types. The URL types are 1) http://www.foo.com/servlet/MyServlet 2) http://www.foo.com/defservlet/YourServlet u can acces u'r servlet using the http://www.foo.com/great/servlet/Myservlet or http://www.foo.com/GREAT/servlet/Myservlet u 'r context name should be in small not in upper case regards Sonam I am having all servlet classes file in the dir webapps/GREAT/WEB-INF/classes My web.xml file looks like bellow. servlet servlet-nameMyServlet/servlet-name servlet-classMyServlet/servlet-class /servlet servlet servlet-nameYourServlett/servlet-name servlet-classYourServlet/servlet-class /servlet servlet-mapping servlet-nameMyServlet/servlet-name url-patternMyServlet/url-pattern /servlet-mapping servlet-mapping servlet-nameYourServlet/servlet-name url-pattern/defservlet/YourServlet/url-pattern /servlet-mapping My server.xml file part lokes like Context path=What I have to put docBase=webapps/GREAT crossContext=false debug=0 reloadable=false /Context -- [ I placed two context named servlet and defservlet in server.xml. But one Httpsession created in defservlet context not visible in servlet context.] Please let me know What are all the changes have to make in server.xml file, tomcat.conf file and tomcat-apache.conf file? Expecting your reply Balachandar = One important key to success is self-confidence. An important key to self-confidence is preparation __ Do you Yahoo!? Faith Hill - Exclusive Performances, Videos More http://faith.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] __ Do you Yahoo!? Faith Hill - Exclusive Performances, Videos More http://faith.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
tomcat 4.0.1 X Connection
Hi I an having tomcat 4.0.1 running in Redhat 7.2 with apache 1.3.22(Mod_JK) and AS400 as database(DB2 400) server. The static pages are served by apache properly, but when it comes to servlets and database connection i am getting the following error: X connection to BPLA_TEST:10.0 broken (explicit kill or server shutdown). and the tomcat is shutting down automatically. Pls. help me in this regards. Thanks Regards Perumal. __ The NEW Netscape 7.0 browser is now available. Upgrade now! http://channels.netscape.com/ns/browsers/download.jsp Get your own FREE, personal Netscape Mail account today at http://webmail.netscape.com/ -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Error using ajp13 protocol
Hi, According to you, every thing is fine(i.e ajp13 is working fine and listeneing on 8009), can you just verify your mod_jk.conf and check if you are using hostname as localhost and verify in server.xml if you use same name for host and engine (localhost) if you use same name then how do you configure your context and appbase? if you send me details i may help you -Original Message- From: Marc [mailto:[EMAIL PROTECTED]] Sent: Tue 10/8/2002 8:56 AM To: Tomcat Users List Cc: Subject:Re: Error using ajp13 protocol Hi Raj (and thank you for your help yesterday)... I tried to connect using telenet to localhost 8009 and... there wasn't connection refused, but the connection wasn't accepted (showed the Escape character ... ), finally I killed the telnet process because no response was given. I think that the ajp13 connector (tomcat) is not running in the rigth way, because, seems that apache finds the worker (the worker name is ok): [Tue Oct 08 02:49:21 2002] [jk_worker.c (187)]: wc_create_worker, done [Tue Oct 08 02:49:21 2002] [jk_worker.c (238)]: build_worker_map, removing old local_pt1 worker [Tue Oct 08 02:49:21 2002] [jk_worker.c (250)]: build_worker_map, done [Tue Oct 08 02:49:21 2002] [jk_worker.c (111)]: wc_open, done 1 My workers.properties is: ps=/ worker.list=local_pt1 worker.local_pt1.port=8009 worker.local_pt1.host=localhost worker.local_pt1.type=ajp13 worker.local_pt1.lbfactor=1 My server.xml: !-- Define an AJP 1.3 Connector on port 8009 -- Connector className=org.apache.ajp.tomcat4.Ajp13Connector port=8009 minProcessors=5 maxProcessors=75 acceptCount=10 debug=0/ And, in catalina_log, seems that the connector starts all threads: 2002-10-08 02:35:06 Ajp13Connector[8009] Opening server socket on all host IP addresses 2002-10-08 02:35:06 Ajp13Connector[8009] Starting background thread 2002-10-08 02:35:06 Ajp13Processor[8009][0] Starting background thread 2002-10-08 02:35:06 Ajp13Processor[8009][1] Starting background thread 2002-10-08 02:35:06 Ajp13Processor[8009][2] Starting background thread 2002-10-08 02:35:06 Ajp13Processor[8009][3] Starting background thread 2002-10-08 02:35:06 Ajp13Processor[8009][4] Starting background thread Any ideas? Regards! Marc Raj Saini wrote: Hi Marc, Though I am not expert in the JK Connectors, But it is very clear that mod_jk part at apache is not able to connect to the tomcat process. There may be three reason for this:- 1. Your JK connector on tomcat is not listening on port 8009. 2. The host name of the worker in worker.properties and tomcat does not match. 3. Tomct is not running at all. Pleas double check your JK connector configuration in server.xml. Check the default host name in tomcat and worker.properties for the local_pt1 match. Try telneting to the host and port you have configured in worker.properties. Raj Marc Vila Pérez wrote: Hi! I'm trying to connect apache with tomcat, using jk (ajp13), in my mod_jk.log (debug log level), I can read this: [Tue Oct 08 02:49:20 2002] [jk_uri_worker_map.c (172)]: Into jk_uri_worker_map_t::uri_worker_map_alloc [Tue Oct 08 02:49:20 2002] [jk_uri_worker_map.c (375)]: Into jk_uri_worker_map_t::uri_worker_map_open [Tue Oct 08 02:49:20 2002] [jk_uri_worker_map.c (396)]: jk_uri_worker_map_t::uri_worker_map_open, rule map size is 1 [Tue Oct 08 02:49:20 2002] [jk_uri_worker_map.c (299)]: Into jk_uri_worker_map_t::uri_worker_map_open, suffix rule /.jsp=local_pt1 was added [Tue Oct 08 02:49:20 2002] [jk_uri_worker_map.c (408)]: Into jk_uri_worker_map_t::uri_worker_map_open, there are 1 rules [Tue Oct 08 02:49:20 2002] [jk_uri_worker_map.c (422)]: jk_uri_worker_map_t::uri_worker_map_open, done [Tue Oct 08 02:49:20 2002] [jk_worker.c (88)]: Into wc_open [Tue Oct 08 02:49:20 2002] [jk_worker.c (222)]: Into build_worker_map, creating 1 workers [Tue Oct 08 02:49:20 2002] [jk_worker.c (228)]: build_worker_map, creating worker local_pt1 [Tue Oct 08 02:49:20 2002] [jk_worker.c (148)]: Into wc_create_worker [Tue Oct 08 02:49:20 2002] [jk_worker.c (162)]: wc_create_worker, about to create instance local_pt1 of ajp13 [Tue Oct 08 02:49:20 2002] [jk_ajp13_worker.c (108)]: Into ajp13_worker_factory [Tue Oct 08 02:49:20 2002] [jk_worker.c (171)]: wc_create_worker, about to validate and init local_pt1 [Tue Oct 08 02:49:20 2002] [jk_ajp_common.c (1206)]: Into jk_worker_t::validate [Tue Oct 08 02:49:20 2002] [jk_ajp_common.c (1226)]: In jk_worker_t::validate for worker local_pt1 contact is localhost:8009 [Tue Oct 08 02:49:20 2002] [jk_ajp_common.c (1254)]: Into jk_worker_t::init [Tue Oct 08 02:49:20 2002] [jk_ajp_common.c (1274)]: In jk_worker_t::init, setting socket timeout to 0 [Tue Oct 08 02:49:20 2002] [jk_worker.c (187)]: wc_create_worker, done [Tue
Tomcat 4.1.12 expiring pages?
I'm working on an upgrade of our order management webapp and I've run into an odd situation. I have a page that is generated as the results of a form post on the previous page. If a user selects one of the linetiems on the results page, views that page and then clicks back, IE informs the user that the page has expired and for security reasons it has not reposted the form data. This behavior was not seen with Tomcat 3.3 but has appeared with 4.1. I've tried modifying all of the security settings in IE with no sucess. Is there a setting in Tomcat 4.1 that now, by default, expires data-driven pages? Can anyone shed some light on this? Thanks! -- Jason McCormick Network/Systems Administrator Lexi-Comp, Inc. Phone: 330-650-6506 x239 Fax: 330-656-4307 Email: [EMAIL PROTECTED] Public Key: http://bamboo.lexi.com/~jmccormick/public-keys.php -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Tomcat/IIS SSL
Hello, I don't have any experience using SSL, but I have been reading up on it on the web. On the Apache website for Tomcat, it says that if you are using tomcat with another server (I'm using IIS) you should implement SSL in IIS rather than tomcat. I went on the Microsoft site to read up on implementing it on IIS and I couldn't find a simple way to implement a self-signed certificate. Does anyone know of a simple way to implement this? Is it possible to use the java keytool to generate the key and use it in IIS? How would IIS locate this key after it has been created? Fawaz -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
JDBCRealm Question
Hi I am getting strange error when I try to use JDCRealm. I running Tomcat 4 from within Forte. The error is Catalina.start: LifecycleException: Exception opening database connection: java.sql.SQLException: org.gjt.mm.mysql.Driver LifecycleException: Exception opening database connection: java.sql.SQLException: org.gjt.mm.mysql.Driver at org.apache.catalina.realm.JDBCRealm.start(JDBCRealm.java:615) I'm sure that my JDBCrealm is configured correctly. Here is the relevant section of the server.xml Realm className=org.apache.catalina.realm.JDBCRealm debug=99 driverName=org.gjt.mm.mysql.Driver connectionURL=jdbc:mysql://localhost:3306/diamond?user=alan;password=xxx; userTable=users userNameCol=user_name userCredCol=user_pass userRoleTable=user_roles roleNameCol=role_name/ Any help would be gratefully appreciated. Alan Halley
Re: DBMS access denied with Jakarta NT Service
just through a System DSN. The java application uses jdbc:odbc bridge. Nothing specific in server.xml or web.xm Thanks - Original Message - From: CLAIRE Celine [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Tuesday, October 08, 2002 9:09 AM Subject: RE: DBMS access denied with Jakarta NT Service excuse me but I would like to know how do you do to access a database with tomcat 3.3.1 server.xml? web.xml? lookup? Can you give me a complete exemple? thanks for your help -Message d'origine- De: Cinzia S [SMTP:[EMAIL PROTECTED]] Date: mardi 8 octobre 2002 10:10 À: [EMAIL PROTECTED] Objet: DBMS access denied with Jakarta NT Service Hi all, I'm having database access denied when running Jakarta as an NT Service, while no db access problems when running as a standalone program. This is the spec: Jakarta-Tomcat 3.3.1, servicing servlets and jsp requested by IIS through isapi_redirect.dll, Windows 2000 Server. Thanks for any suggestion -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Tomcat won't work with jdk 1.4.0
Raj Saini wrote: I am not using JK2. I am using Jk. btw, why do you need the jk2.properties file. Your problem is some where else. jk2.properties is used by the apache not by the tomcat (If I am not wrong). jk2.properties is used by tomcat, workers2.properties is used by Apache. From your exception is seems that you dont have common-logging.jar file in your $TOMCAT_HOME/common/lib directory. It supposed to be part of the distribution. If the the file is there, then it is not inculded in your classpath. This also should be done automatically, if you have not modified any thing. $Tomcat_home/common/lib contains the following activation.jar jasper-compiler.jar naming-common.jar ant.jar jasper-runtime.jar naming-factory.jar commons-collections.jar jdbc2_0-stdext.jar naming-resources.jar commons-dbcp.jar jndi.jar servlet.jar commons-logging-api.jar jta.jar commons-pool.jar mail.jar $Tomcat_home/server/lib contains the following catalina-ant.jar mx4j-jmx.jar servlets-webdav.jar catalina.jar mx4j.license tomcat-coyote.jar commons-beanutils.jar servlets-cgi.renametojar tomcat-http11.jar commons-digester.jar servlets-common.jar tomcat-jk.jar commons-logging.jar servlets-default.jar tomcat-jk2.jar commons-modeler.jar servlets-invoker.jar tomcat-util.jar jaas.jar servlets-manager.jar tomcat-warp.jar jakarta-regexp-1.2.jarservlets-ssi.renametojar Since this is *the* server attempting to start, I thought it would reference server/lib before searching for classes in common/lib BTW: this is straight out of the gzip'd tarball. Raj Brzezinski, Paul J wrote: Raj Saini wrote: Hi, There should not be problem running tomcat on Solaris 8. I am running Tomcat 4.1.12 with JDK 1.4 on Solaris without any problem. I have just switched from Tomcat 4.0.3 to 4.1.12. Could you share your jk2.properties then? I'm running on Solaris 8 (SPARC) using JDK 1.4 and Tomcat 4.1.12 (tried Tomcat 4.1.12-LE-jdk14 too) and trying to use the AF_UNIX socket (which apparently requires apr) with no success. I get the following error: Oct 8, 2002 4:29:55 AM org.apache.commons.modeler.Registry loadRegistry INFO: Loading registry information Oct 8, 2002 4:29:55 AM org.apache.commons.modeler.Registry getRegistry INFO: Creating new Registry instance Oct 8, 2002 4:29:56 AM org.apache.commons.modeler.Registry getServer INFO: Creating MBeanServer Oct 8, 2002 4:29:58 AM org.apache.coyote.http11.Http11Protocol init INFO: Initializing Coyote HTTP/1.1 on port 8080 Starting service Tomcat-Standalone Apache Tomcat/4.1.12 Oct 8, 2002 4:30:11 AM org.apache.coyote.http11.Http11Protocol start INFO: Starting Coyote HTTP/1.1 on port 8080 Oct 8, 2002 4:30:11 AM org.apache.jk.server.JkMain newHandler SEVERE: Can't create apr java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory at org.apache.jk.apr.AprImpl.clinit(AprImpl.java:340) I have a tiny jsp that displays the System.getProperty( java.class.path ): * CLASSPATH: /em/opt/j2sdk1.4.0_02/lib/tools.jar:/em/opt/j2sdk1.4.0_02/jre/lib/jsse.jar:/em/opt/jakarta-tomcat-4.1.12/bin/bootstrap.jar Help, advice appreciated. Thanks in advance, Paul Your problem is the log4j.jar is missing from you your libs. Your application (or some of the lib) is using log4j libraby for logging. Copy the log4j.jar in your $TOMCAT_HOME/common/lib and it should work fine. Raj Chuck Carson wrote: I am running the binary distribution of tomcat 4.0.5 on Solaris 8. It works with jdk1.3.1_05, but I am trying to get it running with jdk1.4.0_02 and I get the following exception in catalina.out: Exception during startup processing java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav a:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor Impl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243) Caused by: java.lang.NoClassDefFoundError: org/apache/log4j/Category at org.opennms.web.authenticate.Authentication.clinit(Authentication.java :39) at org.opennms.web.authenticate.OpenNMSTomcatRealm.init(OpenNMSTomcatReal m.java:125) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorA ccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingCons tructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:274) at
Does anyone know why I am getting these mod_jk error messages or what they mean????
We are using Tomcat 4.1, Sun JDK 1.4, Linux 7.2 and Apache 1.3. [Thu Sep 26 18:13:26 2002] [jk_ajp13_worker.c (845)]: In jk_endpoint_t::service, get_reply failed in send loop 1 [Thu Sep 26 18:13:26 2002] [jk_ajp13_worker.c (845)]: In jk_endpoint_t::service, get_reply failed in send loop 1 [Thu Sep 26 18:13:46 2002] [jk_ajp13_worker.c (228)]: connection_tcp_get_message: Error - jk_tcp_socket_recvfull failed [Thu Sep 26 18:13:46 2002] [jk_ajp13_worker.c (712)]: Error reading reply [Thu Sep 26 18:13:46 2002] [jk_ajp13_worker.c (845)]: In jk_endpoint_t::service, get_reply failed in send loop 0 [Thu Sep 26 18:13:48 2002] [jk_ajp13_worker.c (228)]: connection_tcp_get_message: Error - jk_tcp_socket_recvfull failed [Thu Sep 26 18:13:48 2002] [jk_ajp13_worker.c (712)]: Error reading reply [Thu Sep 26 18:13:48 2002] [jk_ajp13_worker.c (845)]: In jk_endpoint_t::service, get_reply failed in send loop 2 [Thu Sep 26 18:13:51 2002] [jk_ajp13_worker.c (228)]: connection_tcp_get_message: Error - jk_tcp_socket_recvfull failed [Thu Sep 26 18:13:51 2002] [jk_ajp13_worker.c (712)]: Error reading reply [Thu Sep 26 18:13:51 2002] [jk_ajp13_worker.c (845)]: In jk_endpoint_t::service, get_reply failed in send loop 0 [Thu Sep 26 18:13:53 2002] [jk_ajp13_worker.c (228)]: connection_tcp_get_message: Error - jk_tcp_socket_recvfull failed [Thu Sep 26 18:13:53 2002] [jk_ajp13_worker.c (712)]: Error reading reply [Thu Sep 26 18:13:53 2002] [jk_ajp13_worker.c (845)]: In jk_endpoint_t::service, get_reply failed in send loop 2 [Thu Sep 26 18:13:57 2002] [jk_ajp13_worker.c (228)]: connection_tcp_get_message: Error - jk_tcp_socket_recvfull failed -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
To capture the CLICK event of SUBMIT button
Hello Everybody, I have been trying to accomplish two jobs simultaneously. First on the CLICK of my ANCHOR tag I want to assign some value to the HIDDEN input tag and simultaneously carry this value to the page linked to HREF element of this ANCHOR tag. Till this point of time its a two CLICK process(Using JAVASCRIPT FUNCTION): 1) I CLICK on my HREF element and it assigns some value to the HIDDEN input tag. 2) Then I CLICK on the SUBMIT button and it carries the value assigned to the HIDDEN input tag to the page linked to the HREF element of the ANCHOR tag. Can i make this a single CLICK process by capturing CLICK event of the SUBMIT button on the onClick event of my ANCHOR tag. Can I make this single step process. Thanks in advance, With regards, Vikas nagpal. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: JDBCRealm Question
Hi Alan, Try using connectionName and connectionPassword rather than passing that info in the URL. Tomcat is probably sticking a user= and password= onto the end of your url resulting in: jdbc:mysql://localhost:3306/diamond?user=alan;password=xxx?user=;passw ord= which blows up when it tries to get a connection. The realm tag should look like: Realm className=org.apache.catalina.realm.JDBCRealm debug=99 driverName=org.gjt.mm.mysql.Driver connectionURL=jdbc:mysql://localhost:3306/diamond connectionName=alan connectionPassword=xxx userTable=users userNameCol=user_name userCredCol=user_pass userRoleTable=user_roles roleNameCol=role_name/ Hope that helps, Rick - Original Message - From: Alan Halley [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, October 08, 2002 9:55 AM Subject: JDBCRealm Question Hi I am getting strange error when I try to use JDCRealm. I running Tomcat 4 from within Forte. The error is Catalina.start: LifecycleException: Exception opening database connection: java.sql.SQLException: org.gjt.mm.mysql.Driver LifecycleException: Exception opening database connection: java.sql.SQLException: org.gjt.mm.mysql.Driver at org.apache.catalina.realm.JDBCRealm.start(JDBCRealm.java:615) I'm sure that my JDBCrealm is configured correctly. Here is the relevant section of the server.xml Realm className=org.apache.catalina.realm.JDBCRealm debug=99 driverName=org.gjt.mm.mysql.Driver connectionURL=jdbc:mysql://localhost:3306/diamond?user=alan;password=xx x; userTable=users userNameCol=user_name userCredCol=user_pass userRoleTable=user_roles roleNameCol=role_name/ Any help would be gratefully appreciated. Alan Halley -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: org.xml.sax.SAXException
Tomcat 3.3.1 doesn't include parser.jar. You should find crimson.jar and xalan.jar in lib/container. You may place your jars there, removing crimson.jar, and everything should work. Your xalan.jar and xerces.jar will be automatically made available to web applications by default, thanks to the LoaderInterceptor11. For details, see: http://jakarta.apache.org/tomcat/tomcat-3.3-doc/serverxml.html#LoaderInterceptor11 Is there a specific reason you have to have them on your classpath? Note: The above assumes you are not using J2SE 1.4 which supplies a XML parser and transformer as part of the runtime. These will override the ones Tomcat 3.3.1 tries to provide. Cheers, Larry -Original Message- From: Chandra Sekhar [mailto:[EMAIL PROTECTED]] Sent: Tuesday, October 08, 2002 2:40 AM To: [EMAIL PROTECTED] Subject: org.xml.sax.SAXException I'm getting the following error using jakarta-tomcat-3.3.1 org.xml.sax.SAXException: System property org.xml.sax.driver not specified I'm using xalan.jar and xerces.jar in my classpath and also I've removed parser.jar from the lib. Any clue? - Chandra - Do you Yahoo!? Faith Hill - Exclusive Performances, Videos, more faith.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
[OFF TOPIC] RE: To capture the CLICK event of SUBMIT button
This is a Javascript question, not a Tomcat question. The answer is Yes. Further info can be found with Google or a Javascript list. John -Original Message- From: Nagpal, Vikas [mailto:[EMAIL PROTECTED]] Sent: Tuesday, October 08, 2002 10:30 AM To: '[EMAIL PROTECTED]' Subject: To capture the CLICK event of SUBMIT button Hello Everybody, I have been trying to accomplish two jobs simultaneously. First on the CLICK of my ANCHOR tag I want to assign some value to the HIDDEN input tag and simultaneously carry this value to the page linked to HREF element of this ANCHOR tag. Till this point of time its a two CLICK process(Using JAVASCRIPT FUNCTION): 1) I CLICK on my HREF element and it assigns some value to the HIDDEN input tag. 2) Then I CLICK on the SUBMIT button and it carries the value assigned to the HIDDEN input tag to the page linked to the HREF element of the ANCHOR tag. Can i make this a single CLICK process by capturing CLICK event of the SUBMIT button on the onClick event of my ANCHOR tag. Can I make this single step process. Thanks in advance, With regards, Vikas nagpal. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: To capture the CLICK event of SUBMIT button
I'm not seeing how this relates to tomcat... there are plenty of good javascript resources on the net. -Original Message- From: Nagpal, Vikas [mailto:[EMAIL PROTECTED]] Sent: Tuesday, October 08, 2002 10:30 AM To: '[EMAIL PROTECTED]' Subject: To capture the CLICK event of SUBMIT button Hello Everybody, I have been trying to accomplish two jobs simultaneously. First on the CLICK of my ANCHOR tag I want to assign some value to the HIDDEN input tag and simultaneously carry this value to the page linked to HREF element of this ANCHOR tag. Till this point of time its a two CLICK process(Using JAVASCRIPT FUNCTION): 1) I CLICK on my HREF element and it assigns some value to the HIDDEN input tag. 2) Then I CLICK on the SUBMIT button and it carries the value assigned to the HIDDEN input tag to the page linked to the HREF element of the ANCHOR tag. Can i make this a single CLICK process by capturing CLICK event of the SUBMIT button on the onClick event of my ANCHOR tag. Can I make this single step process. Thanks in advance, With regards, Vikas nagpal. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: How to specify the location of a properties file.
Hi, There was no ServletContext.getResourceAsStream () ... maybe this is because the whole project is a bunch of utilities for my web-app, and is not a webapp itself ? The class that needs the properties file, is not part of the webapp. So anyway, i tried the closest available method.. (or so i thought); p.load( javax.servlet.ServletContext.class.getResourceAsStream( /WEB-INF/myprops.properties) ); which also did not work. Cheers, Mehdi Mehdi Nejad - Senior Developer [EMAIL PROTECTED] ~~ Bluewave Ltd - Online Creations http://www.bluewave.com Tel. +44 (0)20 7479 8394 ~~ Andreas Probst [EMAIL PROTECTED]To: Tomcat Users List [EMAIL PROTECTED] cc: Subject: Re: How to specify the location of a properties file. 08/10/2002 13:57 Please respond to Tomcat Users List Hi Mehdi, I have my properties file in /WEB-INF. Eclipse doesn't delete it there. I access it with InputStream propsIn = servletContext.getResourceAsStream(/WEB- INF/dms.properties); props.load(propsIn); As far as I know this also works when the web-app ist deployed as a war without expansion. Hope that helps. Andreas On 8 Oct 2002 at 12:48, [EMAIL PROTECTED] wrote: I use the getResourceAsStram() method also, but i find that my IDE, tends to remove the properties file from my classpath, as soon as I do a build, which is not nice. In the particular case i have now, I don't want to specify the parameters in my web.xml, because the utility that requires a properties file, is not actually a web-app, rather a bunch of utility classes used by my webapp. Im not keen to implement a setProperties() method, as this would mean changing stuff, so im just re-copying the properties into my classes folder after each build.. (unless someone can tell me how to tell WSAD to stop deleting my properties file... but .. *ahem* thats not a Tomcat question :) Cheers, Mehdi Justin Ruthenbeck justinr@nextengiTo: Tomcat Users List [EMAIL PROTECTED] ne.com cc: Subject: Re: How to specify the location of a properties file. 07/10/2002 22:20 Please respond to Tomcat Users List Niaz ... The idea is to load the properties file like you would any other java resource at runtime ... this is (almost) always better, IMHO, than using something J2EE-specific like initialization parameters to a servlet. The relevant code would look something like this: InputStream inStream = this.getClass().getResourceAsStream(/my.props); Properties props = new Properties(inStream); or Properties prop = new Properties(); prop.load(this.getClass().getResourceAsStream (/MyProperties.properties)); There was a thread some time ago that went over this. You can see the details at: http://www.mail-archive.com/tomcat-user@jakarta.apache.org/msg63518.html Hope this helps... justin At 01:40 PM 10/7/2002, you wrote: Justin, I am facing the same problem. Your approach seems to be an elegent one. Would you mind eleborating on the idea a little bit more. Some code snippet would definitely be helpful. I thank you in advance. niaz. - Original Message - From: Justin Ruthenbeck [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Monday, October 07, 2002 4:06 PM Subject: Re: How to specify the location of a properties file. Shaun -- Consider dynamically loading the properties file from your classpath using a class loader. This way, you can put the files anywhere you please and just
[OFF TOPIC] RE: To capture the CLICK event of SUBMIT button
It would certainly be easier to answer this question with a sample of your code, but I will run through some basic javascript techniques you may be able to use. You can make an HREF submit a form: script function doSubmit() { document.forms[0].hiddenField.value = 'test!' document.forms[0].submit() return true } /script form action=nextpage.jsp a href=javascript:doSubmit()Click here to set value and submit form/a input type=hidden name=hiddenField /form When you click on the link on this snippet of code, it will call doSubmit() which sets the value of the hidden field, and then submits the form to nextpage.jsp. Hopefully this will give you some ideas. Some good resources: http://www.faqts.com/knowledge_base/index.phtml/fid/53 http://javascript.internet.com/ Ian. -Original Message- From: Nagpal, Vikas [mailto:[EMAIL PROTECTED]] Sent: Tuesday, October 08, 2002 10:30 AM To: '[EMAIL PROTECTED]' Subject: To capture the CLICK event of SUBMIT button Hello Everybody, I have been trying to accomplish two jobs simultaneously. First on the CLICK of my ANCHOR tag I want to assign some value to the HIDDEN input tag and simultaneously carry this value to the page linked to HREF element of this ANCHOR tag. Till this point of time its a two CLICK process(Using JAVASCRIPT FUNCTION): 1) I CLICK on my HREF element and it assigns some value to the HIDDEN input tag. 2) Then I CLICK on the SUBMIT button and it carries the value assigned to the HIDDEN input tag to the page linked to the HREF element of the ANCHOR tag. Can i make this a single CLICK process by capturing CLICK event of the SUBMIT button on the onClick event of my ANCHOR tag. Can I make this single step process. Thanks in advance, With regards, Vikas nagpal. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
bug when reloading classes ?
Hi, I use Tomcat 4.1.12 and Cocoon 2.1-dev, jdk 1.3.1, Windows NT4. My webapp has reloadable=true attribute, and custom path in catalina.bat that includes 2 dlls used by java native methods and that I put in Tomcat's bin. So my Tomcat's path is : set PATH=c:\%JAVA_HOME%\bin;%CATALINA_HOME%\bin If I recompile a java class, Tomcat reloads it and my webapp's ability to call the dlls disappears (blank string returned). Strange. Babs -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: To capture the CLICK event of SUBMIT button
change your HREF to call a function that assigns a value to your hidden field, then execute a formname.submit(); function SomeFunction(form) { form.fieldname.value=new value; form.submit(); } -Original Message- From: Cox, Charlie [mailto:[EMAIL PROTECTED]] Sent: October 08, 2002 7:38 AM To: 'Tomcat Users List' Subject: RE: To capture the CLICK event of SUBMIT button I'm not seeing how this relates to tomcat... there are plenty of good javascript resources on the net. -Original Message- From: Nagpal, Vikas [mailto:[EMAIL PROTECTED]] Sent: Tuesday, October 08, 2002 10:30 AM To: '[EMAIL PROTECTED]' Subject: To capture the CLICK event of SUBMIT button Hello Everybody, I have been trying to accomplish two jobs simultaneously. First on the CLICK of my ANCHOR tag I want to assign some value to the HIDDEN input tag and simultaneously carry this value to the page linked to HREF element of this ANCHOR tag. Till this point of time its a two CLICK process(Using JAVASCRIPT FUNCTION): 1) I CLICK on my HREF element and it assigns some value to the HIDDEN input tag. 2) Then I CLICK on the SUBMIT button and it carries the value assigned to the HIDDEN input tag to the page linked to the HREF element of the ANCHOR tag. Can i make this a single CLICK process by capturing CLICK event of the SUBMIT button on the onClick event of my ANCHOR tag. Can I make this single step process. Thanks in advance, With regards, Vikas nagpal. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Does anyone know why I am getting these mod_jk error messages or what they mean????
I have found that I could generate this error when the site is slow and I go view a page and then clicked stop on the browser. What happens is that the user gave up looking at the page and ajp could no longer send it out. This usually happens when jsps are compiling... -Original Message- From: Francom, Kodie [mailto:[EMAIL PROTECTED]] Sent: Tuesday, October 08, 2002 10:26 AM To: 'Tomcat Users List' Subject: Does anyone know why I am getting these mod_jk error messages or what they mean We are using Tomcat 4.1, Sun JDK 1.4, Linux 7.2 and Apache 1.3. [Thu Sep 26 18:13:26 2002] [jk_ajp13_worker.c (845)]: In jk_endpoint_t::service, get_reply failed in send loop 1 [Thu Sep 26 18:13:26 2002] [jk_ajp13_worker.c (845)]: In jk_endpoint_t::service, get_reply failed in send loop 1 [Thu Sep 26 18:13:46 2002] [jk_ajp13_worker.c (228)]: connection_tcp_get_message: Error - jk_tcp_socket_recvfull failed [Thu Sep 26 18:13:46 2002] [jk_ajp13_worker.c (712)]: Error reading reply [Thu Sep 26 18:13:46 2002] [jk_ajp13_worker.c (845)]: In jk_endpoint_t::service, get_reply failed in send loop 0 [Thu Sep 26 18:13:48 2002] [jk_ajp13_worker.c (228)]: connection_tcp_get_message: Error - jk_tcp_socket_recvfull failed [Thu Sep 26 18:13:48 2002] [jk_ajp13_worker.c (712)]: Error reading reply [Thu Sep 26 18:13:48 2002] [jk_ajp13_worker.c (845)]: In jk_endpoint_t::service, get_reply failed in send loop 2 [Thu Sep 26 18:13:51 2002] [jk_ajp13_worker.c (228)]: connection_tcp_get_message: Error - jk_tcp_socket_recvfull failed [Thu Sep 26 18:13:51 2002] [jk_ajp13_worker.c (712)]: Error reading reply [Thu Sep 26 18:13:51 2002] [jk_ajp13_worker.c (845)]: In jk_endpoint_t::service, get_reply failed in send loop 0 [Thu Sep 26 18:13:53 2002] [jk_ajp13_worker.c (228)]: connection_tcp_get_message: Error - jk_tcp_socket_recvfull failed [Thu Sep 26 18:13:53 2002] [jk_ajp13_worker.c (712)]: Error reading reply [Thu Sep 26 18:13:53 2002] [jk_ajp13_worker.c (845)]: In jk_endpoint_t::service, get_reply failed in send loop 2 [Thu Sep 26 18:13:57 2002] [jk_ajp13_worker.c (228)]: connection_tcp_get_message: Error - jk_tcp_socket_recvfull failed -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Problems with PrintWriter in 4.0.4
We're attempting to go live with an XML/XSLT-based framework that we're running in Tomcat 4.0.4. It's stable and fast, except for a major problem when we try to output large amounts of HTML data. Some of our records number into the hundreds and the resulting display is often mangled about 1/2 to 3/4 of the way down the page. We found some references to problems with the Catalina output objects, but I'd like to know if there's a quick and easy fix out there that will allow us to not have to rewrite some of our applications to throttle the returned results. Thanks! Jon Brisbin
Re: How to specify the location of a properties file.
Hi Mehdi, you could get the resource stream from within a servlet's init() method (where you have a ServletContext) and pass it to the other object that needs it. I do it pretty similar. But instead of passing the stream I pass the servletContext. Andreas On 8 Oct 2002 at 15:40, [EMAIL PROTECTED] wrote: Hi, There was no ServletContext.getResourceAsStream () ... maybe this is because the whole project is a bunch of utilities for my web-app, and is not a webapp itself ? The class that needs the properties file, is not part of the webapp. So anyway, i tried the closest available method.. (or so i thought); p.load( javax.servlet.ServletContext.class.getResourceAsStream( /WEB-INF/myprops.properties) ); which also did not work. Cheers, Mehdi Mehdi Nejad - Senior Developer [EMAIL PROTECTED] ~~ Bluewave Ltd - Online Creations http://www.bluewave.com Tel. +44 (0)20 7479 8394 ~~ Andreas Probst [EMAIL PROTECTED]To: Tomcat Users List [EMAIL PROTECTED] cc: Subject: Re: How to specify the location of a properties file. 08/10/2002 13:57 Please respond to Tomcat Users List Hi Mehdi, I have my properties file in /WEB-INF. Eclipse doesn't delete it there. I access it with InputStream propsIn = servletContext.getResourceAsStream(/WEB- INF/dms.properties); props.load(propsIn); As far as I know this also works when the web-app ist deployed as a war without expansion. Hope that helps. Andreas On 8 Oct 2002 at 12:48, [EMAIL PROTECTED] wrote: I use the getResourceAsStram() method also, but i find that my IDE, tends to remove the properties file from my classpath, as soon as I do a build, which is not nice. In the particular case i have now, I don't want to specify the parameters in my web.xml, because the utility that requires a properties file, is not actually a web-app, rather a bunch of utility classes used by my webapp. Im not keen to implement a setProperties() method, as this would mean changing stuff, so im just re-copying the properties into my classes folder after each build.. (unless someone can tell me how to tell WSAD to stop deleting my properties file... but .. *ahem* thats not a Tomcat question :) Cheers, Mehdi Justin Ruthenbeck justinr@nextengiTo: Tomcat Users List [EMAIL PROTECTED] ne.com cc: Subject: Re: How to specify the location of a properties file. 07/10/2002 22:20 Please respond to Tomcat Users List Niaz ... The idea is to load the properties file like you would any other java resource at runtime ... this is (almost) always better, IMHO, than using something J2EE-specific like initialization parameters to a servlet. The relevant code would look something like this: InputStream inStream = this.getClass().getResourceAsStream(/my.props); Properties props = new Properties(inStream); or Properties prop = new Properties(); prop.load(this.getClass().getResourceAsStream (/MyProperties.properties)); There was a thread some time ago that went over this. You can see the details at: http://www.mail-archive.com/tomcat-user@jakarta.apache.org/msg63518.html Hope this helps... justin At 01:40 PM 10/7/2002, you wrote: Justin, I am facing the same problem. Your approach seems to be an elegent one. Would you mind eleborating on the idea a little bit more. Some code snippet would
RE: DBMS access denied with Jakarta NT Service
I'll be specific again: What database are you using? -Original Message- From: Cinzia S [mailto:[EMAIL PROTECTED]] Sent: 08 October, 2002 8:11 AM To: Tomcat Users List Subject: Re: DBMS access denied with Jakarta NT Service just through a System DSN. The java application uses jdbc:odbc bridge. Nothing specific in server.xml or web.xm Thanks - Original Message - From: CLAIRE Celine [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Tuesday, October 08, 2002 9:09 AM Subject: RE: DBMS access denied with Jakarta NT Service excuse me but I would like to know how do you do to access a database with tomcat 3.3.1 server.xml? web.xml? lookup? Can you give me a complete exemple? thanks for your help -Message d'origine- De: Cinzia S [SMTP:[EMAIL PROTECTED]] Date: mardi 8 octobre 2002 10:10 À: [EMAIL PROTECTED] Objet: DBMS access denied with Jakarta NT Service Hi all, I'm having database access denied when running Jakarta as an NT Service, while no db access problems when running as a standalone program. This is the spec: Jakarta-Tomcat 3.3.1, servicing servlets and jsp requested by IIS through isapi_redirect.dll, Windows 2000 Server. Thanks for any suggestion -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Filtering of cookies
Hi, Does anyone have experience in making Tomcat ignore an incoming jsessionid (via cookies) programmatically using servlet filters? I created a request wrapper class which returns null for the methods, getCookies(), getHeader(), and getHeaders() and use it in a doFilter() call but apparently Tomcat is still able to pick up the jsessionid from the cookie. The filter is also registered in web.xml. Any idea what went wrong? Thanks for any info. Rgds
No MBean for mod_jk, only mod_jk2 in Tomcat 4.1.12?
Will ask this again in different manner. Looks like there is no MBean support in 4.1.12 for the AJP13 (mod_jk) Apache connector. Is there any easy way to remedy this, short of disabling JMX support? Thanks. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
SSL Tomcat/IIS
Can someone using SSL for servlets in Tomcat using IIS 5.0 as their web server please help me out. I have Microsoft Certification Authority installed and everything set up on IIS so that the jakarta web directory requires SSL. When i go to http://localhost it says that you must use https, which is what i expect. however, when i go to https://localhost the page is not displayed (it gives a the page can not be displayed error). Do i need to configure tomcat to use ssl as well before this will work properly? Thank you for your help! Fuz -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: tomcat 4.0.1 X Connection
It sounds like you are trying to invoke AWT or Swing calls, and tomcat was started via SSH session. You need to export a valid X11 DISPLAY= variable, or use JDK 1.4.0 or higher and specify -Djava.awt.headless=true in your startup options for Tomcat. George Sexton MH Software, Inc. Home of Connect Daily Web Calendar Software http://www.mhsoftware.com/connectdaily.htm Voice: 303 438 9585 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: 08 October, 2002 7:18 AM To: [EMAIL PROTECTED] Subject: tomcat 4.0.1 X Connection Hi I an having tomcat 4.0.1 running in Redhat 7.2 with apache 1.3.22(Mod_JK) and AS400 as database(DB2 400) server. The static pages are served by apache properly, but when it comes to servlets and database connection i am getting the following error: X connection to BPLA_TEST:10.0 broken (explicit kill or server shutdown). and the tomcat is shutting down automatically. Pls. help me in this regards. Thanks Regards Perumal. __ The NEW Netscape 7.0 browser is now available. Upgrade now! http://channels.netscape.com/ns/browsers/download.jsp Get your own FREE, personal Netscape Mail account today at http://webmail.netscape.com/ -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: How to specify the location of a properties file.
Here is the simple solution ServletContext sc; String RootPath=null; sc = getServletContext(); RootPath = sc.getRealPath(/); Donie -Original Message- From: Andreas Probst [mailto:[EMAIL PROTECTED]] Sent: 08 October 2002 16:31 To: Tomcat Users List Subject: Re: How to specify the location of a properties file. Hi Mehdi, you could get the resource stream from within a servlet's init() method (where you have a ServletContext) and pass it to the other object that needs it. I do it pretty similar. But instead of passing the stream I pass the servletContext. Andreas On 8 Oct 2002 at 15:40, [EMAIL PROTECTED] wrote: Hi, There was no ServletContext.getResourceAsStream () ... maybe this is because the whole project is a bunch of utilities for my web-app, and is not a webapp itself ? The class that needs the properties file, is not part of the webapp. So anyway, i tried the closest available method.. (or so i thought); p.load( javax.servlet.ServletContext.class.getResourceAsStream( /WEB-INF/myprops.properties) ); which also did not work. Cheers, Mehdi Mehdi Nejad - Senior Developer [EMAIL PROTECTED] ~~ Bluewave Ltd - Online Creations http://www.bluewave.com Tel. +44 (0)20 7479 8394 ~~ Andreas Probst [EMAIL PROTECTED]To: Tomcat Users List [EMAIL PROTECTED] cc: Subject: Re: How to specify the location of a properties file. 08/10/2002 13:57 Please respond to Tomcat Users List Hi Mehdi, I have my properties file in /WEB-INF. Eclipse doesn't delete it there. I access it with InputStream propsIn = servletContext.getResourceAsStream(/WEB- INF/dms.properties); props.load(propsIn); As far as I know this also works when the web-app ist deployed as a war without expansion. Hope that helps. Andreas On 8 Oct 2002 at 12:48, [EMAIL PROTECTED] wrote: I use the getResourceAsStram() method also, but i find that my IDE, tends to remove the properties file from my classpath, as soon as I do a build, which is not nice. In the particular case i have now, I don't want to specify the parameters in my web.xml, because the utility that requires a properties file, is not actually a web-app, rather a bunch of utility classes used by my webapp. Im not keen to implement a setProperties() method, as this would mean changing stuff, so im just re-copying the properties into my classes folder after each build.. (unless someone can tell me how to tell WSAD to stop deleting my properties file... but .. *ahem* thats not a Tomcat question :) Cheers, Mehdi Justin Ruthenbeck justinr@nextengiTo: Tomcat Users List [EMAIL PROTECTED] ne.com cc: Subject: Re: How to specify the location of a properties file. 07/10/2002 22:20 Please respond to Tomcat Users List Niaz ... The idea is to load the properties file like you would any other java resource at runtime ... this is (almost) always better, IMHO, than using something J2EE-specific like initialization parameters to a servlet. The relevant code would look something like this: InputStream inStream = this.getClass().getResourceAsStream(/my.props); Properties props = new Properties(inStream); or Properties prop = new Properties(); prop.load(this.getClass().getResourceAsStream (/MyProperties.properties)); There was a thread some time ago that went over this. You can see the details at: http://www.mail-archive.com/tomcat-user@jakarta.apache.org/msg63518.html Hope this helps... justin At 01:40 PM 10/7/2002, you wrote: Justin, I am facing the same problem. Your approach seems to be an elegent one. Would you mind eleborating on the idea a little bit more. Some code snippet would definitely be helpful. I thank you in advance. niaz. - Original Message - From: Justin Ruthenbeck [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Monday, October 07, 2002 4:06 PM Subject: Re: How to specify the location of a properties file. Shaun -- Consider dynamically loading the properties file from your classpath using a class loader. This way, you can put the files anywhere you please and just include that directory in your classpath (or put them someplace already in your classpath). If you need more specifics, let me
Re: TOmcat 4.0.1 and JDOM b8
I apologize, but on closer inspection, I am not sure it will be in xerces... The error says: org.apache.catalina.servlets.InvokerServlet.doGet and: java.lang.VerifyError: (class: TransformServlet, method: doGet signature: (Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V) Incompatible object argument for function call now, running 'java JWhich org.apache.catalina.servlets.InvokerServlet' (JWhich can be found at http://eoti.org/~malachi/java/jwhich.html), it says that class is located in /usr/local/jakarta-tomcat4.1.12/server/lib/servlets-invoker.jar Now, I tried to find the class TransformServlet... not an easy one to find, since we don't know the package name... is it org.apache.xml, org.apache.xalan, javax.xml, javax.servlet, etc... I haven't been able to find it on my system My guess is that you have two copies of this file... but I am not sure where... I wouldn't suggest replacing a FILE inside a jar... but figuring out which jar is causing the conflict and seeing if you can (temporarily) remove that conflicting jar to get the problem to go away... Malachi 10/8/2002 12:36:25 AM, Cyril Vidal [EMAIL PROTECTED] wrote: Hi Malachi, Thanks for your responses. I've uncompressed the two jar files (xercesImpl.jar that I use before and xerces.jar from JDOM). But there are so many classes... Which of them should I remplace from a version to another? Regards, Cyril. ___ Cyril Vidal Email: [EMAIL PROTECTED] Web: http://www.planetexml.com - Original Message - From: Malachi de AElfweald [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Tuesday, October 08, 2002 5:44 AM Subject: Re: TOmcat 4.0.1 and JDOM b8 Incompatible object argument for function call Sounds like the API changed and one of your servlets expected one format, and the other servlet expected another... If you open the jars, you should be able to compare the two files Malachi 10/7/2002 2:48:00 PM, Cyril Vidal [EMAIL PROTECTED] wrote: Yes, in fact, I've put the xerces.jar given with JDOM in $JAVA_HOME/jre/lib/ext. And I've no more the SAXNotRecognized Exception. But, it's very strange, I've got now the following error when I run another servlet that was running well before the manipulation. Here is the beggining of my very basic code: // Imported TraX classes import javax.xml.transform.TransformerFactory; import javax.xml.transform.Transformer; import javax.xml.transform.stream.StreamSource; import javax.xml.transform.stream.StreamResult; import javax.xml.transform.TransformerException; import javax.xml.transform.TransformerConfigurationException; // Imported java classes import java.io.FileOutputStream; import java.io.FileNotFoundException; import java.io.IOException; import org.apache.xerces.parsers.DOMParser; import org.w3c.dom.Document; import org.w3c.dom.NodeList; import java.io.*; import javax.servlet.*; import javax.servlet.http.*; public class TransformServlet extends HttpServlet { public void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException { String thisProduct_id = request.getParameter(product_id); and here is the Exception generated by Tomcat: root cause java.lang.VerifyError: (class: TransformServlet, method: doGet signature: (Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResp o nse;)V) Incompatible object argument for function call at java.lang.Class.newInstance0(Native Method) at java.lang.Class.newInstance(Class.java:237) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:820) at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:615) at org.apache.catalina.servlets.InvokerServlet.serveRequest(InvokerServlet.jav a :396) at org.apache.catalina.servlets.InvokerServlet.doGet(InvokerServlet.java:180) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) What do you think is still wrong? Do I have to do something especially with TOmcat? Thanks for your responses, Cyril. ___ Cyril Vidal Email: [EMAIL PROTECTED] Web: http://www.planetexml.com - Original Message - From: Malachi de AElfweald [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED]; Tomcat Users List [EMAIL PROTECTED] Sent: Monday, October 07, 2002 10:28 PM Subject: Re: TOmcat 4.0.1 and JDOM b8 Also, make sure that an older version is not in $JAVA_HOME/jre/lib/ext cuz that would get used first Malachi 10/7/2002 1:14:36 PM, Padhu Vinirs [EMAIL PROTECTED] wrote: JDOM is only a easy-to-use-wrapper for java programmers around standard xml parsers. The 'SAXNotRecognizedOption is an object in xerces.jar. make sure the xerces.jar that comes with JDOM beta 8 is in your web app's classpath. Maybe JDOM
Re: Admin...
I added the following lines to tomcat-user.xml and then Admin worked fine! role rolename=manager/ role rolename=admin/ user username=admin password=admin roles=standard,manager,admin/ /Roland Nygren I did that...and I was able to execute the manager commands...but from the default main-page of the there's an Administration Tool and I tried the username and password and it didn't work...still told me access denied... -Dubbs - Original Message - From: Jeff Macomber JMacomberX0040;NetByTel.com To: 'Tomcat Users List' tomcat-userX0040;jakarta.apache.org Sent: Friday, June 07, 2002 4:58 PM Subject: RE: Admin... Dubbs, There is no default user that has access to the manager app. You can add one in the tomcat-user.xml by entering a username and password then setting the role to be manager. Hope this helps, Jeff -Original Message- From: Dubbs [mailto:dubbsX0040;cfl.rr.com] Sent: Friday, June 07, 2002 4:54 PM To: Tomcat-User Mailing List Subject: Admin... Hey guys...dumb question but I can't find the answer in any of the docs I have a default Tomcat install and am trying to get into the Admin Tool...what is the default name and password and is that stored in ./conf/tomcat-user.xml ? Thanks -Dubbs -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribeX0040;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-helpX0040;jakarta.apache.org -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribeX0040;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-helpX0040;jakarta.apache.org -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: TOmcat 4.0.1 and JDOM b8
I don't know if this is relevant, but I know the jikes compiler has bugs in it that causes a VerifyError. Are you using jikes to compile catalina? Andy -Original Message- From: Malachi de AElfweald [mailto:[EMAIL PROTECTED]] Sent: 08 October 2002 17:26 To: Tomcat Users List Subject: Re: TOmcat 4.0.1 and JDOM b8 I apologize, but on closer inspection, I am not sure it will be in xerces... The error says: org.apache.catalina.servlets.InvokerServlet.doGet and: java.lang.VerifyError: (class: TransformServlet, method: doGet signature: (Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletRespo nse;)V) Incompatible object argument for function call now, running 'java JWhich org.apache.catalina.servlets.InvokerServlet' (JWhich can be found at http://eoti.org/~malachi/java/jwhich.html), it says that class is located in /usr/local/jakarta-tomcat4.1.12/server/lib/servlets-invoker.jar Now, I tried to find the class TransformServlet... not an easy one to find, since we don't know the package name... is it org.apache.xml, org.apache.xalan, javax.xml, javax.servlet, etc... I haven't been able to find it on my system My guess is that you have two copies of this file... but I am not sure where... I wouldn't suggest replacing a FILE inside a jar... but figuring out which jar is causing the conflict and seeing if you can (temporarily) remove that conflicting jar to get the problem to go away... Malachi 10/8/2002 12:36:25 AM, Cyril Vidal [EMAIL PROTECTED] wrote: Hi Malachi, Thanks for your responses. I've uncompressed the two jar files (xercesImpl.jar that I use before and xerces.jar from JDOM). But there are so many classes... Which of them should I remplace from a version to another? Regards, Cyril. ___ Cyril Vidal Email: [EMAIL PROTECTED] Web: http://www.planetexml.com - Original Message - From: Malachi de AElfweald [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Tuesday, October 08, 2002 5:44 AM Subject: Re: TOmcat 4.0.1 and JDOM b8 Incompatible object argument for function call Sounds like the API changed and one of your servlets expected one format, and the other servlet expected another... If you open the jars, you should be able to compare the two files Malachi 10/7/2002 2:48:00 PM, Cyril Vidal [EMAIL PROTECTED] wrote: Yes, in fact, I've put the xerces.jar given with JDOM in $JAVA_HOME/jre/lib/ext. And I've no more the SAXNotRecognized Exception. But, it's very strange, I've got now the following error when I run another servlet that was running well before the manipulation. Here is the beggining of my very basic code: // Imported TraX classes import javax.xml.transform.TransformerFactory; import javax.xml.transform.Transformer; import javax.xml.transform.stream.StreamSource; import javax.xml.transform.stream.StreamResult; import javax.xml.transform.TransformerException; import javax.xml.transform.TransformerConfigurationException; // Imported java classes import java.io.FileOutputStream; import java.io.FileNotFoundException; import java.io.IOException; import org.apache.xerces.parsers.DOMParser; import org.w3c.dom.Document; import org.w3c.dom.NodeList; import java.io.*; import javax.servlet.*; import javax.servlet.http.*; public class TransformServlet extends HttpServlet { public void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException { String thisProduct_id = request.getParameter(product_id); and here is the Exception generated by Tomcat: root cause java.lang.VerifyError: (class: TransformServlet, method: doGet signature: (Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletRes p o nse;)V) Incompatible object argument for function call at java.lang.Class.newInstance0(Native Method) at java.lang.Class.newInstance(Class.java:237) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:820) at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:615 ) at org.apache.catalina.servlets.InvokerServlet.serveRequest(InvokerServlet.ja v a :396) at org.apache.catalina.servlets.InvokerServlet.doGet(InvokerServlet.java:180) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) What do you think is still wrong? Do I have to do something especially with TOmcat? Thanks for your responses, Cyril. ___ Cyril Vidal Email: [EMAIL PROTECTED] Web: http://www.planetexml.com - Original Message - From: Malachi de AElfweald [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED]; Tomcat Users List [EMAIL PROTECTED] Sent: Monday, October 07, 2002 10:28 PM Subject: Re: TOmcat 4.0.1 and JDOM b8 Also, make sure that an older version is not in $JAVA_HOME/jre/lib/ext cuz that would get used first
RE: How to specify the location of a properties file.
Yes Donie, but this won't work if the webapp is deployed as a war without expansion. Andreas On 8 Oct 2002 at 17:06, Donie Kelly wrote: Here is the simple solution ServletContext sc; String RootPath=null; sc = getServletContext(); RootPath = sc.getRealPath(/); Donie -Original Message- From: Andreas Probst [mailto:[EMAIL PROTECTED]] Sent: 08 October 2002 16:31 To: Tomcat Users List Subject: Re: How to specify the location of a properties file. Hi Mehdi, you could get the resource stream from within a servlet's init() method (where you have a ServletContext) and pass it to the other object that needs it. I do it pretty similar. But instead of passing the stream I pass the servletContext. Andreas On 8 Oct 2002 at 15:40, [EMAIL PROTECTED] wrote: Hi, There was no ServletContext.getResourceAsStream () ... maybe this is because the whole project is a bunch of utilities for my web-app, and is not a webapp itself ? The class that needs the properties file, is not part of the webapp. So anyway, i tried the closest available method.. (or so i thought); p.load( javax.servlet.ServletContext.class.getResourceAsStream( /WEB-INF/myprops.properties) ); which also did not work. Cheers, Mehdi Mehdi Nejad - Senior Developer [EMAIL PROTECTED] ~~ Bluewave Ltd - Online Creations http://www.bluewave.com Tel. +44 (0)20 7479 8394 ~~ Andreas Probst [EMAIL PROTECTED]To: Tomcat Users List [EMAIL PROTECTED] cc: Subject: Re: How to specify the location of a properties file. 08/10/2002 13:57 Please respond to Tomcat Users List Hi Mehdi, I have my properties file in /WEB-INF. Eclipse doesn't delete it there. I access it with InputStream propsIn = servletContext.getResourceAsStream(/WEB- INF/dms.properties); props.load(propsIn); As far as I know this also works when the web-app ist deployed as a war without expansion. Hope that helps. Andreas On 8 Oct 2002 at 12:48, [EMAIL PROTECTED] wrote: I use the getResourceAsStram() method also, but i find that my IDE, tends to remove the properties file from my classpath, as soon as I do a build, which is not nice. In the particular case i have now, I don't want to specify the parameters in my web.xml, because the utility that requires a properties file, is not actually a web-app, rather a bunch of utility classes used by my webapp. Im not keen to implement a setProperties() method, as this would mean changing stuff, so im just re-copying the properties into my classes folder after each build.. (unless someone can tell me how to tell WSAD to stop deleting my properties file... but .. *ahem* thats not a Tomcat question :) Cheers, Mehdi Justin Ruthenbeck justinr@nextengiTo: Tomcat Users List [EMAIL PROTECTED] ne.com cc: Subject: Re: How to specify the location of a properties file. 07/10/2002 22:20 Please respond to Tomcat Users List Niaz ... The idea is to load the properties file like you would any other java resource at runtime ... this is (almost) always better, IMHO, than using something J2EE-specific like initialization parameters to a servlet. The relevant code would look something like this: InputStream inStream = this.getClass().getResourceAsStream(/my.props); Properties props = new Properties(inStream); or Properties prop = new Properties(); prop.load(this.getClass().getResourceAsStream (/MyProperties.properties)); There was a thread some time ago that went over this. You can see the details at: http://www.mail-archive.com/tomcat-user@jakarta.apache.org/msg63518.html Hope this helps... justin At 01:40 PM 10/7/2002, you wrote: Justin, I am facing the same problem. Your approach seems to be an elegent one. Would you mind eleborating on the idea a little bit more. Some code snippet would definitely be helpful. I thank you in advance. niaz. - Original Message - From: Justin Ruthenbeck [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Monday, October 07, 2002 4:06 PM Subject: Re: How to specify the location of a
Apache 2, Tomcat, JBoss configuration
Current versions: FreeBSD 4.6.2-RELEASE Apache 2.0.42 (although FreeBSD port now has 2.0.43) Tomcat 4.0.5 JBoss 3.0.0 (NB: This installation is the package WITHOUT Tomcat) Apache and Tomcat are getting along fine and I can access deployed webapps through the warp connection (Is JK2 preferred over warp?) on both port 80 and 8080. JBoss is alive and well on port 8082. However, virtually ALL the documentation I have found regarding connecting the three refers to the JBoss+Tomcat package (modify the server.xml in ${JBOSS_HOME}/catalina). Does anyone have an example of connecting Apache - Tomcat - JBoss WITHOUT JBoss+Tomcat? Thanks, Jim -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Apache 2, Tomcat, JBoss configuration
You have to use remote interfaces and turn off the TOMCAT JNDI server to use the JBOSS JNDI server, otherwise it's fine. Best Regards, Anthony Geoghegan. J2EE Developer CPS Ireland Ltd. - Original Message - From: Jim Haggerty [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Tuesday, October 08, 2002 5:31 PM Subject: Apache 2, Tomcat, JBoss configuration Current versions: FreeBSD 4.6.2-RELEASE Apache 2.0.42 (although FreeBSD port now has 2.0.43) Tomcat 4.0.5 JBoss 3.0.0 (NB: This installation is the package WITHOUT Tomcat) Apache and Tomcat are getting along fine and I can access deployed webapps through the warp connection (Is JK2 preferred over warp?) on both port 80 and 8080. JBoss is alive and well on port 8082. However, virtually ALL the documentation I have found regarding connecting the three refers to the JBoss+Tomcat package (modify the server.xml in ${JBOSS_HOME}/catalina). Does anyone have an example of connecting Apache - Tomcat - JBoss WITHOUT JBoss+Tomcat? Thanks, Jim -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Dr. Watson error on Apache/Tomcat ??
Anyone knows why Apache/Tomcat could create Dr. Watson like this: The application(Apache.exe), generated an application error. The error occurred on 9/29/2002 @ 7:43:49.968. The exception generated was c005 at address 0x00a41f2f (nosymbols) The Environment is: Apache_1.3.9 with mod_ssl_2.4.9-openssl_0.9.4 Tomcat_3.1 JDK 1.3.1_03 NT 4.0 SP6 One thing noteworthy is that we recently upgraded the JDK version from JDK1.2.2_006 to JDK1.3.1_03, and we recently started to use fop-0.20.4 from within our servlets. Don't know if they could cause this type of problems. Thanks Bing -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Two problems-threadDeath and Properties file
hi, I am using Tomcat 4.0.1 . Whenever I start tomcat, I get the following error.The web application runs but a lot slower. I ran the same application in tomcat 3.2 and it doesn't give me any of these errors and its FAST. The output of the tomcat log file is shown below. I don't know what 'threaddeath' means but surely, it slows down the loading of the pages. I am facing one more problem. I have a properties file for internationalization . I am able to read that file without any problem using tomcat 3.2, but again Tomcat 4.0.1(I tested this under both windows and linux) just reads 'null' values from the properties file. The properties file is in '/conf/sys.properties. Is there a need for the properties file to be in the same directory which has the class file which loads these properties. I tried that too but that doesn't work either!! I also tried putting the file in the 'Classes' directory but it too doesn't work. Has anybody faced the same problems??? Thanks for the help in advance. Rajiv Apache Tomcat/4.0.1 MonitorFilter::java.net.SocketException: Unexpected end of file from server at sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:782) at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:682) at sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:780) at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:682) at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection .java:571) at org.netbeans.modules.web.monitor.server.NotifyUtil$Command.run(NotifyUtil.ja va:391) at java.lang.Thread.run(Thread.java:536) MonitorFilter::java.net.SocketException: Software caused connection abort: JVM_recv in socket input stream read at java.net.SocketInputStream.socketRead0(Native Method) at java.net.SocketInputStream.read(SocketInputStream.java:116) at java.io.BufferedInputStream.fill(BufferedInputStream.java:183) at java.io.BufferedInputStream.read1(BufferedInputStream.java:222) at java.io.BufferedInputStream.read(BufferedInputStream.java:277) at sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:721) at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:682) at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:692) at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection .java:571) at org.netbeans.modules.web.monitor.server.NotifyUtil$Command.run(NotifyUtil.ja va:391) at java.lang.Thread.run(Thread.java:536) MonitorFilter::java.net.SocketException: Unexpected end of file from server at sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:782) at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:682) at sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:780) at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:682) at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection .java:571) at org.netbeans.modules.web.monitor.server.NotifyUtil$Command.run(NotifyUtil.ja va:391) at java.lang.Thread.run(Thread.java:536) MonitorFilter::java.net.SocketException: Unexpected end of file from server at sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:782) at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:682) at sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:780) at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:682) at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection .java:571) at org.netbeans.modules.web.monitor.server.NotifyUtil$Command.run(NotifyUtil.ja va:391) at java.lang.Thread.run(Thread.java:536) MonitorFilter::java.lang.ThreadDeath at java.lang.Thread.stop(Thread.java:635) at org.netbeans.modules.web.monitor.server.NotifyUtil.sendTransaction(NotifyUti l.java:327) at org.netbeans.modules.web.monitor.server.NotifyUtil.notifyServer(NotifyUtil.j ava:116) at org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter .java:303) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:213) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:243) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja va:201) at
RE: Problem with Tomcat 4.1.12 SSL
Hi All, Sorry for posting this problem that I didn't look carefully in the my archive. I found it from Remy's post back in September. Michael -Original Message- From: Tam, Michael [mailto:[EMAIL PROTECTED]] Sent: Monday, October 07, 2002 4:41 PM To: Tomcat UserList (E-mail) Subject: Problem with Tomcat 4.1.12 SSL Hi All, I have Tomcat 4.1.12 running with SSL enabled with self-certified keystore in place. However, I encounter the following warning message and exception. Oct 7, 2002 3:21:00 PM org.apache.coyote.http11.Http11Processor action WARNING: Exception getting SSL attributes javax.net.ssl.SSLPeerUnverifiedException: peer not authenticated at com.sun.net.ssl.internal.ssl.SSLSessionImpl.getPeerCertificateChain(DashoA62 75) at org.apache.tomcat.util.net.JSSESupport.getPeerCertificateChain(JSSESupport.j ava:118) at org.apache.coyote.http11.Http11Processor.action(Http11Processor.java:543) at org.apache.coyote.Response.action(Response.java:216) at org.apache.coyote.tomcat4.CoyoteAdapter.postParseRequest(CoyoteAdapter.java: 314) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:221) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:405) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne ction(Http11Protocol.java:380) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:508) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav a:533) at java.lang.Thread.run(Thread.java:536) I have no clue what causes it and what it means. Would someone kindly help me out or simply point me to the right direction? --- Michael Tam - NFI Database Developer Natural Resources Canada [EMAIL PROTECTED] Pacific Forestry Center Phone: (250) 363-8074 506 West Burnside Road Fax: (250) 363-0775 Victoria, BC V8Z 1M5 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
unable to read() request.getInputStream
Im using TomCat 4.1.12 (Standalone) on redhat linux 7.2 (kernel 2.4.7-10): jsp: form action=jguru.jsp enctype=MULTIPART/FORMDATA method=post input type=file name=fileName value=/home/seaver/txts/letter.txt / jsp:useBean id=xmlHandler class=com.jguru.SimpleBean jsp:setProperty name=xmlHandler property=fileName / /jsp:useBean % xmlHandler.doUpload(request); % bean: blah blah.. public void doUpload(HttpServletRequest request) throws IOException { ServletInputStream in = request.getInputStream(); int len = request.getContentLength(); byte[] line = new byte[len]; PrintWriter pw = new PrintWriter(new BufferedWriter(new FileWriter (/home/seaver/Demo.out))); pw.print(Demo.out body\n); try { int offset = 0; do { int inputLen = in.readLine(line, offset, len-offset); if(inputLen =0){ String msg = read finished early - read + offset+ of +len+ bytes (contentLength); throw new IOException(msg); } else { pw.print(line); } offset += inputLen; } while ((len-offset) 0); }catch(IOException e){ throw e; } pw.close(); } all i get, when I submit the file, is this error: org.apache.jasper.JasperException: read finished early - read 0 of 60 bytes (contentLength) which is programmed IN my bean, but the number of different ways ive tried to get the HTTP Request to print out to a file has not given me anymore than a -1, or even jumbled data. i've read a lot about tomcat's inability to parse multipart, but what should I do? S JC Rules _ Send and receive Hotmail on your mobile device: http://mobile.msn.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
how can I debug this? ClassNotFOund Exception
Something has changed with bei apache tomcat installation. I installed some php4 WebFOrum software and in the course of this I upgraded apache to 1.3.27. The tomcat examples are working again but I still get this in my application: Internal Servlet Error: java.lang.ClassNotFoundException: java.util.Arrays at org.apache.tomcat.loader.AdaptiveClassLoader.loadClass(AdaptiveClassLoader.java:450) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java) at Some.doGet(Some.java:320) at Some.doPost(Some.java:30) at javax.servlet.http.HttpServlet.service(HttpServlet.java:760) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:503) at org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:597) at org.apache.tomcat.servlets.InvokerServlet.service(InvokerServlet.java:257) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:503) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:559) at org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection(Ajp12ConnectionHandler.java:156) at org.apache.tomcat.service.TcpConn! ectionThread.run(SimpleTcpEndpoint.java:338) at java.lang.Thread.run(Thread.java) (Sorry for sending an unwrapped line which is normally not my habit :-) Some.java is my Servlet and I'm just doing a s=fp.list() on a String s[]; File fp = new File(SomeDir); s=fp.list(); offending line I have no idea what happened. Maybe some new java got installed? Classpath is this: /usr/local/build/tomcat/classes:.:/usr/local/build/tomcat/lib/ant.ja r:/usr/local/build/tomcat/lib/classes111.zip:/usr/local/build/tomcat/lib/classes 12.zip:/usr/local/build/tomcat/lib/jndi.zip:/usr/local/build/tomcat/lib/jta.zip: /usr/local/build/tomcat/lib/nls_charset11.zip:/usr/local/build/tomcat/lib/nls_ch arset12.zip:/usr/local/build/tomcat/lib/test:/usr/local/build/tomcat/lib/xml.jar :.:/usr/local/jdk1.1.8/lib/classes.zip:/home/kuku/rmijdbc/rmijdbc.jar:/usr/local /jsdk2.1/servlet.jar:/home/kuku/swing-1.1.1fcs/swing.jar:/usr/local/jdk1.1.8/cla sses:/usr/local/jdk1.1.8/lib/classes.jar:/usr/local/jdk1.1.8/lib/rt.jar:/usr/loc al/jdk1.1.8/lib/i18n.jar:/usr/local/jdk1.1.8/lib/classes.zip I admit, it's noit a beautiful classpath but it grew that way by during the course of time. -- Chris Christoph P. U. Kukulies [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
jk2 uri mapping of SSL vhost
If anyone knows how to map requests from a virtual host (*:443) to a context ... I would be very thankful for any hint. I use mod_jk2 2.0.0 with Apache 2.0.43, mapping via [uri:/xyz/*] works, but mapping via [uri:*:443] doesn't do anything ... question: shouldn't [uri:/xyz/*] map uris from any virtual host, not just the default one? -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
libexec path
I'm running apache 1.3.27 with tomcat 3.2.4 or some similar vintage and after upgrading from apache 1.3.24 to 1.3.27 (I was using the FreeBSD port install) I first forgot to enable-modules=so in the configure options but after getting around this and adapting httpd.conf I still have the problem that tomcat is looking for /usr/local/libexec/mod_jserv.so while it actually lives in /usr/local/libexec/apache/mod_jserv.so. I wonder how come that this had changed during the apache upgrade but who knows. Anyway, how to I correct it in tomcat? In which file should I tell tomcat to append 'apach' to the libexec path? -- Chris Christoph P. U. Kukulies [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Action on close
You're right and that's what I said. Jake got the right answer. BTW why 'Death to all load on startup servlets'? Personal preference? d. jon wingfield wrote: You can't rely on the destroy() method on the servlet for this purpose. The container has the right to unload servlets when it chooses as a part of resources management. If you are using a servlet 2.3 spec container use the ServletContextListener as Jake suggests. flame-retardent-suit Death to all load on startup servlets ;) /flame-retardent-suit Jon -Original Message- From: Jacob Kjome [mailto:[EMAIL PROTECTED]] Sent: 07 October 2002 16:07 To: Tomcat Users List Subject: Re: Action on close Yep, Servlet 2.3 introduced the concenpt of the ServletContextListener which contains contextInitialized() and contextDestroyed() which are guaranteed to be loaded once at startup and once at shutdown, respectively. You just need a class that implements ServletContextListener and specify it in the web.xml as: listener listener-class org.myapp.listeners.MyServletContextListener /listener-class /listener There you go. Jake Quoting David Mossakowski [EMAIL PROTECTED]: There's a destroy() method called on a servlet when it is unloaded from Tomcat. You can't depend on that to mean that Tomcat is shutting down but maybe it could be helpful. d. Yuriy Stul wrote: Hello, it is possible to specify a class what must be called (loaded) on startup (web.xml, servlet load-on-startup ...). It is working fine. My question is it possible to specify any servlet what will be loaded before Tomcat shutdown? Thanks in advance Regards, Yuriy Sr. Software Eng. mailto:[EMAIL PROTECTED] http://www.bladefusion.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- David Mossakowski [EMAIL PROTECTED] Instinet Corporation 212.310.7275 *** Disclaimer This message is intended only for the use of the Addressee and may contain information that is PRIVILEGED and/or CONFIDENTIAL or both. This email is intended only for the personal and confidential use of the recipient(s) named above. If the reader of this email is not an intended recipient, you have received this email in error and any review, dissemination, distribution or copying is strictly prohibited. If you have received this email in error, please notify the sender immediately by return mail and permanently deleting the copy you received. Thank you. *** -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- David Mossakowski [EMAIL PROTECTED] Instinet Corporation 212.310.7275 Disclaimer This message is intended only for the use of the Addressee and may contain information that is PRIVILEGED and/or CONFIDENTIAL or both. This email is intended only for the personal and confidential use of the recipient(s) named above. If the reader of this email is not an intended recipient, you have received this email in error and any review, dissemination, distribution or copying is strictly prohibited. If you have received this email in error, please notify the sender immediately by return mail and permanently deleting the copy you received. Thank you. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: JK2+Apache2: LogFactory java Error: NoClassDefFoundError
You should put the logging jar into tomcat/lib or webapps/yourwebapp/lib depending on how it's used. System classpath does not matter for Tomcat (a good thing) so you need to put things in the right places in order for them to work or specify in your startup script where else to look for jars. d. Brzezinski, Paul J wrote: Getting an error message when I start Tomcat 4.1.12 on Solaris 8 SPARC: 15750 [main] ERROR server.JkMain - Can't create apr java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory at org.apache.jk.apr.AprImpl.clinit(AprImpl.java:340) I'm using the Apache Tomcat/4.1.12-LE-jdk14. FYI: CLASSPATH set to: /server/lib/commons-logging.jar:/em/opt/j2sdk1.4.0_02/lib/tools.jar:.:/em/op t/j2sdk1.4.0_02/lib/jta.jar:/em/opt/jaf-1.0.2/activation.jar:/em/opt/javamai l-1.3/mail.jar:/em/opt/j2sdk1.4.0_02/jre/lib/jsse.jar Anyone else run into this? Know how to solve it? Is it a CLASSPATH env var problem? -- mailto:[EMAIL PROTECTED] Enterprise Distributed Capabilities EDS Corporation 248-265-8283 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- David Mossakowski [EMAIL PROTECTED] Instinet Corporation 212.310.7275 Disclaimer This message is intended only for the use of the Addressee and may contain information that is PRIVILEGED and/or CONFIDENTIAL or both. This email is intended only for the personal and confidential use of the recipient(s) named above. If the reader of this email is not an intended recipient, you have received this email in error and any review, dissemination, distribution or copying is strictly prohibited. If you have received this email in error, please notify the sender immediately by return mail and permanently deleting the copy you received. Thank you. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Request parameters not coming through correctly [Tomcat 4.1.12]
I am having a problem in Tomcat 4.1.12 that I did not have in Tomcat 4.0.4. I have a jsp that has two forms. Both forms have the same name and use most of the same parameters. The first form has a drop-down(searchField) and a textfield(searchString). In Tomcat 4.0.4 these values came through fine. In Tomcat 4.1.12 the values are coming through in the request, but they are the second element in a String array. In other words, to get the values out I have to do something like the following: String searchFields[] = request.getParameterValues(searchField); String searchFieldValue = searchFields[1]; I should be able to just do: String searchFieldValue = request.getParameter(searchField); Why would I be getting an array with two values? I was able to get the form to work if it was the only thing in the jsp, so I believe there is something external to the form being picked up as an additional parameter, but I can't figure it out. Any ideas? -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Configure of Virtual Host
Hi, How to configure a Virtual Host for a directory application ( webdav for example ) in Tomcat version 4.1.12? Thanks, Fábio.
JNDIRealm expires?
I have been able to successfully set up a JNDIRealm in tomcat for authentication. Only problem is after about 12 (rough guess) I get the dreaded black page instead of seeing my login form. The workaround is to restart tomcat. Obviously, this won't work well for a always-on service. Maybe there might be a way to reinitialize an idle connection? Thanks. 2002-10-08 12:35:18 CoyoteAdapter An exception or error occurred in the container during the request processing java.lang.NullPointerException at com.sun.jndi.ldap.LdapClient.authenticate(LdapClient.java:173) at com.sun.jndi.ldap.LdapCtx.connect(LdapCtx.java:2516) at com.sun.jndi.ldap.LdapCtx.ensureOpen(LdapCtx.java:2458) at com.sun.jndi.ldap.LdapCtx.ensureOpen(LdapCtx.java:2432) at com.sun.jndi.ldap.LdapCtx.doSearch(LdapCtx.java:1837) at com.sun.jndi.ldap.LdapCtx.doSearchOnce(LdapCtx.java:1829) at com.sun.jndi.ldap.LdapCtx.c_getAttributes(LdapCtx.java:1223) at com.sun.jndi.toolkit.ctx.ComponentDirContext.p_getAttributes(ComponentDirContext.java:213) at com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.getAttributes(PartialCompositeDirContext.java:121) at com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.getAttributes(PartialCompositeDirContext.java:109) at javax.naming.directory.InitialDirContext.getAttributes(InitialDirContext.java:121) at org.apache.catalina.realm.JNDIRealm.bindAsUser(JNDIRealm.java:1051) at org.apache.catalina.realm.JNDIRealm.checkCredentials(JNDIRealm.java:957) at org.apache.catalina.realm.JNDIRealm.authenticate(JNDIRealm.java:729) at org.apache.catalina.realm.JNDIRealm.authenticate(JNDIRealm.java:671) at org.apache.catalina.authenticator.FormAuthenticator.authenticate(FormAuthenticator.java:263) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:458) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246) 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.StandardContext.invoke(StandardContext.java:2397) 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:170) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:171) 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:405) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:380) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:508) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:533) at java.lang.Thread.run(Thread.java:536) -- Vincent Stoessel Linux Systems Developer vincent xaymaca.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Strange differences in Apache/Tomcat configuration
On Mon, Oct 07, 2002 at 04:18:25PM -0400, Turner, John wrote: Sorry, I'm fresh out of ideas. It sure sounds like a permissions issue to me, but I can't say for sure without investigation. Let us know what it was when you get it resolved. I don't have this solved, yet, but I am working on it. Here is what I have done. I first tryed to access the tomcat instance with lynx locally on my remote server. I am getting a strange error here as well. When I attempt to go to http://localhost:8080/examples I get this error with lynx: Alert! HTTP/1.1 400 No Host matches server name localhost At first I thought that this might me an issue with iptables, but running /etc/init.d/iptables stop has had no effect, which I did not think it would, but I wanted to make sure. Checking on my local sandbox, I see the same behavior with lynx, so I am getting puzzled. I do see that the DNS servers, that I have 0 control over does not resolve localhost to 127.0.0.1. Why the machine is not going to the hosts file first, I don't know. My /etc/nsswitch.conf file has hosts: files dns in it so it should go to the hosts file. Oh well, the admin is the DNS server check into to. Does anyone know that if DNS is not operating correctly is there problems with Tomcat? In order to move forward, I edited the server.xml file and removed the address=localhost from the connector defination for port 8080, but I still cannot access /examples or /tomcat-docs... The HTML returned to my browser is: htmlbody/body/html Doing a tcpdump on port 8080 and looking in the packets I see that I am getting the save server error 400 No host matches server name error. Right now I am assuming that this is a issue with the, IMO, misconfiguration of the DNS server. While I have not done an archive search on DNS issues with Tomcat, is there a known issue with this? Kent -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Strange differences in Apache/Tomcat configuration
As an aside, what happens if you try and access http://127.0.0.1:8080/examples ? John -Original Message- From: Kent Perrier [mailto:[EMAIL PROTECTED]] Sent: Tuesday, October 08, 2002 1:47 PM To: Tomcat Users List Subject: Re: Strange differences in Apache/Tomcat configuration On Mon, Oct 07, 2002 at 04:18:25PM -0400, Turner, John wrote: Sorry, I'm fresh out of ideas. It sure sounds like a permissions issue to me, but I can't say for sure without investigation. Let us know what it was when you get it resolved. I don't have this solved, yet, but I am working on it. Here is what I have done. I first tryed to access the tomcat instance with lynx locally on my remote server. I am getting a strange error here as well. When I attempt to go to http://localhost:8080/examples I get this error with lynx: Alert! HTTP/1.1 400 No Host matches server name localhost At first I thought that this might me an issue with iptables, but running /etc/init.d/iptables stop has had no effect, which I did not think it would, but I wanted to make sure. Checking on my local sandbox, I see the same behavior with lynx, so I am getting puzzled. I do see that the DNS servers, that I have 0 control over does not resolve localhost to 127.0.0.1. Why the machine is not going to the hosts file first, I don't know. My /etc/nsswitch.conf file has hosts: files dns in it so it should go to the hosts file. Oh well, the admin is the DNS server check into to. Does anyone know that if DNS is not operating correctly is there problems with Tomcat? In order to move forward, I edited the server.xml file and removed the address=localhost from the connector defination for port 8080, but I still cannot access /examples or /tomcat-docs... The HTML returned to my browser is: htmlbody/body/html Doing a tcpdump on port 8080 and looking in the packets I see that I am getting the save server error 400 No host matches server name error. Right now I am assuming that this is a issue with the, IMO, misconfiguration of the DNS server. While I have not done an archive search on DNS issues with Tomcat, is there a known issue with this? Kent -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Request parameters not coming through correctly [Tomcat 4.1.12]
is searchField a multiple select? are you sure that no other input box/button is named 'searchField'? you can get an array in either of these scenarios. Charlie -Original Message- From: Russ Bonsall [mailto:[EMAIL PROTECTED]] Sent: Tuesday, October 08, 2002 1:45 PM To: '[EMAIL PROTECTED]' Subject: Request parameters not coming through correctly [Tomcat 4.1.12] I am having a problem in Tomcat 4.1.12 that I did not have in Tomcat 4.0.4. I have a jsp that has two forms. Both forms have the same name and use most of the same parameters. The first form has a drop-down(searchField) and a textfield(searchString). In Tomcat 4.0.4 these values came through fine. In Tomcat 4.1.12 the values are coming through in the request, but they are the second element in a String array. In other words, to get the values out I have to do something like the following: String searchFields[] = request.getParameterValues(searchField); String searchFieldValue = searchFields[1]; I should be able to just do: String searchFieldValue = request.getParameter(searchField); Why would I be getting an array with two values? I was able to get the form to work if it was the only thing in the jsp, so I believe there is something external to the form being picked up as an additional parameter, but I can't figure it out. Any ideas? -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Does anyone know why I am getting these mod_jk error messagesor what they mean????
I just fought through these errors this morning. I found that tomcat didn't have the processes. I tripled the maxProcessor settings for the connector and the mod_jk errors stopped. After lots of lucky guessing, I finally looked in the catalina_log file for the tomcat server and found it full of: 2002-10-08 09:57:27 Ajp13Connector[1209] No processor available, rejecting this connection Check all logs for clues... Tom On Tue, 8 Oct 2002, Ricky Leung wrote: I have found that I could generate this error when the site is slow and I go view a page and then clicked stop on the browser. What happens is that the user gave up looking at the page and ajp could no longer send it out. This usually happens when jsps are compiling... -Original Message- From: Francom, Kodie [mailto:[EMAIL PROTECTED]] Sent: Tuesday, October 08, 2002 10:26 AM To: 'Tomcat Users List' Subject: Does anyone know why I am getting these mod_jk error messages or what they mean We are using Tomcat 4.1, Sun JDK 1.4, Linux 7.2 and Apache 1.3. [Thu Sep 26 18:13:26 2002] [jk_ajp13_worker.c (845)]: In jk_endpoint_t::service, get_reply failed in send loop 1 [Thu Sep 26 18:13:26 2002] [jk_ajp13_worker.c (845)]: In jk_endpoint_t::service, get_reply failed in send loop 1 [Thu Sep 26 18:13:46 2002] [jk_ajp13_worker.c (228)]: connection_tcp_get_message: Error - jk_tcp_socket_recvfull failed [Thu Sep 26 18:13:46 2002] [jk_ajp13_worker.c (712)]: Error reading reply [Thu Sep 26 18:13:46 2002] [jk_ajp13_worker.c (845)]: In jk_endpoint_t::service, get_reply failed in send loop 0 [Thu Sep 26 18:13:48 2002] [jk_ajp13_worker.c (228)]: connection_tcp_get_message: Error - jk_tcp_socket_recvfull failed [Thu Sep 26 18:13:48 2002] [jk_ajp13_worker.c (712)]: Error reading reply [Thu Sep 26 18:13:48 2002] [jk_ajp13_worker.c (845)]: In jk_endpoint_t::service, get_reply failed in send loop 2 [Thu Sep 26 18:13:51 2002] [jk_ajp13_worker.c (228)]: connection_tcp_get_message: Error - jk_tcp_socket_recvfull failed [Thu Sep 26 18:13:51 2002] [jk_ajp13_worker.c (712)]: Error reading reply [Thu Sep 26 18:13:51 2002] [jk_ajp13_worker.c (845)]: In jk_endpoint_t::service, get_reply failed in send loop 0 [Thu Sep 26 18:13:53 2002] [jk_ajp13_worker.c (228)]: connection_tcp_get_message: Error - jk_tcp_socket_recvfull failed [Thu Sep 26 18:13:53 2002] [jk_ajp13_worker.c (712)]: Error reading reply [Thu Sep 26 18:13:53 2002] [jk_ajp13_worker.c (845)]: In jk_endpoint_t::service, get_reply failed in send loop 2 [Thu Sep 26 18:13:57 2002] [jk_ajp13_worker.c (228)]: connection_tcp_get_message: Error - jk_tcp_socket_recvfull failed -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: jk2 uri mapping of SSL vhost
-Original Message- From: Michael Riess [mailto:[EMAIL PROTECTED]] Sent: Tuesday, October 08, 2002 12:52 PM To: [EMAIL PROTECTED] Subject: jk2 uri mapping of SSL vhost If anyone knows how to map requests from a virtual host (*:443) to a context ... I would be very thankful for any hint. I use mod_jk2 2.0.0 with Apache 2.0.43, mapping via [uri:/xyz/*] works, but mapping via [uri:*:443] doesn't do anything ... question: shouldn't [uri:/xyz/*] map uris from any virtual host, not just the default one? If you declared host with [uri:*:443] Meaning any (virtual)hostname having port 443 then you have to specify the mapping for such host. Use the [uri:*:443/xyz/*] Since you have declared host:port combination all the uri mappings needs to be prefixed by that host:port. This behavior is intentional cause you may wish not to map any context on that host:port combination. MT. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: TOmcat 4.0.1 and JDOM b8
hi Malachi, thanks for all the time you spend for me... I think the error comes anyway from the xerces.jar because when I remove the xerces.jar from JDOM distribution from the JAVA_HOME\jre\lib\ext, I don't have the exception... But I still really don't understand why... Regards, Cyril. ___ Cyril Vidal Email: [EMAIL PROTECTED] Web: http://www.planetexml.com - Original Message - From: Malachi de AElfweald [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Tuesday, October 08, 2002 6:25 PM Subject: Re: TOmcat 4.0.1 and JDOM b8 I apologize, but on closer inspection, I am not sure it will be in xerces... The error says: org.apache.catalina.servlets.InvokerServlet.doGet and: java.lang.VerifyError: (class: TransformServlet, method: doGet signature: (Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletRespo nse;)V) Incompatible object argument for function call now, running 'java JWhich org.apache.catalina.servlets.InvokerServlet' (JWhich can be found at http://eoti.org/~malachi/java/jwhich.html), it says that class is located in /usr/local/jakarta-tomcat4.1.12/server/lib/servlets-invoker.jar Now, I tried to find the class TransformServlet... not an easy one to find, since we don't know the package name... is it org.apache.xml, org.apache.xalan, javax.xml, javax.servlet, etc... I haven't been able to find it on my system My guess is that you have two copies of this file... but I am not sure where... I wouldn't suggest replacing a FILE inside a jar... but figuring out which jar is causing the conflict and seeing if you can (temporarily) remove that conflicting jar to get the problem to go away... Malachi 10/8/2002 12:36:25 AM, Cyril Vidal [EMAIL PROTECTED] wrote: Hi Malachi, Thanks for your responses. I've uncompressed the two jar files (xercesImpl.jar that I use before and xerces.jar from JDOM). But there are so many classes... Which of them should I remplace from a version to another? Regards, Cyril. ___ Cyril Vidal Email: [EMAIL PROTECTED] Web: http://www.planetexml.com - Original Message - From: Malachi de AElfweald [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Tuesday, October 08, 2002 5:44 AM Subject: Re: TOmcat 4.0.1 and JDOM b8 Incompatible object argument for function call Sounds like the API changed and one of your servlets expected one format, and the other servlet expected another... If you open the jars, you should be able to compare the two files Malachi 10/7/2002 2:48:00 PM, Cyril Vidal [EMAIL PROTECTED] wrote: Yes, in fact, I've put the xerces.jar given with JDOM in $JAVA_HOME/jre/lib/ext. And I've no more the SAXNotRecognized Exception. But, it's very strange, I've got now the following error when I run another servlet that was running well before the manipulation. Here is the beggining of my very basic code: // Imported TraX classes import javax.xml.transform.TransformerFactory; import javax.xml.transform.Transformer; import javax.xml.transform.stream.StreamSource; import javax.xml.transform.stream.StreamResult; import javax.xml.transform.TransformerException; import javax.xml.transform.TransformerConfigurationException; // Imported java classes import java.io.FileOutputStream; import java.io.FileNotFoundException; import java.io.IOException; import org.apache.xerces.parsers.DOMParser; import org.w3c.dom.Document; import org.w3c.dom.NodeList; import java.io.*; import javax.servlet.*; import javax.servlet.http.*; public class TransformServlet extends HttpServlet { public void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException { String thisProduct_id = request.getParameter(product_id); and here is the Exception generated by Tomcat: root cause java.lang.VerifyError: (class: TransformServlet, method: doGet signature: (Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletRes p o nse;)V) Incompatible object argument for function call at java.lang.Class.newInstance0(Native Method) at java.lang.Class.newInstance(Class.java:237) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:820) at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:615 ) at org.apache.catalina.servlets.InvokerServlet.serveRequest(InvokerServlet.ja v a :396) at org.apache.catalina.servlets.InvokerServlet.doGet(InvokerServlet.java:180) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) What do you think is still wrong? Do I have to do something especially with TOmcat? Thanks for your responses, Cyril. ___ Cyril Vidal Email: [EMAIL
Re: Strange differences in Apache/Tomcat configuration
On Tue, Oct 08, 2002 at 01:54:43PM -0400, Turner, John wrote: As an aside, what happens if you try and access http://127.0.0.1:8080/examples ? I tried that as well. I get the same error, except that it says 127.0.0.1 instead of localhost :) Kent -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Strange differences in Apache/Tomcat configuration
On Tue, Oct 08, 2002 at 01:54:43PM -0400, Turner, John wrote: As an aside, what happens if you try and access http://127.0.0.1:8080/examples ? One more thing, the requests are even getting to the Tomcat server as nothing is being written to the tomcat logfiles. Kent -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: JK2+Apache2: LogFactory java Error: NoClassDefFoundError
David Mossakowski wrote: You should put the logging jar into tomcat/lib or webapps/yourwebapp/lib depending on how it's used. Thanks for responding... More questions: yeah, but this is tomcat trying to start that's throwing the exception, not a web-app. System classpath does not matter for Tomcat (a good thing) so you need to put things in the right places in order for them to work or specify in your startup script where else to look for jars. so that goes back to my first post -- does anyone have the AF_UNIX socket stuff working on Solaris 8 (SPARC Platform) with Apache 2.0.40+ with Tomcat 4.1.12 (JK2) with JDK 1.4.0 so that I can compare my env to one that works? d. Brzezinski, Paul J wrote: Getting an error message when I start Tomcat 4.1.12 on Solaris 8 SPARC: 15750 [main] ERROR server.JkMain - Can't create apr java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory at org.apache.jk.apr.AprImpl.clinit(AprImpl.java:340) I'm using the Apache Tomcat/4.1.12-LE-jdk14. FYI: CLASSPATH set to: /server/lib/commons-logging.jar:/em/opt/j2sdk1.4.0_02/lib/tools.jar:.:/em/op t/j2sdk1.4.0_02/lib/jta.jar:/em/opt/jaf-1.0.2/activation.jar:/em/opt/javamai l-1.3/mail.jar:/em/opt/j2sdk1.4.0_02/jre/lib/jsse.jar Anyone else run into this? Know how to solve it? Is it a CLASSPATH env var problem? -- mailto:[EMAIL PROTECTED] Enterprise Distributed Capabilities EDS Corporation 248-265-8283 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
AW: jk2 uri mapping of SSL vhost
Just for clarity: I have an webapp that should work with or without SSL, so I need a way to map URIs to that webapp without regard of the virtual host it comes from. Alternatively, I could use two mappings for the two vhosts (the default and the SSL host), but anyway: I would appreciate for any suggestion for the right wk2.properties definitions. Here's my guess #1 (doesn't work) [uri:192.168.42.42:*/xyz/*] and guess #2 (doesn't work either) [uri:192.168.42.42:80/xyz/*] [uri:192.168.42.42:443/xyz/*] Tried using * instead of IP (you guessed right ... doesn't work). Mike -Ursprungliche Nachricht- Von: Mladen Turk [mailto:[EMAIL PROTECTED]] Gesendet: Dienstag, 8. Oktober 2002 20:11 An: 'Tomcat Users List'; [EMAIL PROTECTED] Betreff: RE: jk2 uri mapping of SSL vhost -Original Message- From: Michael Riess [mailto:[EMAIL PROTECTED]] Sent: Tuesday, October 08, 2002 12:52 PM To: [EMAIL PROTECTED] Subject: jk2 uri mapping of SSL vhost If anyone knows how to map requests from a virtual host (*:443) to a context ... I would be very thankful for any hint. I use mod_jk2 2.0.0 with Apache 2.0.43, mapping via [uri:/xyz/*] works, but mapping via [uri:*:443] doesn't do anything ... question: shouldn't [uri:/xyz/*] map uris from any virtual host, not just the default one? If you declared host with [uri:*:443] Meaning any (virtual)hostname having port 443 then you have to specify the mapping for such host. Use the [uri:*:443/xyz/*] Since you have declared host:port combination all the uri mappings needs to be prefixed by that host:port. This behavior is intentional cause you may wish not to map any context on that host:port combination. MT. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]