Re: Help! Config of multiple hosts and JVM garbage.

2004-02-09 Thread Antonio Fiol Bonnín
Sergio wrote: Hi All! Guys, I need help! My system is Windows 2003 Enterprise Server with Apache 2.0.48 I need Windows for 3rd part application, but because I hate IIS so I am using Apache2(the best!!!). 1)Does somebody can help me with configuration of Tomcat 5.0.18 for multiple hosts? I need to

Configuring a Default Servlet

2004-02-09 Thread Stefan Görling
Hi, I want to have all incomming request forwarded to a default servlet. Depending on the URL the request is forwarded to a JSP-page (too dynamic to use apache mod_rewrite). The problem is that if I define the servlet as: servlet-mapping servlet-namecustom/servlet-name

java startup option trouble

2004-02-09 Thread John-Paul Delaney
Hello List... I have a requirement to startup java with a -noverify option. I've put this is /etc/profile as a JAVA_OPTS value. My probem is on system startup, Tomcat starts ok but the classes that need the -noverify parameter don't work until I login as root, shutdown Tomcat then start it

so many servlets

2004-02-09 Thread geoffj
Hi I have a large project on Tomcat 4.1 standalone. Its servlets (about 100) are in four packages and all in one jar. My problem is trivial I'm sure but I cannot locate a solution. Do I need to specify all the servlets individually? Or can I just do something like servlet

Re: [Repost] Tomcat logging

2004-02-09 Thread Adam Hardy
On 02/09/2004 07:51 AM Marcel Stor wrote: explains the new context descriptors. I still don't quite get it. It says ...which would normally be found in the main server configuration file Well, does this mean I can (have to?) remove all my context descriptions from server.xml and place them

Re: Tomcat Loads Deleted Context?

2004-02-09 Thread Josh Rehman
Remy Maucherat wrote: What I recommend with TC 5 is put your context declarations in /META-INF/context.xml, and use the manager to manage your webapps. If using external contexts, then it's the similar: either use the manager webapp or drop your context file in the right subdir of conf (and

Java(TM) Boutique - The Power of Three - Eclipse, Tomcat, and Struts

2004-02-09 Thread Josh Rehman
This is a really good article about how to integrate tomcat with eclipse (using the sysdeo plugin), as well as some struts information. I found it helpful, and I hope you do, too: http://javaboutique.internet.com/tutorials/three/

RE: [Repost] Tomcat logging

2004-02-09 Thread Marcel Stor
Adam Hardy mailto:[EMAIL PROTECTED] wrote: On 02/09/2004 07:51 AM Marcel Stor wrote: explains the new context descriptors. I still don't quite get it. It says ...which would normally be found in the main server configuration file Well, does this mean I can (have to?) remove all my context

RE: TC 5 production use

2004-02-09 Thread fachhochschule.burkhart
Yoav Shapira wrote: Howdy, I'm using it in production, no issues. But then again I steer clear of the practices that tend to cause issues frequently: I don't redeploy my apps in production (when I ship a new version I do so during our maintenance window and restart the server), I profile

RE: Excel Mime problem

2004-02-09 Thread fachhochschule.burkhart
Hi Pavan, maybe the thing I've done for a style sheet can help you. The style sheet is a JSP file with the ending .jsp. And in it I'm specifying [EMAIL PROTECTED] contentType=text/css % so I can refer to it from any web page by link rel=stylesheet type=text/css href=/path/to/style.jsp because

Tomcat w Java1.5 beta problem

2004-02-09 Thread Shawn
Hello, Under Tomcat 5.0.18 with servlets compiled with 1.5 beta, I get an odd message, and the servlet won't load. When the same servlet is compiled with 1.4.2 it runs fine. The method signature in the following message is correct. There is simple nothing to complain about. Is this a

Configure some variables in an external file

2004-02-09 Thread Michael Lehnen
Hello, I have a problem with tomcat 5. As we had used tomcat 4 with windows we could define some variables (e.g. DB Connection, connection pool, etc.) in an external file. We create an service called tomcat and write the path to this external file as an property of this service. But in Tomcat

Re: Configuring a Default Servlet

2004-02-09 Thread Tim Funk
The defualt servlet is mapped by the following: SRV.11.2 Specification of Mappings A string containing only the / character indicates the default servlet of the application. In this case the servlet path is the request URI minus the context path and the path info is null. So you really want:

Service and Classpath

2004-02-09 Thread Andi Reinbrech
Hi, I have a legacy set of classes (Orbix2000) that read configuration from the classpath. The classpath works fine for /webapps/axis/WEB-INF/classes/emapi.cfg, but it refuses to open licenses.txt. I have managed to get it working by changing setclasspath.bat to include the path of the

Re: so many servlets

2004-02-09 Thread Tim Funk
You could use the invoker. But in reality - with that many servlets all the servlets better be named in a coherent/standard manner. From there - a text editor with regular expressions to create many of the mappings from a file listing should do the trick. (Beyond the scope of this list)

RE: tomcat 5.0.16 running out of resources

2004-02-09 Thread STOCKHOLM, Raymond
set your JAVA_OPTS accordingly to your needs in your startup.* If you need 750 Mbytes, try this : set JAVA_OPTS=-server -Xms750m -Xmx750m -XX:NewRatio=2 -Message d'origine- De : Jake Alley [mailto:[EMAIL PROTECTED] Envoyé : dimanche 8 février 2004 15:23 À : [EMAIL PROTECTED] Objet :

Deployment through Ant causes loss of session-control

2004-02-09 Thread Morten S. Mortensen
When I deploy a WAR-file through Ant, I lose cookie-session-control in IE and Mozilla, but not Opera!!! I have looked at a lot of stuff and finally come to the conclusion, that if I deploy the exact same file with the tomcat-manager interface at e.g. http://localhost:8080//manager/html/,

RE: Deployment through Ant causes loss of session-control

2004-02-09 Thread Morten S. Mortensen
By the way - the effect is identical with both TC 4.1.29 and 5.0.18. Regards, Morten Sabroe Mortensen -Original Message- From: Morten S. Mortensen Sent: 9. februar 2004 13:06 To: [EMAIL PROTECTED] Subject: Deployment through Ant causes loss of session-control When I deploy a

Re: Tomcat 5.0.18 with connector to IIS?

2004-02-09 Thread Daniel Schmitt
We build an jk2 installer you can get at http://www.shiftomat.com/opensource/ It uses the latest binary from Apache (Sep. build) and is tested with IIS 6. (tested means here the example pages are working) Richard Norman wrote: The one on the Apache site has NEVER worked for me except the

Open native console application from servlet (java.net.SocketException: Connection reset by peer: socket write error)

2004-02-09 Thread Veselin Kovacevic
Hi all, We have a servlet based application which open a native console application and read samo output from them. Sometimes we get an error in tomcat logfile but application work ok. What is happen? Here is error. What is mean? 2004-02-09 10:02:26 StandardWrapperValve[default]:

Re: Configuring a Default Servlet

2004-02-09 Thread Stefan Grling
Dear Tim and others, Thank you for the reference. And now for the little twist which I forgot to mention: Before we introduced the default servlet we had urls with normal .jsp:s. We want to run those through the custom dispatcher as well in order to redirect to the proper url For example: A

Re: Tomcat w Java1.5 beta problem

2004-02-09 Thread James Black
Shawn wrote: Under Tomcat 5.0.18 with servlets compiled with 1.5 beta, I get an odd message, and the servlet won't load. When the same servlet is compiled with 1.4.2 it runs fine. I have tried compiling with: javac -source 1.5 -target 1.4 ... ? I get the complaint from both IDEs I use

Re: Configuring a Default Servlet

2004-02-09 Thread Tim Funk
Use filters. They only get applied on the incoming request. In the filter - you can place the logic to perform the extra logic you need or not. -Tim Stefan Grling wrote: Dear Tim and others, Thank you for the reference. And now for the little twist which I forgot to mention: Before we

environment variables

2004-02-09 Thread Marco Sottilaro
Hi , I'm using TomCat + Axis. I have a web service implementation that is composed of: * the main function in the SoapBindingImpl file ; * JNI interface ; * a set of C/C++ API's. The main function calls the methods in the JNI interface and the latter calls some API methods. I have

RE: so many servlets

2004-02-09 Thread George Sexton
While you can use the invoker, other engines don't have an equivalent. If portability is at all important, you need to explicitly name them out. -Original Message- From: geoffj [mailto:[EMAIL PROTECTED] Sent: Monday, February 09, 2004 12:56 AM To: [EMAIL PROTECTED] Subject: so many

