IIS connector (JK-1.2.15) fails to call Tomcat - returns 404

2006-01-03 Thread Fredrik Rubensson
Hi,

I am trying to setup IIS 6.0 (running in IIS 5.0 isolation mode) and
Tomcat 5.5.12 with the help of JK-1.2.15. (I had a working solution 
with jk2 that didn't work with my newly added cewolf taglib for 
charts. So I figured that I should upgrade to something that is 
supported and up to date.) 

The machine is a Windows 2003 Server. I installed JK with the Windows
installer and then changed the property files a bit. (See file 
listings below.) The call is getting though to the connector since 
I get things in the log file. The last line says [/vbc] is a servlet 
url - should redirect to ajp13w and then I get a 404 back. I am not 
sure about if it is Tomcat or the connector that returns the 404. 
There are no signs of any activity whatsoever in the Tomcat logs. So 
in short it looks nice in the connector log file but still returns a
404. Tomcat also has no problem with normal equivalent calls to 8080.
I have changed the worker handling the request from wlb to ajp13w with 
No change in behaviour. (Not expected)



workers.properties:


# workers.properties.minimal -
#
# This file provides minimal jk configuration properties needed to
# connect to Tomcat.
#
# The workers that jk should create and work with
#

worker.list=wlb,jkstatus,ajp13w

#
# Defining a worker named ajp13w and of type ajp13
# Note that the name and the type do not have to match.
#
worker.ajp13w.type=ajp13
worker.ajp13w.host=localhost
worker.ajp13w.port=8009

#
# Defining a load balancer
# 

worker.wlb.type=lb
worker.wlb.balance_workers=ajp13w

#
# Define status worker
#

worker.jkstatus.type=status



uriworkermap.properties:

# uriworkermap.properties - IIS
#
# This file provides sample mappings for example wlb
# worker defined in workermap.properties.minimal
# The general syntax for this file is:
# [URL]=[Worker name]

