RE: Tomcat startup time delay in Windows 95/98

2004-11-18 Thread Pragyan Padmini Misra
Thanks Tim,

But I guess this all has been taken care of. Dunno where the problem lies.

-Original Message-
From: Tim Funk [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 17, 2004 5:31 PM
To: Tomcat Users List
Subject: Re: Tomcat startup time delay in Windows 95/98


Just created, details are sparse ..
http://wiki.apache.org/jakarta-tomcat/HowTo/FasterStartUp

-Tim

Pragyan Padmini Misra wrote:

 HI,
   I had posted this earlier and again am resending as am still not getting
 any solution. Can any one help me out on this. The application which we
have
 developed has a performance related issue in Windows 95/98. We install the
 application and when we click on the aplication icon it internally invokes
a
 Flash screen displaying the application is loading and internally calls
the
 startup.bat file in tomcat\bin for the server startup process, which
 internally calls the catalina.bat file and so on and so forth. We cannot
 startup Tomcat as a service in Win 95/98. The problem basically which we
are
 facing is the time taken for the load of the application. The load time
 takes up about 1 1/2 to 2 minutes. This doesnt seem to be a feasible
 solution for the product acceptance. Is there any way we can decrease the
 tomcat startup load time? Can we manipulate on the processes so as to
reduce
 the load time? Or is there any solution for the same?

   Regards
   Pragyan


-
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 on iseries os/400 version 5 release 2?

2004-11-18 Thread Roux, Wouter
Hi,

I am currently running Tomcat 4.1.30 on the iseries (version5 release 2).

Here is my startup script :

export -s CATALINA_HOME=/tomcat4
export -s CATALINA_BASE=/tomcat4
export -s JAVA_HOME=/QIBM/ProdData/Java400/jdk14
export -s 
CLASSPATH=.:$CLASSPATH:/QIBM/ProdData/Java400/jdk14/lib/tools.jar:$CATALINA_HOME/common/lib/ant.jar:$CATALINA_HOME/bin/bootstrap.jar:$CATALINA_HOME/bin/commons-logging-api.jar
export -s CATALINA_TMPDIR=$CATALINA_BASE/temp
export QIBM_MULTI_THREADED=Y

echo Using CATALINA_BASE:   $CATALINA_BASE
echo Using CATALINA_HOME:   $CATALINA_HOME
echo Using CATALINA_TMPDIR: $CATALINA_TMPDIR
echo Using JAVA_HOME:   $JAVA_HOME
echo Using CLASSPATH:   $CLASSPATH

echo Starting Tomcat server...
java  -classpath $CLASSPATH \
  -Dcatalina.base=$CATALINA_BASE \
  -Dcatalina.home=$CATALINA_HOME \
  -Djava.io.tmpdir=$CATALINA_TMPDIR \
  org.apache.catalina.startup.Bootstrap $@ start

and here is the command to submit the job:

SBMJOB CMD(QSH CMD('/tomcat4/bin/catalina.sh')) JOBD(MEDISYS/TOMCAT) 
JOBQ(MEDISYS/TOMJOBQ)

and it works without problems. 


I have changed this script to :

export -s CATALINA_HOME=/tomcat5
export -s CATALINA_BASE=/tomcat5
export -s JAVA_HOME=/QIBM/ProdData/Java400/jdk14
export -s 
CLASSPATH=.:$CLASSPATH:/QIBM/ProdData/Java400/jdk14/lib/tools.jar:$CATALINA_HOME/common/lib/ant.jar:$CATALINA_HOME/bin/bootstrap.jar:$CATALINA_HOME/bin/commons-logging-api.jar
export -s CATALINA_TMPDIR=$CATALINA_BASE/temp
export QIBM_MULTI_THREADED=Y

echo Using CATALINA_BASE:   $CATALINA_BASE
echo Using CATALINA_HOME:   $CATALINA_HOME
echo Using CATALINA_TMPDIR: $CATALINA_TMPDIR
echo Using JAVA_HOME:   $JAVA_HOME
echo Using CLASSPATH:   $CLASSPATH

echo Starting Tomcat server...
java  -classpath $CLASSPATH \
  -Dcatalina.base=$CATALINA_BASE \
  -Dcatalina.home=$CATALINA_HOME \
  -Djava.io.tmpdir=$CATALINA_TMPDIR \
  org.apache.catalina.startup.Bootstrap $@ start

I submit the job with 

SBMJOB CMD(QSH CMD('/tomcat5/bin/catalina.sh')) JOBD(MEDISYS/TOMCAT) 
JOBQ(MEDISYS/TOMJOBQ)

to start tomcat 5.0.28 but it does not work.


server.xml :

Service name=Catalina
...
Connector port=8585
   maxThreads=150 minSpareThreads=25 maxSpareThreads=75
   enableLookups=false redirectPort=8443 acceptCount=100
   debug=0 connectionTimeout=2 
   disableUploadTimeout=true /
...


Engine name=Catalina defaultHost=dev720 debug=0

Logger className=org.apache.catalina.logger.FileLogger
  prefix=catalina_log. suffix=.txt
  timestamp=true/

Realm className=org.apache.catalina.realm.UserDatabaseRealm
 debug=0 resourceName=UserDatabase/

Host name=dev720 debug=0 appBase=webapps
 unpackWARs=true autoDeploy=true
   xmlValidation=false xmlNamespaceAware=false

DefaultContext reloadable=true/

Context path= docBase=ROOT debug=0/

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

/Host
/Engine


/Service

...

thanx

wouter

Is there any step by step guide somewhere maybe an example script.

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 17, 2004 4:47 PM
To: Tomcat Users List
Subject: RE: tomcat 5.0.28 on iseries os/400 version 5 release 2?



Hi,
Tomcat should work on OS/400 out of the box.  We have a couple of small
tweaks we can make to the startup scripts for unusual cases, such as
when the server uses doesn't own the startup scripts, but for most cases
it should work fine.

Yoav Shapira http://www.yoavshapira.com
 

-Original Message-
From: Roux, Wouter [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 17, 2004 9:36 AM
To: Tomcat Users List
Subject: tomcat 5.0.28 on iseries os/400 version 5 release 2?

Hi,

Does anyone know where I can find a script/info/help on how to start
tomcat
5.0.28 on iseries os/400 version 5 release 2.

thanx

wouter


This e-mail and attachments are confidential/legally privileged and any
unauthorised use, distribution or disclosure thereof, in whatever form,
by
anyone other than the addressee is prohibited. If you have received
this e-
mail in error, please destroy it.  The views and opinions in this
e-mail
and attachments may not necessarily be those of the Directors and
management of the Medi-Clinic Group of Companies. The aforementioned
does
not accept any liability for any damage, loss or expense arising from
this
e-mail and / or from accessing any attachments.

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




This e-mail, including any attachments, is 

Strange Problem!: Connection time out while using URLConnection connect method

2004-11-18 Thread vignesh
Hi All,

I am posting this again. Please help.

Thanks.


--Forwarded message --
References: [EMAIL PROTECTED]
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Strange Problem!: Connection time out while using URLConnection 
connect method
Date: Wed, 17 Nov 2004 09:30:17 GMT
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Hi All,
 
I am facing a very strange problem. When I run tomcat4.1.27 in command prompt, 
I am able to connect and call a servlet deployed in it from another java 
program running on another machine using using URLConnection connect method.
 
But when I run tomcat server from windows services, the client program is not 
able to call the deployed servlet and throws the below exception at the line 
where connect method is invoked.
 
java.net.ConnectException: Connection timed out: connect
 
 
Has anyone else faced this strange problem. The only difference is in the way 
tomcat server has been started. When started in command prompt there are no 
problems in connecting to the server and calling the servlet deployed in it! I 
need to badly get this working when tomcat is started as a windows service.
 
Thanks in Advance.
 
Vignesh.

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



REPOST: Recursive groups in JNDIRealm

2004-11-18 Thread Roland Carlsson
Hi! 
I'm am sorry for reposting this but I urgently need confirmation about
Tomcat supporting or not supporting recursive searching in LDAP for Roles
including other Roles.

I post the relevant part of server.xml
:
Realm   className=org.apache.catalina.realm.JNDIRealm debug=99
  connectionURL=ldap://192.168.10.10:389;
  connectionName=CN=Administrator,CN=Users,DC=alfa-moving,DC=se
  connectionPassword=x
  userBase=CN=Users,DC=alfa-moving,DC=se
  userSearch=(sAMAccountName={0})
  userRoleName=memberOf
  roleBase=CN=Users,DC=alfa-moving,DC=se
  roleName=CN
  roleSearch=(member={0})
  roleSubtree=true/
/


Thank you very much in advance
Roland Carlsson


Från: Roland Carlsson [EMAIL PROTECTED]
Svara till: Tomcat Users List [EMAIL PROTECTED]
Datum: Wed, 17 Nov 2004 16:52:34 +0100
Till: TomcatUsers [EMAIL PROTECTED]
Ämne: Recursive groups in JNDIRealm

Hi!

After an hour of searching I can't figure out if Tomcat is able to find
groups in group in a LDAP server?

I found this in the archives but since it is from 4.1.18
http://www.mail-archive.com/tomcat-user@jakarta.apache.org/msg89601.html


Thanks in advance
Roland Carlsson



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


-- Slut på vidarebefordrat meddelande


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



Problem With Tomcat and NT service

2004-11-18 Thread Raphael THIOLIERE
Hello,

I use Tomcat like a server of webservices.
When I run Tomcat with the script startup.bat, my application works fine.
But when I want to launch Tomcat with the NT service (created by the
install) it doesn't work : I have to copy a fichier in the directory
system32.
This fichier is use by my application, it contains the informations for the
connection at the SGBD.
My version of tomcat is 4.1.
Idea ?

If I use tomcat 3.3 ,I modify the fichier wrapper.properties and It works.


Raphaël.


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



after install i cann't shutdown the server with port 8080

2004-11-18 Thread Tomer Avitzur



Hi ,



I just install tomcat 4

And the server goes up but I cann't down it , the default port set to
8080

I get



c:\Program Files\Apache Group\Tomcat 4.1\binshutdown.bat

Using CATALINA_BASE:   ..

Using CATALINA_HOME:   ..

Using CATALINA_TMPDIR: ..\temp

Using JAVA_HOME:   c:\jdk1.3.1

Catalina.stop: java.net.ConnectException: Connection refused: connect

java.net.ConnectException: Connection refused: connect

at java.net.PlainSocketImpl.socketConnect(Native Method)

at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:320)

at
java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:133)

at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:120)

at java.net.Socket.init(Socket.java:273)

at java.net.Socket.init(Socket.java:100)

at org.apache.catalina.startup.Catalina.stop(Catalina.java:532)

at
org.apache.catalina.startup.Catalina.execute(Catalina.java:352)

at
org.apache.catalina.startup.Catalina.process(Catalina.java:129)

at java.lang.reflect.Method.invoke(Native Method)

at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:156)



Any idea ?



Have a nice day

Tomer A





The information contained in this message is proprietary of Amdocs,
protected from disclosure, and may be privileged.
The information is intended to be conveyed only to the designated recipient(s)
of the message. If the reader of this message is not the intended recipient,
you are hereby notified that any dissemination, use, distribution or copying of
this communication is strictly prohibited and may be unlawful.
If you have received this communication in error, please notify us immediately
by replying to the message and deleting it from your computer.
Thank you.

Re: Realms and Static pages

2004-11-18 Thread Chris Chappell
QM

thanks - I was assuming a mapping between the (e.g.) Configs here for
servlet and web-resource-name,
which doesn't actually exist. Hence my befuddlement.


servlet
servlet-nameConfig/servlet-name

 security-constraint
web-resource-collection
  web-resource-nameConfig/web-resource-name

Chris


- Original Message -
From: QM [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Thursday, November 18, 2004 12:01 AM
Subject: Re: Realms and Static pages


 On Wed, Nov 17, 2004 at 01:25:27PM -, Chris Chappell wrote:
 : Thanks QM but I' still not sure what to do!

 Please trust me, it's all in the spec...


 : In my web.xml I have for example  (standard stuff!)
 :
 : servlet
 : servlet-nameConfig/servlet-name
 : servlet-classorg.myorg.config.Config/servlet-class
 : /servlet
 :
 : with a mapping and security contraint.

 It helps to show the entire file, since that's the root of the problem.
 ;)


 : I have searched throught the web.xml options below and cannot work out
which
 : one for static html pages.

 Try to think outside the box: are you trying to protect static html
 pages or just certain regions (URIs) of the site?

 Hint: you can map security-constraint to plain old URIs, not just
 servlet classes.  Take a close look at the url-pattern tag...

 -QM

 --

 software  -- http://www.brandxdev.net
 tech news -- http://www.RoarNetworX.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]



SV: after install i cann't shutdown the server with port 8080

2004-11-18 Thread Roland Carlsson
Hi!

Are you sure that you have the rights to open ports?

Are you sure that there arn't any other programs or instances of tomcat
running at port 8080?

That is the two reasons I have got that error.

Regards
Roland Carlsson


Den 04-11-18 10.46, skrev Tomer Avitzur [EMAIL PROTECTED]:

 
 
 
 
 Hi ,
 
 
 
 
 I just install tomcat 4
 
 And the server goes up but I cann't down it , the default port set to
 8080
 
 I get
 
 
 
 
 
 c:\Program Files\Apache Group\Tomcat 4.1\binshutdown.bat
 
 Using CATALINA_BASE:   ..
 
 Using CATALINA_HOME:   ..
 
 Using CATALINA_TMPDIR: ..\temp
 
 Using JAVA_HOME:   c:\jdk1.3.1
 
 Catalina.stop: java.net.ConnectException: Connection refused: connect
 
 java.net.ConnectException: Connection refused: connect
 
 at java.net.PlainSocketImpl.socketConnect(Native Method)
 
 at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:320)
 
 at
 java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:133)
 
 at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:120)
 
 at java.net.Socket.init(Socket.java:273)
 
 at java.net.Socket.init(Socket.java:100)
 
 at org.apache.catalina.startup.Catalina.stop(Catalina.java:532)
 
 at
 org.apache.catalina.startup.Catalina.execute(Catalina.java:352)
 
 at
 org.apache.catalina.startup.Catalina.process(Catalina.java:129)
 
 at java.lang.reflect.Method.invoke(Native Method)
 
 at
 org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:156)
 
 
 
 
 Any idea ?
 
 
 
 
 Have a nice day
 
 Tomer A
 
 
 
 
 
 
 The information contained in this message is proprietary of Amdocs,
 protected from disclosure, and may be privileged.
 The information is intended to be conveyed only to the designated recipient(s)
 of the message. If the reader of this message is not the intended recipient,
 you are hereby notified that any dissemination, use, distribution or copying
 of
 
 this communication is strictly prohibited and may be unlawful.
 
 If you have received this communication in error, please notify us immediately
 by replying to the message and deleting it from your computer.
 Thank you.


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



Re: Strange Problem!: Connection time out while using URLConnection connect method

2004-11-18 Thread Sailing Cai
I think you may check you IP setting.
You run tomcat in command prompt ,jvm binging your ip;but in windows
service it may binding 127.0.0.1 or localhost.

I guess it^_^