RE: java startup option trouble

2004-02-09 Thread Shapira, Yoav
Howdy, If you define JAVA_OPTS in $CATALINA_HOME/bin/catalina.sh they'll always be used. Yoav Shapira Millennium ChemInformatics -Original Message- From: John-Paul Delaney [mailto:[EMAIL PROTECTED] Sent: Monday, February 09, 2004 2:24 AM To: Tomcat Users List Subject: java startup

RE: TC 5 production use

2004-02-09 Thread Shapira, Yoav
Howdy, I see. Do you have a large internal user base then? It doesn't sound like a classic production use server if you're not even using the standard ports. Other people have already replied as to why the above assumption is invalid. We have other things (portals mostly, but also some

RE: root context loaded again under its docbase name

2004-02-09 Thread Shapira, Yoav
Howdy, and this is my context (which is found in META-INF/context.xml): Context path= docBase=gargantus.war cachingAllowed=false reloadable=false Anybody else with the same setup see this? Bug or not bug? snip/ Seems like a bug. What happens if you don't have context.xml at all in your

Re: [Repost] Tomcat logging

2004-02-09 Thread Adam Hardy
On 02/09/2004 10:07 AM Marcel Stor wrote: What are you using to log? The java.utils.logging framework will log to anywhere you define in its configuration. By default, as a file java0.log in the tomcat user's home directory. I know. And if the app is started one would have to a runtime parameter

Tomcat Logs Missing

2004-02-09 Thread Allistair Crossley
Guys, my Tomcat 5.0.18 does not create either of the following catalina.out stdout.txt stderr.txt It does create localhost_webapp_date logs which are specified in my Context My own log4j logging is fine also. Any ideas why Tomcat is not logging the others? I remember 5.0.16 was ok Cheers. ADC

RE: Tomcat w Java1.5 beta problem

2004-02-09 Thread Shapira, Yoav
Howdy, Under Tomcat 5.0.18 with servlets compiled with 1.5 beta, I get an odd message, and the servlet won't load. When the same servlet is compiled with 1.4.2 it runs fine. I suggest rebuilding tomcat with 1.5 beta if you want to run servlets compiled using 1.5 beta. I'm not even sure my

RE: Tomcat Loads Deleted Context?

2004-02-09 Thread Shapira, Yoav
Howdy, Is META-INF/context.xml a standard way to provide a default context in a war? Or is it tomcat specific? It is tomcat-specific. Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary

Re: Tomcat Logs Missing

2004-02-09 Thread Remy Maucherat
Allistair Crossley wrote: Guys, my Tomcat 5.0.18 does not create either of the following catalina.out stdout.txt stderr.txt It does create localhost_webapp_date logs which are specified in my Context My own log4j logging is fine also. Any ideas why Tomcat is not logging the others? I remember

Re: Tomcat w Java1.5 beta problem

2004-02-09 Thread Remy Maucherat
Shapira, Yoav wrote: Howdy, Under Tomcat 5.0.18 with servlets compiled with 1.5 beta, I get an odd message, and the servlet won't load. When the same servlet is compiled with 1.4.2 it runs fine. I suggest rebuilding tomcat with 1.5 beta if you want to run servlets compiled using 1.5 beta. I'm

CLASSPATH

2004-02-09 Thread Andi Reinbrech
I still can't figure this out: when I run TC from startup.bat, the app picks up licenses.txt which is in the CLASSPATH. When I run the service, it ignores it. I have added -Djava.class.path=c:\jakarta-tomcat-5.0.18\common\classes to the service installer but no luck. (BTW, butting it into

RE: Tomcat w Java1.5 beta problem

2004-02-09 Thread Shapira, Yoav
Howdy, Testing has shown it was about 10% faster, and used a little less memory (5% less) for the out of the box Tomcat. Cool ;) Can't wait to test it myself, but (actual, $$$) work will be very busy this week ;) Yoav Shapira This e-mail, including any attachments, is a confidential

RE: Tomcat Logs Missing

2004-02-09 Thread Allistair Crossley
No, my 5.0.18 installation is not using the Windows .exe wrapper I use startup.bat. In previous versions of Tomcat these logs have always been generated in {tomcathome}/logs. I was just wondering where they had gone - i don't especially need them. thanks -Original Message- From: Remy

