RE: Silent (and I mean SILENT) install

2004-03-01 Thread Cocalea, Eugen
Tomcat 4.1.27, installer for windows. It is installing silently EXCEPT that
I get that message box. I've heard many legends that if JAVA_HOME is set,
the message appears no more. But they are only legends, in my opinion.

EC

-Original Message-
From: Remy Maucherat [mailto:[EMAIL PROTECTED] 
Sent: Thursday, February 26, 2004 7:38 PM
To: Tomcat Users List
Subject: Re: Silent (and I mean SILENT) install

Cocalea, Eugen wrote:
 Hi,
  
 I suppose it's a F.A.Q., but how can I disable the little annoying window
 that wants me to aknowledge that Tomcat will use the JDK I know it will
use?
 I've searched the internet, found no answer. Is it any?

I added silent install support in 5.0.19.

-- 
x
Rémy Maucherat
Developer  Consultant
JBoss Group (Europe) SàRL
x

-
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: Lost the Administrator function

2004-03-01 Thread Adam Hardy
On 02/29/2004 09:01 PM George Hester wrote:
Well it just died entirely. crap.

Which? The fresh installation?

--
struts 1.1 + tomcat 5.0.16 + java 1.4.2
Linux 2.4.20 Debian
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Lost the Administrator function

2004-03-01 Thread Adam Hardy
On 03/01/2004 09:25 AM Adam Hardy wrote:
On 02/29/2004 09:01 PM George Hester wrote:

Well it just died entirely. crap.

Which? The fresh installation?
OK, just read your other messages. Glad you sorted it out.

Adam
--
struts 1.1 + tomcat 5.0.16 + java 1.4.2
Linux 2.4.20 Debian
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Problem: Apache 2.0.48 + mod_jk 1.2.6 + tomcat 5.0.19

2004-03-01 Thread Ilyschenko, Vlad
Hi,

I'm running Solaris 9, Apache 2.0.48, mod_jk 1.2.6 and tomcat 5.0.19 and
I'm getting these messages in apache error log:

(128)Network is unreachable: connect to listener

Those aren't too frequent though but seem to present problems:

We have a monitoring tool that uses commons-httpclient to poll tomcat
every so often and that tool seem to be getting this exception:

27 Feb 2004 10:21:06 ERROR local_services_monitor2-wrk2 - I/O failure
reading response body
java.net.SocketTimeoutException: Read timed out
at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.read(SocketInputStream.java:129)
at java.net.SocketInputStream.read(SocketInputStream.java:182)
at java.io.FilterInputStream.read(FilterInputStream.java:66)
at
java.io.PushbackInputStream.read(PushbackInputStream.java:120)
at
org.apache.commons.httpclient.ChunkedInputStream.getChunkSizeFromInputSt
ream(ChunkedInputStream.java:264)
at
org.apache.commons.httpclient.ChunkedInputStream.nextChunk(ChunkedInputS
tream.java:237)
at
org.apache.commons.httpclient.ChunkedInputStream.read(ChunkedInputStream
.java:192)
at java.io.FilterInputStream.read(FilterInputStream.java:111)
at
org.apache.commons.httpclient.AutoCloseInputStream.read(AutoCloseInputSt
ream.java:142)
at java.io.FilterInputStream.read(FilterInputStream.java:90)
at
org.apache.commons.httpclient.AutoCloseInputStream.read(AutoCloseInputSt
ream.java:161)
at
org.apache.commons.httpclient.HttpMethodBase.getResponseBody(HttpMethodB
ase.java:717)
at
org.apache.commons.httpclient.HttpMethodBase.getResponseBodyAsString(Htt
pMethodBase.java:764)
at com.informa.jwatch.jobs.HttpMonitor.start(Unknown Source)
at com.informa.jwatch.jobs.HttpXmlMonitor.start(Unknown Source)
at
com.informa.jwatch.BasicJobContext.executeJob(BasicJobContext.java:32)
at
com.informa.jwatch.AbstractJobContext.execute(AbstractJobContext.java:90
)
at
com.informa.jwatch.BatchJobContext.executeJob(BatchJobContext.java:30)
at
com.informa.jwatch.AbstractJobContext.execute(AbstractJobContext.java:90
)
at
com.informa.jwatch.exec.ExecutionGroup$WorkerThread.run(ExecutionGroup.j
ava:176)

The weird thing is that httpclient always receives http headers and
occasionally fails on the content body.

Basically every time I see that exception in the monitoring log it
coincides with network unreachable message in apache error log.


Any ideas on this matter would be greatly appreciated!

Thanks,
Vlad





The information contained in this email message may be confidential. If you are not 
the intended recipient, any use, interference with, disclosure or copying of this 
material is unauthorised and prohibited. Although this message and any attachments are 
believed to be free of viruses, no responsibility is accepted by Informa for any loss 
or damage arising in any way from receipt or use thereof.  Messages to and from the 
company are monitored for operational reasons and in accordance with lawful business 
practices. 
If you have received this message in error, please notify us by return and delete the 
message and any attachments.  Further enquiries/returns can be sent to [EMAIL 
PROTECTED]


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



RE: Problem: Apache 2.0.48 + mod_jk 1.2.6 + tomcat 5.0.19

2004-03-01 Thread Ilyschenko, Vlad
Update.

This is what happens when the load on tomcat is high:
all requests are executed but for some of those tomcat is unable to send
the response back (browser stalls and will eventually time out after the
timeout set in httpd.conf has expired). As the load goes down tomcat is
able to send content back with no problems.

What configuration settings can affect this behavior?

Vlad


-Original Message-
From: Ilyschenko, Vlad 
Sent: Monday, March 01, 2004 9:46 AM
To: Tomcat Users List
Subject: Problem: Apache 2.0.48 + mod_jk 1.2.6 + tomcat 5.0.19

Hi,

I'm running Solaris 9, Apache 2.0.48, mod_jk 1.2.6 and tomcat 5.0.19 and
I'm getting these messages in apache error log:

(128)Network is unreachable: connect to listener

Those aren't too frequent though but seem to present problems:

We have a monitoring tool that uses commons-httpclient to poll tomcat
every so often and that tool seem to be getting this exception:

27 Feb 2004 10:21:06 ERROR local_services_monitor2-wrk2 - I/O failure
reading response body
java.net.SocketTimeoutException: Read timed out
at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.read(SocketInputStream.java:129)
at java.net.SocketInputStream.read(SocketInputStream.java:182)
at java.io.FilterInputStream.read(FilterInputStream.java:66)
at
java.io.PushbackInputStream.read(PushbackInputStream.java:120)
at
org.apache.commons.httpclient.ChunkedInputStream.getChunkSizeFromInputSt
ream(ChunkedInputStream.java:264)
at
org.apache.commons.httpclient.ChunkedInputStream.nextChunk(ChunkedInputS
tream.java:237)
at
org.apache.commons.httpclient.ChunkedInputStream.read(ChunkedInputStream
.java:192)
at java.io.FilterInputStream.read(FilterInputStream.java:111)
at
org.apache.commons.httpclient.AutoCloseInputStream.read(AutoCloseInputSt
ream.java:142)
at java.io.FilterInputStream.read(FilterInputStream.java:90)
at
org.apache.commons.httpclient.AutoCloseInputStream.read(AutoCloseInputSt
ream.java:161)
at
org.apache.commons.httpclient.HttpMethodBase.getResponseBody(HttpMethodB
ase.java:717)
at
org.apache.commons.httpclient.HttpMethodBase.getResponseBodyAsString(Htt
pMethodBase.java:764)
at com.informa.jwatch.jobs.HttpMonitor.start(Unknown Source)
at com.informa.jwatch.jobs.HttpXmlMonitor.start(Unknown Source)
at
com.informa.jwatch.BasicJobContext.executeJob(BasicJobContext.java:32)
at
com.informa.jwatch.AbstractJobContext.execute(AbstractJobContext.java:90
)
at
com.informa.jwatch.BatchJobContext.executeJob(BatchJobContext.java:30)
at
com.informa.jwatch.AbstractJobContext.execute(AbstractJobContext.java:90
)
at
com.informa.jwatch.exec.ExecutionGroup$WorkerThread.run(ExecutionGroup.j
ava:176)

The weird thing is that httpclient always receives http headers and
occasionally fails on the content body.

Basically every time I see that exception in the monitoring log it
coincides with network unreachable message in apache error log.


Any ideas on this matter would be greatly appreciated!

Thanks,
Vlad






The information contained in this email message may be confidential. If
you are not the intended recipient, any use, interference with,
disclosure or copying of this material is unauthorised and prohibited.
Although this message and any attachments are believed to be free of
viruses, no responsibility is accepted by Informa for any loss or damage
arising in any way from receipt or use thereof.  Messages to and from
the company are monitored for operational reasons and in accordance with
lawful business practices. 
If you have received this message in error, please notify us by return
and delete the message and any attachments.  Further enquiries/returns
can be sent to [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: Problem: Apache 2.0.48 + mod_jk 1.2.6 + tomcat 5.0.19

2004-03-01 Thread Ilyschenko, Vlad
More update.

Tomcat response does get through to the client! But browser keeps
spinning and then times out. JK bug may be?

Any advise guys? This is a production environment so I have to get this
sorted.

Vlad


-Original Message-
From: Ilyschenko, Vlad 
Sent: Monday, March 01, 2004 10:45 AM
To: Tomcat Users List
Subject: RE: Problem: Apache 2.0.48 + mod_jk 1.2.6 + tomcat 5.0.19

Update.

This is what happens when the load on tomcat is high:
all requests are executed but for some of those tomcat is unable to send
the response back (browser stalls and will eventually time out after the
timeout set in httpd.conf has expired). As the load goes down tomcat is
able to send content back with no problems.

What configuration settings can affect this behavior?

Vlad


-Original Message-
From: Ilyschenko, Vlad 
Sent: Monday, March 01, 2004 9:46 AM
To: Tomcat Users List
Subject: Problem: Apache 2.0.48 + mod_jk 1.2.6 + tomcat 5.0.19

Hi,

I'm running Solaris 9, Apache 2.0.48, mod_jk 1.2.6 and tomcat 5.0.19 and
I'm getting these messages in apache error log:

(128)Network is unreachable: connect to listener

Those aren't too frequent though but seem to present problems:

We have a monitoring tool that uses commons-httpclient to poll tomcat
every so often and that tool seem to be getting this exception:

27 Feb 2004 10:21:06 ERROR local_services_monitor2-wrk2 - I/O failure
reading response body
java.net.SocketTimeoutException: Read timed out
at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.read(SocketInputStream.java:129)
at java.net.SocketInputStream.read(SocketInputStream.java:182)
at java.io.FilterInputStream.read(FilterInputStream.java:66)
at
java.io.PushbackInputStream.read(PushbackInputStream.java:120)
at
org.apache.commons.httpclient.ChunkedInputStream.getChunkSizeFromInputSt
ream(ChunkedInputStream.java:264)
at
org.apache.commons.httpclient.ChunkedInputStream.nextChunk(ChunkedInputS
tream.java:237)
at
org.apache.commons.httpclient.ChunkedInputStream.read(ChunkedInputStream
.java:192)
at java.io.FilterInputStream.read(FilterInputStream.java:111)
at
org.apache.commons.httpclient.AutoCloseInputStream.read(AutoCloseInputSt
ream.java:142)
at java.io.FilterInputStream.read(FilterInputStream.java:90)
at
org.apache.commons.httpclient.AutoCloseInputStream.read(AutoCloseInputSt
ream.java:161)
at
org.apache.commons.httpclient.HttpMethodBase.getResponseBody(HttpMethodB
ase.java:717)
at
org.apache.commons.httpclient.HttpMethodBase.getResponseBodyAsString(Htt
pMethodBase.java:764)
at com.informa.jwatch.jobs.HttpMonitor.start(Unknown Source)
at com.informa.jwatch.jobs.HttpXmlMonitor.start(Unknown Source)
at
com.informa.jwatch.BasicJobContext.executeJob(BasicJobContext.java:32)
at
com.informa.jwatch.AbstractJobContext.execute(AbstractJobContext.java:90
)
at
com.informa.jwatch.BatchJobContext.executeJob(BatchJobContext.java:30)
at
com.informa.jwatch.AbstractJobContext.execute(AbstractJobContext.java:90
)
at
com.informa.jwatch.exec.ExecutionGroup$WorkerThread.run(ExecutionGroup.j
ava:176)

The weird thing is that httpclient always receives http headers and
occasionally fails on the content body.

Basically every time I see that exception in the monitoring log it
coincides with network unreachable message in apache error log.


Any ideas on this matter would be greatly appreciated!

Thanks,
Vlad






The information contained in this email message may be confidential. If
you are not the intended recipient, any use, interference with,
disclosure or copying of this material is unauthorised and prohibited.
Although this message and any attachments are believed to be free of
viruses, no responsibility is accepted by Informa for any loss or damage
arising in any way from receipt or use thereof.  Messages to and from
the company are monitored for operational reasons and in accordance with
lawful business practices. 
If you have received this message in error, please notify us by return
and delete the message and any attachments.  Further enquiries/returns
can be sent to [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]



Enabling logging for a Realm

2004-03-01 Thread Joan Jesús Pujol Espinar
Hi,

I have authentication problems with the JAAS Realm. I downloaded the 
tomcat 5 sourcecode and in the JASSRealm.java there is some debug 
information  like this:
if( log.isDebugEnabled())
   log.debug(Authenticating  + appName +   +  username);

But I can't see this info in any log. I have set the verbosity of all 
logguers to 4 and I also set debug level to 4 in the Engine and the 
Realm. But I can't see this info.

Cheers,
--
***
Joan Jesús Pujol Espinar
Tècnic de Sistemes
Universitat de Girona
Dpt. Informàtica i Matemàtica Aplicada
Campus Montilivi
17003 - Girona (Spain)
e-mail: [EMAIL PROTECTED]
+34 972 418418 Fax: +34 972 418792
***


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


RE: Problem: Apache 2.0.48 + mod_jk 1.2.6 + tomcat 5.0.19

2004-03-01 Thread Ilyschenko, Vlad
More update on that:

Tomcat returns a header:

Transfer-Encoding: chunked

And it doesn't always return \0 (zero) at the end of the content. That
is what causes commons-httpclient to throw the exception and browsers to
keep spinning after page is displayed. 

Can something be done about that?

Vlad

-Original Message-
From: Ilyschenko, Vlad 
Sent: Monday, March 01, 2004 11:05 AM
To: Tomcat Users List
Subject: RE: Problem: Apache 2.0.48 + mod_jk 1.2.6 + tomcat 5.0.19

More update.

Tomcat response does get through to the client! But browser keeps
spinning and then times out. JK bug may be?

Any advise guys? This is a production environment so I have to get this
sorted.

Vlad


-Original Message-
From: Ilyschenko, Vlad 
Sent: Monday, March 01, 2004 10:45 AM
To: Tomcat Users List
Subject: RE: Problem: Apache 2.0.48 + mod_jk 1.2.6 + tomcat 5.0.19

Update.

This is what happens when the load on tomcat is high:
all requests are executed but for some of those tomcat is unable to send
the response back (browser stalls and will eventually time out after the
timeout set in httpd.conf has expired). As the load goes down tomcat is
able to send content back with no problems.

What configuration settings can affect this behavior?

Vlad


-Original Message-
From: Ilyschenko, Vlad 
Sent: Monday, March 01, 2004 9:46 AM
To: Tomcat Users List
Subject: Problem: Apache 2.0.48 + mod_jk 1.2.6 + tomcat 5.0.19

Hi,

I'm running Solaris 9, Apache 2.0.48, mod_jk 1.2.6 and tomcat 5.0.19 and
I'm getting these messages in apache error log:

(128)Network is unreachable: connect to listener

Those aren't too frequent though but seem to present problems:

We have a monitoring tool that uses commons-httpclient to poll tomcat
every so often and that tool seem to be getting this exception:

27 Feb 2004 10:21:06 ERROR local_services_monitor2-wrk2 - I/O failure
reading response body
java.net.SocketTimeoutException: Read timed out
at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.read(SocketInputStream.java:129)
at java.net.SocketInputStream.read(SocketInputStream.java:182)
at java.io.FilterInputStream.read(FilterInputStream.java:66)
at
java.io.PushbackInputStream.read(PushbackInputStream.java:120)
at
org.apache.commons.httpclient.ChunkedInputStream.getChunkSizeFromInputSt
ream(ChunkedInputStream.java:264)
at
org.apache.commons.httpclient.ChunkedInputStream.nextChunk(ChunkedInputS
tream.java:237)
at
org.apache.commons.httpclient.ChunkedInputStream.read(ChunkedInputStream
.java:192)
at java.io.FilterInputStream.read(FilterInputStream.java:111)
at
org.apache.commons.httpclient.AutoCloseInputStream.read(AutoCloseInputSt
ream.java:142)
at java.io.FilterInputStream.read(FilterInputStream.java:90)
at
org.apache.commons.httpclient.AutoCloseInputStream.read(AutoCloseInputSt
ream.java:161)
at
org.apache.commons.httpclient.HttpMethodBase.getResponseBody(HttpMethodB
ase.java:717)
at
org.apache.commons.httpclient.HttpMethodBase.getResponseBodyAsString(Htt
pMethodBase.java:764)
at com.informa.jwatch.jobs.HttpMonitor.start(Unknown Source)
at com.informa.jwatch.jobs.HttpXmlMonitor.start(Unknown Source)
at
com.informa.jwatch.BasicJobContext.executeJob(BasicJobContext.java:32)
at
com.informa.jwatch.AbstractJobContext.execute(AbstractJobContext.java:90
)
at
com.informa.jwatch.BatchJobContext.executeJob(BatchJobContext.java:30)
at
com.informa.jwatch.AbstractJobContext.execute(AbstractJobContext.java:90
)
at
com.informa.jwatch.exec.ExecutionGroup$WorkerThread.run(ExecutionGroup.j
ava:176)

The weird thing is that httpclient always receives http headers and
occasionally fails on the content body.

Basically every time I see that exception in the monitoring log it
coincides with network unreachable message in apache error log.


Any ideas on this matter would be greatly appreciated!

Thanks,
Vlad






The information contained in this email message may be confidential. If
you are not the intended recipient, any use, interference with,
disclosure or copying of this material is unauthorised and prohibited.
Although this message and any attachments are believed to be free of
viruses, no responsibility is accepted by Informa for any loss or damage
arising in any way from receipt or use thereof.  Messages to and from
the company are monitored for operational reasons and in accordance with
lawful business practices. 
If you have received this message in error, please notify us by return
and delete the message and any attachments.  Further enquiries/returns
can be sent to [EMAIL PROTECTED]


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





Re: reclaiming memory problem

2004-03-01 Thread Tim Funk
Follow Sun's rules of garbage collection and all will be OK. Your session 
objects might have a reference to something that isn't letting the GC do its job.

(I think) Profilers are good at find this kind of stuff.

-Tim

Jerald Powel wrote:
Hello,   

 How might I reclaim memory, e.g after a session expires when a client browser is closed down? Predicament: as I open up new client windows, the memory (viewed in Windows task manager) creeps up with each new window opened. The app that is loaded creates a session and stores various objects on it. But, when I close down a client window, the memory consumption remains at it's peak (and climbs with each successive new client opened) In other words, memory consumption increments but never decrements, necessitating a server bounce at unacceptable frequency.

  Why are the resources not being reclaimed, and how might I gently encourage resource reclamation? I fear System.gc() is not the answer here.

Many thanks all for all input

G.


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


Re: image not displayed

2004-03-01 Thread Peter Renken

I have tried the suggestions but i am missing something

The Hello.java is in /project/app2/src/mypackage
Using 'ant install' the application is deployed with
  target name=install depends=compile
deploy url=${manager.url}
   username=${manager.username}
   password=${manager.password}
   path=${app.path}
   localWar=file://${build.home}/
  /target

Using 'ant list' i see that the context exists since one of the output lines
is
  [list] /app2:running:0:/project/app2/build

Starting the servlet by http:/localhost:8080/app2 shows the text output but
NOT the image html

img src=/app2/host.gif
nor
img src=host.gif
(nor many other combinations of guesses)

wereas i have verified that /project/app2/build/host.gif exists. Can someone
tell me in what directory the host.gif should be located?

Thanks for any help.
Peter



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



ReRe: Need Help in Session Management !!!

2004-03-01 Thread amit varshney
it did not work. The following error message is displayed


/usr/tomcat/webapps/intra/work/org/apache/jsp/accounts/jdbcmenu_jsp.java:61: cannot 
resolve symbol
symbol  : variable getUserPricipal 
location: interface javax.servlet.http.HttpServletRequest
String user1=request.getUserPricipal.getName();
^


.

Quoting  [EMAIL PROTECTED]:

 I think you can get the user name by getting the Principal object from
 
 request and then getting the name from it like
 
 String userName = request.getUserPrincipal().getName();
 
 -Shanmugam-
 
 amit varshney wrote:
 
 I want to use  tomcat user authentication in my application. for that i
 am using JDBCRealm.I have set the security constraint in the web.xml. So
 when  a request for the restricted page comes a login page comes.
  But the problem is that it is submitting to the j_security_check and
 the textboxes are named j_username and j_password respectivley.I want
 session mangemant in my application. For that I need the login name of
 the person on my each page. How can I pass the username from login page
 to my page. is it possible to maintain session using tomcat user
 authentication or should i go for my own authentication and session
 management.
 
 Plz help me 
 Thanks in advance 
 Amit Varshney
 
 -
 Still single? Click here to find the perfect match.

 
 http://www.bharatmatrimony.com/cgi-bin/bmclicks1.cgi?141
 
   
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 

-
Still single? Click here to find the perfect match.

http://www.bharatmatrimony.com/cgi-bin/bmclicks1.cgi?141


how can i get a servlet instance from ServletPool

2004-03-01 Thread Edson Alves Pereira
Hello dudes, is there a way to get a servlet instance from Tomcat´s
pool?   Is there a replacement to getServletContext( ).getServlet( )?

Regards,
Edson


RE: 5.0.19. [Newbie] Why it doesnt run my HelloServlet

2004-03-01 Thread Shapira, Yoav

Howdy,

The good news is that I rechecked again, and there are two
modifications
required for Tomcat 5's xml regarding the invoker. And it works!

Did you bother to read why the invoker servlet was commented out in the
first place? ;)

Yoav Shapira



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



RE: how can i get a servlet instance from ServletPool

2004-03-01 Thread Shapira, Yoav

Howdy,

   Hello dudes, is there a way to get a servlet instance from Tomcat´s
pool?  Is there a replacement to getServletContext( ).getServlet( )?

As always, there's a way.  But is it portable/reliable/advisable?  No, no, and no.  
Was there a reason getServlet was deprecated?  Sure.

Why do you want to do this?

Yoav Shapira



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



RE: Tomcat users

2004-03-01 Thread Shapira, Yoav

Howdy,

I would like to know how many users can access Tomcat 5.0.19 per
second.
i.e I need to know the hit ratio.  Can some one help me please?

1 zillion jillion.  Or zero.  Depends on if you use the
-XaTonOfUsers=true java runtime option.

Just kidding, of course: it depends on your webapp, your hardware, and
many configuration parameters.

Yoav Shapira



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



Re: ReRe: Need Help in Session Management !!!

2004-03-01 Thread Daniel Savard
Le lun 01/03/2004 à 08:58, Tim Kelly a écrit :
 There are missing parenthesis in the line:
 
 String user1=request.getUserPricipal.getName();
 
 It should be
 String user1=request.getUserPricipal().getName();
 
 Thats why you get the cannot resolve symbol :)
 
 Tim
 
 
 
 amit varshney wrote:
 
 it did not work. The following error message is displayed
 
 
 /usr/tomcat/webapps/intra/work/org/apache/jsp/accounts/jdbcmenu_jsp.java:61: cannot 
 resolve symbol
 symbol: variable getUserPricipal 
 location: interface javax.servlet.http.HttpServletRequest
 String user1=request.getUserPricipal.getName();
 ^
 
 
 .
 
 Quoting  [EMAIL PROTECTED]:
 
   
 
 I think you can get the user name by getting the Principal object from
 
 request and then getting the name from it like
 
 String userName = request.getUserPrincipal().getName();
 
 -Shanmugam-
 
 amit varshney wrote:
 
 
 
 I want to use  tomcat user authentication in my application. for that i
   
 
 am using JDBCRealm.I have set the security constraint in the web.xml. So
 when  a request for the restricted page comes a login page comes.
 
 
 But the problem is that it is submitting to the j_security_check and
   
 
 the textboxes are named j_username and j_password respectivley.I want
 session mangemant in my application. For that I need the login name of
 the person on my each page. How can I pass the username from login page
 to my page. is it possible to maintain session using tomcat user
 authentication or should i go for my own authentication and session
 management.
 
 
 Plz help me 
 Thanks in advance 
 Amit Varshney
 
 -
 Still single? Click here to find the perfect match.
   
   
 
 
 
 
 http://www.bharatmatrimony.com/cgi-bin/bmclicks1.cgi?141
 
  
 
   
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 
 -
 Still single? Click here to find the perfect match.
 
 http://www.bharatmatrimony.com/cgi-bin/bmclicks1.cgi?141
 
   
 
 
 -- 
 Tim Kelly, Director of Development
 Building Engines, Inc.
 
 Phone: 781-290-5300
 Cell: 508-561-0985
 
 www.buildingengines.com
 
 275 Wyman Street
 Suite 11
 Waltham MA 02451
 
 
 
 