On Thu, 18 Nov 2004 09:36:32 GMT, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
 Hi All,
 
 I am posting this again. Please help.
 
 Thanks.
 
 --Forwarded message --
 References: [EMAIL PROTECTED]
 From: [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: Strange Problem!: Connection time out while using URLConnection 
 connect method
 Date: Wed, 17 Nov 2004 09:30:17 GMT
 Mime-Version: 1.0
 Content-Type: text/plain; charset=us-ascii
 Content-Transfer-Encoding: 7bit
 
 Hi All,
 
 I am facing a very strange problem. When I run tomcat4.1.27 in command 
 prompt, I am able to connect and call a servlet deployed in it from another 
 java program running on another machine using using URLConnection connect 
 method.
 
 But when I run tomcat server from windows services, the client program is not 
 able to call the deployed servlet and throws the below exception at the line 
 where connect method is invoked.
 
 java.net.ConnectException: Connection timed out: connect
 
 Has anyone else faced this strange problem. The only difference is in the way 
 tomcat server has been started. When started in command prompt there are no 
 problems in connecting to the server and calling the servlet deployed in it! 
 I need to badly get this working when tomcat is started as a windows service.
 
 Thanks in Advance.
 
 Vignesh.
 
 -
 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: SSL and server.xml

2004-11-18 Thread birendar . waldiya

I too had bad time with this implementation because of  fact  I mis 
spelled keystore  as keystores 

what i see in your  server.xml issslProtocal is that required ?
secondly i think you need to give the name of keystore file not just 
.keystore

check   snippet of my server.xml 

and compare 

 Connector className=org.apache.coyote.tomcat4.CoyoteConnector
   port=8443 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 
keystoreFile=c:\birendar\mykey.keystore keystorePass=changeit 
protocol=TLS /
/Connector
 
see it this helps you .




Birendar Singh Waldiya
Tata Consultancy Services Limited
Mailto: [EMAIL PROTECTED]
Website: http://www.tcs.com



Jeffrey Trimble [EMAIL PROTECTED] 
11/18/2004 12:59 AM

Please respond to
Tomcat Users List [EMAIL PROTECTED]


To
[EMAIL PROTECTED]
cc

Subject
SSL and server.xml






I'm running Tomcat 5.0.27 and am having a heck of time getting a 
connection 
with
port 8443.

My firewall has 8000-8999 open.

Here is snipet from my server.xml regarding the connector for port 
8443.  Is there something
I don't see?

  Connector acceptCount=100 enableLookups=true
   keystoreFile=/home/dspace/.keystore keystorePass=changeit
   port=8443 scheme=https secure=true
   sslProtocol=TLS clientauth=false
   keypass=changeit keystore=/home/dspace/.keystore
   keytype=JKS protocol=TLS
   Factory 
className=org.apache.coyote.tomcat5.CoyoteServerSocketFactory/
  /Connector

I am not able to https://localhost:8443 at all.  Dead

Any suggestions for me to check out?

TIA,


Jeffrey A. Trimble
Systems/Catalog Librarian
Youngstown State University
Youngstown, OH
[EMAIL PROTECTED]
(330) 941-2483




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


ForwardSourceID:NT4276 


DISCLAIMER: The information contained in this message is intended only and 
solely for the addressed individual or entity indicated in this message and for 
the exclusive use of the said addressed individual or entity indicated in this 
message (or responsible for delivery of the message to such person) and may 
contain legally privileged and confidential information belonging to Tata 
Consultancy Services Limited. It must not be printed, read, copied, disclosed, 
forwarded, distributed or used (in whatsoever manner) by any person other than 
the addressee. Unauthorized use, disclosure or copying is strictly prohibited 
and may constitute unlawful act and can possibly attract legal action, civil 
and/or criminal. The contents of this message need not necessarily reflect or 
endorse the views of Tata Consultancy Services limited on any subject matter.
  Any action taken or omitted to be taken based on this message is entirely at 
your risk and neither the originator of this message nor Tata Consultancy 
Services Limited takes any responsibility or liability towards the same. 
Opinions, conclusions and any other information contained in this message that 
do not relate to the official business of Tata Consultancy Services limited 
shall be understood as neither given nor endorsed by Tata Consultancy Services 
Limited or any affiliate of Tata Consultancy Services Limited. If you have 
received this message in error,  you should destroy this message and may please 
notify the sender by e-mail. 
 Thank you.

Re: secure jsp using web.xml in tomcat 5.0.19

2004-11-18 Thread birendar . waldiya

I think you need not to mention the method as the jsp is translated to a 
servlet with _service methds as main methods  etc.. im not sure but i 
think so..


Birendar Singh Waldiya
Tata Consultancy Services Limited
Mailto: [EMAIL PROTECTED]
Website: http://www.tcs.com



Ashish Kulkarni [EMAIL PROTECTED] 
11/18/2004 03:36 AM

Please respond to
Tomcat Users List [EMAIL PROTECTED]


To
[EMAIL PROTECTED]
cc

Subject
secure jsp using web.xml in tomcat 5.0.19






Hi
I want to secure all my jsp in my web application, 
I added following security constraint in my web.xml
file, but some how seems it does not work
security-constraint
web-resource-collection
web-resource-nameBlock Access to jsp
files/web-resource-name
descriptionThis is to block access to all jsp
files/description
 url-pattern*.jsp/url-pattern
 http-methodPOST/http-method
 http-methodGET/http-method
/web-resource-collection
 
/security-constraint
what may be the reason??

Ashish


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


ForwardSourceID:NT426E 


DISCLAIMER: The information contained in this message is intended only and 
solely for the addressed individual or entity indicated in this message and for 
the exclusive use of the said addressed individual or entity indicated in this 
message (or responsible for delivery of the message to such person) and may 
contain legally privileged and confidential information belonging to Tata 
Consultancy Services Limited. It must not be printed, read, copied, disclosed, 
forwarded, distributed or used (in whatsoever manner) by any person other than 
the addressee. Unauthorized use, disclosure or copying is strictly prohibited 
and may constitute unlawful act and can possibly attract legal action, civil 
and/or criminal. The contents of this message need not necessarily reflect or 
endorse the views of Tata Consultancy Services limited on any subject matter.
  Any action taken or omitted to be taken based on this message is entirely at 
your risk and neither the originator of this message nor Tata Consultancy 
Services Limited takes any responsibility or liability towards the same. 
Opinions, conclusions and any other information contained in this message that 
do not relate to the official business of Tata Consultancy Services limited 
shall be understood as neither given nor endorsed by Tata Consultancy Services 
Limited or any affiliate of Tata Consultancy Services Limited. If you have 
received this message in error,  you should destroy this message and may please 
notify the sender by e-mail. 
 Thank you.

Re: Suggestion - upgrade scripts.

2004-11-18 Thread Andoni
Ok, I have been playing around with this idea. What I would use most would
not so much be an upgrade script between versions but an upgrade script
between sub-version. Or maybe even just a list of the files that have
changed in a sub-version upgrade, and a copy of each one.

Like an upgrade version of Tomcat. You only download the files that have
changed!

I know this is recoverable from the release notes but it would be made
simpler if there was just a zip file with only the changed jars etc.

Yes / No / Not useful ?

Andoni.

- Original Message - 
From: QM [EMAIL PROTECTED]
Newsgroups: gmane.comp.jakarta.tomcat.user
Sent: Thursday, November 18, 2004 12:07 AM
Subject: Re: Suggestion - upgrade scripts.


 On Wed, Nov 17, 2004 at 03:15:46PM +, Andoni wrote:
 : Ever since a recent conversation about the status of the 4.1.xx branch
of the Tomcat tree I have been wondering about the best route for upgrading
the servers which I manage. Having browsed the Tocmat website and seen the
differences between the different versions I have noticed what's missing.

 I have a link on my site for upgrading from 4.1.x - 5.0.x.

 http://www.brandxdev.net/misc/tomcat_upgrade.site

 The 5.0.x - 5.5.x guide is on the way.

 : I think there should be some development effort put into scripts for
upgrading from the previous version of Tomcat.

 Have at it!  Where I'm from, such a statement is considered a statement
 that you volunteer your time to do this. ;)

 In all seriousness, how could there be such a tool?  Most of what Tomcat
 does and provides is detailed in the servlet/JSP specs: it must handle
 WAR files, it must service JSPs, and so on.  In turn, most of the
 upgrade process involves you, the developer, testing and adjusting your
 app to fit the new specs.  Looking at the upgrade guide I've assembled,
 there were only a couple of changes to Tomcat config files.


 -QM

 -- 

 software  -- http://www.brandxdev.net
 tech news -- http://www.RoarNetworX.com


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



Re: Strange Problem!: Connection time out while using URLConnection connect method

2004-11-18 Thread birendar . waldiya

Is this somthing related to external Ip and Internal ip 
if you are behind the firewall...

Birendar Singh Waldiya
Tata Consultancy Services Limited
Mailto: [EMAIL PROTECTED]
Website: http://www.tcs.com



[EMAIL PROTECTED] 
11/18/2004 03:06 PM

Please respond to
Tomcat Users List [EMAIL PROTECTED]


To
[EMAIL PROTECTED]
cc

Subject
Strange Problem!: Connection time out while using URLConnection connect 
method






Hi All,

I am posting this again. Please help.

Thanks.


--Forwarded message --
References: [EMAIL PROTECTED]
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Strange Problem!: Connection time out while using URLConnection 
connect method
Date: Wed, 17 Nov 2004 09:30:17 GMT
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Hi All,
 
I am facing a very strange problem. When I run tomcat4.1.27 in command 
prompt, I am able to connect and call a servlet deployed in it from 
another java program running on another machine using using URLConnection 
connect method.
 
But when I run tomcat server from windows services, the client program is 
not able to call the deployed servlet and throws the below exception at 
the line where connect method is invoked.
 
java.net.ConnectException: Connection timed out: connect
 
 
Has anyone else faced this strange problem. The only difference is in the 
way tomcat server has been started. When started in command prompt there 
are no problems in connecting to the server and calling the servlet 
deployed in it! I need to badly get this working when tomcat is started as 
a windows service.
 
Thanks in Advance.
 
Vignesh.

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


ForwardSourceID:NT4412 


DISCLAIMER: The information contained in this message is intended only and 
solely for the addressed individual or entity indicated in this message and for 
the exclusive use of the said addressed individual or entity indicated in this 
message (or responsible for delivery of the message to such person) and may 
contain legally privileged and confidential information belonging to Tata 
Consultancy Services Limited. It must not be printed, read, copied, disclosed, 
forwarded, distributed or used (in whatsoever manner) by any person other than 
the addressee. Unauthorized use, disclosure or copying is strictly prohibited 
and may constitute unlawful act and can possibly attract legal action, civil 
and/or criminal. The contents of this message need not necessarily reflect or 
endorse the views of Tata Consultancy Services limited on any subject matter.
  Any action taken or omitted to be taken based on this message is entirely at 
your risk and neither the originator of this message nor Tata Consultancy 
Services Limited takes any responsibility or liability towards the same. 
Opinions, conclusions and any other information contained in this message that 
do not relate to the official business of Tata Consultancy Services limited 
shall be understood as neither given nor endorsed by Tata Consultancy Services 
Limited or any affiliate of Tata Consultancy Services Limited. If you have 
received this message in error,  you should destroy this message and may please 
notify the sender by e-mail. 
 Thank you.

Re: Suggestion - upgrade scripts.

2004-11-18 Thread QM
On Thu, Nov 18, 2004 at 10:32:33AM +, Andoni wrote:
: Ok, I have been playing around with this idea. What I would use most would
: not so much be an upgrade script between versions but an upgrade script
: between sub-version. Or maybe even just a list of the files that have
: changed in a sub-version upgrade, and a copy of each one.

Given the Apache license, you're more than able to create and distribute
such an upgrade package yourself.  As there are no roadblocks between
you and your goal, why not give ti a shot?

I personally prefer a different upgrade philosophy, but this certainly
is a situation in which we can all do what we want without affecting
anyone else. ;)

-QM


-- 

software  -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com


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



[OT] Re: wrong time in Java Applications to my location (new Date())

2004-11-18 Thread Jon Wingfield
The default timezone of a Sun JVM is determined by user locale settings. 
If the runtime can't determine a sensible timezone from those it 
defaults to GMT, which is 3hrs off from Brazilia time, i think.

Looking at the source of TimeZone it uses the following system properties:
user.timezone
user.country
java.home
If user.timezone is not set then a native call is made using 
user.country and java.home. I'm not sure what happens for a 
multi-timezone country like Brazil ;)

So you could:
1) pass in the user.timezone system property to the runtime.
2) Set your servers default timezone in code:
TimeZone.setDefault(TimeZone.getTimeZone(id));
where id is one of:
Brazil/DeNoronha
America/Sao_Paulo (probably the one you want or maybe Brazil/East)
America/Boa_Vista
Brazil/Acre or America/Rio_Branco
Are you running Tomcat as a service? If so, you may also want to check 
that the regional settings for the user running the service are also set 
to Brazilia.

I would also check what is actually being determined by the JVM. Do 
something like:

System.out.println(TimeZone.getDefault());
System.getProperties().list(System.out);
HTH,
Jon
Acácio Furtado Costa wrote:
Hi  everybody
 

We have a Tom Cat application Server 5.0.19 running in a Windows 
2003 with a Sun JDK 1.4.2.
We are having problems with  time of our Applications . The time is 
correct under SO but we have 3 hours of difference in the applications (+3).
 

Our offset time is Brasilia -3:00 in the Windows 2003 and Regional settings is 
Portuguese, Brazil.
 

The method TO GET SYSTEM TIME is new Date()
 

Any suggestion, How we setup server parameters or application (JVM) parameters 
to solve this problem?
 

Thanks a lot in advance
 

Acacio Furtado Costa
Pesquisa e Tecnologia
GIA - Magnesita S/A
*(0xx31) 3368-1349
*  [EMAIL PROTECTED]
 



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


context loaded twice

2004-11-18 Thread Asher Tarnopolski
hi,
a strange thing i can't find a sollution for.

i have a web app that runs in tomcat's root (placed in \webapps\ROOT).
don't ask me why, it's just there.
the controller servlet of the app has load-on-startup1..
it also prints in output START INIT when loaded.

when i start tomcat i see this:

code:


Apache Tomcat/4.1.31WebappLoader[]: Deploying class repositories to work
directory
C:\jakarta-tomcat-4.1.31\webapps\ROOT\work\org\apache\jspWebappLoader[]:
Deploy class files /WEB-INF/classes to
C:\jakarta-tomcat-4.1.31\webapps\ROOT\WEB-INF\classesWebappLoader[]:
Reloading checks are enabled for this ContextStandardManager[]: Seeding
random number generator class java.security.SecureRandomStandardManager[]:
Seeding of random number generator has been completedStandardWrapper[
efault]: Loading container servlet defaultSTART INIT




and then once more the same thing:

code:


 WebappLoader[/]: Deploying class repositories to work directory
C:\jakarta-tomcat-4.1.31\webapps\ROOT\work\org\apache\jspWebappLoader[/]:
Deploy class files /WEB-INF/classes to
C:\jakarta-tomcat-4.1.31\webapps\ROOT\WEB-INF\classesWebappLoader[/]:
Reloading checks are enabled for this ContextStandardManager[/]: Seeding
random number generator class
java.security.SecureRandomStandardManager[/]: Seeding of random number
generator has been completedStandardWrapper[/  efault]: Loading container
servlet defaultSTART INIT




tomcat not only prints the report twice, it loads the webapp twice,
because right after the second time i get a nasty exception:

code:


  ServerLifecycleListener: processContainerAddChild:
Throwablejavax.management.InstanceAlreadyExistsException:
Catalina:type=Context,path=/,host=localhost,service=Tomcat-Standalone   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)





tomcat doesn't die, and the application runs ok. but still, i don't wanna
leave it as it is,, knowing that something is wrong.
any ideas?
thanks

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



Re: context loaded twice

2004-11-18 Thread Jardin Xavier
I have encountered the same behavior in the past with out configuration
apache + tomcat, the context start the first time after tomcat restart and a
second time with the first apache connection. Using the following
serveur.xml configuration the thing are now running well:

Host name=localhost debug=0 appBase=webapps
unpackWARs=true autoDeploy=false liveDeploy=false

- Original Message - 
From: Asher Tarnopolski [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, November 18, 2004 2:02 PM
Subject: context loaded twice


 hi,
 a strange thing i can't find a sollution for.

 i have a web app that runs in tomcat's root (placed in \webapps\ROOT).
 don't ask me why, it's just there.
 the controller servlet of the app has load-on-startup1..
 it also prints in output START INIT when loaded.

 when i start tomcat i see this:

 code:
 --
--

 Apache Tomcat/4.1.31WebappLoader[]: Deploying class repositories to work
 directory
 C:\jakarta-tomcat-4.1.31\webapps\ROOT\work\org\apache\jspWebappLoader[]:
 Deploy class files /WEB-INF/classes to
 C:\jakarta-tomcat-4.1.31\webapps\ROOT\WEB-INF\classesWebappLoader[]:
 Reloading checks are enabled for this ContextStandardManager[]: Seeding
 random number generator class java.security.SecureRandomStandardManager[]:
 Seeding of random number generator has been completedStandardWrapper[
 efault]: Loading container servlet defaultSTART INIT

 --
--


 and then once more the same thing:

 code:
 --
--

  WebappLoader[/]: Deploying class repositories to work directory
 C:\jakarta-tomcat-4.1.31\webapps\ROOT\work\org\apache\jspWebappLoader[/]:
 Deploy class files /WEB-INF/classes to
 C:\jakarta-tomcat-4.1.31\webapps\ROOT\WEB-INF\classesWebappLoader[/]:
 Reloading checks are enabled for this ContextStandardManager[/]: Seeding
 random number generator class
 java.security.SecureRandomStandardManager[/]: Seeding of random number
 generator has been completedStandardWrapper[/  efault]: Loading container
 servlet defaultSTART INIT

 --
--


 tomcat not only prints the report twice, it loads the webapp twice,
 because right after the second time i get a nasty exception:

 code:
 --
--

   ServerLifecycleListener: processContainerAddChild:
 Throwablejavax.management.InstanceAlreadyExistsException:
 Catalina:type=Context,path=/,host=localhost,service=Tomcat-Standalone 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)

 --
--



 tomcat doesn't die, and the application runs ok. but still, i don't wanna
 leave it as it is,, knowing that something is wrong.
 any ideas?
 thanks

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




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



RE: Problem With Tomcat and NT service

2004-11-18 Thread Hubble, Christopher
That's because when Tomcat is run as a service, it's base directory becomes
System32 instead of whatever dir you run the startup bat file in.

Chris