Stealing the Writer (Was: Re: Configuring a Default Servlet)

2004-02-09 Thread Stefan Grling
Dear Tim, Thanks!, Filters works great to solve this problem. Here's another stupid thing I want to do. I want to measure the performance, by wrapping every request buy another filter (or similiar): public void doFilter(ServletRequest request, ServletResponse, response, FilterChain chain)

RE: Stealing the Writer (Was: Re: Configuring a Default Servlet)

2004-02-09 Thread Shapira, Yoav
Howdy, Why pollute the response with data about its performance? I think that data is better placed in a log file (and then you filter approach will work fine). For example, http://www.javaworld.com/javaworld/jw-06-2001/jw-0622-filters.html. But if you really want to put it in the response

RE: Stealing the Writer (Was: Re: Configuring a Default Servlet)

2004-02-09 Thread Mike Curwen
-Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Monday, February 09, 2004 8:56 AM To: Tomcat Users List Subject: RE: Stealing the Writer (Was: Re: Configuring a Default Servlet) Howdy, Why pollute the response with data about its performance? I

Re: TC 5 production use

2004-02-09 Thread Vitor Buitoni
Only for port redirection you don't need to buy any hardware. If you are running tomcat inside a linux box, you can configure iptables to do the port redirection. Everything via software, no hardware. Vitor David Wall wrote: We run Tomcat on 8080 using Cisco Routers for port redirection.

Re: Stealing the Writer (Was: Re: Configuring a Default Servlet)

2004-02-09 Thread Tim Funk
Marketing cares about that kinds of stuff too. ;) -Tim Mike Curwen wrote: -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Monday, February 09, 2004 8:56 AM To: Tomcat Users List Subject: RE: Stealing the Writer (Was: Re: Configuring a Default Servlet) Howdy,

Re: TC 5 production use -- iptables to make it work without root

2004-02-09 Thread David Wall
Only for port redirection you don't need to buy any hardware. If you are running tomcat inside a linux box, you can configure iptables to do the port redirection. Everything via software, no hardware. Vitor You are absolutely correct. In fact, I've abandoned JSVC precisely because I can do

Re: Tomcat Loads Deleted Context?

2004-02-09 Thread De Toffoli Garry
Shapira, Yoav ha scritto: Howdy, Is META-INF/context.xml a standard way to provide a default context in a war? Or is it tomcat specific? It is tomcat-specific. Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain

RE: Tomcat Loads Deleted Context?

2004-02-09 Thread Shapira, Yoav
Hi, But where is documented? How it run? How is possible change a context during the life of Tomcat? http://jakarta.apache.org/tomcat/tomcat-5.0-doc/deployer-howto.html http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/host.html#Automat ic%20Application%20Deployment

Couldn't find private key in this file

2004-02-09 Thread Jing Tao
Hi, everyone: Greetings! I have a problem in configure SSL in tomcat 4.1. I generated the private key by type: keytool -genkey -alias devglobustomcat -keyalg RSA -validity 800 -keystore cacerts The keystore - cacerts is in /usr/java/j2sdk1.4.1_01/jre/lib/security. I type keytool -list

Re: TC 5 production use -- iptables to make it work without root

2004-02-09 Thread Evgeny Gesin
I'm curious, why don't you use Apache and JK connector? Evgeny Gesin --- David Wall [EMAIL PROTECTED] wrote: You are absolutely correct. In fact, I've abandoned JSVC precisely because I can do this. This is great because not only do you need the extra JSVC, but you don't need to start as

Servlet thread safety in omcat

2004-02-09 Thread kwirirai
Hi All I am developing an application that uses JavaMail.What I am concered is the issue of thread safety,and efficiency.My question is do I need to employ synchronized blocks in my Servlet code or is there another way to implement thread safety.I have been experimenting with the application

Servlet thread safety in Tomcat

2004-02-09 Thread kwirirai
Hi All I am developing an application that uses JavaMail.What I am concered is the issue of thread safety,and efficiency.My question is do I need to employ synchronized blocks in my Servlet code or is there another way to implement thread safety.I have been experimenting with the application and I

Install Tomcat without (most of) the JSDK ?

