SocketException: Broken pipe

2005-01-13 Thread Cédric Buschini
Hi there,
I got a problem with a Tomcat 5.5.6 server and Java (jdk and jre 
1.5.0_01) on a Debian R3.

On my server, there is a JAVA application which is supposed to connect 
to a C++ client appliction through sockets. But it doesn't establish!!

From the logs (catalina.out) I got :
==
[...]
Jan 12, 2005 5:27:58 PM org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: 
attributeAdded('D57CF5B49544DEE007778BB3F78EB407', 'cart', 
'[EMAIL PROTECTED]')
processRequest submit = : login
java.net.SocketException: Broken pipe
processRequest submit = : login
processRequest submit = : login
processRequest submit = : refresh
processRequest submit = : refresh
processRequest submit = : refresh
processRequest submit = : refresh
java.net.SocketException: Broken pipe
processRequest submit = : refresh
CheckWebClient execute
checkWebClientConnexion -- 1105547298096
19902
java.net.SocketException: Broken pipe
processRequest submit = : refresh
processRequest submit = : refresh
java.net.SocketException: Broken pipe
processRequest submit = : refresh

[...]
==
I have no enough knowlegde but Tomcat and java to solve this problem. If 
some one can help me .

Cheers,
Cédric

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


RE: Tomcat monitoring scripts

2005-01-13 Thread Rajaneesh
Another simple way is to have start a tomcat once in 2 min using a shell
script. If tomcat instance is already
running then the ports are in use which prevents the another tomcat instance
running.

But in this case If the tomcat hangs and the port is in use by other
application, there is no means to restart it
and monitoring of tomcat is not attached here.

Regards
Rajaneesh

-Original Message-
From: Faisal Abdullah [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 13, 2005 9:29 AM
To: Tomcat Users List
Subject: Re: Tomcat monitoring scripts


On demand restarts with:
http://wrapper.tanukisoftware.org





On Wed, 12 Jan 2005 16:50:54 +, Didier McGillis
[EMAIL PROTECTED] wrote:
 btw the script I would use as a starting point, it doesnt work quite right
 on my system but I was looking for a starting point.

 From: Didier McGillis [EMAIL PROTECTED]
 Reply-To: Tomcat Users List tomcat-user@jakarta.apache.org
 To: [EMAIL PROTECTED], tomcat-user@jakarta.apache.org
 Subject: Re: Tomcat monitoring scripts
 Date: Wed, 12 Jan 2005 16:22:52 +
 
 Ch-Check this out.
 Shell script
 http://www.wespoke.com/archives/000728.php
 
 From: Edd Dawson [EMAIL PROTECTED]
 Reply-To: [EMAIL PROTECTED]
 To: Tomcat Users List tomcat-user@jakarta.apache.org
 Subject: Re: Tomcat monitoring scripts
 Date: Wed, 12 Jan 2005 15:20:53 +
 
 I'm looking more for something that sits on the actual servers and
probes
 at set intervals and takes remedial action if necessary.. i just
wondered
 if anyone had documented doing such a thing before.
 
 Peter Lin wrote:
 
 JMeter has a monitor for tomcat 5.0.19 and newer. It doesn't work with
 tomcat4 or older. in terms of restarting, you're probably going to
 have to write a shell script to do that. Typically, on unix a cron job
 is used.
 
 peter
 
 
 On Wed, 12 Jan 2005 15:12:15 +, Edd Dawson
 [EMAIL PROTECTED] wrote:
 
 
 Hi
 
 Does anyone know of the location of any scripts (for Linux) that will
 monitor tomcat every x minutes and if it finds it not running will
 restart it automatically?
 
 Any suggestions would be appreciated.
 
 thanks
 Edd
 
 -
 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]
 
 
 
 
 
 
 
 --
 Edd Dawson
 Head of Development
 
 MitchellConnerSearson
 3-5 High Pavement
 The Lace Market
 Nottingham  NG1 1HF
 Tel +44 (0)115 959 6455
 Fax +44 (0)115 959 6456
 Direct +44 (0)115 959 6463
 www.choosemcs.co.uk http://www.choosemcs.co.uk/
 
 Confidentiality: This e-mail and its attachments are intended for the
 above named only and may be confidential. If they have come to you in
 error you must take no action based on them, nor must you copy or show
 them to anyone; please reply to this e-mail and highlight the error.
 
 Security Warning: Please note that this e-mail has been created in the
 knowledge that Internet e-mail is not a 100% secure communications
medium.
 We advise that you understand and observe this lack of security when
 e-mailing us.
 
 Viruses: Although we have taken steps to ensure that this e-mail and
 attachments are free from any virus, we advise that in keeping with good
 computing practice the recipient should ensure they are actually virus
 free.
 
 
 
 -
 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]




--
There are many ways of going forward, but there is only one way of
standing still.

-
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: 24X7 deployment tips

2005-01-13 Thread Rajaneesh
Oh! Thanks

   Now I realise that in some appservers/ tools changing the WAR file does
not need restarting
and Changing the EJB requires restarting the server. So it is the same case
here then :-)

Regards
Rajaneesh

