Re: Two Tomcat installations on one server in Windows 2K3

2004-12-13 Thread Tino Schöllhorn
Hi,
as far as I know you can't run the installer twice. To run several 
identical instances of tomcat you can use the information of the 
follwoing url:

http://jakarta.apache.org/tomcat/tomcat-4.1-doc/RUNNING.txt
It helped me a lot.
Tino
footh wrote:
I have a server with several IP addresses and I'd like
to have two separate instances of Tomcat listening on
two of the IP addresses.  I want both of these
instances to be a  separate service as well.
I already had one Tomcat installation on the server
and I attempted to run the installer again under a
different directory.  Then I modified the service.bat
file to give the service a different name and I tried
to install this new instance.  However, I received an
error.
Additionally, it seems both installations point to the
same registry configuration entries which has
directory-specific values (pointing the the directory
of the last installion of Tomcat I performed).
So, I'm thinking I'm not doing this the right way.  I
read the RUNNING.txt file and searched the mailing
list but I can't seem to find information specific to
what I need to do.  Could someone possibly offer a
suggestion for setting this up?
Regards,
JF

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

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


Re: access log question

2004-12-13 Thread Trond G. Ziarkowski
Running linux?
webalizer $CATALINA_HOME/logs/acces_log.`date +%F`.txt
should do the trick
Trond

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


Re: Do not allow browsing the root directory to tomcat

2004-12-13 Thread inr
Hi,

You can set the Directory listing to false in Web.xml file in order
to avoid displaying Directory contents.
Use the Param-name element  to

servlet
servlet-namedefault/servlet-name

servlet-classorg.apache.catalina.servlets.DefaultServlet/servlet-class
init-param
param-namedebug/param-name
param-value0/param-value
/init-param
init-param
param-namelistings/param-name
param-valueFalse/param-value  // Make it
true for listing Directory file and Sub Dirctories
/init-param
load-on-startup1/load-on-startup
/servlet


And  set Your Home page the deafult Access in Welcome List in web.xml

For Welcome list

welcome-file-list
 welcome-fileYourHomePage.html/welcome-file
welcome-fileindex.html/welcome-file
welcome-fileindex.htm/welcome-file
welcome-fileindex.jsp/welcome-file
/welcome-file-list

bye,
inr




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



Please help me

2004-12-13 Thread Rajesh
Hai all,
i have a doubt please help me.
in my tomcat server, am developing a online shopping site.
the site is live,
i periodically upload updated pages, when uploading i donot want to down 
the server,

i use a way that creating 2 webapps, one will run, i upload the updated 
pages to webapp 2 afteruploading i go to webapp1 and point it to webapp2 
when i need to upload second time ill upload to webapp 1 and i will make 
point from webapp2 to webapp 1 .

is there any way to do this affectively ??
Please reply
Rajesh
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: access log question

2004-12-13 Thread Guy Katz

hi;
so combined is just more information? so i guess webalizer knows how to deal
with that format also right?
also, can you please ellaborate on 'Use the copy or move command to a name
webalizer likes.'
what i currently have is seperate accesslog files created by tomcat each
day. i want webalizer to generate data for all files. i dont know if
webalizer get multiple files so i feagured that tomcat might have the option
to accumulate one file instead of creating a file per day.
what should i do in order to get this behaviour?
thanks.

-Original Message-
From: Tim Funk [mailto:[EMAIL PROTECTED]
Sent: Monday, December 13, 2004 12:45 AM
To: Tomcat Users List
Subject: Re: access log question


Combined has the referer.

Use the copy or move command to a name webalizer likes.

-Tim

Guy Katz wrote:
 hello;
 i have the line below in my server.xml
 
 Valve className=org.apache.catalina.valves.AccessLogValve
 directory=logs
  prefix=access_log. suffix=.txt pattern=common/
 
 what is the difference between the 'common' and 'combined' values?
 
 also,  the files the serer creates are access_log.2004-12-11.txt
 
 because i am using webalizer to view stats(and know how to point it to a
 single file), i want the server to accumulate all data to the same access
 log file. or something better than a file per day/
 how can i achieve this?
 

-
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: Please help me

2004-12-13 Thread VTR Ravi Kumar
I dont think u would have to shut down the server to upload files.
The context must be reloadable ie., set the reloadable = true in the context 
using the
admin page

VTR
BHEL haridwar
- Original Message - 
From: Rajesh [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, December 13, 2004 2:25 PM
Subject: Please help me


Hai all,
i have a doubt please help me.
in my tomcat server, am developing a online shopping site.
the site is live,
i periodically upload updated pages, when uploading i donot want to down 
the server,

i use a way that creating 2 webapps, one will run, i upload the updated 
pages to webapp 2 afteruploading i go to webapp1 and point it to webapp2 
when i need to upload second time ill upload to webapp 1 and i will make 
point from webapp2 to webapp 1 .

is there any way to do this affectively ??
Please reply
Rajesh
-
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: Please help me

2004-12-13 Thread Rajesh
i tryed but sometimes it gives error when i restart(restarting webapp) 
it works good

or is it possible to display a page for any request to the server or a 
perticular webapp that

site is under maintanance please visit in few minutes
is it possible?
Rajesh
VTR Ravi Kumar wrote:
I dont think u would have to shut down the server to upload files.
The context must be reloadable ie., set the reloadable = true in the 
context using the
admin page

VTR
BHEL haridwar
- Original Message - From: Rajesh [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, December 13, 2004 2:25 PM
Subject: Please help me

Hai all,
i have a doubt please help me.
in my tomcat server, am developing a online shopping site.
the site is live,
i periodically upload updated pages, when uploading i donot want to 
down the server,

i use a way that creating 2 webapps, one will run, i upload the 
updated pages to webapp 2 afteruploading i go to webapp1 and point it 
to webapp2 when i need to upload second time ill upload to webapp 1 
and i will make point from webapp2 to webapp 1 .

is there any way to do this affectively ??
Please reply
Rajesh
-
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: StandardWrapperValve[jsp]: Servlet.service()

2004-12-13 Thread Tim Funk
Look at MyLogin.jsp since its throwing the exception.
 - Root Cause -
javax.servlet.ServletException
at
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:536)
at org.apache.jsp.MyLogin_jsp._jspService(MyLogin_jsp.java:141)
-Tim
[EMAIL PROTECTED] wrote:
Hi , 

I tired of seeing  following error ..  can anyone  guide me  waht could be 
the problem ,

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


TC4.1.30: AccessLogValve

2004-12-13 Thread Lemke, Michael IZ/HZA-IOR
Hi,
 
I've got TC 4.1.30 running.  How can make the AccessLogValve report
the bytes *received* for PUT/POST requests?  Or is there another way to
log
it?
 
Thanks,
Michael


Re: TC4.1.30: AccessLogValve

2004-12-13 Thread Tim Funk
%{Content-Length}i
-Tim
Lemke, Michael IZ/HZA-IOR wrote:
Hi,
 
I've got TC 4.1.30 running.  How can make the AccessLogValve report
the bytes *received* for PUT/POST requests?  Or is there another way to
log
it?
 
Thanks,
Michael

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


problem starting tomcat 5.5 /jdk1.3.1_11

2004-12-13 Thread birendar . waldiya

I just installed tomcat5.5  i am getting following error,

 Im using  jdk1.3.1_11

 can any body  help me 
thanks rgds 


Exception in thread main java.lang.UnsupportedClassVersionError: 
org/apache/catalina/startup/Bootstrap (Unsupport
ed major.minor version 48.0)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:488)
at 
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:106)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:243)
at java.net.URLClassLoader.access$100(URLClassLoader.java:51)
at java.net.URLClassLoader$1.run(URLClassLoader.java:190)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:183)
at java.lang.ClassLoader.loadClass(ClassLoader.java:294)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:288)
at java.lang.ClassLoader.loadClass(ClassLoader.java:250)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:310)

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

DISCLAIMER: The information contained in this e-mail message and/or attachments 
to it may contain confidential or privileged information.   If you are not the 
intended recipient, any dissemination, use, review, distribution, printing or 
copying of the information contained in this e-mail message and/or attachments 
to it are strictly prohibited and any violation thereof would possibly attract 
penal action.   If you have received this communication in error, please notify 
us by reply e-mail or telephone and immediately and permanently delete the 
message and any attachments. TCS accepts no liability for any damage caused by 
this email or its attachments due to viruses, interference, interception, 
corruption or unauthorized access/use.

New Babie query - pls pls help me

2004-12-13 Thread Manisha Sathe
Hi,

I am totally totally new to Servlet/Tomcat. I wrote a very simple
HelloWorld servlet. I could compile it and could create the
HelloWorld.class file.

But how to test it thr Tomat web server ? I put the class inside servlet
example dir
C:\jakarta-tomcat-5.0.28\webapps\servlets-examples\WEB-INF\classes
But whe tried to run it like
http://localhost:8080/servlets-examples/servlet/HelloWorld

always i get  description The requested resource
(/servlets-examples/servlet/HelloWorld) is not available.

I tried to start-stop/reload the tomcat servlet-example but still the same,
i understand i need to change some files - but can any body tell stepwise
instructions ?   Pls pls help me I am stuck


Thanks in advance
Manisha


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



RE: problem starting tomcat 5.5 /jdk1.3.1_11

2004-12-13 Thread Peter Crowther
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
 I just installed tomcat5.5  i am getting following error,
[...]
  Im using  jdk1.3.1_11

Tomcat 5.5 requires *at least* JDK1.4.2, and even that needs some extra
configuration to make it work.  Upgrade your JDK or use an older version
of Tomcat, depending on your organisational needs.

- Peter

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



Re: New Babie query - pls pls help me

2004-12-13 Thread Antony Paul
You need to create a mapping in web.xml to invoke the servlet. Look at
the elements
servlet and servlet-mapping  elements in the
example/WEB-INF/web.xml. Create a similar one and restart Tomcat.

rgds
Antony Paul





On Mon, 13 Dec 2004 21:09:07 +0800, Manisha Sathe
[EMAIL PROTECTED] wrote:
 Hi,
 
 I am totally totally new to Servlet/Tomcat. I wrote a very simple
 HelloWorld servlet. I could compile it and could create the
 HelloWorld.class file.
 
 But how to test it thr Tomat web server ? I put the class inside servlet
 example dir
 C:\jakarta-tomcat-5.0.28\webapps\servlets-examples\WEB-INF\classes
 But whe tried to run it like
 http://localhost:8080/servlets-examples/servlet/HelloWorld
 
 always i get  description The requested resource
 (/servlets-examples/servlet/HelloWorld) is not available.
 
 I tried to start-stop/reload the tomcat servlet-example but still the same,
 i understand i need to change some files - but can any body tell stepwise
 instructions ?   Pls pls help me I am stuck
 
 Thanks in advance
 Manisha
 
 -
 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: New Babie query - pls pls help me

2004-12-13 Thread Ben Souther
Welcome aboard.

The first thing you should do is find yourself a good book or tutorial.
There is a good one here:
http://jakarta.apache.org/tomcat/tomcat-5.5-doc/appdev/index.html

If you just want a simple servlet example that you can drop into 
a running instance of Tomcat and run you can find one here:
http://simple.souther.us

Good Luck
-Ben






On Mon, 2004-12-13 at 08:09, Manisha Sathe wrote:
 Hi,
 
 I am totally totally new to Servlet/Tomcat. I wrote a very simple
 HelloWorld servlet. I could compile it and could create the
 HelloWorld.class file.
 
 But how to test it thr Tomat web server ? I put the class inside servlet
 example dir
 C:\jakarta-tomcat-5.0.28\webapps\servlets-examples\WEB-INF\classes
 But whe tried to run it like
 http://localhost:8080/servlets-examples/servlet/HelloWorld
 
 always i get  description The requested resource
 (/servlets-examples/servlet/HelloWorld) is not available.
 
 I tried to start-stop/reload the tomcat servlet-example but still the same,
 i understand i need to change some files - but can any body tell stepwise
 instructions ?   Pls pls help me I am stuck
 
 
 Thanks in advance
 Manisha
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


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



Re: Tomcat as standalone

2004-12-13 Thread Jon Doe
Putting Apache on an Internet-visible network, and having this route its 
traffic to Tomcat on a local network on your website (eg a 10, 172 or 
192.168 address) can improve your security no end. There is no direct way to 
your Tomcat server. As long as you have tightend your code for SQL and HTML 
scams, you will have a very safe environment. Of course this means a second 
server and so more cost, but if you want a Rolls-Royce solution...

:-)
Joe.

