Re: is it ok to run tomcat 3.3 in jre 1.4?

2006-02-16 Thread Parsons Technical Services
Yes. By the nature of the design, Java is almost always backward compatible 
in that older software will run on newer versions. As usual there are 
sometimes exceptions to this.


If you are going to change Java version, you may wish to change it to the 
current version. 1.5 is very stable, compatible and reported to be much 
faster.


Again there are never any guarantees. Only by doing it will you know for 
sure.


Doug


- Original Message - 
From: Akoulov, Alexandre [EMAIL PROTECTED]

To: Tomcat Users List users@tomcat.apache.org
Sent: Wednesday, February 15, 2006 11:08 PM
Subject: is it ok to run tomcat 3.3 in jre 1.4?


Hi all,

we need to urgently fix one web app that runs in tc 3/ java 1.3. The fix is 
only available with java 1.4.


My question is: can we run tomcat 3.3 in java 1.4.2_10

Kind regards,

Sasha.

-Original Message-
From: Caldarale, Charles R [mailto:[EMAIL PROTECTED]
Sent: Thursday, 16 February 2006 2:58 PM
To: Tomcat Users List
Subject: RE: New to apache / Tomcat



From: Andrew English [mailto:[EMAIL PROTECTED]
Subject: RE: New to apache / Tomcat

Could it be they are running both?


Certainly could be, but I would have to wonder why...


I looked through all the jboss folders and found nothing related to
catalina just the files which make up the web site itself.


I suppose it could be just left-over naming from some ambitious full
J2EE project that ended up needing only Servlet/JSP capabilities.

What are the dates on some of the files?  Tomcat 4.0.3 came out in the
spring of 2002, whereas JBoss 4.0.3 is fairly recent (mid-year 2005, SP1
in the fall).

You might try downloading whichever one corresponds to the dates you
find, and comparing the directory structure of that with what you've got
in hand.  The Tomcat 4.0.3 archive is here:
http://archive.apache.org/dist/tomcat/tomcat-4/archive/v4.0.3/

- Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
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: Assistance required

2006-02-16 Thread Medha Parathasarathy
I have gone through the server.xml model given by the tomcat site.
However when i try to test the connectivity using a java program :


import java.sql.*;

public class jdbc
{
public static void main(String args[]) throws Exception
{
Class.forName(com.mysql.jdbc.Driver);
Connection con = 
DriverManager.getConnection(jdbc:mysql://localhost/B2BData);
Statement st = con.createStatement();
ResultSet rs = st.executeQuery(select * from admuser);
while(rs.next())
{
System.out.println(rs.getString(1));
}
con.close();
}
}

===
when i compile the program with javac jdbc.java no eror is given however
when i run the program i get the following errors :

java ./jdbc
Exception in thread main java.lang.NoClassDefFoundError: ./jdbc
   at gnu.java.lang.MainThread.run() (/usr/lib64/libgcj.so.6.0.0)
Caused by: java.lang.ClassNotFoundException: ./jdbc
   at java.lang.Class.forName(java.lang.String, boolean,
   java.lang.ClassLoader) (/usr/lib64/libgcj.so.6.0.0)
   at gnu.java.lang.MainThread.run() (/usr/lib64/libgcj.so.6.0.0)

Now i donot know what to do further.

Regards


Sarathy


On Thu, 16 Feb 2006 15:41:49 +0530, Awaneesh Shatmanyu
[EMAIL PROTECTED] said:
 Hi,
 
 You can visit the site www.coreservlets.com , it will help to configure
 the Tomcat.
 You would be able to get the examples of server.xml and web.xml too.
 
 Regards,
 Awaneesh Shatmanyu
 
 
 
 -Original Message-
 From: Medha Parathasarathy [mailto:[EMAIL PROTECTED] 
 Sent: Thursday, February 16, 2006 11:29 AM
 To: Tomcat Users List
 Subject: Assistance required
 
 Hi,
 
 I am new to tomcat. I am trying to configure tomcat, jdbc and mysql. I
 am facing problem in the configuration of jdbc. Can some body assist me
 with a prototype of server.xml and web.xml
 
 environement fedore core4 
 
 regards
 
 
 -- 
 http://www.fastmail.fm - A no graphics, no pop-ups email service
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 This email may contain confidential or privileged information for the 
 intended recipient(s) and the views expressed in the same are not 
 necessarily the views of Zensar Technologies Ltd. If you are not the
 intended 
 recipient or have received this e-mail by error, its use is strictly 
 prohibited, please delete the e-mail and notify the sender. Zensar 
 Technologies Ltd. does not accept any liability for virus infected mails.
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 

-- 
http://www.fastmail.fm - Access all of your messages and folders
  wherever you are


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



RE: Assistance required

2006-02-16 Thread Medha Parathasarathy
I have gone through the server.xml model given by the tomcat site.
However when i try to test the connectivity using a java program :


import java.sql.*;

public class jdbc
{
public static void main(String args[]) throws Exception
{
Class.forName(com.mysql.jdbc.Driver);
Connection con = 
DriverManager.getConnection(jdbc:mysql://localhost/B2BData);
Statement st = con.createStatement();
ResultSet rs = st.executeQuery(select * from admuser);
while(rs.next())
{
System.out.println(rs.getString(1));
}
con.close();
}
}

===
when i compile the program with javac jdbc.java no eror is given however
when i run the program i get the following errors :

java ./jdbc
Exception in thread main java.lang.NoClassDefFoundError: ./jdbc
   at gnu.java.lang.MainThread.run() (/usr/lib64/libgcj.so.6.0.0)
Caused by: java.lang.ClassNotFoundException: ./jdbc
   at java.lang.Class.forName(java.lang.String, boolean,
   java.lang.ClassLoader) (/usr/lib64/libgcj.so.6.0.0)
   at gnu.java.lang.MainThread.run() (/usr/lib64/libgcj.so.6.0.0)

Now i donot know what to do further.

Regards


Sarathy


On Thu, 16 Feb 2006 15:41:49 +0530, Awaneesh Shatmanyu
[EMAIL PROTECTED] said:
 Hi,
 
 You can visit the site www.coreservlets.com , it will help to configure
 the Tomcat.
 You would be able to get the examples of server.xml and web.xml too.
 
 Regards,
 Awaneesh Shatmanyu
 
 
 
 -Original Message-
 From: Medha Parathasarathy [mailto:[EMAIL PROTECTED] 
 Sent: Thursday, February 16, 2006 11:29 AM
 To: Tomcat Users List
 Subject: Assistance required
 
 Hi,
 
 I am new to tomcat. I am trying to configure tomcat, jdbc and mysql. I
 am facing problem in the configuration of jdbc. Can some body assist me
 with a prototype of server.xml and web.xml
 
 environement fedore core4 
 
 regards
 
 
 -- 
 http://www.fastmail.fm - A no graphics, no pop-ups email service
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 This email may contain confidential or privileged information for the 
 intended recipient(s) and the views expressed in the same are not 
 necessarily the views of Zensar Technologies Ltd. If you are not the
 intended 
 recipient or have received this e-mail by error, its use is strictly 
 prohibited, please delete the e-mail and notify the sender. Zensar 
 Technologies Ltd. does not accept any liability for virus infected mails.
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 

-- 
http://www.fastmail.fm - Access your email from home and the web


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



Re: Assistance required

2006-02-16 Thread Medha Parathasarathy
I am using tomcat 5 which come along the fedora core 4

Regards


Sarathy
On Thu, 16 Feb 2006 03:02:34 -0500, Parsons Technical Services
[EMAIL PROTECTED] said:
 Search the archives as this has been done many times on the list. Links
 are 
 available on the website along with some basic instructions.
 
 Secondly we would also need the Tomcat version you are running in order
 to 
 assist you.
 
 Doug
 
 - Original Message - 
 From: Medha Parathasarathy [EMAIL PROTECTED]
 To: Tomcat Users List users@tomcat.apache.org
 Sent: Thursday, February 16, 2006 12:58 AM
 Subject: Assistance required
 
 
  Hi,
 
  I am new to tomcat. I am trying to configure tomcat, jdbc and mysql. I
  am facing problem in the configuration of jdbc. Can some body assist me
  with a prototype of server.xml and web.xml
 
  environement fedore core4
 
  regards
 
 
  -- 
  http://www.fastmail.fm - A no graphics, no pop-ups email service
 
 
  -
  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]
 

-- 
http://www.fastmail.fm - Accessible with your email software
  or over the web


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



RE: Assistance required

2006-02-16 Thread Klotz Jr, Dennis
Just in case you missed them, study the following links. There is a
wealth of information here:

http://tomcat.apache.org/faq/

and of course

http://tomcat.apache.org/tomcat-5.5-doc/index.html


-Original Message-
From: Medha Parathasarathy [mailto:[EMAIL PROTECTED] 
Sent: Thursday, February 16, 2006 12:59 AM
To: Tomcat Users List
Subject: Assistance required

Hi,

I am new to tomcat. I am trying to configure tomcat, jdbc and mysql. I
am facing problem in the configuration of jdbc. Can some body assist me
with a prototype of server.xml and web.xml

environement fedore core4 

regards


-- 
http://www.fastmail.fm - A no graphics, no pop-ups email service


-
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]



Multiple Sessions per user

2006-02-16 Thread Daniel Guggi
Hi!

I ran into session-issue with a webapp. There are situations when it
would be nice for a user (same browser/same machine/same webapp) to have
the possibility to login twice and thus have two different JSESSIONIDs.

There is also a problem if the user opens a second browser-window or
-tab, because the user may change session-data in the one window and
thus will have invalid data in the other window afterwards.

Example:
He user is logged and requests a jsp-page that has the following
session-bean:
jsp:useBean id=someBean scope=session class=someClass /

The user also opens the jsp-page in another browser-window (or -tab).
Now he starts editing the data (provided in the form) in one of those
windows and then submits it to the server. The server verifies and
afterwards stores the data in db. As a result the session-variable
someBean gets reloaded/updated.

If the user now tries to update the date in the other window, there will
be a problem, because the session-data someBean has already been
updated and the user is going to send outdated information to the
server.

What are the possible solutions to this issue(s)?

Maybe the RSEF (the rudimental servlet extension framework)
(http://java.sun.com/developer/technicalArticles/Servlets/ServletControl/) 
would help me with creating multiple sessions for the same users?

And how would someone solve the problem with the problem of multiple
browser windows?

TIA,
Daniel





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



Reg: J2SE 1.4 and Tomcat5.5 compatability package

2006-02-16 Thread Ayyanar Inbamohan
Hi,
   
  I am using J2SE 1.4 and Tomcat 5.5,
  What is the compatability package I should add in the Tomcat 5.5 server to 
work with
  J2SE 1.4.
   
   
  Thanks in advance,
  Ayyanar...


-
 Yahoo! Autos. Looking for a sweet ride? Get pricing, reviews,  more on new 
and used cars.

RE: J2SE 1.4 and Tomcat5.5 compatability package

2006-02-16 Thread Caldarale, Charles R
 From: Ayyanar Inbamohan [mailto:[EMAIL PROTECTED] 
 Subject: Reg: J2SE 1.4 and Tomcat5.5 compatability package
 
   I am using J2SE 1.4 and Tomcat 5.5,
   What is the compatability package I should add in the 
 Tomcat 5.5 server to work with J2SE 1.4.

It's the one on the Tomcat download page cleverly hidden under the name
JDK 1.4 Compatability Package.

http://tomcat.apache.org/download-55.cgi

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

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



Best practice for detecting session expiration for applets?

2006-02-16 Thread Klotz Jr, Dennis
This might be off topic but I am hoping someone has the time to help me
out.

I recently moved from basic to forms based authentication and I am
having some problems with session expiration and my applets.

I serialize plain old java objects back and forth from my client applet
to tomcat 5.5.15 and now I am trying to recognize at the client when a
session has expired, instead of simply getting a nasty exception about
EOF on stream etc.

I'm hoping someone can give me a couple of pointers on what I should do
to handle this from an applet.

Should I do a 'normal' GET or POST heartbeat before the serialization
attempt? (really don't like this idea)?

Should I try and use HttpURLConnections getResponseCode()? (it doesn't
seem to work as I would expect).

Should I use the jakarata commons http client project?  (Seems like
overkill)

Here is an example of the code followed by the exception I get on the
client side:

--

HttpURLConnection con = (HttpURLConnection)servlet.openConnection
();
Object o = null;

// Prepare for both input and output
con.setDoInput (true);
con.setDoOutput (true);

// Turn off caching
con.setUseCaches (false);

// Set the content type to be application/x-java-serialized-object
con.setRequestProperty (Content-Type,
application/x-java-serialized-object);

// Send headers
sendHeaders (con);

// Write the serialized object as post data
ObjectOutputStream out = new ObjectOutputStream (con.getOutputStream
());
out.writeObject (obj);
out.flush ();
out.close ();

InputStream in = con.getInputStream ();

int status = con.getResponseCode ();
System.out.println (this.getClass ().getName () +  : INFO :  +
status);
if ((status == con.HTTP_UNAUTHORIZED) ||
(status == con.HTTP_NOT_AUTHORITATIVE) ||
(status == con.HTTP_FORBIDDEN))
{
System.out.println (this.getClass ().getName () +  : WARNING :
Session timed out !!??  );
// TODO: do something useful here. Send custom exception up...
}

ObjectInputStream result = new ObjectInputStream (in);
try
{
o = result.readObject ();
}
catch 
... (snip) ...
finally 
{
in.close();
result.close();
}
  
return (o);

-

java.io.EOFException
at java.io.ObjectInputStream$PeekInputStream.readFully(Unknown
Source)
at
java.io.ObjectInputStream$BlockDataInputStream.readShort(Unknown Source)
at java.io.ObjectInputStream.readStreamHeader(Unknown Source)
at java.io.ObjectInputStream.init(Unknown Source)
at
com.empirix.hm.callq.client.common.HttpMessage.sendPostMessage(HttpMessa
ge.java:212)
at
com.empirix.hm.callq.client.common.CallQSerializeData.sendViaHttp(CallQS
erializeData.java:102)

--

Regards,

Dennis Klotz



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



RE: Multiple Sessions per user

2006-02-16 Thread Peter Crowther
 From: Daniel Guggi [mailto:[EMAIL PROTECTED] 
 I ran into a session-issue with a webapp. There are situations when it
 would be nice for a user (same browser/same machine/same 
 webapp) to have
 the possibility to login twice and thus have two different 
 JSESSIONIDs.

If you use cookies to store the JSESSIONID, they're common to each
browser process (for in-memory) or across all browser processes (for
on-disk) cookies.  So one approach that I use when testing webapps is to
start two processes and ensure the cookies are in-memory.  Unless you're
using multiple client processes, I'm not aware of any cookie-based
approach that'll work.

If you embed the JSESSIONID in the URL using URL rewriting, then you
could arbitrarily elect to change the embedded JSESSIONID in a response
that you returned to the user.  However, you have all the usual fun
issues of copy/paste URLs, favourites, and so on.

A third approach would be to manage your sessions yourself, using custom
code.  There may be libraries out there that help with this, but I've
not needed to do it and therefore don't know any.

- Peter

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



RE: Best practice for detecting session expiration for applets?

2006-02-16 Thread Klotz Jr, Dennis
More information:

The code I'm using to get the response code always comes back with http
status 200. The very next line:

ObjectInputStream result = new ObjectInputStream (in);

Is the one that generates the exception of EOF on stream.

Makes perfect sense... I just wish I had a reliable way of detecting at
the applet level when the session has expired...

On the server side I get an exception as it is attempting to send the
client the login form, but of course the applet is trying to send an
object and the server chokes:

---

Feb 16, 2006 8:35:47 AM org.apache.catalina.connector.CoyoteAdapter
service
SEVERE: An exception or error occurred in the container during the
request processing
java.lang.NullPointerException
at
org.apache.tomcat.util.buf.ByteChunk.append(ByteChunk.java:324)
at
org.apache.catalina.authenticator.FormAuthenticator.saveRequest(FormAuth
enticator.java:487)
at
org.apache.catalina.authenticator.FormAuthenticator.authenticate(FormAut
henticator.java:236)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authenticator
Base.java:490)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:541
)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
:126)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
:105)
at
org.apache.catalina.authenticator.SingleSignOn.invoke(SingleSignOn.java:
419)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.
java:107)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:1
48)



Any ideas are greatly appreciated.

Thanks.

-Dennis

-Original Message-
From: Klotz Jr, Dennis [mailto:[EMAIL PROTECTED] 
Sent: Thursday, February 16, 2006 8:29 AM
To: Tomcat Users List
Subject: Best practice for detecting session expiration for applets?

This might be off topic but I am hoping someone has the time to help me
out.

I recently moved from basic to forms based authentication and I am
having some problems with session expiration and my applets.

I serialize plain old java objects back and forth from my client applet
to tomcat 5.5.15 and now I am trying to recognize at the client when a
session has expired, instead of simply getting a nasty exception about
EOF on stream etc.

I'm hoping someone can give me a couple of pointers on what I should do
to handle this from an applet.

Should I do a 'normal' GET or POST heartbeat before the serialization
attempt? (really don't like this idea)?

Should I try and use HttpURLConnections getResponseCode()? (it doesn't
seem to work as I would expect).

Should I use the jakarata commons http client project?  (Seems like
overkill)

Here is an example of the code followed by the exception I get on the
client side:

--

HttpURLConnection con = (HttpURLConnection)servlet.openConnection
();
Object o = null;

// Prepare for both input and output
con.setDoInput (true);
con.setDoOutput (true);

// Turn off caching
con.setUseCaches (false);

// Set the content type to be application/x-java-serialized-object
con.setRequestProperty (Content-Type,
application/x-java-serialized-object);

// Send headers
sendHeaders (con);

// Write the serialized object as post data
ObjectOutputStream out = new ObjectOutputStream (con.getOutputStream
());
out.writeObject (obj);
out.flush ();
out.close ();

InputStream in = con.getInputStream ();

int status = con.getResponseCode ();
System.out.println (this.getClass ().getName () +  : INFO :  +
status);
if ((status == con.HTTP_UNAUTHORIZED) ||
(status == con.HTTP_NOT_AUTHORITATIVE) ||
(status == con.HTTP_FORBIDDEN))
{
System.out.println (this.getClass ().getName () +  : WARNING :
Session timed out !!??  );
// TODO: do something useful here. Send custom exception up...
}

ObjectInputStream result = new ObjectInputStream (in);
try
{
o = result.readObject ();
}
catch 
... (snip) ...
finally 
{
in.close();
result.close();
}
  
return (o);

-

java.io.EOFException
at java.io.ObjectInputStream$PeekInputStream.readFully(Unknown
Source)
at
java.io.ObjectInputStream$BlockDataInputStream.readShort(Unknown Source)
at java.io.ObjectInputStream.readStreamHeader(Unknown Source)
at java.io.ObjectInputStream.init(Unknown Source)
at
com.empirix.hm.callq.client.common.HttpMessage.sendPostMessage(HttpMessa
ge.java:212)
at
com.empirix.hm.callq.client.common.CallQSerializeData.sendViaHttp(CallQS
erializeData.java:102)

--

Regards,

Dennis Klotz



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

re: trying to make sense of thread dump in Tomcat 5.5.9

2006-02-16 Thread James Black
-BEGIN PGP SIGNED MESSAGE-
Hash: RIPEMD160

We are using Tomcat 5.5.9, and am having a problem with a memory leak.
Most of the threads in the thread dump have the similar stack trace as
this one does.

It doesn't make sense, because it seems that the ldap connection came
from the tomcat server, not from a web application.

We don't have any authentication set up to go to the ldap from the
Tomcat container, I do all my authenticating explicitly, through my web
applications.

How can I track down what is the cause of threads blocking going to the
ldap?

Thank you for any help.

Thread-21964 daemon prio=10 tid=0x0063aac8 nid=0x55dc runnable
[0x6567f000..0x6567fa10]
at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.read(SocketInputStream.java:129)
at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
at java.io.BufferedInputStream.read1(BufferedInputStream.java:256)
at java.io.BufferedInputStream.read(BufferedInputStream.java:313)
- locked 0xaaf005c8 (a java.io.BufferedInputStream)
at com.sun.jndi.ldap.Connection.run(Connection.java:780)
at java.lang.Thread.run(Thread.java:595)

- --
Love is mutual self-giving that ends in self-recovery. Fulton Sheen
James Black[EMAIL PROTECTED]
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFD9IG1ikQgpVn8xrARA5eKAKCNUdAib9mAzSWHJiR5Kka+pBR+7wCaAiJp
8zIzvCV8yqdM8SoSeccVS6w=
=yPeA
-END PGP SIGNATURE-

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



Re: Tomcat 5.5.15 Context Reloading issue

2006-02-16 Thread Filip Hanik - Dev Lists
Looks like a log4j error, not Tomcat error. What does your 
log4j.properties file look like?


Filip


Joey Geiger wrote:

I've done some further searching, and noticed that tomcat was also dumping
information into stdout. There is another log trace that might be helpful if
anyone else recognizes the problem. I'm of the belief that this is a bug of
some sort, but I don't know who to pass the information along to.

 


Also, I tried adding information into the context docbase, and it had no
effect on the problem. I also removed all log4j files that I had added to
the configuration. Again, this wasn't happening with tomcat 5.5.12, but
started after I began to use 5.5.15.

 


Thanks.

 

 


log4j:ERROR Error occured while converting date.

java.lang.NullPointerException

at java.lang.System.arraycopy(Native Method)

at
java.lang.AbstractStringBuilder.getChars(AbstractStringBuilder.java:331)

at java.lang.StringBuffer.getChars(StringBuffer.java:202)

at
org.apache.log4j.helpers.AbsoluteTimeDateFormat.format(AbsoluteTimeDateForma
t.java:117)

at java.text.DateFormat.format(DateFormat.java:314)

at
org.apache.log4j.helpers.PatternParser$DatePatternConverter.convert(PatternP
arser.java:444)

at
org.apache.log4j.helpers.PatternConverter.format(PatternConverter.java:64)

at org.apache.log4j.PatternLayout.format(PatternLayout.java:503)

at
org.apache.log4j.WriterAppender.subAppend(WriterAppender.java:301)

at
org.apache.log4j.WriterAppender.append(WriterAppender.java:159)

at
org.apache.log4j.AppenderSkeleton.doAppend(AppenderSkeleton.java:230)

at
org.apache.log4j.helpers.AppenderAttachableImpl.appendLoopOnAppenders(Append
erAttachableImpl.java:65)

at org.apache.log4j.Category.callAppenders(Category.java:203)

at org.apache.log4j.Category.forcedLog(Category.java:388)

at org.apache.log4j.Category.log(Category.java:853)

at
org.apache.commons.logging.impl.Log4JLogger.info(Log4JLogger.java:133)

at
org.apache.catalina.core.ApplicationContext.log(ApplicationContext.java:638)

at
org.apache.catalina.core.ApplicationContextFacade.log(ApplicationContextFaca
de.java:249)

at
org.springframework.web.context.ContextLoader.initWebApplicationContext(Cont
extLoader.java:176)

at
org.springframework.web.context.ContextLoaderServlet.init(ContextLoaderServl
et.java:83)

at javax.servlet.GenericServlet.init(GenericServlet.java:211)

at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:11
05)

at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:932)

at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:
3915)

at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4176)

at
org.apache.catalina.core.StandardContext.reload(StandardContext.java:2988)

at
org.apache.catalina.loader.WebappLoader.backgroundProcess(WebappLoader.java:
403)

at
org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:
1276)