2004-02-09 Thread Mike Kellstrand
I have seen it implied that Tomcat really only needs tools.jar from the J-SDK to be able to compile JSP's. However, if you try to run the Tomcat installer without having the J-SDK installed, it complains and exits. I've also found that if you just use the .zip install, the Tomcat startup script

Re: TC 5 production use -- iptables to make it work without root

2004-02-09 Thread David Wall
I'm curious, why don't you use Apache and JK connector? Evgeny Gesin We currently do, but we're creating a new simpler version for smaller offices and corporate departmental computing. The fewer running parts the better, and the fewer things that need to be patched going forward, the easier

RE: Servlet thread safety in Tomcat

2004-02-09 Thread Shapira, Yoav
Howdy, State your specific requirements and we can help you design servlets/objects that will meet those requirements. Your original post is too broad to solicit a detailed response. Yoav Shapira Millennium ChemInformatics -Original Message- From: kwirirai [mailto:[EMAIL PROTECTED]

Re: Servlet thread safety in Tomcat

2004-02-09 Thread kwirirai
The app is simply meant to grab some mails from a pop server and simply display it using Java Mail. I realise part of my mistake is using global variables ,unsynchronized collections and unsynchronized code blocks.I am not using the single thread model. My initial thought ( :-) forgive me its

RE: Servlet thread safety in Tomcat

2004-02-09 Thread Mike Curwen
The one thing that could be said (so far), is to ensure you are using properly scoped variables. Generally speaking, for servlets, that means don't use something like the following: public class myservlet extends HttpServlet { private String MyBadlyPlacedVariable = null; public void

RE: Servlet thread safety in Tomcat

2004-02-09 Thread Shapira, Yoav
Howdy, My initial thought ( :-) forgive me its some time since I have coded servlets) was that Tomcat will create a new servlet instance that is totally independed of the other, for each request. Tomcat will not create a new instance of a servlet for every request to that servlet. Tomcat

Re: [Fwd: Catalina suspends for no reason?!?]

2004-02-09 Thread Sam Seaver
Hey, Catalina.sh shutdown connects to the shutdown port (8005 by default) and tells the server to shut down. Tomcat shuts down all its parts, and that includes destroying servlets, filters, listeners as mandated by the servlet specification. But tomcat does not call, for example, System.exit(),

Re: Servlet thread safety in Tomcat

2004-02-09 Thread Sam Seaver
My initial thought ( :-) forgive me its some time since I have coded servlets) was that Tomcat will create a new servlet instance that is totally independed of the other, for each request. Tomcat will not create a new instance of a servlet for every request to that servlet. Tomcat will

Re: Servlet thread safety in Tomcat

2004-02-09 Thread David Ramsey
Your primary mistake seems to be in assuming that Tomcat will create a new instance of a servlet for every thread started. This is not what happens, therefore servlet instance variables are not thread safe unless you take additional actions to make them safe. Likewise, application global entities,

RE: [Fwd: Catalina suspends for no reason?!?]

2004-02-09 Thread Shapira, Yoav
Howdy, So basically, I iknow this is off-topic for a tomcat-users page, but if I wanted to track down all the threads that are opened within the JVM at any one time, and the nature of the threads (ie Daemon etc.) and where they come from etc. can I do this? Sure. If you send a SIGQUIT to the

Re: Servlet thread safety in Tomcat

2004-02-09 Thread kwirirai
Thanks ,It realy means I have to redesign the whole app ,but there is the issue of networking and Java Mail, it seems the other servlet has to wait for a very long time for the other servlet to get all the mail.My question is can Tomcat process two sessions of a servlet downloading mail

RE: Servlet thread safety in Tomcat