From: Ben Souther [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Subject: Re: Tomcat as standalone
Date: Mon, 13 Dec 2004 00:54:52 -0500
Since 90% of your app is dynamic, there is a good chance that
Tomcat as a standalone may actually be more efficient. The work
the webserver and connector has to do to pass the requests/responses
back and forth to tomcat is all in addition to what Tomcat would have to
do anyway.
I would recommend giving Tomcat as a standalone a shot.
If you feel you need more performance, look into your options.
Putting a webserver in front of Tomcat is one of them.  Load balancing,
heavier hardware, clustering, are some others.
Remember, Tomcat, The Apache Web Server, and the connectors needed to
join the two don't have the same release cycles.  Besides performance,
you also want to consider maintenance and upkeep costs.
If you want to be real thorough, set up both scenarios and compare them
under load. Set up SSL under both scenerios. Also compare the effort to
get them up and running.  Then also take a look at the open bug list for
Tomcat to see how many issues are related to connectors.  Look at the
release cycles for tomcat, apache, and the connectors. Then look at how
much time you have budgeted for maintaining each setup.
Without looking at your app, hardware and business plan, nobody can tell
you for certain which way to go.
One thing to be aware of. There is a lot of outdated information on the
web claiming that Tomcat as a standalone is not ready for production.
If you come across one of these sites, make sure you know either when it
was written or what version of Tomcat they're talking about. Both Tomcat
and the JVMs needed to run it have made great strides in recent years.
What was accurate at the time it was written may be very inaccurate now.


On Sun, 2004-12-12 at 23:33, Dola Woolfe wrote:
 It 90% of my website is dynamic, is it a good idea to
 skip the apache server altogether and just run Tomcat
 alone on port 80?
   Seems like a good idea: one few application to worry
 about, no headache with connecting apache and tomcat
 (which I still haven't figured out how to do with 5.x)
 and so forth.

 Please, any opinions.

 Also is 5.5 ready for prime-time?

 Thank you very much in advance.

 Dola



 __
 Do you Yahoo!?
 Take Yahoo! Mail with you! Get it on your mobile phone.
 http://mobile.yahoo.com/maildemo

 -
 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]
_
Express yourself instantly with MSN Messenger! Download today it's FREE! 
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/

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


RE: error-page not working properly

2004-12-13 Thread Shapira, Yoav

Hi,
It works fine for me.  You might be having other errors which are
clouding this problem.

By the way, error pages like this are part of the Spec, and as such
covered both by our internal tests and the Servlet/JSP TCKs which are
run independently on every Tomcat release.

Yoav Shapira http://www.yoavshapira.com


-Original Message-
From: Chris Cherrett [mailto:[EMAIL PROTECTED]
Sent: Sunday, December 12, 2004 8:23 AM
To: Tomcat Users List
Subject: error-page not working properly

Hello

I have searched this topic on google to find the following to be true:

catching 500 or 404 error does not work in Tomcat 5 like this

error-page
  exception-type500/exception-type
  location/error.jsp/location
  /error-page
error-page
  exception-type404/exception-type
  location/error.jsp/location
  /error-page

Is this true?

This works for 500 but not 404.

error-page
  exception-typejava.lang.Throwable/exception-type
  location/error.jsp/location
  /error-page

Is there a way to catch all exceptions that works in Tomcat 5

Thanks
--
Chris Cherrett
Tracking Solutions International
1-877-TSIWARE
www.tsiware.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: Tomcat as standalone

2004-12-13 Thread Ben Souther
When done right, true.  Apache has a long, proven track record when it
comes to safety.  

But also remember, if you have two servers running, you have to servers
to secure and monitor.  You'll have to keep on top of any new exploits
for Tomcat AND Apache.




On Mon, 2004-12-13 at 08:38, Jon Doe wrote:
 Putting Apache on an Internet-visible network, and having this route its 
 traffic to Tomcat on a local network on your website (eg a 10, 172 or 
 192.168 address) can improve your security no end. There is no direct way to 
 your Tomcat server. As long as you have tightend your code for SQL and HTML 
 scams, you will have a very safe environment. Of course this means a second 
 server and so more cost, but if you want a Rolls-Royce solution...
 
 :-)
 
 Joe.
 
 
 From: Ben Souther [EMAIL PROTECTED]
 Reply-To: [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Subject: Re: Tomcat as standalone
 Date: Mon, 13 Dec 2004 00:54:52 -0500
 
 Since 90% of your app is dynamic, there is a good chance that
 Tomcat as a standalone may actually be more efficient. The work
 the webserver and connector has to do to pass the requests/responses
 back and forth to tomcat is all in addition to what Tomcat would have to
 do anyway.
 
 I would recommend giving Tomcat as a standalone a shot.
 If you feel you need more performance, look into your options.
 Putting a webserver in front of Tomcat is one of them.  Load balancing,
 heavier hardware, clustering, are some others.
 
 Remember, Tomcat, The Apache Web Server, and the connectors needed to
 join the two don't have the same release cycles.  Besides performance,
 you also want to consider maintenance and upkeep costs.
 
 If you want to be real thorough, set up both scenarios and compare them
 under load. Set up SSL under both scenerios. Also compare the effort to
 get them up and running.  Then also take a look at the open bug list for
 Tomcat to see how many issues are related to connectors.  Look at the
 release cycles for tomcat, apache, and the connectors. Then look at how
 much time you have budgeted for maintaining each setup.
 
 Without looking at your app, hardware and business plan, nobody can tell
 you for certain which way to go.
 
 One thing to be aware of. There is a lot of outdated information on the
 web claiming that Tomcat as a standalone is not ready for production.
 If you come across one of these sites, make sure you know either when it
 was written or what version of Tomcat they're talking about. Both Tomcat
 and the JVMs needed to run it have made great strides in recent years.
 What was accurate at the time it was written may be very inaccurate now.
 
 
 
 
 
 On Sun, 2004-12-12 at 23:33, Dola Woolfe wrote:
   It 90% of my website is dynamic, is it a good idea to
   skip the apache server altogether and just run Tomcat
   alone on port 80?
 Seems like a good idea: one few application to worry
   about, no headache with connecting apache and tomcat
   (which I still haven't figured out how to do with 5.x)
   and so forth.
  
   Please, any opinions.
  
   Also is 5.5 ready for prime-time?
  
   Thank you very much in advance.
  
   Dola
  
  
  
   __
   Do you Yahoo!?
   Take Yahoo! Mail with you! Get it on your mobile phone.
   http://mobile.yahoo.com/maildemo
  
   -
   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]
 
 
 _
 Express yourself instantly with MSN Messenger! Download today it's FREE! 
 http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
 
 
 -
 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: JNDI object not shared among TC instances

2004-12-13 Thread Shapira, Yoav

Hi,
Tomcat's JNDI implementation does not support sharing for that matter
even external connections.  (This is in the FAQ by the way).  If you
want to share an object among multiple Tomcat instances via JNDI, you
must use a JNDI provider that supports this.

Yoav Shapira http://www.yoavshapira.com


-Original Message-
From: John Smith [mailto:[EMAIL PROTECTED]
Sent: Sunday, December 12, 2004 1:12 AM
To: Tomcat Users List
Subject: JNDI object not shared among TC instances

Hi,

 as, I understand things, the JNDI can be used to share an object among
different JVMs even from J2SE applications running on different
machines.
Right?

 I need a relatively light object (that is why I am avoiding EJBs
altogether) which would simply:
 1._ poll a backend database at configurable periods, and if some data
has
changed
 2._ update its internal state, which is then
 3._ administered to and updated in a number of independent tomcat
instances

 Well, I did the following exp. and repeated it even compiling TC 5.5.5
from
source in case I had to check it, but before I start diving deeper into
what
I think might be the reason for this anomaly, I want to check that I
don't
have a silly conf problem I haven't seen or there is something I am not
quite understanding here.

 Here is the method to my madness:

 1._ I first downloaded TC's source code, 'built it' with ant, ran and
tested it.
 2._ Then I set up a number (3) of separate instances running from
independent JVMs using the same files as in the original, plain
installation, as describe in 1; by:
 2.1_ setting up three independent directories, ... /tc00/, /tc02/,
and
/tc04/ off the original installation
 2.2_ just copying /conf/ and /bin/ from the original installation and
dumping similar files on each dir described in 2.1
 2.3_ changing then in each of the /conf/server.xml
 2.3.1_ the Server port=8005
 2.3.2_ the non-SSL HTTP/1.1 Connector port=8080
 2.3.3_ the AJP 1.3 Connector port=8009 (- will need it for later
tinkering with Apache)
for all three independent instances, and
 2.4_ making sure that the same absolute directory was used in the
appBase
attribute of the   Host name=localhost . . . context
 2.5_ then, making sure that the same;
 2.5.1_ JAVA_HOME
 2.5.2_ CATALINA_HOME
but different
 2.5.3_ CATALINA_BASE
was set in the respective .../tcXX/bin/catalina.bat files (client wants
me
to 'try' windows 'too'), pointing to the respective .../tcXX
 3._ I then run all three instances and tested every thing was OK and
scan
log files for any errors, warnings, . . .

 Everything seemed to be working just fine!

// - - - - - - - - - - - - - - - - - - - - -

 Then I used the following slimmed down classes from example code
sections
in the jakarta JNDI howto, in order to illustrate my point.

 Both classes were placed in the original installation's
/common/classes/JNDITest/ directory

// - - - - - - - - - - - - - - - - - - - - -
package JNDITest;

public class JNDI00{
 private int bar = 0;
 private long lCreatTime = System.currentTimeMillis();
 private String foo = Default Foo, created at  + lCreatTime + ;
// __
 public String getFoo() { return (this.foo); }
 public void setFoo(String foo) { this.foo = foo; }
// __
 public int getBar() { return (this.bar); }
 public void setBar(int bar) { this.bar = bar; }
// __
 public long getCreatTime() { return (lCreatTime); }
 public void setCreatTime(long l){}
// __
}

// - - - - - - - - - - - - - - - - - - - - -
package JNDITest;

import java.util.*;
import javax.naming.*;
import javax.naming.spi.*;

public class JNDI00Factory implements ObjectFactory {

 public Object getObjectInstance(Object obj, Name name, Context
nameCtx,
Hashtable environment) throws NamingException {

  JNDI00 JNDI_Obj = new JNDI00();

  Reference ref = (Reference) obj;
  Enumeration addrs = ref.getAll();
  while (addrs.hasMoreElements()) {
  RefAddr addr = (RefAddr) addrs.nextElement();
  String aSNm = addr.getType();
  String value = (String) addr.getContent();
  if (aSNm.equals(foo)) {
  JNDI_Obj.setFoo(value);
  } else if (aSNm.equals(bar)) {
  try {
  JNDI_Obj.setBar(Integer.parseInt(value));
  } catch (NumberFormatException e) {
  throw new NamingException(Invalid 'bar' value  +
value);
  }
  }
  }

  return (JNDI_Obj);
  }
}

// - - - - - - - - - - - - - - - - - - - - -
 then included for each TC instance in the GlobalNamingResources
element
of $CATALINA_HOME/conf/server.xml

Resource name=JNDICtxt/JNDI00Factory
  auth=Container
  type=JNDITest.JNDI00
  factory=org.apache.naming.factory.BeanFactory
  bar=23/


// - - - - - - - - - - - - - - - - - - - - -
 in $CATALINA_HOME/conf/ Catalina/localhost/ROOT.xml

  ResourceLink name=jndiName
global=JNDICtxt/JNDI00Factory
type=JNDITest.JNDI00/


// - - - - - - - - - - - - 

RE: log4j and tomcat 5.5

2004-12-13 Thread Shapira, Yoav

Hi,

-Original Message-
From: Dale, Matt [mailto:[EMAIL PROTECTED]
Sent: Sunday, December 12, 2004 5:22 PM
To: Tomcat Users List
Subject: RE: log4j and tomcat 5.5

 Hopefully I explained things better and piqued your curiosity about
repostiory
 selectors in Log4j-1.3 :-)

You certainly have mine ;)

shamelessPlug

Log4j 1.3 is in an alpha state right now, and its only testers appear to
be its committers.  It'd be useful to have someone who knows what he's
doing, but is not a log4j committer, like you, test it as well.  ;)

/shamelessPlug

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: change conf directory

2004-12-13 Thread Shapira, Yoav

Hi,
It's possible to specify whatever location you want for server.xml, via
the -config command-line switch.  The rest of the files are to be
$CATALINA_HOME/conf.  Depending on your usage of Tomcat, you might not
need any of them, though.

Yoav Shapira http://www.yoavshapira.com


-Original Message-
From: Vikram [mailto:[EMAIL PROTECTED]
Sent: Saturday, December 11, 2004 2:12 AM
To: [EMAIL PROTECTED]
Subject: change conf directory


hi, is it possible to specify a completely different location other
than
$CATALINA_HOME/conf for the directory for tomcat conf files?

thanks,
   Vikram



-
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: TC4.1.30: AccessLogValve

2004-12-13 Thread Lemke, Michael IZ/HZA-IOR
Thanks, that'll probably do it.  But how do I code it in the server.xml
file?  My first experiments aren't liked by tomcat:

Valve className=org.apache.catalina.valves.AccessLogValve
 directory=logs  prefix=AccessLog. suffix=
 rotatable=true
 pattern=%h %l %u %t \%r\ %s %b %{Referer}i
%{User-Agent}i resolveHosts=true/

How do I get the quotes right?

Thanks again,
Michael

 -Original Message-
 From: Tim Funk [mailto:[EMAIL PROTECTED] 
 Sent: Monday, December 13, 2004 1:15 PM
 To: Tomcat Users List
 Subject: Re: TC4.1.30: AccessLogValve
 
 
 %{Content-Length}i
 
 -Tim
 
 Lemke, Michael IZ/HZA-IOR wrote:
 
  Hi,
   
  I've got TC 4.1.30 running.  How can make the AccessLogValve report
  the bytes *received* for PUT/POST requests?  Or is there 
 another way to
  log
  it?
   
  Thanks,
  Michael
  
 
 -
 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: TC4.1.30: AccessLogValve

2004-12-13 Thread Tim Funk
I would try single quotes:
pattern='%h %l %u %t %r %s %b %{Referer}i %{User-Agent}i'
-Tim

Lemke, Michael IZ/HZA-IOR wrote:
Thanks, that'll probably do it.  But how do I code it in the server.xml
file?  My first experiments aren't liked by tomcat:
Valve className=org.apache.catalina.valves.AccessLogValve
 directory=logs  prefix=AccessLog. suffix=
 rotatable=true
 pattern=%h %l %u %t \%r\ %s %b %{Referer}i
%{User-Agent}i resolveHosts=true/
How do I get the quotes right?
Thanks again,
Michael

-Original Message-
From: Tim Funk [mailto:[EMAIL PROTECTED] 
Sent: Monday, December 13, 2004 1:15 PM
To: Tomcat Users List
Subject: Re: TC4.1.30: AccessLogValve

%{Content-Length}i
-Tim
Lemke, Michael IZ/HZA-IOR wrote:

Hi,
I've got TC 4.1.30 running.  How can make the AccessLogValve report
the bytes *received* for PUT/POST requests?  Or is there 
another way to
log
it? 
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Query with 404 error processing -- Tomcat 5.0.19

2004-12-13 Thread Shapira, Yoav

Hi,
Because this processing servlet of yours itself had an error.  A JSP
file by default is processed by Tomcat's JSP servlet, not your Router
servlet.  Accordingly, it's not subject to your custom error handling
mechanism.  A more standard way to do this is declare an error-page
for 404's in your web.xml, and/or an errorPage for the specific JSP page
in the JSP page itself.

Yoav Shapira http://www.yoavshapira.com


-Original Message-
From: Jon Doe [mailto:[EMAIL PROTECTED]
Sent: Sunday, December 12, 2004 7:58 PM
To: [EMAIL PROTECTED]
Subject: Query with 404 error processing -- Tomcat 5.0.19

Can someone please explain why I get the default Tomcat 404 error when
a
pages does not exist?

I have a set of URLs that end with *.ext. These are all routed to a
servlet
called Router, and these all work fine. This servlet has catch-all at
the
end that displays an error message when an unknown *.ext is processed.
That
all works fine.

However, when an unknown *.jsp file is processed I get the default
Tomcat
error:

   HTTP Status 404 - /unknown.jsp
   type Status report
   message /unknown.jsp
   description The requested resource (/unknown.jsp) is not available.
   Apache Tomcat/5.0.19

The error in the generates this output in the log file:

2004-12-13 00:40:10 ApplicationDispatcher[/Server] Servlet.service()
for
servlet default threw exception
java.lang.ClassCastException
   at
org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorF
ilte
r.java:182)
   at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applic
atio
nFilterChain.java:233)
   at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFil
terC
hain.java:204)
...

2004-12-13 00:40:10 [EMAIL PROTECTED]:
Exception Processing ErrorPage[errorCode=404, location=/404.html]
java.lang.ClassCastException
   at
org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorF
ilte
r.java:182)
   at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applic
atio
nFilterChain.java:233)
   at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFil
terC
hain.java:204)
   at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispat
cher
.java:750)
   at
org.apache.catalina.core.ApplicationDispatcher.processRequest(Applicati
onDi
spatcher.java:512)
...

Here is my web.xml file:

?xml version=1.0 encoding=UTF-8?
!DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web
Application
2.3//EN
 http://java.sun.com/dtd/web-app_2_3.dtd;
web-app
display-nameMy server/display-name

servletservlet-nameRouter/servlet-name
servlet-classcom.mycompany.Router/servlet-class
/servlet
servletservlet-nameInitServlet/servlet-name

servlet-classcom.mycompany.InitServlet/servlet-class
load-on-startup2/load-on-startup
/servlet

servlet-mappingservlet-nameInitServlet/servlet-name
url-pattern/InitServlet/url-pattern
/servlet-mapping
!-- All URLs end .ext. These are processed by the front
controller.
--
servlet-mappingservlet-nameRouter/servlet-name
url-pattern*.ext/url-pattern
/servlet-mapping


session-configsession-timeout30/session-timeout/session-config

welcome-file-listwelcome-fileindex.html/welcome-file
/welcome-file-list
error-pageerror-code404/error-code
location/404.html/location
/error-page
/web-app

And my 404.html file:

html
head
/head
body
Error!
/body
/html

Any help will be, as always, greatly appreciated.

Joe.

_
Express yourself instantly with MSN Messenger! Download today it's
FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/


-
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: problem starting tomcat 5.5 /jdk1.3.1_11

2004-12-13 Thread birendar . waldiya

Thanks peter !

Birendar Singh Waldiya




Peter Crowther [EMAIL PROTECTED] 
12/13/2004 06:33 PM

Please respond to
Tomcat Users List [EMAIL PROTECTED]


To
Tomcat Users List [EMAIL PROTECTED]
cc

Subject
RE: problem starting tomcat 5.5   /jdk1.3.1_11






 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
 I just installed tomcat5.5  i am getting following error,
[...]
  Im using  jdk1.3.1_11

Tomcat 5.5 requires *at least* JDK1.4.2, and even that needs some extra
configuration to make it work.  Upgrade your JDK or use an older version
of Tomcat, depending on your organisational needs.

 - Peter

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


ForwardSourceID:NT6932 


DISCLAIMER: The information contained in this e-mail message and/or attachments 
to it may contain confidential or privileged information.   If you are not the 
intended recipient, any dissemination, use, review, distribution, printing or 
copying of the information contained in this e-mail message and/or attachments 
to it are strictly prohibited and any violation thereof would possibly attract 
penal action.   If you have received this communication in error, please notify 
us by reply e-mail or telephone and immediately and permanently delete the 
message and any attachments. TCS accepts no liability for any damage caused by 
this email or its attachments due to viruses, interference, interception, 
corruption or unauthorized access/use.

RE: Strange problem

2004-12-13 Thread Shapira, Yoav

Hi,

 I'm running Tomcat 5.0.30 on FC2 with SUN 1.4.1_02

Try JDK 1.4.2.

2. If I recall correctly, you'll need a copy of
tools.jar in $CATALINA_HOME/common/lib

No.

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: Tomcat 5.5.4 App Deploy Problem.

2004-12-13 Thread Shapira, Yoav

Hi,
The process has changed: put ptcs.xml in
$CATALINA_HOME/conf/Catalina/localhost, not in webapps.

Yoav Shapira http://www.yoavshapira.com