at
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processC
hildren(ContainerBase.java:1568)

at
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processC
hildren(ContainerBase.java:1577)

at
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processC
hildren(ContainerBase.java:1577)

at
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(Cont
ainerBase.java:1557)

at java.lang.Thread.run(Thread.java:595)


  



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



Re: Tomcat 5.5.15 Clustering ?

2006-02-16 Thread David Avenante
Now tell us
1. OS Version
 - gentoo with 2.6.15 kernel

2. Java version
 - Sun JDK 1.5.0.06


OK in response of your previous message.
I start the two servers and run MCast
output is :
On agnes : java -cp tomcat-replication.jar MCaster 224.0.0.1 45564 ovea-inspiron
Usage MCaster [address port message]
BEGIN TO RECEIVE
SENT:ovea-inspiron1
RECEIVED:ovea-inspiron1 FROM /192.168.2.102:45564
BEGIN TO RECEIVE
SENT:ovea-inspiron2
RECEIVED:▒��(f▒tcp://192.168.2.102:400cluster1 FROM /192.168.2.102:45564
SENT:ovea-inspiron3
BEGIN TO RECEIVE
RECEIVED:�t�(g▒tcp://192.168.2.103:400cluster1 FROM /192.168.2.103:45564
SENT:ovea-inspiron4
BEGIN TO RECEIVE
RECEIVED:��(f▒tcp://192.168.2.102:400cluster1 FROM /192.168.2.102:45564

On ovea-inspiron : java -cp tomcat-replication.jar MCaster 224.0.0.1 45564 agnes
Usage MCaster [address port message]
BEGIN TO RECEIVE
SENT:agnes1
RECEIVED:agnes1 FROM /192.168.2.103:45564
BEGIN TO RECEIVE
RECEIVED:gm???f▒tcp://192.168.2.102:400cluster1 FROM /192.168.2.102:45564
SENT:agnes2
BEGIN TO RECEIVE
RECEIVED:▒g▒tcp://192.168.2.103:400cluster1 FROM /192.168.2.103:45564
SENT:agnes3
BEGIN TO RECEIVE
RECEIVED:k_???f▒tcp://192.168.2.102:400cluster1 FROM /192.168.2.102:45564
SENT:agnes4

For the next steps wich configuration do you want ?
with or without mcastBindAddress in server.xml configuration

Then follow these steps
1. Shutdown the MCaster program
2. Shutdown both Tomcats - delete or archive your logs
3. Set waitForAck=false on your Sender element
4. Start tomcat 1
5. Wait 10 seconds
6. Start tomcat 2
7. Send us your new output from tomcat





On 2/16/06, Filip Hanik - Dev Lists [EMAIL PROTECTED] wrote:

 ok, you didn't read my message again, that's ok.

 Now tell us
 1. OS Version
 2. Java version

 Then follow these steps
 1. Shutdown the MCaster program
 2. Shutdown both Tomcats - delete or archive your logs
 3. Set waitForAck=false on your Sender element
 4. Start tomcat 1
 5. Wait 10 seconds
 6. Start tomcat 2
 7. Send us your new output from tomcat

 Filip


 David Avenante wrote:
  See my previous post
  it's
 
   on agnes the command java -cp tomcat-replication.jar MCaster
  224.0.0.1 45564 ovea-inspiron
   and on ovea-inspiron start comand : java -cp
  tomcat-replication.jar MCaster 224.0.0.1 45564 agnes
 
   the ouput as the same a the other tests but tcpdump info are now :
   on agnes
   12:43: 02.336748 IP ovea-inspiron.45566 
  all-systems.mcast.net.45566: UDP, length 7
   12:43:02.395214 IP agnes.45564  all-systems.mcast.net.45564:
  UDP, length 15
   12:43:05.400696 IP agnes.45564  all-systems.mcast.net.45564:
  UDP, length 15
   12:43:05.506764 IP ovea-inspiron.45566 
  all-systems.mcast.net.45566: UDP, length 7
   12:43:08.405287 IP agnes.45564  all-systems.mcast.net.45564:
  UDP, length 15
   12:43:08.604056 IP ovea-inspiron.45566 
  all-systems.mcast.net.45566: UDP, length 7
   12:43:11.410371 IP agnes.45564  all-systems.mcast.net.45564 :
  UDP, length 15
   12:43:11.608944 IP ovea-inspiron.45566 
  all-systems.mcast.net.45566: UDP, length 7
 
   on ovea-inspiron
   12:45:55.861466 IP ovea-inspiron.45566 
  all-systems.mcast.net.45566:UDP, length 7
   12:45:57.983294 IP AGNES.45564  all-systems.mcast.net.45564:
  UDP, length 14
   12:45:58.914085 IP ovea-inspiron.45566 
  all-systems.mcast.net.45566:UDP, length 7
   12:46:00.988429 IP AGNES.45564  all-systems.mcast.net.45564:
  UDP, length 15
   12:46:01.918123 IP ovea-inspiron.45566 
  all-systems.mcast.net.45566:UDP , length 7
 
 
 
  On 2/15/06, Filip Hanik - Dev Lists [EMAIL PROTECTED] wrote:
 
  ok, we will work through it one item at the time.
 
  show me the output from both servers MCaster program (not the tcpdump)
  when they run simultanously.
 
  Filip
 
 
  -
  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]




No processor available, rejecting this connection in Catalina logs

2006-02-16 Thread Divya
Hi Support,
 
Here is a summary of the issue:
When we open telnet sessions to port 8009(or any other port for that
matter), where the number of sessions = value of maxProcessors in
server.xml, opening any further telnet sessions throws the following
errors in the catalina logs : 
Ajp13Connector[8009] No processor available, rejecting this connection.
 
Even when we close some of the telnet sessions we continue to encounter
the same errors while trying to open new sessions.
The netstat shows that these connections are still in CLOSE_WAIT state
and they remain that way forever until we restart tomcat.
 
OS version : Windows 2000
Tomcat Version : 4.0.3
 
Please let us know if there is configurations that we can change or if
there is any work around to solve this issue.Also, let us know if you
need any further information.
 
Thanks in advance,
Divya
Arcot Systems, India
Office: +91-80-56602724
 
 
 


RE: New to apache / Tomcat

2006-02-16 Thread Caldarale, Charles R
 From: Andrew English [mailto:[EMAIL PROTECTED] 
 Subject: RE: New to apache / Tomcat
 
 Does Jboss have Catalina as a component to it, or is Catalina a apache
 component only?

JBoss uses the embedded form of Tomcat; Catalina is the internal name
given to the servlet container components of Tomcat, and is therefore
built into JBoss.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

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



Re: New to apache / Tomcat

2006-02-16 Thread Filip Hanik - Dev Lists

JBoss uses Tomcat (catalina) as its default webserver and servlet engine.

Filip


Andrew English wrote:

Does Jboss have Catalina as a component to it, or is Catalina a apache
component only?

Andrew


-Original Message-
From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, February 15, 2006 10:58 PM

To: Tomcat Users List
Subject: RE: New to apache / Tomcat

  
From: Andrew English [mailto:[EMAIL PROTECTED] 
Subject: RE: New to apache / Tomcat


Could it be they are running both?



Certainly could be, but I would have to wonder why...

  

I looked through all the jboss folders and found nothing related to
catalina just the files which make up the web site itself. 



I suppose it could be just left-over naming from some ambitious full
J2EE project that ended up needing only Servlet/JSP capabilities.

What are the dates on some of the files?  Tomcat 4.0.3 came out in the
spring of 2002, whereas JBoss 4.0.3 is fairly recent (mid-year 2005, SP1
in the fall).

You might try downloading whichever one corresponds to the dates you
find, and comparing the directory structure of that with what you've got
in hand.  The Tomcat 4.0.3 archive is here:
http://archive.apache.org/dist/tomcat/tomcat-4/archive/v4.0.3/

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
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: mod_jk error numbers

2006-02-16 Thread Mladen Turk

Filip Hanik - Dev Lists wrote:
1. What does the 449 and 461 numbers mean? A: My guess would be line 
numbers




Sure those are line numbers, but for [debug] those
are not errors :)
As well as for [info] and [warn].

Anyhow the format is:
[DATE] [PID:ThreadID] [LEVEL] sourcefile (line number): log message ...



2. Is there a security hole in our server?


No. mod_jk will try to map any request from the wire,
and if no match is found (JkMount) it will return 404.


A: What is your setup like, do you have an apache in front of an apache?



I must say that I don't follow this one.
What could mod_jk do in front of another apache?

Regards,
Mladen.

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



RE: How to install a simple servlet in Tomcat?

2006-02-16 Thread Caldarale, Charles R
 From: Marc Wentink [mailto:[EMAIL PROTECTED] 
 Subject: RE: How to install a simple servlet in Tomcat?
 
 One addition, my version of Tomcat is 4.1

Unless you're tasked with development or maintenance of an old
application environment, I'd suggest moving up to the current 5.5.x
version of Tomcat.  It implements the latest version of the Servlet
spec, along with considerable performance improvements.  Of course, the
5.5 deployment details do differ from prior levels.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

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



RE: New to apache / Tomcat

2006-02-16 Thread Andrew English


Does Jboss have Catalina as a component to it, or is Catalina a apache
component only?

Andrew


-Original Message-
From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, February 15, 2006 10:58 PM
To: Tomcat Users List
Subject: RE: New to apache / Tomcat

 From: Andrew English [mailto:[EMAIL PROTECTED] 
 Subject: RE: New to apache / Tomcat
 
 Could it be they are running both?

Certainly could be, but I would have to wonder why...

 I looked through all the jboss folders and found nothing related to
 catalina just the files which make up the web site itself. 

I suppose it could be just left-over naming from some ambitious full
J2EE project that ended up needing only Servlet/JSP capabilities.

What are the dates on some of the files?  Tomcat 4.0.3 came out in the
spring of 2002, whereas JBoss 4.0.3 is fairly recent (mid-year 2005, SP1
in the fall).

You might try downloading whichever one corresponds to the dates you
find, and comparing the directory structure of that with what you've got
in hand.  The Tomcat 4.0.3 archive is here:
http://archive.apache.org/dist/tomcat/tomcat-4/archive/v4.0.3/

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
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: How to install a simple servlet in Tomcat?

2006-02-16 Thread Zorro3692
To display a servlet, open your browser, and in address bar type in  
%TOMCAT_HOME%(the path to your Tomcat installation)/webapps/myapp (the name of  
the 
dir where your app is located)/servlet/HelloIZ, and lo an behold, your  servlet 
should pop up!
 
Jimmy


Re: How to install a simple servlet in Tomcat?

2006-02-16 Thread David Delbecq
You must put the class in a .jar itself located in the WEB-INF/lib
folder of a .war or you must put the class in WEB-INF/classes of a .war
You must also setup your servlet un WEB-INF/web.xml

Then you must deploy you .war in tomcat (the easiest way is to use the
manager: http://tomcat.apache.org/tomcat-5.5-doc/manager-howto.html)

If you don't know what web.xml and what a .war are, i suggest you take a
look at http://java.sun.com/j2ee/tutorial/1_3-fcs/index.html section
about web technology.

Regards

Marc Wentink a écrit :

My excuses for such a simple question, but the archives are not =
searchable and the documentation not very clear. Or may-be I am just a =
terrible newbee.

Say I have a class file that contains a servlet, should not I do =
something so that tomcat becomes the container of this servlet, and a =
client browser could call the servlet? I expected to find some install =
class file that contains the servlet so Tomcat becomes it container =
option somewhere in the management part of Tomcat, but I am lost.

These are my files:

HelloIZ.java:

import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;

public class HelloIZ extends HttpServlet {

public void doGet(HttpServletRequest request, HttpServletResponse =
response)
throws IOException, ServletException
{
response.setContentType(text/html);
PrintWriter out =3D response.getWriter();
out.println(html);
out.println(head);
out.println(titleHallo IntraZis!/title);
out.println(/head);
out.println(body);
out.println(h1Hallo IntraZis!/h1);
out.println(/body);
out.println(/html);
}
}

I have got the class file after setting my classpath to servlet.jar and =
using javac.

And I thought I had to make some html to call the servlet:

StartServlet.html

html
head
titleHello Hospital!/title
/head
body
a href=3D./HelloIZExamplego/a
/body=09
/html

  



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



RE: How to install a simple servlet in Tomcat?

2006-02-16 Thread Marc Wentink
One addition, my version of Tomcat is 4.1

I read somewhere that the default way to install a servlet is changed, from 3.x 
to 4.x, at least I think that is what was said, so the Tomcat version probably 
matters in this question.

Marc





RE: How to install a simple servlet in Tomcat?

2006-02-16 Thread Marc Wentink

From: Daniel Guggi 

 Basically you have to set up a context for your webapp.

Which context is actually used by the default examples?

Ok, I think..., when I move my class file to the directory where I find the 
examples:

C:\Program Files\Apache Group\Tomcat 4.1\webapps\examples\WEB-INF\classes

and call in my webbrowser:

http://localhost:8090/examples/servlet/HelloIZ

(this works at least now)

I am using the default context:


!-- The mapping for the default servlet --
servlet-mapping
servlet-namedefault/servlet-name
url-pattern//url-pattern
/servlet-mapping


But better would be adding the section you suggested, and I could put my files 
in my own project directory, right? Am I a bit on the right track now?



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

Re: Assistance required

2006-02-16 Thread Hadraba Petr
Try upgrade from GNU Java (which is the default JVM in the Fedora
distribution) to the Sun Java 5.

GNU Java has too many issues because of is not in the final version (I
remembere) :-(

PETR


On 2/16/06, Medha Parathasarathy [EMAIL PROTECTED] wrote:
 I have gone through the server.xml model given by the tomcat site.
 However when i try to test the connectivity using a java program :

 
 import java.sql.*;

 public class jdbc
 {
 public static void main(String args[]) throws Exception
 {
 Class.forName(com.mysql.jdbc.Driver);
 Connection con = 
 DriverManager.getConnection(jdbc:mysql://localhost/B2BData);
 Statement st = con.createStatement();
 ResultSet rs = st.executeQuery(select * from admuser);
 while(rs.next())
 {
 System.out.println(rs.getString(1));
 }
 con.close();
 }
 }

 ===
 when i compile the program with javac jdbc.java no eror is given however
 when i run the program i get the following errors :

 java ./jdbc
 Exception in thread main java.lang.NoClassDefFoundError: ./jdbc
at gnu.java.lang.MainThread.run() (/usr/lib64/libgcj.so.6.0.0)
 Caused by: java.lang.ClassNotFoundException: ./jdbc
at java.lang.Class.forName(java.lang.String, boolean,
java.lang.ClassLoader) (/usr/lib64/libgcj.so.6.0.0)
at gnu.java.lang.MainThread.run() (/usr/lib64/libgcj.so.6.0.0)

 Now i donot know what to do further.

 Regards


 Sarathy


 On Thu, 16 Feb 2006 15:41:49 +0530, Awaneesh Shatmanyu
 [EMAIL PROTECTED] said:
  Hi,
 
  You can visit the site www.coreservlets.com , it will help to configure
  the Tomcat.
  You would be able to get the examples of server.xml and web.xml too.
 
  Regards,
  Awaneesh Shatmanyu
 
 
 
  -Original Message-
  From: Medha Parathasarathy [mailto:[EMAIL PROTECTED]
  Sent: Thursday, February 16, 2006 11:29 AM
  To: Tomcat Users List
  Subject: Assistance required
 
  Hi,
 
  I am new to tomcat. I am trying to configure tomcat, jdbc and mysql. I
  am facing problem in the configuration of jdbc. Can some body assist me
  with a prototype of server.xml and web.xml
 
  environement fedore core4
 
  regards
 
 
  --
  http://www.fastmail.fm - A no graphics, no pop-ups email service
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
  This email may contain confidential or privileged information for the
  intended recipient(s) and the views expressed in the same are not
  necessarily the views of Zensar Technologies Ltd. If you are not the
  intended
  recipient or have received this e-mail by error, its use is strictly
  prohibited, please delete the e-mail and notify the sender. Zensar
  Technologies Ltd. does not accept any liability for virus infected mails.
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 

 --
 http://www.fastmail.fm - Access all of your messages and folders
   wherever you are


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




[Fwd: How can we capture all errors without defining it]

2006-02-16 Thread Java Pro

Is there anyone who can help me with this query?


 Original Message 
Subject:How can we capture all errors without defining it
Date:   Wed, 15 Feb 2006 12:30:04 +0530
From:   Java Pro [EMAIL PROTECTED]
To: users@tomcat.apache.org



Hi,

I would like to know, if we can capture all the errors to a servlet 
without defining the list of errors in web.xml as follows..


generally, we can capture an error like this:
error-page
error-code400/error-code
location/errorHandler/location
/error-page
error-page
error-code401/error-code
.
.
.

is this possible? (see below)
error-page
error-codeAllErrors/error-code
location/errorHandler/location
/error-page

or is there any other mechanism?

Thanks.






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



OCI Driver and NLS_SORT

2006-02-16 Thread Jean-Philippe Boily
Hi,
   I am trying to use OCI Drivers with Tomcat. We have Tomcat 5.5, JDK
1.5 and classes12.jar for Oracle DB 8.1.7. Here is the error we have
when we try to connect. I found some places telling me it can only be
loaded once unless you turn on Cache jars memory setting...but I can
find how with command line on Linux. Here is the error I get :

java.lang.UnsatisfiedLinkError: Native Library
/path/to/oracle/logi/lib/libocijdbc8.so already loaded in another
classloader
java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1716)
java.lang.ClassLoader.loadLibrary(ClassLoader.java:1676)
java.lang.Runtime.loadLibrary0(Runtime.java:822)
java.lang.System.loadLibrary(System.java:992)
oracle.jdbc.oci8.OCIDBAccess.logon(OCIDBAccess.java:232)
oracle.jdbc.driver.OracleConnection.init(OracleConnection.java:252)

oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java:365)
oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:260)
java.sql.DriverManager.getConnection(DriverManager.java:525)
java.sql.DriverManager.getConnection(DriverManager.java:171)
gouv.mrn.dev.test.QueryServlet.service(QueryServlet.java:36)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)




Also, is there a way to configure NLS_SORT=FRENCH for Tomcat using
THIN drivers ? I tried to set it in startup.shbut it doesn't seem
to work...anyone ?



Thanks !
Jean-Philippe Boily, Technical webmaster for Ministere des Ressources
Naturelles et de la Faune

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



Re: OCI Driver and NLS_SORT

2006-02-16 Thread Martin Gainty
Bonjour Jean-Phillipe

You can alter the default sort by manipulating SESSION NLS_SORT SESSION 
attribute ..for example
connect [EMAIL PROTECTED]
alter session set nls_sort=FRENCH;
CREATE INDEX NLS_GENERIC ON TABLENAME
 ( NLSSORT(ColumnName,'NLS_SORT=FRENCH'));Bon Chance!Martin-Etats 
Unis- Original Message - 
From: Jean-Philippe Boily [EMAIL PROTECTED]
To: users@tomcat.apache.org
Cc: Jean-Philippe Boily [EMAIL PROTECTED]; Jean-Philippe Boily [EMAIL 
PROTECTED]
Sent: Thursday, February 16, 2006 1:16 PM
Subject: OCI Driver and NLS_SORT


Hi,
   I am trying to use OCI Drivers with Tomcat. We have Tomcat 5.5, JDK
1.5 and classes12.jar for Oracle DB 8.1.7. Here is the error we have
when we try to connect. I found some places telling me it can only be
loaded once unless you turn on Cache jars memory setting...but I can
find how with command line on Linux. Here is the error I get :

java.lang.UnsatisfiedLinkError: Native Library
/path/to/oracle/logi/lib/libocijdbc8.so already loaded in another
classloader
java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1716)
java.lang.ClassLoader.loadLibrary(ClassLoader.java:1676)
java.lang.Runtime.loadLibrary0(Runtime.java:822)
java.lang.System.loadLibrary(System.java:992)
oracle.jdbc.oci8.OCIDBAccess.logon(OCIDBAccess.java:232)
oracle.jdbc.driver.OracleConnection.init(OracleConnection.java:252)
oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java:365)
oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:260)
java.sql.DriverManager.getConnection(DriverManager.java:525)
java.sql.DriverManager.getConnection(DriverManager.java:171)
gouv.mrn.dev.test.QueryServlet.service(QueryServlet.java:36)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)




Also, is there a way to configure NLS_SORT=FRENCH for Tomcat using
THIN drivers ? I tried to set it in startup.shbut it doesn't seem
to work...anyone ?



Thanks !
Jean-Philippe Boily, Technical webmaster for Ministere des Ressources
Naturelles et de la Faune

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



RE: New isapi_redirect.dll has problems

2006-02-16 Thread David Thielen
Hi;

Well it's been running for almost 24 hours and the only error is (got this
10 times) below. I will turn off debug and see if that causes it to come
back.