-Original Message-
From: Raphael THIOLIERE [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 18, 2004 4:40 AM
To: Tomcat Users List
Subject: Problem With Tomcat and NT service


Hello,

I use Tomcat like a server of webservices.
When I run Tomcat with the script startup.bat, my application works fine.
But when I want to launch Tomcat with the NT service (created by the
install) it doesn't work : I have to copy a fichier in the directory
system32.
This fichier is use by my application, it contains the informations for the
connection at the SGBD.
My version of tomcat is 4.1.
Idea ?

If I use tomcat 3.3 ,I modify the fichier wrapper.properties and It works.


Raphaël.


-
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: Bind Object into Global JNDI Within Servlet?

2004-11-18 Thread Shapira, Yoav

Hi,
The comp:env JNDI context is read-only for webapps.

Yoav Shapira http://www.yoavshapira.com


-Original Message-
From: Seth Ladd [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 17, 2004 9:54 PM
To: [EMAIL PROTECTED]
Subject: Bind Object into Global JNDI Within Servlet?

Hello,

Is it possible to bind objects into global JNDI from within web
application code?  For instance, I'd like to bind some objects into
global JNDI from one webapp so that other webapps will see them.

Any tips or tricks would be greatly appreciated!

Thanks very much!
Seth

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




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


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



Re: Tomcat 5.5.4 Stability

2004-11-18 Thread Remy Maucherat
On Wed, 17 Nov 2004 23:20:20 -0500, V D [EMAIL PROTECTED] wrote:
 
 I just test this at home.  I change all settings to use Tomcat 5.5.4,
 Axis 1.2.  The result is a big surprise.
 
 Right now, I hit the server with 2 clients, each has 150 connections.
 There is no error so far.
 
 This machine is faster than the one at work, and also has double the
 amount of RAM.
 
 If things going this way, it'll be great.
 
 I also notice that there is no networking load (it all go within the
 machine).  I wonder how well it does if it go across the network After
 running with 200 connections, I got out of memory error on the server.
 I give it max of 512M.  I also increase the maxThread to 400. Without
 these, it could handle up to 200 concurrent connections.
 
 This is really good.

It's not very clear to me: did you use the default configuration or
not ? If you didn't, what are the results with the default
configuration ? (I'm trying to get an overview of what you did, and
get comparison data to be able to make configuration recommendations
in the future)

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



HTTP persistence with Tomcat 4.1.29

2004-11-18 Thread Chandrasekar Krishnan
Dear Tomcat users,

What is the most reliable way to verify that persistent HTTP connections
are maintained between a Tomcat server and a Java based Http Client
(both HTTP 1.0 and 1.1 requests)? I've tried something on my own
unsuccessfully.

On the Tomcat server, I have turned on logging for the incoming header
Connection using AccessLogValve Pattern (using %{Connection}i) and
verified that the client is sending Keep-Alive. Is there any way to log
the response header Connection to see whether the server is not sending
Close in the response? I can't find a way to log response headers in
Tomcat. I have used netstat, but I can't get clinching evidence with it. 

Is it true that the Tomcat servlet needs to call setContentLength for
dynamic content to support persistent connections, even for HTTP 1.1
requests or is HTTP 1.1 sophisticated enough that it doesn't need that
header to maintain HTTP persistence? There are concerns with setting that
header if it's not needed, since it can cause a connection to hang if set
to an incorrect value.

I am using Tomcat server 4.1.29 on Solaris 5.8, JDK 1.4.2. The Http
Clients I use are Apache Commons and Trove Http Client.

Thanks in advance for your clarifications.
Chandrasekar



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



Tomcat 5.0.28 javax.servlet.ServletException: Error allocating a servlet instance

2004-11-18 Thread Roux, Wouter
Hi,

I have installed Tomcat 5.0.28 on iseries version 5 relsease 2.

Here is my startup script

export -s CATALINA_HOME=/tomcat5
export -s CATALINA_BASE=/tomcat5
export -s JAVA_HOME=/QIBM/ProdData/Java400/jdk14
export -s 
CLASSPATH=.:$CLASSPATH:/QIBM/ProdData/Java400/jdk14/lib/tools.jar:$CATALINA_HOME/common/lib/ant.jar:$CATALINA_HOME/bin/bootstrap.jar:$CATALINA_HOME/bin/commons-logging-api.jar
export -s CATALINA_TMPDIR=$CATALINA_BASE/temp
export QIBM_MULTI_THREADED=Y

echo Using CATALINA_BASE:   $CATALINA_BASE
echo Using CATALINA_HOME:   $CATALINA_HOME
echo Using CATALINA_TMPDIR: $CATALINA_TMPDIR
echo Using JAVA_HOME:   $JAVA_HOME
echo Using CLASSPATH:   $CLASSPATH

echo Starting Tomcat server...
java  -classpath $CLASSPATH \
  -Dcatalina.base=$CATALINA_BASE \
  -Dcatalina.home=$CATALINA_HOME \
  -Djava.io.tmpdir=$CATALINA_TMPDIR \
  org.apache.catalina.startup.Bootstrap $@ start



I am able to log in to manager app but I get :

javax.servlet.ServletException: Error allocating a servlet instance
java/lang/Throwable.init(Throwable.java:195)
java/lang/Exception.init(Exception.java:41)
javax/servlet/ServletException.init(ServletException.java:87)

org/apache/catalina/core/StandardWrapper.allocate(StandardWrapper.java:672)

org/apache/catalina/core/StandardWrapperValve.invoke(StandardWrapperValve.java:100)

org/apache/catalina/core/StandardValveContext.invokeNext(StandardValveContext.java:97)

org/apache/catalina/core/StandardPipeline.invoke(StandardPipeline.java:512)

org/apache/catalina/core/StandardContextValve.invokeInternal(StandardContextValve.java:168)

org/apache/catalina/core/StandardContextValve.invoke(StandardContextValve.java:112)

org/apache/catalina/core/StandardValveContext.invokeNext(StandardValveContext.java:97)

org/apache/catalina/authenticator/AuthenticatorBase.invoke(AuthenticatorBase.java:400)

org/apache/catalina/core/StandardValveContext.invokeNext(StandardValveContext.java:97)

org/apache/catalina/core/StandardPipeline.invoke(StandardPipeline.java:512)

org/apache/catalina/core/StandardHostValve.invoke(StandardHostValve.java:117)

org/apache/catalina/core/StandardValveContext.invokeNext(StandardValveContext.java:97)

org/apache/catalina/valves/ErrorReportValve.invoke(ErrorReportValve.java:118)

org/apache/catalina/core/StandardValveContext.invokeNext(StandardValveContext.java:97)

org/apache/catalina/core/StandardPipeline.invoke(StandardPipeline.java:512)

org/apache/catalina/core/StandardEngineValve.invoke(StandardEngineValve.java:99)

org/apache/catalina/core/StandardValveContext.invokeNext(StandardValveContext.java:97)

org/apache/catalina/core/StandardPipeline.invoke(StandardPipeline.java:512)
org/apache/catalina/core/ContainerBase.invoke(ContainerBase.java:929)
org/apache/coyote/tomcat5/CoyoteAdapter.service(CoyoteAdapter.java:125)

org/apache/coyote/http11/Http11Processor.process(Http11Processor.java:718)

org/apache/coyote/http11/Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:682)

org/apache/tomcat/util/net/TcpWorkerThread.runIt(PoolTcpEndpoint.java:535)

org/apache/tomcat/util/threads/ThreadPool$ControlRunnable.run(ThreadPool.java:646)
java/lang/Thread.run(Thread.java:536)


root cause 

java.lang.IllegalStateException: zip file closed
java/lang/Throwable.init(Throwable.java:195)
java/lang/Exception.init(Exception.java:41)
java/lang/RuntimeException.init(RuntimeException.java:43)
java/lang/IllegalStateException.init(IllegalStateException.java:38)
java/util/zip/ZipFile.getEntry(ZipFile.java:143)
java/util/jar/JarFile.getEntry(JarFile.java:184)
java/util/jar/JarFile.getJarEntry(JarFile.java:171)

org/apache/catalina/loader/WebappClassLoader.findResourceInternal(WebappClassLoader.java:1680)

org/apache/catalina/loader/WebappClassLoader.findClassInternal(WebappClassLoader.java:1567)

org/apache/catalina/loader/WebappClassLoader.findClass(WebappClassLoader.java:834)

org/apache/catalina/loader/WebappClassLoader.loadClass(WebappClassLoader.java:1222)

org/apache/catalina/loader/WebappClassLoader.loadClass(WebappClassLoader.java:1189)

org/apache/catalina/core/StandardWrapper.loadServlet(StandardWrapper.java:875)

org/apache/catalina/core/StandardWrapper.allocate(StandardWrapper.java:672)

org/apache/catalina/core/StandardWrapperValve.invoke(StandardWrapperValve.java:100)

org/apache/catalina/core/StandardValveContext.invokeNext(StandardValveContext.java:97)

org/apache/catalina/core/StandardPipeline.invoke(StandardPipeline.java:512)

org/apache/catalina/core/StandardContextValve.invokeInternal(StandardContextValve.java:168)


RE: Problem With Tomcat and NT service

2004-11-18 Thread hui
Hi
In this case, can we change the base directory?
Regards,
hui

-Original Message-
From: Hubble, Christopher [mailto:[EMAIL PROTECTED] 
Sent: Thursday, November 18, 2004 8:28 AM
To: 'Tomcat Users List'
Subject: RE: Problem With Tomcat and NT service

That's because when Tomcat is run as a service, it's base directory becomes
System32 instead of whatever dir you run the startup bat file in.

Chris

-Original Message-
From: Raphael THIOLIERE [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 18, 2004 4:40 AM
To: Tomcat Users List
Subject: Problem With Tomcat and NT service


Hello,

I use Tomcat like a server of webservices.
When I run Tomcat with the script startup.bat, my application works fine.
But when I want to launch Tomcat with the NT service (created by the
install) it doesn't work : I have to copy a fichier in the directory
system32.
This fichier is use by my application, it contains the informations for the
connection at the SGBD.
My version of tomcat is 4.1.
Idea ?

If I use tomcat 3.3 ,I modify the fichier wrapper.properties and It works.


Raphaël.


-
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: Problem With Tomcat and NT service

2004-11-18 Thread Hubble, Christopher
Not AFAIK.

Chris

-Original Message-
From: hui [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 18, 2004 9:15 AM
To: 'Tomcat Users List'
Subject: RE: Problem With Tomcat and NT service


Hi
In this case, can we change the base directory?
Regards,
hui

-Original Message-
From: Hubble, Christopher [mailto:[EMAIL PROTECTED] 
Sent: Thursday, November 18, 2004 8:28 AM
To: 'Tomcat Users List'
Subject: RE: Problem With Tomcat and NT service

That's because when Tomcat is run as a service, it's base directory becomes
System32 instead of whatever dir you run the startup bat file in.

Chris

-Original Message-
From: Raphael THIOLIERE [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 18, 2004 4:40 AM
To: Tomcat Users List
Subject: Problem With Tomcat and NT service


Hello,

I use Tomcat like a server of webservices.
When I run Tomcat with the script startup.bat, my application works fine.
But when I want to launch Tomcat with the NT service (created by the
install) it doesn't work : I have to copy a fichier in the directory
system32.
This fichier is use by my application, it contains the informations for the
connection at the SGBD.
My version of tomcat is 4.1.
Idea ?

If I use tomcat 3.3 ,I modify the fichier wrapper.properties and It works.


Raphaël.


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

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


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

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



RE: Problem With Tomcat and NT service

2004-11-18 Thread Shapira, Yoav

Hi,
You can change the base directory by changing the location from which you 
start the server, on some operating systems.  On others, this doesn't matter.  
Which is of course the problem with relying on a concept like base directory, 
or current working directory, as part of your design.  It's poor design that 
lacks in portability: change it.

Yoav Shapira http://www.yoavshapira.com


-Original Message-
From: hui [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 18, 2004 9:15 AM
To: 'Tomcat Users List'
Subject: RE: Problem With Tomcat and NT service

Hi
In this case, can we change the base directory?
Regards,
hui

-Original Message-
From: Hubble, Christopher [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 18, 2004 8:28 AM
To: 'Tomcat Users List'
Subject: RE: Problem With Tomcat and NT service

That's because when Tomcat is run as a service, it's base directory becomes
System32 instead of whatever dir you run the startup bat file in.

Chris

-Original Message-
From: Raphael THIOLIERE [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 18, 2004 4:40 AM
To: Tomcat Users List
Subject: Problem With Tomcat and NT service


Hello,

I use Tomcat like a server of webservices.
When I run Tomcat with the script startup.bat, my application works fine.
But when I want to launch Tomcat with the NT service (created by the
install) it doesn't work : I have to copy a fichier in the directory
system32.
This fichier is use by my application, it contains the informations for the
connection at the SGBD.
My version of tomcat is 4.1.
Idea ?

If I use tomcat 3.3 ,I modify the fichier wrapper.properties and It works.


Raphaël.


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




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


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



Re: Suggestion - upgrade scripts.

2004-11-18 Thread Didier McGillis
I would agree with this from most applications both open source and 
commercial license software they will provide infromation on how to upgrade 
and new features, and of course the software, but its still up to those 
maintaining their sites that are using the software to do the upgrading and 
test and to fix any errors that may crop up due to differences from one 
version to the next.  One upgrade we did was where the company changes 
significently the javascript processor embedded in the system, so if you 
developed the site in JavaScript Pages instead of JavaServer Pages, guess 
what, you had a lot of work to do.  BTW we learned that information from 
other developers and connections we had in their online community, not from 
the company itself.


In all seriousness, how could there be such a tool?  Most of what Tomcat
does and provides is detailed in the servlet/JSP specs: it must handle
WAR files, it must service JSPs, and so on.  In turn, most of the
upgrade process involves you, the developer, testing and adjusting your
app to fit the new specs.  Looking at the upgrade guide I've assembled,
there were only a couple of changes to Tomcat config files.
-QM
--
software  -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.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]


Sessions on restart

2004-11-18 Thread Mark O'Driscoll



Hi,

Using 5.0.28 on Windows2000.

I have a session listener that 
implements

HttpSessionListener,ServletContextListener,HttpSessionActivationListener,HttpSessionBindingListener

and it works fine in that I am notified of the 
context start, sessions being added  destroyed.

I am using this to keep a list of the sessions that 
are currently active.

Now when tomcat restarts, the sessions persist OK 
but I have no way of knowing the list of active sessions. 

I am sure that in the 4.0.x days, sessionCreated 
was called on restart for all the persisted sessions. That doesn't seem to be 
happening with 5.0.28. 

The question is:

How do I maintain a list of sctive sessions across 
restarts of Tomcat.

TIA

- Mark (back after a LONG time)


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

Re: HTTP persistence with Tomcat 4.1.29

2004-11-18 Thread Tim Funk
 verified that the client is sending Keep-Alive. Is there any way to log
 the response header Connection to see whether the server is not sending
 Close in the response? I can't find a way to log response headers in
Not really. (With the existing code base)
Chunked encoding is needed for keep-alive to be effective. If you don't use 
chunked encoding, then your servlet must set the content length. Otherwise - 
the client won't know how much data is being returned. WIth chunked encoding 
 - data can be sent immediately without knowing the content length. (Just 
the length of the current chunk)

-Tim
Chandrasekar Krishnan wrote:
Dear Tomcat users,
What is the most reliable way to verify that persistent HTTP connections
are maintained between a Tomcat server and a Java based Http Client
(both HTTP 1.0 and 1.1 requests)? I've tried something on my own
unsuccessfully.
On the Tomcat server, I have turned on logging for the incoming header
Connection using AccessLogValve Pattern (using %{Connection}i) and
verified that the client is sending Keep-Alive. Is there any way to log
the response header Connection to see whether the server is not sending
Close in the response? I can't find a way to log response headers in
Tomcat. I have used netstat, but I can't get clinching evidence with it. 

Is it true that the Tomcat servlet needs to call setContentLength for
dynamic content to support persistent connections, even for HTTP 1.1
requests or is HTTP 1.1 sophisticated enough that it doesn't need that
header to maintain HTTP persistence? There are concerns with setting that
header if it's not needed, since it can cause a connection to hang if set
to an incorrect value.

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


RE: Sessions on restart

2004-11-18 Thread Shapira, Yoav

Hi,

Now when tomcat restarts, the sessions persist OK but I have no way of
knowing the list of active sessions.

There will be an activation event for each session restored from disk.
If your listener implemented HttpSessionActivationListener, you'd get
this event.  By monitoring session creation, activation, passivation,
and destruction, you will be able to maintain the list of active
sessions.

I am sure that in the 4.0.x days, sessionCreated was called on restart
for all the persisted sessions. That doesn't seem to be happening with
5.0.28.

This behavior was a bug if it indeed existed.

Yoav Shapira http://www.yoavshapira.com




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


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



Re: Sessions on restart

2004-11-18 Thread Mark O'Driscoll
Well, as you can see my listener implements this interface but the
activation/ passivation methods are never called :-( I have flagged the
class as a listener in m web.xml. Is there anything else I have to do?

TIA

Mark

- Original Message -
From: Shapira, Yoav [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Thursday, November 18, 2004 3:14 PM
Subject: RE: Sessions on restart



Hi,

Now when tomcat restarts, the sessions persist OK but I have no way of
knowing the list of active sessions.

There will be an activation event for each session restored from disk.
If your listener implemented HttpSessionActivationListener, you'd get
this event.  By monitoring session creation, activation, passivation,
and destruction, you will be able to maintain the list of active
sessions.

I am sure that in the 4.0.x days, sessionCreated was called on restart
for all the persisted sessions. That doesn't seem to be happening with
5.0.28.

This behavior was a bug if it indeed existed.

Yoav Shapira http://www.yoavshapira.com




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


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



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



Re: Sessions on restart

2004-11-18 Thread Jon Wingfield
Yep. Read the docs more carefully ;)
The activation/passivation methods are called on objects that implement 
the listener AND are attributes of the session to be activated/passivated.

Tomcat works as Yoav described.
HTH,
Jon
Mark O'Driscoll wrote:
Well, as you can see my listener implements this interface but the
activation/ passivation methods are never called :-( I have flagged the
class as a listener in m web.xml. Is there anything else I have to do?
TIA
Mark
- Original Message -
From: Shapira, Yoav [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Thursday, November 18, 2004 3:14 PM
Subject: RE: Sessions on restart

Hi,

Now when tomcat restarts, the sessions persist OK but I have no way of
knowing the list of active sessions.

There will be an activation event for each session restored from disk.
If your listener implemented HttpSessionActivationListener, you'd get
this event.  By monitoring session creation, activation, passivation,
and destruction, you will be able to maintain the list of active
sessions.

I am sure that in the 4.0.x days, sessionCreated was called on restart
for all the persisted sessions. That doesn't seem to be happening with
5.0.28.
This behavior was a bug if it indeed existed.
Yoav Shapira http://www.yoavshapira.com

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

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

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


How to upgrade an application without stopping service?

2004-11-18 Thread Agustín de la Herrán
I´ve an application running over tomcat 5.0.19 installed on a
production server that can´t be stopped because it´s beeing used all
the time. And i´ve got not permission to stop the service neither a
moment.
This application has changed, and now I´ve to upgrade it (classes,
html and some .txt files) in order to provide the new version.
Is there any way of doing it without stopping the service??

Sorry about my english and thanks for all,

Agus

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



RE: How to upgrade an application without stopping service?

2004-11-18 Thread Allistair Crossley
If your context is set to reloadable you might get away with it but other than 
that I do not think Tomcat can do this - certainly it's never worked when I 
have tried it with a WAR. I'm sure someone else has a better idea.

 -Original Message-
 From: Agustín de la Herrán [mailto:[EMAIL PROTECTED]
 Sent: 18 November 2004 15:35
 To: [EMAIL PROTECTED]
 Subject: How to upgrade an application without stopping service?
 
 
 I´ve an application running over tomcat 5.0.19 installed on a
 production server that can´t be stopped because it´s beeing used all
 the time. And i´ve got not permission to stop the service neither a
 moment.
 This application has changed, and now I´ve to upgrade it (classes,
 html and some .txt files) in order to provide the new version.
 Is there any way of doing it without stopping the service??
 
 Sorry about my english and thanks for all,
 
 Agus
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
---
QAS Ltd.
Developers of QuickAddress Software
a href=http://www.qas.com;www.qas.com/a
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT


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



question about Realm's scope

2004-11-18 Thread Gabriel Belingueres
Hi 
I'm running a Tomcat 5 in my job, where we have deployed a number of
web application (ie. contexts).

Some of this web applications require that the user be authenticated
by a login screen (allways checking against the same database table),
and some of the other applications are independent of each other, so
no login is required.

The question is: 

Can I define different Realms to support this particular configuration? 

In other words, if a user login when entering an application, and
then, through a redirect, that application send him to other
application located in the same server that has to pass the login
again, do the login be bypassed? or it will just ask for the
username/password again, even if the user was already logged on by the
prior application?

Thanks in advance,
Gabriel

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



RE: question about Realm's scope

2004-11-18 Thread Shapira, Yoav

Hi,
Realms can be defined at the Engine, Host, of Context level.  If they're
at the Context level, they will apply only to that webapp, so
re-authentication will be required.  At the Host level, no
re-authentication will be needed if the second webapp is in the same
Host.  Same concept for the Engine.

Yoav Shapira http://www.yoavshapira.com


-Original Message-
From: Gabriel Belingueres [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 18, 2004 10:39 AM
To: [EMAIL PROTECTED]
Subject: question about Realm's scope

Hi
I'm running a Tomcat 5 in my job, where we have deployed a number of
web application (ie. contexts).

Some of this web applications require that the user be authenticated
by a login screen (allways checking against the same database table),
and some of the other applications are independent of each other, so
no login is required.

The question is:

Can I define different Realms to support this particular configuration?

In other words, if a user login when entering an application, and
then, through a redirect, that application send him to other
application located in the same server that has to pass the login
again, do the login be bypassed? or it will just ask for the
username/password again, even if the user was already logged on by the
prior application?

Thanks in advance,
Gabriel

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




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


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



RE: How to upgrade an application without stopping service?

2004-11-18 Thread Shapira, Yoav

Hi,
You need to schedule down time for the server.  Perhaps a night time window 
like 3am when usage is minimal.  Then do the upgrade.

Yoav Shapira http://www.yoavshapira.com


-Original Message-
From: Agustín de la Herrán [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 18, 2004 10:35 AM
To: [EMAIL PROTECTED]
Subject: How to upgrade an application without stopping service?

I´ve an application running over tomcat 5.0.19 installed on a
production server that can´t be stopped because it´s beeing used all
the time. And i´ve got not permission to stop the service neither a
moment.
This application has changed, and now I´ve to upgrade it (classes,
html and some .txt files) in order to provide the new version.
Is there any way of doing it without stopping the service??

Sorry about my english and thanks for all,

Agus

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




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


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



Re: secure jsp using web.xml in tomcat 5.0.19

2004-11-18 Thread Ashish Kulkarni
Hi
I am using struts framework and want to make sure that
sure access jsp only from action classes and not
directly
Ashish
--- Larry Meadors [EMAIL PROTECTED] wrote:

 You told tomcat to only allow post and get access to
 your jsp files.
  
 Uhh, that is about all you can possibly allow.
  
 What are you trying to do?
 
  [EMAIL PROTECTED] 11/17/2004 3:06:18 PM
 
 
 Hi
 I want to secure all my jsp in my web application, 
 I added following security constraint in my web.xml
 file, but some how seems it does not work
 security-constraint
  web-resource-collection
   web-resource-nameBlock Access to jsp
 files/web-resource-name
   descriptionThis is to block access to all jsp
 files/description
   url-pattern*.jsp/url-pattern
   http-methodPOST/http-method
   http-methodGET/http-method
  /web-resource-collection
 /security-constraint
 what may be the reason??
 
 




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



RE: How to upgrade an application without stopping service?

2004-11-18 Thread Peter Crowther
 From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
 You need to schedule down time for the server.  Perhaps a 
 night time window like 3am when usage is minimal.  Then do 
 the upgrade.

An alternative, if you have the hardware for it, would be to install the
new app version on new hardware but using the same database and other
resources as the old version.  Then change your DNS to point to the new
version, wait a day or so for that to propagate through the DNS caches,
shut down and upgrade the old server, restart that old server with the new
version, change your DNS settings back, wait a day or so, and then turn
off your new hardware.

This presupposes that the new and old apps are compatible at the data
layer, and that it's only the code that differs.  Clearly, if they are
not, you're going to have to stop the service at some point to change the
schema.

Just my 0.02 (it's a stronger currency than $0.02 at the moment ;-) )

- Peter


smime.p7s
Description: S/MIME cryptographic signature


Re: Sessions on restart

2004-11-18 Thread Mark O'Driscoll
That worked fine. Thanks to you both

Mark
- Original Message -
From: Jon Wingfield [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Thursday, November 18, 2004 3:35 PM
Subject: Re: Sessions on restart


 Yep. Read the docs more carefully ;)
 The activation/passivation methods are called on objects that implement
 the listener AND are attributes of the session to be activated/passivated.

 Tomcat works as Yoav described.

 HTH,

 Jon

 Mark O'Driscoll wrote:

  Well, as you can see my listener implements this interface but the
  activation/ passivation methods are never called :-( I have flagged the
  class as a listener in m web.xml. Is there anything else I have to do?
 
  TIA
 
  Mark
 
  - Original Message -
  From: Shapira, Yoav [EMAIL PROTECTED]
  To: Tomcat Users List [EMAIL PROTECTED]
  Sent: Thursday, November 18, 2004 3:14 PM
  Subject: RE: Sessions on restart
 
 
 
  Hi,
 
 
 Now when tomcat restarts, the sessions persist OK but I have no way of
 knowing the list of active sessions.
 
 
  There will be an activation event for each session restored from disk.
  If your listener implemented HttpSessionActivationListener, you'd get
  this event.  By monitoring session creation, activation, passivation,
  and destruction, you will be able to maintain the list of active
  sessions.
 
 
 I am sure that in the 4.0.x days, sessionCreated was called on restart
 
  for all the persisted sessions. That doesn't seem to be happening with
  5.0.28.
 
  This behavior was a bug if it indeed existed.
 
  Yoav Shapira http://www.yoavshapira.com
 
 
 
 
  This e-mail, including any attachments, is a confidential business
  communication, and may contain information that is confidential,
proprietary
  and/or privileged.  This e-mail is intended only for the individual(s)
to
  whom it is addressed, and may not be saved, copied, printed, disclosed
or
  used by anyone else.  If you are not the(an) intended recipient, please
  immediately delete this e-mail from your computer system and notify the
  sender.  Thank you.
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 



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




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



Re: Tomcat 5.5.4 Stability

2004-11-18 Thread Vy Ho
I didn't use the default configuration.  The app. ran fine with 200 
client threads.  When increased to 300 client threads, it went out of 
memory and I stopped it.  So, after that, I increased the maxthread to 
400, and give the server 512 M for max amount of memory.  The app. then 
ran fine.  However, go to work, and restart the computer at work.  I run 
the same thing again, 200 client threads choke the server.  It did not 
go down, but client application get connection refused.  If restart the 
client, it would be able to connect again.  So, I am not sure what's the 
problem.  Something to do with network, I am not sure.  This is not a 
slow machine either.  2.53 Ghz, Pentium 4.  I also use its real IP 
versus localhost, but same problem. The set up of the application is 
identical.  I am talking about copy and unzip the things to make sure 
exactly same stuff get run.   Both run version of JDK1.5.  I have to 
find out what's going on now.

It's not very clear to me: did you use the default configuration or
not ? If you didn't, what are the results with the default
configuration ? (I'm trying to get an overview of what you did, and
get comparison data to be able to make configuration recommendations
in the future)
 


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


JDBC User Realm Error...

2004-11-18 Thread Quinton Delpeche
Hello Everybody,

I have set up a JDBC User Realm that authenticates against a PostgresQL server 
for a specific engine.

Whenever I try and log in, it authenticates the user correctly (I check the 
logs and get the message below):

LOG EXTRACT
2004-11-18 18:09:59 JDBCRealm[]: Username patsyr successfully authenticated
/LOG EXTRACT

But my Page is redirected to j_security_check with the following error:
ERROR
HTTP Status 408 - The time allowed for the login process has been exceeded. If 
you wish to continue you must either click back twice and re-click the link 
you requested or close and re-open your browser

type Status report

message The time allowed for the login process has been exceeded. If you wish 
to continue you must either click back twice and re-click the link you 
requested or close and re-open your browser

description The client did not produce a request within the time that the 
server was prepared to wait (The time allowed for the login process has been 
exceeded. If you wish to continue you must either click back twice and 
re-click the link you requested or close and re-open your browser).
Apache Tomcat/5.0
/ERROR

This same code worked perfectly on Tomcat 4.0 using a MS-SQL server.

I am now migrating this application to Tomcat 5 on a PostgresQL server.

Please help, I have tried googling but I cannot find any information regarding 
this.

Thanks
Q
-- 
Quinton Delpeche
Internal Systems Developer
Softline VIP

Telephone: +27 12 420 7000
Direct:+27 12 420 7007
Facsimile: +27 12 420 7344

http://www.vippayroll.co.za/

Does the name Pavlov ring a bell?


pgpW9JchUQT9i.pgp
Description: PGP signature


Re: Tomcat 5.5.4 Stability

2004-11-18 Thread Peter Lin
which tool are you using to stress test?  perhaps try a different tool
to double check? when I test, I like to use apache ab and jmeter to
validate the results.  I'm a bit paranoid when it comes to telling
management, the server will handle X traffic :)

peter


On Thu, 18 Nov 2004 11:18:07 -0500, Vy Ho [EMAIL PROTECTED] wrote:
 
 I didn't use the default configuration.  The app. ran fine with 200
 client threads.  When increased to 300 client threads, it went out of
 memory and I stopped it.  So, after that, I increased the maxthread to
 400, and give the server 512 M for max amount of memory.  The app. then
 ran fine.  However, go to work, and restart the computer at work.  I run
 the same thing again, 200 client threads choke the server.  It did not
 go down, but client application get connection refused.  If restart the
 client, it would be able to connect again.  So, I am not sure what's the
 problem.  Something to do with network, I am not sure.  This is not a
 slow machine either.  2.53 Ghz, Pentium 4.  I also use its real IP
 versus localhost, but same problem. The set up of the application is
 identical.  I am talking about copy and unzip the things to make sure
 exactly same stuff get run.   Both run version of JDK1.5.  I have to
 find out what's going on now.
 
 
 
 It's not very clear to me: did you use the default configuration or
 not ? If you didn't, what are the results with the default
 configuration ? (I'm trying to get an overview of what you did, and
 get comparison data to be able to make configuration recommendations
 in the future)
 
 
 
 
 -
 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.5.4 Stability

2004-11-18 Thread Vy Ho
This an a web service using Axis as the soap library.  I developed my 
own stress tool for this.  This is the same tool that get used at both 
computer.

This is Windows XP.  I'll see if SP2 will do any difference.  The 
computer at home as SP2 on it.

Peter Lin wrote:
which tool are you using to stress test?  perhaps try a different tool
to double check? when I test, I like to use apache ab and jmeter to
validate the results.  I'm a bit paranoid when it comes to telling
management, the server will handle X traffic :)
peter
 


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


RE: Tomcat 5.5.4 Stability

2004-11-18 Thread Shapira, Yoav

Hi,

This an a web service using Axis as the soap library.  I developed my
own stress tool for this.  This is the same tool that get used at both
computer.

Your time would be better spent moving to a publicly available stress
testing tool.  There are many, including many free ones.  Results that
not independently reproducible are irrelevant.

Yoav



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


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



Re: Custom tag attribute runtime expression containing and delimited by quotes. Supported in Tomcat, but not other JSP containers. What is the standard?

2004-11-18 Thread Sean Dockery
Hmmm...  We found in section JSP 2.6 (page 41) in the Core Syntax and 
Semantics chapter of the JSP 1.2 specification that this...

mytags:tag value=%= hi! % /

...is expressly illegal.

Should this be considered to be a bug in Jasper?

Sean Dockery [EMAIL PROTECTED] wrote in message 
news:[EMAIL PROTECTED]
 Hello,

 We recently came upon an issue in migrating our web application from 
 Tomcat 4.1.x to SAP Web AS 6.4 SP7.

 Here is an example of the offending code (which involves indexed beans 
 managed by a Struts ActionForm):

 logic:iterate ... indexId=offset
Name: html:text property=%= people[ + offset + ].name %/
 /logic:iterate

 The quotes embedded in the property attribute's runtime expression work 
 fine under Tomcat, but failed under SAP Web AS during JSP translation. 
 The Web AS JSP compiler sees the quote before the word people as the 
 closing delimiter for the property attribute value.

 We found that the following variations work in both Tomcat and SAP Web 
 AS.

 html:text property='%= people[ + offset + ].name %'/
 (using apostrophes instead of quotes to delimit the attribute values)

 html:text property=%= \people[\ + offset + \].name\ %/
 (escaping the embedded quotes)

 The former solution seems to be sanctioned (according to Google, anyway). 
 The latter solution (though looking to be pure evil) seems to solve a 
 situation where you would have both quotes and apostrophes in the same 
 attribute value.

 Is there anything in the (current or previous) JSP specification dealing 
 with quotes embedded in runtime expressions?  (It is an unfortunately 
 happy coincidence that Jasper supports embedded quotes; anyone else 
 enjoying this behaviour should be aware that it may not be supported by 
 other containers.)

 Thanks for your precious time. 




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



RE: Custom tag attribute runtime expression containing and delimited by quotes. Supported in Tomcat, but not other JSP containers. What is the standard?

2004-11-18 Thread Shapira, Yoav

Hi,
What happens with Tomcat 5.x?  (To which JSP Spec 2.0, not 1.2,
applies).

The reason I ask is that while you can file away bugs against 4.x to
your heart's content, it's not being actively developed and you
shouldn't hold your breath waiting for a fix.

Yoav Shapira http://www.yoavshapira.com


-Original Message-
From: news [mailto:[EMAIL PROTECTED] On Behalf Of Sean Dockery
Sent: Thursday, November 18, 2004 11:21 AM
To: [EMAIL PROTECTED]
Subject: Re: Custom tag attribute runtime expression containing and
delimited by quotes. Supported in Tomcat, but not other JSP containers.
What is the standard?

Hmmm...  We found in section JSP 2.6 (page 41) in the Core Syntax and
Semantics chapter of the JSP 1.2 specification that this...

mytags:tag value=%= hi! % /

...is expressly illegal.

Should this be considered to be a bug in Jasper?

Sean Dockery [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 Hello,

 We recently came upon an issue in migrating our web application from
 Tomcat 4.1.x to SAP Web AS 6.4 SP7.

 Here is an example of the offending code (which involves indexed
beans
 managed by a Struts ActionForm):

 logic:iterate ... indexId=offset
Name: html:text property=%= people[ + offset + ].name %/
 /logic:iterate

 The quotes embedded in the property attribute's runtime expression
work
 fine under Tomcat, but failed under SAP Web AS during JSP
translation.
 The Web AS JSP compiler sees the quote before the word people as the
 closing delimiter for the property attribute value.

 We found that the following variations work in both Tomcat and SAP
Web
 AS.

 html:text property='%= people[ + offset + ].name %'/
 (using apostrophes instead of quotes to delimit the attribute values)

 html:text property=%= \people[\ + offset + \].name\ %/
 (escaping the embedded quotes)

 The former solution seems to be sanctioned (according to Google,
anyway).
 The latter solution (though looking to be pure evil) seems to solve a
 situation where you would have both quotes and apostrophes in the
same
 attribute value.

 Is there anything in the (current or previous) JSP specification
dealing
 with quotes embedded in runtime expressions?  (It is an unfortunately
 happy coincidence that Jasper supports embedded quotes; anyone else
 enjoying this behaviour should be aware that it may not be supported
by
 other containers.)

 Thanks for your precious time.




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




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


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



Re: Tomcat 5.5.4 Stability

2004-11-18 Thread Peter Lin
you might want to give jmeter a shot and see if it backs up your
results. couldn't hurt :)

peter



On Thu, 18 Nov 2004 11:36:20 -0500, Vy Ho [EMAIL PROTECTED] wrote:
 
 This an a web service using Axis as the soap library.  I developed my
 own stress tool for this.  This is the same tool that get used at both
 computer.
 
 This is Windows XP.  I'll see if SP2 will do any difference.  The
 computer at home as SP2 on it.
 
 Peter Lin wrote:
 
 which tool are you using to stress test?  perhaps try a different tool
 to double check? when I test, I like to use apache ab and jmeter to
 validate the results.  I'm a bit paranoid when it comes to telling
 management, the server will handle X traffic :)
 
 peter
 
 
 
 
 
 -
 
 
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


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



Re: Problem displaying PDF in IE6 from Tomcat using the ActiveX R eader Plug-in

2004-11-18 Thread Aman Raheja
Some more info to respond to the earlier responses
1) We're seeing more evidence this is a problem with Reader 6.0.1 (or 
the 6.0.2 patch).  We have a PC with Reader 6.0.0 that works Ok, as well 
as a PC with 5.0.  Our company has done a mass upgrade to Reader 6.0.1 
and IE 6.0.2, so these PCs are not the norm.
2) No SSL is being used at this point (but it will eventually).
3) No compression (that I know of -- unless Tomcat is doing it for us).
4) Our JSP is supposed to be a generic file downloader, handling Word, 
Excel, PDF, etc.   Hence the URL ends in .jsp vs. the real file 
extension.
5) Here's a typical response we're getting in IE:

HTTP/1.0 200 OK
Date: Wed, 17 Nov 2004 20:33:26 GMT
Server: Apache Tomcat/4.0.6 (HTTP/1.1 Connector)
Content-Type: application/pdf;charset=ISO-8859-1
Content-Length: 156483
Content-disposition: attachement; filename=Germany.pdf
expires: Thu, 01 Jan 1970 00:00:00 GMT
Connection: close
Thanks,
Aman Raheja

Phillip Qin wrote:
Where do you generate the pdf? In servlet? The link has to be end with .pdf
(but before any query string) in order for acrobat reader active-x to kick
in.
-Original Message-
From: Aman Raheja [mailto:[EMAIL PROTECTED] 
Sent: November 16, 2004 9:27 AM
To: Tomcat Users List
Subject: Re: Problem displaying PDF in IE6 from Tomcat using the ActiveX R
eader Plug-in

We did set the Security level to low on IE.
More suggestions?
Thanks
Aman Raheja
Phillip Qin wrote:
 

There are security and privacy settings in IE affect PDF generation. 
BTW, ensurethe link before query string ends with .pdf

-Original Message-
From: Aman Raheja [mailto:[EMAIL PROTECTED]
Sent: November 15, 2004 1:40 PM
To: [EMAIL PROTECTED]
Subject: Problem displaying PDF in IE6 from Tomcat using the ActiveX Reader
Plug-in
Problem:
When we try to display a dynamically generated PDF file, IE launches 
the
Adobe Acrobat Reader Plugin, but then just a blank page is displayed and 
the IE status says Done.  No error message is displayed.  No error is 
generated in the System Event logs.

The issue seems to be that every request to request to Tomcat for the
PDF send back the request with charset=ISO-8859-1 in the 
Content-type Header. We want to figure out a way to verify that this 
is the issue. One way might be to somehow get Tomcat to not append the 
Character Set in the header. Is there a way to do this?

Environment:
- Client: Windows XP or Windows 2000
- Server: Tomcat 4.0.6/JDK 1.3.1 running on Solaris and Windows XP
(problem exists on both)
- Adobe Reader 6.0.1 (occurs with 6.0.2 patch as well)
- IE 6.0.2800
Additional Information:
1) Our URLs are formed like this:
http://app.ourserver.com/appname/docViewAGN.jsp?RepoType=CID=18698Doc
Name=
Germanyentry=DocType=pdfcategory=Research
2) Our app is issuing GETs, not POSTs.
3) This is happening on multiple PCs.  One thing we noticed is this may
be somewhat Reader version dependent -- we have a few machines left with 
Reader 5 installed, and they do not seem to have the problem.

4) When the problem occurs, if you then launch Reader manually, the
document that didn't display in the IE window is automatically displayed 
in the full client Reader app.!!!

5) If we set Reader to not open up PDFs in browser windows, the Reader 
window launches and opens the PDF file just fine.   [This is a client 
solution, and not practical to implement across hundreds of PCs
unfortunately.]

6) We actually have one PC with Windows XP, Reader 6.0.1, and IE 6.0.2
that works.  Could this problem be caused by some specific Windows or IE 
patch?

7) We've scoured the forums and tried several things including setting
all security levels to Low in IE, adding a dummy parm at the end of the 
URL to fool IE into launching the PDF correctly (e.g. dummy=file.pdf), 
and various header settings to force caching on to 30 seconds, etc.  
None of this had any effect.

8) Also, we saw some references to problems caused by Tomcat 4.0.6
adding charset=ISO-8859-1 to the Content-Type header in the response.  
How can we override this to see if that's the problem?

Thanks
Aman Raheja
-
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:419a0e4b161771045017228!
 


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


SSL

2004-11-18 Thread Richard HALLIER
Hi everybody,
Sorry if this question has been already asked, but i didnt find any pointers
in the archive.
I'm in the following context : Tomcat 5.0.x, Connector SSL active.
I'd like to prevent everybody from using my webapp with the HTTP protocol,
in fact I'd like to restrict access to my webapp only to the https protocol.
For the moment and with a standard configuration, I can access my webapp
from http and https protocol ...
Thank you for your help.
Richard


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



Re: Problem displaying PDF in IE6 from Tomcat using the ActiveX R eader Plug-in

2004-11-18 Thread David Wall
Have you tried using links like the following:

http://yourhost.com/webappcontext/download.jsp/Germany.pdf

The idea is that tomcat will find the JSP download.jsp and execute it, and
since the link ends with the file name, some browsers will better detect the
pdf reader launch.

If you need some params passed in, your link would look like:

http://yourhost.com/webappcontext/download.jsp/Germany.pdf?abc=xyzxyz=abc

I don't know if your headers have a typo in your email or in production, but
you have an invalid Content-Disposition header (misspelled attachment as
attachement) which would be a problem, too.

David

- Original Message - 
From: Aman Raheja [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Thursday, November 18, 2004 8:47 AM
Subject: Re: Problem displaying PDF in IE6 from Tomcat using the ActiveX R
eader Plug-in


 Some more info to respond to the earlier responses

 1) We're seeing more evidence this is a problem with Reader 6.0.1 (or
 the 6.0.2 patch).  We have a PC with Reader 6.0.0 that works Ok, as well
 as a PC with 5.0.  Our company has done a mass upgrade to Reader 6.0.1
 and IE 6.0.2, so these PCs are not the norm.
 2) No SSL is being used at this point (but it will eventually).
 3) No compression (that I know of -- unless Tomcat is doing it for us).
 4) Our JSP is supposed to be a generic file downloader, handling Word,
 Excel, PDF, etc.   Hence the URL ends in .jsp vs. the real file
 extension.
 5) Here's a typical response we're getting in IE:

 HTTP/1.0 200 OK
 Date: Wed, 17 Nov 2004 20:33:26 GMT
 Server: Apache Tomcat/4.0.6 (HTTP/1.1 Connector)
 Content-Type: application/pdf;charset=ISO-8859-1
 Content-Length: 156483
 Content-disposition: attachement; filename=Germany.pdf
 expires: Thu, 01 Jan 1970 00:00:00 GMT
 Connection: close


 Thanks,
 Aman Raheja



 Phillip Qin wrote:

 Where do you generate the pdf? In servlet? The link has to be end with