-Original Message-
From: Bob Carpenter [mailto:[EMAIL PROTECTED]
Sent: Monday, December 13, 2004 12:54 AM
To: [EMAIL PROTECTED]
Subject: Tomcat 5.5.4 App Deploy Problem.

I installed Tomcat 5.5.4 on WinXP. I use JVM 1.4.2.

I have an app successfully deployed under Tomcat 4.1.18-LE that I
cannot
get
to deploy under 5.5.4. The app is deployed under 4.1.18 by adding a
file
called ptcs.xml to the webapps folder. The file contents are:

Context path=/ptcs docBase=C:\Program
Files\Plumtree\plumtree5\ptcs\5.0\webapp\ptcs.war/

Adding ptcs.xml to the 5.5.4 webapps folder does not cause it to
deploy. -
should it, or has the process changed?

I read the Tomcat 5.5.4 Manager App HOW-TO doc. In section Install
using
a Context configuration .xml file it states that you can deploy an app
using a Context configuration file .xml file. The syntax provided is:

http://localhost:8080/manager/deploy?config=file:/path/context.xml

Assuming my ptcs.xml is a valid configuration file, I tried deploying
using
all the following:

http://localhost:8080/manager/deploy?config=file:/ptcs.xml
http://localhost:8080/manager/deploy?config=file:ptcs.xml
http://localhost:8080/manager/deploy?config=file:/myapp/ptcs.xml
http://localhost:8080/manager/deploy?config=file:/context.xml   
here I
renamed ptcs.xml
http://localhost:8080/manager/deploy?config=file:/myapp/context.xml

In each case the error was FAIL - Invalid context path null was
specified.

Any idas on how to get this working?

Thanks,

--BobC



-
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: Books on Tomcat

2004-12-13 Thread Dwayne Ghant
Here's a pretty good link.
http://www.javaworld.com/javaworld/jw-03-2003/jw-0328-servlet.html
QM wrote:
On Fri, Dec 10, 2004 at 08:50:00AM -0500, Shapira, Yoav wrote:
: The danger with these books is that Tomcat's development
: pace is faster than the book publishing pace, so any Tomcat-specific
: parts in them are subject to change.  (Stuff that's portable, i.e.
: designed and written to the Servlet Spec, is obviously much safer over
: time).
I agree with Yoav on this one.  Servlet containers' minimum offerings
and behavior are mandated by the servlet spec.  You'd to yourself a
favor to learn the spec and then just use the Tomcat docs to get up and
running.
Dustin Calloway's Inside Servlets is a fine book in this regard,
though it only covers up through spec 2.3.
-QM
 


--
Dwayne A. Ghant
Application Developer
Temple University
215.204.
[EMAIL PROTECTED]

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


Re: TC4.1.30: AccessLogValve

2004-12-13 Thread Tim Funk
No can do with the existing logger.
You can instead use a filter to place the value you desire into the 
ServletRequest. Then you can pull the value from the access log via

%{foo}r  (Or whatever you call the variable).
-Tim
Lemke, Michael IZ/HZA-IOR wrote:
Perfect, that did the trick.
Last question.  How does the conditional logging work?  I tried it 
analogous to the Apache docs as %201{Content-Length}i but that didn't 
work.  The comments in the source aren't to helpful.

What I want is %{Content-Length}i if status code is 201 else %b
Thanks,
Michael

-Original Message-
From: Tim Funk [mailto:[EMAIL PROTECTED] 
Sent: Monday, December 13, 2004 3:04 PM
To: Tomcat Users List
Subject: Re: TC4.1.30: AccessLogValve

I would try single quotes:
pattern='%h %l %u %t %r %s %b %{Referer}i %{User-Agent}i'
-Tim

Lemke, Michael IZ/HZA-IOR wrote:

Thanks, that'll probably do it.  But how do I code it in 
the server.xml
file?  My first experiments aren't liked by tomcat:
Valve className=org.apache.catalina.valves.AccessLogValve
directory=logs  prefix=AccessLog. suffix=
rotatable=true
pattern=%h %l %u %t \%r\ %s %b %{Referer}i
%{User-Agent}i resolveHosts=true/
How do I get the quotes right?
Thanks again,
Michael

-Original Message-
From: Tim Funk [mailto:[EMAIL PROTECTED] 
Sent: Monday, December 13, 2004 1:15 PM
To: Tomcat Users List
Subject: Re: TC4.1.30: AccessLogValve

%{Content-Length}i
-Tim
Lemke, Michael IZ/HZA-IOR wrote:

Hi,
I've got TC 4.1.30 running.  How can make the AccessLogValve report
the bytes *received* for PUT/POST requests?  Or is there 
another way to

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

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

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


RE: TC4.1.30: AccessLogValve

2004-12-13 Thread Lemke, Michael IZ/HZA-IOR
Perfect, that did the trick.

Last question.  How does the conditional logging work?  I tried it 
analogous to the Apache docs as %201{Content-Length}i but that didn't 
work.  The comments in the source aren't to helpful.

What I want is %{Content-Length}i if status code is 201 else %b

Thanks,
Michael

 -Original Message-
 From: Tim Funk [mailto:[EMAIL PROTECTED] 
 Sent: Monday, December 13, 2004 3:04 PM
 To: Tomcat Users List
 Subject: Re: TC4.1.30: AccessLogValve
 
 
 I would try single quotes:
 pattern='%h %l %u %t %r %s %b %{Referer}i %{User-Agent}i'
 
 -Tim
 
 
 
 Lemke, Michael IZ/HZA-IOR wrote:
 
  Thanks, that'll probably do it.  But how do I code it in 
 the server.xml
  file?  My first experiments aren't liked by tomcat:
  
  Valve className=org.apache.catalina.valves.AccessLogValve
   directory=logs  prefix=AccessLog. suffix=
   rotatable=true
   pattern=%h %l %u %t \%r\ %s %b %{Referer}i
  %{User-Agent}i resolveHosts=true/
  
  How do I get the quotes right?
  
  Thanks again,
  Michael
  
  
 -Original Message-
 From: Tim Funk [mailto:[EMAIL PROTECTED] 
 Sent: Monday, December 13, 2004 1:15 PM
 To: Tomcat Users List
 Subject: Re: TC4.1.30: AccessLogValve
 
 
 %{Content-Length}i
 
 -Tim
 
 Lemke, Michael IZ/HZA-IOR wrote:
 
 
 Hi,
  
 I've got TC 4.1.30 running.  How can make the AccessLogValve report
 the bytes *received* for PUT/POST requests?  Or is there 
 
 another way to
 
 log
 it? 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 

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



RE: Problems whith admin application and users management

2004-12-13 Thread Shapira, Yoav

Hola,

configuration in admin webapp: if I click on any
element under Users definition in the tree on the
left pane I got this error message:

Error retrieving attribute users.
[Exception shown at bottom]

It works for me (with the default, out-of-the-box everything) on Tomcat
5.5.6-alpha.  Try this release.

I'm using the minimal server config xml file and sha
for users' password encryption.

This is probably the cause: a misconfiguration somewhere along the way.

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 starting tomcat 5.5 /jdk1.3.1_11

2004-12-13 Thread birendar . waldiya

What else is need to configure tomcat5.5 

where eill i get info about that ??


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



[EMAIL PROTECTED] 
12/13/2004 07:44 PM

Please respond to
Tomcat Users List [EMAIL PROTECTED]


To
Tomcat Users List [EMAIL PROTECTED]
cc

Subject
RE: problem starting tomcat 5.5   /jdk1.3.1_11







Thanks peter !

Birendar Singh Waldiya




Peter Crowther [EMAIL PROTECTED] 
12/13/2004 06:33 PM

Please respond to
Tomcat Users List [EMAIL PROTECTED]


To
Tomcat Users List [EMAIL PROTECTED]
cc

Subject
RE: problem starting tomcat 5.5   /jdk1.3.1_11






 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
 I just installed tomcat5.5  i am getting following error,
[...]
  Im using  jdk1.3.1_11

Tomcat 5.5 requires *at least* JDK1.4.2, and even that needs some extra
configuration to make it work.  Upgrade your JDK or use an older version
of Tomcat, depending on your organisational needs.

 - Peter

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


ForwardSourceID:NT6932 


DISCLAIMER: The information contained in this e-mail message and/or 
attachments to it may contain confidential or privileged information.   If 
you are not the intended recipient, any dissemination, use, review, 
distribution, printing or copying of the information contained in this 
e-mail message and/or attachments to it are strictly prohibited and any 
violation thereof would possibly attract penal action.   If you have 
received this communication in error, please notify us by reply e-mail or 
telephone and immediately and permanently delete the message and any 
attachments. TCS accepts no liability for any damage caused by this email 
or its attachments due to viruses, interference, interception, corruption 
or unauthorized access/use.
ForwardSourceID:NT6986 


DISCLAIMER: The information contained in this e-mail message and/or attachments 
to it may contain confidential or privileged information.   If you are not the 
intended recipient, any dissemination, use, review, distribution, printing or 
copying of the information contained in this e-mail message and/or attachments 
to it are strictly prohibited and any violation thereof would possibly attract 
penal action.   If you have received this communication in error, please notify 
us by reply e-mail or telephone and immediately and permanently delete the 
message and any attachments. TCS accepts no liability for any damage caused by 
this email or its attachments due to viruses, interference, interception, 
corruption or unauthorized access/use.

RE: log4j and tomcat 5.5

2004-12-13 Thread Dale, Matt
Hi,

Shameless plug accepted, is there somewhere I can download it or do I need to 
get it from CVS?

Ta
Matt

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: 13 December 2004 14:02
To: Tomcat Users List
Subject: RE: log4j and tomcat 5.5



Hi,

-Original Message-
From: Dale, Matt [mailto:[EMAIL PROTECTED]
Sent: Sunday, December 12, 2004 5:22 PM
To: Tomcat Users List
Subject: RE: log4j and tomcat 5.5

 Hopefully I explained things better and piqued your curiosity about
repostiory
 selectors in Log4j-1.3 :-)

You certainly have mine ;)

shamelessPlug

Log4j 1.3 is in an alpha state right now, and its only testers appear to
be its committers.  It'd be useful to have someone who knows what he's
doing, but is not a log4j committer, like you, test it as well.  ;)

/shamelessPlug

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]

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]

RE: log4j and tomcat 5.5

2004-12-13 Thread Shapira, Yoav

Hi,

Shameless plug accepted, is there somewhere I can download it or do I
need
to get it from CVS?

The download page: http://logging.apache.org/site/binindex.html.

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: log4j and tomcat 5.5

2004-12-13 Thread Dale, Matt
ignore that, found the binary download.

Ta
Matt

-Original Message-
From: Dale, Matt 
Sent: 13 December 2004 14:37
To: Tomcat Users List
Subject: RE: log4j and tomcat 5.5


Hi,

Shameless plug accepted, is there somewhere I can download it or do I need to 
get it from CVS?

Ta
Matt

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: 13 December 2004 14:02
To: Tomcat Users List
Subject: RE: log4j and tomcat 5.5



Hi,

-Original Message-
From: Dale, Matt [mailto:[EMAIL PROTECTED]
Sent: Sunday, December 12, 2004 5:22 PM
To: Tomcat Users List
Subject: RE: log4j and tomcat 5.5

 Hopefully I explained things better and piqued your curiosity about
repostiory
 selectors in Log4j-1.3 :-)

You certainly have mine ;)

shamelessPlug

Log4j 1.3 is in an alpha state right now, and its only testers appear to
be its committers.  It'd be useful to have someone who knows what he's
doing, but is not a log4j committer, like you, test it as well.  ;)

/shamelessPlug

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]

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]

Re: Problems whith admin application and users management

2004-12-13 Thread fzlists
Hey thanks Hassan!  I was lurking, but this thread caught my eye because I 
recently upgraded Tomcat and for the first time decided to use the admin app, 
and I had this very problem.  Your solution solved it because I did basically 
the same thing, I started with minimal.xml and put in just what I needed for my 
apps, so I didn't have these entries.  Cool!

-- 
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com

On Mon, December 13, 2004 10:13 am, Hassan Schroeder said:
 Shapira, Yoav wrote:
 
I'm using the minimal server config xml file and sha
for users' password encryption.
 
 This is probably the cause: a misconfiguration somewhere along the way.
 
 The minimal caught my eye this morning and I realized that I'd
 also used it as the basis for my server.xml -- it's missing these
 two lines found in the full-figured example server.xml file :-)
 
 Listener
 className=org.apache.catalina.mbeans.ServerLifecycleListener/
 Listener
 className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener/
 
 Add, restart, admin app is now happy...
 
 --
 Hassan Schroeder - [EMAIL PROTECTED]
 Webtuitive Design ===  (+1) 408-938-0567   === http://webtuitive.com
 
dream.  code.
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 

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

RE: 5.0 vs 5.5

2004-12-13 Thread Dale, Matt
Might as well go to 5.5.4 as it is stable and the way forwards.

Management of the 2 is very similar.

Ta
Matt

-Original Message-
From: Dola Woolfe [mailto:[EMAIL PROTECTED]
Sent: 13 December 2004 15:20
To: Tom Cat
Subject: 5.0 vs 5.5


So I decided to upgrade my Tomcat (and go with the
standalone).

Should I go with 5.0 or 5.5? I heard that 5.5 is not
quite stable but I'm worried that I will spend time
learning how to manage 5.0 and then in a couple months
I will have to relearn 5.5; Are there many differences
in management?


As a little more infor, web application runs on the
intranet and has an audience of about 15 people.
There's virtually no volume and I'm sure that my
servlets and jsp pages are quite naive and don't do
anything advanced...

Thanks



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

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]

Re: 5.0 vs 5.5

2004-12-13 Thread Ben Souther
Should I go with 5.0 or 5.5?
I'd go with 5.5.

 Are there many differences
 in management?
Logging has changed, the manager app is no longer shipped as part of the
core install.



On Mon, 2004-12-13 at 10:19, Dola Woolfe wrote:
 So I decided to upgrade my Tomcat (and go with the
 standalone).
 
 Should I go with 5.0 or 5.5? I heard that 5.5 is not
 quite stable but I'm worried that I will spend time
 learning how to manage 5.0 and then in a couple months
 I will have to relearn 5.5; Are there many differences
 in management?
 
 
 As a little more infor, web application runs on the
 intranet and has an audience of about 15 people.
 There's virtually no volume and I'm sure that my
 servlets and jsp pages are quite naive and don't do
 anything advanced...
 
 Thanks
 
 
   
 __ 
 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]



war not deploying

2004-12-13 Thread Cumbers
Hey guys
I am trying to use ant with cactus to deploy my app to Tomcat and then 
test. I can run the ant tasks on the examples, i tested the servlet 
example that comes with the cactus download and it creates its own 
Tomcat instance, puts the cactified war file under the webapps dir and, 
most importantly, it unpacks the war file. cactus then runs the tests.

Currently with my app a temporary instance of Tomcat is created, the 
cactified war file is placed under webapps, but the dam thing is not 
unpacking the war file, and giving me errors like:

java.lang.IllegalArgumentException: Document base 
/tmp/cactus/tomcat5x/webapps/rms-dev does not exist or is not a readable 
directory

Now I know this is not available because the war file is not unpacked. 
Is there a school boy error I am making? Can anyone help?!

Now I know this could be a cactus problem, but it could be a tomcat 
config problem. Please don't flame me!

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


RE: 5.0 vs 5.5

2004-12-13 Thread Shapira, Yoav

Hi,

 Are there many differences
 in management?
Logging has changed, the manager app is no longer shipped as part of
the
core install.

Manager IS still shipped, admin isn't.

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]



What is Broken-out tags?

2004-12-13 Thread Zerol Tib
Howdy,

As the JSP spec 2.4 says, following tags are Broken-out tags, 
Woud someone tell me what does Broken-out  mean?

env-entry, 
ejb-ref, 
ejb-local-ref, 
resource-ref, 
resource-env-ref, 
jsp-config, and their children

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



RE: 5.0 vs 5.5

2004-12-13 Thread birendar . waldiya

Can anyone tell me how can i install
tomcat 5.5 with admin i have downloaded both the sources
but don't know how to integrate the code 
what i did was looked upon the tomcat
4.2.30 and copied the folder in same structure 

can anyone guide me to reference
document for the same ..


thanks 


Birendar Singh Waldiya






Dale, Matt
[EMAIL PROTECTED] 
12/13/2004 08:52 PM




Please respond to
Tomcat Users List [EMAIL PROTECTED]





To
Tomcat Users List
[EMAIL PROTECTED]


cc



Subject
RE: 5.0 vs 5.5








Might as well go to 5.5.4 as it is stable and the
way forwards.

Management of the 2 is very similar.

Ta
Matt

-Original Message-
From: Dola Woolfe [mailto:[EMAIL PROTECTED]
Sent: 13 December 2004 15:20
To: Tom Cat
Subject: 5.0 vs 5.5


So I decided to upgrade my Tomcat (and go with the
standalone).

Should I go with 5.0 or 5.5? I heard that 5.5 is not
quite stable but I'm worried that I will spend time
learning how to manage 5.0 and then in a couple months
I will have to relearn 5.5; Are there many differences
in management?


As a little more infor, web application runs on the
intranet and has an audience of about 15 people.
There's virtually no volume and I'm sure that my
servlets and jsp pages are quite naive and don't do
anything advanced...

Thanks




__ 
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]
ForwardSourceID:NT69C2
 

DISCLAIMER: The information contained in this e-mail message and/or attachments to it may contain confidential or privileged information.   If you are not the intended recipient, any dissemination, use, review, distribution, printing or copying of the information contained in this e-mail message and/or attachments to it are strictly prohibited and any violation thereof would possibly attract penal action.   If you have received this communication in error, please notify us by reply e-mail or telephone and immediately and permanently delete the message and any attachments. TCS accepts no liability for any damage caused by this email or its attachments due to viruses, interference, interception, corruption or unauthorized access/use.
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]

RE: war not deploying

2004-12-13 Thread Phillip Qin
Have you created /tmp/cactus/tomcat5x/webapps/?

