war files. (tomcat 4.0 beta 7)
I have packaged my web application in a .war file and deployed it using tomcat 4.0 beta 7. perfect. The only way I could get it to work was to copy my database jar files into web-inf\lib, this would make my war file platform dependent as most database vendors ship different jars for each operating system. I tried them in the %CATALINA_HOME%\lib but that did not help. suggestions / recommendations. Thanks, Stuart James. ___ Email Disclaimer This communication is for the attention of the named recipient only and should not be passed on to any other person. Information relating to any company or security, is for information purposes only and should not be interpreted as a solicitation or offer to buy or sell any security. The information on which this communication is based has been obtained from sources we believe to be reliable, but we do not guarantee its accuracy or completeness. All expressions of opinion are subject to change without notice. All e-mail messages, and associated attachments, are subject to interception and monitoring for lawful business purposes. ___
Re: Antwort: Re: what are war files?
They are simply a way of bundling up a context. If you are developing a context "mycontext" and it sits in $TOMCAT_HOME/webapps/mycontext, then to make a war file all you need to do is: cd $TOMCAT_HOME/webapps/mycontext jar -cf ../mycontext.war * and you would have a war file that you could theoretically deploy in any servlet container. This assumes that you have all the classes you need in mycontext/lib/*.jar or mycontext/classes - which IMHO is what you should be doing anyway. cheers dim On Tue, 14 Aug 2001 [EMAIL PROTECTED] wrote: > i am developing jsp sites, but i never had to use war files. do i need them > really - what is the function of that files? > > greets > > bastian > > > -- >Externe MailDmitri Colebatch <[EMAIL PROTECTED]> >14.08.200108:58 > -- > > > > > An: [EMAIL PROTECTED] > cc: > > Thema:Re: what are war files? > > a jar file containing the directory structure: > > /WEB-INF/ > /WEB-INF/web.xml > /WEB-INF/classes/ > /WEB-INF/lib/ > > and named .war instead of .jar > > compare examples.war (jar -tf examples.war) with the examples directory > inside webapps in the install. > > hth > dim > > On Tue, 14 Aug 2001 [EMAIL PROTECTED] wrote: > > > sorry for that question, but i dont know it > > > > thx > > > > bastian > > > > > > > > > > >
Antwort: Re: what are war files?
i am developing jsp sites, but i never had to use war files. do i need them really - what is the function of that files? greets bastian -- Externe MailDmitri Colebatch <[EMAIL PROTECTED]> 14.08.200108:58 -- An: [EMAIL PROTECTED] cc: Thema:Re: what are war files? a jar file containing the directory structure: /WEB-INF/ /WEB-INF/web.xml /WEB-INF/classes/ /WEB-INF/lib/ and named .war instead of .jar compare examples.war (jar -tf examples.war) with the examples directory inside webapps in the install. hth dim On Tue, 14 Aug 2001 [EMAIL PROTECTED] wrote: > sorry for that question, but i dont know it > > thx > > bastian > >
Re: what are war files?
a jar file containing the directory structure: /WEB-INF/ /WEB-INF/web.xml /WEB-INF/classes/ /WEB-INF/lib/ and named .war instead of .jar compare examples.war (jar -tf examples.war) with the examples directory inside webapps in the install. hth dim On Tue, 14 Aug 2001 [EMAIL PROTECTED] wrote: > sorry for that question, but i dont know it > > thx > > bastian > >
Re: How to deploy war file dynamically, like JBOSS
Thank you for reply. But I've already read it. It is command for TOMCAT 4. In our system, we'll use TOMCAT 3. Although JBOSS use TOMCAT 3.2, it is possible to deploy war file dynamically in jboss-tomcat(3.2) environment. --- - Original Message - From: "James Bromberger" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, August 14, 2001 3:14 PM Subject: Re: How to deploy war file dynamically, like JBOSS Perhaps this will help: http://www.jguru.com/faq/view.jsp?EID=455587 >>> [EMAIL PROTECTED] 08/14/01 02:01pm >>> Hi, In our system, we'll use TOMCAT 3.2. And we want to deploy war file dynamically without restarting TOMCAT. Is it possible? >From the document of TOMCAT 3.2, it seems that there is no way. And I know that TOMCAT 4 offer several management command to deploy war file dynamically. But I think there is some way to deploy war file dynamically in TOMCAT3.2 Because it is possible in JBOSS with TOMCAT(3.2) package. (JBOSS-2.2.2_Tomcat-3.2.2). When I copy war file to JBOSS_HOME/deploy directory, it is depoyed dynamically. I think there is some way to customizing TOMCAT, and JBOSS does this customization. I want to know how to configure it. In JBOSS environment, it doesn't extract war file to "tomcat/webapps" directory. Instead, it seems that war file is extracted under JBOSS_HOME/tmp/deploy directory. Does anyone know how to do this? I posted same question to JBOSS forum several weeks ago, then I was adviced to post to TOMCAT mailing list. Thans and regards, Y.Hatano
mod_jk.dll NT compiled version for apache 1.3.20/tomcat 3.2.3
Hello, does anybody know where I can get a compiled version of mod_jk.dll for NT 4.0/ Apache 1.3.20-ssl/Tomcat 3.2.3, so that I do not get the error message: "...might crash because NOEAPI.." when starting apache/ssl? Or does SSL and other stuff works correct and the message is not so important? Many thanks for any help. Peter
what are war files?
sorry for that question, but i dont know it thx bastian
Re: How to deploy war file dynamically, like JBOSS
Perhaps this will help: http://www.jguru.com/faq/view.jsp?EID=455587 >>> [EMAIL PROTECTED] 08/14/01 02:01pm >>> Hi, In our system, we'll use TOMCAT 3.2. And we want to deploy war file dynamically without restarting TOMCAT. Is it possible? >From the document of TOMCAT 3.2, it seems that there is no way. And I know that TOMCAT 4 offer several management command to deploy war file dynamically. But I think there is some way to deploy war file dynamically in TOMCAT3.2 Because it is possible in JBOSS with TOMCAT(3.2) package. (JBOSS-2.2.2_Tomcat-3.2.2). When I copy war file to JBOSS_HOME/deploy directory, it is depoyed dynamically. I think there is some way to customizing TOMCAT, and JBOSS does this customization. I want to know how to configure it. In JBOSS environment, it doesn't extract war file to "tomcat/webapps" directory. Instead, it seems that war file is extracted under JBOSS_HOME/tmp/deploy directory. Does anyone know how to do this? I posted same question to JBOSS forum several weeks ago, then I was adviced to post to TOMCAT mailing list. Thans and regards, Y.Hatano
How to deploy war file dynamically, like JBOSS
Hi, In our system, we'll use TOMCAT 3.2. And we want to deploy war file dynamically without restarting TOMCAT. Is it possible? >From the document of TOMCAT 3.2, it seems that there is no way. And I know that TOMCAT 4 offer several management command to deploy war file dynamically. But I think there is some way to deploy war file dynamically in TOMCAT3.2 Because it is possible in JBOSS with TOMCAT(3.2) package. (JBOSS-2.2.2_Tomcat-3.2.2). When I copy war file to JBOSS_HOME/deploy directory, it is depoyed dynamically. I think there is some way to customizing TOMCAT, and JBOSS does this customization. I want to know how to configure it. In JBOSS environment, it doesn't extract war file to "tomcat/webapps" directory. Instead, it seems that war file is extracted under JBOSS_HOME/tmp/deploy directory. Does anyone know how to do this? I posted same question to JBOSS forum several weeks ago, then I was adviced to post to TOMCAT mailing list. Thans and regards, Y.Hatano
RE: Tomcat 3.x odd behavior...
Sorry to clog the list, but... hahahahha! =) - r > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > Sent: Monday, August 13, 2001 10:38 PM > To: [EMAIL PROTECTED] > Subject: Re: Tomcat 3.x odd behavior... > > > Why would anyone want to watch a Bolywood movie? > This will not help you recover your crashed system. > > >Pier (watching a marvelous BollyWood movie -with subtitles- > > while looking @ reconnecting inodes) > > Rk > x77309 > >
Tomcat dies... help!
Tomcat is having serious problems which only happen at night when the usage goes light... go figure. here's the one consistent thing I know. It gives this error and then dies... [jk_ajp13_worker.c (203)]: connection_tcp_get_message: Error - jk_tcp_socket_rec vfull failed [jk_ajp13_worker.c (621)]: Error reading request [jk_connect.c (143)]: jk_open_socket, connect() failed errno = 146 [jk_ajp13_worker.c (173)]: In jk_endpoint_t::connect_to_tomcat, failed errno = 1 46 ... What is wrong? What can I do to fix it? Thanks! Ron Vyhmeister
Re: Tomcat 3.x odd behavior...
Why would anyone want to watch a Bolywood movie? This will not help you recover your crashed system. >Pier (watching a marvelous BollyWood movie -with subtitles- > while looking @ reconnecting inodes) Rk x77309
Re: mod_webapp with Apache 2.0
Ian Kallen <[EMAIL PROTECTED]> at [EMAIL PROTECTED] wrote: > I was just perusing the jakarta-tomcat-connectors tree and found plenty > about building with Apache 1.3 but no mention of 2.0 -- is there a > separate tree for it or something? Sorry, but mod_webapp has not yet been written for 2.0 :) :) Pier
mod_webapp with Apache 2.0
I was just perusing the jakarta-tomcat-connectors tree and found plenty about building with Apache 1.3 but no mention of 2.0 -- is there a separate tree for it or something? cheers, -Ian -- Ian Kallen <[EMAIL PROTECTED]> | AIM: iankallen
Tomcat 3.x odd behavior...
My turn for questions now :) I'm tired of replying... :) I have a production server running both TC4 and TC3, plus a bunch of other services... Now, the server crashed tonight, and I found that I had approximately 35.000 unlinked inodes after the reboot... 120 owned by TC4, apache, mysql, yadayadayada, the rest by TC3... I'm running Solaris 8 on a 6-processor Sun E4500... Has anyone observed this behavior on some other system? I don't quite figure out how it could be possible... Pier (watching a marvelous BollyWood movie -with subtitles- while looking @ reconnecting inodes)
Information of SSL
hi, I am Bharat. I would like to know some information from you regarding : setup ssl for tomcat i have followed all the steps and generated the keystore file. but i am getting problem while configuring server.xml. in server.xml there are few lines which are said to be uncommented to setup ssl. but after doing that one also i am not able to get. here i found one intresting thing. after changing in server.xml.if i restart the tomcat, and try to stop.It is giving me connection refused error. to stop tomcat i should kill the process. when comments the lines back ( for ssl) it works fine . we are using tomcat 3.2.1 operating system is linux. Please send me information what exactly i should do after generating the keystore. Thanks and Regards, Bharat Kumar, Software Engineer, SurgoSystems (Singapore) Pte Ltd
Re: Encoding "=". Catalina does not understand http parameter withun-encoded equal sign inside param value
On Mon, 13 Aug 2001, Roytman, Alex wrote: > Hello > > Catalina does not understand http parameter with un-encoded equal sign > inside > i.e. myparam=fname='alex';lname='roytman' > It use to work in Tomcat 3.x and I wonder if equal sign in parameter > value has to be encoded according to specs or not > Yep ... both equal signs and ampersandes must be encoded. For Tomcat 3.x, you were just lucky, I guess. Craig
Encoding "=". Catalina does not understand http parameter with un-encoded equal sign inside param value
Hello Catalina does not understand http parameter with un-encoded equal sign inside i.e. myparam=fname='alex';lname='roytman' It use to work in Tomcat 3.x and I wonder if equal sign in parameter value has to be encoded according to specs or not
Re: Trouble running a servlet
I still make make this work. I've made sure my servlet class is in TOMCAT_HOME\webapps\ROOT\WEB-INF\clsses and get this Not Found (404) Original request: http://localhost:8080/servlet/LibraryServlet Not found request: http://localhost:8080/servlet/LibraryServlet This has to be something basic, and it's got to be me, but I cna't figure out what is wrong. Thanks. Ken __ Do You Yahoo!? Send instant messages & get email alerts with Yahoo! Messenger. http://im.yahoo.com/
Re: Control the number of request's
At 03:18 PM 8/13/2001, you wrote: >Hello all. > >Can anyone explain me (and to all people of the list) how control the number >of request that one client can do? I'm using Tomcat 3.2.3 and if one client >with IE or NN push Reload several times, my server does one connection to >the DataBase in all the requests. Then, the Oracle 8i crash becouse the >other server creates several process, one per thread of the session of the >Tomcat. I would like to respond only the last request, and cancel the >previous one. >Is it possible with Tomcat? It'd probably be a lot easier to simply up the Oracle configuration. It's a little of putting the cart before the horse by attempting to control the number of requests. If the requests exceed the capacity of your web server the worst that happens is the excess requests get things like 404's (I think). But an Oracle server crashing means you probably have aspect of it's configuration set too low. Trying to solve the problem by some how limiting the requests doesn't sound like the optimal solution to me. You may be running the server with default settings. Look at the config file and up whatever it is that deals with connections to the data base and threads. I used to know but its been a long time.
Re: Trouble running a servlet
Try http://localhost:8080/servlet/MyServletClass assuming that your class is in $TOMCAT_HOME/webapps/ROOT/WEB-INF/classes/MyServletClass.class On Mon, 13 Aug 2001, Kenneth Litwak wrote: > I'm trying to run a basic servlet tutorial using > tomcat on Win 2000 with Netscape. It doens't work. > > I start tomcat, and get > 2001-08-13 03:34:12 - ContextManager: Adding context > Ctx( /examples ) > 2001-08-13 03:34:12 - ContextManager: Adding context > Ctx( /admin ) > Starting tomcat. Check logs/tomcat.log for error > messages > 2001-08-13 03:34:12 - ContextManager: Adding context > Ctx( ) > 2001-08-13 03:34:12 - ContextManager: Adding context > Ctx( /test ) > 2001-08-13 03:34:13 - PoolTcpConnector: Starting > HttpConnectionHandler on 8080 > 2001-08-13 03:34:13 - PoolTcpConnector: Starting > Ajp12ConnectionHandler on 8007 > > Next, I go to Netscpae and tyr to opne a page. The > final URL i sue is > http://localhost:8080/ROOT/WEB-INF/classes/MyServletClass.class > That fails with a 404 > > THen I moved he code and tried > http:/localhost:8080/webapps/examples/WEB-INF/classes/Myservletcalss.class > That didn't work either. The tomcat screen in both > cases listed the URL, followed by the word "null". > I khave doen this under the ROOT directory wiht a > servlet on Solaris without a hitch Now that I'm trying > it on WIndows in a diferent environment, it won/t > work. > > I've tried changing the Netscape settings for ptoxy. > I swithced them to "Manual proxy", and set the http IP > address to 127..01, and the prot for everything to > 8080. This still doens't work. I'm not trying to do > anything fancy. I jsut want to be able to stat the > sever, and code and run JSPs and servlets. I'd > appreciate help with this basic problem. Thanks. > >If it matters,I'm not on the Internet, but I was > told htat's irrelevant. > > Ken > > > __ > Do You Yahoo!? > Send instant messages & get email alerts with Yahoo! Messenger. > http://im.yahoo.com/ > Jan K. Labanowski|phone: 614-292-9279, FAX: 614-292-7168 Ohio Supercomputer Center|Internet: [EMAIL PROTECTED] 1224 Kinnear Rd, |http://www.ccl.net/chemistry.html Columbus, OH 43212-1163 |http://www.osc.edu/
Re: Runtime command in jsp
1. exec commands are Strings. 2. arguments are in an array. 3. your program should not even compile. Kyle Wayne Kelly (504)391-3985 http://www.cs.uno.edu/~kkelly - Original Message - From: "Ramachandran, Sudhir" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, August 13, 2001 3:47 PM Subject: Runtime command in jsp > Hi All, > > I am calling a separate process in my jsp page as > > Process aaa=Runtime.getRuntime().exec(swiftgen c:/a/b/c.swf); > > it is calling the process but not creating any file but the same works in > command prompt. please help me or advice me, if there is ant path setting > for this. > > Thanks in advance > > -sudhir > Sudhir Ramachandran > ILSG Learning Tools and Solutions > Ph-(408) 525 4416 > e-mail- [EMAIL PROTECTED] >
Trouble running a servlet
I'm trying to run a basic servlet tutorial using tomcat on Win 2000 with Netscape. It doens't work. I start tomcat, and get 2001-08-13 03:34:12 - ContextManager: Adding context Ctx( /examples ) 2001-08-13 03:34:12 - ContextManager: Adding context Ctx( /admin ) Starting tomcat. Check logs/tomcat.log for error messages 2001-08-13 03:34:12 - ContextManager: Adding context Ctx( ) 2001-08-13 03:34:12 - ContextManager: Adding context Ctx( /test ) 2001-08-13 03:34:13 - PoolTcpConnector: Starting HttpConnectionHandler on 8080 2001-08-13 03:34:13 - PoolTcpConnector: Starting Ajp12ConnectionHandler on 8007 Next, I go to Netscpae and tyr to opne a page. The final URL i sue is http://localhost:8080/ROOT/WEB-INF/classes/MyServletClass.class That fails with a 404 THen I moved he code and tried http:/localhost:8080/webapps/examples/WEB-INF/classes/Myservletcalss.class That didn't work either. The tomcat screen in both cases listed the URL, followed by the word "null". I khave doen this under the ROOT directory wiht a servlet on Solaris without a hitch Now that I'm trying it on WIndows in a diferent environment, it won/t work. I've tried changing the Netscape settings for ptoxy. I swithced them to "Manual proxy", and set the http IP address to 127..01, and the prot for everything to 8080. This still doens't work. I'm not trying to do anything fancy. I jsut want to be able to stat the sever, and code and run JSPs and servlets. I'd appreciate help with this basic problem. Thanks. If it matters,I'm not on the Internet, but I was told htat's irrelevant. Ken __ Do You Yahoo!? Send instant messages & get email alerts with Yahoo! Messenger. http://im.yahoo.com/
RE: Error Log
At 01:46 PM 8/13/2001, Jeff wrote: >Nope. > >Jeff, > > >This "code_red" virus seems a Microsoft IIS issue. Do you think this virus > >also could attack an apache server? Well, yes, it can attack an Apache server all it wants, the good thing is that this vulnerability doesn't exist on Apache. The worst that happens is that your poor Apache server has to continually attempt to service requests for a resource it doesn't have.
RE: Runtime command in jsp
Please unsubcribe me! Thanks. Tuanh -Original Message- From: Ramachandran, Sudhir [mailto:[EMAIL PROTECTED]] Sent: Monday, August 13, 2001 3:47 PM To: [EMAIL PROTECTED] Subject: Runtime command in jsp Hi All, I am calling a separate process in my jsp page as Process aaa=Runtime.getRuntime().exec(swiftgen c:/a/b/c.swf); it is calling the process but not creating any file but the same works in command prompt. please help me or advice me, if there is ant path setting for this. Thanks in advance -sudhir Sudhir Ramachandran ILSG Learning Tools and Solutions Ph-(408) 525 4416 e-mail- [EMAIL PROTECTED]
Runtime command in jsp
Hi All, I am calling a separate process in my jsp page as Process aaa=Runtime.getRuntime().exec(swiftgen c:/a/b/c.swf); it is calling the process but not creating any file but the same works in command prompt. please help me or advice me, if there is ant path setting for this. Thanks in advance -sudhir Sudhir Ramachandran ILSG Learning Tools and Solutions Ph-(408) 525 4416 e-mail- [EMAIL PROTECTED]
RE: Error Log
sorry - should read all my mail before replying (o: On Tue, 14 Aug 2001, Dmitri Colebatch wrote: > favicon.ico is a 16x16 icon that IE looks for if a user has bookmarked a > page. If its present, IE puts it next to the address in the address bar. > > cheers > dim > > On Mon, 13 Aug 2001, Jeff Rancier wrote: > > > You're server is receiving what appears to be the code_red virus stuff. You > > must be connected to the outside? If so, I'd turn off, disconnect your > > connection, get the patch from Microsoft, follow the instructions. Forget > > what I said, you're not running IIS. But I think that's what they are > > though. > > > > -Original Message- > > From: Barnabas Yohannes [mailto:[EMAIL PROTECTED]] > > Sent: Monday, August 13, 2001 3:56 PM > > To: [EMAIL PROTECTED] > > Subject: Error Log > > > > > > Does any one has any idea what the following errors mean? > > > > [Mon Aug 13 12:22:53 2001] [error] [client 204.30.247.252] File does not > > exist: /usr/local/apache/htdocs/favicon.ico > > > > [Mon Aug 13 12:30:47 2001] [error] [client 217.128.68.93] File does not > > exist: /usr/local/apache/htdocs/default.ida > > > > [Mon Aug 13 12:52:13 2001] [error] [client 212.68.231.10] File does not > > exist: /usr/local/apache/htdocs/default.ida > > > > They are displayed at "error_log" of the apache server. We looked those > > files up the directory displayed, but they do not exist. What is happening > > is that after an applicatin at the tomcat server works for 10-12 hours, the > > web crushes. Folks here started male pattern baldness tying to solve this > > error. > > > > Any help will be highly appreciated. > > > > > >
RE: Error Log
favicon.ico is a 16x16 icon that IE looks for if a user has bookmarked a page. If its present, IE puts it next to the address in the address bar. cheers dim On Mon, 13 Aug 2001, Jeff Rancier wrote: > You're server is receiving what appears to be the code_red virus stuff. You > must be connected to the outside? If so, I'd turn off, disconnect your > connection, get the patch from Microsoft, follow the instructions. Forget > what I said, you're not running IIS. But I think that's what they are > though. > > -Original Message- > From: Barnabas Yohannes [mailto:[EMAIL PROTECTED]] > Sent: Monday, August 13, 2001 3:56 PM > To: [EMAIL PROTECTED] > Subject: Error Log > > > Does any one has any idea what the following errors mean? > > [Mon Aug 13 12:22:53 2001] [error] [client 204.30.247.252] File does not > exist: /usr/local/apache/htdocs/favicon.ico > > [Mon Aug 13 12:30:47 2001] [error] [client 217.128.68.93] File does not > exist: /usr/local/apache/htdocs/default.ida > > [Mon Aug 13 12:52:13 2001] [error] [client 212.68.231.10] File does not > exist: /usr/local/apache/htdocs/default.ida > > They are displayed at "error_log" of the apache server. We looked those > files up the directory displayed, but they do not exist. What is happening > is that after an applicatin at the tomcat server works for 10-12 hours, the > web crushes. Folks here started male pattern baldness tying to solve this > error. > > Any help will be highly appreciated. > >
Re: Control the number of request's
you could create a database thread-pool. This way only a certain amount of connections could come from any 1 server. -m
Control the number of request's
Hello all. Can anyone explain me (and to all people of the list) how control the number of request that one client can do? I'm using Tomcat 3.2.3 and if one client with IE or NN push Reload several times, my server does one connection to the DataBase in all the requests. Then, the Oracle 8i crash becouse the other server creates several process, one per thread of the session of the Tomcat. I would like to respond only the last request, and cancel the previous one. Is it possible with Tomcat? And another question, are there any way to call a method of a servlet periodicaly from the server? I would like to clean several objets that are in the httpsession. Thanks to all. == Pablo Morillas http://www.sortes.com [EMAIL PROTECTED] ==
RE: unable to instantiate LoginConfiguration while using jaas in servlet
Hi, Charlie, Thanks for the reply. I had AllPermission set on jaas.jar. It's not because of the permissions, but we have solved the problem. It seems to be a known problem in the servlet world. The problem lies in the behavior of jaas loading LoginModule, and LoginConfiguration objects. It only looks on the system classpath. Therefore any LoginModule or LoginConfiguration objects that lives in servlets (which are loaded by the servlet container's custom loader) will not be found, hence the error. The error is not very descriptive (class not found, or file not found, what load it's using?), so it took us a while to figure it out. I also read this limitation will be lifted in 1.4. The temporary work around is to use some sort of a proxy to load the loginModule class from the Thread context ClassLoader, which JBoss app server actually implements. bye, Tao > -Original Message- > From: Charlie Lai [mailto:[EMAIL PROTECTED]] > Sent: Monday, August 13, 2001 11:06 AM > To: [EMAIL PROTECTED] > Cc: [EMAIL PROTECTED] > Subject: Re: unable to instantiate LoginConfiguration while using jaas > in serv > > > > We hit a problem in trying to use JAAS in some servlet > code. We are using > > tomcat, with our servlet, which is calling jaas to get a > LoginContext to > > login. We are using our own LoginModule. This code works > fine when it's a > > standalone application, but as servlet it fails to get a > LoginConfiguration. > > (See stack trace below) > > the first thing to check is whether jaas.jar has > java.security.AllPermission. > if you believe the permission is granted correctly, > you can confirm this by setting the system property, > java.security.debug=access,failure > if the debug output shows that the protection domain for jaas.jar > is the "domain the failed", you know the permission setting > is not correct. > > if this turns out not to be the problem, > please send another email and we can try > other steps to determine what may be going on. > > thanks, > charlie > > > @@[01/08/12 01:59:59PM][ERROR][Thread-52 > ][*b.CslVerbDispatchServlet] > > java.lang.SecurityException: unable to instantiate > LoginConfiguration > > at > > > javax.security.auth.login.Configuration.getConfiguration(Confi > guration.java: > > 212) > > at > javax.security.auth.login.LoginContext$1.run(LoginContext.java:166) > > at java.security.AccessController.doPrivileged(Native Method) > > at > javax.security.auth.login.LoginContext.init(LoginContext.java:163) > > at > javax.security.auth.login.LoginContext.(LoginContext.java:319) > > at > com.myco.api.security.MyLoginContext.(SiteletLoginContex > t.java:42) > > at > > > com.myco.engine.verb.CslVerbDispatchServlet.doGet(CslVerbDispa > tchServlet.jav > > a:285) > > 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:405) > > at org.apache.tomcat.core.Handler.service(Handler.java:287) > > at > org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) > > at > > > org.apache.tomcat.core.ContextManager.internalService(ContextM > anager.java:85 > > 5) > > at > org.apache.tomcat.core.ContextManager.service(ContextManager.java:801) > > at > > > org.apache.tomcat.service.http.HttpConnectionHandler.processCo > nnection(HttpC > > onnectionHandler.java:213) > > at > > > org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoin > t.java:416) > > at > > > org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPo > ol.java:501) > > at java.lang.Thread.run(Thread.java:484) > > >
RE: How to prevent Tomcat/Jasper to forward JSP comments ?
Your JSP comments (<%-- this is a JSP comment --%>) will NEVER be sent out to the client, at least not by Tomcat. -Original Message- From: Frederic [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 09, 2001 8:07 AM To: [EMAIL PROTECTED] Subject: How to prevent Tomcat/Jasper to forward JSP comments ? Hi, I would like to prevent the servlet engine to forward the JSP comments in the generated HTML page. I used to put many comments in my JSP pages but i would like to hide them to the clients. I've seen that we can give the JspServlet some init parameters but there is no parameter matching my request. Does anyone know how to tell it to hide comments ? Fred.
RE: Not related to JSP's feel free to ignore
Should be possible with a JavaScript. But I think it's not a good idea. Who has to submit a hidden form has to hide something. ;-) Axel -Original Message- From: Jann VanOver [mailto:[EMAIL PROTECTED]] Sent: Montag, 13. August 2001 23:05 To: '[EMAIL PROTECTED]' Subject: RE: Not related to JSP's feel free to ignore You mean to post a form without the user getting a dialog box if they've asked to be notified of posts? Absolutely not. -Original Message- From: Kyle Wayne Kelly [mailto:[EMAIL PROTECTED]] Sent: Friday, August 10, 2001 10:19 PM To: [EMAIL PROTECTED] Subject: Re: Not related to JSP's feel free to ignore I am not sure what "double secret probation" is. I mean to ask, is it possible to post a hidden form automatically? Kyle Wayne Kelly (504)391-3985 http://www.cs.uno.edu/~kkelly - Original Message - From: "Tim O'Neil" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, August 10, 2001 3:42 PM Subject: Re: Not related to JSP's feel free to ignore > At 03:54 PM 8/10/2001, you wrote: > >Can anyone show me an example of code that posts a secret form? > > Sound like "double secret probation". What's a secret form? > >
RE: Not related to JSP's feel free to ignore
You mean to post a form without the user getting a dialog box if they've asked to be notified of posts? Absolutely not. -Original Message- From: Kyle Wayne Kelly [mailto:[EMAIL PROTECTED]] Sent: Friday, August 10, 2001 10:19 PM To: [EMAIL PROTECTED] Subject: Re: Not related to JSP's feel free to ignore I am not sure what "double secret probation" is. I mean to ask, is it possible to post a hidden form automatically? Kyle Wayne Kelly (504)391-3985 http://www.cs.uno.edu/~kkelly - Original Message - From: "Tim O'Neil" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, August 10, 2001 3:42 PM Subject: Re: Not related to JSP's feel free to ignore > At 03:54 PM 8/10/2001, you wrote: > >Can anyone show me an example of code that posts a secret form? > > Sound like "double secret probation". What's a secret form? > >
Integrating Tomcat with Other Servers
Is there a list anywhere of Web Servers that Tomcat can integrate with? I know it can link to Apache, IIS, and Netscape. What about things like Novell, Domino, etc.? A link to any page would be appreciated! Thanks! Brandon
RE: Error Log
This is a specific thing to IIS so don't worry. Request can be done although to see if it is infected. Check the ip addresses and see if they come from a source likely to be a normal visitor, if not mail them that there is something strange going on ;-)) Mvgr, Martin > -Original Message- > From: Barnabas Yohannes [mailto:[EMAIL PROTECTED]] > Sent: Monday, August 13, 2001 10:39 PM > To: [EMAIL PROTECTED] > Subject: Re: Error Log > > > Jeff, > > This "code_red" virus seems a Microsoft IIS issue. Do you think > this virus > also could attack an apache server? > > > - Original Message - > From: "Jeff Rancier" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Monday, August 13, 2001 3:06 PM > Subject: RE: Error Log > > > > You're server is receiving what appears to be the code_red virus stuff. > You > > must be connected to the outside? If so, I'd turn off, disconnect your > > connection, get the patch from Microsoft, follow the instructions. > Forget > > what I said, you're not running IIS. But I think that's what they are > > though. > > > > -Original Message- > > From: Barnabas Yohannes [mailto:[EMAIL PROTECTED]] > > Sent: Monday, August 13, 2001 3:56 PM > > To: [EMAIL PROTECTED] > > Subject: Error Log > > > > > > Does any one has any idea what the following errors mean? > > > > [Mon Aug 13 12:22:53 2001] [error] [client 204.30.247.252] File does not > > exist: /usr/local/apache/htdocs/favicon.ico > > > > [Mon Aug 13 12:30:47 2001] [error] [client 217.128.68.93] File does not > > exist: /usr/local/apache/htdocs/default.ida > > > > [Mon Aug 13 12:52:13 2001] [error] [client 212.68.231.10] File does not > > exist: /usr/local/apache/htdocs/default.ida > > > > They are displayed at "error_log" of the apache server. We looked those > > files up the directory displayed, but they do not exist. What is > happening > > is that after an applicatin at the tomcat server works for 10-12 hours, > the > > web crushes. Folks here started male pattern baldness tying to > solve this > > error. > > > > Any help will be highly appreciated. > > > > >
Re: Error Log
Barnabas Yohannes at [EMAIL PROTECTED] wrote: > Jeff, > > This "code_red" virus seems a Microsoft IIS issue. Do you think this virus > also could attack an apache server? It can NOT attack any other web server BUT Microsoft IIS... Apache, Tomcat and all the others are NOT AFFECTED by code red... EVEN if you're running them on Windows... Pier
RE: Error Log
Nope. -Original Message- From: Barnabas Yohannes [mailto:[EMAIL PROTECTED]] Sent: Monday, August 13, 2001 4:39 PM To: [EMAIL PROTECTED] Subject: Re: Error Log Jeff, This "code_red" virus seems a Microsoft IIS issue. Do you think this virus also could attack an apache server? - Original Message - From: "Jeff Rancier" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, August 13, 2001 3:06 PM Subject: RE: Error Log > You're server is receiving what appears to be the code_red virus stuff. You > must be connected to the outside? If so, I'd turn off, disconnect your > connection, get the patch from Microsoft, follow the instructions. Forget > what I said, you're not running IIS. But I think that's what they are > though. > > -Original Message- > From: Barnabas Yohannes [mailto:[EMAIL PROTECTED]] > Sent: Monday, August 13, 2001 3:56 PM > To: [EMAIL PROTECTED] > Subject: Error Log > > > Does any one has any idea what the following errors mean? > > [Mon Aug 13 12:22:53 2001] [error] [client 204.30.247.252] File does not > exist: /usr/local/apache/htdocs/favicon.ico > > [Mon Aug 13 12:30:47 2001] [error] [client 217.128.68.93] File does not > exist: /usr/local/apache/htdocs/default.ida > > [Mon Aug 13 12:52:13 2001] [error] [client 212.68.231.10] File does not > exist: /usr/local/apache/htdocs/default.ida > > They are displayed at "error_log" of the apache server. We looked those > files up the directory displayed, but they do not exist. What is happening > is that after an applicatin at the tomcat server works for 10-12 hours, the > web crushes. Folks here started male pattern baldness tying to solve this > error. > > Any help will be highly appreciated. > >
RE: Connection reset by peer: socket write error NOT harmless
Just to give you some more background info(you being the kind hearted soul who read my last post) The image is ALWAYS corrupted if I run the client program from another machine on our local network. Also, if I add the following line of code to the servlet: out.flush(); sandwiched between: out.write(b); out.close(); I get a much more robust error, namely: java.net.SocketException: Connection reset by peer: socket write error at java.net.SocketOutputStream.socketWrite(Native Method) at java.net.SocketOutputStream.write(SocketOutputStream.java:83) Thanks again . Alex -Original Message- From: alex reuter [mailto:[EMAIL PROTECTED]] Sent: Monday, August 13, 2001 4:10 PM To: [EMAIL PROTECTED] Subject: Connection reset by peer: socket write error NOT harmless Hello List! This is my first post here, so sorry for the length. I'm running a binary distribution of tomcat 3.2.3 on Windows NT, developing in JDDeveloper 3.2.2. I have a client java program which sends a simple SQL string to a servlet which gets an image from our database and returns it. No browsers involved. The problem I'm having is that a third of the time when I execute the client request from my computer to the local IP address of tomcat, also running on my computer, tomcat gives this error message: 2001-08-13 15:39:03 - Ctx( /databasefetcher ): IOException in: ( /databasefetcher + /servlet/databasefetcher + null) Connection reset by peer: socket write error And the file, which the client program writes to the file system, is corrupted. If tomcat does not give this error message, the image is fine and can be opened and enjoyed for all of its beauty. The images are tiffs and are about 250K in size each. Below is the code for the fetching: + public void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException{ //read in the SQL string BufferedReader br = new BufferedReader(new InputStreamReader(req.getInputStream())); String SQL = "" +br.readLine(); try{ //get the image from the database ResultSet rs = (ResultSet)Enterpriser.dealWithDbFetch(SQL, false); InputStream isImg=null; if(rs.next()){ isImg = rs.getBinaryStream(1); } //set the length to 1.3 mb, the largest image size res.setContentLength(130); res.setContentType("image/tif"); res.setBufferSize(130); byte[] b = new byte[130]; //read the image into the inputstream isImg.read( b ); //get the servlet output stream ServletOutputStream out = res.getOutputStream(); //write the image to the response out.write(b); out.close(); } catch(Exception e){ e.printStackTrace(); } } AND here is the code for the client program: ++ import java.net.*; import java.io.*; import org.xml.sax.*; import java.util.Properties; public class StringHttp { // POST an XML document to a Service's URL, Returning XML document response public static InputStream doPost(String stringToPost, URL target) throws IOException, ProtocolException { // (1) Open an HTTP connection to the target URL HttpURLConnection conn = (HttpURLConnection)target.openConnection(); if (conn == null) return null; // (2) Use HTTP POST conn.setRequestMethod("POST"); // (3) Indicate that the content type is plain text with appropriate MIME type conn.setRequestProperty("Content-type","text/plain"); // (4) We'll be writing and reading from the connection conn.setDoOutput(true); conn.setDoInput(true); // (5) Print the String into the connection's output stream PrintWriter pw = new PrintWriter( new utputStreamWriter( conn.getOutputStream())); pw.println( stringToPost );// etc, etc. pw.flush(); pw.close(); // (6) Get an InputStream to read the response from the server. InputStream responseStream = conn.getInputStream(); return responseStream; } public static void main(String args[]){ String SQL="Select A.MAP from a TABLE where map_id=1"; try{ URL dispatchURL = new URL("http://192.1.1.215:8080/databasefetcher/servlet/databasefetcher";); long start = System.currentTimeMillis(); InputStream is = StringHttp.doPost(SQL, dispatchURL); long end = System.currentTimeMillis()-start; System.out.println("Took "+ end+ " millis"); byte[] b = new byte[130]; is.read(b); FileOutputStream fos = new FileOutputStream(new File("C:\\imgTest3.tif")); fos.write(b); } catch(Exception e){ e.printStackTrace(); } } } + I've seen a number of posts on this subject and the answer always seems to have to do with IE. I'm not using it. Though sometimes IIS starts up acidentally, cut
Re: Error Log
Jeff, This "code_red" virus seems a Microsoft IIS issue. Do you think this virus also could attack an apache server? - Original Message - From: "Jeff Rancier" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, August 13, 2001 3:06 PM Subject: RE: Error Log > You're server is receiving what appears to be the code_red virus stuff. You > must be connected to the outside? If so, I'd turn off, disconnect your > connection, get the patch from Microsoft, follow the instructions. Forget > what I said, you're not running IIS. But I think that's what they are > though. > > -Original Message- > From: Barnabas Yohannes [mailto:[EMAIL PROTECTED]] > Sent: Monday, August 13, 2001 3:56 PM > To: [EMAIL PROTECTED] > Subject: Error Log > > > Does any one has any idea what the following errors mean? > > [Mon Aug 13 12:22:53 2001] [error] [client 204.30.247.252] File does not > exist: /usr/local/apache/htdocs/favicon.ico > > [Mon Aug 13 12:30:47 2001] [error] [client 217.128.68.93] File does not > exist: /usr/local/apache/htdocs/default.ida > > [Mon Aug 13 12:52:13 2001] [error] [client 212.68.231.10] File does not > exist: /usr/local/apache/htdocs/default.ida > > They are displayed at "error_log" of the apache server. We looked those > files up the directory displayed, but they do not exist. What is happening > is that after an applicatin at the tomcat server works for 10-12 hours, the > web crushes. Folks here started male pattern baldness tying to solve this > error. > > Any help will be highly appreciated. > >
RE: Error Log
Create an nice windows icon file yourself.. Mvgr, martin > -Original Message- > From: Barnabas Yohannes [mailto:[EMAIL PROTECTED]] > Sent: Monday, August 13, 2001 10:36 PM > To: [EMAIL PROTECTED] > Subject: Re: Error Log > > > Thank you Randy, > This is very true. In fact, I bookmarked the site and it did it again. > What do you think is the solution? Is there any where that I can download > the favicon.ico and put it to the root directory? We looked the > file up in > all the directories, but non of the files are loaded in anywhere in the > apache server. We even tried to find it at the apache server CDs, but the > files are not there. > > > - Original Message - > From: "Randy Paries" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Monday, August 13, 2001 3:00 PM > Subject: RE: Error Log > > > > This is an error from a user that bookmarks your site with an > IE5 browser. > > The browser looks by default for favicon.ico in the root directory. > > > > /usr/local/apache/htdocs/favicon.ico > > > > -Original Message- > > From: Barnabas Yohannes [mailto:[EMAIL PROTECTED]] > > Sent: Monday, August 13, 2001 2:56 PM > > To: [EMAIL PROTECTED] > > Subject: Error Log > > > > > > Does any one has any idea what the following errors mean? > > > > [Mon Aug 13 12:22:53 2001] [error] [client 204.30.247.252] File does not > > exist: /usr/local/apache/htdocs/favicon.ico > > > > [Mon Aug 13 12:30:47 2001] [error] [client 217.128.68.93] File does not > > exist: /usr/local/apache/htdocs/default.ida > > > > [Mon Aug 13 12:52:13 2001] [error] [client 212.68.231.10] File does not > > exist: /usr/local/apache/htdocs/default.ida > > > > They are displayed at "error_log" of the apache server. We looked those > > files up the directory displayed, but they do not exist. What is > happening > > is that after an applicatin at the tomcat server works for 10-12 hours, > the > > web crushes. Folks here started male pattern baldness tying to > solve this > > error. > > > > Any help will be highly appreciated. > > > > >
Re: Error Log
Thank you Randy, This is very true. In fact, I bookmarked the site and it did it again. What do you think is the solution? Is there any where that I can download the favicon.ico and put it to the root directory? We looked the file up in all the directories, but non of the files are loaded in anywhere in the apache server. We even tried to find it at the apache server CDs, but the files are not there. - Original Message - From: "Randy Paries" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, August 13, 2001 3:00 PM Subject: RE: Error Log > This is an error from a user that bookmarks your site with an IE5 browser. > The browser looks by default for favicon.ico in the root directory. > > /usr/local/apache/htdocs/favicon.ico > > -Original Message- > From: Barnabas Yohannes [mailto:[EMAIL PROTECTED]] > Sent: Monday, August 13, 2001 2:56 PM > To: [EMAIL PROTECTED] > Subject: Error Log > > > Does any one has any idea what the following errors mean? > > [Mon Aug 13 12:22:53 2001] [error] [client 204.30.247.252] File does not > exist: /usr/local/apache/htdocs/favicon.ico > > [Mon Aug 13 12:30:47 2001] [error] [client 217.128.68.93] File does not > exist: /usr/local/apache/htdocs/default.ida > > [Mon Aug 13 12:52:13 2001] [error] [client 212.68.231.10] File does not > exist: /usr/local/apache/htdocs/default.ida > > They are displayed at "error_log" of the apache server. We looked those > files up the directory displayed, but they do not exist. What is happening > is that after an applicatin at the tomcat server works for 10-12 hours, the > web crushes. Folks here started male pattern baldness tying to solve this > error. > > Any help will be highly appreciated. > >
Re: Apache Tomcat mod_jk
You need to do some reading. Usually, apache runs on port 80 Usually, tomcat web server runs on port 8080 (of course, you can change it) If you get to Tomcat via apache, you should be able to do http://my.machine/examples and see tomcat examples. If you do not see them, your connector (mod_jk) is not configured correctly. If you get to Tomcat directly, you should be able to do http://my.machine:8080/examples If your apache is not running, you still can see pages via Tomcat 8080 port, since Tomcat is also a web server. You can disable prot 8080 in tomcat (comment out the connector which has 8080 in server.xml), but until you do, your tomcat is serving pages on port 8080 without apache. When you do ps -ef | grep httpd you see Apache when you do ps -ef | grep java | grep -i tomcat you will see tomcat processes (and threads) If you installed apache from the CD or red hat or whatever, it is automatically started on book. To stop it you need to do: /etc/rc.d/init.d/httpd stop and to start it, you need to do /etc/rc.d/init.d/httpd start On Fri, 13 Jul 2001, Saadat Ahmed wrote: > Another basic question. > > When I kill all httpds and hence my apache server is not running and then I > start tomcat, how come I can browse the tomcat index page on port 8080 > eventhough the apache server is not running. > > Is TomCat more than a Servlet engine, how is the httpd request is being > processed without me having apache running. > > For some reason when I executed "ps -e | grep "httpd" " I do see httpds. > > Is this apache, if it is then how come it starts eventhough I just started > tomcat with startup.sh > > Regards, > > Saaat. > > > _ > Do You Yahoo!? > Get your free @yahoo.com address at http://mail.yahoo.com > Jan K. Labanowski|phone: 614-292-9279, FAX: 614-292-7168 Ohio Supercomputer Center|Internet: [EMAIL PROTECTED] 1224 Kinnear Rd, |http://www.ccl.net/chemistry.html Columbus, OH 43212-1163 |http://www.osc.edu/
Re: Getting *original* request path
That's actually what I wound up doing. I just wanted to make sure that there wasn't a simpler way. It seems to me there should be a method in the API for just such occasions... -August --- "Craig R. McClanahan" <[EMAIL PROTECTED]> wrote: > > > On Mon, 13 Aug 2001, August Detlefsen wrote: > > > How do I get the original request URI or path after a page has been > > forwarded using pageContext.forward()? > > > > The webapp I'm developing uses pageContext.forward() to send > requests > > to different JSPs for processing (for example to send someone to a > > login page if they are not logged in), but once they are forwarded > > methods such as: > > > > request.getRequestURI() > > request.getServletPath() > > HttpUtils.getRequestURL(request) > > > > only return info relevant to the new page. > > > > How do I get the info for the original page? > > > > Save the request URI of the original page in a request attribute > before > you do the forwarding. > > > Thanks, > > August > > > > Craig > __ Do You Yahoo!? Send instant messages & get email alerts with Yahoo! Messenger. http://im.yahoo.com/
Re: Restarting Tomcat/Apache
I use jave just about the exact same configuration and I don't have the problems you state. I have noticed that if I restart tomcat *without* restarting apache, there are problems. To restart I use the following script: #!/bin/bash /usr/apache/bin/apachectl stop sleep 2 /usr/jakarta/dist/tomcat/bin/shutdown.sh sleep 2 /usr/jakarta/dist/tomcat/bin/startup.sh sleep 2 /usr/apache/bin/apachectl start Mike 1. stop . 2. --- Simon Hardingham <[EMAIL PROTECTED]> wrote: > Hi, > > I am having problems restarting Tomcat. It can be a real problem to get > Tomcat to shutdown (often requiring a killall java). Even then starting > up > can be intermittent. Has anyone else had any problems with starting and > stopping Tomcat. System details are: > > RedHat Linux 7.1 on Intel > Tomcat 3.2.3 > mod_jk (from 3.2.3) > Apache 1.3.19 > servlets with JDBC to PostgresSQL 7.1.2 > > Any thoughts? Development is difficult when restarting is such an > effort! > > Many thanks > > Simon > > _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/ > _/ Simon Hardingham - netXtra Ltd - UK _/ > _/ Direct Dial: +44 (0) 1787 314890_/ > _/ Tel: +44 (0) 1787 319393Fax: +44 (0) 1787 319394 _/ > _/ http://www.netxtra.co.uk [EMAIL PROTECTED] _/ > _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/ > > __ Do You Yahoo!? Send instant messages & get email alerts with Yahoo! Messenger. http://im.yahoo.com/
Connection reset by peer: socket write error NOT harmless
Hello List! This is my first post here, so sorry for the length. I'm running a binary distribution of tomcat 3.2.3 on Windows NT, developing in JDDeveloper 3.2.2. I have a client java program which sends a simple SQL string to a servlet which gets an image from our database and returns it. No browsers involved. The problem I'm having is that a third of the time when I execute the client request from my computer to the local IP address of tomcat, also running on my computer, tomcat gives this error message: 2001-08-13 15:39:03 - Ctx( /databasefetcher ): IOException in: ( /databasefetcher + /servlet/databasefetcher + null) Connection reset by peer: socket write error And the file, which the client program writes to the file system, is corrupted. If tomcat does not give this error message, the image is fine and can be opened and enjoyed for all of its beauty. The images are tiffs and are about 250K in size each. Below is the code for the fetching: + public void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException{ //read in the SQL string BufferedReader br = new BufferedReader(new InputStreamReader(req.getInputStream())); String SQL = "" +br.readLine(); try{ //get the image from the database ResultSet rs = (ResultSet)Enterpriser.dealWithDbFetch(SQL, false); InputStream isImg=null; if(rs.next()){ isImg = rs.getBinaryStream(1); } //set the length to 1.3 mb, the largest image size res.setContentLength(130); res.setContentType("image/tif"); res.setBufferSize(130); byte[] b = new byte[130]; //read the image into the inputstream isImg.read( b ); //get the servlet output stream ServletOutputStream out = res.getOutputStream(); //write the image to the response out.write(b); out.close(); } catch(Exception e){ e.printStackTrace(); } } AND here is the code for the client program: ++ import java.net.*; import java.io.*; import org.xml.sax.*; import java.util.Properties; public class StringHttp { // POST an XML document to a Service's URL, Returning XML document response public static InputStream doPost(String stringToPost, URL target) throws IOException, ProtocolException { // (1) Open an HTTP connection to the target URL HttpURLConnection conn = (HttpURLConnection)target.openConnection(); if (conn == null) return null; // (2) Use HTTP POST conn.setRequestMethod("POST"); // (3) Indicate that the content type is plain text with appropriate MIME type conn.setRequestProperty("Content-type","text/plain"); // (4) We'll be writing and reading from the connection conn.setDoOutput(true); conn.setDoInput(true); // (5) Print the String into the connection's output stream PrintWriter pw = new PrintWriter( new utputStreamWriter( conn.getOutputStream())); pw.println( stringToPost );// etc, etc. pw.flush(); pw.close(); // (6) Get an InputStream to read the response from the server. InputStream responseStream = conn.getInputStream(); return responseStream; } public static void main(String args[]){ String SQL="Select A.MAP from a TABLE where map_id=1"; try{ URL dispatchURL = new URL("http://192.1.1.215:8080/databasefetcher/servlet/databasefetcher";); long start = System.currentTimeMillis(); InputStream is = StringHttp.doPost(SQL, dispatchURL); long end = System.currentTimeMillis()-start; System.out.println("Took "+ end+ " millis"); byte[] b = new byte[130]; is.read(b); FileOutputStream fos = new FileOutputStream(new File("C:\\imgTest3.tif")); fos.write(b); } catch(Exception e){ e.printStackTrace(); } } } + I've seen a number of posts on this subject and the answer always seems to have to do with IE. I'm not using it. Though sometimes IIS starts up acidentally, cutting apache out of the loop. Any help is greatly appreciated. Thanks, Alex
RE: Error Log
You're server is receiving what appears to be the code_red virus stuff. You must be connected to the outside? If so, I'd turn off, disconnect your connection, get the patch from Microsoft, follow the instructions. Forget what I said, you're not running IIS. But I think that's what they are though. -Original Message- From: Barnabas Yohannes [mailto:[EMAIL PROTECTED]] Sent: Monday, August 13, 2001 3:56 PM To: [EMAIL PROTECTED] Subject: Error Log Does any one has any idea what the following errors mean? [Mon Aug 13 12:22:53 2001] [error] [client 204.30.247.252] File does not exist: /usr/local/apache/htdocs/favicon.ico [Mon Aug 13 12:30:47 2001] [error] [client 217.128.68.93] File does not exist: /usr/local/apache/htdocs/default.ida [Mon Aug 13 12:52:13 2001] [error] [client 212.68.231.10] File does not exist: /usr/local/apache/htdocs/default.ida They are displayed at "error_log" of the apache server. We looked those files up the directory displayed, but they do not exist. What is happening is that after an applicatin at the tomcat server works for 10-12 hours, the web crushes. Folks here started male pattern baldness tying to solve this error. Any help will be highly appreciated.
RE: Error Log
This is an error from a user that bookmarks your site with an IE5 browser. The browser looks by default for favicon.ico in the root directory. /usr/local/apache/htdocs/favicon.ico -Original Message- From: Barnabas Yohannes [mailto:[EMAIL PROTECTED]] Sent: Monday, August 13, 2001 2:56 PM To: [EMAIL PROTECTED] Subject: Error Log Does any one has any idea what the following errors mean? [Mon Aug 13 12:22:53 2001] [error] [client 204.30.247.252] File does not exist: /usr/local/apache/htdocs/favicon.ico [Mon Aug 13 12:30:47 2001] [error] [client 217.128.68.93] File does not exist: /usr/local/apache/htdocs/default.ida [Mon Aug 13 12:52:13 2001] [error] [client 212.68.231.10] File does not exist: /usr/local/apache/htdocs/default.ida They are displayed at "error_log" of the apache server. We looked those files up the directory displayed, but they do not exist. What is happening is that after an applicatin at the tomcat server works for 10-12 hours, the web crushes. Folks here started male pattern baldness tying to solve this error. Any help will be highly appreciated.
Error Log
Does any one has any idea what the following errors mean? [Mon Aug 13 12:22:53 2001] [error] [client 204.30.247.252] File does not exist: /usr/local/apache/htdocs/favicon.ico [Mon Aug 13 12:30:47 2001] [error] [client 217.128.68.93] File does not exist: /usr/local/apache/htdocs/default.ida [Mon Aug 13 12:52:13 2001] [error] [client 212.68.231.10] File does not exist: /usr/local/apache/htdocs/default.ida They are displayed at "error_log" of the apache server. We looked those files up the directory displayed, but they do not exist. What is happening is that after an applicatin at the tomcat server works for 10-12 hours, the web crushes. Folks here started male pattern baldness tying to solve this error. Any help will be highly appreciated.
Re: Getting *original* request path
On Mon, 13 Aug 2001, August Detlefsen wrote: > How do I get the original request URI or path after a page has been > forwarded using pageContext.forward()? > > The webapp I'm developing uses pageContext.forward() to send requests > to different JSPs for processing (for example to send someone to a > login page if they are not logged in), but once they are forwarded > methods such as: > > request.getRequestURI() > request.getServletPath() > HttpUtils.getRequestURL(request) > > only return info relevant to the new page. > > How do I get the info for the original page? > Save the request URI of the original page in a request attribute before you do the forwarding. > Thanks, > August > Craig
RE: Apache+Tomcat+SSL+IE5.5
It has to do with settings in the browser that it gives this message. If you refere one thing to http in eg the header (eg external css stylesheet or external js file) then this messag is given. Mvgr, Martin > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of [EMAIL PROTECTED] > Sent: Monday, August 13, 2001 9:08 PM > To: [EMAIL PROTECTED] > Subject: Apache+Tomcat+SSL+IE5.5 > > > Hi, > I have a web server with Apache (with SSL) + Tomcat (with ajp13) > Tomcat don't have a HTTP connector. > My application only use JSP-servlets(no static page). > It work perfectly with IE5.0 , Netscape 4 or Netscape 6 > When I use IE5.5 to connect to my apache i have this message from IE : > (i have a french message, so it is my translation ) > > "this page have secure elements and non-secure elements > > Would you like view the non-secure elements ?" > > It's just a warning message but I would like to know if : > > _ IE5.5 is right (they are non-secured element in my JSP pages) or if > it is a bug. > How to be sure ? > > _ if yes, Does It mean apache-SSL don't crypt my tomcat's > JSP. (i have > the same message when i use ajp12 or ajp13 ) > > Thanks in advance > Fred > > >
Re: How to get userRole from Tomcat 3.2.3?
On Mon, 13 Aug 2001 [EMAIL PROTECTED] wrote: > Hi, > > I am using JDBCRealm and need a convenient way to get the userRoles of the > user. GetRemoteUser is not the right way. In the source code of JDBCRealm I > found a getuserRoles method - how can I use it in my own servlets? Calling > jedbcRealm = new JDBCRealm() and then jdbcRealm.getuserRoles do not work, > of course... > > Best thanks in advance > > Thomas W. Richter > > There is nothing in the servlet API that lets you (portably) ask for all the roles assigned to the authenticated user. However, you can ask "does this user have role FOO" by calling request.isUserInRole("FOO"). If you need to do more than that (for example, you're writing a web app to administer the set of valid users and roles), your best bet is to write a database maintenance application in the usual way that happens to point at the same database tables. From the *application* developer's point of view, JDBCRealm is not visible -- it just happens to be the gadget that Tomcat uses internally to look up users and roles in a database. Craig
Apache+Tomcat+SSL+IE5.5
Hi, I have a web server with Apache (with SSL) + Tomcat (with ajp13) Tomcat don't have a HTTP connector. My application only use JSP-servlets(no static page). It work perfectly with IE5.0 , Netscape 4 or Netscape 6 When I use IE5.5 to connect to my apache i have this message from IE : (i have a french message, so it is my translation ) "this page have secure elements and non-secure elements Would you like view the non-secure elements ?" It's just a warning message but I would like to know if : _ IE5.5 is right (they are non-secured element in my JSP pages) or if it is a bug. How to be sure ? _ if yes, Does It mean apache-SSL don't crypt my tomcat's JSP. (i have the same message when i use ajp12 or ajp13 ) Thanks in advance Fred
Re: 'Illegal Load: 0.75' from Tomcat
Hashtable/Map problem? - r On Mon, 13 Aug 2001 11:06:38 -0700 [EMAIL PROTECTED] wrote: > I use Tomcat 4.0-b6 right now. And I frequentlly run into an error as > the followings: > > > A Servlet Exception Has Occurred > > Exception Report: > > org.apache.jasper.JasperException: Unable to > compile class for JSP > .. > > > > Root > Cause: > java.lang.IllegalArgumentException: Illegal Load: > 0.75 > > > > If I try to load the same page again, > the error can disappear. This problem threatens our server's > availability. > > Can anyone tell me how to work around this problem? > Whether it is resolved in the beta 7 or not? > > Thank, > > > Vernon Wu
Subject: "Illegal Load: 0.75" from Tomcat
I use Tomcat 4.0-b6 right now. And I frequentlly run into an error as the followings: A Servlet Exception Has Occurred Exception Report: org.apache.jasper.JasperException: Unable to compile class for JSP .. Root Cause: java.lang.IllegalArgumentException: Illegal Load: 0.75 If I try to load the same page again, the error can disappear. This problem threatens our server's availability. Can anyone tell me how to work around this problem? Whether it is resolved in the beta 7 or not? Thank, Vernon Wu
Re: Restarting Tomcat/Apache
You have to have the ajp12 instantiated in server.xml file just for shutdown, even if you do not use it in workers.properties Just copy the ajp13 connector stuff and change ajp12 -> ajp13 It usually helps... On Mon, 13 Aug 2001, Simon Hardingham wrote: > Hi, > > I am having problems restarting Tomcat. It can be a real problem to get > Tomcat to shutdown (often requiring a killall java). Even then starting up > can be intermittent. Has anyone else had any problems with starting and > stopping Tomcat. System details are: > > RedHat Linux 7.1 on Intel > Tomcat 3.2.3 > mod_jk (from 3.2.3) > Apache 1.3.19 > servlets with JDBC to PostgresSQL 7.1.2 > > Any thoughts? Development is difficult when restarting is such an effort! > > Many thanks > > Simon > > _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/ > _/ Simon Hardingham - netXtra Ltd - UK _/ > _/ Direct Dial: +44 (0) 1787 314890_/ > _/ Tel: +44 (0) 1787 319393Fax: +44 (0) 1787 319394 _/ > _/ http://www.netxtra.co.uk [EMAIL PROTECTED] _/ > _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/ > Jan K. Labanowski|phone: 614-292-9279, FAX: 614-292-7168 Ohio Supercomputer Center|Internet: [EMAIL PROTECTED] 1224 Kinnear Rd, |http://www.ccl.net/chemistry.html Columbus, OH 43212-1163 |http://www.osc.edu/
apache and tomcat
I constantly have about 30 TIME-WAIT connections between the apache and tomcat ports on my localhost. I am wandering if this is normal and if not how to get around it. I also notice that my mod_jk.log file fills up with this error; [jk_ajp12_worker.c (596)]: ajpv12_handle_response, error writing back to server could these be connected? perhaps sockets used up in TIME-WAIT and then the error? any advice is much appreciated. Thanks!! Matt
Re: Restarting Tomcat/Apache
Had the same problem, never figured out how to get rid of it. I used it stand alone. -V. - Original Message - From: "Simon Hardingham" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, August 13, 2001 10:27 AM Subject: Restarting Tomcat/Apache > Hi, > > I am having problems restarting Tomcat. It can be a real problem to get > Tomcat to shutdown (often requiring a killall java). Even then starting up > can be intermittent. Has anyone else had any problems with starting and > stopping Tomcat. System details are: > > RedHat Linux 7.1 on Intel > Tomcat 3.2.3 > mod_jk (from 3.2.3) > Apache 1.3.19 > servlets with JDBC to PostgresSQL 7.1.2 > > Any thoughts? Development is difficult when restarting is such an effort! > > Many thanks > > Simon > > _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/ > _/ Simon Hardingham - netXtra Ltd - UK _/ > _/ Direct Dial: +44 (0) 1787 314890_/ > _/ Tel: +44 (0) 1787 319393Fax: +44 (0) 1787 319394 _/ > _/ http://www.netxtra.co.uk [EMAIL PROTECTED] _/ > _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/ > >
Getting *original* request path
How do I get the original request URI or path after a page has been forwarded using pageContext.forward()? The webapp I'm developing uses pageContext.forward() to send requests to different JSPs for processing (for example to send someone to a login page if they are not logged in), but once they are forwarded methods such as: request.getRequestURI() request.getServletPath() HttpUtils.getRequestURL(request) only return info relevant to the new page. How do I get the info for the original page? Thanks, August __ Do You Yahoo!? Send instant messages & get email alerts with Yahoo! Messenger. http://im.yahoo.com/
Restarting Tomcat/Apache
Hi, I am having problems restarting Tomcat. It can be a real problem to get Tomcat to shutdown (often requiring a killall java). Even then starting up can be intermittent. Has anyone else had any problems with starting and stopping Tomcat. System details are: RedHat Linux 7.1 on Intel Tomcat 3.2.3 mod_jk (from 3.2.3) Apache 1.3.19 servlets with JDBC to PostgresSQL 7.1.2 Any thoughts? Development is difficult when restarting is such an effort! Many thanks Simon _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/ _/ Simon Hardingham - netXtra Ltd - UK _/ _/ Direct Dial: +44 (0) 1787 314890_/ _/ Tel: +44 (0) 1787 319393Fax: +44 (0) 1787 319394 _/ _/ http://www.netxtra.co.uk [EMAIL PROTECTED] _/ _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
Different configurations using the same .war file
Hi, I'm trying to figure out the best way of deploying a web application at several sites, each with their own configuration (JDBC url etc). Ideally I would like to do this by shipping a single .war file, but this would mean having the configuration outside this war file. So far all the examples seem to include any configuration inside the web.xml file. I would be interested to know how other people handle this. thanks, Erik /\ | Erik Erskine [EMAIL PROTECTED] | | Sundayta Ltd | \/
ThreadPool: Pool exhausted with 100 threads.
Hi All I am getting the following message written at console and tomcat server is not responding once the message is displayed. Next few sentences are from the tomcat.properties file for the Thread pool # # Thread Pool parameters # # Enables or disables the use of the thread pool. # Syntax: pool=[true|false] (boolean) # Default: false # WARNING: the pool has not been extensively tested and may generate deadlocks. # For this reason, we advise against using this code in production environments. pool=false # Indicates the number of idle threads that the pool may contain. # Syntax: pool.capacity=(int)>0 # Default: 10 # NOTE: depending on your system load, this number should be low for contantly # loaded servers and should be increased depending on load bursts. pool.capacity=10 # Indicates the pool controller that should be used to control the # level of the recycled threads. # Syntax: pool.controller=[full class of controller] (String) # Default: org.apache.java.recycle.DefaultController # NOTE: it is safe to leave this unchanged unless special recycle behavior # is needed. Look at the "org.apache.java.recycle" package javadocs for more # info on other pool controllers and their behavior. pool.controller=org.apache.java.recycle.DefaultController Although the pool=false is mentioned its still giving the same message. Could anyone please help me in finding solution for this problem. I have searched in archives but did'nt found any reply to these sort of questions. 2. I would also like to increase the cache memory and heap memory while starting tomcat server. Please help me out. Thanks in advance Krishna __ Do You Yahoo!? Send instant messages & get email alerts with Yahoo! Messenger. http://im.yahoo.com/
ThreadPool: Pool exhausted with 100 threads.
Hi All I am getting the following message written at console and tomcat server is not responding once the message is displayed. Next few sentences are from the tomcat.properties file for the Thread pool # # Thread Pool parameters # # Enables or disables the use of the thread pool. # Syntax: pool=[true|false] (boolean) # Default: false # WARNING: the pool has not been extensively tested and may generate deadlocks. # For this reason, we advise against using this code in production environments. pool=false # Indicates the number of idle threads that the pool may contain. # Syntax: pool.capacity=(int)>0 # Default: 10 # NOTE: depending on your system load, this number should be low for contantly # loaded servers and should be increased depending on load bursts. pool.capacity=10 # Indicates the pool controller that should be used to control the # level of the recycled threads. # Syntax: pool.controller=[full class of controller] (String) # Default: org.apache.java.recycle.DefaultController # NOTE: it is safe to leave this unchanged unless special recycle behavior # is needed. Look at the "org.apache.java.recycle" package javadocs for more # info on other pool controllers and their behavior. pool.controller=org.apache.java.recycle.DefaultController Although the pool=false is mentioned its still giving the same message. Could anyone please help me in finding solution for this problem. I have searched in archives but did'nt found any reply to these sort of questions. 2. I would also like to increase the cache memory and heap memory while starting tomcat server. Please help me out. Thanks in advance Krishna __ Do You Yahoo!? Send instant messages & get email alerts with Yahoo! Messenger. http://im.yahoo.com/
Re: How to I build Tomcat with SSL?
> Date: Mon, 13 Aug 2001 09:04:50 -0400 > From: "Peter Markowsky" <[EMAIL PROTECTED]> > Subject: How to I build Tomcat with SSL? > I've looked at the documentation, downloaded the classes and xerces 1.4.1. > But am now faced with the actual how do I rebuild Tomcat. I'm very new at > this. I've just had to do this myself. The first thing is that if you just want SSL support then, with Tomcat 3.2.3 at least, you don't seem to need to rebuild it. Just put the JSSE JAR files in $TOMCAT_HOME/lib and configure the SSL HttpConnector in server.xml (there is an example there commented out). If you *do* need to rebuild it (for other reasons) the you'll find an explanation in the README file supplied with jakarta-tomcat-3.2.2.tar.gz. Basically, you need to download Ant, the "servletapi" package, Xerces, JAXP and JSSE and put them in a directory structure like: jakarta-tomcat jakarta-servletapi jakarta-ant jaxp-1.0.1 You also need to put xerces.jar and the JSSE JARs in your CLASSPATH before doing the build. Eoin.
Re: ClassLoader
> Moving things from Tomcat's internal classes (any version) into your > /WEB-INF/lib is *not* going to work. > > What are you trying to accomplish that the standard class loading model > does not support? Just saying "I want to use a classloader inside my > servlet" does not help much in getting useful suggestions. > > > Thanks in advance > > Jochen > > Craig McClanahan I'm trying to allow my servlet to download classes from another server via RMI and to use those classes. The problem now is that when I downloaded the classes and I try to define the class via the ClassLoader the ClassLoader tells me that it can't find the required interface classes (which are stored in the jars inside the WEB-INF/lib directory). By looking through your archive I found the following post: http://w6.metronet.com/~wjm/tomcat/2001/Feb/msg00096.html *snip* > > Am I just screwed or is there some cool trick that I am missing? Of course > I could change the deployment scheme to put a copy of the dispatcher > servlet into each apps WE-INF/classes, but this seems a bit clunky. > It's not clunky -- its required by virtue of the fact that classloaders know how to delegate upwards but not downwards. For lots of security related reasons, that is actually a Good Thing. *snip* Is this post wrong and is there another sollution? And if not: which of all those classes is the "dispatcher servlet"? Thx Jochen
Re: How to get userRole from Tomcat 3.2.3?
Why not use HttpServletRequest boolean isUserInRole(java.lang.String role) andrew On Mon, 13 Aug 2001, you wrote: > Hi, > > I am using JDBCRealm and need a convenient way to get the userRoles of the > user. GetRemoteUser is not the right way. In the source code of JDBCRealm I > found a getuserRoles method - how can I use it in my own servlets? Calling > jedbcRealm = new JDBCRealm() and then jdbcRealm.getuserRoles do not work, > of course... > > Best thanks in advance > > Thomas W. Richter
RE: How to get userRole from Tomcat 3.2.3?
javax.servlet.http.HttpServletRequest contains these methods public boolean isUserInRole(java.lang.String role) public java.security.Principal getUserPrincipal() Filip ~ Namaste - I bow to the divine in you ~ Filip Hanik Software Architect [EMAIL PROTECTED] www.filip.net >-Original Message- >From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] >Sent: Monday, August 13, 2001 8:46 AM >To: [EMAIL PROTECTED] >Subject: How to get userRole from Tomcat 3.2.3? > > >Hi, > >I am using JDBCRealm and need a convenient way to get the userRoles of the >user. GetRemoteUser is not the right way. In the source code of JDBCRealm I >found a getuserRoles method - how can I use it in my own servlets? Calling >jedbcRealm = new JDBCRealm() and then jdbcRealm.getuserRoles do not work, >of course... > >Best thanks in advance > >Thomas W. Richter > >
Tomcat stops serving requests...Please help
Hi! we are using Tomcat 3.2.1 with Apache http server. We are using this setup in production. After running 3 days, Tomcat stopped serving requests and throws null pointer exception when tried to access any JSP. See the exception below... Internal Servlet Error: java.lang.NullPointerException at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404) at org.apache.tomcat.core.Handler.service(Handler.java:286) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79 7) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743) at org.apache.tomcat.service.connector.Ajp13ConnectionHandler.processConnection (Ajp13ConnectionHandler.java:160) 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) Before this happened, there were some "Connection reset by peer" errors. Can someone please help us on this.
How to get userRole from Tomcat 3.2.3?
Hi, I am using JDBCRealm and need a convenient way to get the userRoles of the user. GetRemoteUser is not the right way. In the source code of JDBCRealm I found a getuserRoles method - how can I use it in my own servlets? Calling jedbcRealm = new JDBCRealm() and then jdbcRealm.getuserRoles do not work, of course... Best thanks in advance Thomas W. Richter
Re: ClassLoader
On Mon, 13 Aug 2001, jochen mader wrote: > I've already seen that there are other people facing the same problem that I > got. I'd like to use a classloader inside my servlet but it doesn't work > because the classes in WEB-INF/lib are not available to the parent > classloader. > I also read that you I will have to put the DispatcherServlet into > WEB-INF/classes. My problem now is that I don't know which classes I have to > put there (which class is the DispatcherServlet in Tomcat 4.0 and 3.2??). > Moving things from Tomcat's internal classes (any version) into your /WEB-INF/lib is *not* going to work. What are you trying to accomplish that the standard class loading model does not support? Just saying "I want to use a classloader inside my servlet" does not help much in getting useful suggestions. > Thanks in advance > Jochen > Craig McClanahan
Re: How-To configure Tomcat4.0 with Apache to serve servlets/jsprequest?
On Mon, 13 Aug 2001, Satyan Nair wrote: > Hi All, > How-To configure Tomcat4.0 with Apache to serve servlets/jsp request? I m > not yet successful in doing so. Till now i using the port 8080 to run my > examples. > Let me know if there is any documentation available to help configure > tomcat4 with apache. > In the downloads directory for Tomcat 4.0-b7, there are precompiled versions of the mod_webapp connector for several platforms, and the download packages include installation instructions. http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0-b7/bin/ > take care all... > > Craig McClanahan
Tomcat 4 and IIS?
There was a question about this in the archives, but no answer: Can the isapi_redirect.dll work with Tomcat 4, or is there any way to use Tomcat 4 with IIS? thanks, Chris
Re: JSP in XML format
On Sun, 13 Aug 2000, Diego.Tomcat wrote: > I have not understand how I can use XML format instead of classic JSP > format. > I write a JSP page in XML format and then ...? > Then the JSP page compiler treats it just like any other JSP page (recompiles it when changes occur, and so on). You do not have to do anything special to tell the compiler this is in XML syntax - it is automatically recognized. Of course, that assumes your JSP compiler understands XML syntax, which is true for Tomcat 4 and not for Tomcat 3. > Please help me! > > Craig
Re: problem with mod_webapp.so on Solaris
John Harris at [EMAIL PROTECTED] wrote: > I'm trying to upgrade to Tomcat 4.0, using my current install of Apache > 1.3.19. > I am able to make mod_webapp.so just fine, but when I go to test apache with > apachectl configtest I get the error: > > "Syntax error on line 72 of /usr/local/apache/conf/httpd.conf: > Cannot load /usr/local/apache/libexec/mod_webapp.so into server: ld.so.1: > /usr/local/apache/bin/httpd: fatal: libmm.so.11: open failed: No such file or > directory" > > This is on a SPARC solaris 2.6 install. I downloaded the cvs on saturday night > for jakarta-tomcat-connectors as well as the apr. Whops... Glitch in the build process? Did you build it following the README.txt file included into it? Hmm... I'm wondering. LibMM is included into APR, and when APR gets configured, it is configured with --enable-static --disable-shared, so libmm.so SHOULD NOT be built, but its static counterpart (libmm.a) should be there. Can you check in your APR build directory for a "libmm.*" file and tell me what you find? (Use something like "find apr/ | grep libmm", as some of the libraries are in hidden directories - damn libtool!). Pier
Re: Tomcat 4.0 Status
Jim Urban at [EMAIL PROTECTED] wrote: > > I just got back from a 2 week vacation, and was wondering what the status of > Tomcat 4.0 was. When will it be ready for prime time (production)? Now :) We're calling it beta because it would be pointless to have a FINAL piece of software implementing a NON-FINAL specification (servlet 2.3 is not out yet, but getting there pretty soon!)... Pier
problem with mod_webapp.so on Solaris
I'm trying to upgrade to Tomcat 4.0, using my current install of Apache 1.3.19. I am able to make mod_webapp.so just fine, but when I go to test apache with apachectl configtest I get the error: "Syntax error on line 72 of /usr/local/apache/conf/httpd.conf: Cannot load /usr/local/apache/libexec/mod_webapp.so into server: ld.so.1: /usr/local/apache/bin/httpd: fatal: libmm.so.11: open failed: No such file or directory" This is on a SPARC solaris 2.6 install. I downloaded the cvs on saturday night for jakarta-tomcat-connectors as well as the apr. Thanks, John Harris.
RE: Tomcat 4.0 Status
When will it be ready for prime time (production)? -Original Message- From: Bo Xu [mailto:[EMAIL PROTECTED]] Sent: Monday, August 13, 2001 9:24 AM To: [EMAIL PROTECTED] Subject: Re: Tomcat 4.0 Status Jim Urban wrote: > I just got back from a 2 week vacation, and was wondering what the status of > Tomcat 4.0 was. When will it be ready for prime time (production)? > [...] TC4.0-b7 is available :-) Bo Aug.13, 2001
Tomcat Crushes after few hours of working
Folks, At the mod_Jk.log file at tomcat server, the following errors are displayed repeatedly: - [jk_ajp13_worker.c (584)]: Error connecting to the Tomcat process. [jk_connect.c (143)]: jk_open_socket, connect() failed errno = 111 [jk_ajp13_worker.c (173)]: In jk_endpoint_t::connect_to_tomcat, failed errno = 111 -- Do you have any idea what could be causing this errors? The WebPages that are at the tomcat crush after few hours of working. The only way we can solve this problem has been by rebooting the tomcat server and the apache server. Any help will be appreciated, Barnabas.
Is Tomcat not closing connections?
Hi, I have tomcat 3.1.1 installed on a solaris box. It is talking to apache on a different solaris box. Apache is setup to have a maximum of 256 processes but rarely actually goes above 150. When I check how many connections are talking to port 8007 I get over 400 using the following command : while [ 1 -eq 1 ]; do netstat -an | grep 8007 | wc -l; sleep 5; done How can this be happening? Is Tomcat not closing down connections that it has finished with? I am getting a LOT (~1 per second) of 'Connection caused software abort' execeptions which I have rebuilt tomcat to ignore (rather than the default action which used to be to shutdown!). Any help with this would be appreciated. George
Re: Tomcat 4.0 Status
Jim Urban wrote: > I just got back from a 2 week vacation, and was wondering what the status of > Tomcat 4.0 was. When will it be ready for prime time (production)? > [...] TC4.0-b7 is available :-) Bo Aug.13, 2001
ClassLoader
I've already seen that there are other people facing the same problem that I got. I'd like to use a classloader inside my servlet but it doesn't work because the classes in WEB-INF/lib are not available to the parent classloader. I also read that you I will have to put the DispatcherServlet into WEB-INF/classes. My problem now is that I don't know which classes I have to put there (which class is the DispatcherServlet in Tomcat 4.0 and 3.2??). Thanks in advance Jochen
Re: Get Server IP in a JSP
You could use ipconfig to create a file that contains the IP address. Kyle Wayne Kelly (504)391-3985 http://www.cs.uno.edu/~kkelly - Original Message - From: "Dave Solecki" <[EMAIL PROTECTED]> To: "List, Tomcat" <[EMAIL PROTECTED]> Sent: Monday, August 13, 2001 6:28 AM Subject: Get Server IP in a JSP > > Hi all, > I know this isn't really a question about Tomcat, but I figured that > since Tomcat is all about Servlets and JSP's someone may be able to answer > my question. Is there a way to query the server for it's IP address within > and JSP or Servlet? This would be on a Windows machine. If there is can > that IP address be written into a URL Rewrite? I'm writing an Equipment > management system for work and it is all written in JSP. My problem is that > the machine I'm using as my Tomcat server is my Workstation. I'd like to > move it to a dedicated machine, but our Workstations do not have DNS, so > typing in the machine mane does not work. I have to hard code in my IP > address in order for the system to function. The problem with that is that > we have Dynamic IP addresses. Mine hasn't changed in a long time, but it > could and if it does the whole system won't work. > > Could anyone offer a suggestion to my IP address problem? > > Thanks, > > Dave > > > > > > ___ > Send a cool gift with your E-Card > http://www.bluemountain.com/giftcenter/ > >
Tomcat 4.0 Status
I just got back from a 2 week vacation, and was wondering what the status of Tomcat 4.0 was. When will it be ready for prime time (production)? Jim Urban Product Manager Netsteps Inc. Suite 505E 1 Pierce Pl. Itasca, IL 60143 Voice: (630) 250-3045 x2164 Fax: (630) 250-3046
Re: Tomcat crashes simultaneous more connection above 990+
"Pier P. Fumagalli" wrote: > > It _can_ be done... Probably not in Java (I'm not that sure it can handle > that many file descriptors open), but I've seen a Sun E4500 (fully > populated) holding up 20k connections with 100 processes and 200 threads > each... But it was a 1 million $$$ machine... I have had older Sparcstation 20's holding over 6k connections and running fine. No, it wasn't java :) geir -- Geir Magnusson Jr. [EMAIL PROTECTED] System and Software Consulting Developing for the web? See http://jakarta.apache.org/velocity/ Well done is better than well said - New England Proverb
Re: Newbie: Apache Tomcat mod_jk Virtual Hosts
On Sun, 12 Aug 2001 21:59:19 -0400 (EDT), Jan Labanowski wrote: >Again... Without knowing what you want to do, it is hard to advise. >The if for setting virtual hosts in Tomcat. >You say, you want to connect Tomcat to Apache. >Then you should do virtual hosts in Apache, not in Tomcat. I would have to disagree on this point. How successfully Tomcat does this in all situations is a different matter, but I think a lot of people want to do something like this: ... JkMount /*.jsp ajp13 ... ... JkMount /*.jsp ajp13 ... In this case, Tomcat has to know about the virtual hosts to have two unique root contexts. In fact, I've set up a system this way with the 3.2.3 version, but I couldn't get the same thing to work when separating the Apache and Tomcat machines from each other. IMHO, Tomcat should be looking at the contents of the ServerName field on requests from Apache to determine what host to use in its own configuration. Otherwise, you're stuck with running multiple instances of Tomcat like I am right now, or you're forced to run it on the same machine as Apache (and I have no idea why that works). Note: I did get this to work to an extent with machines separated, but it didn't reliably work under different forms of requests (HTTP 1.0 instead of 1.1 for IP-based hosts, IP instead of named-based hosts with the IP in the URL request instead of the name, and a few others that I forget). Best Regards, Jason Koeninger J&J Computer Consulting http://www.jjcc.com
Re: How-To configure Tomcat4.0 with Apache to serve servlets/jsprequest?
Satyan Nair at [EMAIL PROTECTED] wrote: > Hi All, > How-To configure Tomcat4.0 with Apache to serve servlets/jsp request? I m > not yet successful in doing so. Till now i using the port 8080 to run my > examples. > Let me know if there is any documentation available to help configure > tomcat4 with apache. Download B7, and in the "bin" directory you'll find mod_webapp, toghether with a couple of text files on how to install it... Have fun :) (BTW, what OS are you using?) Pier
Re: Tomcat crashes simultaneous more connection above 990+
Jeff Turner at [EMAIL PROTECTED] wrote: > Well I think you're completely nuts :) For 10,000 concurrent requests for > *dynamic* data (or else you'd just be using Apache.. right?), you'd need a > server farm full of fancy equipment, a load-balancing server, and stuff that > even my wildly ignorant speculations can't conceive. > > Besides, I don't think any single server with simple thread-per-request, > blocking IO model can handle that sort of load. A smart fellow called Matt > Welsh did his PhD thesis on highly concurrent server apps, and the results of > his thinking are here: > > http://www.cs.berkeley.edu/~mdw/proj/sandstorm/ > > In particular, the paper "The Staged Event-Driven Architecture for Highly > Concurrent Servers." is well worth reading. It _can_ be done... Probably not in Java (I'm not that sure it can handle that many file descriptors open), but I've seen a Sun E4500 (fully populated) holding up 20k connections with 100 processes and 200 threads each... But it was a 1 million $$$ machine... Load balancing... :) Pier
RE: Growing Memory
I believe about the only thing that the JDBC-ODBC bridge, provided with Java by Sun, doesn't do is leak memory. It does have threading issues and it will cause a General Protection Fault/Application Error/Dr. Watson error, depending upon your version of Windows. (In Sun's Bug Parade they indicate that the bridge is experimental, unsupported, and not recommended for any actual usage.) In your case, its not your database drivers. One other thing that I didn't mention before, remember that your servlet instance variables will also be around (practically speaking) from first invoation/initalization until the container stops. Having lists and maps here that can accumulate data can also cause problems. Randy > -Original Message- > From: Scott Weaver [mailto:[EMAIL PROTECTED]] > Sent: Monday, August 13, 2001 9:41 AM > To: [EMAIL PROTECTED] > Subject: RE: Growing Memory > > > Thanks for the info. > > I am using the JDBC driver in my servlets > (jdbc:odbc:driver={SQL SERVER}). > This might be where my problem is. > > What is the problem with this driver and is there a work around? > ... or should I say, What is a common miss configuration? > Do you know where I can see a correct configuration or do you have an > example? > > Thanks again, > Scott > > -Original Message- > From: Randy Layman [mailto:[EMAIL PROTECTED]] > Sent: Monday, August 13, 2001 8:26 AM > To: [EMAIL PROTECTED] > Subject: RE: Growing Memory > > > > You could try one of the profiling tools out there (we > use a very > old version of OptimizeIt) to spot where the memory is going > and how it got > there. > > A few things that could be your problem, though: > 1. You are putting very large objects into sessions and your > sessions have long or no expiration times > 2. You have an object with a static variable that you > keep adding > to (map, list, set, etc) and aren't ever clearing > 3. You have some form of buffered IO where the buffer > isn't being > flushed. > > Realize that these are the end causes of your memory leak. You > might be using some library (like JDBC drivers) that could > cause one or more > of these issues if they are miss configured. If its possible, I would > suggest that you try using your servlets one at a time and spot which > servlet is causing the memory to go up. > > Randy > > > -Original Message- > > From: Scott Weaver [mailto:[EMAIL PROTECTED]] > > Sent: Monday, August 13, 2001 9:00 AM > > To: [EMAIL PROTECTED] > > Subject: Growing Memory > > > > > > > > I've been using Tomcat with IIS 5.0 on a dual processor > > machine running > > Windows 2000. > > > > The memory usage just seems to grow over use and I'm not sure > > where to look > > for problems. > > > > Anyone have any experience with this problem? > > And/Or advice on what to look at to try to diagnose this problem? > > > > Thanks for the help, > > Scott > > >
access violation error
Hallo, we are using tomcat 3.2.2 and JDK 1.3 on Win NT (we must use it) Our application consists of some JSPs and Action-Classes When two clients visit a JSP at the same time after starting tomcat (the page isn't compiled yet) Dr. Watson comes up telling us that there is an error (access violation) occured in java.exe. If one single user accesses all JSPs, so that they are compiled to the TOMCAT_HOME\work direktory, before any other user visits a page, everything works fine. Who can help? Guido Nottebrok
Re: How-To configure Tomcat4.0 with Apache to serve servlets/jsp request?
Hey 1 thing : you need to build mod_jk.so (better than mod_jserv) and then configure apache to use it. you can find doc @ http://jakarta.apache.org/tomcat/tomcat-3.3-doc/tomcat-apache-howto.html or /and http://jakarta.apache.org/tomcat/tomcat-3.3-doc/mod_jk-howto.html Mmx Satyan Nair wrote: > Hi All, > How-To configure Tomcat4.0 with Apache to serve servlets/jsp request? I m > not yet successful in doing so. Till now i using the port 8080 to run my > examples. > Let me know if there is any documentation available to help configure > tomcat4 with apache. > > take care all...
RE: Growing Memory
Thanks for the info. I am using the JDBC driver in my servlets (jdbc:odbc:driver={SQL SERVER}). This might be where my problem is. What is the problem with this driver and is there a work around? ... or should I say, What is a common miss configuration? Do you know where I can see a correct configuration or do you have an example? Thanks again, Scott -Original Message- From: Randy Layman [mailto:[EMAIL PROTECTED]] Sent: Monday, August 13, 2001 8:26 AM To: [EMAIL PROTECTED] Subject: RE: Growing Memory You could try one of the profiling tools out there (we use a very old version of OptimizeIt) to spot where the memory is going and how it got there. A few things that could be your problem, though: 1. You are putting very large objects into sessions and your sessions have long or no expiration times 2. You have an object with a static variable that you keep adding to (map, list, set, etc) and aren't ever clearing 3. You have some form of buffered IO where the buffer isn't being flushed. Realize that these are the end causes of your memory leak. You might be using some library (like JDBC drivers) that could cause one or more of these issues if they are miss configured. If its possible, I would suggest that you try using your servlets one at a time and spot which servlet is causing the memory to go up. Randy > -Original Message- > From: Scott Weaver [mailto:[EMAIL PROTECTED]] > Sent: Monday, August 13, 2001 9:00 AM > To: [EMAIL PROTECTED] > Subject: Growing Memory > > > > I've been using Tomcat with IIS 5.0 on a dual processor > machine running > Windows 2000. > > The memory usage just seems to grow over use and I'm not sure > where to look > for problems. > > Anyone have any experience with this problem? > And/Or advice on what to look at to try to diagnose this problem? > > Thanks for the help, > Scott >
How-To configure Tomcat4.0 with Apache to serve servlets/jsp request?
Hi All, How-To configure Tomcat4.0 with Apache to serve servlets/jsp request? I m not yet successful in doing so. Till now i using the port 8080 to run my examples. Let me know if there is any documentation available to help configure tomcat4 with apache. take care all...
Get Server IP in a JSP
Hi all, I know this isn't really a question about Tomcat, but I figured that since Tomcat is all about Servlets and JSP's someone may be able to answer my question. Is there a way to query the server for it's IP address within and JSP or Servlet? This would be on a Windows machine. If there is can that IP address be written into a URL Rewrite? I'm writing an Equipment management system for work and it is all written in JSP. My problem is that the machine I'm using as my Tomcat server is my Workstation. I'd like to move it to a dedicated machine, but our Workstations do not have DNS, so typing in the machine mane does not work. I have to hard code in my IP address in order for the system to function. The problem with that is that we have Dynamic IP addresses. Mine hasn't changed in a long time, but it could and if it does the whole system won't work. Could anyone offer a suggestion to my IP address problem? Thanks, Dave ___ Send a cool gift with your E-Card http://www.bluemountain.com/giftcenter/
Re: Re: Tomcat crashes simultaneous more connection above 990+
Hi folks, coincidentally I am also having problems with large number of concurrent connections to Tomcat getting errors when we try and connect many clients concurrently to Tomcat. Does anyone have experience of this sort of Tomcat usage or should we be looking at a different servlet container for heavy loads. The setup is as follows Tomcat 3.2.2. on WinNT SP 6 running as a standalone servlet container. Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0-C) Java HotSpot(TM) Client VM (build 1.3.0-C, mixed mode) We have a test environment where a number (2-4) of other machines, with multi-threaded clients (30-1000 threads) bombard the servlet in an effort to test the servlet performance. This leads to a number of problems 1) First of all the mutli-threaded test clients (also written in Java) occasionally throw a NoClassDefFoundError when the following line of code is executed PrintWriter out = new PrintWriter(conn.getOutputStream()); The class that is not found is a Socket class (sorry I don't have the trace at the moment) is not found. This happens when the number of threads on the client is high (c. 1000). Obviously it is not a Tomcat problem so I shouldn't even mention it. It is easily worked around by catching for the error and retrying. It looks slightly similar to a problem in JKD 1.2 where the Calender class would load a ResourceBundle containing Locale info (in particular Date format info) and would report a MissingResourceBundle exception occasionally with a high number of threads creating Calenders simultaneously. A chain of resources are created and loaded into a HashTable during a call to load the resource, but some of the resources may be garbage collected during recursive calls to ResourceBundle.getObject() resulting in a MissingResourceException. Since garbage collection is not very frequent the chances of this occurring during a resource access are quite low. I only mention it since it has some surface similarities with my problem. For more info look here http://developer.java.sun.com/developer/bugParade/bugs/4335714.html 2) The second problem may be an actual Tomcat problem. It is caused by the same line of code and is an IOException saying that the connection has been refused. Even when we increase various parameters in the server.xml file - to ensure that Tomcat will accept more connections it does not seem to work. This problem has been demonstrated to be independent of out servlet and appears when accessing a resource such as a JSP file. Again this is not a critical problem since we can catch the exception and retry the connection but it is puzzling as to why the high backlog figure doesn't ensure that the socket connection attempts are not queued. Again sorry that I don't have a trace to hand at the moment. 3) We have more serious problems on the Tomcat side, after some while (a couple of hours) with a high number (1000 -1500) of clients continuously connecting we get errors in the tomcat logs "2001-08-07 09:33:47 - Ctx( /certresolver ): IOException in: R( /certresolver+ /certs + null) socket write error (code=10055)" A quick search for code=10055 reveals it to be an error code thrown by winsock, however it covers a couple of different situations including trying to increase the timeout on a socket. The one that appears most appropriate to this problem is a bug report at sun http://developer.java.sun.com/developer/bugParade/bugs/4474929.html "Embedded in the exception's message string is code 10055. Under Win32, this error is WSAENOBUFS which means the TCP/IP stack has temporarily run out of buffer space and cannot complete the write. Microsoft has verified this as a bug in the WinSock TCP/IP stack (see the MSDN article ID: Q201213). This would be a recoverable error if not for the way the Java native code handles the error. The recovery would simply be to wait for the stack buffers to empty and try sending the same data again at a later time." It could possibly be related to this error but without more information in the exception we can't tell. Has anyone ever experienced something like this? 4) The final problem is that Tomcat reports is an OutOfMemoryException after continuous usage with a high number of clients. Increasing the memory available to the Tomcat process (using -Xmx500m) does not make the problem go away, the taskmanager reports that the Tomcat process is only using a fraction of its allocated memory. Could this be a related to the previous discussion on upper limits for blocking I/O connections per process Many thanks if you can help in any way. Eamonn >Well I think you're completely nuts :) For 10,000 concurrent requests for >*dynamic* data (or else you'd just be using Apache.. right?), you'd need a >server farm full of fancy equipment, a load-balancing server, and stuff that >even my wildly ignorant speculations can't conceive. > >Besides, I don't thin
can´t get JNDI initial context
Hi all! I'm trying to create an application using JNDI on a tomcat server and I can´t instantiate the Context as needed. Could anyone tell me which class should I use as an Initial Context Factory? env.put(Context.INITIAL_CONTEXT_FACTORY, "org.jnp.interfaces.NamingContextFactory"); Thanks a lot. Juan.
How to I build Tomcat with SSL?
I've looked at the documentation, downloaded the classes and xerces 1.4.1. But am now faced with the actual how do I rebuild Tomcat. I'm very new at this. Thanks for the help, Peter M.
Re: Tips b4 installing Tomcat on IIS5/Win2k ?
One tip, Just make sure that your IIS is fully patched!!! We do not need anymore Code REd servers out there, since I get enough incomming traffic already. Also make sure that your WINNT directory and all of your JSP's and HTML files are not on the same Hard Drive partition. If they are you are more likely to be hacked. On 10 Aug 2001 09:22:47 +0300, [EMAIL PROTECTED] wrote: > Hi all, > > I would like to know if there are special tips&tricks not documented > about installing Tomcat on IIS5 / Win2k; the messages in archive are a > bit puzzling... > > > Thanks, > > -- > Laurian Gridinoc > Chief Web Developer > GRAPEFRUIT DESIGN > -- > e-mail: [EMAIL PROTECTED] > ICQ: 73831683 > mobile: +40 95 304379 > voice/fax: (032) 233068 (Romania) > voice/fax: (646) 349-2916 (United States) > voice/fax: (0845) 127-5996 (UK) > web: www.grapefruitdesign.com > -- > ___ Send a cool gift with your E-Card http://www.bluemountain.com/giftcenter/
Antwort: Re: Antwort: Re: Newbie: Apache Tomcat mod_jk Virtual Hosts
Thanks for your fast and information-rich answer ;>) I will consider all your advice but at the moment our system is up and running and I will not touch it. But for debbuging in the future your comments will be very important take care stefan Jan Labanowski An: [EMAIL PROTECTED] <[EMAIL PROTECTED]>Kopie: Jan Labanowski <[EMAIL PROTECTED]> Thema: Re: Antwort: Re: Newbie: Apache Tomcat mod_jk Virtual Hosts 13.08.01 14:05 Bitte antworten an tomcat-user On Mon, 13 Aug 2001 [EMAIL PROTECTED] wrote: > > Hi Jan, > > I 've got an additional question. > > You said, that after implementing virtual host in apache you do not need to > specify them in the tomcat apache is connecting to. > Wouldn't your example contexts be mapped to any single virtual host > specified in apache? Virtual host is resolved at the time when connection is being made between the Web browser and Web server. Only at this moment the Web server knows the IP address, Host name, and the port to which the connection was made. If you want particular virtual host to access particular context in Tomcat, you need to put all the instructions (found in mod_jk.conf) within the block of your virtual host in the httpd.conf file, and do not put those instructions outside the block. I mean all the instructions, beside maybe LoadModule jk_module libexec/mod_jk.so which should be put BEFORE LoadModule rewrite_module The directives: JkWorkersFile , JkLogFile , JkLogLevel , Alias , , JkMount , JkMount should be put inside the VirtualHost block, and, unfortunately, the simple Include mod_jk.conf at the end of httpd.conf will not work. You have to edit the httpd.conf manually. The stuff which you put outside blocks is available to all virtual hosts defined in httpd.conf > > The only way we could get rid of that behaviour was , to enclose the > contexts in server.xml > with the appropriate virtual host tags. This may have worked (I did not try) for some reasons since some information about the host is passed from Apache to Tomcat with the request in header lines, but it would only work for contexts which are not automatically deployed in TOMCAT_HOME/webapps directory and only for certain types of virtual hosts (read documentation on virtual hosts on www.apache.org to see that there are many ways in which virtual hosts can be specified). Moreover, you can start serveral tomcats and attach them to different server.xml/workers.properties with different connector port, and each of your VirtualHosts can talk to its own tomcat. > > > > > Jan > Labanowski An: [EMAIL PROTECTED] > <[EMAIL PROTECTED]>Kopie: Jan Labanowski <[EMAIL PROTECTED]> > Thema: Re: Newbie: Apache Tomcat mod_jk Virtual Hosts > 13.08.01 > 03:59 > Bitte > antworten an > tomcat-user > > > > > > > On Sun, 12 Aug 2001 [EMAIL PROTECTED] wrote: > > > So would you say that this entry in the server.xml is unnecessary: > > > > server.xml: > > > > > > > > > > docBase="/home/vs04025/jspwebapps" /> > > > crossContext="false" > > > debug="0" > > > reloadable="true" > > > > > > > > > > > > > Again... Without knowing what you want to do, it is hard to advise. > The if for setting virtual hosts in Tomcat. > You say, you want to connect Tomcat to Apache. > Then you should do virtual hosts in Apache, not in Tomcat. > In Tomcat server.xml, you
RE: Growing Memory
You could try one of the profiling tools out there (we use a very old version of OptimizeIt) to spot where the memory is going and how it got there. A few things that could be your problem, though: 1. You are putting very large objects into sessions and your sessions have long or no expiration times 2. You have an object with a static variable that you keep adding to (map, list, set, etc) and aren't ever clearing 3. You have some form of buffered IO where the buffer isn't being flushed. Realize that these are the end causes of your memory leak. You might be using some library (like JDBC drivers) that could cause one or more of these issues if they are miss configured. If its possible, I would suggest that you try using your servlets one at a time and spot which servlet is causing the memory to go up. Randy > -Original Message- > From: Scott Weaver [mailto:[EMAIL PROTECTED]] > Sent: Monday, August 13, 2001 9:00 AM > To: [EMAIL PROTECTED] > Subject: Growing Memory > > > > I've been using Tomcat with IIS 5.0 on a dual processor > machine running > Windows 2000. > > The memory usage just seems to grow over use and I'm not sure > where to look > for problems. > > Anyone have any experience with this problem? > And/Or advice on what to look at to try to diagnose this problem? > > Thanks for the help, > Scott >
Growing Memory
I've been using Tomcat with IIS 5.0 on a dual processor machine running Windows 2000. The memory usage just seems to grow over use and I'm not sure where to look for problems. Anyone have any experience with this problem? And/Or advice on what to look at to try to diagnose this problem? Thanks for the help, Scott