.pdf
 (but before any query string) in order for acrobat reader active-x to
kick
 in.
 
 -Original Message-
 From: Aman Raheja [mailto:[EMAIL PROTECTED]
 Sent: November 16, 2004 9:27 AM
 To: Tomcat Users List
 Subject: Re: Problem displaying PDF in IE6 from Tomcat using the ActiveX
R
 eader Plug-in
 
 
 We did set the Security level to low on IE.
 More suggestions?
 Thanks
 Aman Raheja
 
 Phillip Qin wrote:
 
 
 
 There are security and privacy settings in IE affect PDF generation.
 BTW, ensurethe link before query string ends with .pdf
 
 -Original Message-
 From: Aman Raheja [mailto:[EMAIL PROTECTED]
 Sent: November 15, 2004 1:40 PM
 To: [EMAIL PROTECTED]
 Subject: Problem displaying PDF in IE6 from Tomcat using the ActiveX
Reader
 Plug-in
 
 
 Problem:
 
 When we try to display a dynamically generated PDF file, IE launches
 the
 Adobe Acrobat Reader Plugin, but then just a blank page is displayed and
 the IE status says Done.  No error message is displayed.  No error is
 generated in the System Event logs.
 
 The issue seems to be that every request to request to Tomcat for the
 PDF send back the request with charset=ISO-8859-1 in the
 Content-type Header. We want to figure out a way to verify that this
 is the issue. One way might be to somehow get Tomcat to not append the
 Character Set in the header. Is there a way to do this?
 
 Environment:
 
 - Client: Windows XP or Windows 2000
 - Server: Tomcat 4.0.6/JDK 1.3.1 running on Solaris and Windows XP
 (problem exists on both)
 - Adobe Reader 6.0.1 (occurs with 6.0.2 patch as well)
 - IE 6.0.2800
 
 
 Additional Information:
 
 1) Our URLs are formed like this:
 
 http://app.ourserver.com/appname/docViewAGN.jsp?RepoType=CID=18698Doc
 Name=
 Germanyentry=DocType=pdfcategory=Research
 
 2) Our app is issuing GETs, not POSTs.
 
 3) This is happening on multiple PCs.  One thing we noticed is this may
 be somewhat Reader version dependent -- we have a few machines left with
 Reader 5 installed, and they do not seem to have the problem.
 
 4) When the problem occurs, if you then launch Reader manually, the
 document that didn't display in the IE window is automatically displayed
 in the full client Reader app.!!!
 
 5) If we set Reader to not open up PDFs in browser windows, the Reader
 window launches and opens the PDF file just fine.   [This is a client
 solution, and not practical to implement across hundreds of PCs
 unfortunately.]
 
 6) We actually have one PC with Windows XP, Reader 6.0.1, and IE 6.0.2
 that works.  Could this problem be caused by some specific Windows or IE
 patch?
 
 7) We've scoured the forums and tried several things including setting
 all security levels to Low in IE, adding a dummy parm at the end of the
 URL to fool IE into launching the PDF correctly (e.g. dummy=file.pdf),
 and various header settings to force caching on to 30 seconds, etc.
 None of this had any effect.
 
 8) Also, we saw some references to problems caused by Tomcat 4.0.6
 adding charset=ISO-8859-1 to the Content-Type header in the response.
 How can we 

