Multiple Instances of Tomcat as a Service

2003-01-03 Thread Jason Chambers
I am running multiple JVMs of Tomcat using the CATALINA_BASE environment variables. Currently, the only way I know of to start these is with the start batch files. Does anyone know of a way to start multiple instancs of tomcat as services? Jason -- To unsubscribe, e-mail: mailto:[EMAIL

RE: Memory Usage and Garbage Collection

2003-01-03 Thread Andreas Probst
Hi Craig, please see intermixed. On 2 Jan 2003 at 18:18, Craig R. McClanahan wrote: Instances can be garbage collected IF AND ONLY IF there are no live references to that object in a static/instance/local variable of some other object that is also in memory. Only instances that are no

Duplicate servlet invocation on a single request

2003-01-03 Thread hacking bear
Hello, I get this interesting behavior. I have HTML forms which posts to servlets, in the order like form1.jsp --post- MyServlet1 --redirect- form2.jsp --post- MyServlet2 --redirect- form1.jsp Each servlet looks like following: class MyServletX extends HttpServlet { // complete re-entrant,

RE: can tomcat do dynamic virtual hosts?

2003-01-03 Thread Turner, John
Fairly soon here, as well. Definitely by mid-year. It will be a chore, though. We have a lot of sites (one site = one client = one app), so planning the changeover is critical to avoid big problems. John -Original Message- From: Noel J. Bergman [mailto:[EMAIL PROTECTED]] Sent:

RE: Multiple Instances of Tomcat as a Service

2003-01-03 Thread Turner, John
Not sure what you mean, but I have a start|stop script for each instance of Tomcat. The scripts aren't much, just a call to Tomcat's startup for start, and a call to Tomcat's shutdown along with a cleanout of the work directory for stop. Then I have a start|stop superscript that can call all of

RE: Memory Usage and Garbage Collection

2003-01-03 Thread Saurabh Arora
Just wanted to know, does the current implementation of tomcat 4.1.18 also has the same problem of keeping the jsp's in memory. or it was only present in 4.0.4 saurabh [EMAIL PROTECTED] 01/03/03 02:26PM Hi Craig, please see intermixed. On 2 Jan 2003 at 18:18, Craig R. McClanahan wrote:

Re: Parse error in application web.xml

2003-01-03 Thread Keshava Murthy
Hi, I have xercesImpl.jar and xmlParserAPIs.jar files in E:\Tomcat 4.1\common\endorsed directory and followed the instruction by Jan-Michael and I am still getting the exception. I had earlier integrated tomcat 4.1.18 with Apache 2.0.43. and it was working fine and a few days back I started

JSP help: A bit off topic

2003-01-03 Thread Raj
Hi, This doesn't exactly relate to Tomcat, but it is a general JSP query. You see, I am using a set of Java classes, packaged as CTG (CICS Transaction Gateway) provided by IBM. My problem is, I am able to instantiate a CTG object inside the JSP. For example, in the JSP, if I write html

RE: JSP help: A bit off topic

2003-01-03 Thread Laxmikanth M.S.
I don't see useBean Tag if u want to use a class use UseBean and call the methos using the bean... -Original Message- From: Raj [SMTP:[EMAIL PROTECTED]] Sent: Friday, January 03, 2003 3:42 PM To: Tomcat Users List Subject: JSP help: A bit off topic Hi, This doesn't

Re: Two instances of servlet gets created

2003-01-03 Thread Mohit Garg
In my case if the request comes from within the same context, it works fine and does not creates two instances. But if I have another application deployed in different context and sending a request to my servlet, then, there is new instance of servlet gets created. I tried with one example,

ManagedBean is not found with Ajp13Connector

2003-01-03 Thread Ben Jessel
Hi, I've been suffering with trying to configure mod_jk + apache 1.3 + tomcat 1.4.18 for a while. I've managed to get to a stage where I have a workers.properties, and an auto-created configuration for apache. However, I'm getting an error with this line of my server.xml Connector

Tomcat Crash

2003-01-03 Thread Dheeraj Anand
Hi All, I am running tomcat 3.2.4 and jdk 1.3 on windows advanced server 2000. My tomcat is suddenly getting crashed. What could be the reasons and how to fix this? I would like to highlight that we are also running a console based java application that is communicating to com port using Modem

Re: JK2/tomcat 4.1.18 - broken pipe problem

2003-01-03 Thread Jesper Birch
Thx, Bill! But how do I get rid of them in my catalina.out log file ?! Should I set file logging in the worker2.properties ?! jk2.properties ?! Something :-) /Jesper Birch The most common reason for this is that the user has hit the stop button in the browser before the page has been fully

Re: ManagedBean is not found with Ajp13Connector

2003-01-03 Thread Ben Jessel
It's o.k I found the solution. Don't use AJP and JMX together. I guess they put in JMX support and didn't want to support the old Ajp13Connector. Use coyote instead. Having said that, that's as far as i've got... - Original Message - From: Ben Jessel [EMAIL PROTECTED] To: Tomcat Users

RE: Release of memory

2003-01-03 Thread Øyvind Hvamstad
-Original Message- From: news [mailto:[EMAIL PROTECTED]] On Behalf Of Bill Barker If you search http://nagoya.apache.org/bugzilla/buglist.cgi?product=fop you will find several reports of memory leaks using fop. Your best bet is to take it up on the fop-users list. I did. I got no

Help with Tomcat on HP-UX 10.20

2003-01-03 Thread John Clark
I have spent some time looking at the FAQs, archives, etc. but cannot find the information I need, can anyone help. I have an intranet application (using JSP) that currently runs using Oracle 9i (Apache built in) on Linux and using Oracle 8 and Tomcat on NT/2000. I now want to use it with Oracle

RE: Memory Usage and Garbage Collection

2003-01-03 Thread Shapira, Yoav
Hi, There's clearly some misconceptions on the topic of garbage collection ;) These questions come up very often it seems, on this list and others. Please consider the following service() or doGet() or so of a servlet: public void service(ServletRequest request, ServletResponse response)

RE: ManagedBean is not found with Ajp13Connector

2003-01-03 Thread Turner, John
Yep, that's the solution. If you have any more problems, post back to the list. John -Original Message- From: Ben Jessel [mailto:[EMAIL PROTECTED]] Sent: Friday, January 03, 2003 7:35 AM To: Tomcat Users List; Ben Jessel Subject: Re: ManagedBean is not found with Ajp13Connector

RE: Release of memory

2003-01-03 Thread Shapira, Yoav
Hi, However, what does tomcat do after the service method returns? The Servlet interface has a destroy method, is it used? Why doesn't Tomcat release the servlet instance? Can anyone explain the reason? The servlet container is free to destroy servlets and JSPs at will. Tomcat does not currently

Re: Tomcat Crash

2003-01-03 Thread rsequeira
Did you look at the logs. And when you say crashed, does it mean it stops serving requests or does it shutdown? If you provide some log output, folks out here could shed some light. RS

RE: can tomcat do dynamic virtual hosts?

2003-01-03 Thread Turner, John
-Original Message- From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 02, 2003 2:22 PM To: Tomcat Users List Subject: RE: can tomcat do dynamic virtual hosts? In principle, it would be pretty straightforward to extend the manager webapp to do things

RE: JK2/tomcat 4.1.18 - broken pipe problem

2003-01-03 Thread Venkat Reddy Valluri
I thought this could never be a problem(user htiing stop button), as I alreday mailed, I got it solved by relpacing sun jvm with ibm jvm, But I got it on redhat linux, but you are on solaris right, So what I am thinking is to think this problem in different dimension, This is just my

RE: JSP help: A bit off topic

2003-01-03 Thread Mehdi . Nejad
Hi, You should not *have* to use a useBean in order to instantiate a class. I did not see in the example you posted, where you actually created an Object.. your code was : myClass myObject; myObject.getSomeString() /* This will actually contain all the code in JSP, just to avoid the JSP

RE: Memory Usage and Garbage Collection

2003-01-03 Thread Andreas Probst
Hi thank you, your reply calms me down again. I guess I got a bit confused by the preceding discussion. Andreas On 3 Jan 2003 at 8:59, Shapira, Yoav wrote: Hi, There's clearly some misconceptions on the topic of garbage collection ;) These questions come up very often it seems, on this

Tomcat 4.1.18 Admin Page

2003-01-03 Thread karthikeyan.balasubramanian
Hi, How do i manage the admin section that comes along with tomcat. I can see the page when i type http://localhost:8080 It is password protected, by defualt i cant access it seems. How do i set new password and what are the things that can be achieved through this interface. Have

WAP?

2003-01-03 Thread Vano Beridze
Hello I would like to serve WAP clients from my existing WEB App Could you please provide me with the links to start? I'm sorry for posting this question but I could not find any resource myself :( Thanks in advance -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional

RPM release of 4.1.18 (full) ?

2003-01-03 Thread Kevin HaleBoyes
Is there a plan to release Tomcat 4.1.18 (full) in RPM format? What is involved in producing the RPM? Thanks, Kevin. __ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com -- To unsubscribe, e-mail:

*** deadlock in _green_threads_libc_block: runnable_queue is empty

2003-01-03 Thread Tim Clayton
Hello everybody running on Unixware 8 we have had this occur at one of our clients. tomcat is 3.2.4 running java 1.2.2 the jsp and java is calling c routines which are crashing and the last entry in the tomcat log is as follows: *** deadlock in _green_threads_libc_block: runnable_queue is

Start Tomcat

2003-01-03 Thread ahmedabad
hello I get the following error.I used RH Linux 8.0 and tomcat 3.2. [root@wheel jakarta-tomcat]# bin/tomcat.sh stop -f conf/server.xml Guessing TOMCAT_HOME from tomcat.sh to bin/.. Setting TOMCAT_HOME to bin/.. Using classpath: .:bin/../lib/ant.jar:bin/../lib/jasper.jar:bin/../lib/servlet.j

Re: Tomcat 4.1.18 Admin Page

2003-01-03 Thread Jeanfrancois Arcand
If you click on the link you just provided, read in the middle of the page :-), you will read : NOTE: For security reasons, using the administration webapp is restricted to users with role admin. The manager webapp is restricted to users with role manager. Users are defined in

SSL problems

2003-01-03 Thread Bill
Hello! I'm having some problems installing a temporary Verisign cert using the SSL-Howto in the Tomcat docs. I'm getting a: keytool error: java.lang.Exception: Failed to establish chain from reply I found one post in the archives that had no reply. I also found some posts to non-jakarta

app won't restart

2003-01-03 Thread Erik Price
Hello, I was hoping someone could take a look at my web.xml file and my log output and possibly provide a hint as to what I can do to fix my webapp so that Tomcat will start it. Thanks in advance, Erik Here's my web.xml: ?xml version=1.0 encoding=ISO-8859-1? !DOCTYPE web-app PUBLIC

Re: app won't restart

2003-01-03 Thread Mehdi . Nejad
shouldn't the Context ... tag be in the server.xml ? Mehdi -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]

Re: NTLM / Connection: Keep-Alive / HTTP 1.0

2003-01-03 Thread Endre Stølsvik
On Thu, 2 Jan 2003, Bill Barker wrote: | There is a problem with HTTP/1.0 Keep-Alive in 4.1.12. See | http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12783 for more | information. If this looks like your problem, then upgrading to 4.1.18 | should fix it. Thanks a lot. I am actually using

Re: Help with Tomcat on HP-UX 10.20

2003-01-03 Thread Jeanfrancois Arcand
John Clark wrote: I have spent some time looking at the FAQs, archives, etc. but cannot find the information I need, can anyone help. I have an intranet application (using JSP) that currently runs using Oracle 9i (Apache built in) on Linux and using Oracle 8 and Tomcat on NT/2000. I now want

RES: JasperException

2003-01-03 Thread Denise Mangano
Well that is strange, because I do not use arrays anywhere in my project ?:-/ I was trying to use the transactionid as a String, but have since changed that to type long. Yet the problem did not go away... However, I considered the problem that I was having with the naming conventions of

Tomcat 4.1.18 + apache SSL Problems

2003-01-03 Thread Alexander Wallace
Hello there... I have a web app that works perfect under tomcat 4.1.12. It works partially ok with 4.1.18, everything under http works fine, but if i call something using https, i get the following error: An error occured while loading https://my.server.com/myapp/secure/activation.jsp: Could

RE: reference to external error-page

2003-01-03 Thread Michael Mendelson
Thanks Kris, This works fine if the error page is another Tomcat context, but I was wondering if there was an elegant way to set this up in the httpd.conf or server.xml, without the need for an error-handling jsp to do the rerouting. I will probably just go that route, since it won't be

RE: Two instances of servlet gets created

2003-01-03 Thread Cox, Charlie
-Original Message- From: Mohit Garg [mailto:[EMAIL PROTECTED]] Sent: Friday, January 03, 2003 5:42 AM To: Tomcat Users List Subject: Re: Two instances of servlet gets created In my case if the request comes from within the same context, it works fine and does not creates two

RE: reference to external error-page

2003-01-03 Thread Kris Schneider
If you just want custom error pages for Apache, check out the following snippet from httpd.conf: # Customizable error responses come in three flavors: # 1) plain text 2) local redirects 3) external redirects # # Some examples: #ErrorDocument 500 The server made a boo boo. #ErrorDocument 404

HELP PLEASE ON TOMCAT 4.x + APACHE 2.0.43 + mod_jk2-2.0.43.dll

2003-01-03 Thread Krishna_R . _Nagaraj
All, Can any one help me by providing a step by step procedure to configure Apache 2.0.43 with Tomcat 4.0.18 using jk2. I have used jk previously but I have problems in configuring jk2. How do I modify my files to make it work with jk2. Thanks a lot for the help I have the these entries for

NEW JasperException

2003-01-03 Thread Denise Mangano
Fix one problem only to be burdened with another : ( While this did get rid of the JasperException I was previously getting about the String, I now get: org.apache.jasper.JasperException: For input string: undefined. I am assuming this is due to the variables transactionTotal and transactionId,

RE: Help with Tomcat on HP-UX 10.20

2003-01-03 Thread John Clark
Thanks for your help. As you probably realised, the JDK version from HP is actually 1.1.8.07. I have now downloaded Tomcat 3.3.1. As root user, I do not get any errors when I run startup.sh (but I cannot connect), but get the following error when I run shutdown.sh: # ./shutdown.sh Using

RE: Help with Tomcat on HP-UX 10.20 [RBS2003010300005612]

2003-01-03 Thread techassistance
Ahoy there! This is an automated response, to let you know that we have received your query and will answer your email as soon as possible. We know you'd like to get back to playing our state-of-the-art online games. We'd therefore like to assure you that we are determined to keep our service at

RE: Multiple Instances of Tomcat as a Service

2003-01-03 Thread Jacob Kjome
I think he means something like an NT service. Just follow the instructions here: http://www.mattkelli.com/tech/tomcat/ntservice.htm However, add on thing: Dcatalina.base=[your custom CATALINA_BASE path here] Also, make sure to name the service differently than one you may already have

RE: NEW JasperException

2003-01-03 Thread Noel J. Bergman
Denise, It would really help to see the bean class, with just method signatures, not method bodies, and the form. At least you aren't getting exjasperated, yet. ;-) --- Noel -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL

RE: HELP PLEASE ON TOMCAT 4.x + APACHE 2.0.43 + mod_jk2-2.0.43.dll

2003-01-03 Thread Turner, John
Those files have nothing to do with JK2. All of those files and settings are for JK. JK and JK2 are completely separate, and have different setup requirements on the Apache side. The Listener tags you listed in server.xml will only generate JK configuration information, they serve no purpose

Sessions for axis and tomcat.

2003-01-03 Thread Eriam Schaffter
Hi lists .. I was wondering if sessions created with axis this way: MessageContext msgContext = MessageContext.getCurrentContext(); Session session = msgContext.getSession(); And sessions from tomcat (HttpSession) are sharing the same datas. For example if I add an object in the

JSP Help

2003-01-03 Thread Elif Akten
Hi, I'am new to Apache and to this group.. I just install apache and tomcat ..there is something wrong with JSP files..for example Form's don't post..can anyone have idea? _ MSN 8 with e-mail virus protection service: 2 months FREE*

RE: JSP Help

2003-01-03 Thread Turner, John
Could be just about anything. You will have to be much more specific for anyone to help you quickly. Be as specific as possible, explain what you have, what you hav done, and what the error message is. John -Original Message- From: Elif Akten [mailto:[EMAIL PROTECTED]] Sent:

RES: NEW JasperException

2003-01-03 Thread Denise Mangano
Noel, Believe it or not, as frustrated as I get, I am seriously enjoying this... Its all new to me, and I really am learning a lot (thanks to everyone on this list of course)!! Now also believe this ( or not ;) ). My problem just kind of went away I cleaned up some code (mostly html),

Re: Parse error in application web.xml

2003-01-03 Thread Jacob Kjome
Sorry, I failed to look at the original question. I just noticed that you were talking about putting stuff in your classpath which, obviously, will have no effect. The trouble you are having is not related to any particular version of Xercesand if you are using j2sdk14.x, you don't need

RE: NEW JasperException

2003-01-03 Thread Turner, John
Keep on keepin' on! :) John -Original Message- From: Denise Mangano [mailto:[EMAIL PROTECTED]] Sent: Friday, January 03, 2003 12:48 PM To: 'Tomcat Users List' Subject: RES: NEW JasperException Noel, Believe it or not, as frustrated as I get, I am seriously enjoying

Re: Two instances of servlet gets created

2003-01-03 Thread Jacob Kjome
New instances of any servlet will be created for as many times as the servlet is named differently. For instance, all these refer to the same servlet, but each will be a separate instance servlet servlet-nameMyServletName/servlet-name

Re: SSL problems

2003-01-03 Thread Joseph Stephen
I did post a reply to a similar question sometime back. Anyway here its is again The reason you see the error is because the the Java key store does not contain the CA root certificate. Simply put the keystore does not recognize the certifying authority. To see the availble CA root in you java

RE: JSP Help

2003-01-03 Thread Elif Akten
I installed Apache tomcat 4.0 and copied my webapplication to webapps/Root and all jar and classes to WEB-INF directory..and also comman directory I also copied ApacheModuleJServ.dll to Apache/modules directory.. but Forms don't post and Activex objects doesn't work.. maybe some thing I missed

RE: reference to external error-page

2003-01-03 Thread Michael Mendelson
#ErrorDocument 404 /missing.html Right, I've got something like this in httpd.conf. But what I have found is that if page handling is directed to Tomcat (using JkMount), these directives are not honored. In other words, if my mounting looks like: ErrorDocument 404 /missing.html JkMount

RE: Two instances of servlet gets created

2003-01-03 Thread Jacob Kjome
Charlie is right. In the response I gave to this thread, I was assuming your were talking about servlets in the same context. Sorry, didn't read carefully. Anyway, my comments still apply when talking about as single context. Jake At 12:03 PM 1/3/2003 -0500, you wrote: -Original

Re: JDBCRealm

2003-01-03 Thread Rob Abernethy IV
Does Tomcat process the JDBC Realm on start up, or only when a web app asks for authentication? I seem to recall that I was unable to start Tomcat if the realm was not configured correctly. Also, I see a postgres process (see below) which indicates a connection to the database. The process

web.xml format

2003-01-03 Thread Erik Price
Just a simple question -- if I want to use an ampersand (or other character that is significant in XML), do I need to escape it with an entity in the web.xml ? For instance, is this valid: context-param param-namedbConnectUrl/param-name param-value

RE: Release of memory

2003-01-03 Thread Craig R. McClanahan
On Fri, 3 Jan 2003, Øyvind Hvamstad wrote: However, what does tomcat do after the service method returns? The Servlet interface has a destroy method, is it used? Why doesn't Tomcat release the servlet instance? Can anyone explain the reason? Because the theory of a servlet container is

Re: SSL problems

2003-01-03 Thread Bill
Joseph I did install the root CA's cert before attempting to install the site cert. I apologize for not explicitly saying it, its a step in the how-to so I assumed it to be understood. On Fri, 2003-01-03 at 17:56, Joseph Stephen wrote: I did post a reply to a similar question sometime back.

RE: Easy question - Java Beans

2003-01-03 Thread Denise Mangano
Noel. How would your original select look for the states? I have a variable in the bean for state which is the value (i.e. NY) but not one for the state name (i.e. New York). My select is basic: select name=state option value=NYNew York/option /select In my bean I have private String

RE: JSP Help

2003-01-03 Thread Turner, John
Please be more specific. What is the error message you are getting? It could be as simple as a path problem or it could be something else. Saying don't post doesn't tell us what is happening. Please describe your Apache version, your configuration, etc. I know it seems like a lot, but if we

RE: Easy question - Java Beans

2003-01-03 Thread Wagoner, Mark
If I may jump in...I like to use the Iterator pattern for building select lists. While this may not be the best application for a situation where the list of values is predetermined (such as with states), it works well when reading from a variable list of values such as from a database. In my

Re: WAP?

2003-01-03 Thread jon . wingfield
Just googled serving wml from tomcat and this article was one of the first: http://www.javaworld.com/javaworld/javatips/jw-javatip123.html HTH, Jon Quoting Vano Beridze [EMAIL PROTECTED]: Hello I would like to serve WAP clients from my existing WEB App Could you please provide me with

Re: web.xml format

2003-01-03 Thread Jacob Kjome
Everything should be just fine with your current setup. Are you noticing problems with it? Jake At 01:23 PM 1/3/2003 -0500, you wrote: Just a simple question -- if I want to use an ampersand (or other character that is significant in XML), do I need to escape it with an entity in the web.xml

RE: Memory Usage and Garbage Collection

2003-01-03 Thread Craig R. McClanahan
On Fri, 3 Jan 2003, Andreas Probst wrote: Hi Craig, please see intermixed. On 2 Jan 2003 at 18:18, Craig R. McClanahan wrote: Instances can be garbage collected IF AND ONLY IF there are no live references to that object in a static/instance/local variable of some other object that

RE: reference to external error-page

2003-01-03 Thread Kris Schneider
I really haven't spent much time integrating Apache and TC, but don't you need an ajp13 tacked to the end of JkMount? Assuming the JkMount stuff is okay, what happens if you change the Host tag in TC's server.xml to: Host errorReportValveClass= ... AFAICT, the default error reporter

Re: web.xml format

2003-01-03 Thread Erik Price
No, it was just a curious question. Especially about the whitespace around the dbConnectUrl's param-value. But I am going to just test that out right now myself. Erik Jacob Kjome wrote: Everything should be just fine with your current setup. Are you noticing problems with it? Jake At

RE: NEW JasperException

2003-01-03 Thread Noel J. Bergman
Now also believe this ( or not ;) ). My problem just kind of went away I believe it. :-) In any event, when debugging problems of this nature, where spelling and case matter, it really is important to see the method signatures and the JSP page (or at least the form and the property

RE: Memory Usage and Garbage Collection

2003-01-03 Thread Craig R. McClanahan
On Fri, 3 Jan 2003, Saurabh Arora wrote: Date: Fri, 03 Jan 2003 02:33:17 -0700 From: Saurabh Arora [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: RE: Memory Usage and Garbage Collection Just wanted to know, does the current implementation

RE: JSP help: A bit off topic

2003-01-03 Thread Craig R. McClanahan
myObject.getSomeString() /* This will actually contain all the code in JSP, just to avoid the JSP page cluttered with Java Code */ If you expect getSomeString() to return *JSP* code (including tags and scriptlets and all), you can't do that. The JSP code is compiled the first time you

servletContext().getInitParameter() not working as expected

2003-01-03 Thread Erik Price
Hi, It seems that when I call getServletContext().getInitParameter(), it works sometimes but not others. That is to say, I've stored my JDBC connection URL and the string containing the JDBC driver name in context-param entries. But I've created a test context-param entry containing nothing

Re: web.xml format

2003-01-03 Thread Craig R. McClanahan
On Fri, 3 Jan 2003, Erik Price wrote: Date: Fri, 03 Jan 2003 13:23:46 -0500 From: Erik Price [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: web.xml format Just a simple question -- if I want to use an ampersand (or other character that is

Re: Duplicate servlet invocation on a single request

2003-01-03 Thread hacking bear
Hi, I desperately need help. Can someone help me? Thanks. I copy the log output here. As you can see, thread 3 and 5 are handling the same addRef.do request for the same session. [DEBUG] (Thread-3) TransactionFilter: session 08A98E9D18703D2F3B44E81975F4B387 transaction

RE: Memory Usage and Garbage Collection

2003-01-03 Thread Andreas Probst
Hi Craig, thank you very much for this complete explanation. That's perfectly understandable and the GC-behaviour which I had expected before. I must have understood something wrong in this thread's discussion, which went on yesterday. Again, thank you very much for your helpful responses

servlet path

2003-01-03 Thread Vladimer Shioshvili
for some reason i remember seeing somewhere that i can painlessly change how servlets are accessed. by this i mean removing /servlet for URI path and using xx.com/ instead of xx.com/servlet/. any help appreciated, Vlad Vladimer Shioshvili QRC Division of Macro

RE: Easy question - Java Beans

2003-01-03 Thread Noel J. Bergman
Denise, How would your original select look for the states? Not sure what you are asking, but I'll take a stab, and you can come back and correct me. The NY is all you need to keep in the bean. I assume that somewhere you have a loop that emits the option tags. When the value you are about

RE: Easy question - Java Beans

2003-01-03 Thread Turner, John
Which you can also use for validation, for example the value of Select a State could be or XX or something. Then you can check to see if they selected a state without having to worry about going through all 50 states checking to see if there was a match. John -Original Message-

Re: servlet path

2003-01-03 Thread Jacob Kjome
Look into servlet-mappng element in the web.xml. If you are not already familiar with this, you really need a good book like Java Servlet Programming from Jason Hunter. This is pretty basic stuff. Jake At 03:06 PM 1/3/2003 -0500, you wrote: for some reason i remember seeing somewhere that

Why a JNDI URL from getServletConfig().getResource() in Tomcat

2003-01-03 Thread Trevor Porter
I'm trying to read in a configuration file I have stored in my /WEB-INF directory from my servlet init() using getServletConfig().getResource(...) as follows: public void init() throws ServletException { ... String config = getServletConfig().getInitParameter(config); URL url =

Re: servlet path

2003-01-03 Thread Andreas Probst
Hi Vladimer, look for servlet mapping in the archive and/or in the servlet spec. In web.xml you can put a servlet mapping like servlet-mapping servlet-namewebdav/servlet-name url-pattern//url-pattern /servlet-mapping which routs every request to the servlet, which's name is webdav.

Re: Why a JNDI URL from getServletConfig().getResource() in Tomcat

2003-01-03 Thread Craig R. McClanahan
On Fri, 3 Jan 2003, Trevor Porter wrote: Date: Fri, 03 Jan 2003 12:33:56 -0800 From: Trevor Porter [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Why a JNDI URL from getServletConfig().getResource() in Tomcat I'm trying to read in a

RE: can tomcat do dynamic virtual hosts?

2003-01-03 Thread Turner, John
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Friday, January 03, 2003 3:42 PM To: Tomcat Users List Subject: RE: can tomcat do dynamic virtual hosts? webapps are like document roots. That's my point. The only way you can do a JkMount is by giving a

How to set up default web app?

2003-01-03 Thread Anastasios Angelidis
When browsing to http://localhost:8080, Tomcat servs the default tomcat web app What would I have to do to setup a container on port 82 and have it server my web app as default thanks... -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL

Re: Why a JNDI URL from getServletConfig().getResource() in Tomcat

2003-01-03 Thread Jacob Kjome
Using getServletContext().getResourceAsStream(/WEB-INF/test.xml) should work just fine. I don't see any reason why the inputstream would be empty. I use this technique all the time. Jake At 12:33 PM 1/3/2003 -0800, you wrote: I'm trying to read in a configuration file I have stored in my

RE: How to set up default web app?

2003-01-03 Thread Turner, John
In server.xml change the port that CoyoteConnector is listening on from 8080 to 82. Put your webapp in $CATALINA_HOME/webapps/ROOT. You might want to read the docs. John -Original Message- From: Anastasios Angelidis [mailto:[EMAIL PROTECTED]] Sent: Friday, January 03, 2003 4:23 PM

RE: Duplicate servlet invocation on a single request

2003-01-03 Thread Cox, Charlie
are you sure it is calling your servlet twice? I only see one redirect in the log and I don't see the entering zzz at all as defined in your code sample. This could be that IE sends a HEAD request at the same time as the POST request. Normally the HEAD request is handled by Tomcat, so it wouldn't

Error on browsing Admin Module

2003-01-03 Thread John Menke
on the admin/login.jsp page: javax.servlet.ServletException: Cannot find message resources under key org.apache.struts.action.MESSAGE at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp l.java:633) at

RE: can tomcat do dynamic virtual hosts?

2003-01-03 Thread Noel J. Bergman
John, Same here. One JServ per client. Which is why I am interested in what findings you are seeing so far in your planning. I am thinking that for some of our own sites that are more stable, we will share a tomcat instance, so I am leaning towards workers like: tomcat4-shared

Re: How to set up default web app?

2003-01-03 Thread Anastasios Angelidis
I tried that... I also have a context setup for my web app... Context path=/mywebapp docBase=mywebapp debug=5 reloadable=true crossContext=true Logger className=org.apache.catalina.logger.FileLogger directory=infectedlogs prefix=localhost_infected_log.

RE: Memory Usage and Garbage Collection

2003-01-03 Thread Brandon Cruz
Craig, From what you have been saying... 1)For every single request to a servlet or JSP page, a new instance of that class is created? For example, if there is one JSP page and ten people access that one page over the course of a day, 10 separate instances of the same class are created and will

Re: How to set up default web app?

2003-01-03 Thread Anastasios Angelidis
Not only that it still serving the tomcat index.jsp but the images dont get displayed... I made a back up of the root folder, the I removed all it's content and I put my web app... Anastasios Angelidis wrote: I tried that... I also have a context setup for my web app...

Re: ManagedBean is not found

2003-01-03 Thread John B. Moore
David Orriss Jr wrote: John, Say, don't I know you? ;) Yeah, small world, huh...G John Turner answered this exact same question for me... If you're using Ajp13Connector, comment out (disable) the lines in server.xml having to do with MBeans. Weird, I have two machines I'm

Re: How to set up default web app?

2003-01-03 Thread Anastasios Angelidis
Actually, I solved my problem why still the tomcat indx.jsp was beeing served... It's because it was beeing compiled, but I still have my context problem how will I set this up now? Thanks Anastasios Angelidis wrote: I tried that... I also have a context setup for my web app...

RE: can tomcat do dynamic virtual hosts?

2003-01-03 Thread jks
On Thu, 2 Jan 2003, Turner, John wrote: I think you're overthinking it. Tomcat != Apache. Webapps != Document Roots. webapps are like document roots. That's my point. The only way you can do a JkMount is by giving a worker, and the worker can only only serve from a webapp based on the

Re: Memory Usage and Garbage Collection

2003-01-03 Thread Will Hartung
From: Brandon Cruz [EMAIL PROTECTED] Sent: Friday, January 03, 2003 2:23 PM Subject: RE: Memory Usage and Garbage Collection 1)For every single request to a servlet or JSP page, a new instance of that class is created? For example, if there is one JSP page and ten people access that one

RE: Memory Usage and Garbage Collection

2003-01-03 Thread Craig R. McClanahan
On Fri, 3 Jan 2003, Brandon Cruz wrote: Date: Fri, 3 Jan 2003 16:23:24 -0600 From: Brandon Cruz [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED], [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: RE: Memory Usage and Garbage Collection Craig, From

RE: Duplicate servlet invocation on a single request

2003-01-03 Thread hacking bear
Thank you for trying! I actually located the error: it is on the client side. I use the button tag with a JavaScript function to submit the form. In form2.jsp, the button has type=submit, after the button is clicked, the javascript function submit the form but IE submit it again since it's a

  1   2   >