Changing Port 8080 to 80
Anyone knows what the consequences are if I were to change from port 8080 to the default port 80? -B
security
Hi, Can anyone tell me how I set the security rights for tomcat? I want that no users can download my JSP pages. Now all users can see en download my jsp pages. If they type the url for example http://127.0.0.1/myweb/ they see al the JSP pages and they can download them. Can you set the security that the users can't see and download the pages? I thought that u can set the security in de web.xml, but I don't know how. Thank u, Pieter Heijms
RE: Changing Port 8080 to 80
Then you can only access your pages on port 80, that's the default browser port. If you set the port to 80 you can access your page without typing a port number. If you use port 8080 u must type your url:8080, because otherwise the browser doesn't know that on port 8080 a tomcat server is listening. Grtz Pieter -Original Message- From: Boon Yeo [mailto:[EMAIL PROTECTED]] Sent: vrijdag 16 maart 2001 9:29 To: [EMAIL PROTECTED] Subject: Changing Port 8080 to 80 Anyone knows what the consequences are if I were to change from port 8080 to the default port 80? -B
ODP: security
please refer to a http://localhost:8080/examples/jsp/security and examples context's web.xml file. vVolf -Oryginalna wiadomooe- Od: Heijns, P.J.B. [mailto:[EMAIL PROTECTED]] Wysano: 16 marca 2001 09:43 Do: [EMAIL PROTECTED] Temat: security Hi, Can anyone tell me how I set the security rights for tomcat? I want that no users can download my JSP pages. Now all users can see en download my jsp pages. If they type the url for example http://127.0.0.1/myweb/ they see al the JSP pages and they can download them. Can you set the security that the users can't see and download the pages? I thought that u can set the security in de web.xml, but I don't know how. Thank u, Pieter Heijms
expire
Hi, Does anyone know how I can expire a JSP page? I want that if you leave the JSP page it immediately expires, so that the users can't use the back button in there browser to go to the previous page. Thank u, Pieter Heijms
AW: Decoding form parameters
just use the opposite: URLDecoder.decode(param)... HTH Alan Hi, from a form I have to pass parameters containing special HTML characters thus I encode the values like below: % out.println("VALUE=\"" + URLEncoder.encode(value) + "\""); % That works fine but how can I decode the parameters in the servlet? Zsolt -- Zsolt Koppany Intland GmbH www.intland.com Schulze-Delitzsch-Strasse 16 D-70565 Stuttgart Tel: +49-711-7871080 Fax: +49-711-7871017
RE: expire
response.setHeader("Cache-Control","no-cache"); response.setHeader("Pragma","no-cache"); response.setHeader("Expires","Tue, 01 Jan 1980 1:00:00 GMT"); covers various browsers and os's and the like, but it still seems to get cached, particularly in ie 5, for unknown reasons and to an intermittent schedule :-( -Original Message- From: Heijns, P.J.B. [mailto:[EMAIL PROTECTED]] Sent: Friday, March 16, 2001 8:54 AM To: [EMAIL PROTECTED] Subject: expire Hi, Does anyone know how I can expire a JSP page? I want that if you leave the JSP page it immediately expires, so that the users can't use the back button in there browser to go to the previous page. Thank u, Pieter Heijms
Re: AW: Decoding form parameters
Hi Alan, thank you for the idea, I just forgot to mention that I cannot use jdk-1.2 stuff and URLDecoder.decode() is part of jdk-1.2. Zsolt Alan Stenhouse wrote: just use the opposite: URLDecoder.decode(param)... HTH Alan Hi, from a form I have to pass parameters containing special HTML characters thus I encode the values like below: % out.println("VALUE=\"" + URLEncoder.encode(value) + "\""); % That works fine but how can I decode the parameters in the servlet? Zsolt -- Zsolt Koppany Intland GmbH www.intland.com Schulze-Delitzsch-Strasse 16 D-70565 Stuttgart Tel: +49-711-7871080 Fax: +49-711-7871017 -- Zsolt Koppany Intland GmbH www.intland.com Schulze-Delitzsch-Strasse 16 D-70565 Stuttgart Tel: +49-711-7871080 Fax: +49-711-7871017
Re:3.2.1 commercial applications
We are using Tomcat + Apache as web enviroment in ING Bank in Poland. Tomasz Sucharzewski Reply Separator Subject:3.2.1 commercial applications Author: [EMAIL PROTECTED] Date: 01-03-15 15:09 Hi. Is there a list somewhere of Companies that use Tomcat for their commercial applications ? On the jakarta web site it says release builds are those that are ready for Prime Time. Does this mean I can use tomcat standalone or tomcat + apache for my commercial app ? Some kind of reference would be great as I'm getting some crap from my manager for using tomcat and custom tags. - ATTENTION: The information in this electronic mail message is private and confidential, and only intended for the addressee. Should you receive this message by mistake, you are hereby notified that any disclosure, reproduction, distribution or use of this message is strictly prohibited. Please inform the sender by reply transmission and delete the message without copying or opening it. Messages and attachments are scanned for all viruses known. If this message contains password-protected attachments, the files have NOT been scanned for viruses by the ING mail domain. Always scan attachments before opening them. -
Tomcat 3.3 - PID file
In Tomcat 3.3 (milestone 1 - unix) where exactly do you specify the location that tomcat should place its PID file? Thanks, Uresh Naik Capital Markets Company Tel +44 207 367 1161 Mobile 07970 618 690 Fax +44 207 367 1024 e-mail mailto:[EMAIL PROTECTED] web http://www.capco.com The information in this email is confidential and is intended solely for the addressee(s). Access to this email by anyone else is unauthorised. If you are not an intended recipient, you must not read, use or disseminate the information contained in the email. Any views expressed in this message are those of the individual sender, except where the sender specifically states them to be the views of The Capital Markets Company. http://www.capco.com ***
RE: expire
I tried, but it doesn't work. If I push the back button in my browser, the page isn't expired or correctly resfreshed. So I see the same previous page where I was before. I used IE, in netscape it works correctly. Grtz Pieter -Original Message- From: Alistair Hopkins [mailto:[EMAIL PROTECTED]] Sent: vrijdag 16 maart 2001 9:58 To: [EMAIL PROTECTED] Subject: RE: expire response.setHeader("Cache-Control","no-cache"); response.setHeader("Pragma","no-cache"); response.setHeader("Expires","Tue, 01 Jan 1980 1:00:00 GMT"); covers various browsers and os's and the like, but it still seems to get cached, particularly in ie 5, for unknown reasons and to an intermittent schedule :-( -Original Message- From: Heijns, P.J.B. [mailto:[EMAIL PROTECTED]] Sent: Friday, March 16, 2001 8:54 AM To: [EMAIL PROTECTED] Subject: expire Hi, Does anyone know how I can expire a JSP page? I want that if you leave the JSP page it immediately expires, so that the users can't use the back button in there browser to go to the previous page. Thank u, Pieter Heijms
RE: expire
i warned you about ie... it will prevent it from being reloaded from saved history, however. i never solved it and i tried very hard. keep me informed :-) -Original Message- From: Heijns, P.J.B. [mailto:[EMAIL PROTECTED]] Sent: Friday, March 16, 2001 10:00 AM To: '[EMAIL PROTECTED]' Subject: RE: expire I tried, but it doesn't work. If I push the back button in my browser, the page isn't expired or correctly resfreshed. So I see the same previous page where I was before. I used IE, in netscape it works correctly. Grtz Pieter -Original Message- From: Alistair Hopkins [mailto:[EMAIL PROTECTED]] Sent: vrijdag 16 maart 2001 9:58 To: [EMAIL PROTECTED] Subject: RE: expire response.setHeader("Cache-Control","no-cache"); response.setHeader("Pragma","no-cache"); response.setHeader("Expires","Tue, 01 Jan 1980 1:00:00 GMT"); covers various browsers and os's and the like, but it still seems to get cached, particularly in ie 5, for unknown reasons and to an intermittent schedule :-( -Original Message- From: Heijns, P.J.B. [mailto:[EMAIL PROTECTED]] Sent: Friday, March 16, 2001 8:54 AM To: [EMAIL PROTECTED] Subject: expire Hi, Does anyone know how I can expire a JSP page? I want that if you leave the JSP page it immediately expires, so that the users can't use the back button in there browser to go to the previous page. Thank u, Pieter Heijms
AW: expire
Hi, as I found somewhere in the No-ledgebase of microsoft i found a document describing exactly that kind of problem. The problem is that IE is using a 64 kb internal cache which is not affected by any pragma's, expires or cache-controls. the solution microsoft offered (which is no solution in my opinion) is to make two html- tags. regards, tom -Ursprngliche Nachricht- Von: Alistair Hopkins [mailto:[EMAIL PROTECTED]] Gesendet: Freitag, 16. Mrz 2001 11:42 An: [EMAIL PROTECTED] Betreff: RE: expire i warned you about ie... it will prevent it from being reloaded from saved history, however. i never solved it and i tried very hard. keep me informed :-) -Original Message- From: Heijns, P.J.B. [mailto:[EMAIL PROTECTED]] Sent: Friday, March 16, 2001 10:00 AM To: '[EMAIL PROTECTED]' Subject: RE: expire I tried, but it doesn't work. If I push the back button in my browser, the page isn't expired or correctly resfreshed. So I see the same previous page where I was before. I used IE, in netscape it works correctly. Grtz Pieter -Original Message- From: Alistair Hopkins [mailto:[EMAIL PROTECTED]] Sent: vrijdag 16 maart 2001 9:58 To: [EMAIL PROTECTED] Subject: RE: expire response.setHeader("Cache-Control","no-cache"); response.setHeader("Pragma","no-cache"); response.setHeader("Expires","Tue, 01 Jan 1980 1:00:00 GMT"); covers various browsers and os's and the like, but it still seems to get cached, particularly in ie 5, for unknown reasons and to an intermittent schedule :-( -Original Message- From: Heijns, P.J.B. [mailto:[EMAIL PROTECTED]] Sent: Friday, March 16, 2001 8:54 AM To: [EMAIL PROTECTED] Subject: expire Hi, Does anyone know how I can expire a JSP page? I want that if you leave the JSP page it immediately expires, so that the users can't use the back button in there browser to go to the previous page. Thank u, Pieter Heijms
RE: Changing Port 8080 to 80
If you are talking about Tomcat Standalone mode, you will also have to run is as 'root' (on Unix/Linux) which may be a security issue. If you run it with Apache, Apache is smart enough to switch from 'root' to whatever you specify. Tal -Original Message- From: Boon Yeo [mailto:[EMAIL PROTECTED]] Sent: Friday, March 16, 2001 12:29 AM To: [EMAIL PROTECTED] Subject: Changing Port 8080 to 80 Anyone knows what the consequences are if I were to change from port 8080 to the default port 80? -B
Re: Cache problem with IE
OUF !!! The config win2k + Tomcat3.2 + Jbuilder 4 in tomcat 3.2 folder's there is some examples how show how to do ! it's ugly,but it work! Merci a tous,merci thomas From SessionExample.java : out.println("html"); out.println("body bgcolor=\"white\""); out.println("head"); String title = "sessions.title"; out.println("title" + title + "/title"); out.println("/head"); out.println("body"); -- out.println("/body"); out.println("/html"); out.println("/body"); out.println("/html");
RE: expire
The only way that I have found to do this is to use some JavaScript to force the page to reload itself when the back button is pressed (use a combination of onLoad and onUnload event handlers - be careful, if you mess it up you will create an infinite reload loop). Randy -Original Message- From: Alistair Hopkins [mailto:[EMAIL PROTECTED]] Sent: Friday, March 16, 2001 3:58 AM To: [EMAIL PROTECTED] Subject: RE: expire response.setHeader("Cache-Control","no-cache"); response.setHeader("Pragma","no-cache"); response.setHeader("Expires","Tue, 01 Jan 1980 1:00:00 GMT"); covers various browsers and os's and the like, but it still seems to get cached, particularly in ie 5, for unknown reasons and to an intermittent schedule :-( -Original Message- From: Heijns, P.J.B. [mailto:[EMAIL PROTECTED]] Sent: Friday, March 16, 2001 8:54 AM To: [EMAIL PROTECTED] Subject: expire Hi, Does anyone know how I can expire a JSP page? I want that if you leave the JSP page it immediately expires, so that the users can't use the back button in there browser to go to the previous page. Thank u, Pieter Heijms
CLASPATH Order
Does anyone know if there is an option in Tomcat that would allow me to specify if I want my projects classpath (/WEB-INF/lib;/WEB-INF/classes) loaded before Tomcat's classpath? Thanks, -- Denny Chambers Linux Java Engineer Connex, Inc Voice: 770-455-7653 Fax: 770-455-7325
JDBC Connections
Can anyone help me? I have: - SCO UnixWare 7.1.1 - Informix Online 9.20 and JDBC 2.0 - JDK 1.2.2 - Tomcat 3.2.1 When a make a JDBC connection to the DBMS with a JavaBean (scope=session) and i close the browser, the connection remain up and it will go down only after several hours. How can i do to set up a connection that dies when i close the browser? Thank you.
RE: CLASPATH Order
I've read that this is done in tomcat 4.0, but not possible in 3.2? -Original Message- From: Denny Chambers [mailto:[EMAIL PROTECTED]] Sent: 16. marts 2001 14:22 To: [EMAIL PROTECTED] Subject: CLASPATH Order Does anyone know if there is an option in Tomcat that would allow me to specify if I want my projects classpath (/WEB-INF/lib;/WEB-INF/classes) loaded before Tomcat's classpath? Thanks, -- Denny Chambers Linux Java Engineer Connex, Inc Voice: 770-455-7653 Fax: 770-455-7325
application deployement with Apache/Tomcat
Hi all, I need help ! I have installed an Apache /Tomcat web server and need to deploy an existing application. But I failed to make this application work... Here is my system configuration : - WindowsNT4 - Apache 3.1.14 - Tomcat 3.2.1 - mod_jk and ajp13 Everything (I mean all Servlet/JSP examples) work fine. I unziped an archive of the application I want to deploy in the TOMCAT_HOME/webapps directory. My folder tree looks like : C:\Apache Group\Tomcat 3.2.1\webapps\admin \examples \appli_1\htdocs\... \servlet\... Then I tried several configurations (useless to list all stupid things I tried :o) ) which all failed to work... I know this application works with Netscape Enterprise 3.6 and Apache/JServ 1.1.1 unfortunately I can't get help from the people who performed these tests. I read many docs from jakarta.apache.org but, certainly because of my lack of knowledge about Java servlet development, I couldn't figure what's the process to integrate an existing Java web application in Apache/Tomcat. Please help me to understand what I have to do ! Any practical guidelines or conceptual explanation would be usefull ! (I'm web-experienced, but a Java newbie...) Please Help ! begin:vcard n:KLEIN;Thomas tel;cell:06 62 05 49 46 tel;home:[EMAIL PROTECTED] x-mozilla-html:TRUE org:APSIDE adr:;;;Toulouse;;;FRANCE version:2.1 email;internet:[EMAIL PROTECTED] fn:Thomas KLEIN end:vcard
apj12 problems
Hi, I set up an Apache Web server v1.3.14 and ApacheJServ v1.1.2. on WIN2000 Professional platform. Web server works OK, but I have encountered some problems with Apache JServ. JServ starts automatically without any problems, but if I want to run a servlet, a get an Internal Server Error (500) message from Apache (servlet engine is not working).Log files say the following: Apache Error.log: [Thu Mar 15 14:26:06 2001] [error] [client 100.100.100.1] client denied by server configuration: c:/program files/apache group/apache/www/jserv JServ mod_jserv.log: [15/03/2001 16:19:02:235] (EMERGENCY) ajp12: can not connect to host 100.100.100.1:8007[15/03/2001 16:19:02:235] (EMERGENCY) ajp12: connection fail[15/03/2001 16:19:02:235] (ERROR) an error returned handling request via protocol "ajpv12"[15/03/2001 16:19:02:235] (ERROR) an error returned handling request via protocol "status" I 've been going thru files jserv.conf, jserv.properties and zone.properties (which are described in details at the bottom of this mail) but I can't figure out what the problem could be. Any suggestions! Regards, Aleksander Pivk Here is detailed description of my configuration files *** jserv.conf ** LoadModule jserv_module "C:/Program Files/Apache JServ 1.1.2/ApacheModuleJServ.dll" IfModule mod_jserv.cApJServManual off ApJServProperties "C:/Program Files/Apache JServ 1.1.2/conf/jserv.properties"ApJServLogFile "C:/Program Files/Apache JServ 1.1.2/logs/mod_jserv.log"ApJServLogLevel info ApJServDefaultProtocol ajpv12 ApJServDefaultHostmy.domain.com ApJServDefaultPort 8007 ApJServSecretKey DISABLED ApJServMount /servlet /root ApJServMount /servlets /root ApJServMountCopy off/IfModule ** * jserv.properties ***wrapper.bin=c:\program files\jdk1.2.2\bin\java.exewrapper.classpath=C:\Program Files\Apache JServ 1.1.2\ApacheJServ.jarwrapper.classpath=c:\program files\jsdk2.0\lib\jsdk.jar bindaddress=localhostport=8007 zones=rootroot.properties=C:\Program Files\Apache JServ 1.1.2\servlets\zone.properties pool=falsepool.capacity=10pool.controller=org.apache.java.recycle.DefaultController security.selfservlet=truesecurity.maxConnections=50security.authentication=false log=truelog.file=c:\Program Files\Apache JServ 1.1.2\logs\jserv.loglog.timestamp=truelog.dateFormat=[dd/MM/ HH:mm:ss:SSS zz]log.queue.maxage = 5000log.queue.maxsize = 1000log.channel.servletException=truelog.channel.jservException=truelog.channel.warning=truelog.channel.servletLog=truelog.channel.critical=true** * zone.properties ***repositories=C:\Program Files\Apache JServ 1.1.2\servlets,C:\Program Files\Apache JServ 1.1.2\example autoreload.classes=trueautoreload.file=trueinit.timeout=1destroy.timeout=1 session.useCookies=truesession.timeout=180session.checkFrequency=3 singleThreadModelServlet.initialCapacity=5singleThreadModelServlet.incrementCapacity=5singleThreadModelServlet.maximumCapacity=10**
RE: application deployement with Apache/Tomcat
did you add a context to tomcats server.xml? -Original Message- From: Thomas Klein [mailto:[EMAIL PROTECTED]] Sent: 16. marts 2001 14:28 To: Tomcat User List Subject: application deployement with Apache/Tomcat Hi all, I need help ! I have installed an Apache /Tomcat web server and need to deploy an existing application. But I failed to make this application work... Here is my system configuration : - WindowsNT4 - Apache 3.1.14 - Tomcat 3.2.1 - mod_jk and ajp13 Everything (I mean all Servlet/JSP examples) work fine. I unziped an archive of the application I want to deploy in the TOMCAT_HOME/webapps directory. My folder tree looks like : C:\Apache Group\Tomcat 3.2.1\webapps\admin \examples \appli_1\htdocs\... \servlet\... Then I tried several configurations (useless to list all stupid things I tried :o) ) which all failed to work... I know this application works with Netscape Enterprise 3.6 and Apache/JServ 1.1.1 unfortunately I can't get help from the people who performed these tests. I read many docs from jakarta.apache.org but, certainly because of my lack of knowledge about Java servlet development, I couldn't figure what's the process to integrate an existing Java web application in Apache/Tomcat. Please help me to understand what I have to do ! Any practical guidelines or conceptual explanation would be usefull ! (I'm web-experienced, but a Java newbie...) Please Help !
RE: JDBC Connections
Your problem is that your session object (holding the connection) is not being notified when the session is dropped. nb, when a user closes a browser is not when the session will be dropped. You'll have to add i) a time out to the session (say 10 minutes?) and ii) give the user a logout button so that they can logout cleanly and promptly. See the Servlet specs for more details. An object in the session scope can request to be notified of when it is removed from the session (usually because the session is being closed down). Take a look at javax.servlet.http.HttpSessionBindingListener, it is an interface with 2 methods on it. Just make your object implement this interface and the bind/unbind method will be called when the object is added to the session/removed from the session respectively. Using these notifications your object will be able to open/close the database connection. Warning. If you're holding a connection open for such a long time, make sure that you're not locking any tables in the database between user requests otherwise the scaleable performance of the web site will drastically suffer. - Chris Brainbench MVP Java2. -Original Message- From: Raffaele Carl [mailto:[EMAIL PROTECTED]] Sent: 16 March 2001 13:15 To: [EMAIL PROTECTED] Subject: JDBC Connections Can anyone help me? I have: - SCO UnixWare 7.1.1 - Informix Online 9.20 and JDBC 2.0 - JDK 1.2.2 - Tomcat 3.2.1 When a make a JDBC connection to the DBMS with a JavaBean (scope=session) and i close the browser, the connection remain up and it will go down only after several hours. How can i do to set up a connection that dies when i close the browser? Thank you.
isapi_redirect.dll problem
Hi, In attempts to integrate Tomcat 3.2.1 with IIS we have a obstinate problem with loading this dll. It continues refusing to load... (red arrow instead of green one) The system is; Windows2000 5.00.2195 Internet Information Server 5.0 Error in the Win2000, event viewer, system log: The HTTP Filter DLL C:\jakarta-tomcat\bin\win32\i386\isapi_redirect.dll failed to load. The data is the error. More detailed info about this and other logs are in the attachment. We checked and double checked; - env. var's tomcat_home and java_home - registry entries - (exec) access to virtual dir jakarta BTW: The button 'enable' in the 'isapi filters' tab is disabled. What could be the problem here ? Kind regards, Nico den Boer Win2000, event viewer, system log: Event Type: Error Event Source: W3SVC Event Category: None Event ID: 14 Date: 3/16/2001 Time: 2:03:25 PM User: N/A Computer: VHA0302 Description: The HTTP Filter DLL C:\jakarta-tomcat\bin\win32\i386\isapi_redirect.dll failed to load. The data is the error. For additional information specific to this message please visit the Microsoft Online Support site located at: http://www.microsoft.com/contentredirect.asp. Data: : 02 00 00 00 isapi.log: [jk_uri_worker_map.c (155)]: Into jk_uri_worker_map_t::uri_worker_map_alloc [jk_uri_worker_map.c (195)]: Into jk_uri_worker_map_t::uri_worker_map_open [jk_uri_worker_map.c (210)]: jk_uri_worker_map_t::uri_worker_map_open, rule map size is 3 [jk_uri_worker_map.c (266)]: Into jk_uri_worker_map_t::uri_worker_map_open, match rule /servlet/=ajp12 was added [jk_uri_worker_map.c (266)]: Into jk_uri_worker_map_t::uri_worker_map_open, match rule /examples/=ajp12 was added [jk_uri_worker_map.c (266)]: Into jk_uri_worker_map_t::uri_worker_map_open, match rule /imsapps/=ajp12 was added [jk_uri_worker_map.c (295)]: Into jk_uri_worker_map_t::uri_worker_map_open, there are 3 rules [jk_uri_worker_map.c (316)]: jk_uri_worker_map_t::uri_worker_map_open, done jasper.log: 2001-03-16 02:30:41 - Scratch dir for the JSP engine is: C:\jakarta-tomcat\work\localhost_8080%2Fexamples 2001-03-16 02:30:41 - IMPORTANT: Do not modify the generated servlets 2001-03-16 02:30:46 - JspServlet.destroy() 2001-03-16 02:30:46 - JspServlet.destroy() 2001-03-16 02:30:46 - JspServlet.destroy() 2001-03-16 02:30:46 - JspServlet.destroy() 2001-03-16 02:30:46 - JspServlet.destroy() servlet.log: 2001-03-16 02:30:41 - path="/examples" :org.apache.jasper.servlet.JspServlet: init 2001-03-16 02:30:41 - path="/admin" :org.apache.jasper.servlet.JspServlet: init 2001-03-16 02:30:41 - path="/imsapps" :org.apache.jasper.servlet.JspServlet: init 2001-03-16 02:30:41 - path="" :org.apache.jasper.servlet.JspServlet: init 2001-03-16 02:30:41 - path="/test" :org.apache.jasper.servlet.JspServlet: init
escape() Problem...
Hi, all. I wrote a jsp page which send request by QUERYSTRING with a parameter containing international characters, and which get the parameter. I'm working with apache as a web server and tomcat as a jsp engine. And, with Netscape browser, I encode the string by escape function (javascript) before sending it, and it works fine. However, in IE, it doesn't. When I use only tomcat as a web server without apache, I saw a strange thing. In this case, if I use escape function in NS, and if I don't use escape function in IE, then it goes well !! But with apache as a web server, this action does not solve the problem... So, I think I should set some configurations on apache web server, but I have no idea... Can anyone help me? My jsp page is: %@ page language="java" % html head title/title script !-- function myEscape(s) { if (document.all) { // when IE return s; } else { // when Netscape return escape(s); } } function test() { var s = prompt("Enter text: "); var url = "martin.jsp?t1=" + myEscape(s); alert(url); location.href = url; } //-- /script /head body a href="javascript:test()"Test/a HR %=request.getParameter("t1")% /body /html Regards Martin
JDBC driver for oracle
Hi, Where can I have a free JDBC driver for oracle? Thanks, Jack
Re: Directory Browsing in tomcat
hi , Can u please tell me how did you manage to stop directory listing in Apache !!! Thanks in advance Kind regards Harish Gundecha Systems Administrator Email: [EMAIL PROTECTED] Versaware Technologies (India) Pvt. Ltd. Phone : +91-20-6136028 Extn: 331 - Original Message - From: Carlos Lpez To: [EMAIL PROTECTED] Sent: Friday, January 19, 2001 8:43 PM Subject: Directory Browsing in tomcat Hi there Is there any way to deny acces to any directory in my webapp so that the user can't browse truw it. I have already done this in apache but if I type my url whith :8080 it shows me the directory listing thanks
Re: JDBC driver for oracle
technet.oracle.com - you'll need to register, but it's free. "Jack Li" [EMAIL PROTECTED] on 16/03/2001 14:10:52 Please respond to [EMAIL PROTECTED] To: [EMAIL PROTECTED] cc:(bcc: Gavin Panella/VMC) Subject: JDBC driver for oracle Hi, Where can I have a free JDBC driver for oracle? Thanks, Jack _ Internet communications are not secure. This message is confidential to the addressee. Any copying or distribution of it by anyone without the addressee's consent may be unlawful. If you are not the intended addressee, please inform us immediately and then delete this message. Virginmoney Limited is regulated by the Personal Investment Authority for investment business only. Virginmoney Limited is registered with the Mortgage Code Compliance Board and is a member of the General Insurance Standards Council. Virginmoney Limited's registered office: Discovery House, Whiting Road, Norwich, NR4 6EJ. Registered in England no. 3427512. _
RE: JDBC driver for oracle
You can get the JDBC drivers from Oracle.com. Select download, then choose 'JDBC drivers' from teh drop down list. You will need a free oracle technet login. ... Mike -Original Message- From: Jack Li [mailto:[EMAIL PROTECTED]] Sent: Friday, March 16, 2001 9:11 AM To: [EMAIL PROTECTED] Subject: JDBC driver for oracle Hi, Where can I have a free JDBC driver for oracle? Thanks, Jack Mike Bryant (E-mail).vcf
Re: JDBC driver for oracle
http://www.oracle.com You have to subscribe to Oracle Technology Network (that's free) before you can download it. Bye, Peter. Jack Li wrote: Hi, Where can I have a free JDBC driver for oracle? Thanks, Jack -- Mag. Peter Hrastnik tele.ring Telekom Service GmbH A-1030 Wien, Hainburgerstr. 33 Tel.: +43/1/931012-3277
Load balancing using external kit, max lbfactor ??
We have two hosts, each has an Apache and a Tomcat for resilience, access to the hosts is not direct but via a load-balancer box. This external load-balancer is able to stick users to particular hosts. I want to configure mod_jk on the two hosts so they know about the tomcat on the other box but don't use it unless the local tomcat is down. How do I do this ? I've tried setting lbfactor of the local worker to 100 and the other to 1 to try and hugely favour the local one but it only seems to slightly favour the localhost when I do that - why ? Is there a maximum lbfactor that I've exceeded. Is there a nicer way to do this ? Steve Quail.
Re: Cache problem with IE -- IE setup
A wild guess: there may be some problem with the caching setup of the IE you're using for testing. There are several options available, maybe yours is _ALWAYS_ to cache. On Fri, 16 Mar 2001 09:00:55 +0100, Zsolt Koppany wrote: Hi Randy, thank you for your answer. I tried everything proposed in this mail-list (thanks everybody who tried to help) and found no solution. When tomcat final 4.x comes out I will try it again. Zsolt Randy Layman wrote: Tomcat 3.x doesn't support sending responses back to the client in HTTP 1.1 - it only supports 1.0. If you want to send responses back to the browser with HTTP 1.1 you must either use Apache, IIS, iPlanet, or some other web server in front of Tomcat, or use Tomcat 4, which is current in development. Randy -Original Message- From: josé placide [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 14, 2001 6:29 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: Cache problem with IE Hello, Could somebody tell me please, how can i set HTTP/1.1 instead of 1.0 regards. - Original Message - From: "Joe Laffey" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, March 13, 2001 7:41 PM Subject: Re: Cache problem with IE On Tue, 13 Mar 2001, Zsolt Koppany wrote: I do it from a JSP and not from a servlet and the page look like: %response.setHeader("Cache-Control", "no-cache");response.setHeader("Pragma", "no-cache");% OK, Try telnetting to your box and issue the HTTP command: GET /root/relative/path/to/file HTTP/1.0 (two returns) Then look at the header (which will be at the top and may scroll off the screen). You can also try the HEAD command instead of GET. You might also try HTTP/1.1 instead of 1.0 and see what the responses are. If you get headers like the ones you set ("Pragma: no-cache", etc.) then the problem is with the browser not honoring them. In this case try the META versions instead. If you do not get those headers than your JSP container is not setting the headers for some reason. When you telnet look also for other headers like max-age and expires. You may have your server configured to set these for the file. The browser may be using these instead. Turn off Expires for the directory or location in question. Joe Laffey LAFFEY Computer Imaging St. Louis, MO -- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] -- Zsolt Koppany Intland GmbH www.intland.com Schulze-Delitzsch-Strasse 16 D-70565 Stuttgart Tel: +49-711-7871080 Fax: +49-711-7871017 Tel: +49-711-7871080 Fax: +49-711-7871017
Re: Directory Browsing in tomcat
You can simply add the Options -Indexes parameter in the VirtualHost node. To make you we site not only present some default "403 Forbidde" message, you can also define the ErrorDocument to provide - which could again point to your Root document. VirtualHost 192.168.100.100 ServerName www.server.com ServerAdmin [EMAIL PROTECTED] DocumentRoot D:/sites/xyz Options -Indexes ErrorDocument 403 http://www.server.com /VirtualHost cheers Andreas ICLIP AGwww.iclip.ch Andreas Leitel [EMAIL PROTECTED] Postfach 3001 Bern+41 (0)78 629 5883
RE: JDBC driver for oracle
Thanks to Gavin Panella, William Brynat and Peter Hrastnik for the quick reply. Jack -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Friday, March 16, 2001 9:14 AM To: [EMAIL PROTECTED] Subject: Re: JDBC driver for oracle technet.oracle.com - you'll need to register, but it's free. "Jack Li" [EMAIL PROTECTED] on 16/03/2001 14:10:52 Please respond to [EMAIL PROTECTED] To: [EMAIL PROTECTED] cc:(bcc: Gavin Panella/VMC) Subject: JDBC driver for oracle Hi, Where can I have a free JDBC driver for oracle? Thanks, Jack _ Internet communications are not secure. This message is confidential to the addressee. Any copying or distribution of it by anyone without the addressee's consent may be unlawful. If you are not the intended addressee, please inform us immediately and then delete this message. Virginmoney Limited is regulated by the Personal Investment Authority for investment business only. Virginmoney Limited is registered with the Mortgage Code Compliance Board and is a member of the General Insurance Standards Council. Virginmoney Limited's registered office: Discovery House, Whiting Road, Norwich, NR4 6EJ. Registered in England no. 3427512. _
RE: escape() Problem...
Hi, Don't rely in JavaScript. Use java.net.URLDecoder.encode(), and java.net.URLEncoder.decode() before you push the parameters to the browser. Wouter -Original Message- From: Martin Ko [mailto:[EMAIL PROTECTED]] Sent: 16 March 2001 14:52 To: [EMAIL PROTECTED] Subject: escape() Problem... Hi, all. I wrote a jsp page which send request by QUERYSTRING with a parameter containing international characters, and which get the parameter. I'm working with apache as a web server and tomcat as a jsp engine. And, with Netscape browser, I encode the string by escape function (javascript) before sending it, and it works fine. However, in IE, it doesn't. When I use only tomcat as a web server without apache, I saw a strange thing. In this case, if I use escape function in NS, and if I don't use escape function in IE, then it goes well !! But with apache as a web server, this action does not solve the problem... So, I think I should set some configurations on apache web server, but I have no idea... Can anyone help me? My jsp page is: %@ page language="java" % html head title/title script !-- function myEscape(s) { if (document.all) { // when IE return s; } else { // when Netscape return escape(s); } } function test() { var s = prompt("Enter text: "); var url = "martin.jsp?t1=" + myEscape(s); alert(url); location.href = url; } //-- /script /head body a href="javascript:test()"Test/a HR %=request.getParameter("t1")% /body /html Regards Martin
IE caching again (was: expire_
Well, there's already been an extensive discussion on this in the list just the last days all day long. Arrived to nothing. (only you may try to issue response.setHeader("Cache-Control","no-cache"); response.setHeader("Pragma","no-cache"); response.setHeader("Expires",-1) instead... Please try to search the list, there have been some references on FAQs on caching.. My own guess is that maybe people that have trouble with this have caching setting in their IE wrong? There are some levels there, maybe you have a setting at the stricktest level that prevents webapps that don't want there pages cached from working at all? On Fri, 16 Mar 2001 10:59:50 +0100, Heijns, P.J.B. wrote: I tried, but it doesn't work. If I push the back button in my browser, the page isn't expired or correctly resfreshed. So I see the same previous page where I was before. I used IE, in netscape it works correctly. Grtz Pieter -Original Message- From: Alistair Hopkins [mailto:[EMAIL PROTECTED]] Sent: vrijdag 16 maart 2001 9:58 To: [EMAIL PROTECTED] Subject: RE: expire response.setHeader("Cache-Control","no-cache"); response.setHeader("Pragma","no-cache"); response.setHeader("Expires","Tue, 01 Jan 1980 1:00:00 GMT"); covers various browsers and os's and the like, but it still seems to get cached, particularly in ie 5, for unknown reasons and to an intermittent schedule :-( -Original Message- From: Heijns, P.J.B. [mailto:[EMAIL PROTECTED]] Sent: Friday, March 16, 2001 8:54 AM To: [EMAIL PROTECTED] Subject: expire Hi, Does anyone know how I can expire a JSP page? I want that if you leave the JSP page it immediately expires, so that the users can't use the back button in there browser to go to the previous page. Thank u, Pieter Heijms Pieter Heijms
Re: Disable Directory Browsing in tomcat
On Fri, 16 Mar 2001 19:44:33 +0530, Harish Gundecha wrote: hi , Can u please tell me how did you manage to stop directory listing in Apache !!! in your server.xml file change the appropriate StaticInterceptor debug="0" listings="true" / to StaticInterceptor debug="0" listings="false" / if you want to disable serving static files completely just comment out this: !--StaticInterceptor debug="0" listings="true" /-- Pitifully enough i do not know a way to disable this listing for one webapp while still allowing it for another. Maybe someelse does. best regards, Tagunov Anthony
RE: Linux-Tomcat-ThreadPool NullpointerException
Bill, I'm doing about the same thing. I'm running the following: apache 1.3.19 Tomcat 3.2.1 IBMJava2-SDK-1.3-5.0.i386.rpm classes12.zip (from Oracle) I am using LoadRunner with a 100 simulated users accessing 9 Oracle JSPs. I'm running this 100 times. It fails about 8 out of 10 times. What i have found is that even if you only run 10 users, but run the scenario 1000 and it fails at about half way through. I've been running with both mod_jk in Apache and also native tomcat with the same results so I'm sure the problem is with tomcat. ...but not sure exactly where or what to do to fix it. If you find anything, please let me know. regards, -Original Message- From: Bill Graham [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 15, 2001 9:14 PM To: [EMAIL PROTECTED] Subject: Linux-Tomcat-ThreadPool NullpointerException I'm just getting started with Tomcat and the first thing I'm doing is some load testing. I'm using VA Linux with Tomcat 3.2.1 and the Sun j2re1.3 VM. When hitting Tomcat with 60 threads each making 1000 requests, I periodically will get the following excepion on my client machines: java.net.SocketException: Connection reset by peer: Connection reset by peer and following excepion on hy server machine: 2001-03-16 03:20:24 - ContextManager: Error reading request, ignored - java.lang.NullPointerException at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection (HttpConnectionHandler.java:191) 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) Of the 20k requests made, I'll get about 60 errors on the first run, which might be exceptable but on subsequest runs They's incread up to about 150. By the third or fourth run, some or all of my client machines will hang while waiting for responses. This is not acceptable. I'm about to start diggin into the tomcat source but would love it if someone has solved (or knows how to soleve) this problem already. anyone? - bill __ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/
Tomcat question about Cocoon
Hi users: How can I configure Cocoon to work with Tomcat-Apache configuration? I mean, in which .conf file do I have to place the Cocoon reference? thanks in advance. Lic. Martin O. MauriProfesion + Auge A.F.J.PParana 666 - Cap. Federal[EMAIL PROTECTED]www.profesi.com.ar
RE: jk_ajp13_worker.c error connecting to the tomcat process
I tried running tomcat directly, but that also failed in about the same spot. I'm running the following: apache 1.3.19 Tomcat 3.2.1 IBMJava2-SDK-1.3-5.0.i386.rpm classes12.zip (from Oracle) Oracle 8.1.7 for Linux Linux Redhat 7.0 2.4 kernel at this point, not sure the load balancing will help. What about another product for JSPs? Any ideas? Thanks for your help, -Original Message- From: GOMEZ Henri [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 15, 2001 4:50 PM To: [EMAIL PROTECTED] Subject: RE: jk_ajp13_worker.c error connecting to the tomcat process The next thing I will try is native tomcat. also, what do I need to do to run two tomcat servers for load balancing? Easy : worker.list=asterix, obelix worker.asterix.port=8009 worker.asterix.host=asterix.gaule.org worker.asterix.type=ajp13 worker.obelix.port=8009 worker.obelix.host=obelix.gaule.org worker.obelix.type=ajp13 worker.loadbalancer.type=lb worker.loadbalancer.balanced_workers=asterix, obelix Then is mod_jk.conf replace all refs to worker lb : IfModule mod_jk.c JkWorkersFile /etc/httpd/conf/workers.properties JkLogFile /var/log/httpd/jk.log JkLogLevel warn JkMount /*.jsp lb JkMount /servlet/* lb JkMount /examples/* lb /IfModule Regards
Re: 404 jsp file not found
I posted this yesterday but got no replies. So here it is again. If anyone can help me I would really appreciate it. Thanks, Luoi Shun-Luoi Daniel Fong wrote: I'm new to tomcat and have been struggling with this problem for a while. If anyone can help me I would really appreciate it. I created a jsp file and put it in my public_html directory. Then when I typed the address into the browser, http://agent.eng.uiowa.edu/~sdfong/rubyfong/gamezone/testex.jsp I get a 404 error with the following message: Not Found (404) Original request: /~sdfong/rubyfong/gamezone/testex.jsp Not found request: /~sdfong/rubyfong/gamezone/testex.jsp So I checked the jasper.log file and saw this message: 2001-03-15 09:58:32 - JspEngine -- /~sdfong/rubyfong/gamezone/index.jsp 2001-03-15 09:58:32 - ServletPath: /~sdfong/rubyfong/gamezone/index.jsp 2001-03-15 09:58:32 -PathInfo: null 2001-03-15 09:58:32 -RealPath: /usr/java/jakarta-tomcat-3.2.1/webapps/ROOT/~sdfong/rubyfong/gamezone/index.jsp 2001-03-15 09:58:32 - RequestURI: /~sdfong/rubyfong/gamezone/index.jsp 2001-03-15 09:58:32 - QueryString: null 2001-03-15 09:58:32 - Request Params: 2001-03-15 09:58:32 - Classpath according to the Servlet Engine is: /usr/java/jakarta-tomcat-3.2.1/webapps/ROOT/WEB-INF/classes Can someone tell me how to fix the Classpath so that jsp files can be correctly recognized from my own public_html directory (or anyone elses). Or is there some other configuring of Tomcat that I am missing? Thanks for any help. Luoi -- D. Shun-Luoi Fong 821 Melrose Avenue Iowa City, IA 52246 email: [EMAIL PROTECTED] --- Colossions 2:8 See to it that no one takes you captive through philosophy or empty deception, according to the traditions of men, according to the elementary principles of the world, rather than according to Christ. --- begin:vcard n:Fong;D. Shun-Luoi tel;home:(319) 351-3568 tel;work:(319) 335-5055 x-mozilla-html:FALSE adr:;; version:2.1 email;internet:[EMAIL PROTECTED] fn:D. Shun-Luoi Fong end:vcard
RE: Please help!!: Inconsistent Response already committed excepti on
Jeff, Thanks for responding. You write: " Just curious.. why would setting the content length affect the buffer size? Aren't you thinking of response.setBufferSize(int $1)? I changed my code to utilize response.setBufferSize(int). Nothing changed - still the code works in two directories but not in another. I find though, that in my jsp code, I can call response.setBuffer(int) but it does not affect the size of the JSP Writer out buffer size. A call to out.getRemaining() returns the same value it did before (7234 bytes). How can I change the buffer size of the JSP writer - I don't find a method in the JSPWriter API. The JSPBuffer(bufSize, boolean) constructor is protected. Can I change the JSPWriter's buffer size in my jsp:include ... action? I once had exactly your symptoms (inconsistent "Response already committed"), and it was because my response buffer was too small (see JSP's "page directive"). Because the amount of data I was pulling with jsp:include varied, the problem appeared to be inconsistent. My dataset size isn't changing. I am utilizing identical JSP and Servlet code calling the same dataset. It seems only to be dependent upon from what webapp directory (context?) I call the jsp from. Which line exactly causes the "Response already committed" error? Are you trying a response.sendRedirect() or something? Usually you can flush as much as you want during your servlet/JSP. The only time it causes probs is, eg, with sendRedirect() calls. It seems the erroring jsp bombs prior to the actual jsp:include directive. I have System.out.printlns in the called Servlet - none of these printlns are produced in the Tomcat console prior to the Exception message. The Exception text follows: Internal Servlet Error: javax.servlet.ServletException: Servlet Exception at org.apache.tomcat.core.Handler.service(Handler.java:307) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) at org.apache.tomcat.facade.RequestDispatcherImpl.include(RequestDispatcherImpl .java:345) at org.apache.jasper.runtime.PageContextImpl.include(PageContextImpl.java:414) at BenchMgmt.Associates.Tim_0005fHengst._0002fBenchMgmt_0002fAssociates_0002fTi m_0005fHengst_0002fxslTransform_0002ejspxslTransform_jsp_3._jspService(_0002 fBenchMgmt_0002fAssociates_0002fTim_0005fHengst_0002fxslTransform_0002ejspxs lTransform_jsp_3.java:123) 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.http.HttpConnectionHandler.processConnection(HttpC onnectionHandler.java:210) 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.IllegalStateException: Response has already been committed at org.apache.tomcat.facade.HttpServletResponseFacade.sendError(HttpServletResp onseFacade.java:204) at javax.servlet.http.HttpServlet.doGet(HttpServlet.java:232) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) 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.facade.RequestDispatcherImpl.include(RequestDispatcherImpl .java:345) at org.apache.jasper.runtime.PageContextImpl.include(PageContextImpl.java:414) at BenchMgmt.Associates.Tim_0005fHengst._0002fBenchMgmt_0002fAssociates_0002fTi m_0005fHengst_0002fxslTransform_0002ejspxslTransform_jsp_3._jspService(_0002 fBenchMgmt_0002fAssociates_0002fTim_0005fHengst_0002fxslTransform_0002ejspxs lTransform_jsp_3.java:123) 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
RE: jk_ajp13_worker.c error connecting to the tomcat process
I tried running tomcat directly, but that also failed in about the same spot. I'm running the following: apache 1.3.19 Tomcat 3.2.1 IBMJava2-SDK-1.3-5.0.i386.rpm classes12.zip (from Oracle) Oracle 8.1.7 for Linux Linux Redhat 7.0 2.4 kernel If the load is just too important for one Tomcat, use 2 or 3 TC. And mod_jk in front could help You're using a 2.4 kernel over a Linux Redhat 7.0 ? I read somewhere that IBM SDK (and Sun's one) didn't works well under 2.4. at this point, not sure the load balancing will help. What about another product for JSPs? Test upcoming Tomcat 3.3-M2. You didn't reply to the JDBC question pool you're using. Any ideas? Thanks for your help, -Original Message- From: GOMEZ Henri [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 15, 2001 4:50 PM To: [EMAIL PROTECTED] Subject: RE: jk_ajp13_worker.c error connecting to the tomcat process The next thing I will try is native tomcat. also, what do I need to do to run two tomcat servers for load balancing? Easy : worker.list=asterix, obelix worker.asterix.port=8009 worker.asterix.host=asterix.gaule.org worker.asterix.type=ajp13 worker.obelix.port=8009 worker.obelix.host=obelix.gaule.org worker.obelix.type=ajp13 worker.loadbalancer.type=lb worker.loadbalancer.balanced_workers=asterix, obelix Then is mod_jk.conf replace all refs to worker lb : IfModule mod_jk.c JkWorkersFile /etc/httpd/conf/workers.properties JkLogFile /var/log/httpd/jk.log JkLogLevel warn JkMount /*.jsp lb JkMount /servlet/* lb JkMount /examples/* lb /IfModule Regards
Re: CLASPATH Order
Denny Chambers wrote: Does anyone know if there is an option in Tomcat that would allow me to specify if I want my projects classpath (/WEB-INF/lib;/WEB-INF/classes) loaded before Tomcat's classpath? Change the $TOMCAT_HOME/bin/tomcat.sh script... or I did not understand the question... -- Arnaud Vandyck http://www.ressource-toi.org/
RE: 404 jsp file not found
Shun-Luoi, I am new with Tomcat as well and am having the same issue. Hopefully somebody can help us. -Original Message- From: Shun-Luoi Fong [mailto:[EMAIL PROTECTED]] Sent: Friday, March 16, 2001 10:15 AM To: [EMAIL PROTECTED] Subject: Re: 404 jsp file not found I posted this yesterday but got no replies. So here it is again. If anyone can help me I would really appreciate it. Thanks, Luoi Shun-Luoi Daniel Fong wrote: I'm new to tomcat and have been struggling with this problem for a while. If anyone can help me I would really appreciate it. I created a jsp file and put it in my public_html directory. Then when I typed the address into the browser, http://agent.eng.uiowa.edu/~sdfong/rubyfong/gamezone/testex.jsp I get a 404 error with the following message: Not Found (404) Original request: /~sdfong/rubyfong/gamezone/testex.jsp Not found request: /~sdfong/rubyfong/gamezone/testex.jsp So I checked the jasper.log file and saw this message: 2001-03-15 09:58:32 - JspEngine -- /~sdfong/rubyfong/gamezone/index.jsp 2001-03-15 09:58:32 - ServletPath: /~sdfong/rubyfong/gamezone/index.jsp 2001-03-15 09:58:32 -PathInfo: null 2001-03-15 09:58:32 -RealPath: /usr/java/jakarta-tomcat-3.2.1/webapps/ROOT/~sdfong/rubyfong/gamezone/index. jsp 2001-03-15 09:58:32 - RequestURI: /~sdfong/rubyfong/gamezone/index.jsp 2001-03-15 09:58:32 - QueryString: null 2001-03-15 09:58:32 - Request Params: 2001-03-15 09:58:32 - Classpath according to the Servlet Engine is: /usr/java/jakarta-tomcat-3.2.1/webapps/ROOT/WEB-INF/classes Can someone tell me how to fix the Classpath so that jsp files can be correctly recognized from my own public_html directory (or anyone elses). Or is there some other configuring of Tomcat that I am missing? Thanks for any help. Luoi -- D. Shun-Luoi Fong 821 Melrose Avenue Iowa City, IA 52246 email: [EMAIL PROTECTED] --- Colossions 2:8 See to it that no one takes you captive through philosophy or empty deception, according to the traditions of men, according to the elementary principles of the world, rather than according to Christ. ---
Re: Tomcat question about Cocoon
Martin Mauri wrote: Hi users: How can I configure Cocoon to work with Tomcat-Apache configuration? I mean, in which .conf file do I have to place the Cocoon reference? make a webapps/cocoon directory, then a webapps/cocoon/WEB-INF and then modify your webapps/cocoon/WEB-INF/web.xml file. You also have to put webapps/cocoon/WEB-INF/cocoon.properties file from $COCOON/conf/cocoon.properties. Well, according to cocoon/docs/install.html#tomcat : To make Cocoon work with Tomcat, you must add a context to Tomcat that describes to Tomcat how to load Cocoon files. Then you must tell Apache to send certain requests to Tomcat (and consequently Cocoon). Finally you must provide the .xml files to be served by Cocoon. ... Next you must tell Tomcat about the new context which will run Cocoon requests. To do this edit the file $TOMCAT_HOME/conf/server.xml and add the following line: Context path="/cocoon" docBase="webapps/cocoon" debug="0" reloadable="true" /Context This tells Tomcat that requests that come in under that partial path "/cocoon" should be mapped to the context defined in the directory "webapps/cocoon". We will set that up shortly. Next, if using Apache with Tomcat [...] we need to tell Apache to forward the same partial pathnames to Tomcat. This is done by editing the tomcat.conf file (it's called tomcat-apache.conf if you're using Tomcat 3.1, but with Tomcat 3.2 you have a choice between tomcat-apache and the more advanced mod_jk.conf-auto) and associating it with your Apache setup, as described below. Very Important Note! Both of these files are now regenerated and overwritten whenever you run Tomcat, so don't edit them directly, but instead save them as something else! [...] First make a directory and its subdirectory: mkdir $TOMCAT_HOME/webapps/cocoon mkdir $TOMCAT_HOME/webapps/cocoon/WEB-INF Next copy the template files from the Cocoon distribution: cp $COCOON_HOME/src/WEB-INF/web.xml $TOMCAT_HOME/webapps/cocoon/WEB-INF cp $COCOON_HOME/conf/cocoon.properties $TOMCAT_HOME/webapps/cocoon/WEB-INF Next you need to edit the $TOMCAT_HOME/webapps/cocoon/WEB-INF/web.xml file to point to the Cocoon properties file in the same directory. Do this by changing the text conf/cocoon.properties to WEB-INF/cocoon.properties. Note that this path is a relative path, and must be so. Don't try to use an absolute path here. It won't work. Also note that the web.xml file describes how to map .xml requests to the Cocoon servlet. [...] -- Arnaud Vandyck http://www.ressource-toi.org/
Windows NT (or 2000 Server) and tomcat....error 304
I'm installing tomcat for the first time. When I try to pull up a page that resides on the server, I get a 304 error and the page displays as source (or like a WORD doc would display in a browser). Tomcat doesn't seem to be converting the JSP to a servlet and compiling the servlet... Please, please.any suggestions are greatly appreciated. Elizabeth Riley Division of Information Technology Macon State College 100 College Station Dr. Macon, GA 31206 478-757-2582
Excel to XML
Hi, everybody. Does any one know how to convert MS Excel file to XML file using Java? Thanks Jianming Wang
tomcat as a stand alone server
Hello, I am new to tomcat. and I just wonder if tomcat can be a stand alone web server, of it should only run with apache or IIS, Thanks, Batsheva
Re: MYSQL CONNECTION CLASS
Fala Guilherme, Can someone who uses TOMCAT send me a sample class that conects to the database? I have made one that initializes de driver to connect and returns the connection, so it is very slow. What kind of solution do you have? O esquema este mesmo, faz a conexo com o banco de dados e depois faz as queries. Para otimizar o processo faa a conexo na incializao do servlet e guarde-a. A cada request voc usa a mesma conexo. Estou te mandando uma classes que fazer isto. So elas: SingleMethodServlet - apenas um servlet auxiliar para no ter que mandar o doGet() chamar doPost(). Tenho que tem mandar porque a prxima subclasse dela. DatabaseHttpServlet - servlet que cria a conexo com o banco de dados ao ser criado e mantem esta conexo no atributo dbConnection. DatabaseBuilderServlet - um exemplo. Eu uso esta classe sempre que tenho que criar um banco de dados. web.xml - um exemplo de configurao destas classes. Note que eu estou usando MySQL e os drivers do banco de dados devem estar no diretrio lib. At mais, Christian DatabaseHttpServlet.java SingleMethodServlet.java DatabaseBuilderServlet.java ?xml version="1.0" encoding="ISO-8859-1"? !DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN" "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd" web-app display-name Enquete /display-name description Aplicativo para a realização de enquetes. /description !-- - - - - - - - - - - - - - - - - - - - - -- !-- Parameters for the database connection -- !-- - - - - - - - - - - - - - - - - - - - - -- context-param param-namedbDriver/param-name param-valueorg.gjt.mm.mysql.Driver/param-value description Driver do banco de dados. /description /context-param context-param param-namedbConnectionUrl/param-name param-valuejdbc:mysql://200.183.10.6:3306/gatorade/param-value description String para conexão no banco de dados. /description /context-param context-param param-namedbUser/param-name param-valuechristian/param-value description Usuário do banco de dados. /description /context-param context-param param-namedbPassword/param-name param-valuewinona/param-value description Senha do usuário do banco de dados. /description /context-param !-- - - - - - - - - - - - - - - - - - - - - -- !-- The servlet mappings -- !-- - - - - - - - - - - - - - - - - - - - - -- servlet servlet-name enquete /servlet-name servlet-class com.newtradebr.enquete.EnqueteServlet /servlet-class /servlet servlet servlet-name database /servlet-name servlet-class com.newtradebr.enquete.EnqueteDatabaseBuilderServlet /servlet-class /servlet /web-app
RE: Tomcat + Oracle EJB's
Yes. The only way I can get it to work is to copy all my jars (aurora_client.jar, vbjapp.jar vbjorb.jar + my ELB class jars) into tomcat/lib. Not the best solution! At 01:22 PM 3/15/01 -0600, you wrote: are you importing oracle.aurora.jndi.sess_iiop.ServiceCtx ??? -Original Message- From: Neil Harvey [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 15, 2001 11:43 AM To: Tomcat List Subject: Tomcat + Oracle EJB's Has anybody out there managed to get a servlet running via Tomcat to invoke an EJB living in an Oracle 8i database? I've read a couple of threads about including all JARs in the Tomcat classpath, but this seems a bit clunky. Is there a more elegant solution? I keep getting a javax.naming.NoInitialContextException, but when I explicitly set the INITIAL_CONTEXT_FACTORY, I get IllegalArgumentException. Oracle's official response to this is not to use Tomcat, but to use mod_ose and the Oracle Servlet Engine in 8.1.7 (though I've had little success with this either). I don't like this idea, I want to be able to use any 2.2 compliant servlet engine,. Thanks, Neil. = Neil Harvey First Software UK Ltd. mailto:[EMAIL PROTECTED] Tel: 0161 333 5148 Mobile: 07768 803063 = Neil Harvey First Software UK Ltd. mailto:[EMAIL PROTECTED] Tel: 0161 333 5148 Mobile: 07768 803063
Re: CLASPATH Order
I don't want to hard code classpaths in my tomcat.sh. It would be nice if I could specify this option as part of my web.xml file or atlease part of the context for my app. When I WAR up the application and deploy it I don't want the client recieving it to have to hack up his/her configuration just form my app. My problem is that I am using some packages from the w3c group. Tomcat also uses some these packages. The version that I have is newer than the one Tomcat uses, So I need mine to load on the classpath first, or I need Tomcat to catch up. Thanks for the response, Denny Arnaud Vandyck wrote: Denny Chambers wrote: Does anyone know if there is an option in Tomcat that would allow me to specify if I want my projects classpath (/WEB-INF/lib;/WEB-INF/classes) loaded before Tomcat's classpath? Change the $TOMCAT_HOME/bin/tomcat.sh script... or I did not understand the question... -- Arnaud Vandyck http://www.ressource-toi.org/ -- Denny Chambers Linux Java Engineer Connex, Inc Voice: 770-455-7653 Fax: 770-455-7325
Re: Problem with mod_jk (resolved)
Philippe Lecler wrote: Hello, I installed tomcat 3.2.1 on solaris 2.5.1, it's OK. I compiled mod_jk with gcc-2.8.1, but when I trie to restart apache 1.3.19 I have the following message : Cannot load /soft/apache/libexec/mod_jk.so into server: ld.so.1: /soft/apache/bin/httpd: fatal: relocation error: file /soft/apache/libexec/mod_jk.so: symbol snprintf: referenced symbol not found snprintf is referenced in jk_util.c and is defined in libc. Thanx in advance for any response. -- Philippe - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] I tried to add -lresolv without success. Finally, I patched jk_util.c to use ap_snprintf and ap_vsnprintf : diff ../jk/jk_util.c.ORG ../jk/jk_util.c 212a213,214 #elif defined(IRISA) //Pb edition de liens used = ap_snprintf(buf, HUGE_BUFFER_SIZE, "[%s (%d)]: ", f, line); 224a227,228 #elif defined(IRISA) //Pb edition de liens used = ap_vsnprintf(buf + used, fmt, args); Command line to compile : apxs -o mod_jk.so -DSOLARIS -DEAPI -DIRISA -I../jk -I/soft/jdk/include -I/soft/jdk/include/solaris -c *.c ../jk/*.c It's ok now. -- Philippe
RE: tomcat as a stand alone server
Can be stand alone. -Original Message- From: Batsheva Raviv [mailto:[EMAIL PROTECTED]] Sent: Friday, March 16, 2001 4:17 PM To: [EMAIL PROTECTED] Subject: tomcat as a stand alone server Hello, I am new to tomcat. and I just wonder if tomcat can be a stand alone web server, of it should only run with apache or IIS, Thanks, Batsheva The information in this email is confidential and is intended solely for the addressee(s). Access to this email by anyone else is unauthorised. If you are not an intended recipient, you must not read, use or disseminate the information contained in the email. Any views expressed in this message are those of the individual sender, except where the sender specifically states them to be the views of The Capital Markets Company. http://www.capco.com ***
Redirecting IIS to TomCat server
hi, we use IIS 5.0 and tomcat 3.0 on a windows 2000 pro. computer We try to use isapi_redirect.dll of Tomcat for tunelling IIS to the TomCat server through a specific port 80. we use the redirection with a get command and all works well. When we try to use the Post method. Unfortunately the parameters posted through the Post method are not viewed on the TomCat server side. Question : is it an IIS problem? Is it a redirection problem? If yes, is there a new version of the isapi_redirect.dll or a specific configuration to use? Is there an alternative strategy? Chistophe DENIARD Kaidara 15, rue soufflot 75005 PARIS FRANCE tel: +33 (0) 1 56 24 22 00 fax:+33 (0) 1 56 24 22 66 [EMAIL PROTECTED] http://www.kaidara.com
Re: CLASPATH Order
Denny Chambers wrote: I don't want to hard code classpaths in my tomcat.sh. It would be nice if I could specify this option as part of my web.xml file or atlease part of the context for my app. When I WAR up the application and deploy it I don't want the client recieving it to have to hack up his/her configuration just form my app. My problem is that I am using some packages from the w3c group. Tomcat also uses some these packages. The version that I have is newer than the one Tomcat uses, So I need mine to load on the classpath first, or I need Tomcat to catch up. OK, sorry, now I understand... but don't know how to do that! :( -- Arnaud Vandyck http://www.ressource-toi.org/
Re: tomcat as a stand alone server
Batsheva Raviv wrote: Hello, I am new to tomcat. and I just wonder if tomcat can be a stand alone web server, of it should only run with apache or IIS, Yes it can, but you'll don't have support for php, perl, asp, ... (am I wrong?) and it's not so -robust- as Apache. You can modify the $TOMCAT_HOME/con/server.xml to tell tomcat to listen to the port 80 instead of 8080. -- Arnaud Vandyck http://www.ressource-toi.org/
RE: Excel to XML
Jianming Wang If you're talking strictly data you could make an odbc connection and suck out the data that way. If you're talking about the whole ball of wax(formatting, precision, data, etc.) you are probably going to need to right some native(c++) code and use the M$ components to interact with excel files. M$ has a knack of slipping little things in here and there so that it makes it difficult for others to do anything with their stuff(i.e. remember that whole M$ jvm/J++ fiasco). Alternately, I'm sure someone has written a commercial API to interact directly with excel files and get more information than just the data, but of course this costs money. HTH --- Michael Wentzel Software Developer Software As We Think - http://www.aswethink.com mailto:[EMAIL PROTECTED] - Punisher of those who cannot spell dumb!
[T4+Apache1.3+mod_webapp.so] Syntaxe error
Hello everybody, I compiled Tomcat4.0-b1-src without problem on Debian2.2r2 with ibm-jdk1.3 (but the CVS release of today -2001/03/16- did not work I think because of a problem with crimson.jar, but maybe it's my fault! :( ). Well, Tomcat-Standalone works fine and now, I want Apache and Tomcat to cooperate. I did compile mod_webapp.so (well, the first time it did not work, I forgot the apache-dev package! :), put it in my /usr/lib/apache/1.3/mod_webapp.so and wrote an Include directive in httpd.conf to point to /etc/apache/tomcat-4.0b1.conf. When I tried to launch Apache, it fails: #:/usr/local/jakarta/tomcat-4.0-b1# /etc/init.d/apache start Starting web server: apache. Syntax error on line 5 of /etc/apache/tomcat-4.0b1.conf: Host name unspecified /usr/sbin/apachectl start: httpd could not be started #:/usr/local/jakarta/tomcat-4.0-b1# Here is the configuration file: --- #Configuration for Tomcat-4.0-b1 LoadModule webapp_module /usr/lib/apache/1.3/mod_webapp.so WebAppConnection warpConnection warp localhost:8008 WebAppMount examples warpConnection /examples/ --- I did try to replace /examples/ by localhost:8008 /localhost:8008/ /localhost:8008/examples /localhost:8008/examples/ ... Any idea? Thank You for the good job! -- Arnaud Vandyck http://www.ressource-toi.org/
Re: tomcat as a stand alone server
Batsheva Raviv wrote: Hello, I am new to tomcat. and I just wonder if tomcat can be a stand alone web server, of it should only run with apache or IIS, It comes with a Web server built-in, so you can run it stand alone. Thanks, Brian
RE: CLASPATH Order
You can use Tomcat 3.3 too, it's right now is next M2 release, and it's pretty solid.., nd solves enterely your problems, because 3.3 has a separated classloader for Container classes..., and 4.0 Beta implements separated classloaders for internal classes and a workaround for the Webapps to use his own XML parser.. Saludos , Ignacio J. Ortega -Mensaje original- De: dchambers [mailto:dchambers]En nombre de Denny Chambers Enviado el: viernes 16 de marzo de 2001 17:44 Para: [EMAIL PROTECTED] Asunto: Re: CLASPATH Order I don't want to hard code classpaths in my tomcat.sh. It would be nice if I could specify this option as part of my web.xml file or atlease part of the context for my app. When I WAR up the application and deploy it I don't want the client recieving it to have to hack up his/her configuration just form my app. My problem is that I am using some packages from the w3c group. Tomcat also uses some these packages. The version that I have is newer than the one Tomcat uses, So I need mine to load on the classpath first, or I need Tomcat to catch up. Thanks for the response, Denny Arnaud Vandyck wrote: Denny Chambers wrote: Does anyone know if there is an option in Tomcat that would allow me to specify if I want my projects classpath (/WEB-INF/lib;/WEB-INF/classes) loaded before Tomcat's classpath? Change the $TOMCAT_HOME/bin/tomcat.sh script... or I did not understand the question... -- Arnaud Vandyck http://www.ressource-toi.org/ -- Denny Chambers Linux Java Engineer Connex, Inc Voice: 770-455-7653 Fax: 770-455-7325
RE: first day with tomcat
http://localhost or your computer name. -Original Message- From: Azhar Khan [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 15, 2001 5:20 PM To: [EMAIL PROTECTED] Subject: re: first day with tomcat I have installed tomcat on my machine. And i run the startup.bat file when I wan't to run Tomcat. But, I was wondering if i can go ahead and write jsp / servlets. Also, if i do how do i check them on my computer. And what will be the address C:\...\HelloWorld.java or http://localhost... Thanks. -- Azhar Khan Software Development Engineer Intranet Technologies, Amazon.com 206-266-1188 http://www.amazon.com
Howto force servlet destroy() in Tomcat
Hi, I need a way to force the destroy() of one servlet, inside the servlet itself, or to force the download of the servlet from the container. At the moment I do something like Thread current = Thread.currentThread(); current.destroy(); but I don't like this to much. There is a better way to do this with Tomcat ? Thanks for your attention Paolo Sommaruga Garda Access Garda (Vr), Italy http://www.garda-access.com/
RE: How do we add a context to Tomcat? and what is one...
I'm using IIS with Tomcat. I see in the "How To" guide it shows how to add one to the ISAPI redirector, and then it cruely admits that he/she won't be talking about adding the context to Tomcat. Don't we HAVE to do that to add another context? Why would that be left out of the instructions? Also, since I haven't run across the definition of a context and I am somewhat new to setting up web servers, what exactly is the definition of a "context"?
RE: Excel to XML
IBM alphaWorks, http://www.alphaworks.ibm.com/, has a suite of JavaBeans called ExcelAccessor that will let you access and modify Excel worksheets. The URL for the download page is rather cryptic, so just do a search from the alphaWorks home page to find it if the below url does not work. http://www.alphaworks.ibm.com/aw.nsf/frame?ReadForm/ab.nsf/techmain/F3B93B9 3A95816A18825672600059928 An alternative method of working with spreadsheet data is to export it as a delimited text file and work with it that way. However, this method isn't always practical. Also, the following example is available from http://www.coolservlets.com/developer/tips/tip04.html Produce MS Excel files dynamically public class TransManager extends HttpServlet { public void service( HttpServletRequest request, HttpServletResponse response ) throws IOException { response.setContentType("application/vnd.ms-excel"); PrintWriter out = new PrintWriter(response.getWriter()); response.setHeader("Content-Disposition","attachment;filename=foo.xls"); // set up the SQL as a string String str = "select * from footable"; // load the database driver here eg:oracle Class.forName(oracle.forName("oracle.jdbc.driver.OracleDriver")); // get a connection Connection con = DriveManager.getConnection("jdbc:SomeJDBCurl","user","passsword"); Statement stmt = con.createStatement(); // Get the result set while(rs.next()) { ResultSet rs = stmt.executeQuery(str); // Display headings in excel try { ResultSetMetaData rsm = rs.getMetaData(); int cx; for(cx = 1; cx = rsm.getColumnCount(); cx++) { if (cx 1) { out.print("\t"); } out.print(rsm.getColumnName(cx)); } out.println(""); } catch (SQLException se) { se.printStackTrace(); } // display rows while(rs.next()) { for(rx = 1; rx = rsm.getColumnCount(); rx++) { if (rx 1) { out.print("\t"); } Object obj = rs.getObject(rx); if (obj != null) { out.print(obj.toString()); } else { out.print(""); } } HTH, Todd -Original Message- From: Michael Wentzel [mailto:[EMAIL PROTECTED]] Sent: Friday, March 16, 2001 12:05 PM To: '[EMAIL PROTECTED]' Subject: RE: Excel to XML Jianming Wang If you're talking strictly data you could make an odbc connection and suck out the data that way. If you're talking about the whole ball of wax(formatting, precision, data, etc.) you are probably going to need to right some native(c++) code and use the M$ components to interact with excel files. M$ has a knack of slipping little things in here and there so that it makes it difficult for others to do anything with their stuff(i.e. remember that whole M$ jvm/J++ fiasco). Alternately, I'm sure someone has written a commercial API to interact directly with excel files and get more information than just the data, but of course this costs money. HTH --- Michael Wentzel Software Developer Software As We Think - http://www.aswethink.com mailto:[EMAIL PROTECTED] - Punisher of those who cannot spell dumb! The information in this electronic mail ("e-mail") message may be confidential and for use of only the named recipient. The information may be protected by privilege, work product immunity or other applicable law. If you are not the intended recipient the retention, dissemination, distribution or copying of this e-mail message is strictly prohibited. If you receive this e-mail message in error please notify us immediately by telephone at 770-723-1011 or [EMAIL PROTECTED] Thank you.
RE: Windows 2000 and Tomcat
Hi Try in the other computer which is on the same network typing: "http://IPNUMBER/examples/jsp/index.html", where IPNUMBER is the ip of the computer where tomcat is running. If it doesn't work type: "IPNUMBER:8080" in place of "IPNUMBER" - Original Message - From: Elizabeth Riley [EMAIL PROTECTED] To: tomcat-user [EMAIL PROTECTED] Sent: Thursday, March 15, 2001 5:54 PM Subject: Windows 2000 and Tomcat I am installing tomcat to work in conjunction with Windows 2000 server. I believe I have done all the steps in the documentation for 'Tomcat IIS How To'. I have verified that things are working by going to the browser on the server and typing 'localhost/examples/jsp/index.html'. This works fine. However, if I go to another computer that is on the same network and type the IP address of the server followed by 'tomcat/webapps/examples/jsp/num/numguess.jsp', I get the html 'source' displayed in my browser. Any suggestions on where to find the solution to this? Have I missed a critical step? Elizabeth Riley Division of Information Technology Macon State College 100 College Station Dr. Macon, GA 31206 478-757-2582 _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com
Re: 404 jsp file not found
On 3/16/01 9:15 AM, "Shun-Luoi Fong" [EMAIL PROTECTED] wrote: I created a jsp file and put it in my public_html directory. Then when I typed the address into the browser, http://agent.eng.uiowa.edu/~sdfong/rubyfong/gamezone/testex.jsp I get a 404 error with the following message: Not Found (404) Original request: /~sdfong/rubyfong/gamezone/testex.jsp Not found request: /~sdfong/rubyfong/gamezone/testex.jsp Your jsp as nothing in it. It is empty. I downloaded it and looked at it.
welcome-file problem
Hi users! I've configured my web.xml file with the tag: welcome-file-list welcome-fileworksheet.html/welcome-file/welcome-file-list and it worked nice while using Tomcat as a standalone server, but when I installed Tomcat to work with Apache, the welcome file isn't showed at all, I only get the list of available files in the directory...which could be the problem? any idea? thanks!! Lic. Martin O. MauriProfesion + Auge A.F.J.PParana 666 - Cap. Federal[EMAIL PROTECTED]www.profesi.com.ar
RE: Redirecting IIS to TomCat server
hi, we use IIS 5.0 and tomcat 3.0 on a windows 2000 pro. computer We try to use isapi_redirect.dll of Tomcat for tunelling IIS to the TomCat server through a specific port 80. we use the redirection with a get command and all works well. When we try to use the Post method. Unfortunately the parameters posted through the Post method are not viewed on the TomCat server side. Question : is it an IIS problem? Is it a redirection problem? If yes, is there a new version of the isapi_redirect.dll or a specific configuration to use? Is there an alternative strategy? Are you trying to post to a servelt? If so, make sure that you do this in your servlet code: public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { doGet(request,response); } Meaning add a doPost to handle the post and then have it call the doGet where all your code is. Chistophe DENIARD Kaidara 15, rue soufflot 75005 PARIS FRANCE tel: +33 (0) 1 56 24 22 00 fax:+33 (0) 1 56 24 22 66 [EMAIL PROTECTED] http://www.kaidara.com
RE: Linux-Tomcat-ThreadPool NullpointerException
Frank, Thanks for the reply. I'm going to start tryiong to debug Tomcat and see what this NullPointer is. Let me know if you get anywhere and I'll do the same. One thing I've read about and experienced was bad performance with IBM's vm on Linux w/ Tomcat. You might want to try Sun's vm and see if it gets any better. Regardless though, I still think something's buggy in Tomcat. bill --- "Lucero, Frank J" [EMAIL PROTECTED] wrote: Bill, I'm doing about the same thing. I'm running the following: apache 1.3.19 Tomcat 3.2.1 IBMJava2-SDK-1.3-5.0.i386.rpm classes12.zip (from Oracle) I am using LoadRunner with a 100 simulated users accessing 9 Oracle JSPs. I'm running this 100 times. It fails about 8 out of 10 times. What i have found is that even if you only run 10 users, but run the scenario 1000 and it fails at about half way through. I've been running with both mod_jk in Apache and also native tomcat with the same results so I'm sure the problem is with tomcat. ...but not sure exactly where or what to do to fix it. If you find anything, please let me know. regards, -Original Message- From: Bill Graham [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 15, 2001 9:14 PM To: [EMAIL PROTECTED] Subject: Linux-Tomcat-ThreadPool NullpointerException I'm just getting started with Tomcat and the first thing I'm doing is some load testing. I'm using VA Linux with Tomcat 3.2.1 and the Sun j2re1.3 VM. When hitting Tomcat with 60 threads each making 1000 requests, I periodically will get the following excepion on my client machines: java.net.SocketException: Connection reset by peer: Connection reset by peer and following excepion on hy server machine: 2001-03-16 03:20:24 - ContextManager: Error reading request, ignored -java.lang.NullPointerException at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection (HttpConnectionHandler.java:191) 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) Of the 20k requests made, I'll get about 60 errors on the first run, which might be exceptable but on subsequest runs They's incread up to about 150. By the third or fourth run, some or all of my client machines will hang while waiting for responses. This is not acceptable. I'm about to start diggin into the tomcat source but would love it if someone has solved (or knows how to soleve) this problem already. anyone? - bill __ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/ __ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/
Re: System out and System err
On Thu, 15 Mar 2001, Jeff Finley wrote: Where are the outputs for these going in Tomcat 4.01beta? I cannot find them in any logs! Please help, need it to debug a servlet. Check the file "catalina.out" in your logs directory. Jeff Finley No Technologies Inc. Just Doing it because, NY 000501 Craig McClanahan
JDBCRealm reconnect problems?
Has anyone experienced JDBCReconnect problems??? Looks like mysql db connection times out and JDBCRealm cannot reopen it for some reason. Actually it tries to reopen it and somehow is able to authenticate a user, but then dies completely... Any ideas what can be wrong? This is the error/exceptions from tomcat log file: 2001-03-16 11:20:33 - ContextManager: JDBCRealm: The database connection is null or was found to be closed. Trying to re-open it. 2001-03-16 11:20:33 - ContextManager: JDBCRealm: There was an SQLException while in authenticate: null 2001-03-16 11:20:33 - ContextManager: JDBCRealm: SQLException: java.sql.SQLException: Error during query: Unexpected Exception: java.sql.SQLException message given: Communication link failure: java.io.IOException 2001-03-16 11:20:38 - ContextManager: JDBCRealm: The database connection is null or was found to be closed. Trying to re-open it. 2001-03-16 11:20:38 - ContextManager: JDBCRealm: JDBCRealm.authenticate: SELECT password FROM profiles WHERE username = ? 2001-03-16 11:20:38 - ContextManager: JDBCRealm: Authentication unsuccessful for user null 2001-03-16 11:20:47 - ContextManager: JDBCRealm: Authentication successful for user Walter 2001-03-16 11:20:47 - ContextManager: JDBCRealm: Auth ok, user=Walter 2001-03-16 11:20:47 - ContextManager: JDBCRealm: Controled access for Walter R( /ngs_web + /entering/buttons.jsp + null) Ct (jsp(org.apache.jasper.servlet.JspServlet/null) ) 2001-03-16 11:20:47 - ContextManager: JDBCRealm: There was an SQLException while in getUserRoles: Walter 2001-03-16 11:20:47 - ContextManager: JDBCRealm: SQLException: java.sql.SQLException: Error during query: Unexpected Exception: java.sql.SQLException message given: Communication link failure: java.io.IOException 2001-03-16 11:20:47 - ContextManager: JDBCRealm: Auth ok, user has no roles 2001-03-16 11:20:47 - ContextManager: JDBCRealm: UnAuthorized Y 2001-03-16 11:20:55 - ContextManager: JDBCRealm: The database connection is null or was found to be closed. Trying to re-open it. 2001-03-16 11:20:55 - Ctx( /ngs_web ): Exception in: R( /ngs_web + /entering/buttons.jsp + null) - java.lang.NullPointerException at org.gjt.mm.mysql.PreparedStatement.executeQuery(PreparedStatement.java:198) at org.apache.tomcat.request.JDBCRealm.authenticate(JDBCRealm.java:307) at org.apache.tomcat.request.JDBCRealm.authenticate(JDBCRealm.java:482) at org.apache.tomcat.core.ContextManager.doAuthenticate(ContextManager.java:837) at org.apache.tomcat.core.RequestImpl.getRemoteUser(RequestImpl.java:341) at org.apache.tomcat.request.JDBCRealm.authorize(JDBCRealm.java:503) at org.apache.tomcat.core.ContextManager.doAuthorize(ContextManager.java:855) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:789) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743) at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:210) 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:498) 2001-03-16 11:21:00 - Ctx( /ngs_web ): Exception in: R( /ngs_web + /display/ngs_home.jsp + null) - javax.servlet.ServletException at java.lang.Throwable.init(Throwable.java:96) at java.lang.Exception.init(Exception.java:44) at javax.servlet.ServletException.init(ServletException.java:161) at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:459) at display._0002fdisplay_0002fngs_0005fhome_0002ejspngs_0005fhome_jsp_4._jspService(_0002fdisplay_0002fngs_0005fhome_0002ejspngs_0005fhome_jsp_4.java:2404) 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.java: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:797) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743) at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:210) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416) at
RE: tomcat as a stand alone server
My client is currently in acceptance testing with a Tomcat installation. Their system is a Dell PowerEdge 6300 with 4 400MHz processors and lots of RAM and disk space. They are running WinNT 4.0 SP6a and SQL Server 7.0 and IIS 4.0. We configured IIS so that all of our resources are served via Tomcat using the isapi_redirect.dll. The application consists of about 60-75 jsp files, a handful of servlets, a handful of JS files, and one each of HTML, GIF, and CSS files. During acceptance testing they have between 2 and 10 concurrent users with the expceted load to be close to 20 concurrent users. Like I said, not a large system. Version Release Candidate 1 was installed on Tuesday and the system has been running since then with no downtime and performing as fast as their network will allow (they do have network bandwidth issues). If you need more specifics about this, contact me directly. Randy -Original Message- From: Nick Butler [mailto:[EMAIL PROTECTED]] Sent: Friday, March 16, 2001 1:10 PM To: '[EMAIL PROTECTED]' Subject: RE: tomcat as a stand alone server Can anyone add their experience with tomcat as a stand alone web server. Is it stable enough and does it perform fast enough to be considered a "production" web server. Any details of your using tomcat in a production environment would be appreciated. I am not as concerned about security issues because I will be using it behind a firewall but stability is very important. -Original Message- From: Naik Uresh [mailto:[EMAIL PROTECTED]] Sent: Friday, March 16, 2001 11:55 AM To: '[EMAIL PROTECTED]' Subject: RE: tomcat as a stand alone server Can be stand alone. -Original Message- From: Batsheva Raviv [mailto:[EMAIL PROTECTED]] Sent: Friday, March 16, 2001 4:17 PM To: [EMAIL PROTECTED] Subject: tomcat as a stand alone server Hello, I am new to tomcat. and I just wonder if tomcat can be a stand alone web server, of it should only run with apache or IIS, Thanks, Batsheva ** ** The information in this email is confidential and is intended solely for the addressee(s). Access to this email by anyone else is unauthorised. If you are not an intended recipient, you must not read, use or disseminate the information contained in the email. Any views expressed in this message are those of the individual sender, except where the sender specifically states them to be the views of The Capital Markets Company. http://www.capco.com ** *
Re: Linux-Tomcat-ThreadPool NullpointerException
I saw exactly the same thing when I ran a load test on tomcat 3.2.1 wth jdk 1.2.2_07. What's your Tomcat max_thread set to? I changed it to 10 and the problem went away. But I am not happy with the performance with only 10 threads. Bill Bill Graham wrote: I'm just getting started with Tomcat and the first thing I'm doing is some load testing. I'm using VA Linux with Tomcat 3.2.1 and the Sun j2re1.3 VM. When hitting Tomcat with 60 threads each making 1000 requests, I periodically will get the following excepion on my client machines: java.net.SocketException: Connection reset by peer: Connection reset by peer and following excepion on hy server machine: 2001-03-16 03:20:24 - ContextManager: Error reading request, ignored - java.lang.NullPointerException at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection (HttpConnectionHandler.java:191) 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) Of the 20k requests made, I'll get about 60 errors on the first run, which might be exceptable but on subsequest runs They's incread up to about 150. By the third or fourth run, some or all of my client machines will hang while waiting for responses. This is not acceptable. I'm about to start diggin into the tomcat source but would love it if someone has solved (or knows how to soleve) this problem already. anyone? - bill __ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/
RE: Excel to XML
Do you think I can odbc connection to Excel file? I am not using MS Access but using MS Excel. My project is to automatically convert all downloaded Excel files into XML using Java. I can not find any tool for this. -Original Message- From: Michael Wentzel [mailto:[EMAIL PROTECTED]] Sent: Friday, March 16, 2001 12:05 PM To: '[EMAIL PROTECTED]' Subject: RE: Excel to XML Jianming Wang If you're talking strictly data you could make an odbc connection and suck out the data that way. If you're talking about the whole ball of wax(formatting, precision, data, etc.) you are probably going to need to right some native(c++) code and use the M$ components to interact with excel files. M$ has a knack of slipping little things in here and there so that it makes it difficult for others to do anything with their stuff(i.e. remember that whole M$ jvm/J++ fiasco). Alternately, I'm sure someone has written a commercial API to interact directly with excel files and get more information than just the data, but of course this costs money. HTH --- Michael Wentzel Software Developer Software As We Think - http://www.aswethink.com mailto:[EMAIL PROTECTED] - Punisher of those who cannot spell dumb!
Re[2]: ClassCastException :(
Hello Bo, Thank you for very helpful sample. I decided to use jsp instead of servlets. Several reasons: 1. My ClassCastException situation is eliminated. Although I don't understand why. 2. I use JSP for presentation("view") layer - so any web-designer can change presentation of data. 3. I use servlet only as controller. So far so good. :) -- Andrey Myatlyuk - 212.269.6082 - 11 Broadway, Suite 700 - New York, NY 10004 www.oneworldinc.com
Re: 404 jsp file not found
Bob, it does have something in it, shown below: html head titleJSP Example/title /head body % String visitor = request.getParameter("name"); if (visitor == null) visitor = "World"; % Hello, %= visitor %! /body /html My understanding though is that even if the .jsp file had only HTML in it, it should still be processed and sent to the browser. But my browser says it can't even find the file. The jasper.log gives some indication why, entry shown below: 2001-03-15 09:58:32 - JspEngine -- /~sdfong/rubyfong/gamezone/index.jsp 2001-03-15 09:58:32 - ServletPath: /~sdfong/rubyfong/gamezone/index.jsp 2001-03-15 09:58:32 -PathInfo: null 2001-03-15 09:58:32 -RealPath: /usr/java/jakarta-tomcat-3.2.1/webapps/ROOT/~sdfong/rubyfong/gamezone/index.jsp 2001-03-15 09:58:32 - RequestURI: /~sdfong/rubyfong/gamezone/index.jsp 2001-03-15 09:58:32 - QueryString: null 2001-03-15 09:58:32 - Request Params: 2001-03-15 09:58:32 - Classpath according to the Servlet Engine is: /usr/java/jakarta-tomcat-3.2.1/webapps/ROOT/WEB-INF/classes If you look at the line that specifies the RealPath, it indicates that it is looking in the ROOT directory of /usr/java/jakarta-tomcat-3.2.1/webapps and it can't find it there. I'm just not sure of how to fix the configuration so that it looks in the right place and then sends the jsp file to tomcat. Any help you can give would be great. Thanks, Luoi On Fri, 16 Mar 2001, Bob Kerstetter wrote: On 3/16/01 9:15 AM, "Shun-Luoi Fong" [EMAIL PROTECTED] wrote: I created a jsp file and put it in my public_html directory. Then when I typed the address into the browser, http://agent.eng.uiowa.edu/~sdfong/rubyfong/gamezone/testex.jsp I get a 404 error with the following message: Not Found (404) Original request: /~sdfong/rubyfong/gamezone/testex.jsp Not found request: /~sdfong/rubyfong/gamezone/testex.jsp Your jsp as nothing in it. It is empty. I downloaded it and looked at it. -- D. Shun-Luoi Fong 821 Melrose Avenue Iowa City, IA 52246 email: [EMAIL PROTECTED] --- Colossions 2:8 See to it that no one takes you captive through philosophy or empty deception, according to the traditions of men, according to the elementary principles of the world, rather than according to Christ. ---
Re: welcome-file problem
On Fri, 16 Mar 2001, Martin Mauri wrote: Hi users! I've configured my web.xml file with the tag: welcome-file-list welcome-fileworksheet.html/welcome-file /welcome-file-list and it worked nice while using Tomcat as a standalone server, but when I installed Tomcat to work with Apache, the welcome file isn't showed at all, I only get the list of available files in the directory...which could be the problem? any idea? Here's a guess (an educated one, since I had similar problems :-): You're not specifying appropriate directives in the tomcat/apache conf file to tell apache to pass that URL to tomcat. Hence, apache is handling that URL (and it's only tomcat knows about the welcome file). If you're using mod_jserv, these are ApJservMount directives; if you're using mod_jk, I don't know, but I'd guess they're ApJKMount directives. Anyway, look at the documentation for this conf file on the tomcat web site. Milt Epstein Research Programmer Software/Systems Development Group Computing and Communications Services Office (CCSO) University of Illinois at Urbana-Champaign (UIUC) [EMAIL PROTECTED]
jsp
Hi, I know how to execute and setup the configure files to execute servlets but can anyone tell the steps involved in executing a JSP scripts Is it the same as executing a servlet???
potential bug
Can anyone confirm a problem I have encountered withe Tomcat. Lets say that I write a servlet called Test.java and put it in the classes directory in the Web-Inf directory, and I decide to change it a little later. So I recompile the servlet and produce a new class file. And have in mind the server is running this whole time. Well, the problem I have encountered is that when I put the new servlet class in the 'classes' directory, where all the classes live, the change doesn't take affect, and sometimes it does. If it doesn''t take affect I have to restart the server to see the new changes. Does anyone else have the same problem..
RE: JDBCRealm reconnect problems?
This is a know bug ( consult bugzilla ) , solved for 3.2.2, 3.3 4.0 some time ago.. but i dont think anybody has tested it, please try 3.2.2 Latest Beta I think it's solved there.. Saludos , Ignacio J. Ortega -Mensaje original- De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Enviado el: viernes 16 de marzo de 2001 20:45 Para: [EMAIL PROTECTED] Asunto: JDBCRealm reconnect problems? Has anyone experienced JDBCReconnect problems??? Looks like mysql db connection times out and JDBCRealm cannot reopen it for some reason. Actually it tries to reopen it and somehow is able to authenticate a user, but then dies completely... Any ideas what can be wrong? This is the error/exceptions from tomcat log file: 2001-03-16 11:20:33 - ContextManager: JDBCRealm: The database connection is null or was found to be closed. Trying to re-open it. 2001-03-16 11:20:33 - ContextManager: JDBCRealm: There was an SQLException while in authenticate: null 2001-03-16 11:20:33 - ContextManager: JDBCRealm: SQLException: java.sql.SQLException: Error during query: Unexpected Exception: java.sql.SQLException message given: Communication link failure: java.io.IOException 2001-03-16 11:20:38 - ContextManager: JDBCRealm: The database connection is null or was found to be closed. Trying to re-open it. 2001-03-16 11:20:38 - ContextManager: JDBCRealm: JDBCRealm.authenticate: SELECT password FROM profiles WHERE username = ? 2001-03-16 11:20:38 - ContextManager: JDBCRealm: Authentication unsuccessful for user null 2001-03-16 11:20:47 - ContextManager: JDBCRealm: Authentication successful for user Walter 2001-03-16 11:20:47 - ContextManager: JDBCRealm: Auth ok, user=Walter 2001-03-16 11:20:47 - ContextManager: JDBCRealm: Controled access for Walter R( /ngs_web + /entering/buttons.jsp + null) Ct (jsp(org.apache.jasper.servlet.JspServlet/null) ) 2001-03-16 11:20:47 - ContextManager: JDBCRealm: There was an SQLException while in getUserRoles: Walter 2001-03-16 11:20:47 - ContextManager: JDBCRealm: SQLException: java.sql.SQLException: Error during query: Unexpected Exception: java.sql.SQLException message given: Communication link failure: java.io.IOException 2001-03-16 11:20:47 - ContextManager: JDBCRealm: Auth ok, user has no roles 2001-03-16 11:20:47 - ContextManager: JDBCRealm: UnAuthorized Y 2001-03-16 11:20:55 - ContextManager: JDBCRealm: The database connection is null or was found to be closed. Trying to re-open it. 2001-03-16 11:20:55 - Ctx( /ngs_web ): Exception in: R( /ngs_web + /entering/buttons.jsp + null) - java.lang.NullPointerException at org.gjt.mm.mysql.PreparedStatement.executeQuery(PreparedStatem ent.java:198) at org.apache.tomcat.request.JDBCRealm.authenticate(JDBCRealm.java:307) at org.apache.tomcat.request.JDBCRealm.authenticate(JDBCRealm.java:482) at org.apache.tomcat.core.ContextManager.doAuthenticate(ContextMa nager.java:837) at org.apache.tomcat.core.RequestImpl.getRemoteUser(RequestImpl.java:341) at org.apache.tomcat.request.JDBCRealm.authorize(JDBCRealm.java:503) at org.apache.tomcat.core.ContextManager.doAuthorize(ContextManag er.java:855) at org.apache.tomcat.core.ContextManager.internalService(ContextM anager.java:789) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743) at org.apache.tomcat.service.http.HttpConnectionHandler.processCo nnection(HttpConnectionHandler.java:210) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoin t.java:416) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPo ol.java:498) at java.lang.Thread.run(Thread.java:498) 2001-03-16 11:21:00 - Ctx( /ngs_web ): Exception in: R( /ngs_web + /display/ngs_home.jsp + null) - javax.servlet.ServletException at java.lang.Throwable.init(Throwable.java:96) at java.lang.Exception.init(Exception.java:44) at javax.servlet.ServletException.init(ServletException.java:161) at org.apache.jasper.runtime.PageContextImpl.handlePageException( PageContextImpl.java:459) at display._0002fdisplay_0002fngs_0005fhome_0002ejspngs_0005fhome _jsp_4._jspService(_0002fdisplay_0002fngs_0005fhome_0002ejspng s_0005fhome_jsp_4.java:2404) 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.java: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
web.xml
I want to know, whenever you want any servlets to run do you have to put an entry in the web.xml file? Can you run a servlet without putting an entry in there. Lets say I write a servlet called "Test1.java" that uses the 'RequestDispatcher's methods "forward()" or "include()". And lets say that I want to either "foward()" or "include()" a servlet call "Test2.java" , does that mean that I have to put an entry in the web.xml like this: servlet servlet-name Test1 /servlet-name servlet-class Test1 /servlet-class /servlet servlet serlvet-name Test2 /servlet-name servlet-class Test2 /servlet-class /servlet If this is true, meaning, if I have to put an entry in the web.xml file for every script I write would it get pretty messy and hard to organize with all these entrees in the web.xml file.There must a another way.
[OT] RE: Linux-Tomcat-ThreadPool NullpointerException
On Fri, 16 Mar 2001 09:44:46 -0800 (PST), Bill Graham wrote: Frank, Thanks for the reply. I'm going to start tryiong to debug Tomcat and see what this NullPointer is. Let me know if you get anywhere and I'll do the same. One thing I've read about and experienced was bad performance with IBM's vm on Linux w/ Tomcat. You might want to try Sun's vm and see if it gets any better. Only don't run in Hotspot mode. Run it in -classic mode. Because due to some bug in hotspot compiler the JVM crashes with tomcat. It's a recognized Sun's bug and funny enough, all the bug reports on that are about Tomcat -- a rich collection from 3.0 to 3.2b.xy! (sorry, i've lost the bug id somhow .. :-( ) Regardless though, I still think something's buggy in Tomcat. bill --- "Lucero, Frank J" [EMAIL PROTECTED] wrote: Bill, I'm doing about the same thing. I'm running the following: apache 1.3.19 Tomcat 3.2.1 IBMJava2-SDK-1.3-5.0.i386.rpm classes12.zip (from Oracle) I am using LoadRunner with a 100 simulated users accessing 9 Oracle JSPs. I'm running this 100 times. It fails about 8 out of 10 times. What i have found is that even if you only run 10 users, but run the scenario 1000 and it fails at about half way through. I've been running with both mod_jk in Apache and also native tomcat with the same results so I'm sure the problem is with tomcat. ...but not sure exactly where or what to do to fix it. If you find anything, please let me know. regards, -Original Message- From: Bill Graham [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 15, 2001 9:14 PM To: [EMAIL PROTECTED] Subject: Linux-Tomcat-ThreadPool NullpointerException I'm just getting started with Tomcat and the first thing I'm doing is some load testing. I'm using VA Linux with Tomcat 3.2.1 and the Sun j2re1.3 VM. When hitting Tomcat with 60 threads each making 1000 requests, I periodically will get the following excepion on my client machines: java.net.SocketException: Connection reset by peer: Connection reset by peer and following excepion on hy server machine: 2001-03-16 03:20:24 - ContextManager: Error reading request, ignored - java.lang.NullPointerException at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection (HttpConnectionHandler.java:191) 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) Of the 20k requests made, I'll get about 60 errors on the first run, which might be exceptable but on subsequest runs They's incread up to about 150. By the third or fourth run, some or all of my client machines will hang while waiting for responses. This is not acceptable. I'm about to start diggin into the tomcat source but would love it if someone has solved (or knows how to soleve) this problem already. anyone? - bill __ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/ __ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/ http://personal.mail.yahoo.com/ Best regards, Tagunov Anthony
Re: Excel to XML
You can make an ODBC connection to excel, but you would have to change the DSN for every file and you would have to have some idea what thefile looked like (columns) before hand. If I were you I would write another excel document and use some VBA to open up a requested Excel and save it as HTML then parse the HTML to convert it to your XML. "Wang, Jianming" wrote: Do you think I can odbc connection to Excel file? I am not using MS Access but using MS Excel. My project is to automatically convert all downloaded Excel files into XML using Java. I can not find any tool for this. -Original Message- From: Michael Wentzel [mailto:[EMAIL PROTECTED]] Sent: Friday, March 16, 2001 12:05 PM To: '[EMAIL PROTECTED]' Subject: RE: Excel to XML Jianming Wang If you're talking strictly data you could make an odbc connection and suck out the data that way. If you're talking about the whole ball of wax(formatting, precision, data, etc.) you are probably going to need to right some native(c++) code and use the M$ components to interact with excel files. M$ has a knack of slipping little things in here and there so that it makes it difficult for others to do anything with their stuff(i.e. remember that whole M$ jvm/J++ fiasco). Alternately, I'm sure someone has written a commercial API to interact directly with excel files and get more information than just the data, but of course this costs money. HTH --- Michael Wentzel Software Developer Software As We Think - http://www.aswethink.com mailto:[EMAIL PROTECTED] - Punisher of those who cannot spell dumb!
RE: Excel to XML
Whenever you install MS Office on a computer, an Excel ODBC Driver is also installed. You can then access the Excel file as a Database. Your table name is the name of the Sheet (Sheet1$, Sheet2$, etc are the default names, but the user can rename them) and your column names are the text that appears in first row. Randy -Original Message- From: Wang, Jianming [mailto:[EMAIL PROTECTED]] Sent: Friday, March 16, 2001 3:22 PM To: '[EMAIL PROTECTED]' Subject: RE: Excel to XML Do you think I can odbc connection to Excel file? I am not using MS Access but using MS Excel. My project is to automatically convert all downloaded Excel files into XML using Java. I can not find any tool for this. -Original Message- From: Michael Wentzel [mailto:[EMAIL PROTECTED]] Sent: Friday, March 16, 2001 12:05 PM To: '[EMAIL PROTECTED]' Subject: RE: Excel to XML Jianming Wang If you're talking strictly data you could make an odbc connection and suck out the data that way. If you're talking about the whole ball of wax(formatting, precision, data, etc.) you are probably going to need to right some native(c++) code and use the M$ components to interact with excel files. M$ has a knack of slipping little things in here and there so that it makes it difficult for others to do anything with their stuff(i.e. remember that whole M$ jvm/J++ fiasco). Alternately, I'm sure someone has written a commercial API to interact directly with excel files and get more information than just the data, but of course this costs money. HTH --- Michael Wentzel Software Developer Software As We Think - http://www.aswethink.com mailto:[EMAIL PROTECTED] - Punisher of those who cannot spell dumb!
Running servlets in a stand alone
Ok, this is the second machine! I FINALLY go servlets to run on a win98 machine with tomcat 4.01 beta now I'm trying to do the same thing, tomcat 4.01 beta standalone and I cannot get the stupid HelloWorld servlet to output to the browser! It appears to run, no log messages saying exceptions, no browser exception just a blank page! What is up with this? I'm using the url of http://localhost:8080/MyTest/servlet/srv.HelloWorld. My web.xml file looks like this: !DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN" "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd" web-app display-nameJoe Testing/display-name descriptionThis is a simple web application with a source code organizationbased on the recommendations of the Application Developer's Guide. /descriptionservlet servlet-nameHelloServlet/servlet-name servlet-classsrv.HelloWorld/servlet-class /servletservlet-mapping servlet-nameHelloServlet/servlet-name url-pattern/hello/url-pattern /servlet-mapping /web-appI'm using ANT to do the builds, using an index.htm page to link to the HelloWorld servlet and I get nothing! Please oh pleas help! This is making absolutely no sense.Jeff FinleyNo Technologies Inc.Just Doing it because, NY 000501Get your FREE download of MSN Explorer at http://explorer.msn.com
Re: jsp
Well it appears that the .jsp is automagic if you use the recommended directory structure and a simple web.xml file. I got .jsp to run no problem, now I can't get /servlet to run AT ALL! BTW, I use ANT to do the build and management. - Original Message - From:[EMAIL PROTECTED] Sent:Friday, March 16, 2001 2:21 PM To:[EMAIL PROTECTED] Subject:jsp Hi, I know how to execute and setup the configure files to execute servletsbut can anyone tell the steps involved in executing a JSP scripts Is itthe same as executing a servlet??? Get your FREE download of MSN Explorer at http://explorer.msn.com
Re: potential bug
On Fri, 16 Mar 2001 15:53:38 EST, [EMAIL PROTECTED] wrote: Can anyone confirm a problem I have encountered withe Tomcat. Lets say that I write a servlet called Test.java and put it in the classes directory in the Web-Inf directory, and I decide to change it a little later. So I recompile the servlet and produce a new class file. And have in mind the server is running this whole time. Well, the problem I have encountered is that when I put the new servlet class in the 'classes' directory, where all the classes live, the change doesn't take affect, and sometimes it does. If it doesn''t take affect I have to restart the server to see the new changes. Does anyone else have the same problem.. else have the same problem.. Configure the context in server.xml. set reloadable="true" where appropriate Best regards, Tagunov Anthony
Re: [OT] RE: Linux-Tomcat-ThreadPool NullpointerException
On Sat, 17 Mar 2001 00:05:43 +0300, Tagunov Anthony wrote: Only don't run in Hotspot mode. Run it in -classic mode. Because due to some bug in hotspot compiler the JVM crashes with tomcat. It's a recognized Sun's bug and funny enough, all the bug reports on that are about Tomcat -- a rich collection from 3.0 to 3.2b.xy! (sorry, i've lost the bug id somhow .. :-( ) Catching my own e-mail: fogot to mention that this is Linux only problem, and i persnally have it on RH 6.2 Best regards, Tagunov Anthony
Error when shutdown tomcat
Hi, When I run the shutdown.bat I got the following errors: ... Is the error comes from the configuration or a bug in the tomcat? Thanks. J. Tang
Diff between servlet api ver 2.1 and 2.2
Can somebody tell me what the difference. I have code that worked under jswdk servlet api 2.1, now I need to move to tomcat 3.2.1 which supports servelt api 2.2. Thanx Ganesh
Re: System out and System err
I spent some time fooling with logs before I realized that if you override: Servlet.init(ServletConfig config) you must call this somewhere in your new init() method: super.init(config) otherwise the servlet container's logs don't get turned on.
Re: Diff between servlet api ver 2.1 and 2.2
On Fri, 16 Mar 2001, Sankaranarayanan Ganapathy wrote: Can somebody tell me what the difference. I have code that worked under jswdk servlet api 2.1, now I need to move to tomcat 3.2.1 which supports servelt api 2.2. Check out: http://www.javaworld.com/javaworld/jw-10-1999/jw-10-servletapi.html You can also download the spec from Sun's site, off the servlets product page. Milt Epstein Research Programmer Software/Systems Development Group Computing and Communications Services Office (CCSO) University of Illinois at Urbana-Champaign (UIUC) [EMAIL PROTECTED]
Re: System out and System err
On Fri, 16 Mar 2001, Ben Galbraith wrote: I spent some time fooling with logs before I realized that if you override: Servlet.init(ServletConfig config) you must call this somewhere in your new init() method: super.init(config) otherwise the servlet container's logs don't get turned on. This is one of the main reasons that the init() method -- without any parameters -- was added. That way, you don't get caught by this very common mistake, which usually also leads to NullPointerException problems. Craig McClanahan
security issues with stand alone tomcat
What are the security issues with stand alone Tomcat. Batsheva
JSP file line number
when a compilation or exception occurs, tomcat doesn't say on which line number of the JSP file the error occurred. JRun does it. is there some way we can configure tomcat to show the line number in the JSP file instead of the java file. thanks, SK
wrapper.properties
Title: wrapper.properties Im having problem when the path for the wrapper.java_home contains spaces. Do you have a solution for this problem? Regards, Armin Alcantara
running jsp
Can anyone tell me if the steps involved running a jsp script is the same as running a servlet. And if it is different can anyone tell me the differences.
RE: web.xml
I -think- that you don't have to create all of the servlet servlet-name Test1 /servlet-name servlet-class Test1 /servlet-class /servlet There is an Invoker servlet that you associate with the path for the servlets... and the invoker looks for the class file, and runs it. in the tomcat/conf/web.xml: servlet servlet-name invoker /servlet-name servlet-class org.apache.tomcat.servlets.InvokerServlet /servlet-class /servlet and you associate this with a path in your app web.xml: servlet-mapping servlet-name invoker /servlet-name url-pattern /vsj/* /url-pattern /servlet-mapping Can anyone confirm this? I can't find any docs for the ServletInvoker... and can not get things running. The lack of detailed documentation is extremely frustrating. Even the the recent article in Linux Journal glosses over all the important details. -Jim -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Friday, March 16, 2001 3:55 PM To: [EMAIL PROTECTED] Subject: web.xml I want to know, whenever you want any servlets to run do you have to put an entry in the web.xml file? Can you run a servlet without putting an entry in there. Lets say I write a servlet called "Test1.java" that uses the 'RequestDispatcher's methods "forward()" or "include()". And lets say that I want to either "foward()" or "include()" a servlet call "Test2.java" , does that mean that I have to put an entry in the web.xml like this: servlet servlet-name Test1 /servlet-name servlet-class Test1 /servlet-class /servlet servlet serlvet-name Test2 /servlet-name servlet-class Test2 /servlet-class /servlet If this is true, meaning, if I have to put an entry in the web.xml file for every script I write would it get pretty messy and hard to organize with all these entrees in the web.xml file.There must a another way.
RE: 3.2.1 commercial applications
InsureSuite is using Tomcat 3.2.1 and it's been just great in terms of stability (and OK in terms of speed - I'm definitely looking forward to the improved HTTP Connector in Tomcat 4). http://www.insuresuite.com/ Yours, Aleksey Tsalolikhin UNIX System Administrator InsureSuite, Inc. -Original Message- From: Justin Kennedy [SMTP:[EMAIL PROTECTED]] Sent: Thursday, March 15, 2001 3:10 PM To: [EMAIL PROTECTED] Subject: 3.2.1 commercial applications Hi. Is there a list somewhere of Companies that use Tomcat for their commercial applications ? On the jakarta web site it says release builds are those that are ready for Prime Time. Does this mean I can use tomcat standalone or tomcat + apache for my commercial app ? Some kind of reference would be great as I'm getting some crap from my manager for using tomcat and custom tags.