Re: Tomcat 5.5.4 Stability

2004-11-18 Thread Vy Ho
Thank you for the advice.  I'll give JMeter a shot.
Shapira, Yoav wrote:
Hi,
 

This an a web service using Axis as the soap library.  I developed my
own stress tool for this.  This is the same tool that get used at both
computer.
   

Your time would be better spent moving to a publicly available stress
testing tool.  There are many, including many free ones.  Results that
not independently reproducible are irrelevant.
Yoav
 

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


Disadvantages to using unpackWARs=false?

2004-11-18 Thread Jonathan Eric Miller
Does anyone know if there are disadvantages to setting unpackWARs=false? 
What I'm wondering is if it then has to uncompress the .war file everytime a 
resource is accessed thus causing a performance hit?

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


RE: Disadvantages to using unpackWARs=false?

2004-11-18 Thread Shapira, Yoav

Hi,

Does anyone know if there are disadvantages to setting
unpackWARs=false?
What I'm wondering is if it then has to uncompress the .war file
everytime
a
resource is accessed thus causing a performance hit?

We don't uncompress the file on every resource request ;)  That'd be
fairly awful design.  In fact, even with unpackWARs set to true, the WAR
may still be unpacked by Tomcat *in its work directory* for internal
use.  It just means it won't be unpacked in the webapps directory, and
therefore redeployment is easier.

Yoav Shapira http://www.yoavshapira.com



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


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



RE: SSL

2004-11-18 Thread Shapira, Yoav

Hi,
Comment out the non-SSL connector element in server.xml.

Yoav Shapira http://www.yoavshapira.com


-Original Message-
From: Richard HALLIER [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 18, 2004 12:02 PM
To: tomcat mailing-list
Subject: SSL

Hi everybody,
Sorry if this question has been already asked, but i didnt find any
pointers
in the archive.
I'm in the following context : Tomcat 5.0.x, Connector SSL active.
I'd like to prevent everybody from using my webapp with the HTTP
protocol,
in fact I'd like to restrict access to my webapp only to the https
protocol.
For the moment and with a standard configuration, I can access my
webapp
from http and https protocol ...
Thank you for your help.
Richard


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




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


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



RE: SSL

2004-11-18 Thread Richard HALLIER
Thank you for your reply, but I've omitted to say that I have another webapp
that is non-ssl, so I must have the two connectors (http, https) up.
Do you have a solution ?
Really thank you for your help.
Richard

-Message d'origine-
De : Shapira, Yoav [mailto:[EMAIL PROTECTED]
Envoye : jeudi 18 novembre 2004 18:09
A : Tomcat Users List
Objet : RE: SSL



Hi,
Comment out the non-SSL connector element in server.xml.

Yoav Shapira http://www.yoavshapira.com


-Original Message-
From: Richard HALLIER [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 18, 2004 12:02 PM
To: tomcat mailing-list
Subject: SSL

Hi everybody,
Sorry if this question has been already asked, but i didnt find any
pointers
in the archive.
I'm in the following context : Tomcat 5.0.x, Connector SSL active.
I'd like to prevent everybody from using my webapp with the HTTP
protocol,
in fact I'd like to restrict access to my webapp only to the https
protocol.
For the moment and with a standard configuration, I can access my
webapp
from http and https protocol ...
Thank you for your help.
Richard


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




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


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



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



redirect catalina.out

2004-11-18 Thread Scott Pippin
I am trying to redirect catalina.out to an application specific log
file.  I thought I had it set up but it is still writing to
catalina.out.
 
server.xml
 
Server port=8005 shutdown=SHUTDOWN debug=0
  Listener
className=org.apache.catalina.mbeans.ServerLifecycleListener
debug=0/
  Listener
className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener
debug=0/
  GlobalNamingResources
Environment name=simpleValue type=java.lang.Integer
value=30/
Resource name=UserDatabase auth=Container
  type=org.apache.catalina.UserDatabase
   description=User database that can be updated and saved
/Resource
ResourceParams name=UserDatabase
  parameter
namefactory/name
   
valueorg.apache.catalina.users.MemoryUserDatabaseFactory/value
  /parameter
  parameter
namepathname/name
valueconf/tomcat-users.xml/value
  /parameter
/ResourceParams
 
  /GlobalNamingResources
  Service name=Catalina
Connector port=8080
   maxThreads=150 minSpareThreads=25
maxSpareThreads=75
   enableLookups=false redirectPort=8443
acceptCount=100
   debug=0 connectionTimeout=2 
   disableUploadTimeout=true /
Connector port=8009 
   enableLookups=false redirectPort=8443 debug=0
   protocol=AJP/1.3 /
Engine name=Catalina defaultHost=localhost debug=0
  Logger className=org.apache.catalina.logger.FileLogger
  prefix=catalina_log. suffix=.txt
  timestamp=true swallowOutput=true /
 Realm className=org.apache.catalina.realm.JDBCRealm
connectionName=ims connectionPassword=ims
  connectionURL=jdbc:mysql://x.x.x.x:3306/ims
driverName=com.mysql.jdbc.Driver userTable=imsuser
  userNameCol=userid userCredCol=passwordid userRoleTable=imsrole
roleNameCol=userrole /
  Host name=localhost debug=0 appBase=webapps
   unpackWARs=true autoDeploy=true
   xmlValidation=false xmlNamespaceAware=false
Logger className=org.apache.catalina.logger.FileLogger
 directory=logs  prefix=localhost_log.
suffix=.txt
timestamp=true swallowOutput=true /
  /Host
/Engine
  /Service
/Server
 
 
context.xml
 
?xml version=1.0 encoding=utf-8 ?
Context path=/IMS reloadable=true debug=4 swallowOutput=true
 Logger className=org.apache.catalina.logger.FileLogger
prefix=ims_log. suffix=.txt timestamp=true verbosity=4 /
 Logger className=org.apache.catalina.logger.SystemErrLogger
prefix=ims_err. suffix=.txt timestamp=true verbosity=4 /
 Logger className=org.apache.catalina.logger.SystemOutLogger
prefix=ims_out. suffix=.txt timestamp=true verbosity=4 /
/Context
 
Thanks in advance,
 
Scott Pippin
[EMAIL PROTECTED]


Re: Problem displaying PDF in IE6 from Tomcat using the ActiveX R eader Plug-in

2004-11-18 Thread Aman Raheja
Here's some more input from our team, regarding the problem
We've confirmed its defintely the charset=ISO-8859-1 appended to the 
Content-Type header that is causing the problem in IE.  [I'm not saying 
IE shouldn't work with this, but we don't have a choice but to support 
it.]  We wrote a stand-alone servlet that works fine downloading a 
pdf if we leave off the charset.  When we add the charset to the header, 
it breaks.  It looks like when Tomcat is compiling our JSP code, its 
adding the charset into the response based on what we see in the 
intermediate Java code the Jasper compiler is producing.

--- Does anyone know how to override this on Tomcat 4.0.6 specifically?
FYI:  We read that this was a known issue in another forum, and some 
version of Tomcat 4.1 might be changed to leave this off.  However, we 
experimented with Tomcat 4.0.6/JDK 1.3.1, Tomcat 4.1.31/JDK 1.4.2, and 
Tomcat 5.5.4/JDK 1.5.0, and all these combinations add the charset to 
the response.

Meantime we are checking on the mis-spelled attachment for 
Content-Disposition part of the header dump we sent earlier.


David Wall wrote:
Have you tried using links like the following:
http://yourhost.com/webappcontext/download.jsp/Germany.pdf
The idea is that tomcat will find the JSP download.jsp and execute it, and
since the link ends with the file name, some browsers will better detect the
pdf reader launch.
If you need some params passed in, your link would look like:
http://yourhost.com/webappcontext/download.jsp/Germany.pdf?abc=xyzxyz=abc
I don't know if your headers have a typo in your email or in production, but
you have an invalid Content-Disposition header (misspelled attachment as
attachement) which would be a problem, too.
David
- Original Message - 
From: Aman Raheja [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Thursday, November 18, 2004 8:47 AM
Subject: Re: Problem displaying PDF in IE6 from Tomcat using the ActiveX R
eader Plug-in

 

Some more info to respond to the earlier responses
1) We're seeing more evidence this is a problem with Reader 6.0.1 (or
the 6.0.2 patch).  We have a PC with Reader 6.0.0 that works Ok, as well
as a PC with 5.0.  Our company has done a mass upgrade to Reader 6.0.1
and IE 6.0.2, so these PCs are not the norm.
2) No SSL is being used at this point (but it will eventually).
3) No compression (that I know of -- unless Tomcat is doing it for us).
4) Our JSP is supposed to be a generic file downloader, handling Word,
Excel, PDF, etc.   Hence the URL ends in .jsp vs. the real file
extension.
5) Here's a typical response we're getting in IE:
HTTP/1.0 200 OK
Date: Wed, 17 Nov 2004 20:33:26 GMT
Server: Apache Tomcat/4.0.6 (HTTP/1.1 Connector)
Content-Type: application/pdf;charset=ISO-8859-1
Content-Length: 156483
Content-disposition: attachement; filename=Germany.pdf
expires: Thu, 01 Jan 1970 00:00:00 GMT
Connection: close
Thanks,
Aman Raheja

Phillip Qin wrote:
   

Where do you generate the pdf? In servlet? The link has to be end with
 

.pdf
 

(but before any query string) in order for acrobat reader active-x to
 

kick
 

in.
-Original Message-
From: Aman Raheja [mailto:[EMAIL PROTECTED]
Sent: November 16, 2004 9:27 AM
To: Tomcat Users List
Subject: Re: Problem displaying PDF in IE6 from Tomcat using the ActiveX
 

R
 

eader Plug-in
We did set the Security level to low on IE.
More suggestions?
Thanks
Aman Raheja
Phillip Qin wrote:

 

There are security and privacy settings in IE affect PDF generation.
BTW, ensurethe link before query string ends with .pdf
-Original Message-
From: Aman Raheja [mailto:[EMAIL PROTECTED]
Sent: November 15, 2004 1:40 PM
To: [EMAIL PROTECTED]
Subject: Problem displaying PDF in IE6 from Tomcat using the ActiveX
   

Reader
 

Plug-in
Problem:
When we try to display a dynamically generated PDF file, IE launches
the
Adobe Acrobat Reader Plugin, but then just a blank page is displayed and
the IE status says Done.  No error message is displayed.  No error is
generated in the System Event logs.
The issue seems to be that every request to request to Tomcat for the
PDF send back the request with charset=ISO-8859-1 in the
Content-type Header. We want to figure out a way to verify that this
is the issue. One way might be to somehow get Tomcat to not append the
Character Set in the header. Is there a way to do this?
Environment:
- Client: Windows XP or Windows 2000
- Server: Tomcat 4.0.6/JDK 1.3.1 running on Solaris and Windows XP
(problem exists on both)
- Adobe Reader 6.0.1 (occurs with 6.0.2 patch as well)
- IE 6.0.2800
Additional Information:
1) Our URLs are formed like this:
http://app.ourserver.com/appname/docViewAGN.jsp?RepoType=CID=18698Doc
Name=
Germanyentry=DocType=pdfcategory=Research
2) Our app is issuing GETs, not POSTs.
3) This is happening on multiple PCs.  One thing we noticed is this may
be somewhat Reader version dependent -- we have a few machines left with
Reader 5 installed, and they do not 

RE: SSL

2004-11-18 Thread Shapira, Yoav

Hi,
Yeah, reorganize your server.xml into two engines, with one connector
and webapp each.  One engine will have the SSL connector and webapp, and
the other engine will have the non-SSL connector and webapp.

Yoav Shapira http://www.yoavshapira.com