Well, I think you also have a typo. It should be
request.getUserPrincipal.getName(), not
request.getUserPricipal.getName().

Notice the missing n in Principal.


-- 

===
Daniel Savard
Consultation Informatique Daniel Savard
551, boul. Sir-Wilfrid-Laurier
suite 105
Beloeil, (Québec)
Canada J3G 4J1

Tél: (450) 467-8014
Internet: [EMAIL PROTECTED]
===



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



RE: Webapp on it's own port

2004-03-01 Thread Shapira, Yoav

Howdy,

Is it possible to configure Tomcat (I don't care which version) so that
specific webapp only runs on specific port?

So going to http://localhost:8080/examples would work, but
https://localhost:8443/examples would not

Sure, easily.  Define an Engine for that webapp only: in the Engine
there will be a Connector for the port you want, a Host whose autodeploy
features are turned off, and the Context for your webapp (or
alternatively the Host's appBase would be someplace above where your
webapp is located).  If you're not sure what I mean by any of these,
make sure to read the Configuration Reference documentation for the Host
and Engine elements.

Yoav Shapira



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



RE: Web site error.

2004-03-01 Thread Shapira, Yoav

Howdy,
TC Main page
http://jakarta.apache.org/tomcat/
Documentation for TC5 goes to
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/index.html
JK Documentation goes to
http://jakarta.apache.org/site/binindex.cgi
Oops!

Check again.  It does to the 4.1 JK documentation (the JK docs have
been maintained there.  If you still see the above link, clear your
browser's cache.

Is there a better place to report website errors?

This is as good a place as any for a first report.  If it's ignored here
for a while you can try tomcat-dev.

Yoav Shapira



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



RE: Upgrading Tomcat from 4.1.x to 5.0.x

2004-03-01 Thread Shapira, Yoav

Hi,

Are there any cautions/warnings/problems or just differences that I should expect 
between the two? For instance, will my servlets need to change in any way to run in 
5.0.x? Will administration of the servlets change in any way? If there is anything I 
should do to prepare for the upgrade, particularly steps that minimize problems, I'd 
like to do so.

You don't have to change your servlets/listeners/filters/JSPs etc.  There are 
differences in the server configuration, e.g. the automatic creation of context .xml 
files in the conf/[engine name]/[host name] directory under certain circumstances.  If 
you have an unusual or very intricate custom tomcat configuration, i.e. a lot of 
things setup in server.xml, you might have a slightly more difficult migration.  But 
your webapp itself won't need to be changed.

Am I right in believing that I should normally not remove old versions 
before installing newer versions of Tomcat; that new versions simply go on in 
parallel, i.e. they are put in different directories than the old versions? That's 
what I did when going from 4.1.24 to 4.1.29 in Windows XP.

Doesn't matter.  You can remove the old version if you want, no harm there.  You will 
probably want to keep it until the new one is all set up and tested, however.
 
However, we also have Tomcat on our Linux Mandrake 9.1 server and the administrator 
wants to use urpm to simply overlay 4.1.24 on Linux with 5.0.x. Is that safe or 
should we do it some other way?

I'm not an expert on RPMs, but I dislike overlaying installations to the same 
directory.  Use a different directory if possible.

Yoav Shapira



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



Configuring tomcat logs

2004-03-01 Thread STOCKHOLM, Raymond
Does anybody know if it is possible to configure tomcat 
to have a RollingFileAppender (as in log4j)
for its log files ?
I had a no space left on device due to too many logs in $TOMCAT/logs

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



Re: Help tomcat problem with memory

2004-03-01 Thread software
Hi, tahnks for you help,
We actually running Java Applications with JDBC connectios to the 
databases, we have in this moment 13 application more or less, and one 
of the this application is on our website, we've received connections 
from any sites of the internet, and we are interesting to get tunnig in 
ours Tomcats.

Christopher Schultz wrote:

Fabian,

If  i have only two java proccess of 141 MB and 55 MB why my memory 
is over 90% of the utilization and the application working slowly or 
not working, when the users try to get access using the webserver in 
this server. i can't understand this problem...thnaks


You have to understand something about Linux memory: it never gives it 
up. So, even though 'top' reports that your box has very little free 
physical memory, that doesn't mean that it's all being used.

When the kernel obtains memory on behalf of a process, it doesn't go 
back into 'free' when the process fees it or dies. I know it's a 
little weird.

However, you do have a reasonable complaint: the app seems sluggish, 
and with that hardware, it shouldn't be.

Again: what are you running? If your code fires off 500 threads every 
time a request comes in, then maybe you shoudl rethink your 
architecture. If it's nothing heavy-hitting, then something else is 
wrong. What else is running on the box?

What benchmarks have you run? Or, are you just complaining about 
wall-clock time? Could your problem be network latency? How far from 
the box are you?

-chris


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


Re: ReRe: Need Help in Session Management !!!

2004-03-01 Thread Tim Kelly
There are missing parenthesis in the line:

String user1=request.getUserPricipal.getName();

It should be
String user1=request.getUserPricipal().getName();
Thats why you get the cannot resolve symbol :)

Tim



amit varshney wrote:

it did not work. The following error message is displayed

/usr/tomcat/webapps/intra/work/org/apache/jsp/accounts/jdbcmenu_jsp.java:61: cannot resolve symbol
symbol  : variable getUserPricipal 
location: interface javax.servlet.http.HttpServletRequest
String user1=request.getUserPricipal.getName();
   ^

.

Quoting  [EMAIL PROTECTED]:

 

I think you can get the user name by getting the Principal object from

request and then getting the name from it like

String userName = request.getUserPrincipal().getName();

-Shanmugam-

amit varshney wrote:

   

I want to use  tomcat user authentication in my application. for that i
 

am using JDBCRealm.I have set the security constraint in the web.xml. So
when  a request for the restricted page comes a login page comes.
   

But the problem is that it is submitting to the j_security_check and
 

the textboxes are named j_username and j_password respectivley.I want
session mangemant in my application. For that I need the login name of
the person on my each page. How can I pass the username from login page
to my page. is it possible to maintain session using tomcat user
authentication or should i go for my own authentication and session
management.
   

Plz help me 
Thanks in advance 
Amit Varshney

-
Still single? Click here to find the perfect match.
 
 

   
   

http://www.bharatmatrimony.com/cgi-bin/bmclicks1.cgi?141



 

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

-
Still single? Click here to find the perfect match.
http://www.bharatmatrimony.com/cgi-bin/bmclicks1.cgi?141

 

--
Tim Kelly, Director of Development
Building Engines, Inc.
Phone: 781-290-5300
Cell: 508-561-0985
www.buildingengines.com

275 Wyman Street
Suite 11
Waltham MA 02451





Form-based authentication question

2004-03-01 Thread Edd Dawson
Hi

I have successfully set up tomcat to protect various parts of my
application using JDBCrealm and form-based-authentication, and it all
works fine.

Now i have written a system whereby new users can register and it
creates them their chosen username and puts them in the right roles in
the database.

Now what i want to be able to do is have my servlet automatically log
them in as the register without the need for them to be redirected to
the login-form and re-enter their username and password.

I am presuming this is possible as i log my users out by invoking
request.getSession().invalidate(); in my logoff servlet, so my question
is how do i create their session without using the default login form?

Thanks
Edd


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



RE: Configuring tomcat logs

2004-03-01 Thread Shapira, Yoav

Hi,

Does anybody know if it is possible to configure tomcat
to have a RollingFileAppender (as in log4j)
for its log files ?
I had a no space left on device due to too many logs in $TOMCAT/logs

Tomcat's logs are rotated nightly as you've probably noticed by now.
The catalina.out log is simply a trap for System.out/System.err and is
not rotated regularly by tomcat.  You can set swallowOutput=true on your
contexts to direct System.out/System.err output from them to the context
logs which are rotated, or you can use a 3rd program like cronlog to
rotate your logs.

Tomcat does not support all the configuration options of log4j's
RollingFileAppenders.  It is the server administrator's responsibility
to ensure enough space for logs: this is true for any server-side
program.

Yoav Shapira



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



Re: reclaiming memory problem

2004-03-01 Thread Christopher Schultz
G,

But, when I close down a client window, the
memory consumption remains at it's peak (and climbs with each
successive new client opened) In other words, memory consumption
increments but never decrements, necessitating a server bounce at
unacceptable frequency.
What is your definition of 'never'?

Java cannot immediately reclaim the memory used by that user's sesson if 
the user closes the browser. Tomcat doesn't know that the client has 
closed their browser. It must wait until the session times out (30 
minutes, I think) before the session can be cleaned up automatically. 
Solutions?

1. Reduce the session timeout.
2. Store less stuff in the session so that it's not such a memory drain.
3. Beg your customers to logout before leaving your app. ;)
Why are the resources not being reclaimed, and how might I gently
encourage resource reclamation? I fear System.gc() is not the answer
here.
System.gc only tells the GC 'now might be a convenient time to run the 
GC'. Other than that, it's not much good.

-chris



signature.asc
Description: OpenPGP digital signature


RE: reclaiming memory problem

2004-03-01 Thread Shapira, Yoav

Hola,

 But, when I close down a client window, the
 memory consumption remains at it's peak (and climbs with each
 successive new client opened) In other words, memory consumption
 increments but never decrements, necessitating a server bounce at
 unacceptable frequency.

What is your definition of 'never'?

Java cannot immediately reclaim the memory used by that user's sesson
if
the user closes the browser. Tomcat doesn't know that the client has
closed their browser. It must wait until the session times out (30
minutes, I think) before the session can be cleaned up automatically.
Solutions?

30 minutes is the default session timeout, yes.  But your first question
to the original poster, i.e. the definition of 'never', is a very good
question.

Remember that the JVM heap size grows monotonically.  For example, if
you need 50MB at some point and the JVM can allocate that, it will.
Then sessions timeout and you only need 30MB, so the JVM will garbage
collect.  You will end up with 30MB allocated and 20MB free: the total
will never go above the previous max (50MB) for the lifetime of the JVM.

Yoav Shapira



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



IIS logging of page requests

2004-03-01 Thread pete . storey
Hi,
I need to analyse the logs of a site powered by Tomcat 4.1.27 and IIS, 
using the JK2 redirector DLL.  Whenever a request gets put through, it 
logs it to /jakarta/isapi_redirector2.dll instead of the actual URL it 
went to eg /index.html .  Is there any way to get IIS to log the URLs as 
entered instead of like this or do you have to write some custom logging 
component?
thanks
Pete Storey

Kiss Technologies

http://www.kisstechnologies.co.uk/

4, Percy Street
London
W1T 1DF

Phone numbers:

Phone 020 7692 9922
Fax 020 7692 9923
Out of hours
Support phone 020 7692 9933

RE: Can someone direct me to the documentation.