/vbc=ajp13w
/vbc/*=ajp13w
/vbcadmin/*=wlb

/admin/*=wlb
/manager/*=wlb
/jsp-examples/*=wlb
/servlets-examples/*=wlb

# Optionally filter out all .jpeg files inside that context
# For no mapping the url has to start with exclamation (!)

!/servlets-examples/*.jpeg=wlb

#
# Mount jkstatus to /jkmanager
# For production servers you will need to
# secure the access to the /jkmanager url
#
/jkmanager=jkstatus



And in Tomcat server.xml the following part is included:

!-- Define a SSL HTTP/1.1 Connector on port 8443 --
!--
Connector port=8443 maxHttpHeaderSize=8192
   maxThreads=150 minSpareThreads=25
maxSpareThreads=75
   enableLookups=false disableUploadTimeout=true
   acceptCount=100 scheme=https secure=true
   clientAuth=false sslProtocol=TLS /
--

!-- Define an AJP 1.3 Connector on port 8009 --
Connector port=8009 
   enableLookups=false redirectPort=8443
protocol=AJP/1.3 /



The connector log file says (for one request):

[Tue Jan 03 08:24:15 2006] [1444:3060] [debug] jk_isapi_plugin.c (762):
Filter started
[Tue Jan 03 08:24:15 2006] [1444:3060] [debug] jk_isapi_plugin.c (828):
Virtual Host redirection of /srv-mtc-dev4/vbc
[Tue Jan 03 08:24:15 2006] [1444:3060] [debug] jk_uri_worker_map.c
(449): Attempting to map URI '/srv-mtc-dev4/vbc' from 9 maps
[Tue Jan 03 08:24:15 2006] [1444:3060] [debug] jk_uri_worker_map.c
(461): Attempting to map context URI '/servlets-examples/*'
[Tue Jan 03 08:24:15 2006] [1444:3060] [debug] jk_uri_worker_map.c
(461): Attempting to map context URI '/jsp-examples/*'
[Tue Jan 03 08:24:15 2006] [1444:3060] [debug] jk_uri_worker_map.c
(461): Attempting to map context URI '/vbcadmin/*'
[Tue Jan 03 08:24:15 2006] [1444:3060] [debug] jk_uri_worker_map.c
(461): Attempting to map context URI '/manager/*'
[Tue Jan 03 08:24:15 2006] [1444:3060] [debug] jk_uri_worker_map.c
(461): Attempting to map context URI '/jkmanager'
[Tue Jan 03 08:24:15 2006] [1444:3060] [debug] jk_uri_worker_map.c
(461): Attempting to map context URI '/admin/*'
[Tue Jan 03 08:24:15 2006] [1444:3060] [debug] jk_uri_worker_map.c
(461): Attempting to map context URI '/vbc/*'
[Tue Jan 03 08:24:15 2006] [1444:3060] [debug] jk_uri_worker_map.c
(461): Attempting to map context URI '/vbc'
[Tue Jan 03 08:24:15 2006] [1444:3060] [debug] jk_isapi_plugin.c (835):
Default redirection of /vbc
[Tue Jan 03 08:24:15 2006] [1444:3060] [debug] jk_uri_worker_map.c
(449): Attempting to map URI '/vbc' from 9 maps
[Tue Jan 03 08:24:15 2006] [1444:3060] [debug] jk_uri_worker_map.c
(461): Attempting to map context URI '/servlets-examples/*'
[Tue Jan 03 08:24:15 2006] [1444:3060] [debug] jk_uri_worker_map.c
(461): Attempting to map context URI '/jsp-examples/*'
[Tue Jan 03 08:24:15 2006] [1444:3060] [debug] jk_uri_worker_map.c
(461): Attempting to map context URI '/vbcadmin/*'
[Tue Jan 03 08:24:15 2006] [1444:3060] [debug] jk_uri_worker_map.c
(461): Attempting to map context URI '/manager/*'
[Tue Jan 03 08:24:15 2006] [1444:3060] [debug] jk_uri_worker_map.c
(461): Attempting to map context URI '/jkmanager'
[Tue Jan 03 08:24:15 2006] [1444:3060] [debug] 

Re: How to turn of CONTEXT RELOADS??

2006-01-03 Thread Marcin Okraszewszki

A read about the manager in
http://tomcat.apache.org/tomcat-5.5-doc/config/manager.html
It seems for me that it is only connected with HTTP session tracking. 
Nothing with context reloads.


But I think I've found the reason. By default if web.xml changes, Tomcat 
reloads the application, despite of reloadable attribute. I think that 
was the reason - I might have change the web.xml. I removed the 
WatchedResourceWEB-INF/web.xml/WatchedResource from context.xml and 
even if I change the web.xml, the application is not reloaded.


I hope that was really it!
Thank you for help! If you haven't pointed the conf/context.xml file, I 
would probably never cama accross it.

Marcin Okraszewski

Martin Gainty napisał(a):

Yes I believe those rules changed ever so slightly in Tomcat 5.x as 
your message indicated

the doc states
Restart persistence may be disabled by setting this [pathname] 
attribute to an empty string.

so
Manager pathname= /
should disable session object serialisation

Anyone else?
Martin-
By default, Tomcat 5.5 attempts to save all objects that are stored in 
the session object every timeit shuts downBy default, Tomcat 5.5 
attempts to save all objects that are stored in the session object 
every timeit shuts down- Original Message - From: Marcin 
Okraszewszki [EMAIL PROTECTED]

To: Tomcat Users List users@tomcat.apache.org
Sent: Monday, January 02, 2006 10:52 AM
Subject: Re: How to turn of CONTEXT RELOADS??


I haven't set the reloadable option. Accorting to documentation, the 
default is false, so I thought I do not need to set it.


The context.xml:
Context path= cookies=false allowLinking=true
   Realm className=org.apache.catalina.realm.MemoryRealm
pathname=/var/webapps/ROOT/WEB-INF/users.xml /
/Context


And the server.xml

?xml version=1.0?
Server port=8005 shutdown=SHUTDOWN
 Listener 
className=org.apache.catalina.mbeans.ServerLifecycleListener/


 GlobalNamingResources
   !-- Used by Manager webapp --
   Resource name=UserDatabase auth=Container 
type=org.apache.catalina.UserDatabase description=User database that
can be updated and saved 
factory=org.apache.catalina.users.MemoryUserDatabaseFactory 
pathname=conf/tomcat-users.xml/

 /GlobalNamingResources

 Service name=Catalina
   Connector port=8080 address=127.0.0.1/

   Engine name=Catalina defaultHost=localhost
 Realm className=org.apache.catalina.realm.UserDatabaseRealm 
resourceName=UserDatabase/

 Host appBase=/var/webapps name=localhost/
   /Engine

 /Service
/Server


Martin Gainty napisał(a):


Marcin-

can we see contents of your
/META-INF/context.xml
specifically the value of the reloadable option

dziekuje,
Martin-


Hi,
I would like to turn off automatic context reloading in Tomcat. It is
isn't about reloadable=true context setting, because I haven't 
set it
and I do not change anything in webapp and I still I found such log 
entry:


INFO: Reloading context []

And then the application is reloaded, the context listeners get the
signal, etc. I do not want such behavior. I have no idea what makes
Tomcat to reload the context. I would like an application to be loaded
and kept there until I stop Tomcat.

Is it possible to somehow turn this off and have the application 
loaded

only once?

Regards,
Marcin Okraszewski


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



Directory listing in Tomcat 5.5.14.

2006-01-03 Thread anunay.ashish

Dear  All,

I am able to see the directory listings in Tomcat 4.1.30, but not in
Tomcat 5.5.14, if there are no welcome files .

Why is it so?

Thanks in advance.

Regards,
Ashish A.



The information contained in this electronic message and any attachments to 
this message are intended for the exclusive use of the addressee(s) and may 
contain proprietary, confidential or privileged information. If you are not the 
intended recipient, you should not disseminate, distribute or copy this e-mail. 
Please notify the sender immediately and destroy all copies of this message and 
any attachments.

WARNING: Computer viruses can be transmitted via email. The recipient should 
check this email and any attachments for the presence of viruses. The company 
accepts no liability for any damage caused by any virus transmitted by this 
email.

www.wipro.com

question

2006-01-03 Thread sc2

hello
how i can set the env. variables like JAVA_HOME so that tomcat can be 
start.

thank you
bye
richard


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



Re: question

2006-01-03 Thread Rafal Zawadzki
### [EMAIL PROTECTED] wrote message to users@tomcat.apache.org ###
### this is reply for: question ###
 hello
 how i can set the env. variables like JAVA_HOME so that tomcat can be
 start.
 thank you
 bye
 richard

conf/catalina.sh

-- 
Rafał Zawadzki
Deploy/Release Manager
eo Networks Sp. z o.o.


pgpgsmouYlukB.pgp
Description: PGP signature


Re: question

2006-01-03 Thread Rafal Zawadzki
### [EMAIL PROTECTED] wrote message to Tomcat Users List 
users@tomcat.apache.org 
###
### this is reply for: Re: question ###
 Linux
 in catalina.sh`?
 like
 JAVA_HOME=path ?
 bye

1. Do not top-post
2. Have you ever looked into that file?

-- 
Rafał Zawadzki
Deploy/Release Manager
eo Networks Sp. z o.o.


pgpfBY7MtCKh3.pgp
Description: PGP signature


Specifying java.library.path using Tomcat 5.5 as a Windows Service

2006-01-03 Thread Richard Toren
I want to move my webserver over to a Windows' service (it works great 
with linux, but the client is always insistent).  The problem is
that I use Berkeley DB XML which is used via JNI.  When I start tomcat 
using startTomcat.bat I need to add a line


   set JAVA_OPTS=-Djava.library.path=path

and then all works well.  The question is how to do this when using 
Tomcat installed with the Windows installer?
I can add a line for -Djava.library.path=;;; and it searches 
the path, but fails to initialize properly (log below).
Since I can get the same installation to work by adding the .bat files 
it must be something is different in the way libraries
are searched.  It may have something to do with the System.loadLibrary() 
call I don't make, but I'm not sure how to proceed
with it and I feel that I shouldn't have to make changes to my war files 
just to make my project compatible with Windows.


Thanks in advance,

Richard Toren

java.lang.UnsatisfiedLinkError: C:\Program Files\Sleepycat 
Software\Berkeley DB XML 2.2.13\bin\libdb_java43.dll: Can't find 
dependent libraries

at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(Unknown Source)
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.loadLibrary0(Unknown Source)
at java.lang.System.loadLibrary(Unknown Source)
at com.sleepycat.db.internal.db_javaJNI.clinit(db_javaJNI.java:34)
at com.sleepycat.db.internal.DbEnv.init(DbEnv.java:200)
at 
com.sleepycat.db.EnvironmentConfig.createEnvironment(EnvironmentConfig.java:738)
at 
com.sleepycat.db.EnvironmentConfig.openEnvironment(EnvironmentConfig.java:691)

at com.sleepycat.db.Environment.init(Environment.java:30)





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



Re: question

2006-01-03 Thread Rafal Zawadzki
### [EMAIL PROTECTED] wrote message to Tomcat Users List 
users@tomcat.apache.org 
###
### this is reply for: Re: question ###
 hello
 a.) Top Post?

http://www.google.com/search?q=top+postingie=UTF-8oe=UTF-8

-- 
Rafał Zawadzki
Deploy/Release Manager
eo Networks Sp. z o.o.


pgp5UJP6KUSwH.pgp
Description: PGP signature


RE: question

2006-01-03 Thread Brantley Hobbs
 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, January 03, 2006 11:10 AM
 To: Tomcat Users List
 Subject: Re: question
 
 hello a.) Top Post?

http://catb.org/~esr/jargon/html/T/top-post.html

Personally, I never had a problem with it (and will occasionally do it
myself), though you will find that some will get quite perturbed by it.

*shrug*

It's a big intarweb.  There will always be some who think you're not
using it they way they think you should.

B.

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



RE: question

2006-01-03 Thread Carl Olivier
Hi.

A lot of people on this forum Top Post.

Is this really such a big issue?

-Original Message-
From: Rafal Zawadzki [mailto:[EMAIL PROTECTED] 
Sent: 03 January 2006 16:26
To: Tomcat Users List
Subject: Re: question

### [EMAIL PROTECTED] wrote message to Tomcat Users List
users@tomcat.apache.org ### ### this is reply for: Re: question ###
 hello
 a.) Top Post?

http://www.google.com/search?q=top+postingie=UTF-8oe=UTF-8

--
Rafał Zawadzki
Deploy/Release Manager
eo Networks Sp. z o.o.


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



[OT] Top posting (was RE: question)

2006-01-03 Thread Peter Crowther
 From: Carl Olivier [mailto:[EMAIL PROTECTED] 
 A lot of people on this forum Top Post.
 
 Is this really such a big issue?

I can sum it up with the following quote:

-- snip --
A: Top posting.

Q: What's the most confusing thing about mailing list messages?
-- snip --

If I'm reading through list traffic, I cannot remember the context of
each thread, and that context may jump about as different posters
respond to different parts of a thread at different times.  *Carefully
trimmed* context, followed by a response, helps me get up to speed and
respond more quickly and possibly more accurately than I otherwise
would.  However, speaking personally, I'd rather somebody top-posted
than left ten pages of mangled context in place and added a line at the
bottom.

A message to a mailing list will get read many more times than it is
written.  Overall, time is saved if the poster makes the effort to
create a clear, communicative message.  However, the poster's time is
typically saved by not doing so, and an individual will usually only do
something if it is worthwhile to *them* rather than to the community at
large.  That's life.  I'd like to think that if I reliably construct
clear messages, regulars on the list may choose to respond to me where
they wouldn't choose to respond to a messy, mangled message*.  However,
I've not seen or done any studies to check whether this might be the
case.

- Peter

* Interested parties may wish to check the game theory literature for
repeated rounds in games, of which the most famous is probably the
repeated Prisoner's Dilemma.

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



Re: question

2006-01-03 Thread Aurélien DEHAY

Yes.

Carl Olivier wrote:

Hi.

A lot of people on this forum Top Post.

Is this really such a big issue?


Because you don't know the question the answer is related to.


Rgds.
--
Aurélien

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



RE: Specifying java.library.path using Tomcat 5.5 as a Windows Service

2006-01-03 Thread Caldarale, Charles R
 From: Richard Toren [mailto:[EMAIL PROTECTED] 
 Subject: Specifying java.library.path using Tomcat 5.5 as a 
 Windows Service
 
 The question is how to do this when using 
 Tomcat installed with the Windows installer?

Use the Java tab of bin\tomcat5w.exe to set properties when running as a
service.

Watch out for access permission problems, since processes running as a
service usually use a generic account, not the one you installed Tomcat
(or 3rd-party libraries) with.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

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



Re: Tomcat Datasource , can we define them in war file (whithout accessing to Admin console)?

2006-01-03 Thread Bruce Tong
On 12/26/05, Legolas Woodland [EMAIL PROTECTED] wrote:

 Is it possible to make a data-source without admin console ?
 I mean by defining the data-source in web.xml or in Context.xml (i think
 i read somewhere that we could put context.xml into meta-inf folder and
 it will act like Context definition in admin console).


Yes, you can define your datasource in the application's
META-INF/context.xml file. There are examples on the web, but I can provide
an example if you contact me directly. I'd post a link but I'm writing this
in a hurry.

is it mandatory that Tomcat shared library folder contain my database
 jdbc driver to have data-source ?
 I mean can we bundle , our JDBC driver inside war file and define the
 data-source in war file too ?


I've not tried that but have assumed it's possible.

--

Bruce Tong


Re: Tomcat Datasource , can we define them in war file (whithout accessing to Admin console)?

2006-01-03 Thread Andre Van Klaveren
Like Bruce said, you can define a DataSource as part of your
application's context.  It's the same format as the context definition
in server.xml except it's deployed with your application as an XML
file (context.xml) inside the META-INF directory of the WAR.

Here's a link to explain how to do it:
http://tomcat.apache.org/tomcat-5.0-doc/jndi-datasource-examples-howto.html

They don't go into using context.xml but the same instructions can be
applied to using the context.xml.



On 12/26/05, Legolas Woodland [EMAIL PROTECTED] wrote:
 Hi
 Thank you for reading my post.
 Is it possible to make a data-source without admin console ?
 I mean by defining the data-source in web.xml or in Context.xml (i think
 i read somewhere that we could put context.xml into meta-inf folder and
 it will act like Context definition in admin console).

 is it mandatory that Tomcat shared library folder contain my database
 jdbc driver to have data-source ?
 I mean can we bundle , our JDBC driver inside war file and define the
 data-source in war file too ?

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




--
Virtually,
Andre Van Klaveren
Architect III, SCP
Global Public Sector
Unisys Corporation

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



RE: deploying war to ROOT

2006-01-03 Thread Caldarale, Charles R
 From: Bahadir Yagan [mailto:[EMAIL PROTECTED] 
 Subject: deploying war to ROOT
 
 I want it to be deployet to root of the application server.
 Is it possible to deploy a WAR file that will be deployed 
 to root of tomcat server. 

The easiest way is to remove the webapps/ROOT directory and package your
app as ROOT.war under webapps.

 Should I also configure tomcat about these names?

No need to.  By default, Tomcat listens on all IP addresses for the
system it's running on. If you want different default apps for different
domains, you can use multiple Host tags in server.xml, each with its
own appBase attribute.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

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



Re: [OT] Top posting (was RE: question)

2006-01-03 Thread Wolfgang Hackl

Peter Crowther wrote:

From: Carl Olivier [mailto:[EMAIL PROTECTED] 
A lot of people on this forum Top Post.


Is this really such a big issue?
   



I can sum it up with the following quote:

-- snip --
A: Top posting.

Q: What's the most confusing thing about mailing list messages?
-- snip --



[longish explanation and field report why top posts are bad]

There are some good links providing instructions on proper posting in 
usenet and mailing lists:

http://www.netmeister.org/news/learn2quote.html
http://alt-usage-english.org/posting_quotes.html
Those who understand German can enjoy this one: http://got.to/quote

I suggest a monthly posting of a short version of this lists's FAQ (or 
just a link to http://tomcat.apache.org/faq/). It would help making this 
list more readable since it would avoid many unnecessary postings.


I do also suggest to use 'proper' (which implies a poduct from an 
organisation other than Microsoft) mail clients like Mozilla Thunderbird 
but that's just wishful thinking...


Kind regards,

Wolfgang

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



RE: [OT] Top posting (was RE: question)

2006-01-03 Thread George Sexton
Since most people use threaded mail readers that go from oldest to newest,
this isn't much of a problem for most people.

You should look for a better mail reader.

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

 -Original Message-
 From: Peter Crowther [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, January 03, 2006 9:35 AM
 To: Tomcat Users List
 Subject: [OT] Top posting (was RE: question)
 
  From: Carl Olivier [mailto:[EMAIL PROTECTED] 
  A lot of people on this forum Top Post.
  
  Is this really such a big issue?
 
 I can sum it up with the following quote:
 
 -- snip --
 A: Top posting.
 
 Q: What's the most confusing thing about mailing list messages?
 -- snip --
 
 If I'm reading through list traffic, I cannot remember the context of
 each thread, and that context may jump about as different posters
 respond to different parts of a thread at different times.  *Carefully
 trimmed* context, followed by a response, helps me get up to speed and
 respond more quickly and possibly more accurately than I otherwise
 would.  However, speaking personally, I'd rather somebody top-posted
 than left ten pages of mangled context in place and added a 
 line at the
 bottom.
 
 A message to a mailing list will get read many more times than it is
 written.  Overall, time is saved if the poster makes the effort to
 create a clear, communicative message.  However, the poster's time is
 typically saved by not doing so, and an individual will 
 usually only do
 something if it is worthwhile to *them* rather than to the 
 community at
 large.  That's life.  I'd like to think that if I reliably construct
 clear messages, regulars on the list may choose to respond to me where
 they wouldn't choose to respond to a messy, mangled message*. 
  However,
 I've not seen or done any studies to check whether this might be the
 case.
 
   - Peter
 
 * Interested parties may wish to check the game theory literature for
 repeated rounds in games, of which the most famous is probably the
 repeated Prisoner's Dilemma.
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


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



tomcat sends certain files with missing chunks

2006-01-03 Thread Hasan, Nadeem
Hi all,

I just upgraded our Tomcat installation on our dev box to 5.5.12 and I am 
seeing very strange results. Certain files are sent by Tomcat with a large hole 
in the middle. In the response header, it does report the size (Content-Length) 
correctly, but when transferring the file itself, it skips a portion somewhere 
in the middle. I am seeing this behaviour consistently with at least 2 files. I 
have a packet dump of the whole transaction that I can provide if needed.

Here is my environment:

OS: SUSE 9.3
Tomcat: 5.5.12
JRE: J2SE5 1.5.0_06

Let me know if any more information is required.

Thanks a lot.
--
Nadeem Hasan
ATLAS - Equity IT


==
Please access the attached hyperlink for an important electronic communications 
disclaimer: 

http://www.csfb.com/legal_terms/disclaimer_external_email.shtml

==


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



Re: tomcat sends certain files with missing chunks

2006-01-03 Thread Martin Gainty
did you try to run one of the pages under localhost to see if the page would 
render?
what does your tomcat log say?
Martin-
- Original Message - 
From: Hasan, Nadeem [EMAIL PROTECTED]
To: users@tomcat.apache.org
Cc: [EMAIL PROTECTED]
Sent: Tuesday, January 03, 2006 4:50 PM
Subject: tomcat sends certain files with missing chunks


 Hi all,
 
 I just upgraded our Tomcat installation on our dev box to 5.5.12 and I am 
 seeing very strange results. Certain files are sent by Tomcat with a large 
 hole in the middle. In the response header, it does report the size 
 (Content-Length) correctly, but when transferring the file itself, it skips a 
 portion somewhere in the middle. I am seeing this behaviour consistently with 
 at least 2 files. I have a packet dump of the whole transaction that I can 
 provide if needed.
 
 Here is my environment:
 
 OS: SUSE 9.3
 Tomcat: 5.5.12
 JRE: J2SE5 1.5.0_06
 
 Let me know if any more information is required.
 
 Thanks a lot.
 --
 Nadeem Hasan
 ATLAS - Equity IT
 
 
 ==
 Please access the attached hyperlink for an important electronic 
 communications disclaimer: 
 
 http://www.csfb.com/legal_terms/disclaimer_external_email.shtml
 
 ==
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


RE: [OT] Top posting (was RE: question)

2006-01-03 Thread Peter Crowther
 From: George Sexton [mailto:[EMAIL PROTECTED] 
 Since most people use threaded mail readers that go from oldest to newest, 
 this isn't much of a problem for most people.

... I'm sorry?  Which 'this' were you referring to here?  It wasn't in context, 
so I'm afraid I can't tell for sure.  I'll have to guess - another issue with 
top posting.

[scrolls down, reads his entire earlier message]

Ah.  After some research, I assume it was:

   that context may jump about as different posters 
  respond to different parts of a thread at different times.

It would appear that 'most people' have better memories than I do, then - which 
is fair enough.

 You should look for a better mail reader.

I've used plenty of different mail and news readers over the years.  I've not 
yet found one that reminds me of the context when I have jumped back (say) five 
messages in a thread, rather than (say) eight.  As always, I'd welcome any 
recommendations!

   - Peter

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

Re: How to turn of CONTEXT RELOADS??

2006-01-03 Thread Martin Gainty

something about
a watched teapot never boils

I am glad that worked for you,

najlepszy,
Martin--
- Original Message - 
From: Marcin Okraszewszki [EMAIL PROTECTED]

To: Tomcat Users List users@tomcat.apache.org
Sent: Tuesday, January 03, 2006 5:21 AM
Subject: Re: How to turn of CONTEXT RELOADS??



A read about the manager in
http://tomcat.apache.org/tomcat-5.5-doc/config/manager.html
It seems for me that it is only connected with HTTP session tracking. 
Nothing with context reloads.


But I think I've found the reason. By default if web.xml changes, Tomcat 
reloads the application, despite of reloadable attribute. I think that was 
the reason - I might have change the web.xml. I removed the 
WatchedResourceWEB-INF/web.xml/WatchedResource from context.xml and 
even if I change the web.xml, the application is not reloaded.


I hope that was really it!
Thank you for help! If you haven't pointed the conf/context.xml file, I 
would probably never cama accross it.

Marcin Okraszewski

Martin Gainty napisał(a):

Yes I believe those rules changed ever so slightly in Tomcat 5.x as your 
message indicated

the doc states
Restart persistence may be disabled by setting this [pathname] attribute 
to an empty string.

so
Manager pathname= /
should disable session object serialisation

Anyone else?
Martin-
By default, Tomcat 5.5 attempts to save all objects that are stored in 
the session object every timeit shuts downBy default, Tomcat 5.5 attempts 
to save all objects that are stored in the session object every timeit 
shuts down- Original Message - From: Marcin Okraszewszki 
[EMAIL PROTECTED]

To: Tomcat Users List users@tomcat.apache.org
Sent: Monday, January 02, 2006 10:52 AM
Subject: Re: How to turn of CONTEXT RELOADS??


I haven't set the reloadable option. Accorting to documentation, the 
default is false, so I thought I do not need to set it.


The context.xml:
Context path= cookies=false allowLinking=true
   Realm className=org.apache.catalina.realm.MemoryRealm
pathname=/var/webapps/ROOT/WEB-INF/users.xml /
/Context


And the server.xml

?xml version=1.0?
Server port=8005 shutdown=SHUTDOWN
 Listener 
className=org.apache.catalina.mbeans.ServerLifecycleListener/


 GlobalNamingResources
   !-- Used by Manager webapp --
   Resource name=UserDatabase auth=Container 
type=org.apache.catalina.UserDatabase description=User database that
can be updated and saved 
factory=org.apache.catalina.users.MemoryUserDatabaseFactory 
pathname=conf/tomcat-users.xml/

 /GlobalNamingResources

 Service name=Catalina
   Connector port=8080 address=127.0.0.1/

   Engine name=Catalina defaultHost=localhost
 Realm className=org.apache.catalina.realm.UserDatabaseRealm 
resourceName=UserDatabase/

 Host appBase=/var/webapps name=localhost/
   /Engine

 /Service
/Server


Martin Gainty napisał(a):


Marcin-

can we see contents of your
/META-INF/context.xml
specifically the value of the reloadable option

dziekuje,
Martin-


Hi,
I would like to turn off automatic context reloading in Tomcat. It is
isn't about reloadable=true context setting, because I haven't set 
it
and I do not change anything in webapp and I still I found such log 
entry:


INFO: Reloading context []

And then the application is reloaded, the context listeners get the
signal, etc. I do not want such behavior. I have no idea what makes
Tomcat to reload the context. I would like an application to be loaded
and kept there until I stop Tomcat.

Is it possible to somehow turn this off and have the application 
loaded

only once?

Regards,
Marcin Okraszewski


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




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



tomcat connection prob.

2006-01-03 Thread issac young
-- Forwarded message --
From: issac young [EMAIL PROTECTED]
Date: Jan 4, 2006 11:03 AM
Subject: tomcat connection prob.
To: users@tomcat.apache.org

i just installed the latest version of tomcat

lt only works fine for address 127.0.0.1 not even for localhost and
other pcs in the same network can't access the tomcat either ...

how can i solve the problem?

by the way my server pc got 2 ethernet cards


regards


issac


Dynamic virtual hosts

2006-01-03 Thread Brian Shacklett
I'm setting up a development environment using Apache httpd and Tomcat. 
I want to set up two different areas for each site: development and 
staging. The development area will be for constantly changing files and 
will reside in /home/[username]/development/[domain]. The staging area 
will be more for testing and bug fixing and will reside at 
/development/[domain]. What I'm trying to figure out right now is how to 
get Tomcat to work with files in both locations. I'd like 
[username].[domain].dev.myserver.tld to go to the development area of 
the specified username and [domain].staging.myserver.tld to go to the 
staging directory.


It looks like it's quite easy to do this all with Apache. A site located 
at: http://httpd.apache.org/docs/2.0/vhosts/mass.html has all the info I 
need to get it going using mod_vhost_alias and possibly mod_rewrite. I 
haven't found any information at all, however, on how to do something 
like this with Tomcat.


I'd be very grateful for any info. Also, if you've got a better idea of 
how I might set things up (especially with how to get to a specific 
user's development folder) I'd be very interested in hearing that as well.


Thanks!

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



Re: tomcat connection prob.

2006-01-03 Thread issac young
Hi *Caldarale*

Sorry for the lack of information in my post ... actually this is the first
time i use this mail list ...

so my OS is win xp + sp2 and i have disabled the firewall i am not hosting
anything right now, juz using the default tomcat web application (there is a
testing one inside i believe)... so ... the problem is that i can only
access my tomcat using 127.0.0.1 on my server ... now the localhost is also
ok ...

the problem now is .. how can i expose my tomcat server to other PCs in my
network ??? ie use other pc to access the server ...


Thx in advance


Regards


issac


On 1/4/06, Caldarale, Charles R [EMAIL PROTECTED] wrote:

  From: issac young [mailto:[EMAIL PROTECTED]
  Subject: tomcat connection prob.

  lt only works fine for address 127.0.0.1 not even for localhost and
  other pcs in the same network can't access the tomcat either ...

 You didn't bother to tell us what OS you're running on, whether you have
 a hosts file, a firewall, other network configuration strangeness, or
 even the actual error you're getting...

 - Chuck


 THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
 MATERIAL and is thus for use only by the intended recipient. If you
 received this in error, please contact the sender and delete the e-mail
 and its attachments from all computers.

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




RE: tomcat connection prob.

2006-01-03 Thread Caldarale, Charles R
 From: issac young [mailto:[EMAIL PROTECTED] 
 Subject: Re: tomcat connection prob.
 
 the problem now is .. how can i expose my tomcat server to 
 other PCs in my network ???

By default, Tomcat listens on all IP addresses configured for the box,
unless you've added an address attribute to the Connector tag you're
using.  Try doing 
   netstat -anb -p tcp
while Tomcat is running and see who's listening to what.  You should see
something like this:

Active Connections
 Proto  Local AddressForeign Address   State   PID
 TCP0.0.0.0:80   0.0.0.0:0 LISTENING   3336
 [tomcat5.exe]
 TCP0.0.0.0:443  0.0.0.0:0 LISTENING   3336
 [tomcat5.exe]
 TCP127.0.0.1:8005   0.0.0.0:0 LISTENING   3336
 [tomcat5.exe]

among other entries.  The Tomcat ones should show whatever port numbers
you have configured (default is 8005, 8009, and 8080); the one for 8005
should be using IP address 127.0.0.1, the others 0.0.0.0 (i.e., any IP
address).

Can you ping your server from other workstations on the network?

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

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



Re: How to get Windows service to recognize updated JVM

2006-01-03 Thread Mladen Turk

Use tomcat5w.exe and click on the Java tab.
Then click on the 'Use default' ckeck box,
and default JVM will be discovered from registry.
Unckeck that box again and click 'Apply'.
That's it.

Regards,
Mladen.


John Russell wrote:

When tomcat is installed as a Windows service, the following registry
value 


HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Procrun 2.0
\Tomcat5\Parameters\Java\Jvm

points to the jvm.dll for the installed JRE

e.g.

C:\Program Files\Java\jre1.5.0_06\bin\client\jvm.dll

However, if I updated my JRE this will now point to the wrong version.
I tried to make this registry key a REG_EXPAND_SZ value so I could embed
an environment variable in it, but the tomcat service is unable to read
it.  


Does anyone know of a way to keep this key up to date after a JRE
upgrade?  Thanks





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



Solution for Tomcat IIS problem

2006-01-03 Thread billw
Tolle,

I had the same problem as Paresh below.

My conclusion is that the sample workers2.properties file that is
distributed does not work.

When I changed

group=lb  to  group=lb:lb

I was fine.  Of course, now that I have gotten this far I just found out
that jk2 is no longer supported... so I guess I redeploy using jk.

Eternally grateful,

Bill



From: Tolle Krez [mailto:[EMAIL PROTECTED]
Sent: Monday, May 03, 2004 8:22 AM
To: Paresh Varatkar
Subject: Problem with Tomcat5 and IIS5


Hello Paresh,

try to use group:lb:lb instead of just group:lb

# define the worker
[ajp13:localhost:8009]
channel=channel.socket:localhost:8009
group=lb:lb

[uri:/gf/*]
group=lb:lb

I hope this helps.


-Original Message-
From: Paresh Varatkar
Sent: Thursday, April 29, 2004 8:25 AM
To: tomcat-user@jakarta.apache.org
Subject: Problem with Tomcat5 and IIS5
Importance: High


Hi,
I have many times made tomcat to work with iis.
This time I am getting HTTP 500 error.
I checked my jakarta filter is green but its not producing any log
In IIS log I get this.
#Date: 2004-04-28 15:16:28
#Fields: date time c-ip cs-username s-ip s-port cs-method cs-uri-stem
cs-uri-query \
sc-status cs(User-Agent)  2004-04-28 15:16:28 127.0.0.1 - 127.0.0.1 80 GET \
/jakarta/isapi_redirector2.dll - 500 \
Mozilla/4.0+(compatible;+MSIE+5.5;+Windows+NT+5.0;+T312461;+.NET+CLR+1.0.3705)
\
2004-04-28 15:16:30 127.0.0.1 - 127.0.0.1 80 GET
/jakarta/isapi_redirector2.dll - 500 \
Mozilla/4.0+(compatible;+MSIE+5.5;+Windows+NT+5.0;+T312461;+.NET+CLR+1.0.3705)
\
2004-04-28 15:16:31 127.0.0.1 - 127.0.0.1 80 GET
/jakarta/isapi_redirector2.dll - 500 \
Mozilla/4.0+(compatible;+MSIE+5.5;+Windows+NT+5.0;+T312461;+.NET+CLR+1.0.3705)

Regards
Paresh





___
My workers2.properties file is

[shm]
info=Scoreboard. Requried for reconfiguration and status with multiprocess
servers.
file=anon

# Defines a load balancer named lb. Use even if you only have one machine.
[lb:lb]

# Example socket channel, override port and host.
[channel.socket:localhost:8009]
port=8009
host=127.0.01

# define the worker
[ajp13:localhost:8009]
channel=channel.socket:localhost:8009
group=lb

# Map the Tomcat examples webapp to the Web server uri space
[uri:/gf/*]
group=lb

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

[uri:/jkstatus/*]
info=The Tomcat /jkstatus handler
group=status:

__


My server.xml connector has(I tried both redirecting to 8080 as wellas
8443, both \
gives same error)


!-- Define a non-SSL Coyote HTTP/1.1 Connector on the port specified
 during installation --
Connector
port=8080   maxThreads=150 minSpareThreads=25
maxSpareThreads=75
   enableLookups=false redirectPort=8443 acceptCount=100
   debug=0 connectionTimeout=2
   disableUploadTimeout=true /

!-- Define a SSL Coyote HTTP/1.1 Connector on port 8443 --
!--
Connector port=8443
   maxThreads=150 minSpareThreads=25 maxSpareThreads=75
   enableLookups=false disableUploadTimeout=true
   acceptCount=100 debug=0 scheme=https secure=true
  Factory clientAuth=false protocol=TLS /
/Connector
--

!-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 --
Connector port=8009
   enableLookups=false redirectPort=8080 debug=0
   protocol=AJP/1.3 /
___

My Registry property are

extensionUri=/jakarta/isapi_redirector2.dll
serverRoot=C:\Tomcat
logLevel=DEBUG
workersFile=C:\Tomcat\conf\workers2.properties
worker_mount_file=C:\Tomcat\conf\uriworkermap.properties (I know this is
not needed \
but removing this does not make any change). \
__
\

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