[Thu Feb 16 11:37:46 2006] [1680:2112] [debug] jk_isapi_plugin.c (835):
Default redirection of /
[Thu Feb 16 11:37:46 2006] [1680:2112] [debug] jk_uri_worker_map.c (449):
Attempting to map URI '/' from 9 maps
[Thu Feb 16 11:37:46 2006] [1680:2112] [debug] jk_uri_worker_map.c (461):
Attempting to map context URI '/WindwardReportsServlet/*'
[Thu Feb 16 11:37:46 2006] [1680:2112] [debug] jk_uri_worker_map.c (461):
Attempting to map context URI '/WindwardReportsJsp/*'
[Thu Feb 16 11:37:46 2006] [1680:2112] [debug] jk_uri_worker_map.c (461):
Attempting to map context URI '/forums/*'
[Thu Feb 16 11:37:46 2006] [1680:2112] [debug] jk_uri_worker_map.c (461):
Attempting to map context URI '/store/*'
[Thu Feb 16 11:37:46 2006] [1680:2112] [debug] jk_uri_worker_map.c (461):
Attempting to map context URI '/track/*'
[Thu Feb 16 11:37:46 2006] [1680:2112] [debug] jk_uri_worker_map.c (461):
Attempting to map context URI '/*.faces'
[Thu Feb 16 11:37:46 2006] [1680:2112] [debug] jk_uri_worker_map.c (461):
Attempting to map context URI '/forums'
[Thu Feb 16 11:37:46 2006] [1680:2112] [debug] jk_uri_worker_map.c (461):
Attempting to map context URI '/store'
[Thu Feb 16 11:37:46 2006] [1680:2112] [debug] jk_uri_worker_map.c (461):
Attempting to map context URI '/*.jsp'
[Thu Feb 16 11:37:46 2006] [1680:2112] [debug] jk_isapi_plugin.c (845):
check if [/] is points to the web-inf directory
[Thu Feb 16 11:37:46 2006] [1680:2112] [debug] jk_isapi_plugin.c (948): [/]
is not a servlet url
[Thu Feb 16 11:37:46 2006] [1680:2112] [debug] jk_worker.c (111): did not
find a worker ajp13
[Thu Feb 16 11:37:46 2006] [1680:2112] [debug] jk_isapi_plugin.c (1024):
could not get a worker for name ajp13
[Thu Feb 16 11:37:46 2006] [1680:2112] [error] jk_isapi_plugin.c (1049):
could not get a worker for name ajp13
[Thu Feb 16 11:37:47 2006] [1680:2112] [debug] jk_isapi_plugin.c (762):
Filter started
[Thu Feb 16 11:37:47 2006] [1680:2112] [debug] jk_isapi_plugin.c (828):
Virtual Host redirection of /www.enemynations.com/
[Thu Feb 16 11:37:47 2006] [1680:2112] [debug] jk_uri_worker_map.c (449):
Attempting to map URI '/www.enemynations.com/' from 9 maps
[Thu Feb 16 11:37:47 2006] [1680:2112] [debug] jk_uri_worker_map.c (461):
Attempting to map context URI '/WindwardReportsServlet/*'
[Thu Feb 16 11:37:47 2006] [1680:2112] [debug] jk_uri_worker_map.c (461):
Attempting to map context URI '/WindwardReportsJsp/*'
[Thu Feb 16 11:37:47 2006] [1680:2112] [debug] jk_uri_worker_map.c (461):
Attempting to map context URI '/forums/*'
[Thu Feb 16 11:37:47 2006] [1680:2112] [debug] jk_uri_worker_map.c (461):
Attempting to map context URI '/store/*'
[Thu Feb 16 11:37:47 2006] [1680:2112] [debug] jk_uri_worker_map.c (461):
Attempting to map context URI '/track/*'
[Thu Feb 16 11:37:47 2006] [1680:2112] [debug] jk_uri_worker_map.c (461):
Attempting to map context URI '/*.faces'
[Thu Feb 16 11:37:47 2006] [1680:2112] [debug] jk_uri_worker_map.c (461):
Attempting to map context URI '/forums'
[Thu Feb 16 11:37:47 2006] [1680:2112] [debug] jk_uri_worker_map.c (461):
Attempting to map context URI '/store'
[Thu Feb 16 11:37:47 2006] [1680:2112] [debug] jk_uri_worker_map.c (461):
Attempting to map context URI '/*.jsp'
[Thu Feb 16 11:37:47 2006] [1680:2112] [debug] jk_isapi_plugin.c (835):
Default redirection of /

 
David Thielen
www.windwardreports.com
303-499-2544