-Original Message-
From: Phillip Qin [mailto:[EMAIL PROTECTED]
Sent: Wednesday, January 12, 2005 8:16 PM
To: 'Tomcat Users List'
Subject: RE: 24X7 deployment tips


Non-clustering.

The deploy task does not shutdown the container. It undeploys your webapp
and then deploy the new war.

-Original Message-
From: Rajaneesh [mailto:[EMAIL PROTECTED]
Sent: January 12, 2005 12:36 AM
To: 'Tomcat Users List'
Subject: RE: 24X7 deployment tips


Hu Philip,

  Are you are deploying the application in a non clustered environment or
clustered environment in the production?


Regards
Rajaneesh

-Original Message-
From: Phillip Qin [mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 11, 2005 11:14 PM
To: 'Tomcat Users List'
Subject: RE: 24X7 deployment tips


I use Tomcat Manager (actually catalina-ant taks) to deploy my webapps from
my dev box to remote linux server. I don't have to shutdown server by doing
that. However, I do sometimes run into Out Of Memory issues after I deploy
applications hundreds times.

-Original Message-
From: sunil goyal [mailto:[EMAIL PROTECTED]
Sent: January 11, 2005 12:31 PM
To: tomcat-user@jakarta.apache.org
Subject: 24X7 deployment tips


Hi all,

I am looking for resources for building and deploying
24X7 large scale web applications using Java. Can
anyone point towards any good books/links for the
same?

If I am trying to deploy an application via
apache/tomcat on a linux platform, is it possible to
upgrade certain servlets without actually shutting
down the server. What kind of principle is generally
followed in real life applications for the same?

Any help in this regard is appreciated.

Thanks

Regards
Sunil


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

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





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


!DSPAM:41e4b799212883612811470!


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



regarding starting or tomcat

2005-01-13 Thread Ramesh_Choudhury
Hi
I have installed the tomcat and set the entire class path properly. My
problem is that ,when I want to start tomcat it is immediately getting
shutdown. I have tried so many times but result is same.

Thanks  regards
Ramesh kumar choudhury
BCMD,BHUBANESWAR
EXTN-41510


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



SSL Application problem

2005-01-13 Thread Juan Pedro López Sáez
Helo everybody.

I have a problem with a SSL web application.

This are the global settings:

- Tomcat 4.1.27 running on a Linux Debian machine.
- SSL application configured in the web.xml file as follows:

security-constraint
web-resource-collection
web-resource-nameSecured Application/web-resource-name
url-pattern/*/url-pattern
/web-resource-collection
auth-constraint
role-namesecuredrole/role-name
/auth-constraint
user-data-constraint
transport-guaranteeCONFIDENTIAL/transport-guarantee
/user-data-constraint
/security-constraint
  
login-config
auth-methodBASIC/auth-method
realm-nameUser identification/realm-name
/login-config

- User entry matching the securedrole role name in tomcat-users.xml
file.

- SSL connector configured in server.xml file as follows:

Connector className=org.apache.coyote.tomcat4.CoyoteConnector
acceptCount=10 bufferSize=2048 compression=off
connectionLinger=-1 connectionTimeout=6
connectionUploadTimeout=30 debug=0 disableUploadTimeout=false
enableLookups=true maxKeepAliveRequests=100 maxProcessors=75
minProcessors=5 port=443
protocolHandlerClassName=org.apache.coyote.http11.Http11Protocol
proxyPort=0 redirectPort=443 scheme=https secure=true
serverSocketTimeout=0 tcpNoDelay=true useURIValidationHack=true
Factory className=org.apache.coyote.tomcat4.CoyoteServerSocketFactory
algorithm=SunX509 clientAuth=false
keystoreFile=/usr/local/tomcat/conf/keystore keystorePass=
keystoreType=JKS protocol=TLS randomFile=/root/random.pem
rootFile=/root/root.pem/
/Connector

- Keystore file generated with the keytool program

When I first access the secured web application from a Mozilla
compatible browser, everything works correctly. I am asked to accept the
security certificate from the server and to logging with the secure
login and password. 

Problems arise after a while, sometimes after browsing some pages, but
sometimes just after the initial entry page: the browser shows a pop-up
windows with the document contains no data message. In this situation
the access log I have set doesn't show any new line, so apparently no
new requests are hitting the server from my browser.

When this happens I have found no other mean to solve the problem than
restarting Tomcat, but it appears again after a while.  

Using a IE browser the problems are the same, but there is no pop-up
message at all, simply the window keeps blank.

Does anybody know what could be happening? I'm almost sure that this has
something to do with the SSL setup, because if I remove the security
constraints in the web application, unsecureing it, there are no
problems at all.

Just to add another point: a little times, previous from the error, the
browser shows pages with some changes in the fonts: size and style. I
don't know whether this has someting to do...

Thank you very much.

Juan Pedro López

-


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



RE: regarding starting or tomcat

2005-01-13 Thread Rajaneesh
Probably due to the following reasons

1. The port is already in use by other application
2. Tomcat is already running
3. Incompatible issues in Tomcat and JVM

Regards
Rajaneesh

-Original Message-
From: Ramesh_Choudhury [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 13, 2005 1:53 PM
To: Tomcat Users List; [EMAIL PROTECTED]
Subject: regarding starting or tomcat


Hi
I have installed the tomcat and set the entire class path properly. My
problem is that ,when I want to start tomcat it is immediately getting
shutdown. I have tried so many times but result is same.

Thanks  regards
Ramesh kumar choudhury
BCMD,BHUBANESWAR
EXTN-41510

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

RE: Minimum Memory Requirement for TC 5.0.x

2005-01-13 Thread Rajaneesh
I would benchmark the hardware requirement based on the appliation load that
is run on the machine

-Original Message-
From: Yang Xiao [mailto:[EMAIL PROTECTED]
Sent: Wednesday, January 12, 2005 11:58 PM
To: Tomcat Users List
Subject: Minimum Memory Requirement for TC 5.0.x


Hi all,
What is the minimum memory requirement to run TC 5.0.x in a Linux
environment? or is there such a thing? I can't find it anywhere, which
is kind of amusing.
Many thanks,

Yang

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



AW: Tomcat 5.0.28 exiting randomly

2005-01-13 Thread Bernhard Slominski
Hi Greg,

we had simalar problems and couldn't find out the exact reason.
We solved it by just making an automated nightly restart of Tomcat.
It's maybe just running out of memory after some time.

Cheers

Bernhard

-Ursprüngliche Nachricht-
Von: Greg Lappen [mailto:[EMAIL PROTECTED]
Gesendet: Donnerstag, 13. Januar 2005 01:30
An: Tomcat Users List
Betreff: Tomcat 5.0.28 exiting randomly


Hello-

I have been tracking down this problem for a while now and finally have 
some more information.  I am using Tomcat 5.0.28 on RedHat EL 3.0 with 
JDK 1.4.2_06 and we occasionally find that Tomcat is no longer running 
in our production server.  It runs fine for days, then suddenly the 
java process disappears.  I initially thought the JVM was crashing, but 
could not find any core files or log messages.

Then someone suggested to me that I install a shutdown hook with 
Runtime.addShutdownHook to see if somewhere System.exit() is being 
called.  Well, it turns out that it is.  Unfortunately, I don't think I 
can tell in my shutdown hook where the System.exit() call occurred.  I 
have reviewed our application code numerous times looking for 
System.exit() calls and have not found any.

Is it possible that it is coming from Tomcat itself, or someone is able 
to issue a shutdown command externally somehow?

Greg


-
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: Deploying an application with its own xml file

2005-01-13 Thread Paul Taylor
Ok, it is working on my test (Windows) environment.
But with same war deploying it to my Live environment(Linux) results in 
it creating myapp.xml as a directory rather than a file !
Ive doubled checked this and the behaviour is constant, anyone ever 
sdeen this?

Paul Taylor wrote:
Thanks now working
I had previously found the bit about META-INF but called the file 
myapp.xml not context.xml
Phillip Qin wrote:

Sotre your context.xml into META-INF. Pack your webapp as war. Then let
catalina-ant task or Tomcat Manager to deploy your war.
-Original Message-
From: Paul Taylor [mailto:[EMAIL PROTECTED] Sent: January 12, 
2005 4:47 AM
To: Tomcat Users List
Subject: Deploying an application with its own xml file

I have an application myapp.war and a corresponding xml file myapp.xml.
Previously I was copying myapp.xml into 
tomcat/conf/catalina/localhost and manually unpacking my war.
Now I realised I can put the war into tomcat/webapps and it will 
automatically deploy, but I then have to shutdown server copy over 
the myapp.xml and restart the server. Where can I put the myapp.xml 
file so it automatically gets deployed with the WAR file in a single 
step.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
!DSPAM:41e4fe7c238787962119335!
 


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


Tomcat 5.0.25: Requested resource not available

2005-01-13 Thread Mumanyi Bravismore
Hi ALL,
I have the error message below whenever I 'm launch the following url:
I run  http://localhost:8080/  OR http://localhost:8080/dspace;
I get :
HTTP Status 404 - /
type Status report
message /
description The requested resource (/) is not available.
Apache Tomcat/5.0.25
when I run http://localhost:8080/webdav/;,  I 'm able to see the
directory listing there.
It seems that only catalina can 't see the pages placed in the
/dspace directory.
Please help
 My settings:
 --  
postmaster successfully started
Using CATALINA_BASE:   /usr/local/jakarta-tomcat-5.0.25
Using CATALINA_HOME:   /usr/local/jakarta-tomcat-5.0.25
Using CATALINA_TMPDIR: /usr/local/jakarta-tomcat-5.0.25/temp
Using JAVA_HOME:   /opt/SUNWappserver/jdk
dspace-1.1.1
postgres-7.4.3
Ant-1.6.1
RedHat 9.0
java version 1.4.2_04
My contents of the tomcat webapps dir

total 32
   4 drwxr-xr-x8 dspace   dspace   4096 Jan 13 09:39 .
   4 drwxr-xr-x   12 dspace   dspace   4096 Jan 13 09:35 ..
   4 drwxr-xr-x4 dspace   dspace   4096 Jan 12 16:05 balancer
   0 lrwxrwxrwx1 dspace   dspace 11 Jan 13 09:37 dspace -
dspace/jsp
   0 lrwxrwxrwx1 dspace   dspace 11 Jan 13 09:38 dspace-oai
- /dspace/oai
   4 drwxr-xr-x   21 dspace   dspace   4096 Jan 12 16:05 jsp-examples
   0 lrwxrwxrwx1 dspace   dspace 11 Jan 13 09:39 ROOT -
/dspace/jsp
   4 drwxr-xr-x4 dspace   dspace   4096 Jan 13 11:17 ROOT.bak
   4 drwxr-xr-x4 dspace   dspace   4096 Jan 12 16:05
servlets-examples
   4 drwxr-xr-x   12 dspace   dspace   4096 Jan 12 16:05 tomcat-docs
   4 drwxr-xr-x3 dspace   dspace   4096 Jan 12 16:05 webdav


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


jass login and login error messages

2005-01-13 Thread Olve Hansen
How can I pass on what kind of error happened during a jass login? The
only kind of error report I get the j_security_check sends me to my
loginError.jsp in:
form-login-config
form-login-page/login.jsp/form-login-page
form-error-page/loginError.jsp/form-error-page
/form-login-config

How can I pass some messages on from my jass login module, and onwards
to this page? We are relying on a 3. party web-services login server,
and I want to give an error message if it is down or having other
kinds of problems.

The only place I can get to know about this error is in my
implementation of javax.security.auth.spi.LoginModule.login()

How can I forward any exception messages from this LoginModule to the
loginError.jsp?

This is kind of urgent, as we go live the 24. January, awaiting 65.000
logins over the following three weeks.

Hope someone can shed some light on this problem. I understand that a
security implementation is somewhat closed for accessing parts outside
of the login module, but there has to be _some_ way of passing
messages from it to the outside application.

Of couse I might miss something obvious... 
-- 
 \ Olve S. Hansen
  \ mailto:[EMAIL PROTECTED]
   \ msn:[EMAIL PROTECTED]
\ +47 97767130

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



Re: Multiple domain names to a single site

2005-01-13 Thread Paul Taylor
Still struggling perhaps I need to buy a book but Ive had a tentaive 
look at your options
Parsons Technical Services wrote:

Does the dnsmanager have a choice for redirection of an URL?
It has lots of choices, you can change the dn server, and can use their 
own dnsmanager to chanage various web,domain and email settings. 
Unfortunately there is a lack of documentation explaining it. There is 
nothing saying redirection but I have raised a support request so wiill 
see what happens.

If not:
If the URL is pointed to an IP it will not change on its own. You 
could set up an app under a host of myapp.net and do a redirect to 
.com yourself.

I think Im just llacking the understanding. My server.xml file and the 
one I previously used in another company just use the default host of 
localhost and that seemed to work ok. I did create a new host called 
www.mycompany.com which meant tomcat expect to find a directory of the 
same name underneath conf/Catalina but i cant really understand the 
point of it.

Or
I think you can do the rewrite of the URL from a jsp welcome page of 
myapp.
I think Im right in saying this will only work on the default page 
www.mycompany.net not if they go to straight to 
www.mycompany.net/page1.jsp ecetera.

OR
Try the alias. I don't know if the alias will change the URL or not. 
(Or is this what you were doing?)

Tried adding alises of www.mycompany.net and www.mycompany.com to the 
existing host of localhost but made no difference.


Doug

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


Connections not released during reload

2005-01-13 Thread Bernhard Slominski
Hi,

I'm using the following conmfiguration:
- tomcat 5.0.28 
- Windows 2000 
- Oracle 9i database on Sun Solaris

I'm using the Tomcat connection pooling dbcp and have the following problem.
When reloading the applcation, the open connections are not released and
just stay open on the database forever.
These connections never die, even though the configuration to remove dead
connections is enabled.

I then get a whole set of new connections for the reloaded application.
Seems the reference to the old connections is just lost.  This only happens
when reloading the application, not during stop/start.

Is there a way to fix this (except stop/start of course :-))

Thanks

Bernhard 

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



Re: Connections not released during reload

2005-01-13 Thread Antony Paul
Write a ServletContextLlistener and in its contextDestroyed() method
use the shutdown() method of the DBCP pool to close connections.

rgds
Antony Paul


On Thu, 13 Jan 2005 11:37:22 +0100, Bernhard Slominski
[EMAIL PROTECTED] wrote:
 Hi,
 
 I'm using the following conmfiguration:
 - tomcat 5.0.28
 - Windows 2000
 - Oracle 9i database on Sun Solaris
 
 I'm using the Tomcat connection pooling dbcp and have the following problem.
 When reloading the applcation, the open connections are not released and
 just stay open on the database forever.
 These connections never die, even though the configuration to remove dead
 connections is enabled.
 
 I then get a whole set of new connections for the reloaded application.
 Seems the reference to the old connections is just lost.  This only happens
 when reloading the application, not during stop/start.
 
 Is there a way to fix this (except stop/start of course :-))
 
 Thanks
 
 Bernhard
 
 -
 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 5.0.28 exiting randomly

2005-01-13 Thread Ben Souther
Hi Greg,

Until you can track down the culprit, you may want to look into 
the security manager to disallow System.exit calls.
http://jakarta.apache.org/tomcat/tomcat-5.5-doc/security-manager-howto.html

Are you using any 3rd party jar files?
If it's in your code, grep should find it in seconds.



On Wed, 2005-01-12 at 19:30, Greg Lappen wrote:
 Hello-
 
 I have been tracking down this problem for a while now and finally have 
 some more information.  I am using Tomcat 5.0.28 on RedHat EL 3.0 with 
 JDK 1.4.2_06 and we occasionally find that Tomcat is no longer running 
 in our production server.  It runs fine for days, then suddenly the 
 java process disappears.  I initially thought the JVM was crashing, but 
 could not find any core files or log messages.
 
 Then someone suggested to me that I install a shutdown hook with 
 Runtime.addShutdownHook to see if somewhere System.exit() is being 
 called.  Well, it turns out that it is.  Unfortunately, I don't think I 
 can tell in my shutdown hook where the System.exit() call occurred.  I 
 have reviewed our application code numerous times looking for 
 System.exit() calls and have not found any.
 
 Is it possible that it is coming from Tomcat itself, or someone is able 
 to issue a shutdown command externally somehow?
 
 Greg
 
 
 -
 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 across webapps

2005-01-13 Thread Kieu Huu Dung
Hi all,

I prefer one (only one) session for all webapps
(Tomcat 5.0.28 and I've turned on SingleSignOn - user
login once for all webapps) or how can I know user is
in the same session between the login and logout when
he/she is in differents webapps.

Does anyone know is it possible or not? If possible
how can we do it? If not, is there another way to
share informations between webapps?

Thanks for your help,

Huu Dung Kieu.



__ 
Do you Yahoo!? 
The all-new My Yahoo! - Get yours free! 
http://my.yahoo.com 
 


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



AW: session across webapps

2005-01-13 Thread Bernhard Slominski
Hi Huu, 

First of all the session is ALWAYS on application scope, this is not an
Tomcat specific behaviour but a requirement of the Specification:
SRV.7.3 Session Scope
HttpSession objects must be scoped at the application (or servlet context)
level.
The underlying mechanism, such as the cookie used to establish the session,
can be
the same for different contexts, but the object referenced, including the
attributes in
that object, must never be shared between contexts by the container.

So there is no way around this, if the sessions were relicated across the
applications it would violate the specification.

When you enable crossConext for your application:
Context crossContext=true docBase=testapp path=/testapp
reloadable=true
/Context

you can get the context for another application:
ServletContext context2 = context.getContext(/testapp);

and set attributes:
context2.setAttribute(test,JSP is great!);

But you cannot get to the session in the other application.

So what you can do is implement the session swapping on your own (Cookies,
via the Database) or merge your applications into one.

Some links from the Sun Forums:
http://forum.java.sun.com/thread.jsp?forum=33thread=259394
http://forum.java.sun.com/thread.jsp?forum=45thread=492484
http://forum.java.sun.com/thread.jsp?forum=33thread=318569

Cheers Bernhard

-Ursprüngliche Nachricht-
Von: Kieu Huu Dung [mailto:[EMAIL PROTECTED]
Gesendet: Donnerstag, 13. Januar 2005 12:35
An: Tomcat Users List
Betreff: session across webapps


Hi all,

I prefer one (only one) session for all webapps
(Tomcat 5.0.28 and I've turned on SingleSignOn - user
login once for all webapps) or how can I know user is
in the same session between the login and logout when
he/she is in differents webapps.

Does anyone know is it possible or not? If possible
how can we do it? If not, is there another way to
share informations between webapps?

Thanks for your help,

Huu Dung Kieu.



__ 
Do you Yahoo!? 
The all-new My Yahoo! - Get yours free! 
http://my.yahoo.com 
 


-
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: SocketException: Broken pipe

2005-01-13 Thread Cédric Buschini
Hi again
Sorry to insist but it 's quiet important. I running out of ideas to 
solve my problem.. :'(

Is there a way to allow/denied access using sockets
Cédric
Hi there,
I got a problem with a Tomcat 5.5.6 server and Java (jdk and jre 
1.5.0_01) on a Debian R3.

On my server, there is a JAVA application which is supposed to connect 
to a C++ client appliction through sockets. But it doesn't establish!!

From the logs (catalina.out) I got :
==
[...]
Jan 12, 2005 5:27:58 PM org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: 
attributeAdded('D57CF5B49544DEE007778BB3F78EB407', 'cart', 
'[EMAIL PROTECTED]')
processRequest submit = : login
java.net.SocketException: Broken pipe
processRequest submit = : login
processRequest submit = : login
processRequest submit = : refresh
processRequest submit = : refresh
processRequest submit = : refresh
processRequest submit = : refresh
java.net.SocketException: Broken pipe
processRequest submit = : refresh
CheckWebClient execute
checkWebClientConnexion -- 1105547298096
19902
java.net.SocketException: Broken pipe
processRequest submit = : refresh
processRequest submit = : refresh
java.net.SocketException: Broken pipe
processRequest submit = : refresh

[...]
==
I have no enough knowlegde but Tomcat and java to solve this problem. 
If some one can help me .

Cheers,
Cédric

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


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


Re: AW: session across webapps

2005-01-13 Thread Kieu Huu Dung
You are great too :-)

It helps me alot, thanks very much.

Huu Dung Kieu.


--- Bernhard Slominski
[EMAIL PROTECTED] wrote:

 Hi Huu, 
 
 First of all the session is ALWAYS on application
 scope, this is not an
 Tomcat specific behaviour but a requirement of the
 Specification:
 SRV.7.3 Session Scope
 HttpSession objects must be scoped at the
 application (or servlet context)
 level.
 The underlying mechanism, such as the cookie used to
 establish the session,
 can be
 the same for different contexts, but the object
 referenced, including the
 attributes in
 that object, must never be shared between contexts
 by the container.
 
 So there is no way around this, if the sessions were
 relicated across the
 applications it would violate the specification.
 
 When you enable crossConext for your application:
 Context crossContext=true docBase=testapp
 path=/testapp
 reloadable=true
 /Context
 
 you can get the context for another application:
 ServletContext context2 =
 context.getContext(/testapp);
 
 and set attributes:
 context2.setAttribute(test,JSP is great!);
 
 But you cannot get to the session in the other
 application.
 
 So what you can do is implement the session swapping
 on your own (Cookies,
 via the Database) or merge your applications into
 one.
 
 Some links from the Sun Forums:

http://forum.java.sun.com/thread.jsp?forum=33thread=259394

http://forum.java.sun.com/thread.jsp?forum=45thread=492484

http://forum.java.sun.com/thread.jsp?forum=33thread=318569
 
 Cheers Bernhard
 
 -Ursprüngliche Nachricht-
 Von: Kieu Huu Dung [mailto:[EMAIL PROTECTED]
 Gesendet: Donnerstag, 13. Januar 2005 12:35
 An: Tomcat Users List
 Betreff: session across webapps
 
 
 Hi all,
 
 I prefer one (only one) session for all webapps
 (Tomcat 5.0.28 and I've turned on SingleSignOn -
 user
 login once for all webapps) or how can I know user
 is
 in the same session between the login and logout
 when
 he/she is in differents webapps.
 
 Does anyone know is it possible or not? If possible
 how can we do it? If not, is there another way to
 share informations between webapps?
 
 Thanks for your help,
 
 Huu Dung Kieu.
 
 
   
 __ 
 Do you Yahoo!? 
 The all-new My Yahoo! - Get yours free! 
 http://my.yahoo.com 
  
 
 

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




__ 
Do you Yahoo!? 
The all-new My Yahoo! - Get yours free! 
http://my.yahoo.com 
 


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



AW: Connections not released during reload

2005-01-13 Thread Bernhard Slominski
Antony,
thanks a lot, that's a very good idea and should fix it definitly!

Cheers

Bernhard

-Ursprüngliche Nachricht-
Von: Antony Paul [mailto:[EMAIL PROTECTED]
Gesendet: Donnerstag, 13. Januar 2005 11:56
An: Tomcat Users List
Betreff: Re: Connections not released during reload


Write a ServletContextLlistener and in its contextDestroyed() method
use the shutdown() method of the DBCP pool to close connections.

rgds
Antony Paul


On Thu, 13 Jan 2005 11:37:22 +0100, Bernhard Slominski
[EMAIL PROTECTED] wrote:
 Hi,
 
 I'm using the following conmfiguration:
 - tomcat 5.0.28
 - Windows 2000
 - Oracle 9i database on Sun Solaris
 
 I'm using the Tomcat connection pooling dbcp and have the following
problem.
 When reloading the applcation, the open connections are not released and
 just stay open on the database forever.
 These connections never die, even though the configuration to remove dead
 connections is enabled.
 
 I then get a whole set of new connections for the reloaded application.
 Seems the reference to the old connections is just lost.  This only
happens
 when reloading the application, not during stop/start.
 
 Is there a way to fix this (except stop/start of course :-))
 
 Thanks
 
 Bernhard
 
 -
 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]



Multiple realms in one context

2005-01-13 Thread Roland Carlsson
Hi!

My company has desided to put our customers in our LDAP (Active Directory)
in there own ou. They have also desided that our intranet and extranet shall
be the same pages where buttons shall be visible depending on the users
rights. They have desided that employees and extranet-users shall be in
different ou:s in the ldap.

So far there are no problem. The problem is that it is decided that our
customers shall login with their email-adress and employees shall use our
usual login-name (sAMAccountName).

We are using tomcats jndi-realm witch by the documentation supports
searching in several userbases.

The question, can I have two arguments in userSearch as with useBase to be
able to handle this situation or do I have to force my management to rethink
this? What is the syntax for this if it works?

Thanks in advance
Roland Carlsson



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



RE: Shutdown port

2005-01-13 Thread Frank Parato
Don't think you can do it with a browser, but you can telnet localhost
8005 and type SHUTDOWN and it will bring down tomcat, unless you
change the server.xml.

 

-Original Message-
From: Rajaneesh [mailto:[EMAIL PROTECTED] 
Sent: Thursday, January 13, 2005 2:55 AM
To: 'Tomcat Users List'
Subject: RE: Shutdown port

Hey!

I had a question! Can you shutdown the machine by typing
http://localhost:8005 in the browser?
I thought this was disabled in the Tomcat version 4 onwards?

Regards
Rajaneesh

-Original Message-
From: Ben Ricker [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 13, 2005 4:44 AM
To: Tomcat Users List
Subject: Re: Shutdown port


For an extra bit of security,replace SHUTDOWN with some sort of long,
random string and then lock down the server.xml to 640. Someone who
gains, or already has access to the box can shut it down the other way.

Ben Ricker


On Jan 12, 2005, at 6:55 AM, Frank Parato wrote:



 Is there a way to remove the shutdown port on a server ?  I tried 
 pulling the port=8005 option out, but it still listens on that port 
 and I'm able to shut it down.

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



SSL accelerator

2005-01-13 Thread Frank Parato


Hello all,

I'm still trying to figure out how to use my SSL accelerator card with
tomcat.  Is there an equivalent to Apache's SSLPassPhraseDialog
derivative in tomcat ?

Thanks,
Frank

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



Re: JAR locking / Tomcat 5.5.4 / Windows

2005-01-13 Thread Siarhei Dudzin
Did you find a solution?


On Tue, 4 Jan 2005 15:27:56 -0800 (PST), TomK
[EMAIL PROTECTED] wrote:
 I've been following the recent threads regarding JAR locking with Tomcat 5.x 
 on Windows platforms.   A few people mentioned they had been able to get 
 either the antiJARLocking or antiResourceLocking attributes to work, so I've 
 spent quite a bit of time trying out different scenarios and configurations, 
 under the impression that I must be missing something simple.however, 
 I've not yet found a situation where either attribute has any effect on 
 deploy/undeploy.

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



RE: SSL accelerator

2005-01-13 Thread Frank Parato
Alright.. The SSLPassPhraseDialog is not relevant...

I found some documentation that states that if I want to use some other
application with the card, I need to recompile openssl with a separate
include directory.  Unfortunately I didn't have to install openssl with
tomcat so the question is, does tomcat use openssl ?  If so, where to I
recompile it ?  It's a java app so do I need to recompile java binaries
?  I have a feeling this will not work for me. 

-Original Message-
From: Frank Parato [mailto:[EMAIL PROTECTED] 
Sent: Thursday, January 13, 2005 7:48 AM
To: Tomcat Users List
Subject: SSL accelerator



Hello all,

I'm still trying to figure out how to use my SSL accelerator card with
tomcat.  Is there an equivalent to Apache's SSLPassPhraseDialog
derivative in tomcat ?

Thanks,
Frank

-
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 monitoring scripts

2005-01-13 Thread Didier McGillis
I have this running on my dev, and so far i have not had any issues with it.
From: Faisal Abdullah [EMAIL PROTECTED]
Reply-To: Faisal Abdullah [EMAIL PROTECTED]
To: Tomcat Users List tomcat-user@jakarta.apache.org
Subject: Re: Tomcat monitoring scripts
Date: Thu, 13 Jan 2005 11:59:03 +0800
On demand restarts with:
http://wrapper.tanukisoftware.org


On Wed, 12 Jan 2005 16:50:54 +, Didier McGillis
[EMAIL PROTECTED] wrote:
 btw the script I would use as a starting point, it doesnt work quite 
right
 on my system but I was looking for a starting point.

 From: Didier McGillis [EMAIL PROTECTED]
 Reply-To: Tomcat Users List tomcat-user@jakarta.apache.org
 To: [EMAIL PROTECTED], tomcat-user@jakarta.apache.org
 Subject: Re: Tomcat monitoring scripts
 Date: Wed, 12 Jan 2005 16:22:52 +
 
 Ch-Check this out.
 Shell script
 http://www.wespoke.com/archives/000728.php
 
 From: Edd Dawson [EMAIL PROTECTED]
 Reply-To: [EMAIL PROTECTED]
 To: Tomcat Users List tomcat-user@jakarta.apache.org
 Subject: Re: Tomcat monitoring scripts
 Date: Wed, 12 Jan 2005 15:20:53 +
 
 I'm looking more for something that sits on the actual servers and 
probes
 at set intervals and takes remedial action if necessary.. i just 
wondered
 if anyone had documented doing such a thing before.
 
 Peter Lin wrote:
 
 JMeter has a monitor for tomcat 5.0.19 and newer. It doesn't work 
with
 tomcat4 or older. in terms of restarting, you're probably going to
 have to write a shell script to do that. Typically, on unix a cron 
job
 is used.
 
 peter
 
 
 On Wed, 12 Jan 2005 15:12:15 +, Edd Dawson
 [EMAIL PROTECTED] wrote:
 
 
 Hi
 
 Does anyone know of the location of any scripts (for Linux) that 
will
 monitor tomcat every x minutes and if it finds it not running will
 restart it automatically?
 
 Any suggestions would be appreciated.
 
 thanks
 Edd
 
 
-
 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]
 
 
 
 
 
 
 
 --
 Edd Dawson
 Head of Development
 
 MitchellConnerSearson
 3-5 High Pavement
 The Lace Market
 Nottingham  NG1 1HF
 Tel +44 (0)115 959 6455
 Fax +44 (0)115 959 6456
 Direct +44 (0)115 959 6463
 www.choosemcs.co.uk http://www.choosemcs.co.uk/
 
 Confidentiality: This e-mail and its attachments are intended for the
 above named only and may be confidential. If they have come to you in
 error you must take no action based on them, nor must you copy or show
 them to anyone; please reply to this e-mail and highlight the error.
 
 Security Warning: Please note that this e-mail has been created in the
 knowledge that Internet e-mail is not a 100% secure communications 
medium.
 We advise that you understand and observe this lack of security when
 e-mailing us.
 
 Viruses: Although we have taken steps to ensure that this e-mail and
 attachments are free from any virus, we advise that in keeping with 
good
 computing practice the recipient should ensure they are actually virus
 free.
 
 
 
 -
 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]



--
There are many ways of going forward, but there is only one way of
standing still.
-
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]


Dead connections detection

2005-01-13 Thread Thomas Recloux
Hello ,

I'm using tomcat 4.1.29 on a linux box for deploying a web application.
This application uses a db2 connection pool using the tomcat
datasource with dbcp.

For some reasons, this connections die (server restart, force
deconnection). The problem is that I must restart Tomcat for
reinitializing connections.

How could I configure Tomcat for him to detect dead connections ?

Thanks, Thomas

-- 
Thomas Recloux

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



Problem with TC 4.1.30 manager app and new Oracle JDBC driver

2005-01-13 Thread Norris Shelton
In the process of moving a newer version of the Oracle driver
(from 9.2.05 to 9.2.06) through out environments, we had the
following error:

Apache Tomcat/4.1.30
SQL Error.
count = 0, total = 498
count = 0, total = 498

The server is set-up to use multiple services with a root
context configured in each.  Also, there is a manager app
configured for each service that uses a JDBC realm for
authentication.  This driver worked on our local machines, in
DEV and the QA environments.  It also worked on the old tomcat
4.1.12 that was in the PREP environment, but did not work on the
new tomcat 4.1.30 that was in the prep environment.

As background, when we moved the 9.2.0.5 driver out, we had
problem in the DEV environment with the driver change preventing
Tomcat from starting up.  The 9.2.05 driver worked in the QA
environment.  A few days later, I had time to trouble shoot the
problem in the DEV, but it worked when I restarted the server.

We are really worried, that this problem will happen when we
move to the production environment where we have multiple
servers.  Any ideas?  Is there a way to get more error messages
or anything else that may be useful.?

=

Norris Shelton
Software Engineer
Sun Certified Java 1.1 Programmer
Appriss, Inc.
ICQ# 26487421
AIM NorrisEShelton
YIM norrisshelton




__ 
Do you Yahoo!? 
The all-new My Yahoo! - Get yours free! 
http://my.yahoo.com 
 
Server port=8005 shutdown=SHUTDOWN debug=0


  !-- A Service is a collection of one or more Connectors that share
   a single Container (and therefore the web applications visible
   within that Container).  Normally, that Container is an Engine,
   but this is not required.

   Note:  A Service is not itself a Container, so you may not
   define subcomponents such as Valves or Loggers at this level.
   --

  !-- Define the Tomcat Stand-Alone Service --

  Service name=Tomcat-postservlet
Connector className=org.apache.catalina.connector.http.HttpConnector
   port=9000 minProcessors=5 maxProcessors=75
   enableLookups=true redirectPort=1
   acceptCount=10 debug=0 connectionTimeout=6
/Connector
Connector className=org.apache.coyote.tomcat4.CoyoteConnector
   port=1 minProcessors=5 maxProcessors=75
   enableLookups=true
   acceptCount=100 debug=0 scheme=https secure=true
   useURIValidationHack=false disableUploadTimeout=true
Factory className=org.apache.coyote.tomcat4.CoyoteServerSocketFactory
clientAuth=false protocol=TLS/
/Connector

Engine name=Standalone defaultHost=postservlet debug=0
  Logger className=org.apache.catalina.logger.FileLogger
  prefix=catalina_log. suffix=.txt
  timestamp=true/

  Realm className=org.apache.catalina.realm.MemoryRealm /
  Host name=postservlet debug=0 appBase=webapps/postservlet
  unpackWARs=false
Valve className=org.apache.catalina.valves.AccessLogValve
 directory=logs  prefix=postservlet_access_log. suffix=.txt
 pattern=common/

Logger className=org.apache.catalina.logger.FileLogger
 directory=logs  prefix=postservlet_log. suffix=.txt
	timestamp=true/

	Context docBase=. priveleged=false path=
	/Context
Context docBase=../../server/webapps/manager path=/manager
privileged=true
Realm className=org.apache.catalina.realm.JDBCRealm
  digest=MD5
  driverName=oracle.jdbc.driver.OracleDriver
   connectionURL=not for your eyes
  connectionName=not for your eyes connectionPassword=not for your eyes
   userTable=svrlnk.tomcat_user_realm_vw
 userNameCol=ss_user_id userCredCol=ss_password
   userRoleTable=svrlnk.tomcat_user_realm_vw
 roleNameCol=tomcat_role 
/Realm
Valve className=org.apache.catalina.valves.RemoteAddrValve
		   allow=not for your eyes/
/Context
  /Host
/Engine
  /Service

  Service name=Tomcat-justicexchange
Connector className=org.apache.catalina.connector.http.HttpConnector
   port=9001 minProcessors=5 maxProcessors=75
   enableLookups=true redirectPort=10001
   acceptCount=10 debug=0 connectionTimeout=6/
Connector className=org.apache.coyote.tomcat4.CoyoteConnector
   port=10001 minProcessors=5 maxProcessors=75
   enableLookups=true
   acceptCount=100 debug=0 scheme=https secure=true
   useURIValidationHack=false disableUploadTimeout=true
Factory className=org.apache.coyote.tomcat4.CoyoteServerSocketFactory
clientAuth=false protocol=TLS/
/Connector

Engine name=JusticeXchange defaultHost=justicexchange debug=0


  Logger className=org.apache.catalina.logger.FileLogger
  

Re: SSL accelerator

2005-01-13 Thread John Smith
 I think your way to go is front ending TC with apache httpd. that might
also offer you a number of other beneffits.

 I don't know of anyway to make the SSL implementation of java use an SSL
accelerator card

 Even if an implementation of the JVM might use openssl (which I am not
possitive about on SUN's JVMs) 'you' will have to somehow recompile the
native implementation of the sec  libraries using SSL to use your hardware .
. .

 Again I am not sure and even if it is certainly doable I think you might
run againt some JVM licensing issues and stuff

- Original Message -
From: Frank Parato [EMAIL PROTECTED]
To: Tomcat Users List tomcat-user@jakarta.apache.org
Sent: Thursday, January 13, 2005 8:20 AM
Subject: RE: SSL accelerator


Alright.. The SSLPassPhraseDialog is not relevant...

I found some documentation that states that if I want to use some other
application with the card, I need to recompile openssl with a separate
include directory.  Unfortunately I didn't have to install openssl with
tomcat so the question is, does tomcat use openssl ?  If so, where to I
recompile it ?  It's a java app so do I need to recompile java binaries
?  I have a feeling this will not work for me.

-Original Message-
From: Frank Parato [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 13, 2005 7:48 AM
To: Tomcat Users List
Subject: SSL accelerator



Hello all,

I'm still trying to figure out how to use my SSL accelerator card with
tomcat.  Is there an equivalent to Apache's SSLPassPhraseDialog
derivative in tomcat ?

Thanks,
Frank

-
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: Deploying an application with its own xml file

2005-01-13 Thread Phillip Qin
Windows and linux use different url.

-Original Message-
From: Paul Taylor [mailto:[EMAIL PROTECTED] 
Sent: January 13, 2005 4:22 AM
To: Tomcat Users List
Subject: Re: Deploying an application with its own xml file


Ok, it is working on my test (Windows) environment.
But with same war deploying it to my Live environment(Linux) results in 
it creating myapp.xml as a directory rather than a file !
Ive doubled checked this and the behaviour is constant, anyone ever 
sdeen this?

Paul Taylor wrote:

 Thanks now working
 I had previously found the bit about META-INF but called the file
 myapp.xml not context.xml
 Phillip Qin wrote:

 Sotre your context.xml into META-INF. Pack your webapp as war. Then 
 let catalina-ant task or Tomcat Manager to deploy your war.

 -Original Message-
 From: Paul Taylor [mailto:[EMAIL PROTECTED] Sent: January 12,
 2005 4:47 AM
 To: Tomcat Users List
 Subject: Deploying an application with its own xml file


 I have an application myapp.war and a corresponding xml file 
 myapp.xml. Previously I was copying myapp.xml into 
 tomcat/conf/catalina/localhost and manually unpacking my war. Now I 
 realised I can put the war into tomcat/webapps and it will 
 automatically deploy, but I then have to shutdown server copy over 
 the myapp.xml and restart the server. Where can I put the myapp.xml 
 file so it automatically gets deployed with the WAR file in a single 
 step.

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


!DSPAM:41e63db745621951019963!


Re: JAR locking / Tomcat 5.5.4 / Windows

2005-01-13 Thread Dominik Drzewiecki
Siarhei Dudzin [EMAIL PROTECTED] wrote:
 Did you find a solution?

FYI it has been fixed on 17/12/2004 and the latest CVS version does not 
suffer from the nasty jar locking.
The root of the problem was the JasperLoader locking (using cached 
getResourceAsStream()) the jars containing jsp tag libraries.
It works for me. Please do give it a spin and test for yourselves. 
BTW, there seems to be 5.5.7 distro coming soon.

cheers,
/dd

 
 On Tue, 4 Jan 2005 15:27:56 -0800 (PST), TomK
 [EMAIL PROTECTED] wrote:
 I've been following the recent threads regarding JAR locking with 
 Tomcat 5.x on Windows platforms.   A few people mentioned they had been 
 able to get either the antiJARLocking or antiResourceLocking attributes 
 to work, so I've spent quite a bit of time trying out different 
 scenarios and configurations, under the impression that I must be 
 missing something simple.however, I've not yet found a situation 
 where either attribute has any effect on deploy/undeploy.



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



SV: Multiple realms in one context

2005-01-13 Thread Roland Carlsson
Hi again!

I realized that I was reading in old documentation (4.1) where the
documentation say it is possible to search two directories in the ldap.

Is this still posible in 5.0? The documentation is changed so it doesn't
mention the possibility and I can't make the syntax from 4.1 to work in my
5.0.

So I modify my question, is it possible to search in multiple ou:s in my
ldap?

Thanks in advance
Roland Carlsson


Den 05-01-13 13.27, skrev Roland Carlsson [EMAIL PROTECTED]:

 Hi!
 
 My company has desided to put our customers in our LDAP (Active Directory)
 in there own ou. They have also desided that our intranet and extranet shall
 be the same pages where buttons shall be visible depending on the users
 rights. They have desided that employees and extranet-users shall be in
 different ou:s in the ldap.
 
 So far there are no problem. The problem is that it is decided that our
 customers shall login with their email-adress and employees shall use our
 usual login-name (sAMAccountName).
 
 We are using tomcats jndi-realm witch by the documentation supports
 searching in several userbases.
 
 The question, can I have two arguments in userSearch as with useBase to be
 able to handle this situation or do I have to force my management to rethink
 this? What is the syntax for this if it works?
 
 Thanks in advance
 Roland Carlsson
 
 
 
 -
 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]



Tomcat 5 architectural questions

2005-01-13 Thread T K
Hi,

1) Is T5.0 nio based?
2) Is T5.5 nio based?
3) For the version that's nio based, how many threads
are typically in use?
4) Are there any articles on performance diffs between
the two versions?
5) Why would one want to use one over the other?
6) Why would one want to use any of them over 4.1
apart from JSP2.0 and JMX support?
7) Are any of the T5 versions as widely deployed at
ASP's as 4.1.x?

tia




__ 
Do you Yahoo!? 
Yahoo! Mail - Helps protect you from nasty viruses. 
http://promotions.yahoo.com/new_mail

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



Beanshell as Language under Tomcat

2005-01-13 Thread Furash Gary
I searched under beanshell and BSH on

http://mail-archives.apache.org/eyebrowse/SearchList?listId=[EMAIL 
PROTECTED]searchText=bshdefaultField=subjectSearch=Search

No items.  Can you send me the configuration instructions.  I'll get them 
posted on the Beanshell list also.  Thanks!!!


Gary Furash, MBA, PMP
Applications Manager, Maricopa County Attorney's Office
602-506-0351 (Work), 602-725-1985 (Mobile)

-Original Message-
From: Ryan Stewart [mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 11, 2005 5:32 PM
To: tomcat-user@jakarta.apache.org
Subject: Re: Tomcat5 java.lang.OutOfMemoryError

I posted a how-to on this just yesterday I think. Try the archives. It's 
typically a good idea to check there before you post.

-Original Message-
From: SARMIENTO Claudia COGA[EMAIL PROTECTED]
To: 'Tomcat Users List'tomcat-user@jakarta.apache.org
Date: Mon Jan 10 10:49:20 PST 2005
Subject: Tomcat5  java.lang.OutOfMemoryError

Hello all:
I have problems with memory in Tomcat, this happen when the servlet try 
to forward the result jsp only if the result is too big (a set of rows 
in a period date) Th bean doesn't have problems, but the servlet yes, 
so i think i need to change my configuration to set more memory at 
startup. (Actually is the
default)

I work in Tomcat 5.0.25 under W2000 with tomcat as a service, i read 
that i have to re-install tomcat
(http://marc.theaimsgroup.com/?l=tomcat-userm=104331482014538w=2) the 
notes is for tomcat 4, is the same for tomcat 5.0?

Thanks!
Claudia

PD:

This is the exactly error:

2005-01-10 11:26:42 StandardWrapperValve[invoker]: Servlet.service() 
para servlet invoker lanzó excepción java.lang.OutOfMemoryError


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



___
Check-out GO.com
GO get your free GO E-Mail account with expanded storage of 6 MB!
http://mail.go.com



-
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 5 architectural questions

2005-01-13 Thread Tim Funk
There is no nio in tomcat.
-Tim
T K wrote:
Hi,
1) Is T5.0 nio based?
2) Is T5.5 nio based?
3) For the version that's nio based, how many threads
are typically in use?
4) Are there any articles on performance diffs between
the two versions?
5) Why would one want to use one over the other?
6) Why would one want to use any of them over 4.1
apart from JSP2.0 and JMX support?
7) Are any of the T5 versions as widely deployed at
ASP's as 4.1.x?
 
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Variable in server.xml

2005-01-13 Thread Zakaria kHABOT
* * * * * * * * * * * * * * * Vexira NOTICE * * * * * * * * * * * * * * *
This version of Vexira MailArmor is a DEMO version and not full featured.

Vexira has processed a mail addressed to you, which contained no known
potential malicious software.

In case you notice abnormal behavior of your software after opening the
mail or one of its attachments, please forward the complete mail to
CentralCommand mailto:[EMAIL PROTECTED] so it can be
checked for unknown new potential malicious software.

-- 
Vexira MailArmor for Linux, OpenBSD, FreeBSD
Virus Protection for the Real World (TM).
Central Command http://www.centralcommand.com

---BeginMessage---



Hi all,
How can I declare a variable in 
server.xml.
Insitide of having path="C:\folder", I want to put 
this value in a variable (var) and path=${var}.
How to do this.
Thanks
---End Message---
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Re: [OT]shared memory

2005-01-13 Thread Elihu Smails

--- Wade Chandler [EMAIL PROTECTED] wrote:

 Elihu Smails wrote:
  I have a C based application running on the same
 box
  as tomcat, and I want to know if I would be able
 to
  access the shared memory segment using Java.  The
 C
  program is setting up the shared memory using
 shmctl,
  and not using memory mapped files.  
  I know that Java can support reading memory mapped
  files, but not memory that is set up using the
 shm*
  functions in C.  Does anyone have any insight on
 this
  issue.
  I am hoping that JNI is not my only option.
  
  
  thank you.
  
  
  
  __ 
  Do you Yahoo!? 
  Yahoo! Mail - Find what you need with new enhanced
 search.
  http://info.mail.yahoo.com/mail_250
  
 

-
  To unsubscribe, e-mail:
 [EMAIL PROTECTED]
  For additional commands, e-mail:
 [EMAIL PROTECTED]
  
  
  
 
 Yep.  JNI is your only solution.  But, JNI isn't
 hard.  You can use JNI 
 and create a wrapper class by extending ByteBuffer. 
 You might also find 
   apache APR to be useful to help you out.  Don't
 forget either that if 
 you are going to run this application on different
 endian cpu's or 
 endian emulated OS you'll have to reverse your byte
 order.  There may 
 already be a package for doing this out there some
 where (shared memory 
 and reording at once).
 
 Wade
 
 

-
 To unsubscribe, e-mail:
 [EMAIL PROTECTED]
 For additional commands, e-mail:
 [EMAIL PROTECTED]
 
 
Thanks for getting back to me :)

JNI is not that bad I agree, I just wish I could do
this without JNI.  As far as the endian issue, it will
all be on the same box, so I am OK there.  
Do you know if JDK 1.5 has any new shared memory
support in it?



__ 
Do you Yahoo!? 
Yahoo! Mail - Easier than ever with enhanced search. Learn more.
http://info.mail.yahoo.com/mail_250

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



some TC5 benchmark results for static file

2005-01-13 Thread Peter Lin
I've started a series of benchmarks to measure tomcat5 performance for
static files and compare it to apache2. Here are the results I have so
far. I thought others might find it interesting.

Server:
Redhat Fedora Core 1
AMD 2hgz
1Gb ram
jdk1.4.2
TC5.0.x ( have to double check the release number)

client:
gateway 450 laptop
1.4ghz centrino
1Gb ram
Jmeter
jdk1.4.2
keepalive is true

peter



PNG
1K
---
protocol | samples | average | median | 90% line | min | max | error%
| throughput | Kb/sec
---
HTTP Request50002.4158  0   10  0   231 0.00%   
1296.7/sec  1337.20
HTTP Request1   3.2866  0   10  0   490 0.00%   
1384.8/sec  1428.13
HTTP Request15000   3.56353 0   10  0   36260.00%   
1335.0/sec  1376.71
HTTP Request2   6.3406  0   20  0   120 0.00%   
1352.1/sec  1394.33
HTTP Request25000   8.27288 0   20  0   281 0.00%   
1309.1/sec  1350.02
HTTP Request3   4.6102  0   20  0   972 0.00%   
1259.2/sec  1298.53

5k

HTTP Request50002.9246  0   10  0   330 0.00%   
1044.5/sec  5314.28
HTTP Request1   4.4717  0   10  0   11620.00%   
1002.6/sec  5101.15
HTTP Request15000   6.7102  0   20  0   23730.00%   
968.9/sec   4929.49
HTTP Request2   4.83515 0   10  0   15030.00%   
950.1/sec   4834.10
HTTP Request25000   10.3578 0   30  0   19220.00%   
933.6/sec   4749.89
HTTP Request3   5.86573 0   20  0   441 0.00%   
939.4/sec   4779.46

10k

HTTP Request50004.1644  0   10  0   742 0.00%   
726.7/sec   7308.61
HTTP Request1   8.8132  10  20  0   181 0.00%   
763.5/sec   7678.00
HTTP Request15000   7.7906  0   20  0   381 0.00%   
718.0/sec   7221.14
HTTP Request2   10.8593 10  30  0   420 0.00%   
705.2/sec   7091.88
HTTP Request25000   32.2276 30  50  0   110 0.00%   
704.0/sec   7079.95
HTTP Request3   19.3326 10  50  0   16530.00%   
686.8/sec   6906.56

20k

HTTP Request50007.4202  0   10  0   400 0.00%   
491.9/sec   9936.63
HTTP Request1   14.1984 10  20  0   982 0.00%   
490.9/sec   9917.12
HTTP Request15000   17.698  10  40  0   531 0.00%   
472.4/sec   9542.36
HTTP Request2   22.9608 20  50  0   471 0.00%   
465.1/sec   9395.46
HTTP Request25000   32.8229 40  61  0   14320.00%   
461.3/sec   9318.23
HTTP Request3   50.4059 50  90  0   701 0.00%   
429.6/sec   8678.60

40k

HTTP Request50007.9292  0   10  0   11310.00%   
409.3/sec   8267.65
HTTP Request1   13.1405 10  21  0   10710.00%   
493.6/sec   9971.46
HTTP Request15000   18.5959 10  30  0   19230.00%   
517.0/sec   10444.56
HTTP Request2   32.9344 30  50  0   250 0.00%   
510.8/sec   10318.30
HTTP Request25000   38.1564 40  60  0   13620.00%   
493.4/sec   9966.44
HTTP Request3   52.4783 50  90  0   10010.00%   
463.5/sec   9363.52


HTML
1K
---
protocol | samples | average | median | 90% line | min | max | error%
| throughput | Kb/sec
---
HTTP Request50001.8508  0   10  0   170 0.00%   
1545.6/sec  1714.64
HTTP Request1   3.0936  0   10  0   321 0.00%   
1686.6/sec  1871.10
HTTP Request15000   3.3003  0   10  0   14220.00%   
1638.8/sec  1818.05
HTTP Request2   2.5934  0   10  0   110 0.00%   
1610.6/sec  1786.72
HTTP Request25000   3.99248 0   10  0   140 0.00%   
1537.1/sec  1705.26
HTTP Request3   4.12513 0   10  0   831 0.00%   
1473.5/sec  1634.72

5k

HTTP Request50003.1068  0   10  0   390 0.00%   
1078.3/sec  5713.64
HTTP Request1   5.1087  0   10  0   271 0.00%   
1154.5/sec  6117.33
HTTP Request15000   5.3688  0   10  0   15720.00%   
1096.6/sec  5810.54
HTTP Request2   4.46625 0   10  0   15020.00%   
1065.1/sec  5643.96
HTTP Request25000   

Re: Variable in server.xml

2005-01-13 Thread Tim Funk
You can only do this with tomcat 5.
But the variable would be a system property. (Or a property defined in 
catalina.properties)

See the FAQ for how to set system properties on startup.
-Tim
Zakaria kHABOT wrote:
Hi all,
How can I declare a variable in server.xml.
Insitide of having path=C:\folder, I want to put this value in a variable (var) and path=${var}.
How to do this. 
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: [OT]shared memory

2005-01-13 Thread Wade Chandler
Elihu Smails wrote:
--- Wade Chandler [EMAIL PROTECTED] wrote:

Elihu Smails wrote:
I have a C based application running on the same
box
as tomcat, and I want to know if I would be able
to
access the shared memory segment using Java.  The
C
program is setting up the shared memory using
shmctl,
and not using memory mapped files.  
I know that Java can support reading memory mapped
files, but not memory that is set up using the
shm*
functions in C.  Does anyone have any insight on
this
issue.
I am hoping that JNI is not my only option.
thank you.
		
__ 
Do you Yahoo!? 
Yahoo! Mail - Find what you need with new enhanced
search.
http://info.mail.yahoo.com/mail_250


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

Yep.  JNI is your only solution.  But, JNI isn't
hard.  You can use JNI 
and create a wrapper class by extending ByteBuffer. 
You might also find 
 apache APR to be useful to help you out.  Don't
forget either that if 
you are going to run this application on different
endian cpu's or 
endian emulated OS you'll have to reverse your byte
order.  There may 
already be a package for doing this out there some
where (shared memory 
and reording at once).

Wade

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

Thanks for getting back to me :)
JNI is not that bad I agree, I just wish I could do
this without JNI.  As far as the endian issue, it will
all be on the same box, so I am OK there.  
Do you know if JDK 1.5 has any new shared memory
support in it?

		
__ 
Do you Yahoo!? 
Yahoo! Mail - Easier than ever with enhanced search. Learn more.
http://info.mail.yahoo.com/mail_250

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

Not that I have read or heard about.  It might though.  If it isn't in 
the release documents then I seriously doubt it though.  I know that 
doesn't help you any. :-(

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


Information using JSWDP and Tomcat

2005-01-13 Thread Dave Russell
Ok I need some clarification on some things with the JWSDP and Tomcat 5
+.

 

I am interested in deploying a JAX-RPC web service on Tomcat 5+ non
jwsdp, is this even possible? 

 

The main reasons being:

 

1.  For deployment purposes, we would rather not have to install
development tools (JWSDP) to get the system up and running and the JDK
(which has apparently been solved in Tomcat 5.5).
2.  Simply installing the required libraries and configuring tomcat
for JWSDP is preferred

 

 

Or do I have to use the Tomcat container provided by Sun and install the
JDK and the JWSDP?

 

Thanks in advance

 

Dave

 

 

 



RE: some TC5 benchmark results for static file

2005-01-13 Thread Derrick Koes
 
So, are the results for tomcat?  Looks like you did some requests for png image 
files and HTML.  Where are the numbers for apache so we can compare?

Thanks,
Derrick

-Original Message-
From: Peter Lin [mailto:[EMAIL PROTECTED] 
Sent: Thursday, January 13, 2005 10:16 AM
To: tomcat-user
Subject: some TC5 benchmark results for static file

I've started a series of benchmarks to measure tomcat5 performance for static 
files and compare it to apache2. Here are the results I have so far. I thought 
others might find it interesting.

Server:
Redhat Fedora Core 1
AMD 2hgz
1Gb ram
jdk1.4.2
TC5.0.x ( have to double check the release number)

client:
gateway 450 laptop
1.4ghz centrino
1Gb ram
Jmeter
jdk1.4.2
keepalive is true

peter



PNG
1K
---
protocol | samples | average | median | 90% line | min | max | error%
| throughput | Kb/sec
---
HTTP Request50002.4158  0   10  0   231 0.00%   
1296.7/sec  1337.20
HTTP Request1   3.2866  0   10  0   490 0.00%   
1384.8/sec  1428.13
HTTP Request15000   3.56353 0   10  0   36260.00%   
1335.0/sec  1376.71
HTTP Request2   6.3406  0   20  0   120 0.00%   
1352.1/sec  1394.33
HTTP Request25000   8.27288 0   20  0   281 0.00%   
1309.1/sec  1350.02
HTTP Request3   4.6102  0   20  0   972 0.00%   
1259.2/sec  1298.53

5k

HTTP Request50002.9246  0   10  0   330 0.00%   
1044.5/sec  5314.28
HTTP Request1   4.4717  0   10  0   11620.00%   
1002.6/sec  5101.15
HTTP Request15000   6.7102  0   20  0   23730.00%   
968.9/sec   4929.49
HTTP Request2   4.83515 0   10  0   15030.00%   
950.1/sec   4834.10
HTTP Request25000   10.3578 0   30  0   19220.00%   
933.6/sec   4749.89
HTTP Request3   5.86573 0   20  0   441 0.00%   
939.4/sec   4779.46

10k

HTTP Request50004.1644  0   10  0   742 0.00%   
726.7/sec   7308.61
HTTP Request1   8.8132  10  20  0   181 0.00%   
763.5/sec   7678.00
HTTP Request15000   7.7906  0   20  0   381 0.00%   
718.0/sec   7221.14
HTTP Request2   10.8593 10  30  0   420 0.00%   
705.2/sec   7091.88
HTTP Request25000   32.2276 30  50  0   110 0.00%   
704.0/sec   7079.95
HTTP Request3   19.3326 10  50  0   16530.00%   
686.8/sec   6906.56

20k

HTTP Request50007.4202  0   10  0   400 0.00%   
491.9/sec   9936.63
HTTP Request1   14.1984 10  20  0   982 0.00%   
490.9/sec   9917.12
HTTP Request15000   17.698  10  40  0   531 0.00%   
472.4/sec   9542.36
HTTP Request2   22.9608 20  50  0   471 0.00%   
465.1/sec   9395.46
HTTP Request25000   32.8229 40  61  0   14320.00%   
461.3/sec   9318.23
HTTP Request3   50.4059 50  90  0   701 0.00%   
429.6/sec   8678.60

40k

HTTP Request50007.9292  0   10  0   11310.00%   
409.3/sec   8267.65
HTTP Request1   13.1405 10  21  0   10710.00%   
493.6/sec   9971.46
HTTP Request15000   18.5959 10  30  0   19230.00%   
517.0/sec   10444.56
HTTP Request2   32.9344 30  50  0   250 0.00%   
510.8/sec   10318.30
HTTP Request25000   38.1564 40  60  0   13620.00%   
493.4/sec   9966.44
HTTP Request3   52.4783 50  90  0   10010.00%   
463.5/sec   9363.52


HTML
1K
---
protocol | samples | average | median | 90% line | min | max | error%
| throughput | Kb/sec
---
HTTP Request50001.8508  0   10  0   170 0.00%   
1545.6/sec  1714.64
HTTP Request1   3.0936  0   10  0   321 0.00%   
1686.6/sec  1871.10
HTTP Request15000   3.3003  0   10  0   14220.00%   
1638.8/sec  1818.05
HTTP Request2   2.5934  0   10  0   110 0.00%   
1610.6/sec  1786.72
HTTP Request25000   3.99248 0   10  0   140 0.00%   
1537.1/sec  1705.26
HTTP Request3   4.12513 0   10  0   831 0.00%   
1473.5/sec  1634.72

5k

HTTP Request50003.1068  0   10  0   390 

Re: some TC5 benchmark results for static file

2005-01-13 Thread Peter Lin
Good question. I haven't run the apache tests yet. I forgot that I
don't have apache2 installed on my linux box, so this weekend I plan
to install and run the tests.

once all the tests are done, I plan to write up a quick article,
generate some charts and zip up all the files, including the jmeter
log files.

peter


On Thu, 13 Jan 2005 10:45:36 -0500, Derrick Koes
[EMAIL PROTECTED] wrote:
 
 So, are the results for tomcat?  Looks like you did some requests for png 
 image files and HTML.  Where are the numbers for apache so we can compare?
 
 Thanks,
 Derrick


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



Tomcat 4.1.x and mod_jk config

2005-01-13 Thread John Martyniak
Hi everyone,

I am trying to configure my Apache server to talk to my Tomcat server using
mod_jk.  It is kind of a major nightmare.

The first step for me is to get it working at any level.  Meaning that I can
do http://localhost/examples/jsp/index.jsp and it brings the page up and
runs the jsp.  However this does not happen.

I am looking for any help, or links that people that can send my way so that
I can figure this out.

The second step is to be able to run multiple Virtual hosts on the webserver
with multiple webapps on the app server.

Any help that can be provided would be greatly appreciated.

Thank you,

-John



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



Re: JAR locking / Tomcat 5.5.4 / Windows

2005-01-13 Thread TomK
Thanks very much, I'll check the latest version out and post my results, in 
case anyone else has this issue.
 
-tk
 
didn't_get_my_coffee_this_morning_rant
That I find myself saying In case anyone else has this issue is somewhat 
amazing to me.  Either:  
1) Hardly anyone is using Windows as their deployment environment for Tomcat.   
(I probably wouldn't be either, if I had a choice.)
or
2) Those using Windows as the deploy environment aren't concerned about 
re-deploying applications, and are content to simply restart the server, so 
resource locking is not an issue.
or
3) Everyone can properly edit the context.xml file, except me and 5 other 
people on this list.
 
There have been quite a few posts to this list, as well as bugs opened in 
bugzilla reporting JAR locking (with versions 5.0.x, 5.5.x).   I'm a bit 
disheartened by the earlier replies.   Either the bug was closed as invalid, 
or the reply was Get yourself a better operating system, or You aren't doing 
it right. Given the unlikely nature of #3 above, it seems much more likely 
that this is indeed a bug.I hope it has been fixed.
/didn't_get_my_coffee_this_morning_rant
 

Dominik Drzewiecki [EMAIL PROTECTED] wrote:
Siarhei Dudzin wrote:
 Did you find a solution?

FYI it has been fixed on 17/12/2004 and the latest CVS version does not 
suffer from the nasty jar locking.
The root of the problem was the JasperLoader locking (using cached 
getResourceAsStream()) the jars containing jsp tag libraries.
It works for me. Please do give it a spin and test for yourselves. 
BTW, there seems to be 5.5.7 distro coming soon.

cheers,
/dd

 
 On Tue, 4 Jan 2005 15:27:56 -0800 (PST), TomK
 wrote:
 I've been following the recent threads regarding JAR locking with 
 Tomcat 5.x on Windows platforms. A few people mentioned they had been 
 able to get either the antiJARLocking or antiResourceLocking attributes 
 to work, so I've spent quite a bit of time trying out different 
 scenarios and configurations, under the impression that I must be 
 missing something simple.however, I've not yet found a situation 
 where either attribute has any effect on deploy/undeploy.



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



Re: Variable in server.xml

2005-01-13 Thread Zakaria kHABOT
* * * * * * * * * * * * * * * Vexira NOTICE * * * * * * * * * * * * * * *
This version of Vexira MailArmor is a DEMO version and not full featured.

Vexira has processed a mail addressed to you, which contained no known
potential malicious software.

In case you notice abnormal behavior of your software after opening the
mail or one of its attachments, please forward the complete mail to
CentralCommand mailto:[EMAIL PROTECTED] so it can be
checked for unknown new potential malicious software.

-- 
Vexira MailArmor for Linux, OpenBSD, FreeBSD
Virus Protection for the Real World (TM).
Central Command http://www.centralcommand.com

---BeginMessage---
I use Tomcat 5.0.25.
in catalina.properties I put : gipe.home=D:\Projets\GIPENV\dist

in server.xml :
Context path=/GIPENV reloadable=true docBase=${gipe.home}
workDir=D:\\work\org\apache\jsp /

But I doesn't work

- Original Message -
From: Tim Funk [EMAIL PROTECTED]
To: Tomcat Users List tomcat-user@jakarta.apache.org
Sent: Thursday, January 13, 2005 3:16 PM
Subject: Re: Variable in server.xml


 You can only do this with tomcat 5.

 But the variable would be a system property. (Or a property defined in
 catalina.properties)

 See the FAQ for how to set system properties on startup.


 -Tim

 Zakaria kHABOT wrote:

 
  Hi all,
  How can I declare a variable in server.xml.
  Insitide of having path=C:\folder, I want to put this value in a
variable (var) and path=${var}.
  How to do this.

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




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

Re: Variable in server.xml

2005-01-13 Thread Tim Funk
Make it
gipe.home=D:\\Projets\\GIPENV\\dist
   or
gipe.home=D:/Projets/GIPENV/dist
-Tim
Zakaria kHABOT wrote:
I use Tomcat 5.0.25.
in catalina.properties I put : gipe.home=D:\Projets\GIPENV\dist
in server.xml :
Context path=/GIPENV reloadable=true docBase=${gipe.home}
workDir=D:\\work\org\apache\jsp /
But I doesn't work
- Original Message -
From: Tim Funk [EMAIL PROTECTED]
To: Tomcat Users List tomcat-user@jakarta.apache.org
Sent: Thursday, January 13, 2005 3:16 PM
Subject: Re: Variable in server.xml

You can only do this with tomcat 5.
But the variable would be a system property. (Or a property defined in
catalina.properties)
See the FAQ for how to set system properties on startup.
-Tim
Zakaria kHABOT wrote:

Hi all,
How can I declare a variable in server.xml.
Insitide of having path=C:\folder, I want to put this value in a
variable (var) and path=${var}.
 il: [EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: servlet help

2005-01-13 Thread Casas, Claudia
I am using jk2, apache2, and tomcat5.5

-Original Message-
From: Edmon Begoli [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, January 12, 2005 6:42 PM
To: Tomcat Users List
Subject: Re: servlet help

Claudia,

Are you using mod_jk with Apache and Tomcat?
You should be able to configure in Apache's httpd.conf
to forward particular url patterns to your Tomcat(s') worker(s).

Something like:

JkMount /yourapp/* yourworker

More details are in mod_jk documentation. I do not think that there is a
way 
to forward only servlet calls, as you can not be sure from the URL.
Usually, 
your URL/URI will have some servlet app. specific context which will
help 
you.

Regards,
Edmon
Software Architecture to the Rescue

- Original Message - 
From: Casas, Claudia [EMAIL PROTECTED]
To: Tomcat Users List tomcat-user@jakarta.apache.org
Sent: Wednesday, January 12, 2005 3:16 PM
Subject: RE: servlet help


Oki doki,
I got my servlets to work from tomcat using port 8080
(http://myserver:8080/~myacct/servlet/myservlet), but I still do not
know how to make apache recognize my servlets and send them to tomcat. I
want to access (http://myserver/~myacct/servlet/myservlet)

I tried to add these lines to httpd.conf
Location /servlet/*
JkUriSet worker ajp13:localhost:8009
/Location

and also added these lines to workers2.properties

[uri:spark.iss.utep.edu/servlet/*]
group=ajp13:localhost:8009

but still no luck! :( please help.

For reference I used the following taken from the web site:
http://www.jolash.com/tomcat/

Configure the tomcat web.xml file in your tomcat's conf directory.
You only need to do this if you are going to write servlets. After doing
this, you can put all your servlets into the subdirectory
WEB-INF/classes of your webapp directory. And you can access those
servlets with a URL like:
 Uncomment the servlet element tags with the servlet-name of invoker
(just search for invoker).
servlet
servlet-nameinvoker/servlet-name
servlet-class
  org.apache.catalina.servlets.InvokerServlet
/servlet-class
init-param
param-namedebug/param-name
param-value0/param-value
/init-param
load-on-startup2/load-on-startup
/servlet

Uncomment the servlet-mapping element tags with the servlet-name of
invoker.
!-- The mapping for the invoker servlet --
servlet-mapping
servlet-nameinvoker/servlet-name
url-pattern/servlet/*/url-pattern
/servlet-mapping


-Original Message-
From: Casas, Claudia [mailto:[EMAIL PROTECTED]
Sent: Wednesday, January 12, 2005 11:56 AM
To: tomcat-user@jakarta.apache.org
Subject: servlet help


I am running tomcat5.5.4, apache2.0.52 and jk2.
1)I an run my jsp's and servlets from root. I have configured tomcat to
run my jsp's from the homedirs, but I do not know how to configure
tomcat to run servlets from the homedirs.

I can run my jsp's like this: http://myserver/~myhomedir/myfile.jsp or
http://myserver:8080/~myhomedir/myfile.jsp
Either way it works fine.
What do I need to add so that my servlets run from my homedirs as well??

These are my configuration files:

/usr/local/apache/workers2.properties

info=Ajp13 forwarding over socket
tomcatId=localhost:8009


#define the worker
[ajp13:localhost:8009]
channel=channel.socket:localhost:8009
`
# Map the Tomcat examples webapp to the Web server uri space
#[uri:/jkstatus/*]
#group=status:status




# Uri mapping
[uri:/jsp-examples/*]


[uri:spark.iss.utep.edu/*.jsp]
group=ajp13:localhost:8009



I added the following in my httpd.conf also:

Location /*.jsp
JkUriSet worker ajp13:localhost:8009
/Location


(Before I would just add the lines below in my httpd.conf, and jsp's and
servlets would work!
JkMount /*.jsp ajp13
JkMount /*/servlet/ ajp13)


Also, I have the following in my server.xml file to run my jsp's from my
homedirs:
 Listener className=org.apache.catalina.startup.UserConfig
directoryName=wwwdocs
userClass=org.apache.catalina.startup.PasswdUserDatabase/

What am I missing???



-
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: some TC5 benchmark results for static file

2005-01-13 Thread Remy Maucherat
On Thu, 13 Jan 2005 10:16:08 -0500, Peter Lin [EMAIL PROTECTED] wrote:
 I've started a series of benchmarks to measure tomcat5 performance for
 static files and compare it to apache2. Here are the results I have so
 far. I thought others might find it interesting.
 
 Server:
 Redhat Fedora Core 1
 AMD 2hgz
 1Gb ram
 jdk1.4.2
 TC5.0.x ( have to double check the release number)

I would like a quick comparison with the new stuff, and tests with
higher concurrency (if possible):
FC 3 + JRE 5 + Tomcat 5.5.7

Especially if you plan to write an an article, I'd be glad if you used
the best available platform :)

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



Does tomcat cache compiled JSPs?

2005-01-13 Thread Matt Bathje
Hey everybody -
I am trying to get Tomcat to dynamically compile JSPs that are uploaded 
through a web interface. I am using the org.apache.jasper.JspC ant task 
trough code to do it.

After a bit of work, I am able to get the file parsed and compiled into 
the proper directory, which as far as I know is:
TOMCAT_HOME/work/Catalina/mysite/org/apache/jsp/WEB_INF/tiles/public/layouts/
(I got this based on the fact that if I update the .jsp file by hand and 
wait for the scheduled jasper compile, the file in this directory gets 
updated.)

Both the .class and the .java files are updated with a time stamp of 
right around when the upload occurred, and if I view source on the .java 
file, it contains whatever change I uploaded into the .jsp file, so 
everything seems like it should work.

When browsing the site though, the updated version of the file is not 
used. If I restart the site (either through manager stop/start or 
reload, or through restarting tomcat) the new file is then used. Waiting 
for the scheduled jasper compile does NOT recompile the file (as would 
be expected I think...) If I change the .jsp file by hand after my 
upload/compile process, and wait for the scheduled jasper compile, the 
hand-updated version of the file is used.

It seems as though I am missing something when I do my compile. I looked 
through the JspC (and related) code, and it seems as though if any files 
were changed, it reloads the JSPServlet, and this somehow makes the 
updated files be used.

So - I guess the questions I have are:
- Does tomcat cache the compiled JSPs somewhere?
- If so, how to reload that cache?
- Does that fact that the newly-compiled file is always called from a 
jsp:include page=xxx.jsp / make a difference?
- Is there a way to use the running jsp compiler instead of using the 
JspC ant task - I think using the JSPServlet would solve all my problems 
actually, but I see no way to call it from my code.

Thanks,
Matt
PS - I am 99.% sure that this is not a browser/proxy caching issue. 
It happens on multiple browsers/computers, and I see no other caching 
issues on the site when changes are made, this is the only time/place.

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


Re: regarding starting or tomcat

2005-01-13 Thread venkats
Try running the attached startup.bat to start Tomcat.

 Hi
 I have installed the tomcat and set the entire class path properly. My
 problem is that ,when I want to start tomcat it is immediately getting
 shutdown. I have tried so many times but result is same.

 Thanks  regards
 Ramesh kumar choudhury
 BCMD,BHUBANESWAR
 EXTN-41510


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

Error registering RequestProcessor

2005-01-13 Thread John Sidney-Woollett
We're using Tomcat 5.0.28 which is fronted by Apache 1.3.29 + modjk 1.2.6
We're seeing this error message in the logs occasionally. The error 
occurs at any time interval AFTER tomcat has been started up - two hours 
was the last time it occured after startup.

This server is one of two in a (jk) load balanced configuration - they 
do not use or share sessions and act purely as image servers (from a db 
+ file system).

13-Jan-2005 17:27:36 org.apache.commons.modeler.Registry registerComponent
SEVERE: Error registering 
Catalina:type=RequestProcessor,worker=jk-8009,name=JkRequest129
javax.management.InstanceAlreadyExistsException: 
Catalina:type=RequestProcessor,worker=jk-8009,name=JkRequest129
at mx4j.server.MBeanServerImpl.register(MBeanServerImpl.java:1123)
at 
mx4j.server.MBeanServerImpl.registerImpl(MBeanServerImpl.java:1054)
at 
mx4j.server.MBeanServerImpl.registerMBeanImpl(MBeanServerImpl.java:1002)
at 
mx4j.server.MBeanServerImpl.registerMBean(MBeanServerImpl.java:978)
at 
org.apache.commons.modeler.Registry.registerComponent(Registry.java:871)
at 
org.apache.jk.common.ChannelSocket.registerRequest(ChannelSocket.java:436)
at 
org.apache.jk.common.HandlerRequest.decodeRequest(HandlerRequest.java:443)
at 
org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:352)
at 
org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:743)
at 
org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:675)
at 
org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:866)
at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
at java.lang.Thread.run(Thread.java:534)
13-Jan-2005 17:27:36 org.apache.jk.common.ChannelSocket registerRequest
WARNING: Error registering request

Does anyone know if this is this serious? And do you think that this TC 
instance is still able to serve requests. (Because this is our 
production environment we can't do much testing with these servers and 
haven't seen the error on our development servers).

Thanks for any insight or help.
John Sidney-Woollett

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


Re: Does tomcat cache compiled JSPs?

2005-01-13 Thread Woodchuck

--- Matt Bathje [EMAIL PROTECTED] wrote:


 - Does that fact that the newly-compiled file is always called from a
 
 jsp:include page=xxx.jsp / make a difference?

try %@ include file=xxx.jsp %






__ 
Do you Yahoo!? 
Yahoo! Mail - Find what you need with new enhanced search.
http://info.mail.yahoo.com/mail_250

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



Re: Does tomcat cache compiled JSPs?

2005-01-13 Thread Matt Bathje
Woodchuck wrote:
--- Matt Bathje [EMAIL PROTECTED] wrote:

- Does that fact that the newly-compiled file is always called from a
jsp:include page=xxx.jsp / make a difference?

try %@ include file=xxx.jsp %

This would not be an ideal situation as the path to include is 
dynamically calculated - but in any case, I tried hard-coding it and 
doing the include, and it did not help the situation any.

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


In Tomcat 5.x embedded, can't get dynamically created contexts to load

2005-01-13 Thread Tim Ramey
I have been trying to get Tomcat embedded in my application.  The
problem I 
am seeing is that when I attach a root context to the host, it doesn't
start 
because of a null class loader.  I have been using an example that I
found 
on the web to start embedded Tomcat; my code is below.  I have tried
this 
with Tomcat 5.0.28, 5.5.4 (other problems there), and 5.5.6.  5.0.28 and

5.5.6 exhibit the same behavior.

I stepped through the Catalina source code from 5.5.6, and this is what
I 
found:

When the root context is started (the start method of StandardContext is

called), the call to getLoader() returns null.  This seems reasonable.
An 
instance of WebappLoader is created and attached to the StandardContext 
object by calling setLoader.

Line 3917 of org/apache/catalina/core/StandardContext.java
if (getLoader() == null) {
ClassLoader parent = null;
if (getPrivileged()) {
if (log.isDebugEnabled())
log.debug(Configuring privileged default Loader);
parent = this.getClass().getClassLoader();
} else {
if (log.isDebugEnabled())
log.debug(Configuring non-privileged default
Loader);
parent = getParentClassLoader();
}
WebappLoader webappLoader = new WebappLoader(parent);
webappLoader.setDelegate(getDelegate());
setLoader(webappLoader);


Later in the same method, bindThread is called to associate the new
class 
loader with the thread.

Line 3970 of org/apache/catalina/core/StandardContext.java
ClassLoader oldCCL = bindThread();

The problem I am seeing is that the class loader associated with the 
WebappLoader object is not created until the start method on the 
Webapploader object is called, and that method is not called until later
in 
the start method of the StandardContext object.

Line 3981 of org/apache/catalina/core/StandardContext.java
started = true;

// Start our subordinate components, if any
if ((loader != null)  (loader instanceof Lifecycle))
((Lifecycle) loader).start();
if ((logger != null)  (logger instanceof Lifecycle))
((Lifecycle) logger).start();

Inside the setLoader method of StandardBase, it looks like the loader is

started if the context has been started, but the context hasn't been
started 
yet - it happens after bindThread is called as well.

What happens in the bindThread class is the class loader returned from 
WebappLoader's getClassLoader method is null, causing the context class 
loader in the current thread to be set to null, causing problems
downstream.  
The error I get is at the bottom of this message.

I can work around the problem if I change the getClassLoader method in 
WebappLoader from

public ClassLoader getClassLoader() {

return ((ClassLoader) classLoader);
}

to

public ClassLoader getClassLoader() {

if (classLoader != null) {
return ((ClassLoader) classLoader);
} else {
return ((ClassLoader)parentClassLoader);
}
}

Is there something I am doing wrong in embedding Tomcat in my
application or 
is there a bug here?

Here is my code to start up the Embedded class:

_tomcat = new Embedded();

String path = new
File(ServerProperties.getTomcatPath()).getAbsolutePath();
_tomcat.setCatalinaHome(path);

MemoryRealm memRealm = new MemoryRealm();
_tomcat.setRealm(memRealm);

// create an Engine
Engine baseEngine = _tomcat.createEngine();
baseEngine.setName(Engine);
baseEngine.setDefaultHost(localhost);

// create Host
Host baseHost = _tomcat.createHost(localhost, path + /webapps);
baseEngine.addChild(baseHost);

// create root Context
Context rootCtx = _tomcat.createContext(, path + /webapps/ROOT);
rootCtx.setReloadable(false);
rootCtx.addWelcomeFile(index.jsp);
baseHost.addChild(rootCtx);

// add new Engine to set of Engines for embedded server
_tomcat.addEngine(baseEngine);

// create Connector
Connector httpConnector = _tomcat.createConnector((InetAddress)null,
8080, false);

// add new Connector to set of Connectors for embedded server,
associated with Engine
_tomcat.addConnector(httpConnector);

// start operation
try
{
_tomcat.start();
}
catch (org.apache.catalina.LifecycleException ex)
{
// Todo: Handle tomcat exception
ex.printStackTrace();
}

Here is the exception I get as a result of the null class loader:

javax.xml.parsers.FactoryConfigurationError: Provider
org.apache.xerces.jaxp.DocumentBuilderFactoryImpl not found
at
javax.xml.parsers.DocumentBuilderFactory.newInstance(DocumentBuilderFact
ory.java:104)
at
org.apache.commons.modeler.util.DomUtil.readXml(DomUtil.java:284)
at
org.apache.commons.modeler.modules.MbeansDescriptorsDOMSource.execute(Mb
eansDescriptorsDOMSource.java:130)
at

Re: Does tomcat cache compiled JSPs?

2005-01-13 Thread Woodchuck

--- Matt Bathje [EMAIL PROTECTED] wrote:

 Woodchuck wrote:
  --- Matt Bathje [EMAIL PROTECTED] wrote:
  
  
  
 - Does that fact that the newly-compiled file is always called from
 a
 
 jsp:include page=xxx.jsp / make a difference?
  
  
  try %@ include file=xxx.jsp %
  
  
 
 This would not be an ideal situation as the path to include is 
 dynamically calculated - but in any case, I tried hard-coding it and 
 doing the include, and it did not help the situation any.
 

is the jsp doing the %@ include being jsp:include-ed itself into
another jsp?

also, are you using tomcat 5?  if you are i believe you can use EL to
do something like:

%@ include file=${your_object.dynamic_file_name} %


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




__ 
Do you Yahoo!? 
Yahoo! Mail - now with 250MB free storage. Learn more.
http://info.mail.yahoo.com/mail_250

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



Re: JAR locking / Tomcat 5.5.4 / Windows

2005-01-13 Thread TomK
Success!  I was able to get the antiResourceLocking attribute to finally take 
effect with Tomcat 5.5.4.
 
The problem is the default Windows install does not set the Working Path 
(viewable on the Startup/Shutdown tabs of the service manager that sits in the 
SysTray).   Once I set the working path to the tomcat base directory, and 
restarted Tomcat, and deployed the WAR, the application files were copied to 
the temp directory and run from there, just as promised.  Undeploy works fine.  
   Interestingly, the directories created in the temp directory aren't deleted 
when Tomcat is shutdown, for the same reason: the jar's are locked.   
 
Dominik --  Regarding your statement that the latest CVS version does not 
suffer from the nasty jar locking.   I'll try it out later, but are you 
suggesting 5.5.7  will not have JAR locking issues at all, and thus the 
antiResourceLocking and antiJARLocking attributes will be unnecessary??
 
thanks
-tk

TomK [EMAIL PROTECTED] wrote:
Thanks very much, I'll check the latest version out and post my results, in 
case anyone else has this issue.

-tk

Dominik Drzewiecki wrote:
Siarhei Dudzin wrote:
 Did you find a solution?

FYI it has been fixed on 17/12/2004 and the latest CVS version does not 
suffer from the nasty jar locking.
The root of the problem was the JasperLoader locking (using cached 
getResourceAsStream()) the jars containing jsp tag libraries.
It works for me. Please do give it a spin and test for yourselves. 
BTW, there seems to be 5.5.7 distro coming soon.

cheers,
/dd

 
 On Tue, 4 Jan 2005 15:27:56 -0800 (PST), TomK
 wrote:
 I've been following the recent threads regarding JAR locking with 
 Tomcat 5.x on Windows platforms. A few people mentioned they had been 
 able to get either the antiJARLocking or antiResourceLocking attributes 
 to work, so I've spent quite a bit of time trying out different 
 scenarios and configurations, under the impression that I must be 
 missing something simple.however, I've not yet found a situation 
 where either attribute has any effect on deploy/undeploy.



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



Re: Does tomcat cache compiled JSPs?

2005-01-13 Thread Matt Bathje
is the jsp doing the %@ include being jsp:include-ed itself into
another jsp?
It isn't being included, but it is being called as part of a 
struts/tiles definition.

also, are you using tomcat 5?  if you are i believe you can use EL to
do something like:
%@ include file=${your_object.dynamic_file_name} %

Doesn't seem to work:
2005-01-13 12:22:56 StandardContext[]Background compile failed
org.apache.jasper.JasperException: 
/WEB-INF/tiles/public/layouts/index.jsp(54,0) File 
/WEB-INF/tiles/public/layouts/${pathToInclude} not found

I didn't see anything in the JSP documentation that would indicate you 
can use EL in the include directive myself.

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


sessions do not work from homedirs and servlets do not work through apache

2005-01-13 Thread Casas, Claudia
Hello everyone,
I am using apache2, tomcat5.5, and jk2. I have configured my tomcat to
run from my user home directories.
Also I have configure apache to run with tomcat with jk2 through my home
directories as well.
Now, I am facing two problems that are driving me crazy, here they are
in order of importance given that I have to have two project up by
tomorrow and they do not work because of these issues, please help!!!
 
1)   JPS sessions are working through tomcat root but not from my
homedirs. There is an example called carts under the jsp-examples in
tomcat root and it works great in there. When I tried to run this same
example inside my home directoy it does not work. UseBean drops
previously created instances of a bean. So when a new jsp tries to read
parameters being passed from a previous jsp, everything is null because
the session is re-created and not re-used. Please someone tell me what
is going on. My real project uses jsp session and it is not working
because all the values are reading null!!
 
2)   the servlets work from tomcat port 8080 through my homedirs,
but through apache. JSP work through apache though. Example) The
following works fine:  http://myserver:8080/~ccasas/servlet/hello
http://sp:8080/~ccasas/servlet/hello  but I cannot make the following
work: http://myserver/~ccasas/servlet/hello
 
I would really appreciate your help on this, I am already going nuts.
 
 
 
 
 
 
!--Claudia Casas--
 


Problem with mod_jk 1.2 - 500 Internal Server Error

2005-01-13 Thread Pat Maddox
I'm using JBoss 4.0.1 with integrated Tomcat 5, and I'm trying to 
connect it to Apache 2.  Whenever I make a request to a resource that 
should be passed along to Tomcat, I get a 500 Internal Server error.  
Looking at the mod_jk.log shows:

[Thu Jan 13 13:45:34 2005]  [jk_uri_worker_map.c (445)]: Into 
jk_uri_worker_map_t::map_uri_to_worker
[Thu Jan 13 13:45:34 2005]  [jk_uri_worker_map.c (459)]: Attempting to 
map URI '/status'
[Thu Jan 13 13:45:34 2005]  [jk_uri_worker_map.c (473)]: 
jk_uri_worker_map_t::map_uri_to_worker, Found an exact match default - 
/status
[Thu Jan 13 13:45:34 2005]  [mod_jk.c (1689)]: Into handler 
r-proxyreq=0 r-handler=jakarta-servlet r-notes=140779720 
worker=default
[Thu Jan 13 13:45:34 2005]  [jk_worker.c (90)]: Into 
wc_get_worker_for_name default
[Thu Jan 13 13:45:34 2005]  [jk_worker.c (94)]: wc_get_worker_for_name, 
done did not find a worker
[Thu Jan 13 13:45:34 2005]  [jk_uri_worker_map.c (445)]: Into 
jk_uri_worker_map_t::map_uri_to_worker


So it looks like it maps to the correct worker, but then can't find the 
worker.  I've got no clue why this is happening.

Here's my workers.properties file:
# Define worker
workers.list=default
worker.default.port=8009
worker.default.host=localhost
worker.default.type=ajp13
And here's the section of httpd.conf where it's all set up
#
# mod_jk settings
#
JkWorkersFile conf/workers.properties
JkLogfile logs/mod_jk.log
JkLogLevel debug
JkMount /*.jsp default
JkMount /*.do default
JkMount /status default
# End of mod_jk settings
I'm really confused and frustrated with this...I'd appreciate any help.
Thanks, Pat
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Problem with mod_jk 1.2 - 500 Internal Server Error

2005-01-13 Thread Mladen Turk
Pat Maddox wrote:
I'm using JBoss 4.0.1 with integrated Tomcat 5, and I'm trying to 
connect it to Apache 2.  Whenever I make a request to a resource that 
should be passed along to Tomcat, I get a 500 Internal Server error.  
Looking at the mod_jk.log shows:

[Thu Jan 13 13:45:34 2005]  [jk_worker.c (94)]: wc_get_worker_for_name, 
done did not find a worker

# Define worker
workers.list=default
worker.default.port=8009
worker.default.host=localhost
worker.default.type=ajp13
Can you resolve the 'localhost'?
See if you have localhost inside etc/hosts
or use 127.0.0.1 for host name.
Also, you can provide the mod_jk version used (1.2.8, etc.)
Mladen.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Problem with mod_jk 1.2 - 500 Internal Server Error

2005-01-13 Thread Pat Maddox
Well, I managed to get it.  And I feel unbelievably stupid (as is the 
case with most problems).  The simple fix is
worker.list=default
rather than
workers.list=default

On Jan 13, 2005, at 11:03 AM, Mladen Turk wrote:
Pat Maddox wrote:
I'm using JBoss 4.0.1 with integrated Tomcat 5, and I'm trying to 
connect it to Apache 2.  Whenever I make a request to a resource that 
should be passed along to Tomcat, I get a 500 Internal Server error.  
Looking at the mod_jk.log shows:
[Thu Jan 13 13:45:34 2005]  [jk_worker.c (94)]: 
wc_get_worker_for_name, done did not find a worker
# Define worker
workers.list=default
worker.default.port=8009
worker.default.host=localhost
worker.default.type=ajp13

Can you resolve the 'localhost'?
See if you have localhost inside etc/hosts
or use 127.0.0.1 for host name.
Also, you can provide the mod_jk version used (1.2.8, etc.)
Mladen.
-
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]


Long running requests and timeouts?

2005-01-13 Thread Andrzej Jan Taramina
I have a situation where some requests that get sent to Tomcat are very long 
running (basically batch operations).  I've been testing with a request that 
takes just over 7 minutes to process and returns and XML document as a 
response.

The problem I'm having is that the response gets truncated.  It's always 
truncated at a consistent spot (3207 characters for some reason, that's what 
Firefox reports).

Shorter running requests don't truncate anything, regardless of how long the 
response might be.

I'm running Tomcat 5.0.28 and my Connector in the Tomcat server.xml file 
looks like:

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

Is the connectionTimeout value the one that might be contributing to this 
behaviour?

Are there any other timeout settings that might affect this?

Thanks!

Andrzej Jan Taramina
Chaeron Corporation: Enterprise System Solutions
http://www.chaeron.com


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



how to load outside configuration file in tomcat 5

2005-01-13 Thread Limin Zhang
hello!
i'm using a 3rd party natural language processing tool (API) in my web 
application. the NLP tool needs a configuration file (NLPRegistry.cfg) to 
run properly. i specified the absolute path in the program, but somehow 
tomcat 5 can't find the configuration file.  it simply gives following 
error message:

[http-9000-Processor25]No registry file given process document
Something went wrong: java.lang.Exception: Cannot open the 
null\data\null\lexicon\\ java.io.FileNotFoundException: 
null\data\null\lexicon  (The system cannot find the path specified)

how can i let tomcat find the configuration file?  thanks a lot for any 
help!!

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


Re: Apache returning different sizes for same request [was Re: Controlling caching / session collision]

2005-01-13 Thread Brian McEntire
Ouch.  ;)
That was it. We searched through all the JSPs and fixed that in several 
places. The problems are greatly reduced now. Thank you very much!

Is there any analog to this in Servlets? Is there a clearly incorrect 
way variables could be scoped in the a Servlet that could lead to the same 
thing?

The developer, within the JSPs, has a couple lines like:
jsp:useBean id=statehsaBean class=postgres.PostgreSQLBean 
scope=page /

And since we are still experiencing the problem (though much less), I 
wonder if the Servlets now have some similar global variable problem.

Thanks again!
On Mon, 10 Jan 2005, Tim Funk wrote:
The code below is a disaster. It creates a variable called result at the 
servlet instance level. This means that 2 concurrent requests to that JSP 
page will cause the page to fail. I didn't read the reast of the code - 
because that line is so evil - that ... well I'm speechless.

Change it to:
%
   ResultSet result;
%
-Tim
Brian McEntire wrote:
Looking at one of the problematic JSP pages, I see (snippets):
%!
ResultSet result;
%
-
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]


Sporadic Session Bug

2005-01-13 Thread Tyson Nunemacher
Hi folks,
I'm running a Java/J2EE/EJB (stateless, no CMP) app on Jonas 4.1.2 with 
embedded Tomcat 5.0 and Struts 1.2.  My problem also existed when I used 
to run the app in JBoss 3.2.2 with embedded Tomcat 4.1 and Struts 1.0. 
We're currently using Java 1.4.2_04 from Sun.

The issue is that our app will from time to time lose track of an 
existing session for a split second.  We use Java sessions to store only 
a GUID, which is then used to access a wealth of session-specific info 
stored in database tables.  One way the bug manifests itself is the user 
will be cruising along, happily retrieving session info, when all of a 
sudden, a page will come up blank.  If the user refreshes the page, 
forcing another request, the old session will be retrieved and the 
proper data displayed.  It doesn't create a new session on the second 
request.  We also use Tiles, and when a tileset loads, occasionally a 
random single tile will through a servlet exception stemming from not 
being able to find the session.  Again, a refresh makes it go away.

A couple clues:
1.) Though we've rolled our own session system to a large extent, I've 
traced the issue through painstaking debugging to a request.getSession() 
call which can return a valid session object one moment, null the next, 
then the same valid session object directly after that.  The function 
which makes this call is used by nearly every request handler (Struts 
action), and works most of the time.

2.) Null sessions seem to turn up with more frequency when our system 
resources are being stressed.

This has been a problem for us for a long time, but one we've been able 
to live with because it's sporadic and we have a reasonably 
understanding user base.  ;)  But it's also a tricky one, as it doesn't 
appear to be a problem directly with our code.  It's possible that it's 
a configuration issue, or we're abusing a feature we shouldn't be, or... 
   You get the idea.  And I'm not sure if it's a Struts issue or a 
Tomcat issue or something else.  It's apparently not our EJB container, 
as it shows up in both JBoss and Jonas.

I haven't found much on Google regarding session objects going randomly 
null when they legitimately exist both before and after.  I can include 
a code snippet if you think it'll help, but it's run of the mill 
request.getSession().getAttribute(xxx) stuff.

Any ideas?
Thanks in advance,
Tyson
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Using DNS name instead of port number

2005-01-13 Thread John Martyniak
I would like to be able to use the following Virtual host
apps.beforedawn.com to run my app.  Instead of having to include the 8080.
Their is also a Webserver running on the box.

So that I could run http://apps.beforedawn.com/index.jsp

So my question is can this be done inside of Tomcat, or will I need to use
mod_jk.

Thanks for any and all help.

-John



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



Re: Missing application log file, Realm authenication error

2005-01-13 Thread Peter Moore
I've managed to figure out what was going on.  Hopefully someone else 
will find my struggles to be of use.

Using the ant deploy task doesn't appear to do exactly the same thing as 
using Upload a WAR file to install via the manager application.  I was 
assuming this was true, because I wasn't sure I could trust how I was 
using the ant task yet **.  The ant task will look inside your META-INF 
folder for a context.xml file, and (in TC 4.1) install that context 
into server.xml.  However, directly using the manager application 
doesn't do that.  I think that means that the default context was being 
used for my application, rather than the one in context.xml.  Somehow, 
that was causing my SQLException to not get logged at all.  BTW, the 
SQLException I was looking for was Server connection failure during 
transaction, which appears to have been caused by using an older 
version of the MySQL Connector/J component (3.0.4) with a newer version 
of the MySQL server (4.1.7).  [EMAIL PROTECTED] multi-server applications...

** If you ever get this error:  java.net.UnknownHostException: C, 
you're probably passing a war file with an absolute path something like 
C:\...\warfile.war.  There may be some way to make the passed file 
relative, but the way I found to get around this is to change file:// 
to file:///.

-Peter

Peter Moore wrote:
Hi,
I'm trying to track down an odd Realm authentication problem, but I 
can't seem to get anything to show up in any of the logs.  My 
application (henceforth referred to as myapp) deploys successfully 
via war file with the manager application.  When I try to access those 
portions of the application under security constraints, I am presented 
with an HTTP BASIC authentication dialog.  However, the dialog keeps 
popping up, even though I know I'm using the correct username and 
password.  I know this, because I've compared the SHA digest in the 
database against one generated from the password.  Take that for what 
it's worth...  ;-)

What's really bugging me is that _NOTHING_ gets logged as to why the 
authentication failed.  One interesting thing I'm seeing, is that even 
though I've defined a Logger in my Context (see below), this log 
file isn't showing up.  I get catalina.out and 
localhost_log.date.txt, but nothing else.  In localhost_log, I do 
see this line, so I have to assume that something is happening:
   2005-01-12 16:35:00 ContextConfig[/myapp]: Configured an 
authenticator for method BASIC

Any help on this would be greatly appreciated, as I'm about out of ideas.
Versions:
---
Tomcat: 4.1.31
Red Hat 9.0  (yes, I have this as part of the TC start: export 
LD_ASSUME_KERNEL=2.4.1)
Sun JVM: 1.5

I have made the following additions to server.xml for my two JDBC 
datasources:
 

   Resource name=jdbc/db_devel auth=Container 
type=javax.sql.DataSource/
   ResourceParams name=jdbc/db_devel
...
   (Yes, this information is correct.  It has been tested and 
double-checked.)
   /ResourceParams

   Resource name=jdbc/db_stats auth=Container 
type=javax.sql.DataSource/
   ResourceParams name=jdbc/db_stats
...
   (Yes, this information is correct)
   /ResourceParams
 


My application's context.xml file:
-
Context
  debug=4
  reloadable=false
  swallowOutput=true
  crossContext=false
  Logger
   verbosity=4
   className=org.apache.catalina.logger.FileLogger
   prefix=pcs_log.
   suffix=.txt
   timestamp=true
  /
 
   !-- Naming indirection, to let application use generalized names 
for lookup.  --
   ResourceLink name=db_default global=jdbc/db_devel 
type=javax.sql.DataSource/
   ResourceLink name=db_stats global=jdbc/db_stats 
type=javax.sql.DataSource/  
   Realm
   resourceName=Application Secure Realm
   className=org.apache.catalina.realm.DataSourceRealm
   dataSourceName=jdbc/db_devel
   userTable=employee
   userNameCol=login
   userCredCol=password
   userRoleTable=employee
   roleNameCol=role
   digest=SHA
   /
/Context

Interesting bits from my applicaton's web.xml:
--
  resource-ref
 descriptionDB Connection/description
 res-ref-namedb_default/res-ref-name
 res-typejavax.sql.DataSource/res-type
 res-authContainer/res-auth
  /resource-ref
  resource-ref
 descriptionDB Connection for statistics only/description
 res-ref-namedb_stats/res-ref-name
 res-typejavax.sql.DataSource/res-type
 res-authContainer/res-auth
  /resource-ref
...
   security-constraint
   web-resource-collection
   web-resource-nameAdmin/web-resource-name
   url-pattern/admin/*/url-pattern
   /web-resource-collection
   

Re: Using DNS name instead of port number

2005-01-13 Thread Hassan Schroeder
John Martyniak wrote:
I would like to be able to use the following Virtual host
apps.beforedawn.com to run my app.  Instead of having to include the 8080.
Their is also a Webserver running on the box.
So that I could run http://apps.beforedawn.com/index.jsp
So my question is can this be done inside of Tomcat, or will I need to use
mod_jk.
If the system in question has multiple IP addresses, yes. Configure
your Tomcat connector to listen to the appropriate address(es) on
port 80 and configure Apache to listen to the other address(es).
--
Hassan Schroeder - [EMAIL PROTECTED]
Webtuitive Design ===  (+1) 408-938-0567   === http://webtuitive.com
  dream.  code.

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


Re: Using DNS name instead of port number

2005-01-13 Thread John Martyniak
The server currently only has one IP address and several virtual hosts.

Some that are served by the Web Server and some that are going to be served
by Tomcat.

For example on this box I would to do the following:
Web Server:
Serves http://www.beforedawn.com

Tomcat Server:
http://apps.beforedawn.com/index.jsp
http://diagnostics.beforedawn.com/index.jsp

Is this possible? 

-John


On 1/13/05 3:38 PM, Hassan Schroeder [EMAIL PROTECTED] wrote:

 John Martyniak wrote:
 I would like to be able to use the following Virtual host
 apps.beforedawn.com to run my app.  Instead of having to include the 8080.
 Their is also a Webserver running on the box.
 
 So that I could run http://apps.beforedawn.com/index.jsp
 
 So my question is can this be done inside of Tomcat, or will I need to use
 mod_jk.
 
 If the system in question has multiple IP addresses, yes. Configure
 your Tomcat connector to listen to the appropriate address(es) on
 port 80 and configure Apache to listen to the other address(es).



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



Re: Using DNS name instead of port number

2005-01-13 Thread Hassan Schroeder
John Martyniak wrote:
The server currently only has one IP address and several virtual hosts.

For example on this box I would to do the following:
Web Server:
Serves http://www.beforedawn.com
Tomcat Server:
http://apps.beforedawn.com/index.jsp
http://diagnostics.beforedawn.com/index.jsp
Is this possible? 
Yeah, but with only one IP you'll have to use mod_jk or mod_proxy.
I'd say adding an IP address would be the easier setup :-)
FWIW, this is how I run my dev box -- a couple of IP addresses for
different versions of Tomcat and one for Apache (for the occasional
PHP job).
--
Hassan Schroeder - [EMAIL PROTECTED]
Webtuitive Design ===  (+1) 408-938-0567   === http://webtuitive.com
  dream.  code.

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


Re: Using DNS name instead of port number

2005-01-13 Thread John Martyniak
Unfortunately this is for one of my external boxes (read have to pay ungodly
sums of money to get another block of IP addresses).

So if I set this up using mod_jk then I will have to do the following

VirtualHost www.befordawn.com
DocumentRoot /var/www/htmlbeforedawn
ErrorLog logs/beforedawn_error_log
DirectoryIndex  index.php index.html index.htm index.shtml
ServerAdmin root@ beforedawn.com
# ServerName www. beforedawn.com
ServerSignature email
TransferLog logs/ beforedawn_access_log
/VirtualHost

VirtualHost apps.beforedawn.com
DocumentRoot /var/www/appbeforedawn
ErrorLog logs/appbeforedawn_error_log
DirectoryIndex  index.php index.html index.htm index.shtml
ServerAdmin [EMAIL PROTECTED]
# ServerName apps.beforedawn.com
ServerSignature email
TransferLog logs/appsbeforedawn_access_log

JKMount /apps worker1
JKMount /apps/* worker1
/VirtualHost

VirtualHost diagnostics.beforedawn.com
DocumentRoot /var/www/diagbeforedawn
ErrorLog logs/diagbeforedawn_error_log
DirectoryIndex  index.php index.html index.htm index.shtml
ServerAdmin [EMAIL PROTECTED]
# ServerName diagnostics.beforedawn.com
ServerSignature email
TransferLog logs/diagbeforedawn_access_log

JKMount /diag worker1
JKMount /diag/* worker1
/VirtualHost


Will this get me http://apps.beforedawn.com/index.jsp and
http://diagnostics.beforedawn.com/index.jsp?

Or would I have to put a rewrite in also?  So that it would redirect any
request to http://apps.beforedawn.com/apps/index.jsp

Because I assume that the JKMount must correspond to the directory in the
webapps directory.

I am so confused on the way that mod_jk works!

-john



On 1/13/05 4:11 PM, Hassan Schroeder [EMAIL PROTECTED] wrote:

 John Martyniak wrote:
 The server currently only has one IP address and several virtual hosts.
 
 For example on this box I would to do the following:
 Web Server:
 Serves http://www.beforedawn.com
 
 Tomcat Server:
 http://apps.beforedawn.com/index.jsp
 http://diagnostics.beforedawn.com/index.jsp
 
 Is this possible?
 
 Yeah, but with only one IP you'll have to use mod_jk or mod_proxy.
 
 I'd say adding an IP address would be the easier setup :-)
 
 FWIW, this is how I run my dev box -- a couple of IP addresses for
 different versions of Tomcat and one for Apache (for the occasional
 PHP job).



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



Tomcat issues

2005-01-13 Thread Krishna Gunturu \(kgunturu\)
Hi all,

If any one of you come across some sort of comprehensive guide for tuning an
apache-mod_jk-tomcat configuration, i would really appreciate you sending
it.

Thanks in advance,
-Krishna

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



[OT] Making jsvc multiple instances enabled

2005-01-13 Thread Wolfgang Hackl
Hi!
I would like to discuss whether it makes sense to have the commons 
daemon able to work with multiple tomcat instances out of the box. Since 
I know of at least two jsvc commiters reading this list and I think this 
is of interest for tomcat users, too, I start a discussion thread here.

The commons daemon ships a Tomcat5.sh script which starts Tomcat as an 
operating system service on UNIX-like systems. The concept which I 
propose is to enhance this script and add a wrapper script to the 
distribution of the commons daemon. The wrapper script's task is to 
enable customisation and to be placed in /etc/init.d (or wherever your 
start scripts reside). It exports an individual instance name, the 
CATALINA_BASE, additional CATALINA_OPTS and finally calls the Tomcat5.sh 
script. Please see the end of this message for full examples of these 
scripts.

There are some shortcomings in Tomcat5.sh in terms of multiple instances 
that force you either to make an adapted copy of Tomcat5.sh for each 
instance (which is impractical for maintenance) or to adapt this script 
in a sophisticated way and apply your own concept to make Tomcat5.sh 
reusable. Following are the issues that need to be addressed:
- Test whether CATALINA_BASE is set; otherwise (i.e. Tomcat5.sh is 
called without wrapper script on a single instance setup) set it to 
CATALINA_HOME
- TMP_DIR: change to $CATALINA_BASE/temp
- pid file: make it unique by adding the instance's name to the file name
- CLASSPATH: use commons-daemon.jar from the DAEMON_HOME instead of 
CATALINA_HOME's
- improve parameters for the jsvc call:
-- specify the pidfile: -pidfile $PIDFILE \
-- specify the CATALINA_BASE: -Dcatalina.base=$CATALINA_BASE \
- in order to stop the right instance, reuse the pid file specified 
previously

So the questions are:  Does anyone agree with me and does it make sense 
to file a patch or a feature request to the commons daemon team?

Kind regards
Wolfgang
--- start Wrapper Script /etc/init.d/tomcatTest.sh 

#!/bin/bash
# A wrapper script to set instance dependant variables and start the 
tomcat as
# an OS service afterwards
#
export INSTANCE_NAME=Test
export CATALINA_BASE=/usr/local/tomcat/instances/Test
export CATALINA_OPTS= -Djava.awt.headless=true

# Call the jsvc script to launch a Tomcat instance
/usr/local/tomcat/Tomcat5.sh $1
--- end  Wrapper Script /etc/init.d/tomcatTest.sh 


--- start adapted Tomcat5.sh -- (licence snipped) 
---
JAVA_HOME=/usr/local/java/jdk1.5.0_01
CATALINA_HOME=/usr/local/tomcat/current

# if CATALINA_BASE is not set assign the value of CATALINA_HOME to it
if [ -z CATALINA_BASE ]
then
   CATALINA_BASE=$CATALINA_HOME
fi
DAEMON_HOME=/usr/local/javalibs/jakarta-commons/daemon/
TOMCAT_USER=www-data
TMP_DIR=$CATALINA_BASE/temp
CATALINA_OPTS=$CATALINA_OPTS
CLASSPATH=\
$JAVA_HOME/lib/tools.jar:\
$DAEMON_HOME/dist/commons-daemon.jar:\
$CATALINA_HOME/bin/bootstrap.jar
PIDFILE=/var/run/jsvc-$INSTANCE_NAME.pid
case $1 in
 start)
   #
   # Start Tomcat
   #
   $DAEMON_HOME/src/native/unix/jsvc \
   -user $TOMCAT_USER \
   -home $JAVA_HOME \
   -pidfile $PIDFILE \
   -Dcatalina.home=$CATALINA_HOME \
   -Dcatalina.base=$CATALINA_BASE \
   -Djava.io.tmpdir=$TMP_DIR \
   -outfile $CATALINA_BASE/logs/catalina.out \
   -errfile  '1' \
   $CATALINA_OPTS \
   -cp $CLASSPATH \
   org.apache.catalina.startup.Bootstrap
   #
   # To get a verbose JVM
   #-verbose \
   # To get a debug of jsvc.
   #-debug \
   ;;
 stop)
   #
   # Stop Tomcat
   #
   PID=`cat $PIDFILE`
   if [ -n $PID ]
   then
   kill $PID
   rm $PIDFILE
   fi
   ;;
 restart)
   #
   # Restart Tomcat
   #
   $0 stop
   $0 start
   ;;
 *)
   echo Usage $0 {start|stop|restart}
   exit 1;;
esac
--- end adapted Tomcat5.sh 


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


Re: Using DNS name instead of port number

2005-01-13 Thread Hassan Schroeder
John Martyniak wrote:
Unfortunately this is for one of my external boxes (read have to pay ungodly
sums of money to get another block of IP addresses).
Well, you only need one, eh?  :-)
So if I set this up using mod_jk then I will have to do the following
It's been a long time since I used Apache in front of Tomcat, but
that generally looked OK. Try it. You certainly won't need to use
mod_rewrite, though.
--
Hassan Schroeder - [EMAIL PROTECTED]
Webtuitive Design ===  (+1) 408-938-0567   === http://webtuitive.com
  dream.  code.

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


Re: Using DNS name instead of port number

2005-01-13 Thread John Martyniak
Thanks for the help.

I will try and get the mod_jk working.  I think that will give me the most
flexibility for the future.

-John


On 1/13/05 5:53 PM, Hassan Schroeder [EMAIL PROTECTED] wrote:

 John Martyniak wrote:
 Unfortunately this is for one of my external boxes (read have to pay ungodly
 sums of money to get another block of IP addresses).
 
 Well, you only need one, eh?  :-)
 
 So if I set this up using mod_jk then I will have to do the following
 
 It's been a long time since I used Apache in front of Tomcat, but
 that generally looked OK. Try it. You certainly won't need to use
 mod_rewrite, though.



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



Benefit of multiple workers?

2005-01-13 Thread John Martyniak
I am preparing to set up my first production Tomcat using mod_jk.

So what is the benefit of multiple workers?

I can see that you can specify one worker per host, so the advantage would
be that you could have one Webserver drive several app servers.

I also read on this list, that you could use mod_jk2 to do load balancing.
(is the same true for mod_jk 1.2.x?)

Are these the only benefits?

Or am I completely missing the point?

-John



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



Re: Apache returning different sizes for same request [was Re: Controlling caching / session collision]

2005-01-13 Thread Tim Funk
%! String myVar =;%
creates an instance myVar in the servlet. Only 1 instance of a given servlet 
is loaded at a time and many requests all execute the service() method 
concurrently.

%String myVar=;%
would create a variable in the scope of the _jspService() method. Which is 
thread safe.

jsp:useBean is thread safe. (Unless the variable is pulled from application 
or session scope)

-Tim
Brian McEntire wrote:
Ouch.  ;)
That was it. We searched through all the JSPs and fixed that in several 
places. The problems are greatly reduced now. Thank you very much!

Is there any analog to this in Servlets? Is there a clearly incorrect 
way variables could be scoped in the a Servlet that could lead to the 
same thing?

The developer, within the JSPs, has a couple lines like:
jsp:useBean id=statehsaBean class=postgres.PostgreSQLBean 
scope=page /

And since we are still experiencing the problem (though much less), I 
wonder if the Servlets now have some similar global variable problem.

Thanks again!
On Mon, 10 Jan 2005, Tim Funk wrote:
The code below is a disaster. It creates a variable called result at 
the servlet instance level. This means that 2 concurrent requests to 
that JSP page will cause the page to fail. I didn't read the reast of 
the code - because that line is so evil - that ... well I'm speechless.

Change it to:
%
   ResultSet result;
%
-Tim
Brian McEntire wrote:
Looking at one of the problematic JSP pages, I see (snippets):
%!
ResultSet result;
%
-
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: sessions do not work from homedirs and servlets do not work through apache

2005-01-13 Thread Dennis Payne
My implementation is not as complex as yours, so my suggestion may not
work for you...

We always use the request object to get access to the session both in
the servlet and the JSP (We don't use any specialized JSP tags to do
this.  We always use putAttribute to put a Serializable object on the
session in the servlet.  We always use getAttribute to retreive the
object from the session in the JSP.  The object must be Serializable.

Hope this helps in some way...

 [EMAIL PROTECTED] 01-13-2005 11:49 
Hello everyone,
I am using apache2, tomcat5.5, and jk2. I have configured my tomcat to
run from my user home directories.
Also I have configure apache to run with tomcat with jk2 through my
home
directories as well.
Now, I am facing two problems that are driving me crazy, here they are
in order of importance given that I have to have two project up by
tomorrow and they do not work because of these issues, please help!!!
 
1)   JPS sessions are working through tomcat root but not from my
homedirs. There is an example called carts under the jsp-examples in
tomcat root and it works great in there. When I tried to run this same
example inside my home directoy it does not work. UseBean drops
previously created instances of a bean. So when a new jsp tries to
read
parameters being passed from a previous jsp, everything is null
because
the session is re-created and not re-used. Please someone tell me what
is going on. My real project uses jsp session and it is not working
because all the values are reading null!!
 
2)   the servlets work from tomcat port 8080 through my homedirs,
but through apache. JSP work through apache though. Example) The
following works fine:  http://myserver:8080/~ccasas/servlet/hello 
http://sp:8080/~ccasas/servlet/hello  but I cannot make the
following
work: http://myserver/~ccasas/servlet/hello 
 
I would really appreciate your help on this, I am already going nuts.
 
 
 
 
 
 
!--Claudia Casas--
 

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



RE: sessions do not work from homedirs and servlets do notwork through apache

2005-01-13 Thread Casas, Claudia
We thought that the data from the session was being lost, but actually
the session itself is recreated with a new ID every time we go from one
jsp to the next one. I thought that tomcat manages the sessions through
cookies so I do not see how my session id and data is being lost.
By the way my project was working perfectly with tomcat 1.3 but when I
upgraded to tomcat 5 is when the session problem started.

-Original Message-
From: Dennis Payne [mailto:[EMAIL PROTECTED] 
Sent: Thursday, January 13, 2005 4:34 PM
To: tomcat-user@jakarta.apache.org
Subject: Re: sessions do not work from homedirs and servlets do notwork
through apache

My implementation is not as complex as yours, so my suggestion may not
work for you...

We always use the request object to get access to the session both in
the servlet and the JSP (We don't use any specialized JSP tags to do
this.  We always use putAttribute to put a Serializable object on the
session in the servlet.  We always use getAttribute to retreive the
object from the session in the JSP.  The object must be Serializable.

Hope this helps in some way...

 [EMAIL PROTECTED] 01-13-2005 11:49 
Hello everyone,
I am using apache2, tomcat5.5, and jk2. I have configured my tomcat to
run from my user home directories.
Also I have configure apache to run with tomcat with jk2 through my
home
directories as well.
Now, I am facing two problems that are driving me crazy, here they are
in order of importance given that I have to have two project up by
tomorrow and they do not work because of these issues, please help!!!
 
1)   JPS sessions are working through tomcat root but not from my
homedirs. There is an example called carts under the jsp-examples in
tomcat root and it works great in there. When I tried to run this same
example inside my home directoy it does not work. UseBean drops
previously created instances of a bean. So when a new jsp tries to
read
parameters being passed from a previous jsp, everything is null
because
the session is re-created and not re-used. Please someone tell me what
is going on. My real project uses jsp session and it is not working
because all the values are reading null!!
 
2)   the servlets work from tomcat port 8080 through my homedirs,
but through apache. JSP work through apache though. Example) The
following works fine:  http://myserver:8080/~ccasas/servlet/hello 
http://sp:8080/~ccasas/servlet/hello  but I cannot make the
following
work: http://myserver/~ccasas/servlet/hello 
 
I would really appreciate your help on this, I am already going nuts.
 
 
 
 
 
 
!--Claudia Casas--
 

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



Authentication problem in Sending email from servlet. (tomcate 5)

2005-01-13 Thread Daxin Zuo
Hi,
   In my web page, user sends email with attachment, so upload is related. I
load the file in a byte array, and try to send with JavaMail(I know there is
Mail api in Tomcat-Common. But I have no a good example).

 The related code is copied at the end.
 The email serve needs no user-name and password, because the C++ program
sends email without authentication.

 if I set prop.put(mail.smtp.auth, false);
 Exception: SendEmail Error: javax.mail.AuthenticationFailedException

 If I set to Password and username to , or set the user name to the
From-Email address:
SendEmail Error: com.sun.mail.smtp.SMTPSendFailedException: 530 5.7.0
Authentication required

Please tell me what's wrong. Thanks.

  import javax.mail.*;
  import javax.mail.internet.*;
  import javax.activation.*;
  import org.apache.commons.net.smtp.*;
  import org.apache.commons.net.io.Util;
  

  Properties prop = System.getProperties();
  prop.put(mail.smtp.host, szServer);
  prop.put(mail.smtp.from, strFrom);
  prop.put(mail.transport.protocol, SMTP);
  final String user = tool.isnull2(szAccount)==?
 strFrom:// From email Address
 tool.isnull2(szAccount);// Account of the user.
  final String pwd = tool.isnull2(szPassword);
  Authenticator auth = null;

prop.put(mail.smtp.auth, true);
auth = new Authenticator (){
  public PasswordAuthentication getPasswordAuthentication() {
return new PasswordAuthentication(user, pwd);
  }
};

  Session ses1=Session.getInstance(prop,auth);

  MimeMessage msg = new MimeMessage(ses1);
  msg.setFrom(new InternetAddress(strFrom));
  String[] Recipts = strRecipts.split(,);
  for( int k=0; k  Recipts.length; k++)
msg.addRecipient(Message.RecipientType.TO,
   new InternetAddress(Recipts[k]));
  if (!tool.isnull(strCcRecipts)){
Recipts = strCcRecipts.split(,);
for (int k = 0; k  Recipts.length; k++)
  msg.addRecipient(Message.RecipientType.CC,
 new InternetAddress(Recipts[k]));
  }

  msg.setSubject(strSubject);
  msg.setHeader(X-Mailer, Java Mail);
  MimeBodyPart  messageBodyPart = new MimeBodyPart();
  messageBodyPart.setDisposition(Part.INLINE);
  messageBodyPart.setContent(strBodyText, text/plain);
  MimeMultipart multipart = new MimeMultipart();
  multipart.addBodyPart(messageBodyPart);

  if (AttacheFileSize  0) {  // one attache file only.
messageBodyPart = new MimeBodyPart();
messageBodyPart.setDataHandler(new DataHandler(
 ByteArrayOfFile, // byte[] it holds the file contents
 myFileMimeType));//String, mime type of the file
messageBodyPart.setFileName(astrAttach);
multipart.addBodyPart(messageBodyPart);
  }

  msg.setContent(multipart);
  msg.setSentDate(new Date());
  Transport.send(msg);


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



Re: Tomcat issues

2005-01-13 Thread Tim Funk
http://wiki.apache.org/jakarta-tomcat/UsefulLinks
-Tim
Krishna Gunturu (kgunturu) wrote:
Hi all,
If any one of you come across some sort of comprehensive guide for tuning an
apache-mod_jk-tomcat configuration, i would really appreciate you sending
it.
 
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: sessions do not work from homedirs and servlets do notwork through apache

2005-01-13 Thread Dennis Payne
One thing you might try is putting in debugging statements to print out
the session id at strategic points and discover when the session is
actually lost (changed).  Also, check anywhere a req.getSession(true)
might be found... that can be a source of ulcers sometimes...  (This is
just simple stuff and may not even help)

Good Luck!

 [EMAIL PROTECTED] 01-13-2005 16:46 
We thought that the data from the session was being lost, but actually
the session itself is recreated with a new ID every time we go from
one
jsp to the next one. I thought that tomcat manages the sessions
through
cookies so I do not see how my session id and data is being lost.
By the way my project was working perfectly with tomcat 1.3 but when I
upgraded to tomcat 5 is when the session problem started.

-Original Message-
From: Dennis Payne [mailto:[EMAIL PROTECTED] 
Sent: Thursday, January 13, 2005 4:34 PM
To: tomcat-user@jakarta.apache.org 
Subject: Re: sessions do not work from homedirs and servlets do
notwork
through apache

My implementation is not as complex as yours, so my suggestion may not
work for you...

We always use the request object to get access to the session both in
the servlet and the JSP (We don't use any specialized JSP tags to do
this.  We always use putAttribute to put a Serializable object on the
session in the servlet.  We always use getAttribute to retreive the
object from the session in the JSP.  The object must be Serializable.

Hope this helps in some way...

 [EMAIL PROTECTED] 01-13-2005 11:49 
Hello everyone,
I am using apache2, tomcat5.5, and jk2. I have configured my tomcat to
run from my user home directories.
Also I have configure apache to run with tomcat with jk2 through my
home
directories as well.
Now, I am facing two problems that are driving me crazy, here they are
in order of importance given that I have to have two project up by
tomorrow and they do not work because of these issues, please help!!!
 
1)   JPS sessions are working through tomcat root but not from my
homedirs. There is an example called carts under the jsp-examples in
tomcat root and it works great in there. When I tried to run this same
example inside my home directoy it does not work. UseBean drops
previously created instances of a bean. So when a new jsp tries to
read
parameters being passed from a previous jsp, everything is null
because
the session is re-created and not re-used. Please someone tell me what
is going on. My real project uses jsp session and it is not working
because all the values are reading null!!
 
2)   the servlets work from tomcat port 8080 through my homedirs,
but through apache. JSP work through apache though. Example) The
following works fine:  http://myserver:8080/~ccasas/servlet/hello 
http://sp:8080/~ccasas/servlet/hello  but I cannot make the
following
work: http://myserver/~ccasas/servlet/hello 
 
I would really appreciate your help on this, I am already going nuts.
 
 
 
 
 
 
!--Claudia Casas--
 

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



[OT] Consulting Position in Costa Mesa, CA,

2005-01-13 Thread Ben Souther
I'm forwarding this message from a recruiter looking for a Tomcat/VMS
consultant in CA if anyone's interested.


Suzie Jimenez 
Sr. IT Recruiter
mailto:[EMAIL PROTECTED]

ISSG- Information Systems Support Group, LLC 
300 E Magnolia Blvd. Ste 403 4th Fl. 
Burbank, CA  91502 
818-846-4774 x116 
818-846-9971 Fax 
818-554-6825 Cell
www.issgjobs.com




On Thu, 2005-01-13 at 19:18, Suzie Jimenez wrote:
 I got your e-mail address from the Tomcat Solutions website...
 Your help would be appreciated...I am trying to get creative
here...help
me
 out~
 
 I am working with one of my clients and we need a Tomcat consultant
w/VMS
 background can you refer me to someone? PLEASE?!
 
 The position is in Costa Mesa, CA, e-mail or call me...thank you...
 
 I don't have that many details to give right now...we have a client
who
 called us this morning requesting a consultant. They are working on a
 project and are in need of someone with Tomcat experience with VMS. 
 
 All we know that this is a contract consulting position for a
Pharmaceutical
 firm  they are an AS400 shop as far as the pay is concerned it would
depend
 on the consultant's experience. If you are interested send me a Word
format
 resume for consideration w/ contract hourly rate. 
 
 
 Suzie Jimenez 
 Sr. IT Recruiter
 mailto:[EMAIL PROTECTED]
 
 ISSG- Information Systems Support Group, LLC 
 300 E Magnolia Blvd. Ste 403 4th Fl. 
 Burbank, CA  91502 
 818-846-4774 x116 
 818-846-9971 Fax 
 818-554-6825 Cell
 www.issgjobs.com www.issg.com 
 
 
 






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



Re: [OT] Consulting Position in Costa Mesa, CA,

2005-01-13 Thread Parsons Technical Services
Looks like she hit several of us on the list. 

But of course. Where else is a more logical place to go fishing?
- Original Message - 
From: Ben Souther [EMAIL PROTECTED]
To: Tomcat Users List tomcat-user@jakarta.apache.org
Cc: [EMAIL PROTECTED]
Sent: Thursday, January 13, 2005 8:03 PM
Subject: [OT] Consulting Position in Costa Mesa, CA,


I'm forwarding this message from a recruiter looking for a Tomcat/VMS
consultant in CA if anyone's interested.
Suzie Jimenez 
Sr. IT Recruiter
mailto:[EMAIL PROTECTED]

ISSG- Information Systems Support Group, LLC 
300 E Magnolia Blvd. Ste 403 4th Fl. 
Burbank, CA  91502 
818-846-4774 x116 
818-846-9971 Fax 
818-554-6825 Cell
www.issgjobs.com


On Thu, 2005-01-13 at 19:18, Suzie Jimenez wrote:
I got your e-mail address from the Tomcat Solutions website...
Your help would be appreciated...I am trying to get creative
here...help
me
out~
I am working with one of my clients and we need a Tomcat consultant
w/VMS
background can you refer me to someone? PLEASE?!
The position is in Costa Mesa, CA, e-mail or call me...thank you...
I don't have that many details to give right now...we have a client
who
called us this morning requesting a consultant. They are working on a
project and are in need of someone with Tomcat experience with VMS. 

All we know that this is a contract consulting position for a
Pharmaceutical
firm  they are an AS400 shop as far as the pay is concerned it would
depend
on the consultant's experience. If you are interested send me a Word
format
resume for consideration w/ contract hourly rate. 

Suzie Jimenez 
Sr. IT Recruiter
mailto:[EMAIL PROTECTED]

ISSG- Information Systems Support Group, LLC 
300 E Magnolia Blvd. Ste 403 4th Fl. 
Burbank, CA  91502 
818-846-4774 x116 
818-846-9971 Fax 
818-554-6825 Cell
www.issgjobs.com www.issg.com 





-
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: [OT] Consulting Position in Costa Mesa, CA,

2005-01-13 Thread Ben Souther
Yea, that's the one 'off topic' type of message I don't mind seeing in
here.


On Thu, 2005-01-13 at 20:14, Parsons Technical Services wrote:
 Looks like she hit several of us on the list. 
 
 But of course. Where else is a more logical place to go fishing?
 
 - Original Message - 
 From: Ben Souther [EMAIL PROTECTED]
 To: Tomcat Users List tomcat-user@jakarta.apache.org
 Cc: [EMAIL PROTECTED]
 Sent: Thursday, January 13, 2005 8:03 PM
 Subject: [OT] Consulting Position in Costa Mesa, CA,
 
 
  I'm forwarding this message from a recruiter looking for a Tomcat/VMS
  consultant in CA if anyone's interested.
  
  
  Suzie Jimenez 
  Sr. IT Recruiter
  mailto:[EMAIL PROTECTED]
  
  ISSG- Information Systems Support Group, LLC 
  300 E Magnolia Blvd. Ste 403 4th Fl. 
  Burbank, CA  91502 
  818-846-4774 x116 
  818-846-9971 Fax 
  818-554-6825 Cell
  www.issgjobs.com
  
  
  
  
  On Thu, 2005-01-13 at 19:18, Suzie Jimenez wrote:
  I got your e-mail address from the Tomcat Solutions website...
  Your help would be appreciated...I am trying to get creative
  here...help
  me
  out~
  
  I am working with one of my clients and we need a Tomcat consultant
  w/VMS
  background can you refer me to someone? PLEASE?!
  
  The position is in Costa Mesa, CA, e-mail or call me...thank you...
  
  I don't have that many details to give right now...we have a client
  who
  called us this morning requesting a consultant. They are working on a
  project and are in need of someone with Tomcat experience with VMS. 
  
  All we know that this is a contract consulting position for a
  Pharmaceutical
  firm  they are an AS400 shop as far as the pay is concerned it would
  depend
  on the consultant's experience. If you are interested send me a Word
  format
  resume for consideration w/ contract hourly rate. 
  
  
  Suzie Jimenez 
  Sr. IT Recruiter
  mailto:[EMAIL PROTECTED]
  
  ISSG- Information Systems Support Group, LLC 
  300 E Magnolia Blvd. Ste 403 4th Fl. 
  Burbank, CA  91502 
  818-846-4774 x116 
  818-846-9971 Fax 
  818-554-6825 Cell
  www.issgjobs.com www.issg.com 
  
  
  
  
  
  
  
  
  
  -
  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.x and mod_jk config

2005-01-13 Thread Parsons Technical Services
If virtual hosts are your only need, then forget apache and jk. If there is 
another reason for apache, then ok.

Also, you may want to move up to 5.x to get better support on the list and 
performance that can match Apache.

I, for one, have never touched 4.x Tomcat.
If you need Apache
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/howto/apache.html
If not
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/host.html
Doug
- Original Message - 
From: John Martyniak [EMAIL PROTECTED]
To: Tomcat Users List tomcat-user@jakarta.apache.org
Sent: Thursday, January 13, 2005 11:18 AM
Subject: Tomcat 4.1.x and mod_jk config


Hi everyone,
I am trying to configure my Apache server to talk to my Tomcat server 
using
mod_jk.  It is kind of a major nightmare.

The first step for me is to get it working at any level.  Meaning that I 
can
do http://localhost/examples/jsp/index.jsp and it brings the page up and
runs the jsp.  However this does not happen.

I am looking for any help, or links that people that can send my way so 
that
I can figure this out.

The second step is to be able to run multiple Virtual hosts on the 
webserver
with multiple webapps on the app server.

Any help that can be provided would be greatly appreciated.
Thank you,
-John

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


Jdeveloper 3.2.3 - Tomcat 5.5 migration: Inordinate delay in JSPs returning XML

2005-01-13 Thread Rajeev Singh
I am going nuts trying to figure out why:
An application created using Jdeveloper 3.2.3 (on Windows 2000). Some 
pages send XML as response. When using Jdev, JSP/Web-to-go server 
everything is fine. Now trying to migrate to TomCat 5.5. For pages that 
return XML, I am noticing a rather 'hang' like behaviour. As if client 
is waiting for something: Moreover when using telnet no such problem 
exists - the response comes boom. (Not sure how to look at header - I 
do not see any headers in the response in telnet)

I put a time stamp at beginning and end of my processing. Elapsed time 
is 20ms. Page size  500 b. All done locally. Browser (Internet 
Explorer) takes about 9s to display the XML. Page is buffered (32K, 
though doesn't help, autoflush on). I even tried with response.SetHeader
(Connection, close) no luck.

Similarly my (C++) client makes a bunch of call to such JSP pages 
returning XML. Each time the processing supposed to happen, happens in 
20-100ms. But the client seems to be 'waiting': gaps between timestamp 
for next request spans more than 10-30s. The client uses Microsoft's 
IXMLHttpRequest (MSXML v3). Any ideas what could be happening?

Also any reason for cookies not be written by Tomcat (the Jdev does 
write that)

mucho gracias


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



Re: Jdeveloper 3.2.3 - Tomcat 5.5 migration: Inordinate delay in JSPs returning XML

2005-01-13 Thread Ben Souther
 (Not sure how to look at header - I 
 do not see any headers in the response in telnet)

http://livehttpheaders.mozdev.org/
Will show you the headers..

http://www.circlemud.org/~jelson/software/tcpflow/
Will show you everything, as will Ethereal.




On Thu, 2005-01-13 at 22:03, Rajeev Singh wrote:
 I am going nuts trying to figure out why:
 An application created using Jdeveloper 3.2.3 (on Windows 2000). Some 
 pages send XML as response. When using Jdev, JSP/Web-to-go server 
 everything is fine. Now trying to migrate to TomCat 5.5. For pages that 
 return XML, I am noticing a rather 'hang' like behaviour. As if client 
 is waiting for something: Moreover when using telnet no such problem 
 exists - the response comes boom. (Not sure how to look at header - I 
 do not see any headers in the response in telnet)
 
 I put a time stamp at beginning and end of my processing. Elapsed time 
 is 20ms. Page size  500 b. All done locally. Browser (Internet 
 Explorer) takes about 9s to display the XML. Page is buffered (32K, 
 though doesn't help, autoflush on). I even tried with response.SetHeader
 (Connection, close) no luck.
 
 Similarly my (C++) client makes a bunch of call to such JSP pages 
 returning XML. Each time the processing supposed to happen, happens in 
 20-100ms. But the client seems to be 'waiting': gaps between timestamp 
 for next request spans more than 10-30s. The client uses Microsoft's 
 IXMLHttpRequest (MSXML v3). Any ideas what could be happening?
 
 Also any reason for cookies not be written by Tomcat (the Jdev does 
 write that)
 
 mucho gracias
 
 
 -
 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]



Tomcat 5.5 - path attrubute ignored in context fragments

2005-01-13 Thread Duncan, Sean
I'm migrating a suite of applications from 5.0.x to 5.5.x.  The path
attribute no longer has any effect on the web applications context path.  I
understand from the documentation that this is by design, but I think it may
have been a mistake.  Since we deploy a suite of applications to Tomcat our
contexts usually take the form /suitename/appname.  As far as I can see
there is no way to accomplish this without nesting the context entries
directly within server.xml (a practice which the documentation discourages
and I dread going back to).  Can we make the path attribute work again or is
there some secret file nameing scheme I can use for the context fragment?
 
Thanks in advance for your time.


Re: Tomcat 5.5 - path attrubute ignored in context fragments

2005-01-13 Thread Parsons Technical Services
From a previous poster, name your context xml file suitename#appname.xml and 
it will be deployed as needed.
Doug
- Original Message - 
From: Duncan, Sean [EMAIL PROTECTED]
To: tomcat-user@jakarta.apache.org
Sent: Thursday, January 13, 2005 10:15 PM
Subject: Tomcat 5.5 - path attrubute ignored in context fragments


I'm migrating a suite of applications from 5.0.x to 5.5.x.  The path
attribute no longer has any effect on the web applications context path. 
I
understand from the documentation that this is by design, but I think it 
may
have been a mistake.  Since we deploy a suite of applications to Tomcat 
our
contexts usually take the form /suitename/appname.  As far as I can see
there is no way to accomplish this without nesting the context entries
directly within server.xml (a practice which the documentation discourages
and I dread going back to).  Can we make the path attribute work again or 
is
there some secret file nameing scheme I can use for the context fragment?

Thanks in advance for your time.

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


How to remotely debug with Tomcat 5.5

2005-01-13 Thread Rolf Zelder
Hi

In Tomcat 4.2 I was able to define dt_socket (see below)  for remote
debugging in the catalina.bat file. How do I configure a dt_socket in Tomcat
5.5 ? 

Cheers
   Rolf



Catalina.bat:
set JAVA_OPTS=%JAVA_OPTS% -Xdebug
-Xrunjdwp:transport=dt_socket,address=3888,server=y,suspend=n


Strangers are friends, which haven't met yet ! 




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



Multicast IP/port for session replication issue on VMWare Linux cluster

2005-01-13 Thread Edmon Begoli
I am really just getting into the area of session replication via multicast, so 
I need somebody's help here.

I am running a cluster of Tomcats on a virtual Linux RH ES3 cluster on VMWare. 
(host-only networking, static IPs)

My session replication is set with default settings:

  className=org.apache.catalina.cluster.mcast.McastService
mcastAddr=228.0.0.4
mcastPort=45564
mcastFrequency=500
mcastDropTime=3000

It fails miserably even on the startup. It can't even create the device socket. 

Is there anything I need to configure respective to my cluster's sub-net or 
anything related to DHCP to make this work.

Any help is greatly appreciated.

Thank you,
Edmon

RE: Jdeveloper 3.2.3 - Tomcat 5.5 migration: Inordinate delay in JSPs returning XML

2005-01-13 Thread Rajeev Singh
Updates - setting Internet Explorer to use HTTP 1.0 makes the problem go
away. I still do not understand why this should happen and what can I do to
have the 1.1 mass of clients work with this correctly. Any insights would be
much appreciated.

FYI - the header seen by the JSP page is:
//inase of 1.1
Here are the header
Header:accept*/*,Header: ---,Header:user-agentMozill
a/4.0 (compatible; MSIE 6.0; Windows NT 5.0; .NET CLR
1.0.3705),Header:host127.0.0.1:8080,Header:connectionKeep-Alive,Header:cooki
eWTGBID=e1ujo01n

//incase of 1.0
Header:accept*/*,Header:accept-languageen-us,Header:user-agentMozilla/4.0
(compatible; MSIE 6.0; Windows NT 5.0; .NET CLR
1.0.3705),Header:hostlocalhost:8080,Header:,Header:cooki
eWTGBID=e2jl7opw; _tpc=_t%3D1105675240385%26_l%3D0


Rajeev Singh
Intelliplanner Software Systems, Inc.
203-483-4279(O)
203-558-3224(C)
www.intelliplanner.com , www.ipssi.com


This mail contains proprietary and confidential materials. Please destroy if
received in error and notify the sender

-Original Message-
From: Rajeev Singh [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 13, 2005 10:04 PM
To: tomcat-user@jakarta.apache.org
Subject: Jdeveloper 3.2.3 - Tomcat 5.5 migration: Inordinate delay in
JSPs returning XML


I am going nuts trying to figure out why:
An application created using Jdeveloper 3.2.3 (on Windows 2000). Some
pages send XML as response. When using Jdev, JSP/Web-to-go server
everything is fine. Now trying to migrate to TomCat 5.5. For pages that
return XML, I am noticing a rather 'hang' like behaviour. As if client
is waiting for something: Moreover when using telnet no such problem
exists - the response comes boom. (Not sure how to look at header - I
do not see any headers in the response in telnet)

I put a time stamp at beginning and end of my processing. Elapsed time
is 20ms. Page size  500 b. All done locally. Browser (Internet
Explorer) takes about 9s to display the XML. Page is buffered (32K,
though doesn't help, autoflush on). I even tried with response.SetHeader
(Connection, close) no luck.

Similarly my (C++) client makes a bunch of call to such JSP pages
returning XML. Each time the processing supposed to happen, happens in
20-100ms. But the client seems to be 'waiting': gaps between timestamp
for next request spans more than 10-30s. The client uses Microsoft's
IXMLHttpRequest (MSXML v3). Any ideas what could be happening?

Also any reason for cookies not be written by Tomcat (the Jdev does
write that)

mucho gracias


-
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: WELCOME to tomcat-user@jakarta.apache.org

2005-01-13 Thread Dinesh Sharma
Hi,
  I want to define my application with DEFAULT CONTEXT. When i
changes the context root from to /, then context fragment file is
changed to [.xml] and tomcat is not able to load properly. Anybody
have any idea on this???

In General How do i define context / for my application?

Thanks,
D



On 14 Jan 2005 04:42:43 -, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:
 Hi! This is the ezmlm program. I'm managing the
 tomcat-user@jakarta.apache.org mailing list.
 
 I'm working for my owner, who can be reached
 at [EMAIL PROTECTED]
 
 Acknowledgment: I have added the address
 
   [EMAIL PROTECTED]
 
 to the tomcat-user mailing list.
 
 Welcome to [EMAIL PROTECTED]
 
 Please save this message so that you know the address you are
 subscribed under, in case you later want to unsubscribe or change your
 subscription address.
 
 --- Administrative commands for the tomcat-user list ---
 
 I can handle administrative requests automatically. Please
 do not send them to the list address! Instead, send
 your message to the correct command address:
 
 To subscribe to the list, send a message to:
   [EMAIL PROTECTED]
 
 To remove your address from the list, send a message to:
   [EMAIL PROTECTED]
 
 Send mail to the following for info and FAQ for this list:
   [EMAIL PROTECTED]
   [EMAIL PROTECTED]
 
 Similar addresses exist for the digest list:
   [EMAIL PROTECTED]
   [EMAIL PROTECTED]
 
 To get messages 123 through 145 (a maximum of 100 per request), mail:
   [EMAIL PROTECTED]
 
 To get an index with subject and author for messages 123-456 , mail:
   [EMAIL PROTECTED]
 
 They are always returned as sets of 100, max 2000 per request,
 so you'll actually get 100-499.
 
 To receive all messages with the same subject as message 12345,
 send an empty message to:
   [EMAIL PROTECTED]
 
 The messages do not really need to be empty, but I will ignore
 their content. Only the ADDRESS you send to is important.
 
 You can start a subscription for an alternate address,
 for example [EMAIL PROTECTED], just add a hyphen and your
 address (with '=' instead of '@') after the command word:
 [EMAIL PROTECTED]
 
 To stop subscription for this address, mail:
 [EMAIL PROTECTED]
 
 In both cases, I'll send a confirmation message to that address. When
 you receive it, simply reply to it to complete your subscription.
 
 If despite following these instructions, you do not get the
 desired results, please contact my owner at
 [EMAIL PROTECTED] Please be patient, my owner is a
 lot slower than I am ;-)
 
 --- Enclosed is a copy of the request I received.
 
 Return-Path: [EMAIL PROTECTED]
 Received: (qmail 35952 invoked by uid 99); 14 Jan 2005 04:42:43 -
 X-ASF-Spam-Status: No, hits=1.6 required=10.0
tests=MISSING_SUBJECT,RCVD_BY_IP,SPF_HELO_PASS,SPF_PASS
 X-Spam-Check-By: apache.org
 Received-SPF: pass (hermes.apache.org: domain of [EMAIL PROTECTED] designates 
 64.233.184.204 as permitted sender)
 Received: from wproxy.gmail.com (HELO wproxy.gmail.com) (64.233.184.204)
  by apache.org (qpsmtpd/0.28) with ESMTP; Thu, 13 Jan 2005 20:42:41 -0800
 Received: by wproxy.gmail.com with SMTP id 68so757935wra
for [EMAIL PROTECTED]; Thu, 13 Jan 2005 20:42:39 -0800 (PST)
 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws;
s=beta; d=gmail.com;

 h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type:content-transfer-encoding;

 b=SwVop0ckJ5rlp5i1gAsx9gdgJe00HSALoZtNjqyj7OjzB8lEmOyia6jDMVw4bk8fa6Fxoas5bZtHKlM2/uWbtbVMRehsHBQ3/bQ9LLOEud2lPsVf7mJntiWLwGPSQfNAA/5Vpouq/m+0UJgM4PPvvnGIbbIqJNSXH23TQK9NmSQ=
 Received: by 10.54.45.14 with SMTP id s14mr35686wrs;
Thu, 13 Jan 2005 20:42:39 -0800 (PST)
 Received: by 10.54.47.39 with HTTP; Thu, 13 Jan 2005 20:42:39 -0800 (PST)
 Message-ID: [EMAIL PROTECTED]
 Date: Thu, 13 Jan 2005 23:42:39 -0500
 From: Dinesh Sharma [EMAIL PROTECTED]
 Reply-To: Dinesh Sharma [EMAIL PROTECTED]
 To:
[EMAIL PROTECTED]
 Subject:
 Mime-Version: 1.0
 Content-Type: text/plain; charset=US-ASCII
 Content-Transfer-Encoding: 7bit
 X-Virus-Checked: Checked
 


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



Re: Benefit of multiple workers?

2005-01-13 Thread Faisal Abdullah
I'm using mod_jk 1.2.5 with Apache2.
The benefit is to balance the load between multiple app servers in a
round robin manner, with a certain factor you can set for each worker
with say, for example have different hardware specs.

Regards,
Faisal


On Thu, 13 Jan 2005 18:24:27 -0500, John Martyniak
[EMAIL PROTECTED] wrote:
 I am preparing to set up my first production Tomcat using mod_jk.
 
 So what is the benefit of multiple workers?
 
 I can see that you can specify one worker per host, so the advantage would
 be that you could have one Webserver drive several app servers.
 
 I also read on this list, that you could use mod_jk2 to do load balancing.
 (is the same true for mod_jk 1.2.x?)
 
 Are these the only benefits?
 
 Or am I completely missing the point?
 
 -John
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


-- 
There are many ways of going forward, but there is only one way of
standing still.

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



is this possible?

2005-01-13 Thread jungsoo kim
Hi all,

I have an applet that communicate with server. And, of course, the
server maintains a session.

If I insert the applet in the JSP page, the applet fails to
communicate with server because of session ID problem.

My problem is I can't chage applet's code. I can't get session id from
a jsp page.

Thus, I 'd like to know that whether there is a way to handle the
session problem at the Tomcat.

Thanks in advance.

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



Installing and running tomcat as a user other than root

2005-01-13 Thread Mumanyi Bravismore
How can one achieve to install and run tomcat as a user other than root. 
 I have tried to extract tomcat from the *.gz as a user but once I try 
to access it from the browser I get the Connection Failed error when 
in actually fact tomcat is running.

When I su -l to root and restart tomcat, I am able to see the page.
Thanks in advance.
Regards
/Bravo
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Tomcat and CORBA

2005-01-13 Thread Andreas Vombach
I would like to have a servlet which offers a CORBA interface. An applet 
for example could then read the IOR string of the orb and connect to the 
interface.
Unfortunately instantiating servant objects seems to block the server so 
I had to spawn of threads from a servlet. (??)
As far as I read a servlet should not create threads, is it true / 
impossible? Has anybody some experience using an ORB on Tomcat?

Thanks for any hint in advance!
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Realms and context

2005-01-13 Thread Roland Carlsson
First I'm sorry for flooding in this subject but since I have not got any
answer and I must inform my managers today about if I can do the projects
they want to me to do.

So, refering to my earlier mail with the subject Multiple realms in one
context

Is there a way to configure tomcats JNDI-realm to support multiple
userBases? 

Thank you in advance and once again I apologize for being rude and repost.

Regards
Roland Carlsson


 


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



  1   2   >