RE: Installation Problem In Tomcat
C:\Tomcat\catalina\src\bincatalina.bat run _ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, April 19, 2004 15:17 To: Tomcat Users List Subject: Installation Problem In Tomcat Hi, Im a new to Tomacat , i have installed it on my machine but its not starting rather im getting following message C:\Tomcat\catalina\src\binstartup Using CATALINA_BASE: C:\Tomcat\catalina\src Using CATALINA_HOME: C:\Tomcat\catalina\src Using CATALINA_TMPDIR: C:\Tomcat\catalina\src\temp Using JAVA_HOME: C:\jdk1.3.1_11 and the window get closed can anyone guide me why am i getting this ? when i try to acess http://localhost:80/ i didnt get anything ?? thanks rgds Birendar Singh Waldiya
RE: Two Tomcats and One Apache Web Server
try google Apache tomcat load balancing -Original Message- From: Walter do Valle [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 09, 2003 8:14 PM To: [EMAIL PROTECTED] Subject: Two Tomcats and One Apache Web Server Hello all Is it possible to install two Tomcats in the same linux server, put some web applications in one tomcat, put some web applications in other tomcat and both tomcats answer to the same Apache Web Server? Anyone has made this? Is there any tips and tricks about this matter? What is the best way to do this (if possible)? Thansks for any help - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Path and HttpServlet compiling error
add C:\Inetpub\wwwroot\tomcat\common\lib\servlet.jar to classpath variable -Original Message- From: V B [mailto:[EMAIL PROTECTED] Sent: Friday, November 28, 2003 4:37 PM To: [EMAIL PROTECTED] Subject: Path and HttpServlet compiling error public class myServlet extends HttpServlet { } Error: C:\myServlet.java:18: cannot resolve symbol symbol : class HttpServlet public class myServlet extends HttpServlet ^ Output completed (6 sec consumed) - Normal Termination My PATH is PATH=C:\WINDOWS\system32;C:\Inetpub\wwwroot\tomcat\common\lib\servlet.jar;C: \j2sdk1.4.0\lib;C:\WINDOWS;C:\WINDOWS\system3\WBEM;C:\WINDOWS\COMMAND;C:\j2s dk1.4.0\bin Is there something I am missing in my path? newbie - Do you Yahoo!? Free Pop-Up Blocker - Get it now - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: lame,encoding problem
jdbc:mysql://127.0.0.1:3306/test/?useUnicode=true -Original Message- From: bwasko [mailto:[EMAIL PROTECTED] Sent: Monday, November 24, 2003 4:50 PM To: Tomcat Users List Subject: Re: lame,encoding problem Hi I 've tried to execute insert statement that contains my national characters with the mysql command-line client tool and all looks ok. The strings are properly written into database. But writing into it with use of jdbc driver ends with chars like '??'. I use mysql-connector and i think it causes these problems. Cheers Bartek - Original Message - From: Christopher Schultz [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Monday, November 24, 2003 4:41 AM Subject: Re: lame,encoding problem Bartek, But then when I do something with these parameters and my mysql database I get then them wrong encoded and all data read from mysql are wrong encoded . Hmmm... if you use your Java code to insert some text into the DB, does it look okay when you read it back out using the mysql command-line tool? I'm wondering if the characters are being mangled on the way into of out of the database. See... the UTF-8 encoding only comes into play when converting bytes from the request into Strings on which your Java code operates. Once you're in the Java world, everything should be okay. Again, when you write the data back out to the response, the UTF-8 comes into play as well. However, when writing to the db, the strings also need to be converted to bytes by some character encoding. It's very possible that either the VM and/or MySQL are using incompatible character sets. Check to see what the value of the system property file.encoding is at runtime. Then again... unless you really are using multibyte characters, you should be okay no matter what. The MySQL JDBC driver should be using the same encoding going both to and from the db. But, if it's an encoding that doesn't understand multibyte characters (like ISO-8859-1), then you might be permanently damaging those characters. Though I use MySQL/Java all the time, I'm not sure how to set the character encoding for the JDBC driver. Check the MySQL documentation, and let us know what you find. Hope that helps, -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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: lame,encoding problem
jdbc:mysql://127.0.0.1:3306/test?useUnicode=true -Original Message- From: Galbayar [mailto:[EMAIL PROTECTED] Sent: Monday, November 24, 2003 5:48 PM To: Tomcat Users List Subject: RE: lame,encoding problem jdbc:mysql://127.0.0.1:3306/test/?useUnicode=true -Original Message- From: bwasko [mailto:[EMAIL PROTECTED] Sent: Monday, November 24, 2003 4:50 PM To: Tomcat Users List Subject: Re: lame,encoding problem Hi I 've tried to execute insert statement that contains my national characters with the mysql command-line client tool and all looks ok. The strings are properly written into database. But writing into it with use of jdbc driver ends with chars like '??'. I use mysql-connector and i think it causes these problems. Cheers Bartek - Original Message - From: Christopher Schultz [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Monday, November 24, 2003 4:41 AM Subject: Re: lame,encoding problem Bartek, But then when I do something with these parameters and my mysql database I get then them wrong encoded and all data read from mysql are wrong encoded . Hmmm... if you use your Java code to insert some text into the DB, does it look okay when you read it back out using the mysql command-line tool? I'm wondering if the characters are being mangled on the way into of out of the database. See... the UTF-8 encoding only comes into play when converting bytes from the request into Strings on which your Java code operates. Once you're in the Java world, everything should be okay. Again, when you write the data back out to the response, the UTF-8 comes into play as well. However, when writing to the db, the strings also need to be converted to bytes by some character encoding. It's very possible that either the VM and/or MySQL are using incompatible character sets. Check to see what the value of the system property file.encoding is at runtime. Then again... unless you really are using multibyte characters, you should be okay no matter what. The MySQL JDBC driver should be using the same encoding going both to and from the db. But, if it's an encoding that doesn't understand multibyte characters (like ISO-8859-1), then you might be permanently damaging those characters. Though I use MySQL/Java all the time, I'm not sure how to set the character encoding for the JDBC driver. Check the MySQL documentation, and let us know what you find. Hope that helps, -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] - 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: append text into a file
FileWriter(File file, boolean append) FileWriter(String fileName, boolean append) -Original Message- From: Cui Xiaojing-a13339 [mailto:[EMAIL PROTECTED] Sent: Thursday, November 20, 2003 11:43 AM To: Tomcat Users List Subject: append text into a file Hello All, Could please give me some advice about how to append some data into an existed log file? Thanks. Regards, Xiaojing - 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.29 and static content in non Latin (ISO-8895-1) characters
Hi I have same problem. If you change apache httpd.conf file AddDefaultCharset windows-1251 static data has to be seen Cyrillic. However it is very bad solution:-) -Original Message- From: George Sexton [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 18, 2003 10:06 PM To: 'Tomcat Users List' Subject: RE: tomcat 4.1.29 and static content in non Latin (ISO-8895-1) characters Have you tried running the page through native2ascii and then using the output of that as your JSP? -Original Message- From: Yavor Trapkov [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 18, 2003 1:16 AM To: [EMAIL PROTECTED] Subject: tomcat 4.1.29 and static content in non Latin (ISO-8895-1) characters Hello, I red some similar problems reported, but I'd like to post my question to the tomcat user community. I have an existing static documents (something.html) which has to be seen in Cyrillic (Windows-1251). An appropriate meta tag is included to tell the browser to use the right charset: meta http-equiv=Content-type content=text/html; charset=windoes-1251 Seems the new html connector (coyote 1.1) that comes with tomcat 4.1.29 strictly follows the standard and returns HTTP Header Content-type: text/html ; charset=ISO-8859-1 if no character encoding has been specified. The browser is forced to show the Cyrillic in ISO-8859-1. I suppose any other non latin languages have the same problem. JSP pages works fine if %@ page contentType= text/html; charset=Windows-1251 is specified. The same problem appears with filters (like sitemesh for example), as far as the content comes from a static .html it's not shown properly even with %@ page contentType directive specified. Does anyone found out a solution of this problem or are there any plans tomcat to support static non latin content. Many Thanks Yavor Trapkov __ McAfee VirusScan Online from the Netscape Network. Comprehensive protection for your entire computer. Get your free trial today! http://channels.netscape.com/ns/computing/mcafee/index.jsp?promo=393397 Get AOL Instant Messenger 5.1 free of charge. Download Now! http://aim.aol.com/aimnew/Aim/register.adp?promo=380455 - 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: Servlets -- help needed
http://localhost:8080/examples/servlet/HelloWWW -Original Message- From: K. Harvatis [mailto:[EMAIL PROTECTED] Sent: Friday, November 14, 2003 3:24 PM To: Tomcat Users List Subject: Re: Servlets -- help needed Navanee, Please check and edit the \WEB-INF\web.xml file, which holds the mappings. After that, you will only need http://localhost/your_servlet_urlname_from_web.xml Kostas Harvatis - National Center for Social Research - Directorate of Research Support www.ekke.gr - Original Message - From: Navanee [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Friday, November 14, 2003 9:11 AM Subject: Re: Servlets -- help needed Schalk, I wrote a java program (HelloWWW.java) and placed the file in this path: C:\Program Files\jakarta-tomcat-4.1.27\webapps\examples\WEB-INF\classes I also compiled that java code. Compilation was successful. I tried to execute that servlet in the browser using this link : http://localhost:8080/examples/WEB-INF/classes/HelloWWW But it is giving 404 (file not found) error. Why is it so? How can i access these files in the browser ..? Means, what link should i give in the browser ? -- Navanee - 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: Start Tomcat
run catalina.bat run from command prompt -Original Message- From: Simon Allen [mailto:[EMAIL PROTECTED] Sent: Thursday, November 13, 2003 5:39 PM To: 'Tomcat Users List' Subject: RE: Start Tomcat do you add the pause statement before or after the end statement? -Original Message- From: Yim Lai [SMTP:[EMAIL PROTECTED] Sent: Thursday, November 13, 2003 9:37 AM To: Tomcat Users List Subject:RE: Start Tomcat Hi, I have the same problem. There are two windows that pop up when start the tomcat from the startup.bat and adding pause to the startup.bat close the window which doesn't display the error messages. Is the anyway to solve this. Thank you. Yim Lai -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] ache.org]On Behalf Of Patrick Willart Sent: Thursday, November 13, 2003 7:08 AM To: Tomcat Users List Subject: RE: Start Tomcat Simon, If you add 'pause' as last line in you startup.bat you can see what (error) messages Tomcat outputs. Patrick -Original Message- From: Simon Allen [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 12, 2003 2:31 PM To: '[EMAIL PROTECTED]' Subject: Start Tomcat Hi I am able to start Tomcat from startup.bat but when I try to do so using the Start Tomcat in the Windows Start Menu the banner appears, disappears after a few seconds with no further action. Any advice? 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] - 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]
DBCP could not obtain an idle db connection, pool exhausted
How to solve this problem? I'm using Tomcat 4.1.27 J2SDK (build 1.4.1_03-b02 Tyrex 1.0 Commons DBCP 1.1 MySQL ConnectorJ version 3.0.8 My server.xml configuration Context ... Resource name=jdbc/sss auth=Container type=javax.sql.DataSource/ ResourceParams name=jdbc/sss parameter namefactory/name valueorg.apache.commons.dbcp.BasicDataSourceFactory/value /parameter parameter namemaxActive/name value20/value /parameter parameter namemaxIdle/name value20/value /parameter parameter namemaxWait/name value1/value /parameter parameter nameusername/name valueusername/value /parameter parameter namepassword/name valuepassword/value /parameter parameter namedriverClassName/name valueocom.mysql.jdbc.Driver/value /parameter parameter nameurl/name valuejdbc:mysql://localhost:3306/sss?autoReconnect=true/value /parameter /ResourceParams /Context Galbayar. D Senior software engineer Mobile Business Development Business Development Division MobiCom Corporation Peace Avenue 3/1 P.O Box 20A Ulaanbaatar 210620 Mongolia - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: DBCP could not obtain an idle db connection, pool exhausted
Yes I have closed ResultSet, Statement and Connection Have you tried to close ResultSet, Statement and Connection after each use? -Original Message- From: Galbayar [mailto:[EMAIL PROTECTED] Sent: November 10, 2003 4:50 AM To: Tomcat Users List Subject: DBCP could not obtain an idle db connection, pool exhausted How to solve this problem? I'm using Tomcat 4.1.27 J2SDK (build 1.4.1_03-b02 Tyrex 1.0 Commons DBCP 1.1 MySQL ConnectorJ version 3.0.8 My server.xml configuration Context ... Resource name=jdbc/sss auth=Container type=javax.sql.DataSource/ ResourceParams name=jdbc/sss parameter namefactory/name valueorg.apache.commons.dbcp.BasicDataSourceFactory/value /parameter parameter namemaxActive/name value20/value /parameter parameter namemaxIdle/name value20/value /parameter parameter namemaxWait/name value1/value /parameter parameter nameusername/name valueusername/value /parameter parameter namepassword/name valuepassword/value /parameter parameter namedriverClassName/name valueocom.mysql.jdbc.Driver/value /parameter parameter nameurl/name valuejdbc:mysql://localhost:3306/sss?autoReconnect=true/value /parameter /ResourceParams /Context Galbayar. D Senior software engineer Mobile Business Development Business Development Division MobiCom Corporation Peace Avenue 3/1 P.O Box 20A Ulaanbaatar 210620 Mongolia - 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: Print on Printer
use JavaScript window.print(); -Original Message- From: Cui Xiaojing-a13339 [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 05, 2003 2:51 PM To: Tomcat Users List Subject: Print on Printer Hello All, Do you have any idea about how to realize a HTML page printing on printer? ThanksRegards, Xiaojing - 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]
SSL problem URGENT!!!!!!!!!
I have question. when i use socket connect to ssl supported web server if successfully connected and can get http response. However use URL cant get http response. what happened? import java.net.*; import javax.net.*; import javax.net.ssl.*; import java.io.*; public class ReadHttpsURL1 { static final int HTTPS_PORT = 443; public static void main(String argv[]) throws Exception { System.setProperty(javax.net.ssl.trustStore, D:/j2sdk1.4.1/bin/truststore); // Get a Socket factory SocketFactory factory = SSLSocketFactory.getDefault(); // Get Socket from factory Socket socket = factory.createSocket(192.168.0.198, HTTPS_PORT); BufferedWriter out = new BufferedWriter(new OutputStreamWriter(socket.getOutputStream())); BufferedReader in = new BufferedReader( new InputStreamReader(socket.getInputStream())); out.write(GET /main.html HTTP/1.0\n\n); out.flush(); String line; StringBuffer sb = new StringBuffer(); while((line = in.readLine()) != null) { sb.append(line+\r\n); } out.close(); in.close(); System.out.println(sb.toString()); } } import java.net.*; import java.io.*; public class ReadHttpsURL2 { public static void main(String argv[]) throws Exception { System.setProperty(javax.net.ssl.trustStore, D:/j2sdk1.4.1/bin/truststore); URL url = new URL(https://192.168.0.198/main.html;); BufferedReader in = new BufferedReader(new InputStreamReader( url.openStream())); String line; StringBuffer sb = new StringBuffer(); while ((line = in.readLine()) != null) { sb.append(line); } in.close(); System.out.println(sb.toString()); } } - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
JNDI configuration in server.xml
I have component deployed in common/lib/component.jar and configured many webapplications each webapplication use global component through JNDI and my configuration in server.xml is GlobalNamingResources Resource name=vasLogger auth=Container type=javax.sql.DataSource/ ResourceParams name=component 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 /ResourceParams /GlobalNamingResources Servlet calling components method example is but it doesnot work What happened? public void CallJNDIContext { InitialContext iCtx = null; Context ctx = null; try { iCtx = new InitialContext(); ctx = (Context) iCtx.lookup(java:comp/env); if (ctx != null) { DataSource ds = (DataSource) ctx.lookup(jdbc/component); if (ds != null) { connection = ds.getConnection(); } } } catch (NamingException e) { e.printStackTrace(); } catch (SQLException e) { e.printStackTrace(); } } - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Jav.util.logging URGENT
java version 1.4.1_03 Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1_03-b02) Java HotSpot(TM) Client VM (build 1.4.1_03-b02, mixed mode) -Original Message- From: Joseph Krasnov [mailto:[EMAIL PROTECTED] Sent: Sunday, October 12, 2003 12:21 AM To: 'Tomcat Users List' Subject: RE: Jav.util.logging URGENT What version of Java are you using? -Original Message- From: Galbayar [mailto:[EMAIL PROTECTED] Sent: Saturday, October 11, 2003 2:54 AM To: Tomcat Users List Subject: Jav.util.logging URGENT Hi, I am learning to use logger. I have a code snippet below package test import java.io.IOException; import java.io.Serializable; import java.text.SimpleDateFormat; import java.util.Date; import java.util.logging.FileHandler; import java.util.logging.SimpleFormatter; public class Logger implements Serializable { static SimpleDateFormat sdf = new SimpleDateFormat(_MM_dd); public static void logInfo(String message) { try { java.util.logging.Logger logger = java.util.logging.Logger.getLogger( test); FileHandler fh = new FileHandler(C:/ubs_ + sdf.format(new Date()) + .log, true); fh.setFormatter(new SimpleFormatter()); logger.addHandler(fh); logger.info(message); } catch (SecurityException e) { e.printStackTrace(); } catch (IOException e) { e.printStackTrace(); } } } after called Logger.logInfo(test) 2 times created 5 files? ubs_2003_10_11.log ubs_2003_10_11.log.lck ubs_2003_10_11.log.1 ubs_2003_10_11.log.1.lck ubs_2003_10_11.log.2 ubs_2003_10_11.log.2.lck what's happened? i need Logger create one file? Thanks in advance - 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]
Jav.util.logging URGENT
Hi, I am learning to use logger. I have a code snippet below package test import java.io.IOException; import java.io.Serializable; import java.text.SimpleDateFormat; import java.util.Date; import java.util.logging.FileHandler; import java.util.logging.SimpleFormatter; public class Logger implements Serializable { static SimpleDateFormat sdf = new SimpleDateFormat(_MM_dd); public static void logInfo(String message) { try { java.util.logging.Logger logger = java.util.logging.Logger.getLogger( test); FileHandler fh = new FileHandler(C:/ubs_ + sdf.format(new Date()) + .log, true); fh.setFormatter(new SimpleFormatter()); logger.addHandler(fh); logger.info(message); } catch (SecurityException e) { e.printStackTrace(); } catch (IOException e) { e.printStackTrace(); } } } after called Logger.logInfo(test) 2 times created 5 files? ubs_2003_10_11.log ubs_2003_10_11.log.lck ubs_2003_10_11.log.1 ubs_2003_10_11.log.1.lck ubs_2003_10_11.log.2 ubs_2003_10_11.log.2.lck what's happened? i need Logger create one file? Thanks in advance - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
test
test - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
SSL
How to export private keystore file to a OpenSSL pem file? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
URGENT: java.lang.OutOfMemoryError
I'm running Tomcat 4.1.18 on Linux 7.3+jdk 1.4 and installed few webapps. I think one application leaks memory but i can't detect what one leaks memory? Tomcat reports(catalina.out) Mar 29, 2003 11:34:25 PM org.apache.tomcat.util.log.CommonLogHandler log SEVERE: Exception in acceptSocket java.lang.OutOfMemoryError java.lang.OutOfMemoryError How do i detect which application leaks memory? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Configuring Tomcat to use a JDBC Realm
check mysql port -Original Message- From: Dean A. Hoover [mailto:[EMAIL PROTECTED] Sent: Saturday, March 29, 2003 9:20 AM To: [EMAIL PROTECTED] Subject: Configuring Tomcat to use a JDBC Realm I am attempting to use JDBC Realm as described in the Apress book by James Goodwill. My os is RH 8.0. I'm using MySQL 4.0.12 and Connector/J 3.06. I am using Tomcat 4.0.6. I set up a tomcatusers database and a test user as per the book. I dropped mysql-connector-java-3.0.6-stable-bin.jar into $TOMCAT_HOME/common/lib I modified the server.xml file as follows: !-- Realm className=org.apache.catalina.realm.MemoryRealm / -- !-- Replace the above Realm with one of the following to get a Realm stored in a database and accessed via JDBC -- Realm className=org.apache.catalina.realm.JDBCRealm debug=99 driverName=com.mysql.jdbc.Driver connectionURL=jdbc:mysql://localhost/tomcatusers?user=test;password=test userTable=users userNameCol=user_name userCredCol=user_pass userRoleTable=user_roles roleNameCol=role_name I then attempt to go to http://localhost:8080/apress/login.jsp in my mozilla browser. Nothing happens. I go to check for a clue in the logs. This is what I get: - Root Cause - java.sql.SQLException: Server configuration denies access to data source at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:392) at com.mysql.jdbc.Connection.createNewIO(Connection.java:1511) at com.mysql.jdbc.Connection.init(Connection.java:485) at com.mysql.jdbc.Driver.connect(Driver.java:341) at org.apache.catalina.realm.JDBCRealm.open(JDBCRealm.java:548) at org.apache.catalina.realm.JDBCRealm.start(JDBCRealm.java:613) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1108) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:343) at org.apache.catalina.core.StandardService.start(StandardService.java:388) at org.apache.catalina.core.StandardServer.start(StandardServer.java:506) at org.apache.catalina.startup.Catalina.start(Catalina.java:781) at org.apache.catalina.startup.Catalina.execute(Catalina.java:681) at org.apache.catalina.startup.Catalina.process(Catalina.java:179) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39 ) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl .java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243) Anyone got any ideas how I can fix this? Thanks. Dean Hoover - 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: SSL configuration problem,URGENT --plz reply-still having trouble
add this to the security.provider.2=com.sun.net.ssl.internal.ssl.Provider %JAVA_HOME%\jre\lib\security\java.security file -Original Message- From: kama rao [mailto:[EMAIL PROTECTED] Sent: Thursday, March 06, 2003 3:01 PM To: Tomcat Users List; [EMAIL PROTECTED] Subject: SSL configuration problem,URGENT --plz reply-still having trouble Hi, i tried catalina run and got the stacktrace.I am using wstk for some project and for that i have to use the classpath set by it before i start tomcat.It gives me error when i try to start. But when i start without setting classpath for my wstk,it works fine,i got the certificate when i try to access,the page.From this i figured that it's a class path problem.How to fix it.I am uding IBMJCE for my rpoject,does it cause any problem for this.I have to use the classpath set by wstk. let me write what i did 1)put the jsse.jar,jcert.jar,jnet.jar in %JAVA_HOME%\jre\lib\ext\ 2)changed the security files to include the ssl provider after IBMJCE(tried changing oredr also---didn't work out) 3)added in the classpath manually. 4)still giving this error Using CATALINA_BASE: C:\myroot\Tomcat Using CATALINA_HOME: C:\myroot\Tomcat Using CATALINA_TMPDIR: C:\myroot\Tomcat\temp Using JAVA_HOME: C:\myroot\WSDK\sdk [INFO] Registry - -Loading registry information [INFO] Registry - -Creating new Registry instance [INFO] Registry - -Creating MBeanServer [INFO] Http11Protocol - -Initializing Coyote HTTP/1.1 on port 8080 Exception during startup processing java.lang.reflect.InvocationTargetException: java.lang.NoClassDefFoundError: com /sun/net/ssl/internal/ssl/Provider at org.apache.tomcat.util.net.jsse.JSSEImplementation.getServerSocketFac tory(JSSEImplementation.java:90) at org.apache.coyote.http11.Http11Protocol.checkSocketFactory(Http11Prot ocol.java:452) at org.apache.coyote.http11.Http11Protocol.init(Http11Protocol.java:133) at org.apache.coyote.tomcat4.CoyoteConnector.initialize(CoyoteConnector. java:1032) at org.apache.catalina.core.StandardService.initialize(StandardService.j ava:579) at org.apache.catalina.core.StandardServer.initialize(StandardServer.jav a:2245) at org.apache.catalina.startup.Catalina.start(Catalina.java:511) at org.apache.catalina.startup.Catalina.execute(Catalina.java:400) at org.apache.catalina.startup.Catalina.process(Catalina.java:180) at java.lang.reflect.Method.invoke(Native Method) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203) PLEASE HELP ME . Thanks for your replies. Raja Sekhar [EMAIL PROTECTED] wrote:Hi Kama rao, Dont start the server automatically from startup.bat. Instead goto the command prompt and start the server by giving this command catalina run. This command executes the server in same window so you would be able to see the error message. I feel that you missed out having the JSSE in your library path. Debug on this and your problem will be resolved. Regards, ..Raj -- On Wed, 5 Mar 2003 15:13:44 pero wrote: Hi, erm, what about sending your server.xml-file to the list? This way we could perhaps determine what's going on. Peter -Original Message- From: kama rao [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 05, 2003 11:25 AM To: [EMAIL PROTECTED] Subject: SSL configuration problem,URGENT --plz reply Hi, I am trying to configure ssl for my tomcat 4.0. I changed the server.xml in conf directory and created keystore according to documentation.when i start the server,it opens and closes on itself automatically. i checked the logs and didn't found anyproblem. when i put the comments back to connector(for SSL) in server.xml,it works fine. where is the problem. Please reply,i am in a urgent situation. thanks in advance - Do you Yahoo!? Yahoo! Tax Center - forms, calculators, tips, and more - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] 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] - Do you Yahoo!? Yahoo! Tax Center - forms, calculators, tips, and more - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat and Microsoft SQL Server 2000 JDBC Driver issue
copy common\lib directory -Original Message- From: Michael Ni [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 25, 2003 10:32 AM To: [EMAIL PROTECTED] Subject: Tomcat and Microsoft SQL Server 2000 JDBC Driver issue My goal is to use JSP to query from my Microsoft SQL Server 2000. I have successfully created my environments and installed the drivers for the Microsoft SQL Server 2000 JDBC. However when i run my script i get the following error Driver not found:java.lang.ClassNotFoundException: com.microsoft.jdbc.sqlserver.SQLServerDrivercom.microsoft.jdbc.sqlserver.SQL ServerDriver exception: java.sql.SQLException: No suitable driverNo suitable driver you can see for yourself at the following url http://128.91.107.144:8080/test/home.jsp I attached my home.jsp page. Does tomcat need to have the microsoft drivers physically in the folder or subfolders of c:\Tomcat 4.1? All i did was create the CLASSPATH which assigned CLASSPATH to the 3 jar driver files. I've been stuck on this issue for 3 days. Can anyone help me? _ MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*. http://join.msn.com/?page=features/virus - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: 403 Forbidden - you don't have permission ... any ideas?
how to integrate Borland Together Control Center with jdk 1.4? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: 100% CPU Usage
do not use mod_webapp. use mod_jk -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Friday, January 31, 2003 1:45 PM To: [EMAIL PROTECTED] Subject: 100% CPU Usage Hi We have a application that send request to the server approximtely every 1 second. Considering that 2 connectios are made to the server and 1 request ever 1 second from 2 users its around 2 request every second work well for couple of hours. But it seems the GC is never called. After couple of hours the server usage 100% CU. This works well for some more time and then the srever gets dead slow. What can be the reason and how can we stop 100% memory usage? There is no databse connection but calls are made to JBoss application server for each request that comes. Is this tomcat problem if yes is there a workaround? [ -=-=-=-=-=-=-=-=-=-=-=- Hrishikesh Kamat -=-=-=-=-=-=-=-=-=-=-=- ] Trust Your Instincts 91 20 5511262 - Ext 465 - 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: VirtualHost www.zcompany.com:80 overlaps VirtualHost www.abc.com:80
VirtualHost * ServerName cde.com ServerAlias www.cde.com DocumentRoot /apache/Tomcat4.1/CDE ErrorLog logs/cde.com-error_log CustomLog logs/cde.com-access_log common /VirtualHost Directory /apache/Tomcat4.1/CDE Options Indexes MultiViews AllowOverride None Order allow,deny Allow from all DirectoryIndex main.jsp /Directory JkMount www.cde.com/* ajp12 JkMount www.cde.com/*.jsp ajp12 -Original Message- From: tomcat guy [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 04, 2003 8:57 AM To: Tomcat Users List Subject: VirtualHost www.zcompany.com:80 overlaps VirtualHost www.abc.com:80 Has anyone come across this warning? Any guesses as to what is wrong? Here is the httpd.conf definition: NameVirtualHost * VirtualHost * ServerName cde.com ServerAlias www.cde.com DocumentRoot /apache/Tomcat4.1/CDE JkMount /*.jsp ajp13 JkMount /servlet/* ajp13 ErrorLog logs/cde.com-error_log CustomLog logs/cde.com-access_log common /VirtualHost VirtualHost * ServerName qv.com ServerAlias www.qv.com DocumentRoot /apache/Tomcat4.1/QV JkMount /*.jsp ajp13 JkMount /servlet/* ajp13 ErrorLog logs/qv.com-error_log CustomLog logs/qv.com-access_log common /VirtualHost VirtualHost * ServerName abc.com ServerAlias www.abc.com DocumentRoot /apache/Tomcat4.1/AMW JkMount /*.jsp ajp13 JkMount /servlet/* ajp13 ErrorLog logs/abc.com-error_log CustomLog logs/abc.com-access_log common /VirtualHost # !-- !!! added workers file for apache tomcat integration -- JkWorkersFile d:\Apache\Tomcat4.1\conf\jk\workers.properties JkLogFile d:\Apache\Tomcat4.1\logs\mod_jk.log Include d:/Apache/Tomcat4.1/conf/auto/mod_jk.conf everything appears to be working normally but why the error??? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Where Set Tomcat_home and Catalina_home ??
JAVA_HOME=C:\j2sdk1.4.1_01 CATALINA_HOME=tomcatdir -Original Message- From: fred [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 30, 2003 12:21 PM To: Tomcat Users List Subject: Re: Where Set Tomcat_home and Catalina_home ?? Ok thak you, and sorry for the system... I'm on Xp, it is at the same that for the java: Path: C:\j2sdk1.4.1_01\bin; ? I put C:\Program FilesApache Group.\Tomcat 4.1\bin; ? Thank you... - Original Message - From: Galbayar Dorjgotov [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Thursday, January 30, 2003 5:16 AM Subject: RE: Where Set Tomcat_home and Catalina_home ?? in autoexec.bat on win98 on win nt or win2k control Panle-System-Advanced-Environment variables -Original Message- From: fred [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 30, 2003 12:08 PM To: Tomcat Users List Subject: Where Set Tomcat_home and Catalina_home ?? Helo, canyou tell me where set the system environnment variables for: TOMCAT_HOME= C:\Tomcat CATALINA_HOME=C:\Tomcat Thank you. Fred - 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: Where Set Tomcat_home and Catalina_home ??
in autoexec.bat on win98 on win nt or win2k control Panle-System-Advanced-Environment variables -Original Message- From: fred [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 30, 2003 12:08 PM To: Tomcat Users List Subject: Where Set Tomcat_home and Catalina_home ?? Helo, canyou tell me where set the system environnment variables for: TOMCAT_HOME= C:\Tomcat CATALINA_HOME=C:\Tomcat Thank you. Fred - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
JBuilder and SUN EE server
How can i intergate JBulder 8 with Sun J2EE Server? -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: ssl configuration in tomcat please help!!!
fill keystore file attribute -Original Message- From: Davendra Kumar [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 24, 2002 10:40 AM To: [EMAIL PROTECTED] Subject: ssl configuration in tomcat please help!!! hi everyone... i hope anyone can help me in this problem i 've installed Apache Tomcat 4.1.12LE and j2sdk1.4.1 .Yesterday i tried configuring SSL in tomcat for my login page. so i followed the steps provided in the documentation. the documentation said choose JSSE an installed extension by copying all three JAR files (jcert.jar, jnet.jar, and jsse.jar) into your JAVA_HOME\jre\lib\ext directory but i could only find the jsse.jar file so i copyied jsse.jar file to JAVA_HOME\jre\lib\ext after that i did the keytool configuration from C:\j2sdk1.4.1 during keytool process i created my own password. after that i removed the comments in the server.xml like shown below, and added the keystore password with my own..password Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=8443 minProcessors=5 maxProcessors=75 enableLookups=true acceptCount=10 debug=0 scheme=https secure=true useURIValidationHack=false Factory className=org.apache.coyote.tomcat4.CoyoteServerSocketFactory clientAuth=false protocol=TLS keystorePass=mypassword / i restarted tomcat and typed https://localhost:8443/ and it displayed The page cannot be displayed.. so my question is where did i go wrong and what should i do next... _ MSN 8 with e-mail virus protection service: 3 months FREE*. http://join.msn.com/?page=features/virusxAPID=42PS=47575PI=7324DI=7474S U= http://www.hotmail.msn.com/cgi-bin/getmsgHL=1216hotmailtaglines_eliminatevi ruses_3mf -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: DataSource error (DBCP)
copy mysql jdbc driver to tomcat/common/lib directory -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Monday, December 23, 2002 3:09 AM To: [EMAIL PROTECTED] Subject: DataSource error (DBCP) hi all, i'm new to tomcat... if my queries are foolish...pl forgive. :) my configuration is RH Linux 8/MYSQL 3.../TOMCAT 4.1.8 all the examples provided are working correctly... i tried JNDI Datasource HOW-TO (more details in the URL) http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-datasource-examples-how to.html#Database%20Connection%20Pool%20(DBCP)%20Configurations 4 i tried with MYSQL DBCP Example 1. i've created mysql username,password,database,tables,records 2. i've changed the server.xml configuration by inserting the codes given under no.2 3. i've created a web.xml as in no.3 4. i've written the same test.jsp and DBTest.java and i created a directory DBTest and placed test.jsp and DBTest.java there and another subdirectory called WEB-INF and placed the web.xml there. I tried to compile DBTest.java and ended up an error Type 'Datasource' not found in the declaration of table 'ds' DataSource ds= ^ 1 error - please help! THANKS IN ADVANCE best regards sunil -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Tomcat SSL URGENT!!!!!!
hello everybody? I'm configured Tomcat 4.0.3 with ssl on jdk1.3 and worked fine. In server.xml defined many context's. i need only some web applications supports ssl others not. how to do it? -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: custom error 500 page for missing applications
error-page error-code500/error-code location/errors/500.html/location /error-page add this lines to the web.xml -Original Message- From: hans albers [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 19, 2002 3:24 PM To: [EMAIL PROTECTED] Subject: custom error 500 page for missing applications What do I have to do to set up a custom error page for http status error 500? I want to the user that there's no application in this context. (Tomcat 4.1.x) Thanks for your help, Hans _ Fotos - MSN Fotos das virtuelle Fotoalbum. Allen Freunden zeigen oder einfach ausdrucken: http://photos.msn.de/support/worldwide.aspx -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Urgent!!!!!!! JavaBean
hello all! I'm installed Apache Tomcat 4.x version and running fine and it serves many services. After java bean changes i must restart tomcat? -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Urgent!!!!!!! JavaBean
thank you -Original Message- From: Alexander Wallace [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 10, 2002 5:39 AM To: Tomcat Users List Subject: Re: Urgent!!! JavaBean If you have tomcat configured to autoload classes when they are changed, then you don't have to restart, otherwise you either restart or use the administration tool that comes with tomcat to reload the app On Tue, 2002-12-10 at 03:23, Galbayar Dorjgotov wrote: hello all! I'm installed Apache Tomcat 4.x version and running fine and it serves many services. After java bean changes i must restart tomcat? -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Java method equal to perl crypt()?
Ok, I have an existing MySQL database that has user's passwords stored that were encrypted using the Perl crypt() function. I was wondering what the best way to re-use this database using JSP. I know enough Java to get most functionality working, and I can already connect to and read/write to MySQL. The only problem I have is if I migrate to JSP, how can I compare passwords that are supplied in the JSP page to the password in the DB that was stored via the Perl crypt() function? -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Cahrset problem
hi all. i have one problem. My JSP's enconding is windows-1251 and have a form. i'm wrote cyrillic characters and submit when i reading textfield value use getParameter() method it returns what's the matter? MY JSP is % page contentType=text/html; charset=windows-1251 language=java import=java.io.* errorPage= % html head titleUntitled Document/title /head body % String a1=request.getParameter(textfield); out.println(a1); if (a1!=null){ InputStreamReader a=new InputStreamReader(new ByteArrayInputStream(a1.getBytes()),windows-1251); int gg=0; gg=a.read(); out.println((char)gg); a.close(); } % form name=form1 method=post action= input type=text name=textfield input type=submit name=Submit value=Submit /form /body /html -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
how to convert reader to the inputstream
how to convert reader to the inputstream? -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
RE: Classpath
control Panel-System-Advanced-Environment Variables -Original Message- From: jaicey ouseph [mailto:[EMAIL PROTECTED]] Sent: Thursday, October 10, 2002 6:00 PM To: [EMAIL PROTECTED] Subject: Classpath Hello Sir, I am using Tomcat 4.0. I have some database driver class in a some specific directory say d:\driver. I have set my classpath to that directory. I can start tomcat in 2 ways * Through startup.bat which calls setclasspath.bat where u can specify your classpath setting. * Through bootstrap. By setting the classpath in setclasspath.bat works only if I start Tomcat 4.0 using startup.bat. But how do I set my classpath if I want to start Tomcat using bootstrap. Waiting desperately for your answer. Thanx in advance. Byee -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: JDBC Driver Installation
copy to yourcontext/WEB-INF/lib directory -Original Message- From: Zeeshan [mailto:[EMAIL PROTECTED]] Sent: Thursday, October 03, 2002 9:22 AM To: Tomcat Users List Subject: Re: JDBC Driver Installation Which version of Tomcat are you using? - Original Message - From: Jun [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, October 02, 2002 4:57 PM Subject: RE: JDBC Driver Installation I did that, but it won't work. by the way, I use windown NT 4.0. I renamed the file to clases12. jar, it does not working either :(( -Original Message- From: Zeeshan [mailto:[EMAIL PROTECTED]] Sent: Tuesday, October 01, 2002 6:18 PM To: Tomcat Users List Subject: Re: JDBC Driver Installation Rename your file to classes12.jar and restart tomcat. Regards Zeeshan - Original Message - From: Frank Liu [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Tuesday, October 01, 2002 3:12 PM Subject: Re: JDBC Driver Installation Is it a bug that tomcat can't recognize oracle's classes12.zip even though I installed it in the common/lib? thanks, frank On Tue, 1 Oct 2002, Rick Fincher wrote: Hi Frank, Putting it in the common/lib directory is the correct place for it if you want it accessible by Tomcat and alll your web apps. That way you don't have multiple copies of your JDBC driver cluttering up your system. Put it in WEB-INF/lib makes it available to only that web app. This is explained in README in the Tomcat docs. Rick - Original Message - From: Frank Liu [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, October 01, 2002 5:06 PM Subject: JDBC Driver Installation for mysql jdbc driver, I just copied mysql-connector-java-2.0.14-bin.jar to the tomcat/common/lib directory and restart tomcat. the application can find the driver without a problem. Is this the right way to install the jdbc driver? or shall it copy it to the application's own WEB-INF/lib directory? Which is the preferred way? today when I try the same thing for the oracle jdbc driver classes12.zip, this trick doesn't work anymore. I have to rename it to classes12.jar before I copy to tomcat/common/lib. Am I doing something wrong or this is the way? Why wouldn't oracle release it as classes12.jar then? Thanks! Frank -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Problem
put Servlet class file context_path/WEB-INF/classes directory put Applet class file context_path/directory Applet codebase=/context code=MyApplet.class param name=yourparam value=parametervalue /Applet -Original Message- From: Maninderjit Singh [mailto:[EMAIL PROTECTED]] Sent: Saturday, September 28, 2002 1:20 AM To: [EMAIL PROTECTED] Subject: Problem I Have Tomcat Installed in c:\programFiles\ApacheTomcat. The Problem is that i don't get my Setvlets loaded. Please tell m where i have to place my servlet Class files and Applet Class files and what path i should type in the web browser to load the servlet which contain the Applet Tag One more thing In APPLET TAG what i Should write in the CODEBASE AND CODE. This is very much Necessary for me because i have a project that i have to show before 4 October Maninderjit Singh([EMAIL PROTECTED]) Yahoo! Properties Special Buy, sell, rent...your flat, or even post an ad -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
URGENT sign java applet
how to sign java applet -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: another sql error
try use Statement String vno = request.getParameter(vergino); String Query=Select malik.VerginNo From ParselMalik Where Malik.VergiNo=?; PreparedStatement st=mysql.prepareStatement(Query); st.setString(1,vno); -Original Message- From: Halil AKINCI [mailto:[EMAIL PROTECTED]] Sent: Friday, September 13, 2002 4:14 PM To: Tomcat Users List; servlet-interest group; jakarta-tomcat yahoo groups Subject: another sql error Hi all , When I want to run following sql statement in a servlet, I receive following error message in tomcat's DOS console [Microsoft][ODBC Microsoft Access Driver] Too few parameters. Expected 1. In this sql statement, the vno variable is read from a HTML form by using following statement String vno = request.getParameter(vergino); Other informations are gotten from MS Access tables (Malik, ParselMalik, KatMalik tablolarýndan). This sql statement is running correct within the access. I wonder how can I organize this sql? Can anyone help? (SELECT Malik.VergiNo,Malik.Adý,Malik.Soyadý,ParselMalik.TasýnmazID,ParselMalik.Hiss e + FROM ParselMalik,Malik WHERE Malik.VergiNo=+vno+ AND Malik.VergiNo=ParselMalik.VergiNo + UNION SELECT Malik.VergiNo,Malik.Adý,Malik.Soyadý,KatMalik.TasýnmazID,KatMalik.PayMiktarý + FROM KatMalik,Malik WHERE Malik.VergiNo=+vno+ AND Malik.VergiNo=KatMalik.VergiNo); -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: apache error?
download mod_jk source and compile it -Original Message- From: hari hari [mailto:[EMAIL PROTECTED]] Sent: Friday, September 13, 2002 9:26 AM To: [EMAIL PROTECTED] Subject: Re: apache error? my many many thnak you to you friendes, I sending following files with this email you asked. 1)httpd.conf (attached) 2)server.xml (attached with thsi email) The rest files are inline with this email since they are small and so as follows: My workers.properties file containing following lines: workers.tomcat_home=/jboss/catalina workers.java_home=/usr/java130 ps=/ worker.list=ajp12, ajp13, ajp14 worker.ajp13.port=8009 worker.ajp13.host=100.200.100.200 worker.ajp13.type=ajp13 My mod_jk.conf file is containing following lines: LoadModule jk_module modules/mod_jk.so #AddModule mod_jk.c IfModule mod_jk.c JkWorkersFile /jboss/catalina/conf/jk/workers.properties JkLogFile logs/jk.log JkLogLevel warn JkMount /*.jsp ajp12 JkMount /servlet/* ajp12 JkMount /examples/* ajp12 /IfModule I using Apache 2.0.40, Tomcat 4.0.4 and IBM AIX 5.1 System Ploice helping me - i trying to hard. my thank you to all you. --hari From: Habibak haAlbek [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: Re: apache error? Date: Thu, 12 Sep 2002 17:01:29 -0700 (PDT) In your reply, please attach the following files: httpd.conf workers.properties server.xml mod_jk.conf (if you have one) and any other files What apache version are you using? are you using plain or apache with SSL? What tomcat version are you using? How did you obtain the mod_jk.so? What JDK version are you using? operating system? and version? hari hari wrote:hi thanks to you foe reply me email. i try to create libexec directory and putting mod_jk.so in that directory but it is show same error. And i changing permission of mod_jk.so to 755 but still no working. helping me. -- hari From: [EMAIL PROTECTED] To: hari hari CC: [EMAIL PROTECTED] Subject: Re: apache error? Date: Thu, 12 Sep 2002 14:54:17 -0400 hari, 1. Is there a libexec directory where you can place that I beleive modules directory is applicable for windows 2. Check the permission on the mod_jk.so file, you may need to do something like that: chmod 755 mod_jk.so to give it the appropriate permissions. hari hari on 09/12/2002 02:27:39 PM To: [EMAIL PROTECTED] cc: Subject: Re: apache error? Hi my friends, my many thank you to all of you. i mentioned in my last mail messg, I using apache 2.0.40 and tomcat 4.0.4 on IBM aix 5.1 systems. I having errers when running my apache as follows. my friend emiled me mod_jk.so and telling me to put that mod_jk.so in /usr/local/apache2/modules directory and I did that and it is giving problems. #./apachectl start Syntax error on line 1 of /jboss/catalina/conf/auto/mod_jk.conf: Cannot load /usr/local/apache2/modules/mod_jk.so into server: # I adding following lines at the very end of my httpd.conf file: Include /jboss/catalina/conf/auto/mod_jk.conf My mod_jk.conf file is below: LoadModule jk_module modules/mod_jk.so JkWorkersFile /jboss/catalina/conf/jk/workers.properties JkLogFile logs/jk.log JkLogLevel warn JkMount /*.jsp ajp12 JkMount /servlet/* ajp12 JkMount /examples/* ajp12 ploice helping me. --hari _ Join the worlds largest e-mail service with MSN Hotmail. http://www.hotmail.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: apache error?
add this to the mod_jk.conf Directory Alias dir AllowOverride None deny from all /Directory -Original Message- From: hari hari [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 12, 2002 6:46 AM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Re: apache error? my many thank you Charbel. do u mean that i need to add Addmodule to httpd.conf or mod_jk.conf? In httpd.conf, I have put following line at the exact end. Include /jboss/catalina/conf/auto/mod_jk.conf And, my mod_jk.conf is containing following lines: LoadModule jk_module modules/mod_jk.so IfModule mod_jk.c JkWorkersFile /jboss/catalina/conf/jk/workers.properties JkLogFile logs/jk.log JkLogLevel warn JkMount /*.jsp ajp12 JkMount /servlet/* ajp12 JkMount /examples/* ajp12 /IfModule Pl. helping me. -- hari From: [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: Re: apache error? Date: Wed, 11 Sep 2002 17:32:12 -0400 _ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: mod_jk2 virtual host
Add to the httpd.conf VirtualHost * DocumentRoot /usr/local/tomcat/webapps/app ServerName www.yourdomain.com ServerAlias yourdomain.con #DirectoryIndex index.jsp ServerAdmin admin ErrorLog logs/smartmessage-error_log CustomLog logs/smartmessage-access_log common /VirtualHost JkMount www.yourdomain.com -Original Message- From: Catalin [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 12, 2002 7:35 AM To: [EMAIL PROTECTED] Subject: mod_jk2 virtual host hello, is there any way to configure mod_jk2 to run OK with apache virtualhost ? i want to map an URI just for a virtual host not for all the hosts (as it is now). an workers2.properties example would be even better ! ok 10x in advance for any help ! Catalin -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: apache error?
Remove AddModule line -Original Message- From: hari hari [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 12, 2002 9:14 AM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: RE: apache error? hi Galbayar, my thanks to you. i tried to put the following at my mod_jk.conf - but still it not works. It is gives me same error. Directory Alias dir AllowOverride None deny from all /Directory I am geting following error # ./apachectl start Syntax error on line 1 of /jboss/catalina/conf/auto/mod_jk.conf: Cannot load /usr/local/apache2/modules/mod_jk.so into server: # I have following file as my mod_jk.conf. I tried all combinations but still getting same above error LoadModule jk_module modules/mod_jk.so AddModule mod_jk.c IfModule mod_jk.c JkWorkersFile /jboss/catalina/conf/jk/workers.properties JkLogFile logs/jk.log JkLogLevel warn JkMount /*.jsp ajp12 JkMount /servlet/* ajp12 JkMount /examples/* ajp12 /IfModule Directory Alias dir AllowOverride None deny from all /Directory thanks to you hari From: Galbayar [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: RE: apache error? Date: Thu, 12 Sep 2002 09:02:28 +0900 add this to the mod_jk.conf Directory Alias dir AllowOverride None deny from all /Directory -Original Message- From: hari hari [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 12, 2002 6:46 AM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Re: apache error? my many thank you Charbel. do u mean that i need to add Addmodule to httpd.conf or mod_jk.conf? In httpd.conf, I have put following line at the exact end. Include /jboss/catalina/conf/auto/mod_jk.conf And, my mod_jk.conf is containing following lines: LoadModule jk_module modules/mod_jk.so IfModule mod_jk.c JkWorkersFile /jboss/catalina/conf/jk/workers.properties JkLogFile logs/jk.log JkLogLevel warn JkMount /*.jsp ajp12 JkMount /servlet/* ajp12 JkMount /examples/* ajp12 /IfModule Pl. helping me. -- hari From: [EMAIL PROTECTED] _ Chat with friends online, try MSN Messenger: http://messenger.msn.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: apache error?
copy mod_jk.so to apache/libexec dir my server httpd.conf is LoadModulejk_module libexec/mod_jk.so AddModule mod_jk.c JkWorkersFile /usr/local/jakarta-tomcat-4.0.3/conf/workers.properties JkLogFile /var/log/apache/mod_jk.log JkLogLevelinfo JkLogStampFormat [%a %b %d %H:%M:%S %Y] Alias /administrator/ /usr/local/jakarta-tomcat-4.0.3/webapps/administrator Directory /usr/local/jakarta-tomcat-4.0.3/webapps/administrator AuthName Admin AuthType Basic AuthUserFile /usr/local/apache/bin/usr.pwd Require valid-user AllowOverride None Options None DirectoryIndex index.jsp /Directory JkMount /administrator/* ajp13 JkMount /administrator/servlet/* ajp13 -Original Message- From: hari hari [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 12, 2002 9:14 AM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: RE: apache error? hi Galbayar, my thanks to you. i tried to put the following at my mod_jk.conf - but still it not works. It is gives me same error. Directory Alias dir AllowOverride None deny from all /Directory I am geting following error # ./apachectl start Syntax error on line 1 of /jboss/catalina/conf/auto/mod_jk.conf: Cannot load /usr/local/apache2/modules/mod_jk.so into server: # I have following file as my mod_jk.conf. I tried all combinations but still getting same above error LoadModule jk_module modules/mod_jk.so AddModule mod_jk.c IfModule mod_jk.c JkWorkersFile /jboss/catalina/conf/jk/workers.properties JkLogFile logs/jk.log JkLogLevel warn JkMount /*.jsp ajp12 JkMount /servlet/* ajp12 JkMount /examples/* ajp12 /IfModule Directory Alias dir AllowOverride None deny from all /Directory thanks to you hari From: Galbayar [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: RE: apache error? Date: Thu, 12 Sep 2002 09:02:28 +0900 add this to the mod_jk.conf Directory Alias dir AllowOverride None deny from all /Directory -Original Message- From: hari hari [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 12, 2002 6:46 AM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Re: apache error? my many thank you Charbel. do u mean that i need to add Addmodule to httpd.conf or mod_jk.conf? In httpd.conf, I have put following line at the exact end. Include /jboss/catalina/conf/auto/mod_jk.conf And, my mod_jk.conf is containing following lines: LoadModule jk_module modules/mod_jk.so IfModule mod_jk.c JkWorkersFile /jboss/catalina/conf/jk/workers.properties JkLogFile logs/jk.log JkLogLevel warn JkMount /*.jsp ajp12 JkMount /servlet/* ajp12 JkMount /examples/* ajp12 /IfModule Pl. helping me. -- hari From: [EMAIL PROTECTED] _ Chat with friends online, try MSN Messenger: http://messenger.msn.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: ARG! Please Help
application.getRealPath() return web application directory try use this -Original Message- From: Chuck Carson [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 12, 2002 10:12 AM To: Tomcat Users List Subject: ARG! Please Help I have a class that needs to read in database connection info from a file called database.dat. The class is located here: $TOMCAT_HOME/webapps/ROOT/WEB-INF/classes/OracleBroker.class I refer to this file as follows: String datfile = database.dat; I then use the class from a jsp file: $TOMCAT_HOME/webapps/ROOT/index.jsp It cannot find database.dat, I have tried placing this file in nearly every directory under the tomcat tree. Where does this file need to do? Thanks, CC Chuck Carson Sr. Systems Administrator Syrrx, Inc. 10410 Science Center Drive San Diego, CA 92121 E: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] W: 858.731.3540 M: 858.442.0827 -- This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message, which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: ARG! Please Help
% String webappdir=application.getRealPath(); out.println(webappdir); String data=webappdir+/database.dat % -Original Message- From: Chuck Carson [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 12, 2002 10:25 AM To: Tomcat Users List Subject: RE: ARG! Please Help I think some of your message was chopped, exactly how would I use this? Thanmks, CC -Original Message- From: Galbayar [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 11, 2002 6:26 PM To: Tomcat Users List Subject: RE: ARG! Please Help application.getRealPath() return web application directory try use this -Original Message- From: Chuck Carson [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 12, 2002 10:12 AM To: Tomcat Users List Subject: ARG! Please Help I have a class that needs to read in database connection info from a file called database.dat. The class is located here: $TOMCAT_HOME/webapps/ROOT/WEB-INF/classes/OracleBroker.class I refer to this file as follows: String datfile = database.dat; I then use the class from a jsp file: $TOMCAT_HOME/webapps/ROOT/index.jsp It cannot find database.dat, I have tried placing this file in nearly every directory under the tomcat tree. Where does this file need to do? Thanks, CC Chuck Carson Sr. Systems Administrator Syrrx, Inc. 10410 Science Center Drive San Diego, CA 92121 E: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] W: 858.731.3540 M: 858.442.0827 -- This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message, which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. -- To unsubscribe, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message, which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: where can i download request taglib
simple taglib example extract this webapps directory -Original Message- From: Mark Goking [mailto:[EMAIL PROTECTED]] Sent: Friday, August 16, 2002 2:12 PM To: Tomcat Users List Subject: where can i download request taglib anyone know the link to download the request taglib ? this is the main page that i went to but i couldnt find a download link within this page http://jakarta.apache.org/taglibs/doc/request-doc/request-1.0/index.html#jav adocs mark --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.381 / Virus Database: 214 - Release Date: 8/2/2002 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] test.zip Description: application/compressed -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: sample Autoexec.bat file
set JAVA_HOME=c:\jdk1.3 set TOMCAT_HOME=c:\tomcat set CLASSPATH=%CLASSPATH%;c:\mysql.jar;c:\classes -Original Message- From: Halil AKINCI [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 25, 2002 4:19 PM To: Tomcat Users List; servlet-interest group; JSP groups; jakarta-tomcat yahoo groups Subject: sample Autoexec.bat file Can anyone send me a sample Autoexec.bat file context that includes JAVA_HOME, TOMCAT_HOME, and CLASSPATH settings? -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Oracle driver and Tomca/apache ?!
On Wednesday 12 June 2002 06:21 am, you wrote: rename zip extension to jar and copy to $CATALINA_HOME/common/lib hi guys, i wish anybody can help me in my problem please.. i have jdk1.3.1, Tomcat4.0.3 and Apache2.0.36 workino on win2k professional .. i had too mod_jk.dll connector and i built it too .. everything works well with simple jsp's and html files .. but when i want Mywork.jsp to deal with a database system ( Oracle 8i) ..i got : The server encountered an internal error (Internal Server Error) that prevented it from fulfilling this request. exception : javax.servlet.ServletException: oracle.jdbc.driver.OracleDriver root cause: java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver i did the connection file AAST.jsp with the following contents : % String MM_AAST_DRIVER = oracle.jdbc.driver.OracleDriver; String MM_AAST_USERNAME = scott; String MM_AAST_PASSWORD = tiger; String MM_AAST_STRING = jdbc:oracle:thin:@localhost:1521:AAST; % and i included it in Mywork.jsp .. i don't know how to make Tomcat see the Oracle driver ?! .. i heard about an oracle file called classes12.zip or classes111.zip kind of a driver to jdbc !! i need to know.. What should i do to make Tomcat/apache see the database system driver ?!.. and does that file classes12.zip has a relation with that ?! i'll apperciate anyhelp in that please .. thanks in advance Walid Al-Abbadi -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
/etc/profile :Urgent
Hello I'm changed etc/profile file. after reboot Linux linux could not start how to solve this? -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Need Help
use mod_jk or mod_webapp integrate tomcat with apache -Original Message- From: Walid Al-Abbadi [mailto:[EMAIL PROTECTED]] Sent: Monday, June 03, 2002 11:05 AM To: [EMAIL PROTECTED] Subject: Need Help hi again , i just want to know if there is a way in configuration of Tomcat/apache to request my page [using Http] without specifying in the URL the port 8080 ! .. i mean it works well when i request : http://myHost:8080/mypage.jsp what i'm asking about is can i make it so i can only request : http://myHost/mypage.jsp i'll apperciate any help in that .. i use jakarta-tomcat [apache inside] ,(tomcat ver 3.1) on win2k thanks in advance , Walid Al-Abbadi -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: getParameters in HTTPServletRequest returns wrong result with XML body
use java.net.URLEncoder to encode XML String -Original Message- From: Bo Min Jiang [mailto:[EMAIL PROTECTED]] Sent: Saturday, June 01, 2002 11:47 AM To: Tomcat Users List Subject: getParameters in HTTPServletRequest returns wrong result with XML body Hi, I working on an app that passes a XML string through a HTTP form post to a Servlet. The string looks something like this: xmldocument=?xml version=1.0 encoding=UTF-8? AdvancedSearch SearchExpression searchItem =product Expression field=category operator=EQ value=tires/Expression/SearchExpression/SearchExpression/Advance dSearch When I call getParameters on HTTPServletRequest, I expect to get the following name-value pair: name: xmldocument value: ?xml version=1.0 encoding=UTF-8? AdvancedSearch SearchExpression searchItem =product Expression field=category operator=EQ value=tires/Expression/SearchExpression/SearchExpression/Advance dSearch However, I get the following name-value pair back: name: EQ value value: tires/Expression/SearchExpression/SearchExpression/AdvancedSearc h From this, I have a few questions: * Why does this happen? Is there a problem in the encoding of the XML? The content type being used is application/x-www-form-urlencoded * How does Tomcat go about getting parameters from the message body? Does it start from the end of the string? Also, I ran my app through JRun and got the correct results. Any help would be greatly appreciated. Thanks, Bo File: ATT9.txt winmail.dat Description: application/ms-tnef -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Mod JK Directories
-Original Message- From: Frederick Aubert [mailto:[EMAIL PROTECTED]] Sent: Saturday, June 01, 2002 7:19 AM To: Tomcat Users List Subject: Mod JK Directories Sorry if you got this twice, but I was unsure it went through due to some technical problem with my ISP. Hi, After many tries I finally succeeded in connecting Apache 2 to Tomcat 4 using mod_jk. Now everything is fine as long as I am not trying fancy things. Actually what I want to achieve is to have my webapp in a directory somewhere else on my disk (ie. not in default tomcat/webapps directory)... Now to the problem, I set things up and now when I am trying to browse my webapp with a browser I am served static files correctly (.ie I am served mydirectory/mywebapp/index.html, and not tomcat/webapps/mywebapp/index.html) but whenever Tomcat would need to serve a jsp, it is actually using a jsp located at tomcat/webapps/mywebapp/mytest.jsp instead of mydirectory/mywebapp/mytest.jsp... If I delete the former, then it is said the file does not exist. Any idea of why it¹s going wrong? I suppose I did misconfigure a deploying file. But wich one? Help would be greatly welcomed... Sincerely, Frederick Aubert PS: I did specify in my mod_jk.conf (which is included by httpd.conf) a new webapp as follow: Alias /mywebapp ³E:/mydirectory/mywebapp² Directory ³E:/mydirectory/mywebapp² Options Indexes FollowSymLinks DirectoryIndex index.jsp index.html index htm /Directory Location ³/mywebapp²/WEB-INF/*² AllowOverride None deny from all /Location Location ³/mywebapp²/META-INF/*² AllowOverride None deny from all /Location Directory ³E:/mydirectory/mywebapp/WEB-INF/² AllowOverride None deny from all /Directory Directory ³E:/mydirectory/mywebapp/META-INF/² AllowOverride None deny from all /Directory JkMount /mywebapp/*.jsp ajp 1.3 --- (`-''-/).___..--''`-._ `6_ 6 ) `-. ( ).`-.__.`) Frederick Aubert (_Y_.)' ._ ) `._ `. ``-..-' _..`--'_..-_/ /--'_.' ,'[EMAIL PROTECTED] (il),-'' (li),' ((!.-' --- --- (`-''-/).___..--''`-._ `6_ 6 ) `-. ( ).`-.__.`) Frederick Aubert (_Y_.)' ._ ) `._ `. ``-..-' _..`--'_..-_/ /--'_.' ,'[EMAIL PROTECTED] (il),-'' (li),' ((!.-' --- -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Mod JK Directories
in server.xml create context named mywebapp Context path=mywebapp docBase=E:/mydirectory/mywebapp debug=0 reloadable=true/ -Original Message- From: Frederick Aubert [mailto:[EMAIL PROTECTED]] Sent: Saturday, June 01, 2002 7:19 AM To: Tomcat Users List Subject: Mod JK Directories Sorry if you got this twice, but I was unsure it went through due to some technical problem with my ISP. Hi, After many tries I finally succeeded in connecting Apache 2 to Tomcat 4 using mod_jk. Now everything is fine as long as I am not trying fancy things. Actually what I want to achieve is to have my webapp in a directory somewhere else on my disk (ie. not in default tomcat/webapps directory)... Now to the problem, I set things up and now when I am trying to browse my webapp with a browser I am served static files correctly (.ie I am served mydirectory/mywebapp/index.html, and not tomcat/webapps/mywebapp/index.html) but whenever Tomcat would need to serve a jsp, it is actually using a jsp located at tomcat/webapps/mywebapp/mytest.jsp instead of mydirectory/mywebapp/mytest.jsp... If I delete the former, then it is said the file does not exist. Any idea of why it¹s going wrong? I suppose I did misconfigure a deploying file. But wich one? Help would be greatly welcomed... Sincerely, Frederick Aubert PS: I did specify in my mod_jk.conf (which is included by httpd.conf) a new webapp as follow: Alias /mywebapp ³E:/mydirectory/mywebapp² Directory ³E:/mydirectory/mywebapp² Options Indexes FollowSymLinks DirectoryIndex index.jsp index.html index htm /Directory Location ³/mywebapp²/WEB-INF/*² AllowOverride None deny from all /Location Location ³/mywebapp²/META-INF/*² AllowOverride None deny from all /Location Directory ³E:/mydirectory/mywebapp/WEB-INF/² AllowOverride None deny from all /Directory Directory ³E:/mydirectory/mywebapp/META-INF/² AllowOverride None deny from all /Directory JkMount /mywebapp/*.jsp ajp 1.3 --- (`-''-/).___..--''`-._ `6_ 6 ) `-. ( ).`-.__.`) Frederick Aubert (_Y_.)' ._ ) `._ `. ``-..-' _..`--'_..-_/ /--'_.' ,'[EMAIL PROTECTED] (il),-'' (li),' ((!.-' --- --- (`-''-/).___..--''`-._ `6_ 6 ) `-. ( ).`-.__.`) Frederick Aubert (_Y_.)' ._ ) `._ `. ``-..-' _..`--'_..-_/ /--'_.' ,'[EMAIL PROTECTED] (il),-'' (li),' ((!.-' --- -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: This has me ???Puzzled???: Switch being done but not really
add this sPage = request.getParameter(Page); sSubTitle=null; sFormName=null; sPageName -Original Message- From: Nicholas Orr [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 30, 2002 8:08 AM To: Tomcat Users List Subject: This has me ???Puzzled???: Switch being done but not really I have attached two files Source.txt and Error.txt. Have a look at the Error.txt file first, then look at the Source.txt file. Now tell me, is the switch statement getting done or not? I would think it is getting done but the values are not being passed. Puzzeld and Amazed, Nicholas ** The information contained in this e-mail is confidential and is intended only for the use of the addressee(s). If you receive this e-mail in error, any use, distribution or copying of this e-mail is not permitted. You are requested to forward unwanted e-mail and address any problems to the MIM Holdings Limited Support Centre. For general enquires: ++61 7 3833 8000 Support Centre e-mail: [EMAIL PROTECTED] Support Centre phone: Australia 1800500646 International ++61 7 38338042 ** -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Please help someone!
send me your jsp file -Original Message- From: Collins, Jim [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 09, 2002 11:04 PM To: 'Tomcat Users List' Subject: Please help someone! Does anyone know if this is a bug? I have several JSP's running without a problem. When I try and load one particular JSP file though I get this error: Apache Tomcat/4.0.3 - HTTP Status 404 - JSP file /path to jsp/feedback_form.jsp (Is a directory) not found I know why this is happening and I am working on a fix (nothing to do with Tomcat). However when this happens all my other JSP's that were working correctly now stop working. There is no error and when I view the html source there is no html content just an empty skeleton. Has anyone else had any experience of this who could tell me what is happening? Thanks. Jim. PLEASE READ: The information contained in this email is confidential and intended for the named recipient(s) only. If you are not an intended recipient of this email you must not copy, distribute or take any further action in reliance on it and you should delete it and notify the sender immediately. Email is not a secure method of communication and Nomura International plc cannot accept responsibility for the accuracy or completeness of this message or any attachment(s). Please examine this email for virus infection, for which Nomura International plc accepts no responsibility. If verification of this email is sought then please request a hard copy. Unless otherwise stated any views or opinions presented are solely those of the author and do not represent those of Nomura International plc. This email is intended for informational purposes only and is not a solicitation or offer to buy or sell securities or related financial instruments. Nomura International plc is regulated by the Financial Services Authority and is a member of the London Stock Exchange. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: mod_webapp.dll
- Original Message - From: Sven Linckels [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, May 06, 2002 17:51 Subject: mod_webapp.dll Hi, Yes, I need the mod_webapp.dll :) Could someone send me the file or give me the link where to find it? I'm not good at handling compilers, so I prefer getting a compiled version. Thanx a lot! Best regards, Sven Linckels -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] webapp-module-1.0-tc40-windows.zip Description: application/compressed -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: realm jdbc oracle problem
check your driver - Original Message - From: Mehmet Ugur Kuzu (LinkPlus) [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Wednesday, April 10, 2002 18:03 Subject: realm jdbc oracle problem I am getting error like at the bottom when i want to use jdbc realm against oracle 9i db, is this a bug ? how can i resolve this , Starting service Tomcat-Standalone Apache Tomcat/4.0.2 Catalina.start: LifecycleException: Exception opening database connection: jav a.sql.SQLException: oracle.jdbc.driver.OracleDriver LifecycleException: Exception opening database connection: java.sql.SQLExcepti on: oracle.jdbc.driver.OracleDriver at org.apache.catalina.realm.JDBCRealm.start(JDBCRealm.java:615) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1108) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:343 ) at org.apache.catalina.core.StandardService.start(StandardService.java:3 88) at org.apache.catalina.core.StandardServer.start(StandardServer.java:506 ) at org.apache.catalina.startup.Catalina.start(Catalina.java:781) at org.apache.catalina.startup.Catalina.execute(Catalina.java:681) at org.apache.catalina.startup.Catalina.process(Catalina.java:179) at java.lang.reflect.Method.invoke(Native Method) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243) - Root Cause - java.sql.SQLException: oracle.jdbc.driver.OracleDriver at org.apache.catalina.realm.JDBCRealm.open(JDBCRealm.java:538) at org.apache.catalina.realm.JDBCRealm.start(JDBCRealm.java:613) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1108) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:343 ) at org.apache.catalina.core.StandardService.start(StandardService.java:3 88) at org.apache.catalina.core.StandardServer.start(StandardServer.java:506 ) at org.apache.catalina.startup.Catalina.start(Catalina.java:781) at org.apache.catalina.startup.Catalina.execute(Catalina.java:681) at org.apache.catalina.startup.Catalina.process(Catalina.java:179) at java.lang.reflect.Method.invoke(Native Method) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243) -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Fw: someone help me !!!!..urgent...
- Original Message - From: Galbayar [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Friday, April 05, 2002 15:24 Subject: Re: someone help me ..urgent... rename classes12.zip to classes12.jar and copy into $TOMCAT_HOME/common/lib directory - Original Message - From: ajith kondapalli [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, April 05, 2002 09:07 Subject: someone help me ..urgent... hai, I have installed JAKARTA-TOMCAT4.0.3 version on my windows machine...its on C:\jakarta-tomcat 4.0.3 I have installed oracle drivers on C:\classe12.zip... Now how do i set the path in this tomcat version so that i can access oracle I am in urgent need of this set up..so someone please help me... i have just started to use tomcat.. thanks Ajith __ Do You Yahoo!? Yahoo! Tax Center - online filing with TurboTax http://taxes.yahoo.com/ -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: someone help me !!!!..urgent...
rename classes12.zip to classes12.jar and copy into $TOMCAT_HOME/common/lib directory - Original Message - From: ajith kondapalli [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, April 05, 2002 09:07 Subject: someone help me ..urgent... hai, I have installed JAKARTA-TOMCAT4.0.3 version on my windows machine...its on C:\jakarta-tomcat 4.0.3 I have installed oracle drivers on C:\classe12.zip... Now how do i set the path in this tomcat version so that i can access oracle I am in urgent need of this set up..so someone please help me... i have just started to use tomcat.. thanks Ajith __ Do You Yahoo!? Yahoo! Tax Center - online filing with TurboTax http://taxes.yahoo.com/ -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Tomcat can't find my own .jar files
$CATALINA_HOME/common/lib - Original Message - From: Korakaki Stella [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Thursday, March 28, 2002 18:27 Subject: Tomcat can't find my own .jar files Where shall I put my .jar file in order to be available to my servlet ? My servlet is placed at $CATALINA_HOME/webapps/ROOT/WEB-INF/classes/ and needs a cetain jar file. Please help me !!! Stella Korakaki Koutoudis Consulting -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Problem with run Tomcat 4.0.3 as a service on windows 2000
u must download tomcat.exe an run it this %CATALINA_HOME%\bin\tomcat.exe -install Tomcat4 %JAVA_HOME%\jre\bin\hotspot\jvm.dll -Djava.class.path=%CATALINA_HOME%\bin \bootstrap.jar;%JAVA_HOME%\lib\tools.jar -Dcatalina.home=%CATALINA_HOME% -Xrs -start org.apache.catalina.startup.Bootstrap -params start -stop org.apache.catalina.startup.Bootstrap -params stop -out %CATALINA_HOME%\logs\stderr.log - Original Message - From: Valera Molyakov [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Monday, March 18, 2002 15:10 Subject: Re: Problem with run Tomcat 4.0.3 as a service on windows 2000 Hi ! Tomcat 4.x different Tomact 3ÀÞ See windows system reestr HKLM/CurrentControlSet/Services/Apache Tomcat. - Original Message - From: Lev Zak [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Thursday, March 14, 2002 9:48 AM Subject: Problem with run Tomcat 4.0.3 as a service on windows 2000 Hello, My %JAVA_HOME% is D:\jdk1.3.1_01. I unzip jakarta-tomcat-4.0.3.zip into d:\tomcat of my Windows2000 machine. I unzip jk_nt_service.zip into D:\tomcat\jakarta-tomcat-4.0.3\bin. I copied wrapper.properties from tomcat 3.3a to D:\tomcat\jakarta-tomcat-4.0.3\conf\jk. I update the wrapper.properties with the following strings: wrapper.tomcat_home=D:\tomcat\jakarta-tomcat-4.0.3 wrapper.java_home=D:\jdk1.3.1_01 wrapper.tomcat_policy=$(wrapper.tomcat_home)\conf\catalina.policy I successfully run the following command: D:\tomcat\jakarta-tomcat-4.0.3\bin\jk_nt_service.exe -I jakarta -A D:\tomcat\jakarta-tomcat-4.0.3\conf\jk\wrapper.properties But when I run after this the following command: D:\tomcat\jakarta-tomcat-4.0.3\bin\jk_nt_service.exe -S jakarta I receive the following message: Asked (and given) winsock 1.1 Starting jakarta. jakarta failed to start. If I try to start the jakarta service from Control Panel, I receive the following message: Could not start the jakarta service on Local Computer. Error 1067: The process terminated unexpectedly. But I can successfully start catalina through D:\tomcat\jakarta-tomcat-4.0.3\bin\startup.bat , it means the problem is not a default port. What I did wrong? Sorry about a long letter. Regards. Lev. This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify us immediately and delete this communication. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Problem with run Tomcat 4.0.3 as a service on win2k
See Attached Files and copy all into $TOMCAT_HOME\bin directory - Original Message - From: Lev Zak [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Monday, March 18, 2002 18:22 Subject: Problem with run Tomcat 4.0.3 as a service on win2k Hello, I described my problem about one week ago and I'm still not received any answer. Could you please answer me what is wrong in what I did (look the following attached previous mail). I tried also the ServiceJava package from www.alexandriasc.com (advice from 'Tomcat Users List') but It is not very stable. It work fine in one win2k machine and does not work in other win2k machine without any logs. On the both machines the same configuration instead of different computer name. Please help me. Lev. -Original Message- From: Lev Zak Sent: Thursday, March 14, 2002 9:48 AM To: 'Tomcat Users List' Subject: Problem with run Tomcat 4.0.3 as a service on windows 2000 Hello, My %JAVA_HOME% is D:\jdk1.3.1_01. I unzip jakarta-tomcat-4.0.3.zip into d:\tomcat of my Windows2000 machine. I unzip jk_nt_service.zip into D:\tomcat\jakarta-tomcat-4.0.3\bin. I copied wrapper.properties from tomcat 3.3a to D:\tomcat\jakarta-tomcat-4.0.3\conf\jk. I update the wrapper.properties with the following strings: wrapper.tomcat_home=D:\tomcat\jakarta-tomcat-4.0.3 wrapper.java_home=D:\jdk1.3.1_01 wrapper.tomcat_policy=$(wrapper.tomcat_home)\conf\catalina.policy I successfully run the following command: D:\tomcat\jakarta-tomcat-4.0.3\bin\jk_nt_service.exe -I jakarta -A D:\tomcat\jakarta-tomcat-4.0.3\conf\jk\wrapper.properties But when I run after this the following command: D:\tomcat\jakarta-tomcat-4.0.3\bin\jk_nt_service.exe -S jakarta I receive the following message: Asked (and given) winsock 1.1 Starting jakarta. jakarta failed to start. If I try to start the jakarta service from Control Panel, I receive the following message: Could not start the jakarta service on Local Computer. Error 1067: The process terminated unexpectedly. But I can successfully start catalina through D:\tomcat\jakarta-tomcat-4.0.3\bin\startup.bat , it means the problem is not a default port. What I did wrong? Sorry about a long letter. Regards. Lev. This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify us immediately and delete this communication. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] attachment: tomcat.exe attachment: ntserviceu.bat attachment: ntservice.bat -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Read Windows Registry data from JSP
How to read Windows Registry Data from JSP? thanks in advance
Re: How to run tomcat as service program in Win2k
which kind your Tomcat and jdk version? - Original Message - From: "Xiao Juguang" [EMAIL PROTECTED] To: "Tomcat Users List" [EMAIL PROTECTED] Sent: Wednesday, March 13, 2002 15:25 Subject: Re: How to run tomcat as service program in Win2k I think you are careless when installing. There is an option to make Tomcat as Windows NT Service. - Original Message - From: "oh" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, March 13, 2002 3:18 PM Subject: How to run tomcat as service program in Win2k hello, I just donloaded Tomcat4.0.3, and I didn't find "jk_nt_service.exe" and the associated files, I want to run my tomcat as a service program in my Windows 2000 Pro, How can I do this? Huimin Wang -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Tomcat using VERY LARGE Memory (URGENT!!!!!!!!!)
Hello all Here is part of top output. Is it usual that java processes eat all of memory? ? At now there are 50 java processes started that running tomcat and each of them uses 59M memory. There is running apache server with tomcat 4 and mysql. OS is Redhat7.2 x86 . JDK 1.4 is installed. how to solve this problem? 106 processes: 105 sleeping, 1 running, 0 zombie, 0 stopped CPU states: 0.3% user, 3.4% system, 0.0% nice, 96.1% idle Mem: 1028860K av, 1022352K used, 6508K free, 116K shrd, 129004K buff wap: 1020116K av, 0K used, 1020116K free 762320K cached 3201 root 9 0 60692 59M 28164 S 0.0 5.8 0:03 java 3202 root 8 0 60692 59M 28164 S 0.0 5.8 0:00 java 3203 root 9 0 60692 59M 28164 S 0.0 5.8 0:35 java 3204 root 9 0 60692 59M 28164 S 0.0 5.8 0:00 java 3205 root 9 0 60692 59M 28164 S 0.0 5.8 0:01 java 3206 root 9 0 60692 59M 28164 S 0.0 5.8 0:00 java 3207 root 9 0 60692 59M 28164 S 0.0 5.8 0:00 java 3208 root 9 0 60692 59M 28164 S 0.0 5.8 0:00 java 3209 root 9 0 60692 59M 28164 S 0.0 5.8 0:03 java
Re: Tomcat using VERY LARGE Memory (URGENT!!!!!!!!!)
it is top result and every java process using 59M RAM i'm use mod_jk integrated Tomcat with Apache and Tomcat top result is : 110 processes: 109 sleeping, 1 running, 0 zombie, 0 stopped CPU states: 2.3% user, 1.9% system, 0.0% nice, 95.6% idle Mem: 1028860K av, 938924K used, 89936K free, 116K shrd, 139628K buff Swap: 1020116K av, 0K used, 1020116K free 680228K cached PID USER PRI NI SIZE RSS SHARE STAT %CPU %MEM TIME COMMAND 17862 root 15 0 1092 1092 836 R 1.7 0.1 0:00 top 17293 root 13 0 28176 59M 9576 S 1.5 2.7 0:01 java 17272 root 10 0 28176 59M 9576 S 0.1 2.7 0:02 java and see MEM usage total RAM is 1028860K 938924K used, 89936K free - Original Message - From: Filip Hanik [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Tuesday, March 12, 2002 10:14 Subject: RE: Tomcat using VERY LARGE Memory (URGENT!) what you are seeing is that ps or top lists one process for each thread in Tomcat. your tomcat is running 59M all together Filip ~ Namaste - I bow to the divine in you ~ Filip Hanik Software Architect [EMAIL PROTECTED] www.filip.net -Original Message- From: Galbayar [mailto:[EMAIL PROTECTED]] Sent: Monday, March 11, 2002 6:04 PM To: Tomcat Users List Subject: Tomcat using VERY LARGE Memory (URGENT!) Hello all Here is part of top output. Is it usual that java processes eat all of memory? ? At now there are 50 java processes started that running tomcat and each of them uses 59M memory. There is running apache server with tomcat 4 and mysql. OS is Redhat7.2 x86 . JDK 1.4 is installed. how to solve this problem? 106 processes: 105 sleeping, 1 running, 0 zombie, 0 stopped CPU states: 0.3% user, 3.4% system, 0.0% nice, 96.1% idle Mem: 1028860K av, 1022352K used, 6508K free, 116K shrd, 129004K buff wap: 1020116K av, 0K used, 1020116K free 762320K cached 3201 root 9 0 60692 59M 28164 S 0.0 5.8 0:03 java 3202 root 8 0 60692 59M 28164 S 0.0 5.8 0:00 java 3203 root 9 0 60692 59M 28164 S 0.0 5.8 0:35 java 3204 root 9 0 60692 59M 28164 S 0.0 5.8 0:00 java 3205 root 9 0 60692 59M 28164 S 0.0 5.8 0:01 java 3206 root 9 0 60692 59M 28164 S 0.0 5.8 0:00 java 3207 root 9 0 60692 59M 28164 S 0.0 5.8 0:00 java 3208 root 9 0 60692 59M 28164 S 0.0 5.8 0:00 java 3209 root 9 0 60692 59M 28164 S 0.0 5.8 0:03 java -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Tomcat Memory usage(Urgent!)
Hello all Here is part of top output. Is it usual that java processes eat all of memory? ? At now there are 50 java processes started that running tomcat and each of them uses 59M memory. There is running apache server with tomcat 4 and mysql. OS is Redhat7.2 x86 . JDK 1.4 is installed. Thx 106 processes: 105 sleeping, 1 running, 0 zombie, 0 stopped CPU states: 0.3% user, 3.4% system, 0.0% nice, 96.1% idle Mem: 1028860K av, 1022352K used, 6508K free, 116K shrd, 129004K buff Swap: 1020116K av, 0K used, 1020116K free 762320K cached 3201 root 9 0 60692 59M 28164 S 0.0 5.8 0:03 java 3202 root 8 0 60692 59M 28164 S 0.0 5.8 0:00 java 3203 root 9 0 60692 59M 28164 S 0.0 5.8 0:35 java 3204 root 9 0 60692 59M 28164 S 0.0 5.8 0:00 java 3205 root 9 0 60692 59M 28164 S 0.0 5.8 0:01 java 3206 root 9 0 60692 59M 28164 S 0.0 5.8 0:00 java 3207 root 9 0 60692 59M 28164 S 0.0 5.8 0:00 java 3208 root 9 0 60692 59M 28164 S 0.0 5.8 0:00 java 3209 root 9 0 60692 59M 28164 S 0.0 5.8 0:03 java . . .
Autentication with digest password(Urgent!)
I setup Tomcat 4.0.3 on Win2000 with JDBCRealm and a mysql-database. Using plain passwords, everything works fine. But I would like digest my password in the database. how to make this? can u give me step by step tutorial? Thank in advance
Customize Error
How to customize Apache Tomcat/4.0.3 - HTTP Status 404 - /main.jsp type Status report message /main.jsp description The requested resource (/main.jsp) is not available. HTTP 400 Bad Request The request was denied due to a syntax error in the request.
Re: Newbie needs config help for tomcat4
create your context on the Tomcat and add to httpd.conf WebAppDeploy youralais conn /yourcontext this line - Original Message - From: Bryan Zimmer [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, March 05, 2002 03:04 Subject: Newbie needs config help for tomcat4 Hello all, Here's the setup: I have been running Apache 1.3 and recently decided to switch to JSP from CGI. So I downloaded tomcat-4.0.1. I use Linux, so I found an RPM-format distribution of tomcat4. I need to learn how to deploy my own JSP's, which I haven't been able to do yet. I can run the examples that come with Tomcat4. I managed to find the webapp.so module and enough other information about configuration that, after modifying my httpd.conf file and creating a WarpConnection through port 8008, I could run the test programs in the examples folder (mine is at /var/tomcat4/webapps/examples, aliased to /examples/) . I installed all this on my test server. I can now browse to http://(my.server.name)/examples/ and run the JSP examples.I do not have to specify the port as 8008. Now I want to install and test some of my own JSP's, but I can't find documentation on how to do this. I have a book, JSP and Java, A Complete Guide to Website Development, by Art Taylor, but it focuses on Tomcat version 3. So I haven't even been able to deploy a simple JSP example. Can someone help me with this? I have plans to put Apache and Tomcat into a production environment, and I wonder if I need to revert back to Tomcat version 3. I need either some configuration advice on how to deploy my own JSP or perhaps someone can recommend a good book or on-line tutorial on the subject. I considered a newer Tomcat, but starting with 4.0.2 they seem to require the experimental Apache version 2. And I can't tell whether to use the webapp.so module or mod_jk.so. All help gratefully appreciated. Thanks, Bryan Zimmer [EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Japanese Coding
try this FileOutputStream fileOut = new FileOutputStream( "EUC-JP.txt"); BufferedOutputStream bufferedOut = new BufferedOutputStream( fileOut); PrintWriter out = new PrintWriter( new OutputStreamWriter( bufferedOut, "EUC-JP" )); for ( char k = 0x3044; k 0x3048; k++) out.print( k ); out.close(); FileInputStream fileIn = new FileInputStream("EUC-JP.txt"); BufferedInputStream bufferedIn = new BufferedInputStream( fileIn ); InputStreamReader in = new InputStreamReader( bufferedIn, "EUC-JP"); in.read(); StringBuffer sb=new StringBuffer(); while (in.ready()) { int onechar=in.read(); sb.append((char)onechar); System.out.println(1); } fileOut = new FileOutputStream( "SHIFT_JIS.txt"); bufferedOut = new BufferedOutputStream( fileOut); out = new PrintWriter( new OutputStreamWriter( bufferedOut, "Shift_JIS" )); out.println(sb.toString()); out.close(); - Original Message - From: "Moi" [EMAIL PROTECTED] To: "Tomcat Users List" [EMAIL PROTECTED] Sent: Tuesday, February 19, 2002 11:24 Subject: Japanese Coding How to convert Japanese JIS(or EUC-JP) encoded String to SHIFT-JIS? Is there any string coversion class or method in Java? -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Japanese Coding
FileOutputStream fileOut = new FileOutputStream( "EUC-JP.txt"); BufferedOutputStream bufferedOut = new BufferedOutputStream( fileOut); PrintWriter out = new PrintWriter( new OutputStreamWriter( bufferedOut, "EUC-JP" )); for ( char k = 0x3044; k 0x3048; k++) out.print( k ); out.close(); FileInputStream fileIn = new FileInputStream("EUC-JP.txt"); BufferedInputStream bufferedIn = new BufferedInputStream( fileIn ); InputStreamReader in = new InputStreamReader( bufferedIn, "EUC-JP"); StringBuffer sb=new StringBuffer(); while (in.ready()) { int onechar=in.read(); sb.append((char)onechar); } fileOut = new FileOutputStream( "SHIFT_JIS.txt"); bufferedOut = new BufferedOutputStream( fileOut); out = new PrintWriter( new OutputStreamWriter( bufferedOut, "Shift_JIS" )); out.println(sb.toString()); out.close(); - Original Message - From: "Moi" [EMAIL PROTECTED] To: "Tomcat Users List" [EMAIL PROTECTED] Sent: Tuesday, February 19, 2002 11:24 Subject: Japanese Coding How to convert Japanese JIS(or EUC-JP) encoded String to SHIFT-JIS? Is there any string coversion class or method in Java? -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Get Document.Url
JavaScript is Server Side Servlet is Server Side use getRequestURI() - Original Message - From: "Odo" [EMAIL PROTECTED] To: "Tomcat Users List" [EMAIL PROTECTED] Sent: Wednesday, February 06, 2002 18:28 Subject: Get Document.Url How can I get in my servlet Javascript's "document.URL" variable? How it be scripted in servlet? -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Default servlet
index.jsp redirect to your servlet - Original Message - From: "Odo" [EMAIL PROTECTED] To: "Tomcat Users List" [EMAIL PROTECTED] Sent: Thursday, February 07, 2002 10:06 Subject: Default servlet How force Tomcat4 to call default page from index.jsp to index.class(Servlet)? Any settings in web.xml?If so how? -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Problem displaying Shift-JIS Japanese in Tomcat 4
%@ page language="java" contentType="text/html" % html head meta http-equiv="Content-Type" content="text/html; charset=Shift-JIS" /head body /body /html - Original Message - From: "Joel Rees" [EMAIL PROTECTED] To: "Tomcat Users List" [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Tuesday, February 05, 2002 17:34 Subject: Re: Problem displaying Shift-JIS Japanese in Tomcat 4 We're using Tomcat 3.2 and 3.3 with no problems. (Java SDK 1.3/MSW2k.pfleugh) I don't recall doing anything special in the setup, but I'll check it. Are you sure it's not your browser? Some older browsers did not recognize Shift_JIS, but did sort of recognize x-sjis. Other issues -- The old 8th bit problem should not occur if you are using localhost, I think. If you are ftp-ing to a remote host, do you have ftp set to force binary so your files arrive intact? What about your text editor? Is it saving your files in something else, say, UNICODE? HTH Joel Rees - Original Message - From: "Antony Stace" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, February 05, 2002 4:57 PM Subject: Problem displaying Shift-JIS Japanese in Tomcat 4 Hi I have a very simply jsp page. It has $B$3$s$K$A$O(B in shift-jis format in it. However when I display this page I get garbage where $B$3$s$$$A$O(B is. Is there any configuration that I need to do to enable Japanese characters to be displayed. At the top of the file I have contentType="text/html; charset=Shift_JIS" -- Cheers Tony$B!#(B - _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Override Error page
How to change Tomcat Error page, same Apache ErrorDocument directive
How can I customize the apache 404
How can I customize the apache 404
How can I customize the Tomcat 404 error message
How can I customize the Tomcat 404 error message
Re: which is the current directory for Tomcat Server?
use getRealPath(); method - Original Message - From: Santosh Varghese [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Friday, February 01, 2002 08:16 Subject: RE: which is the current directory for Tomcat Server? Hi, Thanks for the fast reply. What I want is to read a text file from servlet or jsp page. I don 't want to specify the whole directory path for the file. I want to just specify the file name and should be able to read that file. So I believe if I keep in the current working directory of the Tomcat server, it will work. IS the WEB root as same as the Current working directory for the Tomcat Server. Regards, Santosh -Original Message- From: Atok Koenig [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 31, 2002 3:54 PM To: Tomcat Users List Subject: Re: which is the current directory for Tomcat Server? Do you mean the web root? If so that is install path\jakarta-tomcat-3.2.2\webapps\ROOT Youcan change this or add additional virtual roots in the \config\server.xml file using the context tags -Original Message- From: Santosh Varghese [EMAIL PROTECTED] Date: Thu, 31 Jan 2002 14:37:21 -0800 To: Tomcat Users List [EMAIL PROTECTED] Subject: which is the current directory for Tomcat Server? Hi, I wanted to read some txt file from the current directory for tomcat server. But I am unable to find out the current directory. Please help me out Regards, Santosh -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- ___ Sign-up for your own FREE Personalized E-mail at Mail.com http://www.mail.com/?sr=signup Win a ski trip! http://www.nowcode.com/register.asp?affiliate=1net2phone3a -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: which is the current directory for Tomcat Server?
in jsp page use application.getRealPath(/webapps); in Servlet use config.getServletContext().getRealPath(/webapps); - Original Message - From: Santosh Varghese [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Friday, February 01, 2002 06:37 Subject: which is the current directory for Tomcat Server? Hi, I wanted to read some txt file from the current directory for tomcat server. But I am unable to find out the current directory. Please help me out Regards, Santosh -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Binary Dist. tomcat 4.01 Win32 can't find jdk on installation
1. open register editor 2. find JavaSoft folder in SOFTWARE directory 3. find Java Development Kit folder in JavaSoft directory 4. add String key named CurrentVersion in Java Development Kit folder value is 1.4 5. add String key named CurrentVersion in Java Runtime Environment folder value is 1.4 - Original Message - From: Tom Bednarz [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Tuesday, January 29, 2002 15:38 Subject: Re: Binary Dist. tomcat 4.01 Win32 can't find jdk on installation Michael, It seems very likely that your environment variables exceed the maximum allowed bytes. I am not sure but I think it is 4 or 8 KB. Since changing the environment variables (such as path, classpath etc) requires a reboot for system variables, many software vendors do not properly uninstall software and after a while you have a lot of crap in your path variable. Clean it up manually (in Control Panel, System Icon, Advanced Tab, Environment Variables Button), reboot your box and it is most likely that your JDK is recognised by TOMCAT. Thomas At 28.01.2002 18:46, you wrote: Why would this happen? When I try to install jakarta-tomcat-4_0_1.exe on my server I receive this error message: Couldn't find a Java Development Kit installed on this computer. Please download on from http://java.sun.com; This is strange, because there is a jdk installed (how else could JRun be running on the server)? The same happened on my development machine. First I thought, that might be because I have JDK 1.4.0 on my dev machine. But obviously the reason is something else. Can anybody help me? What is the installation procedure's criteria for a jdk? Michael Kastner -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: mm.mysql driver
copy jar files into $JAVA_HOME/jre/lib/ext directory or put jar files into $CLASSPATH variable - Original Message - From: Stephen Clarke [EMAIL PROTECTED] To: tomcat [EMAIL PROTECTED] Sent: Tuesday, January 29, 2002 08:41 Subject: mm.mysql driver Can anyone help me set up the MySQL drivers for Java. I have it working in stand alone programs. But in Tomcat I get error message org.gjt.mm.mysql.Driver which is supposed to be the name of the driver. Grateful for any assistance. Thanks. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
servlet problem
Hi my servlet running on Tomcat 3x but not running on Tomcat 4 error is page cannot be displayed. I'm copyed servlet in to myapp\WEB-INF\classes directory? how to run servlet on Tomcat 4.0? Galbayar Dorjgotov Software Engineer Mobinet ISP http://www.mobinet.mn [EMAIL PROTECTED]
Re: Urgent Disable Directory browse
i'm changed web.xml but tomcat error how to disable this error? Apache Tomcat/4.0.1 - HTTP Status 404 - / type Status report message / description The requested resource (/) is not available. - Original Message - From: Reynir Hübner [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Saturday, January 19, 2002 21:04 Subject: RE: Urgent Disable Directory browse well just change the global web.xml (in your tomcat/conf/ directory). change the mapping for default servlet so listings are false: servlet servlet-namedefault/servlet-name servlet-classorg.apache.catalina.servlets.DefaultServlet/servlet-clas s init-param param-namedebug/param-name param-value0/param-value /init-param init-param param-namelistings/param-name param-valuefalse/param-value /init-param load-on-startup1/load-on-startup /servlet hope it helps [EMAIL PROTECTED] -Original Message- From: Galbayar [mailto:[EMAIL PROTECTED]] Sent: 19. janúar 2002 04:47 To: Tomcat Users List Subject: Urgent Disable Directory browse Hello All ! How to disable directory browse on Tomcat? if i rename webapps/ROOT/index.jsp to webapps/ROOT/index2.jsp Tomcat browse ROOT directory. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
use JSP open new window
how to use sendRedirect method to open new browser window?
Urgent Disable Directory browse
Hello All ! How to disable directory browse on Tomcat? if i rename webapps/ROOT/index.jsp to webapps/ROOT/index2.jsp Tomcat browse ROOT directory.
Re: JAVA_HOME AND TOMCAT_HOME SETUP PROBLEM
set JAVA_HOME=c:\jdk1.3 set TOMCAT_HOME=c:\tomcat - Original Message - From: babs boyejo [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, January 16, 2002 08:58 Subject: JAVA_HOME AND TOMCAT_HOME SETUP PROBLEM Dear All, 1)how do you set the java_home to the jdk installation ? 2)and will this be in the autoexec.bat or where? 3)where and how do you set the tomcat_home? Regards Vic __ Do You Yahoo!? Send FREE video emails in Yahoo! Mail! http://promo.yahoo.com/videomail/ -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: jakarta-tomcat as service in NT sbs4.5
Test - Original Message - From: Gary Shane Lim [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, January 17, 2002 10:48 Subject: jakarta-tomcat as service in NT sbs4.5 I had a jakarta service running in my services on my NT sbs4.5 I then removed it with a program that I got called tomcatservice.exe This is also the program that I used to create the service the first time only I access it using a bat file. Now when I first restart the program the service is running. Then once all of my web server which is IIS starts the jakarta service is no longer running. When I try to start it I get 'error 2140 an internal windows NT Error occurred'. When I manually start tomcat using the startup.bat provided and leave it up I can run a diagnostics type web page that was created to test the servlet connection and the error I get is that classpath may not be set up correctly to direct the servlet engine to the JAR's, the JAR's may be in the incorrect location (this is not the case), the JAR's may not have read access (this is also not the case) and that the web server was never restarted after classpath was set ( I have restarted the entire server several times) Could someone please give me some ideas as to where to look for the problem. Thanks Gary Shane Lim -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
JDK on Free BSD
Can i install JDK on Free BSD?
Re: JDK on Free BSD
Yes - Original Message - From: Lai Kok Cheong [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Tuesday, January 15, 2002 16:41 Subject: RE: JDK on Free BSD Yes and there is two way ? Are you a new freeBSD user ? -Original Message- From: Galbayar [SMTP:[EMAIL PROTECTED]] Sent: Tuesday, January 15, 2002 8:38 AM To: Tomcat Users List Subject: JDK on Free BSD Can i install JDK on Free BSD? -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
can't access to MySQLfrom java on Linux RedHat 7
Hello all? I'm installed JDK,MySQL,Tomcat on Linux RedHat 7 and all services running ok. If i connect to the MySQL from java(use MySQL MM driver) have Server configuration denied access error. How to solve this problem?
URGENT!!!How to configure JSP on O'Reily Web site Pro Web Server
How to configure JSP on O'Reily Web site Pro Web Server
Re: Please Suggest Me
check TOMCAT_HOME/doc/index.html - Original Message - From: Designing Department [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Friday, January 11, 2002 16:13 Subject: Please Suggest Me Hello All, Please check http://jakarta.apache.org/tomcat/tomcat-3.2-doc/tomcat-apache and http://jakarta.apache.org/tomcat/tomcat-3.2-doc/mod_jk-howto.html#s9 Please suggest me which one is right for Virtual Hosting, I am confused a bit Thanks in Advance Regards Vikas -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Start page
add this to the CATALINA_HOMEwebapps\yourwebapp\WEB-INF\web.xml welcome-file-list welcome-fileyourpage.jsp /welcome-file/welcome-file-list - Original Message - From: Salvatore Balzano [EMAIL PROTECTED] To: Tomcat [EMAIL PROTECTED] Sent: Tuesday, December 25, 2001 22:10 Subject: Start page I,m sorry, I've posted my message in HTML. I repost it in plain text. Hi, how can I set the start page for an application (this is, by default, index.jsp, and I want to make it mystartpage.jsp) Thanks. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Intercepting AuthenticationFilter and dispatching need help !
try use request.getRemoteUser() // or String auth = request.getHeader(Authorization); String userInfo =auth.substring(6).trim(); BASE64Decoder decoder = new BASE64Decoder(); String NameAndPassword =new String(decoder.decodeBuffer(userInfo)); StringTokenizer stk=new StringTokenizer(NameAndPassword,:); String Name=stk.nextToken(); String Password=stk.nextToken(); - Original Message - From: Softwareentwicklung Hauschel [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Tuesday, December 25, 2001 17:48 Subject: Intercepting AuthenticationFilter and dispatching need help ! Hey all, i want to check if the user is authenticated. I've read that the Filters are the right place to do that. If the User is not authenticated, so i want to dispatch him to a login page. Does anybody knows how to do that ? I've tryed it in the Filter in this way: ((HTTPServletRequest)servletRequest).getRequestDispatcher( pub/ueberweisung .jsp ).forward( servletRequest, servletResponse ); But there is always an Error compiling the jsp ?! if I call this jsp (plain html) without a filter it works without any problems ? Pleas help Fredy -Ursprüngliche Nachricht- Von: Alex Chaffee [mailto:[EMAIL PROTECTED]] Gesendet: Samstag, 22. Dezember 2001 02:24 An: [EMAIL PROTECTED] Betreff: [FAQ] jGuru FAQ Update jGuru maintains FAQs and Forums on Servlets, JSP, and Tomcat (as well as many other Java topics). Here is an automated update on recent postings to Tomcat-related FAQs. Please direct flames and feedback to [EMAIL PROTECTED] . - Alex ++ JavaServer Pages (JSP) FAQ: http://www.jguru.com/faq/JSP Can I make a jsp custom tag to return a value in to a jsp variable.p I want a jsp custom tag to evaluate some condition based on the parameters I pass and return a boolean to the jsp page in a java variable (type boolean).p Can anybody give some sample of the code using similar functionality. brCan we some how use the get methods in the tagHandler in our jsp to retrieve the values? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=593533 Is it possible to invoke customtags onEvents like onClick? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=592466 Here is what I have: P 1. My application is under /opt/tomcat/webapps/myApp br 2. My jsp file is : /opt/tomcat/webapps/myApp/web/test.jsp br It contains; br . . . br lt;% br String configFile=getInitParameter(configFile); br System.out.println(configFIle=+configFile); br %gt; P 3. My web.xml is: /opt/tomcat/webapps/myApp/WEB-INF/web.xml br It contains: lt;web-appgt; br lt;servletgt; br lt;servlet-namegt;testlt;/servlet-namegt; br lt;jsp-filegt;/web/test.jsplt;/jsp-filegt; br lt;init-parametergt; br lt;param-namegt;configFilelt;/param-namegt; br lt;param-valuegt;TOTOlt;/param-valuegt; br lt;/init-parametergt; br lt;/servletgt; br lt;servlet-mappinggt; br lt;servlet-namegt;testlt;/servlet-namegt; br lt;url-patterngt;/web/test.jsplt;/url-patterngt; br lt;/servlet-mappinggt; br lt;/web-appgt; P What am I doing wrong? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=592461 I'm working on the JSP - Tomcat model, I'm using JSPC to pre-compile my JSPs, Is there a way to prevent any new (non pre-compiled) JSPs from being executed (compiled) in tomcat? ie. I do not want any new JSPs , which have not being pre-compiled to be executed via tomcat on the browser, Is there any property/configuration file which I need to change in Tomcat?? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=592460 Why use JSP? All that we can do with scriptlets we can do with JavaScript as well, I think. Can somebody explain? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=590882 We are building a series of JSP pages, each of which is responsible for producing a different area of the screen. Any given screen that the end user sees, therefore, is made up of a number of blocks, each of which has been generated by a single JSP. The top level JSP calls in the blocks using a jsp:include. We are trying to use the JSP errorPage directive on every JSP to display an error to the user if something goes wrong with any of the blocks, but are finding that we end up with the error page only taking up part of the screen (for the block which had an error), whereas we would like the whole screen to be filled up by the errorPage. In other words - if something goes wrong with any of the blocks that comprise a screen - we would like to display nothing but the error page. What is the best way to do this ? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=590880 ++ Servlets FAQ: http://www.jguru.com/faq/Servlets HttpUtils.parseQueryString is deprecated. What should we use instead ? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=587251 In some web.xml
JavaScript problem(Urgent)
Can i use javaScript clear Document content? -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]