-Original Message-
From: Mark Thomas [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, February 15, 2006 12:46 PM
To: Tomcat Users List
Subject: Re: New isapi_redirect.dll has problems

One more thing, turn up the logging level to debug and post the
sequence of log messages associated with one of these odd URLs.

Cheers,

Mark


-
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: Multiple Sessions per user

2006-02-16 Thread Duan, Nick
In your situation, you probably don't want to mess around with the
HttpSession object.  The session object is designed for sharing info
within the same session, not the same user.  If sharing info among
multiple sessions is desired, use ServletContext instead.  One solution
would be store your user-specific application data as an attribute and
store it in the servlet context, with the user id as the key.  You may
need to use a hashtable or your own data structure as the context
attribute if dealing with multiple/complex data types.  This solution
will also allow user data to be accessible even after one of the user
sessions is terminated.

ND 

-Original Message-
From: Daniel Guggi [mailto:[EMAIL PROTECTED] 
Sent: Thursday, February 16, 2006 8:22 AM
To: users@tomcat.apache.org
Subject: Multiple Sessions per user

Hi!

I ran into a session-issue with a webapp. There are situations when it
would be nice for a user (same browser/same machine/same webapp) to have
the possibility to login twice and thus have two different JSESSIONIDs.

There is also a problem if the user opens a second browser-window or
-tab, because the user may change session-data in the one window and
thus will have invalid (outdated) data in the other window afterwards.

Example:
The user is logged and requests a jsp page that has the following
session-bean:
jsp:useBean id=someBean scope=session class=someClass /

The user also opens the jsp page in another browser-window (or -tab).
Now he starts editing the data (provided in the form) in one of those 
windows and then submits it to the server. The server verifies and
stores
the data in db. As a result the session-variable someBean gets
reloaded/updated.

If the user now tries to update the data in the other window, there will
be a problem, because the session-data someBean has already been
updated and the user is going to send outdated information to the
server.

What are the possible solutions to this issue(s)?

Maybe the RSEF (the rudimental servlet extension framework)
(http://java.sun.com/developer/technicalArticles/Servlets/ServletControl
/) would 
help me with creating multiple sessions for the same users?

And how would someone solve the problem with multiple
browser-windows or -tabs?

TIA,
Daniel





-
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: Assistance required

2006-02-16 Thread Caldarale, Charles R
 From: Giorgio Clavelli [mailto:[EMAIL PROTECTED] 
 Subject: Re: Assistance required
 
 It seems you don't have the MySql driver in your classpath.

Nor should any Tomcat administrator or user.  Jars for JDBC drivers
should be placed in specific directories, as described in the Tomcat
JDBC and Classloader documentation.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

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



Re: [Fwd: How can we capture all errors without defining it]

2006-02-16 Thread Ramin Farhanian
Throws advice in AOP concept is another mechanism. Go for AspectJ or Aspect 
Werkz, Spring AOP or They all support the lovely Aspect Oriented Concept.
   
  Regards,
  Ramin

Java Pro [EMAIL PROTECTED] wrote:
  Is there anyone who can help me with this query?


 Original Message 
Subject: How can we capture all errors without defining it
Date: Wed, 15 Feb 2006 12:30:04 +0530
From: Java Pro 
To: users@tomcat.apache.org



Hi,

I would like to know, if we can capture all the errors to a servlet 
without defining the list of errors in web.xml as follows..

generally, we can capture an error like this:

400
/errorHandler


401
.
.
.

is this possible? (see below)

AllErrors
/errorHandler


or is there any other mechanism?

Thanks.






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




Tomcat in debug mode

2006-02-16 Thread harmeek singh jhutty
Hi Friends,
I am using tomcat5.5.7 and I want to start it in debug mode...I researched and 
found this link:
http://tomcat.apache.org/faq/development.html

I followed and tried to do this:

Set environment variables JPDA_ADDRESS=8000 and JPDA_TRANSPORT=dt_socket and 
then start tomcat using catalina jpda start. 

But there is no catalina.bat file under tomcat5.5.7/bin folder,so how to make 
this work.I have joined this list and hope someone helps me out here.

Thanks
Mick

RE: Tomcat in debug mode

2006-02-16 Thread Caldarale, Charles R
 From: harmeek singh jhutty [mailto:[EMAIL PROTECTED] 
 Subject: Tomcat in debug mode
 
 But there is no catalina.bat file under tomcat5.5.7/bin 
 folder,so how to make this work.

Download and install the .zip version of Tomcat, rather than the .exe
file.  For reasons unknown, the scripts are not included with the
Windows installer.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

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



Website on Tomcat- few problems

2006-02-16 Thread harmeek singh jhutty
Hi Friends,
I have a JSP/Java/Tomcat website on which I am able to view the images from the 
outside world but for some reason the images are not gettin resolved 
locally.You can see the site at:
www.customsportsplaques.com

My other question is rite now,I have set the IIS so that any link to 
www.customsportsplaques.com redirects to 
www.customsportsplaques.com:8080/home.jsp...is there someway of hiding the 
port no. and stopping this re-direction.So that anybody clicks the URL and the 
page comes up with the same URL on the top.

Any help would be really appreciated
Thanks
Mick

RE: is it ok to run tomcat 3.3 in jre 1.4?

2006-02-16 Thread Akoulov, Alexandre
thanks a lot, Doug.

I am interested to know if there is anyone who runs tomcat 3.3 in java 1.4. As 
far as I remember when tomcat 3.3 was released we were still in java 1.3 world 
and therefore I assume no proper testing was done on tomcat 3.3 in java 1.4 
environment.


Kind regards,

Sasha. 

-Original Message-
From: Parsons Technical Services [mailto:[EMAIL PROTECTED]
Sent: Thursday, 16 February 2006 7:00 PM
To: Tomcat Users List
Subject: Re: is it ok to run tomcat 3.3 in jre 1.4?


Yes. By the nature of the design, Java is almost always backward compatible 
in that older software will run on newer versions. As usual there are 
sometimes exceptions to this.

If you are going to change Java version, you may wish to change it to the 
current version. 1.5 is very stable, compatible and reported to be much 
faster.

Again there are never any guarantees. Only by doing it will you know for 
sure.

Doug


- Original Message - 
From: Akoulov, Alexandre [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Wednesday, February 15, 2006 11:08 PM
Subject: is it ok to run tomcat 3.3 in jre 1.4?


Hi all,

we need to urgently fix one web app that runs in tc 3/ java 1.3. The fix is 
only available with java 1.4.

My question is: can we run tomcat 3.3 in java 1.4.2_10

Kind regards,

Sasha.

-Original Message-
From: Caldarale, Charles R [mailto:[EMAIL PROTECTED]
Sent: Thursday, 16 February 2006 2:58 PM
To: Tomcat Users List
Subject: RE: New to apache / Tomcat


 From: Andrew English [mailto:[EMAIL PROTECTED]
 Subject: RE: New to apache / Tomcat

 Could it be they are running both?

Certainly could be, but I would have to wonder why...

 I looked through all the jboss folders and found nothing related to
 catalina just the files which make up the web site itself.

I suppose it could be just left-over naming from some ambitious full
J2EE project that ended up needing only Servlet/JSP capabilities.

What are the dates on some of the files?  Tomcat 4.0.3 came out in the
spring of 2002, whereas JBoss 4.0.3 is fairly recent (mid-year 2005, SP1
in the fall).

You might try downloading whichever one corresponds to the dates you
find, and comparing the directory structure of that with what you've got
in hand.  The Tomcat 4.0.3 archive is here:
http://archive.apache.org/dist/tomcat/tomcat-4/archive/v4.0.3/

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
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: Website on Tomcat- few problems

2006-02-16 Thread Warren Pace

 
 From: harmeek singh jhutty [EMAIL PROTECTED]
 Date: 2006/02/16 Thu PM 03:57:49 EST
 To: users@tomcat.apache.org
 Subject: Website on Tomcat- few problems
 
 Hi Friends,
 I have a JSP/Java/Tomcat website on which I am able to view the images from 
 the outside world but for some reason the images are not gettin resolved 
 locally.You can see the site at:
 www.customsportsplaques.com
 My other question is rite now,I have set the IIS so that any link to 
 www.customsportsplaques.com redirects to 
 www.customsportsplaques.com:8080/home.jsp...is there someway of hiding the 
 port no. and stopping this re-direction.So that anybody clicks the URL and 
 the page comes up with the same URL on the top.
Download and install the isapi_redirect.dll
http://www.apache.org/dist/tomcat/tomcat-connectors/jk/binaries/win32/jk-1.2.15/
Not too tough to configure...start here
http://tomcat.apache.org/connectors-doc/config/iis.html
 Any help would be really appreciated
 Thanks
 Mick
 


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



Re: Website on Tomcat- few problems

2006-02-16 Thread Filip Hanik - Dev Lists
working with the JK connectors can be an adventure on its on, so make 
sure you don't look yourself down by only looking at one solution.

you can google for other alternatives as well
like this one
http://jspisapi.neurospeech.com/

or you can run Apache on your windows platform, or run tomcat on port 
80, and bypassing another web server all together. there are many 
options, do a little research and find out what is best for you


Filip



Warren Pace wrote:

From: harmeek singh jhutty [EMAIL PROTECTED]
Date: 2006/02/16 Thu PM 03:57:49 EST
To: users@tomcat.apache.org
Subject: Website on Tomcat- few problems

Hi Friends,
I have a JSP/Java/Tomcat website on which I am able to view the images from the 
outside world but for some reason the images are not gettin resolved 
locally.You can see the site at:
www.customsportsplaques.com
My other question is rite now,I have set the IIS so that any link to 
www.customsportsplaques.com redirects to 
www.customsportsplaques.com:8080/home.jsp...is there someway of hiding the port no. and 
stopping this re-direction.So that anybody clicks the URL and the page comes up with the same URL 
on the top.


Download and install the isapi_redirect.dll
http://www.apache.org/dist/tomcat/tomcat-connectors/jk/binaries/win32/jk-1.2.15/
Not too tough to configure...start here
http://tomcat.apache.org/connectors-doc/config/iis.html
  

Any help would be really appreciated
Thanks
Mick





-
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: context error

2006-02-16 Thread Warren Pace

 
 From: jacky [EMAIL PROTECTED]
 Date: 2006/02/15 Wed PM 09:00:29 EST
 To: Tomcat Users List users@tomcat.apache.org
 Subject: Re: Re: context error
 
 hi,
RedHat7.3,  J2sdk1.4.2_10
 server.xml is the default server.xml:

 !-- Tomcat Root Context --
 !--
   Context path= docBase=ROOT debug=0/
 --
 !--Context path=/myworkflow docBase=myworkflow /-- //here, 
 myworkflow is my web app.
Been a while since I used 4.1 - this is from memory.
try
Context path=/myworkflow docBase=myworkflow
  reloadable=true crossContext=true
/Context
   /Host
 
 /Engine
 
   /Service
 
   !-- The MOD_WEBAPP connector is used to connect Apache 1.3 with Tomcat 4.0
as its servlet container. Please read the README.txt file coming with
the WebApp Module distribution on how to build it.
(Or check out the jakarta-tomcat-connectors/webapp CVS repository)
 
To configure the Apache side, you must ensure that you have the
ServerName and Port directives defined in httpd.conf.  Then,
lines like these to the bottom of your httpd.conf file:
 
  LoadModule webapp_module libexec/mod_webapp.so
  WebAppConnection warpConnection warp localhost:8008
  WebAppDeploy examples warpConnection /examples/
 
The next time you restart Apache (after restarting Tomcat, if needed)
the connection will be established, and all applications you make
visible via WebAppDeploy directives can be accessed through Apache.
   --
 
   !-- Define an Apache-Connector Service --
   Service name=Tomcat-Apache
 
 Connector className=org.apache.catalina.connector.warp.WarpConnector
  port=8008 minProcessors=5 maxProcessors=75
  enableLookups=true
  acceptCount=10 debug=0/
 
 !-- Replace localhost with what your Apache ServerName is set to --
 Engine className=org.apache.catalina.connector.warp.WarpEngine
  name=Apache debug=0 appBase=webapps
 
   !-- Global logger unless overridden at lower levels --
   Logger className=org.apache.catalina.logger.FileLogger
   prefix=apache_log. suffix=.txt
   timestamp=true/
 
   !-- Because this Realm is here, an instance will be shared globally --
   Realm className=org.apache.catalina.realm.MemoryRealm /
 
 /Engine
 
   /Service
 
 /Server
 
 
  Best Regards.
jacky  

 - Original Message - 
 From: Warren Pace [EMAIL PROTECTED]
 To: Tomcat Users List users@tomcat.apache.org
 Sent: Wednesday, February 15, 2006 6:42 PM
 Subject: Re: Re: context error
 
 
  
   
   From: jacky [EMAIL PROTECTED]
   Date: 2006/02/14 Tue PM 08:32:56 EST
   To: Tomcat Users List users@tomcat.apache.org, 
   [EMAIL PROTECTED]
   Subject: Re: context error
   
   hi, Mike,
  Do you mean put all directories together? 
   No, we need to separate them. So, any other suggestions about this 
   problem?
   
Best Regards.
  jacky  
   
  Could you send us your server.xml with and without the added context?  I 
  see you're using 4.1.  What OS and what JVM are you using?
  
  
  -
  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: Session Expires At Every Request (Tomcat5.0.28/Firefox)

2006-02-16 Thread Michael Andreas Omerou
Dear all,

Thanks for your replies to my problem.  However, I think the discussion has
been diverted into a debate totally irrelevant to the issue.

As far as Chuck's question whether this could be related to the popup, this
is not the case as the problem happens on other pages too, even on index.jsp
(first page)

Regarding Filip's email and monitoring HTTP Headers I am impressed that it
seems to work for you.  I run FireFox on Windows XP Pro SP2 and what happens
is that when a page finishes loading, the session expires on the server.
When the user/browser requests another page the correct session id is sent
from the browser but the server detects that this session id sent is no more
valid (expired) and so we have a timeout.  However, this behaviour, only
occurs with FireFox.   I tried it from another PC with XP Pro SP2 too but
the problem is the same.  With IE, NetScape and Opera all is ok. 

 

I want to emphasize that this behaviour does not happen only when switching
from SSL to non-SSL or vice versa.  Even if I try to access pages such as
the About Us or the Contact Us the session expires again.  However, in that
case the problem is not visible to the user since those pages do not
contain any session specific data so even with a new session it is ok.  Try
the following though and you will see what I mean.  On tophotelchoices.com
do a search for a hotel.  Let the results be displayed and then, go to the
About Us page.  Then, click your browser's back button and instead of going
back to the search results you get a timeout (if you get search results it
will be from browser's cache, do a reload and you will get timeout).

Monitoring the HTTP headers for both IE and Firefox using HttpAnalyzer for
IE and LiveHttpHeaders for Firefox gives the following:
1) IE

(Request-Line):GET http://www.tophotelchoices.com/ HTTP/1.1
Accept:*/*
Accept-Language:en-gb
Accept-Encoding:gzip, deflate
User-Agent:Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR
1.1.4322; InfoPath.1)
Host:www.tophotelchoices.com
Proxy-Connection:Keep-Alive
Pragma:no-cache
Cookie:JSESSIONID=6F187E9E698F5D81A09DF6AD0D25115D

(Status-Line):HTTP/1.0 200 OK
Date:Thu, 16 Feb 2006 22:09:18 GMT
Server:Apache/1.3.33 (Unix) mod_jk/1.2.15
Cache-Control:no-cache
Pragma:no-cache
Expires:Wed, 31 Dec 1969 23:59:59 GMT
Content-Type:text/html;charset=UTF-8
X-Cache:MISS from proxy01.spidernet.net
X-Cache-Lookup:MISS from proxy01.spidernet.net:83
Proxy-Connection:close

2) FIREFOX:
GET http://www.tophotelchoices.com/index.jsp HTTP/1.1
Host: www.tophotelchoices.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.7.12)
Gecko/20050919 Firefox/1.0.7
Accept:
text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=
0.8,image/png,*/*;q=0.5
Accept-Language: en-gb,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Proxy-Connection: keep-alive
Referer: http://www.tophotelchoices.com/timeout.jsp
Cookie: JSESSIONID=3849A82D2F9B6991FE41073D771D1358
Cache-Control: max-age=0

HTTP/1.x 200 OK
Date: Thu, 16 Feb 2006 22:12:27 GMT
Server: Apache/1.3.33 (Unix) mod_jk/1.2.15
Cache-Control: no-cache
Pragma: no-cache
Expires: Wed, 31 Dec 1969 23:59:59 GMT
Content-Type: text/html;charset=UTF-8
X-Cache: MISS from proxy01.spidernet.net
X-Cache-Lookup: MISS from proxy01.spidernet.net:83
Proxy-Connection: close

Obviously, the response is the same in both cases, however, for FireFox the
important difference I see in Request is the one saying Cache-control:
max-age=0 and also, the Keep-Alive value 300. I do not think the Keep-Alive
value is the problem, however, the Cache-Control: max-age=0 is suspicious.
In my code I have response.setHeader(Cache-Control,no-cache) but I think
this is different.  Does anyone have a clue what the max-age:0 is doing?

Your help will be greatly appreciated.


Thanks and regards,
Michael

-Original Message-
From: Filip Hanik - Dev Lists [mailto:[EMAIL PROTECTED] 
Sent: 15 February 2006 22:16
To: Tomcat Users List
Subject: Re: Session Expires At Every Request (Tomcat5.0.28/Firefox)

George Sexton wrote:
 Does the code transparently create a new JSessionID value then?

George,
you might wanna rethink your comments, they don't shine any 
light on the issue and they for sure don't state any facts, 
let me prove you I am right. Below is the headers I tracked 
with LiveHttpHeaders, as you can see, JSESSIONID remains 
exactly the same in the browser request when the switch from 
HTTP to HTTPS happens.
This is Firefox on Fedora 4. The site works fine.

This must be a browser issue, can you tell us a little bit 
more about what version and platform your browser is on.

1. Request to the home - non secure

http://www.tophotelchoices.com/
GET / HTTP/1.1
Host: www.tophotelchoices.com
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.1)
Gecko/20060124 Firefox/1.5.0.1
Accept: 

Re: Re: Website on Tomcat- few problems

2006-02-16 Thread mail4micky
Hi,
Thanks for the help,I researched on that and started working by following this 
tutorial:
http://tjworld.net/help/kb/0001_iis6-Tomcat5-JK2.html

But my problem is I am using IIS-5.0,and I got struck on last step of his i.e.
Authorise the DLL as a web application
Select Web Service Extensions in the IIS Console Server Tree.


I dont see anything like that under my console tree in IIS5.0

Please help,
Thanks



On Fri, 17 Feb 2006 Warren Pace wrote :

 
  From: harmeek singh jhutty [EMAIL PROTECTED]
  Date: 2006/02/16 Thu PM 03:57:49 EST
  To: users@tomcat.apache.org
  Subject: Website on Tomcat- few problems
 
  Hi Friends,
  I have a JSP/Java/Tomcat website on which I am able to view the images from 
  the outside world but for some reason the images are not gettin resolved 
  locally.You can see the site at:
  www.customsportsplaques.com
  My other question is rite now,I have set the IIS so that any link to 
  www.customsportsplaques.com redirects to 
  www.customsportsplaques.com:8080/home.jsp...is there someway of hiding 
  the port no. and stopping this re-direction.So that anybody clicks the URL 
  and the page comes up with the same URL on the top.
Download and install the isapi_redirect.dll
http://www.apache.org/dist/tomcat/tomcat-connectors/jk/binaries/win32/jk-1.2.15/
Not too tough to configure...start here
http://tomcat.apache.org/connectors-doc/config/iis.html
  Any help would be really appreciated
  Thanks
  Mick
 


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



sePrincipal

2006-02-16 Thread anil_a

Hi All

   I trying setPrincipal on request on tomcat 5.0.30. But 
servlet.api.jar that comes with tomcat does not have setPrincipal method 
on HttpRequest class.  I look at the tomcat source and on 
AuthenticationBase class uses that method to setPrincipal. Am I using 
wrong servlet api jar? which one should I use?


thanks for any replies in advance.

anil

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



Best IDE for dev of Tomcat Servlet?

2006-02-16 Thread Mike Reynolds
What is the best development environment for developing a Tomcat servlet?


-
Brings words and photos together (easily) with
 PhotoMail  - it's free and works with Yahoo! Mail.

Re: Best IDE for dev of Tomcat Servlet?

2006-02-16 Thread Pulkit Singhal
I would say Eclipse web edition...but you have to figure out how to
integrate it with tomcat...shld be able to find a tutorial on that out there
somewhere.

On 2/16/06, Mike Reynolds [EMAIL PROTECTED] wrote:

 What is the best development environment for developing a Tomcat servlet?


 -
 Brings words and photos together (easily) with
 PhotoMail  - it's free and works with Yahoo! Mail.



Re: Loading data in tree model from database table by Java

2006-02-16 Thread Pulkit Singhal
I guess you would just have to write a function to process the data. you
probable need to look at the result set and use a data structure where you
can, one by one, add the each child to the parent.
Then you could write a output method that goes through this and for each
node tabs the children and prints them.

On 2/13/06, Gangaa D [EMAIL PROTECTED] wrote:

 How do I loading data in tree model from database
 table by Java?
 1) ReadData(Result); read following table;
 table structure:
 id msg  child
 1  msg1  0
 2  msg2  1
 3  msg3  2

 2) ViewTree(); print following tree;
 Tree View:
 msg1
msg2
  msg3

 Please help me solve it.





 __
 Do You Yahoo!?
 Tired of spam?  Yahoo! Mail has the best spam protection around
 http://mail.yahoo.com

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




RE: Best IDE for dev of Tomcat Servlet?

2006-02-16 Thread James Reynolds

Or use NetBeans. It comes with Tomcat Bundled and you can deploy to it
using one button.  You can also configure it to deploy to your existing
Tomcat Installations, very easily, with one button execution.

I've only had one side effect from using NetBeans with Tomcat.  When my
company switched to IntelliJ, we had problems with Tomcat when we
configured the new IDE to control it.  It appears that NetBeans copies
some files to Tomcat that are not compatible with IntelliJ.
Reinstalling a fresh version of Tomcat fixed the problem.

-Original Message-
From: Pulkit Singhal [mailto:[EMAIL PROTECTED] 
Sent: Thursday, February 16, 2006 4:39 PM
To: Tomcat Users List
Subject: Re: Best IDE for dev of Tomcat Servlet?

I would say Eclipse web edition...but you have to figure out how to
integrate it with tomcat...shld be able to find a tutorial on that out
there somewhere.

On 2/16/06, Mike Reynolds [EMAIL PROTECTED] wrote:

 What is the best development environment for developing a Tomcat
servlet?


 -
 Brings words and photos together (easily) with PhotoMail  - it's free 
 and works with Yahoo! Mail.



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



Re: Re: context error

2006-02-16 Thread jacky
  I added the   reloadable=true crossContext=true, but the same errors 
occur.

 Best Regards.
   jacky  
   
- Original Message - 
From: Warren Pace [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Friday, February 17, 2006 5:35 AM
Subject: Re: Re: context error


 
  
  From: jacky [EMAIL PROTECTED]
  Date: 2006/02/15 Wed PM 09:00:29 EST
  To: Tomcat Users List users@tomcat.apache.org
  Subject: Re: Re: context error
  
  hi,
 RedHat7.3,  J2sdk1.4.2_10
  server.xml is the default server.xml:
 
  !-- Tomcat Root Context --
  !--
Context path= docBase=ROOT debug=0/
  --
  !--Context path=/myworkflow docBase=myworkflow /-- //here, 
  myworkflow is my web app.
 Been a while since I used 4.1 - this is from memory.
 try
 Context path=/myworkflow docBase=myworkflow
   reloadable=true crossContext=true
 /Context
/Host
  
  /Engine
  
/Service
  
!-- The MOD_WEBAPP connector is used to connect Apache 1.3 with Tomcat 
  4.0
 as its servlet container. Please read the README.txt file coming with
 the WebApp Module distribution on how to build it.
 (Or check out the jakarta-tomcat-connectors/webapp CVS repository)
  
 To configure the Apache side, you must ensure that you have the
 ServerName and Port directives defined in httpd.conf.  Then,
 lines like these to the bottom of your httpd.conf file:
  
   LoadModule webapp_module libexec/mod_webapp.so
   WebAppConnection warpConnection warp localhost:8008
   WebAppDeploy examples warpConnection /examples/
  
 The next time you restart Apache (after restarting Tomcat, if needed)
 the connection will be established, and all applications you make
 visible via WebAppDeploy directives can be accessed through Apache.
--
  
!-- Define an Apache-Connector Service --
Service name=Tomcat-Apache
  
  Connector className=org.apache.catalina.connector.warp.WarpConnector
   port=8008 minProcessors=5 maxProcessors=75
   enableLookups=true
   acceptCount=10 debug=0/
  
  !-- Replace localhost with what your Apache ServerName is set to 
  --
  Engine className=org.apache.catalina.connector.warp.WarpEngine
   name=Apache debug=0 appBase=webapps
  
!-- Global logger unless overridden at lower levels --
Logger className=org.apache.catalina.logger.FileLogger
prefix=apache_log. suffix=.txt
timestamp=true/
  
!-- Because this Realm is here, an instance will be shared globally 
  --
Realm className=org.apache.catalina.realm.MemoryRealm /
  
  /Engine
  
/Service
  
  /Server
  
  
   Best Regards.
 jacky  
 
  - Original Message - 
  From: Warren Pace [EMAIL PROTECTED]
  To: Tomcat Users List users@tomcat.apache.org
  Sent: Wednesday, February 15, 2006 6:42 PM
  Subject: Re: Re: context error
  
  
   

From: jacky [EMAIL PROTECTED]
Date: 2006/02/14 Tue PM 08:32:56 EST
To: Tomcat Users List users@tomcat.apache.org, 
[EMAIL PROTECTED]
Subject: Re: context error

hi, Mike,
   Do you mean put all directories together? 
No, we need to separate them. So, any other suggestions about this 
problem?

 Best Regards.
   jacky  

   Could you send us your server.xml with and without the added context?  I 
   see you're using 4.1.  What OS and what JVM are you using?
   
   
   -
   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: Best IDE for dev of Tomcat Servlet?

2006-02-16 Thread Glen Mazza

Pulkit Singhal wrote:

I would say Eclipse web edition...but you have to figure out how to
integrate it with tomcat...shld be able to find a tutorial on that out there
somewhere.



I use Eclipse WTP but don't bother integrating it with Tomcat--I use the 
manager Ant tasks[1] for autodeploying WAR files instead.  This also 
creates some IDE-independence.


Glen

[1] 
http://tomcat.apache.org/tomcat-5.5-doc/manager-howto.html#Executing%20Manager%20Commands%20With%20Ant



On 2/16/06, Mike Reynolds [EMAIL PROTECTED] wrote:


What is the best development environment for developing a Tomcat servlet?


-
Brings words and photos together (easily) with
PhotoMail  - it's free and works with Yahoo! Mail.







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



RE: Re: context error

2006-02-16 Thread Caldarale, Charles R
 From: jacky [EMAIL PROTECTED]
 Subject: Re: Re: context error
 
 server.xml is the default server.xml:
 
 !-- Tomcat Root Context --
 !--
   Context path= docBase=ROOT debug=0/
 --

Part of the problem may be that you have no default Context.  There
should be one (and only one) Context tag with path=.  If you want
your app to be the default, you can just set its path to .

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

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



RE: Session Expires At Every Request (Tomcat5.0.28/Firefox)

2006-02-16 Thread George Sexton
Just out of curiousity, why do your pages have two HEAD blocks (one at the
top, and one at the bottom of the page)?

George Sexton
MH Software, Inc.
http://www.mhsoftware.com/
Voice: 303 438 9585
  

 -Original Message-
 From: Michael Andreas Omerou [mailto:[EMAIL PROTECTED] 
 Sent: Thursday, February 16, 2006 3:38 PM
 To: 'Tomcat Users List'
 Cc: [EMAIL PROTECTED]; 'George Sexton'; 'Joey Geiger'; 
 [EMAIL PROTECTED]
 Subject: RE: Session Expires At Every Request (Tomcat5.0.28/Firefox)
 
 Dear all,
 
 Thanks for your replies to my problem.  However, I think the 
 discussion has
 been diverted into a debate totally irrelevant to the issue.
 
 As far as Chuck's question whether this could be related to 
 the popup, this
 is not the case as the problem happens on other pages too, 
 even on index.jsp
 (first page)
 
 Regarding Filip's email and monitoring HTTP Headers I am 
 impressed that it
 seems to work for you.  I run FireFox on Windows XP Pro SP2 
 and what happens
 is that when a page finishes loading, the session expires on 
 the server.
 When the user/browser requests another page the correct 
 session id is sent
 from the browser but the server detects that this session id 
 sent is no more
 valid (expired) and so we have a timeout.  However, this 
 behaviour, only
 occurs with FireFox.   I tried it from another PC with XP Pro 
 SP2 too but
 the problem is the same.  With IE, NetScape and Opera all is ok. 
 
  
 
 I want to emphasize that this behaviour does not happen only 
 when switching
 from SSL to non-SSL or vice versa.  Even if I try to access 
 pages such as
 the About Us or the Contact Us the session expires again.  
 However, in that
 case the problem is not visible to the user since those pages do not
 contain any session specific data so even with a new session 
 it is ok.  Try
 the following though and you will see what I mean.  On 
 tophotelchoices.com
 do a search for a hotel.  Let the results be displayed and 
 then, go to the
 About Us page.  Then, click your browser's back button and 
 instead of going
 back to the search results you get a timeout (if you get 
 search results it
 will be from browser's cache, do a reload and you will get timeout).
 
 Monitoring the HTTP headers for both IE and Firefox using 
 HttpAnalyzer for
 IE and LiveHttpHeaders for Firefox gives the following:
 1) IE
 
 (Request-Line):GET http://www.tophotelchoices.com/ HTTP/1.1
 Accept:*/*
 Accept-Language:en-gb
 Accept-Encoding:gzip, deflate
 User-Agent:Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; 
 SV1; .NET CLR
 1.1.4322; InfoPath.1)
 Host:www.tophotelchoices.com
 Proxy-Connection:Keep-Alive
 Pragma:no-cache
 Cookie:JSESSIONID=6F187E9E698F5D81A09DF6AD0D25115D
 
 (Status-Line):HTTP/1.0 200 OK
 Date:Thu, 16 Feb 2006 22:09:18 GMT
 Server:Apache/1.3.33 (Unix) mod_jk/1.2.15
 Cache-Control:no-cache
 Pragma:no-cache
 Expires:Wed, 31 Dec 1969 23:59:59 GMT
 Content-Type:text/html;charset=UTF-8
 X-Cache:MISS from proxy01.spidernet.net
 X-Cache-Lookup:MISS from proxy01.spidernet.net:83
 Proxy-Connection:close
 
 2) FIREFOX:
 GET http://www.tophotelchoices.com/index.jsp HTTP/1.1
 Host: www.tophotelchoices.com
 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.7.12)
 Gecko/20050919 Firefox/1.0.7
 Accept:
 text/xml,application/xml,application/xhtml+xml,text/html;q=0.9
,text/plain;q=
 0.8,image/png,*/*;q=0.5
 Accept-Language: en-gb,en;q=0.5
 Accept-Encoding: gzip,deflate
 Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
 Keep-Alive: 300
 Proxy-Connection: keep-alive
 Referer: http://www.tophotelchoices.com/timeout.jsp
 Cookie: JSESSIONID=3849A82D2F9B6991FE41073D771D1358
 Cache-Control: max-age=0
 
 HTTP/1.x 200 OK
 Date: Thu, 16 Feb 2006 22:12:27 GMT
 Server: Apache/1.3.33 (Unix) mod_jk/1.2.15
 Cache-Control: no-cache
 Pragma: no-cache
 Expires: Wed, 31 Dec 1969 23:59:59 GMT
 Content-Type: text/html;charset=UTF-8
 X-Cache: MISS from proxy01.spidernet.net
 X-Cache-Lookup: MISS from proxy01.spidernet.net:83
 Proxy-Connection: close
 
 Obviously, the response is the same in both cases, however, 
 for FireFox the
 important difference I see in Request is the one saying Cache-control:
 max-age=0 and also, the Keep-Alive value 300. I do not think 
 the Keep-Alive
 value is the problem, however, the Cache-Control: max-age=0 
 is suspicious.
 In my code I have 
 response.setHeader(Cache-Control,no-cache) but I think
 this is different.  Does anyone have a clue what the 
 max-age:0 is doing?
 
 Your help will be greatly appreciated.
 
 
 Thanks and regards,
 Michael
 
 -Original Message-
 From: Filip Hanik - Dev Lists [mailto:[EMAIL PROTECTED] 
 Sent: 15 February 2006 22:16
 To: Tomcat Users List
 Subject: Re: Session Expires At Every Request (Tomcat5.0.28/Firefox)
 
 George Sexton wrote:
  Does the code transparently create a new JSessionID value then?
 
 George,
 you might wanna rethink your comments, they don't shine any 
 light on the issue and they for sure don't state any facts, 
 let me 

configuring mod_jk with apache / tomcat

2006-02-16 Thread Brad O'Hearne
I am trying to get the Tomcat connector configured to connect tomcat and 
apache and I have two questions:


1) I downloaded the binary distribution for linux, and the filename was: 
jakarta-tomcat-connectors-jk-1.2.14-linux-sles9-x86_64-worker.so. Is 
this supposed to be mod_jk?


2) What kind of workers.properties should I have? There is no sample in 
the http/conf or tomcat/conf directory.


Thanks,

Brad

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



RE: Session Expires At Every Request (Tomcat5.0.28/Firefox)

2006-02-16 Thread Wade Chandler
  Monitoring the HTTP headers for both IE and
 Firefox using 
  HttpAnalyzer for
  IE and LiveHttpHeaders for Firefox gives the
 following:
  1) IE
  
  (Request-Line):GET http://www.tophotelchoices.com/
 HTTP/1.1
  Accept:*/*
  Accept-Language:en-gb
  Accept-Encoding:gzip, deflate
  User-Agent:Mozilla/4.0 (compatible; MSIE 6.0;
 Windows NT 5.1; 
  SV1; .NET CLR
  1.1.4322; InfoPath.1)
  Host:www.tophotelchoices.com
  Proxy-Connection:Keep-Alive
  Pragma:no-cache
  Cookie:JSESSIONID=6F187E9E698F5D81A09DF6AD0D25115D
  
  (Status-Line):HTTP/1.0 200 OK
  Date:Thu, 16 Feb 2006 22:09:18 GMT
  Server:Apache/1.3.33 (Unix) mod_jk/1.2.15
  Cache-Control:no-cache
  Pragma:no-cache
  Expires:Wed, 31 Dec 1969 23:59:59 GMT
  Content-Type:text/html;charset=UTF-8
  X-Cache:MISS from proxy01.spidernet.net
  X-Cache-Lookup:MISS from proxy01.spidernet.net:83
  Proxy-Connection:close
  
  2) FIREFOX:
  GET http://www.tophotelchoices.com/index.jsp
 HTTP/1.1
  Host: www.tophotelchoices.com
  User-Agent: Mozilla/5.0 (Windows; U; Windows NT
 5.1; en-GB; rv:1.7.12)
  Gecko/20050919 Firefox/1.0.7
  Accept:
 

text/xml,application/xml,application/xhtml+xml,text/html;q=0.9
 ,text/plain;q=
  0.8,image/png,*/*;q=0.5
  Accept-Language: en-gb,en;q=0.5
  Accept-Encoding: gzip,deflate
  Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
  Keep-Alive: 300
  Proxy-Connection: keep-alive
  Referer:
 http://www.tophotelchoices.com/timeout.jsp
  Cookie:
 JSESSIONID=3849A82D2F9B6991FE41073D771D1358
  Cache-Control: max-age=0
  
  HTTP/1.x 200 OK
  Date: Thu, 16 Feb 2006 22:12:27 GMT
  Server: Apache/1.3.33 (Unix) mod_jk/1.2.15
  Cache-Control: no-cache
  Pragma: no-cache
  Expires: Wed, 31 Dec 1969 23:59:59 GMT
  Content-Type: text/html;charset=UTF-8
  X-Cache: MISS from proxy01.spidernet.net
  X-Cache-Lookup: MISS from proxy01.spidernet.net:83
  Proxy-Connection: close
  
  Obviously, the response is the same in both cases,
 however, 
  for FireFox the
  important difference I see in Request is the one
 saying Cache-control:
  max-age=0 and also, the Keep-Alive value 300. I do
 not think 
  the Keep-Alive
  value is the problem, however, the Cache-Control:
 max-age=0 
  is suspicious.
  In my code I have 
  response.setHeader(Cache-Control,no-cache) but
 I think
  this is different.  Does anyone have a clue what
 the 
  max-age:0 is doing?
  
  Your help will be greatly appreciated.
  
  
  Thanks and regards,
  Michael
  
  -Original Message-
  From: Filip Hanik - Dev Lists
 [mailto:[EMAIL PROTECTED] 
  Sent: 15 February 2006 22:16
  To: Tomcat Users List
  Subject: Re: Session Expires At Every Request
 (Tomcat5.0.28/Firefox)
  
  George Sexton wrote:
   Does the code transparently create a new
 JSessionID value then?
  
  George,
  you might wanna rethink your comments, they don't
 shine any 
  light on the issue and they for sure don't state
 any facts, 
  let me prove you I am right. Below is the headers
 I tracked 
  with LiveHttpHeaders, as you can see, JSESSIONID
 remains 
  exactly the same in the browser request when the
 switch from 
  HTTP to HTTPS happens.
  This is Firefox on Fedora 4. The site works fine.
  
  This must be a browser issue, can you tell us a
 little bit 
  more about what version and platform your browser
 is on.
  
  1. Request to the home - non secure
 


  http://www.tophotelchoices.com/
  GET / HTTP/1.1
  Host: www.tophotelchoices.com
  User-Agent: Mozilla/5.0 (X11; U; Linux i686;
 en-US; rv:1.8.0.1)
  Gecko/20060124 Firefox/1.5.0.1
  Accept: 
 

text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,
  text/plain;q=0.8,image/png,*/*;q=0.5
  Accept-Language: en-us,en;q=0.5
  Accept-Encoding: gzip,deflate
  Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
  Keep-Alive: 300
  Connection: keep-alive
  Referer: http://www.tophotelchoices.com/
  
  HTTP/1.x 200 OK
  Date: Wed, 15 Feb 2006 20:08:55 GMT
  Server: Apache/1.3.33 (Unix) mod_jk/1.2.15
  Set-Cookie:
 JSESSIONID=735009FD40D725EDAA14389409CD60FF; Path=/
  Cache-Control: no-cache
  Pragma: no-cache
  Expires: Wed, 31 Dec 1969 23:59:59 GMT
  Keep-Alive: timeout=5, max=20
  Connection: Keep-Alive
  Transfer-Encoding: chunked
  Content-Type: text/html;charset=UTF-8
  
  2. Click on the request button - switch from HTTP
 to HTTPS 
 

https://www.tophotelchoices.com/bookingServlet1?hotel=ASI
  GET /bookingServlet1?hotel=ASI HTTP/1.1
  Host: www.tophotelchoices.com:443
  User-Agent: Mozilla/5.0 (X11; U; Linux i686;
 en-US; rv:1.8.0.1)
  Gecko/20060124 Firefox/1.5.0.1
  Accept: 
 

text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,
  text/plain;q=0.8,image/png,*/*;q=0.5
  Accept-Language: en-us,en;q=0.5
  Accept-Encoding: gzip,deflate
  Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
  Keep-Alive: 300
  Connection: keep-alive
  Referer:
 http://www.tophotelchoices.com/searchResults.jsp
  Cookie:
 JSESSIONID=735009FD40D725EDAA14389409CD60FF
  
  HTTP/1.x 200 OK
  Date: Wed, 15 Feb 

RE: Session Expires At Every Request (Tomcat5.0.28/Firefox)

2006-02-16 Thread George Sexton
Since I regularly use Firefox and sessions I'm pretty sure that there is
really nothing unique to that combination that is causing the problem. It
could be the proxy server below is causing the issue. The obvious thing to
do would be to try from a different network without a proxy server and see
if your issue clears up.

I would also recommend that you do a little cleanup on your HTML pages and
see if there is some effect on the issue. The specific things I would fix in
your HTML are:

1)  No DocType, causing the page to render in Quirks mode. FYI, this
will cause differences in the box model which will result in IE 6.0 and
FireFox/Mozilla displaying pages very differently.

2)  No Content type/charset meta in the header.

3)  You have a duplicate HEAD block in the bottom of your page.

Your reference to the cache-control entry:


 Cache-Control: max-age=0

Doesn't appear in my browser. I would suspect that its being added by your
proxy server.

 X-Cache: MISS from proxy01.spidernet.net
 X-Cache-Lookup: MISS from proxy01.spidernet.net:83

I would also say that if you're going to use the addHeader() to put in
cache/pragma entries that you should not use the META tags.





George Sexton
MH Software, Inc.
http://www.mhsoftware.com/
Voice: 303 438 9585
  

 -Original Message-
 From: Michael Andreas Omerou [mailto:[EMAIL PROTECTED] 
 Sent: Thursday, February 16, 2006 3:38 PM
 To: 'Tomcat Users List'
 Cc: [EMAIL PROTECTED]; 'George Sexton'; 'Joey Geiger'; 
 [EMAIL PROTECTED]
 Subject: RE: Session Expires At Every Request (Tomcat5.0.28/Firefox)
 
 Dear all,
 
 Thanks for your replies to my problem.  However, I think the 
 discussion has
 been diverted into a debate totally irrelevant to the issue.
 
 As far as Chuck's question whether this could be related to 
 the popup, this
 is not the case as the problem happens on other pages too, 
 even on index.jsp
 (first page)


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



Re: sePrincipal

2006-02-16 Thread Bill Barker

[EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED]
 Hi All

I trying setPrincipal on request on tomcat 5.0.30. But servlet.api.jar 
 that comes with tomcat does not have setPrincipal method on HttpRequest 
 class.  I look at the tomcat source and on AuthenticationBase class uses 
 that method to setPrincipal. Am I using wrong servlet api jar? which one 
 should I use?


AuthentictorBase calls setPrincipal on Tomcat's internal Request object. 
While this happens to implement HttpServletRequest, it is entirely different 
from the HttpServletRequest that is seen by the webapp.



 thanks for any replies in advance.

 anil 




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



Re: Question about caseSensitive - how does it work?

2006-02-16 Thread Bill Barker

Bob Faist [EMAIL PROTECTED] wrote in message 
news:[EMAIL PROTECTED]
 My guess is that the web app name will need to be treated as case
 sensitive regardless of the Context configuration.

 http://localhost:8080/tomcat-docs/INDEX.html
 http://localhost:8080/tomcat-docs/index.html

 Both of these work for serving static content.

 http://localhost:8080/TOMCAT-DOCS/index.html

 This does not work.


For the record, you are correct.  The caseSensitive option applies only to 
static content (or, rather, anything you can do context.getResource() on). 
It doesn't apply to the Context path, nor to any mapped servlet URIs.



 -Original Message-
 From: David Kerber [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, February 15, 2006 11:52 AM
 To: Tomcat Users List
 Subject: Question about caseSensitive - how does it work?

 With the trouble I've been having with getting caseSensitive=false to
 work in my app, I got to wondering if it really does what I think it
 does on Windows XP.

 My interpretation of the doc description is that when
 caseSensitive=:false, I should be able to have a document root and
 context path at (for example) /SiteData, and be able to reach it with
 urls including sitedata, SITEDATA, SiteData, or any other
 combination of upper- and lower-case letters which spell the correct
 word.  Is this interpretation correct?

 If so, then I can go back to figuring out how to actually make it work.

 TIA!
 Dave



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


 **
 Confidentiality Notice
 The information contained in this e-mail is confidential and intended for
 use only by the person(s) or organization listed in the address. If you 
 have
 received this communication in error, please contact the sender at O'Neil 
 
 Associates, Inc., immediately. Any copying, dissemination, or distribution
 of this communication, other than by the intended recipient, is strictly
 prohibited.
 ** 




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



Re: Change Max Post Size

2006-02-16 Thread Bill Barker

Diwan, Dronesh (Genworth, Contractor) [EMAIL PROTECTED] wrote 
in message 
news:[EMAIL PROTECTED]
 Any idea on how to change the maxPostSize in the Connector instead of
 using the dafault values.

 I have problem in uploading files  2 MB. I tried setting different
 values as prescribed but it didn't work.
 http://tomcat.apache.org/tomcat-5.5-doc/config/ajp.html


Changing maxPostSize won't do anything at all for file uploads.  It is only 
used for processing html-form data.  Your problem is coming from someplace 
else (e.g. bad setting being passed to commons-fileupload).


 Thanks
 Dronesh 




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



Re: sePrincipal

2006-02-16 Thread anil_a
Thanks for reply Bill. Is there anyway to setPrincipal on  
HttpServletRequest? can I cast to concreate class that implemented that 
HttpServletRequest? Which class is it?



anil

anil

All I want to do is setPrincipal from a servlet filter.

Bill Barker wrote:


[EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED]
 


Hi All

  I trying setPrincipal on request on tomcat 5.0.30. But servlet.api.jar 
that comes with tomcat does not have setPrincipal method on HttpRequest 
class.  I look at the tomcat source and on AuthenticationBase class uses 
that method to setPrincipal. Am I using wrong servlet api jar? which one 
should I use?


   



AuthentictorBase calls setPrincipal on Tomcat's internal Request object. 
While this happens to implement HttpServletRequest, it is entirely different 
from the HttpServletRequest that is seen by the webapp.




 


thanks for any replies in advance.

anil 
   






-
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: context error

2006-02-16 Thread jacky
I added the Context path= docBase=ROOT debug=0/, it still doesn't work

 Best Regards.
   jacky  
   
- Original Message - 
From: Caldarale, Charles R [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Friday, February 17, 2006 10:13 AM
Subject: RE: Re: context error


 From: jacky [EMAIL PROTECTED]
 Subject: Re: Re: context error
 
 server.xml is the default server.xml:
 
 !-- Tomcat Root Context --
 !--
   Context path= docBase=ROOT debug=0/
 --

Part of the problem may be that you have no default Context.  There
should be one (and only one) Context tag with path=.  If you want
your app to be the default, you can just set its path to .

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

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



Re: Session Expires At Every Request (Tomcat5.0.28/Firefox)

2006-02-16 Thread Bill Barker

Michael Andreas Omerou [EMAIL PROTECTED] wrote in message 
news:[EMAIL PROTECTED]
 Dear all,

 Thanks for your replies to my problem.  However, I think the discussion 
 has
 been diverted into a debate totally irrelevant to the issue.


Not that I'm all that interested, but just to push this along, what are the 
Cookie properties in FireFox after you request a page?

Personally, I'm betting that FireFox is probably applying your 
cache-control/max-age headers to the Cookies as well as to the page itself.

 As far as Chuck's question whether this could be related to the popup, 
 this
 is not the case as the problem happens on other pages too, even on 
 index.jsp
 (first page)

 Regarding Filip's email and monitoring HTTP Headers I am impressed that it
 seems to work for you.  I run FireFox on Windows XP Pro SP2 and what 
 happens
 is that when a page finishes loading, the session expires on the server.
 When the user/browser requests another page the correct session id is sent
 from the browser but the server detects that this session id sent is no 
 more
 valid (expired) and so we have a timeout.  However, this behaviour, only
 occurs with FireFox.   I tried it from another PC with XP Pro SP2 too but
 the problem is the same.  With IE, NetScape and Opera all is ok.



 I want to emphasize that this behaviour does not happen only when 
 switching
 from SSL to non-SSL or vice versa.  Even if I try to access pages such as
 the About Us or the Contact Us the session expires again.  However, in 
 that
 case the problem is not visible to the user since those pages do not
 contain any session specific data so even with a new session it is ok. 
 Try
 the following though and you will see what I mean.  On tophotelchoices.com
 do a search for a hotel.  Let the results be displayed and then, go to the
 About Us page.  Then, click your browser's back button and instead of 
 going
 back to the search results you get a timeout (if you get search results it
 will be from browser's cache, do a reload and you will get timeout).

 Monitoring the HTTP headers for both IE and Firefox using HttpAnalyzer for
 IE and LiveHttpHeaders for Firefox gives the following:
 1) IE

 (Request-Line):GET http://www.tophotelchoices.com/ HTTP/1.1
 Accept:*/*
 Accept-Language:en-gb
 Accept-Encoding:gzip, deflate
 User-Agent:Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET 
 CLR
 1.1.4322; InfoPath.1)
 Host:www.tophotelchoices.com
 Proxy-Connection:Keep-Alive
 Pragma:no-cache
 Cookie:JSESSIONID=6F187E9E698F5D81A09DF6AD0D25115D

 (Status-Line):HTTP/1.0 200 OK
 Date:Thu, 16 Feb 2006 22:09:18 GMT
 Server:Apache/1.3.33 (Unix) mod_jk/1.2.15
 Cache-Control:no-cache
 Pragma:no-cache
 Expires:Wed, 31 Dec 1969 23:59:59 GMT
 Content-Type:text/html;charset=UTF-8
 X-Cache:MISS from proxy01.spidernet.net
 X-Cache-Lookup:MISS from proxy01.spidernet.net:83
 Proxy-Connection:close

 2) FIREFOX:
 GET http://www.tophotelchoices.com/index.jsp HTTP/1.1
 Host: www.tophotelchoices.com
 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.7.12)
 Gecko/20050919 Firefox/1.0.7
 Accept:
 text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=
 0.8,image/png,*/*;q=0.5
 Accept-Language: en-gb,en;q=0.5
 Accept-Encoding: gzip,deflate
 Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
 Keep-Alive: 300
 Proxy-Connection: keep-alive
 Referer: http://www.tophotelchoices.com/timeout.jsp
 Cookie: JSESSIONID=3849A82D2F9B6991FE41073D771D1358
 Cache-Control: max-age=0

 HTTP/1.x 200 OK
 Date: Thu, 16 Feb 2006 22:12:27 GMT
 Server: Apache/1.3.33 (Unix) mod_jk/1.2.15
 Cache-Control: no-cache
 Pragma: no-cache
 Expires: Wed, 31 Dec 1969 23:59:59 GMT
 Content-Type: text/html;charset=UTF-8
 X-Cache: MISS from proxy01.spidernet.net
 X-Cache-Lookup: MISS from proxy01.spidernet.net:83
 Proxy-Connection: close

 Obviously, the response is the same in both cases, however, for FireFox 
 the
 important difference I see in Request is the one saying Cache-control:
 max-age=0 and also, the Keep-Alive value 300. I do not think the 
 Keep-Alive
 value is the problem, however, the Cache-Control: max-age=0 is suspicious.
 In my code I have response.setHeader(Cache-Control,no-cache) but I 
 think
 this is different.  Does anyone have a clue what the max-age:0 is doing?

 Your help will be greatly appreciated.


 Thanks and regards,
 Michael

-Original Message-
From: Filip Hanik - Dev Lists [mailto:[EMAIL PROTECTED]
Sent: 15 February 2006 22:16
To: Tomcat Users List
Subject: Re: Session Expires At Every Request (Tomcat5.0.28/Firefox)

George Sexton wrote:
 Does the code transparently create a new JSessionID value then?

George,
you might wanna rethink your comments, they don't shine any
light on the issue and they for sure don't state any facts,
let me prove you I am right. Below is the headers I tracked
with LiveHttpHeaders, as you can see, JSESSIONID remains
exactly the same in the browser request when the switch from
HTTP to HTTPS happens.
This is 

RE: New isapi_redirect.dll has problems

2006-02-16 Thread David Thielen
Hi;

Ok, I went back to Info and it is happening again. I think it's the logging
because the IIS logs don't match the isapi log. Not only does the list of
files not match (these are the only places most of these filenames occur)
but there are files listed in the isapi log that never appear in the IIS
log.

Here is the isapi log (part):

[Thu Feb 16 14:22:45 2006] [error] jk_isapi_plugin.c (1049): could not get a
worker for name ajp13
[Thu Feb 16 17:57:49 2006] [warn]  jk_uri_worker_map.c (429): Uri
http://www.barbiesciencefair.com is invalid. Uri must start with /
[Thu Feb 16 17:57:49 2006] [warn]  jk_uri_worker_map.c (429): Uri
http://www.barbiesciencefair.com/experiment.htm is invalid. Uri must start
with /
[Thu Feb 16 17:57:49 2006] [warn]  jk_uri_worker_map.c (429): Uri
http://www.barbiesciencefair.com/comments.htm is invalid. Uri must start
with /
[Thu Feb 16 17:57:49 2006] [warn]  jk_uri_worker_map.c (429): Uri
http://www.barbiesciencefair.com is invalid. Uri must start with /
[Thu Feb 16 17:57:49 2006] [warn]  jk_uri_worker_map.c (429): Uri
http://www.barbiesciencefair.com/editorials.htm is invalid. Uri must start
with /
[Thu Feb 16 17:57:49 2006] [warn]  jk_uri_worker_map.c (429): Uri
http://www.barbiesciencefair.com/articles.htm is invalid. Uri must start
with /
[Thu Feb 16 17:57:49 2006] [warn]  jk_uri_worker_map.c (429): Uri
http://www.barbiesciencefair.com/\ is invalid. Uri must start with /
[Thu Feb 16 17:57:49 2006] [warn]  jk_uri_worker_map.c (429): Uri
http://www.barbiesciencefair.com/index.htm is invalid. Uri must start with /
[Thu Feb 16 17:57:50 2006] [warn]  jk_uri_worker_map.c (429): Uri
http://www.barbiesciencefair.com/ is invalid. Uri must start with /
[Thu Feb 16 17:57:50 2006] [warn]  jk_uri_worker_map.c (429): Uri
http://www.barbiesciencefair.com/26elett.html is invalid. Uri must start
with /


Here is the only IIS log with some of the same file names:

2006-02-16 22:19:01 W3SVC1915441627 JASMINE 192.168.200.10 GET
/barbie/26elett.html - 80 - 38.118.42.38
Mozilla/4.0+(compatible;+MSIE+6.0;+Windows+XP) -
http://www.thielen.com/barbie/editorials.htm www.thielen.com 200 0 0
2006-02-16 22:19:01 W3SVC1915441627 JASMINE 192.168.200.10 GET
/barbie/16eedit.html - 80 - 38.118.42.38
Mozilla/4.0+(compatible;+MSIE+6.0;+Windows+XP) -
http://www.thielen.com/barbie/editorials.htm www.thielen.com 200 0 0
2006-02-16 22:19:02 W3SVC1915441627 JASMINE 192.168.200.10 GET
/barbie/18elett.html - 80 - 38.118.42.38
Mozilla/4.0+(compatible;+MSIE+6.0;+Windows+XP) -
http://www.thielen.com/barbie/editorials.htm www.thielen.com 200 0 0
2006-02-16 22:19:02 W3SVC1915441627 JASMINE 192.168.200.10 GET
/barbie/01eedit.html - 80 - 38.118.42.38
Mozilla/4.0+(compatible;+MSIE+6.0;+Windows+XP) -
http://www.thielen.com/barbie/editorials.htm www.thielen.com 200 0 0
2006-02-16 22:19:02 W3SVC1915441627 JASMINE 192.168.200.10 GET
/barbie/16elett.html - 80 - 38.118.42.38
Mozilla/4.0+(compatible;+MSIE+6.0;+Windows+XP) -
http://www.thielen.com/barbie/editorials.htm www.thielen.com 200 0 0
2006-02-16 22:19:02 W3SVC1915441627 JASMINE 192.168.200.10 GET
/barbie/edits0221b.htm - 80 - 38.118.42.38
Mozilla/4.0+(compatible;+MSIE+6.0;+Windows+XP) -
http://www.thielen.com/barbie/editorials.htm www.thielen.com 200 0 0
2006-02-16 22:19:07 W3SVC1915441627 JASMINE 192.168.200.10 GET
/barbie/04egw.html - 80 - 38.118.42.38
Mozilla/4.0+(compatible;+MSIE+6.0;+Windows+XP) -
http://www.thielen.com/barbie/editorials.htm www.thielen.com 200 0 0
2006-02-16 22:19:07 W3SVC1915441627 JASMINE 192.168.200.10 GET
/barbie/05elett.html - 80 - 38.118.42.38
Mozilla/4.0+(compatible;+MSIE+6.0;+Windows+XP) -
http://www.thielen.com/barbie/editorials.htm www.thielen.com 200 0 0
2006-02-16 22:19:09 W3SVC1915441627 JASMINE 192.168.200.10 GET
/barbie/03elett.html - 80 - 38.118.42.38
Mozilla/4.0+(compatible;+MSIE+6.0;+Windows+XP) -
http://www.thielen.com/barbie/editorials.htm www.thielen.com 200 0 0

??? - thanks - dave


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



RE: Session Expires At Every Request (Tomcat5.0.28/Firefox)

2006-02-16 Thread Michael Andreas Omerou
This is really an old thing I read somewhere that IE might not respond to
the top headers so the only way to force IE to work as you want it to (no
caching) was to do this (put one more header at the end).  Back at that time
(IE 5 was used with 6 not being released yet) this solved me many problems
so since then I use this trick it in my code whenever I do not want caching.

Michael 

-Original Message-
From: George Sexton [mailto:[EMAIL PROTECTED] 
Sent: 17 February 2006 04:42
To: 'Tomcat Users List'; [EMAIL PROTECTED]
Subject: RE: Session Expires At Every Request (Tomcat5.0.28/Firefox)

Just out of curiousity, why do your pages have two HEAD blocks 
(one at the top, and one at the bottom of the page)?

George Sexton
MH Software, Inc.
http://www.mhsoftware.com/
Voice: 303 438 9585
  

 -Original Message-
 From: Michael Andreas Omerou [mailto:[EMAIL PROTECTED]
 Sent: Thursday, February 16, 2006 3:38 PM
 To: 'Tomcat Users List'
 Cc: [EMAIL PROTECTED]; 'George Sexton'; 'Joey Geiger'; 
 [EMAIL PROTECTED]
 Subject: RE: Session Expires At Every Request (Tomcat5.0.28/Firefox)
 
 Dear all,
 
 Thanks for your replies to my problem.  However, I think the 
 discussion has been diverted into a debate totally 
irrelevant to the 
 issue.
 
 As far as Chuck's question whether this could be related to 
the popup, 
 this is not the case as the problem happens on other pages too, even 
 on index.jsp (first page)
 
 Regarding Filip's email and monitoring HTTP Headers I am impressed 
 that it seems to work for you.  I run FireFox on Windows XP Pro SP2 
 and what happens is that when a page finishes loading, the session 
 expires on the server.
 When the user/browser requests another page the correct 
session id is 
 sent from the browser but the server detects that this 
session id sent 
 is no more valid (expired) and so we have a timeout.  However, this 
 behaviour, only
 occurs with FireFox.   I tried it from another PC with XP Pro 
 SP2 too but
 the problem is the same.  With IE, NetScape and Opera all is ok. 
 
  
 
 I want to emphasize that this behaviour does not happen only when 
 switching from SSL to non-SSL or vice versa.  Even if I try 
to access 
 pages such as the About Us or the Contact Us the session expires 
 again.
 However, in that
 case the problem is not visible to the user since those 
pages do not 
 contain any session specific data so even with a new session 
it is ok.  
 Try the following though and you will see what I mean.  On 
 tophotelchoices.com do a search for a hotel.  Let the results be 
 displayed and then, go to the About Us page.  Then, click your 
 browser's back button and instead of going back to the 
search results 
 you get a timeout (if you get search results it will be from 
browser's 
 cache, do a reload and you will get timeout).
 
 Monitoring the HTTP headers for both IE and Firefox using 
HttpAnalyzer 
 for IE and LiveHttpHeaders for Firefox gives the following:
 1) IE
 
 (Request-Line):GET http://www.tophotelchoices.com/ HTTP/1.1
 Accept:*/*
 Accept-Language:en-gb
 Accept-Encoding:gzip, deflate
 User-Agent:Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; 
 .NET CLR 1.1.4322; InfoPath.1) Host:www.tophotelchoices.com 
 Proxy-Connection:Keep-Alive Pragma:no-cache 
 Cookie:JSESSIONID=6F187E9E698F5D81A09DF6AD0D25115D
 
 (Status-Line):HTTP/1.0 200 OK
 Date:Thu, 16 Feb 2006 22:09:18 GMT
 Server:Apache/1.3.33 (Unix) mod_jk/1.2.15 Cache-Control:no-cache 
 Pragma:no-cache Expires:Wed, 31 Dec 1969 23:59:59 GMT
 Content-Type:text/html;charset=UTF-8
 X-Cache:MISS from proxy01.spidernet.net X-Cache-Lookup:MISS from 
 proxy01.spidernet.net:83 Proxy-Connection:close
 
 2) FIREFOX:
 GET http://www.tophotelchoices.com/index.jsp HTTP/1.1
 Host: www.tophotelchoices.com
 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; 
rv:1.7.12)
 Gecko/20050919 Firefox/1.0.7
 Accept:
 text/xml,application/xml,application/xhtml+xml,text/html;q=0.9
,text/plain;q=
 0.8,image/png,*/*;q=0.5
 Accept-Language: en-gb,en;q=0.5
 Accept-Encoding: gzip,deflate
 Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
 Keep-Alive: 300
 Proxy-Connection: keep-alive
 Referer: http://www.tophotelchoices.com/timeout.jsp
 Cookie: JSESSIONID=3849A82D2F9B6991FE41073D771D1358
 Cache-Control: max-age=0
 
 HTTP/1.x 200 OK
 Date: Thu, 16 Feb 2006 22:12:27 GMT
 Server: Apache/1.3.33 (Unix) mod_jk/1.2.15
 Cache-Control: no-cache
 Pragma: no-cache
 Expires: Wed, 31 Dec 1969 23:59:59 GMT
 Content-Type: text/html;charset=UTF-8
 X-Cache: MISS from proxy01.spidernet.net
 X-Cache-Lookup: MISS from proxy01.spidernet.net:83
 Proxy-Connection: close
 
 Obviously, the response is the same in both cases, however, for 
 FireFox the important difference I see in Request is the one saying 
 Cache-control:
 max-age=0 and also, the Keep-Alive value 300. I do not think the 
 Keep-Alive value is the problem, however, the Cache-Control: 
max-age=0 
 is suspicious.
 In my code I have
 response.setHeader(Cache-Control,no-cache) but I 

RE: Session Expires At Every Request (Tomcat5.0.28/Firefox)

2006-02-16 Thread Michael Andreas Omerou
Thanks for the suggestion Wade but I really did what you are saying and
headers reach the server correctly.

Michael 

-Original Message-
From: Wade Chandler [mailto:[EMAIL PROTECTED] 
Sent: 17 February 2006 05:16
To: Tomcat Users List
Subject: RE: Session Expires At Every Request (Tomcat5.0.28/Firefox)

  Monitoring the HTTP headers for both IE and
 Firefox using
  HttpAnalyzer for
  IE and LiveHttpHeaders for Firefox gives the
 following:
  1) IE
  
  (Request-Line):GET http://www.tophotelchoices.com/
 HTTP/1.1
  Accept:*/*
  Accept-Language:en-gb
  Accept-Encoding:gzip, deflate
  User-Agent:Mozilla/4.0 (compatible; MSIE 6.0;
 Windows NT 5.1;
  SV1; .NET CLR
  1.1.4322; InfoPath.1)
  Host:www.tophotelchoices.com
  Proxy-Connection:Keep-Alive
  Pragma:no-cache
  Cookie:JSESSIONID=6F187E9E698F5D81A09DF6AD0D25115D
  
  (Status-Line):HTTP/1.0 200 OK
  Date:Thu, 16 Feb 2006 22:09:18 GMT
  Server:Apache/1.3.33 (Unix) mod_jk/1.2.15 Cache-Control:no-cache 
  Pragma:no-cache Expires:Wed, 31 Dec 1969 23:59:59 GMT
  Content-Type:text/html;charset=UTF-8
  X-Cache:MISS from proxy01.spidernet.net X-Cache-Lookup:MISS from 
  proxy01.spidernet.net:83 Proxy-Connection:close
  
  2) FIREFOX:
  GET http://www.tophotelchoices.com/index.jsp
 HTTP/1.1
  Host: www.tophotelchoices.com
  User-Agent: Mozilla/5.0 (Windows; U; Windows NT
 5.1; en-GB; rv:1.7.12)
  Gecko/20050919 Firefox/1.0.7
  Accept:
 

text/xml,application/xml,application/xhtml+xml,text/html;q=0.9
 ,text/plain;q=
  0.8,image/png,*/*;q=0.5
  Accept-Language: en-gb,en;q=0.5
  Accept-Encoding: gzip,deflate
  Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
  Keep-Alive: 300
  Proxy-Connection: keep-alive
  Referer:
 http://www.tophotelchoices.com/timeout.jsp
  Cookie:
 JSESSIONID=3849A82D2F9B6991FE41073D771D1358
  Cache-Control: max-age=0
  
  HTTP/1.x 200 OK
  Date: Thu, 16 Feb 2006 22:12:27 GMT
  Server: Apache/1.3.33 (Unix) mod_jk/1.2.15
  Cache-Control: no-cache
  Pragma: no-cache
  Expires: Wed, 31 Dec 1969 23:59:59 GMT
  Content-Type: text/html;charset=UTF-8
  X-Cache: MISS from proxy01.spidernet.net
  X-Cache-Lookup: MISS from proxy01.spidernet.net:83
  Proxy-Connection: close
  
  Obviously, the response is the same in both cases,
 however,
  for FireFox the
  important difference I see in Request is the one
 saying Cache-control:
  max-age=0 and also, the Keep-Alive value 300. I do
 not think
  the Keep-Alive
  value is the problem, however, the Cache-Control:
 max-age=0
  is suspicious.
  In my code I have
  response.setHeader(Cache-Control,no-cache) but
 I think
  this is different.  Does anyone have a clue what
 the
  max-age:0 is doing?
  
  Your help will be greatly appreciated.
  
  
  Thanks and regards,
  Michael
  
  -Original Message-
  From: Filip Hanik - Dev Lists
 [mailto:[EMAIL PROTECTED]
  Sent: 15 February 2006 22:16
  To: Tomcat Users List
  Subject: Re: Session Expires At Every Request
 (Tomcat5.0.28/Firefox)
  
  George Sexton wrote:
   Does the code transparently create a new
 JSessionID value then?
  
  George,
  you might wanna rethink your comments, they don't
 shine any
  light on the issue and they for sure don't state
 any facts,
  let me prove you I am right. Below is the headers
 I tracked
  with LiveHttpHeaders, as you can see, JSESSIONID
 remains
  exactly the same in the browser request when the
 switch from
  HTTP to HTTPS happens.
  This is Firefox on Fedora 4. The site works fine.
  
  This must be a browser issue, can you tell us a
 little bit
  more about what version and platform your browser
 is on.
  
  1. Request to the home - non secure
 


  http://www.tophotelchoices.com/
  GET / HTTP/1.1
  Host: www.tophotelchoices.com
  User-Agent: Mozilla/5.0 (X11; U; Linux i686;
 en-US; rv:1.8.0.1)
  Gecko/20060124 Firefox/1.5.0.1
  Accept: 
 

text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,
  text/plain;q=0.8,image/png,*/*;q=0.5
  Accept-Language: en-us,en;q=0.5
  Accept-Encoding: gzip,deflate
  Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
  Keep-Alive: 300
  Connection: keep-alive
  Referer: http://www.tophotelchoices.com/
  
  HTTP/1.x 200 OK
  Date: Wed, 15 Feb 2006 20:08:55 GMT
  Server: Apache/1.3.33 (Unix) mod_jk/1.2.15
  Set-Cookie:
 JSESSIONID=735009FD40D725EDAA14389409CD60FF; Path=/
  Cache-Control: no-cache
  Pragma: no-cache
  Expires: Wed, 31 Dec 1969 23:59:59 GMT
  Keep-Alive: timeout=5, max=20
  Connection: Keep-Alive
  Transfer-Encoding: chunked
  Content-Type: text/html;charset=UTF-8
  
  2. Click on the request button - switch from HTTP
 to HTTPS
 

https://www.tophotelchoices.com/bookingServlet1?hotel=ASI
  GET /bookingServlet1?hotel=ASI HTTP/1.1
  Host: www.tophotelchoices.com:443
  User-Agent: Mozilla/5.0 (X11; U; Linux i686;
 en-US; rv:1.8.0.1)
  Gecko/20060124 Firefox/1.5.0.1
  Accept: 
 

text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,
  text/plain;q=0.8,image/png,*/*;q=0.5
  Accept-Language: 

RE: Session Expires At Every Request (Tomcat5.0.28/Firefox)

2006-02-16 Thread Michael Andreas Omerou
More or less this what I think as well! That Cache-control: max-age=0 is
applied to cookies too.  However the cookies in Firefox seem to have the
correct expiration date.

Michael

-Original Message-
From: news [mailto:[EMAIL PROTECTED] On Behalf Of Bill Barker
Sent: 17 February 2006 06:03
To: users@tomcat.apache.org
Subject: Re: Session Expires At Every Request (Tomcat5.0.28/Firefox)


Michael Andreas Omerou [EMAIL PROTECTED] wrote in 
message news:[EMAIL PROTECTED]
 Dear all,

 Thanks for your replies to my problem.  However, I think the 
 discussion has been diverted into a debate totally 
irrelevant to the 
 issue.


Not that I'm all that interested, but just to push this along, 
what are the Cookie properties in FireFox after you request a page?

Personally, I'm betting that FireFox is probably applying your 
cache-control/max-age headers to the Cookies as well as to the 
page itself.

 As far as Chuck's question whether this could be related to 
the popup, 
 this is not the case as the problem happens on other pages too, even 
 on index.jsp (first page)

 Regarding Filip's email and monitoring HTTP Headers I am impressed 
 that it seems to work for you.  I run FireFox on Windows XP Pro SP2 
 and what happens is that when a page finishes loading, the session 
 expires on the server.
 When the user/browser requests another page the correct 
session id is 
 sent from the browser but the server detects that this 
session id sent 
 is no more valid (expired) and so we have a timeout.  However, this 
 behaviour, only
 occurs with FireFox.   I tried it from another PC with XP 
Pro SP2 too but
 the problem is the same.  With IE, NetScape and Opera all is ok.



 I want to emphasize that this behaviour does not happen only when 
 switching from SSL to non-SSL or vice versa.  Even if I try 
to access 
 pages such as the About Us or the Contact Us the session expires 
 again.  However, in that case the problem is not visible 
to the user 
 since those pages do not contain any session specific data so even 
 with a new session it is ok.
 Try
 the following though and you will see what I mean.  On 
 tophotelchoices.com do a search for a hotel.  Let the results be 
 displayed and then, go to the About Us page.  Then, click your 
 browser's back button and instead of going back to the 
search results 
 you get a timeout (if you get search results it will be from 
browser's 
 cache, do a reload and you will get timeout).

 Monitoring the HTTP headers for both IE and Firefox using 
HttpAnalyzer 
 for IE and LiveHttpHeaders for Firefox gives the following:
 1) IE

 (Request-Line):GET http://www.tophotelchoices.com/ HTTP/1.1
 Accept:*/*
 Accept-Language:en-gb
 Accept-Encoding:gzip, deflate
 User-Agent:Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; 
 .NET CLR 1.1.4322; InfoPath.1) Host:www.tophotelchoices.com 
 Proxy-Connection:Keep-Alive Pragma:no-cache 
 Cookie:JSESSIONID=6F187E9E698F5D81A09DF6AD0D25115D

 (Status-Line):HTTP/1.0 200 OK
 Date:Thu, 16 Feb 2006 22:09:18 GMT
 Server:Apache/1.3.33 (Unix) mod_jk/1.2.15 Cache-Control:no-cache 
 Pragma:no-cache Expires:Wed, 31 Dec 1969 23:59:59 GMT
 Content-Type:text/html;charset=UTF-8
 X-Cache:MISS from proxy01.spidernet.net X-Cache-Lookup:MISS from 
 proxy01.spidernet.net:83 Proxy-Connection:close

 2) FIREFOX:
 GET http://www.tophotelchoices.com/index.jsp HTTP/1.1
 Host: www.tophotelchoices.com
 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; 
rv:1.7.12)
 Gecko/20050919 Firefox/1.0.7
 Accept:
 
text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/pl
 ain;q=
 0.8,image/png,*/*;q=0.5
 Accept-Language: en-gb,en;q=0.5
 Accept-Encoding: gzip,deflate
 Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
 Keep-Alive: 300
 Proxy-Connection: keep-alive
 Referer: http://www.tophotelchoices.com/timeout.jsp
 Cookie: JSESSIONID=3849A82D2F9B6991FE41073D771D1358
 Cache-Control: max-age=0

 HTTP/1.x 200 OK
 Date: Thu, 16 Feb 2006 22:12:27 GMT
 Server: Apache/1.3.33 (Unix) mod_jk/1.2.15
 Cache-Control: no-cache
 Pragma: no-cache
 Expires: Wed, 31 Dec 1969 23:59:59 GMT
 Content-Type: text/html;charset=UTF-8
 X-Cache: MISS from proxy01.spidernet.net
 X-Cache-Lookup: MISS from proxy01.spidernet.net:83
 Proxy-Connection: close

 Obviously, the response is the same in both cases, however, for 
 FireFox the important difference I see in Request is the one saying 
 Cache-control:
 max-age=0 and also, the Keep-Alive value 300. I do not think the 
 Keep-Alive value is the problem, however, the Cache-Control: 
max-age=0 
 is suspicious.
 In my code I have 
response.setHeader(Cache-Control,no-cache) but I 
 think this is different.  Does anyone have a clue what the max-age:0 
 is doing?

 Your help will be greatly appreciated.


 Thanks and regards,
 Michael

-Original Message-
From: Filip Hanik - Dev Lists [mailto:[EMAIL PROTECTED]
Sent: 15 February 2006 22:16
To: Tomcat Users List
Subject: Re: Session Expires At Every Request (Tomcat5.0.28/Firefox)


RE: Session Expires At Every Request (Tomcat5.0.28/Firefox)

2006-02-16 Thread BuyRentVillas.com Administrator
Thanks for the suggestion George.

I don't think is the proxy because IE and other browsers work with the same
proxy so I don't see why FireFox should not.  I will try your suggestion
though and let you know the outcome.

As far as other suggestions, no. 1 is particularly interesting and will try
it, as well as no.2.  For your third suggestion I explained to you why I am
doing it.

As far as the X-Cache: MISS, etc. these appear with IE as well but IE works
so it can't be the problem.

Michael

-Original Message-
From: George Sexton [mailto:[EMAIL PROTECTED] 
Sent: 17 February 2006 05:22
To: 'Tomcat Users List'; [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]; 'Joey Geiger'; [EMAIL PROTECTED]
Subject: RE: Session Expires At Every Request (Tomcat5.0.28/Firefox)

Since I regularly use Firefox and sessions I'm pretty sure 
that there is really nothing unique to that combination that 
is causing the problem. It could be the proxy server below is 
causing the issue. The obvious thing to do would be to try 
from a different network without a proxy server and see if 
your issue clears up.

I would also recommend that you do a little cleanup on your 
HTML pages and see if there is some effect on the issue. The 
specific things I would fix in your HTML are:

1) No DocType, causing the page to render in Quirks mode. FYI, this
will cause differences in the box model which will result in 
IE 6.0 and FireFox/Mozilla displaying pages very differently.

2) No Content type/charset meta in the header.

3) You have a duplicate HEAD block in the bottom of your page.

Your reference to the cache-control entry:


 Cache-Control: max-age=0

Doesn't appear in my browser. I would suspect that its being 
added by your proxy server.

 X-Cache: MISS from proxy01.spidernet.net
 X-Cache-Lookup: MISS from proxy01.spidernet.net:83

I would also say that if you're going to use the addHeader() 
to put in cache/pragma entries that you should not use the META tags.





George Sexton
MH Software, Inc.
http://www.mhsoftware.com/
Voice: 303 438 9585
  

 -Original Message-
 From: Michael Andreas Omerou [mailto:[EMAIL PROTECTED]
 Sent: Thursday, February 16, 2006 3:38 PM
 To: 'Tomcat Users List'
 Cc: [EMAIL PROTECTED]; 'George Sexton'; 'Joey Geiger'; 
 [EMAIL PROTECTED]
 Subject: RE: Session Expires At Every Request (Tomcat5.0.28/Firefox)
 
 Dear all,
 
 Thanks for your replies to my problem.  However, I think the 
 discussion has been diverted into a debate totally 
irrelevant to the 
 issue.
 
 As far as Chuck's question whether this could be related to 
the popup, 
 this is not the case as the problem happens on other pages too, even 
 on index.jsp (first page)



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



RE: Session Expires At Every Request (Tomcat5.0.28/Firefox)

2006-02-16 Thread Michael Andreas Omerou
Thanks for the suggestion George.

I don't think is the proxy because IE and other browsers work with the same
proxy so I don't see why FireFox should not.  I will try your suggestion
though and let you know the outcome.

As far as other suggestions, no. 1 is particularly interesting and will try
it, as well as no.2.  For your third suggestion I explained to you why I am
doing it.

As far as the X-Cache: MISS, etc. these appear with IE as well but IE works
so it can't be the problem.

Michael

-Original Message-
From: George Sexton [mailto:[EMAIL PROTECTED] 
Sent: 17 February 2006 05:22
To: 'Tomcat Users List'; [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]; 'Joey Geiger'; [EMAIL PROTECTED]
Subject: RE: Session Expires At Every Request (Tomcat5.0.28/Firefox)

Since I regularly use Firefox and sessions I'm pretty sure 
that there is really nothing unique to that combination that 
is causing the problem. It could be the proxy server below is 
causing the issue. The obvious thing to do would be to try 
from a different network without a proxy server and see if 
your issue clears up.

I would also recommend that you do a little cleanup on your 
HTML pages and see if there is some effect on the issue. The 
specific things I would fix in your HTML are:

1) No DocType, causing the page to render in Quirks mode. FYI, this
will cause differences in the box model which will result in 
IE 6.0 and FireFox/Mozilla displaying pages very differently.

2) No Content type/charset meta in the header.

3) You have a duplicate HEAD block in the bottom of your page.

Your reference to the cache-control entry:


 Cache-Control: max-age=0

Doesn't appear in my browser. I would suspect that its being 
added by your proxy server.

 X-Cache: MISS from proxy01.spidernet.net
 X-Cache-Lookup: MISS from proxy01.spidernet.net:83

I would also say that if you're going to use the addHeader() 
to put in cache/pragma entries that you should not use the META tags.





George Sexton
MH Software, Inc.
http://www.mhsoftware.com/
Voice: 303 438 9585
  

 -Original Message-
 From: Michael Andreas Omerou [mailto:[EMAIL PROTECTED]
 Sent: Thursday, February 16, 2006 3:38 PM
 To: 'Tomcat Users List'
 Cc: [EMAIL PROTECTED]; 'George Sexton'; 'Joey Geiger'; 
 [EMAIL PROTECTED]
 Subject: RE: Session Expires At Every Request (Tomcat5.0.28/Firefox)
 
 Dear all,
 
 Thanks for your replies to my problem.  However, I think the 
 discussion has been diverted into a debate totally 
irrelevant to the 
 issue.
 
 As far as Chuck's question whether this could be related to 
the popup, 
 this is not the case as the problem happens on other pages too, even 
 on index.jsp (first page)



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



Load testing with Tomcat 5.5, Apache 2.2 and mod_proxy_ajp

2006-02-16 Thread Ian Shafer

Hello,

I'm currently load testing a webapp running on Tomcat 5.5 that is  
fronted by Apache 2.2 and uses mod_proxy_ajp to communicate between  
the two.


I'm seeing some odd behavior that I cannot explain.

I have this line in my httpd.conf file:

ProxyPass /webapp/ ajp://localhost:8009/webapp/ min=256 max=256

and in tomcat I have maxThreads set to 256 for both my HTTP connector  
and my AJP connector.  For some reason, though, I still get a message  
in my tomcat log saying:


ERROR TP-Processor4 org.apache.tomcat.util.threads.ThreadPool - All  
threads (256) are currently busy, waiting. Increase maxThreads (256)  
or check the servlet status



Why does this happen? I thought my 'max=256' setting in httpd.conf  
would only 256 connections at once.


Also, if anyone has any experience with setting up Apache and Tomcat  
for very high performance, I would appreciate any pointers.


Thanks,

Ian


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



Re: Load testing with Tomcat 5.5, Apache 2.2 and mod_proxy_ajp

2006-02-16 Thread Mladen Turk

Ian Shafer wrote:

Hello,

I have this line in my httpd.conf file:

ProxyPass /webapp/ ajp://localhost:8009/webapp/ min=256 max=256

and in tomcat I have maxThreads set to 256 for both my HTTP connector 
and my AJP connector.  For some reason, though, I still get a message in 
my tomcat log saying:


ERROR TP-Processor4 org.apache.tomcat.util.threads.ThreadPool - All 
threads (256) are currently busy, waiting. Increase maxThreads (256) or 
check the servlet status



Why does this happen? I thought my 'max=256' setting in httpd.conf would 
only 256 connections at once.




Depends on the mpm you are using. If it's worker mpm, then max=256 means
that it will have max 256 connection per worker, so you can end up with
256*(MaxClients/ThreadsPerChild). If it's prefork mpm, then max=256 is
not used and is always 1. The max number of connections in that case
is MaxClients.

Regards,
Mladen.


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



JAAS /Tomcat : Which Realm should I use with my custom LoginModule ?

2006-02-16 Thread Vincent Delhommois
Hello, I had a problem implementing JAAS with Tomcat and I found my error, I 
was specifying my custum loginModule in the realm (server.xml) and not in the 
JAAS.conf file.
Can you tell me which classname of realm I need to use :
Realm className=org.apache.catalina.realm.JAASRealm appName=appJAAS 
userClassNames=com.app.security.User roleClassNames=com.app.security.Role 
debug=99/
(I want to create a index.jsp page with 2 fields (login, pwd) and use the 
j_security_check).
Thanks again