Tomcat 4 and IIS 5
Dear Sirs, I'm trying to configure Tomcat to run under IIS and to solve my domain without :8080 I installed correctly the isapi_redirector.dll and installed under IIS, I configured workers.properties and uriworkermap.properties but the system doesn't solve the Java scripting. If I write the same directory with :8080 everything it's ok. The problem is present also for the tomcat examples page. Could you please help me? Thanks Emanuele -- Emanuele Boccaletti - ITALY - -- Guerra grande nessuno fa... --
Re: Bad Cookie Handling in Tomcat mod_Jk
Dennis Cartier [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi Guys, I have run across a situation a couple of times now that results in the operation of my cluster being severely impacted. When a bad cookie comes into 1 of the nodes, it crashes the coyote connector like so: java.lang.IllegalArgumentException: Cookie name 7~?at1 is a reserved token at javax.servlet.http.Cookie.init(Cookie.java:185) at org.apache.coyote.tomcat4.CoyoteAdapter.parseCookies(CoyoteAdapter.java:402) at org.apache.coyote.tomcat4.CoyoteAdapter.postParseRequest(CoyoteAdapter.java: 306) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:221) at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:261) at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:360) at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:632) at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:590) at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:707) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav a:530) at java.lang.Thread.run(Thread.java:536) Then the request is moved to another node and crashes it, and so, and so on. The request just keeps circling killing all the coyote's it encounters. The only way I have found to deal with this is to restart all the nodes of the cluster when this occurs. I am not sure how this can be prevented. The requests seem to circle for ever, and never seems to die. Background: cluster running - JBoss 3.0.6 - Tomcat 4.1.18 - mod_jk 1.2.2 I asked the this same question a month ago, but got zero replies. Does anyone here have an idea? I just committed a patch to the jakarta-tomcat-4.0 HEAD that should fix this. My thinking is that mod_jk could head this potential problem off by screening the cookie names *BEFORE* it passes them to tomcat. Anyone know how I can get in contact with the mod_jk developers? If this list doesn't satisfy you (most of the mod_jk developers at least lurk on this list), you can try subscribing to tomcat-dev and asking there. As a word of warning, if you're not willing to provide patches, then user-type questions generally get ignored (or get a reply to send to tomcat-user :). Thanks, Dennis - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to redirect the response to same requesting page
response.sendRedirect(request.getRequestURL()); zafar Ahsan [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hello Could u pls let me know what is the best way to redirect the response to same request page using servlet if some contd. doesn't full fill. I would be thankful to yr kind help. zafar ahsan _ Get 25MB, POP3, Spam Filtering with LYCOS MAIL PLUS for $19.95/year. http://login.mail.lycos.com/brandPage.shtml?pageId=plusref=lmtplus - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: how to access files in WEB-INF/classes
From a GenericServlet (including HttpServlet and Tomcat's default JSP-page Servlet): InputStream in = getServlet.getServletContext().getResourceAsStream(/WEB-INF/classes/my-inif ile.ini)' [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hello, I have put some INI files in WEB_INF/classes because I want an unique path for all deployment. How can I access to these files (path)? Thanks Sylvain - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Installing Tomcat as a server on IIS
To whom this may concern, I am attempting to install Tomcat as a service on a Windows 2000 advanced server. We have successfully created the service but when attempting to start the service an error is thrown, Could Not start the Spellchecker(our name for the Service) service on Local Computer. Error 1067: The process terminated unexpectedly. We are using java sdk 1.2.2. Below is the text written to the jvm.stderr file in the logs folder under the jakarta folder. Your help is greatly appreciated. Herbert F. Stelzer III Sungard Pentamation java.lang.NoClassDefFoundError: org/xml/sax/HandlerBase at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:471) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:103) at java.net.URLClassLoader.defineClass(URLClassLoader.java:242) at java.net.URLClassLoader.access$1(URLClassLoader.java:210) at java.net.URLClassLoader$1.run(URLClassLoader.java:191) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:185) at java.lang.ClassLoader.loadClass(ClassLoader.java:292) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:279) at java.lang.ClassLoader.loadClass(ClassLoader.java:249) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:308) at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:168) at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:240) Exception in thread main - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Avoid the Tomcat to time out on my jdbcrealm
Hi. How can I avoid the Tomcat to time out on my jdbcrealm. Søren Blidorf - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Play the key ctr + c in any directions, the server(Tomcat4.x) will be shutdow
Try ./catalina.sh start Kwong. -Original Message- From: deep blue [mailto:[EMAIL PROTECTED] Sent: Wednesday, 12 March 2003 13:58 To: [EMAIL PROTECTED] Subject: Play the key ctr + c in any directions, the server(Tomcat 4.x) will be shutdow I'm using Tomcat 4.x for soloris sparc. When tomcat is running(using command:nohup catalina.sh run ), if I play the key ctr + c in any directions or close the telnet terminal, the server will be shut down. I don't know what causes it? Please help me. _ ÏíÓÃÊÀ½çÉÏ×î´óµÄµç×ÓÓʼþϵͳ¡ª MSN Hotmail¡£ http://www.hotmail.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Powered by telstra.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 4 and IIS 5
Hello. You ought to type proper entries in two files: 'uriworkermap.properties' and 'web.xml' (that file is placed in %CATALINA_HOME%\webapps\ROOT\WEB-INF directory). In these files You should type what do You want redirect to Tomcat, for instance: if we wish redirect the whole contents under URL: http://www.test.it/servlet/ we must do: 1. in Site (in IIS) that serve URL: www.test.it we adding Virtual Site which name is 'jakarta' (we have to set path for 'jakarta' to directory when we put our 'isapi_redirect.dll'); 2. in 'uriworkermap.properties' we must type something as this: # # Default worker to be used through our mappings # default.worker=ajp13 # # Sites to be redirected to Tomcat # /examples=$(default.worker) /examples/*=$(default.worker) /servlet/*=$(default.worker) 3. in web.xml we must type: ?xml version=1.0 encoding=ISO-8859-1? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd; web-app servlet-mapping servlet-nameinvoker/servlet-name url-pattern/servlet/*/url-pattern /servlet-mapping /web-app 4. restart Your Tomcat and IIS, of course. Good luck and regards, Konrad Rusz - Original Message - From: Gigi [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, March 12, 2003 9:27 AM Subject: Tomcat 4 and IIS 5 Dear Sirs, I'm trying to configure Tomcat to run under IIS and to solve my domain without :8080 I installed correctly the isapi_redirector.dll and installed under IIS, I configured workers.properties and uriworkermap.properties but the system doesn't solve the Java scripting. If I write the same directory with :8080 everything it's ok. The problem is present also for the tomcat examples page. Could you please help me? Thanks Emanuele -- Emanuele Boccaletti - ITALY - -- Guerra grande nessuno fa... -- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Unable to authenticate using JDBCRealm
Hi, I have unencrypted passowords stored in database. I want users to be authenticated using DIGEST scheme specified in web.xml. I am unable to do this. Has anyone been able to succefully use JDBCRealm for DIGEST authnenticatoin?(BASIC authn with JDBCRealm works fine). I am using Tomcat 4.1.18. Follwing are my configuration settings. server.xml: -- Realm className=org.apache.catalina.realm.JDBCRealm debug=99 driverName=oracle.jdbc.driver.OracleDriver connectionURL=jdbc:oracle:thin:@lohgad:1521:dsoft connectionName=uddhav connectionPassword=uddhav userTable=tab_users userNameCol=user_name userCredCol=user_pass userRoleTable=tab_user_roles roleNameCol=role_name / web.xml: - login-config auth-methodDIGEST/auth-method realm-nameOnJava Application/realm-name /login-config Thanks, Uddhav - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Installing Tomcat as a server on IIS
Hello Herbert. Which version of Tomcat have You installed Your W2K Advanced Server on. If You have version 4.1.18 of Tomcat it should work smoothly (because service 'Apache Tomcat 4.1' is installing atomatically :-), but if You use older version than 4.1.18 You must add service yourself. In version 4.1.12 I had no problems with it. Maybe try to use one of those versions if You are not using now. Best regards, Konrad Rusz - Original Message - From: Herb Stelzer [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: Barbara Mayza [EMAIL PROTECTED]; Derek Moyer [EMAIL PROTECTED] Sent: Tuesday, March 11, 2003 10:10 PM Subject: Installing Tomcat as a server on IIS To whom this may concern, I am attempting to install Tomcat as a service on a Windows 2000 advanced server. We have successfully created the service but when attempting to start the service an error is thrown, ? Could Not start the Spellchecker(our name for the Service) service on Local Computer. Error 1067: The process terminated unexpectedly. We are using java sdk 1.2.2. Below is the text written to the jvm.stderr file in the logs folder under the jakarta folder. Your help is greatly appreciated. Herbert F. Stelzer III Sungard Pentamation java.lang.NoClassDefFoundError: org/xml/sax/HandlerBase at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:471) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:103) at java.net.URLClassLoader.defineClass(URLClassLoader.java:242) at java.net.URLClassLoader.access$1(URLClassLoader.java:210) at java.net.URLClassLoader$1.run(URLClassLoader.java:191) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:185) at java.lang.ClassLoader.loadClass(ClassLoader.java:292) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:279) at java.lang.ClassLoader.loadClass(ClassLoader.java:249) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:308) at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:168) at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:240) Exception in thread main - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[Newbie] Using Jasper to parse JSP
Hi Everyone, How do I use the Jasper API to parse a JSP file? I found an org.apache.jasper.JspC class which has a main. I am unable to compile a JSP file using that. What else should I supply to it? Thanks for any help. Regards, Bharathy. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Creating a pool connection.
Should I store my pool connection class in the servlet context? Where should I create it? I do not know a common place to execute for all the servlets so they can share resources. Is the context the only place. Thanks. Gustavo. *** Gustavo Cebrian Analyst/Programmer Want to improve the ROI on your EAI project? Download RV Tester and reduce your development and testing timescales by as much as 50%. http://www.greenhatconsulting.com/rvtester Green Hat Consulting Ltd. 107 Fleet Street, London EC4A 2AB DDI +44 (0)20 7936 9495 Mobile +44 (0)7788 922291 http://www.greenhatconsulting.com [EMAIL PROTECTED] *** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Update Problem / accessing servlet
Hi, after update from tomcat 4.1.10 to 4.1.18 I have the proplem that I can not access my servlets anymore (Error 404). The path to the servlet is http://www.myhost.com/test/servlet/myservlet.out in the tomcat directory the servlet is located under /tomcat/webapps/test/WEB-INF/classes/myservlet Where do I have to define the test - directory that the url can be found again and why did it work with tomcat 4.1.10 ? Thanks for your help Chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Update Problem / accessing servlet
Hi, That migth be because the /servlet/* mapping to the InvokerServlet is remarked in tomcat/conf/web.xml Remove the remark tags, and try again. Hope it helps -reynir -Original Message- From: Christoph Fischer [mailto:[EMAIL PROTECTED] Sent: 12. mars 2003 11:08 To: Tomcat Users List Subject: Update Problem / accessing servlet Hi, after update from tomcat 4.1.10 to 4.1.18 I have the proplem that I can not access my servlets anymore (Error 404). The path to the servlet is http://www.myhost.com/test/servlet/myservlet.out in the tomcat directory the servlet is located under /tomcat/webapps/test/WEB-INF/classes/myservlet Where do I have to define the test - directory that the url can be found again and why did it work with tomcat 4.1.10 ? Thanks for your help Chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: java.sql.SQLException: Cannot load JDBC driver class 'null'
Hi where ist your Database Connection? In the server.xml in the context for your test application. The jdbc.driver must be placed into the directory common/lib. I hope this will help. Regards Gerlinde -Ursprungliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 11. Marz 2003 22:58 An: [EMAIL PROTECTED] Betreff: java.sql.SQLException: Cannot load JDBC driver class 'null' Tomcat version - 4.1.12 MySQL version - 3.23.55-nt OS - WinNT JDK - 1.4.1_01 I have researched this problem on the internet and in the documentation for Tomcat, and I still haven't resolved this issue. So, I'm looking for help from someone from this list. Here is my URL that I invoke: http://localhost:8080/dbtest/test.jsp Here is the error I receive: java.sql.SQLException: Cannot load JDBC driver class 'null' at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSou rce.java:529) Referencing this URL - http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-datasource-ex amples-howto.html: 1. I have a database and table with 1 row of data 2. Here is the chunk of code that I inserted into my $CATALINA_HOME/conf/server.xml. !-- Database configuration for MySQL -- Context path=/DBTest docBase=DBTest debug=5 reloadable=true crossContext=true Logger className=org.apache.catalina.logger.FileLogger prefix=localhost_DBTest_log. suffix=.txt timestamp=true/ Resource name=jdbc/TestDB auth=Container type=javax.sql.DataSource/ ResourceParams name=jdbc/TestDB parameter namefactory/name valueorg.apache.commons.dbcp.BasicDataSourceFactory/value /parameter !-- Maximum number of dB connections in pool. Make sure you configure your mysqld max_connections large enough to handle all of your db connections. Set to 0 for no limit. -- parameter namemaxActive/name value100/value /parameter !-- Maximum number of idle dB connections to retain in pool. Set to 0 for no limit. -- parameter namemaxIdle/name value30/value /parameter !-- Maximum time to wait for a dB connection to become available in ms, in this example 10 seconds. An Exception is thrown if this timeout is exceeded. Set to -1 to wait indefinitely. -- parameter namemaxWait/name value1/value /parameter !-- MySQL dB username and password for dB connections -- parameter nameusername/name valuebugtracker/value /parameter parameter namepassword/name valuefootin/value /parameter !-- Class name for mm.mysql JDBC driver -- parameter namedriverClassName/name valueorg.gjt.mm.mysql.Driver/value /parameter !-- The JDBC connection url for connecting to your MySQL dB. The autoReconnect=true argument to the url makes sure that the mm.mysql JDBC Driver will automatically reconnect if mysqld closed the connection. mysqld by default closes idle connections after 8 hours. -- parameter nameurl/name !-- valuejdbc:mysql://localhost:3306/javatest?autoReconnect=true/value-- valuejdbc:mysql://localhost:3306/bugtracker/value /parameter /ResourceParams /Context 3. Here is my web.xml under $CATALINA_HOME/webapps/dbtest/web-inf/web.xml: ?xml version=1.0 encoding=ISO-8859-1? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd; web-app descriptionMySQL Test App/description resource-ref descriptionDB Connection/description res-ref-namejdbc/TestDB/res-ref-name res-typejavax.sql.DataSource/res-type res-authContainer/res-auth /resource-ref /web-app 4. Added my DB Driver under $CATALINA_HOME/webapps/dbtest/lib/org/git/mm/mysql/Driver.class. I also tried just putting the jar file under the /lib. 5. Created a JSP and class just like in the example above. I just changed my select statement inside the class, that's all. 6. I have verified that my database is indeed running. 7. In my.ini (for
Re: Update Problem / accessing servlet
Hi, thanks, that got me a little forward but now I get Error 500: javax.servlet.ServletException: Cannot allocate servlet instance for path /test/servlet/myservlet.out at org.apache.catalina.servlets.InvokerServlet.serveRequest(InvokerServlet.java:435) . any idea ? Chris Reynir Hübner wrote: Hi, That migth be because the /servlet/* mapping to the InvokerServlet is remarked in tomcat/conf/web.xml Remove the remark tags, and try again. Hope it helps -reynir -Original Message- From: Christoph Fischer [mailto:[EMAIL PROTECTED] Sent: 12. mars 2003 11:08 To: Tomcat Users List Subject: Update Problem / accessing servlet Hi, after update from tomcat 4.1.10 to 4.1.18 I have the proplem that I can not access my servlets anymore (Error 404). The path to the servlet is http://www.myhost.com/test/servlet/myservlet.out in the tomcat directory the servlet is located under /tomcat/webapps/test/WEB-INF/classes/myservlet Where do I have to define the test - directory that the url can be found again and why did it work with tomcat 4.1.10 ? Thanks for your help Chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
SEVERE: Handshake failed - because of 'Unrecognized SSL message'
I want to post an additional SSL problem with Tomcat 4.1.12. I have already read the previous mails/threads about handshake problems but ours wasn't mentioned yet - see log excerpt beneath. There were several advices to upgrade to 4.1.14. Does anyone know if our problem will be resolved with an upgrade too? 12.03.2003 10:04:45 org.apache.tomcat.util.log.CommonLogHandler log SEVERE: Handshake failed javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection? at com.sun.net.ssl.internal.ssl.InputRecord.b(DashoA6275) at com.sun.net.ssl.internal.ssl.InputRecord.read(DashoA6275) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA6275) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.j(DashoA6275) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(DashoA6275) at org.apache.tomcat.util.net.JSSESocketFactory.handshake(JSSESocketFactory .java:290) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:49 3) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool .java:533) at java.lang.Thread.run(Thread.java:536) Here our SSL-connector directive: Connector className=org.apache.coyote.tomcat4.CoyoteConnector address=10.1.60.xxx port=443 scheme=https secure=true minProcessors=5 maxProcessors=75 enableLookups=true acceptCount=10 debug=0 connectionTimeot=6 Factory className=org.apache.coyote.tomcat4.CoyoteServerSocketFactory clientAuth=false protocol=TLS keystoreFile=/root/domainname.keystore/ /Connector Sincerely, Schadler Johann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: AW: java.sql.SQLException: Cannot load JDBC driver class 'null'
Gerlinde, Thanks for the response! I placed my jdbc jar file under common/lib, but I still get the same error message. If you or anyone else has any other ideas, that would be greatly appreciated. Gerlinde Fischer [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] amberg.de cc: Subject: AW: java.sql.SQLException: Cannot load JDBC driver class 03/12/2003 05:47 AM 'null' Please respond to Tomcat Users List Hi where ist your Database Connection? In the server.xml in the context for your test application. The jdbc.driver must be placed into the directory common/lib. I hope this will help. Regards Gerlinde -Ursprungliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 11. Marz 2003 22:58 An: [EMAIL PROTECTED] Betreff: java.sql.SQLException: Cannot load JDBC driver class 'null' Tomcat version - 4.1.12 MySQL version - 3.23.55-nt OS - WinNT JDK - 1.4.1_01 I have researched this problem on the internet and in the documentation for Tomcat, and I still haven't resolved this issue. So, I'm looking for help from someone from this list. Here is my URL that I invoke: http://localhost:8080/dbtest/test.jsp Here is the error I receive: java.sql.SQLException: Cannot load JDBC driver class 'null' at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSou rce.java:529) Referencing this URL - http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-datasource-ex amples-howto.html: 1. I have a database and table with 1 row of data 2. Here is the chunk of code that I inserted into my $CATALINA_HOME/conf/server.xml. !-- Database configuration for MySQL -- Context path=/DBTest docBase=DBTest debug=5 reloadable=true crossContext=true Logger className=org.apache.catalina.logger.FileLogger prefix=localhost_DBTest_log. suffix=.txt timestamp=true/ Resource name=jdbc/TestDB auth=Container type=javax.sql.DataSource/ ResourceParams name=jdbc/TestDB parameter namefactory/name valueorg.apache.commons.dbcp.BasicDataSourceFactory/value /parameter !-- Maximum number of dB connections in pool. Make sure you configure your mysqld max_connections large enough to handle all of your db connections. Set to 0 for no limit. -- parameter namemaxActive/name value100/value /parameter !-- Maximum number of idle dB connections to retain in pool. Set to 0 for no limit. -- parameter namemaxIdle/name value30/value /parameter !-- Maximum time to wait for a dB connection to become available in ms, in this example 10 seconds. An Exception is thrown if this timeout is exceeded. Set to -1 to wait indefinitely. -- parameter namemaxWait/name value1/value /parameter !-- MySQL dB username and password for dB connections -- parameter nameusername/name valuebugtracker/value /parameter parameter namepassword/name valuefootin/value /parameter !-- Class name for mm.mysql JDBC driver -- parameter namedriverClassName/name valueorg.gjt.mm.mysql.Driver/value /parameter !-- The JDBC connection url for connecting to your
Re: AW: java.sql.SQLException: Cannot load JDBC driver class 'null'
I am not absolutely sure if this is the problem, but I have placed the database related jars under server/lib. It works for me. -- Uddhav - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, March 12, 2003 6:04 PM Subject: Re: AW: java.sql.SQLException: Cannot load JDBC driver class 'null' Gerlinde, Thanks for the response! I placed my jdbc jar file under common/lib, but I still get the same error message. If you or anyone else has any other ideas, that would be greatly appreciated. Gerlinde Fischer [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] amberg.de cc: Subject: AW: java.sql.SQLException: Cannot load JDBC driver class 03/12/2003 05:47 AM 'null' Please respond to Tomcat Users List Hi where ist your Database Connection? In the server.xml in the context for your test application. The jdbc.driver must be placed into the directory common/lib. I hope this will help. Regards Gerlinde -Ursprungliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 11. Marz 2003 22:58 An: [EMAIL PROTECTED] Betreff: java.sql.SQLException: Cannot load JDBC driver class 'null' Tomcat version - 4.1.12 MySQL version - 3.23.55-nt OS - WinNT JDK - 1.4.1_01 I have researched this problem on the internet and in the documentation for Tomcat, and I still haven't resolved this issue. So, I'm looking for help from someone from this list. Here is my URL that I invoke: http://localhost:8080/dbtest/test.jsp Here is the error I receive: java.sql.SQLException: Cannot load JDBC driver class 'null' at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSou rce.java:529) Referencing this URL - http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-datasource-ex amples-howto.html: 1. I have a database and table with 1 row of data 2. Here is the chunk of code that I inserted into my $CATALINA_HOME/conf/server.xml. !-- Database configuration for MySQL -- Context path=/DBTest docBase=DBTest debug=5 reloadable=true crossContext=true Logger className=org.apache.catalina.logger.FileLogger prefix=localhost_DBTest_log. suffix=.txt timestamp=true/ Resource name=jdbc/TestDB auth=Container type=javax.sql.DataSource/ ResourceParams name=jdbc/TestDB parameter namefactory/name valueorg.apache.commons.dbcp.BasicDataSourceFactory/value /parameter !-- Maximum number of dB connections in pool. Make sure you configure your mysqld max_connections large enough to handle all of your db connections. Set to 0 for no limit. -- parameter namemaxActive/name value100/value /parameter !-- Maximum number of idle dB connections to retain in pool. Set to 0 for no limit. -- parameter namemaxIdle/name value30/value /parameter !-- Maximum time to wait for a dB connection to become available in ms, in this example 10 seconds. An Exception is thrown if this timeout is exceeded. Set to -1 to wait indefinitely. -- parameter namemaxWait/name value1/value /parameter !-- MySQL dB username and password for dB onnections -- parameter nameusername/name valuebugtracker/value /parameter parameter namepassword/name valuefootin/value /parameter !-- Class name for mm.mysql JDBC driver -- parameter namedriverClassName/name valueorg.gjt.mm.mysql.Driver/value /parameter !-- The JDBC connection url for connecting to your MySQL dB. The autoReconnect=true argument to the url makes sure that the mm.mysql JDBC Driver will automatically reconnect if mysqld closed the connection. mysqld by default closes idle connections after 8 hours. -- parameter nameurl/name !--
Re: AW: java.sql.SQLException: Cannot load JDBC driver class 'null'
I put it under server/lib, but no such luck.still the same error message. hmmm Uddhav Shirname [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] ent.co.in cc: Subject: Re: AW: java.sql.SQLException: Cannot load JDBC driver class 03/12/2003 06:43 AM 'null' Please respond to Tomcat Users List I am not absolutely sure if this is the problem, but I have placed the database related jars under server/lib. It works for me. -- Uddhav - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, March 12, 2003 6:04 PM Subject: Re: AW: java.sql.SQLException: Cannot load JDBC driver class 'null' Gerlinde, Thanks for the response! I placed my jdbc jar file under common/lib, but I still get the same error message. If you or anyone else has any other ideas, that would be greatly appreciated. Gerlinde Fischer [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] amberg.de cc: Subject: AW: java.sql.SQLException: Cannot load JDBC driver class 03/12/2003 05:47 AM 'null' Please respond to Tomcat Users List Hi where ist your Database Connection? In the server.xml in the context for your test application. The jdbc.driver must be placed into the directory common/lib. I hope this will help. Regards Gerlinde -Ursprungliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 11. Marz 2003 22:58 An: [EMAIL PROTECTED] Betreff: java.sql.SQLException: Cannot load JDBC driver class 'null' Tomcat version - 4.1.12 MySQL version - 3.23.55-nt OS - WinNT JDK - 1.4.1_01 I have researched this problem on the internet and in the documentation for Tomcat, and I still haven't resolved this issue. So, I'm looking for help from someone from this list. Here is my URL that I invoke: http://localhost:8080/dbtest/test.jsp Here is the error I receive: java.sql.SQLException: Cannot load JDBC driver class 'null' at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSou rce.java:529) Referencing this URL - http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-datasource-ex amples-howto.html: 1. I have a database and table with 1 row of data 2. Here is the chunk of code that I inserted into my $CATALINA_HOME/conf/server.xml. !-- Database configuration for MySQL -- Context path=/DBTest docBase=DBTest debug=5 reloadable=true crossContext=true Logger className=org.apache.catalina.logger.FileLogger prefix=localhost_DBTest_log. suffix=.txt timestamp=true/ Resource name=jdbc/TestDB auth=Container type=javax.sql.DataSource/ ResourceParams name=jdbc/TestDB parameter namefactory/name valueorg.apache.commons.dbcp.BasicDataSourceFactory/value /parameter !-- Maximum number of dB connections in pool. Make sure you configure your mysqld max_connections large enough to handle all of your db connections. Set to 0 for no limit. -- parameter namemaxActive/name value100/value /parameter !-- Maximum number of idle dB connections to retain in pool. Set to 0 for no limit. -- parameter namemaxIdle/name value30/value /parameter !-- Maximum time to wait for a dB connection to become available
RE: AW: java.sql.SQLException: Cannot load JDBC driver class 'null'
Did you define the driver in you classpath? / Clarence Dahlin -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: den 12 mars 2003 13:49 To: [EMAIL PROTECTED] Subject: Re: AW: java.sql.SQLException: Cannot load JDBC driver class 'null' I put it under server/lib, but no such luck.still the same error message. hmmm Uddhav Shirname [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] ent.co.in cc: Subject: Re: AW: java.sql.SQLException: Cannot load JDBC driver class 03/12/2003 06:43 AM 'null' Please respond to Tomcat Users List I am not absolutely sure if this is the problem, but I have placed the database related jars under server/lib. It works for me. -- Uddhav - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, March 12, 2003 6:04 PM Subject: Re: AW: java.sql.SQLException: Cannot load JDBC driver class 'null' Gerlinde, Thanks for the response! I placed my jdbc jar file under common/lib, but I still get the same error message. If you or anyone else has any other ideas, that would be greatly appreciated. Gerlinde Fischer [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] amberg.de cc: Subject: AW: java.sql.SQLException: Cannot load JDBC driver class 03/12/2003 05:47 AM 'null' Please respond to Tomcat Users List Hi where ist your Database Connection? In the server.xml in the context for your test application. The jdbc.driver must be placed into the directory common/lib. I hope this will help. Regards Gerlinde -Ursprungliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 11. Marz 2003 22:58 An: [EMAIL PROTECTED] Betreff: java.sql.SQLException: Cannot load JDBC driver class 'null' Tomcat version - 4.1.12 MySQL version - 3.23.55-nt OS - WinNT JDK - 1.4.1_01 I have researched this problem on the internet and in the documentation for Tomcat, and I still haven't resolved this issue. So, I'm looking for help from someone from this list. Here is my URL that I invoke: http://localhost:8080/dbtest/test.jsp Here is the error I receive: java.sql.SQLException: Cannot load JDBC driver class 'null' at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSou rce.java:529) Referencing this URL - http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-datasource-ex amples-howto.html: 1. I have a database and table with 1 row of data 2. Here is the chunk of code that I inserted into my $CATALINA_HOME/conf/server.xml. !-- Database configuration for MySQL -- Context path=/DBTest docBase=DBTest debug=5 reloadable=true crossContext=true Logger className=org.apache.catalina.logger.FileLogger prefix=localhost_DBTest_log. suffix=.txt timestamp=true/ Resource name=jdbc/TestDB auth=Container type=javax.sql.DataSource/ ResourceParams name=jdbc/TestDB parameter namefactory/name valueorg.apache.commons.dbcp.BasicDataSourceFactory/value /parameter !-- Maximum number of dB connections in pool. Make sure you configure your mysqld max_connections large enough to handle all of your db connections. Set to 0 for no limit. -- parameter namemaxActive/name value100/value /parameter !-- Maximum number of idle dB connections to retain in pool.
About maxProcessors
--- Simon Kitching [EMAIL PROTECTED] wrote: And setting maxProcessors to 2 means that if *three* people hit a url at your website concurrently, one will have to wait until one of the earlier users has finished receiving their page [or pages for http/1.1 persistent connections]. I tested this aspect with JMeter. Set maxProcessors to 2 and gave three requests simultaneously. One returned immediately saying java.io.IOException: Stream closed whats the matter? __ Do you Yahoo!? Yahoo! Web Hosting - establish your business online http://webhosting.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
great problem with dbcp conn pool
hello y ahave the next conf in my server.xml file but appears the bellow error, not always, only if i not acess to the page in several hours. can you help me? thanks CONF (server.xml): Resource name=jdbc/otrosservicios auth=Container type=javax.sql.DataSource/ ResourceParams name=jdbc/otrosservicios parameter namefactory/name valueorg.apache.commons.dbcp.BasicDataSourceFactory/value /parameter parameter namemaxActive/name value100/value /parameter parameter namemaxIdle/name value30/value /parameter parameter namemaxWait/name value-1/value /parameter parameter nameusername/name valueuser/value /parameter parameter namepassword/name valuepasswd/value /parameter parameter namedriverClassName/name valuecom.mysql.jdbc.Driver/value /parameter parameter nameurl/name valuejdbc:mysql://127.0.0.1:3306/otrosservicios?autoReconect=true/value /parameter parameter nameremoveAbandoned/name valuetrue/value /parameter parameter nameremoveAbandonedTimeout/name value120/value /parameter parameter namelogAbandoned/name valuetrue/value /parameter /ResourceParams ERROR: org.apache.jasper.JasperException: Communication link failure: java.net.SocketException at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2 48) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:193) at utils.filtroSessiones.doFilter(filtroSessiones.java:141) 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:260) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja va:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180 ) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve. java:170) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172 ) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(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.invok eNext(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.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:261) at
RE: AW: java.sql.SQLException: Cannot load JDBC driver class 'null'
No I did not, but now I do and I still receive the same error. I have printed out my classpath on the tomcat startup DOS window. This is: setting the jdbc jar to classpath * * classpath is: C:\Development\j2sdk1.4.1_01\lib\tools.jar;C:\development\ja karta-tomcat-4.1.12\common\lib\mysql-connector-java-3.0.6-stable-bin.jar; ** Currently, I have the jdbc jar file under common\lib, server\lib and webapps\dbtest\WEB-INF\lib, hoping Tomcat will 'see' it under one of these locations. btw, I'm a first-timer for connecting Tomcat to a database. Thanks Clarence DahlinTo: Tomcat Users List [EMAIL PROTECTED] clarence.dahlin cc: @pitch.se Subject: RE: AW: java.sql.SQLException: Cannot load JDBC driver class 'null' 03/12/2003 06:55 AM Please respond to Tomcat Users List Did you define the driver in you classpath? / Clarence Dahlin -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: den 12 mars 2003 13:49 To: [EMAIL PROTECTED] Subject: Re: AW: java.sql.SQLException: Cannot load JDBC driver class 'null' I put it under server/lib, but no such luck.still the same error message. hmmm Uddhav Shirname [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] ent.co.in cc: Subject: Re: AW: java.sql.SQLException: Cannot load JDBC driver class 03/12/2003 06:43 AM 'null' Please respond to Tomcat Users List I am not absolutely sure if this is the problem, but I have placed the database related jars under server/lib. It works for me. -- Uddhav - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, March 12, 2003 6:04 PM Subject: Re: AW: java.sql.SQLException: Cannot load JDBC driver class 'null' Gerlinde, Thanks for the response! I placed my jdbc jar file under common/lib, but I still get the same error message. If you or anyone else has any other ideas, that would be greatly appreciated. Gerlinde Fischer [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] amberg.de cc: Subject: AW: java.sql.SQLException: Cannot load JDBC driver class 03/12/2003 05:47 AM 'null' Please respond to Tomcat Users List Hi where ist your Database Connection? In the server.xml in the context for your test application. The jdbc.driver must be placed into the directory common/lib. I hope this will help. Regards Gerlinde -Ursprungliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 11. Marz 2003 22:58 An: [EMAIL PROTECTED] Betreff: java.sql.SQLException: Cannot load JDBC driver class 'null' Tomcat version - 4.1.12 MySQL version - 3.23.55-nt OS - WinNT JDK - 1.4.1_01 I have researched this problem on the internet and in the documentation for Tomcat, and I still haven't resolved this issue. So, I'm looking for help from someone from this list. Here is my URL that I invoke: http://localhost:8080/dbtest/test.jsp Here is the error I receive: java.sql.SQLException: Cannot load JDBC driver class 'null' at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSou rce.java:529) Referencing this URL - http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-datasource-ex
AW: great problem with dbcp conn pool
hi, in your orginial server.xml, is there also reconect instead of reconnect. Regards Gerlinde -Ursprngliche Nachricht- Von: Dionisio Ruiz de Zarate [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 12. Mrz 2003 14:10 An: [EMAIL PROTECTED] Betreff: great problem with dbcp conn pool hello y ahave the next conf in my server.xml file but appears the bellow error, not always, only if i not acess to the page in several hours. can you help me? thanks CONF (server.xml): Resource name=jdbc/otrosservicios auth=Container type=javax.sql.DataSource/ ResourceParams name=jdbc/otrosservicios parameter namefactory/name valueorg.apache.commons.dbcp.BasicDataSourceFactory/value /parameter parameter namemaxActive/name value100/value /parameter parameter namemaxIdle/name value30/value /parameter parameter namemaxWait/name value-1/value /parameter parameter nameusername/name valueuser/value /parameter parameter namepassword/name valuepasswd/value /parameter parameter namedriverClassName/name valuecom.mysql.jdbc.Driver/value /parameter parameter nameurl/name valuejdbc:mysql://127.0.0.1:3306/otrosservicios?autoReconect=tru e/value /parameter parameter nameremoveAbandoned/name valuetrue/value /parameter parameter nameremoveAbandonedTimeout/name value120/value /parameter parameter namelogAbandoned/name valuetrue/value /parameter /ResourceParams ERROR: org.apache.jasper.JasperException: Communication link failure: java.net.SocketException at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrap per.java:2 48) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(A pplication FilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(Applicati onFilterCh ain.java:193) at utils.filtroSessiones.doFilter(filtroSessiones.java:141) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(A pplication FilterChain.java:213) at org.apache.catalina.core.ApplicationFilterChain.doFilter(Applicati onFilterCh ain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapp erValve.ja va:260) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveCon text.invok eNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline. java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardConte xtValve.ja va:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveCon text.invok eNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline. java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValv e.java:180 ) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveCon text.invok eNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispat cherValve. java:170) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveCon text.invok eNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValv e.java:172 ) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveCon text.invok eNext(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(StandardEngine Valve.java :174) at
AW: AW: java.sql.SQLException: Cannot load JDBC driver class 'null'
Hi Kevin, have you started the tomcat afterwards. Regards Gerlinde -Ursprungliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 12. Marz 2003 13:34 An: [EMAIL PROTECTED] Betreff: Re: AW: java.sql.SQLException: Cannot load JDBC driver class 'null' Gerlinde, Thanks for the response! I placed my jdbc jar file under common/lib, but I still get the same error message. If you or anyone else has any other ideas, that would be greatly appreciated. Gerlinde Fischer [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] amberg.de cc: Subject: AW: java.sql.SQLException: Cannot load JDBC driver class 03/12/2003 05:47 AM 'null' Please respond to Tomcat Users List Hi where ist your Database Connection? In the server.xml in the context for your test application. The jdbc.driver must be placed into the directory common/lib. I hope this will help. Regards Gerlinde -Ursprungliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 11. Marz 2003 22:58 An: [EMAIL PROTECTED] Betreff: java.sql.SQLException: Cannot load JDBC driver class 'null' Tomcat version - 4.1.12 MySQL version - 3.23.55-nt OS - WinNT JDK - 1.4.1_01 I have researched this problem on the internet and in the documentation for Tomcat, and I still haven't resolved this issue. So, I'm looking for help from someone from this list. Here is my URL that I invoke: http://localhost:8080/dbtest/test.jsp Here is the error I receive: java.sql.SQLException: Cannot load JDBC driver class 'null' at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSou rce.java:529) Referencing this URL - http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-datasource-ex amples-howto.html: 1. I have a database and table with 1 row of data 2. Here is the chunk of code that I inserted into my $CATALINA_HOME/conf/server.xml. !-- Database configuration for MySQL -- Context path=/DBTest docBase=DBTest debug=5 reloadable=true crossContext=true Logger className=org.apache.catalina.logger.FileLogger prefix=localhost_DBTest_log. suffix=.txt timestamp=true/ Resource name=jdbc/TestDB auth=Container type=javax.sql.DataSource/ ResourceParams name=jdbc/TestDB parameter namefactory/name valueorg.apache.commons.dbcp.BasicDataSourceFactory/value /parameter !-- Maximum number of dB connections in pool. Make sure you configure your mysqld max_connections large enough to handle all of your db connections. Set to 0 for no limit. -- parameter namemaxActive/name value100/value /parameter !-- Maximum number of idle dB connections to retain in pool. Set to 0 for no limit. -- parameter namemaxIdle/name value30/value /parameter !-- Maximum time to wait for a dB connection to become available in ms, in this example 10 seconds. An Exception is thrown if this timeout is exceeded. Set to -1 to wait indefinitely. -- parameter namemaxWait/name value1/value /parameter !-- MySQL dB username and password for dB connections -- parameter nameusername/name valuebugtracker/value /parameter parameter namepassword/name valuefootin/value /parameter !-- Class name for mm.mysql JDBC driver -- parameter namedriverClassName/name valueorg.gjt.mm.mysql.Driver/value /parameter !-- The JDBC connection url for connecting to your MySQL dB. The autoReconnect=true argument to the url makes sure that the mm.mysql JDBC Driver will automatically reconnect if mysqld closed the connection. mysqld by default closes idle connections after 8 hours. -- parameter nameurl/name
Re: AW: java.sql.SQLException: Cannot load JDBC driver class 'null'
sorry ..you mail arrive in mail address... - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, March 12, 2003 2:20 PM Subject: RE: AW: java.sql.SQLException: Cannot load JDBC driver class 'null' No I did not, but now I do and I still receive the same error. I have printed out my classpath on the tomcat startup DOS window. This is: setting the jdbc jar to classpath * * classpath is: C:\Development\j2sdk1.4.1_01\lib\tools.jar;C:\development\ja karta-tomcat-4.1.12\common\lib\mysql-connector-java-3.0.6-stable-bin.jar; ** Currently, I have the jdbc jar file under common\lib, server\lib and webapps\dbtest\WEB-INF\lib, hoping Tomcat will 'see' it under one of these locations. btw, I'm a first-timer for connecting Tomcat to a database. Thanks Clarence DahlinTo: Tomcat Users List [EMAIL PROTECTED] clarence.dahlin cc: @pitch.se Subject: RE: AW: java.sql.SQLException: Cannot load JDBC driver class 'null' 03/12/2003 06:55 AM Please respond to Tomcat Users List Did you define the driver in you classpath? / Clarence Dahlin -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: den 12 mars 2003 13:49 To: [EMAIL PROTECTED] Subject: Re: AW: java.sql.SQLException: Cannot load JDBC driver class 'null' I put it under server/lib, but no such luck.still the same error message. hmmm Uddhav Shirname [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] ent.co.in cc: Subject: Re: AW: java.sql.SQLException: Cannot load JDBC driver class 03/12/2003 06:43 AM 'null' Please respond to Tomcat Users List I am not absolutely sure if this is the problem, but I have placed the database related jars under server/lib. It works for me. -- Uddhav - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, March 12, 2003 6:04 PM Subject: Re: AW: java.sql.SQLException: Cannot load JDBC driver class 'null' Gerlinde, Thanks for the response! I placed my jdbc jar file under common/lib, but I still get the same error message. If you or anyone else has any other ideas, that would be greatly appreciated. Gerlinde Fischer [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] amberg.de cc: Subject: AW: java.sql.SQLException: Cannot load JDBC driver class 03/12/2003 05:47 AM 'null' Please respond to Tomcat Users List Hi where ist your Database Connection? In the server.xml in the context for your test application. The jdbc.driver must be placed into the directory common/lib. I hope this will help. Regards Gerlinde -Ursprungliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 11. Marz 2003 22:58 An: [EMAIL PROTECTED] Betreff: java.sql.SQLException: Cannot load JDBC driver class 'null' Tomcat version - 4.1.12 MySQL version - 3.23.55-nt OS - WinNT JDK - 1.4.1_01 I have researched this problem on the internet and in the documentation for Tomcat, and I still haven't resolved this issue. So, I'm looking for help from someone from this list. Here is my URL that I invoke: http://localhost:8080/dbtest/test.jsp Here is the error I receive: java.sql.SQLException: Cannot load JDBC driver class 'null' at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSou rce.java:529) Referencing this URL - http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-datasource-ex amples-howto.html: 1. I have a database and table with 1 row of data 2. Here is the chunk of code that I inserted into my $CATALINA_HOME/conf/server.xml. !-- Database configuration for MySQL -- Context path=/DBTest docBase=DBTest debug=5 reloadable=true crossContext=true Logger className=org.apache.catalina.logger.FileLogger prefix=localhost_DBTest_log. suffix=.txt timestamp=true/ Resource name=jdbc/TestDB auth=Container type=javax.sql.DataSource/ ResourceParams
Re: AW: java.sql.SQLException: Cannot load JDBC driver class 'null'
Hi, Are you looking in a load-on-startup servlet Pratt. - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, March 12, 2003 6:50 PM Subject: RE: AW: java.sql.SQLException: Cannot load JDBC driver class 'null' No I did not, but now I do and I still receive the same error. I have printed out my classpath on the tomcat startup DOS window. This is: setting the jdbc jar to classpath * * classpath is: C:\Development\j2sdk1.4.1_01\lib\tools.jar;C:\development\ja karta-tomcat-4.1.12\common\lib\mysql-connector-java-3.0.6-stable-bin.jar; ** Currently, I have the jdbc jar file under common\lib, server\lib and webapps\dbtest\WEB-INF\lib, hoping Tomcat will 'see' it under one of these locations. btw, I'm a first-timer for connecting Tomcat to a database. Thanks Clarence DahlinTo: Tomcat Users List [EMAIL PROTECTED] clarence.dahlin cc: @pitch.se Subject: RE: AW: java.sql.SQLException: Cannot load JDBC driver class 'null' 03/12/2003 06:55 AM Please respond to Tomcat Users List Did you define the driver in you classpath? / Clarence Dahlin -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: den 12 mars 2003 13:49 To: [EMAIL PROTECTED] Subject: Re: AW: java.sql.SQLException: Cannot load JDBC driver class 'null' I put it under server/lib, but no such luck.still the same error message. hmmm Uddhav Shirname [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] ent.co.in cc: Subject: Re: AW: java.sql.SQLException: Cannot load JDBC driver class 03/12/2003 06:43 AM 'null' Please respond to Tomcat Users List I am not absolutely sure if this is the problem, but I have placed the database related jars under server/lib. It works for me. -- Uddhav - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, March 12, 2003 6:04 PM Subject: Re: AW: java.sql.SQLException: Cannot load JDBC driver class 'null' Gerlinde, Thanks for the response! I placed my jdbc jar file under common/lib, but I still get the same error message. If you or anyone else has any other ideas, that would be greatly appreciated. Gerlinde Fischer [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] amberg.de cc: Subject: AW: java.sql.SQLException: Cannot load JDBC driver class 03/12/2003 05:47 AM 'null' Please respond to Tomcat Users List Hi where ist your Database Connection? In the server.xml in the context for your test application. The jdbc.driver must be placed into the directory common/lib. I hope this will help. Regards Gerlinde -Ursprungliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 11. Marz 2003 22:58 An: [EMAIL PROTECTED] Betreff: java.sql.SQLException: Cannot load JDBC driver class 'null' Tomcat version - 4.1.12 MySQL version - 3.23.55-nt OS - WinNT JDK - 1.4.1_01 I have researched this problem on the internet and in the documentation for Tomcat, and I still haven't resolved this issue. So, I'm looking for help from someone from this list. Here is my URL that I invoke: http://localhost:8080/dbtest/test.jsp Here is the error I receive: java.sql.SQLException: Cannot load JDBC driver class 'null' at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSou rce.java:529) Referencing this URL - http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-datasource-ex amples-howto.html: 1. I have a database and table with 1 row of data 2. Here is the chunk of code that I inserted into my $CATALINA_HOME/conf/server.xml. !-- Database configuration for MySQL -- Context path=/DBTest docBase=DBTest debug=5 reloadable=true crossContext=true Logger className=org.apache.catalina.logger.FileLogger prefix=localhost_DBTest_log. suffix=.txt timestamp=true/ Resource name=jdbc/TestDB auth=Container type=javax.sql.DataSource/
SV: Global DataSource
Hi again. I just solved my problem with global datasources in Tomcat. Instead of putting my Resource name= and ResourceParams in GlobalNamingResources/GlobalNamingResources (which gave me lot's of trouble and exceptions) I put it in the DefaultContext/DefaultContext and removed resource-ref from my web.xml. I don't know if this is a neat solution but hey, it works. :-) /Fredrik -Ursprungligt meddelande- Från: Fredrik Larsson [mailto:[EMAIL PROTECTED] Skickat: den 11 mars 2003 14:39 Till: [EMAIL PROTECTED] Ämne: Global DataSource Hi all. I'm trying to set up a global DataSource on my Tomcat 4.1.18 standalone to be available to all of my applications installed on the server. But... I just can't get this to work. I've been following the instructions in the tomcat documentation but it doesn't help. I can start the server without any problems and view the global datasource in the Administration Tool but as soon as I'm trying to access the datasource from a servlet i get the following exception: java.sql.SQLException: Cannot load JDBC driver class 'null'. I've tried to set up the datasource for just one application context and that works... but that's not what I want. Another thing is that when I'm trying to view the datasources for one specific application-context that should use this global datasource I get this exception: org.apache.jasper.JasperException: Exception retrieving attribute 'driverClassName' Has anyone got a clue? Thanks! /Fredrik This is what my conf-files look like: SERVER.XML GlobalNamingResources Resource name=jdbc/MyDB auth=Container type=javax.sql.DataSource/ ResourceParams name=jdbc/MyDB parameter namefactory/name valueorg.apache.commons.dbcp.BasicDataSourceFactory/value /parameter parameter namemaxActive/name value100/value /parameter parameter namemaxIdle/name value30/value /parameter parameter namemaxWait/name value1/value /parameter parameter nameusername/name valuemyusername/value /parameter parameter namepassword/name value/value /parameter parameter namedriverClassName/name valueorg.gjt.mm.mysql.Driver/value /parameter parameter nameurl/name valuejdbc:mysql://localhost:3306/mydb/value /parameter /ResourceParams /GlobalNamingResources WEB.XML resource-ref descriptionDB Connection/description res-ref-namejdbc/MyDB/res-ref-name res-typejavax.sql.DataSource/res-type res-authContainer/res-auth /resource-ref - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: AW: java.sql.SQLException: Cannot load JDBC driver class 'null'
1. starting from tomcat-home\bin, I type in the command - startup. 2. starting from tomcat-home\bin, I type in the command - shutdown. I do this after every change I make to the tomcat configuration. After I issue the command 'startup,' then I see the classpath output in that same DOS window. Does my server.xml and web.xml setting look correct to all? Tomcat-RND [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] mail.comcc: Subject: Re: AW: java.sql.SQLException: Cannot load JDBC driver class 03/12/2003'null' 07:22 AM Please respond to Tomcat Users List Hi, Are you looking in a load-on-startup servlet Pratt. - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, March 12, 2003 6:50 PM Subject: RE: AW: java.sql.SQLException: Cannot load JDBC driver class 'null' No I did not, but now I do and I still receive the same error. I have printed out my classpath on the tomcat startup DOS window. This is: setting the jdbc jar to classpath * * classpath is: C:\Development\j2sdk1.4.1_01\lib\tools.jar;C:\development\ja karta-tomcat-4.1.12\common\lib\mysql-connector-java-3.0.6-stable-bin.jar; ** Currently, I have the jdbc jar file under common\lib, server\lib and webapps\dbtest\WEB-INF\lib, hoping Tomcat will 'see' it under one of these locations. btw, I'm a first-timer for connecting Tomcat to a database. Thanks Clarence DahlinTo: Tomcat Users List [EMAIL PROTECTED] clarence.dahlin cc: @pitch.se Subject: RE: AW: java.sql.SQLException: Cannot load JDBC driver class 'null' 03/12/2003 06:55 AM Please respond to Tomcat Users List Did you define the driver in you classpath? / Clarence Dahlin -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: den 12 mars 2003 13:49 To: [EMAIL PROTECTED] Subject: Re: AW: java.sql.SQLException: Cannot load JDBC driver class 'null' I put it under server/lib, but no such luck.still the same error message. hmmm Uddhav Shirname [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] ent.co.in cc: Subject: Re: AW: java.sql.SQLException: Cannot load JDBC driver class 03/12/2003 06:43 AM 'null' Please respond to Tomcat Users List I am not absolutely sure if this is the problem, but I have placed the database related jars under server/lib. It works for me. -- Uddhav - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, March 12, 2003 6:04 PM Subject: Re: AW: java.sql.SQLException: Cannot load JDBC driver class 'null' Gerlinde, Thanks for the response! I placed my jdbc jar file under common/lib, but I still get the same error message. If you or anyone else has any other ideas, that would be greatly appreciated. Gerlinde Fischer [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] amberg.de cc: Subject: AW: java.sql.SQLException: Cannot load JDBC driver class 03/12/2003 05:47 AM 'null' Please respond to Tomcat Users List Hi where ist your Database
Re: AW: java.sql.SQLException: Cannot load JDBC driver class 'null'
please control whern send a mail - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, March 12, 2003 2:37 PM Subject: Re: AW: java.sql.SQLException: Cannot load JDBC driver class 'null' 1. starting from tomcat-home\bin, I type in the command - startup. 2. starting from tomcat-home\bin, I type in the command - shutdown. I do this after every change I make to the tomcat configuration. After I issue the command 'startup,' then I see the classpath output in that same DOS window. Does my server.xml and web.xml setting look correct to all? Tomcat-RND [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] mail.comcc: Subject: Re: AW: java.sql.SQLException: Cannot load JDBC driver class 03/12/2003'null' 07:22 AM Please respond to Tomcat Users List Hi, Are you looking in a load-on-startup servlet Pratt. - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, March 12, 2003 6:50 PM Subject: RE: AW: java.sql.SQLException: Cannot load JDBC driver class 'null' No I did not, but now I do and I still receive the same error. I have printed out my classpath on the tomcat startup DOS window. This is: setting the jdbc jar to classpath * * classpath is: C:\Development\j2sdk1.4.1_01\lib\tools.jar;C:\development\ja karta-tomcat-4.1.12\common\lib\mysql-connector-java-3.0.6-stable-bin.jar; ** Currently, I have the jdbc jar file under common\lib, server\lib and webapps\dbtest\WEB-INF\lib, hoping Tomcat will 'see' it under one of these locations. btw, I'm a first-timer for connecting Tomcat to a database. Thanks Clarence DahlinTo: Tomcat Users List [EMAIL PROTECTED] clarence.dahlin cc: @pitch.se Subject: RE: AW: java.sql.SQLException: Cannot load JDBC driver class 'null' 03/12/2003 06:55 AM Please respond to Tomcat Users List Did you define the driver in you classpath? / Clarence Dahlin -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: den 12 mars 2003 13:49 To: [EMAIL PROTECTED] Subject: Re: AW: java.sql.SQLException: Cannot load JDBC driver class 'null' I put it under server/lib, but no such luck.still the same error message. hmmm Uddhav Shirname [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] ent.co.in cc: Subject: Re: AW: java.sql.SQLException: Cannot load JDBC driver class 03/12/2003 06:43 AM 'null' Please respond to Tomcat Users List I am not absolutely sure if this is the problem, but I have placed the database related jars under server/lib. It works for me. -- Uddhav - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, March 12, 2003 6:04 PM Subject: Re: AW: java.sql.SQLException: Cannot load JDBC driver class 'null' Gerlinde, Thanks for the response! I placed my jdbc jar file under common/lib, but I still get the same error message. If you or anyone else has any other ideas, that would be greatly appreciated. Gerlinde Fischer [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] amberg.de cc: Subject: AW: java.sql.SQLException: Cannot load JDBC driver class 03/12/2003 05:47 AM 'null' Please respond to Tomcat Users List Hi where ist your Database Connection? In the server.xml in the context for your test application. The jdbc.driver must be placed into the directory common/lib. I hope this will help. Regards Gerlinde -Ursprungliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 11. Marz 2003 22:58 An: [EMAIL PROTECTED] Betreff: java.sql.SQLException: Cannot load JDBC driver class 'null' Tomcat version - 4.1.12 MySQL version - 3.23.55-nt OS - WinNT JDK - 1.4.1_01 I have researched
Re: AW: java.sql.SQLException: Cannot load JDBC driver class 'null'
'please control whern send a mail' I'm not sure what you mean by this statement? alessio marinelli To: Tomcat Users List [EMAIL PROTECTED] alessio_marinel cc: [EMAIL PROTECTED] Subject: Re: AW: java.sql.SQLException: Cannot load JDBC driver class 'null' 03/12/1998 07:42 AM Please respond to Tomcat Users List please control whern send a mail - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, March 12, 2003 2:37 PM Subject: Re: AW: java.sql.SQLException: Cannot load JDBC driver class 'null' 1. starting from tomcat-home\bin, I type in the command - startup. 2. starting from tomcat-home\bin, I type in the command - shutdown. I do this after every change I make to the tomcat configuration. After I issue the command 'startup,' then I see the classpath output in that same DOS window. Does my server.xml and web.xml setting look correct to all? Tomcat-RND [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] mail.comcc: Subject: Re: AW: java.sql.SQLException: Cannot load JDBC driver class 03/12/2003'null' 07:22 AM Please respond to Tomcat Users List Hi, Are you looking in a load-on-startup servlet Pratt. - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, March 12, 2003 6:50 PM Subject: RE: AW: java.sql.SQLException: Cannot load JDBC driver class 'null' No I did not, but now I do and I still receive the same error. I have printed out my classpath on the tomcat startup DOS window. This is: setting the jdbc jar to classpath * * classpath is: C:\Development\j2sdk1.4.1_01\lib\tools.jar;C:\development\ja karta-tomcat-4.1.12\common\lib\mysql-connector-java-3.0.6-stable-bin.jar; ** Currently, I have the jdbc jar file under common\lib, server\lib and webapps\dbtest\WEB-INF\lib, hoping Tomcat will 'see' it under one of these locations. btw, I'm a first-timer for connecting Tomcat to a database. Thanks Clarence DahlinTo: Tomcat Users List [EMAIL PROTECTED] clarence.dahlin cc: @pitch.se Subject: RE: AW: java.sql.SQLException: Cannot load JDBC driver class 'null' 03/12/2003 06:55 AM Please respond to Tomcat Users List Did you define the driver in you classpath? / Clarence Dahlin -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: den 12 mars 2003 13:49 To: [EMAIL PROTECTED] Subject: Re: AW: java.sql.SQLException: Cannot load JDBC driver class 'null' I put it under server/lib, but no such luck.still the same error message. hmmm Uddhav Shirname [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] ent.co.in cc: Subject: Re: AW: java.sql.SQLException: Cannot load JDBC driver class 03/12/2003 06:43 AM 'null' Please respond to Tomcat Users List I am not absolutely sure if this is the problem, but I
Re: Setting javax.net.ssl.trustStore
What happens if you also set -Djavax.net.ssl.keyStore=c:\... -Djavax.net.ssl.keyStorePassword=password Mayne, Peter wrote: I have an application running in Tomcat 4.1.18 using JDK 1.4.1 on Windows XP that makes connections to https://...;. If I add the web server's certificate's CA to JAVA_HOME\jre\lib\security\cacerts, everything works fine. If instead I use a separate keystore, at the command prompt: set java_opts=-Djavax.net.ssl.trustStore=c:\... -Djavax.net.ssl.trustStorePassword=password Then (at the same command prompt) run startup.bat, the exception: javax.net.ssl.SSLHandshakeException: java.security.cert.CertificateException: Couldn't find trusted certificate is thrown. How do I tell the servlet to use a different trust store? Thanks. PJDM - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: AW: java.sql.SQLException: Cannot load JDBC driver class 'null'
when you send a mail [EMAIL PROTECTED] this mail arrive at me - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, March 12, 2003 2:43 PM Subject: Re: AW: java.sql.SQLException: Cannot load JDBC driver class 'null' 'please control whern send a mail' I'm not sure what you mean by this statement? alessio marinelli To: Tomcat Users List [EMAIL PROTECTED] alessio_marinel cc: [EMAIL PROTECTED] Subject: Re: AW: java.sql.SQLException: Cannot load JDBC driver class 'null' 03/12/1998 07:42 AM Please respond to Tomcat Users List please control whern send a mail - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, March 12, 2003 2:37 PM Subject: Re: AW: java.sql.SQLException: Cannot load JDBC driver class 'null' 1. starting from tomcat-home\bin, I type in the command - startup. 2. starting from tomcat-home\bin, I type in the command - shutdown. I do this after every change I make to the tomcat configuration. After I issue the command 'startup,' then I see the classpath output in that same DOS window. Does my server.xml and web.xml setting look correct to all? Tomcat-RND [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] mail.comcc: Subject: Re: AW: java.sql.SQLException: Cannot load JDBC driver class 03/12/2003'null' 07:22 AM Please respond to Tomcat Users List Hi, Are you looking in a load-on-startup servlet Pratt. - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, March 12, 2003 6:50 PM Subject: RE: AW: java.sql.SQLException: Cannot load JDBC driver class 'null' No I did not, but now I do and I still receive the same error. I have printed out my classpath on the tomcat startup DOS window. This is: setting the jdbc jar to classpath * * classpath is: C:\Development\j2sdk1.4.1_01\lib\tools.jar;C:\development\ja karta-tomcat-4.1.12\common\lib\mysql-connector-java-3.0.6-stable-bin.jar; ** Currently, I have the jdbc jar file under common\lib, server\lib and webapps\dbtest\WEB-INF\lib, hoping Tomcat will 'see' it under one of these locations. btw, I'm a first-timer for connecting Tomcat to a database. Thanks Clarence DahlinTo: Tomcat Users List [EMAIL PROTECTED] clarence.dahlin cc: @pitch.se Subject: RE: AW: java.sql.SQLException: Cannot load JDBC driver class 'null' 03/12/2003 06:55 AM Please respond to Tomcat Users List Did you define the driver in you classpath? / Clarence Dahlin -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: den 12 mars 2003 13:49 To: [EMAIL PROTECTED] Subject: Re: AW: java.sql.SQLException: Cannot load JDBC driver class 'null' I put it under server/lib, but no such luck.still the same error message. hmmm Uddhav Shirname [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] ent.co.in cc: Subject: Re: AW: java.sql.SQLException: Cannot load JDBC driver class 03/12/2003 06:43 AM 'null' Please respond to Tomcat Users List I am not absolutely sure if this is the problem, but I have placed the database related jars under server/lib. It works for me. -- Uddhav - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, March 12, 2003 6:04 PM Subject: Re: AW: java.sql.SQLException: Cannot load JDBC driver class 'null' Gerlinde, Thanks for the response! I placed my jdbc jar file under common/lib, but I still get the same error message. If you or anyone else has any other ideas, that would be greatly appreciated. Gerlinde Fischer [EMAIL
resolving version of Tomcat
Hi, does anybody know how to get version of allready installed Tomcat? I wan't to create upgrade script of product that uses Tomcat and need to check version from this script. I browse through the sources and only version information is string that is displayed to console after Tomcat is started (Apache Tomcat/4.0.6), but I cannot find the version string alone. Thank for your help Honza - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: AW: java.sql.SQLException: Cannot load JDBC driver class 'null'
If you don't want to be on the mailing list, then you can just unsubscribe. alessio marinelli To: Tomcat Users List [EMAIL PROTECTED] alessio_marinel cc: [EMAIL PROTECTED] Subject: Re: AW: java.sql.SQLException: Cannot load JDBC driver class 'null' 03/12/1998 07:49 AM Please respond to Tomcat Users List when you send a mail [EMAIL PROTECTED] this mail arrive at me - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, March 12, 2003 2:43 PM Subject: Re: AW: java.sql.SQLException: Cannot load JDBC driver class 'null' 'please control whern send a mail' I'm not sure what you mean by this statement? alessio marinelli To: Tomcat Users List [EMAIL PROTECTED] alessio_marinel cc: [EMAIL PROTECTED] Subject: Re: AW: java.sql.SQLException: Cannot load JDBC driver class 'null' 03/12/1998 07:42 AM Please respond to Tomcat Users List please control whern send a mail - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, March 12, 2003 2:37 PM Subject: Re: AW: java.sql.SQLException: Cannot load JDBC driver class 'null' 1. starting from tomcat-home\bin, I type in the command - startup. 2. starting from tomcat-home\bin, I type in the command - shutdown. I do this after every change I make to the tomcat configuration. After I issue the command 'startup,' then I see the classpath output in that same DOS window. Does my server.xml and web.xml setting look correct to all? Tomcat-RND [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] mail.comcc: Subject: Re: AW: java.sql.SQLException: Cannot load JDBC driver class 03/12/2003'null' 07:22 AM Please respond to Tomcat Users List Hi, Are you looking in a load-on-startup servlet Pratt. - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, March 12, 2003 6:50 PM Subject: RE: AW: java.sql.SQLException: Cannot load JDBC driver class 'null' No I did not, but now I do and I still receive the same error. I have printed out my classpath on the tomcat startup DOS window. This is: setting the jdbc jar to classpath * * classpath is: C:\Development\j2sdk1.4.1_01\lib\tools.jar;C:\development\ja karta-tomcat-4.1.12\common\lib\mysql-connector-java-3.0.6-stable-bin.jar; ** Currently, I have the jdbc jar file under common\lib, server\lib and webapps\dbtest\WEB-INF\lib, hoping Tomcat will 'see' it under one of these locations. btw, I'm a first-timer for connecting Tomcat to a database. Thanks Clarence DahlinTo: Tomcat Users List [EMAIL PROTECTED] clarence.dahlin cc: @pitch.se Subject: RE: AW: java.sql.SQLException: Cannot load JDBC driver class 'null' 03/12/2003 06:55 AM Please respond to Tomcat Users List
Re: Creating a pool connection.
Hi, here is for you public void init(ServletConfig config) throws ServletException { super.init(config); try { InitialContext initContext = new InitialContext(); log(- initContext); if (initContext == null) log(BOOM - initContext null); Context envContext = (Context)initContext.lookup(java:/comp/env); log(- envContext); if (envContext == null) log(BOOM - No Context); ds = (DataSource)envContext.lookup(/jdbc/postgresql); log(- DataSource); if (ds != null) { Connection conn = ds.getConnection(); log(- Connection); if (conn != null) { log(- Connection ok); Statement stmt = conn.createStatement(); ResultSet rs = stmt.executeQuery(select * from photo); if (rs.next()) { } conn.close(); log(- Connection close); } else log(BOOM - DataSource null); } }catch (SQLException e) {e.printStackTrace();} catch (NamingException e){e.printStackTrace();} getServletContext().setAttribute(postgresqlDataSource, ds); // this help you } Georges Gustavo Cebrian wrote: Should I store my pool connection class in the servlet context? Where should I create it? I do not know a common place to execute for all the servlets so they can share resources. Is the context the only place. Thanks. Gustavo. *** Gustavo Cebrian Analyst/Programmer Want to improve the ROI on your EAI project? Download RV Tester and reduce your development and testing timescales by as much as 50%. http://www.greenhatconsulting.com/rvtester Green Hat Consulting Ltd. 107 Fleet Street, London EC4A 2AB DDI +44 (0)20 7936 9495 Mobile +44 (0)7788 922291 http://www.greenhatconsulting.com [EMAIL PROTECTED] *** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Reading an XML File From a Servlet
Thanks for the tip. I found a very good article at: http://www.javaworld.com/javaworld/jw-05-2000/jw-0518-jdom.htm Best, -FB On Wednesday, March 12, 2003, at 12:53 AM, Dan Tran wrote: Sorry I dont have an example for you, but all you need is a InputStream to your xml file in your war file. Here is the interface to get it InputStream is = servlet.getServletContext().getResourceAsStream(pathName); Hope it helps -Dan - Original Message - From: Francisco J. Bido [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Tuesday, March 11, 2003 10:45 PM Subject: Reading an XML File From a Servlet Hi, I have a controller servlet which reads its configuration information from an xml file. I can do this relative to my local file system. My question is how to get the servlet to read the xml file from the WEB-INF directory once packaged in a typical WAR file. I'm lost regarding what the steps to follow or where to find a good example on how to achieve this. For example, do I need to declare a resource in the webapp's web.xml? Any help appreciated. Thanks! -FB - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: SEVERE: Handshake failed - because of 'Unrecognized SSL message'
Are you shure that the browser used https when this error happened ? This kind of error is also likely to happen, when somebody requests http:url:443 -Original Message- From: Schadler Johann [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 12, 2003 1:33 PM To: [EMAIL PROTECTED] Subject: SEVERE: Handshake failed - because of 'Unrecognized SSL message' There were several advices to upgrade to 4.1.14. Does anyone know if our problem will be resolved with an upgrade too? 12.03.2003 10:04:45 org.apache.tomcat.util.log.CommonLogHandler log SEVERE: Handshake failed javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection? at - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
run tomcat 4.0.3 as service
Hello, I would create an automatic startup/shutdown service on window 2000 server for tomcat 4.0.3 standalone. Some sources refer to a JSPService (jsplauncher), but I can't download it from http://members.nbci.com/yy_sun/jsplauncher/index.html. It would be very friendly, if someone could help me. Thanks Mariola Nowski __Wenn POP fr Sie mehr als nur Musik ist. Senden Sie Ihre SMS direkt ausOutlook oder Netscape! http://freemail.web.de/features/?mc=021177
Re: Tomcat application redeploy behind Apache server
- Original Message - From: Jacob Kjome [EMAIL PROTECTED] Subject: Re: Tomcat application redeploy behind Apache server I would suggest that you quit using mod_webapp. It is not actively developed any longer. Use mod_jk or jk2. mod_webapp is probably doing some funky cacheing. I couldn't tell you for sure and neither could most people. This is because almost no one uses mod_webapp anymore and you will be hard pressed to find any support out there for it. Make the switch and see if mod_jk or jk2 solves your problem. I tried mod_jk2 and it got worse. Now I cannot see updated web pages without restarting the Tomcat server. Remember that I am the application programmer writing the servlet which is running on Tomcat, not the systems programmer configuring the Apache and Tomcat servers. So please excuse my stupidity with regard to how those servers are configured. In my previous message I copied text from an obsolete file in apache2/conf. When I look at the log on the Tomcat server I see messages which I interpret as indicating that the mod_jk2 connector has started up. The only thing I see in the httpd.conf on the Apache side which appears to relate to the mod_jk2 connection is: LoadModule jk2_module modules/mod_jk2.so In workers2.properties I see: [uri:/Census/*] info=Census Servlets worker=ajp13:localhost:8009 debug=0 which I assume directs requests to my application, which is on the Tomat server at localhost:8009 I honestly do not know what questions to ask in order to get this working. I do not know what information about my configuration is relevant to resolving this problem. I do not know one connector from another, so I have absolutely no reason to pick one over another. I just want to run my servlet. So could someone please hand-hold me through this? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Update Problem / accessing servlet - solved
the problem exists only in the 'light edition' of tomcat, must be some function in the servlet Hi, thanks, that got me a little forward but now I get Error 500: javax.servlet.ServletException: Cannot allocate servlet instance for path /test/servlet/myservlet.out at org.apache.catalina.servlets.InvokerServlet.serveRequest(InvokerServlet.java:435) . any idea ? Chris Reynir Hübner wrote: Hi, That migth be because the /servlet/* mapping to the InvokerServlet is remarked in tomcat/conf/web.xml Remove the remark tags, and try again. Hope it helps -reynir -Original Message- From: Christoph Fischer [mailto:[EMAIL PROTECTED] Sent: 12. mars 2003 11:08 To: Tomcat Users List Subject: Update Problem / accessing servlet Hi, after update from tomcat 4.1.10 to 4.1.18 I have the proplem that I can not access my servlets anymore (Error 404). The path to the servlet is http://www.myhost.com/test/servlet/myservlet.out in the tomcat directory the servlet is located under /tomcat/webapps/test/WEB-INF/classes/myservlet Where do I have to define the test - directory that the url can be found again and why did it work with tomcat 4.1.10 ? Thanks for your help Chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
SV: run tomcat 4.0.3 as service
Hi. Maybe I dont know what I am talking about, but why dont you use the one under services I windows? Soren -Oprindelig meddelelse- Fra: Mariola Nowski [mailto:[EMAIL PROTECTED] Sendt: 12. marts 2003 11:12 Til: [EMAIL PROTECTED] Emne: run tomcat 4.0.3 as service Hello, I would create an automatic startup/shutdown service on window 2000 server for tomcat 4.0.3 standalone. Some sources refer to a JSPService (jsplauncher), but I can't download it from http://members.nbci.com/yy_sun/jsplauncher/index.html. It would be very friendly, if someone could help me. Thanks Mariola Nowski __ Wenn POP für Sie mehr als nur Musik ist. Senden Sie Ihre SMS direkt aus Outlook oder Netscape! http://freemail.web.de/features/?mc=021177 http://freemail.web.de/features/?mc=021177
Re: run tomcat 4.0.3 as service
Hello. Look at the site: http://www.vacodi.com/howto/tomcat/iisnt/index.html and download needed files or install Tomcat 4.1.18 - this version installing that service automatically. I have a good idea to You, please do not send e-mail in HTML format but as a plain text. Regards, Konrad Rusz - Original Message - From: Mariola Nowski To: [EMAIL PROTECTED] Sent: Wednesday, March 12, 2003 11:11 AM Subject: run tomcat 4.0.3 as service Hello, I would create an automatic startup/shutdown service on window 2000 server for tomcat 4.0.3 standalone. Some sources refer to a JSPService (jsplauncher), but I can't download it from http://members.nbci.com/yy_sun/jsplauncher/index.html. It would be very friendly, if someone could help me. Thanks Mariola Nowski __ Wenn POP für Sie mehr als nur Musik ist. Senden Sie Ihre SMS direkt aus Outlook oder Netscape! http://freemail.web.de/features/?mc=021177 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: JK + client authentication: getRemoteUser() returns null
Peter, where do you search? :) better to search where the info is ... http://marc.theaimsgroup.com/?w=2r=1s=tomcatAuthenticationq=t elaborating on b): jk2 is the internal name for 2 things: 1) a new native connector arch based on jk but enterely new.. 2) the new Coyote based ajp13 connector, that is the java code that manages ajp13 connections.. and it's compatible with native jk and jk2.. that is this new connector replace the ajp13connector you found in 4.0.6 server.xml jk2.properties it's a cfg file for Coyote/jk2.. here it's a explanation of the subtles for this 3 different things, jk native, jk2 native, and Coyote/jk2 connector for tomcat.., http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk2/doc/ Saludos, Ignacio J. Ortega -Original Message- From: Mayne, Peter [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 12, 2003 1:22 AM To: 'Tomcat Users List' Subject: RE: JK + client authentication: getRemoteUser() returns null a) My apologies. I certainly try to send plain text, but Outlook has a mind of its own, however tiny it may be. I think I've now beaten it into submission. b) I'll give it a try. From what I've seen mentioned of jk2, it's not ready for production use, not as tested and reliable as jk, etc, so I've haven't tried it. I also presumed that jk and jk2 being different things, that a jk2.properties file wouldn't modify a jk configuration. c) I've searched for tomcatAuthentication, but I didn't realise that putting it in the properties file (as opposed to specifying it in server.xml) would make a difference.(Not to mention that searching the archive is currently returning 0 results.) Thanks. PJDM -- Peter Mayne Technology Consultant Spherion Technology Solutions Level 1, 243 Northbourne Avenue, Lyneham, ACT, 2602 T: 61 2 62689727 F: 61 2 62689777 -Original Message- From: Ignacio J. Ortega [ mailto:[EMAIL PROTECTED] Sent: Wednesday, 12 March 2003 1:56 AM To: 'Tomcat Users List' Subject: RE: JK + client authentication: getRemoteUser() returns null Peter, a) Dont send HTML messages to this list, Read http://jakarta.apache.org/site/mail.html. b) jk2.properties it's used for the coyote connector jk configuration ( aka jk2 java part), not matter which native connector (jk,jk2) you use.. c) The recipe of i gave to you has been proved to death, by many people, search archives for tomcatAuthentication.. Saludos, Ignacio J. Ortega -Original Message- From: Mayne, Peter [ mailto:[EMAIL PROTECTED] Sent: Tuesday, March 11, 2003 2:27 AM To: 'Tomcat Users List' Subject: RE: JK + client authentication: getRemoteUser() returns null add ... to jk2.properties jk2, even though I'm using jk? Anyway, I tried it and it still didn't work. Thanks anyway. PJDM -- Peter Mayne Technology Consultant Spherion Technology Solutions Level 1, 243 Northbourne Avenue, Lyneham, ACT, 2602 T: 61 2 62689727 F: 61 2 62689777 -Original Message- From: Ignacio J. Ortega [ mailto:[EMAIL PROTECTED] Sent: Tuesday, 11 March 2003 12:21 PM To: 'Tomcat Users List' Subject: RE: JK + client authentication: getRemoteUser() returns null add request.tomcatAuthentication=false to jk2.properties Saludos, Ignacio J. Ortega -Original Message- From: Filip Hanik [ mailto:[EMAIL PROTECTED] Sent: Tuesday, March 11, 2003 1:12 AM To: Tomcat Users List Subject: RE: JK + client authentication: getRemoteUser() returns null you are correct, there is a bug filed for this, Bugzilla Bug 11563 not sure anyone is dealing with it though, Filip -Original Message- From: Mayne, Peter [ mailto:[EMAIL PROTECTED] Sent: Monday, March 10, 2003 4:01 PM To: Tomcat Users List Subject: JK + client authentication: getRemoteUser() returns null I'm using Windows XP Apache 2.0.44 OpenSSL 0.9.7a mod_jk-2.0.43.dll Tomcat 4.1.18 I've followed the instructions at http://www.johnturner.com/howto/winxp-howto.html to set up Apache and Tomcat using JK, with authentication using client certificates. Everything seems to be working fine, except request.getRemoteUser() is returning null. (The REMOTE_USER is shown from a CGI script, so authentication is working.) The only reference I can find to this problem is in /tomcat-docs/config/jk.html: setting the tomcatAuthentication attribute when using org.apache.ajp.tomcat4.Ajp13Connector, but since this connector doesn't appear in my server.xml, it doesn't seem to be relevant. (It does seem to be relevant for Tomcat 4.0.6, but I'd rather not have to try dropping back to there.) Before I post voluminous config files, am I missing something obvious? Thanks. PJDM -- Peter Mayne Technology Consultant Spherion Technology Solutions Level 1, 243
Tomcat4 - Not use date in Logger Element File Name?
Is there anyway to get Tomcat to not put a date stamp on logs files created from a Logger element? I would like localhost.log NOT localhost_log.2003-03-11.txt It is becoming difficult to manage, and renders apps such as logrotate useless. Note: Timestamp=true defines whether messages in the logfile get a timestamp, not the file name itself. Thank you in advance! James C. MontzRHCE Hosting Services Engineer James Tower Phone: (507)-344-5435 E-Mail: mailto:[EMAIL PROTECTED] http://www.jamestower.com Hosting Services: [EMAIL PROTECTED] -Original Message- From: Mariola Nowski [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 12, 2003 4:12 AM To: [EMAIL PROTECTED] Subject: run tomcat 4.0.3 as service Hello, I would create an automatic startup/shutdown service on window 2000 server for tomcat 4.0.3 standalone. Some sources refer to a JSPService (jsplauncher), but I can't download it from http://members.nbci.com/yy_sun/jsplauncher/index.html. It would be very friendly, if someone could help me. Thanks Mariola Nowski - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Shutdown sequence of Apache and Tomcat
Hi, I am using Apache Webserver 1.3.27 and Tomcat 4.0.6 with AJP 1.3 connector configured on Linux server. Can any say me what should be the sequence of shutdown of these servers... I mean whether Apache should start first or tomcat and even when shutting down what should be the sequence? Can any one give me some URL which explains this... Our sysadmin guys want this.. So please help me out.. Regards, ..Raj Need a new email address that people can remember Check out the new EudoraMail at http://www.eudoramail.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat4 - Not use date in Logger Element File Name?
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/valve.html#Access%20Log%20Valve and http://jakarta.apache.org/tomcat/tomcat-4.1-doc/catalina/docs/api/org/apache/catalina/valves/AccessLogValve.html The javadocs have better detail in the attribues you may set. Quick summary, turn rotation off by adding: rotatable=false -Tim Montz, James C. (James Tower) wrote: Is there anyway to get Tomcat to not put a date stamp on logs files created from a Logger element? I would like localhost.log NOT localhost_log.2003-03-11.txt It is becoming difficult to manage, and renders apps such as logrotate useless. Note: Timestamp=true defines whether messages in the logfile get a timestamp, not the file name itself. Thank you in advance! James C. MontzRHCE Hosting Services Engineer James Tower Phone: (507)-344-5435 E-Mail: mailto:[EMAIL PROTECTED] http://www.jamestower.com Hosting Services: [EMAIL PROTECTED] -Original Message- From: Mariola Nowski [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 12, 2003 4:12 AM To: [EMAIL PROTECTED] Subject: run tomcat 4.0.3 as service Hello, I would create an automatic startup/shutdown service on window 2000 server for tomcat 4.0.3 standalone. Some sources refer to a JSPService (jsplauncher), but I can't download it from http://members.nbci.com/yy_sun/jsplauncher/index.html. It would be very friendly, if someone could help me. Thanks Mariola Nowski - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Thread-Pool growing, never freed
Hello, tomcat 4.0.3 and 4.1.18 Linux 7.3 (i386) - Kernel 2.4.13 JDK SUN 1.4.1_01 the Thread-Pool from cojote and httpconnector is growing when user is sending requests without waiting for response. The Thread-Pool will never be freed. Tomcat hangs if maxProcessors is reached. Only one user is connected. Only one servlet is requested. The servlets methods doGet and doPost always return. I put Sytem.out at start and end of doGet and doPost and counting an static int. The output of the int is linear with no breaks. The servlet uses SingleThreadModel. The output shows me that my code in the servlet does not hang. connectionTimeout is 15000 If the user is waiting for response the Pool works like expected. Thanks Günter
Tomcat 4.1.18 binary (unix) corrupted?
Hi, I tried to install the binary version for Unix (hp-ux 11.00) downloaded from http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.1.18/bin/ page (jakarta-tomcat-4.1.18.tar.gz). When I tried to gunzip the downloaded tar ball, I got the following error, consistently after downloading for about five times. Is there any other better web page where I can download a non-corrupted version of the Tomcat 4.1.18 binary for unix? Thanks, Selva - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Shutdown sequence of Apache and Tomcat
I don't know if there is a graceful way to exit. If you stop tomcat first, users will get an error-Message that tomcat is not available, on the other side if you stop apache first, results from tomcat may leave an uncomplete page for the user. Personally I prefer apache and then tomcat shutoff. chris Raja Sekhar wrote: Hi, I am using Apache Webserver 1.3.27 and Tomcat 4.0.6 with AJP 1.3 connector configured on Linux server. Can any say me what should be the sequence of shutdown of these servers... I mean whether Apache should start first or tomcat and even when shutting down what should be the sequence? Can any one give me some URL which explains this... Our sysadmin guys want this.. So please help me out.. Regards, ..Raj Need a new email address that people can remember Check out the new EudoraMail at http://www.eudoramail.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Please Help, Building JK2 failed
Hi. I am trying to build JK2 on AIX 4.3.3. I have run ant already and it has successfully built. I am getting the error when running ant native. It is looking for the file ant.tasks but that file is not on my machine. Is the build suppose to make it? Am I suppose to download it from somewhere? Could someone tell me what I am doing wrong? Thanks, Al [EMAIL PROTECTED] The error is ... ant native Buildfile: build.xml jkant: BUILD FAILED file:/usr/local/web/tmp/apache/JK2/jakarta-tomcat-connectors-jk2-2.0.2-s rc/jk/build.xml:235: Warning: Could not find file /usr/local/web/tmp/apache/JK2/jakarta-tomcat-connectors-jk2-2.0.2-src/jk /jkant/ant.tasks to copy. Total time: 39 seconds ~~~ Old Chinese proverb says, No use to run, Grasshopper, if you are on the wrong road.
AIX 4.3.3 JK2 (mod_jk) ?
Hi. Could someone tell me where I can get a JK2 binary (mod_jk.so) for AIX 4.3.3? http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk2/ does not have any AIX binaries. Thanks, Al ~~~ Old Chinese proverb says, No use to run, Grasshopper, if you are on the wrong road.
Apache 1.3.27 and mod_jk2
Hi, Is it a right combination to integrate Tomcat 4.1.18 with Apache 1.3.27 using mod_jk2 connector? Do we get any advantage or disadvantage by replacing mod_jk instead of mod_jk2? Thanks, Selva - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 4.1.18 binary (unix) corrupted?
Howdy, I haven't tried your specific platform, but that download works well on windows, linux, and solaris. Perhaps you're using native and not GNU tar to untar the distribution? Yoav Shapira Millennium ChemInformatics -Original Message- From: Selvaraj N [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 11, 2003 10:33 PM To: 'Tomcat Users List' Subject: Tomcat 4.1.18 binary (unix) corrupted? Hi, I tried to install the binary version for Unix (hp-ux 11.00) downloaded from http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.1.18/bin / page (jakarta-tomcat-4.1.18.tar.gz). When I tried to gunzip the downloaded tar ball, I got the following error, consistently after downloading for about five times. Is there any other better web page where I can download a non-corrupted version of the Tomcat 4.1.18 binary for unix? Thanks, Selva - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 4.1.18 binary (unix) corrupted?
Hi Selva, I had same problem while unpacking the binary for solaris using gzip. We used winace to unpack the binary and move it to solaris platform. Check if you have enough space on the drive you are moving to and also check the binary file size after the download to see if it was corrupted. I can say i am not happy with GNU. Ap -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 12, 2003 8:38 AM To: Tomcat Users List Subject: RE: Tomcat 4.1.18 binary (unix) corrupted? Howdy, I haven't tried your specific platform, but that download works well on windows, linux, and solaris. Perhaps you're using native and not GNU tar to untar the distribution? Yoav Shapira Millennium ChemInformatics -Original Message- From: Selvaraj N [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 11, 2003 10:33 PM To: 'Tomcat Users List' Subject: Tomcat 4.1.18 binary (unix) corrupted? Hi, I tried to install the binary version for Unix (hp-ux 11.00) downloaded from http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.1.18/bin / page (jakarta-tomcat-4.1.18.tar.gz). When I tried to gunzip the downloaded tar ball, I got the following error, consistently after downloading for about five times. Is there any other better web page where I can download a non-corrupted version of the Tomcat 4.1.18 binary for unix? Thanks, Selva - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 4.1.18 binary (unix) corrupted?
It is an issue with the Solaris version of gzip, try the GNU version it works fine. I've had no problems with corrupting the binary of Tomcat on Solaris when using the GNU version of gzip. On Wed, 2003-03-12 at 15:45, Aparna Narla wrote: Hi Selva, I had same problem while unpacking the binary for solaris using gzip. We used winace to unpack the binary and move it to solaris platform. Check if you have enough space on the drive you are moving to and also check the binary file size after the download to see if it was corrupted. I can say i am not happy with GNU. Ap -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 12, 2003 8:38 AM To: Tomcat Users List Subject: RE: Tomcat 4.1.18 binary (unix) corrupted? Howdy, I haven't tried your specific platform, but that download works well on windows, linux, and solaris. Perhaps you're using native and not GNU tar to untar the distribution? Yoav Shapira Millennium ChemInformatics -Original Message- From: Selvaraj N [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 11, 2003 10:33 PM To: 'Tomcat Users List' Subject: Tomcat 4.1.18 binary (unix) corrupted? Hi, I tried to install the binary version for Unix (hp-ux 11.00) downloaded from http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.1.18/bin / page (jakarta-tomcat-4.1.18.tar.gz). When I tried to gunzip the downloaded tar ball, I got the following error, consistently after downloading for about five times. Is there any other better web page where I can download a non-corrupted version of the Tomcat 4.1.18 binary for unix? Thanks, Selva - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Michael D. Risser [EMAIL PROTECTED] Double Dimension Networks, Inc. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: resolving version of Tomcat
call getServerInfo() on the ServletContext On Wednesday, March 12, 2003, at 01:48 pm, Jan Kocian wrote: Hi, does anybody know how to get version of allready installed Tomcat? I wan't to create upgrade script of product that uses Tomcat and need to check version from this script. I browse through the sources and only version information is string that is displayed to console after Tomcat is started (Apache Tomcat/4.0.6), but I cannot find the version string alone. Thank for your help Honza - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
digests
I am being swamped with mail is there a digest. Tony Vassallo ([EMAIL PROTECTED]) LAWSON/SEA System Support Specialist DART C/S App Dev Maintenance Team 214-749-3408 work/ 214-914-4892 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: resolving version of Tomcat
Use the getServerInfo() method of the ServletContext. It returns servername/serverversion. To view it from your JSP page use... %= application.getServerInfo() % or %= getServletContext().getServerInfo() % Here is a link to the documentation on the ServletContext... http://java.sun.com/products/servlet/2.2/javadoc/javax/servlet/ServletContext.html -Calvin At 05:48 AM 3/12/2003, you wrote: Hi, does anybody know how to get version of allready installed Tomcat? I wan't to create upgrade script of product that uses Tomcat and need to check version from this script. I browse through the sources and only version information is string that is displayed to console after Tomcat is started (Apache Tomcat/4.0.6), but I cannot find the version string alone. Thank for your help Honza - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Mozilla Issues Viewing Servlet
Tomcat Users, I have Tomcat working properly and I have integrated OpenEJB. I ran the example servlet, HelloOpenEJB, and if I view the servlet from Mozilla, the servlet works BUT I get to the point where the servlet creates HTML to be viewed by the browser, I get the tags and the data. If I browse to the same address from a Windows machine running IE 6.0, I get the desired results. Here is what shows up in the browser when I visit: http://localhost:8080/examples/servlet/HelloOpenEJB from Mozilla: html head titleHello World!/title /head body h1Hello World!/h1 /body /html If I view it from IE 6.0, I get the desired results where the tags are parsed and the output is HTML: Hello World! Anyone know why this is happening? Thanks, Jeremy Whitlock --- MCP/MCSA IT Manager for Star Precision, Inc. Phone: (970) 535-4795 Metro: (303) 926-0559 Fax: (970) 535-0780 Metro Fax: (303) 926-0559 http://www.starprecision.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Mozilla Issues Viewing Servlet
Howdy, It looks like a response content-type issue. Likely the EJB or servlet is not setting the content type to text/html. IE 6.0 by default interprets null content type as text/html, but Mozilla doesn't and displays the raw information. Yoav Shapira Millennium ChemInformatics -Original Message- From: Jeremy Whitlock [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 12, 2003 11:22 AM To: Tomcat Subject: Mozilla Issues Viewing Servlet Tomcat Users, I have Tomcat working properly and I have integrated OpenEJB. I ran the example servlet, HelloOpenEJB, and if I view the servlet from Mozilla, the servlet works BUT I get to the point where the servlet creates HTML to be viewed by the browser, I get the tags and the data. If I browse to the same address from a Windows machine running IE 6.0, I get the desired results. Here is what shows up in the browser when I visit: http://localhost:8080/examples/servlet/HelloOpenEJB from Mozilla: html head titleHello World!/title /head body h1Hello World!/h1 /body /html If I view it from IE 6.0, I get the desired results where the tags are parsed and the output is HTML: Hello World! Anyone know why this is happening? Thanks, Jeremy Whitlock --- MCP/MCSA IT Manager for Star Precision, Inc. Phone: (970) 535-4795 Metro: (303) 926-0559 Fax: (970) 535-0780 Metro Fax: (303) 926-0559 http://www.starprecision.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: great problem with dbcp conn pool
what must i to put? reconnect or Reconnect o reconect or reconnect? can you help me? thanks - Original Message - From: Gerlinde Fischer [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, March 12, 2003 2:22 PM Subject: AW: great problem with dbcp conn pool hi, in your orginial server.xml, is there also reconect instead of reconnect. Regards Gerlinde -Ursprngliche Nachricht- Von: Dionisio Ruiz de Zarate [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 12. Mrz 2003 14:10 An: [EMAIL PROTECTED] Betreff: great problem with dbcp conn pool hello y ahave the next conf in my server.xml file but appears the bellow error, not always, only if i not acess to the page in several hours. can you help me? thanks CONF (server.xml): Resource name=jdbc/otrosservicios auth=Container type=javax.sql.DataSource/ ResourceParams name=jdbc/otrosservicios parameter namefactory/name valueorg.apache.commons.dbcp.BasicDataSourceFactory/value /parameter parameter namemaxActive/name value100/value /parameter parameter namemaxIdle/name value30/value /parameter parameter namemaxWait/name value-1/value /parameter parameter nameusername/name valueuser/value /parameter parameter namepassword/name valuepasswd/value /parameter parameter namedriverClassName/name valuecom.mysql.jdbc.Driver/value /parameter parameter nameurl/name valuejdbc:mysql://127.0.0.1:3306/otrosservicios?autoReconect=tru e/value /parameter parameter nameremoveAbandoned/name valuetrue/value /parameter parameter nameremoveAbandonedTimeout/name value120/value /parameter parameter namelogAbandoned/name valuetrue/value /parameter /ResourceParams ERROR: org.apache.jasper.JasperException: Communication link failure: java.net.SocketException at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrap per.java:2 48) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(A pplication FilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(Applicati onFilterCh ain.java:193) at utils.filtroSessiones.doFilter(filtroSessiones.java:141) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(A pplication FilterChain.java:213) at org.apache.catalina.core.ApplicationFilterChain.doFilter(Applicati onFilterCh ain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapp erValve.ja va:260) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveCon text.invok eNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline. java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardConte xtValve.ja va:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveCon text.invok eNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline. java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValv e.java:180 ) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveCon text.invok eNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispat cherValve. java:170) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveCon text.invok eNext(StandardPipeline.java:641) at
RE: Bad Cookie Handling in Tomcat mod_Jk
Thanks Bill. This is great. This has been bugging me for awhile. Dennis -Original Message- From: news [mailto:[EMAIL PROTECTED] Behalf Of Bill Barker Sent: Wednesday, March 12, 2003 3:46 AM To: [EMAIL PROTECTED] Subject: Re: Bad Cookie Handling in Tomcat mod_Jk Dennis Cartier [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi Guys, I have run across a situation a couple of times now that results in the operation of my cluster being severely impacted. When a bad cookie comes into 1 of the nodes, it crashes the coyote connector like so: java.lang.IllegalArgumentException: Cookie name 7~?at1 is a reserved token at javax.servlet.http.Cookie.init(Cookie.java:185) at org.apache.coyote.tomcat4.CoyoteAdapter.parseCookies(CoyoteAdapter.java:402) at org.apache.coyote.tomcat4.CoyoteAdapter.postParseRequest(CoyoteAdapter.java: 306) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:221) at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:261) at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:360) at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:632) at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:590) at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:707) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav a:530) at java.lang.Thread.run(Thread.java:536) Then the request is moved to another node and crashes it, and so, and so on. The request just keeps circling killing all the coyote's it encounters. The only way I have found to deal with this is to restart all the nodes of the cluster when this occurs. I am not sure how this can be prevented. The requests seem to circle for ever, and never seems to die. Background: cluster running - JBoss 3.0.6 - Tomcat 4.1.18 - mod_jk 1.2.2 I asked the this same question a month ago, but got zero replies. Does anyone here have an idea? I just committed a patch to the jakarta-tomcat-4.0 HEAD that should fix this. My thinking is that mod_jk could head this potential problem off by screening the cookie names *BEFORE* it passes them to tomcat. Anyone know how I can get in contact with the mod_jk developers? If this list doesn't satisfy you (most of the mod_jk developers at least lurk on this list), you can try subscribing to tomcat-dev and asking there. As a word of warning, if you're not willing to provide patches, then user-type questions generally get ignored (or get a reply to send to tomcat-user :). Thanks, Dennis - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: great problem with dbcp conn pool
Change ... valuejdbc:mysql://127.0.0.1:3306/otrosservicios?autoReconect=true/value to valuejdbc:mysql://127.0.0.1:3306:/otrosservicios?autoReconnect=true/value On Wed, 2003-03-12 at 16:35, Dionisio Ruiz de Zarate wrote: what must i to put? reconnect or Reconnect o reconect or reconnect? can you help me? thanks - Original Message - From: Gerlinde Fischer [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, March 12, 2003 2:22 PM Subject: AW: great problem with dbcp conn pool hi, in your orginial server.xml, is there also reconect instead of reconnect. Regards Gerlinde -Ursprüngliche Nachricht- Von: Dionisio Ruiz de Zarate [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 12. März 2003 14:10 An: [EMAIL PROTECTED] Betreff: great problem with dbcp conn pool hello y ahave the next conf in my server.xml file but appears the bellow error, not always, only if i not acess to the page in several hours. can you help me? thanks CONF (server.xml): Resource name=jdbc/otrosservicios auth=Container type=javax.sql.DataSource/ ResourceParams name=jdbc/otrosservicios parameter namefactory/name valueorg.apache.commons.dbcp.BasicDataSourceFactory/value /parameter parameter namemaxActive/name value100/value /parameter parameter namemaxIdle/name value30/value /parameter parameter namemaxWait/name value-1/value /parameter parameter nameusername/name valueuser/value /parameter parameter namepassword/name valuepasswd/value /parameter parameter namedriverClassName/name valuecom.mysql.jdbc.Driver/value /parameter parameter nameurl/name valuejdbc:mysql://127.0.0.1:3306/otrosservicios?autoReconect=tru e/value /parameter parameter nameremoveAbandoned/name valuetrue/value /parameter parameter nameremoveAbandonedTimeout/name value120/value /parameter parameter namelogAbandoned/name valuetrue/value /parameter /ResourceParams ERROR: org.apache.jasper.JasperException: Communication link failure: java.net.SocketException at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrap per.java:2 48) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(A pplication FilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(Applicati onFilterCh ain.java:193) at utils.filtroSessiones.doFilter(filtroSessiones.java:141) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(A pplication FilterChain.java:213) at org.apache.catalina.core.ApplicationFilterChain.doFilter(Applicati onFilterCh ain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapp erValve.ja va:260) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveCon text.invok eNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline. java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardConte xtValve.ja va:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveCon text.invok eNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline. java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValv e.java:180 ) at
RE: Mozilla Issues Viewing Servlet
Yoav, How would you suggest setting the content type? I tried to it but I don't think I did it right as I got the same results but with the new changes to it. Any ideas? Thanks, Jeremy -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 12, 2003 9:34 AM To: Tomcat Users List Subject: RE: Mozilla Issues Viewing Servlet Howdy, It looks like a response content-type issue. Likely the EJB or servlet is not setting the content type to text/html. IE 6.0 by default interprets null content type as text/html, but Mozilla doesn't and displays the raw information. Yoav Shapira Millennium ChemInformatics -Original Message- From: Jeremy Whitlock [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 12, 2003 11:22 AM To: Tomcat Subject: Mozilla Issues Viewing Servlet Tomcat Users, I have Tomcat working properly and I have integrated OpenEJB. I ran the example servlet, HelloOpenEJB, and if I view the servlet from Mozilla, the servlet works BUT I get to the point where the servlet creates HTML to be viewed by the browser, I get the tags and the data. If I browse to the same address from a Windows machine running IE 6.0, I get the desired results. Here is what shows up in the browser when I visit: http://localhost:8080/examples/servlet/HelloOpenEJB from Mozilla: html head titleHello World!/title /head body h1Hello World!/h1 /body /html If I view it from IE 6.0, I get the desired results where the tags are parsed and the output is HTML: Hello World! Anyone know why this is happening? Thanks, Jeremy Whitlock --- MCP/MCSA IT Manager for Star Precision, Inc. Phone: (970) 535-4795 Metro: (303) 926-0559 Fax: (970) 535-0780 Metro Fax: (303) 926-0559 http://www.starprecision.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: problem with hyphen in hostname
Here's a little more info... The problem is that the hyphenated hostname being given to the browser (www.first-last.com) is being changed by the servlet and the hyphen is being removed (www.firstlast.com). (Of course that's not a real domain name but it illustrates what's happening more clearly.) Both domains are legitimate for this server. Both are recognized by Apache. The actual hostname (from /etc/hosts) is something completely different. All of this is taking place in the servlet. I haven't tested this in a jsp page. When I give response.sendRedirect() a relative url, I notice that the hostname is changing in the browser's location bar. Absolute urls are not a problem. In testing, I noticed that request.getRequestURL() and request.getServerName() also return the hostname without the hyphen. Further testing found that request.getHeader(host) returned the correctly hyphenated hostname given when the servlet was called by the browser. The workaround I'm using is to build an absolute url using the hostname from the header and redirect to that url instead of the relative url I'd been using. Is this expected behavior? It would seem to me that the hostname given in the user's browser's location bar should be being maintained throughout the session unless changed by a redirection. (Which of course is what's happening.) I don't understand why the redirection and the two request methods are dropping the hyphen. Am I doing something wrong? Thanks Cindy At 11:26 PM 3/11/03 -0800, Bill Barker wrote: I just tested this, and it works for me. My first guess would be that the Host tag is setup wrong. This is a bit strange, but it should be easy enough to debug. Try doing: $ telnet my-host.mycompany.com 80 ... GET /myapp/my-page-that-does-a-redirect HTTP/1.0 Host: my-host.mycompany.com Of course, substitute in real information for 'my-host', 'mycompany.com', and the URL. If the response is pointing to a different host, then you've likely got a configuration problem (but it should at least give you hints on where to look). Cindy Ballreich [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I've recently noticed a problem that occurs when I access my site using a domain name with a hyphen in it. It seems that when I navigate using dispatcher.forward everything works fine. But when I use response.sendRedirect the hyphen is lost. Since we also own the same domain name without the hyphen, the redirection works, but a new session is created requiring the user to be re-authenticated. (The hyphenated domain name is preferred over the non-hyphenated one.) I've printed out request.getRequestURL() and the hyphen is also missing from this value. I've tried several of our other domain names (all legal for this server) and they all work properly. The only one with problems is the hyphenated one. Is this a problem with Tomcat or am I doing something wrong? Tomcat 4.1.18 Apache 1.3.26 mod_jk RedHat Linux 7.3 I'd be happy to provide any other info. Thanks Cindy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: AW: java.sql.SQLException: Cannot load JDBC driver class 'null'
I have this working now. Here is what I did: * First of all, I changed my server.xml. Here is the section of that file that matters to this issue: !-- Database configuration for MySQL -- Context path=/bugtracker docBase=bugtracker debug=5 reloadable =true crossContext=true Logger className=org.apache.catalina.logger.FileLogger prefix =localhost_DBTest_log. suffix=.txt timestamp=true/ Resource name=jdbc/bugtracker auth=Container type =javax.sql.DataSource/ ResourceParams name=jdbc/bugtracker parameter namefactory/name valueorg.apache.commons.dbcp.BasicDataSourceFactory/value /parameter !-- Maximum number of dB connections in pool. Make sure you configure your mysqld max_connections large enough to handle all of your db connections. Set to 0 for no limit. -- parameter namemaxActive/name value100/value /parameter !-- Maximum number of idle dB connections to retain in pool. Set to 0 for no limit. -- parameter namemaxIdle/name value30/value /parameter !-- Maximum time to wait for a dB connection to become available in ms, in this example 10 seconds. An Exception is thrown if this timeout is exceeded. Set to -1 to wait indefinitely. -- parameter namemaxWait/name value1/value /parameter !-- MySQL dB username and password for dB connections -- parameter nameusername/name valuebugtracker/value /parameter parameter namepassword/name valuefootin/value /parameter !-- Class name for mm.mysql JDBC driver -- parameter namedriverClassName/name valuecom.mysql.jdbc.Driver/value /parameter !-- The JDBC connection url for connecting to your MySQL dB. The autoReconnect=true argument to the url makes sure that the mm.mysql JDBC Driver will automatically reconnect if mysqld closed the connection. mysqld by default closes idle connections after 8 hours. -- parameter nameurl/name valuejdbc:mysql://localhost:3306/bugtracker?autoReconnect=true/value /parameter /ResourceParams /Context * The jdbc jar file only works under \common\lib * Changed the jndi line in the Java class to reference 'bugtracker' * Thanks for all your help! Gerlinde Fischer [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] amberg.de cc: Subject: AW: java.sql.SQLException: Cannot load JDBC driver class 03/12/2003 05:47 AM 'null' Please respond to Tomcat Users List Hi where ist your Database Connection? In the server.xml in the context for your test application. The jdbc.driver must be placed into the directory common/lib. I hope this will help. Regards Gerlinde -Ursprungliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 11. Marz 2003 22:58 An: [EMAIL PROTECTED] Betreff: java.sql.SQLException: Cannot load JDBC driver class 'null' Tomcat version - 4.1.12 MySQL version - 3.23.55-nt OS - WinNT JDK - 1.4.1_01 I have researched this problem on the internet and in the documentation for Tomcat, and I still haven't resolved this issue. So, I'm looking for help from someone from this list. Here is my URL that I invoke:
RE: Mozilla Issues Viewing Servlet
Yoav, I figured it out: response.setContentType(text/html); Thanks, Jeremy -Original Message- From: Jeremy Whitlock [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 12, 2003 9:45 AM To: 'Tomcat Users List' Subject: RE: Mozilla Issues Viewing Servlet Yoav, How would you suggest setting the content type? I tried to it but I don't think I did it right as I got the same results but with the new changes to it. Any ideas? Thanks, Jeremy -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 12, 2003 9:34 AM To: Tomcat Users List Subject: RE: Mozilla Issues Viewing Servlet Howdy, It looks like a response content-type issue. Likely the EJB or servlet is not setting the content type to text/html. IE 6.0 by default interprets null content type as text/html, but Mozilla doesn't and displays the raw information. Yoav Shapira Millennium ChemInformatics -Original Message- From: Jeremy Whitlock [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 12, 2003 11:22 AM To: Tomcat Subject: Mozilla Issues Viewing Servlet Tomcat Users, I have Tomcat working properly and I have integrated OpenEJB. I ran the example servlet, HelloOpenEJB, and if I view the servlet from Mozilla, the servlet works BUT I get to the point where the servlet creates HTML to be viewed by the browser, I get the tags and the data. If I browse to the same address from a Windows machine running IE 6.0, I get the desired results. Here is what shows up in the browser when I visit: http://localhost:8080/examples/servlet/HelloOpenEJB from Mozilla: html head titleHello World!/title /head body h1Hello World!/h1 /body /html If I view it from IE 6.0, I get the desired results where the tags are parsed and the output is HTML: Hello World! Anyone know why this is happening? Thanks, Jeremy Whitlock --- MCP/MCSA IT Manager for Star Precision, Inc. Phone: (970) 535-4795 Metro: (303) 926-0559 Fax: (970) 535-0780 Metro Fax: (303) 926-0559 http://www.starprecision.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 4.1.18 binary (unix) corrupted?
download the .zip to solaris and unpack it with jar -xvf Filip -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 12, 2003 7:38 AM To: Tomcat Users List Subject: RE: Tomcat 4.1.18 binary (unix) corrupted? Howdy, I haven't tried your specific platform, but that download works well on windows, linux, and solaris. Perhaps you're using native and not GNU tar to untar the distribution? Yoav Shapira Millennium ChemInformatics -Original Message- From: Selvaraj N [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 11, 2003 10:33 PM To: 'Tomcat Users List' Subject: Tomcat 4.1.18 binary (unix) corrupted? Hi, I tried to install the binary version for Unix (hp-ux 11.00) downloaded from http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v 4.1.18/bin / page (jakarta-tomcat-4.1.18.tar.gz). When I tried to gunzip the downloaded tar ball, I got the following error, consistently after downloading for about five times. Is there any other better web page where I can download a non-corrupted version of the Tomcat 4.1.18 binary for unix? Thanks, Selva - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: resolving version of Tomcat
You don't understand me well. I need to get version of Tomcat that is not running (or not in Servlet/JSP) - directly from Tomcat's files from disc (or using some small Java application). Honza Use the getServerInfo() method of the ServletContext. It returns servername/serverversion. To view it from your JSP page use... %= application.getServerInfo() % or %= getServletContext().getServerInfo() % Here is a link to the documentation on the ServletContext... http://java.sun.com/products/servlet/2.2/javadoc/javax/servlet/ServletContext.html -Calvin At 05:48 AM 3/12/2003, you wrote: Hi, does anybody know how to get version of allready installed Tomcat? I wan't to create upgrade script of product that uses Tomcat and need to check version from this script. I browse through the sources and only version information is string that is displayed to console after Tomcat is started (Apache Tomcat/4.0.6), but I cannot find the version string alone. Thank for your help Honza - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Is this a tomcat error?
Has anyone seen this error before? I can access the Postgresql database from the command line. Error accessing the database Backend start-up failed:FATAL: Databasenba does not exist in the system catalog. thanks, Phil Campaigne
Re: resolving version of Tomcat
Hi, I have this file write.lock in my Lutece Web application that's running by Tomcat and this cause me a problem when I startup.bat my Tomcat. Here is the part of the DOS screen that imform me about this problem. (Sorry for my english I need more practice, but this is an other problem :) : ... [INFO] JkMain - -Jk running ID=0 time=0/110 config=C:\Program Files\Apache Group\Tomcat41\bin\..\conf\jk2.properties java.io.IOException: Index locked for write : Lock@ C :\Program Files\Apache Group\Tomcat41\webapps\lutece\WEB-INF\index\write.lock at org.apache.lucene.index.IndexWriter.init(Unknown Source) at org.apache.lucene.index.IndexWriter.init(Unknown Source) I think this problem is due to a bab config on mod_jk2 or jk2.properties or something like that ? I search the Tomcat User List Archive and I really don't no where to start to resolve this problem ? Do I have to remove this file (write.lock) from my PC ? Thanks for your help ! JPK - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat 4.1 with JRE + tools.jar?
I know that the Tomcat 4.1 installation docs say that you need a JDK to run it, but does anyone know if it would work to run it on the 1.4 JRE with tools.jar included from the JDK? Would I also need javac? I found a similar question in the archives about running Tomcat with the JRE, and the general consensus was that you'd need to precompile JSPs, but that thread didn't consider including tools.jar and/or javac with the JRE. These files are now legal to redistribute along with it, and we'd like to be able to give customers all the software they need out-of-the-box, so that's why I ask. Thanks, -- Tim Moore / Blackboard Inc. / Software Engineer 1899 L Street, NW / 5th Floor / Washington, DC 20036 Phone 202-463-4860 ext. 258 / Fax 202-463-4863
RE: Tomcat 4.1 with JRE + tools.jar?
Howdy, Assuming you have already or will try it, and find that it works (as I think you would), I still don't think it's a good idea. Once you don't have the requirements for installation, no matter how close your substitute is, you risk not being able to get any help. If you think tomcat should not require the JDK to start with, which may be an entirely valid view, then pursue that course instead. Ask the developers for it, put in a bugzilla enhancement item, etc, but don't expect easy and immediate success. Yoav Shapira Millennium ChemInformatics -Original Message- From: Tim Moore [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 12, 2003 2:17 PM To: [EMAIL PROTECTED] Subject: Tomcat 4.1 with JRE + tools.jar? I know that the Tomcat 4.1 installation docs say that you need a JDK to run it, but does anyone know if it would work to run it on the 1.4 JRE with tools.jar included from the JDK? Would I also need javac? I found a similar question in the archives about running Tomcat with the JRE, and the general consensus was that you'd need to precompile JSPs, but that thread didn't consider including tools.jar and/or javac with the JRE. These files are now legal to redistribute along with it, and we'd like to be able to give customers all the software they need out-of-the-box, so that's why I ask. Thanks, -- Tim Moore / Blackboard Inc. / Software Engineer 1899 L Street, NW / 5th Floor / Washington, DC 20036 Phone 202-463-4860 ext. 258 / Fax 202-463-4863 This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
imported jars servlets
Hello, First off, thanks for the help with the problem I had earlier with getting jdom.jar to work on my jsps. It helped immensely. Now, I'm having a problem getting it to work with a servlet. I have a servlet, which uses the classes in jdom.jar (org.jdom.*,org.jdom.input.DOMBuilder, etc.) when I compile it, it compiles, then when I try to run it as a servlet, I get the following exception... javax.servlet.ServletException: Invoker service() exception and the following root cause... java.lang.NoClassDefFoundError: org/jdom/input/DOMBuilder the line causing the croak being: org.jdom.input.DOMBuilder xfer = new org.jdom.input.DOMBuilder(); it's the first time I reference a jdom object in the source code. now, I have the jdom.jar file in the WEB-INF/lib of my application directory, and nowhere else. Furthermore, when I run this line of code from within a jsp file, it works just fine. Does anybody know what I'm doing wrong here? Thanks, and sorry about bugging you with these beginner questions. :) -jacques :) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat Mailing List
Wow, my first day on the Tomcat mailing list, and arrived at work this morning to find around 100 emails in my INBOX! What this community perhaps needs is an eForum - or is there one already? Mailing lists are fine for small eCommunities, but not for eContinents. :-) Chris. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat Caching Files?
Hi All, I changed a html file and noticed I am still getting the old html file intermittantly. I restarted Tomcat (4.1.18) and still have the older html pop up intermittantly. I deleted my content from the browser (i.e. 5.5) and even restarted my client machine where I was viewing the html remotely. Is there some cache in Tomcat I should/can clear out or perhaps I should check into my proxy server? Many Thanks, Tony
RE: imported jars servlets
Howdy, java.lang.NoClassDefFoundError: org/jdom/input/DOMBuilder now, I have the jdom.jar file in the WEB-INF/lib of my application directory, and nowhere else. Furthermore, when I run this line of code from within a jsp file, it works just fine. Does anybody know what I'm doing wrong here? Thanks, and sorry about bugging you with these beginner questions. :) Not a beginner question, and no need to apologize. The key here is to understand the difference between ClassNotFoundException and a NoClassDefFoundError. One of two things is happening: 1. (Less Likely) you are running with a different version of jdom.jar than the one against which you compiled the servlet. 2. (More likely) while you have only one jdom.jar files, the JDOM classes are present in other jars somewhere in your tomcat installation or endorsed directories. Look through jars, e.g. jar tvf thisjar.jar | grep org.jdom to see if they contain these classes. Your /WEB-INF/lib is the right place to have your JDOM jar file. It should be nowhere else. Unfortunately the classpath for JSPs is slightly different at runtime than the classpath for servlets. This complicates debugging of problems like these significantly. There used to be a way to get the actual classpath used by jasper to compiled JSPs at runtime, but I don't remember how to do it now. Seeing this classpath would help here. Yoav Shapira Millennium ChemInformatics This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat Mailing List
Howdy, I love how on your first day here you determine the mailing list is not suitable for this community ;) Yes, the list has much traffic. Yes, some of the traffic is off-topic. This is why we have: - Filters and grouping options in our mail readers - Searchable archives (e.g. at AIMS) - The ability to unsubscribe if we don't want to be here Yoav Shapira Millennium ChemInformatics -Original Message- From: Chris Dodunski [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 12, 2003 3:01 PM To: Tomcat Users List Subject: Tomcat Mailing List Wow, my first day on the Tomcat mailing list, and arrived at work this morning to find around 100 emails in my INBOX! What this community perhaps needs is an eForum - or is there one already? Mailing lists are fine for small eCommunities, but not for eContinents. :-) Chris. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat Mailing List
This might help too: http://tomcatfaq.sourceforge.net/tomcat-user.html -Tim Shapira, Yoav wrote: Howdy, I love how on your first day here you determine the mailing list is not suitable for this community ;) Yes, the list has much traffic. Yes, some of the traffic is off-topic. This is why we have: - Filters and grouping options in our mail readers - Searchable archives (e.g. at AIMS) - The ability to unsubscribe if we don't want to be here Yoav Shapira Millennium ChemInformatics -Original Message- From: Chris Dodunski [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 12, 2003 3:01 PM To: Tomcat Users List Subject: Tomcat Mailing List Wow, my first day on the Tomcat mailing list, and arrived at work this morning to find around 100 emails in my INBOX! What this community perhaps needs is an eForum - or is there one already? Mailing lists are fine for small eCommunities, but not for eContinents. :-) Chris. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 4.1.18 - IIS 5.0 plugin - jk2.properties + workers2.properties
Hi Rick, It seems that I've finally got round this error. However, it (2.0.1/2.0.2 JK) is still not working. Debug: [jk_isapi_plugin.c (287)]: HttpFilterProc started Debug: [jk_isapi_plugin.c (347)]: In HttpFilterProc Virtual Host redirection of localhost : 61531072 Debug: [jk_isapi_plugin.c (356)]: HttpFilterProc [/examples] is a servlet url - should redirect to lb:lb Debug: [jk_isapi_plugin.c (422)]: HttpFilterProc check if [/examples] is pointing to the web-inf directory I think the term - should redirect to lb:lb seems to have an error, but I don't know what is causing it. Any ideas? BTW - there is a minor typo in line 367: env-l-jkLog(env, env-l, JK_LOG_DEBUG, HttpFilterProc fowarding original URI [%s]\n,uri); should be corrected to env-l-jkLog(env, env-l, JK_LOG_DEBUG, HttpFilterProc forwarding original URI [%s]\n,uri); I also don't see any log messages for init_jk() - does anybody know how to turn this on? thx Johannes Rick Bullotta [EMAIL PROTECTED] 10.03.2003 21:53 Please respond to Tomcat Users List [EMAIL PROTECTED] To 'Tomcat Users List' [EMAIL PROTECTED] cc Subject RE: Tomcat 4.1.18 - IIS 5.0 plugin - jk2.properties + workers2.properties Actually, that error is generally related to IIS trying to start up when Apache Http server is running on the same port...make sure Apache http server is STOPPED and than Tomcat is not set up to be listening on port 80... Rick Bullotta CTO Lighthammer Software (http://www.lighthammer.com) -Original Message- From: Johannes Fiala [mailto:[EMAIL PROTECTED] Sent: Monday, March 10, 2003 2:24 PM To: Tomcat Users List Cc: [EMAIL PROTECTED] Subject: RE: Tomcat 4.1.18 - IIS 5.0 plugin - jk2.properties + workers2.properties Hi Rick, I tried both fixes, but they failed. I also tried different releases (2.0.1, 2.0.2), but none worked. It also doesn't log properly, just fails when I look into the event viewer Event Type: Error Event Source: W3SVC Event Category: None Event ID: 115 Date: 10.03.2003 Time: 20:17:27 User: N/A Computer: DEVELOPER1 Description: The service could not bind instance 1. The data is the error code. For additional information specific to this message please visit the Microsoft Online Support site located at: http://www.microsoft.com/contentredirect.asp. Data: : 40 27 00 00 @'.. I cannot fully understand why jk 1.x works so smoothly, but 2.0.2 simply doesn't work out. Do you know any location where I can find more info about this error? Maybe I need a patch for IIS to fix this?? I've spent lots of hours trying to get this work, but troubleshooting this IIS connector is much harder than programming Java :) thx a lot for your input! johannes Rick Bullotta [EMAIL PROTECTED] 09.03.2003 15:34 Please respond to [EMAIL PROTECTED] To Tomcat Users List [EMAIL PROTECTED] cc Subject RE: Tomcat 4.1.18 - IIS 5.0 plugin - jk2.properties + workers2.properties Here are a few differences between your configuration and mine: 1) My workers2.properties uses [shm:] instead of [shm]. 2) I found that the 2.0.2 jk2 ISAPI redirector dll does not like forward slash path syntax on Windows (for your SHM file). Try \\. Tomcat Users List [EMAIL PROTECTED] wrote: hi there, here are the properties files I currently use (a merge of Mark's + Rick's configuration files): = jk2.properties = ## THIS FILE MAY BE OVERRIDEN AT RUNTIME. MAKE SURE TOMCAT IS STOPED ## WHEN YOU EDIT THE FILE. ## COMMENTS WILL BE _LOST_ ## DOCUMENTATION OF THE FORMAT IN JkMain javadoc. # Set the desired handler list # handler.list=apr,request,channelJni # # Override the default port for the socketChannel # channelSocket.port=8019 # Default: # channelUnix.file=${jkHome}/work/jk2.socket # Just to check if the the config is working # shm.file=${jkHome}/work/jk2.shm # In order to enable jni use any channelJni directive # channelJni.disabled = 0 # And one of the following directives: # apr.jniModeSo=/opt/apache2/modules/mod_jk2.so # If set to inprocess the mod_jk2 will Register natives itself # This will enable the starting of the Tomcat from mod_jk2 # apr.jniModeSo=inprocess # # Socket configuration # handler.list=request,container,channelSocket #apr # # apr configuration # jk2.properties file in C:\Tomcat\conf # #apr.NativeSo=${jkHome}\\bin\\Win32\\jkjni.dll #apr.jniModeSo=${jkHome}\\bin\\Win32\\jkjni.dll # # socket configuration # channelSocket.port=8009 channelSocket.address=127.0.0.1 channelSocket.maxPort=port+10 = workers2.properties = # workers2.properties file in C:\Apache2\conf # only at beginning. In production uncomment it out # [logger.apache2] # level=DEBUG [shm]
Re: Tomcat Mailing List
Chris Dodunski wrote: Wow, my first day on the Tomcat mailing list, and arrived at work this morning to find around 100 emails in my INBOX! What this community perhaps needs is an eForum - or is there one already? Mailing lists are fine for small eCommunities, but not for eContinents. :-) Two options: 1. You can get the digest version -- it's not advertised on the site but if you query the ezmlm server for help it tells you about it: [EMAIL PROTECTED] 2. Not sure what an eForum is but you can use the Mail Archive to read the list from a browser (but not post, obviously): http://www.mail-archive.com/tomcat-user%40jakarta.apache.org/ Erik - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 4.1.18 - IIS 5.0 plugin - jk2.properties + workers2.properties
Hi Rick, My last email contained a wrong diagnosis of the problem. redirection to lb:lb is fine, because it is defined as a load balancer in my workers2.properties. However, after entering http://localhost/examples I simply get a Server not found exception using MS IE 6 (indicating there was no reply from the server), no reply with NS Navigator 7 or Opera 6. The W3SV1 could not bind instance - error message has vanished after I changed the port of IIS to 80 from . Debug: [jk_isapi_plugin.c (287)]: HttpFilterProc started Debug: [jk_isapi_plugin.c (347)]: In HttpFilterProc Virtual Host redirection of localhost : 61531072 Debug: [jk_isapi_plugin.c (356)]: HttpFilterProc [/examples] is a servlet url - should redirect to lb:lb Debug: [jk_isapi_plugin.c (422)]: HttpFilterProc check if [/examples] is pointing to the web-inf directory after this entry, no more things show up in the application log. Here's what my IIS log is showing: 21:12:40 127.0.0.1 GET /jakarta/isapi_redirector2_201.dll 200 So it seems everything is fine, but it isn't. I allowed execution access for the virtual directory /jakarta. So that's my current summary: JK 1.0 - working fine JK 2.0.1 - not working JK 2.0.2 - not working I don't know what I can do now, do you have any additional ideas what could be wrong? thx alot Johannes
RE: imported jars servlets
Hi Yoav, I've attempted to answer you comments below... One of two things is happening: 1. (Less Likely) you are running with a different version of jdom.jar than the one against which you compiled the servlet. I'm running the same jdom.jar file that I compiled it with. I had to put the jdom.jar that exists in my application directory in my classpath to get javac to compile it. 2. (More likely) while you have only one jdom.jar files, the JDOM classes are present in other jars somewhere in your tomcat installation or endorsed directories. Look through jars, e.g. jar tvf thisjar.jar | grep org.jdom to see if they contain these classes. i did a search on windows for all files containing the text jdom and nothing came up beside the jdom.jar file itself, and the few jsps and class that are using it. as a side, I don't know if this helps or not, but i instantiated the same class that's not working as a bean using... jsp:useBean id=form class=PSQ.PSQ_Form scope=session/ ...then tried to run one of the methods that use the jdom class, and got the same error. does any of this clear things up? I'm still a little lost here. thanks for your help thus far. -jacques :) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
IIS / JK2 Parameter is incorrect
Hi, I'm trying to do multipart requests, and sometimes (occationally) I get an error-response saying : The Parameter is incorrect This error message is not generated from my own application so I must ask where is it coming from ? Where should I look for errors in my setup or code ? Thanx -reynir - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Usage of jsp:forward ...
Hi, I have two jsp pages. : First.jsp Second.jsp In First.jsp i do: input type=hidden name=id value=%=u.getId()% jsp:forward page=Second.jsp/ In Second.jsp I need to access id : String sId = request.getParameter(id); When i do this ... i get sId = null. How do I pass this parameter from First.jsp to Second.jsp ? Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Simple Config-Making me Crazy!
Hi, This is so simple, but I can not find it anywhere... The Tomcat Installation has the examples directory in the webapps folder. All of the urls pointing to the examples for the servlets point to: http://whatever/examples/servlet/favoriteServletExample But there is no ~webapps/examples/servlet/ directory. Obviously this is some sort of virtual directory, but I can't find where in the config files this url is specified. Any hints? Thanks. | Rich Fox | [EMAIL PROTECTED] | 86 Nobska Road | Woods Hole, MA 02543 | MA 508 548 4358 | VA 703 201 6050 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Usage of jsp:forward ...
rtfm :-) http://java.sun.com/products/jsp/syntax/1.2/syntaxref1212.html Filip -Original Message- From: Mufaddal Khumri [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 12, 2003 1:04 AM To: Tomcat List Subject: Usage of jsp:forward ... Hi, I have two jsp pages. : First.jsp Second.jsp In First.jsp i do: input type=hidden name=id value=%=u.getId()% jsp:forward page=Second.jsp/ In Second.jsp I need to access id : String sId = request.getParameter(id); When i do this ... i get sId = null. How do I pass this parameter from First.jsp to Second.jsp ? Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
SOLVED: Re: Tomcat 4.1.18 - IIS 5.0 plugin - jk2.properties + workers2.properties
Hi to all! I finally have found the solution: 2.0.1 and 2.0.2 is now working - it seems my try to use a different name for the redirector dll other than isapi_redirector2.dll has caused the trouble. I thought I could use isapi_redirector2_201.dll and enter it in the extensionUri and use it as filter in the IIS properties, but this didn't work. For everybody else to save hours of desperate research, I post my complete configuration here: === registry settings (edited using regedt32.exe) === SOFTWARE - Apache Software Foundation - Jakarta Isapi Redirector - 2.0 authComplete: 0 extensionUri: /jakarta/isapi_redirector2.dll logLevel: DEBUG serverRoot: f:\tomcat-4.1.18 threadPool: 20 workersFile: f:\tomcat-4.1.18\conf\ntiis\workers2.properties The correct workers2.properties + jk2.properties files can be found in the source release (2.0.2) of the JK2 connector. They are missing in the binary release and are not included in the normal Tomcat 4.1.18-distribution. == So you have to grab them out of the source distribution. === workers2.properties (location: anywhere you like, you have to point with the registry entry workersFile to the right filename). === [logger] level=DEBUG [config:] file=${serverRoot}/conf/workers2.properties debug=10 debugEnv=0 [uriMap:] info=Maps the requests. Options: debug debug=10 # Alternate file logger #[logger.file:0] #level=DEBUG #file=${serverRoot}/logs/jk2.log [shm:] info=Scoreboard. Required for reconfiguration and status with multiprocess servers file=${serverRoot}/logs/jk2.shm size=100 debug=10 disabled=0 [workerEnv:] info=Global server options timing=1 debug=10 # Default Native Logger (apache2 or win32 ) # can be overriden to a file logger, useful # when tracing win32 related issues #logger=logger.file:0 [lb:lb] info=Default load balancer. debug=10 [lb:lb_1] info=A second load balancer. debug=10 [channel.socket:localhost:8009] info=Ajp13 forwarding over socket debug=10 tomcatId=localhost:8009 [channel.socket:localhost:8019] info=A second tomcat instance. debug=10 tomcatId=localhost:8019 lb_factor=1 group=lb group=lb_1 disabled=0 [channel.un:/opt/33/work/jk2.socket] info=A second channel connecting to localhost:8019 via unix socket tomcatId=localhost:8019 lb_factor=1 debug=10 [channel.jni:jni] info=The jni channel, used if tomcat is started inprocess [status:] info=Status worker, displays runtime informations [vm:] info=Parameters used to load a JVM in the server process #JVM=C:\jdk\jre\bin\hotspot\jvm.dll classpath=${TOMCAT_HOME}/bin/tomcat-jni.jar classpath=${TOMCAT_HOME}/server/lib/commons-logging.jar OPT=-Dtomcat.home=${TOMCAT_HOME} OPT=-Dcatalina.home=${TOMCAT_HOME} OPT=-Xmx128M #OPT=-Djava.compiler=NONE disabled=1 [worker.jni:onStartup] info=Command to be executed by the VM on startup. This one will start tomcat. class=org/apache/jk/apr/TomcatStarter ARG=start # For Tomcat 5 use the 'stard' for startup argument # ARG=stard disabled=1 stdout=${serverRoot}/logs/stdout.log stderr=${serverRoot}/logs/stderr.log [worker.jni:onShutdown] info=Command to be executed by the VM on shutdown. This one will stop tomcat. class=org/apache/jk/apr/TomcatStarter ARG=stop disabled=1 [uri:/jkstatus/*] info=Display status information and checks the config file for changes. group=status: [uri:127.0.0.1:8003] info=Example virtual host. Make sure myVirtualHost is in /etc/hosts to test it alias=myVirtualHost:8003 [uri:127.0.0.1:8003/ex] info=Example webapp in the virtual host. It'll go to lb_1 ( i.e. localhost:8019 ) context=/ex group=lb_1 [uri:/examples] info=Example webapp in the default context. context=/examples debug=10 [uri:/examples1/*] info=A second webapp, this time going to the second tomcat only. group=lb_1 debug=10 [uri:/examples/servlet/*] info=Prefix mapping debug=10 [uri:/examples/*.jsp] info=Extension mapping debug=10 [uri:/examples/*] info=Map the whole webapp debug=10 [uri:/examples/servlet/HelloW] info=Example with debug enabled. debug=10 === === jk2.properties (location: {$tomcat_home}/conf). === ## THIS FILE MAY BE OVERRIDEN AT RUNTIME. MAKE SURE TOMCAT IS STOPED ## WHEN YOU EDIT THE FILE. ## COMMENTS WILL BE _LOST_ ## DOCUMENTATION OF THE FORMAT IN JkMain javadoc. # Set the desired handler list # handler.list=apr,request,channelJni # # Override the default port for the socketChannel # channelSocket.port=8019 # Default: # channelUnix.file=${jkHome}/work/jk2.socket # Just to check if the the config is working # shm.file=${jkHome}/work/jk2.shm # In order to enable jni use any channelJni directive # channelJni.disabled = 0 # And one of the following directives: # apr.jniModeSo=/opt/apache2/modules/mod_jk2.so # If set to inprocess the mod_jk2 will Register natives itself # This will enable the starting of the Tomcat from mod_jk2 #
RE: Simple Config-Making me Crazy!
Rich, There should be. In my installation, I have $CATALINA_HOME/webapps/examples/images $CATALINA_HOME/webapps/examples/jsp $CATALINA_HOME/webapps/examples/servlets $CATALINA_HOME/webapps/examples/WEB-INF Check your directory structure again. Later, Jeremy -Original Message- From: Rich Fox [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 12, 2003 2:37 PM To: Tomcat User List Subject: Simple Config-Making me Crazy! Hi, This is so simple, but I can not find it anywhere... The Tomcat Installation has the examples directory in the webapps folder. All of the urls pointing to the examples for the servlets point to: http://whatever/examples/servlet/favoriteServletExample But there is no ~webapps/examples/servlet/ directory. Obviously this is some sort of virtual directory, but I can't find where in the config files this url is specified. Any hints? Thanks. | Rich Fox | [EMAIL PROTECTED] | 86 Nobska Road | Woods Hole, MA 02543 | MA 508 548 4358 | VA 703 201 6050 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: SOLVED: Re: Tomcat 4.1.18 - IIS 5.0 plugin - jk2.properties + workers2.properties
-Original Message- From: Johannes Fiala [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 12, 2003 2:43 PM To: Tomcat Users List Cc: [EMAIL PROTECTED] Subject: SOLVED: Re: Tomcat 4.1.18 - IIS 5.0 plugin - jk2.properties + workers2.properties Hi to all! I finally have found the solution: 2.0.1 and 2.0.2 is now working - it seems my try to use a different name for the redirector dll other than isapi_redirector2.dll has caused the trouble. I thought I could use isapi_redirector2_201.dll and enter it in the extensionUri and use it as filter in the IIS properties, but this didn't work. For everybody else to save hours of desperate research, I post my complete configuration here: === registry settings (edited using regedt32.exe) === SOFTWARE - Apache Software Foundation - Jakarta Isapi Redirector - 2.0 authComplete: 0 extensionUri: /jakarta/isapi_redirector2.dll logLevel: DEBUG serverRoot: f:\tomcat-4.1.18 threadPool: 20 workersFile: f:\tomcat-4.1.18\conf\ntiis\workers2.properties The correct workers2.properties + jk2.properties files can be found in the source release (2.0.2) of the JK2 connector. They are missing in the binary release and are not included in the normal Tomcat 4.1.18-distribution. == So you have to grab them out of the source distribution. === workers2.properties (location: anywhere you like, you have to point with the registry entry workersFile to the right filename). === [logger] level=DEBUG [config:] file=${serverRoot}/conf/workers2.properties debug=10 debugEnv=0 [uriMap:] info=Maps the requests. Options: debug debug=10 # Alternate file logger #[logger.file:0] #level=DEBUG #file=${serverRoot}/logs/jk2.log [shm:] info=Scoreboard. Required for reconfiguration and status with multiprocess servers file=${serverRoot}/logs/jk2.shm size=100 debug=10 disabled=0 [workerEnv:] info=Global server options timing=1 debug=10 # Default Native Logger (apache2 or win32 ) # can be overriden to a file logger, useful # when tracing win32 related issues #logger=logger.file:0 [lb:lb] info=Default load balancer. debug=10 [lb:lb_1] info=A second load balancer. debug=10 [channel.socket:localhost:8009] info=Ajp13 forwarding over socket debug=10 tomcatId=localhost:8009 [channel.socket:localhost:8019] info=A second tomcat instance. debug=10 tomcatId=localhost:8019 lb_factor=1 group=lb group=lb_1 disabled=0 [channel.un:/opt/33/work/jk2.socket] info=A second channel connecting to localhost:8019 via unix socket tomcatId=localhost:8019 lb_factor=1 debug=10 [channel.jni:jni] info=The jni channel, used if tomcat is started inprocess [status:] info=Status worker, displays runtime informations [vm:] info=Parameters used to load a JVM in the server process #JVM=C:\jdk\jre\bin\hotspot\jvm.dll classpath=${TOMCAT_HOME}/bin/tomcat-jni.jar classpath=${TOMCAT_HOME}/server/lib/commons-logging.jar OPT=-Dtomcat.home=${TOMCAT_HOME} OPT=-Dcatalina.home=${TOMCAT_HOME} OPT=-Xmx128M #OPT=-Djava.compiler=NONE disabled=1 [worker.jni:onStartup] info=Command to be executed by the VM on startup. This one will start tomcat. class=org/apache/jk/apr/TomcatStarter ARG=start # For Tomcat 5 use the 'stard' for startup argument # ARG=stard disabled=1 stdout=${serverRoot}/logs/stdout.log stderr=${serverRoot}/logs/stderr.log [worker.jni:onShutdown] info=Command to be executed by the VM on shutdown. This one will stop tomcat. class=org/apache/jk/apr/TomcatStarter ARG=stop disabled=1 [uri:/jkstatus/*] info=Display status information and checks the config file for changes. group=status: [uri:127.0.0.1:8003] info=Example virtual host. Make sure myVirtualHost is in /etc/hosts to test it alias=myVirtualHost:8003 [uri:127.0.0.1:8003/ex] info=Example webapp in the virtual host. It'll go to lb_1 ( i.e. localhost:8019 ) context=/ex group=lb_1 [uri:/examples] info=Example webapp in the default context. context=/examples debug=10 [uri:/examples1/*] info=A second webapp, this time going to the second tomcat only. group=lb_1 debug=10 [uri:/examples/servlet/*] info=Prefix mapping debug=10 [uri:/examples/*.jsp] info=Extension mapping debug=10 [uri:/examples/*] info=Map the whole webapp debug=10 [uri:/examples/servlet/HelloW] info=Example with debug enabled. debug=10 === === jk2.properties (location: {$tomcat_home}/conf). === ## THIS FILE MAY BE OVERRIDEN AT RUNTIME. MAKE SURE TOMCAT IS STOPED ## WHEN YOU EDIT THE FILE. ## COMMENTS WILL BE _LOST_ ## DOCUMENTATION OF THE FORMAT IN JkMain javadoc. # Set the desired handler list # handler.list=apr,request,channelJni # # Override the default port for the socketChannel # channelSocket.port=8019 # Default: # channelUnix.file=${jkHome}/work/jk2.socket # Just to check if the the config is working # shm.file=${jkHome}/work/jk2.shm # In order to enable jni use any channelJni
RE: Simple Config-Making me Crazy!
Rich, you are correct. This is an invoker servlet. It is initialized in the web.xml file in %CATALINA_HOME%/conf directory. It is a servlet that runs within Tomcat and will execute when the following URL pattern is supplied: !-- The mapping for the invoker servlet -- servlet-mapping servlet-nameinvoker/servlet-name url-pattern/servlet/*/url-pattern /servlet-mapping Jeremy -Original Message- From: Rich Fox [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 12, 2003 4:37 PM To: Tomcat User List Subject: Simple Config-Making me Crazy! Hi, This is so simple, but I can not find it anywhere... The Tomcat Installation has the examples directory in the webapps folder. All of the urls pointing to the examples for the servlets point to: http://whatever/examples/servlet/favoriteServletExample But there is no ~webapps/examples/servlet/ directory. Obviously this is some sort of virtual directory, but I can't find where in the config files this url is specified. Any hints? Thanks. | Rich Fox | [EMAIL PROTECTED] | 86 Nobska Road | Woods Hole, MA 02543 | MA 508 548 4358 | VA 703 201 6050 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Running tomcat under secured socket layer
Hi All, Has anyone been successful in making the tomcat run under secured socket layer. I followed all the instructions mentioned in the document 'SSL Cnfiguration HOW-TO' in 'www.jakarta.apache.org'. I am trying to connect through port 8443. I tried changing the port but no luck. I am having trouble in stopping the tomcat service too. Please share if you have any ideas Thanks Ap - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Compiling Jsps With Tomcat (URGENT Help Please!)
All, I've gone through the archive trying to find the solution to this one, and spent some time in th e irc room hunting. Hopefully someone here can help me out. OS: Linux and Solaris jdk: 1.4.1_01 tomcat: 4.1.12 (but also tested with 4.1.18 and 4.1.21 beta) I have a jsp file (that is valid and has already been tested) that I'm trying to compile to java code with jspc. I've tried doing the following: ./jspc test.jsp ./jspc -uriroot /tmp test.jsp Both cases give me the following error (as does ant's jspc task): Exception in thread main java.lang.ArrayIndexOutOfBoundsException: 1 at org.apache.jasper.JspC.locateUriRoot(JspC.java:616) at org.apache.jasper.JspC.execute(JspC.java:747) at org.apache.jasper.JspC.main(JspC.java:810 If I make the WEB-INF dir I get: 2003-03-12 03:08:30 - ERROR-the file '/test.jsp' generated the following general exception: java.lang.NullPointerException error:null Can someone please help? I've tried everything I can think of and really need this. Oh, and please email me and the list since I'm not subscribed. Thanks! --chayim - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
userDatabase / classloader question
hi all, trying to reference the userDatabase from my application, but get a Class CastException. Here is my code: javax.naming.Context ctx = new InitialContext(); Object ud = ctx.lookup(java:comp/env/userDatabase); //System.out.println(ud.getClass().getClassLoader()); UserDatabase usrd = (UserDatabase) ud; and i have the ResourceLink set up in server.xml. i got a ClassCastException when trying to cast it to UserDatabase, and apparently that's because it was loaded from the Catalina classloader and is not visible from my application classloader. so just wondering if there's something else i need to do before i can use the UserDatabase, or is it not meant to be used? thanks andrew mail2web - Check your email from the web at http://mail2web.com/ . - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[IOException] Index locked for write
Hi, I have this file write.lock in my Lutece Web application that's running by Tomcat and this cause me a problem when I startup.bat my Tomcat. Here is the part of the DOS screen that imform me about this problem. (Sorry for my english I need more practice, but this is an other problem :) : ... [INFO] JkMain - -Jk running ID=0 time=0/110 config=C:\Program Files\Apache Group\Tomcat41\bin\..\conf\jk2.properties java.io.IOException: Index locked for write : Lock@ C :\Program Files\Apache Group\Tomcat41\webapps\lutece\WEB-INF\index\write.lock at org.apache.lucene.index.IndexWriter.init(Unknown Source) at org.apache.lucene.index.IndexWriter.init(Unknown Source) I think this problem is due to a bab config on mod_jk2 or jk2.properties or something like that ? I search the Tomcat User List Archive and I really don't no where to start to resolve this problem ? Do I have to remove this file (write.lock) from my PC ? Thanks for your help ! JPK - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: JK + client authentication: getRemoteUser() returns null
Title: RE: JK + client authentication: getRemoteUser() returns null I've built jk2 2.0.2 against Apache 2.0.44, run it with Tomcat 4.1.18, and still get exactly the same results: everything seems to work except for getRemoteUser() still returning null. There is an entry [error] mod_jk child init 1 0 in the Apache log when it starts. I have no idea what this means, even after looking at the source. workers2.properties (chmeee is the hostname): [shm] file=${serverRoot}/logs/shm.file size=1048576 [channel.socket:chmeee:8009] port=8009 host=chmeee #info=Ajp13 forwarding over socket tomcatId=chmeee:8009 [ajp13:chmeee:8009] channel=channel.socket:chmeee:8009 # Map the Tomcat examples webapp to the Web server uri space [uri:/examples/*] worker=ajp13:chmeee:8009 #info=Map the whole webapp # define the worker [status:status] # Uri mapping [uri:/jkstatus/*] worker=status:status jk2.properties: shm.file=/oss/Apache-2.0.44/logs/shm.file request.tomcatAuthentication=false #request.tomcatAuthentication=true (I've tried it with both true and false. I expected the correct setting to be false, but http://marc.theaimsgroup.com/?l=tomcat-user=104322962412519=2 says true. Tomcat connector: Connector className=org.apache.coyote.tomcat4.CoyoteConnector tomcatAuthentication=false acceptCount=10 bufferSize=2048 connectionTimeout=0 debug=9 disableUploadTimeout=false enableLookups=true maxProcessors=75 minProcessors=5 port=8009 protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler proxyPort=0 redirectPort=8443 scheme=http secure=false tcpNoDelay=true useURIValidationHack=false Factory className=org.apache.catalina.net.DefaultServerSocketFactory/ /Connector What do I try next? Thanks. PJDM -- Peter Mayne Technology Consultant Spherion Technology Solutions Level 1, 243 Northbourne Avenue, Lyneham, ACT, 2602 T: 61 2 62689727 F: 61 2 62689777 The information contained in this email and any attachments to it: (a) may be confidential and if you are not the intended recipient, any interference with, use, disclosure or copying of this material is unauthorised and prohibited; and (b) may contain personal information of the recipient and/or the sender as defined under the Privacy Act 1988 (Cth). Consent is hereby given by the recipient(s) to collect, hold and use such information and any personal information contained in a response to this email, for any reasonable purpose in the ordinary course of Spherion's business, including forwarding this email internally or disclosing it to a third party. All personal information collected by Spherion will be handled in accordance with Spherion's Privacy Policy. If you have received this email in error, please notify the sender and delete it. (c) you agree not to employ or arrange employment for any candidate(s) supplied in this email and any attachments without first entering into a contractual agreement with Spherion. You further agree not to divulge any information contained in this document to any person(s) or entities without the express permission of Spherion. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Install WAR file using 4.1.18
Can anyone tell me what this thing wants to do this install automatically? I'm trying to install a WAR file: http://localhost:8080/manager/install?path=/cocoonwar=jar:file://C:/Program Files/Apache Group/Tomcat 4.1/webapps/cocoon-2.0.4/cocoon.war or http://localhost:8080/manager/install?path=/cocoonwar=jar:file:/C:/Program Files/Apache Group/Tomcat 4.1/webapps/cocoon-2.0.4/cocoon.war (also tried with windows style backslashes with the same results) FAIL MESSAGE: FAIL - Encountered exception java.net.MalformedURLException: no !/ in spec I've tried installing this through MANAGER with Path: /cocoon WAR URL: jar:file:/C:/Program Files/Apache Group/Tomcat 4.1/webapps/cocoon-2.0.4/cocoon.war or file:/c:.../cocoon.war FAIL MESSAGE using this method: FAIL - Encountered exception java.net.MalformedURLException: no protocol: - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Simple Config-Making me Crazy!
Hi Rich, I have this on my PC : C:\Program Files\Apache Group\Tomcat41\webapps\examples\servlets servlets not servlet ... JPL - Original Message - From: Rich Fox [EMAIL PROTECTED] To: Tomcat User List [EMAIL PROTECTED] Sent: Wednesday, March 12, 2003 4:36 PM Subject: Simple Config-Making me Crazy! Hi, This is so simple, but I can not find it anywhere... The Tomcat Installation has the examples directory in the webapps folder. All of the urls pointing to the examples for the servlets point to: http://whatever/examples/servlet/favoriteServletExample But there is no ~webapps/examples/servlet/ directory. Obviously this is some sort of virtual directory, but I can't find where in the config files this url is specified. Any hints? Thanks. | Rich Fox | [EMAIL PROTECTED] | 86 Nobska Road | Woods Hole, MA 02543 | MA 508 548 4358 | VA 703 201 6050 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]