2004-02-09 Thread Shapira, Yoav
Howdy, But how does Tomcat log the sessions variables PER request then? Is the session object independent of the servlet object, and is there one session object PER request? The session object is independent of the servlet object. There is NOT one session per request (unless the user's session

RE: Servlet thread safety in Tomcat

2004-02-09 Thread Shapira, Yoav
Howdy, Thanks ,It realy means I have to redesign the whole app ,but there is the issue of networking and Java Mail, it seems the other servlet has to wait for a very long time for the other servlet to get all the mail.My question is can Tomcat process two sessions of a servlet downloading

Re: Servlet thread safety in Tomcat

2004-02-09 Thread kwirirai
snipet for (int i = msgCount; i =stopPoint; i--) { m = folder.getMessage(i); //get the message } This actually hapening when one session is downloading suppose 300 emails, and the other lets say 50.This suppose ,what I am actually doing is I have two

Re: Servlet thread safety in Tomcat

2004-02-09 Thread kwirirai
But if I am to synchronise my code blocks won't that slow done the application, or is there a mode that you can put Tomcat into so that it will create a new instance servlet thread with its own variables and execution space and stuff like that .Because I was thinking putting all those

RE: Servlet thread safety in Tomcat

2004-02-09 Thread Shapira, Yoav
Howdy, But if I am to synchronise my code blocks won't that slow done the application, or is there a mode that you can put Tomcat into so that it will create a new instance servlet thread with its own variables and execution space and stuff like that .Because I was thinking putting all those

RE: Servlet thread safety in Tomcat

2004-02-09 Thread Yu, Albert
If you implement the SingleThreadModel interface for your Servlet class, TomCat will create a new instance for each request. Albert -Original Message- From: kwirirai [mailto:[EMAIL PROTECTED] Sent: Monday, February 09, 2004 2:12 PM To: Tomcat Users List Subject: Re: Servlet thread

Re: Tomcat w Java1.5 beta problem

2004-02-09 Thread James Black
I get the complaint from both IDEs I use because of the fact that the collections have changed, in order to support generics. I haven't tried running my JDK1.5 classes under jdk1.4.2 yet, as I am still trying to get all of my unit tests to pass. g Oh, I thought you had run it under Tomcat.

RE: Servlet thread safety in Tomcat

2004-02-09 Thread Mike Curwen
Synchronization does produce overhead, but it's what you *must* do if you will not re-write your servlets to no longer contain instance fields, *and* you wish to provide thread safety. There is a mode, and you have mentioned it before.. It's not a Tomcat mode, it's that Single threaded thing.

Re: Tomcat w Java1.5 beta problem

2004-02-09 Thread James Black
Shapira, Yoav wrote: I suggest rebuilding tomcat with 1.5 beta if you want to run servlets compiled using 1.5 beta. I'm not even sure my suggestion will work, as I haven't tried it myself. There has not been a tomcat release declared to support JDK 1.5 yet, although you're welcome to do

done did not found a worker

2004-02-09 Thread Nicholas Bernstein
I'm hoping someone can give me a bit of insight as to what I might be doing wrong with connecting Apache V.2 w/ Tomcat V.4 using mod_jk v1.2.5. It looks like apache is trying to talk to tomcat when is sees that /examples/ is supposed to be handled by tomcat via mod_jk but when mod_jk tries to use

RE: Servlet thread safety in Tomcat

2004-02-09 Thread Shapira, Yoav
Howdy, Synchronization does produce overhead, but it's what you *must* do if you will not re-write your servlets to no longer contain instance fields, *and* you wish to provide thread safety. Well-put. And you might be pleasantly surprised at how small the overhead is. Which is why I always

Re: manager app No context exists for path /

2004-02-09 Thread Josh Rehman
Anthony Gray wrote: Hi All, I'm trying to use the manager app (via /manager/html) so that I can restart/stop/start apps, however I'm getting the message No context exists for path / when I try to stop/restart the app. I'm using linux, tomcat 5.0.16, apache 2.0.47 and jk2 2.0.2, and My

Re: [Fwd: Catalina suspends for no reason?!?]

2004-02-09 Thread Sam Seaver
Shapira, Yoav wrote: Howdy, So basically, I iknow this is off-topic for a tomcat-users page, but if I wanted to track down all the threads that are opened within the JVM at any one time, and the nature of the threads (ie Daemon etc.) and where they come from etc. can I do this?

RE: [Fwd: Catalina suspends for no reason?!?]

2004-02-09 Thread Shapira, Yoav
Howdy, My first problem is the definition of the JVM, i cant find it as a process in its own right, I can only find the process for catalina, sending a SIGQUIT to: /usr/local/j2sdk_nb/j2sdk1.4.2/bin/java -Djava.endorsed.dirs=/usr/local/tomcat/common/endorsed -classpath

Re: Servlet thread safety in Tomcat

2004-02-09 Thread Parsons Technical Services
Another approach is to have your application create an instance for each session that will retrieve the mail for that session. Just ensure that the resource you are accessing can handle it, or you will have problems either way. (Note I am approaching this from a programming view. I am not familar

Re: [Fwd: Catalina suspends for no reason?!?]

2004-02-09 Thread Sam Seaver
Howdy, My first problem is the definition of the JVM, i cant find it as a process in its own right, I can only find the process for catalina, sending a SIGQUIT to: /usr/local/j2sdk_nb/j2sdk1.4.2/bin/java -Djava.endorsed.dirs=/usr/local/tomcat/common/endorsed -classpath

WARNING: Duplicate name in Manifest: Class-Path

2004-02-09 Thread Yansheng Lin
Hi, I am getting a lot of this WARNING lately in my console. Did a search online and found a really good explaination on this page: http://www.deftcode.com/archives/duplicate_class_path_entries.html. I recently upgraded both JDK/JRE and Tomcat. So I am not sure which upgrade is responsible for

Alias in tomcat

2004-02-09 Thread Alex Korneyev
Hello, In apache there is a directive Alias Alias /users/ c:/somedirectory/ Directory c:/somedirectory/ Options Indexes MultiViews AllowOverride None Order allow,deny Allow from all /Directory which basically says that any requests that start with /users/ are based out of

RE: [Fwd: Catalina suspends for no reason?!?]

2004-02-09 Thread Shapira, Yoav
Howdy, If I shut down Catalina and the process persists, then can I assume that all the Catalina-associated threads have been shut down and what I'm looking at are the persistent threads? Yeah, plus the JVM root threads (main, Finalizer, Event) that cannot shut down before your threads do.

re: Tomcat question

2004-02-09 Thread Bliesner, Christopher P
Hello, I have setup Tomcat 4.12 in conjunction with Apache 2.0.43 on a Solaris UNIX box. My question is specific to Tomcat. I know that I can modify the server.xml to include individual logfiles under the webapps directory, both Local logs and (I believe) Catalina logfiles. However, these

RE: Tomcat question

2004-02-09 Thread Shapira, Yoav
Howdy, I have setup Tomcat 4.12 in conjunction with Apache 2.0.43 on a Solaris UNIX box. My question is specific to Tomcat. I know that I can modify the server.xml to include individual logfiles under the webapps directory, both Local logs and (I believe) Catalina logfiles. However, these

Re: Tomcat question

2004-02-09 Thread Josh Rehman
Bliesner, Christopher P wrote: Hello, I have setup Tomcat 4.12 in conjunction with Apache 2.0.43 on a Solaris UNIX box. My question is specific to Tomcat. I know that I can modify the server.xml to include individual logfiles under the webapps directory, both Local logs and (I believe)

Re: root context loaded again under its docbase name

2004-02-09 Thread Adam Hardy
On 02/09/2004 02:58 PM Shapira, Yoav wrote: and this is my context (which is found in META-INF/context.xml): Context path= docBase=gargantus.war cachingAllowed=false reloadable=false Anybody else with the same setup see this? Bug or not bug? snip/ Seems like a bug. What happens if you don't

RE: root context loaded again under its docbase name

2004-02-09 Thread Shapira, Yoav
Howdy, If there's no context.xml, then I don't get a root context - no _, no nada - and no errors. Just the context with the same name as the war file. So if there's no context.xml, the behavior is correct (with all default values, e.g. reloadable). If you add a context.xml, you get the

RE: Tomcat question

2004-02-09 Thread Bliesner, Christopher P
thanks. Unfortunately, if I setup each developer a different log, they still get the whole logfile from Tomcat. I believe that I would have to setup several virtual hosts in Apache and then setup Tomcat versions for each one. However, I'm going to have one of the developer's try to route

RE: Tomcat question

2004-02-09 Thread Bliesner, Christopher P
Thanks for your help :) -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Monday, February 09, 2004 2:55 PM To: Tomcat Users List Subject: RE: Tomcat question Howdy, I have setup Tomcat 4.12 in conjunction with Apache 2.0.43 on a Solaris UNIX box. My question is

Re: done did not found a worker

2004-02-09 Thread Nicholas Bernstein
On Mon, 2004-02-09 at 11:33, Nicholas Bernstein wrote: ::SNIP:: I was wondering if perhaps this message was received by the list earlier and responded to, but I missed it. I tried to send it twice on friday, but got a bounce and did not see it appear in the messages from the list. Then again, I

URL Rewrite Issue Help

2004-02-09 Thread Apahce Tomact
Hi, I am Using HTTPSession to store the user_id and session_id to validate the session. I want to make web site should work even if client browser disables the cookies (Does not allow the cookies). For this I am using URLRewrite i.e.. appending jsessionid in to the URL in the form tag. This

Weird Problems

2004-02-09 Thread Vernon Wu
I have these two wired problems on TC for some time. I need to resolve them now with some helps. The first problem is the session counter. It is implemented with the HttpSessionListener. It works fine until recently. Under the TC5.0.X, the counter can be a negative figure. The second is a

Re: root context loaded again under its docbase name

2004-02-09 Thread Adam Hardy
On 02/09/2004 11:01 PM Shapira, Yoav wrote: If there's no context.xml, then I don't get a root context - no _, no nada - and no errors. Just the context with the same name as the war file. So if there's no context.xml, the behavior is correct (with all default values, e.g. reloadable). If you

Re: System.out.println, Where art thou?

2004-02-09 Thread John B. Moore
Sometimes it is threaputic to face one's stupidity... Anyway, it was pilot error... I use JBuilder (which has an embedded Tomcat) for my development and in versions prior to the latest (JB9 and before) the url pattern was http://localhost:8080/servercontext/servletname ..in JB10 this

Image download?

2004-02-09 Thread Josh G
Hi, I have a servlet that's trying to send image files instead of a html response that doesn't seem to be working. Here's the code in question: //Set content-type ServletContext context = getServletContext();

Re: done did not found a worker

2004-02-09 Thread Charles Daniel
Nicholas: Give up trying to use Apache2 with mod_jk. After spending days on the message boards trying to solve this one, I was ultimately told by the so-called experts that I had a network configuration problem and that some process was likely to be either already using or blocking port

Re: done did not found a worker

2004-02-09 Thread Nicholas Bernstein
On Mon, 2004-02-09 at 16:41, Charles Daniel wrote: Nicholas: Give up trying to use Apache2 with mod_jk. After spending days on the message boards trying to solve this one, I was ultimately told by the so-called experts that I had a network configuration problem and that some process was

Re: Tomcat w Java1.5 beta problem

2004-02-09 Thread Shawn
I suggest rebuilding tomcat with 1.5 beta if you want to run servlets compiled using 1.5 beta. I'm not even sure my suggestion will work, as I haven't tried it myself. There has not been a tomcat release declared to support JDK 1.5 yet, although you're welcome to do building and testing for us

Re: done did not found a worker

2004-02-09 Thread David Rees
On Mon, February 9, 2004 at 4:41 pm, Charles Daniel wrote: Give up trying to use Apache2 with mod_jk. After spending days on the message boards trying to solve this one, I was ultimately told by the so-called experts that I had a network configuration problem and that some process was

Help regarding running a simple JSP page in Tomcat 5.0.16

2004-02-09 Thread Avinash Sridhar
Hi, This question may be addressed many many times,but do reply. I have a Win xp operating system Installed Tomcat 5.0.16 in it. Next the directory structure PS : The sampleapp directory is outside the tomcat installation directory. E:/sampleapp | | ROOT WEB-INF | classes | package1

Re: Image download? - FIX

2004-02-09 Thread Josh G
At 09:58 AM 10/02/2004, you wrote: Fix0r3d. For the archives, here's the fix: //Set content-type ServletContext context = getServletContext(); response.setContentType(context.getMimeType(media.getLocation())); //Open file

Help regarding a simple .jsp file

2004-02-09 Thread Avinash Sridhar
Hi, I have a directory by name sampleapp The sample app is not in the TOMCAT_HOME directory,now I have made a directory named ROOT inside the sampleapp directory. I have written a simple MyJsp.jsp jsp file and placed it in the above mentioned ROOT ,now my question is How does one write the

Re: done did not found a worker

2004-02-09 Thread Nicholas Bernstein
On Mon, 2004-02-09 at 17:37, David Rees wrote: On Mon, February 9, 2004 at 4:41 pm, Charles Daniel wrote: Give up trying to use Apache2 with mod_jk. After spending days on the message boards trying to solve this one, I was ultimately told by the so-called experts that I had a network

  1   2   >