-Original Message-
From: Richard HALLIER [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 18, 2004 12:42 PM
To: Tomcat Users List
Subject: RE: SSL

Thank you for your reply, but I've omitted to say that I have another
webapp
that is non-ssl, so I must have the two connectors (http, https) up.
Do you have a solution ?
Really thank you for your help.
Richard

-Message d'origine-
De : Shapira, Yoav [mailto:[EMAIL PROTECTED]
Envoye : jeudi 18 novembre 2004 18:09
A : Tomcat Users List
Objet : RE: SSL



Hi,
Comment out the non-SSL connector element in server.xml.

Yoav Shapira http://www.yoavshapira.com


-Original Message-
From: Richard HALLIER [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 18, 2004 12:02 PM
To: tomcat mailing-list
Subject: SSL

Hi everybody,
Sorry if this question has been already asked, but i didnt find any
pointers
in the archive.
I'm in the following context : Tomcat 5.0.x, Connector SSL active.
I'd like to prevent everybody from using my webapp with the HTTP
protocol,
in fact I'd like to restrict access to my webapp only to the https
protocol.
For the moment and with a standard configuration, I can access my
webapp
from http and https protocol ...
Thank you for your help.
Richard


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




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


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



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




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


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



RE: redirect catalina.out

2004-11-18 Thread Shapira, Yoav

Hi,
swallowOutput is not a Context attribute, it's a Logger attribute:
change your context.xml to fix that.

Yoav Shapira http://www.yoavshapira.com


-Original Message-
From: Scott Pippin [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 18, 2004 12:45 PM
To: [EMAIL PROTECTED]
Subject: redirect catalina.out

I am trying to redirect catalina.out to an application specific log
file.  I thought I had it set up but it is still writing to
catalina.out.

server.xml

Server port=8005 shutdown=SHUTDOWN debug=0
  Listener
className=org.apache.catalina.mbeans.ServerLifecycleListener
debug=0/
  Listener
className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener
debug=0/
  GlobalNamingResources
Environment name=simpleValue type=java.lang.Integer
value=30/
Resource name=UserDatabase auth=Container
  type=org.apache.catalina.UserDatabase
   description=User database that can be updated and saved
/Resource
ResourceParams name=UserDatabase
  parameter
namefactory/name

valueorg.apache.catalina.users.MemoryUserDatabaseFactory/value
  /parameter
  parameter
namepathname/name
valueconf/tomcat-users.xml/value
  /parameter
/ResourceParams

  /GlobalNamingResources
  Service name=Catalina
Connector port=8080
   maxThreads=150 minSpareThreads=25
maxSpareThreads=75
   enableLookups=false redirectPort=8443
acceptCount=100
   debug=0 connectionTimeout=2
   disableUploadTimeout=true /
Connector port=8009
   enableLookups=false redirectPort=8443 debug=0
   protocol=AJP/1.3 /
Engine name=Catalina defaultHost=localhost debug=0
  Logger className=org.apache.catalina.logger.FileLogger
  prefix=catalina_log. suffix=.txt
  timestamp=true swallowOutput=true /
 Realm className=org.apache.catalina.realm.JDBCRealm
connectionName=ims connectionPassword=ims
  connectionURL=jdbc:mysql://x.x.x.x:3306/ims
driverName=com.mysql.jdbc.Driver userTable=imsuser
  userNameCol=userid userCredCol=passwordid userRoleTable=imsrole
roleNameCol=userrole /
  Host name=localhost debug=0 appBase=webapps
   unpackWARs=true autoDeploy=true
   xmlValidation=false xmlNamespaceAware=false
Logger className=org.apache.catalina.logger.FileLogger
 directory=logs  prefix=localhost_log.
suffix=.txt
timestamp=true swallowOutput=true /
  /Host
/Engine
  /Service
/Server


context.xml

?xml version=1.0 encoding=utf-8 ?
Context path=/IMS reloadable=true debug=4 swallowOutput=true
 Logger className=org.apache.catalina.logger.FileLogger
prefix=ims_log. suffix=.txt timestamp=true verbosity=4 /
 Logger className=org.apache.catalina.logger.SystemErrLogger
prefix=ims_err. suffix=.txt timestamp=true verbosity=4 /
 Logger className=org.apache.catalina.logger.SystemOutLogger
prefix=ims_out. suffix=.txt timestamp=true verbosity=4 /
/Context

Thanks in advance,

Scott Pippin
[EMAIL PROTECTED]



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


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



Re: Disadvantages to using unpackWARs=false?

2004-11-18 Thread Jonathan Eric Miller
OK, thanks for the info. Like you mentioned, I was thinking that 
redeployment would be easier with it set to false. I just wanted to make 
sure that I wouldn't be incurring a performance hit and the expense of not 
having to mess around with an extra directory. Thanks.

Jon
- Original Message - 
From: Shapira, Yoav [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Thursday, November 18, 2004 11:08 AM
Subject: RE: Disadvantages to using unpackWARs=false?


Hi,
Does anyone know if there are disadvantages to setting
unpackWARs=false?
What I'm wondering is if it then has to uncompress the .war file
everytime
a
resource is accessed thus causing a performance hit?
We don't uncompress the file on every resource request ;)  That'd be
fairly awful design.  In fact, even with unpackWARs set to true, the WAR
may still be unpacked by Tomcat *in its work directory* for internal
use.  It just means it won't be unpacked in the webapps directory, and
therefore redeployment is easier.
Yoav Shapira http://www.yoavshapira.com

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


Re: Bind Object into Global JNDI Within Servlet?

2004-11-18 Thread Seth Ladd
Shapira, Yoav wrote:
Hi,
The comp:env JNDI context is read-only for webapps.
Thanks for the reply!  Any chance webapps will be able to bind objects 
into global JNDI in the future?  I've been using Tomcat 5.0.x.

Otherwise, any recommendations for sharing objects across webapps that 
can't be setup using the GlobalResources ?  I need to configure some 
things at startup of my webapp.

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


Error while trying to start the Embedded Tomcat Server:

2004-11-18 Thread Mohamed Rafi S
Hi All,
I am trying to have a Embedded Tomcat Server. I got the examples to do  
so from the web, and modified the code, so that my Tomcat server is  
embedded along with the Web Application.

However, when I run the Embedded Tomcat class, it, I am getting the  
following error:

StandardManager[/TestApp]: Seeding of random number generator has been  
completed
StandardWrapper[/TestApp:default]: Loading container servlet default
StandardWrapper[/TestApp:default]: Marking servlet default as  
unavailable
StandardContext[/TestApp]: Servlet /TestApp threw load() exception
javax.servlet.ServletException: Error instantiating servlet class  
org.apache.catalina.servlets.DefaultServlet
at  
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.jav 
a:865)
at  
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:776)
at  
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.j 
ava:3363)

I have attached the Embedded Tomcat java source file as well.
What am I missing in this ? Any solution or pointers to why this is  
occurring are most welcome.

Thanks and Regards,
Mohamed Rafi S
//package com.apple.pos;

import java.net.URL;
import org.apache.catalina.Connector;
import org.apache.catalina.Context;
import org.apache.catalina.Deployer;
import org.apache.catalina.Engine;
import org.apache.catalina.Host;
import org.apache.catalina.logger.SystemOutLogger;
import org.apache.catalina.startup.Embedded;
import org.apache.catalina.Container;


public class EmbeddedTomcat {


public static int tesss = 0;

  private String path = null;
  private Embedded embedded = null;
  private Host host = null;

  public EmbeddedTomcat() {
tesss = ;
  }


  public void setPath(String path) {

this.path = path;
  }


  public String getPath() {

return path;
  }


  public void startTomcat() throws Exception {

Engine engine = null;
System.setProperty(catalina.home, getPath());

embedded = new Embedded();
embedded.setDebug(0);
embedded.setLogger(new SystemOutLogger());

engine = embedded.createEngine();
engine.setDefaultHost(localhost);

host = embedded.createHost(localhost, getPath() + /webapps);
engine.addChild(host);

Context context1 = embedded.createContext(/TestApp, getPath() + 
/webapps/TestAppp);
host.addChild(context1);

embedded.addEngine(engine);

Connector connector = embedded.createConnector(null, 8080, false);

embedded.addConnector(connector);
embedded.start();
  }

  public void stopTomcat() throws Exception {

embedded.stop();
  }

  public void registerWAR(String contextPath, URL warFile)
throws Exception {

if ( contextPath == null ) {

  throw new Exception(Invalid Path :  + contextPath);
}
if( contextPath.equals(/) ) {

  contextPath = ;
}
if ( warFile == null ) {

  throw new Exception(Invalid WAR :  + warFile);
}

Deployer deployer = (Deployer)host;
Context context = deployer.findDeployedApp(contextPath);

if (context != null) {

  throw new
Exception(Context  + contextPath +  Already Exists!);
}
deployer.install(contextPath, warFile);
  }

  public void unregisterWAR(String contextPath)
throws   Exception {

Context context = host.map(contextPath);
if ( context != null ) {

  embedded.removeContext(context);
}
else {

  throw new
Exception(Context does not exist for named path :   + contextPath);
}
  }

  public static void main(String args[]) {

try {

  EmbeddedTomcat tomcat = new EmbeddedTomcat();
  
tomcat.setPath(/Users/rafi/Desktop/Tomcat_Research/jakarta-tomcat-4.1.31/);
  tomcat.startTomcat();
  Thread.sleep(100);

  tomcat.stopTomcat();

  System.exit(0);
}
catch( Exception e ) {

  e.printStackTrace();
}
  }


}




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

RE: Problem With Tomcat and NT service

2004-11-18 Thread Cox, Charlie
http://www.tburke.net/info/reskittools/topics/srvany_using.htm

See the paragraph about setting the working directory...

Charlie

 -Original Message-
 From: hui [mailto:[EMAIL PROTECTED]
 Sent: Thursday, November 18, 2004 9:15 AM
 To: 'Tomcat Users List'
 Subject: RE: Problem With Tomcat and NT service
 
 Hi
 In this case, can we change the base directory?
 Regards,
 hui
 
 -Original Message-
 From: Hubble, Christopher [mailto:[EMAIL PROTECTED]
 Sent: Thursday, November 18, 2004 8:28 AM
 To: 'Tomcat Users List'
 Subject: RE: Problem With Tomcat and NT service
 
 That's because when Tomcat is run as a service, it's base directory
becomes
 System32 instead of whatever dir you run the startup bat file in.
 
 Chris
 
 -Original Message-
 From: Raphael THIOLIERE [mailto:[EMAIL PROTECTED]
 Sent: Thursday, November 18, 2004 4:40 AM
 To: Tomcat Users List
 Subject: Problem With Tomcat and NT service
 
 
 Hello,
 
 I use Tomcat like a server of webservices.
 When I run Tomcat with the script startup.bat, my application works fine.
 But when I want to launch Tomcat with the NT service (created by the
 install) it doesn't work : I have to copy a fichier in the directory
 system32.
 This fichier is use by my application, it contains the informations for
the
 connection at the SGBD.
 My version of tomcat is 4.1.
 Idea ?
 
 If I use tomcat 3.3 ,I modify the fichier wrapper.properties and It works.
 
 
 Raphaël.
 
 
 -
 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: Bind Object into Global JNDI Within Servlet?

2004-11-18 Thread Shapira, Yoav

Hi,

Thanks for the reply!  Any chance webapps will be able to bind objects
into global JNDI in the future?  I've been using Tomcat 5.0.x.

Any chance?  Sure.  It's low, but it's there.  We're not working on it
at the moment.  But I'm following Geronimo:Naming
(http://geronimo.apache.org/modules/naming/index.html), which is a fork
of Tomcat's naming code.  If it allows writing and binding, or if it
adds other cool features, we might start using it.

Otherwise, any recommendations for sharing objects across webapps that
can't be setup using the GlobalResources ?  I need to configure some
things at startup of my webapp.

That's why we give you a shared classloader repository:
$CATALINA_HOME/shared/classes and shared/lib, as explained in the
classloader how-to.  Things in there are visible to all webapps.  You
can further enforce patterns like a Singleton so that only one instance
of a class exist and is shared among all your webapps.

Yoav



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


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



RE: Error while trying to start the Embedded Tomcat Server:

2004-11-18 Thread Shapira, Yoav

Hi,

org.apache.catalina.servlets.DefaultServlet
 at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.ja
v
a:865)
 at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:776)
 at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.
j

Is there a root cause further down the stack trace?

Yoav



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


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



Re: Error while trying to start the Embedded Tomcat Server:

2004-11-18 Thread Mohamed Rafi S
Yes, following is the root cause given from the exception logs...:
- Root Cause -
java.lang.ExceptionInInitializerError
at  
sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at  
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorA 
ccessorImpl.java:39)
at  
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingCons 
tructorAccessorImpl.java:27)
at  
java.lang.reflect.Constructor.newInstance(Constructor.java:274)
at java.lang.Class.newInstance0(Class.java:308)
at java.lang.Class.newInstance(Class.java:261)
at  
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.jav 
a:856)
at  
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:776)
at  
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.j 
ava:3363)
at  
org.apache.catalina.core.StandardContext.start(StandardContext.java: 
3586)
at  
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1141)
at  
org.apache.catalina.core.StandardHost.start(StandardHost.java:707)
at  
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1141)
at  
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:316)
at org.apache.catalina.startup.Embedded.start(Embedded.java:945)
at EmbeddedTomcat.startTomcat(EmbeddedTomcat.java:70)
at EmbeddedTomcat.main(EmbeddedTomcat.java:126)
Caused by: java.util.MissingResourceException: Can't find bundle for  
base name org.apache.catalina.servlets.LocalStrings, locale en_US
at  
java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.ja 
va:804)
at  
java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:773)
at java.util.ResourceBundle.getBundle(ResourceBundle.java:511)
at  
org.apache.catalina.util.StringManager.init(StringManager.java:68)
at  
org.apache.catalina.util.StringManager.getManager(StringManager.java: 
213)
at  
org.apache.catalina.servlets.DefaultServlet.clinit(DefaultServlet.java 
:186)
... 17 more

Thanks,
Mohamed Rafi S

Hi,
org.apache.catalina.servlets.DefaultServlet
at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.j 
a
v
a:865)
at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java: 
776)
at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext 
.
j
Is there a root cause further down the stack trace?
Yoav

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

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

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


Re: Bind Object into Global JNDI Within Servlet?

2004-11-18 Thread Seth Ladd

That's why we give you a shared classloader repository:
$CATALINA_HOME/shared/classes and shared/lib, as explained in the
classloader how-to.  Things in there are visible to all webapps.  You
can further enforce patterns like a Singleton so that only one instance
of a class exist and is shared among all your webapps.
Yeah, the actual bytecode will live in shared/classes.  I liked using 
JNDI because I could lookup the object every time I need it.  That 
allows me to redeploy the owning webapp and rebind the object.  The 
clients won't be affected by that.

Using a Singleton in the meantime might be a good way to go in the 
meantime.  We also might just give access to the shared object via 
Hessian or Burlap.  Kinda crazy since we're in the same VM, but I want 
to be more flexible than a singleton in a shared classpath.

Thanks for your tips!  I'm pro-GeronimoNaming :)
Seth
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Apache 2.0.52 Tomcat 5.5.4

2004-11-18 Thread Peter O'Reilly
Thanks for you're help but I still can't get it working yet.  I downloaded and 
compiled j2k and I think at this point it is a properties configuration issue, 
but I'm not sure.

This is the line I added to http.conf
LoadModule jk2_module modules/mod_jk2.so

From the apache error log,

[Thu Nov 18 13:03:13 2004] [notice] Apache/2.0.52 (Unix) mod_jk2/2.0.4 
configured -- resuming normal operations

So it looks like it loaded but with wrong configuration.

This is my j2.properties file,
--
# Set the desired handler list
handler.list=apr,request,channelJni
#
# Override the default port for the socketChannel
# channelSocket.port=8019
# Default: 
# channelUnix.file=${jkHome}/work/jk2.socket
# Just to check if the the config is working
# shm.file=${jkHome}/work/jk2.shm

# In order to enable jni use any channelJni directive
# channelJni.disabled = 0
# And one of the following directives:

apr.jniModeSo=/usr/local/apache2/modules/mod_jk.so

# If set to inprocess the mod_jk2 will Register natives itself
# This will enable the starting of the Tomcat from mod_jk2
apr.jniModeSo=inprocess
--


This is my workers.properties file, (located in the same directory as http.conf)
-
[logger]
level=DEBUG

[config:]
file=${serverRoot}/conf/workers2.properties
debug=0
debugEnv=0

[uriMap:]
info=Maps the requests. Options: debug
debug=0

# Alternate file logger
#[logger.file:0]
#level=DEBUG
#file=${serverRoot}/logs/jk2.log

[shm:]
info=Scoreboard. Required for reconfiguration and status with multiprocess 
servers
file=${serverRoot}/logs/jk2.shm
size=100
debug=0
disabled=0

[workerEnv:]
info=Global server options
timing=1
debug=0
# Default Native Logger (apache2 or win32 ) 
# can be overriden to a file logger, useful 
# when tracing win32 related issues
#logger=logger.file:0

[lb:lb]
info=Default load balancer.
debug=0

[lb:lb_1]
info=A second load balancer.
debug=0

[channel.socket:localhost:8009]
port=8009
host=localhost
info=Ajp13 forwarding over socket
debug=0
tomcatId=localhost:8009

[ajp13:localhost:8009]
channel=channel.socket:localhost:8009

[channel.socket:localhost:8019]
info=A second tomcat instance. 
debug=0
tomcatId=localhost:8019
lb_factor=1
#group=lb
group:lb:lb
#group=lb_1
group:lb:lb_1
disabled=0

[channel.un:/opt/33/work/jk2.socket]
info=A second channel connecting to localhost:8019 via unix socket
tomcatId=localhost:8019
lb_factor=1
debug=0

[channel.jni:jni]
info=The jni channel, used if tomcat is started inprocess

[status:]
info=Status worker, displays runtime informations

[vm:]
info=Parameters used to load a JVM in the server process
#JVM=C:\jdk\jre\bin\hotspot\jvm.dll
classpath=${TOMCAT_HOME}/bin/tomcat-jni.jar
classpath=${TOMCAT_HOME}/server/lib/commons-logging.jar
OPT=-Dtomcat.home=${TOMCAT_HOME}
OPT=-Dcatalina.home=${TOMCAT_HOME}
OPT=-Xmx128M
#OPT=-Djava.compiler=NONE
disabled=1

[worker.jni:onStartup]
info=Command to be executed by the VM on startup. This one will start tomcat.
class=org/apache/jk/apr/TomcatStarter
ARG=start
# For Tomcat 5 use the 'stard' for startup argument
# ARG=stard
disabled=1
stdout=${serverRoot}/logs/stdout.log
stderr=${serverRoot}/logs/stderr.log

[worker.jni:onShutdown]
info=Command to be executed by the VM on shutdown. This one will stop tomcat.
class=org/apache/jk/apr/TomcatStarter
ARG=stop
disabled=1