-Original Message-
From: Cumbers [mailto:[EMAIL PROTECTED] 
Sent: December 13, 2004 10:38 AM
To: Tomcat Users List
Subject: war not deploying


Hey guys

I am trying to use ant with cactus to deploy my app to Tomcat and then 
test. I can run the ant tasks on the examples, i tested the servlet 
example that comes with the cactus download and it creates its own 
Tomcat instance, puts the cactified war file under the webapps dir and, 
most importantly, it unpacks the war file. cactus then runs the tests.

Currently with my app a temporary instance of Tomcat is created, the 
cactified war file is placed under webapps, but the dam thing is not 
unpacking the war file, and giving me errors like:

java.lang.IllegalArgumentException: Document base 
/tmp/cactus/tomcat5x/webapps/rms-dev does not exist or is not a readable 
directory

Now I know this is not available because the war file is not unpacked. 
Is there a school boy error I am making? Can anyone help?!

Now I know this could be a cactus problem, but it could be a tomcat 
config problem. Please don't flame me!

Cheers

Rich

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


!DSPAM:41bdb698141152608797899!


What does this mean? (Tomcat manager)

2004-12-13 Thread Hollerman Geralyn M
In using the Tomcat manager app with 5.0.16, we got some odd results when our
backend database started acting funny and then crashed; I'm just curious as to
whether the results we saw on the Tomcat manager indicate that there's something
I should be looking at.
Specifically, what I saw was that the Current thread count and Current thread
busy on our http connector both specified NEGATIVE values soon after the
database started having trouble, and on our https connector, the value listed
for both items was 0. There were no errors in the catalina.out that appeared
to be related to this - naturally, our database log had plenty of errors. But
what I want to assure myself is that Tomcat was operating as intended - or does
the display of either of those values have a particular significance to Tomcat?
Thanks!
--
Lynn Hollerman.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Tomcat Administration Application

2004-12-13 Thread Montz, James C. (James Tower)
Bare with me, I usually work with Tomcat 4.5 on Linux. My first stab at
Tomcat 5.5 is on Windows.

Anyway, was looking at the files for the tar.gz release of the admin
tools.

Verify that you do indeed have a conf\Catalina\localhost\admin.xml 
(double check file permissions as well)
This is what re-maps requests for /admin to \server\webapps\admin.


To me, it does not appear to have a  proper context path specified?
Is the context mapping assumed?  Based on the name of the file?

If required? Modify conf\Catalina\localhost\admin.xml with a path, like
so;

Context docBase=${catalina.home}/server/webapps/admin path=/admin 
 privileged=true antiResourceLocking=false
antiJARLocking=false
/Context

This should override the generic page in \webapps\ROOT\admin\


-Original Message-
From: Kelly, Steve [mailto:[EMAIL PROTECTED] 
Sent: Friday, December 10, 2004 2:52 PM
To: Tomcat Users List
Subject: RE: Tomcat Administration Application

James,

I'm on RedHat Linux V9. Everything (tomcat and the admin package) is
installed in the jakarta-tomcat-5.5.4 directory. 

Even if I undeploy the admin application and then deploy it specifying
the $CATALINA_HOME/server/webapps/admin directory I still get the same
same message telling me to download and install the separate admin
application.

There must be something (can anyone tell me what?) pointing /admin to
the web page that displays this message.

Steve.

-Original Message-
From: Montz, James C. (James Tower) [mailto:[EMAIL PROTECTED] 
Sent: 10 December 2004 20:13
To: Tomcat Users List; Tomcat Users List
Subject: RE: Tomcat Administration Application

Did you simply extract the .zip file into your Tomcat 5.5.4 install
directory?

The .zip has a file path of jakarta-tomcat-5.5.4\, but the default
installation directory is Tomcat 5.5\

So if you simply extracted the zip into your install directory, look for
a directory named jakarta-tomcat-5.5.4

Drag  Drop those directory contents to the true tomcat installation
directory.

Perhaps the .zip could be re-packaged and remove the path
jakarta-tomcat-5.5.4 from the archive?
This would allow users to simply unzip admin.zip into their installation
directory.

James

-Original Message-
From: Kelly, Steve [mailto:[EMAIL PROTECTED]
Sent: Friday, December 10, 2004 1:47 PM
To: Tomcat Users List
Subject: RE: Tomcat Administration Application

Wade,

Forgive me but I'm a novice at this stuff. How can I modify the link ?
The context name is 'admin' but when I key in
http://localhost:8080/admin I get the same message telling me to
download and install the separate admin application.

Steve.  

-Original Message-
From: Wade Chandler [mailto:[EMAIL PROTECTED]
Sent: 10 December 2004 17:27
To: Tomcat Users List
Subject: Re: Tomcat Administration Application

Kelly, Steve wrote:
 I've just installed Tomcat 5.5.4. I also downloaded the separate 
 Tomcat Administration application. But when I click the Tomcat 
 Administration button I still get the message saying the web 
 application is no longer installed by default. From the Tomcat manager

 it says that application 'admin' is running. What else do I need to do
to get into it ?
  
 TIA,
  
 Steve.
 

Well, I assume that first page you are talking about is static, so it
has no idea about the management app.  You could probably find and
modify the link, and the other thing is from your manager application
find the context for the admin app and type in
http://yourservername:yourport/contextname

Wade


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



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


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



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


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



Does TC 5.5 have some type of farm deployer?

2004-12-13 Thread Norris Shelton
I ran across this document, but have not been able to find out
any additional information.

http://tomcat.objektpark.org/pdf/Proposal-HostConfig-Deployer.pdf

=

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




__ 
Do you Yahoo!? 
The all-new My Yahoo! - What will yours do?
http://my.yahoo.com 

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



RE: Tomcat JK2 Connector/IIS Slowdown

2004-12-13 Thread Robert Walther
OK, I did not try the test under ssl.  I'll let you know what happens.

Thanks,
Rob 

-Original Message-
From: Peter Lauri [mailto:[EMAIL PROTECTED] 
Sent: Sunday, December 12, 2004 10:29 PM
To: 'Tomcat Users List'
Subject: SV: Tomcat JK2 Connector/IIS Slowdown

Try some buffertstream. On these browser that have this fault can be very 
quick when it comes to HTTPS (https have a different packagestructure).

/Peter

-Ursprungligt meddelande-
Från: Robert Walther [mailto:[EMAIL PROTECTED]
Skickat: den 13 december 2004 11:25
Till: [EMAIL PROTECTED]
Ämne: FW: Tomcat JK2 Connector/IIS Slowdown

 
For those of you who saw my original posting of this issue, you may remember 
that my IIS6/Tomcat 5.028 server was very slow at downloading files from an 
online cart to a Windows 2000, IE6 browser.  But the same IIS6/Tomcat server 
would download files very quickly to all Netscape / Mozilla and Safari 
browsers. Also, I should mention, my Linux/Tomcat server did not have any speed 
issues with downloading files to any of the browsers, including IE6.
 
Well, after collecting and analyzing many network packet captures, it turns out 
the slowness is due to the fact that Microsoft has interpreted an RFC regarding 
how to respond to TCP packets, differently than Netscape / Mozilla and Safari.  
This causes some IE6 browsers to respond very poorly to in some situations,  
So, ultimately it is a client-side / browser issue.  They did give me a 
suggestion on how to fix it on the client side, but they did not know of 
anything that could be done to IIS or Tomcat to speed-up the file downloads.  
Here is their response.
 
start quote
 
CASE_ID_NUM: SRX041018608346

MESSAGE: 

** The message for you follows
 Good Afternoon Rob,

Thank you for using Microsoft Support and Microsoft Internet Products. I am 
confirming the closing of your case concerning the delay we were seeing when 
downloading a 1MB file to some clients. We confirmed this can be corrected by 
adding the TcpAckFrequency registry key described in article 328890 New 
registry entry for controlling the TCP Acknowledgment
(ACK) behavior http://support.microsoft.com/?id=328890
http://support.microsoft.com/?id=328890  . We set TcpAckFrequency to a value 
of 1, rebooted the XP client machine and when we tested again all worked fine. 
If you have Windows 2000 clients that experience the issue, the parameter is 
called TCPDelAckTicks and you can set the value to 0.
For the 2000 platform, please refer to article 311833 The TcpDelAckTicks 
Registry Value Has No Effects on Ack Timeouts
http://support.microsoft.com/?id=311833
http://support.microsoft.com/?id=311833  . There is also a white paper you 
may want to review located at 
http://www.microsoft.com/technet/prodtechnol/windowsserver2003/technolog
ies/networking/tcpip03.mspx#XSLTsection129121120120
http://www.microsoft.com/technet/prodtechnol/windowsserver2003/technolo
gies/networking/tcpip03.mspx  . Lastly, the RFC which discusses the delayed 
ack can be located at http://www.faqs.org/rfcs/rfc1122.html
http://www.faqs.org/rfcs/rfc1122.html  specifically, you may want to review 
section 4.2.3.2. This section states the following which seems to be relevant 
to what we were experiencing:

A TCP SHOULD implement a delayed ACK, but an ACK should not be excessively 
delayed; in particular, the delay MUST be less than 0.5 seconds, and in a 
stream of full-sized segments there SHOULD be an ACK for at least every second 
segment. 

Notice the keyword should which leaves some room for interpretation.
Thanks again for calling Microsoft and have a great week!

end quote

I do not believe that Netscape and Mozilla respond with a delayed ACK when the 
stream of data is not padded to a full-sized segment.  Also, I think that IIS6 
does not pad packets but Apache does.  Thus, because
IIS6 + Tomcat together send out non-full-sized packets, the IE6 browser will 
delay the ACK until multiple partial packets are received.  This delay causes 
the slowness.  IF Apache + Tomcat packets ARE full sized there is no delayed 
ACK.

It was distressing that Microsoft did not indicate a fix on the server side.  I 
was hoping in light of this information, it could be fixed by padding packets 
coming out of Tomcat through the jk connector.

Well, I will continue to research this and any feedback or additional insight 
would be appreciated,  Also, I may be able to coordinate Microsoft to help us 
fix this issue if any one wishes to help me investigate the jk / Tomcat Source 
code.

One thing I did not investigate, are other java methods for downloading files.  
It is possible that other java methods would be faster than the one we used for 
our online cart.

FYI to all,

Rob Walther

Senior System Architect

InterchangeDigital, Inc.



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

Re: Problems whith admin application and users management

2004-12-13 Thread fmancini
Thank you so much. Your're right! Perhaps the minimal
configuration was too much minimal...
Thanks to anyone who has looked for this problem too.

Enjoy your life,

--- Hassan Schroeder [EMAIL PROTECTED] wrote:

 Shapira, Yoav wrote:
 
 I'm using the minimal server config xml file and
 sha
 for users' password encryption.
 
  This is probably the cause: a misconfiguration
 somewhere along the way.
 
 The minimal caught my eye this morning and I
 realized that I'd
 also used it as the basis for my server.xml -- it's
 missing these
 two lines found in the full-figured example
 server.xml file :-)
 
 Listener

className=org.apache.catalina.mbeans.ServerLifecycleListener/
 Listener

className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener/
 
 Add, restart, admin app is now happy...
 
 -- 
 Hassan Schroeder -
 [EMAIL PROTECTED]
 Webtuitive Design ===  (+1) 408-938-0567   ===
 http://webtuitive.com
 
dream.  code.
 
 
 

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


=
[--~~
fmancini
   ~~--]



__ 
Do you Yahoo!? 
Dress up your holiday email, Hollywood style. Learn more. 
http://celebrity.mail.yahoo.com

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



RE: Does TC 5.5 have some type of farm deployer?

2004-12-13 Thread Shapira, Yoav

Hi,
This proposal is from Peter Rossbach, who's since become a Tomcat
committer.  I don't think the proposal was ever formally raised and
discussed: this is the first time I've seen it.  So it's certainly not
been implemented, and highly unlikely to be in a Tomcat release any time
soon, but if he's still working on it then it might eventually make it
into Tomcat.

Yoav Shapira http://www.yoavshapira.com


-Original Message-
From: Norris Shelton [mailto:[EMAIL PROTECTED]
Sent: Monday, December 13, 2004 11:04 AM
To: Tomcat
Subject: Does TC 5.5 have some type of farm deployer?

I ran across this document, but have not been able to find out
any additional information.

http://tomcat.objektpark.org/pdf/Proposal-HostConfig-Deployer.pdf

=

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




__
Do you Yahoo!?
The all-new My Yahoo! - What will yours do?
http://my.yahoo.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]



Manually Populate Request Object Name/Value Parameters?

2004-12-13 Thread Joe Reger, Jr.

The scenario is a timed-out login session:  The user writes a wonderful
something in a web page form.  They finally submit it but I have to redirect
to the login page to collect credentials because the session has timed out.


Question: Is there any way to restore that original request (with the user's
hard work in it) and throw it back at the page the user was trying to hit
after I collect credentials?  

If not then prior to redirecting for login I'd like to store the name/value
pairs from the request in the session, collect login credentials and then
rebuild the request manually by setting the URL and name/value request
parameters?

I'm using a homebrew login scheme.  Would switching to form-based
authentication automatically restore the original request once the user is
logged-in?

Thanks,

Joe 


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



RE: error-page not working properly

2004-12-13 Thread Mike Curwen
As written by you, it's true.

for HTTP error codes, you need error-code, not exception-type

error-page
error-code404/error-code
location/error/404.jsp/location
/error-page

That's a snip from our (working) web.xml in TC5.0.29


 -Original Message-
 From: Chris Cherrett [mailto:[EMAIL PROTECTED] 
 Sent: Sunday, December 12, 2004 7:23 AM
 To: Tomcat Users List
 Subject: error-page not working properly
 
 
 Hello
 
 I have searched this topic on google to find the following to be true:
 
 catching 500 or 404 error does not work in Tomcat 5 like this
 
 error-page
   exception-type500/exception-type
   location/error.jsp/location
   /error-page
 error-page
   exception-type404/exception-type
   location/error.jsp/location
   /error-page
 
 Is this true?
 
 This works for 500 but not 404.
 
 error-page
   exception-typejava.lang.Throwable/exception-type
   location/error.jsp/location
   /error-page
 
 Is there a way to catch all exceptions that works in Tomcat 5
 
 Thanks
 -- 
 Chris Cherrett
 Tracking Solutions International
 1-877-TSIWARE
 www.tsiware.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: war not deploying

2004-12-13 Thread Phillip Qin
Your context.xml is fine. Check your cactus.

-Original Message-
From: Cumbers [mailto:[EMAIL PROTECTED] 
Sent: December 13, 2004 11:10 AM
To: Tomcat Users List
Subject: Re: war not deploying


Here is the error message:

INFO: Processing Context configuration file URL 
file:/tmp/cactus/tomcat5x/conf/C atalina/localhost/rms-dev-cactified.xml
13-Dec-2004 12:15:22 org.apache.catalina.core.StandardContext resourcesStart
SEVERE: Error starting static Resources
java.lang.IllegalArgumentException: Document base 
/tmp/cactus/tomcat5x/webapps/r
ms-dev does not exist or is not a readable directory

and here is the rms-dev-cactified.xml file contents:

?xml version=1.0 encoding=UTF-8?

Context path=/rms-dev
 ResourceLink auth=Container name=jdbc/postgres 
global=jdbc/postgres
 type=javax.sql.DataSource/
/Context

Cheers

Rich

Cumbers wrote:
 Hey
 
 The permissions are fine. I have read somewhere it could be to do with
 my server.xml file.
 
 Cheers
 
 Rich
 
 Phillip Qin wrote:
 
 What about the permission?

 -Original Message-
 From: Cumbers [mailto:[EMAIL PROTECTED] Sent: December 13, 2004 10:57 
 AM
 To: Tomcat Users List
 Subject: Re: war not deploying


 Hey

 Yeah that gets created, and in there is the war file.

 I am unsure how much info to give out, as this could be a cactus
 problem, I am still hacking at it and trawling google searches!

 Cheers

 Rich

 Phillip Qin wrote:

 Have you created /tmp/cactus/tomcat5x/webapps/?

 -Original Message-
 From: Cumbers [mailto:[EMAIL PROTECTED]
 Sent: December 13, 2004 10:38 AM
 To: Tomcat Users List
 Subject: war not deploying


 Hey guys

 I am trying to use ant with cactus to deploy my app to Tomcat and 
 then test. I can run the ant tasks on the examples, i tested the 
 servlet example that comes with the cactus download and it creates 
 its own Tomcat instance, puts the cactified war file under the 
 webapps dir and, most importantly, it unpacks the war file. cactus 
 then runs the tests.

 Currently with my app a temporary instance of Tomcat is created, the 
 cactified war file is placed under webapps, but the dam thing is not 
 unpacking the war file, and giving me errors like:

 java.lang.IllegalArgumentException: Document base 
 /tmp/cactus/tomcat5x/webapps/rms-dev does not exist or is not a 
 readable directory

 Now I know this is not available because the war file is not 
 unpacked. Is there a school boy error I am making? Can anyone help?!

 Now I know this could be a cactus problem, but it could be a tomcat 
 config problem. Please don't flame me!

 Cheers

 Rich

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






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


 

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

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


!DSPAM:41bdc054146881856650834!


Re: New Babie query - pls pls help me

2004-12-13 Thread Jon Wingfield
Argh. Triple hijack!
This thread started as JSP expressions are displayed as string, became 
 Do not allow browsing the root directory to tomcat, then problem 
starting tomcat 5.5/jdk1.3.1_11 and now New Babie query - pls pls help 
me.
For the sake of the archives and those of us using thread-aware mail 
clients, please start a new thread instead of replying to a completely 
unrelated topic.

Ta,
Jon
Antony Paul wrote:
You need to create a mapping in web.xml to invoke the servlet. Look at
the elements
servlet and servlet-mapping  elements in the
example/WEB-INF/web.xml. Create a similar one and restart Tomcat.
rgds
Antony Paul



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


Re: Does TC 5.5 have some type of farm deployer?

2004-12-13 Thread Remy Maucherat
On Mon, 13 Dec 2004 11:09:43 -0500, Shapira, Yoav [EMAIL PROTECTED] wrote:
 
 Hi,
 This proposal is from Peter Rossbach, who's since become a Tomcat
 committer.  I don't think the proposal was ever formally raised and
 discussed: this is the first time I've seen it.  So it's certainly not
 been implemented, and highly unlikely to be in a Tomcat release any time
 soon, but if he's still working on it then it might eventually make it
 into Tomcat.

Peter has added back farm deployment in 5.5.5. It's quite different
from the farm deployer in 5.0.x, so probably we can assume it replaces
whatever the proposal was.

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

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



Re: war not deploying

2004-12-13 Thread Cumbers
Ok found the problem.
With my application deployment I have under the jsp dir a META-INF dir 
that contains a context.xml file. This contains a resource link for my 
JNDI database connection pool. This describes the context as /rms-dev 
this should be /rms-dev-cactified

Removing this file allows cactus to work. But removed my resource link. 
Any suggestions (aside from changing the context path to be 
/rms-dev-cactified)?

Cheers
Rich
Cumbers wrote:
I have also checked that auto deploy and unpack wars are set to true.
What I do not understand is that this works for the sample application, 
this points to something I am doing wrong, so I guess I should start 
from the bottom and work up

Cheers
Rich
Phillip Qin wrote:
What about the permission?
-Original Message-
From: Cumbers [mailto:[EMAIL PROTECTED] Sent: December 13, 2004 10:57 AM
To: Tomcat Users List
Subject: Re: war not deploying
Hey
Yeah that gets created, and in there is the war file.
I am unsure how much info to give out, as this could be a cactus 
problem, I am still hacking at it and trawling google searches!

Cheers
Rich
Phillip Qin wrote:
Have you created /tmp/cactus/tomcat5x/webapps/?
-Original Message-
From: Cumbers [mailto:[EMAIL PROTECTED]
Sent: December 13, 2004 10:38 AM
To: Tomcat Users List
Subject: war not deploying
Hey guys
I am trying to use ant with cactus to deploy my app to Tomcat and then
test. I can run the ant tasks on the examples, i tested the servlet 
example that comes with the cactus download and it creates its own 
Tomcat instance, puts the cactified war file under the webapps dir 
and, most importantly, it unpacks the war file. cactus then runs the 
tests.

Currently with my app a temporary instance of Tomcat is created, the
cactified war file is placed under webapps, but the dam thing is not 
unpacking the war file, and giving me errors like:

java.lang.IllegalArgumentException: Document base
/tmp/cactus/tomcat5x/webapps/rms-dev does not exist or is not a 
readable directory

Now I know this is not available because the war file is not unpacked.
Is there a school boy error I am making? Can anyone help?!
Now I know this could be a cactus problem, but it could be a tomcat
config problem. Please don't flame me!
Cheers
Rich
-
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:41bdbb4f142189169919926!
-
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: Struts application

2004-12-13 Thread Shapira, Yoav

Hi,

succesfully served. Something important: I used J2SE 5.0, since it's a
REQUISITE for running v5.5 (and I haven't been able to find the famous
RUNNING.txt file - or any other document, for what it matters - where
those details for using v5.5 along with Java v1.4 are professedly
explained).

It's in any of the full distributions: jakarta-tomcat-5.5.x.zip or
jakarta-tomcat-5.5.x.tar.gz.  All you need to do in order to run Tomcat
5.5 under JDK 1.4 is extract jakarta-tomcat-5.5.x-compat.zip to the
directory where you installed Tomcat.  All the compat distro contains is
the JMX API and the Xerces implementation.

deployment. However, I thought it would also be a good debugging
practice
to
install a standalone Tomcat v4.1 server and make sure that, at least,
the

That IS good debugging practice.  An even better one would be to try a
more recent version such as Tomcat 5.0.x, rather than 4.1.x which is two
major versions back from 5.5.x.

JBuilderX. Hence, another question: what's the difference between:

jakarta-tomcat-4.1.31-LE-jdk14.exe

and

jakarta-tomcat-4.1.31.exe

The LE distribution does NOT contain files provided by JDK 1.4.  Don't
use it: use the full distributions.

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: Two Tomcat installations on one server in Windows 2K3

2004-12-13 Thread footh
Thanks, I already read that but didn't quite
understand how I could use that information for my
setup.

First off, I want to run Tomcat as a service and that
seems to talk about running multiple instances with
the startup script.

Second, item number 4 more or less says for multiple
instances you can use CATALINA_BASE as an argument
but doesn't really explain CATALINA_BASE.  Is it the
install directory of Tomcat?  Or is it a directory
where I have another set up webapps and context
configuration files.  I can't quite visualize what it
means to use CATALINA_BASE and how to set up the
directories.


--- Tino Schöllhorn [EMAIL PROTECTED]
wrote:

 Hi,
 
 as far as I know you can't run the installer twice.
 To run several 
 identical instances of tomcat you can use the
 information of the 
 follwoing url:
 

http://jakarta.apache.org/tomcat/tomcat-4.1-doc/RUNNING.txt
 
 It helped me a lot.
 
 Tino
 
 
 footh wrote:
  I have a server with several IP addresses and I'd
 like
  to have two separate instances of Tomcat listening
 on
  two of the IP addresses.  I want both of these
  instances to be a  separate service as well.
  
  I already had one Tomcat installation on the
 server
  and I attempted to run the installer again under a
  different directory.  Then I modified the
 service.bat
  file to give the service a different name and I
 tried
  to install this new instance.  However, I received
 an
  error.
  
  Additionally, it seems both installations point to
 the
  same registry configuration entries which has
  directory-specific values (pointing the the
 directory
  of the last installion of Tomcat I performed).
  
  So, I'm thinking I'm not doing this the right way.
  I
  read the RUNNING.txt file and searched the mailing
  list but I can't seem to find information specific
 to
  what I need to do.  Could someone possibly offer a
  suggestion for setting this up?
  
  Regards,
  JF
  
  
  
  
  __ 
  Do you Yahoo!? 
  Yahoo! Mail - 250MB free storage. Do more. Manage
 less. 
  http://info.mail.yahoo.com/mail_250
 
 

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




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

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



webapp's log4j config acting wonky

2004-12-13 Thread Mike Curwen
Hi all,

I've been using log4j for some time and like it quite a bit.  My configs are
probably naieve, but they work for me.  But now, another developer has
pointed something out to me, and yup.. something's busted. I'm posting this
to tomcat-user because I'm thinking it might be a TC/mywebapp conflict of
some kind (though I'm not sure where).
 
Tomcat 5.0.29
log4j 1.2.1 in my webapp's WEB-INF/lib
log4j.properties in my webapp's WEB-INF/classes directory.

I don't have log4j.jar anywhere else and no other log4j.properties files
anywhere, though perhaps I don't know where to look.


In our JSP pages we have loggers declared like so:

%@ page import=org.apache.log4j.Logger %
%! 
Logger logger = Logger.getLogger(pages.abc.page_name);
%
%
logger.debug(foo);
%


pages is common throughout every JSP.  abc would be a folder name (we've
got the webapp organized into folders of related functions), and finally
page_name is the name of the JSP file without extension.



our log4j.properties file is:

#log4j.properties

log4j.rootCategory=DEBUG, filer

log4j.category.com.gb.security=WARN, filer
log4j.additivity.com.gb.security=false

log4j.appender.filer=org.apache.log4j.RollingFileAppender
log4j.appender.filer.layout=org.apache.log4j.PatternLayout
log4j.appender.filer.layout.ConversionPattern=%-5p %c - [%m] %d{ISO8601}%n
log4j.appender.filer.File=/path/to/the/log/file/debug.log
log4j.appender.filer.MaxFileSize=100KB
log4j.appender.filer.MaxBackupIndex=4



As you'll see we've got the root category to DEBUG and we've piped down our
com.gb.security package to WARN.  We've got lots of other classes, both
bundled in WEB-INF/lib jar files and loosely in the WEB-INF/classes  and
they all spill their log4j output. 

But none of our log messages from the JSP pages are coming through.  I've
tried the following config, but it had no effect:

log4j.category.pages=DEBUG, filer
log4j.additivity.pages=false


*If* I configure the following (adding a 'package' below 'pages'):

log4j.category.pages.abc=DEBUG, filer
log4j.additivity.pages.abc=false

Then it will work (but obviously only for pages under 'abc').  Also, if I
remove the additivity, I get two messages. That makes me think there's one
message from the rootCategory, and one from this category.  But when I
remove the category 'pages.abc' entirely, we're back to nothing again.


Any ideas?  Is there a TC log4j or CL file hiding somewhere?



mike curwen
intermediate programmer
globally boundless

204 885-7733  ext 227
www.globallyboundless.com


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



RE: What does this mean? (Tomcat manager)

2004-12-13 Thread Shapira, Yoav

Hi,
The display of those values has no significance to Tomcat itself, so
it's fine.  It has meaning to the server administrators who might see
these values as an indication something else is wrong, and check their
logs, e.g. the database log ;)

Yoav Shapira http://www.yoavshapira.com


-Original Message-
From: Hollerman Geralyn M [mailto:[EMAIL PROTECTED]
Sent: Monday, December 13, 2004 10:50 AM
To: Tomcat Users List
Subject: What does this mean? (Tomcat manager)

In using the Tomcat manager app with 5.0.16, we got some odd results
when
our
backend database started acting funny and then crashed; I'm just
curious as
to
whether the results we saw on the Tomcat manager indicate that there's
something
I should be looking at.

Specifically, what I saw was that the Current thread count and
Current
thread
busy on our http connector both specified NEGATIVE values soon after
the
database started having trouble, and on our https connector, the value
listed
for both items was 0. There were no errors in the catalina.out that
appeared
to be related to this - naturally, our database log had plenty of
errors.
But
what I want to assure myself is that Tomcat was operating as intended -
or
does
the display of either of those values have a particular significance to
Tomcat?

Thanks!

--
Lynn Hollerman.


-
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: war not deploying

2004-12-13 Thread Cumbers
Hey
Yeah that gets created, and in there is the war file.
I am unsure how much info to give out, as this could be a cactus 
problem, I am still hacking at it and trawling google searches!

Cheers
Rich
Phillip Qin wrote:
Have you created /tmp/cactus/tomcat5x/webapps/?
-Original Message-
From: Cumbers [mailto:[EMAIL PROTECTED] 
Sent: December 13, 2004 10:38 AM
To: Tomcat Users List
Subject: war not deploying

Hey guys
I am trying to use ant with cactus to deploy my app to Tomcat and then 
test. I can run the ant tasks on the examples, i tested the servlet 
example that comes with the cactus download and it creates its own 
Tomcat instance, puts the cactified war file under the webapps dir and, 
most importantly, it unpacks the war file. cactus then runs the tests.

Currently with my app a temporary instance of Tomcat is created, the 
cactified war file is placed under webapps, but the dam thing is not 
unpacking the war file, and giving me errors like:

java.lang.IllegalArgumentException: Document base 
/tmp/cactus/tomcat5x/webapps/rms-dev does not exist or is not a readable 
directory

Now I know this is not available because the war file is not unpacked. 
Is there a school boy error I am making? Can anyone help?!

Now I know this could be a cactus problem, but it could be a tomcat 
config problem. Please don't flame me!

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


Tomcat 5.5.4 Ant Task

2004-12-13 Thread Gregg
I recently migrated from Tomcat 5.0.x to 5.5.4.  Everything seems to 
work great except the Ant Tasks.  Deploy works just fine but when I do 
the undeploy task the folder that contains my webapp does not get 
removed.  So when I go to deploy again, it says it can't because the 
context already exists.  With 5.0.x the context was removed completely.  
Does anyone know if this is a bug or if the behavior of the ant tasks 
have changed?  I couldn't find anything specifically about this in the 
changelog.

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


OutOfMemory Errors

2004-12-13 Thread Asim Alp
I'm trying to solve an OOME on our Tomcat.  We profiled our
application using JProfiler and there are no memory leakages on our
end.  Currently, I'm focusing on some system resource problems such as
file descriptors.  Would this be a valid problem on Windows Server
2003?  And if so, how can I change the max number of file descriptors?

One last thing...  What other resources should I investigate for this
sort of OOME?

Thanks,

Asim

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



RE: OutOfMemory Errors

2004-12-13 Thread Peter Crowther
 From: Asim Alp [mailto:[EMAIL PROTECTED] 
 I'm trying to solve an OOME on our Tomcat.

Tomcat version?
JVM version and settings?
Application characteristics?
Other libraries in use (eg JDBC)?

 We profiled our
 application using JProfiler and there are no memory leakages on our
 end.  Currently, I'm focusing on some system resource problems such as
 file descriptors.  Would this be a valid problem on Windows Server
 2003?  And if so, how can I change the max number of file descriptors?

I suspect someone else will give a better Java solution, but I'm a
Windows hack who's a relative latecomer to Java...

You've got 16k to go at by default.  How many are you using, according
to Performance Monitor?  And how many in the JVM running Tomcat?

 One last thing...  What other resources should I investigate for this
 sort of OOME?

http://www.sysinternals.com/ for 'handle' and Process Explorer if you
suspect a resource problem on Windows.

- Peter

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



JK 1.2.7 Problem?

2004-12-13 Thread Allistair Crossley
Hi,

I'm afraid I cannot tell you too much about this. I have no idea why or how I 
am generating these errors. I'm just stepping around my test web site and and 
every now and again this error is dumped into stdout. I think it may be the JK 
1.2.7 beta 2. It's running as an IIS 5 ISAPI filter to Tomcat 5.5.5. No error 
is propogated to the user, it seems to be silent.

SEVERE: Error decoding request 
java.lang.NumberFormatException
 at org.apache.tomcat.util.buf.Ascii.parseInt(Ascii.java:145)
 at org.apache.tomcat.util.buf.ByteChunk.getInt(ByteChunk.java:491)
 at org.apache.tomcat.util.buf.MessageBytes.getInt(MessageBytes.java:645)
 at org.apache.jk.common.HandlerRequest.decodeHeaders(HandlerRequest.java:682)
 at org.apache.jk.common.HandlerRequest.decodeRequest(HandlerRequest.java:504)
 at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:361)
 at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:745)
 at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:675)
 at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:868)
 at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
 at java.lang.Thread.run(Thread.java:595)
Dec 13, 2004 5:21:15 PM org.apache.jk.common.ChannelSocket processConnection
WARNING: processCallbacks status 2

Cheers, Allistair.


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


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



ssi including cgi with query args is broken

2004-12-13 Thread Brian Hill
Using an SSI directive to include a cgi script works under Apache but
fails under Tomcat because the query arguments are not being handled the
same way.  Under Tomcat 5.5.4, the query args are being searched for as
if they were part of the filename. [I made a previous post on this
subject but was then reporting the behavior under Tomcat 4.0.24, which
also fails, but somewhat differently.]
More details are below.  I would be happy to test a patch class (I'd
need directions for where to put the patch class and how to configure
the class loader to find it).  --Brian
In this log/backtrace, you can see that the CGI jar is trying to find
the file:
navTool.pl?REF+GENERAL+WHATIS
This file doesn't exist.  On our systems, navTool.pl exists and is in
WEB-INF/cgi/, and is expecting some query args.  [Note: by the default
configuration, /cgi-bin/ is rewritten as WEB-INF/cgi/ when the cgi jar
actually searches for the script, so both paths appear in the
log/backtrace below.]
Dec 9, 2004 3:46:04 PM org.apache.catalina.core.ApplicationContext log
INFO: cgi: findCGI: path=/Docs/ref_general1.html,
/Library/Tomcat/webapps/PCW/WEB-INF/cgi
Dec 9, 2004 3:46:04 PM org.apache.catalina.core.ApplicationContext log
INFO: cgi: findCGI: currentLoc=/Library/Tomcat/webapps/PCW/WEB-INF/cgi
Dec 9, 2004 3:46:04 PM org.apache.catalina.core.ApplicationContext log
INFO: cgi: findCGI: currentLoc=/Library/Tomcat/webapps/PCW/WEB-INF/cgi
Dec 9, 2004 3:46:04 PM org.apache.catalina.core.ApplicationContext log
INFO: cgi: findCGI:
currentLoc=/Library/Tomcat/webapps/PCW/WEB-INF/cgi/Docs
Dec 9, 2004 3:46:04 PM org.apache.catalina.core.ApplicationContext log
SEVERE: ssi: #include--Couldn't include file:
/cgi-bin/navTool.pl?REF+GENERAL+WHATIS
java.io.IOException: Couldn't find file:
/cgi-bin/navTool.pl?REF+GENERAL+WHATIS
  at
org.apache.catalina.ssi.SSIServletExternalResolver.getFileText(SSIServletExternalResolver.java:391) 

  at
org.apache.catalina.ssi.SSIMediator.getFileText(SSIMediator.java:154)
  at  org.apache.catalina.ssi.SSIInclude.process(SSIInclude.java:40)
  at
org.apache.catalina.ssi.SSIProcessor.process(SSIProcessor.java:145)
  at
org.apache.catalina.ssi.SSIServlet.processSSI(SSIServlet.java:193)
  at
org.apache.catalina.ssi.SSIServlet.requestHandler(SSIServlet.java:170)
  at org.apache.catalina.ssi.SSIServlet.doGet(SSIServlet.java:106)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
  at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237) 

  at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157) 

  at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214) 

  at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) 

  at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) 

  at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) 

  at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) 

  at
org.apache.catalina.valves.RequestDumperValve.invoke(RequestDumperValve.java:150) 

  at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
  at
org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:300)
  at
org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:383)
  at
org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:743)
  at
org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:675) 

  at
org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:866)
  at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) 

  at java.lang.Thread.run(Thread.java:552)
