Re: AW: Session with IE
Hi Wyn, I'm sure. I set to Enable all places. With iPlanet there isn't problem. I think that problem is in my configuration. Saludos, José Luis Wyn Easton wrote: Jose, I just looked at my IE setting and there are actually four places that deal with cookies. There are two places in Internet and two in Local internet. Be sure you have Allow per-session cookies (not stored) set to Enable in both places. --- Jose Luis Rodriguez [EMAIL PROTECTED] wrote: Well, I have seen in IE configuration Tools/Internet options/Security/Internet-Intranet (Cookies enable). I think that cookies are enabled. Thanks, José Luis Wyn Easton wrote: Jose, If cookies are enabled for IE, why does your output say: sessions.fromcookie = false for IE? H... --- Jose Luis Rodriguez [EMAIL PROTECTED] wrote: Yes, the cookies are enabled in my IE. Saludos, José Luis Ralph Einfeldt wrote: To me it looks like you don't have cookies enables in IE and you don't use response.encodeUrl() for the url's that link the pages. -Ursprüngliche Nachricht- Von: Jose Luis Rodriguez [mailto:[EMAIL PROTECTED]] Gesendet: Mittwoch, 20. Juni 2001 10:08 An: [EMAIL PROTECTED] Betreff: Session with IE snip/ sessions.requestedid = null sessions.requestedidvalid = false sessions.fromcookie = false sessions.fromurl = false snip/ sessions.requestedid = d6eju3yor1 sessions.requestedidvalid = true sessions.fromcookie = true sessions.fromurl = false snip/ __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail http://personal.mail.yahoo.com/ __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail http://personal.mail.yahoo.com/
Tomcat Configuration
I have an applicaction with two modules that it have common classes and common images. But if I update my classes, I have to do it in both directories. webapps/app1 webapps/app1/Web-inf/classes/mis_clases webapps/app2 webapps/app2/Web-inf/classes/mis_clases webapps/images I think that all classes could be in jakarta-tomcat/classes directory. Is it right? Thanks in advance, José Luis
Servlet not in webapps directory
Hi ! It is possible to lauch a sevlet that is not in the TOMCAT_HOME directory ? Can I do that by configuring a Context for my servlet ? And how exactly ? thanx -- Sent through GMX FreeMail - http://www.gmx.net
RE: Servlet not in webapps directory
In the server.xml you can define a new Context that maps between context and actual directory. In the following example calling servlets through http://your.company.com/tt/servlet/myservlet will launch the servlets from d:/xx/yy/zz/webpages Context path=/tt docBase=d:/xx/yy/zz/webpages crossContext=true debug=0 reloadable=true trusted=false/ if you want to call servlets from the server root set the path to . - Eitan Ben-Noach Proficiency, Ltd. Tel: +972.2.548.0287 Fax: +972.2.586.3871 email: [EMAIL PROTECTED] The Intelligence in Engineering Supply Chain Collaboration http://www.proficiency.com/ -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 21, 2001 9:17 AM To: [EMAIL PROTECTED] Subject: Servlet not in webapps directory Hi ! It is possible to lauch a sevlet that is not in the TOMCAT_HOME directory ? Can I do that by configuring a Context for my servlet ? And how exactly ? thanx -- Sent through GMX FreeMail - http://www.gmx.net
Re: URGENT: Problem's in configuring Tomcat 3.2.1 with Apache 1.3.20
Add the map directory to tomcat. I used tomcat with apache and work well. Frans -Original Message- From: Bhootnath Singh [EMAIL PROTECTED] To: '[EMAIL PROTECTED]' [EMAIL PROTECTED] Date: Monday, June 18, 2001 12:19 PM Subject: URGENT: Problem's in configuring Tomcat 3.2.1 with Apache 1.3.20 Hi I am trying to configure Tomcat 3.2.1 with Apache 1.3.20 on Win NT sp 6 I have configure Tomcat successfully but when I try to connect it with apache the problem starts. When I type the URL http://localhost:80/MyApp in my browser it shows me the directory structure of my application. And at the same time I get an error in my error.log of apache which says: [error] [client 127.0.0.1] client denied by server configuration: c:/jakarta-tomcat-3.2.1/webapps/MyApp/meta-inf [error] [client 127.0.0.1] client denied by server configuration: c:/jakarta-tomcat-3.2.1/webapps/MyApp/web-inf what can be the cause of this problem . How do I get over it all my servlet classes are inside the directory MyApp/WEB-INF/classes/ all my jsp's are inside the directory MyApp/jsp Please help me out to solve my problem. _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com
Re: Tutorial for JSP -- JDBC -- ProgreSQL 7.1 ??
I read in the book from Wrox, Prof JSP, it is a good sample. or you can download my script in www.blueoxygen.org/project/cimande/download.html Contact me if you got a problem. Frans -Original Message-From: Dino Ming [EMAIL PROTECTED]To: TomCat User [EMAIL PROTECTED]Date: Wednesday, June 20, 2001 11:25 PMSubject: Tutorial for JSP -- JDBC -- ProgreSQL 7.1 ?? Dear All, Where can I find tutorial for JSP -- JDBC -- ProgreSQL 7.1 ? Rgds, Dino
Tomcat book
Does anybody know where I can find a book about Tomcat: installation, configuration, use ? I need one to prepare a course Thanks a lot David.
RE: Servlet not in webapps directory
In the server.xml you can define a new Context that maps between context and actual directory. In the following example calling servlets through http://your.company.com/tt/servlet/myservlet will launch the servlets from d:/xx/yy/zz/webpages Context path=/tt docBase=d:/xx/yy/zz/webpages crossContext=true debug=0 reloadable=true trusted=false/ if you want to call servlets from the server root set the path to . I tried that, but it doesn't work : with the URL http://your.company.com/tt/ I get the tree of the directory d:/xx/yy/zz/webpages/ but when I try http://your.company.com/tt/servlet/myservlet or even http://your.company.com/tt/myservlet I get a 404 error and I don't understand why. In the webpages directory, must there be special folders ? And I wonder if I must put something in the http.conf or in my mod_jk.conf ... Please help !!! ;o) Thanx in advance... -- Sent through GMX FreeMail - http://www.gmx.net
Deploying an XSLT filter in Tomcat 4.0
Does anybody know the current level of support for filters in Tomcat 4.0? I have written a small filter to take the XML output from one of our servlets, and then dependent on a parameter in the ServletRequest, use Xalan to transform the XML to HTML, WML or VoxML as appropriate. Unfortunately, I am completely unable to make Tomcat 4.0 chain the filter to the Servlet, so all I am getting is raw XML rather than HTML etc. My current web.xml looks like (excluding prolog) web-app servlet servlet-nameEchoServlet/servlet-name servlet-classuk.co.itouch.EchoServlet/servlet-class /servlet filter filter-nameEchoFilter/filter-name filter-classuk.co.itouch.EchoFilter/filter-class /filter filter-mapping servlet-nameEchoServlet/servlet-name filter-nameEchoFilter/filter-name /filter-mapping /web-app What am I doing wrong? How do I make Tomcat chain the filter to a servlet? Do I have to invoke the servlet in a special way? Thanks Martin
RE: Servlet not in webapps directory
In order that it will work the d:/xx/yy/zz/webpages/ directory should be in the classpath variable before running Tomcat, so Tomcat can find your servlet. Another way, and actually the standard one, is to create WEB-INF/classes directory under d:/xx/yy/zz/webpages/ and put there your servlets. This directory is automatically added to the classpath of Tomcat, and you do not need to add anything. You can look at the webapps directory that comes with Tomcat installation, the servlets examples are in this exact structure. Eitan -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 21, 2001 11:18 AM To: [EMAIL PROTECTED] Subject: RE: Servlet not in webapps directory In the server.xml you can define a new Context that maps between context and actual directory. In the following example calling servlets through http://your.company.com/tt/servlet/myservlet will launch the servlets from d:/xx/yy/zz/webpages Context path=/tt docBase=d:/xx/yy/zz/webpages crossContext=true debug=0 reloadable=true trusted=false/ if you want to call servlets from the server root set the path to . I tried that, but it doesn't work : with the URL http://your.company.com/tt/ I get the tree of the directory d:/xx/yy/zz/webpages/ but when I try http://your.company.com/tt/servlet/myservlet or even http://your.company.com/tt/myservlet I get a 404 error and I don't understand why. In the webpages directory, must there be special folders ? And I wonder if I must put something in the http.conf or in my mod_jk.conf ... Please help !!! ;o) Thanx in advance... -- Sent through GMX FreeMail - http://www.gmx.net
Re: Windows NT service failed to start
Hello Jeff, Wednesday, June 20, 2001, 10:09:12 PM, you wrote: JD Hi, JD I am using Tomcat for a while and i finally found the way for working with the Jakarta NT Service. But there is a error and i search but... i think an expert could understand why!!! JD Here are the step i followed:(I am working with Win NT) JD 1) I downloaded the jk_nt_service.exe JD 2) I changed the wrapper.properties file: JDwrapper.tomcat_home=G:\Java\JSP\jakarta-tomcat-3.2.2 JDwrapper.java_home=D:\JBuilder4 You should write: wrapper.java_home=D:\JBuilder4\jdk1.3 it seems so JD 3) jk_nt_service -i Jakarta wrapper.properties JD(That was made in the conf directory where the jk_nt_service.exe and the wrapper.properties files were located. JD 4) JD G:\Java\JSP\jakarta-tomcat-3.2.2\confnet start Jakarta JD The Jakarta service is starting. JD The Jakarta service could not be started. JD The service did not report an error. JD More help is available by typing NET HELPMSG 3534. JD G:\Java\JSP\jakarta-tomcat-3.2.2\confNET HELPMSG 3534 JD The service did not report an error. JD EXPLANATION JD The service did not report an error. JD ACTION JD Try the task later. If the problem persists, contact your network JD administrator. JD And the same error (about the same) appear when i start Jakarta in the service window manually. JD I need some explanation please. JD I am able to start tomcat whithin the bin directory manually with the startup command but i would like to have it as a service.. JD Thank you for your help. JD Jeff JD Find the best deals on the web at AltaVista Shopping! JD http://www.shopping.altavista.com -- Best regards, Andrew
RE: Servlet not in webapps directory
In order that it will work the d:/xx/yy/zz/webpages/ directory should be in the classpath variable before running Tomcat, so Tomcat can find your servlet. Another way, and actually the standard one, is to create WEB-INF/classes directory under d:/xx/yy/zz/webpages/ and put there your servlets. This directory is automatically added to the classpath of Tomcat, and you do not need to add anything. You can look at the webapps directory that comes with Tomcat installation, the servlets examples are in this exact structure. Yes, that's what I've just discovered, but I would like Tomcat not to go in WEB-INF/classes/ but where I want, and I don't know exactly where configuring the classpath and how... Thanx for all and excuse me if I insist, but I want to be sure of what I do... ;o) -- Sent through GMX FreeMail - http://www.gmx.net
Re: cannot run servlet
Hello Siaw, Thursday, June 21, 2001, 5:45:21 AM, you wrote: SLL I have created another URL 'dir' for other web SLL application. The 'examples' URL, i.e., SLL http://localhost/examples/servlet/xxx is working fine SLL but not the new URL. SLL Error msg: SLL Error : 404 SLL Location: dir/servlet/xxx SLL I have added changes in tomcat.conf and server.xml. SLL Have I missed out anything? SLL Thanks and appreciate your advice. SLL __ SLL Do You Yahoo!? SLL Get personalized email addresses from Yahoo! Mail SLL http://personal.mail.yahoo.com/ It would better if you provided your web.xml - configuration for your web-app. The simples one is: web-app servlet servlet-nameServlet1/servlet-name /servlet-classMyServlet/servlet-class /servlet servlet-mapping servlet-nameServlet1/servlet-name url-pattern/servlet/url-pattern /servlet-mapping /web-app === then you should to place MyServlet.class to dir/web-inf/classes and restart your app-server and then try http://localhost/dir/servlet -- Best regards, Andrew
nt_service: doesn't restart wrapper.stdout=???
Hello), Could smb help me, please? may be you've come across such problems: 1) nt_servce starts succesfully, and stops later without any worning messages - but it (tomcat) doesn't stop in real (i can walk through my site as if it runs). What is it?? 2) then i'd like to see warning messages at stdout and stderr window of tomcat - when it was started with nt_service. I've tried to unset values at wrapper.properites (wrapper.stdout and wrapper.stderr). May be smb knows what values theh can be set to. Of course i've enabled Allow servide to interract with window in windos services and tocmat shows its std window - but it is absolutely empty. thanks in advance)) -- Best regards, Andrew
RE: Servlet not in webapps directory
Setting your classpath: If you run Tomcat from a DOS console window, before running Tomcat type: set CLASSPATH=%CLASSPATH%;YourServletDirectoy where 'YourServletDirectoy' the full path of the directory were you put your servlets. In that way add YourServletDirectoy to the existing CLASSPATH ( if not existed, this statement will create it). If you run Tomcat through Windows explorer, you should add the line above to tomcat.bat file at %TOMCAT_HOME%\bin directory. You can add it as the first line in this file. Actually, you can add this line also if you run Tomcat from the DOS console window. Eitan -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 21, 2001 1:46 PM To: [EMAIL PROTECTED] Subject: RE: Servlet not in webapps directory In order that it will work the d:/xx/yy/zz/webpages/ directory should be in the classpath variable before running Tomcat, so Tomcat can find your servlet. Another way, and actually the standard one, is to create WEB-INF/classes directory under d:/xx/yy/zz/webpages/ and put there your servlets. This directory is automatically added to the classpath of Tomcat, and you do not need to add anything. You can look at the webapps directory that comes with Tomcat installation, the servlets examples are in this exact structure. Yes, that's what I've just discovered, but I would like Tomcat not to go in WEB-INF/classes/ but where I want, and I don't know exactly where configuring the classpath and how... Thanx for all and excuse me if I insist, but I want to be sure of what I do... ;o) -- Sent through GMX FreeMail - http://www.gmx.net
RE: Deploying an XSLT filter in Tomcat 4.0
My current web.xml looks like (excluding prolog) It's pretty cool that tomcat's web.xml lets you code in prolog, although I think that will fail the sun standards test :-) -Original Message- From: Martin Coxall [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 21, 2001 10:56 PM To: [EMAIL PROTECTED] Subject: Deploying an XSLT filter in Tomcat 4.0 Does anybody know the current level of support for filters in Tomcat 4.0? I have written a small filter to take the XML output from one of our servlets, and then dependent on a parameter in the ServletRequest, use Xalan to transform the XML to HTML, WML or VoxML as appropriate. Unfortunately, I am completely unable to make Tomcat 4.0 chain the filter to the Servlet, so all I am getting is raw XML rather than HTML etc. My current web.xml looks like (excluding prolog) web-app servlet servlet-nameEchoServlet/servlet-name servlet-classuk.co.itouch.EchoServlet/servlet-class /servlet filter filter-nameEchoFilter/filter-name filter-classuk.co.itouch.EchoFilter/filter-class /filter filter-mapping servlet-nameEchoServlet/servlet-name filter-nameEchoFilter/filter-name /filter-mapping /web-app What am I doing wrong? How do I make Tomcat chain the filter to a servlet? Do I have to invoke the servlet in a special way? Thanks Martin
How to mask servlet ?
Does anybody know how to mask the servlet ? Using Apache /Tomcat, i would like the URL le /aName (or /) be redirect to my Servlet (without the /servlet/myServlet). He's there a way to do so ? Thanks Eric
Error 404
Title: Error 404 Hi all, I would need help because the redirector does not work in my particular environment. I have Win2000/PWS and Tomcat 3.2.2 installed. The servlet engine works fine without collaboration with the IIS/PWS. I checked each step of the configuration several times but ever I try to execute http://localhost/examples/jsp/index.html I receive the 404 error. The Tomcat 3.2 shell window shows the following message: 2001-06-21 02:52:20 - Ctx( ): 404 R( + /jakarta/isapi_redirect.dll + null) null The server.log of the IIS/PWS has the following entries: #Software: Microsoft Internet Information Services 5.0 #Version: 1.0 #Date: 2001-06-21 11:09:37 #Fields: time c-ip cs-method cs-uri-stem sc-status 11:09:37 127.0.0.1 GET /jakarta/examples/jsp/index.html 404 11:12:04 127.0.0.1 GET /examples/jsp/index.html 200 11:12:10 127.0.0.1 GET /examples/jsp/index.html 200 11:12:12 127.0.0.1 GET /examples/jsp/index.html 200 Have you got an idea what the problem could be and do you need more information ? Many thanks in advance Günther Wohlfahrt
AW: Error 404
If you are using tomcat behind a web server, by default only the request that match *.jsp are forwarded to tomcat. The solution depends on what you want, if you want this page to be delivered by tomcat rename it to index.jsp, otherwise place it in the document root of the web server as examples\jsp\index.html. -Ursprüngliche Nachricht- Von: Wohlfahrt, Guenther [mailto:[EMAIL PROTECTED]] Gesendet: Donnerstag, 21. Juni 2001 15:03 An: [EMAIL PROTECTED] Betreff: Error 404 snip/ http://localhost/examples/jsp/index.html snip/
Applet - http tunneling - user authentication
Hi tomcatters, Im using user authentication on apache and I would like to make an applet communicate with a servlet through http tunneling. Here is a snippet of the code I use : dataURL = new URL(http,myserver,80,/myservlet?action=connect); connection = dataURL.openConnection(); connection.setUseCaches(false); connection.setRequestProperty(header,value); jTextField1.setText(dataURL.toString()); ObjectInputStream in = new ObjectInputStream(connection.getInputStream()); String value = (String) in.readObject(); jTextField1.setText(Connection established, server says : + value + .); in.close(); When I deactivate the authorization section, it works fine but with it I always got a 401 in access.log Anybody has ever tried to do similar things ? Any help is welcome Regis
Authentication tomcat users using EJB
I want to authenticate tomcat users with remote calls to EJBs. I built EJB Beans with login, password and roles. How do I get tomcat to authenticate. I looked at the JDBCRealm but I am using a embedded DB and cannot have multiple connections. Do I need to create and custom Realm or does something like this already exist? Thanks, Joe Knudsen Optical Solutions Network Management Developer Email: [EMAIL PROTECTED] Phone: (763)268-3622
Build 3.2.2 errors
Greetings, I'm trying to build Tomcat 3.2.2, and it's not going well. I'm using IBM JDK 2.13. I have successfully installed jaxp-1.1, jsse-1.0.2, ant-1.3, and servletapi-3.2.2. However, when I go to build Tomcat 3.2.2 with either build.sh or build.sh dist, I get several errors. First, jaxp doesn't include parser.jar anymore, so the tomcat script should be updated. Also, jaxp is at 1.1, so I had to artificially rename the directory back to jaxp-1.0.1 so that build.sh would at least copy the first file, if not the second one: prepare: [copy] Could not find file /share/opt/jakarta/jaxp-1.0.1/parser.jar to copy. The real meat of the errors are a series of cannot resolve symbol errors that all appear to be related to SSL. I have set $CLASSPATH and have copied the three jsse jar files into $CLASSPATH and $CLASSPATH/ext hoping they would be found in either location. I've searched the archives of the list and saw one person with this problem, but no solutions. I've also manually registered the security handler in java.security (which only existed under the jre tree -- I copied it to the jdk tree). Here are most of the errors. The rest are very similar. Anyone have any insight? Thanks in advance.. tomcat: [javac] Compiling 38 source files to /share/opt/jakarta/build/tomcat/classes [javac] /share/opt/jakarta/jakarta-tomcat/src/share/org/apache/tomcat/net/SSLSocketFactory.java:67: cannot resolve symbol [javac] symbol : class ServerSocketFactory [javac] location: package net [javac] import javax.net.ServerSocketFactory; [javac] ^ [javac] /share/opt/jakarta/jakarta-tomcat/src/share/org/apache/tomcat/net/SSLSocketFactory.java:68: cannot resolve symbol [javac] symbol : class SSLServerSocket [javac] location: package ssl [javac] import javax.net.ssl.SSLServerSocket; [javac] ^ [javac] /share/opt/jakarta/jakarta-tomcat/src/share/org/apache/tomcat/net/SSLSocketFactory.java:69: cannot resolve symbol [javac] symbol : class SSLSocket [javac] location: package ssl [javac] import javax.net.ssl.SSLSocket; [javac] ^ [javac] /share/opt/jakarta/jakarta-tomcat/src/share/org/apache/tomcat/net/SSLSocketFactory.java:70: cannot resolve symbol [javac] symbol : class SSLServerSocketFactory [javac] location: package ssl -- Steve Jackson e-business Architect for $$ Linux hacker for :) - finger for PGP public key -
mysteriously dying connections (Oracle - tomcat)
hi all! problem: database access is managed via a java class that is instantiated and loaded into each clients session. every PL/SQL function and/or SQL statement a client needs is called in a method of this class. first, a connection is opened, the statement is called, all resultsets and statements are closed and finally the connection is closed. (or returned back to the connection pool if one is used) the driver we use is the Oracle jdbc ThinDriver (jdbc driver type 4). after running the system for several days, dead connections (and as we just discovered, tons of open cursors) pile up. eventually the webserver(tomcat) will crash or just hang. in the process, access gets slower and slower, there may be delays of 3 minutes until the webserver (or, perhaps the database, in which case the webserver would be just waiting for the db..) gives a response. after a restart of the webserver or the database or both, the system runns very well again. we tried several connection pools. with these, there were no delays for getting a connection, but the pool threw timeoutExceptions (i.e. made it visible that there are hanging connections) and after a few hundred timeouts the VM crashed with a stack overflow. the connections seem to get killed/kill themselfes randomly no matter which function was called. we log the methods and statements that were called for the connections that die, but there is just no pattern in it. thats why we dont find the root of the problem.. is it the driver ? the database ? the tomcat ? environment: Web Server: Suse Linux 7.2 Apache Webserver /w Tomcat JSP Engine 3.2 /w SSL DB Server: Suse Linux 7.2 Oracle 8i 8.1.7 /w multi-threaded server (MTS) Backup Server: Oracle Shadow server things done: - linux update - apache update - tomcat update - jdbc thin driver update (everywhere the newest version) - tried several connection pools possible changes: - - use OCI drivers instead of thin driver - use J-serv with GNU_jsp instead of tomcat every help is welcome, we're frustrated to no ends. thanks very much in advance!! l.sägesser
RE: How to mask servlet ?
Look at the web.dtd file in tomcat/conf--specifically, the url-pattern tag. The complete spec is at http://java.sun.com/products/servlet/ . -- Bill K. -Original Message- From: Eric MARTIN [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 21, 2001 5:48 AM To: [EMAIL PROTECTED] Subject: How to mask servlet ? Does anybody know how to mask the servlet ? Using Apache /Tomcat, i would like the URL le /aName (or /) be redirect to my Servlet (without the /servlet/myServlet). He's there a way to do so ? Thanks Eric
catalina - webapps/manager (instead of admin?)
Hello Tomcat, could anyone help with the subject - description - i did not find such in archives. And then i have 403 forbidden when i am authorized. I'v didn't changed anything in server.xml, but added a user with the role=admin in tomcat-users.xml. May be i should edit catalina.policy? But before (in tomcat3.2) i could write trusted=true in context description in server.xml, and what now should i do? thanks in advance) -- Best regards, Andrew
Re: How to mask servlet ?
A possible web.xml snippet for something like this: ... servlet servlet-namemyServlet/servlet-name servlet-classcom.yourdomain.myServlet/servlet-class /servlet servlet-mapping servlet-namemyServlet/servlet-name url-pattern/aName/url-pattern /servlet-mapping ... After you have that in Tomcat, you just need to JkMount /aName from Apache to complete the job. Make sure you add the context path before it, though, if the context path isn't the root. Best Regards, Jason Koeninger JJ Computer Consulting http://www.jjcc.com On Thu, 21 Jun 2001 14:48:22 +0200, Eric MARTIN wrote: Does anybody know how to mask the servlet ? Using Apache /Tomcat, i would like the URL le /aName (or /) be redirect to my Servlet (without the /servlet/myServlet). He's there a way to do so ? Thanks Eric
How to avoid of displaying the homepage file path
Hi when we are giving the site name, it is loading the welcome file defined in the web.xml file. But it is displaying the full path of the file in the browser. Can i avoid this. If so, how can i done. thanks in advance... Regards venkatesh
Re: mysteriously dying connections (Oracle - tomcat)
Same here but we have the stopping of the tomcatserver very frequently. At the end of the term when the students (aprox 50 working at the same time) got very busy the tomcatserver stoped replying frequently. We have a configuration with Two Sun Sparc Solaris 7 Servers both tomcat 3.2.1 3.2.2 and one Oracle817 Server on Soalris 7 Once I traped this error: -- 2001-06-19 07:41:23 - ThreadPool: Pool exhausted with 100 threads. 2001-06-19 09:02:25 - ThreadPool: Caught exception executing org.apache.tomcat.service.TcpWorkerThread@3598c3, terminating thread - java.lang.IllegalStateException at org.apache.tomcat.util.ThreadPool.runIt(ThreadPool.java:227) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:405) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501) at java.lang.Thread.run(Thread.java:484) --- As you can see between 07:41:23 09:02:25 (the shutdown of the tomcat server) there was no activity except angry students (times are pm). And this: - 2001-06-20 04:51:10 - Ctx( /a9303541 ): Exception in: R( /a9303541 + /servlet/shop1 + null) - java.lang.NullPointerException at shopmanager.init(shopmanager.java:16) at shop1.init(shop1.java:14) at java.lang.Class.newInstance0(Native Method) at java.lang.Class.newInstance(Class.java:237) at org.apache.tomcat.core.ServletWrapper.loadServlet(ServletWrapper.java:268) at org.apache.tomcat.core.ServletWrapper.init(ServletWrapper.java:289) at org.apache.tomcat.core.Handler.service(Handler.java:254) 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 org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498) at java.lang.Thread.run(Thread.java:484) 2001-06-20 05:01:12 - ThreadPool: Caught exception executing org.apache.tomcat.service.TcpWorkerThread@2c7887, terminating thread - java.lang.IllegalStateException at org.apache.tomcat.util.ThreadPool.runIt(ThreadPool.java:224) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:405) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498) at java.lang.Thread.run(Thread.java:484) 2001-06-20 05:01:12 - ContextManager: Removing context Ctx( /examples ) 5:01:12 was the time where I shutdowned the tomcat server I now shutdown/restart the server hourly and it seems we don't have unsheduled stoppings. Another thing is, that the servlets dont get refreshed when they are changed/deleted (I have reload in server.xml).. Thanks jan ~| ~|problem: ~| ~| ~|database access is managed via a java class that is ~|instantiated and loaded into each clients session. every ~|PL/SQL function and/or SQL statement a client needs is ~|called in a method of this class. ~|first, a connection is opened, the statement is called, ~|all resultsets and statements are closed and finally the ~|connection is closed. (or returned back to the ~|connection pool if one is used) ~| ~|the driver we use is the Oracle jdbc ThinDriver (jdbc ~|driver type 4). after running the system for several ~|days, dead connections (and as we just discovered, tons ~|of open cursors) pile up. ~|eventually the webserver(tomcat) will crash or just ~|hang. ~|in the process, access gets slower and slower, there may ~|be delays of 3 minutes until the webserver (or, perhaps ~|the database, in which case the webserver would be just ~|waiting for the db..) gives a response. ~|after a restart of the webserver or the database or ~|both, the system runns very well again. ~| ~|we tried several connection pools. with these, there ~|were no delays for getting a connection, but the pool ~|threw timeoutExceptions (i.e. made it visible that there ~|are hanging connections) and after a few hundred ~|timeouts the VM crashed with a stack overflow. ~| ~|the connections seem to get killed/kill themselfes ~|randomly no matter which function was called. we log the ~|methods and statements that were called for the ~|connections that die, but there is just no pattern in ~|it. thats why we dont find the root of the problem.. is ~|it the driver ? the database ? the tomcat ? ~| ~| ~| ~|environment: ~| ~| ~|Web Server: ~|Suse Linux 7.2 ~|Apache Webserver /w Tomcat JSP Engine 3.2 /w SSL ~| ~|DB Server: ~|Suse Linux 7.2 ~|Oracle 8i 8.1.7 /w multi-threaded server (MTS) ~| ~|Backup Server: ~|Oracle Shadow server ~| ~| ~| ~|things done:
Re: How to avoid of displaying the homepage file path
Messages with Subject ´Homepage´ are not accepted here (Homepage.HTML.vbs)
Re: How to avoid of displaying the homepage file path
Messages with Subject ´Homepage´ are not accepted here (Homepage.HTML.vbs)
Tomcat Version
Is there any way to get tomcat to return the version/milestone/build date?
Javascript not working
Hi, I have some jsp files, which work under JRun on our intranet, but when I put them on our server on the internet and open them with a browser, I get a javascript error message in the status bar at the bottom of the browser window. Since the jsp files are running on the server in the lan, the reason must have something to do with tomcat, but I have absolutely no idea what I`m doing wrong. Is there a special MIME type for using javascript ? TP
Re: How to avoid of displaying the homepage file path
Messages with Subject ´Homepage´ are not accepted here (Homepage.HTML.vbs)
using unsticky sessions
scenario: running 1 apache, 2 tomcats, mod_Jk using load balancing. This all works fine but requests from the client always go to the same tomcat that the original request went to (sticky sessions). I would prefer them to go to tomcats at random. I think this is to do with the cookie/ URL set by tomcat causing the same tomcat to be used. A solution would be to change the session tracking in the tomcat source code and recompiling it, but this may cause problems in future releases. Anyone got any simpler solutions. Thanks in advance
RE: mysteriously dying connections (Oracle - tomcat)
These look like two different issues: 1) Oracle is running out of cursors. a) Make sure you close every ResultSet, Statement and Connection when you're done with them. One trick you can use on Oracle is to log into the database in SQL*Plus as SYS while your application is running, and do, SELECT SQL_TEXT FROM V_$OPEN_CURSOR; to see the SQL for the cursors you have open. b) Try reusing connections and (prepared) statements wherever possible (assuming you use a common Oracle logon for all your accesses). c) Up the number of allowed open cursors, by putting open_cursors = 500 or so in your database's init.ora file. 2) Tomcat is running out of threads. Are you actually getting dozens of people connecting at the same time? Try increasing the max_threads parameter for PoolTcpConnector in your server.xml. -- Bill K. -Original Message- From: Jan M. STANKOVSKY [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 21, 2001 8:16 AM To: [EMAIL PROTECTED] Subject: Re: mysteriously dying connections (Oracle - tomcat) Same here but we have the stopping of the tomcatserver very frequently. At the end of the term when the students (aprox 50 working at the same time) got very busy the tomcatserver stoped replying frequently. We have a configuration with Two Sun Sparc Solaris 7 Servers both tomcat 3.2.1 3.2.2 and one Oracle817 Server on Soalris 7 Once I traped this error: -- 2001-06-19 07:41:23 - ThreadPool: Pool exhausted with 100 threads. 2001-06-19 09:02:25 - ThreadPool: Caught exception executing org.apache.tomcat.service.TcpWorkerThread@3598c3, terminating thread - java.lang.IllegalStateException at org.apache.tomcat.util.ThreadPool.runIt(ThreadPool.java:227) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:405) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501) at java.lang.Thread.run(Thread.java:484) --- As you can see between 07:41:23 09:02:25 (the shutdown of the tomcat server) there was no activity except angry students (times are pm). And this: - 2001-06-20 04:51:10 - Ctx( /a9303541 ): Exception in: R( /a9303541 + /servlet/shop1 + null) - java.lang.NullPointerException at shopmanager.init(shopmanager.java:16) at shop1.init(shop1.java:14) at java.lang.Class.newInstance0(Native Method) at java.lang.Class.newInstance(Class.java:237) at org.apache.tomcat.core.ServletWrapper.loadServlet(ServletWrapper.java:268) at org.apache.tomcat.core.ServletWrapper.init(ServletWrapper.java:289) at org.apache.tomcat.core.Handler.service(Handler.java:254) 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) 2001-06-20 05:01:12 - ThreadPool: Caught exception executing org.apache.tomcat.service.TcpWorkerThread@2c7887, terminating thread - java.lang.IllegalStateException at org.apache.tomcat.util.ThreadPool.runIt(ThreadPool.java:224) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:405) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498) at java.lang.Thread.run(Thread.java:484) 2001-06-20 05:01:12 - ContextManager: Removing context Ctx( /examples ) 5:01:12 was the time where I shutdowned the tomcat server I now shutdown/restart the server hourly and it seems we don't have unsheduled stoppings. Another thing is, that the servlets dont get refreshed when they are changed/deleted (I have reload in server.xml).. Thanks jan ~| ~|problem: ~| ~| ~|database access is managed via a java class that is ~|instantiated and loaded into each clients session. every ~|PL/SQL function and/or SQL statement a client needs is ~|called in a method of this class. ~|first, a connection is opened, the statement is called, ~|all resultsets and statements are closed and finally the ~|connection is closed. (or returned back to the ~|connection pool if one is used) ~| ~|the driver we use is the Oracle jdbc ThinDriver (jdbc ~|driver type 4). after running the system for several ~|days, dead connections (and as we just discovered, tons ~|of open cursors) pile up. ~|eventually the webserver(tomcat) will crash or just ~|hang. ~|in the process, access gets slower and slower, there may ~|be delays of 3 minutes until the webserver (or,
RE[2]: start up tomcat from a virtual terminal
Thanks for yours answers, sincerely. I can already close the window of the XTerminal usig nohup command, but the window of the Xterminal is opened by a client of Xterminal, when I close the client's instance, the tomcat shut down, or if I turn off my computer(when I star up the XTerminal), the tomcat falls too. It is as if the tomcat was connected somehow to the remote machine. Some idea? Thanks in Advance
Re: How to avoid of displaying the homepage file path
Messages with Subject ´Homepage´ are not accepted here (Homepage.HTML.vbs)
RE: Javascript not working
I have some jsp files, which work under JRun on our intranet, but when I put them on our server on the internet and open them with a browser, I get a javascript error message in the status bar at the bottom of the browser window. Try debugging the javascript. Both Microsoft (for IE) and Netscape (for NS 4.7) have javascript debuggers. Also, compare the HTML pages generated in the two cases, and see what the difference is (if any). -- Bill K. -Original Message- From: Tassilo Pilati [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 21, 2001 8:19 AM To: [EMAIL PROTECTED] Subject: Javascript not working Hi, I have some jsp files, which work under JRun on our intranet, but when I put them on our server on the internet and open them with a browser, I get a javascript error message in the status bar at the bottom of the browser window. Since the jsp files are running on the server in the lan, the reason must have something to do with tomcat, but I have absolutely no idea what I`m doing wrong. Is there a special MIME type for using javascript ? TP
what is this number -2147483646
HI What is the meaning of the foll. code in web.xml file for startup servlets. load-on-startup -2147483646 /load-on-startup can any one know .. Rgds venkatesh
Re: How to avoid of displaying the homepage file path
Messages with Subject ´Homepage´ are not accepted here (Homepage.HTML.vbs)
RE: Tomcat Version
javax.servlet.ServletContext: getMajorVersion(), getMinorVersion() (returns the version of the JSDK it implements) getServerInfo() (returns a text description of the Tomcat version) -- Bill K. -Original Message- From: Amer Mallah [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 21, 2001 8:20 AM To: '[EMAIL PROTECTED]' Subject: Tomcat Version Is there any way to get tomcat to return the version/milestone/build date?
Re: How to avoid of displaying the homepage file path
Messages with Subject ´Homepage´ are not accepted here (Homepage.HTML.vbs)
Re: How to avoid of displaying the homepage file path
Messages with Subject ´Homepage´ are not accepted here (Homepage.HTML.vbs)
Re: what is this number -2147483646
The positive integers indicate the *order* in which servlet should be loaded from lower to higher. If no value or negative integers, the container is *free* to load the servlet any time in the startup sequence. Pae HI What is the meaning of the foll. code in web.xml file for startup servlets. load-on-startup -2147483646 /load-on-startup can any one know .. Rgds venkatesh
RE: what is this number -2147483646
From the JSDK 2.2 spec, available at http://java.sun.com/products/servlet/download.html : The load-on-startup element indicates that this servlet should be loaded on the startup of the web application. The optional contents of these element must be a positive integer indicating the order in which the servlet should be loaded. Lower integers are loaded before higher integers. If no value is specified, or if the value specified is not a positive integer, the container is free to load it at any time in the startup sequence. -- Bill K. -Original Message- From: Venkatesh T [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 21, 2001 8:43 AM To: tomcat Subject: what is this number -2147483646 HI What is the meaning of the foll. code in web.xml file for startup servlets. load-on-startup -2147483646 /load-on-startup can any one know .. Rgds venkatesh
Re: How to avoid of displaying the homepage file path
Messages with Subject ´Homepage´ are not accepted here (Homepage.HTML.vbs)
RE: what is this number -2147483646
Title: RE: what is this number -2147483646 -2147483646 is Integer.MIN_VALUE With this value, this servlet is loaded first (the less load-on-startup value is, earlier the servlet is loaded) Raphael Lemaitre HI What is the meaning of the foll. code in web.xml file for startup servlets. load-on-startup -2147483646 /load-on-startup can any one know .. Rgds venkatesh
RE: mysteriously dying connections (Oracle - tomcat)
Bill, What if the V_$OPEN_CURSOR is not present in the SYS schema. Using the DBA Studio, I looked through all the schemas and users and V_$OPEN_CURSOR doesn't exist anywhere. Would it be under an alternative name? - Adam At 08:32 AM 6/21/2001 -0700, you wrote: These look like two different issues: 1) Oracle is running out of cursors. a) Make sure you close every ResultSet, Statement and Connection when you're done with them. One trick you can use on Oracle is to log into the database in SQL*Plus as SYS while your application is running, and do, SELECT SQL_TEXT FROM V_$OPEN_CURSOR; to see the SQL for the cursors you have open. b) Try reusing connections and (prepared) statements wherever possible (assuming you use a common Oracle logon for all your accesses). c) Up the number of allowed open cursors, by putting open_cursors = 500 or so in your database's init.ora file. 2) Tomcat is running out of threads. Are you actually getting dozens of people connecting at the same time? Try increasing the max_threads parameter for PoolTcpConnector in your server.xml. -- Bill K. -Original Message- From: Jan M. STANKOVSKY [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 21, 2001 8:16 AM To: [EMAIL PROTECTED] Subject: Re: mysteriously dying connections (Oracle - tomcat) Same here but we have the stopping of the tomcatserver very frequently. At the end of the term when the students (aprox 50 working at the same time) got very busy the tomcatserver stoped replying frequently. We have a configuration with Two Sun Sparc Solaris 7 Servers both tomcat 3.2.1 3.2.2 and one Oracle817 Server on Soalris 7 Once I traped this error: -- 2001-06-19 07:41:23 - ThreadPool: Pool exhausted with 100 threads. 2001-06-19 09:02:25 - ThreadPool: Caught exception executing org.apache.tomcat.service.TcpWorkerThread@3598c3, terminating thread - java.lang.IllegalStateException at org.apache.tomcat.util.ThreadPool.runIt(ThreadPool.java:227) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:405) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501) at java.lang.Thread.run(Thread.java:484) --- As you can see between 07:41:23 09:02:25 (the shutdown of the tomcat server) there was no activity except angry students (times are pm). And this: - 2001-06-20 04:51:10 - Ctx( /a9303541 ): Exception in: R( /a9303541 + /servlet/shop1 + null) - java.lang.NullPointerException at shopmanager.init(shopmanager.java:16) at shop1.init(shop1.java:14) at java.lang.Class.newInstance0(Native Method) at java.lang.Class.newInstance(Class.java:237) at org.apache.tomcat.core.ServletWrapper.loadServlet(ServletWrapper.java:268) at org.apache.tomcat.core.ServletWrapper.init(ServletWrapper.java:289) at org.apache.tomcat.core.Handler.service(Handler.java:254) 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) 2001-06-20 05:01:12 - ThreadPool: Caught exception executing org.apache.tomcat.service.TcpWorkerThread@2c7887, terminating thread - java.lang.IllegalStateException at org.apache.tomcat.util.ThreadPool.runIt(ThreadPool.java:224) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:405) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498) at java.lang.Thread.run(Thread.java:484) 2001-06-20 05:01:12 - ContextManager: Removing context Ctx( /examples ) 5:01:12 was the time where I shutdowned the tomcat server I now shutdown/restart the server hourly and it seems we don't have unsheduled stoppings. Another thing is, that the servlets dont get refreshed when they are changed/deleted (I have reload in server.xml).. Thanks jan ~| ~|problem: ~| ~| ~|database access is managed via a java class that is ~|instantiated and loaded into each clients session. every ~|PL/SQL function and/or SQL statement a client needs is ~|called in a method of this class. ~|first, a connection is opened, the statement is called, ~|all resultsets and statements are closed and finally the ~|connection is closed. (or returned back to the ~|connection pool if one is used) ~| ~|the driver we use is the Oracle jdbc ThinDriver (jdbc ~|driver type 4). after running the system for
Re: How to avoid of displaying the homepage file path
Messages with Subject ´Homepage´ are not accepted here (Homepage.HTML.vbs)
Re: How to avoid of displaying the XXXXXX file path
[EMAIL PROTECTED] wrote: Messages with Subject ´HXmepXage´ are not accepted here (HXomepXage.HTML.vbX) houston, i believe we have attained infinite loop. -mazzy
Re: How to avoid of displaying the homepage file path
Messages with Subject ´Homepage´ are not accepted here (Homepage.HTML.vbs)
Re: How to avoid of displaying the homepage file path
Messages with Subject ´Homepage´ are not accepted here (Homepage.HTML.vbs)
RE: mysteriously dying connections (Oracle - tomcat)
Eh,... It might have a different name on your version of Oracle, or be under a different schema. Try running, SELECT OWNER, VIEW_NAME FROM ALL_VIEWS WHERE VIEW_NAME LIKE '%OPEN%CURSOR%'; and see what pops up. -- Bill K. -Original Message- From: Adam Myatt [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 21, 2001 8:54 AM To: [EMAIL PROTECTED] Subject: RE: mysteriously dying connections (Oracle - tomcat) Bill, What if the V_$OPEN_CURSOR is not present in the SYS schema. Using the DBA Studio, I looked through all the schemas and users and V_$OPEN_CURSOR doesn't exist anywhere. Would it be under an alternative name? - Adam At 08:32 AM 6/21/2001 -0700, you wrote: These look like two different issues: 1) Oracle is running out of cursors. a) Make sure you close every ResultSet, Statement and Connection when you're done with them. One trick you can use on Oracle is to log into the database in SQL*Plus as SYS while your application is running, and do, SELECT SQL_TEXT FROM V_$OPEN_CURSOR; to see the SQL for the cursors you have open. b) Try reusing connections and (prepared) statements wherever possible (assuming you use a common Oracle logon for all your accesses). c) Up the number of allowed open cursors, by putting open_cursors = 500 or so in your database's init.ora file. 2) Tomcat is running out of threads. Are you actually getting dozens of people connecting at the same time? Try increasing the max_threads parameter for PoolTcpConnector in your server.xml. -- Bill K. -Original Message- From: Jan M. STANKOVSKY [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 21, 2001 8:16 AM To: [EMAIL PROTECTED] Subject: Re: mysteriously dying connections (Oracle - tomcat) Same here but we have the stopping of the tomcatserver very frequently. At the end of the term when the students (aprox 50 working at the same time) got very busy the tomcatserver stoped replying frequently. We have a configuration with Two Sun Sparc Solaris 7 Servers both tomcat 3.2.1 3.2.2 and one Oracle817 Server on Soalris 7 Once I traped this error: -- 2001-06-19 07:41:23 - ThreadPool: Pool exhausted with 100 threads. 2001-06-19 09:02:25 - ThreadPool: Caught exception executing org.apache.tomcat.service.TcpWorkerThread@3598c3, terminating thread - java.lang.IllegalStateException at org.apache.tomcat.util.ThreadPool.runIt(ThreadPool.java:227) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:405) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501) at java.lang.Thread.run(Thread.java:484) --- As you can see between 07:41:23 09:02:25 (the shutdown of the tomcat server) there was no activity except angry students (times are pm). And this: - 2001-06-20 04:51:10 - Ctx( /a9303541 ): Exception in: R( /a9303541 + /servlet/shop1 + null) - java.lang.NullPointerException at shopmanager.init(shopmanager.java:16) at shop1.init(shop1.java:14) at java.lang.Class.newInstance0(Native Method) at java.lang.Class.newInstance(Class.java:237) at org.apache.tomcat.core.ServletWrapper.loadServlet(ServletWrapper.java:268) at org.apache.tomcat.core.ServletWrapper.init(ServletWrapper.java:289) at org.apache.tomcat.core.Handler.service(Handler.java:254) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:7 9 7) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743) at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(Http C 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) 2001-06-20 05:01:12 - ThreadPool: Caught exception executing org.apache.tomcat.service.TcpWorkerThread@2c7887, terminating thread - java.lang.IllegalStateException at org.apache.tomcat.util.ThreadPool.runIt(ThreadPool.java:224) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:405) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498) at java.lang.Thread.run(Thread.java:484) 2001-06-20 05:01:12 - ContextManager: Removing context Ctx( /examples ) 5:01:12 was the time where I shutdowned the tomcat server I now shutdown/restart the server hourly and it seems we don't have unsheduled stoppings. Another thing is, that the servlets dont get refreshed when they are changed/deleted (I have reload in server.xml).. Thanks jan ~| ~|problem: ~| ~| ~|database access is
Re: How to avoid of displaying the homepage file path
Messages with Subject ´Homepage´ are not accepted here (Homepage.HTML.vbs)
tomcat, and servlet testing in a multi-user environment
Hi! We are several programmers who are programming servlets and jsp on our tomcat server, and each time we modify a servlet or a jsp, we have to restart tomcat so it takes in consideration our changes, and our problem is that we are working everyone from his computer at the same time, so when someone has made some changes and he wants to restart tomcat, it annoys the others who may be testing their servlet. So is there a way to make tomcat aware of new changes without restarting it or should we install a tomcat on everyone's machine ? Thanks! -- ___ FREE Personalized E-mail at Mail.com http://www.mail.com/?sr=signup Make PC-to-Phone calls with Net2Phone. Sign-up today at: http://www.net2phone.com/cgi-bin/link.cgi?121
Re: How to avoid of displaying the homepage file path
Messages with Subject ´Homepage´ are not accepted here (Homepage.HTML.vbs)
tomcat, and servlet testing in a multi-user environment
Hi! We are several programmers who are programming servlets and jsp on our tomcat server, and each time we modify a servlet or a jsp, we have to restart tomcat so it takes in consideration our changes, and our problem is that we are working everyone from his computer at the same time, so when someone has made some changes and he wants to restart tomcat, it annoys the others who may be testing their servlet. So is there a way to make tomcat aware of new changes without restarting it or should we install a tomcat on everyone's machine ? Thanks! -- ___ FREE Personalized E-mail at Mail.com http://www.mail.com/?sr=signup Make PC-to-Phone calls with Net2Phone. Sign-up today at: http://www.net2phone.com/cgi-bin/link.cgi?121
Re: tomcat, and servlet testing in a multi-user environment
Wow! I didn't know Robert De Niro knew about tomcat or servlet programming! Hey Robert, what about Hollywood? Didn't you earn money there? regards. Hi! We are several programmers who are programming servlets and jsp on our tomcat server, and each time we modify a servlet or a jsp, we have to restart tomcat so it takes in consideration our changes, and our problem is that we are working everyone from his computer at the same time, so when someone has made some changes and he wants to restart tomcat, it annoys the others who may be testing their servlet. So is there a way to make tomcat aware of new changes without restarting it or should we install a tomcat on everyone's machine ? Thanks! -- ___ FREE Personalized E-mail at Mail.com http://www.mail.com/?sr=signup Make PC-to-Phone calls with Net2Phone. Sign-up today at: http://www.net2phone.com/cgi-bin/link.cgi?121
Re: How to avoid of displaying the homepage file path
Messages with Subject ´Homepage´ are not accepted here (Homepage.HTML.vbs)
Re: what is this number -2147483646
Just to clarify, -2147483646 is equivalent to -1 and means 'don't care'? always use a large scary number where a small one will do, eh ;) Rob From the JSDK 2.2 spec, available at http://java.sun.com/products/servlet/download.html : The load-on-startup element indicates that this servlet should be loaded on the startup of the web application. The optional contents of these element must be a positive integer indicating the order in which the servlet should be loaded. Lower integers are loaded before higher integers. If no value is specified, or if the value specified is not a positive integer, the container is free to load it at any time in the startup sequence. -- Bill K. -Original Message- From: Venkatesh T [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 21, 2001 8:43 AM To: tomcat Subject: what is this number -2147483646 HI What is the meaning of the foll. code in web.xml file for startup servlets. load-on-startup -2147483646 /load-on-startup can any one know .. Rgds venkatesh
Re: Servlet not in webapps directory
At 12:17 AM 6/21/2001, you wrote: Hi ! It is possible to lauch a sevlet that is not in the TOMCAT_HOME directory ? Can I do that by configuring a Context for my servlet ? And how exactly ? You don't actually lauch (I guess you mean launch) a servlet. Every who has a notion about a servlet life cycle should make sure its correct by reading http://www.java.sun.com/docs/books/tutorial/servlets/lifecycle/index.html I felt like mentioning it because I've seen so many incorrect ideas about how servlets work and are run on here its kinda funny. -Tim
Do I need to use the AJP13 container for this?
I am running Tomcat 3.2.1 with Apache 1.3.14. My default container is AJP12(mainly because I haven't tried the AJP13 yet [yeah, i know its in the docs, just haven't had time to read them to update it to use 13). If I run the HTML form against this servlet I get this error. I know usually a java.lang.NullPointerException means something is null where it should't be (like no params are passsed to the servlet). But the URL it passes (see below) shows it is passing them. Any ideas? If you don't think it's tomcat-related, post stating so to prevent other responses from inappropriately spamming the list and/or e-mail me back privately if it's not on topic. Thanks! TOMCAT ERROR CODE: Error: 500 Location: /java/servlet/JimServlet Internal Servlet Error: java.lang.NullPointerException at java.lang.ClassLoader.resolveClass0(Native Method) at java.lang.ClassLoader.resolveClass(ClassLoader.java:598) at org.apache.tomcat.loader.AdaptiveClassLoader.loadClass(AdaptiveClassLoader.j ava) at org.apache.tomcat.loader.AdaptiveServletLoader.loadClass(AdaptiveServletLoad er.java) at org.apache.tomcat.core.ServletWrapper.loadServlet(ServletWrapper.java) at org.apache.tomcat.core.ServletWrapper.init(ServletWrapper.java) at org.apache.tomcat.core.Handler.service(Handler.java) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java) at org.apache.tomcat.core.ContextManager.service(ContextManager.java) at org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection (Ajp12ConnectionHandler.java) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java) at java.lang.Thread.run(Thread.java:498) URL PASSED FROM HTML CODE: http://www.this1zmine.com/java/servlet/JimServlet?LINE1=TESTING HTML FORM SOURCE CODE: HTML HEAD/head BODY CENTER FORM METHOD=GET NAME=TESTER ACTION=http://www.this1zmine.com/java/servlet/JimServlet; BInput1: INPUT TYPE=TEXT LENGTH=30 NAME=LINE1/INPUT INPUT type=submit value=SUBMIT/INPUT /FORM /BODY /HTML SERVLET SOURCE CODE: import java.io.*; import java.util.*; import javax.servlet.*; import javax.servlet.http.*; class JimServlet extends javax.servlet.http.HttpServlet { public void doGet( javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, java.io.IOException { performTask(request, response); } public void doPost( javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, java.io.IOException { performTask(request, response); } public void init() { } public void performTask( javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) { try { response.setContentType(text/plain); ServletOutputStream out = response.getOutputStream(); Enumeration eParmNames = request.getParameterNames(); while (eParmNames.hasMoreElements()) { String name = (String) eParmNames.nextElement(); String value = request.getParameter(name); out.println(name + = + value); } } catch (Throwable theException) { theException.printStackTrace(); } } } Jim Swart Agere Systems - Colorado Design Center Unix/NT/Solaris Systems Administrator
tomcat-cache
Hi all, My problem is that when Icall to "abc.jsp" this is really loaded in cache, my .jsp is'ntreloaded again. I want the JSPs to be reloaded eachtime this is called. I am using. - TomCat 3.2.1 - MS IIS 4.0 How can I manage zero cache in my application ? what is the configuration's fileto do this change. I hope that you can help me. Best regards. Ing. Julio C. Pérez Jerez Softtek - Sector Mty http://www.softtek.com
Re: tomcat, and servlet testing in a multi-user environment
This is a common problem I have had at past employers. What we do now at my company is give everyone Tomcat, it's free right? We have what is called a Deploy Manager or Build Manager. Once a week the DM (or BM) will take the most recent checked-in code from Microsoft Visual Source Safe, move that to the Test server, and then we start Regression testing. We want to make sure everyone's code works with everyone else's. That one server can be started or stopped without bothering everyone else. By having everyone use VSS (or some other Source Control tool) we check in only working code. Everyone daily pulls down the latest code and in a way does their own regression testing on their own machine making sure their code works with everyone elses. The final say is when the BM or DM pulls does their Regression testing. At least once a week, we know everyone's code is working together. Tom - Original Message - From: Robert De Niro [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, June 21, 2001 12:20 PM Subject: tomcat, and servlet testing in a multi-user environment Hi! We are several programmers who are programming servlets and jsp on our tomcat server, and each time we modify a servlet or a jsp, we have to restart tomcat so it takes in consideration our changes, and our problem is that we are working everyone from his computer at the same time, so when someone has made some changes and he wants to restart tomcat, it annoys the others who may be testing their servlet. So is there a way to make tomcat aware of new changes without restarting it or should we install a tomcat on everyone's machine ? Thanks! -- ___ FREE Personalized E-mail at Mail.com http://www.mail.com/?sr=signup Make PC-to-Phone calls with Net2Phone. Sign-up today at: http://www.net2phone.com/cgi-bin/link.cgi?121
RE: mysteriously dying connections (Oracle - tomcat)
Title: RE: mysteriously dying connections (Oracle - tomcat) you can use v$parameter view for getting OPEN_CURSORS paremeter value. or in sql plus or svrmgrl type show parameter OPEN_CURSORS -Original Message- From: William Kaufman [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 21, 2001 7:12 PM To: '[EMAIL PROTECTED]' Subject: RE: mysteriously dying connections (Oracle - tomcat) Eh,... It might have a different name on your version of Oracle, or be under a different schema. Try running, SELECT OWNER, VIEW_NAME FROM ALL_VIEWS WHERE VIEW_NAME LIKE '%OPEN%CURSOR%'; and see what pops up. -- Bill K. -Original Message- From: Adam Myatt [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 21, 2001 8:54 AM To: [EMAIL PROTECTED] Subject: RE: mysteriously dying connections (Oracle - tomcat) Bill, What if the V_$OPEN_CURSOR is not present in the SYS schema. Using the DBA Studio, I looked through all the schemas and users and V_$OPEN_CURSOR doesn't exist anywhere. Would it be under an alternative name? - Adam At 08:32 AM 6/21/2001 -0700, you wrote: These look like two different issues: 1) Oracle is running out of cursors. a) Make sure you close every ResultSet, Statement and Connection when you're done with them. One trick you can use on Oracle is to log into the database in SQL*Plus as SYS while your application is running, and do, SELECT SQL_TEXT FROM V_$OPEN_CURSOR; to see the SQL for the cursors you have open. b) Try reusing connections and (prepared) statements wherever possible (assuming you use a common Oracle logon for all your accesses). c) Up the number of allowed open cursors, by putting open_cursors = 500 or so in your database's init.ora file. 2) Tomcat is running out of threads. Are you actually getting dozens of people connecting at the same time? Try increasing the max_threads parameter for PoolTcpConnector in your server.xml. -- Bill K. -Original Message- From: Jan M. STANKOVSKY [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 21, 2001 8:16 AM To: [EMAIL PROTECTED] Subject: Re: mysteriously dying connections (Oracle - tomcat) Same here but we have the stopping of the tomcatserver very frequently. At the end of the term when the students (aprox 50 working at the same time) got very busy the tomcatserver stoped replying frequently. We have a configuration with Two Sun Sparc Solaris 7 Servers both tomcat 3.2.1 3.2.2 and one Oracle817 Server on Soalris 7 Once I traped this error: -- 2001-06-19 07:41:23 - ThreadPool: Pool exhausted with 100 threads. 2001-06-19 09:02:25 - ThreadPool: Caught exception executing org.apache.tomcat.service.TcpWorkerThread@3598c3, terminating thread - java.lang.IllegalStateException at org.apache.tomcat.util.ThreadPool.runIt(ThreadPool.java:227) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:405) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501) at java.lang.Thread.run(Thread.java:484) --- As you can see between 07:41:23 09:02:25 (the shutdown of the tomcat server) there was no activity except angry students (times are pm). And this: - 2001-06-20 04:51:10 - Ctx( /a9303541 ): Exception in: R( /a9303541 + /servlet/shop1 + null) - java.lang.NullPointerException at shopmanager.init(shopmanager.java:16) at shop1.init(shop1.java:14) at java.lang.Class.newInstance0(Native Method) at java.lang.Class.newInstance(Class.java:237) at org.apache.tomcat.core.ServletWrapper.loadServlet(ServletWrapper.java:268) at org.apache.tomcat.core.ServletWrapper.init(ServletWrapper.java:289) at org.apache.tomcat.core.Handler.service(Handler.java:254) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:7 9 7) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743) at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(Http C 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) 2001-06-20 05:01:12 - ThreadPool: Caught exception executing org.apache.tomcat.service.TcpWorkerThread@2c7887, terminating thread - java.lang.IllegalStateException at org.apache.tomcat.util.ThreadPool.runIt(ThreadPool.java:224) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:405) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498) at java.lang.Thread.run(Thread.java:484) 2001-06-20 05:01:12 - ContextManager: Removing context Ctx( /examples ) 5:01:12 was the time where I shutdowned the tomcat server I now shutdown/restart the server hourly and it seems we don't have unsheduled stoppings. Another thing is, that the servlets dont get refreshed
RE: tomcat, and servlet testing in a multi-user environment
21 June 01 How about this: Use a production server inhouse with Tomcat installed and a separate deployment box which serves to the world. Utilize CVS and everyone working checks in or merges their changes and deploy to the Production Tomcat server and restart four times a day. The times can be well published, so everyone knows when the next update must be checked in. Joe Dalessandro --- e: [EMAIL PROTECTED] -Original Message- From: Robert De Niro [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 21, 2001 10:20 AM To: [EMAIL PROTECTED] Subject: tomcat, and servlet testing in a multi-user environment Hi! We are several programmers who are programming servlets and jsp on our tomcat server, and each time we modify a servlet or a jsp, we have to restart tomcat so it takes in consideration our changes, and our problem is that we are working everyone from his computer at the same time, so when someone has made some changes and he wants to restart tomcat, it annoys the others who may be testing their servlet. So is there a way to make tomcat aware of new changes without restarting it or should we install a tomcat on everyone's machine ? Thanks! -- ___ FREE Personalized E-mail at Mail.com http://www.mail.com/?sr=signup Make PC-to-Phone calls with Net2Phone. Sign-up today at: http://www.net2phone.com/cgi-bin/link.cgi?121
Re: How to avoid of displaying the homepage file path
Messages with Subject ´Homepage´ are not accepted here (Homepage.HTML.vbs)
RE[2]: start up tomcat from a virtual terminal
At 10:39 AM 6/21/2001, you wrote: Thanks for yours answers, sincerely. I can already close the window of the XTerminal usig nohup command, but the window of the Xterminal is opened by a client of Xterminal, when I close the client's instance, the tomcat shut down, or if I turn off my computer(when I star up the XTerminal), the tomcat falls too. It is as if the tomcat was connected somehow to the remote machine. Some idea? And you tried issuing nohup blablablab as the root user? nohup terminated with a should do it. -Tim
Re: what is this number -2147483646
Hi, it is the order number in loading servlet or jsp on startup. if that has the smallest value it would be the first servlet to be loaded. Since it is a negative number and if it has the smallest number it would be the first servlet to be loaded during startup. Francis --- Venkatesh T [EMAIL PROTECTED] wrote: HI What is the meaning of the foll. code in web.xml file for startup servlets. load-on-startup -2147483646 /load-on-startup can any one know .. Rgds venkatesh __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail http://personal.mail.yahoo.com/
mod_jk as static module
Can mod_jk be compiled as static module as opposed to Shared Object in Apache? My platform AIX 4.3.3 Apache 1.3.12 Tomcat 3.2.2
Re: How to avoid of displaying the homepage file path
Messages with Subject ´Homepage´ are not accepted here (Homepage.HTML.vbs)
RE: mysteriously dying connections (Oracle - tomcat)
All right. I found the sql_text listing in the open cursor view. Is there a sure fire way to have the cursors close when the servlet is done using them. (And if so is using connection pooling and closing the recordset and statement one way?) At 07:33 PM 6/21/2001 +0300, you wrote: you can use v$parameter view for getting OPEN_CURSORS paremeter value. or in sql plus or svrmgrl type show parameter OPEN_CURSORS -Original Message- From: William Kaufman [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 21, 2001 7:12 PM To: '[EMAIL PROTECTED]' tomcat) Eh,... It might have a different name on your version of Oracle, or be under Try running, SELECT OWNER, VIEW_NAME FROM ALL_VIEWS WHERE VIEW_NAME LIKE '%OPEN%CURSOR%'; and see what pops up. -- Bill K.-Original Message- From: Adam Myatt [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 21, 2001 8:54 AM To: [EMAIL PROTECTED] tomcat) Bill, What if the V_$OPEN_CURSOR is not present in the SYS schema. Using the DBA Studio, I looked through all the schemas and users and V_$OPEN_CURSOR doesn't exist anywhere. Would it be under an alternative name?- Adam At 08:32 AM 6/21/2001 -0700, you wrote: These look like two different issues: 1) Oracle is running out of cursors. a) Make sure you close every ResultSet, Statement and Connection when One trick you can use on Oracle is to log into the database in SQL*Plus as SYS while your application is running, and do, SELECT SQL_TEXT FROM V_$OPEN_CURSOR; to see the SQL for the cursors you have open. b) Try reusing connections and (prepared) statements wherever possible (assuming you use a common Oracle logon for all your accesses). c) Up the number of allowed open cursors, by putting open_cursors = 500 or so in your database's init.ora file. 2) Tomcat is running out of threads. Are you actually getting dozens of people connecting at the same time? parameter for PoolTcpConnector in your server.xml. -- Bill K. -Original Message- From: Jan M. STANKOVSKY [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 21, 2001 8:16 AM To: [EMAIL PROTECTED] tomcat) Same here but we have the stopping of the tomcatserver very frequently. At the end of the term when the students (aprox 50 working at the same time) got very busy the tomcatserver stoped replying frequently. We have a configuration with 3.2.2 and one Oracle817 Server on Soalris 7 Once I traped this error: -- 2001-06-19 07:41:23 - ThreadPool: Pool exhausted with 100 threads. 2001-06-19 09:02:25 - ThreadPool: Caught exception executing org.apache.tomcat.service.TcpWorkerThread@3598c3, terminating thread - java.lang.IllegalStateException at org.apache.tomcat.util.ThreadPool.runIt(ThreadPool.java:227) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:405) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501) at java.lang.Thread.run(Thread.java:484) --- 09:02:25 (the shutdown of the tomcat server) there was no activity except angry students (times are pm). And this: - 2001-06-20 04:51:10 - Ctx( /a9303541 ): Exception in: R( /a9303541 + /servlet/shop1 + null) - java.lang.NullPointerException (shopmanager.java:16) (shop1.java:14) at java.lang.Class.newInstance0(Native Method) at java.lang.Class.newInstance(Class.java:237) at org.apache.tomcat.core.ServletWrapper.loadServlet(ServletWrapper.java:268) at org.apache.tomcat.core.ServletWrapper.init(ServletWrapper.java:289) at org.apache.tomcat.core.Handler.service(Handler.java:254) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:7 9 7) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743) at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(Http C 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) 2001-06-20 05:01:12 - ThreadPool: Caught exception executing org.apache.tomcat.service.TcpWorkerThread@2c7887, terminating thread - java.lang.IllegalStateException at org.apache.tomcat.util.ThreadPool.runIt(ThreadPool.java:224) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:405) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498) at java.lang.Thread.run(Thread.java:484) 2001-06-20 05:01:12 -
Re: Tutorial for JSP -- JDBC -- ProgreSQL 7.1 ??
At 01:20 AM 6/21/2001, you wrote: I read in the book from Wrox, Prof JSP, it is a good sample. or you can download my script in http://www.blueoxygen.org/project/cimande/download.htmlwww.blueoxygen.org/project/cimande/download.html Contact me if you got a problem. Frans; your url should be http://blueoxygen.linuxindonesia.com/project/cimande/download.html the above just gets users a 404. -Tim
Re: How to avoid of displaying the homepage file path
Messages with Subject ´Homepage´ are not accepted here (Homepage.HTML.vbs)
Re: How to avoid of displaying the homepage file path
Messages with Subject ´Homepage´ are not accepted here (Homepage.HTML.vbs)
AW: mysteriously dying connections (Oracle - tomcat)
It sounds to me like you're not alway returning the connection to the pool or not closing the connection. But this is hard to say without the source of your java class. If you use a connection pool where you have access to the source code, look if the get and release methods can be intrumented in a way to log each get and release with the hashcode of the connection. Otherwise log each call to get/release in your own code or build a wrapper object around the pool that log this information before calling the pool method. -Ursprüngliche Nachricht- Von: Lukas Sägesser [mailto:[EMAIL PROTECTED]] Gesendet: Donnerstag, 21. Juni 2001 16:38 An: [EMAIL PROTECTED] Betreff: mysteriously dying connections (Oracle - tomcat) hi all! problem: database access is managed via a java class that is instantiated and loaded into each clients session. every PL/SQL function and/or SQL statement a client needs is called in a method of this class. first, a connection is opened, the statement is called, all resultsets and statements are closed and finally the connection is closed. (or returned back to the connection pool if one is used) the driver we use is the Oracle jdbc ThinDriver (jdbc driver type 4). after running the system for several days, dead connections (and as we just discovered, tons of open cursors) pile up. eventually the webserver(tomcat) will crash or just hang. in the process, access gets slower and slower, there may be delays of 3 minutes until the webserver (or, perhaps the database, in which case the webserver would be just waiting for the db..) gives a response. after a restart of the webserver or the database or both, the system runns very well again. we tried several connection pools. with these, there were no delays for getting a connection, but the pool threw timeoutExceptions (i.e. made it visible that there are hanging connections) and after a few hundred timeouts the VM crashed with a stack overflow. the connections seem to get killed/kill themselfes randomly no matter which function was called. we log the methods and statements that were called for the connections that die, but there is just no pattern in it. thats why we dont find the root of the problem.. is it the driver ? the database ? the tomcat ? environment: Web Server: Suse Linux 7.2 Apache Webserver /w Tomcat JSP Engine 3.2 /w SSL DB Server: Suse Linux 7.2 Oracle 8i 8.1.7 /w multi-threaded server (MTS) Backup Server: Oracle Shadow server things done: - linux update - apache update - tomcat update - jdbc thin driver update (everywhere the newest version) - tried several connection pools possible changes: - - use OCI drivers instead of thin driver - use J-serv with GNU_jsp instead of tomcat every help is welcome, we're frustrated to no ends. thanks very much in advance!! l.sägesser
Re: How to avoid of displaying the homepage file path
Messages with Subject ´Homepage´ are not accepted here (Homepage.HTML.vbs)
Re: How to avoid of displaying the homepage file path
Messages with Subject ´Homepage´ are not accepted here (Homepage.HTML.vbs)
Re: installing tomkat under linux: please help!
On Monday 18 June 2001 17:26, you wrote: What are error messages? Can look in the log? Thankyou for answering me! I try to see in /logs but there is no information in this two files: jasper.log : 2001-06-18 02:38:27 - Scratch dir for the JSP engine is: /home/rino/tomkat/jakarta-tomcat-3.2.1/work/localhost_8080%2fexamples 2001-06-18 02:38:27 - IMPORTANT: Do not modify the generated servlets servlet.log: 2001-06-18 02:38:27 - path=/examples :jsp: init 2001-06-18 02:38:27 - path=/admin :jsp: init 2001-06-18 02:38:27 - path= :jsp: init 2001-06-18 02:38:27 - path=/test :jsp: init - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, June 18, 2001 11:08 AM Subject: installing tomkat under linux: please help! I have RedHat 7.1 I download file jakarta-tomcat-3.2.1.tar which create the directory: /home/rino/tomkat/jakarta-tomcat-3.2.1 I do: export JAVA_HOME=... export TOMCAT_HOME=/home/rino/tomkat/jakarta-tomcat-3.2.1 export CATALINA_HOME=/home/rino/tomkat/jakarta-tomcat-3.2.1 cd /home/rino/tomkat/jakarta-tomcat-3.2.1/bin then: [root@localhost bin]# ./startup.sh Using classpath: /home/rino/tomkat/jakarta-tomcat-3.2.1/lib/ant.jar:/home/rino/tomkat/jakart a -tomcat-3.2.1/lib/jasper.jar:/home/rino/tomkat/jakarta-tomcat-3.2.1/lib/jax p .jar:/home/rino/tomkat/jakarta-tomcat-3.2.1/lib/parser.jar:/home/rino/tomka t /jakarta-tomcat-3.2.1/lib/servlet.jar:/home/rino/tomkat/jakarta-tomcat-3.2. 1 /lib/test:/home/rino/tomkat/jakarta-tomcat-3.2.1/lib/webserver.jar:/usr/jav a /jdk1.3.0_02/lib/tools.jar [root@localhost bin]# But didn't works! Where I fall? What I have to do? Thank you in advance, Rino.
Re: How to avoid of displaying the homepage file path
Messages with Subject ´Homepage´ are not accepted here (Homepage.HTML.vbs)
RE: Classpath problems with Tomcat 3.2
what is the URL you are using to access it? if it is http://dev.jhodd.com/subdir1/subdir2/test.jsp it should work right? Filip ~ Namaste - I bow to the divine in you ~ Filip Hanik Software Architect [EMAIL PROTECTED] www.filip.net -Original Message- From: Jeffrey Hood [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 21, 2001 10:14 AM To: [EMAIL PROTECTED] Subject: Classpath problems with Tomcat 3.2 Anyone have -any- explaniation of this??? I can't seem to get the following to work... entry in server.xml Host name=dev.jhood.com Context path=/ docBase=/home/jhood/dev/websource/tomcat debug=0 crossContext=false reloadable=true /Context /Host files: /home/jhood/dev/websource/tomcat: /WEB-INF /classes test.class /subdir1 /subdir2 I have test.jsp in /home/jhood/dev/websource/tomcat, and it finds the test.class fine, as well as other classes that test.class uses... all is well... But if I put test.jsp in /home/jhood/dev/websource/tomcat/subdir1/subdir2, the jsp doesn't compile, and the message is that it can't find subdir1.subdir2.test to instance it... Why is it looking for the subdir1.subdir2 package instead of finding it in WEB-INF/classes... do I -have- to have all of my jsp's in the root (can't believe that is the case...) Thanks in advance... JH Jeffrey Hood HM Consulting, Inc. 717.509.6558 [EMAIL PROTECTED]
Re: How to avoid of displaying the homepage file path
Messages with Subject ´Homepage´ are not accepted here (Homepage.HTML.vbs)
Re: How to avoid of displaying the homepage file path
Messages with Subject ´Homepage´ are not accepted here (Homepage.HTML.vbs)
Re: How to avoid of displaying the homepage file path
On Thu, 21 Jun 2001 [EMAIL PROTECTED] wrote: Messages with Subject ´Homepage´ are not accepted here (Homepage.HTML.vbs) Heh.. That's a real intelligent way to fileter messages!! Joe Laffey LAFFEY Computer Imaging St. Louis, MO -- Need to do multi-file string replacement in Un*x, but don't want to mess with sed? Try rpl. It's a free text replacement utility with source. http://www.laffeycomputer.com/rpl.html -- Check it out! ''+. .+'''+. .+'''+. .+'''+. .+''+. \ / \ / \ / \ / \ `+...+' `+...+' `+...+' `+...+'`+..
Re: How to avoid of displaying the homepage file path
Messages with Subject ´Homepage´ are not accepted here (Homepage.HTML.vbs)
Re: How to avoid of displaying the homepage file path
Messages with Subject ´Homepage´ are not accepted here (Homepage.HTML.vbs)
RE: mysteriously dying connections (Oracle - tomcat)
whenever you are done with a db call make sure you close _all_ statements (regular,prepared, callable) and _all_ resultsets. these objects are the objects referencing cursors to the database. Filip ~ Namaste - I bow to the divine in you ~ Filip Hanik Software Architect [EMAIL PROTECTED] www.filip.net -Original Message- From: Adam Myatt [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 21, 2001 9:51 AM To: [EMAIL PROTECTED] Subject: RE: mysteriously dying connections (Oracle - tomcat) All right. I found the sql_text listing in the open cursor view. Is there a sure fire way to have the cursors close when the servlet is done using them. (And if so is using connection pooling and closing the recordset and statement one way?) At 07:33 PM 6/21/2001 +0300, you wrote: you can use v$parameter view for getting OPEN_CURSORS paremeter value. or in sql plus or svrmgrl type show parameter OPEN_CURSORS -Original Message- From: William Kaufman [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 21, 2001 7:12 PM To: '[EMAIL PROTECTED]' tomcat) Eh,... It might have a different name on your version of Oracle, or be under Try running, SELECT OWNER, VIEW_NAME FROM ALL_VIEWS WHERE VIEW_NAME LIKE '%OPEN%CURSOR%'; and see what pops up. -- Bill K.-Original Message- From: Adam Myatt [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 21, 2001 8:54 AM To: [EMAIL PROTECTED] tomcat) Bill, What if the V_$OPEN_CURSOR is not present in the SYS schema. Using the DBA Studio, I looked through all the schemas and users and V_$OPEN_CURSOR doesn't exist anywhere. Would it be under an alternative name?- Adam At 08:32 AM 6/21/2001 -0700, you wrote: These look like two different issues: 1) Oracle is running out of cursors. a) Make sure you close every ResultSet, Statement and Connection when One trick you can use on Oracle is to log into the database in SQL*Plus as SYS while your application is running, and do, SELECT SQL_TEXT FROM V_$OPEN_CURSOR; to see the SQL for the cursors you have open. b) Try reusing connections and (prepared) statements wherever possible (assuming you use a common Oracle logon for all your accesses). c) Up the number of allowed open cursors, by putting open_cursors = 500 or so in your database's init.ora file. 2) Tomcat is running out of threads. Are you actually getting dozens of people connecting at the same time? parameter for PoolTcpConnector in your server.xml. -- Bill K. -Original Message- From: Jan M. STANKOVSKY [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 21, 2001 8:16 AM To: [EMAIL PROTECTED] tomcat) Same here but we have the stopping of the tomcatserver very frequently. At the end of the term when the students (aprox 50 working at the same time) got very busy the tomcatserver stoped replying frequently. We have a configuration with 3.2.2 and one Oracle817 Server on Soalris 7 Once I traped this error: -- 2001-06-19 07:41:23 - ThreadPool: Pool exhausted with 100 threads. 2001-06-19 09:02:25 - ThreadPool: Caught exception executing org.apache.tomcat.service.TcpWorkerThread@3598c3, terminating thread - java.lang.IllegalStateException at org.apache.tomcat.util.ThreadPool.runIt(ThreadPool.java:227) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.j ava:405) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool. java:501) at java.lang.Thread.run(Thread.java:484) --- 09:02:25 (the shutdown of the tomcat server) there was no activity except angry students (times are pm). And this: - 2001-06-20 04:51:10 - Ctx( /a9303541 ): Exception in: R( /a9303541 + /servlet/shop1 + null) - java.lang.NullPointerException (shopmanager.java:16) (shop1.java:14) at java.lang.Class.newInstance0(Native Method) at java.lang.Class.newInstance(Class.java:237) at org.apache.tomcat.core.ServletWrapper.loadServlet(ServletWrapper. java:268) at org.apache.tomcat.core.ServletWrapper.init(ServletWrapper.java:289) at org.apache.tomcat.core.Handler.service(Handler.java:254) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) at org.apache.tomcat.core.ContextManager.internalService(ContextMana ger.java:7 9 7) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743) at org.apache.tomcat.service.http.HttpConnectionHandler.processConne ction(Http C onnectionHandler.java:210) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.j ava:416) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool. java:498) at java.lang.Thread.run(Thread.java:484) 2001-06-20 05:01:12 - ThreadPool: Caught exception executing
Re: How to avoid of displaying the homepage file path
Messages with Subject ´Homepage´ are not accepted here (Homepage.HTML.vbs)
Re: How to avoid of displaying the homepage file path
Messages with Subject ´Homepage´ are not accepted here (Homepage.HTML.vbs)
jsp needs updating
Hi, I am at the process of learning JSP, and there are some things I see problematic. If there is a solution for my problem please let me know. First I don't like the fact that there aren't enough standard tag libraries for pervasive operations like database, cookies, html parsing, etcThere are downloadable libraries however, for example the book I am using uses it's own tag libraries and beans which the user has to download. The problem I see with this is that, it is not a standard, which means that if I want to migrate the code it wouldn't work unless I also transfer over the proper classes and tag libraries. Why don't they have a standard out there for JSP rather than using third party classes and tag handlers. Is there a standard java JSP specification tag libraries out there or do we as programmers have to make all the custom tags/ tag handlers for the common programming tags like database,cookies,parsing. etc... In my opinion JSP is a very hard technology to learn and is very misleading because most think of (including myself) JSP as Java's version of PHP or ASP. But in my opinion JSP technology is harder to learn than Java servlets. The reason why I think this is because with all the things you have to learn like creating your own tags which uses XML,creating scriplets( which in my opinion is the easiest part to JSP), creating your own JavaBean, and to top it all off , not having a standard JSP tag library makes it very diffucult as a programmer. It's a combination of XML,ASP/PHP,JavaBeans and Java Servlet. Does anyone share the same view as me or is JSP just about the scriplets and not about any of the other parts I mentioned.
Re: How to avoid of displaying the homepage file path
Messages with Subject ´Homepage´ are not accepted here (Homepage.HTML.vbs)
Re: How to avoid of displaying the homepage file path
Messages with Subject ´Homepage´ are not accepted here (Homepage.HTML.vbs)
Re: How to avoid of displaying the homepage file path
Messages with Subject ´Homepage´ are not accepted here (Homepage.HTML.vbs)
Re: How to avoid of displaying the homepage file path
Messages with Subject ´Homepage´ are not accepted here (Homepage.HTML.vbs)
invoker interceptor for Tomcat
Hi, How can I have several different invoker interceptors? For example: I want to be able to call a servlet from http://www.myhost.com/servlets/name_of_the_servlet and also I want to be able to call a servlet from: http://www.myhost.com/newservlets/name_of_the_servlet Thanks, Nick
Re: How to avoid of displaying the homepage file path
Messages with Subject ´Homepage´ are not accepted here (Homepage.HTML.vbs)
Re: How to avoid of displaying the homepage file path
Messages with Subject ´Homepage´ are not accepted here (Homepage.HTML.vbs)
Re: How to avoid of displaying the homepage file path
Messages with Subject ´Homepage´ are not accepted here (Homepage.HTML.vbs)
RE: How to avoid of displaying the homepage file path
Is everyone getting this email multiple number of times? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 21, 2001 2:06 PM To: [EMAIL PROTECTED] Subject: Re: How to avoid of displaying the homepage file path Messages with Subject ´Homepage´ are not accepted here (Homepage.HTML.vbs)
Re: How to avoid of displaying the homepage file path
Messages with Subject ´Homepage´ are not accepted here (Homepage.HTML.vbs)