Re: Weird Results with PoolMan
the source to the example can be found here http://poolman.sourceforge.net/PoolMan/PoolManSample.java - Original Message - From: "Ralph Einfeldt" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, March 07, 2001 11:01 PM Subject: AW: Weird Results with PoolMan It looks like for columns with type 'text' there is a byte array returned. Tell a bit more about which methods you used to get the result. (I never user used PoolMan so your reference to the example doesn't help me) -Ursprngliche Nachricht- Von: Ryan [mailto:[EMAIL PROTECTED]] Gesendet: Donnerstag, 8. Mrz 2001 03:54 An: [EMAIL PROTECTED] Betreff: Weird Results with PoolMan There are three elements in my table, a user and password, each of which are of datatype char. and then the user's home directory which is of datatype text: Here are the results I get user: ryan pass: ryan123 home: [B@a992f user: adam pass: adam123 home: [B@4f1d0d user: chris pass: chris123 home: [B@7c4bec user: mike pass: mike123 home: [B@5c8569 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Connection Pooling
try looking at www.codestudio.com this has a link to a generic Object pooling API that you can use for all sorts of objects (typically JDBC Connections and sockets etc). Its open source and therefore free to play around with so its worth looking at. regards rob -Original Message- From: Carlos Lpez M. [mailto:[EMAIL PROTECTED]] Sent: 06 March 2001 20:53 To: [EMAIL PROTECTED] Subject: RE: Connection Pooling Thanks a lot I would go there and se what I could find -Mensaje original- De: Ryan [mailto:[EMAIL PROTECTED]] Enviado el: Martes, 06 de Marzo de 2001 02:55 p.m. Para: [EMAIL PROTECTED] Asunto: Re: Connection Pooling go here: http://www.webdevelopersjournal.com/columns/connection_pool.html and also look up threads and singleton patterns at www.javasoft.com -ryan - Original Message - From: "Carlos Lpez M." [EMAIL PROTECTED] To: "Tomcat-User" [EMAIL PROTECTED] Sent: Tuesday, March 06, 2001 12:35 PM Subject: Connection Pooling Hi I want to implement conection pooling with jsp. I have alreary read something about it. I khow i could make a servlet a load it on startup but to be honest i dont have a clue about where to find info on this. Could anybody point me in a right direction, and where can i find examples. I have Apache, Tomcat, and Sybase Runing already. Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
I still can't get the IIS service
Sorry for asking the question-- When I read the document (Tomcat IIS How To),I try again and again, but it doesn't work. I have made the ISAPI work, but I really don't know what the meaning of "worker" in the worker.properties file,and what's apj2,the default user? And I don't realize how to start mylinking ,what shall I type in the Link TextField "Http://examples/servlets/"?or other else Feeled So confused. My enviromment is Windows 2000 advanced server My Tomcat is installed at C:\ Somebody help, it will be killing me. Michael
Re: Tomcat/Apache port number use
Hi Chris, We run on a Solaris 2.7 server, with Apache DSO 1.3.14. The workers.properties file has been updated so that workers.tomcat_home, workers.java_home point to the correct location on the server. Changed ps to the correct syntax on Unix, ps=/. Used apxs to install mod_jk from source Included the following line in httpd.conf file: Include /opt2/kindserv/tomcat/conf/mod_jk.conf-auto http://www.kindserver.com:8080/examples/jsp/dates/date.jsp is working as expected http://www.kindserver.com/examples/jsp/dates/date.jsp results in a server error with the following in the mod_jk.log [jk_connect.c (143)]: jk_open_socket, connect() failed errno = 146 [jk_ajp12_worker.c (152)]: In jk_endpoint_t::service, Error sd = -1 rgds Hans At 15:47 7-3-01 +0100, you wrote: Hans Kind wrote: Hi, We got Apache running on port 80, and Tomcat on port 8080. Running http://www.kindserver.com:8080 takes me to the Tomcat example page, and the JSP and JServ pages work ok. When I go to http://www.kindserver.com/examples/servlets/ http://www.kindserver.com/examples/jsp/ all the examples return a document contains no data error. How do I setup Apache so that without the need of the port number in the url, the JServ and JSP pages are handled bij Tomcat corecty. I went trough the install instructions, mailing lists and other documentation, but couldn't find a slid answe:~( rgds Hans Kind - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] Hans, You need to get and install the appropriate apache module; porbably mod_jk . There are Mod_jk faqs available on the jakarta site. Cant really tell you more without details about you apache, tomcat versions and your system. Chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
CONNECTING TO MS ACCESS DB?
Hi all, Does anyone know where i could find code (or documentation) that would enable my JSP pages to connect to a MS ACCESS Database? I have all the JSP pages (with beans) submitting and requesting information via response pages, now i just need to set the project up with a database. Any Help at al would be greatly appreciated. Thanks in advance, Mick _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
R: CONNECTING TO MS ACCESS DB?
I think that you wold configure an ODBC instance that point to your MSAccess DB; this new instance must be passed as the url parameter at DriverManager.GetConnection. Bye. - Original Message - From: Mick Sullivan [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, March 08, 2001 11:27 AM Subject: CONNECTING TO MS ACCESS DB? Hi all, Does anyone know where i could find code (or documentation) that would enable my JSP pages to connect to a MS ACCESS Database? I have all the JSP pages (with beans) submitting and requesting information via response pages, now i just need to set the project up with a database. Any Help at al would be greatly appreciated. Thanks in advance, Mick _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
AW: CONNECTING TO MS ACCESS DB?
Maybe you need a JDBC-ODBC-Bridge. Go to http://www.easysoft.com , you can also obtain a trial-version. I did this one time to connect Apache/Tomcat to a MS-Access-database and it worked fine. Regards Elke -Ursprngliche Nachricht- Von: Mick Sullivan [mailto:[EMAIL PROTECTED]] Gesendet am: Donnerstag, 8. Mrz 2001 11:28 An: [EMAIL PROTECTED] Betreff: CONNECTING TO MS ACCESS DB? Hi all, Does anyone know where i could find code (or documentation) that would enable my JSP pages to connect to a MS ACCESS Database? I have all the JSP pages (with beans) submitting and requesting information via response pages, now i just need to set the project up with a database. Any Help at al would be greatly appreciated. Thanks in advance, Mick __ ___ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: gzip
I tried mod_gzip but haven't had any success with it. I'd certainly be interested to hear about any success anyone's had. "Parayali, Jayesh 1065" wrote: Anybody had any luck with gzip in JSP? Thanks, Jayesh -- Andy Armstrong, Tagish - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: CONNECTING TO MS ACCESS DB?
i am usin a driver jdbc, the name is jturbo. there is a demo version the limit is 5 conecciones. there is other free, without limit, driver the name is rmijdbc driver - Original Message - From: "Hiendl Elke" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, March 08, 2001 11:34 AM Subject: AW: CONNECTING TO MS ACCESS DB? Maybe you need a JDBC-ODBC-Bridge. Go to http://www.easysoft.com , you can also obtain a trial-version. I did this one time to connect Apache/Tomcat to a MS-Access-database and it worked fine. Regards Elke -Ursprngliche Nachricht- Von: Mick Sullivan [mailto:[EMAIL PROTECTED]] Gesendet am: Donnerstag, 8. Mrz 2001 11:28 An: [EMAIL PROTECTED] Betreff: CONNECTING TO MS ACCESS DB? Hi all, Does anyone know where i could find code (or documentation) that would enable my JSP pages to connect to a MS ACCESS Database? I have all the JSP pages (with beans) submitting and requesting information via response pages, now i just need to set the project up with a database. Any Help at al would be greatly appreciated. Thanks in advance, Mick __ ___ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
servlet reload problem
I've been using Tomcat 3.1 for some time, and suddenly it stopped reloading my servlets :( All I can think as a reason is that I've installed and started using WebMacro. -- Best regards, Dmitry mailto:[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
using beans
Hi, So... i've installed Borland JBuilder 3.5 and I created a JavaBean. Looking at the project directory, it created a .class file. How do I use this file, and where do I place it? I've got in-line JSP (servlet?) working with Tomcat, but I've never used a bean or what-so-ever, so I don't exactly know where to place the files and how to implement it. Thnx, Bop. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: CONNECTING TO MS ACCESS DB?
hava a look at the usual web sites at www.javasoft.com typically , if you want to connected to Access you have to set up a DSN with the ODBC bridge, on win2k you can find this: control panels-administrative tools-datasources (ODBC) from here you can set up a new reference to your database , go to SystemDsn tab and click on 'add'. The wizard should start up and the rest should be easy. simple code to connect to your database is usually something like: Class.forName("sun.jdbc.odbc.JdbcOdbcDriver").newInstance(); connection_ = DriverManager.getConnection("Jdbc:Odbc:"+databasename,user,password); where 'databasename' is the name of the database you specify in the DSN 'user' is the admin user name specified again in the dsn (this is typically "sa") and 'password' is the passoword for the 'user' (also specified in the dsn bridge) -Original Message- From: Mick Sullivan [mailto:[EMAIL PROTECTED]] Sent: 08 March 2001 10:28 To: [EMAIL PROTECTED] Subject: CONNECTING TO MS ACCESS DB? Hi all, Does anyone know where i could find code (or documentation) that would enable my JSP pages to connect to a MS ACCESS Database? I have all the JSP pages (with beans) submitting and requesting information via response pages, now i just need to set the project up with a database. Any Help at al would be greatly appreciated. Thanks in advance, Mick _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: CONNECTING TO MS ACCESS DB?
hi hi! this is quite easy create a odbc connection for the access file. you can find the odbc sources in the control panel. give the connection a name, i.e. "mydb" then use the following code: Connection conn; try { Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");} catch (ClassNotFoundException e) { // can only happen when your java installation is not complete. i think...} try { conn = DriverManager.getConnection("jdbc:odbc:mydb", "myusername", "mypassword"); // if your odbc connection has another nameuse: "jdbc:odbc:your_odbc_name_here"} catch (Exception e) { // happens only it the odbc connection is not correct or the db is missing or the user and pw are wrong} now you can use conn to create Statements... bye, adrian. - Original Message - From: Mick Sullivan To: [EMAIL PROTECTED] Sent: Thursday, March 08, 2001 11:27 AM Subject: CONNECTING TO MS ACCESS DB? Hi all,Does anyone know where i could find code (or documentation) that would enable my JSP pages to connect to a MS ACCESS Database?I have all the JSP pages (with beans) submitting and requesting information via response pages, now i just need to set the project up with a database.Any Help at al would be greatly appreciated.Thanks in advance, Mick_Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.-To unsubscribe, e-mail: [EMAIL PROTECTED]For additional commands, email: [EMAIL PROTECTED]
Session tracking bug?
Hi, I have encountered a problem in Tomcat with session tracking but I am not sure if it is a bug or not. I have searched the mailing archives and cannot find any reference to it. The problem is this: I have two servlets and two JSP pages which are accessed in this order: JSP1 Servlet1 Servlet2 JSP2 I create a session in Servlet1 and add a JavaBean to the session in Servlet2 and attempt to display its contents in JSP2. When I do this in a browser with cookies turned off it works fine - the contents of the bean are displayed. However, when I do it with cookies turned on, the bean is not in the session in JSP2 and is not displayed. This would appear to suggest that it is not a problem with my code. My setup is: Netscape 4.75 Solaris 2.8 Tomcat 3.2.1 Sun Ultra-5 Is this a known bug and if so is there a workaround? I need to use cookies to solve another problem. Thanks, Kevin. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Please Help On Static Reference ........
The idea is ever use a static method to deal with static variables. sincerely, Zenon Farias Braga F. From: "Mick Sullivan" [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: RE: Please Help On Static Reference Date: Wed, 07 Mar 2001 15:53:50 - Hi Jin Thanks for replying How do I actually do that? Im kinda new to JSP so bear with me here. I have done the following to the bean (made it static) package parkingPrice; public class parkingPricehandler{ private static String thePrice; public parkingPricehandler() { //thePrice = null; } public void setPrice( String price ) { thePrice = price; } static public String getPrice() { return thePrice; } } but i still get the same error? Any ideads, thanks , Mick Original Message Follows From: Byung Jin Chun [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: "'[EMAIL PROTECTED]'" [EMAIL PROTECTED] Subject: RE: Please Help On Static Reference Date: Wed, 7 Mar 2001 10:29:02 -0500 You have to either make the method a static one, or instantiate an instance of your class to call the method. Jin -Original Message- From: Mick Sullivan [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 07, 2001 10:20 AM To: [EMAIL PROTECTED] Subject: RE: Please Help On Static Reference It is a class, a very basic one at that Here it is: package parkingPrice; public class parkingPricehandler{ private String thePrice; public parkingPricehandler() { //thePrice = null; } public void setPrice( String price ) { thePrice = price; } public String getPrice() { return thePrice; } } Any ideas? Original Message Follows From: "Samson, Lyndon [IT]" [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: "'[EMAIL PROTECTED]'" [EMAIL PROTECTED] Subject: RE: Please Help On Static Reference Date: Wed, 7 Mar 2001 14:57:58 - Is parkingPriceHandler an instantiated object or a class? -Original Message- From: Mick Sullivan [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 07, 2001 2:48 PM To: [EMAIL PROTECTED] Subject: Please Help On Static Reference Hi all, I was wondering could someoone please help me with this error im getting. Im trying to output a value saved from a previous page in a text box in a new page using the JSP command: INPUT TYPE="TEXT" NAME="price" SIZE="0" VALUE="%=parkingPriceHandler.getPrice()%" The function getPrice() is defined in parkingPriceHandler. This is the error i get: "Can't make static reference to method java.lang.String getPrice() in class parkingPrice.parkingPricehandler." Error: 500 Location: /project/jsp/view_parking_cost.jsp Internal Servlet Error: org.apache.jasper.JasperException: Unable to compile class for JSPC:\tomcat\work\localhost_8080%2Fproject\_0002fjsp_0002fview _0005fparking_ 0005fcost_0002ejspview_0005fparking_0005fcost_jsp_30.java:94: Can't make static reference to method java.lang.String getPrice() in class parkingPrice.parkingPricehandler. out.print(parkingPricehandler.getPrice() ); ^ 1 error at org.apache.jasper.compiler.Compiler.compile(Compiler.java, Compiled Code) at org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java, Compiled Code) at org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java, Compiled Code) at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java, Compiled Code) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfN ecessary(JspSe rvlet.java, Compiled Code) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service (JspServlet.ja va, Compiled Code) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java, Compiled Code) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java, Compiled Code) at javax.servlet.http.HttpServlet.service(HttpServlet.java, Compiled Code) at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java, Compiled Code) at org.apache.tomcat.core.Handler.service(Handler.java, Compiled Code) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java, Compiled Code) at org.apache.tomcat.core.ContextManager.internalService(ContextM anager.java, Compiled Code) at org.apache.tomcat.core.ContextManager.service(ContextManager.java, Compiled Code) at org.apache.tomcat.service.http.HttpConnectionHandler.processCo nnection(HttpC onnectionHandler.java, Compiled Code) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java, Compiled Code) at
Re: servlet reload problem
Hello Dmitry, Thursday, March 08, 2001, 7:58:19 PM, you wrote: DM I've been using Tomcat 3.1 for some time, and suddenly it stopped DM reloading my servlets :( All I can think as a reason is that I've DM installed and started using WebMacro. An addition to what I've said: I've just installed Resin and servlet reload doesn't work there too! -- Best regards, Dmitrymailto:[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Tomcat/Apache port number use
Hans Kind wrote: Hi Chris, We run on a Solaris 2.7 server, with Apache DSO 1.3.14. The workers.properties file has been updated so that workers.tomcat_home, workers.java_home point to the correct location on the server. Changed ps to the correct syntax on Unix, ps=/. Used apxs to install mod_jk from source Included the following line in httpd.conf file: Include /opt2/kindserv/tomcat/conf/mod_jk.conf-auto http://www.kindserver.com:8080/examples/jsp/dates/date.jsp is working as expected http://www.kindserver.com/examples/jsp/dates/date.jsp results in a server error with the following in the mod_jk.log [jk_connect.c (143)]: jk_open_socket, connect() failed errno = 146 [jk_ajp12_worker.c (152)]: In jk_endpoint_t::service, Error sd = -1 rgds Hans At 15:47 7-3-01 +0100, you wrote: Hans Kind wrote: Hi, We got Apache running on port 80, and Tomcat on port 8080. Running http://www.kindserver.com:8080 takes me to the Tomcat example page, and the JSP and JServ pages work ok. When I go to http://www.kindserver.com/examples/servlets/ http://www.kindserver.com/examples/jsp/ all the examples return a document contains no data error. How do I setup Apache so that without the need of the port number in the url, the JServ and JSP pages are handled bij Tomcat corecty. I went trough the install instructions, mailing lists and other documentation, but couldn't find a slid answe:~( rgds Hans Kind - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] Hans, You need to get and install the appropriate apache module; porbably mod_jk . There are Mod_jk faqs available on the jakarta site. Cant really tell you more without details about you apache, tomcat versions and your system. Chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] Hans, You are getting a connection refused error, http://www.linuxos.net/docs/solaris/common_err.html#korea146 Since I can get the source files of the jsp dislayed on your site, it seems like the basic apache config is good; Do you have some lines like the folloing in "workers.properties" worker.ajp12.port=8007 worker.ajp12.host=localhost worker.ajp12.type=ajp12 and like the following in mod_jk.conf JkMount /*.jsp ajp12 JkMount /servlet/* ajp12 ... JkMount /examples/servlet/* ajp12 JkMount /examples/*.jsp ajp12 Is there some other service running on the port 8007, or another reason why you cant connect there? Chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: CONNECTING TO MS ACCESS DB?
I would strongly recommend that no one use the JDBC-ODBC bridge other than for development/light testing purposes. IT IS NOT THREAD SAFE. This causes large number of developers (both Tomcat and otherwise) large amount of headaches. If you use the JDBC-ODBC bridge and you attempt to use a second connection while the first connection is still open, your program will crash (generating either a GPF or a Dr. Watson error, depending on version of Windows). This is a logged bug in the Bug Parade. Sun's response has been that the JDBC-ODBC bridge was an experimental piece of software that is not supported and the bug will not be fixed. I would suggest either using a different database (if it has to be free you might try PostgreSQL from postgresql.org) Randy -Original Message- From: Maverick [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 08, 2001 6:39 AM To: [EMAIL PROTECTED] Subject: Re: CONNECTING TO MS ACCESS DB? hi hi! this is quite easy create a odbc connection for the access file. you can find the odbc sources in the control panel. give the connection a name, i.e. "mydb" then use the following code: Connection conn; try { Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); } catch (ClassNotFoundException e) { // can only happen when your java installation is not complete. i think... } try { conn = DriverManager.getConnection("jdbc:odbc:mydb", "myusername", "mypassword"); // if your odbc connection has another name use: "jdbc:odbc:your_odbc_name_here" } catch (Exception e) { // happens only it the odbc connection is not correct or the db is missing or the user and pw are wrong } now you can use conn to create Statements... bye, adrian. - Original Message - From: Mick Sullivan To: [EMAIL PROTECTED] Sent: Thursday, March 08, 2001 11:27 AM Subject: CONNECTING TO MS ACCESS DB? Hi all, Does anyone know where i could find code (or documentation) that would enable my JSP pages to connect to a MS ACCESS Database? I have all the JSP pages (with beans) submitting and requesting information via response pages, now i just need to set the project up with a database. Any Help at al would be greatly appreciated. Thanks in advance, Mick _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: getSession(true) AND SecureRandom
The best thing I can think of right now is create a servlet that you specify as a load-on-startup servlet. That servlet's init method then makes an http request to localhost for the correct webapp so that a session is generated. Randy -Original Message- From: Alfredo Solano Martinez [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 07, 2001 9:39 PM To: [EMAIL PROTECTED] Subject: Re: getSession(true) AND SecureRandom Then, is it possible to initialize SecureRandom at startup time? You know, the only thing I'm asking for is not to have the first client waiting 20 seconds to have his/her page loaded :-) Alfredo - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Tomcat/Apache port number use
Hi Chris, workers.properties worker.ajp12.port=8007 worker.ajp12.host=localhost worker.ajp12.type=ajp12 mod_jk_conf-auto JkMount /*.jsp ajp12 JkMount /servlet/* ajp12 ... JkMount /examples/servlet/* ajp12 JkMount /examples/*.jsp ajp12 Staring Tomcate generates these file, and httpd.conf include the mod_jk_conf-auto file. There is nothing else running on port 8007. I'm very very lost:~( rgds Hans At 13:35 8-3-01 +0100, you wrote: Hans Kind wrote: Hi Chris, We run on a Solaris 2.7 server, with Apache DSO 1.3.14. The workers.properties file has been updated so that workers.tomcat_home, workers.java_home point to the correct location on the server. Changed ps to the correct syntax on Unix, ps=/. Used apxs to install mod_jk from source Included the following line in httpd.conf file: Include /opt2/kindserv/tomcat/conf/mod_jk.conf-auto http://www.kindserver.com:8080/examples/jsp/dates/date.jsp is working as expected http://www.kindserver.com/examples/jsp/dates/date.jsp results in a server error with the following in the mod_jk.log [jk_connect.c (143)]: jk_open_socket, connect() failed errno = 146 [jk_ajp12_worker.c (152)]: In jk_endpoint_t::service, Error sd = -1 rgds Hans At 15:47 7-3-01 +0100, you wrote: Hans Kind wrote: Hi, We got Apache running on port 80, and Tomcat on port 8080. Running http://www.kindserver.com:8080 takes me to the Tomcat example page, and the JSP and JServ pages work ok. When I go to http://www.kindserver.com/examples/servlets/ http://www.kindserver.com/examples/jsp/ all the examples return a document contains no data error. How do I setup Apache so that without the need of the port number in the url, the JServ and JSP pages are handled bij Tomcat corecty. I went trough the install instructions, mailing lists and other documentation, but couldn't find a slid answe:~( rgds Hans Kind - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] Hans, You need to get and install the appropriate apache module; porbably mod_jk . There are Mod_jk faqs available on the jakarta site. Cant really tell you more without details about you apache, tomcat versions and your system. Chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] Hans, You are getting a connection refused error, http://www.linuxos.net/docs/solaris/common_err.html#korea146 Since I can get the source files of the jsp dislayed on your site, it seems like the basic apache config is good; Do you have some lines like the folloing in "workers.properties" worker.ajp12.port=8007 worker.ajp12.host=localhost worker.ajp12.type=ajp12 and like the following in mod_jk.conf JkMount /*.jsp ajp12 JkMount /servlet/* ajp12 ... JkMount /examples/servlet/* ajp12 JkMount /examples/*.jsp ajp12 Is there some other service running on the port 8007, or another reason why you cant connect there? Chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Tomcat/Apache port number use
Hans, I'm running out of ideas too. One last: does your server.xml file contain the lines !-- Apache AJP12 support. This is also used to shut down tomcat. -- Connector className="org.apache.tomcat.service.PoolTcpConnector" Parameter name="handler" value="org.apache.tomcat.service.connector.Ajp12ConnectionHandler"/ Parameter name="port" value="8007"/ /Connector Chris Hans Kind wrote: Hi Chris, workers.properties worker.ajp12.port=8007 worker.ajp12.host=localhost worker.ajp12.type=ajp12 mod_jk_conf-auto JkMount /*.jsp ajp12 JkMount /servlet/* ajp12 ... JkMount /examples/servlet/* ajp12 JkMount /examples/*.jsp ajp12 Staring Tomcate generates these file, and httpd.conf include the mod_jk_conf-auto file. There is nothing else running on port 8007. I'm very very lost:~( rgds Hans At 13:35 8-3-01 +0100, you wrote: Hans Kind wrote: Hi Chris, We run on a Solaris 2.7 server, with Apache DSO 1.3.14. The workers.properties file has been updated so that workers.tomcat_home, workers.java_home point to the correct location on the server. Changed ps to the correct syntax on Unix, ps=/. Used apxs to install mod_jk from source Included the following line in httpd.conf file: Include /opt2/kindserv/tomcat/conf/mod_jk.conf-auto http://www.kindserver.com:8080/examples/jsp/dates/date.jsp is working as expected http://www.kindserver.com/examples/jsp/dates/date.jsp results in a server error with the following in the mod_jk.log [jk_connect.c (143)]: jk_open_socket, connect() failed errno = 146 [jk_ajp12_worker.c (152)]: In jk_endpoint_t::service, Error sd = -1 rgds Hans At 15:47 7-3-01 +0100, you wrote: Hans Kind wrote: Hi, We got Apache running on port 80, and Tomcat on port 8080. Running http://www.kindserver.com:8080 takes me to the Tomcat example page, and the JSP and JServ pages work ok. When I go to http://www.kindserver.com/examples/servlets/ http://www.kindserver.com/examples/jsp/ all the examples return a document contains no data error. How do I setup Apache so that without the need of the port number in the url, the JServ and JSP pages are handled bij Tomcat corecty. I went trough the install instructions, mailing lists and other documentation, but couldn't find a slid answe:~( rgds Hans Kind - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] Hans, You need to get and install the appropriate apache module; porbably mod_jk . There are Mod_jk faqs available on the jakarta site. Cant really tell you more without details about you apache, tomcat versions and your system. Chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] Hans, You are getting a connection refused error, http://www.linuxos.net/docs/solaris/common_err.html#korea146 Since I can get the source files of the jsp dislayed on your site, it seems like the basic apache config is good; Do you have some lines like the folloing in "workers.properties" worker.ajp12.port=8007 worker.ajp12.host=localhost worker.ajp12.type=ajp12 and like the following in mod_jk.conf JkMount /*.jsp ajp12 JkMount /servlet/* ajp12 ... JkMount /examples/servlet/* ajp12 JkMount /examples/*.jsp ajp12 Is there some other service running on the port 8007, or another reason why you cant connect there? Chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: gzip
Title: gzip I tried it, and it was working . But I noticed an apache slow down Dom - Original Message - From: Parayali, Jayesh 1065 To: '[EMAIL PROTECTED]' Sent: Thursday, March 08, 2001 3:59 AM Subject: gzip Anybody had any luck with gzip in JSP? Thanks, Jayesh
Apache Integration
Hi, new user here. I have successfully installed Tomcat on my Linux Madrake (7.2) distribution. I can successfully run all the servlets and JSP pages from the /examples app that ships with Tomcat if I connect to it directly (i.e., www.mycomputer.com:8080/examples) My problem is when I try to access it via Apache. I have included the mod_jk.conf-auto, put the mod_jk.so into the appropriate directory as described in the how-tos. I can access the static pages by going to www.mycomputer.com/examples/ (note that this requires me to put the '/' at the end of the URL as opposed to accessing directly, which only ran without it). Whenever I click on a link for a Servlet or JSP, I get a 404. I am starting Tomcat first and then Apache as the how-to mentioned that Tomcat updates the mod_jk.conf-auto each time it starts. (I have also tried it the other way around (starting Apache first) just to see. Any ideas would be greatly appreciated. -- Bryce Fischer [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Tomcat/Apache port number use
Hi Chris, Yes it does:~( rgds hans At 14:48 8-3-01 +0100, you wrote: Hans, I'm running out of ideas too. One last: does your server.xml file contain the lines !-- Apache AJP12 support. This is also used to shut down tomcat. -- Connector className="org.apache.tomcat.service.PoolTcpConnector" Parameter name="handler" value="org.apache.tomcat.service.connector.Ajp12ConnectionHandler"/ Parameter name="port" value="8007"/ /Connector Chris Hans Kind wrote: Hi Chris, workers.properties worker.ajp12.port=8007 worker.ajp12.host=localhost worker.ajp12.type=ajp12 mod_jk_conf-auto JkMount /*.jsp ajp12 JkMount /servlet/* ajp12 ... JkMount /examples/servlet/* ajp12 JkMount /examples/*.jsp ajp12 Staring Tomcate generates these file, and httpd.conf include the mod_jk_conf-auto file. There is nothing else running on port 8007. I'm very very lost:~( rgds Hans At 13:35 8-3-01 +0100, you wrote: Hans Kind wrote: Hi Chris, We run on a Solaris 2.7 server, with Apache DSO 1.3.14. The workers.properties file has been updated so that workers.tomcat_home, workers.java_home point to the correct location on the server. Changed ps to the correct syntax on Unix, ps=/. Used apxs to install mod_jk from source Included the following line in httpd.conf file: Include /opt2/kindserv/tomcat/conf/mod_jk.conf-auto http://www.kindserver.com:8080/examples/jsp/dates/date.jsp is working as expected http://www.kindserver.com/examples/jsp/dates/date.jsp results in a server error with the following in the mod_jk.log [jk_connect.c (143)]: jk_open_socket, connect() failed errno = 146 [jk_ajp12_worker.c (152)]: In jk_endpoint_t::service, Error sd = -1 rgds Hans At 15:47 7-3-01 +0100, you wrote: Hans Kind wrote: Hi, We got Apache running on port 80, and Tomcat on port 8080. Running http://www.kindserver.com:8080 takes me to the Tomcat example page, and the JSP and JServ pages work ok. When I go to http://www.kindserver.com/examples/servlets/ http://www.kindserver.com/examples/jsp/ all the examples return a document contains no data error. How do I setup Apache so that without the need of the port number in the url, the JServ and JSP pages are handled bij Tomcat corecty. I went trough the install instructions, mailing lists and other documentation, but couldn't find a slid answe:~( rgds Hans Kind - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] Hans, You need to get and install the appropriate apache module; porbably mod_jk . There are Mod_jk faqs available on the jakarta site. Cant really tell you more without details about you apache, tomcat versions and your system. Chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] Hans, You are getting a connection refused error, http://www.linuxos.net/docs/solaris/common_err.html#korea146 Since I can get the source files of the jsp dislayed on your site, it seems like the basic apache config is good; Do you have some lines like the folloing in "workers.properties" worker.ajp12.port=8007 worker.ajp12.host=localhost worker.ajp12.type=ajp12 and like the following in mod_jk.conf JkMount /*.jsp ajp12 JkMount /servlet/* ajp12 ... JkMount /examples/servlet/* ajp12 JkMount /examples/*.jsp ajp12 Is there some other service running on the port 8007, or another reason why you cant connect there? Chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
I am a new user
I apologise for this email but I am looking for some help and I have already spent two days trying to configure Tomcat with NT4.0 SP6 using IIS 4.0. I believe there are some ambiguities on your web page tomcat-iis-howto.html. I have followed those instructions and can not get any of the JSP pages to work. When I try to open the index.html page found in the /examples/jsp directory I get "The page cannot be displayed" error. I know that I am very new to using JSP and Tomcat but I would really appreciate some help with this. Dave Roman When shutting down the Tomcat server I get the following error message: Exception in thread "main" java.lang.ExceptionInInitializerError: java.util.Miss ingResourceException: Can't find bundle for base name org.apache.tomcat.resource s.LocalStrings, locale en_US at java.util.ResourceBundle.throwMissingResourceException(ResourceBundle .java:707) at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:679) at java.util.ResourceBundle.getBundle(ResourceBundle.java:546) at org.apache.tomcat.util.StringManager.init(StringManager.java:115) at org.apache.tomcat.util.StringManager.getManager(StringManager.java:26 0) at org.apache.tomcat.startup.Tomcat.clinit(Tomcat.java:24) I am running NT4.0 SP6, IIS4.0, Tomcat 3.2.1, JDK1.3, with Java Runtime 1.3 Any ideas??? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Classloader problems - multiple versions of JAR files
I'm having a problem with multiple versions of JAR files under different applications in Tomcat 4.0b1. We have two web applications running under Tomcat. Each application has a copy of a JAR file that was written in-house. Our webapps directory looks something like this: webapps/alpha/WEB-INF/lib/myframework.jar This version of the JAR file is at version 1.2. webapps/beta/WEB-INF/lib/myframework.jar This version of the JAR file is at version 1.3 and includes classes that did not exist in version 1.2. When the beta application references a class from myframework.jar, it seems to pull from version 1.2 of the JAR file. If we try to reference a class that didn't exist in version 1.2 we get NoClassDefFound exceptions. If we update the alpha application to use version 1.3 of myframework.jar everything seems to work fine. The myframework.jar file exists only in webapps//WEB-INF/lib directories. It does not exist in the system classpath, $CATALINA_HOME/lib, or $CATALINA_HOME/server/lib. Does anyone have any idea why this happens and how to fix it? Jason - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Qn about JBuilder/Tomcat implementation
Ladies and Gentlemen, I have a qn about JBuilder and Tomcat. My company recently got JBuilder4 Enterprise. Although it's really nice, I prefer using emacs/JDE. One really nice feature it has though is it's integration of Tomcat. Basically, it's able to start a new instance of tomcat on the first available port it finds. That speeds up testing (I don't have to stop tomcat, restart, and then run my app to test). So I could have 3 different instances of tomcat running, each on a different port. I've tried to figure out how JBuilder does this, and I'll admit I'm not smart enough to figure it out. I'm guessing I have to edit server.xml. But, how do I run an application that isn't in /webapps and still have tomcat find it? So, could someone please point me in the right direction to duplicate this without having to use JBuilder? Thank you, Arafat Mohamed - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: config.getInitParameter() still returning null
[EMAIL PROTECTED] wrote: The config.getInitParameter() called from within a JSP page is returning null. After changing the web.xml file numerous times and trying all the suggestions from java.sun.com and the tomcat archives I still cannot resolve this problem. Does anyone know why we can't access the init parameters? thanks in advance Here is what my web.xml file looks like (does not work): web-app servlet servlet-name Error /servlet-name servlet-class org.apache.jasper.runtime.JspServlet /servlet-class init-param param-namedebug/param-name param-valuetrue/param-value /init-param /servlet /web-app and my JSP code: % String s = config.getInitParameter("debug"); if (s == null) { out.println("Init param must be null!"); } else{ out.println("Init param is "+s); } % Hi :-) I didn't ever use jsp to get init parameters, but I guess the reasons is: in your WEB_INF/web.xml, you only define a servlet definition with some init parameters, but you didn't define a servlet-mapping; and/so I guess you invoked your servlet without url-pattern(servlet-mapping name) - I guess you use: http://localhost:8080/myapp/servlet/Myservlet , so if you use Servlet, the following will return null: - config.getInitParameter(...) - this.getInitParameter(...) I suggest you: - in WEB_INF/web.xml, when you define a servlet definition with some init parameters, At the same time define a servlet-mapping - then use url-pattern to invoke your Servlet: http://localhost:8080/myapp/XXX (XXX is url-pattern) - if you don't want to define a servlet-definition and servlet-mapping Pair in WEB-INF/web.xml, you also can define init parameters in servlet context definition in conf/server.xml, and get them in your servlet with the following way: this.getServletContext().getInitParameter(...) Bo Mar.08, 2001 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re[2]: servlet reload problem
Hello Dmitry, Thursday, March 08, 2001, 7:27:41 AM, you wrote: DM Hello Dmitry, DM Thursday, March 08, 2001, 7:58:19 PM, you wrote: DM I've been using Tomcat 3.1 for some time, and suddenly it stopped DM reloading my servlets :( All I can think as a reason is that I've DM installed and started using WebMacro. DM An addition to what I've said: I've just installed Resin and servlet DM reload doesn't work there too! I see. But my point is: In "examples" context servlets are reloaded fine, But in my context the don't reload at all. I'm going to investigate differences between these two contexts soon. I installed Tomcat as out-of-process servlet engine with IIS 4.0 using how-to documentation. -- Best regards, Andreymailto:[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
A solution to the multiple calls of init problem
I have had the problem of servlets that are loaded on startup being loaded again (init method firing again) on their first access by a client. This issue has been discussed a lot on the list over the last year and I have not seen a solution that would work for me. I have found that if you set the servlet-name entry equal to the servlet-class entry in the web app's web.xml file that it will solve the problem. Evidently, Tomcat is determining what servlets are loaded by checking the servlet-name entries and not the servlet-class entries. I think this should be considered a bug. Craig Smithpeters Senior Software Engineer Nielsen Media Research [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Classloader problems - multiple versions of JAR files
I don't know about Tomcat 4, but in Tomcat 3.2.1 this works nicely. I was kind of sceptical myself so I made a very simple prototype to demonstrate this. I'm kind of new to Tomcat, but why are there two so disparate versions of Tomcat? Will they merge or will they continue on paralell tracks, in that case perhaps it's best to rename one of them? Regards, /Jesper -Original Message- From: Winters, Jason [mailto:[EMAIL PROTECTED]] Sent: den 8 mars 2001 15:50 To: [EMAIL PROTECTED] Subject: Classloader problems - multiple versions of JAR files I'm having a problem with multiple versions of JAR files under different applications in Tomcat 4.0b1. We have two web applications running under Tomcat. Each application has a copy of a JAR file that was written in-house. Our webapps directory looks something like this: webapps/alpha/WEB-INF/lib/myframework.jar This version of the JAR file is at version 1.2. webapps/beta/WEB-INF/lib/myframework.jar This version of the JAR file is at version 1.3 and includes classes that did not exist in version 1.2. When the beta application references a class from myframework.jar, it seems to pull from version 1.2 of the JAR file. If we try to reference a class that didn't exist in version 1.2 we get NoClassDefFound exceptions. If we update the alpha application to use version 1.3 of myframework.jar everything seems to work fine. The myframework.jar file exists only in webapps//WEB-INF/lib directories. It does not exist in the system classpath, $CATALINA_HOME/lib, or $CATALINA_HOME/server/lib. Does anyone have any idea why this happens and how to fix it? Jason - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: I am a new user
First, it seems like Tomcat by itself is not yet working, so lets ignore IIS for now and concentrate on that. You can check on tomcat by going to http://localhost:8080. The error message that you indicate is generally becuase of a bad server.jar file (either missing, or there are two different ones in your classpath). Randy -Original Message- From: David Roman [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 08, 2001 9:52 AM To: '[EMAIL PROTECTED]' Subject: I am a new user I apologise for this email but I am looking for some help and I have already spent two days trying to configure Tomcat with NT4.0 SP6 using IIS 4.0. I believe there are some ambiguities on your web page tomcat-iis-howto.html. I have followed those instructions and can not get any of the JSP pages to work. When I try to open the index.html page found in the /examples/jsp directory I get "The page cannot be displayed" error. I know that I am very new to using JSP and Tomcat but I would really appreciate some help with this. Dave Roman When shutting down the Tomcat server I get the following error message: Exception in thread "main" java.lang.ExceptionInInitializerError: java.util.Miss ingResourceException: Can't find bundle for base name org.apache.tomcat.resource s.LocalStrings, locale en_US at java.util.ResourceBundle.throwMissingResourceException(ResourceBundle .java:707) at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:679) at java.util.ResourceBundle.getBundle(ResourceBundle.java:546) at org.apache.tomcat.util.StringManager.init(StringManager.java:115) at org.apache.tomcat.util.StringManager.getManager(StringManager.java:26 0) at org.apache.tomcat.startup.Tomcat.clinit(Tomcat.java:24) I am running NT4.0 SP6, IIS4.0, Tomcat 3.2.1, JDK1.3, with Java Runtime 1.3 Any ideas??? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Unreachable servlets
Hello, There is probably something I do not understand, but I can't manage making my servlets reachable with tomcat . I am using Tomcat 3.2.1 with apache on Solaris. So I have generated the mod_jk module. I have set in the web.xml file of my servlet : servlet-mapping servlet-nameMyServlet/servlet-name url-pattern/Test/url-pattern /servlet-mapping So I presume that the URL to my servlet should end with"/Test" My .war file (myweb.war) is under ../dist/tomcat/webapps/ and is uncompressed when I start Tomcat. The servlet is started (the init() method is called). So it means it is installed in the right place and Tomcat knows where to find it, and the servlet does not crash when being started. What URL should I type to call my servlet ? I am using a little java client that sends data to the servlet. I have tried http://myHost/myweb/Test http://myHost/myweb/servlet/Test ans so many others... But my client still fails to reach the servlet. (Error 404 file not found) What's wrong ? In advance, thank you, Grard - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
properties minor bug
don't know if you know this yet but I installed tomcat in a path with spaces like.. Program Files (on NT) and the service would not start unless I changed the wrapper.properties file to point to C:\progra~1\ ...instead of c:\program files\... Nicholas Katzakis, Greece
RE: Qn about JBuilder/Tomcat implementation
JBuilder uses Tomcat as an embedded server, I believe. But you could accomplish the same thing with a little ingunity. First, the hard part is finding an available port. Choose some number, probably around 4000 as a starting point. Try to create a socket connection to localhost and that port. If there is no response then you've found your port, else increment the number and try again. Now repeat to find second number. An alternative is to parse the output of netstat (its available on all Unix/Linux computers and my Win2000 - don't know about other Windows) and choose two numbers not listed. Second, taking your number you just found, insert it into the server.xml file. There is a line dealing with the HTTP connector and one for the AJP12 connector. Replate their port values in the server.xml file with the numbers just found (maybe use SED with a couple of unique strings?). Now, store the server.xml file and use tomcat.bat/sh -f newServer.xml start/stop to start and stop on any available port. You could do this in a number of different ways, but writting a program to do the first step and a shell script to glue it to the second step and execute the second step shouldn't be that hard. Randy -Original Message- From: Arafat Mohamed [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 08, 2001 10:09 AM To: [EMAIL PROTECTED] Subject: Qn about JBuilder/Tomcat implementation Ladies and Gentlemen, I have a qn about JBuilder and Tomcat. My company recently got JBuilder4 Enterprise. Although it's really nice, I prefer using emacs/JDE. One really nice feature it has though is it's integration of Tomcat. Basically, it's able to start a new instance of tomcat on the first available port it finds. That speeds up testing (I don't have to stop tomcat, restart, and then run my app to test). So I could have 3 different instances of tomcat running, each on a different port. I've tried to figure out how JBuilder does this, and I'll admit I'm not smart enough to figure it out. I'm guessing I have to edit server.xml. But, how do I run an application that isn't in /webapps and still have tomcat find it? So, could someone please point me in the right direction to duplicate this without having to use JBuilder? Thank you, Arafat Mohamed - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Tomcat/Apache port number use
Well Hans, I tried to ask all the simple, obvious questions. TOmcat is working fine(8080), Apache is working fine and seems properly configured. I can't give you any other advice but to go back, get the src for mod_jk and recompile and install it (using apxs if you can) with the right solaris parameters. There have been some postings on this list for those. Good luck, Chris Hans Kind wrote: Hi Chris, Yes it does:~( rgds hans At 14:48 8-3-01 +0100, you wrote: Hans, I'm running out of ideas too. One last: does your server.xml file contain the lines !-- Apache AJP12 support. This is also used to shut down tomcat. -- Connector className="org.apache.tomcat.service.PoolTcpConnector" Parameter name="handler" value="org.apache.tomcat.service.connector.Ajp12ConnectionHandler"/ Parameter name="port" value="8007"/ /Connector Chris Hans Kind wrote: Hi Chris, workers.properties worker.ajp12.port=8007 worker.ajp12.host=localhost worker.ajp12.type=ajp12 mod_jk_conf-auto JkMount /*.jsp ajp12 JkMount /servlet/* ajp12 ... JkMount /examples/servlet/* ajp12 JkMount /examples/*.jsp ajp12 Staring Tomcate generates these file, and httpd.conf include the mod_jk_conf-auto file. There is nothing else running on port 8007. I'm very very lost:~( rgds Hans At 13:35 8-3-01 +0100, you wrote: Hans Kind wrote: Hi Chris, We run on a Solaris 2.7 server, with Apache DSO 1.3.14. The workers.properties file has been updated so that workers.tomcat_home, workers.java_home point to the correct location on the server. Changed ps to the correct syntax on Unix, ps=/. Used apxs to install mod_jk from source Included the following line in httpd.conf file: Include /opt2/kindserv/tomcat/conf/mod_jk.conf-auto http://www.kindserver.com:8080/examples/jsp/dates/date.jsp is working as expected http://www.kindserver.com/examples/jsp/dates/date.jsp results in a server error with the following in the mod_jk.log [jk_connect.c (143)]: jk_open_socket, connect() failed errno = 146 [jk_ajp12_worker.c (152)]: In jk_endpoint_t::service, Error sd = -1 rgds Hans At 15:47 7-3-01 +0100, you wrote: Hans Kind wrote: Hi, We got Apache running on port 80, and Tomcat on port 8080. Running http://www.kindserver.com:8080 takes me to the Tomcat example page, and the JSP and JServ pages work ok. When I go to http://www.kindserver.com/examples/servlets/ http://www.kindserver.com/examples/jsp/ all the examples return a document contains no data error. How do I setup Apache so that without the need of the port number in the url, the JServ and JSP pages are handled bij Tomcat corecty. I went trough the install instructions, mailing lists and other documentation, but couldn't find a slid answe:~( rgds Hans Kind - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] Hans, You need to get and install the appropriate apache module; porbably mod_jk . There are Mod_jk faqs available on the jakarta site. Cant really tell you more without details about you apache, tomcat versions and your system. Chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] Hans, You are getting a connection refused error, http://www.linuxos.net/docs/solaris/common_err.html#korea146 Since I can get the source files of the jsp dislayed on your site, it seems like the basic apache config is good; Do you have some lines like the folloing in "workers.properties" worker.ajp12.port=8007 worker.ajp12.host=localhost worker.ajp12.type=ajp12 and like the following in mod_jk.conf JkMount /*.jsp ajp12 JkMount /servlet/* ajp12 ... JkMount /examples/servlet/* ajp12 JkMount /examples/*.jsp ajp12 Is there some other service running on the port 8007, or another reason why you cant connect there? Chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: web.xml configuration
--- Rob Tanner [EMAIL PROTECTED] wrote: --On Monday, March 05, 2001 11:34:13 AM -0500 "Brett W. McCoy" [EMAIL PROTECTED] wrote: I think for your mapping you don't want that full directory path for your url pattern. The idea is that you don't want to use that full path, but something simple that will get mapped automagically to that path. I think you just want url-patternnData/url-pattern in there. That probably won't work without a leading "/". Try this: servlet-mapping servlet-namenData/servlet-name url-pattern/nData/url-pattern /servlet-mapping I'm using a servlet but no jsp,so what is supposed to be put in the servlet-class /servlet class? Thanks. __ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: config.getInitParameter() still returning null
On Thu, 8 Mar 2001, Bo Xu wrote: [EMAIL PROTECTED] wrote: The config.getInitParameter() called from within a JSP page is returning null. After changing the web.xml file numerous times and trying all the suggestions from java.sun.com and the tomcat archives I still cannot resolve this problem. Does anyone know why we can't access the init parameters? thanks in advance Here is what my web.xml file looks like (does not work): web-app servlet servlet-name Error /servlet-name servlet-class org.apache.jasper.runtime.JspServlet /servlet-class init-param param-namedebug/param-name param-valuetrue/param-value /init-param /servlet /web-app and my JSP code: % String s = config.getInitParameter("debug"); if (s == null) { out.println("Init param must be null!"); } else{ out.println("Init param is "+s); } % Hi :-) I didn't ever use jsp to get init parameters, but I guess the reasons is: in your WEB_INF/web.xml, you only define a servlet definition with some init parameters, but you didn't define a servlet-mapping; and/so I guess you invoked your servlet without url-pattern(servlet-mapping name) - I guess you use: http://localhost:8080/myapp/servlet/Myservlet , so if you use Servlet, the following will return null: - config.getInitParameter(...) - this.getInitParameter(...) [ ... ] I could be wrong, but I don't believe you have to define servlet-mapping's to get init-param's to work, just having defined the servlet is sufficient. However, in the URL, you do need to use the specific servlet-name you used in the servlet definition. (That's because you can define the same servlet class multiple times, with different servlet-name's and different init-param's.) So, according to the above web.xml, the URL that should be used is: http://your.domain.com/yourwebappname/servlet/Error (No, I haven't tested this.) However, I just noticed that the original poster said that this is all happening in a JSP ("JSP page" is redundant :-) -- that throws a monkey wrench into the situation, and I'm not sure how it changes things. For example, I don't know how to set up init-param's in a JSP. Also, upon re-reading the above servlet definition, I'm not sure that's the right way to set up a JSP -- i.e. putting org.apache.jasper.runtime.JspServlet as the servlet-class (I assume that's the tomcat/jasper servlet that handles JSP's). I think you want to name your JSP something.jsp, and just tell tomcat somewhere that it's a JSP. But again, I'm not sure how you'd set up init-param's for it (maybe you do have to fallback on the suggestion to use context init-param's, instead of servlet init-param's). Well, I think I may have just raised more confusion, but perhaps this will lead to some helpful discussion/ideas, and/or someone will post clearing things up. ... Hold on. I decided to do a google newsgroup search on this, to see if I can get more definite information, and looks like I found the answers. Check out the following posts: http://groups.google.com/groups?q=init-param+jsphl=enlr=safe=offrnum=1seld=964886773ic=1 http://groups.google.com/groups?hl=enlr=safe=offth=9eb4e0cd3b0f1fb6rnum=9seld=958627636ic=1 Actually, I don't know if these URLs will work outside the context of my search -- if not, go to the google advanced newsgroups search page at: http://groups.google.com/advanced_group_search and enter "init-param jsp" in the "with all of the words" box (without the quotes) and "hanna" in the "Author" box (again, without the quotes). Basically, it looks like a servlet definition can specify *either* servlet-class or a jsp-file (those are the actual names of the tags used in web.xml). Note the warnings about what form of URL to use when you set things up this way, though. Milt Epstein Research Programmer Software/Systems Development Group Computing and Communications Services Office (CCSO) University of Illinois at Urbana-Champaign (UIUC) [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Classloader problems - multiple versions of JAR files
On Thu, 8 Mar 2001, [iso-8859-1] Jesper Söderlund wrote: I don't know about Tomcat 4, but in Tomcat 3.2.1 this works nicely. I was kind of sceptical myself so I made a very simple prototype to demonstrate this. I'm kind of new to Tomcat, but why are there two so disparate versions of Tomcat? Will they merge or will they continue on paralell tracks, in that case perhaps it's best to rename one of them? Tomcat 3.X implements the 2.2 servlet spec, Tomcat 4.X implements the 2.3 servlet spec. Use the one appropriate for the spec version you need/want to use. Eventually things will move towards the newer versions of the spec, but that doesn't mean there won't be others around still using older versions. -Original Message- From: Winters, Jason [mailto:[EMAIL PROTECTED]] Sent: den 8 mars 2001 15:50 To: [EMAIL PROTECTED] Subject: Classloader problems - multiple versions of JAR files I'm having a problem with multiple versions of JAR files under different applications in Tomcat 4.0b1. We have two web applications running under Tomcat. Each application has a copy of a JAR file that was written in-house. Our webapps directory looks something like this: webapps/alpha/WEB-INF/lib/myframework.jar This version of the JAR file is at version 1.2. webapps/beta/WEB-INF/lib/myframework.jar This version of the JAR file is at version 1.3 and includes classes that did not exist in version 1.2. When the beta application references a class from myframework.jar, it seems to pull from version 1.2 of the JAR file. If we try to reference a class that didn't exist in version 1.2 we get NoClassDefFound exceptions. If we update the alpha application to use version 1.3 of myframework.jar everything seems to work fine. The myframework.jar file exists only in webapps//WEB-INF/lib directories. It does not exist in the system classpath, $CATALINA_HOME/lib, or $CATALINA_HOME/server/lib. Does anyone have any idea why this happens and how to fix it? Jason - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] Milt Epstein Research Programmer Software/Systems Development Group Computing and Communications Services Office (CCSO) University of Illinois at Urbana-Champaign (UIUC) [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Classloader problems - multiple versions of JAR files
From the Tomcat 3.2 readme... "Tomcat 4.0 is separate development from Tomcat 3.x. It is based on the Catalina architecture, which is very different from the architecture of Tomcat 3.x. In addition, Tomcat 4.0 is to be the reference implementation for the Servlet 2.3 and JSP 1.2 specifications." I'm not sure what the long-term prognosis is for 3.2 versus 4.0. I would imagine that ultimately 3.2 will be phased out in favor of 4.0. Of course I'm not one of the developers so I could be wrong... Jason -Original Message- From: Jesper Sderlund [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 08, 2001 10:29 AM To: '[EMAIL PROTECTED]' Subject: RE: Classloader problems - multiple versions of JAR files I don't know about Tomcat 4, but in Tomcat 3.2.1 this works nicely. I was kind of sceptical myself so I made a very simple prototype to demonstrate this. I'm kind of new to Tomcat, but why are there two so disparate versions of Tomcat? Will they merge or will they continue on paralell tracks, in that case perhaps it's best to rename one of them? Regards, /Jesper -Original Message- From: Winters, Jason [mailto:[EMAIL PROTECTED]] Sent: den 8 mars 2001 15:50 To: [EMAIL PROTECTED] Subject: Classloader problems - multiple versions of JAR files I'm having a problem with multiple versions of JAR files under different applications in Tomcat 4.0b1. We have two web applications running under Tomcat. Each application has a copy of a JAR file that was written in-house. Our webapps directory looks something like this: webapps/alpha/WEB-INF/lib/myframework.jar This version of the JAR file is at version 1.2. webapps/beta/WEB-INF/lib/myframework.jar This version of the JAR file is at version 1.3 and includes classes that did not exist in version 1.2. When the beta application references a class from myframework.jar, it seems to pull from version 1.2 of the JAR file. If we try to reference a class that didn't exist in version 1.2 we get NoClassDefFound exceptions. If we update the alpha application to use version 1.3 of myframework.jar everything seems to work fine. The myframework.jar file exists only in webapps//WEB-INF/lib directories. It does not exist in the system classpath, $CATALINA_HOME/lib, or $CATALINA_HOME/server/lib. Does anyone have any idea why this happens and how to fix it? Jason - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: properties minor bug
This is a well documented problem that stems from how Windows parses its command line. Randy -Original Message- From: Nicholas Katzakis [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 08, 2001 10:42 AM To: [EMAIL PROTECTED] Subject: properties minor bug don't know if you know this yet but I installed tomcat in a path with spaces like.. Program Files (on NT) and the service would not start unless I changed the wrapper.properties file to point to C:\progra~1\ ... instead of c:\program files\... Nicholas Katzakis, Greece - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: A solution to the multiple calls of init problem
On Thu, 8 Mar 2001, Craig Smithpeters wrote: I have had the problem of servlets that are loaded on startup being loaded again (init method firing again) on their first access by a client. This issue has been discussed a lot on the list over the last year and I have not seen a solution that would work for me. I have found that if you set the servlet-name entry equal to the servlet-class entry in the web app's web.xml file that it will solve the problem. Evidently, Tomcat is determining what servlets are loaded by checking the servlet-name entries and not the servlet-class entries. I think this should be considered a bug. Actually, if I understand you correctly, this is the known, desired (and useful) behavior, and is all spelled out in the spec (I don't know if there's one section of the spec that talks about it, but search for "definition" and "instance"). That is, when you define a servlet, it is the servlet-name that defines the servlet, not the servlet-class. You can have multiple servlet definitions involving the same servlet-class and different servlet-name's, and they are considered distinct (i.e. different init-param's, different servlet instances, and hence init will be called multiple times, as you are experiencing). As to which servlet definition is used, it all depends on what servlet-name is specified in the URL (and if any servlet-mapping's are defined in the servlet definition). Also, this can happen even when you only have one servlet definition, because calling the servlet using the servlet-class directly (i.e. not the servlet-name) is distinct as well. For example, if in webapp myapp you define a servlet with servlet-name foo and servlet-class com.my.foo, the following lead to distinct servlet instances: http://www.my.com/myapp/servlet/foo http://www.my.com/myapp/servlet/com.my.foo and will cause init to be called twice on the underlying servlet-class. Milt Epstein Research Programmer Software/Systems Development Group Computing and Communications Services Office (CCSO) University of Illinois at Urbana-Champaign (UIUC) [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: using beans
Look at the jsp:useBean tag. Here is an example usage: jsp:useBean id="contact" scope="request" class="com.zephion.ds.DbContactExt"/ % contact.setUser_id(aUserId); % -Original Message- From: Bob Kersten [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 08, 2001 6:04 AM To: [EMAIL PROTECTED] Subject: using beans Hi, So... i've installed Borland JBuilder 3.5 and I created a JavaBean. Looking at the project directory, it created a .class file. How do I use this file, and where do I place it? I've got in-line JSP (servlet?) working with Tomcat, but I've never used a bean or what-so-ever, so I don't exactly know where to place the files and how to implement it. Thnx, Bop. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Unreachable servlets
OK I have found it Gerard BORREILL wrote: Hello, There is probably something I do not understand, but I can't manage making my servlets reachable with tomcat . I am using Tomcat 3.2.1 with apache on Solaris. So I have generated the mod_jk module. I have set in the web.xml file of my servlet : servlet-mapping servlet-nameMyServlet/servlet-name url-pattern/Test/url-pattern /servlet-mapping So I presume that the URL to my servlet should end with"/Test" My .war file (myweb.war) is under ../dist/tomcat/webapps/ and is uncompressed when I start Tomcat. The servlet is started (the init() method is called). So it means it is installed in the right place and Tomcat knows where to find it, and the servlet does not crash when being started. What URL should I type to call my servlet ? I am using a little java client that sends data to the servlet. I have tried http://myHost/myweb/Test http://myHost/myweb/servlet/Test ans so many others... But my client still fails to reach the servlet. (Error 404 file not found) What's wrong ? In advance, thank you, Grard - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Please !!! Where can I find a documentation about the web.xml file !!!! Thanks
Null pointer exception using Oreilly multipart classes on Sparc
We are using Jason's MultiPart classes to upload files. They tested out fine on our NT development platform using Sun JDK 1.3. Our production environment is Sun Solaris on Sparc, using Sun JDK 1.3. On Sun, upload of text files work fine, but trying to upload a Microsoft Word document results in a null pointer exception. I haven't debugged this yet, but I notice a file of zero size with the correct name in the upload directory, so the file part is obviously being found. We have a different app on a different Sparc box using JDK 1.2.2, and it appears to work okay. Are there any known issues with the Multipart classes on JDK 1.3 on Sparc? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Please !!! I seek some documentation about web.xml file
thanks !!!
RE: gzip
Title: RE: gzip How did your mod_gzip_item_include look like for JSP -Original Message- From: Dominique BATARD [SMTP:[EMAIL PROTECTED]] Sent: Thursday, March 08, 2001 6:08 AM To: [EMAIL PROTECTED] Subject: Re: gzip I tried it, and it was working . But I noticed an apache slow down Dom - Original Message - From: Parayali, Jayesh 1065 mailto:[EMAIL PROTECTED] To: '[EMAIL PROTECTED]' mailto:'[EMAIL PROTECTED]' Sent: Thursday, March 08, 2001 3:59 AM Subject: gzip Anybody had any luck with gzip in JSP? Thanks, Jayesh
RE: ȸ½Å: gzip
Title: RE: ȸ½Å: gzip I want to send the jsp response in gzip format. -Original Message- From: ??? [SMTP:[EMAIL PROTECTED]] Sent: Wednesday, March 07, 2001 7:20 PM To: [EMAIL PROTECTED] Subject: ȸ½Å: gzip If you want to handle gzip files in JSP, you can use java.util.zip.* classes directly. Martin -?? ???- ?? ??: Parayali, Jayesh 1065 [mailto:[EMAIL PROTECTED]] ?? ??: Thursday, March 08, 2001 11:59 AM ?? ??: '[EMAIL PROTECTED]' ??: gzip Anybody had any luck with gzip in JSP? Thanks, Jayesh - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: web.xml configuration
Presuming you have already created the application root, you should have a subdirectory in the root called WEB-INF which contains the web.xml file as well as one or both of two additional subdirs, "classes" and "lib". The servlet-class tags in web.xml should contain the full classpath within either of those directories. If, for example, you have a hierarchical directory structure in classes, say my/favorite/servlets, and a servlet named foo.class, the servlet-class is my/favorite/servlets/foo. If you simply have foo.class directly in the classes directory, the servlet-class is simply foo. If you're using a jar file, again it's the full classpath within the jar file that you need to declare within the servlet-class tag set. Hope that helps. -- Rob PS: Download the servlet 2.2 spec java.sun.com. It's a pdf file and not a hard read. Most of the generic servlet type questions I see on the list, that is, those questions that are not actually tomcat specific, are already answered right there. In fact, without reading that spec, if someone has only worked with tomcat, how would they even know what's tomcat specific and what pertains to any and all 2.2 compliant servlet containers (including jrun, servlet-exec, etc)? --On Thursday, March 08, 2001 07:58:59 AM -0800 Huiyuan Ma [EMAIL PROTECTED] wrote: --- Rob Tanner [EMAIL PROTECTED] wrote: --On Monday, March 05, 2001 11:34:13 AM -0500 "Brett W. McCoy" [EMAIL PROTECTED] wrote: I think for your mapping you don't want that full directory path for your url pattern. The idea is that you don't want to use that full path, but something simple that will get mapped automagically to that path. I think you just want url-patternnData/url-pattern in there. That probably won't work without a leading "/". Try this: servlet-mapping servlet-namenData/servlet-name url-pattern/nData/url-pattern /servlet-mapping I'm using a servlet but no jsp,so what is supposed to be put in the servlet-class /servlet class? Thanks. __ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/ _ _ _ _ __ _ _ _ _ /\_\_\_\_\/\_\ /\_\_\_\_\_\ /\/_/_/_/_/ /\/_/ \/_/_/_/_/_/ QUIDQUID LATINE DICTUM SIT, /\/_/__\/_/ __/\/_//\/_/ PROFUNDUM VIDITUR /\/_/_/_/_/ /\_\ /\/_//\/_/ /\/_/ \/_/ /\/_/_/\/_//\/_/ (Whatever is said in Latin \/_/ \/_/ \/_/_/_/_/ \/_/ appears profound) Rob Tanner McMinnville, Oregon [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
SSL and US encryption law
Does anyone know what the current law is regarding exporting products with SSL? We're building an application that will be deployed in Taiwan and in other non-US sites. I've read various things ranging from: can't export SSL at all to can only use 40 bit (56 if register certificate) encryption in those products. Any resources for current laws would be appreciated. Thanks. -Jim Jim Canniff Widax Corporation 508-862-2142 ext.110 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Tomcat/Apache port number use
This is what I had to use to get mod_jk installed. Based on the information found in this mailing list: apxs -o mod_jk.so -lposix4 -DSOLARIS -I../jk -I/usr/java/include -I/usr/java/include/solaris -c *.c ../jk/*.c The one mentioned in the documentation, returns a error when you start Apache/Tomcat Maybe someone else might have some experience with this on Solaris 2.7 Thanks for the help:~) rgds Hans At 16:49 8-3-01 +0100, you wrote: Well Hans, I tried to ask all the simple, obvious questions. TOmcat is working fine(8080), Apache is working fine and seems properly configured. I can't give you any other advice but to go back, get the src for mod_jk and recompile and install it (using apxs if you can) with the right solaris parameters. There have been some postings on this list for those. Good luck, Chris Hans Kind wrote: Hi Chris, Yes it does:~( rgds hans At 14:48 8-3-01 +0100, you wrote: Hans, I'm running out of ideas too. One last: does your server.xml file contain the lines !-- Apache AJP12 support. This is also used to shut down tomcat. -- Connector className="org.apache.tomcat.service.PoolTcpConnector" Parameter name="handler" value="org.apache.tomcat.service.connector.Ajp12ConnectionHandler"/ Parameter name="port" value="8007"/ /Connector Chris Hans Kind wrote: Hi Chris, workers.properties worker.ajp12.port=8007 worker.ajp12.host=localhost worker.ajp12.type=ajp12 mod_jk_conf-auto JkMount /*.jsp ajp12 JkMount /servlet/* ajp12 ... JkMount /examples/servlet/* ajp12 JkMount /examples/*.jsp ajp12 Staring Tomcate generates these file, and httpd.conf include the mod_jk_conf-auto file. There is nothing else running on port 8007. I'm very very lost:~( rgds Hans At 13:35 8-3-01 +0100, you wrote: Hans Kind wrote: Hi Chris, We run on a Solaris 2.7 server, with Apache DSO 1.3.14. The workers.properties file has been updated so that workers.tomcat_home, workers.java_home point to the correct location on the server. Changed ps to the correct syntax on Unix, ps=/. Used apxs to install mod_jk from source Included the following line in httpd.conf file: Include /opt2/kindserv/tomcat/conf/mod_jk.conf-auto http://www.kindserver.com:8080/examples/jsp/dates/date.jsp is working as expected http://www.kindserver.com/examples/jsp/dates/date.jsp results in a server error with the following in the mod_jk.log [jk_connect.c (143)]: jk_open_socket, connect() failed errno = 146 [jk_ajp12_worker.c (152)]: In jk_endpoint_t::service, Error sd = -1 rgds Hans At 15:47 7-3-01 +0100, you wrote: Hans Kind wrote: Hi, We got Apache running on port 80, and Tomcat on port 8080. Running http://www.kindserver.com:8080 takes me to the Tomcat example page, and the JSP and JServ pages work ok. When I go to http://www.kindserver.com/examples/servlets/ http://www.kindserver.com/examples/jsp/ all the examples return a document contains no data error. How do I setup Apache so that without the need of the port number in the url, the JServ and JSP pages are handled bij Tomcat corecty. I went trough the install instructions, mailing lists and other documentation, but couldn't find a slid answe:~( rgds Hans Kind - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] Hans, You need to get and install the appropriate apache module; porbably mod_jk . There are Mod_jk faqs available on the jakarta site. Cant really tell you more without details about you apache, tomcat versions and your system. Chris --- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] Hans, You are getting a connection refused error, http://www.linuxos.net/docs/solaris/common_err.html#korea146 Since I can get the source files of the jsp dislayed on your site, it seems like the basic apache config is good; Do you have some lines like the folloing in "workers.properties"
RE: Tomcat/Apache port number use
Title: RE: Tomcat/Apache port number use Looks like you missed out LoadModule and JkWorkerFile LoadModule jk_module modules/mod_jk.so JkWorkersFile /http/apps/tomcat/conf/workers.properties JkLogFile /http/apps/apache/logs/mod_jk.log JkLogLevel error JkMount /*.jsp ajp12 JkMount /servlet/* ajp12 -Original Message- From: Christopher Albert [SMTP:[EMAIL PROTECTED]] Sent: Thursday, March 08, 2001 7:50 AM To: [EMAIL PROTECTED] Subject: Re: Tomcat/Apache port number use Well Hans, I tried to ask all the simple, obvious questions. TOmcat is working fine(8080), Apache is working fine and seems properly configured. I can't give you any other advice but to go back, get the src for mod_jk and recompile and install it (using apxs if you can) with the right solaris parameters. There have been some postings on this list for those. Good luck, Chris Hans Kind wrote: Hi Chris, Yes it does:~( rgds hans At 14:48 8-3-01 +0100, you wrote: Hans, I'm running out of ideas too. One last: does your server.xml file contain the lines !-- Apache AJP12 support. This is also used to shut down tomcat. -- Connector className=org.apache.tomcat.service.PoolTcpConnector Parameter name=handler value=org.apache.tomcat.service.connector.Ajp12ConnectionHandler/ Parameter name=port value=8007/ /Connector Chris Hans Kind wrote: Hi Chris, workers.properties worker.ajp12.port=8007 worker.ajp12.host=localhost worker.ajp12.type=ajp12 mod_jk_conf-auto JkMount /*.jsp ajp12 JkMount /servlet/* ajp12 ... JkMount /examples/servlet/* ajp12 JkMount /examples/*.jsp ajp12 Staring Tomcate generates these file, and httpd.conf include the mod_jk_conf-auto file. There is nothing else running on port 8007. I'm very very lost:~( rgds Hans At 13:35 8-3-01 +0100, you wrote: Hans Kind wrote: Hi Chris, We run on a Solaris 2.7 server, with Apache DSO 1.3.14. The workers.properties file has been updated so that workers.tomcat_home, workers.java_home point to the correct location on the server. Changed ps to the correct syntax on Unix, ps=/. Used apxs to install mod_jk from source Included the following line in httpd.conf file: Include /opt2/kindserv/tomcat/conf/mod_jk.conf-auto http://www.kindserver.com:8080/examples/jsp/dates/date.jsp is working as expected http://www.kindserver.com/examples/jsp/dates/date.jsp results in a server error with the following in the mod_jk.log [jk_connect.c (143)]: jk_open_socket, connect() failed errno = 146 [jk_ajp12_worker.c (152)]: In jk_endpoint_t::service, Error sd = -1 rgds Hans At 15:47 7-3-01 +0100, you wrote: Hans Kind wrote: Hi, We got Apache running on port 80, and Tomcat on port 8080. Running http://www.kindserver.com:8080 takes me to the Tomcat example page, and the JSP and JServ pages work ok. When I go to http://www.kindserver.com/examples/servlets/ http://www.kindserver.com/examples/jsp/ all the examples return a document contains no data error. How do I setup Apache so that without the need of the port number in the url, the JServ and JSP pages are handled bij Tomcat corecty. I went trough the install instructions, mailing lists and other documentation, but couldn't find a slid answe:~( rgds Hans Kind - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] Hans, You need to get and install the appropriate apache module; porbably mod_jk . There are Mod_jk faqs available on the jakarta site. Cant really tell you more without details about you apache, tomcat versions and your system. Chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] Hans, You are getting a connection refused error, http://www.linuxos.net/docs/solaris/common_err.html#korea146 Since I can get the source files of the jsp dislayed on your site, it seems like the basic apache config is good; Do you have some lines like the folloing in workers.properties worker.ajp12.port=8007 worker.ajp12.host=localhost worker.ajp12.type=ajp12 and like the following in mod_jk.conf JkMount /*.jsp ajp12 JkMount /servlet/* ajp12
JSP entity references in Tomcat.
Title: JSP entity references in Tomcat. I am new to JSP work, old to SGML/XML. I have a problem in a JSP I have written I am creating a String variable to store the name of an asset, I then use that String in a variable call that combines two Strings utilizes the asset variable to populate the Entity reference that will then go into my XML repository and create an Entity reference to that item within the given document. Problem is it says it can't recognize the entitythe entity is an internal subset, and the document is parsed on load but not when I try to load it into the system through the browser and Tomcat it doesn't reparse...thus, will tomcat handle calls to reparse a doc externally from the repository, or is this a repository problem? I thought about loading the entire doc into memory, then writing to it there rather than allowing it to load directly to the doc in the repository? Thanks, Scott D. Halpenny PRISMedia Networks Inc. [EMAIL PROTECTED] www.prismedia.com (408)434-8123
Re: setting up Tomcat, newbee question
Gordon, thank you very much for your reply. I'm ill now and hope to get back to work tomorrow. Then I'll study on Tomcat, try and test... Kind regards, Nico den Boer Gordon Rose wrote: Hi Nico, First, my best advice is to open a command prompt and run the startup.bat file from there in order to see any error messages generated by the startup. Assuming you had unzipped tomcat into c:\tomcat-3.2.1 and the current JDK into c:\jdk1.3.0_02 you would want to have environment variables of: TOMCAT_HOME=c:\tomcat-3.2.1 JAVA_HOME=c:\jdk1.3.0_02 PATH=c:\jdk1.3.0_02\bin;%PATH% You want the bin folder below c:\jdk1.3.0_02 in your path, as that is where java.exe and javac.exe are located. Finally, you will want to add all the ..jars in the c:\tomcat-3.2.1\lib folder to your CLASSPATH env. variable. Although tomcat adds them automatically when you start it, they won't be there when you go to compile a servlet, and javac will just spit out an error (assuming that is how you are compiling them). CLASSPATH=%CLASSPATH%;c:\tomcat-3.2.1\lib\servlet.jar;...etc. You set environment vars, as you probably know, by opening Control Panel, then system, the Advanced (for win2k). You'll probably want to set tomcat up as a service under Win2k/nt. Easy to do, download the jk_nt_service.zip file and use the tomcat docs to do this. ..WAR files are web archives, and are a part of the current servlet spec -- they are analogous to .jars. If you put a .war file below c:\tomcat-3.2.1\webapps, it should expand it for you automatically. I'm reasonably sure that the ANT tool creates them, but I *haven't* used it, so I'm speaking based on an impression from looking at it a little on the jakarta.apache.org page. Lots of commercial tools create them. I'm *reasonably* sure there will be a tool on that site if it isn't ANT -- anyone? Gordon A tomcat newbie as of this past Fri. - Original Message - From: "H.F.N. den Boer" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, March 07, 2001 5:59 PM Subject: setting up Tomcat, newbee question Hello, To test Java servlet applications, I used Apache webserver with JServ. Now I intend to switch to Tomcat 3.2.1. First attempt is to have Tomcat run as a stand alone servlet container. Second attempt will be adding Tomcat to Apache webserver locally and configure my Win2000 webserver with IIS to work with Tomcat. Therefore, Tomcat doesn't have to work with static web content. On page file:///E|/Java/tomcat/doc/uguide/tomcat_ug.html I read that I need to set TOMCAT_HOME, JAVA_HOME and PATH. After that, Tomcat should start with startup.bat (Win98). Tomcat.bat executes :startServer, I see a Java window with usage information, which closes immediately. On various places, I changed in conf files the wrapper-pointers to tomcat_home and java_home to appropriate values. No result. Questions; - How do I get Tomcat working ? - In doc's I read about WAR's. How can I make them (so far I used only jar's). - I would like to configure Tomcat to recognise different url's and because of that use other jar's (or war's), have other home directories etc. Maybe these questions sound stupid, but any help is greatly appreciated... -- Kind regards, Nico den Boer - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Admin Context
When I try to get to /contextAdmin/contextAdmin.html I'm prompted to login but I do not know what the login id is. I fairly comfortable with configuring tomcat 3.2.1 but I haven't messed with the security stuff yet. Is this because there is no entry for the admin context in the tomcat.policy file or does this have to do with trusted="false" in the server.xml file. Thanks in advance, Keith - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: what's mean wrong name. message?
Looks like the file you have in com/filonet/jdf/servlet/UploadedFile.class is actually compiled from a class whose package is com/lgeds/jdf/servlet/ - It is not enough to move a class from one directory to another to change it's package. You must change the source and recompile. Regards, Paul -Original Message- From: Steve,Park(¹Ú½Â¿ø) [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 08, 2001 11:33 AM To: [EMAIL PROTECTED]; Tomcat-Dev Subject: what's mean "wrong name." message? Help me...following error occurs. and i have no com.lgeds.jdf.servlet.UploadedFile class. but What does Tomcat talking to me ? Help me.. what's mean wrong name.? i already store a class file "UploadedFile.class" to "/usr/local/tomcat/webapps/en/WEB-INF/classes/com/filonet/jdf/servlet/" i wonder what's mean following line Ctx(/en): Exceptionblah blah...^^ Thanks. 2001-03-09 01:21:47 - Ctx( /en ): Exception in: R( /en + /jsp/fileop/upload/Uplo adGo_en.jsp + null) - javax.servlet.ServletException: com/filonet/jdf/servlet/Up loadedFile (wrong name: com/lgeds/jdf/servlet/UploadedFile) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:399) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404) at org.apache.tomcat.core.Handler.service(Handler.java:286) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79 7) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743) at org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection Ajp12ConnectionHandler.java:166) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498) at java.lang.Thread.run(Thread.java:484) Root cause: java.lang.NoClassDefFoundError: com/filonet/jdf/servlet/UploadedFile (wrong name : com/lgeds/jdf/servlet/UploadedFile) at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:486) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:111) at java.net.URLClassLoader.defineClass(URLClassLoader.java:248) at java.net.URLClassLoader.access$100(URLClassLoader.java:56) at java.net.URLClassLoader$1.run(URLClassLoader.java:195) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:297) at java.lang.ClassLoader.loadClass(ClassLoader.java:290) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:286) at java.lang.ClassLoader.loadClass(ClassLoader.java:253) at org.apache.tomcat.loader.AdaptiveClassLoader.loadClass(AdaptiveClassLoader.j ava:446) at java.lang.ClassLoader.loadClass(ClassLoader.java:253) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313) at com.filonet.jdf.servlet.MultipartRequest.init(MultipartRequest.java:139) at jsp.fileop.upload._0002fjsp_0002ffileop_0002fupload_0002fUploadGo_000 5fen_0002ejspUploadGo_0005fen_jsp_0._jspService(_0002fjsp_0002ffileop_0002fu ploa d_0002fUploadGo_0005fen_0002ejspUploadGo_0005fen_jsp_0.java:97) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja va:177) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404) at org.apache.tomcat.core.Handler.service(Handler.java:286) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79 7) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743) at org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection (Ajp12ConnectionHandler.java:166) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498) at java.lang.Thread.run(Thread.java:484) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Question about Logging
Before I upgraded to Tomcat 3.2.1 I used JRUN. Under jrun I could bebug beans or servlets by placing System.out's in them and they would show up in jrun's log file. What does Tomcat do with the stout from these statements? Thanks, Keith - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Problem with Tomcat 3.1 and JDK 1.2.2...
Hi All, We are working on Tomcat 3.1 with JDK 1.2.2. and deployed all the .jsp pages in Apache server. For that we've created a new context in server.xml to take the .jsp pages from Apache. It's working fine. But the problem is multiple selection list box in it. After submitting the page, if I try to get the value from the List box (multiple) as String Value[] = request.getParameterValues(name); it is throwing an exception as, * Error: 500 Location: /cmt/browser/callagent/callagentmainpage.jsp Internal Servlet Error: javax.servlet.ServletException at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp l.java:386) at browser.callagent._0002fbrowser_0002fcallagent_0002fcallagentmainpage_0002ej spcallagentmainpage_jsp_0._jspService(_0002fbrowser_0002fcallagent_0002fcall agentmainpage_0002ejspcallagentmainpage_jsp_0.java, Compiled Code) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java, Compiled Code) at javax.servlet.http.HttpServlet.service(HttpServlet.java, Compiled Code) at org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspServlet.ja va, Compiled Code) at org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java, Compiled Code) at org.apache.jasper.runtime.JspServlet.service(JspServlet.java, Compiled Code) at javax.servlet.http.HttpServlet.service(HttpServlet.java, Compiled Code) at org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java, Compiled Code) at org.apache.tomcat.core.ContextManager.service(ContextManager.java, Compiled Code) at org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection (Ajp12ConnectionHandler.java, Compiled Code) at org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java, Compiled Code) at java.lang.Thread.run(Thread.java, Compiled Code) Root cause: java.lang.NullPointerException at browser.callagent._0002fbrowser_0002fcallagent_0002fcallagentmainpage_0002ej spcallagentmainpage_jsp_0._jspService(_0002fbrowser_0002fcallagent_0002fcall agentmainpage_0002ejspcallagentmainpage_jsp_0.java, Compiled Code) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java, Compiled Code) at javax.servlet.http.HttpServlet.service(HttpServlet.java, Compiled Code) at org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspServlet.ja va, Compiled Code) at org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java, Compiled Code) at org.apache.jasper.runtime.JspServlet.service(JspServlet.java, Compiled Code) at javax.servlet.http.HttpServlet.service(HttpServlet.java, Compiled Code) at org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java, Compiled Code) at org.apache.tomcat.core.ContextManager.service(ContextManager.java, Compiled Code) at org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection (Ajp12ConnectionHandler.java, Compiled Code) at org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java, Compiled Code) at java.lang.Thread.run(Thread.java, Compiled Code) * Note : The same .jsp page is working fine if I use tomcat 3.1 and JDK 1.3. If any one find the solution for this problem please let me know. Thanks in advance, Subha . - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: what's mean wrong name. message?
When a Java class is compiled the package that its part of is stored as part of the .class file. This is what Java uses to determine which classes can access package (default) methods and variables. Simply moving the class file to a different directory does not change the package - it must be recompiled. The error you are seeing is Java telling you that the class you are trying to use (com.filonet.jdf.servlet.UploaddedFile) was compiled under a different name (com.lgeds.jdf.servlet.UploadedFile). You can solve this problem in one of two ways: 1. Edit the source java file to change the package line to "package com.filonet.jdf.servlet;" 2. Move the servlet to the .../WEB- INF/classes/com/lgeds/jdf/servlet directory Randy -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 08, 2001 11:33 AM To: [EMAIL PROTECTED]; Tomcat-Dev Subject: what's mean "wrong name." message? Help me...following error occurs. and i have no com.lgeds.jdf.servlet.UploadedFile class. but What does Tomcat talking to me ? Help me.. what's mean wrong name.? i already store a class file "UploadedFile.class" to "/usr/local/tomcat/webapps/en/WEB-INF/classes/com/filonet/jdf/servlet/" i wonder what's mean following line Ctx(/en): Exceptionblah blah...^^ Thanks. 2001-03-09 01:21:47 - Ctx( /en ): Exception in: R( /en + /jsp/fileop/upload/Uplo adGo_en.jsp + null) - javax.servlet.ServletException: com/filonet/jdf/servlet/Up loadedFile (wrong name: com/lgeds/jdf/servlet/UploadedFile) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:399) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404) at org.apache.tomcat.core.Handler.service(Handler.java:286) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79 7) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743) at org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection Ajp12ConnectionHandler.java:166) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool. java:498) at java.lang.Thread.run(Thread.java:484) Root cause: java.lang.NoClassDefFoundError: com/filonet/jdf/servlet/UploadedFile (wrong name : com/lgeds/jdf/servlet/UploadedFile) at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:486) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:111) at java.net.URLClassLoader.defineClass(URLClassLoader.java:248) at java.net.URLClassLoader.access$100(URLClassLoader.java:56) at java.net.URLClassLoader$1.run(URLClassLoader.java:195) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:297) at java.lang.ClassLoader.loadClass(ClassLoader.java:290) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:286) at java.lang.ClassLoader.loadClass(ClassLoader.java:253) at org.apache.tomcat.loader.AdaptiveClassLoader.loadClass(AdaptiveClassLoader.j ava:446) at java.lang.ClassLoader.loadClass(ClassLoader.java:253) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313) at com.filonet.jdf.servlet.MultipartRequest.init(MultipartRequest. java:139) at jsp.fileop.upload._0002fjsp_0002ffileop_0002fupload_0002fUploadGo_000 5fen_0002ejspUploadGo_0005fen_jsp_0._jspService(_0002fjsp_0002ffileop_0002fu ploa d_0002fUploadGo_0005fen_0002ejspUploadGo_0005fen_jsp_0.java:97) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja va:177) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404) at org.apache.tomcat.core.Handler.service(Handler.java:286) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79 7) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743) at org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection (Ajp12ConnectionHandler.java:166) at
Re: config.getInitParameter() still returning null
Milt Epstein wrote: [ ... ] I could be wrong, but I don't believe you have to define servlet-mapping's to get init-param's to work, just having defined the servlet is sufficient. However, in the URL, you do need to use the specific servlet-name you used in the servlet definition. (That's because you can define the same servlet class multiple times, with different servlet-name's and different init-param's.) So, according to the above web.xml, the URL that should be used is: http://your.domain.com/yourwebappname/servlet/Error [...] thanks for your email :-) and now I find mistake in my last email, the following is my new understanding about Servlet(not JSP) with jakarta-tomcat-4.0-b1 : 0 if we don't define any "named" servlet definition in webapps/myapp/WEB-INF/web.xml, then we can invoke MyServlet with the following way: http://localhost:8080/myapp/servlet/MyServlet it will invoke the "default/non-named" servlet definition 1 if we define the following in webapps/myapp/WEB-INF/web.xml: ... servlet-nameMyServlet_sn /servlet-name ... then we Also can invoke this servlet definition with this servlet-name: http://localhost:8080/myapp/servlet/MyServlet_sn 2 if we also define a servlet-mapping: servlet-mapping servlet-nameMyServlet_sn /servlet-name url-pattern /MyServlet_up/url-pattern /servlet-mapping then we Also can invoke this servlet definition with this url-pattern: http://localhost:8080/myapp/MyServlet_up and 1 and 2 will invoke the same "named" servlet definition whose name is MyServlet_sn. 3 from a email in "List.this" ^_^ , I find: if we directly use "MyServlet" as the servlet-name, and we invoke with the following way: http://localhost:8080/myapp/servlet/MyServlet we will goto that "named" servlet definition whose name is "MyServlet"- we will Not goto that "default/non-named" servlet definition. hope the above is right, otherwise I need to correct my "experience notebook" Again :-) or I need to use a pencial instead of a pen? :-) Bo Mar.08, 2001 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Please !!! Where can I find a documentation about the web.xml file !!!! Thanks
At 09:29 4/21/1980 +0200, Negrini Lilian, wrote: http://e-docs.bea.com/wls/docs60/programming/web_xml.html http://www.Google.com/search?q=documentation++web.xml+file Start Here to Find It Fast! - http://US-WebMasters.com/start.htm - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: web.xml configuration
Is there a way to hide the fact that the user is accessing a servlet? using /servlets/ in your path kinda gives it away :) -Original Message- From: Rob Tanner [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 08, 2001 11:44 AM To: Huiyuan Ma; [EMAIL PROTECTED]; Rob Tanner Subject: Re: web.xml configuration Presuming you have already created the application root, you should have a subdirectory in the root called WEB-INF which contains the web.xml file as well as one or both of two additional subdirs, "classes" and "lib". The servlet-class tags in web.xml should contain the full classpath within either of those directories. If, for example, you have a hierarchical directory structure in classes, say my/favorite/servlets, and a servlet named foo.class, the servlet-class is my/favorite/servlets/foo. If you simply have foo.class directly in the classes directory, the servlet-class is simply foo. If you're using a jar file, again it's the full classpath within the jar file that you need to declare within the servlet-class tag set. Hope that helps. -- Rob PS: Download the servlet 2.2 spec java.sun.com. It's a pdf file and not a hard read. Most of the generic servlet type questions I see on the list, that is, those questions that are not actually tomcat specific, are already answered right there. In fact, without reading that spec, if someone has only worked with tomcat, how would they even know what's tomcat specific and what pertains to any and all 2.2 compliant servlet containers (including jrun, servlet-exec, etc)? --On Thursday, March 08, 2001 07:58:59 AM -0800 Huiyuan Ma [EMAIL PROTECTED] wrote: --- Rob Tanner [EMAIL PROTECTED] wrote: --On Monday, March 05, 2001 11:34:13 AM -0500 "Brett W. McCoy" [EMAIL PROTECTED] wrote: I think for your mapping you don't want that full directory path for your url pattern. The idea is that you don't want to use that full path, but something simple that will get mapped automagically to that path. I think you just want url-patternnData/url-pattern in there. That probably won't work without a leading "/". Try this: servlet-mapping servlet-namenData/servlet-name url-pattern/nData/url-pattern /servlet-mapping I'm using a servlet but no jsp,so what is supposed to be put in the servlet-class /servlet class? Thanks. __ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/ _ _ _ _ __ _ _ _ _ /\_\_\_\_\/\_\ /\_\_\_\_\_\ /\/_/_/_/_/ /\/_/ \/_/_/_/_/_/ QUIDQUID LATINE DICTUM SIT, /\/_/__\/_/ __/\/_//\/_/ PROFUNDUM VIDITUR /\/_/_/_/_/ /\_\ /\/_//\/_/ /\/_/ \/_/ /\/_/_/\/_//\/_/ (Whatever is said in Latin \/_/ \/_/ \/_/_/_/_/ \/_/ appears profound) Rob Tanner McMinnville, Oregon [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Please !!! I seek some documentation about web.xml file
Download the Servlet 2.2 or 2.3 specification from http://java.sun.com/products/servlet/ Tomcat 3.2 implements the 2.2 spec and Tomcat 4.0 implements the 2.3 spec. The download file is a PDF and contains all the documentation for web.xml. Jason -Original Message-From: Negrini Lilian [mailto:[EMAIL PROTECTED]]Sent: Monday, April 21, 1980 3:36 AMTo: [EMAIL PROTECTED]Subject: Please !!! I seek some documentation about web.xml file thanks !!!
Re: SSL and US encryption law
I am not a lawyer... So do not pay (trust) me... But if you are just using JCE and JSSE from Sun, you are not writing any crypto code, you are making calls to crypto code. If your distributor in Taiwan can go to java.sun.com site, and download these things from the Sun's Web, your butt is covered. You did not export anything, Sun did... If you are really writing encryption software, you are in trouble, and you should really consider using JCE/JSSE... Jan [EMAIL PROTECTED] On Thu, 8 Mar 2001, Jim Canniff wrote: Does anyone know what the current law is regarding exporting products with SSL? We're building an application that will be deployed in Taiwan and in other non-US sites. I've read various things ranging from: can't export SSL at all to can only use 40 bit (56 if register certificate) encryption in those products. Any resources for current laws would be appreciated. Thanks. -Jim Jim Canniff Widax Corporation 508-862-2142 ext.110 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] Jan K. Labanowski|phone: 614-292-9279, FAX: 614-292-7168 Ohio Supercomputer Center|Internet: [EMAIL PROTECTED] 1224 Kinnear Rd, |http://www.ccl.net/chemistry.html Columbus, OH 43212-1163 |http://www.osc.edu/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Question regarding the JSP include action versus the JSP include directive
It is my understanding that the include directive is processed at page translation time and the jsp:include action is processed at request time. However, I seem to get the same functionality from both. I have a simple JSP that creates a java.util.Date object. I tried both forms of include expecting that the directive form would result in date and time at which the page was first translated and that the action form would provide the date and time of each request. Does tomcat 3.2.1 handle both include forms identically? Or am I doing something wrong? Thanks, Paul - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Unreachable servlets
-- How did you do to reach your servlet with tomcat??? thanks OK I have found it Gerard BORREILL wrote: Hello, There is probably something I do not understand, but I can't manage making my servlets reachable with tomcat . I am using Tomcat 3.2.1 with apache on Solaris. So I have generated the mod_jk module. I have set in the web.xml file of my servlet : servlet-mapping servlet-nameMyServlet/servlet-name url-pattern/Test/url-pattern /servlet-mapping So I presume that the URL to my servlet should end with"/Test" My .war file (myweb.war) is under ../dist/tomcat/webapps/ and is uncompressed when I start Tomcat. The servlet is started (the init() method is called). So it means it is installed in the right place and Tomcat knows where to find it, and the servlet does not crash when being started. What URL should I type to call my servlet ? I am using a little java client that sends data to the servlet. I have tried http://myHost/myweb/Test http://myHost/myweb/servlet/Test ans so many others... But my client still fails to reach the servlet. (Error 404 file not found) What's wrong ? In advance, thank you, Grard - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: SSL and US encryption law
http://www.apacheweek.com/features/ssl - Original Message - From: "Jim Canniff" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, March 08, 2001 11:53 AM Subject: SSL and US encryption law Does anyone know what the current law is regarding exporting products with SSL? We're building an application that will be deployed in Taiwan and in other non-US sites. I've read various things ranging from: can't export SSL at all to can only use 40 bit (56 if register certificate) encryption in those products. Any resources for current laws would be appreciated. Thanks. -Jim Jim Canniff Widax Corporation 508-862-2142 ext.110 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Tomcat/Apache port number use
Hi Parayali , Nope, these commands are present in the mod_jk_conf-auto file, generated when Tomcat is started. The file is called from the httpd.conf file, and is loaded. rgds Hans At 09:04 8-3-01 -0800, you wrote: Looks like you missed out LoadModule and JkWorkerFile LoadModule jk_module modules/mod_jk.so JkWorkersFile /http/apps/tomcat/conf/workers.properties JkLogFile /http/apps/apache/logs/mod_jk.log JkLogLevel error JkMount /*.jsp ajp12 JkMount /servlet/* ajp12 -Original Message- From: Christopher Albert [SMTP:[EMAIL PROTECTED]] Sent: Thursday, March 08, 2001 7:50 AM To: [EMAIL PROTECTED] Subject: Re: Tomcat/Apache port number use Well Hans, I tried to ask all the simple, obvious questions. TOmcat is working fine(8080), Apache is working fine and seems properly configured. I can't give you any other advice but to go back, get the src for mod_jk and recompile and install it (using apxs if you can) with the right solaris parameters. There have been some postings on this list for those. Good luck, Chris Hans Kind wrote: Hi Chris, Yes it does:~( rgds hans At 14:48 8-3-01 +0100, you wrote: Hans, I'm running out of ideas too. One last: does your server.xml file contain the lines !-- Apache AJP12 support. This is also used to shut down tomcat. -- Connector className=org.apache.tomcat.service.PoolTcpConnector Parameter name=handler value=org.apache.tomcat.service.connector.Ajp12ConnectionHandler/ Parameter name=port value=8007/ /Connector Chris Hans Kind wrote: Hi Chris, workers.properties worker.ajp12.port=8007 worker.ajp12.host=localhost worker.ajp12.type=ajp12 mod_jk_conf-auto JkMount /*.jsp ajp12 JkMount /servlet/* ajp12 ... JkMount /examples/servlet/* ajp12 JkMount /examples/*.jsp ajp12 Staring Tomcate generates these file, and httpd.conf include the mod_jk_conf-auto file. There is nothing else running on port 8007. I'm very very lost:~( rgds Hans At 13:35 8-3-01 +0100, you wrote: Hans Kind wrote: Hi Chris, We run on a Solaris 2.7 server, with Apache DSO 1.3.14. The workers.properties file has been updated so that workers.tomcat_home, workers.java_home point to the correct location on the server. Changed ps to the correct syntax on Unix, ps=/. Used apxs to install mod_jk from source Included the following line in httpd.conf file: Include /opt2/kindserv/tomcat/conf/mod_jk.conf-auto http://www.kindserver.com:8080/examples/jsp/dates/date.jsp is working as expected http://www.kindserver.com/examples/jsp/dates/date.jsp results in a server error with the following in the mod_jk.log [jk_connect.c (143)]: jk_open_socket, connect() failed errno = 146 [jk_ajp12_worker.c (152)]: In jk_endpoint_t::service, Error sd = -1 rgds Hans At 15:47 7-3-01 +0100, you wrote: Hans Kind wrote: Hi, We got Apache running on port 80, and Tomcat on port 8080. Running http://www.kindserver.com:8080 takes me to the Tomcat example page, and the JSP and JServ pages work ok. When I go to http://www.kindserver.com/examples/servlets/ http://www.kindserver.com/examples/jsp/ all the examples return a document contains no data error. How do I setup Apache so that without the need of the port number in the url, the JServ and JSP pages are handled bij Tomcat corecty. I went trough the install instructions, mailing lists and other documentation, but couldn't find a slid answe:~( rgds Hans Kind - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] Hans, You need to get and install the appropriate apache module; porbably mod_jk . There are Mod_jk faqs available on the jakarta site. Cant really tell you more without details about you apache, tomcat versions and your system. Chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] Hans, You are getting a connection refused error, http://www.linuxos.net/docs/solaris/common_err.html#korea146 Since I can get the source
SSL error
Title: JSP entity references in Tomcat. Hi all, I installed SSL with tomcat, when I start the server there is no errors, if I connect to port http:\\localhost:8334 I get a "Unrecognized SSL handshake" error. When I try with https:\\localhost I cant see the tomcat certificate. What could be the problem !!
Tomcat
Hi; Does Tomcat compile ".asp files" ? thanks Ugur _ Get your FREE download of MSN Explorer at http://explorer.msn.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Admin Context
Title: RE: Admin Context You need to add an admin context in server.xml like Context path=/admin docBase=webapps/admin crossContext=true debug=0 reloadable=false trusted=true /Context also and entry in tomcat-users.xml user name=admin password=yourownadminpassword roles=admin / Now restart tomcat Good Luck! Jayesh -Original Message- From: Dalia, Keith A - TOS-DITT1 [SMTP:[EMAIL PROTECTED]] Sent: Thursday, March 08, 2001 9:41 AM To: '[EMAIL PROTECTED]' Subject: Admin Context When I try to get to /contextAdmin/contextAdmin.html I'm prompted to login but I do not know what the login id is. I fairly comfortable with configuring tomcat 3.2.1 but I haven't messed with the security stuff yet. Is this because there is no entry for the admin context in the tomcat.policy file or does this have to do with trusted=false in the server.xml file. Thanks in advance, Keith - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Question about Logging
I figured it out. Just set verbosityLevel = "DEBUG". -Original Message- From: Dalia, Keith A - TOS-DITT1 [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 08, 2001 9:46 AM To: '[EMAIL PROTECTED]' Subject: Question about Logging Before I upgraded to Tomcat 3.2.1 I used JRUN. Under jrun I could bebug beans or servlets by placing System.out's in them and they would show up in jrun's log file. What does Tomcat do with the stout from these statements? Thanks, Keith - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: config.getInitParameter() still returning null
Just to clear up what i'm trying to do: not having any problems getting init parameters using servlets, the following code in web.xml will achieve that: servlet servlet-nameMyServlet/servlet-name servlet-classMyServlet/servlet-class init-param param-namedebug/param-name param-valuetrue/param-value /init-param /servlet The problem is accessing init-params exclusively in JSPs without any servlets at all. In theory this should be possible as a JSP is a servlet but it's proving very difficult to do this. Right now i'm working on a background servlet for the JSP to make these init-params possible. I'll post solution when it's done. Bo Xu [EMAIL PROTECTED] 03/08/01 10:09 AM Please respond to tomcat-user To:[EMAIL PROTECTED] cc: Subject:Re: config.getInitParameter() still returning null Milt Epstein wrote: [ ... ] I could be wrong, but I don't believe you have to define servlet-mapping's to get init-param's to work, just having defined the servlet is sufficient. However, in the URL, you do need to use the specific servlet-name you used in the servlet definition. (That's because you can define the same servlet class multiple times, with different servlet-name's and different init-param's.) So, according to the above web.xml, the URL that should be used is: http://your.domain.com/yourwebappname/servlet/Error [...] thanks for your email :-) and now I find mistake in my last email, the following is my new understanding about Servlet(not JSP) with jakarta-tomcat-4.0-b1 : 0 if we don't define any named servlet definition in webapps/myapp/WEB-INF/web.xml, then we can invoke MyServlet with the following way: http://localhost:8080/myapp/servlet/MyServlet it will invoke the default/non-named servlet definition 1 if we define the following in webapps/myapp/WEB-INF/web.xml: ... servlet-nameMyServlet_sn /servlet-name ... then we Also can invoke this servlet definition with this servlet-name: http://localhost:8080/myapp/servlet/MyServlet_sn 2 if we also define a servlet-mapping: servlet-mapping servlet-nameMyServlet_sn /servlet-name url-pattern /MyServlet_up/url-pattern /servlet-mapping then we Also can invoke this servlet definition with this url-pattern: http://localhost:8080/myapp/MyServlet_up and 1 and 2 will invoke the same named servlet definition whose name is MyServlet_sn. 3 from a email in List.this ^_^ , I find: if we directly use MyServlet as the servlet-name, and we invoke with the following way: http://localhost:8080/myapp/servlet/MyServlet we will goto that named servlet definition whose name is MyServlet- we will Not goto that default/non-named servlet definition. hope the above is right, otherwise I need to correct my experience notebook Again :-) or I need to use a pencial instead of a pen? :-) Bo Mar.08, 2001 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: saving a file on client's machine using servlets
Scott, Thanks. We already have this functionality in Turbine, but I will forward it to James Li who was originally assigned this piece. Cheers, Todd V. -Original Message- From: Scott Walter [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 07, 2001 10:20 AM To: Todd VanderVeen Subject: RE: saving a file on client's machine using servlets Below is some code I have written which will take a file that was uploaded from an html page that has the file control on it to a servlet. The servlet then inserts the file into a database, it can be easily modified to save to a disk file. FYI--I use the o'reilley package for working with fileparts within the http header so you will need to download it from o'reilley to get it to work. package sitemanager.shr.upload; import java.io.*; import javax.servlet.*; import javax.servlet.http.*; import com.oreilly.servlet.multipart.*; import sitemanager.shr.app.AppManager; import java.sql.*; /** * Description of the Class * *@author Scott F. Walter *@createdFebruary 17, 2001 */ public class UploadContent extends HttpServlet { /** * Description of the Method * *@param request Description of Parameter *@param response Description of Parameter *@exception IOException Description of Exception *@exception ServletException Description of Exception */ public void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException { } /** * Description of the Method * *@param request Description of Parameter *@param response Description of Parameter *@exception IOException Description of Exception *@exception ServletException Description of Exception */ public void doPost(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException { MultipartParser mp = new MultipartParser(request, 1024 * 1024); Part p = mp.readNextPart(); Connection conn = null; byte[] fileData = null; byte[] fileData2 = null; try { conn = AppManager.getConnection(); //while(p != null) { if (p instanceof FilePart) { ByteArrayOutputStream ba = new ByteArrayOutputStream(); ((FilePart) p).writeTo(ba); fileData = ba.toByteArray(); PreparedStatement stmt = conn.prepareStatement("INSERT INTO sm_banners (filename,bannerimage) values(?,?)"); stmt.setString(1, ((FilePart) p).getFileName()); stmt.setBytes(2, fileData); stmt.executeUpdate(); stmt.close(); Statement stmt2 = conn.createStatement(); ResultSet rs = stmt2.executeQuery("select bannerimage from sm_banners"); rs.next(); fileData2 = rs.getBytes(1); } //p = mp.readNextPart(); //} } catch (Exception e) { sitemanager.util.Logger.log(e); } finally { try { conn.close(); } catch (Exception e) { sitemanager.util.Logger.log(e); } } response.setContentType("text/html"); ServletOutputStream out = response.getOutputStream(); out.println("the file was uploaded!"); out.close(); } } --- Adilakshmi Lingam [EMAIL PROTECTED] wrote: Can you please point me to some info on how to do that. I'm kind of a newbie in this area. thanks in advance, Lakshmi -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of David Crooke Sent: Monday, March 05, 2001 11:28 PM To: [EMAIL PROTECTED] Subject: Re: saving a file on client's machine using servlets Sounds like a case for JavaScript, or possibly an applet. Pushing to the server and back is kinda clonky. If you just want them to create a file and save to disk, why not have them crank up a local text editor? "Burgess, Jay" wrote: I believe one solution is to POST the form data from the text area to you servlet, then return it right back, but with an unknown MIME type. Typically,
SSLRequireSSL
I am using Apache + mod_ssl with Tomcat, and can't seem to get certain directives to work with Tomcat files. I have something like this: Directory "D:/dev/public_html/Login" SSLRequireSSL /Directory in my httpd.conf, within the 443 virtual host , but acessing the URL in question without https:// still works, which it shouldn't. It should be denying access to non-SSL enabled connections and only allowing encrypted connections. I have mod_jk.conf included before all of my SSL stuff, but this doesn't seem to matter. Even putting my JKMount directives inside the virtual host section doesn't make a difference, non-SSL connections are still going through and not being denied. Is there something in Tomcat I also need to configure? I should point out that I am not enabling SSL for the entire site, just specific directories and files within the site. -- Brett http://www.chapelperilous.net/~bmccoy/ I don't do it for the money. -- Donald Trump, Art of the Deal - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: web.xml configuration
just map your servlet to a name of some kind. I like to use .html mappings in your web.xml... web-app servlet servlet-namemyservlet/servlet-name servlet-classcom.my.servlets.myservlet/servlet-class /servlet servlet-mapping servlet-namemyservlet/servlet-name url-pattern/mypage.html/url-pattern /servlet-mapping /web-app Arafat Mohamed wrote: Is there a way to hide the fact that the user is accessing a servlet? using /servlets/ in your path kinda gives it away :) -Original Message- From: Rob Tanner [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 08, 2001 11:44 AM To: Huiyuan Ma; [EMAIL PROTECTED]; Rob Tanner Subject: Re: web.xml configuration Presuming you have already created the application root, you should have a subdirectory in the root called WEB-INF which contains the web.xml file as well as one or both of two additional subdirs, "classes" and "lib". The servlet-class tags in web.xml should contain the full classpath within either of those directories. If, for example, you have a hierarchical directory structure in classes, say my/favorite/servlets, and a servlet named foo.class, the servlet-class is my/favorite/servlets/foo. If you simply have foo.class directly in the classes directory, the servlet-class is simply foo. If you're using a jar file, again it's the full classpath within the jar file that you need to declare within the servlet-class tag set. Hope that helps. -- Rob PS: Download the servlet 2.2 spec java.sun.com. It's a pdf file and not a hard read. Most of the generic servlet type questions I see on the list, that is, those questions that are not actually tomcat specific, are already answered right there. In fact, without reading that spec, if someone has only worked with tomcat, how would they even know what's tomcat specific and what pertains to any and all 2.2 compliant servlet containers (including jrun, servlet-exec, etc)? --On Thursday, March 08, 2001 07:58:59 AM -0800 Huiyuan Ma [EMAIL PROTECTED] wrote: --- Rob Tanner [EMAIL PROTECTED] wrote: --On Monday, March 05, 2001 11:34:13 AM -0500 "Brett W. McCoy" [EMAIL PROTECTED] wrote: I think for your mapping you don't want that full directory path for your url pattern. The idea is that you don't want to use that full path, but something simple that will get mapped automagically to that path. I think you just want url-patternnData/url-pattern in there. That probably won't work without a leading "/". Try this: servlet-mapping servlet-namenData/servlet-name url-pattern/nData/url-pattern /servlet-mapping I'm using a servlet but no jsp,so what is supposed to be put in the servlet-class /servlet class? Thanks. __ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/ _ _ _ _ __ _ _ _ _ /\_\_\_\_\/\_\ /\_\_\_\_\_\ /\/_/_/_/_/ /\/_/ \/_/_/_/_/_/ QUIDQUID LATINE DICTUM SIT, /\/_/__\/_/ __/\/_//\/_/ PROFUNDUM VIDITUR /\/_/_/_/_/ /\_\ /\/_//\/_/ /\/_/ \/_/ /\/_/_/\/_//\/_/ (Whatever is said in Latin \/_/ \/_/ \/_/_/_/_/ \/_/ appears profound) Rob Tanner McMinnville, Oregon [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] begin:vcard n:Goss;Matt tel;fax:919-657-1501 tel;work:919-657-1432 x-mozilla-html:FALSE adr:;; version:2.1 email;internet:[EMAIL PROTECTED] fn:Matt end:vcard - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
executing a http request within a tomcat servlet
bon giorno, i'm in a doGet method of a servlet and want to switch into a http-client for a moment (doing a get or a post), before handle back the received stuff to my original client. i did like this: HttpURLConnection theHttpConnection = null; try{ URL url = new URL("http://www.apache.org"); HttpURLConnection con = (HttpURLConnection)url.openConnection(); InputStream is = con.getInputStream(); } catch (IOException ex) { ex.printStackTrace(); } and now the result: java.net.UnknownHostException: www.apache.org at java.net.InetAddress.getAllByName0(InetAddress.java:571) at java.net.InetAddress.getAllByName0(InetAddress.java:540) at java.net.InetAddress.getByName(InetAddress.java:449) [...] if i hand in a local url, for example the url of another servlet on my local tomcat, i get: java.io.FileNotFoundException: http://127.0.0.1:8080/foo/servlet/FunkyServlet?ID=0741825 who can explain and improve? thank you so much! carl _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Problem with Tomcat 3.1 and JDK 1.2.2...
Without seeing your page this is just a guess, but I would say that you are trying to reference one of the indexes of Value without first checking if its null. (i.e. Value[0] or Value.length). I say this because the root cause is a NullPointerException. I know that this does work just fine in Tomcat 3.2 w/JDK1.2 as I use it. Randy -Original Message- From: Subha Gowri [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 08, 2001 12:22 AM To: '[EMAIL PROTECTED]' Subject: Problem with Tomcat 3.1 and JDK 1.2.2... Hi All, We are working on Tomcat 3.1 with JDK 1.2.2. and deployed all the .jsp pages in Apache server. For that we've created a new context in server.xml to take the .jsp pages from Apache. It's working fine. But the problem is multiple selection list box in it. After submitting the page, if I try to get the value from the List box (multiple) as String Value[] = request.getParameterValues(name); it is throwing an exception as, * Error: 500 Location: /cmt/browser/callagent/callagentmainpage.jsp Internal Servlet Error: javax.servlet.ServletException at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp l.java:386) at browser.callagent._0002fbrowser_0002fcallagent_0002fcallagentmainpage_0002ej spcallagentmainpage_jsp_0._jspService(_0002fbrowser_0002fcallagent_0002fcall agentmainpage_0002ejspcallagentmainpage_jsp_0.java, Compiled Code) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java, Compiled Code) at javax.servlet.http.HttpServlet.service(HttpServlet.java, Compiled Code) at org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspServlet.ja va, Compiled Code) at org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java, Compiled Code) at org.apache.jasper.runtime.JspServlet.service(JspServlet.java, Compiled Code) at javax.servlet.http.HttpServlet.service(HttpServlet.java, Compiled Code) at org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java, Compiled Code) at org.apache.tomcat.core.ContextManager.service(ContextManager.java, Compiled Code) at org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection (Ajp12ConnectionHandler.java, Compiled Code) at org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java, Compiled Code) at java.lang.Thread.run(Thread.java, Compiled Code) Root cause: java.lang.NullPointerException at browser.callagent._0002fbrowser_0002fcallagent_0002fcallagentmainpage_0002ej spcallagentmainpage_jsp_0._jspService(_0002fbrowser_0002fcallagent_0002fcall agentmainpage_0002ejspcallagentmainpage_jsp_0.java, Compiled Code) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java, Compiled Code) at javax.servlet.http.HttpServlet.service(HttpServlet.java, Compiled Code) at org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspServlet.ja va, Compiled Code) at org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java, Compiled Code) at org.apache.jasper.runtime.JspServlet.service(JspServlet.java, Compiled Code) at javax.servlet.http.HttpServlet.service(HttpServlet.java, Compiled Code) at org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java, Compiled Code) at org.apache.tomcat.core.ContextManager.service(ContextManager.java, Compiled Code) at org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection (Ajp12ConnectionHandler.java, Compiled Code) at org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java, Compiled Code) at java.lang.Thread.run(Thread.java, Compiled Code) * Note : The same .jsp page is working fine if I use tomcat 3.1 and JDK 1.3. If any one find the solution for this problem please let me know. Thanks in advance, Subha . - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: SSL and US encryption law
The http://www.apacheweek.com/features/ssl is old news, since RSA patent expired in September 2000, and you can now use RSA stuff without any problems of rights. The rights are in public domain. So all the issues concerning the patent protection of SSL are not up to date there. There are some patent issues, (e.g., with IDEA Associates algorithms which I believe are legal to use by anyone in the US, but not in Europe), but these are minor, since there are always alternative cyphers which can be used in place of patented ones. Jan On Thu, 8 Mar 2001, Srinivasan Sadasivam wrote: http://www.apacheweek.com/features/ssl - Original Message - From: "Jim Canniff" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, March 08, 2001 11:53 AM Subject: SSL and US encryption law Does anyone know what the current law is regarding exporting products with SSL? We're building an application that will be deployed in Taiwan and in other non-US sites. I've read various things ranging from: can't export SSL at all to can only use 40 bit (56 if register certificate) encryption in those products. Any resources for current laws would be appreciated. Thanks. -Jim Jim Canniff Widax Corporation 508-862-2142 ext.110 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] Jan K. Labanowski|phone: 614-292-9279, FAX: 614-292-7168 Ohio Supercomputer Center|Internet: [EMAIL PROTECTED] 1224 Kinnear Rd, |http://www.ccl.net/chemistry.html Columbus, OH 43212-1163 |http://www.osc.edu/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Question regarding the JSP include action versus the JSP includedirective
the include directive is at page translation, but it's the page source... in pseudo jsp :) A: HIgetDate() B: HIgetDate() C: include A jsp:include B C becomes: HIgetDate() requestdispatcher( B ).include() and that is what is executed.. thus both getDate() calls are made are request time.. fern On Thu, 8 Mar 2001, Paul J Deitel wrote: It is my understanding that the include directive is processed at page translation time and the jsp:include action is processed at request time. However, I seem to get the same functionality from both. I have a simple JSP that creates a java.util.Date object. I tried both forms of include expecting that the directive form would result in date and time at which the page was first translated and that the action form would provide the date and time of each request. Does tomcat 3.2.1 handle both include forms identically? Or am I doing something wrong? Thanks, Paul - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: web.xml configuration
One way to do it would be to a servlet mapping to your web.xml. Assume you've already defined a servlet named myServlet. Add a servlet mapping that looks like this: servlet-mapping servlet-namemyServlet/servlet-name url-pattern/foo/url-pattern /servlet-mapping The servlet is now available from http://myhost/mycontext/foo You can use wildcards in the url-pattern if you wish. Jason -Original Message- From: Arafat Mohamed [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 08, 2001 1:35 PM To: [EMAIL PROTECTED] Subject: RE: web.xml configuration Is there a way to hide the fact that the user is accessing a servlet? using /servlets/ in your path kinda gives it away :) -Original Message- From: Rob Tanner [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 08, 2001 11:44 AM To: Huiyuan Ma; [EMAIL PROTECTED]; Rob Tanner Subject: Re: web.xml configuration Presuming you have already created the application root, you should have a subdirectory in the root called WEB-INF which contains the web.xml file as well as one or both of two additional subdirs, "classes" and "lib". The servlet-class tags in web.xml should contain the full classpath within either of those directories. If, for example, you have a hierarchical directory structure in classes, say my/favorite/servlets, and a servlet named foo.class, the servlet-class is my/favorite/servlets/foo. If you simply have foo.class directly in the classes directory, the servlet-class is simply foo. If you're using a jar file, again it's the full classpath within the jar file that you need to declare within the servlet-class tag set. Hope that helps. -- Rob PS: Download the servlet 2.2 spec java.sun.com. It's a pdf file and not a hard read. Most of the generic servlet type questions I see on the list, that is, those questions that are not actually tomcat specific, are already answered right there. In fact, without reading that spec, if someone has only worked with tomcat, how would they even know what's tomcat specific and what pertains to any and all 2.2 compliant servlet containers (including jrun, servlet-exec, etc)? --On Thursday, March 08, 2001 07:58:59 AM -0800 Huiyuan Ma [EMAIL PROTECTED] wrote: --- Rob Tanner [EMAIL PROTECTED] wrote: --On Monday, March 05, 2001 11:34:13 AM -0500 "Brett W. McCoy" [EMAIL PROTECTED] wrote: I think for your mapping you don't want that full directory path for your url pattern. The idea is that you don't want to use that full path, but something simple that will get mapped automagically to that path. I think you just want url-patternnData/url-pattern in there. That probably won't work without a leading "/". Try this: servlet-mapping servlet-namenData/servlet-name url-pattern/nData/url-pattern /servlet-mapping I'm using a servlet but no jsp,so what is supposed to be put in the servlet-class /servlet class? Thanks. __ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/ _ _ _ _ __ _ _ _ _ /\_\_\_\_\/\_\ /\_\_\_\_\_\ /\/_/_/_/_/ /\/_/ \/_/_/_/_/_/ QUIDQUID LATINE DICTUM SIT, /\/_/__\/_/ __/\/_//\/_/ PROFUNDUM VIDITUR /\/_/_/_/_/ /\_\ /\/_//\/_/ /\/_/ \/_/ /\/_/_/\/_//\/_/ (Whatever is said in Latin \/_/ \/_/ \/_/_/_/_/ \/_/ appears profound) Rob Tanner McMinnville, Oregon [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: How to control session timeout?
Call setMaxInactiveInterval(-1) for your session. You can recognize closing a browser over JavaScript in some cases and send a request to close the session. Call invalidate() in this case. Dmitry R., [EMAIL PROTECTED] Chief Architect, MetricStream.COM Santa Clara, CA -Original Message- From:Peter Dai [EMAIL PROTECTED] Sent:Thu, 8 Mar 2001 10:56:11 -0800 To: [EMAIL PROTECTED] Subject: How to control session timeout? I am using Tomcat 3.2.1. For one application, I need very long session timeout, so all the JSPs involved will be able to access the java bean what has session scope. I would like the session invalidated only by closing the browser. I tried to set timeout in web.xml to a very long value, session-config session-timeout 360 /session-timeout /session-config Please let me know what else I need to do. Configuration: Apache + Tomcat + mod_jk + ajp13. No load balancing. Thanks, Peter Dai - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] ___ Visit http://www.visto.com/info, your free web-based communications center. Visto.com. Life on the Dot. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: getSession(true) AND SecureRandom
Hi again, just a couple of things about this little headache of mine :-) : 1. -It seems that SecureRandom initializes at startup time since Tomcat 3.2.2 (currently beta :- ( ) 2.- So. what about that load-on-startup tag?? What are the possible values it may have? Thanks for the replies - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
request.sendRedirect()
I am trying to understand the behavior of sendRedirect(). The Servlet Spec states: The sendRedirect method will set the appropriate headers and content body to direct the client to a different URL. It is legal to call this method with a relative URL path, however the underlying container must translate the relative path to a fully qualified URL for transmission back to the client. If a partial URL is given and, for whatever reason, cannot be converted into a valid URL, then this method must throw an IllegalArgumentException. What I find somewhat ambiguous is the line "the underlying container must translate the relative path to a fully qualified URL". Does this the container should insert the context path in the URL? That is, suppose I have an application whose root is /Test. In my code, I do the following: response.sendRedirect("/ReallyATest"); Should the address sent to the client be: A) http://myserver/ReallyATest B) http://myserver/Test/ReallyATest It seems that Apache follows A. It does not insert the context path. However, I am also using IBM WebSphere 3.5 and it does B! So, which is the right one? For now, I will use the following work around for portability: response.sendRedirect(request.getRemoteHost() + request.getContextPath() + "ReallyATest"); Thanks, Paolo - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Problem with caching
Hi, what should i do so that if a user logins in and caches a dynamic page, other users do not have access to this page. Or i'll be more than happy even if i know how to make the server not cache these pages so that only users who go step by step only will have access to those respective pages. Thank you in advance Uday - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: tomcat runs on Macintosh
Tomcat also worked from me inj an Apple Powerbook (Mac OS 9). I'm also waiting for Mac OS X (I love its Unix and BSD background !!) Cheers -- Vctor A. Rodrguez ( http://www.bit-man.com.ar) Telefnica de Argentina - http://www.Telefonica.com.ar Tel. (54-11) 4333-7305 - Fax: (54-11) 4303-5586 int. 1680 -Mensaje original- De: Bob Rachael Flannery [mailto:[EMAIL PROTECTED]] Enviado el: Sunday, March 04, 2001 20:58 Para: [EMAIL PROTECTED] Asunto: tomcat runs on Macintosh Howdy! I set MacIP to 127.0.0.1, customized server.xml to use virtual host on port 80, made an app, tomcat, with JBindery, and ran it. It's modeled on tomcat.sh. Netscape could pick up http://127.0.0.1/jsp/index.html and http://127.0.0.1/examples/index.html OK! The computer is an iMac SE Graphite. More as events develop. -- mitakuye oyasin Bob - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: tomcat runs on Macintosh
Tomcat 3.2.1 runs great on Mac OS X beta on an iBook with a 300 mhz G3. However, I'm having weird time-outs, and hangs, and HotSpot exceptions with the same exact Tomcat and servlets on a G4 tower. I think this may mean the JVM tries to do things with the G4 velocity engine that it does not try to do with a G3 and this is causing problems. Is anyone else running Tomcat on OS X? - miles On Thursday, March 8, 2001, at 04:17 PM, Rodriguez Victor A. wrote: Tomcat also worked from me inj an Apple Powerbook (Mac OS 9). I'm also waiting for Mac OS X (I love its Unix and BSD background !!) Cheers -- Víctor A. Rodríguez ( http://www.bit-man.com.ar) Telefónica de Argentina - http://www.Telefonica.com.ar Tel. (54-11) 4333-7305 - Fax: (54-11) 4303-5586 int. 1680 > -Mensaje original- > De: Bob Rachael Flannery [mailto:[EMAIL PROTECTED]] > Enviado el: Sunday, March 04, 2001 20:58 > Para: [EMAIL PROTECTED] > Asunto: tomcat runs on Macintosh > > > Howdy! > > I set MacIP to 127.0.0.1, customized server.xml to use > virtual host on port 80, made an app, tomcat, with JBindery, and ran > it. It's modeled on tomcat.sh. Netscape could pick up > http://127.0.0.1/jsp/index.html and > http://127.0.0.1/examples/index.html OK! The computer is an iMac SE > Graphite. > > More as events develop. > -- > mitakuye oyasin > Bob > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, email: [EMAIL PROTECTED] > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Upcoming Tomcat book...
Adam, I am a Technology Consultant (my programming skills are not very high), and many times the security related task are the less known to the programmers (how to catch and use a security contexts, safe programming, etc.). I think that a chapter devoted to security related tasks would be avery good idea. Cheers. -- Vctor A. Rodrguez ( http://www.bit-man.com.ar) Telefnica de Argentina - http://www.Telefonica.com.ar Tel. (54-11) 4333-7305 - Fax: (54-11) 4303-5586 int. 1680 -Mensaje original- De: Adam Fowler [mailto:[EMAIL PROTECTED]] Enviado el: Saturday, March 03, 2001 05:52 Para: [EMAIL PROTECTED] Asunto: Upcoming Tomcat book... Hi all, I will shortly be writing a book for Sams Publishing in a similar format to the recently released(and well received) book on Python. I currently have the task of writing a proposal for content of the book. The book's target audience is web developers who will be using Tomcat. It will be based on Tomcat 4.0, but will also be useful for Tomcat 3.x. I am e-mailing this list to ask for serious suggestions for sections of the book. From installation through configuration to deploying custom applications. Any help would be appreciated and would benefit everyone as this book is meant to be for you people. If any Tomcat User Group(TUG) members wish to write user documentation for Tomcat (The 'paths' that have been discussed) then drop me an e-mail and maybe we can help each other. Regards, Adam. Adam Fowler Second year Computer Science undergraduate University of Wales, Aberystwyth Carroll College, WI, USA(2000-2001) web: http://gucciboy.dyndns.org/aff9 e-mail: [EMAIL PROTECTED] "Every new beginning comes from some other beginning's end" - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: getSession(true) AND SecureRandom
2.- So. what about that load-on-startup tag?? What are the possible values it may have? Those are part of the standard for servlet 2.2, and accordingly they are supposed to be set to a positive number, with the number indicating the relative order that the servlets should be loaded on startup. David - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Tomcat
No, Tomcat is not a compiler. Tomcat is a container for Java Servlets and JSP's -Original Message- From: Ugur Demiryurek [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 08, 2001 2:36 PM To: [EMAIL PROTECTED] Subject: Tomcat Hi; Does Tomcat compile ".asp files" ? thanks Ugur _ Get your FREE download of MSN Explorer at http://explorer.msn.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Please !!! Where can I find a documentation about the web.xml file !!!! Thanks
pls read the servlet specification chap.13 - Original Message - From: Negrini Lilian To: [EMAIL PROTECTED] Sent: Monday, April 21, 1980 8:29 AM Subject: Please !!! Where can I find a documentation about the web.xml file Thanks
Re: connecting tomcat3.2.1 to apache1.3.19 using mod_jk
1) Download the ApacheModuleJServ.zip file from http://jakarta.apache.org/builds/tomcat/release/v3.2.1/bin/win32/i386/ 2) Uncompress in ApacheModules directory and try again. It worked for me ramesh _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Documentation for web.xml, server.xml updated
I've put more time into the Tomcat documentation at http://www.mslinn.com/sites/tomcat Any comments and suggestions would be appreciated. Mike Slinn - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Name conflict when the same custom tag is included both a parent JSP and a sub JSP that is included by parent JSP
Hi, I got the error that complains that variables are already defined, when rendering a JSP page that includes a sub JSP and both of them has the same custom tag. The variables are specified at getVariableInfo() method in (the subclass of ) TagExtraInfo class. JSP engine parses the two JSP pages into one java file and name conflicts occur. The pages works fine in Weblogic5.1SP8 and WL generates java file for each JSP page even if it is included. Actually I uses Websphere Advanced Edition 3.5.2 (with fix_pack2) and I know here is not appropriate place to ask, but Websphere utilizes Jasper as JSP engine(for JSP1.1) anyway. I could work around the problem by adding the output of TagData.getId() to the variable names, but I'd like to know how Jasper handles the namespace issue. BTW, do you know which version is used for Websphere AE 3.5.2? Thanks in advance, Kenji Nakamura - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: request.sendRedirect()
response.sendRedirect("ReallyATest.jsp"); This worked for me, in the same servlet context cheers ramesh _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: connecting tomcat3.2.1 to apache1.3.19 using mod_jk
The subject says he wants mod_jk, not mod_jserv. The instructions are still valid if you simply substitute mod_jk. -Original Message- From: RameshBabu R Muthuvel [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 08, 2001 5:30 PM To: [EMAIL PROTECTED] Subject: Re: connecting tomcat3.2.1 to apache1.3.19 using mod_jk 1) Download the ApacheModuleJServ.zip file from http://jakarta.apache.org/builds/tomcat/release/v3.2.1/bin/win32/i386/ 2) Uncompress in ApacheModules directory and try again. It worked for me ramesh _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Null pointer exception using Oreilly multipart classes on Sparc
To be more exact, I get "null pointer exception" with MultiPartRequest, and "java.IOException: unexpected end of part" with MultiPartParser. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 08, 2001 11:43 AM To: [EMAIL PROTECTED] Subject: Null pointer exception using Oreilly multipart classes on Sparc We are using Jason's MultiPart classes to upload files. They tested out fine on our NT development platform using Sun JDK 1.3. Our production environment is Sun Solaris on Sparc, using Sun JDK 1.3. On Sun, upload of text files work fine, but trying to upload a Microsoft Word document results in a null pointer exception. I haven't debugged this yet, but I notice a file of zero size with the correct name in the upload directory, so the file part is obviously being found. We have a different app on a different Sparc box using JDK 1.2.2, and it appears to work okay. Are there any known issues with the Multipart classes on JDK 1.3 on Sparc? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Null pointer exception using Oreilly multipart classes on Sparc
I have just recently seen this too. In my case, I had two upload fields. Whichever one was first, would not work, the second one would. I then upgraded to the Jan 2001 version of the oreilly stuff, and started getting your message. I suspect a client issue - I am using IE 5.5 SP1. I have not yet been able to track down the problem though. Regards, Paul -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 08, 2001 6:06 PM To: [EMAIL PROTECTED] Subject: RE: Null pointer exception using Oreilly multipart classes on Sparc To be more exact, I get "null pointer exception" with MultiPartRequest, and "java.IOException: unexpected end of part" with MultiPartParser. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 08, 2001 11:43 AM To: [EMAIL PROTECTED] Subject: Null pointer exception using Oreilly multipart classes on Sparc We are using Jason's MultiPart classes to upload files. They tested out fine on our NT development platform using Sun JDK 1.3. Our production environment is Sun Solaris on Sparc, using Sun JDK 1.3. On Sun, upload of text files work fine, but trying to upload a Microsoft Word document results in a null pointer exception. I haven't debugged this yet, but I notice a file of zero size with the correct name in the upload directory, so the file part is obviously being found. We have a different app on a different Sparc box using JDK 1.2.2, and it appears to work okay. Are there any known issues with the Multipart classes on JDK 1.3 on Sparc? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
tomcat logging
hi guys just wondering if somebody can help me out i was looking at the page for resin (http://www.caucho.com/products/resin/java_tut/debug.xtp) which is anohter jsp engine. In the url above, it mentioned that resin supports logging/tracing of program execution. This would be most useful for debugging of an application me thinks... Does tomcat have any kind of support that is similar to this? If so, how do i use it? thanks! Jason _ http://store.yahoo.com.au - Yahoo! Store - The fastest, easiest way to open an online store. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]