Hi

2004-10-18 Thread hgomez
--  Virus Warning Message (on uusnwa0p)

Found virus WORM_NETSKY.Z in file Bill.txt 
   
 .exe (in Bill.zip)
The file is deleted.

-
Important bill!


--  Virus Warning Message (on uusnwa0p)

Bill.zip is removed from here because it contains a virus.

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

Ihre Mail wurde geblockt, da sie einen Virus enthlt.

2004-10-18 Thread Postmaster
Ihre Mail wurde geblockt, da sie einen Virus enthaelt. Die Mail und darin enthaltene 
Erklaerungen sind nicht zugegangen. Einzuhaltende Fristen wurden nicht gewahrt. Senden 
Sie uns Ihre ueberpruefte Mail erneut zu oder benutzen Sie einen anderen 
Kommunikationsweg. Danke fuer Ihr Verstaendnis.


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



stop task do not release jar files

2004-10-18 Thread Antony Paul
Hi all,
 Repost due to typ error.
  I use Ant stop task to stop the context and delete the files in
the application context folder. But it is unable to delete the jar
files.

Tomcat 4.1.30

rgds
Antony Paul

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



RE: Class loading in tomcat 5.0

2004-10-18 Thread Narayan, Satya
Hi,
   Thanks a lot for your comments. I tried out a few things regarding this.
I tried having different jars with the same class. As far my test goes the WebApp 
Class Loader picked up the jars in alphabetical order. 
I tried with tomcat 5.5 under Windows 2000 file system. 
I looked through the code of WebApp Class loader but couldnot gather much. 

Is picking jar files within a respository alphabetical or random ?

Kindly advise.

Thanks and Regards,
Satya

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
Sent: Thursday, October 14, 2004 08:24 PM
To: Tomcat Users List
Subject: RE: Class loading in tomcat 5.0



Hi,

What I want to achieve is control the way jars are loaded.
I want to load a particular jar(say X.jar) before another jar(say
Y.jar) .
Can this be achieved ?

Only be putting X.jar in a repository that has higher priority than
Y.jar.  Within the same repository, you can't control loading order.
For what repositories are available to you and their priority from the
webapp's perspective, RTFM on the Classloader How-To.

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: [tomcat] tomcat not running

2004-10-18 Thread Antony Paul
I know nothing about Turbine and it is Tomcat list. You can better ask
it at Turbine list. But on seeing the error message I can give you a
checklist.
What the application contains. 
Does application have an index.jsp.
Does application have a web.xml in WEB-INF directory. 
Does this contains servlet.jar in WEB-INF\lib ? This jar is not needed there.

Also go to Tomcat installation directory. There will be one webapps
directory. Check it contains a ROOT folder.

rgds
Antony Paul


On Mon, 18 Oct 2004 06:34:13 +0100 (BST), George A
[EMAIL PROTECTED] wrote:
 hello all,
i hope i have posted to the correct lists : ( . i am first time user to 
 tdk. my tomcat is not running. i am using tdk 2.3. my question is:
 
 when all applications from webapps folder are deleted following messages come when i 
 click on startup.bat
 
 Oct 18, 2004 10:33:42 AM org.apache.commons.modeler.Registry loadRegistry
 INFO: Loading registry information
 Oct 18, 2004 10:33:42 AM org.apache.commons.modeler.Registry getRegistry
 INFO: Creating new Registry instance
 Oct 18, 2004 10:33:42 AM org.apache.commons.modeler.Registry getServer
 INFO: Creating MBeanServer
 Oct 18, 2004 10:33:43 AM org.apache.coyote.http11.Http11Protocol init
 INFO: Initializing Coyote HTTP/1.1 on port 8080
 Starting service Tomcat-Standalone
 Apache Tomcat/4.1.27-LE-jdk14
 Oct 18, 2004 10:33:43 AM org.apache.coyote.http11.Http11Protocol start
 INFO: Starting Coyote HTTP/1.1 on port 8080
 Oct 18, 2004 10:33:43 AM org.apache.jk.common.ChannelSocket init
 INFO: JK2: ajp13 listening on /0.0.0.0:8009
 Oct 18, 2004 10:33:43 AM org.apache.jk.server.JkMain start
 INFO: Jk running ID=0 time=0/15  config=E:\software\TDK_2.3\conf\jk2.properties
 
 and in the browser when i type http://localhost:8080 then Http Status 500 error 
 comes.
 
 and when i shut it down and create an application then following error comes on 
 clicking startup :
 WebappClassLoader:
 validateJarFile(E:\software\TDK_2.3\webapps\appl1\WEB-INF\lib\servlet.jar) - jar not 
 loaded.
 See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
 log4j:ERROR setFile(null,false) call failed.
 java.io.FileNotFoundException: \logs\turbine.log (The system cannot find the path 
 specified)
 .and a big list of errors and exceptions 
 
 [INFO] Turbine - -Turbine: init() Ready to Rumble!
 Oct 18, 2004 10:45:34 AM org.apache.coyote.http11.Http11Protocol start
 INFO: Starting Coyote HTTP/1.1 on port 8080
 Oct 18, 2004 10:45:34 AM org.apache.jk.common.ChannelSocket init
 INFO: JK2: ajp13 listening on /0.0.0.0:8009
 Oct 18, 2004 10:45:34 AM org.apache.jk.server.JkMain start
 INFO: Jk running ID=0 time=0/47  config=E:\software\TDK_2.3\conf\jk2.proper
 
 and in browser again i get : Http Status 500 error .
 
 my directory structure is:
 
 webapps
 -appl1
 -WEB-INF
 -build
 -classes
 -conf
 -db
 -lib
 -src
 ummm, this can be a very primary question to most of you over there. so it might 
 sound silly to you : ) .but i just joined this mailing list with a hope to get some 
 answer. any answers are welcome : ) .
 thanks a lot,
 bye,
 george.
 
 
 -
  Yahoo! Messenger - Communicate instantly...Ping your friends today! Download 
 Messenger Now


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



mod_jk2 configuration

2004-10-18 Thread Edward Barrow
my system:
Tomcat 5.0.27; Apache 2.0.51; mod_jk2/2.0.4; Gentoo Linux 2004.2/x86

my problem:
It doesn't work..

probable cause:
In catalina.out, this message is reported at Tomcat startup: 

[jk_config_file.c (239)]  config.update(): Can't find config file 
${serverRoot}/conf/workers2.properties

jk2.properties specifies:  serverRoot=/usr/lib/apache2

/usr/lib/apache2/conf/workers2.properties exists  has appropriate 
permissions.

my question: why can't it find workers2.properties? Is there anywhere else I 
need to specify what ${serverRoot} is?


Edward Barrow


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



error while starting Tomcat5 service

2004-10-18 Thread Sharma_Ashutosh
Title: error while starting Tomcat5 service





Hi,

I have installed Tomcat5.0 on Windows XP professional with Sun's JDK 1.5

I'm getting the following error dialog box while starting the tomcat 5.0 service.

 tomcat-problem.JPG 

"It says the specified service doesn't exist as an installed service. Unable to open Tomcat5"

With best regards:

Ashutosh Sharma



EMC Data Storage Systems (India) Private Limited 

No. 12, Subramanya Arcade, Tower B,Bannerghatta Road, 

Bangalore - 560 076.

Tel. +91-80-26788930 x 6296






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

Securing tomcat

2004-10-18 Thread kax
Hi,

Are there any good documentation on how to secure Tomcat 5 for production use?

Thanks in advance

/Kax


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



Re: trouble with static html using 5.5.2

