RE: which to use: JK2 or JK?

2004-11-29 Thread Ralph Einfeldt
That's the official statement:

http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/news/20041100.html#2
0041115.1
 

-Original Message-
From: Nikola Milutinovic [mailto:[EMAIL PROTECTED] 
Sent: Monday, November 29, 2004 10:40 AM
To: Tomcat Users List
Subject: Re: which to use: JK2 or JK?

This saddens me. I was under th impression that JK2 was more advanced. 
What are the reasons for abandoning it?

The concept of workers, channels and such stuff was great, although it
took some time to grasp.

 Some features of mod_jk2 will be ported to mod_jk.

Is there any comprehensive documentation on this? Also, if we are to
drop JK2, will there be an effort made to make comprehensive
documentation on JK1?

 The other development is mod_proxy_ajp as part of the apache webserver

 project.

That's for the Apache 2.2. Nice to know, but in the distant future for
me.

Nix.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: which to use: JK2 or JK?

2004-11-28 Thread Ralph Einfeldt

Sorry, but I think you are wrong.

There have been several post in the last days from the
developers, that clearly say, that there will be no further
development for mod_jk2.

Some features of mod_jk2 will be ported to mod_jk.

The other development is mod_proxy_ajp as part of the apache 
webserver project.

-Original Message-
From: Nikola Milutinovic [mailto:[EMAIL PROTECTED] 
Sent: Monday, November 29, 2004 7:43 AM
To: Tomcat Users List
Subject: Re: which to use: JK2 or JK?

Erez Efrati wrote:

What do you mean by no longer being supported?

The current status is thet JK1 is considered production grade, while
JK2 is still, well,... not in Beta Phase, but something like a
successor to JK1.

We're using mod_jk2 2.0.2 and it has been running smoothly for almost a
year. I prefer JK2 to JK1, but that is my preference. JK2 will be the
official connector in the future, so if it works for you, stick with
it.

Nix.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Apache 2.0 - mod_proxy, mod_cache - and Tomcat 4.1.29

2004-10-21 Thread Ralph Einfeldt
That's a bit too general.

Tomcat can do all the things (PHP, CGI, SSL), the real 
question is: can tomcat do it good and fast enough for 
a certain use case. That can only be decided from case
to case. For some it will work for others it may not.

 -Original Message-
 From: Neise, Volker [mailto:[EMAIL PROTECTED]
 Sent: Thursday, October 21, 2004 9:36 AM
 To: Tomcat Users List
 Subject: AW: Apache 2.0 - mod_proxy, mod_cache - and Tomcat 4.1.29
 
 
 The backend apache does not only serve static pages like GIF 
 or JS. It also handles PHP, Perl-scripts and some SSL. This 
 can not be done with tomcat.
 


RE: Multiple session timeouts in same web application

2004-10-05 Thread Ralph Einfeldt

session.setMaxInactiveInterval is applied to the current session.
If you have different timeouts in pages, the last visited page
with an explicit call to session.setMaxInactiveInterval wins.

 -Original Message-
 From: Kannan V [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, October 05, 2004 12:22 PM
 To: [EMAIL PROTECTED]
 Subject: Multiple session timeouts in same web application
 
 
  Can any one please explain the behaviour of session time 
 out with Tomcat ? For example, if I specify a session time 
 out of 30 minutes in web.xml and and then set 
 session.setMaxInactiveInterval to 45 minutes in a page, then 
 will it mean that only the page where I set it as 45 minutes 
 will have a session time out of 45 minutes and all the 
 rest of the pages will be having 30 minutes ? Or will the 
 whole session will have a time out of 45 minutes after 
 accessing the page where I set it as 45 minutes? Again, if I 
 have multiple web applications with different session 
 timeouts specified in respecitve web.xmls and  single sign on 
 enabled, then what will be the behaviuor ? ( Like, I accessed 
 one web app page with timeout 15 min and went to a page in 
 the second web app with timout set to 30 minutes, (all in the 
 same session) then when will the first page will timout- 
 after 15 minutes or after 30 minutes ?)
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Synchronization in cluster

2004-10-01 Thread Ralph Einfeldt

With this usage scenario i would recommend sticky sessions.


 -Original Message-
 From: Igor [mailto:[EMAIL PROTECTED]
 Sent: Thursday, September 30, 2004 8:59 PM
 To: [EMAIL PROTECTED]
 Subject: Re: Synchronization in cluster
 
 
 
 Users of my application can upload comma separeted files, 
 that are imported in database.
 This process can take 10-30 minutes, if file is large, so new 
 Thread is started with import process and user is redirected to 
 refreshing page, that displays status of import. Information about
 import process is stored in static variable (import thread and 
 status jsp can access this information).
 
 If it happens in one JVM, everething is ok. But what will be 
 in the case of load balancing?
 
 Thank you,
 Igor
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Howto deploy a new version of my webapp without disturbing the customer?

2004-10-01 Thread Ralph Einfeldt

Just a guess:

- Use Apache + mod_jk(2) + 2 tomcat instances

- Use sticky sessions (look at the jvmRoute of
  the engine tag)

- Use the load factor to distribute 100% of the requests
  to the first instance.

- Update the second instance.

- Change the load factor to distribute 100% of the requests
  to the second instance.

- Wait after all session moved to the second instance
  update the first instance and reverse the

I haven't tried any of this but as far as I can remember I have 
seen posts in this list that indicate that this should be possible.

 -Original Message-
 From: Christian Mittendorf [mailto:[EMAIL PROTECTED]
 Sent: Friday, October 01, 2004 12:15 PM
 To: [EMAIL PROTECTED]
 Subject: Howto deploy a new version of my webapp without 
 disturbing the
 customer?
 
 
 Hello!
 
 My scenario is an order application, where my customers can order 
 products. But the software or the design of the pages are changing 
 rapidly. The question is now: how can I deploy a new version without 
 the customer noticing anything?
 
 I'm searching for something similar to what WebObjects is 
 offering. WO 
 allows me to start a new instance (using the new version) of my 
 application in parallel to the already running application. All new 
 connections are then redirected to this new application. The existing 
 sessions in the old application can continue their order 
 process. When 
 the number  of open sessions in this old instance reaches zero, the 
 instance is shut down. The customer out in the web does not 
 see that a 
 new version has been deployed.
 
 Is something simlilar possible using Tomcat?
 
 Christian
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Synchronization in cluster

2004-10-01 Thread Ralph Einfeldt

Why not ?

As I understood the static variable holds the information for the
current upload.

If the session is sticky the user will stay in the same jvm
and see the same static variable with each refresh.

I just see some downsides:
- if you want to assure that the downloads are serialised you have
  to implement a locking mechanism.
- you loose the central point to see all states at the same time.
- if the instance that performs the update dies, the user will 
  get to an instance that doesn't know anything about the download.

 -Original Message-
 From: Filip Hanik (lists) [mailto:[EMAIL PROTECTED]
 Sent: Friday, October 01, 2004 1:51 PM
 To: Tomcat Users List
 Subject: RE: Synchronization in cluster
 
 
 That doesn't solve the problem
 
 -Original Message-
 From: Ralph Einfeldt [mailto:[EMAIL PROTECTED]
 Sent: Friday, October 01, 2004 4:26 AM
 To: Tomcat Users List
 Subject: RE: Synchronization in cluster
 
 
 
 With this usage scenario i would recommend sticky sessions.
 
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: sending signed mails from servlet

2004-09-27 Thread Ralph Einfeldt

We are using www.bouncycastle.org to send s/MIME signed mails
with javamail.

 -Original Message-
 From: Steffen Heil [mailto:[EMAIL PROTECTED]
 Sent: Monday, September 27, 2004 9:37 PM
 To: 'Tomcat Users List'
 Subject: AW: sending signed mails from servlet
 
 
 Hi
 
 I have seen those already.
 
 - http://javamail-crypto.sourceforge.net/ 
   early alpha makes me nervous for productive systems.
 
 - http://jpgpmime.sourceforge.net/ 
   this is pgp, i need x509 s/mime.
 
 - http://www.wedgetail.com/jcsi/smime/ 
   there is no information about pricing or license.
 
 - http://java.sun.com/products/javamail/Third_Party.html.
   checked most of this. the interesting ones are those above.
 
 However, do you have any experience with those? Or others?
 
 Regards,
   Steffen
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Suggestion: A dedicated TOMCAT forum!

2004-09-22 Thread Ralph Einfeldt

Wasn't it (at least in the early days of the forum) that
the posts to the forum where copied to the list ?

 -Original Message-
 From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, September 21, 2004 3:13 PM
 To: Tomcat Users List
 Subject: RE: Suggestion: A dedicated TOMCAT forum!
 
 
 
 If we have a Forum AND a mailing list, that leads to confusion: two
 places to post questions, two places to look for answers, etc.  Should
 we drop the mailing list?  I wouldn't be so quick to do that ;)
 
 Yoav Shapira
 Millennium Research Informatics
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Multiple Instances of Tomcat5 on SunOS5.8

2004-09-16 Thread Ralph Einfeldt

http://www.mail-archive.com/[EMAIL PROTECTED]/msg135862.html


 -Original Message-
 From: Rahul Bhardwaj [mailto:[EMAIL PROTECTED]
 Sent: Thursday, September 16, 2004 4:32 PM
 To: [EMAIL PROTECTED]
 Subject: Multiple Instances of Tomcat5 on SunOS5.8
 Importance: High
 
 
 HI,
 
 We need to ve multiple instances of Tomcat5 on SunOS5.8.
 
 1.  Can I just ve 2 server.xml with different name and 
 configuration 
 under single Tomcat installation and then start the Tomcat 
 with -f option 
 to point to the specific server.xml.
  
 2.  Or Do I ve to make 2 directory structure for each 
 Tomcat instances 
 containing all the sub directories/files present in standard 
 installation 
 ?
 And then modify the server.xml in each instnce ...!!
 Moreover set the CATALINA_BASE in the startup script of each 
 instance...Is it correct ?
  
 In any case I should be able to run the 2 instances parallely ?
 
 Can anyone help in letting me know the simplest step by step 
 procedure to 
 do the same.
 
 I 'd appreciate an early reply.
 
 Thanks  regards,
 Rahul
 
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Question about multiple instances instead virtual hosts

2004-09-10 Thread Ralph Einfeldt

My recommendations:
- Use one installation and define CATALINA_BASE for each.
- Define one virtual ip per instance
- bind each instance to one ip

 -Original Message-
 From: Bedrijven.nl [mailto:[EMAIL PROTECTED]
 Sent: Friday, September 10, 2004 2:16 PM
 To: 'Tomcat Users List'
 Subject: Question about multiple instances instead virtual hosts
 
 
 Hello,
 
 Now I have a production server with tomcat 4.1.24. I have several
 applications installed (in webapps) and sets them up as 
 virtual hosts. I get
 the idea that using multiple instances would work better for 
 me. I read the
 documentation but what I read is there are 2 possible 
 solutions: for each
 instance install a new Tomcat installation and second modify the
 CATALINA_BASE directory. Now my questions:
 
 How could I best setup the multiple instances?? And second 
 question is: my
 Tomcat webserver is standalone. That means handles all the 
 http requests to
 port 80. How can I make this work with more than one 
 instance?? In other
 words how do I establish that a http request (port 80) will 
 go to the right
 Tomcat instance??
 
 Thanx in advanced,
 
 Maarten
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Question about multiple instances instead virtual hosts

2004-09-10 Thread Ralph Einfeldt
To bind a IP to an engine have a look at either:

http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/host.html
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/host.html

For the installation structure:

First:
  Have a look at RUNNING.txt in the tomcat distribution
  ...

Second:

We have a structure like this:

/usr/local/java/jdk/ibm1.3
/usr/local/java/jdk/sun1.3
/usr/local/java/jdk/sun1.3.1
/usr/local/java/jdk/sun1.4

/usr/local/java/tomcat-4...
/usr/local/java/tomcat-5...

/www/online/site
  /log
dirctory for the log file
  /conf
web.xml
server.xml
  and other files that contain the site specific setup for tomcat
  (tailored versions of the files that are provided by 
   tomcat)
  make shure that the combination of IP and port are unique for
  each instance of tomcat. 
...
  /work
Directory where tomcat stores the generated files and classes
  /webapps
 Directories for the contexts
  /bin
start.sh
  Script that calls the tomcat version that we want to use for 
  this site with the environment for this site:

  JAVA_HOME=/usr/local/java/jdk/sun1.3.1
  CATALINA_HOME=/usr/local/java/tomcat-
  CATALINA_BASE=/www/online/site


  export JAVA_HOME CATALINA_HOME CATALINA_BASE
  ${CATALINA_HOME}/bin/startup.sh

This way we can have different versions of tomcat at the same time, 
all sites that use the same tomcat version use the same 'executable'
but different processes and individual configuration. If we want to 
use an other version of tomcat we just have to change CATALINA_HOME 
in start.sh (unless the config files are incompatible between these 
versions)

 -Original Message-
 From: Bedrijven.nl [mailto:[EMAIL PROTECTED]
 Sent: Friday, September 10, 2004 2:54 PM
 To: 'Tomcat Users List'
 Subject: RE: Question about multiple instances instead virtual hosts
 
 
 can you give examples of:
 
 - how to define CATALINA_BASE (i.e. a new director
 applications/applicationX/webapps, 
 applications/applicationY/webapps etc is
 that OK??)
 - how to bind the one ip address??
 
 Maarten
 
 -Oorspronkelijk bericht-
 Van: Ralph Einfeldt [mailto:[EMAIL PROTECTED]
 Verzonden: Friday, September 10, 2004 1:41 PM
 Aan: Tomcat Users List; [EMAIL PROTECTED]
 Onderwerp: RE: Question about multiple instances instead virtual hosts
 
 
 
 My recommendations:
 - Use one installation and define CATALINA_BASE for each.
 - Define one virtual ip per instance
 - bind each instance to one ip
 
  -Original Message-
  From: Bedrijven.nl [mailto:[EMAIL PROTECTED]
  Sent: Friday, September 10, 2004 2:16 PM
  To: 'Tomcat Users List'
  Subject: Question about multiple instances instead virtual hosts
  
  
  Hello,
  
  Now I have a production server with tomcat 4.1.24. I have several
  applications installed (in webapps) and sets them up as 
  virtual hosts. I get
  the idea that using multiple instances would work better for 
  me. I read the
  documentation but what I read is there are 2 possible 
  solutions: for each
  instance install a new Tomcat installation and second modify the
  CATALINA_BASE directory. Now my questions:
  
  How could I best setup the multiple instances?? And second 
  question is: my
  Tomcat webserver is standalone. That means handles all the 
  http requests to
  port 80. How can I make this work with more than one 
  instance?? In other
  words how do I establish that a http request (port 80) will 
  go to the right
  Tomcat instance??
  
  Thanx in advanced,
  
  Maarten
  
  
  
 -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  
  
  
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Question about multiple instances instead virtual hosts

2004-09-10 Thread Ralph Einfeldt

You just need one installation.

See my previous post for an exaple structure.

 -Original Message-
 From: Bedrijven.nl [mailto:[EMAIL PROTECTED]
 Sent: Friday, September 10, 2004 4:42 PM
 To: 'Tomcat Users List'
 Subject: RE: Question about multiple instances instead virtual hosts
 
 
 I think I want to use several Tomcat installations, since the 
 applications
 are not so dependent on one jvm.
 So how could I do that?? (especially all connect to port 80)
 
 Maarten
 
 
 
 -Oorspronkelijk bericht-
 Van: Bedrijven.nl [mailto:[EMAIL PROTECTED]
 Verzonden: Friday, September 10, 2004 1:54 PM
 Aan: 'Tomcat Users List'
 Onderwerp: RE: Question about multiple instances instead virtual hosts
 
 
 can you give examples of:
 
 - how to define CATALINA_BASE (i.e. a new director
 applications/applicationX/webapps, 
 applications/applicationY/webapps etc is
 that OK??)
 - how to bind the one ip address??
 
 Maarten
 
 -Oorspronkelijk bericht-
 Van: Ralph Einfeldt [mailto:[EMAIL PROTECTED]
 Verzonden: Friday, September 10, 2004 1:41 PM
 Aan: Tomcat Users List; [EMAIL PROTECTED]
 Onderwerp: RE: Question about multiple instances instead virtual hosts
 
 
 
 My recommendations:
 - Use one installation and define CATALINA_BASE for each.
 - Define one virtual ip per instance
 - bind each instance to one ip
 
  -Original Message-
  From: Bedrijven.nl [mailto:[EMAIL PROTECTED]
  Sent: Friday, September 10, 2004 2:16 PM
  To: 'Tomcat Users List'
  Subject: Question about multiple instances instead virtual hosts
 
 
  Hello,
 
  Now I have a production server with tomcat 4.1.24. I have several
  applications installed (in webapps) and sets them up as
  virtual hosts. I get
  the idea that using multiple instances would work better for
  me. I read the
  documentation but what I read is there are 2 possible
  solutions: for each
  instance install a new Tomcat installation and second modify the
  CATALINA_BASE directory. Now my questions:
 
  How could I best setup the multiple instances?? And second
  question is: my
  Tomcat webserver is standalone. That means handles all the
  http requests to
  port 80. How can I make this work with more than one
  instance?? In other
  words how do I establish that a http request (port 80) will
  go to the right
  Tomcat instance??
 
  Thanx in advanced,
 
  Maarten
 
 
  
 -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Tomcat5 and Servlet Timeout: Possible?

2004-09-08 Thread Ralph Einfeldt

You may try following snippet as a base for a filter.
(I havn't tried it in a filter chain, so no garantee)

Filter
InterruptTimer mTimer = new InterruptTimer(5000, 10);
mTimer.start();
try {

  doChain() // Don't have the correct syntax at hand...

} catch (??InterruptedIOException?? ex) {

  // Log what you think to be helpfull

}
mTimer.reset();
/Filter


public class InterruptTimer extends Thread {
long oEndTime = 0;
int oSleepTime = 10;
Thread oStartingThread = Thread.currentThread();
Thread oRunningThread = null;

public InterruptTimer(int aLength, int aSleepTime) {
// Both times are in ms
oSleepTime = aSleepTime;
oEndTime = System.currentTimeMillis() + aLength;
}

public void run() {
oRunningThread = Thread.currentThread();
// Loop until the end time is reached or reset() was called.
while (System.currentTimeMillis()  oEndTime) {
try { 
Thread.sleep(oSleepTime);
} catch (InterruptedIOException ex) {
}
}
if (oEndTime  0) {
timeout();
}
}
public void reset() {
oEndTime = 0;
}

public void timeout() {
oStartingThread.interrupt();
}
}

 -Original Message-
 From: news [mailto:[EMAIL PROTECTED] Behalf Of Andreas Schildbach
 Sent: Tuesday, September 07, 2004 9:19 PM
 To: [EMAIL PROTECTED]
 Subject: Re: Tomcat5 and Servlet Timeout: Possible?
 
 
 Shapira, Yoav wrote:
 
  There's no such option in Tomcat.
 
 So if one thread hangs, it hangs forever.
 
 If it blocks other threads, the whole app hangs...
 
 Regards,
 
 Andreas
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: javascript and servlets.

2004-09-03 Thread Ralph Einfeldt
String[] f = request.getParameterValues(file0);

f[0]
..
f[f.length - 1]

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 Sent: Friday, September 03, 2004 9:16 AM
 To: [EMAIL PROTECTED]
 Subject: javascript and servlets.
 
 
 String f =;
   f = request.getParameter(file0);
 works fine; 
The remainder appear inaccessible.
 In the docs ...webapps/tomcat-docs/servletapi/index.html


RE: javascript and servlets.

2004-09-03 Thread Ralph Einfeldt
Sorry i misread your post, that is the solution to
retrieve the values if you have more than one field 
with the same name.


If you have file0 through filen this should work:

request.getParameter(file0);
..
request.getParameter(filen);

if file1 through filen are null against your expectations,
I would say something is wrong on the client side.

Some recommendations:
  - change method to get so you can see the fields as query string.
  - Make shure that all fields are in the same form

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 Sent: Friday, September 03, 2004 9:38 AM
 To: [EMAIL PROTECTED]
 Subject: RE: javascript and servlets.
 
 
  
 
 but I can't see how that will access the entry with name 
 file1, file2 etc?
 


RE: javascript and servlets.

2004-09-03 Thread Ralph Einfeldt

form method=get ...

/form

the query string can be found in the access log.
(This might be turned of)

From your last post with the source I think
that each input tag has it's own form so only 
one field is submitted.

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 Sent: Friday, September 03, 2004 10:47 AM
 To: [EMAIL PROTECTED]
 Subject: RE: javascript and servlets.
 
 

 Some recommendations:
   - change method to get so you can see the fields as 
 query string.
 How please?
   - Make sure that all fields are in the same form
 I'll check.
 


RE: TC 5.5 - 4 issues (jasper, ROOT, jndi, logging)

2004-09-02 Thread Ralph Einfeldt

Did you change the jdk (vendor/version) ?

As this looks more like an error message that's generated by 
the java compiler (jvac, jikes, ...).

 -Original Message-
 From: Allistair Crossley [mailto:[EMAIL PROTECTED]
 Sent: Thursday, September 02, 2004 5:47 PM
 To: Remy Maucherat; [EMAIL PROTECTED]
 Subject: RE: TC 5.5 - 4 issues (jasper, ROOT, jndi, logging)
 
 
 As regards the JasperException, I have just placed an unused 
 package import to org.apache.struts back into my error page 
 so that I can post it to you;
 
 org.apache.jasper.JasperException: Unable to compile class for JSP
 
 Generated servlet error:
 The import org.apache.struts is never used
 
 
   

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Tomcat Holding Database Open??????

2004-08-31 Thread Ralph Einfeldt

How are you acessing the database ?
- dbcp
- direct jdbc
- taglib
- ???

What makes you think it has anything to do with tomcat?
If you are using direct jdbc you may try to extract
your code to a stand alone application.

 -Original Message-
 From: Michael McQuade [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, August 31, 2004 2:43 PM
 To: Tomcat Users List
 Subject: Tomcat Holding Database Open??
 
 
 I then try to go to my USER Login screen and my database 
 opens with an SQLSTATE = 08002 (connection name in use) and 
 any subsequent attept to access the database reults in an 
 SQLSTATE = 08000   
 NOW, if I back out to Tomcat App Manager,   stop the 
 application, and restart it, I can go back in and get the 
 onetime connection stated above,   then the 08002 scenario 
 repeats.
 It appears to me, and god knows Im REAL knew to this world,  
 that Tomcat is somehow holding my database open..  not 
 releasing it on DISCONNECT.
 
 DOES anyone have any idea, I have been at this for a week, 
 day and night, to no avail..  Im desperate for some sound 
 guidance.
 Thank you for anyone who can help me,  and all those that 
 have patience with me.
 
 Mike
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Error with All threads (...) are currently busy on Red Hat

2004-08-06 Thread Ralph Einfeldt

Create a thread dump to see how many threads you 
have and what they are doing.

kill -QUIT tomcat pid 

This will just produce a thread dump and not stop tomcat.

The output will get to catalina.out unless you have 
mapped stdout to a different file.

 -Original Message-
 From: Brad McEvoy [mailto:[EMAIL PROTECTED]
 Sent: Friday, August 06, 2004 8:20 AM
 To: '[EMAIL PROTECTED]'
 Subject: Error with All threads (...) are currently busy on Red Hat
 
 
 
 Our tomcat server freezes intermittently, without any 
 identifiable cause,
 giving a message like All threads (xxx) are currently busy, 
 waiting. At
 first I assumed that some bug with our java code was causing 
 requests to
 hang indefinitely and they were accumulating over time to 
 cause this, but
 I've added diagnostics code to detect that condition and it 
 appears not to
 be the case.
 
 A similar problem was reported recently at
 http://www.mail-archive.com/[EMAIL PROTECTED]/msg
132875.html

However, the resolution to that referred to problematic versions which we
aren't using

Our exact versions are below..

linux Red Hat EL
kernel 2.4.21-17.ELsmp  (as per recommendation on Bug 120341 for ibm blades)
tomcat 4.1.30
apache 2.0.49
mod_jk 2.04
glibc 2.3.2-95.20
java 1.4.2_02 - Sun VM


Any help would be greatly appreciated,
Brad McEvoy

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: JMS with tocmat

2004-08-05 Thread Ralph Einfeldt

No, tomcat is 'just' 
- a servlet engine
- a jsp engine
- a webserver

To do other things like ejb or jms you have to integrate
additional solutions with tomcat:
- JBoss
- Geronimo
- Jonas
- OpenJMS 
  (if you just want jms this is the least complex solution)
  http://openjms.sourceforge.net
  http://www.onjava.com/pub/a/onjava/2001/12/12/openjms.html
  http://www.google.de/search?q=openjms+tomcat


 -Original Message-
 From: Jignesh Patel [mailto:[EMAIL PROTECTED]
 Sent: Thursday, August 05, 2004 6:50 PM
 To: [EMAIL PROTECTED]
 Subject: JMS with tocmat
 
 
 Is JMS supported by tomcat 5.0.19?
 
 -Jignesh
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: ajp over ssl

2004-08-05 Thread Ralph Einfeldt

some other approaches:

- cryptcat
  http://farm9.org/Cryptcat/GetCryptcat.php
- openvpn
  http://openvpn.sourceforge.net/
- tinc
  http://www.tinc-vpn.org/
- CIPE
  http://sites.inka.de/sites/bigred/devel/cipe.html

 -Original Message-
 From: Michael Jürgens [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, August 03, 2004 8:29 AM
 To: Tomcat Users List
 Subject: ajp over ssl
 
 
 Hi,
 
 I want to connect an Apache Webserver over an unsecure 
 channel to tomcat.
 What is the preferred method?
 
 AJP over a permanent ssh tunnel?
 I think an AJP connection over SSH would be better.
 
 but I don´t know how to do that.
 
 a IPSec Conection is not possible, because of some firewall problems.
 
 regards,
 
 Michael
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Urgent attention needed to solve mysterious SocketException error

2004-08-05 Thread Ralph Einfeldt

Are you running tomcat stand alone ?

One possible cause is that tomcat is trying to open a socket where 
nobody is listening. (Invalid argument or EINVAL is a common error
returned by all kind of socket operations in this case)

Without more of the stacktrace it's difficult (at least for me)
to say anything about the context where the problem is occuring.


 -Original Message-
 From: Adrian G. Klingel [mailto:[EMAIL PROTECTED]
 Sent: Thursday, August 05, 2004 5:27 PM
 To: [EMAIL PROTECTED]
 Subject: Urgent attention needed to solve mysterious SocketException
 error
 
 
 I'm running Tomcat 5.0.25 in our DMZ.  The server crashes 
 every day.  I see
 thousands and thousands of lines like this in Catalina.out:
  
 Aug 5, 2004 10:50:31 AM 
 org.apache.tomcat.util.net.TcpWorkerThread runIt
 SEVERE: Remote Host /xx.xx.xx.1 SocketException: Invalid argument
  
 That IP (obfuscated) is our gateway.  The application on this 
 server is not
 distributed, it does make some calls to an external database.
  
 I can't find any documentation on this error.  I found one 
 reference to
 someone else who had the problem, but there were no solutions offered.
  
 Any help is greatly appreciated.
  
 Sincerely,
 Adrian
 
  
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: tomcat output gets mixed up for different requests

2004-08-03 Thread Ralph Einfeldt

It is normal that one servlet is used for several requests.

It's your responsability to write the method thread safe.
As long as you just use local vars inside the method
there will bo no intermixed content. As soon as you start 
to use instance or class variables you may get problems.


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, August 03, 2004 11:01 AM
 To: Tomcat Users List
 Subject: Re: tomcat output gets mixed up for different requests
 
 
 So it seems that Tomcat does not spawn a new servlet for a 
 new request, althought my web.xml file contains:
 

 
 With every client calling the same Method it seems very 
 likely that the
 output is getting mixed up.
 
 Adding a *synchronized* in front of the doGet() method, makes the
 problem disappear, but also makes the Tomcat very slow.
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Tomcat 5 in debug mode

2004-07-29 Thread Ralph Einfeldt

Have a look at catalina.bat/sh.

 -Original Message-
 From: Martin [mailto:[EMAIL PROTECTED]
 Sent: Thursday, July 29, 2004 11:56 AM
 To: [EMAIL PROTECTED]
 Subject: Tomcat 5 in debug mode
 
 
 could somebody please tell me how to start tomcat 5 on 
 Windows in debug
 mode? I would like to use it for remote debugging, but I just recently
 upgraded to tomcat 5 and could not find any description how 
 to do this.
 
 Is there maybe any generic solution to start tomcat 5 on 
 windows and linux in debug mode?
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Understanding tomcat web administration tool. [OT]

2004-07-29 Thread Ralph Einfeldt
Whow,

did you write a 'tomcat-answermatic-robot' during your last
holiday ? (Can you share it ? May be it can be extented to
an 'give-me-the-answer-to-any-question-robot')

 -Original Message-
 From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
 Sent: Thursday, July 29, 2004 3:43 PM
 To: Tomcat Users List
 Subject: RE: Understanding tomcat web administration tool.
 
 
 Hola,
 It's a work-in-progress, I assume.  But I'm not sure what you 
 mean since I don't have that ability...
 
 Yoav Shapira
 Millennium Research Informatics
 
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Max possible ram usage

2004-07-21 Thread Ralph Einfeldt

That is just java related. 
Tomcat has no upper limitations.

The maximal memory depends on the vm implementation.
You might try a newer version of the jdk or a jdk from a 
different vendor.

 -Original Message-
 From: Albrecht Marcus [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, July 21, 2004 2:54 PM
 To: [EMAIL PROTECTED]
 Subject: Max possible ram usage
 

 My java options are
 JAVA_OPTS=-Xms512m -Xmx3072m
  
 The tomcat won't start with this options.
  

 Error occurred during initialization of VM
 Could not reserve enough space for object heap
  
 If i lower the max value i get it running with a max of 1792 
 MB setting (JAVA_OPTS=-Xms512m -Xmx1792m).
  
 Can anyone tell me the max ram size that tomcat/java can use?
 I have't found that information anywhere on the net or mailing lists.
  

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: File.mkdirs() don't work if started with jsvc

2004-07-19 Thread Ralph Einfeldt

Was /tmp/test created ? 
If yes, which rights are set in this directory ?


 -Original Message-
 From: Horacio de Oro [mailto:[EMAIL PROTECTED]
 Sent: Friday, July 16, 2004 8:21 PM
 To: Tomcat Users List
 Subject: Re: File.mkdirs() don't work if started with jsvc
 
 
 
 fileName = /tmp/test/something = DOESN'T WORKS
 fileName = /tmp/onedir = THIS WORKS!!!
 
 So, the problem is: Tomcat started with jsvc on Debian Woody:
   - File.mkdirs() WORKS if it should make ONE directory.
   - File.mkdirs() DOESN'T WORKS if it should make MORE THAN 
 ONE directory.
 
 Thanks for your response!
 
 Horacio
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: AW: Migration 4.1.27 to 4.1.30 - Servlet-Configuration won't work

2004-06-24 Thread Ralph Einfeldt

Tomcat 5 has been redesigned in several areas
so it should is faster for many operations.
If the changes cause tomcat to be much faster
depends on your application and what you are 
looking at.

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]
 Sent: Thursday, June 24, 2004 9:48 AM
 To: [EMAIL PROTECTED]
 Subject: AW: AW: Migration 4.1.27 to 4.1.30 - Servlet-Configuration
 won't wor k
 
 
 Could it be, that 5.0.25 is MUCH more faster than 4.1.27?
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: tomcat crash ... unexpected exception

2004-06-23 Thread Ralph Einfeldt

For this part of the error you have to look at at the application.

appweb.NativeCall looks like a class that is an interfaces to a 
native (C) library. The error is thrown in that native library.

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, June 23, 2004 11:09 AM
 To: [EMAIL PROTECTED]
 Subject: tomcat crash ... unexpected exception
 

 An unexpected exception has been detected in native code 
 outside the VMn.
 Unexpected Signal : 11 occurred at PC=0x7EF499A4
 Function=[Unknown. Nearest: madvise+0xC0]
 Library=/usr/lib/64/libc.so.1
 
 Current Java thread:
  at appweb.NativeCall.Call_C_tpcall(Native Method)
  at appweb.NativeCall.tp_call(NativeCall.java:58)
  at 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: tomcat crash ... unexpected exception

2004-06-23 Thread Ralph Einfeldt

Btw. appweb.NativeCall doesn't look like a part of tomcat
so it most likely the application or an additional library
that is used by the application.

 -Original Message-
 From: Ralph Einfeldt 
 Sent: Wednesday, June 23, 2004 11:15 AM
 To: Tomcat Users List
 Subject: RE: tomcat crash ... unexpected exception
 
 For this part of the error you have to look at at the application.
 
 appweb.NativeCall looks like a class that is an interfaces to a 
 native (C) library. The error is thrown in that native library.
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: tomcat crash ... unexpected exception

2004-06-23 Thread Ralph Einfeldt
That error can something between 'ignore it' and 'severe error'.

Tomcat failed while writing the response to mod_jk.
That can be caused by this reasons:
- the apache child that created the request died
- the user closed the browser before the response was sent 
- there may be further reasons

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, June 23, 2004 11:39 AM
 To: Tomcat Users List
 Subject: Re: tomcat crash ... unexpected exception
 

 Jun 23, 2004 11:17:12 AM org.apache.jk.server.JkCoyoteHandler action
 SEVERE: Error in action code
 java.net.SocketException: Broken pipe

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: tomcat crash ... unexpected exception

2004-06-23 Thread Ralph Einfeldt

The number of threads is depending on
- the number of threads the jvm needs to run
- the number of threads tomcat needs to run
- AFAIK one thread for each active processor
  (- at least minProcessors)
- the number of threads that are used by the application

But there is no way to know the number of max threads,
I'm not shure if there is a option to query tomcat for 
the number of active processor threads.

You can verify the number of processor threads by 
calling kill -QUIT java-pid. This should produce 
a stacktrace in one of the log files. You should be 
able to identify the by their name.


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, June 23, 2004 2:25 PM
 To: Tomcat Users List
 Subject: Re: tomcat crash ... unexpected exception
 
 
 Again about my general problem, below is an output of the 
 'top' command on the webserver.
 We can see that the Tomcat java process (the first one) has 
 135 threads in it. How is this 
 defined ? I guess this number is dynamic, but how can I say 
 that it is its maximum or not 
 ? If it is, it may be some kind of bottleneck ...
 
 Is it related to the settings of min/max processors in server.xml ?
 
 --
 last pid: 14592;  load averages:  0.27,  0.25,  0.26 
 14:14:21
 173 processes: 165 sleeping, 7 zombie, 1 on cpu
 CPU states: 91.5% idle,  3.9% user,  4.2% kernel,  0.4% 
 iowait,  0.0% swap
 Memory: 8192M real, 1404M free, 6472M swap in use, 7856M swap free
  
 
 PID USERNAME THR PRI NICE  SIZE   RES STATETIMECPU COMMAND
   11751 userx135   0   10 6288M 4718M sleep9:55  0.60% java
 680 root   4 150  -20 3568K 2424K sleep  489:23  0.13%
   14526 root   1 150  -20 2056K 1472K sleep0:00  0.06%
   14527 root   1 150  -20 2056K 1472K sleep0:00  0.06%
5078 root  12   10 7312K 6272K sleep   72:41  0.05%
8529 root   1  590 2776K 1848K cpu/00:08  0.05% top
   14513 userx  8   10 7280K 5864K sleep0:00  0.05% httpd
   14591 userx  6   00 6848K 5112K sleep0:00  0.03% httpd
   14524 root   1 150  -20 2056K 1472K sleep0:00  0.03%
   14592 userx  4   00 6720K 5016K sleep0:00  0.02% httpd
   14533 root   1 150  -20 2176K 1408K sleep0:00  0.02%
   14534 root   1 150  -20 2176K 1408K sleep0:00  0.02%
 --
 
 Thanks,
 
 Bastien.
 
 
 
 Ralph Einfeldt wrote:
  That error can something between 'ignore it' and 'severe error'.
  
  Tomcat failed while writing the response to mod_jk.
  That can be caused by this reasons:
  - the apache child that created the request died
  - the user closed the browser before the response was sent 
  - there may be further reasons
  
  
 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, June 23, 2004 11:39 AM
 To: Tomcat Users List
 Subject: Re: tomcat crash ... unexpected exception
 
  
  
 Jun 23, 2004 11:17:12 AM org.apache.jk.server.JkCoyoteHandler action
 SEVERE: Error in action code
 java.net.SocketException: Broken pipe
  
  
  
 -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: tomcat crash ... unexpected exception

2004-06-23 Thread Ralph Einfeldt

Although I'm not a mod_jk* user, I think it's quite 
unusual to define 2 CoyoteConnectors and 2 workers
for one tomcat instance.

Unless you have good reason to do so, I would remove
one of each. This introduces a complexity that is
not needed. (At least I that's my opinion)

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, June 23, 2004 3:24 PM
 To: Tomcat Users List
 Subject: Re: tomcat crash ... unexpected exception
 
 

 # real workers (Tomcat instances)
 [ajp13:localhost:8009]
 info=Worker1
 channel=channel.socket:localhost:8009
 group=lb
 ver=2
 
 [ajp13:localhost:8010]
 info=Worker2
 channel=channel.socket:localhost:8010
 group=lb
 ver=1
 
Connector 
 className=org.apache.coyote.tomcat4.CoyoteConnector port=8009 
 minProcessors=100 maxProcessors=500 enableLookups=false 
 acceptCount=100 debug=4 
 connectionTimeout=12 useURIValidationHack=false 
 protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler
  Logger className=org.apache.catalina.logger.FileLogger 
 prefix=connector1-logger- suffix=.log timestamp=true /
/Connector
 
Connector 
 className=org.apache.coyote.tomcat4.CoyoteConnector port=8010 
 minProcessors=100 maxProcessors=500 enableLookups=false 
 acceptCount=100 debug=4 
 connectionTimeout=12 useURIValidationHack=false 
 protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler
  Logger className=org.apache.catalina.logger.FileLogger 
 prefix=connector2-logger- suffix=.log timestamp=true /
/Connector

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Modifying response to hyperlink certain words

2004-06-23 Thread Ralph Einfeldt

I think that's the way to go.

But I don't see why the ServletResponseWrapper should 
be complicated.

There are so many articles and open source filter 
implementations, that can give you a starting point 
for it:

http://www.onjava.com/pub/a/onjava/2001/05/10/servlet_filters.html
http://www.onjava.com/pub/a/onjava/2003/11/19/filters.html
http://www.onjava.com/pub/a/onjava/2004/03/03/filters.html

http://www.javaworld.com/javaworld/jw-06-2001/jw-0622-filters.html


 -Original Message-
 From: Moran Ben-David [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, June 23, 2004 5:04 PM
 To: [EMAIL PROTECTED]
 Subject: Modifying response to hyperlink certain words
 
 
 Hi.  I'm wondering if anyone has any thoughts on how to 
 properly pick up the
 responses of all Servlets/JSP's and modify them so that all words in a
 dictionary are turned into hyperlinks?
 
 Has anyone done this already?  I am inclined to use a Filter 
 to do this, however, does that require a complicated 
 ServletResponseWrapper to catch all the response output 
 for my filter to modify before it's pumped out to the
 output stream?
 
  
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: JK2: lb_factor

2004-06-16 Thread Ralph Einfeldt

The quality of the distribution depends on the worker type 
of apache. (AFAIK only the 'worker' MPM will work)

Nevertheless AFAIK the load balancing in mod_jk is not 
complete in this area, so I'm not shure if you will get 
the desired distribution (but it should be closer).

 -Original Message-
 From: Weseloh, Nicole [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, June 16, 2004 11:48 AM
 To: [EMAIL PROTECTED]
 Subject: JK2: lb_factor
 
 I've got a cluster with 2 tomcat 2.0.25 on different 
 machines, on one of them also running Apache 2.0.49 with JK2 
 as a loadbalancer. Requests get redirected to both tomcat instances, 
 but it always ends up with around 1/3 of all requests at the local 
 server and about 2/3 at the remote one, no matter what value the 
 lb_factors are.
 
 So, could anyone tell me which values I should use to make 
 the lb_factor work correctly? All information I found was that 
 a lower value means more requests (official JK2-documentation 
 at jakarta.apache.org). 
 
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: JK2: lb_factor

2004-06-16 Thread Ralph Einfeldt
Hi Nicole,

I guess it's the mpm_worker_module, that you need.

Yes, I was talking about mod_jk2.

I guess that it is possible to enable a worker by configuration.
(After all they are just modules)

Sorry, as I'm neither using apache 2 nor mod_jk*, I can't 
add much. That was just third hand knowledge from posts to 
this list that managed to stay on my brain heap.

Some starting points:
http://httpd.apache.org/docs-2.0/mod/worker.html
http://httpd.apache.org/docs-2.0/mpm.html

 -Original Message-
 From: Weseloh, Nicole [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, June 16, 2004 1:48 PM
 To: Tomcat Users List
 Subject: AW: JK2: lb_factor
 
 could you please explain what you mean by that? My Apache has 
 got the following (default?) modules:
 
 snip
 Compiled in modules:
   core.c
   mod_win32.c
   mpm_winnt.c
   http_core.c
   mod_so.c
 /snip
 
 So - do I need to use the mpm_worker_module instead of 
 mpm_winnt? (OS of the server is Win XP Pro) 
 If so - can you tell me how to do that?


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: switch-off url rewriting

2004-06-10 Thread Ralph Einfeldt

AFAIK there is no way to disable this by configuration.

Just an idea:

Implement a servlet filter and a custom ResponseWrapper. 
The ResonseWrapper can have it's own encodeURL that returns 
the url unmodified.
Map that filter to every request.

As I havn't tried it I'm not 100% shure...

 -Original Message-
 From: Karin Krause [mailto:[EMAIL PROTECTED]
 Sent: Thursday, June 10, 2004 8:27 AM
 To: [EMAIL PROTECTED]
 Cc: [EMAIL PROTECTED]
 Subject: switch-off url rewriting
 
 HttpServletResponse.encodeURL() will generate an URL which 
 contains the jsessionid for example something like that
 http://myhost/myservlet;jsessionid=qxxsLGqVxIQ16cKyJXvg
 
 Is there any way to switch that off by configuration?

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: AW: IP Adresses

2004-06-09 Thread Ralph Einfeldt
Is the other web server also tomcat or something else ?

 -Original Message-
 From: Gunnar Pörschke [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, June 09, 2004 4:09 PM
 To: 'Tomcat Users List'
 Subject: AW: AW: IP Adresses
 
 
 Thanks, this time it helps. But Tomcat still blocking all my 
 ip adresses. I
 cannot run other web server on the other IP with the port 80 :(
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: unable to connect to mysql db on localhost (mysql not listening!) [OT]

2004-06-09 Thread Ralph Einfeldt
Although it's quite off topic:

In /etc/mysql/my.cnf comment out this line: 

skip-networking

restart mysql

 -Original Message-
 From: ilasno [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, June 09, 2004 5:13 PM
 To: Tomcat Users List
 Subject: Re: unable to connect to mysql db on localhost (mysql not
 listening!)
 
 
 
 but then i used netstat as you indicated, and there's no sign 
 of mysql listening!  here's what showed up:
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: CGIServlet -- tomcat

2004-05-21 Thread Ralph Einfeldt
Who wrote what of the Servlet:

http://cvs.apache.org/viewcvs.cgi/jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/servlets/CGIServlet.java?annotate=1.19


 -Original Message-
 From: Alex [mailto:[EMAIL PROTECTED]
 Sent: Friday, May 21, 2004 2:29 PM
 To: Tomcat Users List
 Subject: RE: CGIServlet -- tomcat
 
 
 oh well.  no one specifically wrote the cgiservlet / jar file that is
 distributed?
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Problem with error-page

2004-05-21 Thread Ralph Einfeldt

I'm not shure about the response code that is returned
in both cases. 

It's possible that tomcat returns a different response code
for a html and a jsp. (Like 200 for html because the html 
error page was found and some other value for the jsp because 
the jsp explicitly sets an response code.)

Some recommendations to verify that:
- Listen with a tcp monitor and watch the headers.
- Use a browser (or other tool like telnet) that is able to 
  display the headers .

 -Original Message-
 From: Jim Kennedy [mailto:[EMAIL PROTECTED]
 Sent: Friday, May 21, 2004 6:30 PM
 To: 'Tomcat Users List'
 Subject: RE: Problem with error-page
 
 The suggestion to change 403.jsp to something like _403.jsp 
 did not work. I did however change my browser setting in the 
 advanced section concerning friendly error messages.  
 This did work.  I still don't understand why the IE browser 
 distinguishes between an HTML error page and a JSP error page.
 The browser, it would seem to me, would not be aware of that.
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Pass info between Tomcat Valve and Filter

2004-05-21 Thread Ralph Einfeldt

One possible cause:

The component that store your object find the class through 
a different classloader than the component that tries to 
retrieve the object.

Where do you store the class/jar for the stored object ?


 -Original Message-
 From: Rui Zhang [mailto:[EMAIL PROTECTED]
 Sent: Friday, May 21, 2004 6:53 PM
 To: Tomcat Users List
 Cc: [EMAIL PROTECTED]
 Subject: Re: Pass info between Tomcat Valve and Filter
 
 
 
 Hi Jon  All,
 
Thanks for your information. It's very helpful. I've been 
 looking at
 ValveContext but did not find anything useful.
 
Yes, I tried to pass the info object along as an attribute of
 ServletRequest. But problem occured with the retrieval of the 
 object in
 the Filter, where ServletRequest.getAttribute() successfully 
 located my
 attribute, but promtted a ClassCastException when the 
 returned Object was
 casted back to the original info class. It seems Tomcat 
 somehow lost the
 class structure of the original info class...? Anyone got a 
 clue of this?
 
Many thanks.
 
 Rui
 
 
 On Fri, 21 May 2004, Jon Wingfield wrote:
 
  An invocation of a Tomcat Valve gives you a Request object. 
 This is a
  facade to a ServletRequest, which you can access via the 
 getRequest()
  method. You could set your info object as an attribute on the
  ServletRequest. This should then be visible to your filter.
 
  
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/catalina/docs/api/index.html

 Just curious, why the custom Valve?

 Jon

 Rui Zhang wrote:

   Hi all,
  
 I'm trying to pass some info (say, as an Object) between a valve and a
   filter. Is anyone aware of a effective way to do this within the context
   of Tomcat?
  
 Many thanks.
  
   Best,
  
   Rui
  


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Strange behaviour with buffers

2004-05-19 Thread Ralph Einfeldt

That statement from the site is wrong in at least one case:

page import

May be it's wrong in the other cases too.

AFAIK the spec doesn't mention such restriction.
(At least I couldn't find it)

 -Original Message-
 From: Jason Irwin [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, May 19, 2004 3:00 PM
 To: 'Tomcat Users List'
 Subject: RE: Strange behaviour with buffers
 
 
 Note that the page directive does not apply to any
 dynamic included files;.
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Windows XP X Windows 2003 . What are the advantages to use with the same JVM.

2004-05-18 Thread Ralph Einfeldt
In some of the windows versions the number of concurrent 
inbound tcp connections is limited.
http://support.microsoft.com/?kbid=122920

http://support.microsoft.com/default.aspx?scid=kb;en-us;328459

I'm not shure if this is still true for xp and 2003.
(But I think it is)


-Original Message-
From: Acácio Furtado Costa [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 18, 2004 2:12 PM
To: Tomcat Users List
Subject: Windows XP X Windows 2003 . What are the advantages to use with the same JVM.


Hello,  
I´d like to use the Windows Operational System with Tom Cat 5.0.24. 
I intend to use one Pentium III 700 MHz , 2 CPU´s (DP) with 2 Gb RAM and SCSI Disk´s 
9x5 Raid 5 by Hardware only for this purpose
 I need to download the JVM from Sun Site because neither XP and W2003 contains JVM 
and the JVM is the same for both. 
I have license for windows XP and one doubt.Will I have some advantages to use Windows 
2003 Server??  IF Yes, what are they ??
Thanks 
Acacio Furtado Costa 
[EMAIL PROTECTED] 
(31)3368-1349 
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: tomcat-user Digest 18 May 2004 12:51:46 -0000 Issue 4449

2004-05-18 Thread Ralph Einfeldt
Has your mail address changed or do you now use a different 
address than in your subscription ?

Look at the return path of the mails you receive from the list
and you get:

Return-Path: tomcat-user-return-26788-your name=your domain@jakarta.apache.org

If that doesn't match roy=panix.com
use this address to unsubscribe:
tomcat-user-unsubscribe-your name=your domain@jakarta.apache.org

 -Original Message-
 From: Roy Smith [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, May 18, 2004 5:10 PM
 To: Tomcat Users List
 Cc: Roy Smith
 Subject: Re: tomcat-user Digest 18 May 2004 12:51:46 - Issue 4449
 
 
 On May 18, 2004, at 8:51 AM, 
 [EMAIL PROTECTED] 
 wrote:
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: RemoteAddrValve and mod_jk

2004-05-14 Thread Ralph Einfeldt
As I understand it, the RemoteAddrValve works on the address 
of the client (browser) not of the webserver.

I'm not using mod_jk. Back in the old days of mod_jserv
there was a property ApJServSecretKey to protect a jserv 
instance from unauthorized access. I'm not shure if this 
feature survived in one way or another.

One solution would be to limit the access to the tomcat port 
by a software firewall.

BTW (On which os are you working ?)

 -Original Message-
 From: Krause Karin [mailto:[EMAIL PROTECTED]
 Sent: Friday, May 14, 2004 2:36 PM
 To: '[EMAIL PROTECTED]'
 Subject: RemoteAddrValve and mod_jk
 
 
 Apache Web Server on a separate host, Tomcat 4.1.27 on another host.
 I use mod_jk 1.2.5 to connect from Apache to Tomcat.
 I wish to make sure that only requests from a specific Apache 
 Server can connect to Tomcat.
 I thought that the RemoteAddrValve can be used to check, from 
 which machine the request
 comes to Tomcat. It works fine if I use http (without 
 Apache/mod_jk). If I use it together with Apache/mod_jk,
 the remoteAddr received by the RemoteAddrValve is always localhost. 
 So my question is, how can I assure that the mod_jk request 
 comes from my specific Apache host and not from
 another Apache. Is there another way to do it (eventually in 
 the configuration of the CoyoteConnector)

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: 2 Tomcat instances on the same server ?

2004-05-13 Thread Ralph Einfeldt
I would go for 2.

As I'm not using IIS, I'm not shure if there are specific 
hurdles in this environment. Tomcat stand alone and tomcat
behind apache are quite easy to setup with multiple 
instances.

If all tomcate have the same versions, you just have to 
install tomcat once and setup two instances.

 -Original Message-
 From: Hertenstein Alain [mailto:[EMAIL PROTECTED]
 Sent: Thursday, May 13, 2004 2:47 PM
 To: [EMAIL PROTECTED]
 Subject: 2 Tomcat instances on the same server ?
 
 
 2- install a 2nd Tomcat instance on the server and have that 2nd web
 apps running on that 2nd instance,
 3- have a 2nd server installed with its own configuration.
  

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Stop WA at startup

2004-05-13 Thread Ralph Einfeldt
Guessing that you are talking about starting instead of stopping...

load-on-startup is for servlets not for web applications.

If you include this tag in a servlet definition, the servlet will 
be started at startup time. The value for the tag defines the order 
of the startup.

 -Original Message-
 From: Boulay Arnaud [mailto:[EMAIL PROTECTED]
 Sent: Thursday, May 13, 2004 2:59 PM
 To: Tomcat Users List
 Subject: Stop WA at startup
 
 What is the way for stop all the Web Applications at Tomcat 
 startup time ?
 
 load-on-startup tag in web.xml seams to be here only to fix 
 priority ...
 


RE: Filter on url example - Filter out hack attempts

2004-05-11 Thread Ralph Einfeldt

It's not always easy easy to find the right list for 
a question. The opinions about what is right or wrong
vary with the members of the list. (In my opinion
your question is right in this list, although I can
understand that others have different opinions in this 
case)

I have seen questions that where more of topic than yours.

http://forum.java.sun.com/ is not a bad idea as there
you may ask questions about java, jsp, servlets and other 
things that are not drectly related with tomcat.

 -Original Message-
 From: lrnobs [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, May 11, 2004 4:17 PM
 To: Tomcat Users List
 Subject: Re: Filter on url example - Filter out hack attempts
 
 
 
 I am a newbie to Java and Tomcat, and I did spend two days 
 with two Tomcat books I bought and Google trying to find 
 some instructions I could understand before posting a 
 question to this list. Please let me know if there is a 
 list more appropriate for new users.
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: mod_jk problems - Need help!

2004-05-07 Thread Ralph Einfeldt

I don't think that the problem is caused by the tomcat side.

The output looks pretty much like a memory or a disk dump.

You normally can't access memory outside of the java process 
from within tomcat. (Native libraries excluded)

So I think it's mod_jk, apache or the jvm that cause this problem.

To me it's looking like a read past the end of the response.

 -Original Message-
 From: Carl Olivier [mailto:[EMAIL PROTECTED]
 Sent: Friday, May 07, 2004 1:53 PM
 To: '[EMAIL PROTECTED]'
 Subject: mod_jk problems - Need help!
 
 
 n d o w s   M e
 d i a   P l a y e r . l n k  H     
d e s k t o p . i n ip     T      
 [.ShellClassInfo]
 [EMAIL PROTECTED],-21787


RE: How to limit time for Connector threads?

2004-05-07 Thread Ralph Einfeldt

I don't think that a debugger will help much in this case.

A profiler might help, if you can reproduce the error in a 
test environment. (see below) 

Some ideas:

- Use the access log to try to reproduce the error in a 
  test environment. (AFAIK apache jmeter has the ability 
  to create a test case from an access log) If you can
  reproduce the error, try to cut down the test case to
  the bare minimum that exposes the problem, then you 
  might have luck with a profiler.

- Write a servlet filter that logs the processing time 
  for each request.

- Extend the filter to interrupt the current thread 
  if it takes to long and dump some data.


 -Original Message-
 From: rlipi [mailto:[EMAIL PROTECTED]
 Sent: Friday, May 07, 2004 2:20 PM
 To: 'Tomcat Users List'
 Subject: RE: How to limit time for Connector threads?
 
 Maybe I have wrong idea about possibilities of debugging tools but I
 think that it will not help. We have above 100 000 hits a day and the
 problem occurs only once a day. It can be a result of one special
 request or (with greater probability) it is result of some combination
 of requests. In both cases I don't know these requests nor the
 particular place where the problem is. Therefore, I need some
 statistical information about server behavior before problem 
 and/or all
 possible information about server status in the time of problem. Can
 debugger help me with this?
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: How to limit time for Connector threads?

2004-05-07 Thread Ralph Einfeldt
A follow up to my previous mail.

You may try following snippet.
(I havn't tried it in a filter chain, so I'm not shure 
if the exception reaches the filter)


InterruptTimer mTimer = new InterruptTimer(5000, 10);
mTimer.start();
try {

  doChain() // Don't have the correct syntax at hand...

} catch (??InterruptedIOException?? ex) {

  // Log what you think to be helpfull

}
mTimer.reset();


public class InterruptTimer extends Thread {
long oEndTime = 0;
int oSleepTime = 10;
Thread oStartingThread = Thread.currentThread();
Thread oRunningThread = null;

public InterruptTimer(int aLength, int aSleepTime) {
// Both times are in ms
oSleepTime = aSleepTime;
oEndTime = System.currentTimeMillis() + aLength;
}

public void run() {
oRunningThread = Thread.currentThread();
// Loop until the end time is reached or reset() was called.
while (System.currentTimeMillis()  oEndTime) {
try { 
Thread.sleep(oSleepTime);
} catch (InterruptedIOException ex) {
}
}
if (oEndTime  0) {
timeout();
}
}
public void reset() {
oEndTime = 0;
}

public void timeout() {
oStartingThread.interrupt();
}
}

 -Original Message-
 From: Ralph Einfeldt 
 Sent: Friday, May 07, 2004 7:12 PM
 To: Tomcat Users List
 Subject: RE: How to limit time for Connector threads?
 
 - Extend the filter to interrupt the current thread 
   if it takes to long and dump some data.
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Form method always a get.

2004-05-06 Thread Ralph Einfeldt

???

He says that the error was the same when using submit buttons
and you say he should use it.

AFAIK your explanation is wrong.
If you submit a form with javascript (even if triggered by a link)
it uses (should use ?) the method type that is given in the form.

 -Original Message-
 From: Yansheng Lin [mailto:[EMAIL PROTECTED]
 Sent: Thursday, May 06, 2004 5:52 PM
 To: 'Tomcat Users List'
 Subject: RE: Form method always a get.
 
 As per previous post, use a submit button.  You are using 
 links, that's why
 your servlet thinks it's a GET.  Is button out of question 
 for you?  
 
 -Original Message-
 From: Adam Gruszynski [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, May 05, 2004 1:13 PM
 To: Tomcat Users List
 Subject: RE: Form method always a get.
 
 Did that already with the same result.  I do use netbeans... 
 I don't know if
 that makes a difference.
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Form method always a get.

2004-05-06 Thread Ralph Einfeldt

What is your environment ? (os, tomcat, apache/iis, jdk)

Find out if the request that reaches your server is a POST:
- Look for the request in the access log.
- use an ethernet sniffer to see what is coming.
after this test you know if you have to look at the server 
or the client side.

 -Original Message-
 From: Adam Gruszynski [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, May 05, 2004 4:52 AM
 To: Tomcat Users List
 Subject: Form method always a get.
 
 
 I hope this is just a simple lack of understanding but when
 I submit a html form using any tomcat version greater than
 406, the servlet always recieves it as a get.  Even when
 explicitly setting the form method as a POST.  Am I making
 some sort of oversight or coding error?  
 
 Thank you,
 
 Adam
 
 
   
   
 __
 Do you Yahoo!?
 Win a $20,000 Career Makeover at Yahoo! HotJobs  
 http://hotjobs.sweepstakes.yahoo.com/careermakeover 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Load-Balancing

2004-05-06 Thread Ralph Einfeldt

- stability
  No more to say than Yoav.

- performance

  You may observe better performance with several vms on one server:
- Depending on the quality of the thread implementation 
  in your java vm and the os.
- Depending on the quality of the gc implementation you may
  gain performace with smaller heap (n instances need in most
  cases less heap than one instance)

  Yoav-Mantra
The only way to be shure about that is to test your application 
in your environment with the expected load behaviour.
  /Yoav-Mantra

- resources
  With n instances
- you need more total memory (JDK 1.5 will cut this down a bit).
- you may need more open db connections in the pool.

- maintainance
  

 -Original Message-
 From: Adam T. Gautier [mailto:[EMAIL PROTECTED]
 Sent: Thursday, May 06, 2004 6:37 PM
 To: Tomcat Users List
 Subject: Load-Balancing
 
 
 I have a three server configuration with 1 Apache (httpd) and 
 2 Tomcat 
 (10 instances a piece) servers.  The configuration is working 
 but it is 
 a little complicated.  I choose this configuration for 
 performance.  I 
 loaded the tomcat servers with lots of RAM and let the 
 multiple instance 
 run as independant processes under linux.  This would allow, 
 I beleieve 
 for beter CPU usage.  There were serveral other reasons for 
 my original 
 choice of load balancing across multiple instances on 
 multiple machines 
 which I won't go into unless asked. But, my question is this.  Is it 
 needed?  Can I get the same performance  from single tomcat 
 instances on 
 the two boxes (rely on threads instead of POSIX proccesses)?  
 Wouldn't 
 running 1 JVM instead of 10 provide a better use of memory 
 per machine?  
 The configuration would be easier, definatly...  What are the 
 thought of 
 the others in this group?  Thanks...
 
 
  [ Apache 10.10.10.20]
|
|
  ||
 [Tomcat 10.10.10.100]  [Tomcat 10.10.10.101]
  |
|
  [APP01-01][APP02-01]
 ...   
   ...
  [APP01-10] [APP02-10]
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[Info] Clustering and Loadbalancing

2004-04-23 Thread Ralph Einfeldt

A two part article on clustering and loadbalancing with tomcat:

http://www.onjava.com/lpt/a/4649
http://www.onjava.com/lpt/a/4702

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: session-id prediction

2004-04-23 Thread Ralph Einfeldt

AFAIK the session id has a random part so you need
either quite some luck to guess the number or you 
have to find a bug in the random generator.

 -Original Message-
 From: Bill Gorr [mailto:[EMAIL PROTECTED]
 Sent: Friday, April 23, 2004 5:35 PM
 To: [EMAIL PROTECTED]
 Subject: session-id prediction
 
 
 Is there something in Tomcat that stops an adversary from 
 guessing someone else session-id and preform 
 a session hijacking?
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: How to limit concurrent requests by same user

2004-04-22 Thread Ralph Einfeldt

You just have to remove the token no matter what happens.

try {

  // store token

  // Do the processing and create output

} catch(SomeException ex) { // Optional

} finally {

  // remove token

}

 -Original Message-
 From: Antony [mailto:[EMAIL PROTECTED]
 Sent: Thursday, April 22, 2004 8:38 AM
 To: 'Tomcat Users List'
 Subject: RE: How to limit concurrent requests by same user
 
 
 I tried this approach once, I got stuck on this scenario: 
 user submit a form, jsp/servlet processes and remove the token from list. 
 But the user click abort before the page was transferred, thus leaving 
 him with old token. He can't ever submit the page again. Anyone have 
 think  of a solution for this can please share?
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Problem invoking webservice from within servlets service method.

2004-04-21 Thread Ralph Einfeldt

I don't know anything about axis.

The message indicates for me that axis is reading from a http server.
The server answers (with 404).

The question is, which http server is it talking to ? May be
it's just talking with the wrong http server.

Are you using tomcat standalone or behind apache/iis/... ?

I don't think that anything in tomcat will activly deny such 
kind of access. It's more likely a misconfiguration.

 -Original Message-
 From: KRUEGER MICHAEL [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, April 21, 2004 1:06 PM
 To: _Tomcat Users List (E-Mail)
 Subject: Problem invoking webservice from within servlets service
 method.
 
 
 Caused by: (404)Not Found
 at 
 org.apache.axis.transport.http.HTTPSender.readFromSocket(HTTPS
 ender.java:630)

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Problem invoking webservice from within servlets service method.

2004-04-21 Thread Ralph Einfeldt

Just to make shure that I understood everthing:

- The problem exists in the development setup
- Tomcat is running standalone in the development setup.


I just can think of the following causes:

- The servlet in tomcat is talking to the same tomcat 
  instance.
- The servlet in tomcat is talking to another webserver
  on the same server.
- The servlet in tomcat is talking to another webserver
  on server B
- The servlet in tomcat is talking to another webserver
  on server C
- The servlet in tomcat is talking to proxy between development
  and production.
- The servlet in tomcat is talking to iis and return 404

The message to me indicates that the connection was 
successfull and the result was a response code with 
'file not found'.

 -Original Message-
 From: KRUEGER MICHAEL [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, April 21, 2004 1:52 PM
 To: Tomcat Users List
 Subject: AW: Problem invoking webservice from within servlets service
 method.
 
 Development setup:
 
 1) browser requests content from servlet running on tomcat 
 3.3 on server (A)
 2) servlet calls webservice running on IIS on server (B)
 
 
 As you can see the request from the servlet to the webservice 
 running on server (B) is the same in the development and in 
 the production environment. The thing is that I don't see the 
 request coming in on server (B) when running through tomcat.
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Problem invoking webservice from within servlets service method.

2004-04-21 Thread Ralph Einfeldt


 - The servlet in tomcat is talking to the same tomcat 
   instance. [-?- The servlet running in tomcat will get it's 
 data from a physically different server -?-]

Unless the error message is heavily missleading the servlet/axis 
is talking to a webserver. If it isn't the iis on server B it 
must be a different one. One possible candidate is the local tomcat.
To verify/falsify that, check the access log of tomcat for a 404
error. 

 But 404 just makes no sense, for these reasons:

Again if the message no garbage, there is a webserver that 
generates it. If it is generated by iis you have to find out 
what causes this error.

Possible actions:
- check the tomcat access log on server B for a 404 error
- check the iis access log on server B for a 404 error

- patch axis to provide more information about the environment in 
  the stacktrace. (e.g. the response headers)
- or debug the servlet
- or watch the network traffic with a sniffer to verify if there really
  was a 404 response.

 -Original Message-
 From: KRUEGER MICHAEL [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, April 21, 2004 2:37 PM
 To: Tomcat Users List
 Subject: AW: Problem invoking webservice from within servlets service
 method.
 
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Tomcat , APache , Jserv

2004-04-19 Thread Ralph Einfeldt

- Tomcat is a servlet and jsp engine.

- Tomcat can be used as a stand alone webserver

- Apache is a webserver (with different features than tomcat,
  if it is better depends on the requirements)

- Apache can be integrated with tomcat by mod_jk[2]
  (So Apache replaces tomcats own http stack)

- jserv is a predessor of tomcat (historical,
  only in parts technical) and had no own http stack.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Monday, April 19, 2004 2:03 PM
To: Tomcat Users List
Subject: Tomcat , APache , Jserv

1. Is Tomcat a separate servlet engine and  webserver ? 
2. Is Apache a webserver only ? 
3. Can  we integrate Tomcat and Apache ?? 
  
What i  understood was  Tomcat is a separate webser  servlet engine , Apache is a 
better webserver , we can have use  Tomcat  servlet engine and Apache Web server , 
 And waht is Jserve??? 
  
It will help me in making my basic strong 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Multiple Paths in one Context

2004-04-19 Thread Ralph Einfeldt
I think it will work if you change docBase to webdirs

 -Original Message-
 From: Ben Janes [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, April 20, 2004 7:56 AM
 To: Tomcat Users List
 Subject: RE: Multiple Paths in one Context
 
 
 So now I have context definition
   Context path= 
 docBase=webdirs/networking debug=5 reloadable=true
 crossContext=true
 .
   /Context
 
 However when I do
 url/networking
  It comes up with
 
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: session affinity with loadbalancing (apache2, mod_jk, tomcat5 on linux 9, jdk1.4.2)

2004-04-15 Thread Ralph Einfeldt
Did you set the jvmRoute in the Engine tag in server.xml.

The value must match the name of the workers.
(I'm not shure if it's the name or the attribute 'tomcatid')

 -Original Message-
 From: ian [mailto:[EMAIL PROTECTED]
 Sent: Thursday, April 15, 2004 9:34 AM
 To: 'Tomcat Users List'
 Subject: session affinity with loadbalancing (apache2, mod_jk, tomcat5
 on linux 9, jdk1.4.2)
 
 
 I've read in the Workers How To of apache that the property
 sticky_session for lb worker properties enables / disables session
 affinity for the load balancer. When I tried it on my system 
 the session doesn't seem to be retained often resulting to a session 
 timed out or a not logged in error. Below is my worker.properties 
 configuration.
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: jsessionid parameter not being accepted

2004-04-15 Thread Ralph Einfeldt

- You don't have to implement your own url re-writing
- The time is long gong when the session id was a parameter,
  it's now before the ?

Just throw away your url rewiting and use rsponse.encodeUrl()
instead.

 -Original Message-
 From: Malcolm Warren [mailto:[EMAIL PROTECTED]
 Sent: Thursday, April 15, 2004 3:16 PM
 To: [EMAIL PROTECTED]
 Subject: jsessionid parameter not being accepted
 
 I have done my own url re-writing manually to cater for those 
 browsers who have turned off cookies.
 i.e. I have manually added ?jsessionid=session id 
 parameter to every url.
 


RE: Multiple Paths in one Context

2004-04-15 Thread Ralph Einfeldt

Do you want to use other contexts beside those two ?

If not, you can use one context with an empty path
so that fred and fred2 are just subdirectories of 
one context.

Context path= ...

 -Original Message-
 From: Ben Janes [mailto:[EMAIL PROTECTED]
 Sent: Thursday, April 15, 2004 4:32 PM
 To: Tomcat Users List
 Subject: Re: Multiple Paths in one Context
 
 I would like one webapp to serve multiple paths
 
 so
 www.mywebapp.com/fred
 and
 www.mywebapp.com/fred2
 
 go to the same webapp, I can do this with two contexts I 
 know, however I don't want the webapp to load twice...

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: List problems

2004-04-15 Thread Ralph Einfeldt
Is it possible that mails from the list are blocked 
by the new host ? (Blacklisted or identified as spam)

 -Original Message-
 From: John Trollinger [mailto:[EMAIL PROTECTED]
 Sent: Thursday, April 15, 2004 4:36 PM
 To: [EMAIL PROTECTED]
 Subject: List problems
 
 
 I just changed server hosts and now that I have my domain 
 moved there I cant seem to get any emails from the 
 tomcat-user list.  I send a subscribe message and nothing 
 comes back.  I can send and receive mail from this account.
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Multiple Paths in one Context

2004-04-15 Thread Ralph Einfeldt

The main point was not, how many you want to use,
but if you want a real contexts beside the others 
that have their own context element.

Trying to rephrase the question:

Do you want all paths handled by one context ?
If yes you can follow my suggestion.

 -Original Message-
 From: Ben Janes [mailto:[EMAIL PROTECTED]
 Sent: Thursday, April 15, 2004 4:43 PM
 To: Tomcat Users List
 Cc: Tomcat Users List
 Subject: RE: Multiple Paths in one Context
 
 Upto say 20/30 contexts..
 

 Do you want to use other contexts beside those two ?
 
 If not, you can use one context with an empty path
 so that fred and fred2 are just subdirectories of
 one context.
 
 Context path= ...
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Memory Leak

2004-04-15 Thread Ralph Einfeldt
From your description it is not shure that you have a
memory leak at all.

The vm is not returning free memory to the os. So the 
memory as seen by the os will alway be the maximum value 
that the jvm ever needed during the runtime.

The other option that explains your observertion is that
you test fails to expose the memory leak.

 -Original Message-
 From: Chanan Braunstein [mailto:[EMAIL PROTECTED]
 Sent: Thursday, April 15, 2004 4:27 PM
 To: 'Tomcat Users List'
 Subject: Memory Leak
 
 but then GC kicks in and drops down back to where it was when I 
 started the test. However, the memory in the task manager keeps 
 going up. 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Memory Leak

2004-04-15 Thread Ralph Einfeldt

Which memory are you talking about:
- Java Heap
  If this doesn't go down after a load peak
  where the load of the heap was near the limit
  you have a problem. (In your test it did get down)
  To solve that, you have to find a reproducable test 
  that exposes the problem and run a profiler with that.

- OS Memory as reported by the task manager
  This will never ever go down until restart.

 -Original Message-
 From: Chanan Braunstein [mailto:[EMAIL PROTECTED]
 Sent: Thursday, April 15, 2004 5:24 PM
 To: 'Tomcat Users List'
 Subject: RE: Memory Leak
 
 
 Well, I am not sure why tomcat crashes in that case, why 
 isn't it reducing
 the memory over time. I might add that I noticed that even during low
 traffic periods the memory won't go back down. Even if I take 
 one off the
 cluster (hardware load balancer), so no traffic is going to 
 it at all the
 memory doesn't go down.
 
 
 Chanan Braunstein
 Knovel Corp.
 Web Development Manager
 607-773-1840 x672
 http://www.knovel.com
  
 
 -Original Message-
 From: Ralph Einfeldt [mailto:[EMAIL PROTECTED] 
 Sent: Thursday, April 15, 2004 11:11 AM
 To: Tomcat Users List
 Subject: RE: Memory Leak
 
 From your description it is not shure that you have a memory 
 leak at all.
 
 The vm is not returning free memory to the os. So the memory 
 as seen by the
 os will alway be the maximum value that the jvm ever needed during the
 runtime.
 
 The other option that explains your observertion is that you 
 test fails to
 expose the memory leak.
 
  -Original Message-
  From: Chanan Braunstein [mailto:[EMAIL PROTECTED]
  Sent: Thursday, April 15, 2004 4:27 PM
  To: 'Tomcat Users List'
  Subject: Memory Leak
  
  but then GC kicks in and drops down back to where it was when I 
  started the test. However, the memory in the task manager 
 keeps going 
  up.
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Memory Leak

2004-04-15 Thread Ralph Einfeldt

Which vm and os do you use ?

That behaviour is jvm and os dependend. (This is the first 
time I hear of an implementation that returns memory to the 
os, although I knew that it could be done)

 -Original Message-
 From: Allistair Crossley [mailto:[EMAIL PROTECTED]
 Sent: Thursday, April 15, 2004 5:38 PM
 To: Tomcat Users List
 Subject: RE: Memory Leak
 
 
 this is what I have heard before but it is not true. our 
 Tomcat 5.0.19 under load in the task manager view goes up to 
 about 150MB and overnight or under light load goes back down to 95MB.
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [OT] JAVA_OPTS in catalina.sh

2004-04-14 Thread Ralph Einfeldt
That is not a tomcat but an jvm issue.

You are confusing me.

You say the problem happens in
  1.4.2_04 Client VM (build 1.4.2_04-b05, mixed mode)

The dump says the problem happens in
  java HotSpot(TM) Client VM (1.4.2-b28 mixed mode)

You say this one works.

Can you please verify which one works ?

- Maybe updating your kernel can help. (I'm not familiar 
  with Red Hat, but current kernel numbers for other 
  distros are = 2.4.20)

- If the problems occurs in 1.4.2-b28 than upgrade the 
  jvm to 1.4.2_04-b05.

 -Original Message-
 From: Thomas Chua [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, April 14, 2004 8:32 AM
 To: [EMAIL PROTECTED]
 Subject: JAVA_OPTS in catalina.sh
 
 
 Anyone encountered any error when JAVA_OPTS='-Xmx512m 
 -XX:+AggressiveHeap' 
 
 For Environment : Red Hat Enterprise Linux ES release 2.1(panama)
 Kernel version: 2.4.9-e.12
 Java Version: 1.4.2_04 Client VM (build 1.4.2_04-b05, mixed mode)
 
 The following error is thrown
 
  HotSpot Virtual Machine Error, Internal Error
  Java VM: Java HotSpot(TM) Client VM (1.4.2-b28 mixed mode)
 
snip/
 
 But for Environment : Red Hat Linux release 7.2 (Enigma)
 Kernel version: 2.4.9-21smp
 Java Version: 1.4.2 Client VM (build 1.4.2-b28, mixed mode)
 
 Its working fine. 
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: IBM Java VS SUN Java

2004-04-14 Thread Ralph Einfeldt

It's technology by intel:
http://www.intel.com/products/ht/hyperthreading.htm

 -Original Message-
 From: Zsolt Koppany [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, April 14, 2004 8:41 AM
 To: Tomcat Users List
 Subject: RE: IBM Java VS SUN Java
 
 
 Hi,
 
 sorry for the question but what does hyper-threaded mean?
 
 Zsolt
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [OT] JAVA_OPTS in catalina.sh

2004-04-14 Thread Ralph Einfeldt

So it's most likely the kernel or an os library for 
Red Hat Enterprise Linux ES release 2.1 that is
used by java that causes the problem.

As I don't have any experience with Red Hat
I can't provide any help in this environment.

- Are there updates to the kernel or the core libraries ?


 -Original Message-
 From: Thomas Chua [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, April 14, 2004 9:42 AM
 To: Tomcat Users List
 Subject: RE: [OT] JAVA_OPTS in catalina.sh
 
 
 I tried with both (build 1.4.2_04-b05, mixed 
 mode)and(1.4.2-b28 mixed mode)
 and under Red Hat Enterprise Linux ES release 2.1(panama) 
 both VM crashes.
 Using Red Hat Linux release 7.2 (Enigma) with (1.4.2-b28 
 mixed mode) works fine.
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Session Mess

2004-04-14 Thread Ralph Einfeldt
Other potential causes:

- Programming errors of programmers that don't understand
  the impact of multi threaded programms in a servlet 
  container on the scoping of variables.

- Caching of proxies between the browser and the server.
  Make shure that you set the headers of the response.
  http://www.mnot.net/cache_docs/ 
  http://www.jguru.com/faq/view.jsp?EID=377page=2
  The real paranoic programmer attaches an unique id to 
  each url that shall not be cached.

 -Original Message-
 From: Matt Woodings [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, April 14, 2004 3:45 PM
 To: Tomcat Users List
 Subject: Re: Session Mess
 
 
 Session crossover is a common problem especially when many 
 people log in
 from the same machine.  The reason for this could be from 
 caching of the
 browser.  What you need to do is to force it to go back to 
 the server and
 get the user the latest information.  One way to do this is 
 to add timestamp
 data and session id in the url of the page, as this is unique 
 to the user,
 and if you run checks on the timestamp etc you can add extra 
 security to
 your site also.  This way you will be able to guarantee that 
 the sessions
 will stop getting crossed and the right info gets put infront 
 of the user.
 
 Matt
 - Original Message - 
 From: shyam [EMAIL PROTECTED]
 To: 'Tomcat Users List' [EMAIL PROTECTED]
 Sent: Wednesday, April 14, 2004 8:17 AM
 Subject: Session Mess
 
 
  Hi All,
 
  I have an application running on tomcat 4.1.24. Recently I have seen
  some cases where the session is getting messed up. When a 
 user logs in ,
  the data shown is for another user. Recently I had some 
 session expiring
  problems as lot of my sessions never expired. I just fixed 
 the bug by
  setting maxInactiveInterval time. Is it because of this the 
 sessions are
  getting messed up or any other reason. Any help would be thankful
 
  Thanks
  shyam
 
 
 
  
 -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Load balancing with apache2, mod_jk2 tomcat 5.0

2004-04-14 Thread Ralph Einfeldt
Some members of this list have reported that the load 
balancing is broken as the instances of mod_jk[2] 
don't know the load of each other. So mod_jk[2] will 
balance to some extend but not as good as it could/should.

 -Original Message-
 From: Thomas D. Zeimet [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, April 14, 2004 4:17 PM
 To: [EMAIL PROTECTED]
 Subject: Load balancing with apache2, mod_jk2  tomcat 5.0
 
 I have set up four tomcat 5.0 servers for load balancing 
 using an apache2
 server and mod_jk2 on RedHat 9.0.  The trouble that I am 
 having is that most of
 the user sessions are routed to only one of the tomcat 
 servers even though the
 lb_factor for all is the same, 10.  All tomcat servers seem 
 to be working since
 I can disable all but one in the workers2.properties file to 
 force that tomcat

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: How does Tomcat manage Form-based authentication?

2004-04-02 Thread Ralph Einfeldt
That information is stored in the session.

So your programm has to include the session id 
that was created by tomcat in the requests (either
as cookie or as query parameter) 

 -Original Message-
 From: Malcolm Warren [mailto:[EMAIL PROTECTED]
 Sent: Friday, April 02, 2004 10:12 AM
 To: Tomcat Users List
 Subject: Re: How does Tomcat manage Form-based authentication?
 
 I'm using an old nuts and bolts programme that actually 
 programmatically sent the Authorization header string 
 for BASIC  authorization, and I'd  like to continue using 
 this programme, but I have to tell the new FORM 
 version that I've already signed in, and I don't know how.
 
 


RE: Threads in Tomcat 5

2004-04-01 Thread Ralph Einfeldt
Tomcat uses a ThreadPool so Threads are recycled.

If you store something in a ThreadLocal it it your 
resposibility to clear the stored values at the end 
of the use. So if you store request variables you 
have to clear them at the end of the request (or 
before storing them at the beginning of the request).

Sadly the the ThreadLocal API has no means to clear 
the state for a thread easily. To clear it, you have 
to know what is stored in ThreadLocals. But as you
describe your application that shouldn't cause a 
problem.

 -Original Message-
 From: Angelov, Rossen [mailto:[EMAIL PROTECTED]
 Sent: Thursday, April 01, 2004 6:27 PM
 To: 'Tomcat Users List'
 Subject: Threads in Tomcat 5
 
 
 Hi,
 
 I'm trying to understand how exactly Tomcat 5 is organized to 
 work with
 threads. Is there any documentation on how the connector is using the
 threads? What happens in the thread pool, how exactly the are 
 threads picked
 from the pool and what is their state? And what happens with 
 the released
 threads?
 
 Our login application is having problems when retrieving data from the
 requests. I was debugging the process by printing out the 
 current thread
 name and the request parameter values. 
 
 Everything works fine when there is a different thread 
 assigned to each
 request:
 request 1
 current thread: http8080-Processor25
 request 2
 current thread: http8080-Processor23
 request 3
 current thread: http8080-Processor22
 
 When  an old thread is used for the new request, things don't 
 work (usually
 the wrong parameter values are returned) and the debug output 
 looks like
 this:
 request 1
 current thread: http8080-Processor25
 request 2
 current thread: http8080-Processor23
 request 3
 current thread: http8080-Processor25
 
 Our application uses ThreadLocal to create a Hashtable with 
 the current
 request parameters as a cache storage. Very often the same 
 thread is used
 for more than one requests, the parameter values are 
 retrieved from the
 cache instead of using the new values. This completely breaks 
 the logic and
 the login process fails.
 
 Thanks,
 Ross
 
 
 This communication is intended solely for the addressee and is
 confidential and not for third party unauthorized distribution.
 
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: tomcat xinetd

2004-04-01 Thread Ralph Einfeldt
Not true.

You also can use xinetd to redirect requests to one port
to another port where tomcat is running:

http://www-106.ibm.com/developerworks/linux/library/l-secjav.html

 -Original Message-
 From: QM [mailto:[EMAIL PROTECTED]
 Sent: Friday, April 02, 2004 12:43 AM
 To: Tomcat Users List
 Subject: Re: tomcat  xinetd
 
 
 
 xinetd works by listening on a given port, then firing up the 
 specified service when a request comes in on that port.
 
snip/
 Even if this were to work, you'd end up starting a new Tomcat server
 for each connection. =)
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: tomcat xinetd

2004-04-01 Thread Ralph Einfeldt

That isn't easy to answer, that depends on your infrastructure
and on your security requirements.

xinetd isn't required. You can achive the same (in the context 
of your question) with iptables (Which is more efficient) or
with commons-daemon:
http://jakarta.apache.org/commons/daemon/

 -Original Message-
 From: Gianni Pucciani [mailto:[EMAIL PROTECTED]
 Sent: Friday, April 02, 2004 9:46 AM
 To: Tomcat Users List
 Subject: Re: tomcat  xinetd
 
 
   Yes, I'v just read this article, but I thought using xinetd not to
 redirect requests (at least for now...) but to filter 
 incoming requests.
 A filter rule on my router is just sufficient? There's no need to use
 xinetd?
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Possible thread crossing

2004-03-25 Thread Ralph Einfeldt
So far so good, but how is the serial number stored 
in the validator bean ?

If the id is stored in an instance variable it may be 
possible that 2 concurrent request in the same session
to any form that uses this bean might cause problems.
(It is possible to change the value between 
jsp:setProperty and isValid())

What exactly is the purpose of the serial id ?


 -Original Message-
 From: Denise Mangano [mailto:[EMAIL PROTECTED]
 Sent: Thursday, March 25, 2004 5:05 PM
 To: Tomcat Users List
 Subject: RE: Possible thread crossing
 
 %@ page import=com.beans.clients.Validator %
 jsp:useBean id=formValidator class=com.beans.clients.Validator
 scope=session/
 % formValidator.reset(); %
 jsp:setProperty name=formValidator property=*/
 
 % if (formValidator.isValid()) {   %
 
 If the form data is not valid it calls Retry.jsp which I have 
 tried two ways:
 1) input type=hidden name=serialNumber
 value=%=formValidator.getSerialNumber()%
 2) input type=hidden name=serialNumber value=123456789
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Possible thread crossing

2004-03-25 Thread Ralph Einfeldt

You have basically this options:
- The error was introduced by the update of the underlying software

- The error was there before and somehow just didn't show
  That is shows up after the update may be coincidence.
  Or it just show because the new system is faster/slower
  than before.

From your description the second one is (in my opinion) most 
likely.

 -Original Message-
 From: Denise Mangano [mailto:[EMAIL PROTECTED]
 Sent: Thursday, March 25, 2004 5:46 PM
 To: Tomcat Users List
 Subject: RE: Possible thread crossing
 
 
 It would appear so, but the strange thing is that I have been 
 using the same program since July of last year.  
 I recently rebuilt my server and
 changed versions of RH, Apache and Tomcat - but my web pages and java
 programs were all restored from back up. This is what's 
 boggling my mind
 - nothing has changed in my application itself and this just started
 happening a few weeks ago...
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Possible thread crossing

2004-03-25 Thread Ralph Einfeldt
Ha ! Gotcha !

That's no instance variable 
It's a class variable 

It is shared by all instances of the bean !!!

change it to:

private String serialNumber=;

 -Original Message-
 From: Denise Mangano [mailto:[EMAIL PROTECTED]
 Sent: Thursday, March 25, 2004 6:14 PM
 To: Tomcat Users List
 Subject: RE: Possible thread crossing
 
 In the bean there is an instance variable:  
   private static String serialNumber=; 
 
 And it is set using the regular set method:
   public void setserialNumber(String sn) { serialNumber = sn; }
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Possible thread crossing

2004-03-25 Thread Ralph Einfeldt

Probably you tried to access the variables from a static method.
(Which isn't static any longer or has been removed or changed in 
way that it doesn't access the variabled)

That the problem shows up only recently may be caused be a change 
in the usage pattern of the site or because your updated environment
has different timings than before.

I also have seen errors that where just not noticed for several
months, than you make a change to the system, look closer at the 
system, see the error and think 'Oh how can this change cause 
such an error.

 -Original Message-
 From: Denise Mangano [mailto:[EMAIL PROTECTED]
 Sent: Thursday, March 25, 2004 6:32 PM
 To: Tomcat Users List
 Subject: RE: Possible thread crossing
 
 
 For the life of me I cannot recall why I made them static!!!  
 There are
 a few other variables that I had static as well.  I want to say that
 when I was writing the program I was getting compile errors 
 stating that
 I cannot reference non-static variables and changing them to static
 allowed the program to compile (major newbie mistake/assumption I am
 sure).
 
 I just created a copy of my program and removed static from the
 serialNumber as well as a few other variables I had made static and
 everything compiled fine.  Very strange though that it has 
 been working
 fine this entire time??? :-/ I guess the next step is to make this
 change in the live program and monitor it very closely...
 
 Thanks again.
 
 
 Denise Mangano
 Complus Data Innovations, Inc.
 914-747-1200
 
 -Original Message-
 From: Ralph Einfeldt [mailto:[EMAIL PROTECTED] 
 Sent: Thursday, March 25, 2004 12:16 PM
 To: Tomcat Users List
 Subject: RE: Possible thread crossing
 
 Ha ! Gotcha !
 
 That's no instance variable 
 It's a class variable 
 
 It is shared by all instances of the bean !!!
 
 change it to:
 
 private String serialNumber=;
 
  -Original Message-
  From: Denise Mangano [mailto:[EMAIL PROTECTED]
  Sent: Thursday, March 25, 2004 6:14 PM
  To: Tomcat Users List
  Subject: RE: Possible thread crossing
  
  In the bean there is an instance variable:  
  private static String serialNumber=;
  
  And it is set using the regular set method:
  public void setserialNumber(String sn) { serialNumber = sn; }
  
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: RE : JSP suggestion

2004-03-24 Thread Ralph Einfeldt

Sorry, but that wouldn't help the original poster.

He is searching for a way to include taglib definitions 
and imports that are used in the pages. Any kind of dynamic 
include or decorators wouldn't achieve that.

 -Original Message-
 From: John Sidney-Woollett [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, March 24, 2004 11:09 PM
 To: Hertenstein Alain
 Cc: Tomcat Users List
 Subject: Re: RE : JSP suggestion
 
 
 Also have a look at OpenSymphony's SiteMesh filter - it does just what
 you're trying to do with your filter explanation here. 
 SiteMesh is VERY
 good!
 
 See http://www.opensymphony.com/sitemesh/
 
 It looks complicated, but it's not, and you can control through an XML
 file which files get filtered or not (by pattern matching URLs).
 
 The real power is that you build your jsp pages and focus on the core
 presentation task in hand, then let the sitemesh filter 
 decorate it by
 extracting your page head, body etc and inserting those 
 elements into a
 template page (for example).
 
 You could have a simple template that just adds extra meta tags, or
 specifies the style sheet or whatever you want.
 
 I've seen no downsides to using it, and speed is good too. 
 Couple it with
 OSCache (http://www.opensymphony.com/oscache/), and you have 
 a couple of
 blinding tools.
 
 Hope that helps.
 
 John Sidney-Woollett
 
 Hertenstein Alain said:
  As for Servlet 2.3 specifications, you could easily create a Servlet
  Filter which would intercept all your requests based on 
 your url-pattern
  (defined in web.xml), and which would do something like :
 
  RequestDispatcher reqDispatcher =
  request.getRequestDispatcher(header.jsp);
  reqDispatcher.include(request, response);
 
  And then let the filter forward to the requested page 
 (chain.doFilter()).
  Thus all your pages would include your header.jsp file 
 (beware not to
  include header.jsp into header.jsp file, or you'll get an 
 infinite loop
  ;-) )
 
  This is quite easy to implement and the best way IMHO. Have 
 a look at the
  http://java.sun.com web site for more info on Servlet 
 Filters, they are
  very handy as soon as you understand how they work.
 
  Hope this helps,
  Alain
 
  -Message d'origine-
  De : Keith Hyland [mailto:[EMAIL PROTECTED]
  Envoyé : mercredi, 24. mars 2004 16:56
  À : Tomcat Users List
  Objet : Re: JSP suggestion
 
 
  Or you can specify a prelude.jspf file in your web.xml (I 
 think this may
  only work with servlet spec 2.4 servers)
 
  (The prelude is added to the top of the file, the coda is 
 added to the
  end of the file)
 
  jsp-config
  
  jsp-property-group
 display-nameallFiles/display-name
 url-pattern*.jsp/url-pattern
 el-ignoredfalse/el-ignored
 scripting-invalidfalse/scripting-invalid
 is-xmlfalse/is-xml
 include-prelude/template/prelude.jspf/include-prelude
 include-coda/template/coda.jspf/include-coda
  /jsp-property-group
  /jsp-config
 
  Keith
 
  Adam Buglass wrote on 24/03/2004, 14:55:
 
I use
   
jsp:include page=header.jsp flush=true /
   
HTH.
Adam.
   
   
On Wed, 2004-03-24 at 14:46, Edson Alves Pereira wrote:
   Hello folks, i´d like to build a default jsp header to all my
 jsp´page, in this header i would put all taglibs and 
 imports i need,
   but iin doubt about which is the best way to do it. Sould i
  make all   others pageextends this header page or do 
 a @ page
  import in every page? Any   idea?   
   Regards,
   Edson
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Possible thread crossing

2004-03-23 Thread Ralph Einfeldt

That the problem is just happening for users that have the 
highest volume, might indicate that you have a threading 
problem. (Like a variable that should only be visible in 
the current request, is visible to concurrent requests)

If there is a threading problem it's most likely in your 
application or a third party software. (I wouldn't bet that 
tomcat isn't having such issues, but it is much less likely)

Can you show how you set the id in the jsp ?
Can you show a example how you process the jsp ?
If you can't make it public, you may post it to me directly 
(No guarantee how much time I will have to look at it).

The memory that is used by your java is very unlikely to 
cause such symptoms. (In certain instances it may indirectly
affect the problem by increasing the runtime for each request
and this way rising the probability that requests are
processed concurrently)

 -Original Message-
 From: Denise Mangano [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, March 24, 2004 6:02 AM
 To: Tomcat Users List
 Subject: RE: Possible thread crossing
 
 
 I just wanted to point out again that this data appears to be getting
 crossed only with the clients that have the highest 
 volume This is
 why I am thinking it's a java/Tomcat issue.  Perhaps my java 
 isn't using
 enough memory? (old-newbie guess?)  How would I check something like
 that, and if it is too low how do I increase it?
 
 Thanks again. 
 
 
 Denise Mangano
 Complus Data Innovations, Inc.
 914-747-1200
 
 -Original Message-
 From: Denise Mangano 
 Sent: Tuesday, March 23, 2004 11:53 PM
 To: Tomcat Users List
 Subject: RE: Possible thread crossing
 
 Can I please verify something?  This webapp has been live since last
 year and I have never had this problem.  I recently reformatted my
 server changing versions of Tomcat, Apache and RH.  The 
 programs and web
 pages I am using are the same - pulled from backups so nothing has
 changed.
 
 This is my java program structure:  /com/beans/transaction/*.java.
 
 The pages accessing these programs are located in: 
   /webapps/ROOT/clients/client1 
   /webapps/ROOT/clients/client2
   etc...
 
 When someone goes to client one and accesses the java program an
 individual instance of the program is created, correct?  So if user 1
 starts a transaction from /client1 and user 2 starts a 
 transaction from
 /client2 each user has it's own instance of the java program running -
 so technically data from one instance should not be finding 
 it's way to
 another.  I made some changes to my webapp but this still 
 appears to be
 happening.
 
 Nix:
 1.  Network sniffer?  If I add some debugging code to my java 
 program is
 this what you mean? Or is there a tool I can actually use?
 2.  The two key variables are a transaction number and this serial
 number.  Both are hard coded into the JSP pages and are not changed by
 anything in either my JSP or my java program.  Only variables that
 change are personal info (i.e. address).
 
 Thanks.
 
 
 Denise Mangano
 Complus Data Innovations, Inc.
 914-747-1200
 
 -Original Message-
 From: Nikola Milutinovic [mailto:[EMAIL PROTECTED]
 Sent: Monday, March 22, 2004 1:13 AM
 To: Tomcat Users List
 Subject: Re: Possible thread crossing
 
 Denise Mangano wrote:
 
  The only thing I can narrow it down to is Tomcat/Java.  Like I said 
  the serial numbers are hard coded on the jsp pages.  Everytime this 
  jsp page is submitted it forms its own instance of my java 
 bean which 
  can be called one or more times.  So I guess my question is - is it 
  possible that somehow information from one thread is leaking to
 another thread?
 
 So, not only data is leaking, but always the same data. That is
 possible, but sooo unlikely. I'd do two things.
 
 1: setup network sniffer, see the actual data being sent
 2: look for some static/instance variables being updated in those JSPs
 
 Nix.
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Horrible memory leak in tomcat 5.0.19 (JMX bug?)

2004-03-21 Thread Ralph Einfeldt
To your question: I don't know.

Having a delay in the jsp (or servlet) isn't enough to
enshure concurrent requests. You have to do something 
on the calling site to enforce this.

If you just call lynx as in your example, lynx will
wait until the response is there. So if you delay the 
jsp, you just delay the return of lynx.

So you have either to run more than one instace of your 
script at the same time or to extend the scrip in a way
that it runs several lynx instances at the same time.


 -Original Message-
 From: Joseph Shraibman [mailto:[EMAIL PROTECTED]
 Sent: Friday, March 19, 2004 7:21 PM
 To: Tomcat Users List
 Subject: Re: Horrible memory leak in tomcat 5.0.19 (JMX bug?)
 
 Why are those message generated by a thread starting up or something? 
 If so I already have a jsp with a built in delay I can use to 
 make sure there are a bunch of requests at the same time
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Horrible memory leak in tomcat 5.0.19 (JMX bug?)

2004-03-18 Thread Ralph Einfeldt
That may be a bit to simple, as this is just performing one 
request after the other. You may have to force concurrent 
request:

i=1
while [ $i -lt 2 ] ; do
  j=1 
  while [ $j -lt 10 ] ; do
# start lynx in background
lynx -source $URL  /dev/null 
j=`expr $j + 1`
  done
  wait # until all background tasks returned
  i=`expr $i + 1`
done

You may also have a look at ab or jMeter.
They allow for a better test than home grown test like yours.
(My enhancement might not help much, as the result of the script
depends to a degree on the time that lynx needs to start.)

 -Original Message-
 From: Joseph Shraibman [mailto:[EMAIL PROTECTED]
 Sent: Thursday, March 18, 2004 8:32 PM
 To: Tomcat Users List
 Subject: Re: Horrible memory leak in tomcat 5.0.19 (JMX bug?)
 
 
 My test to try to reproduce this bug was:
 i=1
 while [ $i -lt 2 ] ; do
 lynx -source $URL  /dev/null
 i=`expr $i + 1`
 done
 
 ... where I changed $URL to point to different servlets or jsps.
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[OT] Filter version of mod_security

2004-03-17 Thread Ralph Einfeldt
I just stumbled across the following link:

http://www.modsecurity.org/products/modsecurity/java/index.html

If somebody thinks it's interesting [s]he can keep it :), 
otherwise forget it :{.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: CPU Binding ?

2004-03-17 Thread Ralph Einfeldt
That is not a matter of tomcat but of the jvm and the os.

If the jvm uses more than one cpu on this os tomcat will 
do the same.

- What jvm are you using (vendor / version) ?
- Which jvm options do you set ?

 -Original Message-
 From: John Hilton - CPX COA [mailto:[EMAIL PROTECTED]
 Sent: Thursday, March 18, 2004 8:54 AM
 To: [EMAIL PROTECTED]
 Subject: CPU Binding ?
 
 
 Does anyone know how one sets Tomcat 4.0.6 to utilise more 
 than one CPU in a multiple CPU machine.
  
 Tomcat is running on Windows Server 2003 on a 4CPU IBM 
 machine, and all the utilisation graphs indicate that the 
 tomcat service is only using one CPU, I have trawled the 
 documentation and cant seem to spot the config details to 
 do this ?
  

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: problem with mod_jk 1.2: error in action code

2004-03-15 Thread Ralph Einfeldt
I don't see any reason why an object in the context
should have any thing to do with the stacktrace.

What makes you think that they are related ?

What makes you think that the pool is lost ?
(context.getAttribute(AttribName) == null ?)

Or do you just don't get connections from the pool ?

Or are the connections you get from your pool just invalid ?

Or what else happens ?


 -Original Message-
 From: Michael Görlich (CSC) [mailto:[EMAIL PROTECTED]
 Sent: Friday, March 12, 2004 7:14 PM
 To: Tomcat Users List
 Subject: AW: problem with mod_jk 1.2: error in action code
 
 I programmed a connection pool by myself as an object, that I 
 put into a
 global variable by  context.setAttribute(myConnectionPool).
 
 The lost of the pool is a subsequent error, that occures as a 
 reason of the
 error in the action code of the coyote connector.
 
 In the mysql logs there is nothing to see about errors.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Tomcat5 can not use JRockit

2004-03-15 Thread Ralph Einfeldt

Tomcat doesn't require a certain jvm (as long as it has the right vdk version).

Do you start tomcat as a service ?

 -Original Message-
 From: stanley [mailto:[EMAIL PROTECTED]
 Sent: Monday, March 15, 2004 2:44 PM
 To: [EMAIL PROTECTED]
 Subject: Tomcat5 can not use JRockit
 
 
 Hi everyone:
 When I install tomcat5 (windows2000) , at the step of 
 selecting JVM, it found the path of JRockit (because i have 
 set the JAVA_HOME to jrockit), but it says: no JAVA virtual 
 machine found
 the command of JRockit such as java, javac can work...
 
does tomcat must use HotSpot as jvm?
 
  stanley
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Tomcat5 can not use JRockit

2004-03-15 Thread Ralph Einfeldt
The startup script expect a certain structure inside JAVA_HOME:

%JAVA_HOME%\bin\java
%JAVA_HOME%\bin\javac
%JAVA_HOME%\bin\javaw

Is this met by your installation of jrockit ?

How do you set JAVA_HOME ?

 -Original Message-
 From: stanley [mailto:[EMAIL PROTECTED]
 Sent: Monday, March 15, 2004 2:54 PM
 To: Tomcat Users List
 Subject: Re: Tomcat5 can not use JRockit
 
 
 No , I do not start it as a service but as normal program
 but When I install tomcat, it fails because the problem I 
 mentioned in last email(No jvm found)
 the version I download is Binary version for windows
 
 - Original Message - 
 From: Ralph Einfeldt [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Monday, March 15, 2004 9:48 PM
 Subject: RE: Tomcat5 can not use JRockit
 
 
 
 Tomcat doesn't require a certain jvm (as long as it has the 
 right vdk version).
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Dump HTTP Request and Response Headers

2004-03-12 Thread Ralph Einfeldt

One tomcat tool is the RequestDumperValve.

http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/valve.html

(The doc is a bit sparse, so it needs some testing
what is logged and if that is enough)

 -Original Message-
 From: Adam Hardy [mailto:[EMAIL PROTECTED]
 Sent: Friday, March 12, 2004 10:24 AM
 To: Tomcat Users List
 Subject: Re: Dump HTTP Request and Response Headers
 
 
 Server-side, it's easy for request headers - you can getHeaders() to 
 obtain an Enumeration of them. But for the response headers, 
 it's only  possible to see what they are if you already know what you 
 are looking for (response.containsHeader()?)
 
 If you look in the archives, someone one mentioned a logging 
 tool that sounded handy. Some sort of snooper it sounded like.
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: problem with mod_jk 1.2: error in action code

2004-03-12 Thread Ralph Einfeldt
I don't think that this message has anything to with the lost
connection pool. 

(Do you really mean 'connection pool' and not just 'connection' ?)

If you lose your connection, it may be caused by the databaseserver 
that cancels idle connections after a while. 
Look for validationQuery in:
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/jndi-resources-howto.html

The message in the mod_jk.log is typically indication that a browser 
was closed while tomcat was sending an answer.

I'm not shure if the message in catalina.out is related to that.

 -Original Message-
 From: Michael Görlich (CSC) [mailto:[EMAIL PROTECTED]
 Sent: Friday, March 12, 2004 4:53 PM
 To: Tomcat Mailinglist
 Subject: problem with mod_jk 1.2: error in action code
 
 I've got problems with a tomcat web application, that establishes a
 connection pool to a database (mysql).
 This connection pool is lost after an unspecified period of 
 time the system wasn't used (f.e. 8 houres).
 
 10.03.2004 15:59:58 org.apache.jk.server.JkCoyoteHandler action
 SCHWERWIEGEND: Error in action code
 java.net.SocketException: Broken pipe

 The log in mod_jk.log shows the following:
 
 [Wed Mar 10 15:59:58 2004] [jk_ajp_common.c (1052)]: ERROR 
 sending data to client. Connection aborted or network problems
 [Wed Mar 10 15:59:58 2004] [jk_ajp_common.c (1303)]: ERROR: Client
 connection aborted or network problems
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: url-pattern pb in security constraints

2004-03-11 Thread Ralph Einfeldt
According to the spec (Chapter 11.2):

spec
A string beginning with a / character and ending 
with a /* postfix is used for path mapping.

A string beginning with a *. prefix is used as an 
extension mapping.

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.

All other strings are used for exact matches only. 
/spec

So /pages/*.jsp is not a valid pattern mapping.
It's just *.jsp or /pages/*

 -Original Message-
 From: Boulay Arnaud [mailto:[EMAIL PROTECTED]
 Sent: Thursday, March 11, 2004 10:26 AM
 To: [EMAIL PROTECTED]
 Subject: url-pattern pb in security constraints
 
 
   url-pattern/pages/secret1/*.jsp/url-pattern
   url-pattern/pages/*.jsp/url-pattern
 


RE: redirect and request´s attributes doubts

2004-03-11 Thread Ralph Einfeldt

A redirect creates a new request.

If you want to pass informations across a redirect
you can use url parameters in the redirect url.

Maybe it's is an option to you to forward to the jsp, 
then no new request is created.

 -Original Message-
 From: Edson Alves Pereira [mailto:[EMAIL PROTECTED]
 Sent: Thursday, March 11, 2004 2:15 PM
 To: 'Tomcat-User List'
 Subject: redirect and request´s attributes doubts
 
 
   Hello dudes, i´m trying to set some attributes to a 
 request in my
 servlet, that´s pretty easy as you know, but after i must use 
 redirect to a
 JSP page and when i try to recall those attributes created before they
 doesn´t appear in JSP´s request object. Even thought i set a request´s
 attribute and use redirect i cannot get it again, can i?
 
   Regards,
   Edson
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: redirect and request´s attributes doubts

2004-03-11 Thread Ralph Einfeldt
That has been answered 40 Minutes ago:

A redirect creates a new request.

If you want to pass informations across a redirect
you can use url parameters in the redirect url.

Maybe it's is an option to you to forward to the jsp, 
then no new request is created.

 -Original Message-
 From: Edson Alves Pereira [mailto:[EMAIL PROTECTED]
 Sent: Thursday, March 11, 2004 3:00 PM
 To: 'Tomcat-User List'
 Subject: redirect and request´s attributes doubts
 
 
   Hello dudes, i´m trying to set some attributes to a 
 request in my
 servlet, that´s pretty easy as you know, but after i must use 
 redirect to a
 JSP page and when i try to recall those attributes created before they
 doesn´t appear in JSP´s request object. Even thought i set a request´s
 attribute and use redirect i cannot get it again, can i?
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: doubts about attributes

2004-03-11 Thread Ralph Einfeldt
That is the fourth mail with the same question.
2 times it has been answered.

Didn't you like the answer, didn't you receive it ?

 -Original Message-
 From: Edson Alves Pereira [mailto:[EMAIL PROTECTED]
 Sent: Thursday, March 11, 2004 8:06 PM
 To: 'Tomcat-User List'
 Subject: doubts about attributes
 
 
   Hello dudes, i´m trying to set some attributes to a 
 request in my
 servlet, that´s pretty easy as you know, but after i must use 
 redirect to a
 JSP page and when i try to recall those attributes created before they
 doesn´t appear in JSP´s request object. Even thought i set a request´s
 attribute and use redirect i cannot get it again, can i?
 
   Regards,
   Edson
 
 
 
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



  1   2   3   4   5   6   7   8   9   10   >