2004-03-01 Thread Angus Mezick
Could a link be added to the docs stating something like: Web.xml format
specified at LINK?  I think this type of this would be VERY helpful for
deflecting clueful newbies.  Only a clue hammer will help the clueless
:)
--Angus

 -Original Message-
 From: Derek Clarkson [mailto:[EMAIL PROTECTED] 
 Sent: Thursday, February 26, 2004 8:54 PM
 To: 'Tomcat Users List'
 Subject: RE: Can someone direct me to the documentation.
 
 
 Thanks Filip,
   I've never looked at that before. I'd just looked at 
 the class files
 thinking it might be in there. I'll have a good read of it 
 know that I have
 it ;-)
 
 Ciao
 Derek.
  
 
 -Original Message-
 From: Filip Hanik (lists) [mailto:[EMAIL PROTECTED] 
 Sent: Friday, 27 February 2004 12:26 PM
 To: Tomcat Users List
 Subject: RE: Can someone direct me to the documentation.
 
 why document it again, when you have it in the specification :)
 
 http://java.sun.com/products/servlet/download.html#specs
 
 Filip
 
 -Original Message-
 From: Derek Clarkson [mailto:[EMAIL PROTECTED]
 Sent: Thursday, February 26, 2004 5:20 PM
 To: Tomcat Users List
 Subject: Can someone direct me to the documentation.
 
 
 
 Hi all,
 I've found over time that the Apache and associated projects 
 web site is
 either extremely good, or extremely bad when it comes to 
 finding certain
 pieces of documentation. The lastest one that's been driving 
 me nuts is
 wanting to find a reference to the tags that can be set 
 inside the servlet
 namespace in a web.xml file. Specifically I was hunting for 
 details on the
 load-on-startup tag, what it did exactly and what the 
 numbers ment. I
 seached the Apache sites, the web, everything I could find 
 and all I got was
 some references in various news groups. It was enough to tell 
 me what I
 needed to know, but I would still like to know where the 
 offical reference
 is for this part of the web.xml file.
 
 Can anyone point me to a URL ?
 
 Ciao
 Derek.
 
 
 __
 This email, including attachments, is intended only for the 
 addressee and
 may be confidential, privileged and subject to copyright.  If you have
 received this email in error, please advise the sender and 
 delete it.  If
 you are not the intended recipient of this email, you must 
 not use, copy or
 disclose its content to anyone.  You must not copy or 
 communicate to others
 content that is confidential or subject to copyright, unless 
 you have the
 consent of the content owner.
 ---
 Incoming mail is certified Virus Free.
 Checked by AVG anti-virus system (http://www.grisoft.com).
 Version: 6.0.594 / Virus Database: 377 - Release Date: 2/24/2004
 
 ---
 Outgoing mail is certified Virus Free.
 Checked by AVG anti-virus system (http://www.grisoft.com).
 Version: 6.0.594 / Virus Database: 377 - Release Date: 2/24/2004
 
 
 -
 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: Can someone direct me to the documentation.

2004-03-01 Thread Shapira, Yoav

Howdy,

Could a link be added to the docs stating something like: Web.xml
format
specified at LINK?  I think this type of this would be VERY helpful for
deflecting clueful newbies.  Only a clue hammer will help the clueless
:)

Where do you suggest we add this link to the servlet specification?

Yoav Shapira



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



RE: Can someone direct me to the documentation.

2004-03-01 Thread Angus Mezick
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/index.html
In the getting started topic.  I do notice a blurb about web.xml in the
application developers topic stating Covers basic organization of your
web application source tree, the structure of a web application archive,
and an introduction to the web application deployment descriptor
(/WEB-INF/web.xml).  But I missed it when I first sent my message.

http://jakarta.apache.org/tomcat/tomcat-4.1-doc/appdev/introduction.html
This could just have a more explicit messages saying how web.xml is
define in the servlet 2.3 spec.

http://jakarta.apache.org/tomcat/tomcat-4.1-doc/appdev/source.html
Make the mention of web.xml a hotlink?

http://jakarta.apache.org/tomcat/tomcat-4.1-doc/appdev/processes.html
A bit more test around the mention of a basic web.xml.  I don't think
many people new to these config files know that you can just type in the
dtd link into a web browser and get the dtd.  It is a VERY nifty way to
get the spec for an xml file though.

http://jakarta.apache.org/tomcat/tomcat-4.1-doc/servletapi/index.html
Could this page have this type of link?

--Angus

 -Original Message-
 From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
 Sent: Monday, March 01, 2004 9:53 AM
 To: Tomcat Users List
 Subject: RE: Can someone direct me to the documentation.
 
 
 
 Howdy,
 
 Could a link be added to the docs stating something like: Web.xml
 format
 specified at LINK?  I think this type of this would be VERY 
 helpful for
 deflecting clueful newbies.  Only a clue hammer will help 
 the clueless
 :)
 
 Where do you suggest we add this link to the servlet specification?
 
 Yoav Shapira
 
 
 
 This e-mail, including any attachments, is a confidential 
 business communication, and may contain information that is 
 confidential, proprietary and/or privileged.  This e-mail is 
 intended only for the individual(s) to whom it is addressed, 
 and may not be saved, copied, printed, disclosed or used by 
 anyone else.  If you are not the(an) intended recipient, 
 please immediately delete this e-mail from your computer 
 system and notify the sender.  Thank you.
 
 
 -
 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: Web site error.

2004-03-01 Thread Parsons Technical Services
Yoav,

The one on the left of the page does work. But if you look further down the
page in the main body there is another link for JK Documentation and it
points to
http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk2/doc/ which is
redirected to the http://jakarta.apache.org/site/binindex.cgi .

Thanks,

Doug

- Original Message - 
From: Shapira, Yoav [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, March 01, 2004 9:19 AM
Subject: RE: Web site error.



Howdy,
TC Main page
http://jakarta.apache.org/tomcat/
Documentation for TC5 goes to
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/index.html
JK Documentation goes to
http://jakarta.apache.org/site/binindex.cgi
Oops!

Check again.  It does to the 4.1 JK documentation (the JK docs have
been maintained there.  If you still see the above link, clear your
browser's cache.

Is there a better place to report website errors?

This is as good a place as any for a first report.  If it's ignored here
for a while you can try tomcat-dev.

Yoav Shapira



This e-mail, including any attachments, is a confidential business
communication, and may contain information that is confidential, proprietary
and/or privileged.  This e-mail is intended only for the individual(s) to
whom it is addressed, and may not be saved, copied, printed, disclosed or
used by anyone else.  If you are not the(an) intended recipient, please
immediately delete this e-mail from your computer system and notify the
sender.  Thank you.


-
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: Virtual Hosts with Apache and Tomcat

2004-03-01 Thread Stephen Carville
Here is some more information on the problem. From a developer:

According to the document that the link below refers to, a single
instance of Tomcat will have multiple JVMs, where each JVM represents a
virtual host.  The following link clearly states this virtual host concept
as it applies to Tomcat.
http://jakarta.apache.org/tomcat/tomcat-3.2-doc/uguide/tomcat_ug.html
(please refer the virtual host section).}

As per the above document, each JVM corresponding to a virtual host
contains a database connection pool object. Hence the connection pool that
has been implemented seems to be in-line with the virtual host definition in
the above document.

Also, we are also using the same concept of DBCP in our
applications. The difference in our case is that we have chosen to use
Oracle that also uses the same DataSource class.

OK, it is my understanding that the problem of a new JVM for each virtual host 
was fixed in 4.X.  True?

I RT'ed some more FM on 4.2 and found that the Tomcat developers suggest that 
the connection code be placed in $CATALINA_HOME/common/lib.  I passed that to 
the developers and:

As regards putting the flood.jar in $CATALINA_HOME/common/lib, we
tried it and the behavior was no different.

Is there anyone running tomcat with virtual hosts and do you also have this 
problem?  It is a little hard to beleive this is so difficult to implement 
but hasn't come up before. (at least I couldn't find it in the archives)

-- 
Stephen Carville
UNIX and Network Administrator
DPSI
310-342-3602
[EMAIL PROTECTED]
--
Most people prefer believing their leaders are just and fair even in the face 
of contrary evidence.  Perhaps this is because, once a man acknowledges that  
the government he lives under is corrupt and cares nothing for justice or  
fairness, that man also has to choose what he will do about it.


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



RE: Web site error.

2004-03-01 Thread Shapira, Yoav

Hi,

The one on the left of the page does work. But if you look further down
the
page in the main body there is another link for JK Documentation and it
points to
http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk2/doc/
which
is
redirected to the http://jakarta.apache.org/site/binindex.cgi .

Ahh, OK.  I've fixed it in CVS, and the change will be reflected on the
website with the next tomcat release.  Thanks for pointing it out.

Yoav Shapira



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



RE: Virtual Hosts with Apache and Tomcat

2004-03-01 Thread Mike Curwen
I have a sneaking suspicion that someone is still blowing smoke. ;)  
Either
1) the oracle pool has a leak
2) oracle server has a problem closing connections
3) you have a leak in the application.
 
For problem 3), I find the DBCP's ability to 'tattle' on bad JSP
pages/classes invaluable in tracking down this type of behaviour.  
 
Here's a (big) snip. I've removed a bunch of parameters, as they would
change for your app. But the key ones are included at the bottom.

Context path= 
 docBase=/home/webhome/buzz/ 
 defaultSessionTimeout=60 
 reloadable=true


Resource   name=jdbc/BuzzDB
auth=Container
type=javax.sql.DataSource /

ResourceParams name=jdbc/BuzzDB

parameter
namefactory/name

valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
/parameter

!-- Max number of dB connections. Set to 0 for no limit. --

!-- Max number of idle dB connections to retain. Set to 0 for
no limit. --

!-- Max wait for dB connection to become available
(in ms), -1 to wait indefinitely. --

!-- MySQL dB username, password, driver, URL  --


parameter
nameremoveAbandoned/name
valuetrue/value
/parameter
parameter
nameremoveAbandonedTimeout/name
value20/value
/parameter
parameter
namelogAbandoned/name
valuetrue/value
/parameter
/ResourceParams

When you have a mis-behaving JSP (one that doesn't return its
connection), you'll get a stack trace in catalina.out (or wherever you
have redirected catalina.out) that contains the name of the JSP or class
that did not return a connection, and that was forced abandoned by the
pool. With the above config, this happens in 20 seconds (though it won't
be logged until the *next* access of the pool).  I'm not familiar with
the Oracle drivers, but hopefully they have something similar?
 
The reason I think your developers are blowing smoke... You are using
4.1.x and they are quoting 3.x docs.  They should know better!



 -Original Message-
 From: Stephen Carville [mailto:[EMAIL PROTECTED] 
 Sent: Monday, March 01, 2004 9:18 AM
 To: Tomcat Users List
 Subject: Re: Virtual Hosts with Apache and Tomcat
 
 
 Here is some more information on the problem. From a developer:
 
 According to the document that the link below refers to, a 
 single instance of Tomcat will have multiple JVMs, where each 
 JVM represents a virtual host.  The following link clearly 
 states this virtual host concept as it applies to Tomcat. 
 http://jakarta.apache.org/tomcat/tomcat-3.2-doc/uguide/tomcat_ug.html
 (please refer the virtual host section).}
 
 As per the above document, each JVM corresponding to a 
 virtual host contains a database connection pool object. 
 Hence the connection pool that has been implemented seems to 
 be in-line with the virtual host definition in the above document.
 


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



classloader order

2004-03-01 Thread Charles N. Harvey III
Hello.
I have questions about the order in which jars are loaded into the 
classloader.
I have read 
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/class-loader-howto.html
many times over and I am still confused.  The Overview relates parent 
and children
classloaders to each other.  It then says that the Java 2 way is to put 
the Bootstrap
classloader first.  It then states that Tomcat does it a little bit 
differently, the
details of which are stated below.  In the Class Loader Definitions 
section it says
that the /WEB-INF/classes/ comes first, with /WEB-INF/lib/ second.  This 
is all
exactly as I would like to see it.

But... I don't seem to have classes loaded in that order.  The Bootstrap 
classloader
takes precedence over all the others.  The systems group here added some 
of the
jakarta commons jars to the Bootstrap classloader, and now I cannot 
override them
with newer versions.  As in, commons-beanutils-1.3.jar is in the 
Bootstrap loader
and I want to use commons-beanutils-1.6.1.jar.  So I place 
beanutils-1.6.1 in my
/WEB-INF/lib/... and nothing.  The Bootstrap classloader wins every time.

Is there something I am doing wrong?  (Besides having jars in my 
Bootstrap loader?)
What can I do to make sure that whatever I have in my /WEB-INF/lib/ 
directory takes
precedence?

Thanks for the help.

Charlie



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


RE: Can someone direct me to the documentation.

2004-03-01 Thread Shapira, Yoav

Hi,

http://jakarta.apache.org/tomcat/tomcat-4.1-doc/index.html
In the getting started topic.  I do notice a blurb about web.xml in the
application developers topic stating Covers basic organization of your
web application source tree, the structure of a web application
archive,
and an introduction to the web application deployment descriptor
(/WEB-INF/web.xml).  But I missed it when I first sent my message.

OK, so I'll ignore this one since it's there.

http://jakarta.apache.org/tomcat/tomcat-4.1-doc/appdev/introduction.htm
l
This could just have a more explicit messages saying how web.xml is
define in the servlet 2.3 spec.

It doesn't get much clearer than the second bullet point under Links
here: you will need this document to understand the web application
directory structure and deployment file (Chapter 9), methods of mapping
request URIs to servlets (Chapter 11), container managed security
(Chapter 12), and the syntax of the web.xml Web Application Deployment
Descriptor (Chapter 13).

http://jakarta.apache.org/tomcat/tomcat-4.1-doc/appdev/source.html
Make the mention of web.xml a hotlink?

Added a link to the servlet specification.

http://jakarta.apache.org/tomcat/tomcat-4.1-doc/appdev/processes.html
A bit more test around the mention of a basic web.xml.  I don't think
many people new to these config files know that you can just type in
the
dtd link into a web browser and get the dtd.  It is a VERY nifty way to
get the spec for an xml file though.

Added link to Servlet Specification there as well.

http://jakarta.apache.org/tomcat/tomcat-4.1-doc/servletapi/index.html
Could this page have this type of link?

Yes, if you ask the Servlet Specification committee (JSR 154 Expert
Group).

Note that my changes were applied to the latest version of the above
files in CVS (i.e. the tomcat 5 files) and will not be visible on
jakarta.apache.org until the next tomcat release.

Yoav Shapira




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



RE: classloader order

2004-03-01 Thread Shapira, Yoav

Howdy,

I have read
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/class-loader-howto.html
many times over and I am still confused.  The Overview relates parent
and children
classloaders to each other.  It then says that the Java 2 way is to put
the Bootstrap
classloader first.  It then states that Tomcat does it a little bit
differently, the
details of which are stated below.  In the Class Loader Definitions
section it says
that the /WEB-INF/classes/ comes first, with /WEB-INF/lib/ second.
This
is all
exactly as I would like to see it.

Bootstrap is still first, as is required in Java 2.  Specifically, note
the following summary on the page you quoted above:
Therefore, from the perspective of a web application, class or resource
loading looks in the following repositories, in this order:

Bootstrap classes of your JVM
System class loader classses (described above)
/WEB-INF/classes of your web application
/WEB-INF/lib/*.jar of your web application
$CATALINA_HOME/common/classes
$CATALINA_HOME/common/endorsed/*.jar
$CATALINA_HOME/common/lib/*.jar
$CATALINA_BASE/shared/classes
$CATALINA_BASE/shared/lib/*.jar

takes precedence over all the others.  The systems group here added
some
of the
jakarta commons jars to the Bootstrap classloader, and now I cannot

Basically, your systems group should be shot ;)  I'm just kidding of
course, I don't want to advocate violence, but they're in the wrong, not
you.  Don't pollute the JDK installation by putting stuff in the lib/ext
(the bootstrap classloader) unless ABSOLUTELY necessary, and it's very
rare that you ABSOLUTELY need the jakarta commons jars there.

Is there something I am doing wrong?  (Besides having jars in my
Bootstrap loader?)
What can I do to make sure that whatever I have in my /WEB-INF/lib/
directory takes
precedence?

You're not doing anything wrong, your systems group is.  You can't
override the bootstrap classloader.

Yoav Shapira



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



RE: Configuring tomcat logs

2004-03-01 Thread STOCKHOLM, Raymond
Thank's for the explanation.

-Message d'origine-
De : Shapira, Yoav [mailto:[EMAIL PROTECTED]
Envoyé : lundi 1 mars 2004 15:31
À : Tomcat Users List
Objet : RE: Configuring tomcat logs



Hi,

Does anybody know if it is possible to configure tomcat
to have a RollingFileAppender (as in log4j)
for its log files ?
I had a no space left on device due to too many logs in $TOMCAT/logs

Tomcat's logs are rotated nightly as you've probably noticed by now.
The catalina.out log is simply a trap for System.out/System.err and is
not rotated regularly by tomcat.  You can set swallowOutput=true on your
contexts to direct System.out/System.err output from them to the context
logs which are rotated, or you can use a 3rd program like cronlog to
rotate your logs.

Tomcat does not support all the configuration options of log4j's
RollingFileAppenders.  It is the server administrator's responsibility
to ensure enough space for logs: this is true for any server-side
program.

Yoav Shapira



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



Session Timeout and Direct Reference to login page

2004-03-01 Thread Renato Romano
I have two problems i'm facing with every web application using
declarative security model, that is:

1) Detect that the user session has expired, and forward him to an
appropriate login page;
Usually we build webapp in which the home page shows a login form; to
handle this, I use to make a index.jsp page which redirects the user
to a protected page; this is handled by the container which then shows
my login page (as specified in web.xml) that is my HOME page.
With this approach however, I can't detect session expirying, so if the
session times out, the user is presented with the HOME page (the login
page) without further notice or advice!! I tried to solve this with a
filter, but it seems the container (Tomcat 4.1.127 inside Jboss)
forwards to the login page without calling the filter.

2) If the user waits too long reading the home/login page, the sessions
times out, Tomcat looses the reference to the previously requested
protected page, and on login shows an Invalid Direct refernce to form
login page error. Again a filter seem not to be useful in this case,
since Tomcat commits the error without calling the filter!!

Any help or hint on this topic is very, very appreciated

Renato



Renato Romano
Sistemi e Telematica S.p.A.
Calata Grazie - Vial Al Molo Giano
16127 - GENOVA

e-mail: [EMAIL PROTECTED]
Tel.:   010 2712603
_



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



Re: classloader order

2004-03-01 Thread Charles N. Harvey III
Yoav,
Thank you so much for confirming what I had basically already figured out.
I think, originally, we had other things running on our Tomcat machines
(web-service processes) and it made it easier to develop apps with those
jars included.  I am currently asking them to move all of these jars to
/tomcat/common/lib/ or /tomcat/shared/lib/.  That way, if I want to use
those jars, I can.  But if I want to override them, I can.  :)  It's either
that or remove them altogether from the machine and make each webapp
carry around all jars - which really isn't so terrible.
Thanks again.

Charlie

Shapira, Yoav wrote:

Howdy,

 

I have read
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/class-loader-howto.html
many times over and I am still confused.  The Overview relates parent
and children
classloaders to each other.  It then says that the Java 2 way is to put
the Bootstrap
classloader first.  It then states that Tomcat does it a little bit
differently, the
details of which are stated below.  In the Class Loader Definitions
section it says
that the /WEB-INF/classes/ comes first, with /WEB-INF/lib/ second.
   

This
 

is all
exactly as I would like to see it.
   

Bootstrap is still first, as is required in Java 2.  Specifically, note
the following summary on the page you quoted above:
Therefore, from the perspective of a web application, class or resource
loading looks in the following repositories, in this order:
Bootstrap classes of your JVM 
System class loader classses (described above) 
/WEB-INF/classes of your web application 
/WEB-INF/lib/*.jar of your web application 
$CATALINA_HOME/common/classes 
$CATALINA_HOME/common/endorsed/*.jar 
$CATALINA_HOME/common/lib/*.jar 
$CATALINA_BASE/shared/classes 
$CATALINA_BASE/shared/lib/*.jar

 

takes precedence over all the others.  The systems group here added
   

some
 

of the
jakarta commons jars to the Bootstrap classloader, and now I cannot
   

Basically, your systems group should be shot ;)  I'm just kidding of
course, I don't want to advocate violence, but they're in the wrong, not
you.  Don't pollute the JDK installation by putting stuff in the lib/ext
(the bootstrap classloader) unless ABSOLUTELY necessary, and it's very
rare that you ABSOLUTELY need the jakarta commons jars there.
 

Is there something I am doing wrong?  (Besides having jars in my
Bootstrap loader?)
What can I do to make sure that whatever I have in my /WEB-INF/lib/
directory takes
precedence?
   

You're not doing anything wrong, your systems group is.  You can't
override the bootstrap classloader.
Yoav Shapira



This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged.  This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender.  Thank you.

-
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: Virtual Hosts with Apache and Tomcat

2004-03-01 Thread Kannan Sundararajan
Being yourself as SYSADMIN for UNIX and Network, it would be nice that
developers or professional should take a lead into get into this problem.

It looks like that to me that it has been stepping or bossing up the
developers up there. And since there is lot of techonology involved, it
would be much difficult for anyone to fix your problem. I guess there might
be some senior developer, who can do the situation much better. 

You have been trying to getinto JVMs and tuning and so on... the best is
developers to be involved actively. 

There could be lot of documents and phrases from a developer side, which you
are conveying. But for me looks like that you are trying to put your own
things into them, which may be difficult as a communication area of project
management( which is very crucial to success of a project).

-Original Message-
From: Stephen Carville [mailto:[EMAIL PROTECTED]
Sent: Monday, March 01, 2004 10:18 AM
To: Tomcat Users List
Subject: Re: Virtual Hosts with Apache and Tomcat


Here is some more information on the problem. From a developer:

According to the document that the link below refers to, a single
instance of Tomcat will have multiple JVMs, where each JVM represents a
virtual host.  The following link clearly states this virtual host concept
as it applies to Tomcat.
http://jakarta.apache.org/tomcat/tomcat-3.2-doc/uguide/tomcat_ug.html
(please refer the virtual host section).}

As per the above document, each JVM corresponding to a virtual host
contains a database connection pool object. Hence the connection pool that
has been implemented seems to be in-line with the virtual host definition in
the above document.

Also, we are also using the same concept of DBCP in our
applications. The difference in our case is that we have chosen to use
Oracle that also uses the same DataSource class.

OK, it is my understanding that the problem of a new JVM for each virtual
host 
was fixed in 4.X.  True?

I RT'ed some more FM on 4.2 and found that the Tomcat developers suggest
that 
the connection code be placed in $CATALINA_HOME/common/lib.  I passed that
to 
the developers and:

As regards putting the flood.jar in $CATALINA_HOME/common/lib, we
tried it and the behavior was no different.

Is there anyone running tomcat with virtual hosts and do you also have this 
problem?  It is a little hard to beleive this is so difficult to implement 
but hasn't come up before. (at least I couldn't find it in the archives)

-- 
Stephen Carville
UNIX and Network Administrator
DPSI
310-342-3602
[EMAIL PROTECTED]
--
Most people prefer believing their leaders are just and fair even in the
face 
of contrary evidence.  Perhaps this is because, once a man acknowledges that

the government he lives under is corrupt and cares nothing for justice or  
fairness, that man also has to choose what he will do about it.


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



investigating SSL Cert handshake timeout

2004-03-01 Thread Jonathan Higa
I'm running Tomcat 4.1.27 on Solaris 2.6 with JDK 1.4.0_01.  I have a
webapp configured to use CLIENT-CERT authentication.  When I attempt to
point my browser at one of the resources guarded by a
security-constraint, I can select and send a client certificate, but the
server throws a SocketException with the message SSL Cert handshake
timeout, and the requested resource does not load.
Googling for the SocketException message above shows five links, three
of which contain code from the tomcat-devel list, but I didn't find any
suggested fixes.  Do I need to dig deeper in Google?  I do realize that
Solaris 2.6 is ancient, and JDK 1.4.0 is the best I can use on it.  If
an upgrade is necessary to make this work, I'll be thrilled--it'll give
me evidence to tell my supervisor that the current platform is unacceptable.
Fiddling with the server and webapp settings produces at least one
combination which allows me to access the protected resource.  Here's
what I've found so far:
- With clientAuth=false in server.xml (SSL) and CLIENT-CERT in the
webapp's web.xml, I get the SSL Cert handshake timeout above.
- With clientAuth=true in the server and BASIC authentication in the
webapp, I can connect after providing both a client certificate and a
valid username/password.  In this case, initial access to the resource
is governed by the username/password (as expected), and I can still use
the certificate in the standard HttpServletRequest attribute for further
authentication. (Joy!  A viable workaround for the moment!)
- With clientAuth=true and CLIENT-CERT, I first get asked for a
certificate as before, but then a basic-authentication box pops up with
the realm name unknown.  No username/password combo works (not
surprising because the realm is strange), and canceling the
authentication yields an error page claiming that the resource requires
HTTP authentication.
That's all I have so far.  All suggestions are appreciated  I apologize 
for the lack of actual excerpts from server logs.  I can't get the logs 
on the Solaris box to an account from which I can send e-mail without 
printing and retyping them.  (Yup.  Bad situtation to be in.  Preaching 
to the choir.)

Sincerely,
Jonathan Higa ([EMAIL PROTECTED])


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


RE: classloader order

2004-03-01 Thread Shapira, Yoav

Howdy,

that or remove them altogether from the machine and make each webapp
carry around all jars - which really isn't so terrible.

No, it's really not terrible and it's likely to save you many headaches.

Yoav Shapira




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



Re: 5.0.19. [Newbie] Why it doesnt run my HelloServlet

2004-03-01 Thread Nathan Gross


Shapira, Yoav wrote:

Howdy,

 

The good news is that I rechecked again, and there are two
   

modifications
 

required for Tomcat 5's xml regarding the invoker. And it works!
   

Did you bother to read why the invoker servlet was commented out in the
first place? ;)
Yoav Shapira
 

Yep. I didn't quote *that* part because I didn't want to open a 
side-issue,as to the pros/cons. My concern was to ensure that I have a 
proper deployment.
Thanks.
-nat


Re: Tomcat users

2004-03-01 Thread Nathan Gross


Shapira, Yoav wrote:

Howdy,

 

I would like to know how many users can access Tomcat 5.0.19 per
   

second.
 

i.e I need to know the hit ratio.  Can some one help me please?
   

1 zillion jillion.  Or zero.  Depends on if you use the
-XaTonOfUsers=true java runtime option.
Just kidding, of course: it depends on your webapp, your hardware, and
many configuration parameters.
Yoav Shapira
 

Nah. What good is it. MY appserver supports -1000 (MINUS 1000) users! 
Tomcat only from zero users?
Oh. Forgot to mention that when my server hits minus 10 users, it cant 
handle the load
-nat


FW: Apache Tomcat 4.0 vs 4.1

2004-03-01 Thread John Eaton
Has no-one any ideas about my issue below?

-Original Message-
From: John Eaton 
Sent: 24 February 2004 09:17
To: [EMAIL PROTECTED]
Subject: RE: Apache Tomcat 4.0 vs 4.1


The jsp page in the work directory is as follows

package org.apache.jsp;

import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import org.apache.jasper.runtime.*;
import com.lagan.lagancentre.core.thinclient.common.util.*;
import com.lagan.lagancentre.core.util.forms.*;
import java.lang.*;
import java.util.*;
import java.text.*;

public class CreateIndividual_jsp extends HttpJspBase {


  private static java.util.Vector _jspx_includes;

  public java.util.List getIncludes() {
return _jspx_includes;
  }

  public void _jspService(HttpServletRequest request, HttpServletResponse response)
throws java.io.IOException, ServletException {

JspFactory _jspxFactory = null;
javax.servlet.jsp.PageContext pageContext = null;
HttpSession session = null;
ServletContext application = null;
ServletConfig config = null;
JspWriter out = null;
Object page = this;
JspWriter _jspx_out = null;


try {
  _jspxFactory = JspFactory.getDefaultFactory();
  response.setContentType(text/html;charset=UTF-8);
  pageContext = _jspxFactory.getPageContext(this, request, response,
null, true, 8192, true);
  application = pageContext.getServletContext();
  config = pageContext.getServletConfig();
  session = pageContext.getSession();
  out = pageContext.getOut();
  _jspx_out = out;

  out.write(\r\n\r\n);
  out.write(\r\n);
  out.write(\r\n);
  out.write(\r\n);
  out.write(\r\n);
  out.write(\r\n);
  out.write(\r\n);
  out.write(\r\n\r\n);
  out.write(html\r\n);
  out.write(head\r\n);
  out.write(titleCreate Individual);
  out.write(/title\r\n);
  out.write(link rel=\stylesheet\ href=\style.css\ type=\text/css\\r\n);
  out.write(/head\r\n);
  out.write(script language=\javascript\ src=\calendar.js\);
  out.write(/script\r\n);
  out.write(body\r\n\r\n);
  JspRuntimeLibrary.include(request, response, Options.jsp + ? + pageTitle= 
+ Create+Individual, out, true);
  out.write(\r\n\r\n);
  out.write(\r\n\r\n);

int[] parms = new int[32];
for (int i=0; i32; i++) parms[i] = WSMethod.STRING;
parms[10] = WSMethod.CALENDAR;

String service = (String) application.getAttribute(AttributeName.WEB_SERVICE);

WSMethod meth = new WSMethod(service, createIndividual, parms);

String title = null;
String forename1 = null;
String forename2 = null;
String forename3 = null;
String surname = null;
String addressnumber = null;
String address1 = null;
String address2 = null;
String address3 = null;
String postcode = null;
String dob = null;
String phonenumber1 = null;
String phoneusage1 = null;
String phonetype1 = null;
String phonenumber2 = null;
String phoneusage2 = null;
String phonetype2 = null;
String emailaddress = null;
String emailusage = null;
String verificationlevel = null;
String gender = null;
String maritalstatus = null;
String ethnicity = null;
String nationality = null;
String healthnumber = null;
String ninumber = null;
Calendar birth = null;
boolean mandatory = false;
boolean invalidDate = false;
String dobString = null;

if (request.getParameter(create) != null)
{
title = request.getParameter(title);
forename1 = request.getParameter(forename1);
forename2 = request.getParameter(forename2);
forename3 = request.getParameter(forename3);
surname = request.getParameter(surname);
addressnumber = request.getParameter(addressnumber);
address1 = request.getParameter(address1);
address2 = request.getParameter(address2);
address3 = request.getParameter(address3);
postcode = request.getParameter(postcode);
dob = request.getParameter(dob);
phonenumber1 = request.getParameter(phonenumber1);
phoneusage1 = request.getParameter(phoneusage1);
phonetype1 = request.getParameter(phonetype1);
phonenumber2 = request.getParameter(phonenumber2);
phoneusage2 = request.getParameter(phoneusage2);
phonetype2 = request.getParameter(phonetype2);
emailaddress = request.getParameter(emailaddress);
emailusage = request.getParameter(emailusage);
verificationlevel = request.getParameter(verificationlevel);
gender = request.getParameter(gender);

jar versions

2004-03-01 Thread Charles N. Harvey III
I have one little thing that sometimes drives me crazy about most products
that I download off of the internet - jar versions.  There aren't any.  Its
not just Tomcat, its Sun.  How come the j2ee.jar never has a version?  Does
that bother anyone else?
This never really bothered me that much before, because I was still a 
beginner
and which version I was using never really came into play.  But now that I
try to keep up on the latest versions of freely available classes the 
version
numbers matter.  And, with the advent of Maven, it becomes slightly annoying
to change my project.xml file because the jar does not have a version, or to
rename my jars and add in a number.

Recently I had issues with my classloader because there were jars in there
that I could not override.  What made it really difficult was finding out
which version was used.  But the /tomcat/common/lib/ directory does the same
thing.  Not one of the jars has a version number.  Can this be changed?  Can
a 1.3 or 0.4 be added to the end of each of the jars so that everyone can
know which version their system is loading?
Just my $0.02.  I am trying to get everyone at my company to make sure 
everything
is numbered, so I thought I'd throw my opinion around at everyone else.  :)

Big fan of the product, thanks for all the years of great work.

Charlie

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


RE: Tomcat users

2004-03-01 Thread Kannan Sundararajan
What are you talking about Nat? 

Yoav Shapira, clearly mentioned about it. It all depends on the hardware, OS
etc, which you are trying to run. 


-Original Message-
From: Nathan Gross [mailto:[EMAIL PROTECTED]
Sent: Monday, March 01, 2004 11:17 AM
To: Tomcat Users List
Subject: Re: Tomcat users




Shapira, Yoav wrote:

Howdy,

  

I would like to know how many users can access Tomcat 5.0.19 per


second.
  

i.e I need to know the hit ratio.  Can some one help me please?



1 zillion jillion.  Or zero.  Depends on if you use the
-XaTonOfUsers=true java runtime option.

Just kidding, of course: it depends on your webapp, your hardware, and
many configuration parameters.

Yoav Shapira
  

Nah. What good is it. MY appserver supports -1000 (MINUS 1000) users! 
Tomcat only from zero users?
Oh. Forgot to mention that when my server hits minus 10 users, it cant 
handle the load
-nat

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



Trouble with Tomcat5, SSI and crossContext

2004-03-01 Thread Ted Gittinger
jakarta-tomcat-5.0.18
Windows 2000
I cannot get SSI (server side includes) to work from one context to
another.  I CAN get it to work from one context to the ROOT context but
not anywhere else.
I have an index.html file with the following virtual include:

!--#include virtual=/zinc/bdyhdr4.txt --

index.html is located in 'stx.war' deployed under webapps.  zinc is a
separate context under webapps and contains bdyhdr4.txt.
webapps
|
|
ROOT
|
|
stx
  |
  | index.html
|
|
zinc
  |
  | bdyhdr4.txt
I have enabled the SSI servlet, set 'isVirtualWebappRelative' to 0, and
changed the crossContext=true in both the stx.xml and zinc.xml files
located in C:\Program Files\Apache Software Foundation\Tomcat
5.0\conf\Catalina\localhost.
When viewing 'index.html', an error message an error occurred while
processing this directive appears where the text from the #include
should be.  The Tomcat log file shows:
StandardContext[/stx]ssi:
SSIServletExternalResolver.getServletContextAndPath( /zinc/bdyhdr4.txt,
true)
StandardContext[/stx]ssi: #include--Couldn't include file: /zinc/bdyhdr4.txt
java.io.IOException: Couldn't find file: /bdyhdr4.txt
at
org.apache.catalina.ssi.SSIServletExternalResolver.getFileText(SSIServletExternalResolver.java:420)
at 
org.apache.catalina.ssi.SSIMediator.getFileText(SSIMediator.java:190)



Here's the strange part.  If I copy the bdyhdr4.txt file to the ROOT
context, the include works.  It seems as if Tomcat is resolving the
context to 'ROOT' instead of 'zinc'.  I did add a connector so that port 
80 is used in addition to port 8080.

Connector port=80 maxThreads=150 minSpareThreads=25 
maxSpareThreads=75
   enableLookups=false redirectPort=8443 acceptCount=100
   debug=0 connectionTimeout=2
   disableUploadTimeout=true /

Any ideas?  I've tried creating a 'zinc' subdirectory in 'ROOT' and
eliminating the 'zinc' context under webapps.  I've tried adding a zinc
subdirectory in 'jsp-examples' and changing the code to !--#include
virtual=/jsp-examples/bdyhdr4.txt -- to see if crossContext is working.
Thanks!







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


Re: Trouble with Tomcat5, SSI and crossContext

2004-03-01 Thread Tarik El Berrak
hi
excuse me, can you tell me how to unsubscribe from the mailing list.
thankx a lot


- Original Message - 
From: Ted Gittinger [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, March 01, 2004 5:29 PM
Subject: Trouble with Tomcat5, SSI and crossContext


 jakarta-tomcat-5.0.18
 Windows 2000

 I cannot get SSI (server side includes) to work from one context to
 another.  I CAN get it to work from one context to the ROOT context but
 not anywhere else.

 I have an index.html file with the following virtual include:

 !--#include virtual=/zinc/bdyhdr4.txt --

 index.html is located in 'stx.war' deployed under webapps.  zinc is a
 separate context under webapps and contains bdyhdr4.txt.

 webapps
  |
  |
  ROOT
  |
  |
  stx
|
| index.html
  |
  |
  zinc
|
| bdyhdr4.txt

 I have enabled the SSI servlet, set 'isVirtualWebappRelative' to 0, and
 changed the crossContext=true in both the stx.xml and zinc.xml files
 located in C:\Program Files\Apache Software Foundation\Tomcat
 5.0\conf\Catalina\localhost.

 When viewing 'index.html', an error message an error occurred while
 processing this directive appears where the text from the #include
 should be.  The Tomcat log file shows:

 StandardContext[/stx]ssi:
 SSIServletExternalResolver.getServletContextAndPath( /zinc/bdyhdr4.txt,
 true)
 StandardContext[/stx]ssi: #include--Couldn't include file:
/zinc/bdyhdr4.txt
 java.io.IOException: Couldn't find file: /bdyhdr4.txt
  at

org.apache.catalina.ssi.SSIServletExternalResolver.getFileText(SSIServletExt
ernalResolver.java:420)
  at
 org.apache.catalina.ssi.SSIMediator.getFileText(SSIMediator.java:190)



 Here's the strange part.  If I copy the bdyhdr4.txt file to the ROOT
 context, the include works.  It seems as if Tomcat is resolving the
 context to 'ROOT' instead of 'zinc'.  I did add a connector so that port
 80 is used in addition to port 8080.

 Connector port=80 maxThreads=150 minSpareThreads=25
 maxSpareThreads=75
 enableLookups=false redirectPort=8443
acceptCount=100
 debug=0 connectionTimeout=2
 disableUploadTimeout=true /

 Any ideas?  I've tried creating a 'zinc' subdirectory in 'ROOT' and
 eliminating the 'zinc' context under webapps.  I've tried adding a zinc
 subdirectory in 'jsp-examples' and changing the code to !--#include
 virtual=/jsp-examples/bdyhdr4.txt -- to see if crossContext is working.

 Thanks!







 -
 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: jar versions

2004-03-01 Thread Shapira, Yoav

Howdy,
Please let's not start another flamewar on this topic of eternal debate,
this mailing list is voluminous enough as it is.  There are pros and
cons to each side, and many debates have taken place on this and other
list on this topic.  Suffice it to say it's a choice the developers
make.  For example see
http://marc.theaimsgroup.com/?t=10243459103r=1w=2.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Charles N. Harvey III [mailto:[EMAIL PROTECTED]
Sent: Monday, March 01, 2004 11:27 AM
To: Tomcat Users List
Subject: jar versions

I have one little thing that sometimes drives me crazy about most
products
that I download off of the internet - jar versions.  There aren't any.
Its
not just Tomcat, its Sun.  How come the j2ee.jar never has a version?
Does
that bother anyone else?

This never really bothered me that much before, because I was still a
beginner
and which version I was using never really came into play.  But now
that I
try to keep up on the latest versions of freely available classes the
version
numbers matter.  And, with the advent of Maven, it becomes slightly
annoying
to change my project.xml file because the jar does not have a version,
or
to
rename my jars and add in a number.

Recently I had issues with my classloader because there were jars in
there
that I could not override.  What made it really difficult was finding
out
which version was used.  But the /tomcat/common/lib/ directory does the
same
thing.  Not one of the jars has a version number.  Can this be changed?
Can
a 1.3 or 0.4 be added to the end of each of the jars so that everyone
can
know which version their system is loading?

Just my $0.02.  I am trying to get everyone at my company to make sure
everything
is numbered, so I thought I'd throw my opinion around at everyone else.
:)

Big fan of the product, thanks for all the years of great work.


Charlie


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




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



RE: Trouble with Tomcat5, SSI and crossContext

2004-03-01 Thread Kannan Sundararajan
To unsubscribe, e-mail: [EMAIL PROTECTED]

-Original Message-
From: Tarik El Berrak [mailto:[EMAIL PROTECTED]
Sent: Monday, March 01, 2004 11:41 AM
To: Tomcat Users List
Subject: Re: Trouble with Tomcat5, SSI and crossContext


hi
excuse me, can you tell me how to unsubscribe from the mailing list.
thankx a lot


- Original Message - 
From: Ted Gittinger [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, March 01, 2004 5:29 PM
Subject: Trouble with Tomcat5, SSI and crossContext


 jakarta-tomcat-5.0.18
 Windows 2000

 I cannot get SSI (server side includes) to work from one context to
 another.  I CAN get it to work from one context to the ROOT context but
 not anywhere else.

 I have an index.html file with the following virtual include:

 !--#include virtual=/zinc/bdyhdr4.txt --

 index.html is located in 'stx.war' deployed under webapps.  zinc is a
 separate context under webapps and contains bdyhdr4.txt.

 webapps
  |
  |
  ROOT
  |
  |
  stx
|
| index.html
  |
  |
  zinc
|
| bdyhdr4.txt

 I have enabled the SSI servlet, set 'isVirtualWebappRelative' to 0, and
 changed the crossContext=true in both the stx.xml and zinc.xml files
 located in C:\Program Files\Apache Software Foundation\Tomcat
 5.0\conf\Catalina\localhost.

 When viewing 'index.html', an error message an error occurred while
 processing this directive appears where the text from the #include
 should be.  The Tomcat log file shows:

 StandardContext[/stx]ssi:
 SSIServletExternalResolver.getServletContextAndPath( /zinc/bdyhdr4.txt,
 true)
 StandardContext[/stx]ssi: #include--Couldn't include file:
/zinc/bdyhdr4.txt
 java.io.IOException: Couldn't find file: /bdyhdr4.txt
  at

org.apache.catalina.ssi.SSIServletExternalResolver.getFileText(SSIServletExt
ernalResolver.java:420)
  at
 org.apache.catalina.ssi.SSIMediator.getFileText(SSIMediator.java:190)



 Here's the strange part.  If I copy the bdyhdr4.txt file to the ROOT
 context, the include works.  It seems as if Tomcat is resolving the
 context to 'ROOT' instead of 'zinc'.  I did add a connector so that port
 80 is used in addition to port 8080.

 Connector port=80 maxThreads=150 minSpareThreads=25
 maxSpareThreads=75
 enableLookups=false redirectPort=8443
acceptCount=100
 debug=0 connectionTimeout=2
 disableUploadTimeout=true /

 Any ideas?  I've tried creating a 'zinc' subdirectory in 'ROOT' and
 eliminating the 'zinc' context under webapps.  I've tried adding a zinc
 subdirectory in 'jsp-examples' and changing the code to !--#include
 virtual=/jsp-examples/bdyhdr4.txt -- to see if crossContext is working.

 Thanks!







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



serving binary files

2004-03-01 Thread Vladimer Shioshvili


Does anyone have a suggestion on how to server binary files through tomcat? 
I am creating a binary file as a result of a request and would like to let 
the user download it. Just setting mime type and passing through as an 
attachment doesn't work as write methods of the writer seem to truncate 
upper bits of the data.

Any useful suggestion would be greatly appreciated.

Thanks,
Vlad
___
Vladimer Shioshvili
QRC Division of Macro International Inc.
7315 Wisconsin Avenue, Suite 400W
Bethesda, MD 20814
Phone: (301) 657 3077 ext. 155 

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


Simple instructions

2004-03-01 Thread Michael Forster
I am trying to learn how everything slots together with Jakarta and other
things (like openejb etc)

has anyone seen or could help put together the Dummys guide to Installing
Configuring and Understanding Tomcat

Some headers that could be used are

What is in the server.xml file

How do I set up the server to also serve html pages

What files are needed for JNDI? JDBC?

What is the bare minimum set of files needed to get tomcat running?

Secrets of the WEB-INF dir.

Mike.

-BEGIN GEEK CODE BLOCK-
Version: 3.12
GCM d- s:+ a C UL P+ L+++ E--- W+++ N+++ o+ K w
O-- M- V- PS+ PE+ Y+ PGP t+++ 5+++ X- R+++ tv++ h++ DI D++
G e+ h++ r+++ y+++
--END GEEK CODE BLOCK--
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.600 / Virus Database: 381 - Release Date: 28/02/2004


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



Re: jar versions

2004-03-01 Thread Charles N. Harvey III
Didn't realize it was such a heated subject.  Thanks for the reference,
it made some good sense.  I'm definately not the type to want to start
an argument, so I can live with it as is.
Thanks again.

Charlie



Shapira, Yoav wrote:

Howdy,
Please let's not start another flamewar on this topic of eternal debate,
this mailing list is voluminous enough as it is.  There are pros and
cons to each side, and many debates have taken place on this and other
list on this topic.  Suffice it to say it's a choice the developers
make.  For example see
http://marc.theaimsgroup.com/?t=10243459103r=1w=2.
Yoav Shapira
Millennium ChemInformatics
 

-Original Message-
From: Charles N. Harvey III [mailto:[EMAIL PROTECTED]
Sent: Monday, March 01, 2004 11:27 AM
To: Tomcat Users List
Subject: jar versions
I have one little thing that sometimes drives me crazy about most
   

products
 

that I download off of the internet - jar versions.  There aren't any.
   

Its
 

not just Tomcat, its Sun.  How come the j2ee.jar never has a version?
   

Does
 

that bother anyone else?

This never really bothered me that much before, because I was still a
beginner
and which version I was using never really came into play.  But now
   

that I
 

try to keep up on the latest versions of freely available classes the
version
numbers matter.  And, with the advent of Maven, it becomes slightly
annoying
to change my project.xml file because the jar does not have a version,
   

or
 

to
rename my jars and add in a number.
Recently I had issues with my classloader because there were jars in
   

there
 

that I could not override.  What made it really difficult was finding
   

out
 

which version was used.  But the /tomcat/common/lib/ directory does the
same
thing.  Not one of the jars has a version number.  Can this be changed?
Can
a 1.3 or 0.4 be added to the end of each of the jars so that everyone
   

can
 

know which version their system is loading?

Just my $0.02.  I am trying to get everyone at my company to make sure
everything
is numbered, so I thought I'd throw my opinion around at everyone else.
   

:)
 

Big fan of the product, thanks for all the years of great work.

Charlie

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





This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged.  This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender.  Thank you.

-
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: serving binary files

2004-03-01 Thread Shapira, Yoav

Howdy,

Does anyone have a suggestion on how to server binary files through
tomcat?
I am creating a binary file as a result of a request and would like to
let
the user download it. Just setting mime type and passing through as an
attachment doesn't work as write methods of the writer seem to truncate
upper bits of the data.

This is not specific to tomcat, it's basic servlet writing.  If you're
outputting binary data, don't use the writer obtained from
HttpServletResponse#getWriter.  Instead, use the output stream obtained
from HttpServletResponse#getOutputStream.  Then setting the mime type
will be sufficient.

Any useful suggestion would be greatly appreciated.

And useless suggestions? ;)

Yoav Shapira



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



Re: Simple instructions

2004-03-01 Thread Tarik El Berrak
hi
excuse me, can you tell me can i unsubscribe from this mailig list
thanks a lot
- Original Message - 
From: Michael Forster [EMAIL PROTECTED]
To: Tomcat-User [EMAIL PROTECTED]
Sent: Monday, March 01, 2004 5:39 PM
Subject: Simple instructions


 I am trying to learn how everything slots together with Jakarta and other
 things (like openejb etc)

 has anyone seen or could help put together the Dummys guide to Installing
 Configuring and Understanding Tomcat

 Some headers that could be used are

 What is in the server.xml file

 How do I set up the server to also serve html pages

 What files are needed for JNDI? JDBC?

 What is the bare minimum set of files needed to get tomcat running?

 Secrets of the WEB-INF dir.

 Mike.

 -BEGIN GEEK CODE BLOCK-
 Version: 3.12
 GCM d- s:+ a C UL P+ L+++ E--- W+++ N+++ o+ K w
 O-- M- V- PS+ PE+ Y+ PGP t+++ 5+++ X- R+++ tv++ h++ DI D++
 G e+ h++ r+++ y+++
 --END GEEK CODE BLOCK--
 ---
 Outgoing mail is certified Virus Free.
 Checked by AVG anti-virus system (http://www.grisoft.com).
 Version: 6.0.600 / Virus Database: 381 - Release Date: 28/02/2004


 -
 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: jar versions

2004-03-01 Thread Tarik El Berrak
hi
excuse me, can you tell me can i unsubscribe from this mailig list
thanks a lot
- Original Message - 
From: Charles N. Harvey III [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, March 01, 2004 5:42 PM
Subject: Re: jar versions


 Didn't realize it was such a heated subject.  Thanks for the reference,
 it made some good sense.  I'm definately not the type to want to start
 an argument, so I can live with it as is.

 Thanks again.


 Charlie



 Shapira, Yoav wrote:

 Howdy,
 Please let's not start another flamewar on this topic of eternal debate,
 this mailing list is voluminous enough as it is.  There are pros and
 cons to each side, and many debates have taken place on this and other
 list on this topic.  Suffice it to say it's a choice the developers
 make.  For example see
 http://marc.theaimsgroup.com/?t=10243459103r=1w=2.
 
 Yoav Shapira
 Millennium ChemInformatics
 
 
 
 
 -Original Message-
 From: Charles N. Harvey III [mailto:[EMAIL PROTECTED]
 Sent: Monday, March 01, 2004 11:27 AM
 To: Tomcat Users List
 Subject: jar versions
 
 I have one little thing that sometimes drives me crazy about most
 
 
 products
 
 
 that I download off of the internet - jar versions.  There aren't any.
 
 
 Its
 
 
 not just Tomcat, its Sun.  How come the j2ee.jar never has a version?
 
 
 Does
 
 
 that bother anyone else?
 
 This never really bothered me that much before, because I was still a
 beginner
 and which version I was using never really came into play.  But now
 
 
 that I
 
 
 try to keep up on the latest versions of freely available classes the
 version
 numbers matter.  And, with the advent of Maven, it becomes slightly
 annoying
 to change my project.xml file because the jar does not have a version,
 
 
 or
 
 
 to
 rename my jars and add in a number.
 
 Recently I had issues with my classloader because there were jars in
 
 
 there
 
 
 that I could not override.  What made it really difficult was finding
 
 
 out
 
 
 which version was used.  But the /tomcat/common/lib/ directory does the
 same
 thing.  Not one of the jars has a version number.  Can this be changed?
 Can
 a 1.3 or 0.4 be added to the end of each of the jars so that everyone
 
 
 can
 
 
 know which version their system is loading?
 
 Just my $0.02.  I am trying to get everyone at my company to make sure
 everything
 is numbered, so I thought I'd throw my opinion around at everyone else.
 
 
 :)
 
 
 Big fan of the product, thanks for all the years of great work.
 
 
 Charlie
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 
 
 This e-mail, including any attachments, is a confidential business
communication, and may contain information that is confidential, proprietary
and/or privileged.  This e-mail is intended only for the individual(s) to
whom it is addressed, and may not be saved, copied, printed, disclosed or
used by anyone else.  If you are not the(an) intended recipient, please
immediately delete this e-mail from your computer system and notify the
sender.  Thank you.
 
 
 -
 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: serving binary files

2004-03-01 Thread Tarik El Berrak
hi
excuse me, can you tell me can i unsubscribe from this mailig list
thanks a lot
- Original Message - 
From: Shapira, Yoav [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, March 01, 2004 5:43 PM
Subject: RE: serving binary files



Howdy,

Does anyone have a suggestion on how to server binary files through
tomcat?
I am creating a binary file as a result of a request and would like to
let
the user download it. Just setting mime type and passing through as an
attachment doesn't work as write methods of the writer seem to truncate
upper bits of the data.

This is not specific to tomcat, it's basic servlet writing.  If you're
outputting binary data, don't use the writer obtained from
HttpServletResponse#getWriter.  Instead, use the output stream obtained
from HttpServletResponse#getOutputStream.  Then setting the mime type
will be sufficient.

Any useful suggestion would be greatly appreciated.

And useless suggestions? ;)

Yoav Shapira



This e-mail, including any attachments, is a confidential business
communication, and may contain information that is confidential, proprietary
and/or privileged.  This e-mail is intended only for the individual(s) to
whom it is addressed, and may not be saved, copied, printed, disclosed or
used by anyone else.  If you are not the(an) intended recipient, please
immediately delete this e-mail from your computer system and notify the
sender.  Thank you.


-
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: Simple instructions

2004-03-01 Thread Vladimer Shioshvili
scroll down and find the email address for unsubscribing...

At 12:02 PM 3/1/2004, you wrote:
hi
excuse me, can you tell me can i unsubscribe from this mailig list
thanks a lot
- Original Message -
From: Michael Forster [EMAIL PROTECTED]
To: Tomcat-User [EMAIL PROTECTED]
Sent: Monday, March 01, 2004 5:39 PM
Subject: Simple instructions
 I am trying to learn how everything slots together with Jakarta and other
 things (like openejb etc)

 has anyone seen or could help put together the Dummys guide to Installing
 Configuring and Understanding Tomcat

 Some headers that could be used are

 What is in the server.xml file

 How do I set up the server to also serve html pages

 What files are needed for JNDI? JDBC?

 What is the bare minimum set of files needed to get tomcat running?

 Secrets of the WEB-INF dir.

 Mike.

 -BEGIN GEEK CODE BLOCK-
 Version: 3.12
 GCM d- s:+ a C UL P+ L+++ E--- W+++ N+++ o+ K w
 O-- M- V- PS+ PE+ Y+ PGP t+++ 5+++ X- R+++ tv++ h++ DI D++
 G e+ h++ r+++ y+++
 --END GEEK CODE BLOCK--
 ---
 Outgoing mail is certified Virus Free.
 Checked by AVG anti-virus system (http://www.grisoft.com).
 Version: 6.0.600 / Virus Database: 381 - Release Date: 28/02/2004


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

Vladimer Shioshvili
QRC Division of Macro International Inc.
7315 Wisconsin Avenue, Suite 400W
Bethesda, MD 20814
Phone: (301) 657 3077 ext. 155 

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


Syntax Question

2004-03-01 Thread Jack Lauman
I want to add a variable to the web.xml file and be able to call in
from within a servlet, taglib or bean.

In a JSP 2.0 page using JSTL 1.1 I can use:

%=application.getInitParameter(variable_name)%

Can this be done?  If so, what's the correct syntax to do it.

Thanks,

Jack


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



Re: Tomcat users

2004-03-01 Thread Nathan Gross
Simple. It's a cell-phone! Why, can't run Tomcat on a cell phone? Shucks.
-nat
ps. Is top-posting ok/preferred on this forum?
Kannan Sundararajan wrote:

What are you talking about Nat? 

Yoav Shapira, clearly mentioned about it. It all depends on the hardware, OS
etc, which you are trying to run. 

-Original Message-
From: Nathan Gross [mailto:[EMAIL PROTECTED]
Sent: Monday, March 01, 2004 11:17 AM
To: Tomcat Users List
Subject: Re: Tomcat users


Shapira, Yoav wrote:

 

Howdy,



   

I would like to know how many users can access Tomcat 5.0.19 per
  

 

second.

   

i.e I need to know the hit ratio.  Can some one help me please?
  

 

1 zillion jillion.  Or zero.  Depends on if you use the
-XaTonOfUsers=true java runtime option.
Just kidding, of course: it depends on your webapp, your hardware, and
many configuration parameters.
Yoav Shapira

   

Nah. What good is it. MY appserver supports -1000 (MINUS 1000) users! 
Tomcat only from zero users?
Oh. Forgot to mention that when my server hits minus 10 users, it cant 
handle the load
-nat

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


 



Clustering Tomcat 5.0.19

2004-03-01 Thread Duma Rolando
Hi all, I have a problem running Tomcat 5.0.19 on HP Itanium with JRockit
1.4.2.
If I comment out the Cluster  ReplicationValve from server.xml as mentioned
in the docs, leaving the default attribute values my catalina.out shows the
following exception:


GRAVE: Unable to start cluster.
java.lang.NullPointerException
at
org.apache.commons.beanutils.MethodUtils.invokeMethod(Ljava.lang.Object;Ljav
a.lang.String;[Ljava.lang.Object;)Ljava.lang.Object;(MethodUtils.java:196)
at
org.apache.commons.beanutils.MethodUtils.invokeMethod(Ljava.lang.Object;Ljav
a.lang.String;Ljava.lang.Object;)Ljava.lang.Object;(MethodUtils.java:150)
at
org.apache.catalina.cluster.tcp.SimpleTcpCluster.start()V(SimpleTcpCluster.j
ava:413)
at
org.apache.catalina.core.ContainerBase.start()V(ContainerBase.java:1116)
at
org.apache.catalina.core.StandardHost.start()V(StandardHost.java:832)
at
org.apache.catalina.core.ContainerBase.start()V(ContainerBase.java:1126)
at
org.apache.catalina.core.StandardEngine.start()V(StandardEngine.java:521)
at
org.apache.catalina.core.StandardService.start()V(StandardService.java:519)
at
org.apache.catalina.core.StandardServer.start()V(StandardServer.java:2345)
at org.apache.catalina.startup.Catalina.start()V(Catalina.java:594)
at
jrockit.reflect.NativeMethodInvoker.invoke0(Ljava.lang.Object;JLjava.lang.Ob
ject;[Ljava.lang.Object;)Ljava.lang.Object;(Unknown Source)
at
jrockit.reflect.NativeMethodInvoker.invoke(Ljava.lang.Object;[Ljava.lang.Obj
ect;)Ljava.lang.Object;(Unknown Source)
at
jrockit.reflect.VirtualNativeMethodInvoker.invoke(Ljava.lang.Object;[Ljava.l
ang.Object;)Ljava.lang.Object;(Unknown Source)
at
java.lang.reflect.Method.invoke(Ljava.lang.Object;[Ljava.lang.Object;J)Ljava
.lang.Object;(Unknown Source)
at
org.apache.catalina.startup.Bootstrap.start()V(Bootstrap.java:297)
at
org.apache.catalina.startup.Bootstrap.main([Ljava.lang.String;)V(Bootstrap.j
ava:398)
1-mar-2004 17.30.07 org.apache.catalina.startup.Catalina start
GRAVE: Catalina.start:
LifecycleException:  java.lang.NullPointerException
at
org.apache.catalina.cluster.tcp.SimpleTcpCluster.start()V(SimpleTcpCluster.j
ava:424)
at
org.apache.catalina.core.ContainerBase.start()V(ContainerBase.java:1116)
at
org.apache.catalina.core.StandardHost.start()V(StandardHost.java:832)
at
org.apache.catalina.core.ContainerBase.start()V(ContainerBase.java:1126)
at
org.apache.catalina.core.StandardEngine.start()V(StandardEngine.java:521)
at
org.apache.catalina.core.StandardService.start()V(StandardService.java:519)
at
org.apache.catalina.core.StandardServer.start()V(StandardServer.java:2345)

Can anyone help me?
Thanks in advance.


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



digester MissingResourceException

2004-03-01 Thread Erik Price
Hi,

I'm running into a problem trying to start Tomcat 4.1.30 on my
development
machine (Win2000).  I've downloaded and extracted the Tomcat 4.1.30
zip,
placed it at C:\jakarta-tomcat-4.1.30, and set %CATALINA_HOME% to this
directory.  When I try to start Tomcat from either a DOS prompt using
catalina run or from a Cygwin prompt using catalina.sh run, I get
the
same errors.  I've searched both the Tomcat-User archive and Google and
can't
seem to find a solution to this (and adding
$CATALINA_HOME/server/lib/tomcat-coyote.jar to my CLASSPATH doesn't
seem to
help.

Can anyone suggest what I might have missed or should do to avoid the
exception (stacktrace below)?

Thanks,

Erik




$ ./catalina.sh run
Using CATALINA_BASE:   c:\jakarta-tomcat-4.1.30
Using CATALINA_HOME:   c:\jakarta-tomcat-4.1.30
Using CATALINA_TMPDIR: c:\jakarta-tomcat-4.1.30\temp
Using JAVA_HOME:   c:\ibm_dev\tools\jdk\1.3.0_02
[ERROR] Digester - -Begin event threw exception
java.util.MissingResourceException: Can't find bund
le for base name org.apache.coyote.tomcat4.LocalStrings, locale
en_USjava.util.MissingResourceExcep
tion: Can't find bundle for base name
org.apache.coyote.tomcat4.LocalStrings, locale en_US
at
java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:707)
at
java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:670)
at java.util.ResourceBundle.getBundle(ResourceBundle.java:546)
at
org.apache.catalina.util.StringManager.init(StringManager.java:115)
at
org.apache.catalina.util.StringManager.getManager(StringManager.java:260)
at
org.apache.coyote.tomcat4.CoyoteConnector.init(CoyoteConnector.java:274)
at java.lang.Class.newInstance0(Native Method)
at java.lang.Class.newInstance(Class.java:237)
at
org.apache.commons.digester.ObjectCreateRule.begin(ObjectCreateRule.java:253)
at org.apache.commons.digester.Rule.begin(Rule.java:200)
at
org.apache.commons.digester.Digester.startElement(Digester.java:1273)
at
org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown
Source)
at
org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknown
Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown
Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(
Unknown Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
Source)
at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown
Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown
Source)
at
org.apache.commons.digester.Digester.parse(Digester.java:1548)
at
org.apache.catalina.startup.Catalina.start(Catalina.java:449)
at
org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
at
org.apache.catalina.startup.Catalina.process(Catalina.java:180)
at java.lang.reflect.Method.invoke(Native Method)
at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)

Catalina.start: java.util.MissingResourceException: Can't find bundle
for base name org.apache.coyot
e.tomcat4.LocalStrings, locale en_US
java.util.MissingResourceException: Can't find bundle for base name
org.apache.coyote.tomcat4.LocalS
trings, locale en_US
at
org.apache.commons.digester.Digester.createSAXException(Digester.java:2540)
at
org.apache.commons.digester.Digester.createSAXException(Digester.java:2566)
at
org.apache.commons.digester.Digester.startElement(Digester.java:1276)
at
org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown
Source)
at
org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknown
Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown
Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(
Unknown Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
Source)
at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown
Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown
Source)
at
org.apache.commons.digester.Digester.parse(Digester.java:1548)
at
org.apache.catalina.startup.Catalina.start(Catalina.java:449)
at
org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
at
org.apache.catalina.startup.Catalina.process(Catalina.java:180)
at java.lang.reflect.Method.invoke(Native Method)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)


RE: serving binary files

2004-03-01 Thread Vladimer Shioshvili
That worked.. Thanks a lot Yoav..

PS now accepting useless suggestions :)

At 11:43 AM 3/1/2004, you wrote:

Howdy,

Does anyone have a suggestion on how to server binary files through
tomcat?
I am creating a binary file as a result of a request and would like to
let
the user download it. Just setting mime type and passing through as an
attachment doesn't work as write methods of the writer seem to truncate
upper bits of the data.
This is not specific to tomcat, it's basic servlet writing.  If you're
outputting binary data, don't use the writer obtained from
HttpServletResponse#getWriter.  Instead, use the output stream obtained
from HttpServletResponse#getOutputStream.  Then setting the mime type
will be sufficient.
Any useful suggestion would be greatly appreciated.

And useless suggestions? ;)

Yoav Shapira



This e-mail, including any attachments, is a confidential business 
communication, and may contain information that is confidential, 
proprietary and/or privileged.  This e-mail is intended only for the 
individual(s) to whom it is addressed, and may not be saved, copied, 
printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your 
computer system and notify the sender.  Thank you.

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

Vladimer Shioshvili
QRC Division of Macro International Inc.
7315 Wisconsin Avenue, Suite 400W
Bethesda, MD 20814
Phone: (301) 657 3077 ext. 155 

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


RE: how can i get a servlet instance from ServletPool

2004-03-01 Thread Edson Alves Pereira
I have one servlet that make a SQL query and as result build a HTML
table to display in user´s browser, i´d like to create a report servlet to
use servlets like my query-servlet to print ( in our project report-servlets
are a little different from our query-servlets ). Then i created this
report-servlet and i was willing to use query-servlet´s methods to reuse its
features. To solve that problem i implemented a static method in
query-servlet to enable report-servlet to use query-servlet´s ResultSet,
basically a build a static method to make two servlets share the same
functionalities, is this right?


 --
 De:   Shapira, Yoav[SMTP:[EMAIL PROTECTED]
 Responder:Tomcat Users List
 Enviada:  segunda-feira, 1 de março de 2004 11:08
 Para: Tomcat Users List
 Assunto:  RE: how can i get a servlet instance from ServletPool
 
 
 Howdy,
 
  Hello dudes, is there a way to get a servlet instance from Tomcat´s
 pool?Is there a replacement to getServletContext( ).getServlet(
 )?
 
 As always, there's a way.  But is it portable/reliable/advisable?  No, no,
 and no.  Was there a reason getServlet was deprecated?  Sure.  
 
 Why do you want to do this?
 
 Yoav Shapira
 
 
 
 This e-mail, including any attachments, is a confidential business
 communication, and may contain information that is confidential,
 proprietary and/or privileged.  This e-mail is intended only for the
 individual(s) to whom it is addressed, and may not be saved, copied,
 printed, disclosed or used by anyone else.  If you are not the(an)
 intended recipient, please immediately delete this e-mail from your
 computer system and notify the sender.  Thank you.
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


RE: how can i get a servlet instance from ServletPool

2004-03-01 Thread Mike Curwen
That sort of coding is probably not the way to go about solving this
particular problem (how to re-use all the work you've done in the other
servlet). 

But assuming you leave everything as is, the question I come up with
is: Why do you need an instance of a servlet, if the method you want to
call has been made static?

 -Original Message-
 From: Edson Alves Pereira [mailto:[EMAIL PROTECTED] 
 Sent: Monday, March 01, 2004 11:26 AM
 To: 'Tomcat Users List'
 Subject: RE: how can i get a servlet instance from ServletPool
 
 
   I have one servlet that make a SQL query and as result 
 build a HTML table to display in user´s browser, i´d like to 
 create a report servlet to use servlets like my query-servlet 
 to print ( in our project report-servlets are a little 
 different from our query-servlets ). Then i created this 
 report-servlet and i was willing to use query-servlet´s 
 methods to reuse its features. To solve that problem i 
 implemented a static method in query-servlet to enable 
 report-servlet to use query-servlet´s ResultSet, basically a 
 build a static method to make two servlets share the same 
 functionalities, is this right?
 
 
  --
  De: Shapira, Yoav[SMTP:[EMAIL PROTECTED]
  Responder:  Tomcat Users List
  Enviada:segunda-feira, 1 de março de 2004 11:08
  Para:   Tomcat Users List
  Assunto:RE: how can i get a servlet instance from ServletPool
  
  
  Howdy,
  
 Hello dudes, is there a way to get a servlet instance 
 from Tomcat´s
  pool?  Is there a replacement to getServletContext( 
 ).getServlet(
  )?
  
  As always, there's a way.  But is it 
 portable/reliable/advisable?  No, 
  no, and no.  Was there a reason getServlet was deprecated?  Sure.
  
  Why do you want to do this?
  
  Yoav Shapira
  
  
  
  This e-mail, including any attachments, is a confidential business 
  communication, and may contain information that is confidential, 
  proprietary and/or privileged.  This e-mail is intended only for the
  individual(s) to whom it is addressed, and may not be 
 saved, copied, 
  printed, disclosed or used by anyone else.  If you are not the(an) 
  intended recipient, please immediately delete this e-mail from your 
  computer system and notify the sender.  Thank you.
  
  
  
 -
  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 can i get a servlet instance from ServletPool

2004-03-01 Thread Edson Alves Pereira
No, i made it static `cause i couldn´t get servlet instance in
another servlet, that´s solved my problem, but i´d like to know if is this
the best way to solve problems like that?

 --
 De:   Mike Curwen[SMTP:[EMAIL PROTECTED]
 Responder:Tomcat Users List
 Enviada:  segunda-feira, 1 de março de 2004 14:34
 Para: 'Tomcat Users List'
 Assunto:  RE: how can i get a servlet instance from ServletPool
 
 That sort of coding is probably not the way to go about solving this
 particular problem (how to re-use all the work you've done in the other
 servlet). 
 
 But assuming you leave everything as is, the question I come up with
 is: Why do you need an instance of a servlet, if the method you want to
 call has been made static?
 
  -Original Message-
  From: Edson Alves Pereira [mailto:[EMAIL PROTECTED] 
  Sent: Monday, March 01, 2004 11:26 AM
  To: 'Tomcat Users List'
  Subject: RE: how can i get a servlet instance from ServletPool
  
  
  I have one servlet that make a SQL query and as result 
  build a HTML table to display in user´s browser, i´d like to 
  create a report servlet to use servlets like my query-servlet 
  to print ( in our project report-servlets are a little 
  different from our query-servlets ). Then i created this 
  report-servlet and i was willing to use query-servlet´s 
  methods to reuse its features. To solve that problem i 
  implemented a static method in query-servlet to enable 
  report-servlet to use query-servlet´s ResultSet, basically a 
  build a static method to make two servlets share the same 
  functionalities, is this right?
  
  
   --
   De:   Shapira, Yoav[SMTP:[EMAIL PROTECTED]
   Responder:Tomcat Users List
   Enviada:  segunda-feira, 1 de março de 2004 11:08
   Para: Tomcat Users List
   Assunto:  RE: how can i get a servlet instance from ServletPool
   
   
   Howdy,
   
Hello dudes, is there a way to get a servlet instance 
  from Tomcat´s
   pool?Is there a replacement to getServletContext( 
  ).getServlet(
   )?
   
   As always, there's a way.  But is it 
  portable/reliable/advisable?  No, 
   no, and no.  Was there a reason getServlet was deprecated?  Sure.
   
   Why do you want to do this?
   
   Yoav Shapira
   
   
   
   This e-mail, including any attachments, is a confidential business 
   communication, and may contain information that is confidential, 
   proprietary and/or privileged.  This e-mail is intended only for the
   individual(s) to whom it is addressed, and may not be 
  saved, copied, 
   printed, disclosed or used by anyone else.  If you are not the(an) 
   intended recipient, please immediately delete this e-mail from your 
   computer system and notify the sender.  Thank you.
   
   
   
  -
   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]
 


Running seperate apps with shared components - the best way forward

2004-03-01 Thread Andrew Waters
Hi,

We have a suite of applications that are all deployed under one 
context in Tomcat.  They are related applications, and share some common 
java code, the odd jpeg/gif, css files and (external) configuration 
files.  However, as running applications, they do not interact with each 
other in any way  no one application relies on the existence of any other.

My first thought was that these applications should have all been 
deployed under separate tomcat contexts, so that they could be deployed 
independently and using the application manager, could be brought up and 
down independently for maintenance and upgrades etc.  BUT as they do 
share non-java files as described above, is this the right approach? 
Should we leave things as they are or is there a better way to organise 
them as separate tomcat contexts??

Thanks for any pointers.

Andrew Waters.



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


RE: Running seperate apps with shared components - the best way forward

2004-03-01 Thread Shapira, Yoav

Howdy,
You can have a context for common static resources, or you could have
copies of these static resources with every webapp (on the assumption
that disk space is cheap and you're not working on some mobile/j2me
platform).  If you see a need in the future to independently
upgrade/restart/maintain the applications, then it's probably better to
do one of the above instead of putting them all in one tomcat context.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: news [mailto:[EMAIL PROTECTED] On Behalf Of Andrew Waters
Sent: Monday, March 01, 2004 12:54 PM
To: [EMAIL PROTECTED]
Subject: Running seperate apps with shared components - the best way
forward

Hi,

We have a 'suite' of applications that are all deployed under one
context in Tomcat.  They are related applications, and share some
common
java code, the odd jpeg/gif, css files and (external) configuration
files.  However, as running applications, they do not interact with
each
other in any way - no one application relies on the existence of any
other.

My first thought was that these applications should have all been
deployed under separate tomcat contexts, so that they could be deployed
independently and using the application manager, could be brought up
and
down independently for maintenance and upgrades etc.  BUT as they do
share non-java files as described above, is this the right approach?
Should we leave things as they are or is there a better way to organise
them as separate tomcat contexts??

Thanks for any pointers.

Andrew Waters.



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




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



RE: how can i get a servlet instance from ServletPool

2004-03-01 Thread Erik Price

--- Edson Alves Pereira [EMAIL PROTECTED] wrote:
   No, i made it static `cause i couldn´t get servlet instance in
 another servlet, that´s solved my problem, but i´d like to know if is
 this
 the best way to solve problems like that?

Doesn't it seem like you could refactor that functionality out into a
non-servlet Java class and then make use of that class from both
servlets?

I find it helpful to think of a servlet as little more than an event
handler for HTTP messages, and try to put all my real work into plain
old Java objects which are then utilized by servlets (or any other
place I need to use them).


Erik

__
Do you Yahoo!?
Get better spam protection with Yahoo! Mail.
http://antispam.yahoo.com/tools

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



Do servlet threads ever die?

2004-03-01 Thread Kenneth H. Cox
Problem: I call native code (Tcl) from my servlet.  Tcl's thread model 
forces me to run Tcl only on the thread that created the Tcl interpreter.  
So now how do I cleanup these interpreters?  The cleanup code needs to be 
run on the creating thread.

I am using Tomcat 5.

Do servlet threads ever die besides during shutdown?  If not, I may have 
no problem.

Can I register a listener to be invoked on the thread before it shuts 
down?  A Tomcat-specific answer is fine.

Suggestions very much appreciated.

Ken Cox

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


RE: Tomcat users

2004-03-01 Thread Kannan Sundararajan
That was not question posted on the initial thread. If you want to know
about yours please start a different thread, rather than deviating this
thread. 

Please try to read this again. 

The question posted by user was
Hello,
I would like to know how many users can access Tomcat 5.0.19 per second.
i.e I need to know the hit ratio.  Can some one help me please?
Thank you,
Best Regards,
Uma


-Original Message-
From: Nathan Gross [mailto:[EMAIL PROTECTED]
Sent: Monday, March 01, 2004 12:13 PM
To: Tomcat Users List
Subject: Re: Tomcat users


Simple. It's a cell-phone! Why, can't run Tomcat on a cell phone? Shucks.
-nat
ps. Is top-posting ok/preferred on this forum?

Kannan Sundararajan wrote:

What are you talking about Nat? 

Yoav Shapira, clearly mentioned about it. It all depends on the hardware,
OS
etc, which you are trying to run. 


-Original Message-
From: Nathan Gross [mailto:[EMAIL PROTECTED]
Sent: Monday, March 01, 2004 11:17 AM
To: Tomcat Users List
Subject: Re: Tomcat users




Shapira, Yoav wrote:

  

Howdy,

 



I would like to know how many users can access Tomcat 5.0.19 per
   

  

second.
 



i.e I need to know the hit ratio.  Can some one help me please?
   

  

1 zillion jillion.  Or zero.  Depends on if you use the
-XaTonOfUsers=true java runtime option.

Just kidding, of course: it depends on your webapp, your hardware, and
many configuration parameters.

Yoav Shapira
 



Nah. What good is it. MY appserver supports -1000 (MINUS 1000) users! 
Tomcat only from zero users?
Oh. Forgot to mention that when my server hits minus 10 users, it cant 
handle the load
-nat

-
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: Clustering Tomcat 5.0.19

2004-03-01 Thread Filip Hanik \(lists\)
works just fine for me.
The configuration file changed between version 0.16 and 0.19, so make sure
you have the 0.19 server.xml

Filip

-Original Message-
From: Duma Rolando [mailto:[EMAIL PROTECTED]
Sent: Monday, March 01, 2004 9:22 AM
To: [EMAIL PROTECTED]
Subject: Clustering Tomcat 5.0.19


Hi all, I have a problem running Tomcat 5.0.19 on HP Itanium with JRockit
1.4.2.
If I comment out the Cluster  ReplicationValve from server.xml as mentioned
in the docs, leaving the default attribute values my catalina.out shows the
following exception:


GRAVE: Unable to start cluster.
java.lang.NullPointerException
at
org.apache.commons.beanutils.MethodUtils.invokeMethod(Ljava.lang.Object;Ljav
a.lang.String;[Ljava.lang.Object;)Ljava.lang.Object;(MethodUtils.java:196)
at
org.apache.commons.beanutils.MethodUtils.invokeMethod(Ljava.lang.Object;Ljav
a.lang.String;Ljava.lang.Object;)Ljava.lang.Object;(MethodUtils.java:150)
at
org.apache.catalina.cluster.tcp.SimpleTcpCluster.start()V(SimpleTcpCluster.j
ava:413)
at
org.apache.catalina.core.ContainerBase.start()V(ContainerBase.java:1116)
at
org.apache.catalina.core.StandardHost.start()V(StandardHost.java:832)
at
org.apache.catalina.core.ContainerBase.start()V(ContainerBase.java:1126)
at
org.apache.catalina.core.StandardEngine.start()V(StandardEngine.java:521)
at
org.apache.catalina.core.StandardService.start()V(StandardService.java:519)
at
org.apache.catalina.core.StandardServer.start()V(StandardServer.java:2345)
at org.apache.catalina.startup.Catalina.start()V(Catalina.java:594)
at
jrockit.reflect.NativeMethodInvoker.invoke0(Ljava.lang.Object;JLjava.lang.Ob
ject;[Ljava.lang.Object;)Ljava.lang.Object;(Unknown Source)
at
jrockit.reflect.NativeMethodInvoker.invoke(Ljava.lang.Object;[Ljava.lang.Obj
ect;)Ljava.lang.Object;(Unknown Source)
at
jrockit.reflect.VirtualNativeMethodInvoker.invoke(Ljava.lang.Object;[Ljava.l
ang.Object;)Ljava.lang.Object;(Unknown Source)
at
java.lang.reflect.Method.invoke(Ljava.lang.Object;[Ljava.lang.Object;J)Ljava
.lang.Object;(Unknown Source)
at
org.apache.catalina.startup.Bootstrap.start()V(Bootstrap.java:297)
at
org.apache.catalina.startup.Bootstrap.main([Ljava.lang.String;)V(Bootstrap.j
ava:398)
1-mar-2004 17.30.07 org.apache.catalina.startup.Catalina start
GRAVE: Catalina.start:
LifecycleException:  java.lang.NullPointerException
at
org.apache.catalina.cluster.tcp.SimpleTcpCluster.start()V(SimpleTcpCluster.j
ava:424)
at
org.apache.catalina.core.ContainerBase.start()V(ContainerBase.java:1116)
at
org.apache.catalina.core.StandardHost.start()V(StandardHost.java:832)
at
org.apache.catalina.core.ContainerBase.start()V(ContainerBase.java:1126)
at
org.apache.catalina.core.StandardEngine.start()V(StandardEngine.java:521)
at
org.apache.catalina.core.StandardService.start()V(StandardService.java:519)
at
org.apache.catalina.core.StandardServer.start()V(StandardServer.java:2345)

Can anyone help me?
Thanks in advance.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.594 / Virus Database: 377 - Release Date: 2/24/2004

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.594 / Virus Database: 377 - Release Date: 2/24/2004


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



Difference found with jsp:include when migrating from 4.1.X to 5.0.18

2004-03-01 Thread Steve Burns
In our deployment we have hundreds of jsp files with static include statements,
like

!-- style 1 --
jsp:include page=SomeOtherJspFile.jsp flush=true
/jsp:include

Instead of shortening this to:

!-- style 2 --
jsp:include page=SomeOtherJspFile.jsp flush=true/

we decided in our jsp coding standard that the include should have a separate
closing tag in case a jsp:param .../ had to be added later on.

The jsp compiler chokes on these include statements using style 1 (see above)
with the error:

2004-02-17 16:46:12 ApplicationDispatcher[/deployment20040217a]
Servlet.service() for servlet jsp threw exception
org.apache.jasper.JasperException: /path/NameOfJsp.jsp(60,0) Expecting
jsp:param standard action with name and value attributes

Of course if the jsp is changed to use style 2 (see above), there is no error. 

We are very reluctant to change all of these jsps, since Weblogic and Websphere
and earlier versions of Tomcat had no problem with this syntax.  Can someone
point out why this syntax is no longer supported by Tomcat 5?


=

Steve Burns

__
Do you Yahoo!?
Get better spam protection with Yahoo! Mail.
http://antispam.yahoo.com/tools

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



Re: Running seperate apps with shared components - the best way forward

2004-03-01 Thread Josh Rehman
This would require pointing to static resources in the new static 
context in both applications, right? Or is there a way (or a reason) to 
have tomcat serve up those resources as appearing under the same context?

Shapira, Yoav wrote:
Howdy,
You can have a context for common static resources, or you could have
copies of these static resources with every webapp (on the assumption
that disk space is cheap and you're not working on some mobile/j2me
platform).  If you see a need in the future to independently
upgrade/restart/maintain the applications, then it's probably better to
do one of the above instead of putting them all in one tomcat context.
Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: news [mailto:[EMAIL PROTECTED] On Behalf Of Andrew Waters
Sent: Monday, March 01, 2004 12:54 PM
To: [EMAIL PROTECTED]
Subject: Running seperate apps with shared components - the best way
forward
Hi,

We have a 'suite' of applications that are all deployed under one
context in Tomcat.  They are related applications, and share some
common

java code, the odd jpeg/gif, css files and (external) configuration
files.  However, as running applications, they do not interact with
each

other in any way - no one application relies on the existence of any
other.

My first thought was that these applications should have all been
deployed under separate tomcat contexts, so that they could be deployed
independently and using the application manager, could be brought up
and

down independently for maintenance and upgrades etc.  BUT as they do
share non-java files as described above, is this the right approach?
Should we leave things as they are or is there a better way to organise
them as separate tomcat contexts??
Thanks for any pointers.

Andrew Waters.



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




This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged.  This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender.  Thank you.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
Josh Rehman
citysearch.com
213.739.3559
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Difference found with jsp:include when migrating from 4.1.X to 5.0.18

2004-03-01 Thread Shapira, Yoav

Hi,
I'll preface this by saying I'm not a JSP expert and don't use them
frequently, so I could be wrong.  That said, the JSP Specification v2.0
(which tomcat 5.x implements: tomcat 4.1.x implements the JSP
Specification v1.2), section JSP.5.4 (page 1-110), explains the
differences between the two styles and suggests that style 1 is not
valid (unless of course you have params inside the include element).

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Steve Burns [mailto:[EMAIL PROTECTED]
Sent: Monday, March 01, 2004 1:10 PM
To: [EMAIL PROTECTED]
Subject: Difference found with jsp:include when migrating from 4.1.X to
5.0.18

In our deployment we have hundreds of jsp files with static include
statements,
like

!-- style 1 --
jsp:include page=SomeOtherJspFile.jsp flush=true
/jsp:include

Instead of shortening this to:

!-- style 2 --
jsp:include page=SomeOtherJspFile.jsp flush=true/

we decided in our jsp coding standard that the include should have a
separate
closing tag in case a jsp:param .../ had to be added later on.

The jsp compiler chokes on these include statements using style 1 (see
above)
with the error:

2004-02-17 16:46:12 ApplicationDispatcher[/deployment20040217a]
Servlet.service() for servlet jsp threw exception
org.apache.jasper.JasperException: /path/NameOfJsp.jsp(60,0) Expecting
jsp:param standard action with name and value attributes

Of course if the jsp is changed to use style 2 (see above), there is no
error.

We are very reluctant to change all of these jsps, since Weblogic and
Websphere
and earlier versions of Tomcat had no problem with this syntax.  Can
someone
point out why this syntax is no longer supported by Tomcat 5?


=

Steve Burns

__
Do you Yahoo!?
Get better spam protection with Yahoo! Mail.
http://antispam.yahoo.com/tools

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




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



Re: Difference found with jsp:include when migrating from 4.1.X to 5.0.18

2004-03-01 Thread Tim Funk
Here's why: http://nagoya.apache.org/bugzilla/show_bug.cgi?id=25448

-Tim

Steve Burns wrote:

In our deployment we have hundreds of jsp files with static include statements,
like
!-- style 1 --
jsp:include page=SomeOtherJspFile.jsp flush=true
/jsp:include
Instead of shortening this to:

!-- style 2 --
jsp:include page=SomeOtherJspFile.jsp flush=true/
we decided in our jsp coding standard that the include should have a separate
closing tag in case a jsp:param .../ had to be added later on.
The jsp compiler chokes on these include statements using style 1 (see above)
with the error:
2004-02-17 16:46:12 ApplicationDispatcher[/deployment20040217a]
Servlet.service() for servlet jsp threw exception
org.apache.jasper.JasperException: /path/NameOfJsp.jsp(60,0) Expecting
jsp:param standard action with name and value attributes
Of course if the jsp is changed to use style 2 (see above), there is no error. 

We are very reluctant to change all of these jsps, since Weblogic and Websphere
and earlier versions of Tomcat had no problem with this syntax.  Can someone
point out why this syntax is no longer supported by Tomcat 5?


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


RE: how can i get a servlet instance from ServletPool

2004-03-01 Thread Edson Alves Pereira
Maybe i really should put those static methods in Java objects, in
that way will get easyer to share with other servlets. It´s plain to see,
you right.

 --
 De:   Erik Price[SMTP:[EMAIL PROTECTED]
 Responder:Tomcat Users List
 Enviada:  segunda-feira, 1 de março de 2004 14:54
 Para: Tomcat Users List
 Assunto:  RE: how can i get a servlet instance from ServletPool
 
 
 --- Edson Alves Pereira [EMAIL PROTECTED] wrote:
  No, i made it static `cause i couldn´t get servlet instance in
  another servlet, that´s solved my problem, but i´d like to know if is
  this
  the best way to solve problems like that?
 
 Doesn't it seem like you could refactor that functionality out into a
 non-servlet Java class and then make use of that class from both
 servlets?
 
 I find it helpful to think of a servlet as little more than an event
 handler for HTTP messages, and try to put all my real work into plain
 old Java objects which are then utilized by servlets (or any other
 place I need to use them).
 
 
 Erik
 
 __
 Do you Yahoo!?
 Get better spam protection with Yahoo! Mail.
 http://antispam.yahoo.com/tools
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


Tomcat5 MBeans/JMX context creation

2004-03-01 Thread Randy Watler
I am currently experimenting with the Java 1.5 remote JMX/MBeans for use 
in our build process. In particular, I am attempting to install a new 
context in a running Tomcat5.18 server using an external Ant 
task/application, (without using the manager webapp). I found code in 
the admin webapp to do this, but it does not seem to configure the 
WebappClassLoader instances associated with the context correctly. By 
examining the Tomcat5 source, I was able to find a workaround that seems 
to function correctly, but I would like to verify it with someone who 
knows how the MBean API is intended to be used.

Here is what the admin webapp is doing to install a new context:

ObjectName host = ... ;
String contextPath = /testsite ;
String webappDocBase = /tmp/testsite ;
String newContext = (String)
mbeanServer.invoke( factory, createStandardContext, 
new Object [] { host.toString(), /testsite,
/tmp/testsite },
new String [] { java.lang.String, java.lang.String,
java.lang.String } ) ;
mbeanServer.invoke( factory, createWebappLoader,
new Object [] { newContext },
new String [] { java.lang.String } ) ;
mbeanServer.invoke( factory, createStandardManager,
new Object [] { newContext },
new String [] { java.lang.String } ) ;

Accessing a JSP page or servlet in this new context results in trying to 
use an unstarted ClassLoader that results in a ThreadDeath exception. 
The following MBeans are created, (note the odd Catalina:type=Loader 
instance):

Catalina:type=Loader,path=/testsite,host=localhost
Catalina:type=NamingResources,resourcetype=Context,path=/testsite,host=local
host
Standalone:j2eeType=Servlet,name=CookiesDump,WebModule=//localhost/testsite,
J2EEApplication=none,J2EEServer=none
Standalone:j2eeType=Servlet,name=default,WebModule=//localhost/testsite,J2EE
Application=none,J2EEServer=none
Standalone:j2eeType=Servlet,name=jsp,WebModule=//localhost/testsite,J2EEAppl
ication=none,J2EEServer=none
Standalone:j2eeType=WebModule,name=//localhost/testsite,J2EEApplication=none
,J2EEServer=none
Standalone:type=Cache,host=localhost,path=/testsite
Standalone:type=Loader,path=/testsite,host=localhost
Standalone:type=Manager,path=/testsite,host=localhost

If the code above is modified to remove the call to 
createWebappLoader, the webapp is loaded correctly and the exported 
MBeans match what is available when the same webapp is loaded if 
deployed directly in the Tomcat5 webapps directory at startup:

Catalina:type=NamingResources,resourcetype=Context,path=/testsite,host=local
host
Standalone:j2eeType=Servlet,name=CookiesDump,WebModule=//localhost/testsite,
J2EEApplication=none,J2EEServer=none
Standalone:j2eeType=Servlet,name=default,WebModule=//localhost/testsite,J2EE
Application=none,J2EEServer=none
Standalone:j2eeType=Servlet,name=jsp,WebModule=//localhost/testsite,J2EEAppl
ication=none,J2EEServer=none
Standalone:j2eeType=WebModule,name=//localhost/testsite,J2EEApplication=none
,J2EEServer=none
Standalone:type=Cache,host=localhost,path=/testsite
Standalone:type=Loader,path=/testsite,host=localhost
Standalone:type=Manager,path=/testsite,host=localhost

It seems that the invocation of the createWebappLoader operation ends 
up creating an extra Loader instance somehow that confuses the 
ClassLoader configuration for the webapp context. I verified that the 
createStandardContext operation does indeed construct a Loader when 
start() is invoked on the context container. Apparently, either the 
createStandardContext is not supposed to create the Loader or the 
createWebappLoader operation should not be used in the admin webapp... 
then again, I might be missing something!

Can anyone clarify how the createStandardContext should be invoked?

Randy Watler
Finali Corporation



Re: Running seperate apps with shared components - the best way forward

2004-03-01 Thread Andrew Waters
Obviously solution really :-), doh!
Thanks Yoav.
Shapira, Yoav wrote:

Howdy,
You can have a context for common static resources, or you could have
copies of these static resources with every webapp (on the assumption
that disk space is cheap and you're not working on some mobile/j2me
platform).  If you see a need in the future to independently
upgrade/restart/maintain the applications, then it's probably better to
do one of the above instead of putting them all in one tomcat context.
Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: news [mailto:[EMAIL PROTECTED] On Behalf Of Andrew Waters
Sent: Monday, March 01, 2004 12:54 PM
To: [EMAIL PROTECTED]
Subject: Running seperate apps with shared components - the best way
forward
Hi,

We have a 'suite' of applications that are all deployed under one
context in Tomcat.  They are related applications, and share some
common

java code, the odd jpeg/gif, css files and (external) configuration
files.  However, as running applications, they do not interact with
each

other in any way - no one application relies on the existence of any
other.

My first thought was that these applications should have all been
deployed under separate tomcat contexts, so that they could be deployed
independently and using the application manager, could be brought up
and

down independently for maintenance and upgrades etc.  BUT as they do
share non-java files as described above, is this the right approach?
Should we leave things as they are or is there a better way to organise
them as separate tomcat contexts??
Thanks for any pointers.

Andrew Waters.



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




This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged.  This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender.  Thank you.


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


Re: Simple instructions

2004-03-01 Thread Rick Umali
Michael:

 I am trying to learn how everything slots together with Jakarta and other
 things (like openejb etc)
 
 has anyone seen or could help put together the Dummys guide to Installing
 Configuring and Understanding Tomcat

I'm on a similar learning curve, experimenting and playing with Tomcat
to learn about servlets and JSPs. I've had good luck with:

http://www.coreservlets.com/Apache-Tomcat-Tutorial/

The author is Marty Hall, who wrote Core Servlets and More Servlets
(both from Sun Microsystems Press/Prentice-Hall). What I like is that
his tutorial has just enough Tomcat config stuff so that you can be
productive working through simple examples. Combine his tutorial with the
Tomcat documentation, and you're on your way!

Rick Umali (http://www.myjavaserver.com/~rickumali/)

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



Securing SSL from IIS to Tomcat

2004-03-01 Thread John MccLain
Since IIS decrypts the request and passes it unencrypted to Tomcat, How do I
encrypt the request so that all communication from IIS with Tomcat is
secure???


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



Tomcat 4.1.29 JVM crash on RHEL-3-ES

2004-03-01 Thread Joe Miller
Hello,

I'm experiencing sporadic crashing of the JVM running Tomcat in 2 of my
environments.  These environments both run the same webapps, and they both
use JDK 1.4.2_03 on RHEL-3 ES.  Other environments where these same webapps
run are using JDK 1.4.1 and Redhat7.2, and are not experiencing these
crashes.

The crashes appear to happen at random times and hours.  Currently these
webapps are very lightly used, and most likely completely unused when the
crashes occur.

Has anyone experienced this with a similar setup?

My CATALINA_OPTS:
CATALINA_OPTS=-Xms2548m -Xmx2548m -server

All I see in Catalina.out is the following.  Messages preceding this VM dump
message are different each time.

#
# HotSpot Virtual Machine Error, Internal Error
# Please report this error at
# http://java.sun.com/cgi-bin/bugreport.cgi
#
# Java VM: Java HotSpot(TM) Server VM (1.4.2_03-b02 mixed mode)
#
# Error ID: 53484152454432554E54494D450E435050018D
#
# Problematic Thread: prio=1 tid=0x085062c8 nid=0x22c5 runnable
#

Heap at VM Abort:
Heap
 def new generation   total 260928K, used 132963K [0x0f7f, 0x2130,
0x2130)
  eden space 232000K,  53% used [0x0f7f, 0x170acf50, 0x1da8)
  to   space 28928K,   0% used [0x1f6c, 0x1f6c, 0x2130)
 tenured generation   total 2319296K, used 46617K [0x2130, 0xaebf,
0xaebf)
   the space 2319296K,   2% used [0x2130, 0x240865e8, 0x24086600,
0xaebf)
 compacting perm gen  total 26112K, used 26092K [0xaebf, 0xb057,
0xb2bf)
   the space 26112K,  99% used [0xaebf, 0xb056b260, 0xb056b400,
0xb057)



--
Joe Miller
Linux Administrator
GoDaddy.com
[EMAIL PROTECTED]



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



Re: serving binary files

2004-03-01 Thread Antonio Fiol Bonnín
Vladimer Shioshvili wrote:



Does anyone have a suggestion on how to server binary files through 
tomcat? I am creating a binary file as a result of a request and would 
like to let the user download it. Just setting mime type and passing 
through as an attachment doesn't work as write methods of the writer 
seem to truncate upper bits of the data.

Use the OutputStream instead of the Writer:

response.getOutputStream()

Antonio Fiol



smime.p7s
Description: S/MIME Cryptographic Signature


RE: Tomcat 4.1.29 JVM crash on RHEL-3-ES

2004-03-01 Thread Kannan Sundararajan
Did you load test these servers?

-Original Message-
From: Joe Miller [mailto:[EMAIL PROTECTED]
Sent: Monday, March 01, 2004 1:37 PM
To: [EMAIL PROTECTED]
Subject: Tomcat 4.1.29 JVM crash on RHEL-3-ES


Hello,

I'm experiencing sporadic crashing of the JVM running Tomcat in 2 of my
environments.  These environments both run the same webapps, and they both
use JDK 1.4.2_03 on RHEL-3 ES.  Other environments where these same webapps
run are using JDK 1.4.1 and Redhat7.2, and are not experiencing these
crashes.

The crashes appear to happen at random times and hours.  Currently these
webapps are very lightly used, and most likely completely unused when the
crashes occur.

Has anyone experienced this with a similar setup?

My CATALINA_OPTS:
CATALINA_OPTS=-Xms2548m -Xmx2548m -server

All I see in Catalina.out is the following.  Messages preceding this VM dump
message are different each time.

#
# HotSpot Virtual Machine Error, Internal Error
# Please report this error at
# http://java.sun.com/cgi-bin/bugreport.cgi
#
# Java VM: Java HotSpot(TM) Server VM (1.4.2_03-b02 mixed mode)
#
# Error ID: 53484152454432554E54494D450E435050018D
#
# Problematic Thread: prio=1 tid=0x085062c8 nid=0x22c5 runnable
#

Heap at VM Abort:
Heap
 def new generation   total 260928K, used 132963K [0x0f7f, 0x2130,
0x2130)
  eden space 232000K,  53% used [0x0f7f, 0x170acf50, 0x1da8)
  to   space 28928K,   0% used [0x1f6c, 0x1f6c, 0x2130)
 tenured generation   total 2319296K, used 46617K [0x2130, 0xaebf,
0xaebf)
   the space 2319296K,   2% used [0x2130, 0x240865e8, 0x24086600,
0xaebf)
 compacting perm gen  total 26112K, used 26092K [0xaebf, 0xb057,
0xb2bf)
   the space 26112K,  99% used [0xaebf, 0xb056b260, 0xb056b400,
0xb057)



--
Joe Miller
Linux Administrator
GoDaddy.com
[EMAIL PROTECTED]



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

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



Re: Tomcat5 MBeans/JMX context creation

2004-03-01 Thread Remy Maucherat
Randy Watler wrote:
I am currently experimenting with the Java 1.5 remote JMX/MBeans for use 
in our build process. In particular, I am attempting to install a new 
context in a running Tomcat5.18 server using an external Ant 
task/application, (without using the manager webapp). I found code in 
the admin webapp to do this, but it does not seem to configure the 
WebappClassLoader instances associated with the context correctly. By 
examining the Tomcat5 source, I was able to find a workaround that seems 
to function correctly, but I would like to verify it with someone who 
knows how the MBean API is intended to be used.

Here is what the admin webapp is doing to install a new context:

ObjectName host = ... ;
String contextPath = /testsite ;
String webappDocBase = /tmp/testsite ;
String newContext = (String)
mbeanServer.invoke( factory, createStandardContext, 
new Object [] { host.toString(), /testsite,
/tmp/testsite },
new String [] { java.lang.String, java.lang.String,
java.lang.String } ) ;
mbeanServer.invoke( factory, createWebappLoader,
new Object [] { newContext },
new String [] { java.lang.String } ) ;
mbeanServer.invoke( factory, createStandardManager,
new Object [] { newContext },
new String [] { java.lang.String } ) ;

Accessing a JSP page or servlet in this new context results in trying to 
use an unstarted ClassLoader that results in a ThreadDeath exception. 
The following MBeans are created, (note the odd Catalina:type=Loader 
instance):

Catalina:type=Loader,path=/testsite,host=localhost
Catalina:type=NamingResources,resourcetype=Context,path=/testsite,host=local
host
Standalone:j2eeType=Servlet,name=CookiesDump,WebModule=//localhost/testsite,
J2EEApplication=none,J2EEServer=none
Standalone:j2eeType=Servlet,name=default,WebModule=//localhost/testsite,J2EE
Application=none,J2EEServer=none
Standalone:j2eeType=Servlet,name=jsp,WebModule=//localhost/testsite,J2EEAppl
ication=none,J2EEServer=none
Standalone:j2eeType=WebModule,name=//localhost/testsite,J2EEApplication=none
,J2EEServer=none
Standalone:type=Cache,host=localhost,path=/testsite
Standalone:type=Loader,path=/testsite,host=localhost
Standalone:type=Manager,path=/testsite,host=localhost
If the code above is modified to remove the call to 
createWebappLoader, the webapp is loaded correctly and the exported 
MBeans match what is available when the same webapp is loaded if 
deployed directly in the Tomcat5 webapps directory at startup:

Catalina:type=NamingResources,resourcetype=Context,path=/testsite,host=local
host
Standalone:j2eeType=Servlet,name=CookiesDump,WebModule=//localhost/testsite,
J2EEApplication=none,J2EEServer=none
Standalone:j2eeType=Servlet,name=default,WebModule=//localhost/testsite,J2EE
Application=none,J2EEServer=none
Standalone:j2eeType=Servlet,name=jsp,WebModule=//localhost/testsite,J2EEAppl
ication=none,J2EEServer=none
Standalone:j2eeType=WebModule,name=//localhost/testsite,J2EEApplication=none
,J2EEServer=none
Standalone:type=Cache,host=localhost,path=/testsite
Standalone:type=Loader,path=/testsite,host=localhost
Standalone:type=Manager,path=/testsite,host=localhost
It seems that the invocation of the createWebappLoader operation ends 
up creating an extra Loader instance somehow that confuses the 
ClassLoader configuration for the webapp context. I verified that the 
createStandardContext operation does indeed construct a Loader when 
start() is invoked on the context container. Apparently, either the 
createStandardContext is not supposed to create the Loader or the 
createWebappLoader operation should not be used in the admin webapp... 
then again, I might be missing something!

Can anyone clarify how the createStandardContext should be invoked?
You can look at the JBoss integration code for examples.

Part of the code:

  String objectNameS = config.getCatalinaDomain()
  + :j2eeType=WebModule,name=// +
 ((hostName == null) ? localhost : hostName)
  + ctxPath + ,J2EEApplication=none,J2EEServer=none;
  ObjectName objectName = new ObjectName(objectNameS);

  server.createMBean(org.apache.commons.modeler.BaseModelMBean,
 objectName, new Object[]{config.getContextClassName()},
 new String[]{java.lang.String});
  server.setAttribute(objectName, new Attribute(docBase, 
url.getFile()));

  server.setAttribute(objectName, new Attribute
 (defaultWebXml, web.xml));
  if (config.isUseJBossWebLoader())
  {
 WebCtxLoader webLoader = new WebCtxLoader(loader);
 webLoader.setWarURL(url);
 server.setAttribute(objectName, new Attribute
(loader, webLoader));
  }
  else
  {
 server.setAttribute(objectName, new Attribute
(parentClassLoader, loader));
  }
  server.setAttribute(objectName, new Attribute
 (delegate, new 

Re: Do servlet threads ever die?

2004-03-01 Thread Antonio Fiol Bonnn
Hi,

Threads may die... depending on your config.

You can use the Servlet#destroy() method. (Not Tomcat-specific)

Yours,

Antonio Fiol

Kenneth H. Cox wrote:

Problem: I call native code (Tcl) from my servlet.  Tcl's thread model 
forces me to run Tcl only on the thread that created the Tcl 
interpreter.  So now how do I cleanup these interpreters?  The cleanup 
code needs to be run on the creating thread.

I am using Tomcat 5.

Do servlet threads ever die besides during shutdown?  If not, I may 
have no problem.

Can I register a listener to be invoked on the thread before it shuts 
down?  A Tomcat-specific answer is fine.

Suggestions very much appreciated.

Ken Cox

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




smime.p7s
Description: S/MIME Cryptographic Signature


Re: Securing SSL from IIS to Tomcat

2004-03-01 Thread Antonio Fiol Bonnín
John MccLain wrote:

Since IIS decrypts the request and passes it unencrypted to Tomcat, How do I
encrypt the request so that all communication from IIS with Tomcat is
secure???
 

Do you really need it? It would probably affect your performance 
seriously. (No, I cannot prove that statement...)

Other than that, I cannot be of much help. I'm sure I have read 
something about a certain AJP 1.4 which could accomplish your needs.

Latest reference I've been able to google for is from Tomcat 4.1 JK 
connector (deprecated). But I have not searched a lot.

Hope you can go on searching further with this little bit of info.

Antonio Fiol


smime.p7s
Description: S/MIME Cryptographic Signature


RE: Securing SSL from IIS to Tomcat

2004-03-01 Thread Kannan Sundararajan
I doubt any has that kind of need. If that is the case, then everyone will
pull their brains out. 

If we are worried about the IIS having SSL with Tomcat, then how about SSL
between database and Tomcat. How about query tools used in database (
secured query tool? , I dont know who has like this). 

I would not worry, if the Tomcat behind firwall, and behind the IIS (SSL).





-Original Message-
From: Antonio Fiol Bonnín [mailto:[EMAIL PROTECTED]
Sent: Monday, March 01, 2004 2:32 PM
To: Tomcat Users List
Subject: Re: Securing SSL from IIS to Tomcat


John MccLain wrote:

Since IIS decrypts the request and passes it unencrypted to Tomcat, How do
I
encrypt the request so that all communication from IIS with Tomcat is
secure???
  


Do you really need it? It would probably affect your performance 
seriously. (No, I cannot prove that statement...)

Other than that, I cannot be of much help. I'm sure I have read 
something about a certain AJP 1.4 which could accomplish your needs.

Latest reference I've been able to google for is from Tomcat 4.1 JK 
connector (deprecated). But I have not searched a lot.

Hope you can go on searching further with this little bit of info.


Antonio Fiol

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



RE: Tomcat 4.1.29 JVM crash on RHEL-3-ES

2004-03-01 Thread jmiller
The servers are only being used internally for testing at the moment.  As best I can 
tell, the crashes occur at night when nothing (or very few people) are using the them.


  Original Message 
 Subject: RE: Tomcat 4.1.29 JVM crash on RHEL-3-ES
 From: Kannan Sundararajan [EMAIL PROTECTED]
 Date: Mon, March 01, 2004 11:53 am
 To: 'Tomcat Users List' [EMAIL PROTECTED]
 
 Did you load test these servers?
 
 -Original Message-
 From: Joe Miller [mailto:[EMAIL PROTECTED]
 Sent: Monday, March 01, 2004 1:37 PM
 To: [EMAIL PROTECTED]
 Subject: Tomcat 4.1.29 JVM crash on RHEL-3-ES
 
 
 Hello,
 
 I'm experiencing sporadic crashing of the JVM running Tomcat in 2 of
 my
 environments.  These environments both run the same webapps, and they
 both
 use JDK 1.4.2_03 on RHEL-3 ES.  Other environments where these same
 webapps
 run are using JDK 1.4.1 and Redhat7.2, and are not experiencing these
 crashes.
 
 The crashes appear to happen at random times and hours.  Currently
 these
 webapps are very lightly used, and most likely completely unused when
 the
 crashes occur.
 
 Has anyone experienced this with a similar setup?
 
 My CATALINA_OPTS:
 CATALINA_OPTS=-Xms2548m -Xmx2548m -server
 
 All I see in Catalina.out is the following.  Messages preceding this VM
 dump
 message are different each time.
 
 #
 # HotSpot Virtual Machine Error, Internal Error
 # Please report this error at
 # http://java.sun.com/cgi-bin/bugreport.cgi
 #
 # Java VM: Java HotSpot(TM) Server VM (1.4.2_03-b02 mixed mode)
 #
 # Error ID: 53484152454432554E54494D450E435050018D
 #
 # Problematic Thread: prio=1 tid=0x085062c8 nid=0x22c5 runnable
 #
 
 Heap at VM Abort:
 Heap
  def new generation   total 260928K, used 132963K [0x0f7f,
 0x2130,
 0x2130)
   eden space 232000K,  53% used [0x0f7f, 0x170acf50, 0x1da8)
   to   space 28928K,   0% used [0x1f6c, 0x1f6c, 0x2130)
  tenured generation   total 2319296K, used 46617K [0x2130,
 0xaebf,
 0xaebf)
the space 2319296K,   2% used [0x2130, 0x240865e8, 0x24086600,
 0xaebf)
  compacting perm gen  total 26112K, used 26092K [0xaebf,
 0xb057,
 0xb2bf)
the space 26112K,  99% used [0xaebf, 0xb056b260, 0xb056b400,
 0xb057)
 
 
 
 --
 Joe Miller
 Linux Administrator
 GoDaddy.com
 [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: Tomcat 4.1.29 JVM crash on RHEL-3-ES

2004-03-01 Thread Kannan Sundararajan
Did you go thru some profilers. 

1. Which version of JVM you are running. 
2. What is your hardware OS.


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Monday, March 01, 2004 3:04 PM
To: Tomcat Users List
Cc: 'Tomcat Users List'
Subject: RE: Tomcat 4.1.29 JVM crash on RHEL-3-ES


The servers are only being used internally for testing at the moment.  As
best I can tell, the crashes occur at night when nothing (or very few
people) are using the them.


  Original Message 
 Subject: RE: Tomcat 4.1.29 JVM crash on RHEL-3-ES
 From: Kannan Sundararajan [EMAIL PROTECTED]
 Date: Mon, March 01, 2004 11:53 am
 To: 'Tomcat Users List' [EMAIL PROTECTED]
 
 Did you load test these servers?
 
 -Original Message-
 From: Joe Miller [mailto:[EMAIL PROTECTED]
 Sent: Monday, March 01, 2004 1:37 PM
 To: [EMAIL PROTECTED]
 Subject: Tomcat 4.1.29 JVM crash on RHEL-3-ES
 
 
 Hello,
 
 I'm experiencing sporadic crashing of the JVM running Tomcat in 2 of
 my
 environments.  These environments both run the same webapps, and they
 both
 use JDK 1.4.2_03 on RHEL-3 ES.  Other environments where these same
 webapps
 run are using JDK 1.4.1 and Redhat7.2, and are not experiencing these
 crashes.
 
 The crashes appear to happen at random times and hours.  Currently
 these
 webapps are very lightly used, and most likely completely unused when
 the
 crashes occur.
 
 Has anyone experienced this with a similar setup?
 
 My CATALINA_OPTS:
 CATALINA_OPTS=-Xms2548m -Xmx2548m -server
 
 All I see in Catalina.out is the following.  Messages preceding this VM
 dump
 message are different each time.
 
 #
 # HotSpot Virtual Machine Error, Internal Error
 # Please report this error at
 # http://java.sun.com/cgi-bin/bugreport.cgi
 #
 # Java VM: Java HotSpot(TM) Server VM (1.4.2_03-b02 mixed mode)
 #
 # Error ID: 53484152454432554E54494D450E435050018D
 #
 # Problematic Thread: prio=1 tid=0x085062c8 nid=0x22c5 runnable
 #
 
 Heap at VM Abort:
 Heap
  def new generation   total 260928K, used 132963K [0x0f7f,
 0x2130,
 0x2130)
   eden space 232000K,  53% used [0x0f7f, 0x170acf50, 0x1da8)
   to   space 28928K,   0% used [0x1f6c, 0x1f6c, 0x2130)
  tenured generation   total 2319296K, used 46617K [0x2130,
 0xaebf,
 0xaebf)
the space 2319296K,   2% used [0x2130, 0x240865e8, 0x24086600,
 0xaebf)
  compacting perm gen  total 26112K, used 26092K [0xaebf,
 0xb057,
 0xb2bf)
the space 26112K,  99% used [0xaebf, 0xb056b260, 0xb056b400,
 0xb057)
 
 
 
 --
 Joe Miller
 Linux Administrator
 GoDaddy.com
 [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]

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



application unavailable

2004-03-01 Thread Jason Keltz
Hi.

If I try to start up a web application and there's an error in web.xml,
the tomcat server marks the application unavailable.  Even after fixing
the problem, I can't seem to make the application available until
restarting the tomcat server.  I'm sure there must be *some* file I can
erase, or some tweak I can make to make it work without restarting the
server.  I don't want to have to use the manager application.

Thanks for any suggestions..

Jason.

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



RE: application unavailable

2004-03-01 Thread Shapira, Yoav

Howdy,

If I try to start up a web application and there's an error in web.xml,
the tomcat server marks the application unavailable.  Even after fixing
the problem, I can't seem to make the application available until
restarting the tomcat server.  I'm sure there must be *some* file I can
erase, or some tweak I can make to make it work without restarting the
server.  I don't want to have to use the manager application.

Don't be so sure ;)  You can use the manager webapp (either graphically
or via ant), you can write some custom JMX code in another webapps, or
you can restart the server, but there are no other options.

Yoav Shapira



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



RE: application unavailable

2004-03-01 Thread Jason Keltz
On Mon, 1 Mar 2004, Shapira, Yoav wrote:
 
  Don't be so sure ;)  You can use the manager webapp (either graphically
  or via ant), you can write some custom JMX code in another webapps, or
  you can restart the server, but there are no other options.

... the problem is that I'm trying to run one tomcat server for a large
group of students.  I can handle the deploy/undeploy part, but if a
student makes an error in their web.xml file, which is bound to happen, I
don't want to have to restart the server.  I'll need to look at a way to
wrap the reload via the manager application from ant. *sigh*

Jason.

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



RE: application unavailable

2004-03-01 Thread Yansheng Lin
wow coool! If I make a mistake, I can get the whole class off.  hehe:).

-Original Message-
From: Jason Keltz [mailto:[EMAIL PROTECTED] 
Sent: Monday, March 01, 2004 1:51 PM
To: [EMAIL PROTECTED]
Subject: RE: application unavailable


On Mon, 1 Mar 2004, Shapira, Yoav wrote:
 
  Don't be so sure ;)  You can use the manager webapp (either graphically
  or via ant), you can write some custom JMX code in another webapps, or
  you can restart the server, but there are no other options.

... the problem is that I'm trying to run one tomcat server for a large
group of students.  I can handle the deploy/undeploy part, but if a
student makes an error in their web.xml file, which is bound to happen, I
don't want to have to restart the server.  I'll need to look at a way to
wrap the reload via the manager application from ant. *sigh*

Jason.

-
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: application unavailable

2004-03-01 Thread Justin Ruthenbeck
At 12:50 PM 3/1/2004, you wrote:
On Mon, 1 Mar 2004, Shapira, Yoav wrote:
 
  Don't be so sure ;)  You can use the manager webapp (either 
graphically
  or via ant), you can write some custom JMX code in another webapps, 
or
  you can restart the server, but there are no other options.

... the problem is that I'm trying to run one tomcat server for a large
group of students.  I can handle the deploy/undeploy part, but if a
student makes an error in their web.xml file, which is bound to happen, I
don't want to have to restart the server.  I'll need to look at a way to
wrap the reload via the manager application from ant. *sigh*
You don't need to restart the entire process -- you just need to (as you 
mentioned) reload whatever context is unavailable.  Obviously you don't 
want to give every student permissions to restart every context, so 
that's out of the question.  It sounds like you're considering wrapping 
the ant reload with your own framework to check credentials before 
issuing the reload command (or something similar)?  If so, I would highly 
recommend starting from the tomcat reload ant task source code -- 
you'll find it pretty straight forward to put something like this together.

justin

__
Justin Ruthenbeck
Software Engineer, NextEngine Inc.
justinr - AT - nextengine DOT com
Confidential. See:
http://www.nextengine.com/confidentiality.php
__
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


application unavailable

2004-03-01 Thread Shapira, Yoav

Hi,

... the problem is that I'm trying to run one tomcat server for a large
group of students.  I can handle the deploy/undeploy part, but if a
student makes an error in their web.xml file, which is bound to happen,
I
don't want to have to restart the server.  I'll need to look at a way
to
wrap the reload via the manager application from ant. *sigh*

Umm, what if a student puts System.exit(0) in his/her webapp?

Consider having separate tomcat servers (altogether, or one
CATALINA_BASE and one CATALINA_HOME per student, i.e. one JVM per
student with some common configuration) to protect the students from
each other.

Yoav Shapira



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



RE: application unavailable

2004-03-01 Thread Jason Keltz
Hi Justin,

That's exactly the kind of thing I want to do.  However, I just tried to
use the manager app to restart my failed Hello example.  When the
context was up, the reload worked fine.  However, when the context died
because of an intentional error in web.xml, I get an error from manager:

FAIL - Encountered exception java.lang.IllegalStateException: Container 
StandardContext[/jas/example2] has not been started

Any ideas as to what the problem might be?

Thanks..

Jason.

On Mon, 1 Mar 2004, Justin Ruthenbeck wrote:

 At 12:50 PM 3/1/2004, you wrote:
 On Mon, 1 Mar 2004, Shapira, Yoav wrote:
   
Don't be so sure ;)  You can use the manager webapp (either
  graphically
or via ant), you can write some custom JMX code in another webapps,
  or
you can restart the server, but there are no other options.
 
 ... the problem is that I'm trying to run one tomcat server for a large
 group of students.  I can handle the deploy/undeploy part, but if a
 student makes an error in their web.xml file, which is bound to happen, I
 don't want to have to restart the server.  I'll need to look at a way to
 wrap the reload via the manager application from ant. *sigh*

 You don't need to restart the entire process -- you just need to (as you
 mentioned) reload whatever context is unavailable.  Obviously you don't
 want to give every student permissions to restart every context, so
 that's out of the question.  It sounds like you're considering wrapping
 the ant reload with your own framework to check credentials before
 issuing the reload command (or something similar)?  If so, I would highly
 recommend starting from the tomcat reload ant task source code --
 you'll find it pretty straight forward to put something like this together.

 justin


 __
 Justin Ruthenbeck
 Software Engineer, NextEngine Inc.
 justinr - AT - nextengine DOT com
 Confidential. See:
 http://www.nextengine.com/confidentiality.php
 __


 -
 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: Cluster error when starting up web application

2004-03-01 Thread Filip Hanik \(lists\)
I just committed a fix into CVS,
I didn't change the tellNew, instead I moved setValid(true) before I called
tellNew() during session
creation.

Filip

-Original Message-
From: Aadi Deshpande [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 25, 2004 10:36 PM
To: Tomcat Users List
Subject: Re: Cluster error when starting up web application


Upon further research, it seems that DeltaSession.setId() fires the
sessionCreated events to registered listeners, but this happens before a
session is declared valid ( i.e. setValid(true) has not been called ).

so when a  registered listener tries to utilize ( what it seems to
believe is ) a newly created session, the setAttribute method throws the
IllegalStateException..

Now I don't know too much about how the actual workings of the
HttpSession should go, but in my opinion, the sessionCreated events
should not be fired unless a valid session has been created.  which
seems to imply that maybe setValid() should doing the firing...

However, that doesn't sit well with me since it doesn't make sense for a
session to be truly valid unless it has a sessionId, which either
forces there to be an implict order between setId() and setValid() which
is no good, requiring that either/or check to see if the other has been
truly satisfied, and setting up some sort of implicit sequence coupling.

the alternative, as I see it, is move the tellNew() invocation to the
DeltaManager ( it's declared public, so it's already exposed ).

I tried that, by patching up the TC5 sources and it seemed to resolve
the issue.

Again, as I know little to nothing of how sessions should work and what
other implications this refactoring may have, what should be my next
course of action?

Should I contact the webwork people? Is this not correct use of sessions
and session listeners?

Should I open up a bug and/or propose my patch?

Thanks in advance for reading and/or responding,

-a





Aadi Deshpande wrote:

 Hi,

 I just got Tomcat 5.0.19 and after setting up the new delta based
 cluster manager, i get this during the startup my application :

 SEVERE: Session event listener threw exception
 java.lang.IllegalStateException: setAttribute: Session already
 invalidated
at

org.apache.catalina.cluster.session.DeltaSession.setAttribute(DeltaSession.j
ava:1306)

at

org.apache.catalina.cluster.session.DeltaSession.setAttribute(DeltaSession.j
ava:1283)

at

org.apache.catalina.cluster.session.DeltaSessionFacade.setAttribute(DeltaSes
sionFacade.java:17

 7)
at

com.opensymphony.webwork.lifecycle.SessionLifecycleListener.sessionCreated(S
essionLifecycleLis

 tener.java:50)
at

org.apache.catalina.cluster.session.DeltaSession.tellNew(DeltaSession.java:4
59)

at

org.apache.catalina.cluster.session.DeltaSession.setId(DeltaSession.java:431
)

at

org.apache.catalina.cluster.session.DeltaManager.createSession(DeltaManager.
java:377)

at

org.apache.catalina.cluster.session.DeltaManager.messageReceived(DeltaManage
r.java:895)

at

org.apache.catalina.cluster.session.DeltaManager.messageDataReceived(DeltaMa
nager.java:794)

at

org.apache.catalina.cluster.tcp.SimpleTcpCluster.messageDataReceived(SimpleT
cpCluster.java:561

 )
at
 org.apache.catalina.cluster.io.ObjectReader.execute(ObjectReader.java:117)

at

org.apache.catalina.cluster.tcp.TcpReplicationThread.drainChannel(TcpReplica
tionThread.java:17

 6)
at

org.apache.catalina.cluster.tcp.TcpReplicationThread.run(TcpReplicationThrea
d.java:114)




 As far as I can tell, it's happening when I request a page that has
 the webwork2 RequestLifecycleFilter set for that url pattern.  The
 doFilter function creates a HttpSession if none exists, which I assume
 calls the SessionLifecycleListener.sessionCreated(), but for some
 reason, it seems like the session is being invalidated prematurely..


 Here's the relevant piece from my web.xml :
filter
filter-namecontainer/filter-name
filter-class

 com.opensymphony.webwork.lifecycle.RequestLifecycleFilter/filter-class
/filter
filter-mapping
filter-namecontainer/filter-name
url-pattern/*/url-pattern
!-- modify appropriately --
/filter-mapping
listener
listener-class


com.opensymphony.webwork.lifecycle.SessionLifecycleListener/listener-class

/listener
listener
listener-class


com.opensymphony.webwork.lifecycle.ApplicationLifecycleListener/listener-cl
ass

/listener

 and from my server.xml file, taken pretty much verbatim from the
 default server.xml:

Cluster className=org.apache.catalina.cluster.tcp.SimpleTcpCluster

 managerClassName=org.apache.catalina.cluster.session.DeltaManager
 expireSessionsOnShutdown=false
 useDirtyFlag=true

Membership
className=org.apache.catalina.cluster.mcast.McastService
mcastAddr=224.64.64.128

  1   2   >