2004-10-18 Thread David Smith
I second the advice on reading the spec.  Here's a link to it (version 2.4):
http://jcp.org/aboutJava/communityprocess/final/jsr154/index.html
--David
QM wrote:
On Sun, Oct 17, 2004 at 12:22:39PM -0700, andy davidson wrote:
: http://localhost:8080/baz works as expected
Probably not.  Read on:
: servlet-mapping
: servlet-namebaz/servlet-name
:  url-pattern//url-pattern
: /servlet-mapping
That's probably not the pattern you meant; it will fire the baz
servlet for *any* request to your webapp that isn't otherwise mapped.
It's known as the default servlet.
Try it: request
http://{your server}/baz/something
http://{your server}/baz/something/else
... ad infinitum (and ad nauseam)...
: My guess is I need some sort of url-pattern that maps
: /baz/* to /baz/*. What would the syntax be? this is
: not a servlet thing? where can I find a dtd for
: web.xml?
There's no need to guess: all of this and more is explained in the
servlet spec (and any worthwhile servlet text), as I mentioned in my
previous message. ;)  For example, your mapping question is explained in
SRV.11.2 Specification of Mappings.
Here's a hint: your web.xml should at least include a prologue, which
specifies the servlet spec 2.3 DTD (for Tomcat 4.x and earlier) or the
2.4 schema (for Tomcat 5.x and later).
-QM
 

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


Re: Class loading in tomcat 5.0

2004-10-18 Thread QM
On Mon, Oct 18, 2004 at 10:55:28AM +0200, Narayan, Satya wrote:
: I tried having different jars with the same class. As far my test goes the WebApp 
Class Loader picked up the jars in alphabetical order. 
: I tried with tomcat 5.5 under Windows 2000 file system. 
: I looked through the code of WebApp Class loader but couldnot gather much. 
: 
: Is picking jar files within a respository alphabetical or random ?

Specifically, what are you trying to do?

Sharing your end-goal may be easier than trying to ask about JAR loading
specifics.

Long story short: for a portable webapp with predictable behavior, you
shouldn't rely on JAR loading order.

-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: disable Restart Persistence using the standard Manager implementation

2004-10-18 Thread Shapira, Yoav

Hi,
Thanks ;)  Glad to help.

Yoav Shapira http://www.yoavshapira.com


-Original Message-
From: Sun House [mailto:[EMAIL PROTECTED]
Sent: Sunday, October 17, 2004 9:52 AM
To: Tomcat Users List
Subject: RE: disable Restart Persistence using the standard Manager
implementation

10x man! it works. u r the king!
BTW good luck with your studies
Sun House


Shapira, Yoav [EMAIL PROTECTED] wrote:

Hi,
Case is significant.

-
Do you Yahoo!?
vote.yahoo.com - Register online to vote today!



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: Class loading in tomcat 5.0

2004-10-18 Thread Shapira, Yoav

Hi,

Is picking jar files within a respository alphabetical or random ?

For design purposes, it's random.  Making any assumptions about the classloading order 
of jars within the same repository is naïve at best and stupid at worst.  Every 
container (and different versions of the same container) may implement a different 
loading order.

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: Securing tomcat

2004-10-18 Thread QM
On Mon, Oct 18, 2004 at 11:47:19AM +, kax wrote:
: Are there any good documentation on how to secure Tomcat 5 for production use?

I'd bet there's a lot of good advice in the archives, as this topic
appears every so often. ;)  Google's also a good starting point.

High-level concepts to consider:
1/ Tomcat is just the container that runs your webapp; so ask yourself,
how secure is my webapp against attacks and (intentionally) improper
use?  Several texts and websites cover this topic at length.

2/ Securing Tomcat is of limited value if there are holes elsewhere.
Imagine a request, moving from the end-user's browser, through Tomcat
(and perhaps a database) and then back to the user.  What potential
vulnerabilities exist?

-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: Error Building Tomct 5.0.28 with JDK 1.5

2004-10-18 Thread Shapira, Yoav

Hi,
I'll try to answer all the questions at once ;)

Tomcat 5.0.x, especially later releases, run fine on J2SE 5.0 for the
most part.  Of course if your code contains 5.0 violations, such as a
variable called enum, you'll run into issues.  But Tomcat itself is
fine.

Tomcat 5.0.x, especially later releases, can also be compiled fine on
J2SE 5.0 with minimal manipulation of the build.xml file.  Specifically,
ensure the source and target switches are set properly in the various
Ant javac targets.  Earlier Tomcat 5.0.x releases (and of course 4.x
also) have some J2SE 5.0 keywords and such that prevent compilation, but
you can modify those pretty easily.  If you're building a custom Tomcat
we expect you to be comfortable with these minor modifications ;)

Tomcat 5.5 builds and runs on J2SE 5.0 out of the box.  It also builds
on JDK 1.4 out of the box, but requires the compat package to run on JDK
1.4 as the various installation docs suggest.

Yoav Shapira http://www.yoavshapira.com


-Original Message-
From: QM [mailto:[EMAIL PROTECTED]
Sent: Sunday, October 17, 2004 2:16 PM
To: Tomcat Users List
Subject: Re: Error Building Tomct 5.0.28 with JDK 1.5

On Sat, Oct 16, 2004 at 06:17:25PM -0700, Joe Krause wrote:
: I'm trying to compile Tomcat 5.0.28 from source using Sun's new JDK
1.5.

I recall seeing something along this line a few weeks (months?) ago.

I may be wrong on this -- OK, there's a good chance I'm wrong here ;)
--
but I think JDK 1.5 and Tomcat 5.0.x don't get along well.  Did you
search the archives?

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




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 get relative URL to work with 5.5.2?

2004-10-18 Thread Shapira, Yoav

Hi,

try just:
img src=images/close.gif

Yup, or ../images/, but not /images.  For HTML references, / means the
server root, not the root of your webapp, and is usually a wrong choice.
Even when it works, you still limit portability by hard-coding your
webapp to context path .

Yoav





On Sun, 2004-10-17 at 20:49, andy davidson wrote:
 Hi

 I have a simple sevlet that generates img. I can not
 get the images to load? I read the servlet essential
 tutorial at sun.com, but that did not help. To try to
 figure what was going on I turned on the dumper. Here
 is my file layout

 webapps/MyBookmarks/images/*.gif
 webapps/MyBookmarks/WEB-INF/web.xml
 webapps/MyBookmarks/WEB-
INF/classes/com/.../MyBookmarks/MyBookmarksServlet.class

 http://localhost:8080/MyBookmarks runs my servlet as
 expected

 looking at the output of the dump, I see
 request URI = /MyBookmarks
 servletPath=/
 status=200

 my servlet generates two tags as follows neither of
 these work. (I have tried many other ways)

 img src=MyBookmarks/images/close.gif

 dump output
 request URI=/MyBookmarks/images/close.gif
 contextpath=/MyBookmarks
 header=refer=http://localhost:8080/MyBookmarks
 servletPath=/images/close.gif
 status=200
 method=get
 pathinfo=null

 status=200?? the image did not load! I even hit the
 reload button on my web browser

 img src=/images/open.gif
 dump output
 request URI=/images/openFolder.gif
 contextPath=
 servletpath=/images/close.gif
 status=400


 here is my web.xml file

 web-app
 servlet
 servlet-nameMyBookmarks/servlet-name

 servlet-
classcom.sharkBiteRight.MyBookmarks.MyBookmarksServlet/servlet-class
 /servlet

 servlet-mapping
 servlet-nameMyBookmarks/servlet-name
 !--
 http://localhost:8080/MyBookmarks/MyBookmarks works
  url-pattern/MyBookmarks/url-pattern
 --

 !-- http://localhost:8080/MyBookmarks works
 --
  url-pattern//url-pattern
 /servlet-mapping
 /web-app

 thanks in advance

 andy




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

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




-
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.0.28 + Ant deploy/undeploy task

2004-10-18 Thread Shapira, Yoav

Hi,

You are right. I copied config from my Tomcat 4.1 server.xml. After I
changed autoDeploy to false, my deployment no longer throws exception.

Good.  Copying config files across major server versions is a risk, but
I assume you mitigated it and I'm glad it works now.

quick question regarding Tomcat Manager application, I noticed that in
Tomcat 4, war is deployed to work dir while in Tomcat 5 war is in
webapps,
are you guys changing the deployment structure?

I'd say changed instead of changing, because we're talking about
something that's more than a year and/or 10 releases (at least) old now
;)  You will notice the bundled apps that come with the server (admin,
manager, balancer, depending on your Tomcat release) are in the same
server directory, not under the normal webapps one.  We'd like to
reserve that one for users, to alleviate confusion, present a cleaner
workspace for users.

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 starting Tomcat5 service

2004-10-18 Thread Shapira, Yoav

Hi,
HTML emails don't work on ASF lists (in general), so we can't see your image.  If 
there's a full error with stack trace in any of your logs, post that.

I worked with EMC for a few months about seven years ago.  ;)  Though not in India, 
but in their HQ here outside Boston.  Good company, was some wicked cool hardware 
reliability stuff at the time.

Yoav Shapira http://www.yoavshapira.com
 
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Monday, October 18, 2004 6:44 AM
To: [EMAIL PROTECTED]
Subject: error while starting Tomcat5 service

Hi,
I have installed Tomcat5.0 on Windows XP professional with Sun's JDK 1.5
I'm getting the following error dialog box while starting the tomcat 5.0 service.
tomcat-problem.JPG
It says the specified service doesn't exist as an installed service. Unable to open 
Tomcat5
With best regards:
Ashutosh Sharma
 
EMC Data Storage Systems (India) Private Limited
No. 12, Subramanya Arcade, Tower B,Bannerghatta Road,
Bangalore - 560 076.
Tel. +91-80-26788930 x 6296
 



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 crash on mac os X

2004-10-18 Thread Shapira, Yoav

Hi,
Logs look fine.  A couple of things:
- 5.0.25 is not the latest stable release.  Upgrade to 5.0.28 and try to
reproduce the problem.
- Strip away anything that's not essential.  For example, if you don't
need them, remove the Tomcat examples, docs, admin, manager, balancer
webapps.  Comment out any Connectors, Valves, Realms, and Resources that
you're not using from server.xml.  This will help isolate the problem,
if any.

What JDK are you using, and if there are any Mac OS-level patches
required for it, are they installed?  Is there a core dump file and/or
and hs_err_ file in the running directory of the JVM when it
crashes?  The latter two would indicate an internal JVM crash (not a
Tomcat problem).

Yoav Shapira http://www.yoavshapira.com


-Original Message-
From: Edoardo Panfili [mailto:[EMAIL PROTECTED]
Sent: Saturday, October 16, 2004 3:08 AM
To: Tomcat Users List
Subject: Re: tomcat crash on mac os X

Ben Souther wrote:
In witch way I can be more precise?

 By posting your log files.


The time of the crash comes from a custom log file from my application:
12 October 2004 17:09:38 (last log of my application,
in a good situation this will be followed by other messages)

Sever (manual) restart at: 12 October 2004 17:22:04

 from catalina.out [a part of the file]
===
12-ott-2004 11.31.06 org.apache.catalina.core.StandardHostDeployer
remove
INFO: Removing web application at context path /tomcat-docs
12-ott-2004 11.31.06 org.apache.catalina.core.StandardHostDeployer
remove
INFO: Removing web application at context path
12-ott-2004 11.31.06 org.apache.catalina.core.StandardHostDeployer
remove
INFO: Removing web application at context path /manager
12-ott-2004 11.31.06 org.apache.catalina.logger.LoggerBase stop
INFO: unregistering logger Catalina:type=Logger,host=localhost
12-ott-2004 11.31.06 org.apache.catalina.logger.LoggerBase stop
INFO: unregistering logger Catalina:type=Logger
12-ott-2004 11.31.06 org.apache.coyote.http11.Http11Protocol destroy
INFO: Stopping Coyote HTTP/1.1 on http-8080
12-ott-2004 11.31.12 org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
12-ott-2004 11.31.12 org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1322 ms
12-ott-2004 11.31.12 org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
12-ott-2004 11.31.12 org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.0.25
12-ott-2004 11.31.12 org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
12-ott-2004 11.31.13 argentaroggia.filtri.FConnessione init
GRAVE: Creato nuovo gruppo di connessioni
12-ott-2004 11.31.17 org.apache.catalina.core.StandardHost getDeployer
INFO: Create Host deployer for direct deployment ( non-jmx )
12-ott-2004 11.31.17 org.apache.catalina.core.StandardHostDeployer
install
INFO: Processing Context configuration file URL
file:/usr/local/jakarta-
tomcat-5.0.25/conf/Catalina/localhost/admin.xml
12-ott-2004 11.31.17 org.apache.struts.util.PropertyMessageResources
init
INFO: Initializing, config='org.apache.struts.util.LocalStrings',
returnNull=true
12-ott-2004 11.31.17 org.apache.struts.util.PropertyMessageResources
init
INFO: Initializing, config='org.apache.struts.action.ActionResources',
returnNull=true
12-ott-2004 11.31.17 org.apache.struts.util.PropertyMessageResources
init
INFO: Initializing,
config='org.apache.webapp.admin.ApplicationResources',
returnNull=true
12-ott-2004 11.31.20 org.apache.catalina.core.StandardHostDeployer
install
INFO: Processing Context configuration file URL
file:/usr/local/jakarta-
tomcat-5.0.25/conf/Catalina/localhost/balancer.xml
12-ott-2004 11.31.20 org.apache.catalina.core.StandardHostDeployer
install
INFO: Processing Context configuration file URL
file:/usr/local/jakarta-
tomcat-5.0.25/conf/Catalina/localhost/manager.xml
12-ott-2004 11.31.20 org.apache.catalina.core.StandardHostDeployer
install
INFO: Installing web application at context path /jsp-examples from URL
file:/usr/local/jakarta-tomcat-5.0.25/webapps/jsp-examples
12-ott-2004 11.31.20 org.apache.catalina.core.StandardHostDeployer
install
INFO: Installing web application at context path  from URL
file:/usr/local/jakarta-tomcat-5.0.25/webapps/ROOT
12-ott-2004 11.31.20 org.apache.catalina.core.StandardHostDeployer
install
INFO: Installing web application at context path /servlets-examples
from
URL file:/usr/local/jakarta-tomcat-5.0.25/webapps/servlets-examples
12-ott-2004 11.31.20 org.apache.catalina.core.StandardHostDeployer
install
INFO: Installing web application at context path /tomcat-docs from URL
file:/usr/local/jakarta-tomcat-5.0.25/webapps/tomcat-docs
12-ott-2004 11.31.20 org.apache.catalina.core.StandardHostDeployer
install
INFO: Installing web application at context path /webdav from URL
file:/usr/local/jakarta-tomcat-5.0.25/webapps/webdav
12-ott-2004 11.31.21 org.apache.coyote.http11.Http11Protocol 

wecome servlet return 404 in tomcat 4.1.31 (Linux)

2004-10-18 Thread Mark
Hi,
Somehow I cannot use a servlet as a welcome-file in tomcat 4.1.31 -
404 error get returned, however it works with no problem in 5.0.24

here a part of my web.xml:

  servlet-mapping
servlet-namewelcome/servlet-name
url-pattern/Welcome/url-pattern
  /servlet-mapping
 
  
 
  
  welcome-file-list
welcome-file/Welcome/welcome-file
  /welcome-file-list
.

Comments ?



___
Do you Yahoo!?
Declare Yourself - Register online to vote today!
http://vote.yahoo.com

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



Re: wecome servlet return 404 in tomcat 4.1.31 (Linux)

2004-10-18 Thread QM
On Mon, Oct 18, 2004 at 06:32:45AM -0700, Mark wrote:
: Somehow I cannot use a servlet as a welcome-file in tomcat 4.1.31 -
: 404 error get returned, however it works with no problem in 5.0.24

That's because servlet-as-welcome-file is a feature of servlet spec 2.4
(Tomcat 5.x), not 2.3 (Tomcat 4.x).

As a workaround, you could have a lone index.html file that triggers a
redirect to your servlet.

-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: Tomcat - Apache with JK2: mapping urls...

2004-10-18 Thread Johann Uhrmann
Andrzej Jan Taramina wrote:
Douglas WF Acheson has said late last year:

# Define the Manager proxy that comes with Tomcat
[uri:/tomcat/manager/*]
context=/manager
info=Manager prefix mapping
But, after frustrating attempts I cannot seem to get it correct.  I have
search the mail archives and a few people have asked similar questions, but I
have not see any replies.  Hope someone can help me ...

I'm trying to do the same thing. I want Apache/JK2 to trap a specific URI 
(tomcat/manager/* in this example), but to map it to something else (eg. 
manager) before it sends the request on to Tomcat through the JK 
connection.

The context parameter shown above in workers2.properties does not do this, in 
fact, who knows what it does. I agree with Doug that the JK2 docs are 
abysmal. 
Hi Andrzej,
I am trying to deploy a web application to multiple instances of Tomcat and it would
be great to have a mapping like /tomcat1/axis - /axis on the first worker and
/tomcat2/axis - /axis on the second worker.
Unfortunately, the context parameter is ignored and just as You mentioned, the jk2 docs
are lousy. It seems that there is no other choice but digging through the source code
of JK2 or trashing JK2/Tomcat and using something well documented.
Has anyone already been through the hell of digging through the source code and is
there a usable documentation about jk2?
Regards,
Hans
(sorry for being rude, but in my oppinion some guys have not discovered that the
 best software is worth nothing without documentation)
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Fw: Internet Explorer Bug under SSL Connection

2004-10-18 Thread Jon Wingfield
Tomcat adds (or at least did in the 4.1 branch) certain response 
headers, directives to clients and proxy caches to not cache the data, 
when it is to serve something within a security-constraint. (log 
examples at end of post)

[It seems that] When IE downloads something with a mime-type it thinks 
it can handle (probably via a plug-in) it caches the data and then 
passes it over to the plug-in. With SSL and the Pragma header set to 
no-cache this seems to fail with the error message described in the 
original post.

Our entire site is SSL also and we've seen this error (and our hack 
resolves it) for csv, excel, pdf files. Downloading with the 
content-type set to application/octet-stream doesn't trigger the error 
in our experience (we also provide this option on the download pages but 
users generally want to see the data directly).

Jon
Examples from my 4.1.29 logs when the RequestDumperValve is commented in:
Response for index.jsp (inside security-constraint):
authType=null
contentLength=-1
contentType=null
cookie=JSESSIONID=EB28F372EF5D5FC5C2908C57766010BA; domain=null; path=/
header=Pragma=No-cache
header=Cache-Control=no-cache
header=Expires=Thu, 01 Jan 1970 00:00:00 GMT
header=Set-Cookie=JSESSIONID=EB28F372EF5D5FC5C2908C57766010BA; Path=/
header=Location=http://localhost:8080/login.jsp;jsessionid=EB28F372EF5D5FC5C2908C57766010BA
message=null
remoteUser=null
status=302
Response for bgdot.gif (outside security-constraint):
authType=null
contentLength=77
contentType=image/gif;charset=ISO-8859-1
header=Server=IMP/4.0.20
header=ETag=W/77-109810668
header=Last-Modified=Mon, 18 Oct 2004 13:38:00 GMT
message=null
remoteUser=null
status=200
David Wall wrote:
Our web site is entirely SSL.  Most users have IE.  Our application is used
to securely transfer and digitally sign attached files that must be
downloaded.  Yet, we've never seen this problem.  Who is putting in the
Pragma header in the response in the first place that you have to change
it this way?  And why does the Pragma setting have the negative effect
described?
Thanks,
David
- Original Message - 
From: Jon Wingfield [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Friday, October 15, 2004 9:57 AM
Subject: Re: Internet Explorer Bug under SSL Connection


Yep. This comes up every so often on the list.
Whenever IE downloads content we change the Pragma response header to be
public instead of no-cache:
String userAgent = request.getHeader(user-agent);
if (response.containsHeader(Pragma)
 userAgent!=null
 userAgent.toUpperCase().indexOf(MSIE)-1) {
response.setHeader(Pragma, public);
}
HTH,
Jon

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


Re: [tomcat] tomcat not running

2004-10-18 Thread George A


Antony Paul [EMAIL PROTECTED] wrote:
I know nothing about Turbine and it is Tomcat list. You can better ask
it at Turbine list. 

yes : ) , it is a tomcat list , uhh , and was it that since i am using tomcat i need 
to ask on tomcat ? uhh ok , i thought it's related to tomcat basically so i sent the 
mail to tomcat list also : ( . sorry about that ten i should say .

But on seeing the error message I can give you a
checklist.
What the application contains. 
Does application have an index.jsp.

yes, it does have index.jsp at the location :

E:\software\TDK_2.3\webapps\app1\templates\jsp\screens
Does application have a web.xml in WEB-INF directory. 


yes, it does have.

Does this contains servlet.jar in WEB-INF\lib ? This jar is not needed there.

yes it does contain.

Also go to Tomcat installation directory. There will be one webapps
directory. Check it contains a ROOT folder.


it doesnt contain a folder called ROOT but it does have following folders :

bin,common,conf,logsserver,tdk,temp,webapps,work


rgds
Antony Paul


On Mon, 18 Oct 2004 06:34:13 +0100 (BST), George A
wrote:
 hello all,
 i hope i have posted to the correct lists : ( . i am first time user to tdk. my 
 tomcat is not running. i am using tdk 2.3. my question is:
 
 when all applications from webapps folder are deleted following messages come when i 
 click on startup.bat
 
 Oct 18, 2004 10:33:42 AM org.apache.commons.modeler.Registry loadRegistry
 INFO: Loading registry information
 Oct 18, 2004 10:33:42 AM org.apache.commons.modeler.Registry getRegistry
 INFO: Creating new Registry instance
 Oct 18, 2004 10:33:42 AM org.apache.commons.modeler.Registry getServer
 INFO: Creating MBeanServer
 Oct 18, 2004 10:33:43 AM org.apache.coyote.http11.Http11Protocol init
 INFO: Initializing Coyote HTTP/1.1 on port 8080
 Starting service Tomcat-Standalone
 Apache Tomcat/4.1.27-LE-jdk14
 Oct 18, 2004 10:33:43 AM org.apache.coyote.http11.Http11Protocol start
 INFO: Starting Coyote HTTP/1.1 on port 8080
 Oct 18, 2004 10:33:43 AM org.apache.jk.common.ChannelSocket init
 INFO: JK2: ajp13 listening on /0.0.0.0:8009
 Oct 18, 2004 10:33:43 AM org.apache.jk.server.JkMain start
 INFO: Jk running ID=0 time=0/15 config=E:\software\TDK_2.3\conf\jk2.properties
 
 and in the browser when i type http://localhost:8080 then Http Status 500 error 
 comes.
 
 and when i shut it down and create an application then following error comes on 
 clicking startup :
 WebappClassLoader:
 validateJarFile(E:\software\TDK_2.3\webapps\appl1\WEB-INF\lib\servlet.jar) - jar not 
 loaded.
 See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
 log4j:ERROR setFile(null,false) call failed.
 java.io.FileNotFoundException: \logs\turbine.log (The system cannot find the path 
 specified)
 .and a big list of errors and exceptions 
 
 [INFO] Turbine - -Turbine: init() Ready to Rumble!
 Oct 18, 2004 10:45:34 AM org.apache.coyote.http11.Http11Protocol start
 INFO: Starting Coyote HTTP/1.1 on port 8080
 Oct 18, 2004 10:45:34 AM org.apache.jk.common.ChannelSocket init
 INFO: JK2: ajp13 listening on /0.0.0.0:8009
 Oct 18, 2004 10:45:34 AM org.apache.jk.server.JkMain start
 INFO: Jk running ID=0 time=0/47 config=E:\software\TDK_2.3\conf\jk2.proper
 
 and in browser again i get : Http Status 500 error .
 
 my directory structure is:
 
 webapps
 -appl1
 -WEB-INF
 -build
 -classes
 -conf
 -db
 -lib
 -src
 ummm, this can be a very primary question to most of you over there. so it might 
 sound silly to you : ) .but i just joined this mailing list with a hope to get some 
 answer. any answers are welcome : ) .
 thanks a lot,
 bye,
 george.
 
 
 -
 Yahoo! Messenger - Communicate instantly...Ping your friends today! Download 
 Messenger Now


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





-
  Yahoo! Messenger - Communicate instantly...Ping your friends today! Download 
Messenger Now

problem with security-constraint with Tomcat 5

2004-10-18 Thread Mercado . Maria
I'm looking into migrating our project from Tomcat 4.1.30 to Tomcat 5.0.28.  We're 
also using Tiles and Struts 1.1.  The problem is that Tomcat 5 seems to be confused 
with a url pattern that works with Tomcat 4.  Here's the pertinent parts of web.xml (I 
get the same results with 2.3 or 2.4 version of web.xml):

...

!-- Struts action servlet --
servlet
servlet-namestrutsnav/servlet-name
servlet-classorg.apache.struts.action.ActionServlet/servlet-class
init-param
param-nameconfig/param-name
param-value/WEB-INF/conf/struts-config.xml/param-value
/init-param
init-param
param-namevalidate/param-name
param-valuetrue/param-value
/init-param
load-on-startup1/load-on-startup
/servlet

...

servlet-mapping
servlet-namestrutsnav/servlet-name
url-pattern*.do/url-pattern
/servlet-mapping

...

   !-- JAAS Security Realm config --
security-constraint
web-resource-collection
web-resource-nameSecure Struts Actions/web-resource-name
url-pattern*.sec.do/url-pattern
/web-resource-collection
auth-constraint
role-nameGeneral User/role-name
/auth-constraint
/security-constraint

login-config
auth-methodFORM/auth-method
form-login-config
form-login-page/login.do/form-login-page
form-error-page/logininvalid.do/form-error-page
/form-login-config
/login-config

security-role
role-nameGeneral User/role-name
/security-role

...

If I try to access a sec.do Struts action, I just get a blank space in the body of the 
Tiles layout - I don't get the login form.  If I change the url-pattern in 
web-resource-collection to *.do, then I get the login page.  It seems that Tomcat 5 
doesn't like two dots in the url pattern.  Is this a bug?

I also tried to add the following, but it didn't help:
servlet-mapping
servlet-namestrutsnav/servlet-name
url-pattern*.sec.do/url-pattern
/servlet-mapping


Thanks,
Cecile Mercado


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



RE: problem with security-constraint with Tomcat 5

2004-10-18 Thread Shapira, Yoav

Hi,
Could this be something that changed (or rather, was clarified) in the
Servlet Spec between version 2.3 (which Tomcat 4.x implements) and 2.4
(which Tomcat 5.x implements)? ;)

Yoav Shapira http://www.yoavshapira.com


-Original Message-
From: Mercado . Maria [mailto:[EMAIL PROTECTED]
Sent: Monday, October 18, 2004 10:08 AM
To: [EMAIL PROTECTED]
Subject: problem with security-constraint with Tomcat 5

I'm looking into migrating our project from Tomcat 4.1.30 to Tomcat
5.0.28.
We're also using Tiles and Struts 1.1.  The problem is that Tomcat 5
seems
to be confused with a url pattern that works with Tomcat 4.  Here's the
pertinent parts of web.xml (I get the same results with 2.3 or 2.4
version
of web.xml):

...

!-- Struts action servlet --
servlet
servlet-namestrutsnav/servlet-name
servlet-classorg.apache.struts.action.ActionServlet/servlet-
class
init-param
param-nameconfig/param-name
param-value/WEB-INF/conf/struts-config.xml/param-value
/init-param
init-param
param-namevalidate/param-name
param-valuetrue/param-value
/init-param
load-on-startup1/load-on-startup
/servlet

...

servlet-mapping
servlet-namestrutsnav/servlet-name
url-pattern*.do/url-pattern
/servlet-mapping

...

   !-- JAAS Security Realm config --
security-constraint
web-resource-collection
web-resource-nameSecure Struts
Actions/web-resource-name
url-pattern*.sec.do/url-pattern
/web-resource-collection
auth-constraint
role-nameGeneral User/role-name
/auth-constraint
/security-constraint

login-config
auth-methodFORM/auth-method
form-login-config
form-login-page/login.do/form-login-page
form-error-page/logininvalid.do/form-error-page
/form-login-config
/login-config

security-role
role-nameGeneral User/role-name
/security-role

...

If I try to access a sec.do Struts action, I just get a blank space in
the
body of the Tiles layout - I don't get the login form.  If I change the
url-pattern in web-resource-collection to *.do, then I get the login
page.  It seems that Tomcat 5 doesn't like two dots in the url pattern.
Is
this a bug?

I also tried to add the following, but it didn't help:
servlet-mapping
servlet-namestrutsnav/servlet-name
url-pattern*.sec.do/url-pattern
/servlet-mapping


Thanks,
Cecile Mercado


-
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 - Apache with JK2: mapping urls...

2004-10-18 Thread Cox, Charlie
Have you tried location matching and mod_rewrite with Apache to change your
URL before jk2 takes the request?

Location /tomcat1/*
RewriteRule ...
JkUriSet tomcat1
/Location

Location /tomcat2/*
RewriteRule ...
JkUriSet tomcat2
/Location

you would use JkUriSet in place of the workers2.properties [uri: mappings

Charlie

 -Original Message-
 From: Johann Uhrmann [mailto:[EMAIL PROTECTED]
 Sent: Monday, October 18, 2004 9:58 AM
 To: Tomcat Users List
 Subject: Re: Tomcat - Apache with JK2: mapping urls...
 
 Andrzej Jan Taramina wrote:
  Douglas WF Acheson has said late last year:
 
 
 # Define the Manager proxy that comes with Tomcat
 [uri:/tomcat/manager/*]
 context=/manager
 info=Manager prefix mapping
 
 But, after frustrating attempts I cannot seem to get it correct.  I have
 search the mail archives and a few people have asked similar questions,
but
 I
 have not see any replies.  Hope someone can help me ...
 
 
  I'm trying to do the same thing. I want Apache/JK2 to trap a specific
URI
  (tomcat/manager/* in this example), but to map it to something else (eg.
  manager) before it sends the request on to Tomcat through the JK
  connection.
 
  The context parameter shown above in workers2.properties does not do
this,
 in
  fact, who knows what it does. I agree with Doug that the JK2 docs are
  abysmal.
 
 Hi Andrzej,
 
 I am trying to deploy a web application to multiple instances of Tomcat
and it
 would
 be great to have a mapping like /tomcat1/axis - /axis on the first worker
and
 /tomcat2/axis - /axis on the second worker.
 
 Unfortunately, the context parameter is ignored and just as You mentioned,
the
 jk2 docs
 are lousy. It seems that there is no other choice but digging through the
 source code
 of JK2 or trashing JK2/Tomcat and using something well documented.
 
 Has anyone already been through the hell of digging through the source
code
 and is
 there a usable documentation about jk2?
 
 
 Regards,
 
 Hans
 (sorry for being rude, but in my oppinion some guys have not discovered
that
 the
   best software is worth nothing without documentation)
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


[ANN] Apache Jakarta Tomcat 5.5.3 now Beta

2004-10-18 Thread Shapira, Yoav

The Apache Jakarta Tomcat team is proud to announce that after prolonged
testing internally and externally, the 5.5.3 release is now labeled a
Beta release.  That means it's more stable and mature than previous
Alpha releases on the Tomcat 5.5 branch, and we encourage more users to
download and test it.

Please note that it is not yet a stable release.  We expect that with
the wider testing given betas, additional issues will be discovered.
These will be addressed in the coming 5.5 builds and hopefully we will
have a stable release soon.

The changelog, release notes, download locations, and other
documentation is the same as for the original 5.5.3 release
announcement:
http://jakarta.apache.org/site/news/news-2004-2ndHalf.html#20041006.1

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: problem with security-constraint with Tomcat 5

2004-10-18 Thread Mercado . Maria
Thanks for the suggestion, Yoav.  I looked but I didn't see anything that stated that 
a url pattern with 2 dots is illegal.

- Cecile Mercado


-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: Monday, October 18, 2004 9:12 AM
To: Tomcat Users List
Subject: RE: problem with security-constraint with Tomcat 5



Hi,
Could this be something that changed (or rather, was clarified) in the
Servlet Spec between version 2.3 (which Tomcat 4.x implements) and 2.4
(which Tomcat 5.x implements)? ;)

Yoav Shapira http://www.yoavshapira.com
 

-Original Message-
From: Mercado . Maria [mailto:[EMAIL PROTECTED]
Sent: Monday, October 18, 2004 10:08 AM
To: [EMAIL PROTECTED]
Subject: problem with security-constraint with Tomcat 5

I'm looking into migrating our project from Tomcat 4.1.30 to Tomcat
5.0.28.
We're also using Tiles and Struts 1.1.  The problem is that Tomcat 5
seems
to be confused with a url pattern that works with Tomcat 4.  Here's the
pertinent parts of web.xml (I get the same results with 2.3 or 2.4
version
of web.xml):

...

!-- Struts action servlet --
servlet
servlet-namestrutsnav/servlet-name
servlet-classorg.apache.struts.action.ActionServlet/servlet-
class
init-param
param-nameconfig/param-name
param-value/WEB-INF/conf/struts-config.xml/param-value
/init-param
init-param
param-namevalidate/param-name
param-valuetrue/param-value
/init-param
load-on-startup1/load-on-startup
/servlet

...

servlet-mapping
servlet-namestrutsnav/servlet-name
url-pattern*.do/url-pattern
/servlet-mapping

...

   !-- JAAS Security Realm config --
security-constraint
web-resource-collection
web-resource-nameSecure Struts
Actions/web-resource-name
url-pattern*.sec.do/url-pattern
/web-resource-collection
auth-constraint
role-nameGeneral User/role-name
/auth-constraint
/security-constraint

login-config
auth-methodFORM/auth-method
form-login-config
form-login-page/login.do/form-login-page
form-error-page/logininvalid.do/form-error-page
/form-login-config
/login-config

security-role
role-nameGeneral User/role-name
/security-role

...

If I try to access a sec.do Struts action, I just get a blank space in
the
body of the Tiles layout - I don't get the login form.  If I change the
url-pattern in web-resource-collection to *.do, then I get the login
page.  It seems that Tomcat 5 doesn't like two dots in the url pattern.
Is
this a bug?

I also tried to add the following, but it didn't help:
servlet-mapping
servlet-namestrutsnav/servlet-name
url-pattern*.sec.do/url-pattern
/servlet-mapping


Thanks,
Cecile Mercado


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



how to stop the connexion with SUN?

2004-10-18 Thread Hauberoche, Patrick

Just a question,

is there an automatic function of TOMCAT which tries to contact SUN via a
dedicated IP address?  is it possible to avoid this problem and how?


Patrick  


Re: Re: Securing tomcat

2004-10-18 Thread kax
Hi,

Ok, I'll try to find the stuff I want to do on google. But I have some other questions 
that is somehow related to the security issue. 

1. From what I have read it is not possible to lookup the objects bound in the jndi in 
Tomcat from another JVM. Is this correct? 

2. Can I use the same name for a datasource in two different web applications deployed 
on the same instance of Tomcat? I'm using a separate context file for each application.

Thanks in advance

/Kax

 
 From: QM [EMAIL PROTECTED]
 Date: 2004/10/18 må PM 12:55:46 GMT
 To: Tomcat Users List [EMAIL PROTECTED]
 Ämne: Re: Securing tomcat
 
 On Mon, Oct 18, 2004 at 11:47:19AM +, kax wrote:
 : Are there any good documentation on how to secure Tomcat 5 for production use?
 
 I'd bet there's a lot of good advice in the archives, as this topic
 appears every so often. ;)  Google's also a good starting point.
 
 High-level concepts to consider:
 1/ Tomcat is just the container that runs your webapp; so ask yourself,
 how secure is my webapp against attacks and (intentionally) improper
 use?  Several texts and websites cover this topic at length.
 
 2/ Securing Tomcat is of limited value if there are holes elsewhere.
 Imagine a request, moving from the end-user's browser, through Tomcat
 (and perhaps a database) and then back to the user.  What potential
 vulnerabilities exist?
 
 -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]



RE: Re: Securing tomcat

2004-10-18 Thread Shapira, Yoav

Hi,

1. From what I have read it is not possible to lookup the objects bound
in
the jndi in Tomcat from another JVM. Is this correct?

Yeah.

2. Can I use the same name for a datasource in two different web
applications deployed on the same instance of Tomcat? I'm using a
separate
context file for each application.

Yeah.  Obviously if you were declaring these datasources in a
GlobalNamingResources block the answer would be No.

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: mod_jk2 configuration

2004-10-18 Thread tomcat
Hello Edward,

You need to add this link in your httpd.conf file:

JkSet config.file /etc/httpd/conf/workers2.properties

John


 my system:
 Tomcat 5.0.27; Apache 2.0.51; mod_jk2/2.0.4; Gentoo Linux 2004.2/x86

 my problem:
 It doesn't work..

 probable cause:
 In catalina.out, this message is reported at Tomcat startup:

 [jk_config_file.c (239)]  config.update(): Can't find config file
 ${serverRoot}/conf/workers2.properties

 jk2.properties specifies:  serverRoot=/usr/lib/apache2

 /usr/lib/apache2/conf/workers2.properties exists  has appropriate
 permissions.

 my question: why can't it find workers2.properties? Is there anywhere else
 I
 need to specify what ${serverRoot} is?


 Edward Barrow


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



urgent help reqd

2004-10-18 Thread prashant chavan

Dear All

I have hosted my live website on Linux which has Apache 2.0 wuth tomcat 3.2.3 and my 
database is on a sun server. I have multiple instances of tomcat running with single 
installation hosting three diffrent websites. My problem is last fer days i am facing 
a peculiar problem my java instances for one site reach to max threads (116 approx) 
and hangs. while this happens my apache instances also reach 150 max at same time. Due 
to which it affects my all three diff sites. I searched my jk.log file where i found 
the error ajpv12_handle_response, error writing back to server in it occuring 
continuously. Is it because of this error that my tomcat andapache hangs  whats the 
solution for it. I have searched all mailing lists for the same.

 

Rgds

Prashant

 


-
Do you Yahoo!?
vote.yahoo.com - Register online to vote today!

Re: problem with security-constraint with Tomcat 5

2004-10-18 Thread Remy Maucherat
On Mon, 18 Oct 2004 10:45:23 -0400, Mercado . Maria [EMAIL PROTECTED] wrote:
 Thanks for the suggestion, Yoav.  I looked but I didn't see anything that stated 
 that a url pattern with 2 dots is illegal.

Most systems I am aware of consider that the extension is the last
dot. Otherwise, it starts adding complexity.
Don't expect a fix (assuming this is indeed a valid issue, which I doubt).

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



Euro sign and Trademark sign not displaying properly

2004-10-18 Thread Hua Hou
All,

 

I am using Tomcat 4.1.24 and Oracle 10g on Windows XP environment. I am
facing a problem that euro sign and trade mark can not be displayed
properly on the web browser. 

 

These euro sign and trademark signs are read from Oracle using JDBC java
code. But when I display them on the web browser, I saw ? rather than
the actual sign.

 

When I dig deep into the problem, I found that after I read those signs
from Oracle with Oracle JDBC thin driver, the HEX code for those signs
are 3F, rather than 80 or 99 (for euro or for trademark sign
respectively).

 

When I was using SQL server before, all those signs were read and
displayed properly.

 

I have searched the Tomcat mailing list and the internet extensively,
but have not found any solution.

 

Any ideas?

 

Thanks.

 

Hua

 



hanging connections with Tomcat 4.1.24-LE on linux

2004-10-18 Thread Piergiuliano Bossi
Hello all.
I have a web service published together with a webapp under Tomcat 
4.1.24-LE on linux redhat. The web service is built using Axis 1.0 
facilities and it interacts with an Oracle db.
Up to date it has worked like a charm: more than 6 months up  running 
without any needs of a restart.

A few days ago the server entered in a not responding state. Examining 
the log I have discovered that:
CUT HERE
Oct 13, 2004 4:02:04 PM org.apache.tomcat.util.threads.ThreadPool logFull
SEVERE: All threads are busy, waiting. Please increase maxThreads or 
check the servlet status150 150
CUT HERE

HTTP connections are handled through non-SSL Coyote HTTP/1.1 Connector 
on port 8080. This is the rilevant portion of server.xml
CUT HERE
   Connector className=org.apache.coyote.tomcat4.CoyoteConnector
  port=8080 minProcessors=100 maxProcessors=150
  enableLookups=true redirectPort=8443
  acceptCount=10 debug=0 connectionTimeout=2
  useURIValidationHack=false disableUploadTimeout=true /
CUT HERE

Dumping the network connections I have found (not surprisingly):
*) 89 connections in SYN_RECV state
*) 133 connections in CLOSE_WAIT state
Examining the access log I have found nothing in particular, last access 
was at 13/Oct/2004:15:44:09, a GET on one of the webapp's servlets, 
served successfully.

Examining the application log I only see a few exceptions caused by an 
RDBMS shutdown. I am asking myself if this can be the cause of zombie 
threads, but it seems strange to me.

Nothing seems to be happened at 4:02:04 PM, or at least the JVM was not 
able to log any information right before the block (it seems reasonable 
because the server was not able to instantiate any thread from the pool 
in order to manage the request; the question is whether access log 
writes before getting a thread from the pool or after that).

Do you have any ideas? I may increase ThreadPool dimension, but when the 
block occurred traffic was low and it doesn't seem to justify any change 
on the configuration side. Is it a Tomcat issue? We are planning to 
upgrade to 4.1.30 very soon, but could it be worth to go towards 4.1.31 
or 5.x.y (not really planned yet)?

I'd appreciate any feedback about it.
TIA
Giuliano


Tomcat Ant Tasks

2004-10-18 Thread Gregg Bolinger
I am trying to use Tomcat Ant tasks to deploy my application while testing.
The only part I am having a problem with is trying to deploy the context
config file.  Below is my task

 

target name=deploy-local depends=war

deploy

url=${tomcat.local.url}

username=${username}

password=${password}

path=${path}

update=true 

config=//$(basedir}/resources/anykey.xml

war=//${basedir}/build/${deploy.name}/

/target

 

The war file is deployed just fine, but my config file goes nowhere.  ANT
claims everything was successful.  Does anyone have any ideas about this?

 

Thanks

 

Gregg Bolinger



Unable to find a javac compiler error

2004-10-18 Thread Andrea Mennini
Hi,
I'm trying to run this silly hello.jsp, just to be sure tomcat 5.0.28 is 
running under win2k:

===
!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.0 Transitional//EN
!--
Simple HTML file to test server setup and configuration.
 
Taken from More Servlets and JavaServer Pages
from Prentice Hall and Sun Microsystems Press,
http://www.moreservlets.com/.
(C) 2002 Marty Hall; may be freely used or adapted.
--
HTML
HEADTITLEJSP Test/TITLE/HEAD
BODY BGCOLOR=#FDF5E6
H1JSP Test/H1
Time: %= new java.util.Date() %
/BODY
/HTML
===

When I run it, I receive a message like this one:
===
Unable to find a javac compiler;
com.sun.tools.javac.Main is not on the classpath.
Perhaps JAVA_HOME does not point to the JDK
===
I've got a command line and typed %JAVA_HOME%\bin\javac, and javac is run.
What am I doing wrong?
TIA
--
Andrea 

ICQ:5459894
Registered Linux User #24583

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


Re: mod_jk2 configuration

2004-10-18 Thread Edward Barrow
Thanks, John, but this isn't the problem - I already have that line, and 
anyway, it's not Apache that can't find workers2.properties but Tomcat: the 
message is reported during Tomcat startup, which takes place before Apache is 
started.

Edward

On Monday 18 October 2004 15:59, [EMAIL PROTECTED] wrote:
 Hello Edward,

 You need to add this link in your httpd.conf file:

 JkSet config.file /etc/httpd/conf/workers2.properties

 John

  my system:
  Tomcat 5.0.27; Apache 2.0.51; mod_jk2/2.0.4; Gentoo Linux 2004.2/x86
 
  my problem:
  It doesn't work..
 
  probable cause:
  In catalina.out, this message is reported at Tomcat startup:
 
  [jk_config_file.c (239)]  config.update(): Can't find config file
  ${serverRoot}/conf/workers2.properties
 
  jk2.properties specifies:  serverRoot=/usr/lib/apache2
 
  /usr/lib/apache2/conf/workers2.properties exists  has appropriate
  permissions.
 
  my question: why can't it find workers2.properties? Is there anywhere
  else I
  need to specify what ${serverRoot} is?
 
 
  Edward Barrow
 
 
  -
  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]

-- 
Edward Barrow
Copyright Consultant
[EMAIL PROTECTED]
***Important: see http://www.copyweb.co.uk/email.htm for important information 
about the legal status of this email

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



JDBCRealm authentication on every page

2004-10-18 Thread Diego
Hi! I want to put a login form on all of my pages. I'm using Tomcat 5
and JDBCRealm, and authentication is working fine when a user tries to
access a protected resource. But I don't know how could I invoke
manually JDBCRealm authentication on non-protected pages and stay into
the same page after login. Any idea?

Thanks in advance


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



RE: Euro sign and Trademark sign not displaying properly

2004-10-18 Thread Shapira, Yoav

Hi,
You need to specify the encoding for your web page so that these special
marks are displayed properly.  If you're using a servlet, check out the
JavaDocs for HttpServletResponse#setCharacterEncoding, setLocale, etc.
If you're using a JSP page, check out the @page directive equivalents.

Yoav Shapira http://www.yoavshapira.com


-Original Message-
From: Hua Hou [mailto:[EMAIL PROTECTED]
Sent: Monday, October 18, 2004 11:20 AM
To: [EMAIL PROTECTED]
Subject: Euro sign and Trademark sign not displaying properly

All,



I am using Tomcat 4.1.24 and Oracle 10g on Windows XP environment. I am
facing a problem that euro sign and trade mark can not be displayed
properly on the web browser.



These euro sign and trademark signs are read from Oracle using JDBC
java
code. But when I display them on the web browser, I saw ? rather than
the actual sign.



When I dig deep into the problem, I found that after I read those signs
from Oracle with Oracle JDBC thin driver, the HEX code for those signs
are 3F, rather than 80 or 99 (for euro or for trademark sign
respectively).



When I was using SQL server before, all those signs were read and
displayed properly.



I have searched the Tomcat mailing list and the internet extensively,
but have not found any solution.



Any ideas?



Thanks.



Hua






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 Ant Tasks

2004-10-18 Thread Phillip Qin
This is my ant task

deploy
url=${dev.manager}
username=${username}
password=${password}
path=${context.path}
war=${war.url}
update=true/

No need to define config. On *nix box, war.url is file:/your/path/to/war, on
win32 box, war.url is file:/c:/your/path/to/war.


Context will always be dropped off conf/${engine}/${host} as
${your.context}.xml


-Original Message-
From: Gregg Bolinger [mailto:[EMAIL PROTECTED] 
Sent: October 18, 2004 11:26 AM
To: [EMAIL PROTECTED]
Subject: Tomcat Ant Tasks


I am trying to use Tomcat Ant tasks to deploy my application while testing.
The only part I am having a problem with is trying to deploy the context
config file.  Below is my task

 

target name=deploy-local depends=war

deploy

url=${tomcat.local.url}

username=${username}

password=${password}

path=${path}

update=true 

config=//$(basedir}/resources/anykey.xml

war=//${basedir}/build/${deploy.name}/

/target

 

The war file is deployed just fine, but my config file goes nowhere.  ANT
claims everything was successful.  Does anyone have any ideas about this?

 

Thanks

 

Gregg Bolinger



!DSPAM:4173e0ac132939060421364!


Re: mod_jk2 configuration

2004-10-18 Thread tomcat
Check your server.xml for the coyote connector. Was this modified in any
way? Try replacing the jk2.properties file with default on in tomcat/conf/

Strange, because tomcat default install works fine, so Im assuming you may
have made some mods somewhere.

Im sure you've already checked these...

John

 Thanks, John, but this isn't the problem - I already have that line, and
 anyway, it's not Apache that can't find workers2.properties but Tomcat:
 the
 message is reported during Tomcat startup, which takes place before Apache
 is
 started.

 Edward

 On Monday 18 October 2004 15:59, [EMAIL PROTECTED] wrote:
 Hello Edward,

 You need to add this link in your httpd.conf file:

 JkSet config.file /etc/httpd/conf/workers2.properties

 John

  my system:
  Tomcat 5.0.27; Apache 2.0.51; mod_jk2/2.0.4; Gentoo Linux 2004.2/x86
 
  my problem:
  It doesn't work..
 
  probable cause:
  In catalina.out, this message is reported at Tomcat startup:
 
  [jk_config_file.c (239)]  config.update(): Can't find config file
  ${serverRoot}/conf/workers2.properties
 
  jk2.properties specifies:  serverRoot=/usr/lib/apache2
 
  /usr/lib/apache2/conf/workers2.properties exists  has appropriate
  permissions.
 
  my question: why can't it find workers2.properties? Is there anywhere
  else I
  need to specify what ${serverRoot} is?
 
 
  Edward Barrow
 
 
  -
  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]

 --
 Edward Barrow
 Copyright Consultant
 [EMAIL PROTECTED]
 ***Important: see http://www.copyweb.co.uk/email.htm for important
 information
 about the legal status of this email

 -
 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: JDBCRealm authentication on every page

2004-10-18 Thread QM
On Mon, Oct 18, 2004 at 05:59:59PM +0200, Diego wrote:
: Hi! I want to put a login form on all of my pages. I'm using Tomcat 5
: and JDBCRealm, and authentication is working fine when a user tries to
: access a protected resource. But I don't know how could I invoke
: manually JDBCRealm authentication on non-protected pages and stay into
: the same page after login. Any idea?

If you want to force authentication, you could put the entire webapp
under a security constraint (i.e. *any* access will trigger a login
popup).

-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: Tomcat Ant Tasks

2004-10-18 Thread Gregg Bolinger
Then I am confused.  I have a config that contains my apps context where I
have defined my datasource for JNDI etc.  If I don't define config in the
deploy task, a default context is created, which I don't want.

Also, the war deploys just fine, like I said.  So I don't have a problem
deploying the WAR file.  I am only having a problem getting my custom
context config to get deployed as well.

-Original Message-
From: Phillip Qin [mailto:[EMAIL PROTECTED] 
Sent: Monday, October 18, 2004 11:08 AM
To: 'Tomcat Users List'
Subject: RE: Tomcat Ant Tasks

This is my ant task

deploy
url=${dev.manager}
username=${username}
password=${password}
path=${context.path}
war=${war.url}
update=true/

No need to define config. On *nix box, war.url is file:/your/path/to/war, on
win32 box, war.url is file:/c:/your/path/to/war.


Context will always be dropped off conf/${engine}/${host} as
${your.context}.xml


-Original Message-
From: Gregg Bolinger [mailto:[EMAIL PROTECTED] 
Sent: October 18, 2004 11:26 AM
To: [EMAIL PROTECTED]
Subject: Tomcat Ant Tasks


I am trying to use Tomcat Ant tasks to deploy my application while testing.
The only part I am having a problem with is trying to deploy the context
config file.  Below is my task

 

target name=deploy-local depends=war

deploy

url=${tomcat.local.url}

username=${username}

password=${password}

path=${path}

update=true 

config=//$(basedir}/resources/anykey.xml

war=//${basedir}/build/${deploy.name}/

/target

 

The war file is deployed just fine, but my config file goes nowhere.  ANT
claims everything was successful.  Does anyone have any ideas about this?

 

Thanks

 

Gregg Bolinger



!DSPAM:4173e0ac132939060421364!


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



RE: Tomcat Ant Tasks

2004-10-18 Thread Phillip Qin
Pack your context into war, as META-INF/context.xml using ant jar command.



-Original Message-
From: Gregg Bolinger [mailto:[EMAIL PROTECTED] 
Sent: October 18, 2004 12:14 PM
To: 'Tomcat Users List'
Subject: RE: Tomcat Ant Tasks


Then I am confused.  I have a config that contains my apps context where I
have defined my datasource for JNDI etc.  If I don't define config in the
deploy task, a default context is created, which I don't want.

Also, the war deploys just fine, like I said.  So I don't have a problem
deploying the WAR file.  I am only having a problem getting my custom
context config to get deployed as well.

-Original Message-
From: Phillip Qin [mailto:[EMAIL PROTECTED] 
Sent: Monday, October 18, 2004 11:08 AM
To: 'Tomcat Users List'
Subject: RE: Tomcat Ant Tasks

This is my ant task

deploy
url=${dev.manager}
username=${username}
password=${password}
path=${context.path}
war=${war.url}
update=true/

No need to define config. On *nix box, war.url is file:/your/path/to/war, on
win32 box, war.url is file:/c:/your/path/to/war.


Context will always be dropped off conf/${engine}/${host} as
${your.context}.xml


-Original Message-
From: Gregg Bolinger [mailto:[EMAIL PROTECTED] 
Sent: October 18, 2004 11:26 AM
To: [EMAIL PROTECTED]
Subject: Tomcat Ant Tasks


I am trying to use Tomcat Ant tasks to deploy my application while testing.
The only part I am having a problem with is trying to deploy the context
config file.  Below is my task

 

target name=deploy-local depends=war

deploy

url=${tomcat.local.url}

username=${username}

password=${password}

path=${path}

update=true 

config=//$(basedir}/resources/anykey.xml

war=//${basedir}/build/${deploy.name}/

/target

 

The war file is deployed just fine, but my config file goes nowhere.  ANT
claims everything was successful.  Does anyone have any ideas about this?

 

Thanks

 

Gregg Bolinger






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


!DSPAM:4173ebd5138921864919853!


RE: Tomcat Ant Tasks

2004-10-18 Thread Gregg Bolinger
PERFET!  Thanks.  Now, is that in the docs anywhere?  If it's not, it should
be.

-Original Message-
From: Phillip Qin [mailto:[EMAIL PROTECTED] 
Sent: Monday, October 18, 2004 11:16 AM
To: 'Tomcat Users List'
Subject: RE: Tomcat Ant Tasks

Pack your context into war, as META-INF/context.xml using ant jar command.



-Original Message-
From: Gregg Bolinger [mailto:[EMAIL PROTECTED] 
Sent: October 18, 2004 12:14 PM
To: 'Tomcat Users List'
Subject: RE: Tomcat Ant Tasks


Then I am confused.  I have a config that contains my apps context where I
have defined my datasource for JNDI etc.  If I don't define config in the
deploy task, a default context is created, which I don't want.

Also, the war deploys just fine, like I said.  So I don't have a problem
deploying the WAR file.  I am only having a problem getting my custom
context config to get deployed as well.

-Original Message-
From: Phillip Qin [mailto:[EMAIL PROTECTED] 
Sent: Monday, October 18, 2004 11:08 AM
To: 'Tomcat Users List'
Subject: RE: Tomcat Ant Tasks

This is my ant task

deploy
url=${dev.manager}
username=${username}
password=${password}
path=${context.path}
war=${war.url}
update=true/

No need to define config. On *nix box, war.url is file:/your/path/to/war, on
win32 box, war.url is file:/c:/your/path/to/war.


Context will always be dropped off conf/${engine}/${host} as
${your.context}.xml


-Original Message-
From: Gregg Bolinger [mailto:[EMAIL PROTECTED] 
Sent: October 18, 2004 11:26 AM
To: [EMAIL PROTECTED]
Subject: Tomcat Ant Tasks


I am trying to use Tomcat Ant tasks to deploy my application while testing.
The only part I am having a problem with is trying to deploy the context
config file.  Below is my task

 

target name=deploy-local depends=war

deploy

url=${tomcat.local.url}

username=${username}

password=${password}

path=${path}

update=true 

config=//$(basedir}/resources/anykey.xml

war=//${basedir}/build/${deploy.name}/

/target

 

The war file is deployed just fine, but my config file goes nowhere.  ANT
claims everything was successful.  Does anyone have any ideas about this?

 

Thanks

 

Gregg Bolinger






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


!DSPAM:4173ebd5138921864919853!


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



RE: Tomcat Ant Tasks

2004-10-18 Thread Phillip Qin
I think it is part of sub's jar spec.

-Original Message-
From: Gregg Bolinger [mailto:[EMAIL PROTECTED] 
Sent: October 18, 2004 12:29 PM
To: 'Tomcat Users List'
Subject: RE: Tomcat Ant Tasks


PERFET!  Thanks.  Now, is that in the docs anywhere?  If it's not, it should
be.

-Original Message-
From: Phillip Qin [mailto:[EMAIL PROTECTED] 
Sent: Monday, October 18, 2004 11:16 AM
To: 'Tomcat Users List'
Subject: RE: Tomcat Ant Tasks

Pack your context into war, as META-INF/context.xml using ant jar command.



-Original Message-
From: Gregg Bolinger [mailto:[EMAIL PROTECTED] 
Sent: October 18, 2004 12:14 PM
To: 'Tomcat Users List'
Subject: RE: Tomcat Ant Tasks


Then I am confused.  I have a config that contains my apps context where I
have defined my datasource for JNDI etc.  If I don't define config in the
deploy task, a default context is created, which I don't want.

Also, the war deploys just fine, like I said.  So I don't have a problem
deploying the WAR file.  I am only having a problem getting my custom
context config to get deployed as well.

-Original Message-
From: Phillip Qin [mailto:[EMAIL PROTECTED] 
Sent: Monday, October 18, 2004 11:08 AM
To: 'Tomcat Users List'
Subject: RE: Tomcat Ant Tasks

This is my ant task

deploy
url=${dev.manager}
username=${username}
password=${password}
path=${context.path}
war=${war.url}
update=true/

No need to define config. On *nix box, war.url is file:/your/path/to/war, on
win32 box, war.url is file:/c:/your/path/to/war.


Context will always be dropped off conf/${engine}/${host} as
${your.context}.xml


-Original Message-
From: Gregg Bolinger [mailto:[EMAIL PROTECTED] 
Sent: October 18, 2004 11:26 AM
To: [EMAIL PROTECTED]
Subject: Tomcat Ant Tasks


I am trying to use Tomcat Ant tasks to deploy my application while testing.
The only part I am having a problem with is trying to deploy the context
config file.  Below is my task

 

target name=deploy-local depends=war

deploy

url=${tomcat.local.url}

username=${username}

password=${password}

path=${path}

update=true 

config=//$(basedir}/resources/anykey.xml

war=//${basedir}/build/${deploy.name}/

/target

 

The war file is deployed just fine, but my config file goes nowhere.  ANT
claims everything was successful.  Does anyone have any ideas about this?

 

Thanks

 

Gregg Bolinger






-
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:4173ef67139476524431821!


RE: Tomcat Ant Tasks

2004-10-18 Thread Phillip Qin
Or documented in tomcat doc? Sorry, I forgot.

-Original Message-
From: Phillip Qin [mailto:[EMAIL PROTECTED] 
Sent: October 18, 2004 12:31 PM
To: 'Tomcat Users List'
Subject: RE: Tomcat Ant Tasks


I think it is part of sub's jar spec.

-Original Message-
From: Gregg Bolinger [mailto:[EMAIL PROTECTED] 
Sent: October 18, 2004 12:29 PM
To: 'Tomcat Users List'
Subject: RE: Tomcat Ant Tasks


PERFET!  Thanks.  Now, is that in the docs anywhere?  If it's not, it should
be.

-Original Message-
From: Phillip Qin [mailto:[EMAIL PROTECTED] 
Sent: Monday, October 18, 2004 11:16 AM
To: 'Tomcat Users List'
Subject: RE: Tomcat Ant Tasks

Pack your context into war, as META-INF/context.xml using ant jar command.



-Original Message-
From: Gregg Bolinger [mailto:[EMAIL PROTECTED] 
Sent: October 18, 2004 12:14 PM
To: 'Tomcat Users List'
Subject: RE: Tomcat Ant Tasks


Then I am confused.  I have a config that contains my apps context where I
have defined my datasource for JNDI etc.  If I don't define config in the
deploy task, a default context is created, which I don't want.

Also, the war deploys just fine, like I said.  So I don't have a problem
deploying the WAR file.  I am only having a problem getting my custom
context config to get deployed as well.

-Original Message-
From: Phillip Qin [mailto:[EMAIL PROTECTED] 
Sent: Monday, October 18, 2004 11:08 AM
To: 'Tomcat Users List'
Subject: RE: Tomcat Ant Tasks

This is my ant task

deploy
url=${dev.manager}
username=${username}
password=${password}
path=${context.path}
war=${war.url}
update=true/

No need to define config. On *nix box, war.url is file:/your/path/to/war, on
win32 box, war.url is file:/c:/your/path/to/war.


Context will always be dropped off conf/${engine}/${host} as
${your.context}.xml


-Original Message-
From: Gregg Bolinger [mailto:[EMAIL PROTECTED] 
Sent: October 18, 2004 11:26 AM
To: [EMAIL PROTECTED]
Subject: Tomcat Ant Tasks


I am trying to use Tomcat Ant tasks to deploy my application while testing.
The only part I am having a problem with is trying to deploy the context
config file.  Below is my task

 

target name=deploy-local depends=war

deploy

url=${tomcat.local.url}

username=${username}

password=${password}

path=${path}

update=true 

config=//$(basedir}/resources/anykey.xml

war=//${basedir}/build/${deploy.name}/

/target

 

The war file is deployed just fine, but my config file goes nowhere.  ANT
claims everything was successful.  Does anyone have any ideas about this?

 

Thanks

 

Gregg Bolinger






-
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:4173efd1139771216089279!


RE: Tomcat Ant Tasks

2004-10-18 Thread Shapira, Yoav

Hi,
It's not part of the JAR or WAR specs, it's a tomcat-specific feature,
and it's in our docs.

Yoav Shapira http://www.yoavshapira.com


-Original Message-
From: Phillip Qin [mailto:[EMAIL PROTECTED]
Sent: Monday, October 18, 2004 12:32 PM
To: 'Tomcat Users List'
Subject: RE: Tomcat Ant Tasks

Or documented in tomcat doc? Sorry, I forgot.

-Original Message-
From: Phillip Qin [mailto:[EMAIL PROTECTED]
Sent: October 18, 2004 12:31 PM
To: 'Tomcat Users List'
Subject: RE: Tomcat Ant Tasks


I think it is part of sub's jar spec.

-Original Message-
From: Gregg Bolinger [mailto:[EMAIL PROTECTED]
Sent: October 18, 2004 12:29 PM
To: 'Tomcat Users List'
Subject: RE: Tomcat Ant Tasks


PERFET!  Thanks.  Now, is that in the docs anywhere?  If it's not, it
should
be.

-Original Message-
From: Phillip Qin [mailto:[EMAIL PROTECTED]
Sent: Monday, October 18, 2004 11:16 AM
To: 'Tomcat Users List'
Subject: RE: Tomcat Ant Tasks

Pack your context into war, as META-INF/context.xml using ant jar
command.



-Original Message-
From: Gregg Bolinger [mailto:[EMAIL PROTECTED]
Sent: October 18, 2004 12:14 PM
To: 'Tomcat Users List'
Subject: RE: Tomcat Ant Tasks


Then I am confused.  I have a config that contains my apps context
where I
have defined my datasource for JNDI etc.  If I don't define config in
the
deploy task, a default context is created, which I don't want.

Also, the war deploys just fine, like I said.  So I don't have a
problem
deploying the WAR file.  I am only having a problem getting my custom
context config to get deployed as well.

-Original Message-
From: Phillip Qin [mailto:[EMAIL PROTECTED]
Sent: Monday, October 18, 2004 11:08 AM
To: 'Tomcat Users List'
Subject: RE: Tomcat Ant Tasks

This is my ant task

deploy
   url=${dev.manager}
   username=${username}
   password=${password}
   path=${context.path}
   war=${war.url}
   update=true/

No need to define config. On *nix box, war.url is
file:/your/path/to/war,
on
win32 box, war.url is file:/c:/your/path/to/war.


Context will always be dropped off conf/${engine}/${host} as
${your.context}.xml


-Original Message-
From: Gregg Bolinger [mailto:[EMAIL PROTECTED]
Sent: October 18, 2004 11:26 AM
To: [EMAIL PROTECTED]
Subject: Tomcat Ant Tasks


I am trying to use Tomcat Ant tasks to deploy my application while
testing.
The only part I am having a problem with is trying to deploy the
context
config file.  Below is my task



target name=deploy-local depends=war

deploy

url=${tomcat.local.url}

username=${username}

password=${password}

path=${path}

update=true

config=//$(basedir}/resources/anykey.xml

war=//${basedir}/build/${deploy.name}/

/target



The war file is deployed just fine, but my config file goes nowhere.
ANT
claims everything was successful.  Does anyone have any ideas about
this?



Thanks



Gregg Bolinger






-
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:4173efd1139771216089279!



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 Ant Tasks

2004-10-18 Thread Gregg Bolinger
Do you have a specific link?  What is our docs?

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
Sent: Monday, October 18, 2004 11:33 AM
To: Tomcat Users List
Subject: RE: Tomcat Ant Tasks


Hi,
It's not part of the JAR or WAR specs, it's a tomcat-specific feature,
and it's in our docs.

Yoav Shapira http://www.yoavshapira.com
 

-Original Message-
From: Phillip Qin [mailto:[EMAIL PROTECTED]
Sent: Monday, October 18, 2004 12:32 PM
To: 'Tomcat Users List'
Subject: RE: Tomcat Ant Tasks

Or documented in tomcat doc? Sorry, I forgot.

-Original Message-
From: Phillip Qin [mailto:[EMAIL PROTECTED]
Sent: October 18, 2004 12:31 PM
To: 'Tomcat Users List'
Subject: RE: Tomcat Ant Tasks


I think it is part of sub's jar spec.

-Original Message-
From: Gregg Bolinger [mailto:[EMAIL PROTECTED]
Sent: October 18, 2004 12:29 PM
To: 'Tomcat Users List'
Subject: RE: Tomcat Ant Tasks


PERFET!  Thanks.  Now, is that in the docs anywhere?  If it's not, it
should
be.

-Original Message-
From: Phillip Qin [mailto:[EMAIL PROTECTED]
Sent: Monday, October 18, 2004 11:16 AM
To: 'Tomcat Users List'
Subject: RE: Tomcat Ant Tasks

Pack your context into war, as META-INF/context.xml using ant jar
command.



-Original Message-
From: Gregg Bolinger [mailto:[EMAIL PROTECTED]
Sent: October 18, 2004 12:14 PM
To: 'Tomcat Users List'
Subject: RE: Tomcat Ant Tasks


Then I am confused.  I have a config that contains my apps context
where I
have defined my datasource for JNDI etc.  If I don't define config in
the
deploy task, a default context is created, which I don't want.

Also, the war deploys just fine, like I said.  So I don't have a
problem
deploying the WAR file.  I am only having a problem getting my custom
context config to get deployed as well.

-Original Message-
From: Phillip Qin [mailto:[EMAIL PROTECTED]
Sent: Monday, October 18, 2004 11:08 AM
To: 'Tomcat Users List'
Subject: RE: Tomcat Ant Tasks

This is my ant task

deploy
   url=${dev.manager}
   username=${username}
   password=${password}
   path=${context.path}
   war=${war.url}
   update=true/

No need to define config. On *nix box, war.url is
file:/your/path/to/war,
on
win32 box, war.url is file:/c:/your/path/to/war.


Context will always be dropped off conf/${engine}/${host} as
${your.context}.xml


-Original Message-
From: Gregg Bolinger [mailto:[EMAIL PROTECTED]
Sent: October 18, 2004 11:26 AM
To: [EMAIL PROTECTED]
Subject: Tomcat Ant Tasks


I am trying to use Tomcat Ant tasks to deploy my application while
testing.
The only part I am having a problem with is trying to deploy the
context
config file.  Below is my task



target name=deploy-local depends=war

deploy

url=${tomcat.local.url}

username=${username}

password=${password}

path=${path}

update=true

config=//$(basedir}/resources/anykey.xml

war=//${basedir}/build/${deploy.name}/

/target



The war file is deployed just fine, but my config file goes nowhere.
ANT
claims everything was successful.  Does anyone have any ideas about
this?



Thanks



Gregg Bolinger






-
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:4173efd1139771216089279!



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: JDBCRealm authentication on every page

2004-10-18 Thread Graff, David
QM,

I think, but this may need elaboration, that Deigo want's to put a login
box on all pages when the user has not authenticated and not show it after
login.

-Original Message-
From: QM [mailto:[EMAIL PROTECTED]
Sent: Monday, October 18, 2004 12:10 PM
To: Tomcat Users List
Subject: Re: JDBCRealm authentication on every page


On Mon, Oct 18, 2004 at 05:59:59PM +0200, Diego wrote:
: Hi! I want to put a login form on all of my pages. I'm using Tomcat 5
: and JDBCRealm, and authentication is working fine when a user tries to
: access a protected resource. But I don't know how could I invoke
: manually JDBCRealm authentication on non-protected pages and stay into
: the same page after login. Any idea?

If you want to force authentication, you could put the entire webapp
under a security constraint (i.e. *any* access will trigger a login
popup).

-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: Tomcat Ant Tasks

2004-10-18 Thread Shapira, Yoav

Hi,

Do you have a specific link?  What is our docs?

Yes, I have specific links:
The Context configuration reference:
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/context.html.

The Deployment section of the Application Development guide:
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/appdev/deployment.html

The Tomcat FAQ's Deployment section:
http://jakarta.apache.org/tomcat/faq/deployment.html

And of course numerous mailing list archive references and explanations,
external references obtained via Google, and others.

Our docs are the Tomcat documentation.  Our implies ownership by the
Tomcat team.  As opposed to the many external docs that exist for
Tomcat, some of which also covering this topic.

Yoav



-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: Monday, October 18, 2004 11:33 AM
To: Tomcat Users List
Subject: RE: Tomcat Ant Tasks


Hi,
It's not part of the JAR or WAR specs, it's a tomcat-specific feature,
and it's in our docs.

Yoav Shapira http://www.yoavshapira.com


-Original Message-
From: Phillip Qin [mailto:[EMAIL PROTECTED]
Sent: Monday, October 18, 2004 12:32 PM
To: 'Tomcat Users List'
Subject: RE: Tomcat Ant Tasks

Or documented in tomcat doc? Sorry, I forgot.

-Original Message-
From: Phillip Qin [mailto:[EMAIL PROTECTED]
Sent: October 18, 2004 12:31 PM
To: 'Tomcat Users List'
Subject: RE: Tomcat Ant Tasks


I think it is part of sub's jar spec.

-Original Message-
From: Gregg Bolinger [mailto:[EMAIL PROTECTED]
Sent: October 18, 2004 12:29 PM
To: 'Tomcat Users List'
Subject: RE: Tomcat Ant Tasks


PERFET!  Thanks.  Now, is that in the docs anywhere?  If it's not, it
should
be.

-Original Message-
From: Phillip Qin [mailto:[EMAIL PROTECTED]
Sent: Monday, October 18, 2004 11:16 AM
To: 'Tomcat Users List'
Subject: RE: Tomcat Ant Tasks

Pack your context into war, as META-INF/context.xml using ant jar
command.



-Original Message-
From: Gregg Bolinger [mailto:[EMAIL PROTECTED]
Sent: October 18, 2004 12:14 PM
To: 'Tomcat Users List'
Subject: RE: Tomcat Ant Tasks


Then I am confused.  I have a config that contains my apps context
where I
have defined my datasource for JNDI etc.  If I don't define config in
the
deploy task, a default context is created, which I don't want.

Also, the war deploys just fine, like I said.  So I don't have a
problem
deploying the WAR file.  I am only having a problem getting my custom
context config to get deployed as well.

-Original Message-
From: Phillip Qin [mailto:[EMAIL PROTECTED]
Sent: Monday, October 18, 2004 11:08 AM
To: 'Tomcat Users List'
Subject: RE: Tomcat Ant Tasks

This is my ant task

deploy
  url=${dev.manager}
  username=${username}
  password=${password}
  path=${context.path}
  war=${war.url}
  update=true/

No need to define config. On *nix box, war.url is
file:/your/path/to/war,
on
win32 box, war.url is file:/c:/your/path/to/war.


Context will always be dropped off conf/${engine}/${host} as
${your.context}.xml


-Original Message-
From: Gregg Bolinger [mailto:[EMAIL PROTECTED]
Sent: October 18, 2004 11:26 AM
To: [EMAIL PROTECTED]
Subject: Tomcat Ant Tasks


I am trying to use Tomcat Ant tasks to deploy my application while
testing.
The only part I am having a problem with is trying to deploy the
context
config file.  Below is my task



target name=deploy-local depends=war

deploy

url=${tomcat.local.url}

username=${username}

password=${password}

path=${path}

update=true

config=//$(basedir}/resources/anykey.xml

war=//${basedir}/build/${deploy.name}/

/target



The war file is deployed just fine, but my config file goes nowhere.
ANT
claims everything was successful.  Does anyone have any ideas about
this?



Thanks



Gregg Bolinger






-
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:4173efd1139771216089279!



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 

RE: Tomcat Ant Tasks

2004-10-18 Thread Phillip Qin
Don't know if context.xml page is broken, however, there are 2 attributes
that do not have name (between swallowOutput and useNaming).

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
Sent: October 18, 2004 12:58 PM
To: Tomcat Users List
Subject: RE: Tomcat Ant Tasks



Hi,

Do you have a specific link?  What is our docs?

Yes, I have specific links:
The Context configuration reference:
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/context.html.

The Deployment section of the Application Development guide:
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/appdev/deployment.html

The Tomcat FAQ's Deployment section:
http://jakarta.apache.org/tomcat/faq/deployment.html

And of course numerous mailing list archive references and explanations,
external references obtained via Google, and others.

Our docs are the Tomcat documentation.  Our implies ownership by the
Tomcat team.  As opposed to the many external docs that exist for Tomcat,
some of which also covering this topic.

Yoav



-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: Monday, October 18, 2004 11:33 AM
To: Tomcat Users List
Subject: RE: Tomcat Ant Tasks


Hi,
It's not part of the JAR or WAR specs, it's a tomcat-specific feature, 
and it's in our docs.

Yoav Shapira http://www.yoavshapira.com


-Original Message-
From: Phillip Qin [mailto:[EMAIL PROTECTED]
Sent: Monday, October 18, 2004 12:32 PM
To: 'Tomcat Users List'
Subject: RE: Tomcat Ant Tasks

Or documented in tomcat doc? Sorry, I forgot.

-Original Message-
From: Phillip Qin [mailto:[EMAIL PROTECTED]
Sent: October 18, 2004 12:31 PM
To: 'Tomcat Users List'
Subject: RE: Tomcat Ant Tasks


I think it is part of sub's jar spec.

-Original Message-
From: Gregg Bolinger [mailto:[EMAIL PROTECTED]
Sent: October 18, 2004 12:29 PM
To: 'Tomcat Users List'
Subject: RE: Tomcat Ant Tasks


PERFET!  Thanks.  Now, is that in the docs anywhere?  If it's not, it 
should be.

-Original Message-
From: Phillip Qin [mailto:[EMAIL PROTECTED]
Sent: Monday, October 18, 2004 11:16 AM
To: 'Tomcat Users List'
Subject: RE: Tomcat Ant Tasks

Pack your context into war, as META-INF/context.xml using ant jar
command.



-Original Message-
From: Gregg Bolinger [mailto:[EMAIL PROTECTED]
Sent: October 18, 2004 12:14 PM
To: 'Tomcat Users List'
Subject: RE: Tomcat Ant Tasks


Then I am confused.  I have a config that contains my apps context
where I
have defined my datasource for JNDI etc.  If I don't define config in
the
deploy task, a default context is created, which I don't want.

Also, the war deploys just fine, like I said.  So I don't have a
problem
deploying the WAR file.  I am only having a problem getting my custom 
context config to get deployed as well.

-Original Message-
From: Phillip Qin [mailto:[EMAIL PROTECTED]
Sent: Monday, October 18, 2004 11:08 AM
To: 'Tomcat Users List'
Subject: RE: Tomcat Ant Tasks

This is my ant task

deploy
  url=${dev.manager}
  username=${username}
  password=${password}
  path=${context.path}
  war=${war.url}
  update=true/

No need to define config. On *nix box, war.url is
file:/your/path/to/war,
on
win32 box, war.url is file:/c:/your/path/to/war.


Context will always be dropped off conf/${engine}/${host} as 
${your.context}.xml


-Original Message-
From: Gregg Bolinger [mailto:[EMAIL PROTECTED]
Sent: October 18, 2004 11:26 AM
To: [EMAIL PROTECTED]
Subject: Tomcat Ant Tasks


I am trying to use Tomcat Ant tasks to deploy my application while
testing.
The only part I am having a problem with is trying to deploy the
context
config file.  Below is my task



target name=deploy-local depends=war

deploy

url=${tomcat.local.url}

username=${username}

password=${password}

path=${path}

update=true

config=//$(basedir}/resources/anykey.xml

war=//${basedir}/build/${deploy.name}/

/target



The war file is deployed just fine, but my config file goes nowhere.
ANT
claims everything was successful.  Does anyone have any ideas about
this?



Thanks



Gregg Bolinger






-
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 

RE: Tomcat Ant Tasks

2004-10-18 Thread Shapira, Yoav

Hi,

Don't know if context.xml page is broken, however, there are 2
attributes
that do not have name (between swallowOutput and useNaming).

Oops ;)  I've just fixed it in CVS, it'll show up in the next release.
They're the two tldValidation options, not frequently used, and for
those who care the 5.5 context config reference page shows them
correctly.

Thanks for pointing that out,

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]



Has anyone seen: Code Modification for INVOKEVIRTUALOBJECT java/lang/Object/clone

2004-10-18 Thread Sandy McArthur
Has anyone seen this error in their catalina.out?
 Code Modification for INVOKEVIRTUALOBJECT java/lang/Object/clone
That is the last line of output just before the JVM terminates. 
Googling the line or parts of it doesn't turn up much.

I thought it may have something to do with tomcat persisting sessions 
to disk between restarts but I still get the error even when I've made 
sure there is no SESSIONS.ser file for tomcat to load.

Any help would be much appreciated as this is affecting our production 
Tomcat 5.0.27 cluster.

--
Sandy McArthur
He who dares not offend cannot be honest.
- Thomas Paine

smime.p7s
Description: S/MIME cryptographic signature


RE: Has anyone seen: Code Modification for INVOKEVIRTUALOBJECT java/lang/Object/clone

2004-10-18 Thread Shapira, Yoav

Hi,
Are any of your webapps running bytecode-manipulation libraries, e.g.
CGLIB/ASM/any of the AOP variants?

Yoav Shapira http://www.yoavshapira.com


-Original Message-
From: Sandy McArthur [mailto:[EMAIL PROTECTED]
Sent: Monday, October 18, 2004 1:43 PM
To: Tomcat Users List
Subject: Has anyone seen: Code Modification for INVOKEVIRTUALOBJECT
java/lang/Object/clone

Has anyone seen this error in their catalina.out?

 Code Modification for INVOKEVIRTUALOBJECT java/lang/Object/clone

That is the last line of output just before the JVM terminates.
Googling the line or parts of it doesn't turn up much.

I thought it may have something to do with tomcat persisting sessions
to disk between restarts but I still get the error even when I've made
sure there is no SESSIONS.ser file for tomcat to load.

Any help would be much appreciated as this is affecting our production
Tomcat 5.0.27 cluster.

--
Sandy McArthur

He who dares not offend cannot be honest.
- Thomas Paine



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: Has anyone seen: Code Modification for INVOKEVIRTUALOBJECT java/lang/Object/clone

2004-10-18 Thread Sandy McArthur
On Oct 18, 2004, at 1:46 PM, Shapira, Yoav wrote:
Are any of your webapps running bytecode-manipulation libraries, e.g.
CGLIB/ASM/any of the AOP variants?
Not in any of our code and none of the cglib/asm jars are in our 
webapp.  But I think that may have helped me a lot. After reviewing the 
libs in WEB-INF/lib I see we have two different versions of 
commons-collections pulled in by 3rd party libs. Which I'd thought to 
look there before asking for help.

I'll repackage our webapp and cross my fingers for the next day or two. 
This problem hasn't materialized itself under the same code in our test 
cluster in the past three weeks which is unfortunate.

--
Sandy McArthur
Those who would give up Essential Liberty to
purchase a little Temporary Safety, deserve
neither Liberty nor Safety. - Benjamin Franklin


smime.p7s
Description: S/MIME cryptographic signature


Strange Runtime maxMemory/totalMemory behavior under Red-Hat-8.0 and Suse-8.1

2004-10-18 Thread Zsolt Koppany
Hi,

I find it strange that when I start TC-5.0.27 (with our extensions) on
Red-Hat-8.0 and Suse-8.1 Rumtime.maxMemory() returns a value that is the
same as Rumtime.totalMemory() just after a couple of minutes and the
application doesn't do too much.

On Fedora-1 the same application (the application is just copied, thus no
compilation takes place) reports much less Rumtime.maxMemory() than
Rumtime.totalMemory() even after days.

Can somebody explain what the reason is?

jdk: 1.4.2-05

I start java with -Xmx100M.

Red-Hat-8.0:2.4.18-14
SuSe-8.1:   2.4.20 #1 SMP
FC-1:   2.4.22-1.2115.nptlsmp

Zsolt



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



Re: problem with security-constraint with Tomcat 5

2004-10-18 Thread Bill Barker
You didn't look hard enough :)
spec-quote version=2.4 section=11.1
An extension is defined as the part of the last segment after the last '.'
character.
/spec-quote

- Original Message -
From: Mercado . Maria [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, October 18, 2004 7:45 AM
Subject: RE: problem with security-constraint with Tomcat 5


Thanks for the suggestion, Yoav.  I looked but I didn't see anything that
stated that a url pattern with 2 dots is illegal.

- Cecile Mercado


-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: Monday, October 18, 2004 9:12 AM
To: Tomcat Users List
Subject: RE: problem with security-constraint with Tomcat 5



Hi,
Could this be something that changed (or rather, was clarified) in the
Servlet Spec between version 2.3 (which Tomcat 4.x implements) and 2.4
(which Tomcat 5.x implements)? ;)

Yoav Shapira http://www.yoavshapira.com


-Original Message-
From: Mercado . Maria [mailto:[EMAIL PROTECTED]
Sent: Monday, October 18, 2004 10:08 AM
To: [EMAIL PROTECTED]
Subject: problem with security-constraint with Tomcat 5

I'm looking into migrating our project from Tomcat 4.1.30 to Tomcat
5.0.28.
We're also using Tiles and Struts 1.1.  The problem is that Tomcat 5
seems
to be confused with a url pattern that works with Tomcat 4.  Here's the
pertinent parts of web.xml (I get the same results with 2.3 or 2.4
version
of web.xml):

...

!-- Struts action servlet --
servlet
servlet-namestrutsnav/servlet-name
servlet-classorg.apache.struts.action.ActionServlet/servlet-
class
init-param
param-nameconfig/param-name
param-value/WEB-INF/conf/struts-config.xml/param-value
/init-param
init-param
param-namevalidate/param-name
param-valuetrue/param-value
/init-param
load-on-startup1/load-on-startup
/servlet

...

servlet-mapping
servlet-namestrutsnav/servlet-name
url-pattern*.do/url-pattern
/servlet-mapping

...

   !-- JAAS Security Realm config --
security-constraint
web-resource-collection
web-resource-nameSecure Struts
Actions/web-resource-name
url-pattern*.sec.do/url-pattern
/web-resource-collection
auth-constraint
role-nameGeneral User/role-name
/auth-constraint
/security-constraint

login-config
auth-methodFORM/auth-method
form-login-config
form-login-page/login.do/form-login-page
form-error-page/logininvalid.do/form-error-page
/form-login-config
/login-config

security-role
role-nameGeneral User/role-name
/security-role

...

If I try to access a sec.do Struts action, I just get a blank space in
the
body of the Tiles layout - I don't get the login form.  If I change the
url-pattern in web-resource-collection to *.do, then I get the login
page.  It seems that Tomcat 5 doesn't like two dots in the url pattern.
Is
this a bug?

I also tried to add the following, but it didn't help:
servlet-mapping
servlet-namestrutsnav/servlet-name
url-pattern*.sec.do/url-pattern
/servlet-mapping


Thanks,
Cecile Mercado


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




This message is intended only for the use of the person(s) listed above as the 
intended recipient(s), and may contain information that is PRIVILEGED and 
CONFIDENTIAL.  If you are not an intended recipient, you may not read, copy, or 
distribute this message or any attachment. If you received this communication in 
error, please notify us immediately by e-mail and then delete all copies of this 
message and any attachments.

In addition you should be aware that ordinary (unencrypted) e-mail sent through the 
Internet is not secure. Do not send confidential or sensitive information, such as 
social security numbers, account numbers, personal identification numbers and 
passwords, to us via ordinary (unencrypted) e-mail.

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

Exception: current thread not owner

2004-10-18 Thread Robert Harper
I have a spot in my servlet where I would like to wait for another computer to
process a request. This request is asynchronous and I have to wait for the
output before I can continue. When I try to put a wait( 1000 ) line in my code I
get the exception that I am not the owner of the current thread. How can I set
up a wait so I don't burn CPU in a tight loop?

 

Robert S. Harper

Senior Engineer

1100 East 6600 South, Suite 300

Salt Lake City, UT 84121-7411

801.265.8800 ex. 255

 



Host names with mixed case

2004-10-18 Thread Robert Hunt
Does Tomcat (5.0.25) use case-insensitive matching against the list of hosts 
defined in server.xml?  I'm looking at my request log and I'm seeing a 
request for MyWebService.com that appears to be serviced by the default 
host rather than mywebservice.com  Why the HTTP header has mixed case is 
beyond me -- the user-agent was noted as Mozilla/4.0 (compatible; MSIE 5.0; 
Mac_PowerPC)

If it's true that Tomcat gets confused in this type of case, SHOULDN'T it 
use a case-insensitive match? 

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


RE: Exception: current thread not owner

2004-10-18 Thread Shapira, Yoav

Hi,

process a request. This request is asynchronous and I have to wait for
the
output before I can continue. When I try to put a wait( 1000 ) line in
my
code I
get the exception that I am not the owner of the current thread. How
can I
set
up a wait so I don't burn CPU in a tight loop?

Yup, you don't own the request processing thread, Tomcat does.  If you
blocked it, other requests couldn't use it.

You'd still have to use a loop (assuming you're not interested in a
design-driven solution like JMS or another event-driven model), but you
can make it less tight by checking every X ms instead of all the time,
and you can do it in a separate thread that you spawn.  Unlike the
server threads, you'd own that thread so you could sleep or wait it as
needed.

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]



Session problems with cluster

2004-10-18 Thread Matthew Stone
When I restart the context of a clustered node the session doesnt seem
to be cleared.  After I restart the context, I'm expecting a null from
the following line but I'm getting a ClassCastException because of the
different class loaders that loaded MyObject.

MyObject obj = (MyObject) request.getSession ().getAttribute
(my_object);

I'm using 5.0.25 because I was running into bug 31495 Context reload
causes ClusterManager to stop operating in version 5.0.28.

Does 5.0.29 address this?  I didn't see that the bug was closed.



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



IO error: request.getReader(); readLine(); on Netscape

2004-10-18 Thread Daxin Zuo
Hi, I have code like:
 BufferedReader breader = request.getReader();
  String rdata = breader.readLine();
  while (rdata != null)
  {  ..  }

It run's well with IE. On Netscape7.1, I get java.io.IOException
My purpose is to upload a file. Could you please give me instruction?
Thanks.

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



Re: IO error: request.getReader(); readLine(); on Netscape

2004-10-18 Thread Ben Souther
Where is this code? On the client? the server?



On Mon, 2004-10-18 at 15:11, Daxin Zuo wrote:
 Hi, I have code like:
  BufferedReader breader = request.getReader();
   String rdata = breader.readLine();
   while (rdata != null)
   {  ..  }
 
 It run's well with IE. On Netscape7.1, I get java.io.IOException
 My purpose is to upload a file. Could you please give me instruction?
 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: IO error: request.getReader(); readLine(); on Netscape

2004-10-18 Thread Shapira, Yoav

Hi,
This code is on the server, I'd image.  My advice: don't re-invent the
wheel, use Jakarta Commons Fileupload.

Yoav Shapira http://www.yoavshapira.com


-Original Message-
From: Ben Souther [mailto:[EMAIL PROTECTED]
Sent: Monday, October 18, 2004 3:23 PM
To: Tomcat Users List
Subject: Re: IO error: request.getReader(); readLine(); on Netscape

Where is this code? On the client? the server?



On Mon, 2004-10-18 at 15:11, Daxin Zuo wrote:
 Hi, I have code like:
  BufferedReader breader = request.getReader();
   String rdata = breader.readLine();
   while (rdata != null)
   {  ..  }

 It run's well with IE. On Netscape7.1, I get java.io.IOException
 My purpose is to upload a file. Could you please give me instruction?
 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]




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: Exception: current thread not owner

2004-10-18 Thread Robert Harper


 You'd still have to use a loop (assuming you're not interested in a
 design-driven solution like JMS or another event-driven model), but you
 can make it less tight by checking every X ms instead of all the time,
 and you can do it in a separate thread that you spawn.  Unlike the
 server threads, you'd own that thread so you could sleep or wait it as
 needed.
[Robert Harper] 
I still need to know how I am to wait without burning the CPU while I am waiting
for a response. I would rather not have to have the web page have to keep
checking back for a response.



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



Re: Session problems with cluster

2004-10-18 Thread Filip Hanik - Dev
I'm expecting a null from
the following line

No, you would not expect null. The session replication mechanism is supposed to 
survive context reloads.
But you should not be getting a ClassCastException, if you are I would love for you to 
submit a test case.

When a context is reloaded, it will startup again, at which point the manager will 
request the state from another server. This data
comes over serialized and is reloaded by the new classloader, hence you shouldn't get 
ClassCastExceptions,

the only way you would get class cast exceptions is if you actually recompiled the 
class on one of your servers.

Due to busy work schedule, I haven't had a chance to fix the context reload, I only 
recently found out (same way you did) that
context reload was broken.

Filip

- Original Message -
From: Matthew Stone [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, October 18, 2004 2:09 PM
Subject: Session problems with cluster


When I restart the context of a clustered node the session doesnt seem
to be cleared.  After I restart the context, I'm expecting a null from
the following line but I'm getting a ClassCastException because of the
different class loaders that loaded MyObject.

MyObject obj = (MyObject) request.getSession ().getAttribute
(my_object);

I'm using 5.0.25 because I was running into bug 31495 Context reload
causes ClusterManager to stop operating in version 5.0.28.

Does 5.0.29 address this?  I didn't see that the bug was closed.



-
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: Exception: current thread not owner

2004-10-18 Thread Filip Hanik - Dev
I still need to know how I am to wait without burning the CPU while I am waiting

sleep() or wait() does wait without burning CPU

Filip
- Original Message - 
From: Robert Harper [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Monday, October 18, 2004 2:40 PM
Subject: RE: Exception: current thread not owner




 You'd still have to use a loop (assuming you're not interested in a
 design-driven solution like JMS or another event-driven model), but you
 can make it less tight by checking every X ms instead of all the time,
 and you can do it in a separate thread that you spawn.  Unlike the
 server threads, you'd own that thread so you could sleep or wait it as
 needed.
[Robert Harper] 
I still need to know how I am to wait without burning the CPU while I am waiting
for a response. I would rather not have to have the web page have to keep
checking back for a response.



-
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: Exception: current thread not owner

2004-10-18 Thread Shapira, Yoav

Hi,

[Robert Harper]
I still need to know how I am to wait without burning the CPU while I
am
waiting
for a response. I would rather not have to have the web page have to
keep
checking back for a response.

It's been a while since I've had to post code on here ;)  Here's a
generic way to spawn a thread and only check on it every X milliseconds,
instead of all the time, so that you don't burn the CPU:

class MyServlet extends HttpServlet {
  ...
  ...doGet(...) {
Thread myThread = new MyThread();
while(! (myThread.isDone())) {
  Thread.currentThread().sleep(5000);
}
myThread = null;

...
  }
}

class MyThread extends Thread() {
  ...
  boolean done = false;

  MyThread() {
...
setDaemon(true);
  }

  run() {
...
done = true;
  }

  boolean isDone() {
return done;
  }
}

That's it.  I omitted accessors and such for brevity, but I hope you get
the point of this approach.  As I said previously, this is still
inferior, both from a cleanliness/maintainability and from a
Spec-compliance point of view, to a design-based solution like JMS.  But
it'll work, so hopefully now I've given enough detail for you.

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]



Load-on-Startup child-threads not dying at context-reload

2004-10-18 Thread Jonathan Wilson
I have a load-on-startup1/load-on-startup Servlet on TC3.3.1(under 
RH7.3) which checks an XML file which contains a list of Runnable 
classes to kick off at servlet startup. These child threads all belong 
to the same threadgroup(however, not the same threadgroup of the spawner 
servlet). These are daemon threads, and have the setDaemon(true) set for 
the thread before I kickoff the runnable class. The problem I'm 
experiencing is that when the context needs to be reloaded these child 
threads are not killed, but continue to run. Since the context was 
reloaded more threads of the same classes are kicked off - voila, 
multiple threads responsible for the same thing(not desirable). I don't 
think I can do a Singleton-type-thing since these old threads seem to be 
running under a different JVM(via ppid) after context reload. I thought 
that when only threads of Daemon type were left an application/parent 
thread would die. I could of course implement an interface which 
requires a yourDead() method and update all the child classes to check 
to see if they should exit their infinite loops but I was hoping there 
was a more elegant way.

Better design/good ideas??
Thanks,
   JW
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Load-on-Startup child-threads not dying at context-reload

2004-10-18 Thread Ben Souther
If upgrading Tomcat is possible, a context listener would be a better
design.




On Mon, 2004-10-18 at 15:51, Jonathan Wilson wrote:
 I have a load-on-startup1/load-on-startup Servlet on TC3.3.1(under 
 RH7.3) which checks an XML file which contains a list of Runnable 
 classes to kick off at servlet startup. These child threads all belong 
 to the same threadgroup(however, not the same threadgroup of the spawner 
 servlet). These are daemon threads, and have the setDaemon(true) set for 
 the thread before I kickoff the runnable class. The problem I'm 
 experiencing is that when the context needs to be reloaded these child 
 threads are not killed, but continue to run. Since the context was 
 reloaded more threads of the same classes are kicked off - voila, 
 multiple threads responsible for the same thing(not desirable). I don't 
 think I can do a Singleton-type-thing since these old threads seem to be 
 running under a different JVM(via ppid) after context reload. I thought 
 that when only threads of Daemon type were left an application/parent 
 thread would die. I could of course implement an interface which 
 requires a yourDead() method and update all the child classes to check 
 to see if they should exit their infinite loops but I was hoping there 
 was a more elegant way.
 
 Better design/good ideas??
 
 Thanks,
 JW
 
 -
 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: Exception: current thread not owner

2004-10-18 Thread Robert Harper
 It's been a while since I've had to post code on here ;)  Here's a
 generic way to spawn a thread and only check on it every X milliseconds,
 instead of all the time, so that you don't burn the CPU:
[Robert Harper] 
I know how to create threads. I did not intend for you to treat me like a total
newbie but I guess I am.

I still don't see how I have the servlet check back every so many ms for an
event or a status flag to be set without performing some sleep() or wait()
without burning CPU.



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



Re: Load-on-Startup child-threads not dying at context-reload

2004-10-18 Thread Jonathan Wilson
I'm working on getting the next release out on TC5. I don't think that 
would fix my threading issue, however.

JW
Ben Souther wrote:
If upgrading Tomcat is possible, a context listener would be a better
design.

On Mon, 2004-10-18 at 15:51, Jonathan Wilson wrote:
 

I have a load-on-startup1/load-on-startup Servlet on TC3.3.1(under 
RH7.3) which checks an XML file which contains a list of Runnable 
classes to kick off at servlet startup. These child threads all belong 
to the same threadgroup(however, not the same threadgroup of the spawner 
servlet). These are daemon threads, and have the setDaemon(true) set for 
the thread before I kickoff the runnable class. The problem I'm 
experiencing is that when the context needs to be reloaded these child 
threads are not killed, but continue to run. Since the context was 
reloaded more threads of the same classes are kicked off - voila, 
multiple threads responsible for the same thing(not desirable). I don't 
think I can do a Singleton-type-thing since these old threads seem to be 
running under a different JVM(via ppid) after context reload. I thought 
that when only threads of Daemon type were left an application/parent 
thread would die. I could of course implement an interface which 
requires a yourDead() method and update all the child classes to check 
to see if they should exit their infinite loops but I was hoping there 
was a more elegant way.

Better design/good ideas??
Thanks,
   JW
-
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: Exception: current thread not owner

2004-10-18 Thread Shapira, Yoav

Hi,

I still don't see how I have the servlet check back every so many ms
for an
event or a status flag to be set without performing some sleep() or
wait()
without burning CPU.

I don't get it.  You don't want the servlet to return until it's done
writing the web page, which means waiting for your async request to
complete.  But you don't want to wait, you don't ant to sleep, and you
don't want to burn CPU.

HTTP is a stateless protocol.  One request = one response, with all the
content.  You can do stuff with JavaScript like posting a request in
progress text and polling for the servlet to complete, but that's
tricky and fragile.

Are you looking for a client-side or server-side solution?  Have you
considered having the servlet use JMS for this, i.e. send a JMS message
and block until its returned?

Have you actually profiled a wait() or sleep() request to see that it
burns CPU?  You might be positively surprised...

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: Load-on-Startup child-threads not dying at context-reload

2004-10-18 Thread Shapira, Yoav

Hi,

servlet). These are daemon threads, and have the setDaemon(true) set
for
the thread before I kickoff the runnable class. The problem I'm
experiencing is that when the context needs to be reloaded these child
threads are not killed, but continue to run.

Why would they be killed?  The JVM kills daemon threads on exit, and a
Tomcat context reload is not a JVM exit.


think I can do a Singleton-type-thing since these old threads seem to
be
running under a different JVM(via ppid) after context reload.

They're not running under a different JVM, and ppid on your system is
not a reliable method, as has been discussed on this list numerous
times.

Better design/good ideas??

A ServletContextListener is better, as someone else said, because a
load-on-startup servlet may be restarted by the container as needed with
or without an application reload.  But aside from that, your design
reliance on a JVM exit is a basic flaw and upgrading to a later Tomcat
version won't help you there.

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: IO error: request.getReader(); readLine(); on Netscape

2004-10-18 Thread Daxin Zuo
Yes, it is on the server.
Our application by default is Tomcat. But if the customer insists in
different application server, we need to support customer's server. So I
like to ask if the Jakarta Commons Fileupload is a standard component?
If not, does other application server has similar component? Like database
connection pool, all application servers have it. So I may be able to wrap
it.

Thanks

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: Monday, October 18, 2004 12:33 PM
To: Tomcat Users List
Subject: RE: IO error: request.getReader(); readLine(); on Netscape



Hi,
This code is on the server, I'd image.  My advice: don't re-invent the
wheel, use Jakarta Commons Fileupload.

Yoav Shapira http://www.yoavshapira.com


-Original Message-
From: Ben Souther [mailto:[EMAIL PROTECTED]
Sent: Monday, October 18, 2004 3:23 PM
To: Tomcat Users List
Subject: Re: IO error: request.getReader(); readLine(); on Netscape

Where is this code? On the client? the server?



On Mon, 2004-10-18 at 15:11, Daxin Zuo wrote:
 Hi, I have code like:
  BufferedReader breader = request.getReader();
   String rdata = breader.readLine();
   while (rdata != null)
   {  ..  }

 It run's well with IE. On Netscape7.1, I get java.io.IOException
 My purpose is to upload a file. Could you please give me instruction?
 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]




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: IO error: request.getReader(); readLine(); on Netscape

2004-10-18 Thread Shapira, Yoav

Hi,

different application server, we need to support customer's server. So
I
like to ask if the Jakarta Commons Fileupload is a standard component?
If not, does other application server has similar component? Like
database
connection pool, all application servers have it. So I may be able to
wrap
it.

Commons Fileupload is not a standard component because there's no
applicable standard.  It's a portable component with no specific ties to
Tomcat, and many users have used it on other servers.  So wrapping it is
a waste of time.

For more information about it, ask on the commons-user mailing list.

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: IO error: request.getReader(); readLine(); on Netscape

2004-10-18 Thread Ben Souther
Commons Filupload is not a Tomcat component so it can be packaged in
your app to run on any server.
It's easy to use too.
http://jakarta.apache.org/commons/fileupload/



On Mon, 2004-10-18 at 16:12, Daxin Zuo wrote:
 Yes, it is on the server.
 Our application by default is Tomcat. But if the customer insists in
 different application server, we need to support customer's server. So I
 like to ask if the Jakarta Commons Fileupload is a standard component?
 If not, does other application server has similar component? Like database
 connection pool, all application servers have it. So I may be able to wrap
 it.
 
 Thanks
 
 -Original Message-
 From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
 Sent: Monday, October 18, 2004 12:33 PM
 To: Tomcat Users List
 Subject: RE: IO error: request.getReader(); readLine(); on Netscape
 
 
 
 Hi,
 This code is on the server, I'd image.  My advice: don't re-invent the
 wheel, use Jakarta Commons Fileupload.
 
 Yoav Shapira http://www.yoavshapira.com
 
 
 -Original Message-
 From: Ben Souther [mailto:[EMAIL PROTECTED]
 Sent: Monday, October 18, 2004 3:23 PM
 To: Tomcat Users List
 Subject: Re: IO error: request.getReader(); readLine(); on Netscape
 
 Where is this code? On the client? the server?
 
 
 
 On Mon, 2004-10-18 at 15:11, Daxin Zuo wrote:
  Hi, I have code like:
   BufferedReader breader = request.getReader();
String rdata = breader.readLine();
while (rdata != null)
{  ..  }
 
  It run's well with IE. On Netscape7.1, I get java.io.IOException
  My purpose is to upload a file. Could you please give me instruction?
  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]
 
 
 
 
 This e-mail, including any attachments, is a confidential business
 communication, and may contain information that is confidential, proprietary
 and/or privileged.  This e-mail is intended only for the individual(s) to
 whom it is addressed, and may not be saved, copied, printed, disclosed or
 used by anyone else.  If you are not the(an) intended recipient, please
 immediately delete this e-mail from your computer system and notify the
 sender.  Thank you.
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


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



RE: IO error: request.getReader(); readLine(); on Netscape

2004-10-18 Thread Larry Meadors
http://tinyurl.com/6llx2

 [EMAIL PROTECTED] 10/18/04 2:12 PM 
Yes, it is on the server.
Our application by default is Tomcat. But if the customer insists in
different application server, we need to support customer's server. So I
like to ask if the Jakarta Commons Fileupload is a standard component?
If not, does other application server has similar component? Like
database
connection pool, all application servers have it. So I may be able to
wrap
it.

Thanks

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: Monday, October 18, 2004 12:33 PM
To: Tomcat Users List
Subject: RE: IO error: request.getReader(); readLine(); on Netscape



Hi,
This code is on the server, I'd image.  My advice: don't re-invent the
wheel, use Jakarta Commons Fileupload.

Yoav Shapira http://www.yoavshapira.com


-Original Message-
From: Ben Souther [mailto:[EMAIL PROTECTED]
Sent: Monday, October 18, 2004 3:23 PM
To: Tomcat Users List
Subject: Re: IO error: request.getReader(); readLine(); on Netscape

Where is this code? On the client? the server?



On Mon, 2004-10-18 at 15:11, Daxin Zuo wrote:
 Hi, I have code like:
  BufferedReader breader = request.getReader();
   String rdata = breader.readLine();
   while (rdata != null)
   {  ..  }

 It run's well with IE. On Netscape7.1, I get java.io.IOException
 My purpose is to upload a file. Could you please give me instruction?
 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]




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


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


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



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



RE: Exception: current thread not owner

2004-10-18 Thread Ben Souther

I still don't see how I have the servlet check back every so many ms
for an
event or a status flag to be set without performing some sleep() or
wait()
without burning CPU.

His code wasn't without a sleep() call.










On Mon, 2004-10-18 at 16:02, Robert Harper wrote:
  It's been a while since I've had to post code on here ;)  Here's a
  generic way to spawn a thread and only check on it every X milliseconds,
  instead of all the time, so that you don't burn the CPU:
 [Robert Harper] 
 I know how to create threads. I did not intend for you to treat me like a total
 newbie but I guess I am.
 
 I still don't see how I have the servlet check back every so many ms for an
 event or a status flag to be set without performing some sleep() or wait()
 without burning CPU.
 
 
 
 -
 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]



Commons Logging

2004-10-18 Thread Will Hartung
I have an webapp that is using commons logging backed by log4j. The
log4j.properties file is in WEB-INF/classes.

The problem is that when I enable the different verbosity levels, those
levels are communicated up into the Tomcat container itself. So, if I set
DEBUG, I get a boat load of crap from the container that I'm, frankly,
completely uninterested in.

Anyone have any tips on using Commons Logging within a Webapp without
interfereing with TOMCAT itself?

Thanx!

Regards,

Will Hartung
([EMAIL PROTECTED])



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



Re: Load-on-Startup child-threads not dying at context-reload

2004-10-18 Thread Jonathan Wilson
Hi,
Shapira, Yoav wrote:
Hi,
 

servlet). These are daemon threads, and have the setDaemon(true) set
   

for
 

the thread before I kickoff the runnable class. The problem I'm
experiencing is that when the context needs to be reloaded these child
threads are not killed, but continue to run.
   

Why would they be killed?  The JVM kills daemon threads on exit, and a
Tomcat context reload is not a JVM exit.
 

think I can do a Singleton-type-thing since these old threads seem to
   

be
 

running under a different JVM(via ppid) after context reload.
   

They're not running under a different JVM, and ppid on your system is
not a reliable method, as has been discussed on this list numerous
times.
 

Better design/good ideas??
   

A ServletContextListener is better, as someone else said, because a
load-on-startup servlet may be restarted by the container as needed with
or without an application reload.  But aside from that, your design
reliance on a JVM exit is a basic flaw and upgrading to a later Tomcat
version won't help you there.
 

Hmm, then is there a recommended way for managing child threads that are 
kicked off by a servlet? My servlet reads an XML file to determine what 
classes to create and run - but if the Servlet itself goes away and then 
is re-init()ed it will attempt to start those classes again. Does every 
Runnable child class need to implement Singleton or should I add 
something to the servlets destroy() method to attempt to close each 
child before exit? If one of the child threads were busy or locked...

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]
 

Thanks,
   JW


Re: Session problems with cluster

2004-10-18 Thread Matthew Stone
Filip,

I discovered this when I had one node in the cluster.  With no other nodes to receive 
a session from, I expected the session to be
empty.  Is the session intended to survive reloads in this case?  I would guess not, 
just because of the complexities involved with the

class definitions.

This code should be enough to cause the problem after a stop and start of the context.

:test.jsp
html
%
Object obj = request.getSession ().getAttribute (my_object);

if (obj == null) {
out.println(MyObject was null. Adding instance to session, please start and stop 
context.br);
request.getSession ().setAttribute (my_object, new testpkg.MyObject ());
} else {
out.println (liMyObject was in session);
out.println (liDo class names match:  + (obj.getClass ().getName ().equals 
(testpkg.MyObject.class.getName (;
out.println (liAre objects assignable:  + (obj instanceof testpkg.MyObject) + 
br);

try {
 testpkg.MyObject o = (testpkg.MyObject) request.getSession
().getAttribute (my_object);
} catch (ClassCastException e) {
 out.println (li + e);
}
}

%
/html

:MyObject.java
package testpkg;

public class MyObject implements java.io.Serializable {
public int i = 0;
}

web.xml

?xml version=1.0 encoding=ISO-8859-1?
!DOCTYPE web-app
PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.2//EN
http://java.sun.com/dtd/web-app_2_3.dtd;

web-app
  display-nameTest/display-name

  distributable/
/web-app


- Used all the packaged cluster settings.

Thanks,
Matthew


Filip Hanik - Dev wrote:

 I'm expecting a null from
 the following line

 No, you would not expect null. The session replication mechanism is supposed to 
 survive context reloads.
 But you should not be getting a ClassCastException, if you are I would love for you 
 to submit a test case.

 When a context is reloaded, it will startup again, at which point the manager will 
 request the state from another server. This data
 comes over serialized and is reloaded by the new classloader, hence you shouldn't 
 get ClassCastExceptions,

 the only way you would get class cast exceptions is if you actually recompiled the 
 class on one of your servers.

 Due to busy work schedule, I haven't had a chance to fix the context reload, I only 
 recently found out (same way you did) that
 context reload was broken.

 Filip

 - Original Message -
 From: Matthew Stone [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Monday, October 18, 2004 2:09 PM
 Subject: Session problems with cluster

 When I restart the context of a clustered node the session doesnt seem
 to be cleared.  After I restart the context, I'm expecting a null from
 the following line but I'm getting a ClassCastException because of the
 different class loaders that loaded MyObject.

 MyObject obj = (MyObject) request.getSession ().getAttribute
 (my_object);

 I'm using 5.0.25 because I was running into bug 31495 Context reload
 causes ClusterManager to stop operating in version 5.0.28.

 Does 5.0.29 address this?  I didn't see that the bug was closed.

 -
 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: Session problems with cluster

2004-10-18 Thread Dale, Matt

Surely when you restart the context all the sessions will get serialised then reloaded 
so I would expect this behaviour. You would have to set the cluster to dump sessions 
on a reload.

-Original Message-
From: Matthew Stone [mailto:[EMAIL PROTECTED]
Sent: 18 October 2004 20:09
To: [EMAIL PROTECTED]
Subject: Session problems with cluster


When I restart the context of a clustered node the session doesnt seem
to be cleared.  After I restart the context, I'm expecting a null from
the following line but I'm getting a ClassCastException because of the
different class loaders that loaded MyObject.

MyObject obj = (MyObject) request.getSession ().getAttribute
(my_object);

I'm using 5.0.25 because I was running into bug 31495 Context reload
causes ClusterManager to stop operating in version 5.0.28.

Does 5.0.29 address this?  I didn't see that the bug was closed.



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

Any opinions expressed in this E-mail may be those of the individual and not 
necessarily the company. This E-mail and any files transmitted with it are 
confidential and solely for the use of the intended recipient. If you are not the 
intended recipient or the person responsible for delivering to the intended recipient, 
be advised that you have received this E-mail in error and that any use or copying is 
strictly prohibited. If you have received this E-mail in error please notify the 
beCogent postmaster at [EMAIL PROTECTED]
Unless expressly stated, opinions in this email are those of the individual sender and 
not beCogent Ltd. You must take full responsibility for virus checking this email and 
any attachments.
Please note that the content of this email or any of its attachments may contain data 
that falls within the scope of the Data Protection Acts and that you must ensure that 
any handling or processing of such data by you is fully compliant with the terms and 
provisions of the Data Protection Act 1984 and 1998.


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

tomcat 4.1.30 vs. 5.0.2x

2004-10-18 Thread Monika Koerdt
Hi -

 

I have the following piece of code running in Tomcat 5.0.2x

 

public class ContextValve extends ValveBase

{

static ThreadLocal testContext = new ThreadLocal();

 

public void invoke(Request request, Response response,
ValveContext context) throws IOException, ServletException

{

testContext.set(request.getContext());

context.invokeNext(request, response);

}

}

 

Seems to work properly on Tomcat 5.0.2x, but when compile it and run it
on 4.1.30, the returned context is always null.  Any ideas on why this
is happening?  I just need to get a hold of the context on every
request...

 

Thanks,

Monika

 



Re: AW: How to redirect http to https automatically?

2004-10-18 Thread raiden
Hello,

I believe all but your third example is correct.  I am pretty sure that a
cookie set for www.domaina.com will be sent to that same domain if it's in
http or https.

However, if the cookie is marked as secure, it will only be sent under
https.

This is what has caused the problem.  I still don't know why the Tomcat
team decided to take out the configurable option of forcing session
cookies that were created under https to be secure or not.  (I understand
that it makes a good default, from a security point of view.  But for
those that are aware of the security implications, we no longer have the
option to turn it off.)

This has caused a problem for many people, and has come up in numerous
threads since this change was made in the Tomcat 4.x line.  (Or perhaps,
the configurable option was added to the 3.x line, and never added to the
4.x and 5.x lines?)

http://www.junlu.com/msg/49789.html
http://www.mail-archive.com/[EMAIL PROTECTED]/msg83724.html
http://archives.real-time.com/pipermail/tomcat-devel/2001-October/024544.html

Thanks,
-Raiden Johnson


On Sat, 16 Oct 2004, Steffen Heil wrote:

 Hi

  Actually, I'm a big advocate against staying in HTTPS, because of the
 overhead.  However, this is a problem with Tomcat, because in the 4.x and
 5.x lines it was decided by someone that if a session started in HTTPS it is
 only valid in HTTPS (basically, the session cookie is turned into a secure
 cookie only).

 I do not understand this.
 I always thought cookies where only valid for ONE domain and ONE Protocol,
 so the following would be pairwise different and thus cannot share a cookie:

 http://www.domaina.com  http://www.domainb.com
 http://www.domaina.com  http://domainb.com
 http://www.domaina.com  https://www.domaina.com

 Is my view wrong? Is there a way to reattach a session to a request, if
 the old sessionID is kown?

 Regards,
   Steffen


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



Re: Session problems with cluster

2004-10-18 Thread Matthew Stone
Matt,

No other nodes are up, so there's nothing to serialize. I could imagine that the 
session of the old context could be serialized to the new context in order to preserve 
state, although I
hope this isn't done.

Thanks,
Matthew

Dale, Matt wrote:

 Surely when you restart the context all the sessions will get serialised then 
 reloaded so I would expect this behaviour. You would have to set the cluster to dump 
 sessions on a reload.

 -Original Message-
 From: Matthew Stone [mailto:[EMAIL PROTECTED]
 Sent: 18 October 2004 20:09
 To: [EMAIL PROTECTED]
 Subject: Session problems with cluster

 When I restart the context of a clustered node the session doesnt seem
 to be cleared.  After I restart the context, I'm expecting a null from
 the following line but I'm getting a ClassCastException because of the
 different class loaders that loaded MyObject.

 MyObject obj = (MyObject) request.getSession ().getAttribute
 (my_object);

 I'm using 5.0.25 because I was running into bug 31495 Context reload
 causes ClusterManager to stop operating in version 5.0.28.

 Does 5.0.29 address this?  I didn't see that the bug was closed.

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

   
Name: InterScan_Disclaimer.txt
InterScan_Disclaimer.txtType: Plain Text (text/plain)
Encoding: 7bit

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



Debugging startup in 5.0.28 with eclipse 3.0/myeclipse

2004-10-18 Thread Benson Margulies
I need to debug a JNDI resource factory configured in server.xml. I'm
running eclipse 3.0.

I'd like to just use eclipse's ability to launch tomcat in the debugger,
but breakpoints aren't breaking.

Anyone else been down this path?


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



password protected

2004-10-18 Thread vaneet
hello all,

can i make a directory password protective without using java as programming language. 
I mean, just by some XML tags in web.xml or server.xml


let me know

vaneet


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



Re: JDBCRealm authentication on every page

2004-10-18 Thread QM
On Mon, Oct 18, 2004 at 11:41:51AM -0500, Graff, David wrote:
: I think, but this may need elaboration, that Deigo want's to put a login
: box on all pages when the user has not authenticated and not show it after
: login.

Ah, gotcha.  Instead of showing a login box, what about a login *link*
that points to a landing page inside a protected area?

You could control the link's presence based on a (very lightweight)
session attr: if it's defined, show a logout link; if it's not
defined, show a login link.

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