To reproduce this problem, all you need is a web app with a .shtml file
containing the line
!-- #include virtual=/cgi-bin/echoargs.pl?some_args --
and a perl script WEB-INF/cgi/echoargs.pl containing the lines:
#!/usr/bin/perl -w
my $query_args = $ENV{QUERY_STRING};
if (defined($query_args)) {
  print query string isbr\n;
  print $query_argsbr\n;
} else {
  print query string is undefinedbr\n;
}

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


Re: JK 1.2.7 Problem?

2004-12-13 Thread Mladen Turk
Allistair Crossley wrote:
Hi,
I'm afraid I cannot tell you too much about this. I have no idea why or how I 
am generating these errors. I'm just stepping around my test web site and and 
every now and again this error is dumped into stdout. I think it may be the JK 
1.2.7 beta 2. It's running as an IIS 5 ISAPI filter to Tomcat 5.5.5. No error 
is propogated to the user, it seems to be silent.
Hi can you test the newst beta-3.
It might be that you have a socket_timeout property set in your config
that was using milliseconds instead seconds.
The binaries are at:
http://www.apache.org/dist/jakarta/tomcat-connectors/jk/binaries/win32/
Also could you please turn log level to trace and post a log.
Regards,
Mladen.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: OutOfMemory Errors

2004-12-13 Thread Dale, Matt
Perhaps you just arent allocating enough memory for your application and there 
is no leak.

As always i recommend getting a hold of jvmstat from sun and it'll give you 
some visual clues as to what is going on.

