Re: Starting Tomcat in Apache
Kenneth, I don't know enough about the Win environment. In the absence of a return value for the script, everything becomes uncertain. Under linux, tomcat is started in the background, and I assume the same thing is happening under Windows. The uncertainty is in the timing of the startup of java+tomcat, versus the completion of the startup.bat script. Is it possible to put a timeout in a batch file? Peter Kenneth Westelinck wrote: Peter, I'm not sure about this, since this has never occurred before. I make sure Tomcat is running fine on it's own and then bring in the startup script. If you have a workaround, please let me know. thanks, Kenneth Westelinck From: Peter Bernard West Reply-To: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Re: Starting Tomcat in Apache Date: Fri, 16 Mar 2001 12:17:13 +1000 In Windows, does a batch script exit if any of the commands fails? If it does not, the script will hang if startup.bat fails, or fails to produce mod_jk.conf-auto. Peter -- Peter B. West [EMAIL PROTECTED] http://powerup.com.au/~pbwest "Lord, to whom shall we go?"
Re: Tomcat SSL context or directory
I am not sure how you can set up SSL for only certain context sections. If you use virtual hosts in apache you should be able to set up different directories with different security levels. This is what I am trying to do, but the virtual host in apache cannot server jsp or servlets right now. On Sunday 18 March 2001 02:42, you wrote: I got Tomcat and SSL working great. However, I am wondering if it is possible to use SSL in a specific directory only. As it is right now, the whole site can be SSL, but what if I only want certain directory or context? Without using Apache as well. Any thoughts? Thanks, Tu-Thach Content-Type: text/html; charset="iso-8859-1"; name="Attachment: 1" Content-Transfer-Encoding: quoted-printable Content-Description:
Re: problem with JSP displaying broken image link
jdh wrote: I have been having trouble displaying images from my JSP(s). It seems like all my images that exist on http://www.geocities.com come up as broken image links.Is there a bug in the JSP server? I can display those images as plain .html file but not in my JSP. Thanks. I would start by capturing the generated page (view source) and carefully examining the way the links are being written. Is it valid HTML? -- WBB - [EMAIL PROTECTED] Java Cert mock exams http://www.lanw.com/java/javacert/ Author of Java Developer's Guide to Servlets and JSP ISBN 0-7821-2809-2
How to get rs.last() supported by Tomcat
Hello, I need help on JDBC 2.0. I have Apache, Tomcat 3.2.1 and jdk1.3. But I can't call JDBC 2.x methods such as rs.last(). Any ideas? Thanks, Jack
RE: Is ajp12 a necessity..if so why
Although I wouldn't normally answer this kind of question as the answer is well documented, I can see where one only using tomcat would not feel compelled to read the mod_jk or mod_jserv documentation. You can remove the ajp12 connector.. however...tomcat will no longer shutdown correctly. Meaning you won't be able to type "tomcat.sh stop" (or the windows equiv.). You could still kill it but it would nearly preclude using any kind of script. Anyhow, it doesn't take up much in the way of resouces just sitting there...leave it in. If you're worried about secuity block the port to outside traffic. -Andy --- I understand that ajp12 is a connector between Tomcat and a web server. So, if I only have Tomcat, then I would expect that I do not need to define it. However, I saw in docs that it is needed for Tomcat shutdown. So, bottom-line, is ajp12 needed for a stand alone Tomcat? If so, why?
Re: How to get rs.last() supported by Tomcat
First of all are you using a JDBC 2.0 driver? How are you creating your statement object. By default statement objects are forward-only. You need use a onverloaded version of the createStatement() method to make it scrollable, which is needed for the last() method. Check the jdk api docs for the exact syntax of the overloaded createStatement() method. scott. --- Jack Li [EMAIL PROTECTED] wrote: Hello, I need help on JDBC 2.0. I have Apache, Tomcat 3.2.1 and jdk1.3. But I can't call JDBC 2.x methods such as rs.last(). Any ideas? Thanks, Jack = ~~~ Scott __ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/
servlet mapping under tomcat4
Hi everyone, I'm having trouble getting servlet mapping to work under Tomcat 4.0-1-b1. In previous version of Tomcat, it was enough to just put your servlet mapping class in the "classes" directory under $TOMCAT_HOME and add this to your web.xml file: servlet-mapping servlet-name PyServlet /servlet-name url-pattern *.py /url-pattern /servlet-mapping and everything worked! If I do this with Tomcat 4.0-1-b1, I get this error when starting Tomcat. -- Using CATALINA_HOME: /home/mddevel/MD8/packages/jakarta-tomcat-4.0-b1/ Starting service Tomcat-Standalone Apache Tomcat/4.0-b1 ERROR reading java.io.FileInputStream@11c97e2 At Line 68 /web-app/servlet-mapping/ ERROR reading java.io.FileInputStream@1b52828 At Line 68 /web-app/servlet-mapping/ ERROR reading java.io.FileInputStream@1fb6e39 At Line 68 /web-app/servlet-mapping/ ERROR reading java.io.FileInputStream@5e10f8 At Line 68 /web-app/servlet-mapping/ ERROR reading java.io.FileInputStream@1ceb934 At Line 68 /web-app/servlet-mapping/ Starting service Tomcat-Apache So, I tried looking at the structure of the other servlet mapping files in web.xml and noticed that I might need to do this: servlet servlet-namePyServlet/servlet-name servlet-classmd8.util.PyServlet/servlet-class /servlet Everything seems to work when I startup Tomcat, but when I run a .py file (which should map it to PyServlet), it produces this error: - A Servlet Exception Has Occurred Exception Report: javax.servlet.ServletException: Class md8.util.PyServlet is not a Servlet at java.lang.Throwable.fillInStackTrace(Native Method) at java.lang.Throwable.fillInStackTrace(Compiled Code) at java.lang.Throwable.(Compiled Code) at java.lang.Exception.(Compiled Code) . . . Root Cause: java.lang.ClassCastException: md8.util.PyServlet at org.apache.catalina.core.StandardWrapper.load(Compiled Code) at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:544) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:227) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:977) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:196) . . . -- Can someone shed some light what might be happing? This class IS a servlet: public class PyServlet extends HttpServlet { static Hashtable servlets = new Hashtable(); // Cache for PyServlets static Hashtable dates = new Hashtable(); // Timestamps for Cache entries PythonInterpreter interp = new PythonInterpreter(); . . . Again, this used to work under the previous version of Tomcat just fine and it was considered to be a servlet. Thanks, Chris -- __ /\ \ \_| Christopher D. Gokey, SSAI, NASA/GCMD | | 18 Martin Road, Shelburne Falls, MA 01370 | | Phone: Voice (413) 625-8129 / FAX 208-248-9055 | | [EMAIL PROTECTED] / http://gcmd.nasa.gov| | ICQ #52132386, AOL IM: chrisgokey | | _|_ \_/__/
RE: Is ajp12 a necessity..if so why
On Sun, 18 Mar 2001, Andy wrote: Although I wouldn't normally answer this kind of question as the answer is well documented, I can see where one only using tomcat would not feel compelled to read the mod_jk or mod_jserv documentation. You can remove the ajp12 connector.. however...tomcat will no longer shutdown correctly. Meaning you won't be able to type "tomcat.sh stop" (or the windows equiv.). You could still kill it but it would nearly preclude using any kind of script. Anyhow, it doesn't take Well, you could still do it from a script -- by getting the pid (either from having saved it when tomcat started or by grepping the ps output). But I agree that that's probably not the best way to go. up much in the way of resouces just sitting there...leave it in. If you're worried about secuity block the port to outside traffic. -Andy --- I understand that ajp12 is a connector between Tomcat and a web server. So, if I only have Tomcat, then I would expect that I do not need to define it. However, I saw in docs that it is needed for Tomcat shutdown. So, bottom-line, is ajp12 needed for a stand alone Tomcat? If so, why? Milt Epstein Research Programmer Software/Systems Development Group Computing and Communications Services Office (CCSO) University of Illinois at Urbana-Champaign (UIUC) [EMAIL PROTECTED]
Re: Starting Tomcat in Apache
On Sun, 18 Mar 2001, Peter Bernard West wrote: Kenneth, I don't know enough about the Win environment. In the absence of a return value for the script, everything becomes uncertain. Under linux, tomcat is started in the background, and I assume the same thing is happening under Windows. The uncertainty is in the timing of the startup of java+tomcat, versus the completion of the startup.bat script. Is it possible to put a timeout in a batch file? Well, on UNIX, you could put in a loop that looks for the process in the output from ps (with some kind of timeout option). Perhaps there is some kind of equivalent on Windows. Kenneth Westelinck wrote: Peter, I'm not sure about this, since this has never occurred before. I make sure Tomcat is running fine on it's own and then bring in the startup script. If you have a workaround, please let me know. thanks, Kenneth Westelinck From: Peter Bernard West Reply-To: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Re: Starting Tomcat in Apache Date: Fri, 16 Mar 2001 12:17:13 +1000 In Windows, does a batch script exit if any of the commands fails? If it does not, the script will hang if startup.bat fails, or fails to produce mod_jk.conf-auto. Peter -- Peter B. West [EMAIL PROTECTED] http://powerup.com.au/~pbwest "Lord, to whom shall we go?" Milt Epstein Research Programmer Software/Systems Development Group Computing and Communications Services Office (CCSO) University of Illinois at Urbana-Champaign (UIUC) [EMAIL PROTECTED]
RE: How to get rs.last() supported by Tomcat
Scott, I created the statment by using: "createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY)" I pointed JAVA_HOME to c:\jdk1.3. As I know, jdk3.0 has JDBC 2.0 in it. When I used the javac to compile a similar program at DOS prompt and it worked fine. But the same code in JSP got no class error message. Do I need to install JDBC2.0 separately? Thanks, Jack -Original Message- From: Scott Walter [mailto:[EMAIL PROTECTED]] Sent: Sunday, March 18, 2001 10:11 AM To: [EMAIL PROTECTED] Subject: Re: How to get rs.last() supported by Tomcat First of all are you using a JDBC 2.0 driver? How are you creating your statement object. By default statement objects are forward-only. You need use a onverloaded version of the createStatement() method to make it scrollable, which is needed for the last() method. Check the jdk api docs for the exact syntax of the overloaded createStatement() method. scott. --- Jack Li [EMAIL PROTECTED] wrote: Hello, I need help on JDBC 2.0. I have Apache, Tomcat 3.2.1 and jdk1.3. But I can't call JDBC 2.x methods such as rs.last(). Any ideas? Thanks, Jack = ~~~ Scott __ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/
RE: How to get rs.last() supported by Tomcat
Tomcat will only look in the web-inf\classes and web-inf\jar directories for classes. If the driver is already packaged in a jar file place it in the web-inf\jar directory, otherwise place it in web-inf\classes. If you have just the classes to the driver, make sure the package structure remains intact under web-inf\classes You might have to restart tomcat for the effect to take place. --- Jack Li [EMAIL PROTECTED] wrote: Scott, I created the statment by using: "createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY)" I pointed JAVA_HOME to c:\jdk1.3. As I know, jdk3.0 has JDBC 2.0 in it. When I used the javac to compile a similar program at DOS prompt and it worked fine. But the same code in JSP got no class error message. Do I need to install JDBC2.0 separately? Thanks, Jack -Original Message- From: Scott Walter [mailto:[EMAIL PROTECTED]] Sent: Sunday, March 18, 2001 10:11 AM To: [EMAIL PROTECTED] Subject: Re: How to get rs.last() supported by Tomcat First of all are you using a JDBC 2.0 driver? How are you creating your statement object. By default statement objects are forward-only. You need use a onverloaded version of the createStatement() method to make it scrollable, which is needed for the last() method. Check the jdk api docs for the exact syntax of the overloaded createStatement() method. scott. --- Jack Li [EMAIL PROTECTED] wrote: Hello, I need help on JDBC 2.0. I have Apache, Tomcat 3.2.1 and jdk1.3. But I can't call JDBC 2.x methods such as rs.last(). Any ideas? Thanks, Jack = ~~~ Scott __ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/ = ~~~ Scott __ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/
Building Tomcat-3.2.1
Hi everybody, i downloaded the source of tomcat 3.2.1 and tried to build it. I followed the README and got ant, jaxp (1.0.1), jsse ... My setup: SuSE Linux 7.0, IBMJava2-13. Environment variables export JAKARTA_HOME=/opt export TOMCAT_HOME=/opt/jakarta-tomcat-3.2.1 export JAVA_HOME=/opt/IBMJava2-13 export JNDI_HOME=/usr/lib export JSSE_HOME=/usr/lib export JMX_HOME=/usr/lib export REGEXP_HOME=/usr/src/packages/SOURCES/jakarta-regexp-1.2/build export SERVLETAPI_HOME=/opt/dist/servletapi export JAXP_HOME=/opt/jaxpi-1.0.1 export CLASSPATH=/opt/IBMJava2-13/:/opt/IBMJava2-13/lib:/usr/lib:/opt/IBMJava2-13/lib/tools.jar:/opt/jaxp-1.0.1/jaxp.jar:/opt/dist/ant/lib/ant.jar:/opt/IBMJava2-13/jre/lib/rt.jar:/opt/jaxp-1.0.1/parser.jar:/usr/lib/jsse.jar:/opt/dist/servletapi/lib/serlvet.jar export COCOON_HOME=/var/cocoon The error i get when building: Buildfile: /opt/jakarta-tomcat-3.2.1-src/build.xml prepare: [copy] Copying 1 files to /opt/build/tomcat/conf [copy] Copying 1 files to /opt/build/tomcat/lib tomcat: [javac] Compiling 6 source files to /opt/build/tomcat/classes [javac] /opt/jakarta-tomcat-3.2.1-src/src/share/org/apache/tomcat/net/SSLSocketFactory.java:67: Class javax.net.ServerSocketFactory not found in import. [javac] import javax.net.ServerSocketFactory; [javac]^ [javac] /opt/jakarta-tomcat-3.2.1-src/src/share/org/apache/tomcat/facade/HttpServletResponseFacade.java:84: class org.apache.tomcat.facade.HttpServletResponseFacade must be declared abstract. It does not define void resetBuffer() from interface javax.servlet.ServletResponse. [javac] final class HttpServletResponseFacade implements HttpServletResponse [javac] ^ [javac] /opt/jakarta-tomcat-3.2.1-src/src/share/org/apache/tomcat/facade/ServletContextFacade.java:82: class org.apache.tomcat.facade.ServletContextFacade must be declared abstract. It does not define java.util.Set getResourcePaths() from interface javax.servlet.ServletContext. [javac] final class ServletContextFacade implements ServletContext { [javac] ^ [javac] /opt/jakarta-tomcat-3.2.1-src/src/share/org/apache/tomcat/facade/ServletContextFacade.java:82: class org.apache.tomcat.facade.ServletContextFacade must be declared abstract. It does not define java.lang.String getServletContextName() from interface javax.servlet.ServletContext. [javac] final class ServletContextFacade implements ServletContext { [javac] ^ [javac] /opt/jakarta-tomcat-3.2.1-src/src/share/org/apache/tomcat/facade/HttpServletRequestFacade.java:83: class org.apache.tomcat.facade.HttpServletRequestFacade must be declared abstract. It does not define java.lang.StringBuffer getRequestURL() from interface javax.servlet.http.HttpServletRequest. [javac] final class HttpServletRequestFacade implements HttpServletRequest { [javac] ^ [javac] /opt/jakarta-tomcat-3.2.1-src/src/share/org/apache/tomcat/facade/HttpServletRequestFacade.java:83: class org.apache.tomcat.facade.HttpServletRequestFacade must be declared abstract. It does not define void setCharacterEncoding(java.lang.String) from interface javax.servlet.ServletRequest. [javac] final class HttpServletRequestFacade implements HttpServletRequest { [javac] ^ [javac] /opt/jakarta-tomcat-3.2.1-src/src/share/org/apache/tomcat/facade/HttpServletRequestFacade.java:83: class org.apache.tomcat.facade.HttpServletRequestFacade must be declared abstract. It does not define java.util.Map getParameterMap() from interface javax.servlet.ServletRequest. [javac] final class HttpServletRequestFacade implements HttpServletRequest { [javac] ^ [javac] /opt/jakarta-tomcat-3.2.1-src/src/share/org/apache/jasper/runtime/PageContextImpl.java:99: class org.apache.jasper.runtime.PageContextImpl must be declared abstract. It does not define void handlePageException(java.lang.Throwable) from class javax.servlet.jsp.PageContext. [javac] public class PageContextImpl extends PageContext { [javac] ^ [javac] Note: 2 files use or override a deprecated API. Recompile with "-deprecation" for details.[javac] 8 errors, 1 warning BUILD FAILED /opt/jakarta-tomcat-3.2.1-src/build.xml:94: Compile failed, messages should have been provided. Total time: 28 seconds I suppose the javax stuff is in the jaxp/parser jars. I tried Version 1.1 and 1.0.1 from sun. Any ideas ? Thanks in advance Niels
RE: How to get rs.last() supported by Tomcat
Scott, I am not writing class. I am simple wring a jsp page. the source codes are: - %@ page import="java.sql.*"% % Connection con = null; try{ Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); con = DriverManager.getConnection("jdbc:odbc:internetdb", "", ""); Statement st = con.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY); ResultSet rs = st.executeQuery("Select * from HRExt"); rs.last(); out.println(rs.getRow()); rs.close(); con.close(); } catch(SQLException e){ System.err.println(e.getMessage()); } catch(Exception e){ System.err.println(e.getMessage()); } out.println("Hello World"); % - Thanks, Jack -Original Message- From: Scott Walter [mailto:[EMAIL PROTECTED]] Sent: Sunday, March 18, 2001 11:28 AM To: [EMAIL PROTECTED] Subject: RE: How to get rs.last() supported by Tomcat Tomcat will only look in the web-inf\classes and web-inf\jar directories for classes. If the driver is already packaged in a jar file place it in the web-inf\jar directory, otherwise place it in web-inf\classes. If you have just the classes to the driver, make sure the package structure remains intact under web-inf\classes You might have to restart tomcat for the effect to take place. --- Jack Li [EMAIL PROTECTED] wrote: Scott, I created the statment by using: "createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY)" I pointed JAVA_HOME to c:\jdk1.3. As I know, jdk3.0 has JDBC 2.0 in it. When I used the javac to compile a similar program at DOS prompt and it worked fine. But the same code in JSP got no class error message. Do I need to install JDBC2.0 separately? Thanks, Jack -Original Message- From: Scott Walter [mailto:[EMAIL PROTECTED]] Sent: Sunday, March 18, 2001 10:11 AM To: [EMAIL PROTECTED] Subject: Re: How to get rs.last() supported by Tomcat First of all are you using a JDBC 2.0 driver? How are you creating your statement object. By default statement objects are forward-only. You need use a onverloaded version of the createStatement() method to make it scrollable, which is needed for the last() method. Check the jdk api docs for the exact syntax of the overloaded createStatement() method. scott. --- Jack Li [EMAIL PROTECTED] wrote: Hello, I need help on JDBC 2.0. I have Apache, Tomcat 3.2.1 and jdk1.3. But I can't call JDBC 2.x methods such as rs.last(). Any ideas? Thanks, Jack = ~~~ Scott __ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/ = ~~~ Scott __ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/
Re: Applets, Servlets, Security issues
Try running policytools (it will update .java.policy not java.policy) Caprio, Mike wrote: Hi folks, I'm hoping someone on the list can point me in the right direction on a problem I'm having with applet to servlet communication. Specifically, I'm getting: java.security.AccessControlException: access denied (java.lang.RuntimePermission modifyThreadGroup) when I send an event to the applet that should start the applet to servlet communications. Another developer has given me several classes, developed in JBuilder, that I'm now trying to install into Tomcat. I've created entries in the appropriate conf files for a new web application, and set crossContext="true" so that I can get servlet contexts. I've set tomcat.policy to grant all permissions for the appropriate webapp directory. I've also changed the java.policy file in the JRE security directory to grant all permissions to the absolute URL that the webapp is at. I'm pretty much at the end of my rope. Can anyone out there give me a hand? Mike Caprio Software Engineer Microwave Radio Corporation [EMAIL PROTECTED]101 Billerica Avenue, Building 6 978-671-5770North Billerica, MA 01862-1256
Hanging Tomcat (Standlone) - problem and solution
FIY, If you are running Tomcat 3.x in standalone mode (that is, no Apache), you may want to take a look at bug #1006: http://nagoya.apache.org/bugzilla/show_bug.cgi?id=1006 It describes a major reliability problem we encountered and how we addressed it with a simple patch. Tal Disclaimer: it works for us so far, your miles may vary.
test
please disregard this message
[Tomcat-user] Servlet Context Parameter... illegal characters...
Hi, in my web.xml in the part that specifies: context-param param-namedatabaseURL/param-name /context-param this works: param-valuejdbc:mysql://localhost/db/param-value but this doesn't: param-valuejdbc:mysql://localhost/db?user=namepassword=pw/param-valu e Either the ? or the is messing up the parser... Is this a bug? or is there a way of escaping the special characters? Thanks! -Jim Carroll -Original Message- From: Martin Ko [mailto:[EMAIL PROTECTED]] Sent: Friday, March 16, 2001 9:08 PM To: [EMAIL PROTECTED] Subject: RE: escape() Problem... Thanks, Wouter M$ IE javascripting engine is working differently from NS js engine. That is, in NS, escape function returns uri encoded string by *%CF%DF* format, but in IE, escape function returns by *%uABCD* unicode format, and this lead to decode error in apache web server. Yes, to use java.net.URLDecorder.encode() is an only way to solve this problem. Thanks again. Martin At 03:54 2001-03-16 +0100, you wrote: Hi, Don't rely in JavaScript. Use java.net.URLDecoder.encode(), and java.net.URLEncoder.decode() before you push the parameters to the browser. Wouter -Original Message- From: Martin Ko [mailto:[EMAIL PROTECTED]] Sent: 16 March 2001 14:52 To: [EMAIL PROTECTED] Subject: escape() Problem... Hi, all. I wrote a jsp page which send request by QUERYSTRING with a parameter containing international characters, and which get the parameter. I'm working with apache as a web server and tomcat as a jsp engine. And, with Netscape browser, I encode the string by escape function (javascript) before sending it, and it works fine. However, in IE, it doesn't. When I use only tomcat as a web server without apache, I saw a strange thing. In this case, if I use escape function in NS, and if I don't use escape function in IE, then it goes well !! But with apache as a web server, this action does not solve the problem... So, I think I should set some configurations on apache web server, but I have no idea... Can anyone help me? My jsp page is: %@ page language="java" % javascript:test()Test -- %=request.getParameter("t1")% Regards Martin
Re: JDBC Driver
Try FreeTDS (www.freetds.org, I think). I've used their straight TDS driver with excellent results. They also have a Type 4 JDBC driver as well. I haven't had occasion to use it, but if it performs as well as the straight TDS driver, I'm sure you'll be pleased. Unfortunately it looks like their straight TDS driver and the JDBC TDS driver are developed by two separate teams. The JDBC driver is ok for queries and simple updates but from what I recall their idea about what is a connection and when to automatically close connections and commit transactions was quite non-standard. I'd provide more detail but it was almost a year ago that I used it (and the code to break it is on another machine). If you try it I think the following will show the problem: Get a connection: Call conn.setAutoCommit(false); get a prepared statement and update the database close the statement get another prepared statement and update the database close the statement commit the transaction close the connection. I think I remember their driver will either throw an exception somewhere along the way or not show one of the updates. HTH
Plese, could you comment on this.. Hanging Tomcat (Standlone) - problem and solution
On Sun, 18 Mar 2001 10:08:42 -0800, Tal Dayan wrote: http://nagoya.apache.org/bugzilla/show_bug.cgi?id=1006 This is a severe problem that opens Tomcat stand-alone mode to DOS attaches but more importantly, it makes it incapable of surviving a single busy day on a production system of one of our partners. Year Looks like you've caught A BIG FAT RAT!!! One of the BIGGEST!!! I'm a person responsible for all java-based-serving on our sites, not very loaded yet.. And looks like _this_ is the problem that has nearly given me _grey_ hair!!! (What i ended up developing is a pinging facility that would find if our nice good Tomcat is _DEAD_ and force-restart it!!!) The symptoms are that Tomcat's built-in Web server (standalone mode) accumulates.. Can this happen to Ajp12 connections also? Please, anybody! this is the main question that i'd like to find out: our Tomcat falls tead pretty often (guess what my bosses tell me when our sites stop responding!!!) and we do not know why.. The thing is that although we have built-in Web server set (http connectors) up for all Tomcat instances (we still have 3.2b7..), they are not practically used much (maybe not invoked at all).. They are used via Ajp12. Can this same thing happen in this configuration (with mod_jserv on Apache, Apache running on BSD, Tomcat on Linux RH 6.2) Most hearty greeting to evryone, sincerely yours, Tagunov Anthony
Re: Plese, could you comment on this.. Hanging Tomcat (Standlone) - problem and solution
We are running Apache 1.3.14 on FreeBSD 4.0, back ending on JServ 1.1b3 on the Sun 1.2.2 JVM on Linux 2.2.12 (RH 6.1) - multiple appservers, multiple VM's per, etc. I can tell you that this configuration is stable and resilient under large loads; we have tested it to destruction, and it degrades very gracefully starting by failing to serve some pages and then refusing connections. The main limitation we came across, largely a feature of Apjv12 which would presumably not affect 13 as much due to connection reuse, is running out of file descriptors for all the TCP/IP connections. Tagunov Anthony wrote: On Sun, 18 Mar 2001 10:08:42 -0800, Tal Dayan wrote: http://nagoya.apache.org/bugzilla/show_bug.cgi?id=1006 This is a severe problem that opens Tomcat stand-alone mode to DOS attaches but more importantly, it makes it incapable of surviving a single busy day on a production system of one of our partners. Year Looks like you've caught A BIG FAT RAT!!! One of the BIGGEST!!! I'm a person responsible for all java-based-serving on our sites, not very loaded yet.. And looks like _this_ is the problem that has nearly given me _grey_ hair!!! (What i ended up developing is a pinging facility that would find if our nice good Tomcat is _DEAD_ and force-restart it!!!) The symptoms are that Tomcat's built-in Web server (standalone mode) accumulates.. Can this happen to Ajp12 connections also? Please, anybody! this is the main question that i'd like to find out: our Tomcat falls tead pretty often (guess what my bosses tell me when our sites stop responding!!!) and we do not know why.. The thing is that although we have built-in Web server set (http connectors) up for all Tomcat instances (we still have 3.2b7..), they are not practically used much (maybe not invoked at all).. They are used via Ajp12. Can this same thing happen in this configuration (with mod_jserv on Apache, Apache running on BSD, Tomcat on Linux RH 6.2) Most hearty greeting to evryone, sincerely yours, Tagunov Anthony
Re: problem with JSP displaying broken image link
Yes, I captured the source and viewed it as an HTML page and the image links show up fine. They only show up as broken links in the JSP page. This seems to happen to images from geocities for some strange reason. -Jeff - Original Message - From: William Brogden [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, March 18, 2001 5:42 AM Subject: Re: problem with JSP displaying broken image link jdh wrote: I have been having trouble displaying images from my JSP(s). It seems like all my images that exist on http://www.geocities.com come up as broken image links.Is there a bug in the JSP server? I can display those images as plain .html file but not in my JSP. Thanks. I would start by capturing the generated page (view source) and carefully examining the way the links are being written. Is it valid HTML? -- WBB - [EMAIL PROTECTED] Java Cert mock exams http://www.lanw.com/java/javacert/ Author of Java Developer's Guide to Servlets and JSP ISBN 0-7821-2809-2
RE: RMI with the IIS/Tomcat behind a firewall
Take a look at the following link. It uses HTTP to connect to a servlet and then the servlet does everything else:- http://developer.java.sun.com/developer/technicalArticles/RMI/rmi/ It's all pure Java. Regards, Adam. Adam Fowler Second year Computer Science undergraduate University of Wales, Aberystwyth Carroll College, WI, USA(2000-2001) web: http://gucciboy.dyndns.org/aff9 e-mail: [EMAIL PROTECTED] "Every new beginning comes from some other beginning's end" -Original Message- From: Sascha Richter [mailto:[EMAIL PROTECTED]] Sent: Saturday, March 17, 2001 7:54 PM To: [EMAIL PROTECTED] Subject: RMI with the IIS/Tomcat behind a firewall Hello, I have an IIS webserver working with tomcat behind a firewall and we want to use RMI objects on our server. Because of the firewall we can not conntact to port 1099 directly. It seems to exists only two solution, the CGI script called java-rmi.cgi, which is available in the unix distribution of the jdk and a servlet called rmiservlethandler. I don't know how to adapted the CGI script to use it with the IIS webserver. So a context /rmiservlethandler is created on our server and it works. But the problem is, that RMI clients call /cgi-bin/java-rmi.cgi by default to tunnel a firewall. The readme says, that all calls for /cgi-bin/java-rmi.cgi should be redirected to the servlet. A redirect within the IIS fails, because the redirects doesn't work in a transparent manner, but by sending the client a redirect command (30X Error), requesting the client to reload the new url. This method seems not to work for RMI clients. Another method is, to map /cgi-bin/java-rmi.cgi to the ajp12 worker and to create a new context cgi-bin under tomcat and to rename the servletname rmiservlethandler in java-rmi.cgi. If the url /cgi-bin/servlet/java-rmi.cgi is called, it works, but if the url /cgi-bin/java-rmi.cgi is called, the servlet is naturally not found. I need to call /cgi-bin/java-rmi.cgi and not /cgi-bin/servlet/java-rmi.cgi to tunnel our firewall. Is there a way to map a request without having the "/servlet" path included ? Exists other methods to tunnel a firewall ? Thanks Sascha
Is there a maximum number of sessions in tomcat?
Title: Is there a maximum number of sessions in tomcat? at around 800 connections a red hat 7.0 machine with apache 1.3.19 and tomcat 3.2.1 starts dropping the established sessions saying, nope, i don't recall you logging in and then eventually *no one* gets in. is there some configable param in tomcat or should i just minimize the use of session variables?
Tomcat Ant and JDK
Hello there to all. I have recently complied Tomcat, Ant, and JDK and all went well. I did this on a P200 running slackware 7.0 Kernel 2.2.13. While building ant I rant into a little problem concerning libX11.so.6. Instead of installing all the X11 libs I just copied this file from another system running Xwindows. I had to create a link to libX11.so.6.2. After doing this all went well and apache, tomcat, ant, and JDK are working nicely. This was a test run on a private server so I could get more familiar with the whole process. Once I was confident I could reproduce the setup on a public server, I tried to do the same thing. I ran into the same problem with libX11.so.6. This time it was on a system running slackware 7.1 and kernel 2.2.18. I copied the same library from the Xwindows system (The Xwindows system runs slackware 7.0) but go another error instead: BUG IN DYNAMIC LINKER ld.so: dynamic-link.h: 57: elf_get_dynamic_info: Assertion "! "bad dynamic tag"' failed! What's going on. I tried ant v1.3 and v1.2 and it gives me the same error...Help!!! --- Juan Alberto Cirez - Chief Creative Officer [EMAIL PROTECTED] - [EMAIL PROTECTED] -- hip2linux Professional Services, Inc.--- - Fortalezza VPN/Firewall - Commandante Remote Network Management - Network Security - Intranet Extranet Management --- www.hip2linux.com www.micanno.com www.dominicanarmy.com www.basementsuite.com www.micanno.com www.fortalezza.com --- Sunny and Beautiful Vancouver, Canada. ---
Re: problem with JSP displaying broken image link
I have been having trouble displaying images from my JSP(s). It seems like all my images that exist on http://www.geocities.com come up as broken image links.Is there a bug in the JSP server? I can display those images as plain .html file but not in my JSP. Where is your JSP located ? On geocities.com or somewhere else ? They (like all free hosters) dont like hotlinking and dont send requested images if "Referer" isn't pointing to somewhere inside of geocities.com...
Re: servlet mapping under tomcat4
On Sun, 18 Mar 2001 [EMAIL PROTECTED] wrote: Hi everyone, I'm having trouble getting servlet mapping to work under Tomcat 4.0-1-b1. In previous version of Tomcat, it was enough to just put your servlet mapping class in the "classes" directory under $TOMCAT_HOME and add this to your web.xml file: servlet-mapping servlet-name PyServlet /servlet-name url-pattern *.py /url-pattern /servlet-mapping and everything worked! If I do this with Tomcat 4.0-1-b1, I get this error when starting Tomcat. -- Using CATALINA_HOME: /home/mddevel/MD8/packages/jakarta-tomcat-4.0-b1/ Starting service Tomcat-Standalone Apache Tomcat/4.0-b1 ERROR reading java.io.FileInputStream@11c97e2 At Line 68 /web-app/servlet-mapping/ ERROR reading java.io.FileInputStream@1b52828 At Line 68 /web-app/servlet-mapping/ ERROR reading java.io.FileInputStream@1fb6e39 At Line 68 /web-app/servlet-mapping/ ERROR reading java.io.FileInputStream@5e10f8 At Line 68 /web-app/servlet-mapping/ ERROR reading java.io.FileInputStream@1ceb934 At Line 68 /web-app/servlet-mapping/ Which line is line 68? Starting service Tomcat-Apache So, I tried looking at the structure of the other servlet mapping files in web.xml and noticed that I might need to do this: servlet servlet-namePyServlet/servlet-name servlet-classmd8.util.PyServlet/servlet-class /servlet Yes, you will need this entry to use a servlet mapping, and it must appear *before* the servlet-mapping entry in order to satisfy the DTD requirements. Everything seems to work when I startup Tomcat, but when I run a .py file (which should map it to PyServlet), it produces this error: - A Servlet Exception Has Occurred Exception Report: javax.servlet.ServletException: Class md8.util.PyServlet is not a Servlet Well, at least it is recognizing the mapping correctly :-) at java.lang.Throwable.fillInStackTrace(Native Method) at java.lang.Throwable.fillInStackTrace(Compiled Code) at java.lang.Throwable.(Compiled Code) at java.lang.Exception.(Compiled Code) . . . Root Cause: java.lang.ClassCastException: md8.util.PyServlet at org.apache.catalina.core.StandardWrapper.load(Compiled Code) at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:544) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:227) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:977) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:196) . . . There were some older nightly builds of Tomcat 4.0 that exhibited this problem due to bugs in Tomcat, but they were cleaned up by beta 1. What version are you trying? -- Can someone shed some light what might be happing? This class IS a servlet: public class PyServlet extends HttpServlet { static Hashtable servlets = new Hashtable(); // Cache for PyServlets static Hashtable dates = new Hashtable(); // Timestamps for Cache entries PythonInterpreter interp = new PythonInterpreter(); . . . Again, this used to work under the previous version of Tomcat just fine and it was considered to be a servlet. The only other possibility I can think of is if you have a copy of "servlet.jar" in your system extensions directory ($JAVA_HOME/jre/lib/ext). If so, this will interfere in nasty ways with the class loaders in Tomcat 4.0, because Tomcat expects to use the "servlet.jar" file that is in $TOMCAT_HOME/common/lib (in current nightly builds). Thanks, Chris Craig McClanahan
Re: [Tomcat-user] Servlet Context Parameter... illegal characters...
On Sun, 18 Mar 2001, James Carroll wrote: Hi, in my web.xml in the part that specifies: context-param param-namedatabaseURL/param-name /context-param this works: param-valuejdbc:mysql://localhost/db/param-value but this doesn't: param-valuejdbc:mysql://localhost/db?user=namepassword=pw/param-valu e Either the ? or the is messing up the parser... It's definitely the "", which is normally the prefix for an XML escape. Replace "" by "amp;" and it should work. Is this a bug? or is there a way of escaping the special characters? Thanks! -Jim Carroll Craig McClanahan
Looking for mod_jk.so under solaris 2.7
I am having problem adding the mod_jk.so under solaris 2.7. Can somebody here help? Thanks I am getting this error below # apxs -o mod_jk.so -c -I/usr/j2se/include -I/usr/j2se/include/solaris -I../jk/ -l posix4 -DSOLARIS *.c ../jk/*.c gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/usr/lo cal/ etc/apache/include -I/usr/j2se/include -I/usr/j2se/include/solaris -I../jk/ -DSO LARIS -c mod_jk.c gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/usr/lo cal/ etc/apache/include -I/usr/j2se/include -I/usr/j2se/include/solaris -I../jk/ -DSO LARIS -c ../jk/jk_ajp12_worker.c gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/usr/lo cal/ etc/apache/include -I/usr/j2se/include -I/usr/j2se/include/solaris -I../jk/ -DSO LARIS -c ../jk/jk_ajp13.c gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/usr/lo cal/ etc/apache/include -I/usr/j2se/include -I/usr/j2se/include/solaris -I../jk/ -DSO LARIS -c ../jk/jk_ajp13_worker.c gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/usr/lo cal/ etc/apache/include -I/usr/j2se/include -I/usr/j2se/include/solaris -I../jk/ -DSO LARIS -c ../jk/jk_connect.c gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/usr/lo cal/ etc/apache/include -I/usr/j2se/include -I/usr/j2se/include/solaris -I../jk/ -DSO LARIS -c ../jk/jk_jni_worker.c gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/usr/lo cal/ etc/apache/include -I/usr/j2se/include -I/usr/j2se/include/solaris -I../jk/ -DSO LARIS -c ../jk/jk_lb_worker.c gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/usr/lo cal/ etc/apache/include -I/usr/j2se/include -I/usr/j2se/include/solaris -I../jk/ -DSO LARIS -c ../jk/jk_map.c gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/usr/lo cal/ etc/apache/include -I/usr/j2se/include -I/usr/j2se/include/solaris -I../jk/ -DSO LARIS -c ../jk/jk_msg_buff.c gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/usr/lo cal/ etc/apache/include -I/usr/j2se/include -I/usr/j2se/include/solaris -I../jk/ -DSO LARIS -c ../jk/jk_nwmain.c gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/usr/lo cal/ etc/apache/include -I/usr/j2se/include -I/usr/j2se/include/solaris -I../jk/ -DSO LARIS -c ../jk/jk_pool.c gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/usr/lo cal/ etc/apache/include -I/usr/j2se/include -I/usr/j2se/include/solaris -I../jk/ -DSO LARIS -c ../jk/jk_sockbuf.c gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/usr/lo cal/ etc/apache/include -I/usr/j2se/include -I/usr/j2se/include/solaris -I../jk/ -DSO LARIS -c ../jk/jk_uri_worker_map.c gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/usr/lo cal/ etc/apache/include -I/usr/j2se/include -I/usr/j2se/include/solaris -I../jk/ -DSO LARIS -c ../jk/jk_util.c gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/usr/lo cal/ etc/apache/include -I/usr/j2se/include -I/usr/j2se/include/solaris -I../jk/ -DSO LARIS -c ../jk/jk_worker.c -o mod_jk.so jk_worker.o jk_util.o jk_uri_worker_map.o jk_sockbuf.o jk_pool.o jk_nwmain.o jk_msg_buff.o jk_map.o jk_lb_worker.o jk_jni_worker.o jk_connect.o j k_ajp13_worker.o jk_ajp13.o jk_ajp12_worker.o mod_jk.o -lposix4 apxs:Break: Command failed with rc=16711680 C.M. Rahman Network Engineer CCS Internet 13740 Research Blvd. Suite O-4 Austin, TX 78758 [EMAIL PROTECTED]
Tomcat can't start by daemon in Digital UNIX V4.0F (alpha)
OSDigital UNIX V4.0F (alpha) Tomcatjakarta-tomcat-3.2.1 JDKjdk1.2.2 Tomcat can't start by daemon in Digital UNIX V4.0F (alpha) I started Tomcat using 'startup.sh', and then logout Login, and then Tomcat be stoped thank you!! ^^! I am sorry! I am not good at English.
NEW_LOADER in m1 tomcat.sh
Can someone please tell me more about this change in the tomcat.sh startup script? It looks like jars in TOMCAT_HOME/lib are no longer geting added to the classpath- is this the new model? In my project I like to deploy the jars directly to TOMCAT_HOME/lib where they will be found when Tomcat starts up. If someone knows what I should do under the "NEW_LOADER" approach let me know. Thanks, Jason -- Jason Novotny [EMAIL PROTECTED] Home: (510) 704-9917Work: (510) 486-8662 NERSC Distributed Computing http://www-didc.lbl.gov
Re: Tomcat can't start by daemon in Digital UNIX V4.0F (alpha)
On Mon, 19 Mar 2001, [ks_c_5601-1987] Á¤¸í¿ì wrote: OS Digital UNIX V4.0F (alpha) Tomcatjakarta-tomcat-3.2.1 JDK jdk1.2.2 Tomcat can't start by daemon in Digital UNIX V4.0F (alpha) I started Tomcat using 'startup.sh', and then logout Login, and then Tomcat be stoped thank you!! ^^! Run it in the background by appending an "" to the command, i.e.: startup.sh People may suggest useing nohup, a la: nohup startup.sh But with many/most shells, running something in the background automatically nohups it. Milt Epstein Research Programmer Software/Systems Development Group Computing and Communications Services Office (CCSO) University of Illinois at Urbana-Champaign (UIUC) [EMAIL PROTECTED]
JSP Explorer and Tomcat documentation
I've been working on some documentation for Tomcat, the open source reference platform for Java Servlets and Java Server Pages (JSP). I paused along the way to create a tool that I call JSP Explorer, and I'm pretty excited by it! You can try JSP Explorer for free at http://tomcat.mslinn.com/ JSP Explorer is a useful tool for programmers who use JSP and/or Java to develop program fragments, and for Java students to learn by playing with example programs. JSP Explorer differs from traditional IDEs (Integrated Development Environments) in that it is a web application, and runs from a web browser. This allows for some interesting applications, such as creating online programming manuals and 'live' API documentation that can be clicked on. Sample program fragments can be 'brought to life' and run so that the reader can experiment with the code presented. I'd love to receive feedback on JSP Explorer! Let me know what you think. Can you see how you might be able to use this tool? Mike --- Michael Slinn tel: 1-650-571-8436 eFax: 1-413- 581-2104 mslinn.com, inc. 4230 Wooster Ave, San Mateo, CA 94403-5051 http://www.mslinn.com
RE: Servlet path configuration in Tomcat/Apache
Hi. I am trying to change the physical path for servlets as well in Unix Enivroment. Do you have a copy of server.xml for me to check against mine? Appreciate if you can share and thanks in advance. --Original Message-- From: "Zhengan Cai" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: March 15, 2001 4:51:02 AM GMT Subject: Servlet path configuration in Tomcat/Apache Dear Sir/Madam: I have installed Apache 1.3.19 and Tomcat 3.2.1 to my Win2000. I configured both Apache and Tomcat, set the path and classpath to the system. Apache can run JSP and Servlets for the system provided test examples only. Now I would like to add my own servlet files(in .class) to Tomcat. I created a folder " mytest" at the same level of "examples" in the tomcat, ie: c:\tomcat\webapps\examples c:\tomcat\webapps\mytest I added "mytest" in the "Server.xml" to let the system create new context. In the "examples" test HTML file, the servlet path has been set up to " .../servlet/HelloWorldExample"... Comparing to that, I setup my servlet path to "../servlet/x" Now my problem is: I create a test HTML file with test button on it. When I click the button, it says the page can't be found. If you have time, Could you tell me: 1. How to put my own file(jsp, servlet, HTML) in the Tomcat or Apache? 2. How to configure the Tomcat or Apache for the Servlet path? Thanks very much. Have a nice day! Terry --- FREE! The World's Best Email Address @email.com Reserve your name now at http://www.email.com
MySql Problem
Hi I am trying to Acces MySql thru JDBC using mmysql driver. But when I run thru Servlets in Tomcat it doesnot read the org.apache class. Can anyone say where should I keep my jar files when I acces the data from Servlets. Thanx in advance. DINMAN Enjoy being an Indyan at http://www.indya.com
Re: MySql Problem
Here's the location of the mm driver in an application called HOME \tomcat-3.21\webapps\home\WEB-INF\classes\org\gjt\mm\mysql Move the "org" directory after unpacking to the classes directory of your application, thus org.gjt.mm.mysql.Driver corresponds to the directory structure given. Generically, you would place the "org" directory into the same class directory as your servlet. that's for the JDBC driver, but you mentioned the org.apache classes. This is installed as part of the Tomcat installation in the "source" directory. If you followed the installation instructions, it should be setup. What kind of error message are getting? -- Neill Laney http://home.nc.rr.com/nlaney -- Web Developer/Technical Support Specialist. java4dinman@i ndya.com To: [EMAIL PROTECTED] cc: 03/18/2001 Subject: MySql Problem 10:51 PM Please respond to tomcat-user Hi I am trying to Acces MySql thru JDBC using mmysql driver. But when I run thru Servlets in Tomcat it doesnot read the org.apache class. Can anyone say where should I keep my jar files when I acces the data from Servlets. Thanx in advance. DINMAN Enjoy being an Indyan at http://www.indya.com
Re: problem with JSP displaying broken image link
My JSP is located on my own server (ISP is pacbell). The images are hosted by geocities. -Jeff - Original Message - From: Igor Shevchenko [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, March 18, 2001 1:51 PM Subject: Re: problem with JSP displaying broken image link I have been having trouble displaying images from my JSP(s). It seems like all my images that exist on http://www.geocities.com come up as broken image links.Is there a bug in the JSP server? I can display those images as plain .html file but not in my JSP. Where is your JSP located ? On geocities.com or somewhere else ? They (like all free hosters) dont like hotlinking and dont send requested images if "Referer" isn't pointing to somewhere inside of geocities.com...
Re: MySql Problem
Hi Dinman, Did you set your classpath to point the location where you place you mmysql driver? Actually you can place the driver anywhere you like provided that you set the classpath correctly! Of course ,you have to prefix the driver class with the correct package name e.g. org.gjt.mm.mysql.Driver Believe it or not, many people mistype the "gjt" package name as "git" and thus result in a Driver not found error! Regards Dick Poon - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, March 19, 2001 11:51 AM Subject: MySql Problem Hi I am trying to Acces MySql thru JDBC using mmysql driver. But when I run thru Servlets in Tomcat it doesnot read the org.apache class. Can anyone say where should I keep my jar files when I acces the data from Servlets. Thanx in advance. DINMAN Enjoy being an Indyan at http://www.indya.com
Re: MySql Problem
Since I work with MySQL both in servlets and in regular applications, I have the jar file in the lib/ext directory of the jre. But I have no idea what you're referring to by the org.apache class. I know of only two MySQL drivers, twz1.jdbc.mysql and org/gjt/mm/mysql. Of those, only the latter is still being actively maintained. -- Rob --On Sunday, March 18, 2001 07:51:53 PM -0800 [EMAIL PROTECTED] wrote: Hi I am trying to Acces MySql thru JDBC using mmysql driver. But when I run thru Servlets in Tomcat it doesnot read the org.apache class. Can anyone say where should I keep my jar files when I acces the data from Servlets. Thanx in advance. DINMAN Enjoy being an Indyan at http://www.indya.com _ _ _ _ __ _ _ _ _ /\_\_\_\_\/\_\ /\_\_\_\_\_\ /\/_/_/_/_/ /\/_/ \/_/_/_/_/_/ QUIDQUID LATINE DICTUM SIT, /\/_/__\/_/ __/\/_//\/_/ PROFUNDUM VIDITUR /\/_/_/_/_/ /\_\ /\/_//\/_/ /\/_/ \/_/ /\/_/_/\/_//\/_/ (Whatever is said in Latin \/_/ \/_/ \/_/_/_/_/ \/_/ appears profound) Rob Tanner McMinnville, Oregon [EMAIL PROTECTED]
Re: Starting Tomcat in Apache
Hi, Tomcat and Apache are not running in background. It should be possible to run both Apache and Tomcat as a service. If this is the case, than indeed you are uncertain about the result of the script. If however you run the script in a command window, you can see immediately if something goes wrong. When executing the script, two windows should popup. If not, something is wrong. The thing I love about Linux/Unix is that you can easily run everything without anyone being logged into the system. In windows you can use services, but I find it hard to work with (compared to *NIX systems). I'm almost certain that, when using this: :loop if not exist "%TOMCAT_HOME%\conf\mod_jk.conf-auto" goto loop Apache will include the correct, and complete mod_jk.conf-auto. If, for some reason, Tomcat fails to produce this file the script gets in an infinite loop. A better script would be: start Tomcat :loop wait a second increment a counter if (the file is not there) and (counter 10) goto loop if (the counter 10) goto start_apache echo "failed to start Tomcat and Apache" goto end :start_apache start Apache :end I know it's not nice programming, but I don't know if there's any other way to do this in a .bat file. I don't even know how to use a counter in a .bat file. Anyway the script works fine if nothing goes wrong. If something goes wrong than I have a problem. If there's anyone who knows a better way to do this (ie a better startup script) please let me know. regards, Kenneth Westelinck From: Peter Bernard West [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Re: Starting Tomcat in Apache Date: Sun, 18 Mar 2001 13:58:02 +1000 Kenneth, I don't know enough about the Win environment. In the absence of a return value for the script, everything becomes uncertain. Under linux, tomcat is started in the background, and I assume the same thing is happening under Windows. The uncertainty is in the timing of the startup of java+tomcat, versus the completion of the startup.bat script. Is it possible to put a timeout in a batch file? Peter Kenneth Westelinck wrote: Peter, I'm not sure about this, since this has never occurred before. I make sure Tomcat is running fine on it's own and then bring in the startup script. If you have a workaround, please let me know. thanks, Kenneth Westelinck From: Peter Bernard West Reply-To: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Re: Starting Tomcat in Apache Date: Fri, 16 Mar 2001 12:17:13 +1000 In Windows, does a batch script exit if any of the commands fails? If it does not, the script will hang if startup.bat fails, or fails to produce mod_jk.conf-auto. Peter -- Peter B. West [EMAIL PROTECTED] http://powerup.com.au/~pbwest "Lord, to whom shall we go?" _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
RE: NEW_LOADER in m1 tomcat.sh
Can someone please tell me more about this change in the tomcat.sh startup script? It looks like jars in TOMCAT_HOME/lib are no longer geting added to the classpath- is this the new model? In my project I like to deploy the jars directly to TOMCAT_HOME/lib where they will be found when Tomcat starts up. If someone knows what I should do under the "NEW_LOADER" approach let me know. The new loader schema split the jar in 3 categories : 1) container only (ie only used by tomcat) TOMCAT_HOME/lib/container 2) application only (only needed by webapps) TOMCAT_HOME/lib/apps 3) common (used by webapps and tomcat) TOMCAT_HOME/lib/common
RE: Plese, could you comment on this.. Hanging Tomcat (Standlone) - problem and solution
I think the Ajp connector is configured by default to use the PoolTcpConnector connector which uses PoolTcpEndpoint, so the problem may affect Ajp as well. Maybe one of the Tomcat experts on the list can elaborate on this. Tal -Original Message- From: Tagunov Anthony [mailto:[EMAIL PROTECTED]] Sent: Sunday, March 18, 2001 10:50 AM To: [EMAIL PROTECTED] Subject: Plese, could you comment on this.. Hanging Tomcat (Standlone) - problem and solution On Sun, 18 Mar 2001 10:08:42 -0800, Tal Dayan wrote: http://nagoya.apache.org/bugzilla/show_bug.cgi?id=1006 This is a severe problem that opens Tomcat stand-alone mode to DOS attaches but more importantly, it makes it incapable of surviving a single busy day on a production system of one of our partners. Year Looks like you've caught A BIG FAT RAT!!! One of the BIGGEST!!! I'm a person responsible for all java-based-serving on our sites, not very loaded yet.. And looks like _this_ is the problem that has nearly given me _grey_ hair!!! (What i ended up developing is a pinging facility that would find if our nice good Tomcat is _DEAD_ and force-restart it!!!) The symptoms are that Tomcat's built-in Web server (standalone mode) accumulates.. Can this happen to Ajp12 connections also? Please, anybody! this is the main question that i'd like to find out: our Tomcat falls tead pretty often (guess what my bosses tell me when our sites stop responding!!!) and we do not know why.. The thing is that although we have built-in Web server set (http connectors) up for all Tomcat instances (we still have 3.2b7..), they are not practically used much (maybe not invoked at all).. They are used via Ajp12. Can this same thing happen in this configuration (with mod_jserv on Apache, Apache running on BSD, Tomcat on Linux RH 6.2) Most hearty greeting to evryone, sincerely yours, Tagunov Anthony
MySql Problem (Error Message) Thanx
I dont know why its looking for MyODBC Unable to load driver. java.sql.SQLException: [TCX][MyODBC]Can't connect to MySQL server on 'localhost' (10061) at sun.jdbc.odbc.JdbcOdbc.createSQLException (JdbcOdbc.java:6031) at sun.jdbc.odbc.JdbcOdbc.standardError(JdbcOdbc.java:6188) at sun.jdbc.odbc.JdbcOdbc.SQLDriverConnect(JdbcOdbc.java:2458) at sun.jdbc.odbc.JdbcOdbcConnection.initialize (JdbcOdbcConnection.java:320) at sun.jdbc.odbc.JdbcOdbcDriver.connect (JdbcOdbcDriver.java:163) at java.sql.DriverManager.getConnection (DriverManager.java:517) at java.sql.DriverManager.getConnection (DriverManager.java:177) at test1.doGet(test1.java:38) at javax.servlet.http.HttpServlet.service (HttpServlet.java:740) at javax.servlet.http.HttpServlet.service (HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (ApplicationFilterChain.j ava:246) at org.apache.catalina.core.ApplicationFilterChain.doFilter (ApplicationFilterChain.java:191) at filters.ExampleFilter.doFilter(ExampleFilter.java:140) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (ApplicationFilterChain.j ava:211) at org.apache.catalina.core.ApplicationFilterChain.doFilter (ApplicationFilterChain.java:191) at org.apache.catalina.core.StandardWrapperValve.invoke (StandardWrapperValve.java:254) at org.apache.catalina.core.StandardPipeline.invokeNext (StandardPipeline.java:566) at org.apache.catalina.core.StandardPipeline.invoke (StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke (ContainerBase.java:879) at org.apache.catalina.core.StandardContextValve.invoke (StandardContextValve.java:201) at org.apache.catalina.core.StandardPipeline.invokeNext (StandardPipeline.java:566) at org.apache.catalina.authenticator.AuthenticatorBase.invoke (AuthenticatorBase.java:468) at org.apache.catalina.core.StandardPipeline.invokeNext (StandardPipeline.java:564) at org.apache.catalina.core.StandardPipeline.invoke (StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke (ContainerBase.java:879) at org.apache.catalina.core.StandardContext.invoke (StandardContext.java:2119) at org.apache.catalina.core.StandardHostValve.invoke (StandardHostValve.java:164) at org.apache.catalina.core.StandardPipeline.invokeNext (StandardPipeline.java:566) at org.apache.catalina.valves.AccessLogValve.invoke (AccessLogValve.java:446) at org.apache.catalina.core.StandardPipeline.invokeNext (StandardPipeline.java:564) at org.apache.catalina.core.StandardPipeline.invoke (StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke (ContainerBase.java:879) at org.apache.catalina.core.StandardEngineValve.invoke (StandardEngineValve.java:162) at org.apache.catalina.core.StandardPipeline.invokeNext (StandardPipeline.java:566) at org.apache.catalina.core.StandardPipeline.invoke (StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke (ContainerBase.java:879) at org.apache.catalina.connector.http.HttpProcessor.process (HttpProcessor.java:818) at org.apache.catalina.connector.http.HttpProcessor.run (HttpProcessor.java:893) at java.lang.Thread.run(Thread.java:484) Enjoy being an Indyan at http://www.indya.com
MySql Problem (Error Message) Thanx
I dont know why its looking for MyODBC Unable to load driver. java.sql.SQLException: [TCX][MyODBC]Can't connect to MySQL server on 'localhost' (10061) at sun.jdbc.odbc.JdbcOdbc.createSQLException (JdbcOdbc.java:6031) at sun.jdbc.odbc.JdbcOdbc.standardError(JdbcOdbc.java:6188) at sun.jdbc.odbc.JdbcOdbc.SQLDriverConnect(JdbcOdbc.java:2458) at sun.jdbc.odbc.JdbcOdbcConnection.initialize (JdbcOdbcConnection.java:320) at sun.jdbc.odbc.JdbcOdbcDriver.connect (JdbcOdbcDriver.java:163) at java.sql.DriverManager.getConnection (DriverManager.java:517) at java.sql.DriverManager.getConnection (DriverManager.java:177) at test1.doGet(test1.java:38) at javax.servlet.http.HttpServlet.service (HttpServlet.java:740) at javax.servlet.http.HttpServlet.service (HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (ApplicationFilterChain.j ava:246) at org.apache.catalina.core.ApplicationFilterChain.doFilter (ApplicationFilterChain.java:191) at filters.ExampleFilter.doFilter(ExampleFilter.java:140) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (ApplicationFilterChain.j ava:211) at org.apache.catalina.core.ApplicationFilterChain.doFilter (ApplicationFilterChain.java:191) at org.apache.catalina.core.StandardWrapperValve.invoke (StandardWrapperValve.java:254) at org.apache.catalina.core.StandardPipeline.invokeNext (StandardPipeline.java:566) at org.apache.catalina.core.StandardPipeline.invoke (StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke (ContainerBase.java:879) at org.apache.catalina.core.StandardContextValve.invoke (StandardContextValve.java:201) at org.apache.catalina.core.StandardPipeline.invokeNext (StandardPipeline.java:566) at org.apache.catalina.authenticator.AuthenticatorBase.invoke (AuthenticatorBase.java:468) at org.apache.catalina.core.StandardPipeline.invokeNext (StandardPipeline.java:564) at org.apache.catalina.core.StandardPipeline.invoke (StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke (ContainerBase.java:879) at org.apache.catalina.core.StandardContext.invoke (StandardContext.java:2119) at org.apache.catalina.core.StandardHostValve.invoke (StandardHostValve.java:164) at org.apache.catalina.core.StandardPipeline.invokeNext (StandardPipeline.java:566) at org.apache.catalina.valves.AccessLogValve.invoke (AccessLogValve.java:446) at org.apache.catalina.core.StandardPipeline.invokeNext (StandardPipeline.java:564) at org.apache.catalina.core.StandardPipeline.invoke (StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke (ContainerBase.java:879) at org.apache.catalina.core.StandardEngineValve.invoke (StandardEngineValve.java:162) at org.apache.catalina.core.StandardPipeline.invokeNext (StandardPipeline.java:566) at org.apache.catalina.core.StandardPipeline.invoke (StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke (ContainerBase.java:879) at org.apache.catalina.connector.http.HttpProcessor.process (HttpProcessor.java:818) at org.apache.catalina.connector.http.HttpProcessor.run (HttpProcessor.java:893) at java.lang.Thread.run(Thread.java:484) Enjoy being an Indyan at http://www.indya.com
Re: MySql Problem (Error Message) Thanx
What does your connection syntax look like? Are you using the correct driver? What is the package name? There is a mailing list for Java-MySQL that deals with JDBC and MySQL exclusively if you aren't able to get an answer here. I subscribe to it as well. [EMAIL PROTECTED] Neill Laney http://home.nc.rr.com/nlaney -- Web Developer/Technical Support Specialist. java4dinman@i ndya.com To: [EMAIL PROTECTED] cc: 03/19/2001 Subject: MySql Problem (Error Message) Thanx 02:07 AM Please respond to tomcat-user I dont know why its looking for MyODBC Unable to load driver. java.sql.SQLException: [TCX][MyODBC]Can't connect to MySQL server on 'localhost' (10061) at sun.jdbc.odbc.JdbcOdbc.createSQLException (JdbcOdbc.java:6031) at sun.jdbc.odbc.JdbcOdbc.standardError(JdbcOdbc.java:6188) at sun.jdbc.odbc.JdbcOdbc.SQLDriverConnect(JdbcOdbc.java:2458) at sun.jdbc.odbc.JdbcOdbcConnection.initialize (JdbcOdbcConnection.java:320) at sun.jdbc.odbc.JdbcOdbcDriver.connect (JdbcOdbcDriver.java:163) at java.sql.DriverManager.getConnection (DriverManager.java:517) at java.sql.DriverManager.getConnection (DriverManager.java:177) at test1.doGet(test1.java:38) at javax.servlet.http.HttpServlet.service (HttpServlet.java:740) at javax.servlet.http.HttpServlet.service (HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (ApplicationFilterChain.j ava:246) at org.apache.catalina.core.ApplicationFilterChain.doFilter (ApplicationFilterChain.java:191) at filters.ExampleFilter.doFilter(ExampleFilter.java:140) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (ApplicationFilterChain.j ava:211) at org.apache.catalina.core.ApplicationFilterChain.doFilter (ApplicationFilterChain.java:191) at org.apache.catalina.core.StandardWrapperValve.invoke (StandardWrapperValve.java:254) at org.apache.catalina.core.StandardPipeline.invokeNext (StandardPipeline.java:566) at org.apache.catalina.core.StandardPipeline.invoke (StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke (ContainerBase.java:879) at org.apache.catalina.core.StandardContextValve.invoke (StandardContextValve.java:201) at org.apache.catalina.core.StandardPipeline.invokeNext (StandardPipeline.java:566) at org.apache.catalina.authenticator.AuthenticatorBase.invoke (AuthenticatorBase.java:468) at org.apache.catalina.core.StandardPipeline.invokeNext (StandardPipeline.java:564) at org.apache.catalina.core.StandardPipeline.invoke (StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke (ContainerBase.java:879) at org.apache.catalina.core.StandardContext.invoke (StandardContext.java:2119) at org.apache.catalina.core.StandardHostValve.invoke (StandardHostValve.java:164) at org.apache.catalina.core.StandardPipeline.invokeNext (StandardPipeline.java:566) at org.apache.catalina.valves.AccessLogValve.invoke (AccessLogValve.java:446) at org.apache.catalina.core.StandardPipeline.invokeNext (StandardPipeline.java:564) at org.apache.catalina.core.StandardPipeline.invoke (StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke (ContainerBase.java:879) at org.apache.catalina.core.StandardEngineValve.invoke (StandardEngineValve.java:162) at org.apache.catalina.core.StandardPipeline.invokeNext (StandardPipeline.java:566) at org.apache.catalina.core.StandardPipeline.invoke (StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke (ContainerBase.java:879) at org.apache.catalina.connector.http.HttpProcessor.process (HttpProcessor.java:818) at org.apache.catalina.connector.http.HttpProcessor.run
Re: problem with JSP displaying broken image link
My JSP is located on my own server (ISP is pacbell). The images are hosted by geocities. Do you pay for hosting on geocities ? If not then this is a hotlinking - you're trying to cheat them by stealing their traffic... So dont be surprised that images are not downloading - protection from such cheats is quite simple (using mod_rewrite). Regards, Igor -Jeff I have been having trouble displaying images from my JSP(s). It seems like all my images that exist on http://www.geocities.com come up as broken image links.Is there a bug in the JSP server? I can display those images as plain .html file but not in my JSP. Where is your JSP located ? On geocities.com or somewhere else ? They (like all free hosters) dont like hotlinking and dont send requested images if "Referer" isn't pointing to somewhere inside of geocities.com...
My code
My application works perfectly fine with the public static void main but not with Servlets in Tomcat import java.sql.*; import javax.servlet.*; import javax.servlet.http.*; import java.io.*; public class IDSTest2 extends HttpServlet{ public void doGet(HttpServletRequest request, HttpServletResponse res) throws IOException, ServletException { PrintWriter out = new PrintWriter(res.getOutputStream()); res.setContentType("text/html"); out.println("html"); out.println("head"); out.println("titleTESTING /title"); out.println("/head"); String name,pass; try { Class.forName ("org.gjt.mm.mysql.Driver").newInstance(); Connection C = DriverManager.getConnection ("jdbc:mysql://localhost:3306/test?user=nobody"); out.println("Connection Established"); Statement st = C.createStatement(); ResultSet rs = st.executeQuery("Select * from Login"); while (rs.next()) { name = rs.getString("name"); pass = rs.getString("Password"); out.println(name); out.println(pass); } st.close(); } catch (Exception E) { System.err.println("Unable to load driver."); E.printStackTrace(); } } The Start of the Error is Unable to load driver. java.sql.SQLException: [TCX][MyODBC]Can't connect to MySQL server on 'localhost' (10061) at sun.jdbc.odbc.JdbcOdbc.createSQLException (JdbcOdbc.java:6031) at sun.jdbc.odbc.JdbcOdbc.standardError(JdbcOdbc.java:6188) at sun.jdbc.odbc.JdbcOdbc.SQLDriverConnect(JdbcOdbc.java:2458) at sun.jdbc.odbc.JdbcOdbcConnection.initialize (JdbcOdbcConnection.java:320) Enjoy being an Indyan at http://www.indya.com
Re: problem with JSP displaying broken image link
Do you know a way around this? -Jeff - Original Message - From: Igor Shevchenko [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, March 18, 2001 11:55 PM Subject: Re: problem with JSP displaying broken image link My JSP is located on my own server (ISP is pacbell). The images are hosted by geocities. Do you pay for hosting on geocities ? If not then this is a hotlinking - you're trying to cheat them by stealing their traffic... So dont be surprised that images are not downloading - protection from such cheats is quite simple (using mod_rewrite). Regards, Igor -Jeff I have been having trouble displaying images from my JSP(s). It seems like all my images that exist on http://www.geocities.com come up as broken image links.Is there a bug in the JSP server? I can display those images as plain .html file but not in my JSP. Where is your JSP located ? On geocities.com or somewhere else ? They (like all free hosters) dont like hotlinking and dont send requested images if "Referer" isn't pointing to somewhere inside of geocities.com...
Re: problem with JSP displaying broken image link
Could some one please confirm that geocities is using mod_rewrite or something of that nature? Just write simple jsp to display an jpeg hosted on geocities and tell me if you get a broken image link. Be sure to clear the cache first before you test this. Thanks. - Original Message - From: Igor Shevchenko [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, March 18, 2001 11:55 PM Subject: Re: problem with JSP displaying broken image link My JSP is located on my own server (ISP is pacbell). The images are hosted by geocities. Do you pay for hosting on geocities ? If not then this is a hotlinking - you're trying to cheat them by stealing their traffic... So dont be surprised that images are not downloading - protection from such cheats is quite simple (using mod_rewrite). Regards, Igor -Jeff I have been having trouble displaying images from my JSP(s). It seems like all my images that exist on http://www.geocities.com come up as broken image links.Is there a bug in the JSP server? I can display those images as plain .html file but not in my JSP. Where is your JSP located ? On geocities.com or somewhere else ? They (like all free hosters) dont like hotlinking and dont send requested images if "Referer" isn't pointing to somewhere inside of geocities.com...
Re: Building Tomcat-3.2.1
Not sure, but don't you need the servlet-api (servlet.jar)? http://jakarta.apache.org/builds/tomcat/release/v3.2.1/src/jakarta-servletapi-3.2-src.tar.gz or http://jakarta.apache.org/builds/tomcat/release/v3.2.1/src/jakarta-servletapi-3.2-src.zip Niels Wagner wrote: Hi everybody, i downloaded the source of tomcat 3.2.1 and tried to build it. I followed the README and got ant, jaxp (1.0.1), jsse ... My setup: SuSE Linux 7.0, IBMJava2-13. Environment variables export JAKARTA_HOME=/opt export TOMCAT_HOME=/opt/jakarta-tomcat-3.2.1 export JAVA_HOME=/opt/IBMJava2-13 export JNDI_HOME=/usr/lib export JSSE_HOME=/usr/lib export JMX_HOME=/usr/lib export REGEXP_HOME=/usr/src/packages/SOURCES/jakarta-regexp-1.2/build export SERVLETAPI_HOME=/opt/dist/servletapi export JAXP_HOME=/opt/jaxpi-1.0.1 export CLASSPATH=/opt/IBMJava2-13/:/opt/IBMJava2-13/lib:/usr/lib:/opt/IBMJava2-13/lib/tools.jar:/opt/jaxp-1.0.1/jaxp.jar:/opt/dist/ant/lib/ant.jar:/opt/IBMJava2-13/jre/lib/rt.jar:/opt/jaxp-1.0.1/parser.jar:/usr/lib/jsse.jar:/opt/dist/servletapi/lib/serlvet.jar export COCOON_HOME=/var/cocoon The error i get when building: Buildfile: /opt/jakarta-tomcat-3.2.1-src/build.xml prepare: [copy] Copying 1 files to /opt/build/tomcat/conf [copy] Copying 1 files to /opt/build/tomcat/lib tomcat: [javac] Compiling 6 source files to /opt/build/tomcat/classes [javac] /opt/jakarta-tomcat-3.2.1-src/src/share/org/apache/tomcat/net/SSLSocketFactory.java:67: Class javax.net.ServerSocketFactory not found in import. [javac] import javax.net.ServerSocketFactory; [javac]^ [javac] /opt/jakarta-tomcat-3.2.1-src/src/share/org/apache/tomcat/facade/HttpServletResponseFacade.java:84: class org.apache.tomcat.facade.HttpServletResponseFacade must be declared abstract. It does not define void resetBuffer() from interface javax.servlet.ServletResponse. [javac] final class HttpServletResponseFacade implements HttpServletResponse [javac] ^ [javac] /opt/jakarta-tomcat-3.2.1-src/src/share/org/apache/tomcat/facade/ServletContextFacade.java:82: class org.apache.tomcat.facade.ServletContextFacade must be declared abstract. It does not define java.util.Set getResourcePaths() from interface javax.servlet.ServletContext. [javac] final class ServletContextFacade implements ServletContext { [javac] ^ [javac] /opt/jakarta-tomcat-3.2.1-src/src/share/org/apache/tomcat/facade/ServletContextFacade.java:82: class org.apache.tomcat.facade.ServletContextFacade must be declared abstract. It does not define java.lang.String getServletContextName() from interface javax.servlet.ServletContext. [javac] final class ServletContextFacade implements ServletContext { [javac] ^ [javac] /opt/jakarta-tomcat-3.2.1-src/src/share/org/apache/tomcat/facade/HttpServletRequestFacade.java:83: class org.apache.tomcat.facade.HttpServletRequestFacade must be declared abstract. It does not define java.lang.StringBuffer getRequestURL() from interface javax.servlet.http.HttpServletRequest. [javac] final class HttpServletRequestFacade implements HttpServletRequest { [javac] ^ [javac] /opt/jakarta-tomcat-3.2.1-src/src/share/org/apache/tomcat/facade/HttpServletRequestFacade.java:83: class org.apache.tomcat.facade.HttpServletRequestFacade must be declared abstract. It does not define void setCharacterEncoding(java.lang.String) from interface javax.servlet.ServletRequest. [javac] final class HttpServletRequestFacade implements HttpServletRequest { [javac] ^ [javac] /opt/jakarta-tomcat-3.2.1-src/src/share/org/apache/tomcat/facade/HttpServletRequestFacade.java:83: class org.apache.tomcat.facade.HttpServletRequestFacade must be declared abstract. It does not define java.util.Map getParameterMap() from interface javax.servlet.ServletRequest. [javac] final class HttpServletRequestFacade implements HttpServletRequest { [javac] ^ [javac] /opt/jakarta-tomcat-3.2.1-src/src/share/org/apache/jasper/runtime/PageContextImpl.java:99: class org.apache.jasper.runtime.PageContextImpl must be declared abstract. It does not define void handlePageException(java.lang.Throwable) from class javax.servlet.jsp.PageContext. [javac] public class PageContextImpl extends PageContext { [javac] ^ [javac] Note: 2 files use or override a deprecated API. Recompile with "-deprecation" for details.[javac] 8 errors, 1 warning BUILD FAILED /opt/jakarta-tomcat-3.2.1-src/build.xml:94: Compile failed, messages should have been provided. Total time: 28 seconds I suppose the javax stuff is in the jaxp/parser jars. I tried Version 1.1 and 1.0.1 from sun. Any ideas ? Thanks in advance Niels -- Arnaud Vandyck http://www.ressource-toi.org/