[uri:/jkstatus/*]
info=Display status information and checks the config file for changes.
group=status:


[uri:/examples]
info=Example webapp in the default context. 
context=/examples
debug=0

# POR added
[uri:/iat/*]
worker=ajp13:localhost:8009

[uri:/examples/*]
worker=ajp13:localhost:8009

[uri:/examples1/*]
info=A second webapp, this time going to the second tomcat only.
group=lb_1
debug=0

[uri:/examples/servlet/*]
info=Prefix mapping

[uri:/examples/*.jsp]
info=Extension mapping

[uri:/examples/*]
info=Map the whole webapp

[uri:/examples/servlet/HelloW]
info=Example with debug enabled.
debug=10
---

Where do you configure tomcat with the correct 'context'?
Do you know how to auto generate the properties file with 
/tomcat/bin/startup.sh -jkconf?


Thank you,
Peter





QM [EMAIL PROTECTED] wrote:

On Wed, Nov 17, 2004 at 11:23:14AM -0500, Peter O'Reilly wrote:
:  I can browse my website, www.123.com, but when I click a button the servlet 
I need to execute doesn't and I get a Apache error.  I know its a connector 
issue because I can browse www.123.com:8080/mydir and get to the site, click 
the button, and the servlet does what it's supposed.
: 
: Can someone outline the steps and file I need to configure?  I've read the 
documents and can't get this to work...

For such a question, it *really* helps for you to post the relevant
config files. In this case, those would be the mod_jk configs.

You could also be kind and explain what connector you use (jk vs jk2).

-QM

-- 

software  -- 

SSL mutual authentication problem with Tomcat5

2004-11-18 Thread Ryan LeCompte
Hello,
 
I'm trying to have a standalone Java client communicate via SSL with a
remote Tomcat5 server. I'm setting the two system properties for specifying
the SSL trust store path and trust store password. The client is able to
successfully communicate via SSL when Tomcat is configured to not require
client-side authentication (for example in tomcat the configuration
attribute 'clientAuth=false' would be used). However, when I turn on this
attribute and require client-side authentication, the client fails to
communicate successfully with the Tomcat5 server. The following exception is
generated:
 
java.rmi.RemoteException: HTTP transport error: java.net.SocketException:
Software caused connection abort: recv failed; nested exception is: 
 HTTP transport error: java.net.SocketException: Software caused connection
abort: recv failed
 at  .
 
 
Is there anything else that must occur on the client side when the remote
web server requires a client-side certification authentication? I'm still
new to SSL, so perhaps I have the basic concept confused. Do I have to
import another certification in the client-side keystore for this to work? I
looked in the SSL HOW-TO but didn't find an answer to my question. I also
tried importing all of the certificates in the client keystore into the
cacerts file in JAVA_HOME/jre/lib/security/cacerts.
 
Here is the connector configuration for SSL in server.xml:
 
!-- Define a SSL Coyote HTTP/1.1 Connector on port 8443 --

Connector port=8443 

maxThreads=150 minSpareThreads=25 maxSpareThreads=75

enableLookups=false disableUploadTimeout=true

acceptCount=100 debug=0 scheme=https secure=true

clientAuth=true sslProtocol=TLS

keystoreFile=C:\ssl\sslWSCerts.keystore keystorePass=changeit/

 

Thank you for any help that you may be able to provide.

-- Ryan 


RE: SSL mutual authentication problem with Tomcat5

2004-11-18 Thread Hubble, Christopher
You need to pass the truststore into Tomcat as a JVM option.  Look in the
archives of the list for SSL.  I posted all of my steps a month or so ago.

Chris

-Original Message-
From: Ryan LeCompte [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 18, 2004 2:07 PM
To: [EMAIL PROTECTED]
Subject: SSL mutual authentication problem with Tomcat5


Hello,
 
I'm trying to have a standalone Java client communicate via SSL with a
remote Tomcat5 server. I'm setting the two system properties for specifying
the SSL trust store path and trust store password. The client is able to
successfully communicate via SSL when Tomcat is configured to not require
client-side authentication (for example in tomcat the configuration
attribute 'clientAuth=false' would be used). However, when I turn on this
attribute and require client-side authentication, the client fails to
communicate successfully with the Tomcat5 server. The following exception is
generated:
 
java.rmi.RemoteException: HTTP transport error: java.net.SocketException:
Software caused connection abort: recv failed; nested exception is: 
 HTTP transport error: java.net.SocketException: Software caused connection
abort: recv failed
 at  .
 
 
Is there anything else that must occur on the client side when the remote
web server requires a client-side certification authentication? I'm still
new to SSL, so perhaps I have the basic concept confused. Do I have to
import another certification in the client-side keystore for this to work? I
looked in the SSL HOW-TO but didn't find an answer to my question. I also
tried importing all of the certificates in the client keystore into the
cacerts file in JAVA_HOME/jre/lib/security/cacerts.
 
Here is the connector configuration for SSL in server.xml:
 
!-- Define a SSL Coyote HTTP/1.1 Connector on port 8443 --

Connector port=8443 

maxThreads=150 minSpareThreads=25 maxSpareThreads=75

enableLookups=false disableUploadTimeout=true

acceptCount=100 debug=0 scheme=https secure=true

clientAuth=true sslProtocol=TLS

keystoreFile=C:\ssl\sslWSCerts.keystore keystorePass=changeit/

 

Thank you for any help that you may be able to provide.

-- Ryan 

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



Re: Tomcat 5.5.4 Stability

2004-11-18 Thread Vy Ho
With SP2 of Windows XP, the computer previously can't handle 50 threads 
can handle 200 threads now.  More than that, I got connection refused error.

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


Re: Tomcat 5.5.4 Stability

2004-11-18 Thread Seth Ladd
Vy Ho wrote:
With SP2 of Windows XP, the computer previously can't handle 50 threads 
can handle 200 threads now.  More than that, I got connection refused 
error.
I've had terrible performance on SP2 (my development box).  Unless this 
is your deployment environment, don't trust or worry about SP2 
performance.  It's terrible.  Testing my application on Linux, with the 
same Tomcat setup, yields much more pleasurable results.

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


Re: Tomcat 5.5.4 Stability

2004-11-18 Thread Peter Lin
that's interesting. makes me wonder what changes in SP2 cause the improvement.

peter


On Thu, 18 Nov 2004 14:30:16 -0500, Vy Ho [EMAIL PROTECTED] wrote:
 With SP2 of Windows XP, the computer previously can't handle 50 threads
 can handle 200 threads now.  More than that, I got connection refused error.
 
 
 
 -
 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]



Realm using LOTS of DB connections

2004-11-18 Thread Norris Shelton
We have the manager app for each of our contexts set-up to use
the DB to authenticate users.  Unfortunately, it is using TONS
of connections.  Over an 8 min period, it used 1200 connections.
 We have 2 boxes, each with 16 contexts with their own manager
context.  Here is what the manager context of each of them looks
like:
  Context docBase=../../server/webapps/manager
path=/manager
privileged=true

  Realm 
className=org.apache.catalina.realm.JDBCRealm
 digest=MD5

driverName=oracle.jdbc.driver.OracleDriver
 
connectionURL=jdbc:oracle:thin:@myhost.com:myport:mydb
 connectionName=tomcatmgr
connectionPassword=password
  userTable=user_table
userNameCol=ss_user_id userCredCol=ss_password
  userRoleTable=role_table
roleNameCol=tomcat_role /

  Valve
className=org.apache.catalina.valves.RemoteAddrValve
 allow=10\.11\.\d+\.\d+,127\.0\.0\.1/
  /Context


Is this normal?  Is there a way to throttle it?

=

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




__ 
Do you Yahoo!? 
Meet the all-new My Yahoo! - Try it today! 
http://my.yahoo.com 
 


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



Re: redirect catalina.out

2004-11-18 Thread Shankar Unni
Shapira, Yoav wrote:
swallowOutput is not a Context attribute, it's a Logger attribute:
change your context.xml to fix that.
Really? That's not what the doc says (or the source either). Just tested 
on 5.0.2x. (At least, I defined a

  DefaultContext swallowOutput=true/
in my Host, and standard output went to the log file configured for 
the webapps).

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


Re: Realm using LOTS of DB connections

2004-11-18 Thread Gabriel Belingueres
May be you should try using a DataSourceRealm, so that connections
could be pooled by DBCP.


On Thu, 18 Nov 2004 11:05:02 -0800 (PST), Norris Shelton
[EMAIL PROTECTED] wrote:
 We have the manager app for each of our contexts set-up to use
 the DB to authenticate users.  Unfortunately, it is using TONS
 of connections.  Over an 8 min period, it used 1200 connections.
 We have 2 boxes, each with 16 contexts with their own manager
 context.  Here is what the manager context of each of them looks
 like:
  Context docBase=../../server/webapps/manager
 path=/manager
privileged=true
 
  Realm
 className=org.apache.catalina.realm.JDBCRealm
 digest=MD5
 
 driverName=oracle.jdbc.driver.OracleDriver
 
 connectionURL=jdbc:oracle:thin:@myhost.com:myport:mydb
 connectionName=tomcatmgr
 connectionPassword=password
  userTable=user_table
 userNameCol=ss_user_id userCredCol=ss_password
  userRoleTable=role_table
 roleNameCol=tomcat_role /
 
  Valve
 className=org.apache.catalina.valves.RemoteAddrValve
 allow=10\.11\.\d+\.\d+,127\.0\.0\.1/
  /Context
 
 Is this normal?  Is there a way to throttle it?
 
 =
 
 Norris Shelton
 Software Engineer
 Sun Certified Java 1.1 Programmer
 Appriss, Inc.
 ICQ# 26487421
 AIM NorrisEShelton
 YIM norrisshelton
 
 __
 Do you Yahoo!?
 Meet the all-new My Yahoo! - Try it today!
 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: Realm using LOTS of DB connections

2004-11-18 Thread Seth Ladd
Norris Shelton wrote:
We have the manager app for each of our contexts set-up to use
the DB to authenticate users.  Unfortunately, it is using TONS
of connections.  Over an 8 min period, it used 1200 connections.
 We have 2 boxes, each with 16 contexts with their own manager
context.  Here is what the manager context of each of them looks
like:
  Context docBase=../../server/webapps/manager
path=/manager
privileged=true
  Realm 
className=org.apache.catalina.realm.JDBCRealm
You might want to try to DataSourceRealm, which would pull its 
connection from a pool.

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


RE: Problem displaying PDF in IE6 from Tomcat using the ActiveX R eader Plug-in

2004-11-18 Thread Phillip Qin
If you can visit our site at
https://www.investments.shareowner.com/lciponline and view the sample pdf
statement, then there is something definitely wrong with your own code - do
not pointing to Tomcat.



-Original Message-
From: Aman Raheja [mailto:[EMAIL PROTECTED] 
Sent: November 18, 2004 12:50 PM
To: Tomcat Users List
Subject: Re: Problem displaying PDF in IE6 from Tomcat using the ActiveX R
eader Plug-in


Here's some more input from our team, regarding the problem

We've confirmed its defintely the charset=ISO-8859-1 appended to the 
Content-Type header that is causing the problem in IE.  [I'm not saying 
IE shouldn't work with this, but we don't have a choice but to support 
it.]  We wrote a stand-alone servlet that works fine downloading a 
pdf if we leave off the charset.  When we add the charset to the header, 
it breaks.  It looks like when Tomcat is compiling our JSP code, its 
adding the charset into the response based on what we see in the 
intermediate Java code the Jasper compiler is producing.

--- Does anyone know how to override this on Tomcat 4.0.6 specifically?

FYI:  We read that this was a known issue in another forum, and some 
version of Tomcat 4.1 might be changed to leave this off.  However, we 
experimented with Tomcat 4.0.6/JDK 1.3.1, Tomcat 4.1.31/JDK 1.4.2, and 
Tomcat 5.5.4/JDK 1.5.0, and all these combinations add the charset to 
the response.


Meantime we are checking on the mis-spelled attachment for 
Content-Disposition part of the header dump we sent earlier.




David Wall wrote:

Have you tried using links like the following:

http://yourhost.com/webappcontext/download.jsp/Germany.pdf

The idea is that tomcat will find the JSP download.jsp and execute it, 
and since the link ends with the file name, some browsers will better 
detect the pdf reader launch.

If you need some params passed in, your link would look like:

http://yourhost.com/webappcontext/download.jsp/Germany.pdf?abc=xyzxyz=
abc

I don't know if your headers have a typo in your email or in 
production, but you have an invalid Content-Disposition header 
(misspelled attachment as
attachement) which would be a problem, too.

David

- Original Message -
From: Aman Raheja [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Thursday, November 18, 2004 8:47 AM
Subject: Re: Problem displaying PDF in IE6 from Tomcat using the ActiveX R
eader Plug-in


  

Some more info to respond to the earlier responses

1) We're seeing more evidence this is a problem with Reader 6.0.1 (or 
the 6.0.2 patch).  We have a PC with Reader 6.0.0 that works Ok, as 
well as a PC with 5.0.  Our company has done a mass upgrade to Reader 
6.0.1 and IE 6.0.2, so these PCs are not the norm.
2) No SSL is being used at this point (but it will eventually).
3) No compression (that I know of -- unless Tomcat is doing it for 
us).
4) Our JSP is supposed to be a generic file downloader, handling Word,
Excel, PDF, etc.   Hence the URL ends in .jsp vs. the real file
extension.
5) Here's a typical response we're getting in IE:

HTTP/1.0 200 OK
Date: Wed, 17 Nov 2004 20:33:26 GMT
Server: Apache Tomcat/4.0.6 (HTTP/1.1 Connector)
Content-Type: application/pdf;charset=ISO-8859-1
Content-Length: 156483
Content-disposition: attachement; filename=Germany.pdf
expires: Thu, 01 Jan 1970 00:00:00 GMT
Connection: close


Thanks,
Aman Raheja



Phillip Qin wrote:



Where do you generate the pdf? In servlet? The link has to be end 
with
  

.pdf
  

(but before any query string) in order for acrobat reader active-x to
  

kick
  

in.

-Original Message-
From: Aman Raheja [mailto:[EMAIL PROTECTED]
Sent: November 16, 2004 9:27 AM
To: Tomcat Users List
Subject: Re: Problem displaying PDF in IE6 from Tomcat using the 
ActiveX
  

R
  

eader Plug-in


We did set the Security level to low on IE.
More suggestions?
Thanks
Aman Raheja

Phillip Qin wrote:



  

There are security and privacy settings in IE affect PDF generation. 
BTW, ensurethe link before query string ends with .pdf

-Original Message-
From: Aman Raheja [mailto:[EMAIL PROTECTED]
Sent: November 15, 2004 1:40 PM
To: [EMAIL PROTECTED]
Subject: Problem displaying PDF in IE6 from Tomcat using the ActiveX


Reader
  

Plug-in


Problem:

When we try to display a dynamically generated PDF file, IE launches 
the Adobe Acrobat Reader Plugin, but then just a blank page is 
displayed and the IE status says Done.  No error message is 
displayed.  No error is generated in the System Event logs.

The issue seems to be that every request to request to Tomcat for 
the PDF send back the request with charset=ISO-8859-1 in the 
Content-type Header. We want to figure out a way to verify that 
this is the issue. One way might be to somehow get Tomcat to not 
append the Character Set in the header. Is there a way to do this?

Environment:

- Client: Windows XP or Windows 2000
- Server: Tomcat 4.0.6/JDK 1.3.1 running on Solaris and Windows XP 

RE: redirect catalina.out

2004-11-18 Thread Shapira, Yoav


Hi,
Yup, my mistake, thank you for pointing that out.  (Although please
don't use DefaultContext as an example of anything, it's an
abomination).

Yoav Shapira http://www.yoavshapira.com


-Original Message-
From: news [mailto:[EMAIL PROTECTED] On Behalf Of Shankar Unni
Sent: Thursday, November 18, 2004 3:23 PM
To: [EMAIL PROTECTED]
Subject: Re: redirect catalina.out

Shapira, Yoav wrote:

 swallowOutput is not a Context attribute, it's a Logger attribute:
 change your context.xml to fix that.

Really? That's not what the doc says (or the source either). Just
tested
on 5.0.2x. (At least, I defined a

   DefaultContext swallowOutput=true/

in my Host, and standard output went to the log file configured for
the webapps).


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




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


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



RE: Errors in mod_jk2 log

2004-11-18 Thread Phillip Qin
There are tons of these messages appeared in my log. I've asked this
question before, no one seems bother answering it. Shall we post it to
connector's dev list?

-Original Message-
From: Lars George [mailto:[EMAIL PROTECTED] 
Sent: November 17, 2004 7:31 PM
To: Tomcat Users List
Subject: Errors in mod_jk2 log


Hi,

We get these errors in the Apache logs coming from mod_jk2:

[Wed Nov 17 13:37:32 2004] [error] ajp13.service() ajpGetReply 
recoverable error 3
[Wed Nov 17 13:37:32 2004] [error] ajp13.service() Error  forwarding
ajp13:b19socket 1 0 [Wed Nov 17 13:37:32 2004] [error] mod_jk2.handler()
Error connecting to tomcat 3, status 200


I read the jk_worker_ajp13.c code to see what that means, but cannot 
really make out how to determine the actual reason.

Could someone suggest how to investigate that further? Would the extra 
debug help? And where would I switch it on best? I mean on the channel 
or socket element?

Thanks,
Lars


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


!DSPAM:419bed4791457924012082!


Re: Realm using LOTS of DB connections

2004-11-18 Thread Norris Shelton
Sorry, I forgot to specify the version.  

TC 4.1.12

--- Norris Shelton [EMAIL PROTECTED] wrote:

 We have the manager app for each of our contexts set-up to use
 the DB to authenticate users.  Unfortunately, it is using TONS
 of connections.  Over an 8 min period, it used 1200
 connections.
  We have 2 boxes, each with 16 contexts with their own manager
 context.  Here is what the manager context of each of them
 looks
 like:
   Context docBase=../../server/webapps/manager
 path=/manager
 privileged=true
 
   Realm 
 className=org.apache.catalina.realm.JDBCRealm
  digest=MD5
 
 driverName=oracle.jdbc.driver.OracleDriver
  
 connectionURL=jdbc:oracle:thin:@myhost.com:myport:mydb
  connectionName=tomcatmgr
 connectionPassword=password
   userTable=user_table
 userNameCol=ss_user_id userCredCol=ss_password
   userRoleTable=role_table
 roleNameCol=tomcat_role /
 
   Valve
 className=org.apache.catalina.valves.RemoteAddrValve
 
 allow=10\.11\.\d+\.\d+,127\.0\.0\.1/
   /Context
 
 
 Is this normal?  Is there a way to throttle it?
 
 =
 
 Norris Shelton
 Software Engineer
 Sun Certified Java 1.1 Programmer
 Appriss, Inc.
 ICQ# 26487421
 AIM NorrisEShelton
 YIM norrisshelton
 
 
 
   
 __ 
 Do you Yahoo!? 
 Meet the all-new My Yahoo! - Try it today! 
 http://my.yahoo.com 
  
 
 

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


=

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




__ 
Do you Yahoo!? 
Meet the all-new My Yahoo! - Try it today! 
http://my.yahoo.com 
 


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



Problem on SuSE 9.2...

2004-11-18 Thread Quinton Delpeche
Greetings,

It is me again.

What does this error mean:

The time allowed for the login process has been exceeded

Is there a problem with my PostgresQL JDBC driver for the User Realm?
This same code worked on a MS-SQL server... ...why won't work it here.

The previous server was a SuSE 9.0 running Tomcat 4.
Is there a serious difference in configuration?

Here is the extract from my server.xml file:
EXTRACT
!-- Context for Internal Systems ROOT engine --
Context className=org.apache.catalina.core.StandardContext 
debug=0
 cachingAllowed=false cookies=false crossContext=false
 charsetMapperClass=org.apache.catalina.util.CharsetMapper
 displayName=VIP Internal Systems (Core Engine) path=
 docBase=/srv/www/tomcat5/base/webapps/ROOT 
privileged=false
 mapperClass=org.apache.catalina.core.StandardContextMapper
 reloadable=true swallowOutput=false useNaming=true
 wrapperClass=org.apache.catalina.core.StandardWrapper
  Realm className=org.apache.catalina.realm.JDBCRealm 
connectionName=USER
 connectionPassword=PASSWORDS debug=99 
driverName=org.postgresql.Driver
 connectionURL=jdbc:postgresql://SOME_IP:5432/intsys 
roleNameCol=quot;_vipRoleNamequot;
 userCredCol=quot;_vipPasswordquot; 
userNameCol=quot;cAgentNamequot; userRoleTable=quot;_vipRolequot;
 userTable=quot;_rtblAgentsquot; validate=true/
/Context
/EXTRACT

The names have been changed to protect the guilty.

I have to echo the the column names and table names with quot; because I am 
using PostgresQL which is ANSI 92 compliant... ...could this be the problem.

Please help me. :(

Q
-- 
Quinton Delpeche
Internal Systems Developer
Softline VIP

Telephone: +27 12 420 7000
Direct:+27 12 420 7007
Facsimile: +27 12 420 7344

http://www.vippayroll.co.za/

A day for firm decisions!  Or is it?


pgpJroC2U0Hml.pgp
Description: PGP signature


write and read problem

2004-11-18 Thread Wout Perquin
Hi All,
I run Tomcat4 on Linux Red Hat 7.1
From within the init() of a servlet I try to read and write to the local
filesystem.
The SecurityManager is not enabled because System.getSecurityManager()
returns null.

When I try to read/write something then log catalina.out tells me:
java.io.FileNotFoundException: path/filename (Permission denied)

I am not sure what to do next:
 I believe it is not java security related because there is no security
manager active
 In $CATALINA_HOME/conf/catalina.policy I have granted all permissions
 Maybe I have to give user-id tomcat4 special rights ?

Any suggestions ?

Many thanks,

Wout Perquin





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



RE: write and read problem

2004-11-18 Thread Shapira, Yoav

Hi,
Post your code and we might be able to help more.  In general, the
server admin may run with restrictive permissions for security at the OS
level, so it wouldn't matter whether the Java Security Manager is
running or not.  This is usually a good idea.  And writing files to a
random directory from a webapp is usually a bad idea.

Yoav Shapira http://www.yoavshapira.com


-Original Message-
From: Wout Perquin [mailto:[EMAIL PROTECTED]
Sent: Friday, November 19, 2004 1:38 AM
To: Tomcat Users List
Subject: write and read problem

Hi All,
I run Tomcat4 on Linux Red Hat 7.1
From within the init() of a servlet I try to read and write to the
local
filesystem.
The SecurityManager is not enabled because System.getSecurityManager()
returns null.

When I try to read/write something then log catalina.out tells me:
java.io.FileNotFoundException: path/filename (Permission denied)

I am not sure what to do next:
 I believe it is not java security related because there is no
security
manager active
 In $CATALINA_HOME/conf/catalina.policy I have granted all permissions
 Maybe I have to give user-id tomcat4 special rights ?

Any suggestions ?

Many thanks,

Wout Perquin





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




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


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



Re: Tomcat 5.5.4 Stability

2004-11-18 Thread Vy Ho
I just test the thing under Red Hat (old version, kernel 2.4.x).  It 
could handle up to 350 threads before choking.  I'll see how well it 
does under the latest kernel tonight.

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


RE: write and read problem

2004-11-18 Thread Wout Perquin
Thanks for responding.
My code attached:
 Logging.java is the servlet
 Runner.java is a utility class
 also web.xml

Thanks in advance, Wout Perquin

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: November 18, 2004 1:34 PM
To: Tomcat Users List
Subject: RE: write and read problem



Hi,
Post your code and we might be able to help more.  In general, the
server admin may run with restrictive permissions for security at the OS
level, so it wouldn't matter whether the Java Security Manager is
running or not.  This is usually a good idea.  And writing files to a
random directory from a webapp is usually a bad idea.

Yoav Shapira http://www.yoavshapira.com


-Original Message-
From: Wout Perquin [mailto:[EMAIL PROTECTED]
Sent: Friday, November 19, 2004 1:38 AM
To: Tomcat Users List
Subject: write and read problem

Hi All,
I run Tomcat4 on Linux Red Hat 7.1
From within the init() of a servlet I try to read and write to the
local
filesystem.
The SecurityManager is not enabled because System.getSecurityManager()
returns null.

When I try to read/write something then log catalina.out tells me:
java.io.FileNotFoundException: path/filename (Permission denied)

I am not sure what to do next:
 I believe it is not java security related because there is no
security
manager active
 In $CATALINA_HOME/conf/catalina.policy I have granted all permissions
 Maybe I have to give user-id tomcat4 special rights ?

Any suggestions ?

Many thanks,

Wout Perquin





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




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


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


?xml version=1.0 encoding=ISO-8859-1?

!DOCTYPE web-app
PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN
http://java.sun.com/dtd/web-app_2_3.dtd;

web-app
display-nameServlet Logging Test hedres.org/display-name
description
  Some tests to understand basic servlet functionalities
/description
	servlet
		servlet-nameLogging/servlet-name
		servlet-classhedres.servlets.Logging/servlet-class
		init-param
			param-nameproperties/param-name
			param-value/hedres/conf/servlets/Logging/param-value
		/init-param

		init-param
			param-namejava.security.policy/param-name
			param-valuehttp://linuxg:8088/java.policy.all/param-value
		/init-param
		init-param
			param-namenet.jini.discovery.interface/param-name
			param-valuelinuxg/param-value
		/init-param
		init-param
			param-namejava.rmi.activation.port/param-name
			param-value1099/param-value
		/init-param
		init-param
			param-namejava.rmi.server.codebase/param-name
			param-valuehttp://linuxg:8088//param-value
		/init-param

	/servlet

	servlet-mapping
servlet-nameLogging/servlet-name
url-pattern/grapje/url-pattern
/servlet-mapping

/web-app

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

Installing a webmail client such as squirrelmail (PHP) on tomcat?

2004-11-18 Thread David Lee
Hi! Folks,
 
Has anyone run the php application on Tomcat?. I'm trying to install the
squirrelmail on tomcat so I can web access my james email server.
 
What is the best way to integrate the php with tomcat or any
suggesstions or pitfalls to avoid?
 
Any comments welcome.
 
Thanks
 
David Lee


Re: Installing a webmail client such as squirrelmail (PHP) on tomcat?

2004-11-18 Thread David Boyer
I think you'd be better off fronting Tomcat with Apache or IIS
(depending on your platform). mod_php for Apache seems to have a pretty
good track record. For IIS, I'd suggest using php.exe for process
isolation rather than the PHP ISAPI application extension due to known
threading issues.
 
You might also be able to use Tomcat's CGI servlet to execute PHP
scripts with the appropriate binary for your platform, but I can't speak
to that from specific experience.

 [EMAIL PROTECTED] 11/18/2004 4:11:37 PM 

Hi! Folks,

Has anyone run the php application on Tomcat?. I'm trying to install
the
squirrelmail on tomcat so I can web access my james email server.

What is the best way to integrate the php with tomcat or any
suggesstions or pitfalls to avoid?

Any comments welcome.

Thanks

David Lee



RE: Installing a webmail client such as squirrelmail (PHP) ontomcat?

2004-11-18 Thread David Lee
Thanks, I'll look into it. 

-Original Message-
From: David Boyer [mailto:[EMAIL PROTECTED] 
Sent: Thursday, November 18, 2004 2:47 PM
To: [EMAIL PROTECTED]
Subject: Re: Installing a webmail client such as squirrelmail (PHP)
ontomcat?

I think you'd be better off fronting Tomcat with Apache or IIS
(depending on your platform). mod_php for Apache seems to have a pretty
good track record. For IIS, I'd suggest using php.exe for process
isolation rather than the PHP ISAPI application extension due to known
threading issues.
 
You might also be able to use Tomcat's CGI servlet to execute PHP
scripts with the appropriate binary for your platform, but I can't speak
to that from specific experience.

 [EMAIL PROTECTED] 11/18/2004 4:11:37 PM 

Hi! Folks,

Has anyone run the php application on Tomcat?. I'm trying to install the
squirrelmail on tomcat so I can web access my james email server.

What is the best way to integrate the php with tomcat or any
suggesstions or pitfalls to avoid?

Any comments welcome.

Thanks

David Lee


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



Re: Installing a webmail client such as squirrelmail (PHP) on tomcat?

2004-11-18 Thread Hassan Schroeder
David Lee wrote:
Has anyone run the php application on Tomcat?. 
I've tinkered with it -- using the phpservlet to run a calendar app.
Works surprisingly well, but since you're hooking into native code,
beware -- if (when!) it crashes, it takes the whole JVM with it :-)
YMMV!
--
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: Installing a webmail client such as squirrelmail (PHP) on tomcat?

2004-11-18 Thread David Lee
Hi! Hassan,

You mean phpservlet to read the php app config file or php files and
then phpservlet to serve the php page?
Your calendar app were written using PHP?

Thanks 

David Lee 

-Original Message-
From: Hassan Schroeder [mailto:[EMAIL PROTECTED] 
Sent: Thursday, November 18, 2004 3:06 PM
To: Tomcat Users List
Subject: Re: Installing a webmail client such as squirrelmail (PHP) on
tomcat?

David Lee wrote:

 Has anyone run the php application on Tomcat?. 

I've tinkered with it -- using the phpservlet to run a calendar app.
Works surprisingly well, but since you're hooking into native code,
beware -- if (when!) it crashes, it takes the whole JVM with it :-)

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


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



Re: Installing a webmail client such as squirrelmail (PHP) on tomcat?

2004-11-18 Thread Hassan Schroeder
David Lee wrote:
You mean phpservlet to read the php app config file or php files and
then phpservlet to serve the php page?
When you build (configure) php with --with-java=$JAVA_HOME (I think,
it was a while ago I built this), you get a 'phpservlet.jar' created.
Put that in $CATALINA_HOME/common/lib, add something like this to
your catalina.sh startup script:
  LD_LIBRARY_PATH=/usr/local/php/lib/php/libphp4.so
:: and you're set. Oh, yeah, need to add mappings to your web.xml.
Your calendar app were written using PHP?
It's phpicalendar (I'm not the author). As I said, php does seem
to work fine, but I have had it crash. The machine I was using to
test with was woefully underpowered and under-memoried, though. I'll
have to try it on something more robust and see what happens.
HTH!
--
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: Tomcat 5.5.4 Stability

2004-11-18 Thread Remy Maucherat
On Thu, 18 Nov 2004 17:14:53 -0500, Vy Ho [EMAIL PROTECTED] wrote:
 I just test the thing under Red Hat (old version, kernel 2.4.x).  It
 could handle up to 350 threads before choking.  I'll see how well it
 does under the latest kernel tonight.

If you try FC 3, I recommend you also use Java 5 (if you want a Sun
VM). From what I understood, it's the only Sun VM which takes
advantage of Linux 2.6.

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



Re: context loaded twice

2004-11-18 Thread QM
On Thu, Nov 18, 2004 at 03:02:08PM +0200, Asher Tarnopolski wrote:
: tomcat not only prints the report twice, it loads the webapp twice,
: because right after the second time i get a nasty exception:

To add on to the response you've already received from someone else:
Tomcat's deploying your webapp twice because you've (implicitly) asked
it to do so.  

In your server config's Host/ tag, make note of the following
attributes:
- autoDeploy: automatically deploy a webapp when it's updated

- deployOnStartup: deploy all webapps found in the appBase when
  Tomcat starts

So if you have an app that's explicitly defined by a Context/ tag, but
the docBase and path attributes don't match, Tomcat figures you want
to deploy it again.

Short version: make sure autoDeploy and deployOnStartup are both false.

-QM

-- 

software  -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com


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



RE: Installing a webmail client such as squirrelmail (PHP) on tomcat?

2004-11-18 Thread David Lee
Thanks lot, I will study it.

David Lee 

-Original Message-
From: Hassan Schroeder [mailto:[EMAIL PROTECTED] 
Sent: Thursday, November 18, 2004 3:51 PM
To: Tomcat Users List
Subject: Re: Installing a webmail client such as squirrelmail (PHP) on
tomcat?

David Lee wrote:

 You mean phpservlet to read the php app config file or php files and 
 then phpservlet to serve the php page?

When you build (configure) php with --with-java=$JAVA_HOME (I think, it
was a while ago I built this), you get a 'phpservlet.jar' created.
Put that in $CATALINA_HOME/common/lib, add something like this to your
catalina.sh startup script:

   LD_LIBRARY_PATH=/usr/local/php/lib/php/libphp4.so

:: and you're set. Oh, yeah, need to add mappings to your web.xml.

 Your calendar app were written using PHP?

It's phpicalendar (I'm not the author). As I said, php does seem to
work fine, but I have had it crash. The machine I was using to test with
was woefully underpowered and under-memoried, though. I'll have to try
it on something more robust and see what happens.

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


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



Re: Strange Problem!: Connection time out while using URLConnection connect method

2004-11-18 Thread vignesh
Hi,

Thanks. Thinking that could be the problem, I had already tried binding it with 
the specific IP address of the machine by setting the address attribute for 
HTTP connector in server.xml but that too didn't work.


-- Original Message --

On 18 Nov 2004, 06:06:06 PM, Sailing Cai writes:

 I think you may check you IP setting.
 You run tomcat in command prompt ,jvm binging your ip;but in windows
 service it may binding 127.0.0.1 or localhost.
 
 I guess it^_^
 
 
 On Thu, 18 Nov 2004 09:36:32 GMT, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
  Hi All,
  
  I am posting this again. Please help.
  
  Thanks.
  
  --Forwarded message --
  References: [EMAIL PROTECTED]
  From: [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Subject: Strange Problem!: Connection time out while using URLConnection 
  connect method
  Date: Wed, 17 Nov 2004 09:30:17 GMT
  Mime-Version: 1.0
  Content-Type: text/plain; charset=us-ascii
  Content-Transfer-Encoding: 7bit
  
  Hi All,
  
  I am facing a very strange problem. When I run tomcat4.1.27 in command 
  prompt, I am able to connect and call a servlet deployed in it from another 
  java program running on another machine using using URLConnection connect 
  method.
  
  But when I run tomcat server from windows services, the client program is 
  not able to call the deployed servlet and throws the below exception at the 
  line where connect method is invoked.
  
  java.net.ConnectException: Connection timed out: connect
  
  Has anyone else faced this strange problem. The only difference is in the 
  way tomcat server has been started. When started in command prompt there 
  are no problems in connecting to the server and calling the servlet 
  deployed in it! I need to badly get this working when tomcat is started as 
  a windows service.
  
  Thanks in Advance.
  
  Vignesh.
  
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 

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



Re: Strange Problem!: Connection time out while using URLConnection connect method

2004-11-18 Thread vignesh
Hi,

The I am running tomcat and the client program in the same subnet and so there 
is no such issue.

Thanks.

-- Original Message --

On 18 Nov 2004, 06:12:54 PM, [EMAIL PROTECTED] writes:

 
 Is this somthing related to external Ip and Internal ip 
 if you are behind the firewall...
 
 Birendar Singh Waldiya
 Tata Consultancy Services Limited
 Mailto: [EMAIL PROTECTED]
 Website: http://www.tcs.com
 
 
 
 [EMAIL PROTECTED] 
 11/18/2004 03:06 PM
 
 Please respond to
 Tomcat Users List [EMAIL PROTECTED]
 
 
 To
 [EMAIL PROTECTED]
 cc
 
 Subject
 Strange Problem!: Connection time out while using URLConnection connect 
 method
 
 
 
 
 
 
 Hi All,
 
 I am posting this again. Please help.
 
 Thanks.
 
 
 --Forwarded message --
 References: [EMAIL PROTECTED]
 From: [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: Strange Problem!: Connection time out while using URLConnection 
 connect method
 Date: Wed, 17 Nov 2004 09:30:17 GMT
 Mime-Version: 1.0
 Content-Type: text/plain; charset=us-ascii
 Content-Transfer-Encoding: 7bit
 
 Hi All,
  
 I am facing a very strange problem. When I run tomcat4.1.27 in command 
 prompt, I am able to connect and call a servlet deployed in it from 
 another java program running on another machine using using URLConnection 
 connect method.
  
 But when I run tomcat server from windows services, the client program is 
 not able to call the deployed servlet and throws the below exception at 
 the line where connect method is invoked.
  
 java.net.ConnectException: Connection timed out: connect
  
  
 Has anyone else faced this strange problem. The only difference is in the 
 way tomcat server has been started. When started in command prompt there 
 are no problems in connecting to the server and calling the servlet 
 deployed in it! I need to badly get this working when tomcat is started as 
 a windows service.
  
 Thanks in Advance.
  
 Vignesh.
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 ForwardSourceID:NT4412 
 
 
 DISCLAIMER: The information contained in this message is intended only and 
 solely for the addressed individual or entity indicated in this message and 
 for the exclusive use of the said addressed individual or entity indicated in 
 this message (or responsible for delivery of the message to such person) and 
 may contain legally privileged and confidential information belonging to Tata 
 Consultancy Services Limited. It must not be printed, read, copied, 
 disclosed, forwarded, distributed or used (in whatsoever manner) by any 
 person other than the addressee. Unauthorized use, disclosure or copying is 
 strictly prohibited and may constitute unlawful act and can possibly attract 
 legal action, civil and/or criminal. The contents of this message need not 
 necessarily reflect or endorse the views of Tata Consultancy Services limited 
 on any subject matter.
   Any action taken or omitted to be taken based on this message is entirely 
 at your risk and neither the originator of this message nor Tata Consultancy 
 Services Limited takes any responsibility or liability towards the same. 
 Opinions, conclusions and any other information contained in this message 
 that do not relate to the official business of Tata Consultancy Services 
 limited shall be understood as neither given nor endorsed by Tata Consultancy 
 Services Limited or any affiliate of Tata Consultancy Services Limited. If 
 you have received this message in error,  you should destroy this message and 
 may please notify the sender by e-mail. 

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



Tomcat 4.1.30 and Cookie problems (HTTP 1.1 spec)

2004-11-18 Thread Kilic, Hakan
Hi all,

When using Tomcat 4.1.30, I haven't been able to determine from the
documentation if it uses Netscape style cookies, or HTTP 1.1 style cookies.
With Netscape style cookies, you get the EXPIRES attribute, and with HTTP
1.1 style, you get the MAXAGE attribute instead.

Also, I'm seeing the following behavior, and would love to know if someone
knows what's going on (here's a snippet from a proxy I was running).


REQUEST THAT COMES IN:
+
GET /myapplication/page1.jsp HTTP/1.1
Accept: */*
Host: myserver
Cache-Control: max-age=0

Cookie: $Version=1; JSESSIONID=4C769DCBFDB7E7099BC78FE092A0A853; $Path=/;
$Domain=myserver

Cookie: $Version=1; JSESSIONID=35300D6FBA7FB8312EC00BAD5BD27138;
$Path=/myapplication; $Domain=myserver

RESPONSE:
++
HTTP/1.1 200 OK

Set-Cookie: JSESSIONID=5CEF133DB1A6D2EB51E8FCCB71FDD8FE; Path=/myapplication

Now I know that previously in my application two cookies are created, one
with $Path=/ and one with $Path=/myapplication.

What I don't understand is if the order that cookie comes in is the problem,
or if the fact that two cookies are sent is the problem.

Why is Tomcat creating a new cookie/session for page1.jsp if it gets sent a
cookie with a valid JSESSIONID for the correct path? Session timeouts?
Invalidation of the session? Wrong cookie order?

Any help is much appreciated,

-HK

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



RE: SSL

2004-11-18 Thread Carl Olivier
Alternatively, if you wish to accept HTTP connections, but redirect (forced
to https) you could add a security-constraint to your webapps
/WEB-INF/web.xml - before the /web-app:

security-constraint
web-resource-collection
web-resource-nameHTTP to HTTPS
redirection/web-resource-name
url-pattern/*/url-pattern
/web-resource-collection
user-data-constraint
transport-guarantee
CONFIDENTIAL
/transport-guarantee
/user-data-constraint
/security-constraint 

Thus, both the http and https connectors can exist in the same Service -
where you web app host lives, but the WEBAPP ITSELF will ensure that even
http requests to it will be redirected to https.

Be sure to specify the correct redirectPort attribute in your HTTP connector
- to 443 or 8443 depending on what port your HTTPS connector listens on.

Thus, people can request your site/webapp using http - but will be
redirected to https immediately for all requests.

Hope that helps.

Carl

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
Sent: Thursday, November 18, 2004 7:53 PM
To: Tomcat Users List
Subject: RE: SSL


Hi,
Yeah, reorganize your server.xml into two engines, with one connector and
webapp each.  One engine will have the SSL connector and webapp, and the
other engine will have the non-SSL connector and webapp.

Yoav Shapira http://www.yoavshapira.com
 

-Original Message-
From: Richard HALLIER [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 18, 2004 12:42 PM
To: Tomcat Users List
Subject: RE: SSL

Thank you for your reply, but I've omitted to say that I have another 
webapp that is non-ssl, so I must have the two connectors (http, https) 
up.
Do you have a solution ?
Really thank you for your help.
Richard

-Message d'origine-
De : Shapira, Yoav [mailto:[EMAIL PROTECTED] Envoye : jeudi 18 
novembre 2004 18:09 A : Tomcat Users List Objet : RE: SSL



Hi,
Comment out the non-SSL connector element in server.xml.

Yoav Shapira http://www.yoavshapira.com


-Original Message-
From: Richard HALLIER [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 18, 2004 12:02 PM
To: tomcat mailing-list
Subject: SSL

Hi everybody,
Sorry if this question has been already asked, but i didnt find any 
pointers in the archive.
I'm in the following context : Tomcat 5.0.x, Connector SSL active.
I'd like to prevent everybody from using my webapp with the HTTP
protocol,
in fact I'd like to restrict access to my webapp only to the https 
protocol.
For the moment and with a standard configuration, I can access my
webapp
from http and https protocol ...
Thank you for your help.
Richard


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




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


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



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




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


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

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



Webapps Root Folder

2004-11-18 Thread Richard
Hello Guys,

I need to remove the webapp specific part / names on my application.
For example

http://mydomain.com/mywebapp/index.jsp

and

http://mydomain.com/mywebapp/serverpages/add-record.rr

I need the user to just see http://mydomain.com/ on their browser.

Can I just transfer the contents of my webapps/mywebapp to  
webapps/ROOT folder?

Please Help
Thanks
Richard

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



  1   2   >