-Original Message-
From: Asim Alp [mailto:[EMAIL PROTECTED]
Sent: 13 December 2004 17:47
To: Tomcat Users List
Subject: OutOfMemory Errors


I'm trying to solve an OOME on our Tomcat.  We profiled our
application using JProfiler and there are no memory leakages on our
end.  Currently, I'm focusing on some system resource problems such as
file descriptors.  Would this be a valid problem on Windows Server
2003?  And if so, how can I change the max number of file descriptors?

One last thing...  What other resources should I investigate for this
sort of OOME?

Thanks,

Asim

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

A Resource ObjectFactory as LifecycleListener ?

2004-12-13 Thread Seth Ladd
Hello,
I've setup a ObjectFactory for Tomcat's JNDI and Resource system.  I'd 
like that that ObjectFactory to respond to the Tomcat Server shutting 
down.  It appears that a new ObjectFactory is created for every request 
for the Object, so ObjectFactory itself is not a singleton.  That's OK 
for now.

The Object that is returned by the ObjectFactory is a singleton (in a 
sense) and I'd like that Object to shutdown cleanly when the Server 
shuts down.

One idea I had was to create a Listener that would shut down the 
singleton.  The ObjectFactory would continue to serve the singleton via 
JNDI.  The problem there is I might have to duplicate some class files 
because the Listener will load its classes from server/lib, while the 
ObjectFactory will load its classes from common/lib.

If I could have the Resource or the ObjectFactory participate as a 
LifecycleListener, I think it would work very smoothly.  I looked 
through the code, and it doesn't appear possible.

Thanks,
Seth
--
a href=http://www.picklematrix.net/foaf.rdf;Seth Ladd's FOAF/a
a href=http://www.foaf-project.org/;What is FOAF?/a
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Please help me

2004-12-13 Thread Hari Mailvaganam
You can load balance between the two instances.

cheers,

Hari Mailvaganam


On Mon, 13 Dec 2004 16:29:16 +0530, Rajesh [EMAIL PROTECTED] wrote:
 i tryed but sometimes it gives error when i restart(restarting webapp)
 it works good
 
 or is it possible to display a page for any request to the server or a
 perticular webapp that
 
 site is under maintanance please visit in few minutes
 
 is it possible?
 
 Rajesh
 
 
 
 VTR Ravi Kumar wrote:
 
  I dont think u would have to shut down the server to upload files.
  The context must be reloadable ie., set the reloadable = true in the
  context using the
  admin page
 
 
  VTR
  BHEL haridwar
  - Original Message - From: Rajesh [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Sent: Monday, December 13, 2004 2:25 PM
  Subject: Please help me
 
 
  Hai all,
 
  i have a doubt please help me.
 
  in my tomcat server, am developing a online shopping site.
 
  the site is live,
 
  i periodically upload updated pages, when uploading i donot want to
  down the server,
 
  i use a way that creating 2 webapps, one will run, i upload the
  updated pages to webapp 2 afteruploading i go to webapp1 and point it
  to webapp2 when i need to upload second time ill upload to webapp 1
  and i will make point from webapp2 to webapp 1 .
 
  is there any way to do this affectively ??
 
  Please reply
  Rajesh
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


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



RE: A Resource ObjectFactory as LifecycleListener ?

2004-12-13 Thread Shapira, Yoav

Hi,
Why go through all this?  The point of the JNDI Resources part of the
Servlet Specification is to allow portable interaction with external
resources.  Your approach loses all the portability (it's
Tomcat-specific) without gaining much of anything.  You could do the
same stuff in your webapp, instead relying on a portable notification of
app shutdown (ServletCotnextListener) and managing your own object
creation/destruction.

Yoav Shapira http://www.yoavshapira.com


-Original Message-
From: Seth Ladd [mailto:[EMAIL PROTECTED]
Sent: Monday, December 13, 2004 1:10 PM
To: [EMAIL PROTECTED]
Subject: A Resource ObjectFactory as LifecycleListener ?

Hello,

I've setup a ObjectFactory for Tomcat's JNDI and Resource system.  I'd
like that that ObjectFactory to respond to the Tomcat Server shutting
down.  It appears that a new ObjectFactory is created for every request
for the Object, so ObjectFactory itself is not a singleton.  That's OK
for now.

The Object that is returned by the ObjectFactory is a singleton (in a
sense) and I'd like that Object to shutdown cleanly when the Server
shuts down.

One idea I had was to create a Listener that would shut down the
singleton.  The ObjectFactory would continue to serve the singleton via
JNDI.  The problem there is I might have to duplicate some class files
because the Listener will load its classes from server/lib, while the
ObjectFactory will load its classes from common/lib.

If I could have the Resource or the ObjectFactory participate as a
LifecycleListener, I think it would work very smoothly.  I looked
through the code, and it doesn't appear possible.

Thanks,
Seth

--
a href=http://www.picklematrix.net/foaf.rdf;Seth Ladd's FOAF/a
a href=http://www.foaf-project.org/;What is FOAF?/a

-
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 Administration Application

2004-12-13 Thread Kelly, Steve
James,

Thanks for that. That's done the trick. Dunno why there was not a valid
admin.xml file as there is on the Windows install.

However, I still have a problem. I'd expect to see a tree a bit like
this when I get into the admin application:
Tomcat Server
Service (Catalina)
Host (localhost)
Context (/)
Context (/admin)
Context (/manager) 
Etc

But I just see as far down as Service(Catalina).

Any clues.

TIA

Steve. 

-Original Message-
From: Montz, James C. (James Tower) [mailto:[EMAIL PROTECTED] 
Sent: 13 December 2004 15:54
To: Tomcat Users List
Subject: RE: Tomcat Administration Application

Bare with me, I usually work with Tomcat 4.5 on Linux. My first stab at
Tomcat 5.5 is on Windows.

Anyway, was looking at the files for the tar.gz release of the admin
tools.

Verify that you do indeed have a conf\Catalina\localhost\admin.xml
(double check file permissions as well) This is what re-maps requests
for /admin to \server\webapps\admin.


To me, it does not appear to have a  proper context path specified?
Is the context mapping assumed?  Based on the name of the file?

If required? Modify conf\Catalina\localhost\admin.xml with a path, like
so;

Context docBase=${catalina.home}/server/webapps/admin path=/admin 
 privileged=true antiResourceLocking=false
antiJARLocking=false
/Context

This should override the generic page in \webapps\ROOT\admin\


-Original Message-
From: Kelly, Steve [mailto:[EMAIL PROTECTED] 
Sent: Friday, December 10, 2004 2:52 PM
To: Tomcat Users List
Subject: RE: Tomcat Administration Application

James,

I'm on RedHat Linux V9. Everything (tomcat and the admin package) is
installed in the jakarta-tomcat-5.5.4 directory. 

Even if I undeploy the admin application and then deploy it specifying
the $CATALINA_HOME/server/webapps/admin directory I still get the same
same message telling me to download and install the separate admin
application.

There must be something (can anyone tell me what?) pointing /admin to
the web page that displays this message.

Steve.

-Original Message-
From: Montz, James C. (James Tower) [mailto:[EMAIL PROTECTED] 
Sent: 10 December 2004 20:13
To: Tomcat Users List; Tomcat Users List
Subject: RE: Tomcat Administration Application

Did you simply extract the .zip file into your Tomcat 5.5.4 install
directory?

The .zip has a file path of jakarta-tomcat-5.5.4\, but the default
installation directory is Tomcat 5.5\

So if you simply extracted the zip into your install directory, look for
a directory named jakarta-tomcat-5.5.4

Drag  Drop those directory contents to the true tomcat installation
directory.

Perhaps the .zip could be re-packaged and remove the path
jakarta-tomcat-5.5.4 from the archive?
This would allow users to simply unzip admin.zip into their installation
directory.

James

-Original Message-
From: Kelly, Steve [mailto:[EMAIL PROTECTED]
Sent: Friday, December 10, 2004 1:47 PM
To: Tomcat Users List
Subject: RE: Tomcat Administration Application

Wade,

Forgive me but I'm a novice at this stuff. How can I modify the link ?
The context name is 'admin' but when I key in
http://localhost:8080/admin I get the same message telling me to
download and install the separate admin application.

Steve.  

-Original Message-
From: Wade Chandler [mailto:[EMAIL PROTECTED]
Sent: 10 December 2004 17:27
To: Tomcat Users List
Subject: Re: Tomcat Administration Application

Kelly, Steve wrote:
 I've just installed Tomcat 5.5.4. I also downloaded the separate 
 Tomcat Administration application. But when I click the Tomcat 
 Administration button I still get the message saying the web 
 application is no longer installed by default. From the Tomcat manager

 it says that application 'admin' is running. What else do I need to do
to get into it ?
  
 TIA,
  
 Steve.
 

Well, I assume that first page you are talking about is static, so it
has no idea about the management app.  You could probably find and
modify the link, and the other thing is from your manager application
find the context for the admin app and type in
http://yourservername:yourport/contextname

Wade


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



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


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



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


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

Re: Tomcat 5.5.4 Ant Task

2004-12-13 Thread Remy Maucherat
On Mon, 13 Dec 2004 11:34:08 -0600, Gregg [EMAIL PROTECTED] wrote:
 I recently migrated from Tomcat 5.0.x to 5.5.4.  Everything seems to
 work great except the Ant Tasks.  Deploy works just fine but when I do
 the undeploy task the folder that contains my webapp does not get
 removed.  So when I go to deploy again, it says it can't because the
 context already exists.  With 5.0.x the context was removed completely.
 Does anyone know if this is a bug or if the behavior of the ant tasks
 have changed?  I couldn't find anything specifically about this in the
 changelog.

There's a FAQ entry on this:
http://jakarta.apache.org/tomcat/faq/windows.html#lock

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

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



Re: A Resource ObjectFactory as LifecycleListener ?

2004-12-13 Thread Seth Ladd
Shapira, Yoav wrote:
Hi,
Why go through all this?  The point of the JNDI Resources part of the
Servlet Specification is to allow portable interaction with external
resources.  Your approach loses all the portability (it's
Tomcat-specific) without gaining much of anything.  You could do the
same stuff in your webapp, instead relying on a portable notification of
app shutdown (ServletCotnextListener) and managing your own object
creation/destruction.
Good question.  Because we have a few services we'd like shared between 
all webapps.  While you are correct that getting the service into JNDI 
is Tomcat specific (which is why I'm pulling for a writable JNDI context 
:), getting the service out from JNDI is standard.

So while we could put all the classes into common/lib and use a 
singleton pattern, I wouldn't have a way to cleanly shut down the 
service on app server shutdown (I could be wrong here).

Seth
--
a href=http://www.picklematrix.net/foaf.rdf;Seth Ladd's FOAF/a
a href=http://www.foaf-project.org/;What is FOAF?/a
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: JK 1.2.7 Problem?

2004-12-13 Thread Allistair Crossley
Will do. I am off now so it will be tomorrow before I can post anything.

Cheers, Allistair,

 -Original Message-
 From: Mladen Turk [mailto:[EMAIL PROTECTED]
 Sent: 13 December 2004 18:02
 To: Tomcat Users List
 Subject: Re: JK 1.2.7 Problem?
 
 
 Allistair Crossley wrote:
  Hi,
  
  I'm afraid I cannot tell you too much about this. I have no 
 idea why or how I am generating these errors. I'm just 
 stepping around my test web site and and every now and again 
 this error is dumped into stdout. I think it may be the JK 
 1.2.7 beta 2. It's running as an IIS 5 ISAPI filter to Tomcat 
 5.5.5. No error is propogated to the user, it seems to be silent.
  
 
 Hi can you test the newst beta-3.
 It might be that you have a socket_timeout property set in your config
 that was using milliseconds instead seconds.
 
 The binaries are at:
 http://www.apache.org/dist/jakarta/tomcat-connectors/jk/binari
es/win32/

Also could you please turn log level to trace and post a log.

Regards,
Mladen.


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



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


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



RE: A Resource ObjectFactory as LifecycleListener ?

2004-12-13 Thread Shapira, Yoav

Hi,

So while we could put all the classes into common/lib and use a
singleton pattern, I wouldn't have a way to cleanly shut down the
service on app server shutdown (I could be wrong here).

You could use a JVM shutdown hook.  At least that's portable and not
Tomcat-specific.

Another alternative would be to externalize the service itself onto a
separate server, so you don't need to worry about shutting it down at
all ;)

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: A Resource ObjectFactory as LifecycleListener ?

2004-12-13 Thread Seth Ladd
Shapira, Yoav wrote:
Hi,

So while we could put all the classes into common/lib and use a
singleton pattern, I wouldn't have a way to cleanly shut down the
service on app server shutdown (I could be wrong here).

You could use a JVM shutdown hook.  At least that's portable and not
Tomcat-specific.
Another alternative would be to externalize the service itself onto a
separate server, so you don't need to worry about shutting it down at
all ;)
Well, that's kind of what we do now.  We expose the service via Hessian, 
so that all webapps can access it (and avoid classloading issues of 
implementation classes).  I was hoping to avoid the overhead and expose 
as regular classes via JNDI.

Seth
--
a href=http://www.picklematrix.net/foaf.rdf;Seth Ladd's FOAF/a
a href=http://www.foaf-project.org/;What is FOAF?/a
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: OutOfMemory Errors

2004-12-13 Thread George Sexton
You probably have a resource leak in your application.

You might want to run FindBugs on it:

http://findbugs.sourceforge.net/

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

 -Original Message-
 From: Asim Alp [mailto:[EMAIL PROTECTED] 
 Sent: Monday, December 13, 2004 11:32 AM
 To: Tomcat Users List
 Subject: Re: OutOfMemory Errors
 
 Hello Peter,
 
 Sorry.  My system config is:
 
 Windows Server 2003
 Apache 2.0.49 (Win32) mod_ssl/2.0.51 OpenSSL/0.9.7d DAV/2 mod_jk/1.2.6
 Tomcat 5.5.4
 sun jdk 1.5.0-b64
 
 We have a 2 node tomcat cluster each running with the -Xms128m
 -Xmx1024m options.
 
 We have a heavily loaded JDBC application running and our MySQL server
 has enough max_connections to handle our load.  For now, we have
 Apache, one of the Tomcats and MySQL running on the same machine (2 x
 3.8 Ghz Intel with 2GB of Ram).  We're also using this server as a
 file server with RAID 5.
 
 From Task Managers performance monitor, I'm looking at the Handles (I
 hope I'm looking at the correct thing).  Total number of handles is
 around 30400 (almost two times 16K).  Apache is usually using about
 3000, Tomcat 5000, MySQL 9000, System 2600, svchost 1000.
 
 Do these values look normal?
 
 Asim
 
 On Mon, 13 Dec 2004 17:53:35 -, Peter Crowther
 [EMAIL PROTECTED] wrote:
   From: Asim Alp [mailto:[EMAIL PROTECTED]
   I'm trying to solve an OOME on our Tomcat.
  
  Tomcat version?
  JVM version and settings?
  Application characteristics?
  Other libraries in use (eg JDBC)?
  
   We profiled our
   application using JProfiler and there are no memory 
 leakages on our
   end.  Currently, I'm focusing on some system resource 
 problems such as
   file descriptors.  Would this be a valid problem on Windows Server
   2003?  And if so, how can I change the max number of file 
 descriptors?
  
  I suspect someone else will give a better Java solution, but I'm a
  Windows hack who's a relative latecomer to Java...
  
  You've got 16k to go at by default.  How many are you 
 using, according
  to Performance Monitor?  And how many in the JVM running Tomcat?
  
   One last thing...  What other resources should I 
 investigate for this
   sort of OOME?
  
  http://www.sysinternals.com/ for 'handle' and Process 
 Explorer if you
  suspect a resource problem on Windows.
  
  - Peter
  
  
 -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


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



Re: webapp's log4j config acting wonky

2004-12-13 Thread Jacob Kjome
Quoting Mike Curwen [EMAIL PROTECTED]:

 Hi all,

 I've been using log4j for some time and like it quite a bit.  My configs are
 probably naieve, but they work for me.  But now, another developer has
 pointed something out to me, and yup.. something's busted. I'm posting this
 to tomcat-user because I'm thinking it might be a TC/mywebapp conflict of
 some kind (though I'm not sure where).

 Tomcat 5.0.29
 log4j 1.2.1 in my webapp's WEB-INF/lib

You should upgrade.  You very well may be running into bugs in early versions of
1.2.x.  Upgrade to 1.2.9, the current release and test again.

 log4j.properties in my webapp's WEB-INF/classes directory.

 I don't have log4j.jar anywhere else and no other log4j.properties files
 anywhere, though perhaps I don't know where to look.


One way to check is to remove log4j.properties from WEB-INF/classes and see if
autoconfiguration happens.  You would know this by seeing messages from Log4j
saying something like there are no appenders configured for this logger.  If
you don't see messages like that, then Log4j is finding a config file somewhere
else.  Log4j looks in the default package (no package) for config files.  If a
config file were in a jar file, it would be in the root of the jar file.


 In our JSP pages we have loggers declared like so:

 %@ page import=org.apache.log4j.Logger %
 %!
 Logger logger = Logger.getLogger(pages.abc.page_name);
 %
 %
 logger.debug(foo);
 %


 pages is common throughout every JSP.  abc would be a folder name (we've
 got the webapp organized into folders of related functions), and finally
 page_name is the name of the JSP file without extension.



 our log4j.properties file is:

 #log4j.properties

 log4j.rootCategory=DEBUG, filer

 log4j.category.com.gb.security=WARN, filer
 log4j.additivity.com.gb.security=false

 log4j.appender.filer=org.apache.log4j.RollingFileAppender
 log4j.appender.filer.layout=org.apache.log4j.PatternLayout
 log4j.appender.filer.layout.ConversionPattern=%-5p %c - [%m] %d{ISO8601}%n
 log4j.appender.filer.File=/path/to/the/log/file/debug.log
 log4j.appender.filer.MaxFileSize=100KB
 log4j.appender.filer.MaxBackupIndex=4



 As you'll see we've got the root category to DEBUG and we've piped down our
 com.gb.security package to WARN.  We've got lots of other classes, both
 bundled in WEB-INF/lib jar files and loosely in the WEB-INF/classes  and
 they all spill their log4j output.

 But none of our log messages from the JSP pages are coming through.  I've
 tried the following config, but it had no effect:

 log4j.category.pages=DEBUG, filer
 log4j.additivity.pages=false


 *If* I configure the following (adding a 'package' below 'pages'):

 log4j.category.pages.abc=DEBUG, filer
 log4j.additivity.pages.abc=false

 Then it will work (but obviously only for pages under 'abc').  Also, if I
 remove the additivity, I get two messages. That makes me think there's one
 message from the rootCategory, and one from this category.  But when I
 remove the category 'pages.abc' entirely, we're back to nothing again.


 Any ideas?  Is there a TC log4j or CL file hiding somewhere?


If changes to your config file are being recognized, then it probably isn't a
problem with Log4j using some other config file.  I don't know why your
original config wouldn't work.  It really should.

One note.  You shouldn't be using rootCategory and category, but
rootLogger, and logger.  Also, additivity is only necessary when you are
trying to log to a different appender than those of the current logger is
inheriting.  Since you've specified the filer appender to the root, you can
simply define the level you want to reset your named logger to rather than also
supplying the filer appender and setting additivity to false.

Oh, one other thing.  I don't know for sure whether order is important in
properties files, but you might define your appenders first and loggers last
with the rootLogger last.  In Log4j XML config files, order is important and
enforced by the dtd (which is not necessary to use with Logj4-1.3, not yet
released, at least non-alpha).


Jake


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



maxActive in server.xml's ResourceParams

2004-12-13 Thread Stephen Charles Huey
In Tomcat 4's server.xml, one of the ResourceParams elements is
maxActive (set to 20 by default).  I'm wondering if there's any reason
why I wouldn't set this very high if I have a virtually unlimited number
of users for our Oracle database...I'm not sure how much this applies to
us since I don't believe we're using built-in connection pooling (we're
using some slightly customized classes--nothing nonstandard, though). 
Anyway, thanks for any tips...

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



Using mailing lists

2004-12-13 Thread Charlie Yates
I have tried to get an index of messages but have been unsuccessful.  I used 
the mailng address of  [EMAIL PROTECTED] to see if I could get anything but got 
zero results.  How should I use the mailing list to get an index of messages.

Thanks,

Charlie

WAR files and Eclipse

2004-12-13 Thread Daniel Watrous
Hello All,

I am new to WAR files and eclipse.  Many searches on google bring me to the 
sysdeo tomcat plugin, which I have installed.  I want to know if there is some 
standard way to generate a WAR file for deployment.  I have found that I can 
export a JAR file and change its name, but in the process the directory 
structure is altered.  Maybe you even know about a better IDE than eclipse for 
working with web-based projects.  THANKS in advance.

Daniel

Tomcat 5.5.6 Admin Package

2004-12-13 Thread Charlie Yates
Hello,

Is there any documentation available that describes how to install and 
configure the Admin webapp now that it needs to be downloaded separately from 
Tomcat?

Thank you,

Charlie Yates

RE: Using mailing lists

2004-12-13 Thread Mark Thomas
To get messages 123 through 145 (a maximum of 100 per request), mail:
   [EMAIL PROTECTED]

To get an index with subject and author for messages 123-456 , mail:
   [EMAIL PROTECTED]

They are always returned as sets of 100, max 2000 per request,
so you'll actually get 100-499.

To receive all messages with the same subject as message 12345,
send an empty message to:
   [EMAIL PROTECTED] 

 -Original Message-
 From: Charlie Yates [mailto:[EMAIL PROTECTED] 
 Sent: Monday, December 13, 2004 9:31 PM
 To: Tomcat Users List
 Subject: Using mailing lists
 
 I have tried to get an index of messages but have been 
 unsuccessful.  I used the mailng address of  
 [EMAIL PROTECTED] to see if I 
 could get anything but got zero results.  How should I use 
 the mailing list to get an index of messages.
 
 Thanks,
 
 Charlie
 



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



Re: Tomcat 5.5.6 Admin Package

2004-12-13 Thread Hassan Schroeder
Charlie Yates wrote:
Is there any documentation available that describes how to install 
 and configure the Admin webapp ...
put both tar files in the same directory; untar them. Done. :-)
OK, you also need to add a user whose roles include 'admin' to
   $CATALINA_HOME/conf/tomcat-users.xml
And if you're using the minimal server.xml example, you'll want to
add the two Listeners from the top of the full server.xml.
(re)start Tomcat...
HTH,
--
Hassan Schroeder - [EMAIL PROTECTED]
Webtuitive Design ===  (+1) 408-938-0567   === http://webtuitive.com
  dream.  code.

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


Re: OutOfMemory Errors

2004-12-13 Thread Asim Alp
Thank you for the suggestion.  Actually, we have upgraded from JDK
1.4.x to JDK 1.5.0 hoping to solve the problem, so I doubt that it is
JDK related.


On Mon, 13 Dec 2004 19:38:14 -0200, Ivan F. Martinez [EMAIL PROTECTED] wrote:
 
 On Mon, 13 Dec 2004 13:31:50 -0500
 Asim Alp [EMAIL PROTECTED] wrote:
 
 AA Hello Peter,
 AA
 AA Sorry.  My system config is:
 AA
 AA Windows Server 2003
 AA Apache 2.0.49 (Win32) mod_ssl/2.0.51 OpenSSL/0.9.7d DAV/2
 AA mod_jk/1.2.6 Tomcat 5.5.4
 AA sun jdk 1.5.0-b64
 
 Have you tried with JDK 1.4.x ?
 I have one app that eat all memory when running on jdk 1.5.0, and
 works fine on 1.4.x.
 I did not find any memory leak in APP. I think is related with JDK 1.5.0
 
 --
 
 -
 
 
 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: OutOfMemory Errors

2004-12-13 Thread Ivan F. Martinez

On Mon, 13 Dec 2004 13:31:50 -0500
Asim Alp [EMAIL PROTECTED] wrote:

AA Hello Peter,
AA 
AA Sorry.  My system config is:
AA 
AA Windows Server 2003
AA Apache 2.0.49 (Win32) mod_ssl/2.0.51 OpenSSL/0.9.7d DAV/2
AA mod_jk/1.2.6 Tomcat 5.5.4
AA sun jdk 1.5.0-b64

Have you tried with JDK 1.4.x ?
I have one app that eat all memory when running on jdk 1.5.0, and
works fine on 1.4.x.
I did not find any memory leak in APP. I think is related with JDK 1.5.0


-- 

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



Re: WAR files and Eclipse

2004-12-13 Thread Rhino
It's actually very easy to do what you want to do.

Assuming you have correctly installed and configured Sysdeo, you will need
to tell Eclipse where the War file for your Tomcat project should be
generated. This is done on a *project* basis, i.e. you have to repeat this
step once for each Tomcat project you create but you will never have to do
this again for a given project unless you change the location where you want
the War file.

1. Select the Tomcat project in the Package Explorer perspective.
2. Right click for a context menu. Choose 'Properties'.
3. Within Properties, choose 'Tomcat' from the tree on the left.
4. Click on the 'Export to WAR settings' tab within the Tomcat properties.
5. Enter the path that tells Tomcat where to generate your War file. The
path name should include the file name of the War file. I normally put my
War files in a folder called 'war' directly beneath the project so my WAR
file for export looks like this:
D:\eclipse\workspace\MyProject\war\MyProject.war. Naturally, you are free to
organize your files differently.
6. Click on OK to close the Properties dialog.

Then, every time you want to regenerate your War file, all you need to do is
this:
1. Select the Tomcat project in the Package Explorer perspective.
2. Right-click for a context menu. Choose 'Tomcat project'.
3. Choose 'Export to the war file sets in project properties'.
4. You should get a brief message that tells you the operation worked.

Now, if you don't find Tomcat in the Properties tree or if you don't see the
'Tomcat project' option in the context menu, it means you probably didn't
configure Sysdeo correctly. Don't worry, it's not that hard to fix. Just let
us know and we'll try to help.

Rhino

- Original Message - 
From: Daniel Watrous [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, December 13, 2004 3:43 PM
Subject: WAR files and Eclipse


Hello All,

I am new to WAR files and eclipse.  Many searches on google bring me to the
sysdeo tomcat plugin, which I have installed.  I want to know if there is
some standard way to generate a WAR file for deployment.  I have found that
I can export a JAR file and change its name, but in the process the
directory structure is altered.  Maybe you even know about a better IDE than
eclipse for working with web-based projects.  THANKS in advance.

Daniel


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



Re: Tomcat Administration Application

2004-12-13 Thread Peter Johnson
I have 5.5.4 and the admin apps tree navigation appears unusable. Could 
it have something to do with the following

DEBUG http-8080-Processor25 org.apache.struts.util.ModuleUtils - Get 
module name for path /setUpTree.do
DEBUG http-8080-Processor25 org.apache.struts.util.ModuleUtils - Module 
name found: default
DEBUG http-8080-Processor25 org.apache.struts.action.RequestProcessor - 
Processing a 'GET' for path '/setUpTree'
DEBUG http-8080-Processor25 org.apache.struts.action.RequestProcessor 
-  Looking for Action instance for class 
org.apache.webapp.admin.SetUpTreeAction
DEBUG http-8080-Processor25 org.apache.struts.action.RequestProcessor 
-   Returning existing Action instance

DEBUG http-8080-Processor25 org.apache.struts.action.RequestProcessor - 
processForwardConfig(ForwardConfig[name=Tree Control 
Test,path=/tree-control-test.jsp,redirect=false,contextRelative=false,module=null])
DEBUG http-8080-Processor25 
org.apache.catalina.core.ApplicationDispatcher - 
servletPath=/tree-control-test.jsp, pathInfo=null, queryString=null, 
name=null

The tree link is also http://localhost:8080/admin/treeControlTest.do?tree=
It is the Test bit that has me wondering. Clicking the above link 
generates

DEBUG http-8080-Processor23 org.apache.struts.util.ModuleUtils - Get 
module name for path /treeControlTest.do
DEBUG http-8080-Processor23 org.apache.struts.util.ModuleUtils - Module 
name found: default
DEBUG http-8080-Processor23 org.apache.struts.action.RequestProcessor - 
Processing a 'GET' for path '/treeControlTest'
DEBUG http-8080-Processor23 org.apache.struts.action.RequestProcessor 
-  Looking for Action instance for class 
org.apache.webapp.admin.TreeControlTestAction
DEBUG http-8080-Processor23 org.apache.struts.action.RequestProcessor 
-   Returning existing Action instance
INFO http-8080-Processor23 
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/admin] - 
action: Entered TreeControlTestAction:perform()
INFO http-8080-Processor23 
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/admin] - 
action: Entered TreeControlTestAction:perform()
INFO http-8080-Processor23 
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/admin] - 
action: Tree expand/contract on
INFO http-8080-Processor23 
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/admin] - 
action: Tree expand/contract on
DEBUG http-8080-Processor23 org.apache.struts.action.RequestProcessor - 
processForwardConfig(ForwardConfig[name=Tree Control 
Test,path=/tree-control-test.jsp,redirect=false,contextRelative=false,module=null])
DEBUG http-8080-Processor23 
org.apache.catalina.core.ApplicationDispatcher - 
servletPath=/tree-control-test.jsp, pathInfo=null, queryString=null, 
name=null
DEBUG http-8080-Processor23 
org.apache.catalina.core.ApplicationDispatcher - 
servletPath=/tree-control-test.jsp, pathInfo=null, queryString=null, 
name=null

Has someone been playing / trying something and checked in the testing 
version somewhere?

PJ
Kelly, Steve wrote:
James,
Thanks for that. That's done the trick. Dunno why there was not a valid
admin.xml file as there is on the Windows install.
However, I still have a problem. I'd expect to see a tree a bit like
this when I get into the admin application:
Tomcat Server
   Service (Catalina)
   Host (localhost)
   Context (/)
   Context (/admin)
   Context (/manager) 
   Etc

But I just see as far down as Service(Catalina).
Any clues.
TIA
Steve. 

-Original Message-
From: Montz, James C. (James Tower) [mailto:[EMAIL PROTECTED] 
Sent: 13 December 2004 15:54
To: Tomcat Users List
Subject: RE: Tomcat Administration Application

Bare with me, I usually work with Tomcat 4.5 on Linux. My first stab at
Tomcat 5.5 is on Windows.
Anyway, was looking at the files for the tar.gz release of the admin
tools.
Verify that you do indeed have a conf\Catalina\localhost\admin.xml
(double check file permissions as well) This is what re-maps requests
for /admin to \server\webapps\admin.
To me, it does not appear to have a  proper context path specified?
Is the context mapping assumed?  Based on the name of the file?
If required? Modify conf\Catalina\localhost\admin.xml with a path, like
so;
Context docBase=${catalina.home}/server/webapps/admin path=/admin 
privileged=true antiResourceLocking=false
antiJARLocking=false
/Context

This should override the generic page in \webapps\ROOT\admin\
-Original Message-
From: Kelly, Steve [mailto:[EMAIL PROTECTED] 
Sent: Friday, December 10, 2004 2:52 PM
To: Tomcat Users List
Subject: RE: Tomcat Administration Application

James,
I'm on RedHat Linux V9. Everything (tomcat and the admin package) is
installed in the jakarta-tomcat-5.5.4 directory. 

Even if I undeploy the admin application and then deploy it specifying
the $CATALINA_HOME/server/webapps/admin directory I still get the same
same message telling me to download and install the separate admin
application.
There must 

Re: Two Tomcat installations on one server in Windows 2K3

2004-12-13 Thread Wolfgang Hackl
footh wrote:
[running more than one Tomcat on a single machine]
First off, I want to run Tomcat as a service and that
seems to talk about running multiple instances with
the startup script.
It is likely that you want to use one version of Tomcat to run your web 
sites. So, I assume you have downloaded a distribution and put it 
somewhere on your server. This location is called CATALINA_HOME. For a 
single instance CATALINA_HOME = CATALINA_BASE, i.e. no need to care about.

Second, item number 4 more or less says for multiple
instances you can use CATALINA_BASE as an argument
but doesn't really explain CATALINA_BASE.  Is it the
install directory of Tomcat?  Or is it a directory
where I have another set up webapps and context
configuration files.  I can't quite visualize what it
means to use CATALINA_BASE and how to set up the
directories.
If you want to have more than one operating system service, you must 
copy certain parts (mostly configuration files) from your CATALINA_HOME 
directory to a new location. This new directory is called CATALINA_BASE. 
  A CATALINA_BASE is a directory containing configuration files etc. 
that are individual to an OS service. The executable files do not need 
to be copied since they will be re-used.

You need to call service.bat with appropriate parameters (CATALINA_BASE 
is the most important one) in order to install an OS service. The 
init-scripts (Unix) or registry settings (for Windows look around at 
HKEY_LOCAL_MACHINE\System\CurrentControlSet\SERVICES\Apache Tomcat) for 
the service always call the same tomcat executables. The service 
parameters determine wich config files to use.

So for each Tomcat instance, you need to change the server.xml in the 
specific CATALINA_BASE to have your services listening to different IP 
addresses and/or TCP ports (same changes for shutdown port and AJP 
connectors necessary).

I hope this helps. If it is not sufficient, I could provide you with a 
screenshot of my directory layout.

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


Tomcat Admin Tool Server::Service Drop Down not Populating (was RE: Tomcat Administration Application)

2004-12-13 Thread Montz, James C. (James Tower)
Unfortunately, my installation exhibits the same behavior.

Typically, the Service (Catalina) menu option shows a drop down of
configured Hosts, Valves, and Connectors.
Clicking the Drop Down (Magnifying glass?) returns nothing under the
branch.

Going to the Actions Drop Down, and choosing 'Delete Existing..' does
return a list of the configured Services.

Anyone else on List know cause/solution?

My Environments:
Tomcat 5.5.4
Windows 2000 Pro
Windows 2003 Server Standard
Sun J2SE 5.0

-Original Message-
From: Kelly, Steve [mailto:[EMAIL PROTECTED] 
Sent: Monday, December 13, 2004 12:27 PM
To: Tomcat Users List
Subject: RE: Tomcat Administration Application

James,

Thanks for that. That's done the trick. Dunno why there was not a valid
admin.xml file as there is on the Windows install.

However, I still have a problem. I'd expect to see a tree a bit like
this when I get into the admin application:
Tomcat Server
Service (Catalina)
Host (localhost)
Context (/)
Context (/admin)
Context (/manager) 
Etc

But I just see as far down as Service(Catalina).

Any clues.

TIA

Steve. 

-Original Message-
From: Montz, James C. (James Tower) [mailto:[EMAIL PROTECTED] 
Sent: 13 December 2004 15:54
To: Tomcat Users List
Subject: RE: Tomcat Administration Application

Bare with me, I usually work with Tomcat 4.5 on Linux. My first stab at
Tomcat 5.5 is on Windows.

Anyway, was looking at the files for the tar.gz release of the admin
tools.

Verify that you do indeed have a conf\Catalina\localhost\admin.xml
(double check file permissions as well) This is what re-maps requests
for /admin to \server\webapps\admin.


To me, it does not appear to have a  proper context path specified?
Is the context mapping assumed?  Based on the name of the file?

If required? Modify conf\Catalina\localhost\admin.xml with a path, like
so;

Context docBase=${catalina.home}/server/webapps/admin path=/admin 
 privileged=true antiResourceLocking=false
antiJARLocking=false
/Context

This should override the generic page in \webapps\ROOT\admin\


-Original Message-
From: Kelly, Steve [mailto:[EMAIL PROTECTED] 
Sent: Friday, December 10, 2004 2:52 PM
To: Tomcat Users List
Subject: RE: Tomcat Administration Application

James,

I'm on RedHat Linux V9. Everything (tomcat and the admin package) is
installed in the jakarta-tomcat-5.5.4 directory. 

Even if I undeploy the admin application and then deploy it specifying
the $CATALINA_HOME/server/webapps/admin directory I still get the same
same message telling me to download and install the separate admin
application.

There must be something (can anyone tell me what?) pointing /admin to
the web page that displays this message.

Steve.

-Original Message-
From: Montz, James C. (James Tower) [mailto:[EMAIL PROTECTED] 
Sent: 10 December 2004 20:13
To: Tomcat Users List; Tomcat Users List
Subject: RE: Tomcat Administration Application

Did you simply extract the .zip file into your Tomcat 5.5.4 install
directory?

The .zip has a file path of jakarta-tomcat-5.5.4\, but the default
installation directory is Tomcat 5.5\

So if you simply extracted the zip into your install directory, look for
a directory named jakarta-tomcat-5.5.4

Drag  Drop those directory contents to the true tomcat installation
directory.

Perhaps the .zip could be re-packaged and remove the path
jakarta-tomcat-5.5.4 from the archive?
This would allow users to simply unzip admin.zip into their installation
directory.

James

-Original Message-
From: Kelly, Steve [mailto:[EMAIL PROTECTED]
Sent: Friday, December 10, 2004 1:47 PM
To: Tomcat Users List
Subject: RE: Tomcat Administration Application

Wade,

Forgive me but I'm a novice at this stuff. How can I modify the link ?
The context name is 'admin' but when I key in
http://localhost:8080/admin I get the same message telling me to
download and install the separate admin application.

Steve.  

-Original Message-
From: Wade Chandler [mailto:[EMAIL PROTECTED]
Sent: 10 December 2004 17:27
To: Tomcat Users List
Subject: Re: Tomcat Administration Application

Kelly, Steve wrote:
 I've just installed Tomcat 5.5.4. I also downloaded the separate 
 Tomcat Administration application. But when I click the Tomcat 
 Administration button I still get the message saying the web 
 application is no longer installed by default. From the Tomcat manager

 it says that application 'admin' is running. What else do I need to do
to get into it ?
  
 TIA,
  
 Steve.
 

Well, I assume that first page you are talking about is static, so it
has no idea about the management app.  You could probably find and
modify the link, and the other thing is from your manager application
find the context for the admin app and type in
http://yourservername:yourport/contextname

Wade


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

RE: WebDAV servlet bug for UTF-8 characters

2004-12-13 Thread Mark Thomas
Sorry for the delayed reply. You need to set URIEncoding=UTF-8 in the
connector.

Mark

 -Original Message-
 From: Garret Wilson [mailto:[EMAIL PROTECTED] 
 Sent: Monday, November 29, 2004 11:52 PM
 To: Tomcat Users List
 Subject: WebDAV servlet bug for UTF-8 characters
 
 I have a file with the character RIGHT SINGLE QUOTATION MARK 
 U+2019 in 
 the title. The file is listed fine when I browse to the Tomcat WebDAV 
 enabled directory with a browser. Clicking on the file attempts to 
 browse to the file, with the character UTF-8 encoded as 
 %E2%80%99, but 
 Tomcat indicates that the file is unavailable. I don't know 
 if this is a 
 Tomcat or a Tomcat WebDAV servlet bug.
 
 Garret
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 



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



Re: Tomcat Administration Application

2004-12-13 Thread Peter Johnson
Ok so it looks like it has always been called test
PJ
Peter Johnson wrote:
I have 5.5.4 and the admin apps tree navigation appears unusable. 
Could it have something to do with the following

DEBUG http-8080-Processor25 org.apache.struts.util.ModuleUtils - Get 
module name for path /setUpTree.do
DEBUG http-8080-Processor25 org.apache.struts.util.ModuleUtils - 
Module name found: default
DEBUG http-8080-Processor25 org.apache.struts.action.RequestProcessor 
- Processing a 'GET' for path '/setUpTree'
DEBUG http-8080-Processor25 org.apache.struts.action.RequestProcessor 
-  Looking for Action instance for class 
org.apache.webapp.admin.SetUpTreeAction
DEBUG http-8080-Processor25 org.apache.struts.action.RequestProcessor 
-   Returning existing Action instance

DEBUG http-8080-Processor25 org.apache.struts.action.RequestProcessor 
- processForwardConfig(ForwardConfig[name=Tree Control 
Test,path=/tree-control-test.jsp,redirect=false,contextRelative=false,module=null]) 

DEBUG http-8080-Processor25 
org.apache.catalina.core.ApplicationDispatcher - 
servletPath=/tree-control-test.jsp, pathInfo=null, queryString=null, 
name=null

The tree link is also 
http://localhost:8080/admin/treeControlTest.do?tree=

It is the Test bit that has me wondering. Clicking the above link 
generates

DEBUG http-8080-Processor23 org.apache.struts.util.ModuleUtils - Get 
module name for path /treeControlTest.do
DEBUG http-8080-Processor23 org.apache.struts.util.ModuleUtils - 
Module name found: default
DEBUG http-8080-Processor23 org.apache.struts.action.RequestProcessor 
- Processing a 'GET' for path '/treeControlTest'
DEBUG http-8080-Processor23 org.apache.struts.action.RequestProcessor 
-  Looking for Action instance for class 
org.apache.webapp.admin.TreeControlTestAction
DEBUG http-8080-Processor23 org.apache.struts.action.RequestProcessor 
-   Returning existing Action instance
INFO http-8080-Processor23 
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/admin] 
- action: Entered TreeControlTestAction:perform()
INFO http-8080-Processor23 
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/admin] 
- action: Entered TreeControlTestAction:perform()
INFO http-8080-Processor23 
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/admin] 
- action: Tree expand/contract on
INFO http-8080-Processor23 
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/admin] 
- action: Tree expand/contract on
DEBUG http-8080-Processor23 org.apache.struts.action.RequestProcessor 
- processForwardConfig(ForwardConfig[name=Tree Control 
Test,path=/tree-control-test.jsp,redirect=false,contextRelative=false,module=null]) 

DEBUG http-8080-Processor23 
org.apache.catalina.core.ApplicationDispatcher - 
servletPath=/tree-control-test.jsp, pathInfo=null, queryString=null, 
name=null
DEBUG http-8080-Processor23 
org.apache.catalina.core.ApplicationDispatcher - 
servletPath=/tree-control-test.jsp, pathInfo=null, queryString=null, 
name=null

Has someone been playing / trying something and checked in the 
testing version somewhere?

PJ
Kelly, Steve wrote:
James,
Thanks for that. That's done the trick. Dunno why there was not a valid
admin.xml file as there is on the Windows install.
However, I still have a problem. I'd expect to see a tree a bit like
this when I get into the admin application:
Tomcat Server
   Service (Catalina)
   Host (localhost)
   Context (/)
   Context (/admin)
   Context (/manager)Etc
But I just see as far down as Service(Catalina).
Any clues.
TIA
Steve.
-Original Message-
From: Montz, James C. (James Tower) [mailto:[EMAIL PROTECTED] 
Sent: 13 December 2004 15:54
To: Tomcat Users List
Subject: RE: Tomcat Administration Application

Bare with me, I usually work with Tomcat 4.5 on Linux. My first stab at
Tomcat 5.5 is on Windows.
Anyway, was looking at the files for the tar.gz release of the admin
tools.
Verify that you do indeed have a conf\Catalina\localhost\admin.xml
(double check file permissions as well) This is what re-maps requests
for /admin to \server\webapps\admin.
To me, it does not appear to have a  proper context path specified?
Is the context mapping assumed?  Based on the name of the file?
If required? Modify conf\Catalina\localhost\admin.xml with a path, like
so;
Context docBase=${catalina.home}/server/webapps/admin 
path=/admin privileged=true antiResourceLocking=false
antiJARLocking=false
/Context

This should override the generic page in \webapps\ROOT\admin\
-Original Message-
From: Kelly, Steve [mailto:[EMAIL PROTECTED] Sent: 
Friday, December 10, 2004 2:52 PM
To: Tomcat Users List
Subject: RE: Tomcat Administration Application

James,
I'm on RedHat Linux V9. Everything (tomcat and the admin package) is
installed in the jakarta-tomcat-5.5.4 directory.
Even if I undeploy the admin application and then deploy it specifying
the $CATALINA_HOME/server/webapps/admin directory I still get the same
same message 

Re: Tomcat Administration Application

2004-12-13 Thread Peter Johnson
Ok so it looks like it has always been called test
PJ
Peter Johnson wrote:
I have 5.5.4 and the admin apps tree navigation appears unusable. 
Could it have something to do with the following

DEBUG http-8080-Processor25 org.apache.struts.util.ModuleUtils - Get 
module name for path /setUpTree.do
DEBUG http-8080-Processor25 org.apache.struts.util.ModuleUtils - 
Module name found: default
DEBUG http-8080-Processor25 org.apache.struts.action.RequestProcessor 
- Processing a 'GET' for path '/setUpTree'
DEBUG http-8080-Processor25 org.apache.struts.action.RequestProcessor 
-  Looking for Action instance for class 
org.apache.webapp.admin.SetUpTreeAction
DEBUG http-8080-Processor25 org.apache.struts.action.RequestProcessor 
-   Returning existing Action instance

DEBUG http-8080-Processor25 org.apache.struts.action.RequestProcessor 
- processForwardConfig(ForwardConfig[name=Tree Control 
Test,path=/tree-control-test.jsp,redirect=false,contextRelative=false,module=null]) 

DEBUG http-8080-Processor25 
org.apache.catalina.core.ApplicationDispatcher - 
servletPath=/tree-control-test.jsp, pathInfo=null, queryString=null, 
name=null

The tree link is also 
http://localhost:8080/admin/treeControlTest.do?tree=

It is the Test bit that has me wondering. Clicking the above link 
generates

DEBUG http-8080-Processor23 org.apache.struts.util.ModuleUtils - Get 
module name for path /treeControlTest.do
DEBUG http-8080-Processor23 org.apache.struts.util.ModuleUtils - 
Module name found: default
DEBUG http-8080-Processor23 org.apache.struts.action.RequestProcessor 
- Processing a 'GET' for path '/treeControlTest'
DEBUG http-8080-Processor23 org.apache.struts.action.RequestProcessor 
-  Looking for Action instance for class 
org.apache.webapp.admin.TreeControlTestAction
DEBUG http-8080-Processor23 org.apache.struts.action.RequestProcessor 
-   Returning existing Action instance
INFO http-8080-Processor23 
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/admin] 
- action: Entered TreeControlTestAction:perform()
INFO http-8080-Processor23 
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/admin] 
- action: Entered TreeControlTestAction:perform()
INFO http-8080-Processor23 
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/admin] 
- action: Tree expand/contract on
INFO http-8080-Processor23 
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/admin] 
- action: Tree expand/contract on
DEBUG http-8080-Processor23 org.apache.struts.action.RequestProcessor 
- processForwardConfig(ForwardConfig[name=Tree Control 
Test,path=/tree-control-test.jsp,redirect=false,contextRelative=false,module=null]) 

DEBUG http-8080-Processor23 
org.apache.catalina.core.ApplicationDispatcher - 
servletPath=/tree-control-test.jsp, pathInfo=null, queryString=null, 
name=null
DEBUG http-8080-Processor23 
org.apache.catalina.core.ApplicationDispatcher - 
servletPath=/tree-control-test.jsp, pathInfo=null, queryString=null, 
name=null

Has someone been playing / trying something and checked in the 
testing version somewhere?

PJ
Kelly, Steve wrote:
James,
Thanks for that. That's done the trick. Dunno why there was not a valid
admin.xml file as there is on the Windows install.
However, I still have a problem. I'd expect to see a tree a bit like
this when I get into the admin application:
Tomcat Server
   Service (Catalina)
   Host (localhost)
   Context (/)
   Context (/admin)
   Context (/manager)Etc
But I just see as far down as Service(Catalina).
Any clues.
TIA
Steve.
-Original Message-
From: Montz, James C. (James Tower) [mailto:[EMAIL PROTECTED] 
Sent: 13 December 2004 15:54
To: Tomcat Users List
Subject: RE: Tomcat Administration Application

Bare with me, I usually work with Tomcat 4.5 on Linux. My first stab at
Tomcat 5.5 is on Windows.
Anyway, was looking at the files for the tar.gz release of the admin
tools.
Verify that you do indeed have a conf\Catalina\localhost\admin.xml
(double check file permissions as well) This is what re-maps requests
for /admin to \server\webapps\admin.
To me, it does not appear to have a  proper context path specified?
Is the context mapping assumed?  Based on the name of the file?
If required? Modify conf\Catalina\localhost\admin.xml with a path, like
so;
Context docBase=${catalina.home}/server/webapps/admin 
path=/admin privileged=true antiResourceLocking=false
antiJARLocking=false
/Context

This should override the generic page in \webapps\ROOT\admin\
-Original Message-
From: Kelly, Steve [mailto:[EMAIL PROTECTED] Sent: 
Friday, December 10, 2004 2:52 PM
To: Tomcat Users List
Subject: RE: Tomcat Administration Application

James,
I'm on RedHat Linux V9. Everything (tomcat and the admin package) is
installed in the jakarta-tomcat-5.5.4 directory.
Even if I undeploy the admin application and then deploy it specifying
the $CATALINA_HOME/server/webapps/admin directory I still get the same
same message 

Re: JNDI object not shared among TC instances

2004-12-13 Thread John Smith
 Hmm!

 I beg your pardon, but I will have to ask you a very basic question, indeed
:-)

 Which FAQ do you mean? Tomcat's, JNDI's or Java's?

 I went off crazy looking for it and I couldn't find it. I thought I had
exhausted all other ways to understand this problem . . . and thanks for
sheding light into it.

 If it is impossible to do things the way I thought I could, I will have to
work around it somehow, problably keeping all data structuring the objects'
states in a backend database tables

 I still have a kind of conceptual/phylosophical question. How do you set up
a singleton that would be such for different JVMs instances,  from different
JVMs vendors, different boxes and networks, based on plain JNDI (I mean
without EJBs or DBMS replication)?

 Or, . . . am I day dreaming?

 I really thought this was what JNDI was all about and even EJBs naming was
based on JNDI.

 Thanks

- Original Message -
From: Shapira, Yoav [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, December 13, 2004 8:59 AM
Subject: RE: JNDI object not shared among TC instances



Hi,
Tomcat's JNDI implementation does not support sharing for that matter
even external connections.  (This is in the FAQ by the way).  If you
want to share an object among multiple Tomcat instances via JNDI, you
must use a JNDI provider that supports this.

Yoav Shapira http://www.yoavshapira.com


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



Debugging missing web.xml on V5.5.4

2004-12-13 Thread alan . sinclair
Hi,
I see there has been some traffic on this issue in the past but it has not 
helped me resolve my problem. I cannot automatically deploy a war file on 
Tomcat 5.5.4  I can successfully deploy the same war if I manually extract the 
war contents into the webapps directory. When the running Tomcat attempts to 
auto deploy the war, the following error occurs:

INFO: Missing application web.xml, using defaults only 
StandardEngine[Catalina].StandardHost[localhost].StandardContext

How can I debug this problem? Is there a way to increase the debugging level in 
Tomcat 5.5.4 to eject more useful logging information to determine the cause?

Thanks for any suggestion.




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



RE: Query with 404 error processing -- Tomcat 5.0.19

2004-12-13 Thread Jon Doe
Hi,
Because this processing servlet of yours itself had an error.  A JSP
file by default is processed by Tomcat's JSP servlet, not your Router
servlet.  Accordingly, it's not subject to your custom error handling
mechanism.  A more standard way to do this is declare an error-page
for 404's in your web.xml, and/or an errorPage for the specific JSP page
in the JSP page itself.
Sorry, not sure I understand this. Is this not what I've done with this?:
   error-pageerror-code404/error-code
   location/404.html/location
   /error-page
My understanding of how this works is that any URL that ends with the string 
'.ext' will be picked up by my Servlet. Any other URL ('.jpg', '.jsp' or 
whatever) will thus fall through this, and my Router servlet will not see 
it. It keeps falling to the error-page code above.

Have you any sample code you would be kiind enough to paste? I'm obviously 
being thick here. :(

Joe.

Yoav Shapira http://www.yoavshapira.com

Here is my web.xml file:

?xml version=1.0 encoding=UTF-8?
!DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web
Application
2.3//EN
 http://java.sun.com/dtd/web-app_2_3.dtd;
web-app
display-nameMy server/display-name

servletservlet-nameRouter/servlet-name
servlet-classcom.mycompany.Router/servlet-class
/servlet
servletservlet-nameInitServlet/servlet-name

servlet-classcom.mycompany.InitServlet/servlet-class
load-on-startup2/load-on-startup
/servlet

servlet-mappingservlet-nameInitServlet/servlet-name
url-pattern/InitServlet/url-pattern
/servlet-mapping
!-- All URLs end .ext. These are processed by the front
controller.
--
servlet-mappingservlet-nameRouter/servlet-name
url-pattern*.ext/url-pattern
/servlet-mapping


session-configsession-timeout30/session-timeout/session-config

welcome-file-listwelcome-fileindex.html/welcome-file
/welcome-file-list
error-pageerror-code404/error-code
location/404.html/location
/error-page
/web-app
_
Express yourself instantly with MSN Messenger! Download today it's FREE! 
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/

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


Re: Tomcat 5.5.4 Ant Task

2004-12-13 Thread Siarhei Dudzin
Yes, antiJARLocking and antiResourceLocking are not enabled by default.
Unfortunately, non of them (together and separately) did not help to
solve my problems...
 
  I recently migrated from Tomcat 5.0.x to 5.5.4.  Everything seems to
  work great except the Ant Tasks.  Deploy works just fine but when I do
  the undeploy task the folder that contains my webapp does not get
  removed.  So when I go to deploy again, it says it can't because the
  context already exists.  With 5.0.x the context was removed completely.
  Does anyone know if this is a bug or if the behavior of the ant tasks
  have changed?  I couldn't find anything specifically about this in the
  changelog.
 
 There's a FAQ entry on this:
 http://jakarta.apache.org/tomcat/faq/windows.html#lock

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



Re: WAR files and Eclipse

2004-12-13 Thread Jonathan Wilson
I tried eclipse, but man was it hard to get configured properly. I 
wanted to use Eclipse/MyEclipse since I do Perl/C/C++ work as well and 
thought one tool that binds them all, yada yada yada.

I then tried NetBeans and it worked for my environment 'out-of-the-box'. 
It took zero configuration for me. I just pointed it at my existing 
source tree and it built its environment and ant scripts accordingly. I 
really like all of it's editors/interfaces better as well. I would 
rather use 2 tools (NetBeans for java stuff, and eclipse(or my older 
editor) for everything else) than jump through Eclipses' hoops for 
java/J2EE stuff.

Your mileage may vary.
--JW
Phillip Qin wrote:
It is very easy. Use ant's war task.
-Original Message-
From: Daniel Watrous [mailto:[EMAIL PROTECTED] 
Sent: December 13, 2004 3:44 PM
To: [EMAIL PROTECTED]
Subject: WAR files and Eclipse

Hello All,
I am new to WAR files and eclipse.  Many searches on google bring me to the
sysdeo tomcat plugin, which I have installed.  I want to know if there is
some standard way to generate a WAR file for deployment.  I have found that
I can export a JAR file and change its name, but in the process the
directory structure is altered.  Maybe you even know about a better IDE than
eclipse for working with web-based projects.  THANKS in advance.
Daniel
!DSPAM:41bdff16171791264215269!
 

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


Re: JNDI object not shared among TC instances

2004-12-13 Thread John Smith
 Thanks Joav and for the other people stumbling on the same rock

 and by the way why don't they use a search box at
http://jakarta.apache.org/tomcat/faq/  ?

 I had to click in, search and and click out of it again for every faq
topic!!!???

 OK, I found the answer here:
http://jakarta.apache.org/tomcat/faq/misc.html#externalJndi

 Can I access Tomcat's JNDI provider from outside tomcat?
Not at this time.

 The question/answer should be worded/extended like . . .

 Even different Tomcat instances use different JNDI contexts, . . .

and here: http://jakarta.apache.org/tomcat/faq/misc.html#ejb

 Is tomcat an EJB server? Can I use EJBs with tomcat?

 Tomcat is not an EJB server. Tomcat is not a full J2EE server. Tomcat is a
Servlet container. Tomcat does support those parts of the J2EE specification
that are required for Servlets, such as a subset of JNDI functionality.
Furthermore, you can connect to remote J2EE servers, or run tomcat embedded
inside a full J2EE server.


Now I see, I was getting a little too fancy, I will have to use EJBs


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



Tomcat 5.5 / Admin How ?

2004-12-13 Thread birendar . waldiya

Can any one guide me or point me to the documents  where i will get the 
steps to  assimilate the admin with  tomcat ??

Birendar Singh Waldiya


DISCLAIMER: The information contained in this e-mail message and/or attachments 
to it may contain confidential or privileged information.   If you are not the 
intended recipient, any dissemination, use, review, distribution, printing or 
copying of the information contained in this e-mail message and/or attachments 
to it are strictly prohibited and any violation thereof would possibly attract 
penal action.   If you have received this communication in error, please notify 
us by reply e-mail or telephone and immediately and permanently delete the 
message and any attachments. TCS accepts no liability for any damage caused by 
this email or its attachments due to viruses, interference, interception, 
corruption or unauthorized access/use.

  1   2   >