Troubleshooting Virtual Hosts with Tomcat 5 standalone mode...

2005-04-04 Thread Jeff Duska
I'm trying to setup a couple of virtual hosts using Tomcat in stand
alone mode. I'm having a hell of a time to get this working correctly.
I've tried several configs, but they all fail.
I started with the goal of having a user directory for each virtual
host. For example, for the sample domain1.com the appbase would be
/home/domain/webapps.
I setup my server.xml file to have the following host settings
   Host name=domain1.com debug=0 appBase=/home/domain/webapps
   unpackWARs=true autoDeploy=true
   xmlValidation=false xmlNamespaceAware=false
Context path= docBase=./
/host
This is pretty much cut and past from Tomcat: The Definitive Guide from
Safari Online. This did not work. I would get just get a blank webpage.
I then tried to update the host file. I didn't see why I'd need to do
that since my DNS setup at Mydomain.com was working for ssh. I add
domain1.com to the line for my localhost. I restarted Tomcat. No change.
I am able to run the system on port 80 using just the localhost default
settings. I figured I just did something wrong. I switched to this
directions http://www.ex-parrot.com/~pete/tomcat-vhost.html
This didn't worked either. When I looked at the requests in in Safari,
it showed this as a bad request. I can telnet domain1.com 80. When I try
GET index.jsp or index,html or /. Nothing happens. No error. It just
closed the connection as if everything was working fine. I tried lynx
from the server prompt. It gives a http 400 error, I think. It flashes
by so fast I'm not sure.
The catalina.out has no errors.
I have my DNS setup via mydomain.com dns management tool. I have my A
record pointing to the address. I don't think I need to do anything else.
I'm at a loss of what to do now to troubleshoot this problem. I searched
the mail list and the website nothing has jumped out at me. So, I hoping
some kind soul might give me some pointers. What kills me is I'm sure
this is something obvious I missed or not seeing.
Thanks,
Jeff Duska
[EMAIL PROTECTED]

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


Re: Troubleshooting Virtual Hosts with Tomcat 5 standalone mode...

2005-04-04 Thread Hein Behrens
This is in my server.xml the directory is webapps/by-m.

It works also on a linux box. It is inside the engine.

 Host name=by-m debug=0 appBase=webapps unpackWARs=true
autoDeploy=true xmlValidation=false xmlNamespaceAware=false
Context path= docBase=by-m debug=5 reloadable=true
/Context
/Host
- Original Message - 
From: Jeff Duska [EMAIL PROTECTED]
To: tomcat-user@jakarta.apache.org
Sent: Monday, April 04, 2005 7:45 PM
Subject: Troubleshooting Virtual Hosts with Tomcat 5 standalone mode...


 I'm trying to setup a couple of virtual hosts using Tomcat in stand
 alone mode. I'm having a hell of a time to get this working correctly.
 I've tried several configs, but they all fail.

 I started with the goal of having a user directory for each virtual
 host. For example, for the sample domain1.com the appbase would be
 /home/domain/webapps.

 I setup my server.xml file to have the following host settings

 Host name=domain1.com debug=0 appBase=/home/domain/webapps
 unpackWARs=true autoDeploy=true
 xmlValidation=false xmlNamespaceAware=false
 Context path= docBase=./
 /host

 This is pretty much cut and past from Tomcat: The Definitive Guide from
 Safari Online. This did not work. I would get just get a blank webpage.

 I then tried to update the host file. I didn't see why I'd need to do
 that since my DNS setup at Mydomain.com was working for ssh. I add
 domain1.com to the line for my localhost. I restarted Tomcat. No change.

 I am able to run the system on port 80 using just the localhost default
 settings. I figured I just did something wrong. I switched to this
 directions http://www.ex-parrot.com/~pete/tomcat-vhost.html

 This didn't worked either. When I looked at the requests in in Safari,
 it showed this as a bad request. I can telnet domain1.com 80. When I try
 GET index.jsp or index,html or /. Nothing happens. No error. It just
 closed the connection as if everything was working fine. I tried lynx
 from the server prompt. It gives a http 400 error, I think. It flashes
 by so fast I'm not sure.

 The catalina.out has no errors.

 I have my DNS setup via mydomain.com dns management tool. I have my A
 record pointing to the address. I don't think I need to do anything else.

 I'm at a loss of what to do now to troubleshoot this problem. I searched
 the mail list and the website nothing has jumped out at me. So, I hoping
 some kind soul might give me some pointers. What kills me is I'm sure
 this is something obvious I missed or not seeing.

 Thanks,

 Jeff Duska
 [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: Troubleshooting Virtual Hosts with Tomcat 5 standalone mode...

2005-04-04 Thread Hassan Schroeder
Jeff Duska wrote:
I'm trying to setup a couple of virtual hosts using Tomcat in stand
alone mode.

I started with the goal of having a user directory for each virtual
host. For example, for the sample domain1.com the appbase would be
/home/domain/webapps.
I setup my server.xml file to have the following host settings
   Host name=domain1.com debug=0 appBase=/home/domain/webapps
   unpackWARs=true autoDeploy=true
   xmlValidation=false xmlNamespaceAware=false
Context path= docBase=./
/host
OK, don't do that :-)
Don't put the Context elements in server.xml. Put your Host elements
there, e.g.
   Host name=oahu  appBase=/www/oahu/Host
   Host name=maui  appBase=/www/maui/Host   
   Host name=kauai appBase=/www/kauai/Host  
Then (assuming you're using the default Engine name) make directories
   $CATALINA_HOME/conf/Catalina/oahu
   $CATALINA_HOME/conf/Catalina/maui
   $CATALINA_HOME/conf/Catalina/kauai
In each of those put your Context files, as in
   $CATALINA_HOME/conf/Catalina/oahu/ROOT.xml
   $CATALINA_HOME/conf/Catalina/oahu/manager.xml
   !-- the above if you want the manager app available --
   $CATALINA_HOME/conf/Catalina/oahu/cowabunga.xml
   !-- etc... --
which will look (minimally!) like
   Context docBase=/www/oahu/ROOT
!-- define Resources, etc. --   
   /Context 
That's it. Restart tomcat. Done. See, wasn't that easy? :-)
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]


Tomcat at Standalone

2005-03-04 Thread Anderson, M. Paul
This question must have been asked a million times but I can't seem to
find any information on it - any advice would be appreciated.

I need to stand up a web site that will only serve jsp and servlets.  I
suspect the number of concurrent users will be no more than 10, but it
could possibly grow in the future.

Here are my questions:

What is industry best practice for setting up a jsp/servlet site that
will not require any static HTML pages?

Can Tomcat be reliably used as standalone for this purpose?  

Is this the normal configuration for this type of site?

Are there known security issues with using Tomcat in standalone?

The other piece would be Apache, if it is standard practice to use it
even if you don't need to serve HTML pages.  Also, I will be doing all
of my own authentication into the site so no security features of Apache
or Tomcat will be required.

Thanks a lot for any advice or pointers!

Paul

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



RE: Tomcat at Standalone

2005-03-04 Thread Bedrijven.nl
Tomcat as a standalone is really fast,reliable and good.


-Oorspronkelijk bericht-
Van: Anderson, M. Paul [mailto:[EMAIL PROTECTED]
Verzonden: Friday, March 04, 2005 2:02 PM
Aan: Tomcat Users List
Onderwerp: Tomcat at Standalone


This question must have been asked a million times but I can't seem to
find any information on it - any advice would be appreciated.

I need to stand up a web site that will only serve jsp and servlets.  I
suspect the number of concurrent users will be no more than 10, but it
could possibly grow in the future.

Here are my questions:

What is industry best practice for setting up a jsp/servlet site that
will not require any static HTML pages?

Can Tomcat be reliably used as standalone for this purpose?  

Is this the normal configuration for this type of site?

Are there known security issues with using Tomcat in standalone?

The other piece would be Apache, if it is standard practice to use it
even if you don't need to serve HTML pages.  Also, I will be doing all
of my own authentication into the site so no security features of Apache
or Tomcat will be required.

Thanks a lot for any advice or pointers!

Paul

-
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 at Standalone

2005-03-04 Thread Randall Svancara
I will attempt to answer you questions as best I can.

Your file structure of your site will typically look something like this

$CATALINA_HOME/
  webapps/
(PLACE YOUR WEBAPPS HERE)
 
common/
lib/
  conf/
  Catalina/
  localhost
 (CONTEXT DESCRIPTER GOES HERE)
  bin/
  server/

Now your web application will be placed in the webapp directory.  
This will setup as follows:

webapp/
  someapplication/
 pages/
Place all your jsp's here
 css/
Style sheets
 images/
images
 WEB-INF/
web.xml  --- need to configure this
classes/ 
   --- application specific classes
go here
  lib/
 --- application specific jars go here

Yes you can use tomcat standalone.  If you are using a unix environment,
port 80 is a priviledged port and you must either run tomcat as root (I
do not recommend this), use jscv, or Mod_JK, or Mod_Proxy.  By default,
Tomcat runs on port 8080, but this can be changed to whatever you want.

No more security issues than with any other webserver.  You need to keep
up on your patches/upgrades and monitor the security bulletins.  Don't
run it as root on a Unix box or Local System or Administrator on
Windows.

Sometimes it is easier to use the built in authentication mechanisms.
That is why developers provided this stuffto save you time and
effort.  Tomcat provides a variety of login mechanisms.  I would read up
on them to see if they fit your needs.

I hope that helps you out.  It took me a while to figure all this stuff
out and I still don't know a 1/3 of what I should.  But this list is a
great place to get info from.

Thanks

Randall




  

-Original Message-
From: Anderson, M. Paul [mailto:[EMAIL PROTECTED] 
Sent: Friday, March 04, 2005 6:02 AM
To: Tomcat Users List
Subject: Tomcat at Standalone

This question must have been asked a million times but I can't seem to
find any information on it - any advice would be appreciated.

I need to stand up a web site that will only serve jsp and servlets.  I
suspect the number of concurrent users will be no more than 10, but it
could possibly grow in the future.

Here are my questions:

What is industry best practice for setting up a jsp/servlet site that
will not require any static HTML pages?

Can Tomcat be reliably used as standalone for this purpose?  

Is this the normal configuration for this type of site?

Are there known security issues with using Tomcat in standalone?

The other piece would be Apache, if it is standard practice to use it
even if you don't need to serve HTML pages.  Also, I will be doing all
of my own authentication into the site so no security features of Apache
or Tomcat will be required.

Thanks a lot for any advice or pointers!

Paul

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



Tomcat as standalone

2004-12-12 Thread Dola Woolfe
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]



Re: Tomcat as standalone

2004-12-12 Thread Parsons Technical Services
Dola,
You will find a wealth of opinions on this.
The real answer is always a big IT DEPENDS.
Because each case is different only you can really determine this.
Some things to ask:
Is there something you are doing that Tomcat can't do unless connected to 
Apache?

Are the majority of your hits to the static content?
How many apps are running?
How will the apps and static content be managed?
And I am sure many on the list (more experienced than I) can add some more.
I currently have a small site and all is served by Tomcat. Performs fine for 
me. As Tomcat has matured it has improved to the point that it can run 
standalone in all but the most demanding situations. And again you will find 
a wide range of opinions on this.

To begin with, I think you will be fine with Tomcat alone. Unless there is a 
functionality of Apache that you need. You can always add it later if 
needed.

Just my  .02
Doug
- Original Message - 
From: Dola Woolfe [EMAIL PROTECTED]
To: Tom Cat [EMAIL PROTECTED]
Sent: Sunday, December 12, 2004 11:33 PM
Subject: Tomcat as standalone


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]


Re: Tomcat as standalone

2004-12-12 Thread Ben Souther
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]


Tomcat 4.1.30 Standalone and FOP ?

2004-04-14 Thread Philippe Couas
Hi,
 
Can i associate FOP with Tomcat 4.1.30 without Apache ??
 
Thanks
Philippe
 
Philippe COUAS

Responsable Développement

INFODEV S.A.

 


Re: Tomcat 4.1.30 Standalone and FOP ?

2004-04-14 Thread Matt Woodings
if you are refering to the jakarta Formatting Objects Processor libraries
then yes, I use them extensively for pdf report generation.  Put the FOP
jar, plus any of the XML/XSLT etc jars, in a suitable location and off you
go

Matt
- Original Message - 
From: Philippe Couas [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, April 14, 2004 11:29 AM
Subject: Tomcat 4.1.30 Standalone and FOP ?


Hi,

Can i associate FOP with Tomcat 4.1.30 without Apache ??

Thanks
Philippe

Philippe COUAS

Responsable Développement

INFODEV S.A.





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



Tomcat 5 standalone, SSL, IE problem...

2004-04-13 Thread Lawrence, Gabriel
Howdy,

I'm running tomcat 5.0.16, jdk 1.4.1_02-b06 on Solaris 8 and am running
into an issue with IE. It seems that when I use IE wihtout SSL things
work fine, but when I use IE with SSL the form posts I'm sending don't
always submit properly. I know it sounds crazy, but, I'm wondering if
there are any known incompatibilities between IE and tomcat ssl? Or any
special configuration settings I need to do in order to make IE and
Tomcat happy together?

Thanks,
-gabe

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



RE: Disabling PUT and DELETE methods in Tomcat 5 standalone

2004-03-09 Thread Shapira, Yoav

Hi,

Is there any way to prevent the server from responding to these
methods? I
ran the same scan tests on one of our Apache boxes and it can back
complete
dead on the PUT and DELETE methods i.e. it didn't respond in any way -
that's the behaviour we're looking for. Would the same not be possible
on
Tomcat standalone?

Please define completely dead more specifically: did your scans time
out?  Return with a 404 error?  Another HTTP response code?

You can do a variety of things, depending on how portable you want to
be.  I like the security-constraint approach.

Another possibility is a simple filter (javax.servlet.Filter, portable)
or Valve (tomcat-specific, but earlier in the request processing
pipeline which might be key for you, and also slightly more performant),
which simply checks the request method (HttpServletRequest#getMethod)
and rejects the request if needed in whatever way you prefer.

Going further down the customization path would be modifying the Coyote
connector itself to reject requests with certain methods.  This would be
a generalization of the current allowTrace functionality.  If you do a
nice patch for this feel free to suggest it back to us as an enhancement
;)

Yoav Shapira



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: Disabling PUT and DELETE methods in Tomcat 5 standalone

2004-03-08 Thread Adam Hardy
On 03/08/2004 10:15 AM funkster wrote:
security-constraint
web-resource-collection
web-resource-nameDisable Methods/web-resource-name
url-pattern/*/url-pattern
http-methodPUT/http-method
http-methodDELETE/http-method
/web-resource-collection
auth-constraint
role-name/role-name
/auth-constraint
/security-constraint
I was under the impression that by not including a role-name value, then
all PUT and DELETE method requests are disabled since the security
constraint cannot be linked to a role. However, the fact that it doesn't
work yet means I'm doing something wrong somewhere!
Well, you haven't disabled it. You have protected it. As far as I can 
tell, you would be required to login first, and then you would be denied 
access. (When tomcat finds out that you are not in no roles?!)

Adam
--
struts 1.1 + tomcat 5.0.16 + java 1.4.2
Linux 2.4.20 Debian
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Disabling PUT and DELETE methods in Tomcat 5 standalone

2004-03-08 Thread James Agnew
So, how would I go about actually prevent PUT and DELETE for all users,
logged in or otherwise? I've been hitting my head against this one for some
time, with no luck.  The solution needs to allow anonymous users to access
the site (i.e. no login) and still prevent PUT and DELETE methods.

Thanks, James



 On 03/08/2004 10:15 AM funkster wrote:
  security-constraint
  web-resource-collection
  web-resource-nameDisable Methods/web-resource-name
  url-pattern/*/url-pattern
  http-methodPUT/http-method
  http-methodDELETE/http-method
  /web-resource-collection
  auth-constraint
  role-name/role-name
  /auth-constraint
  /security-constraint
 
  I was under the impression that by not including a role-name value,
then
  all PUT and DELETE method requests are disabled since the security
  constraint cannot be linked to a role. However, the fact that it doesn't
  work yet means I'm doing something wrong somewhere!

 Well, you haven't disabled it. You have protected it. As far as I can
 tell, you would be required to login first, and then you would be denied
 access. (When tomcat finds out that you are not in no roles?!)

 Adam
 -- 
 struts 1.1 + tomcat 5.0.16 + java 1.4.2
 Linux 2.4.20 Debian




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



Re: Disabling PUT and DELETE methods in Tomcat 5 standalone

2004-03-08 Thread Adam Hardy
What I was implying is that you have effectively disabled it already 
this way.

Or are you able to do PUTs and DELETEs despite the security constraint? 
I'd be surprised.

Adam

On 03/08/2004 11:24 PM James Agnew wrote:
So, how would I go about actually prevent PUT and DELETE for all users,
logged in or otherwise? I've been hitting my head against this one for some
time, with no luck.  The solution needs to allow anonymous users to access
the site (i.e. no login) and still prevent PUT and DELETE methods.
Thanks, James




On 03/08/2004 10:15 AM funkster wrote:

   security-constraint
   web-resource-collection
   web-resource-nameDisable Methods/web-resource-name
   url-pattern/*/url-pattern
   http-methodPUT/http-method
   http-methodDELETE/http-method
   /web-resource-collection
   auth-constraint
   role-name/role-name
   /auth-constraint
   /security-constraint
I was under the impression that by not including a role-name value,
then

all PUT and DELETE method requests are disabled since the security
constraint cannot be linked to a role. However, the fact that it doesn't
work yet means I'm doing something wrong somewhere!
Well, you haven't disabled it. You have protected it. As far as I can
tell, you would be required to login first, and then you would be denied
access. (When tomcat finds out that you are not in no roles?!)
Adam
--
struts 1.1 + tomcat 5.0.16 + java 1.4.2
Linux 2.4.20 Debian



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



--
struts 1.1 + tomcat 5.0.16 + java 1.4.2
Linux 2.4.20 Debian
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Disabling PUT and DELETE methods in Tomcat 5 standalone

2004-03-08 Thread Mike Curwen
You've disabled it in the sense that no matter what you type in, you
will not be allowed in, but it's not a blackhole or tarpit situation
(ie: the server does NOT respond in ANY way to a PUT or DELETE request).
In the case of configuring a null role, the server still responds with
an authorization request. 

 -Original Message-
 From: Adam Hardy [mailto:[EMAIL PROTECTED] 
 Sent: Monday, March 08, 2004 4:40 PM
 To: Tomcat Users List
 Subject: Re: Disabling PUT and DELETE methods in Tomcat 5 standalone
 
 
 What I was implying is that you have effectively disabled it already 
 this way.
 
 Or are you able to do PUTs and DELETEs despite the security 
 constraint? 
 I'd be surprised.
 
 Adam
 
 On 03/08/2004 11:24 PM James Agnew wrote:
  So, how would I go about actually prevent PUT and DELETE for all 
  users, logged in or otherwise? I've been hitting my head 
 against this 
  one for some time, with no luck.  The solution needs to allow 
  anonymous users to access the site (i.e. no login) and 
 still prevent 
  PUT and DELETE methods.
  
  Thanks, James
  
  
  
  
 On 03/08/2004 10:15 AM funkster wrote:
 
 security-constraint
 web-resource-collection
 web-resource-nameDisable Methods/web-resource-name
 url-pattern/*/url-pattern
 http-methodPUT/http-method
 http-methodDELETE/http-method
 /web-resource-collection
 auth-constraint
 role-name/role-name
 /auth-constraint
 /security-constraint
 
 I was under the impression that by not including a 
 role-name value,
  
  then
  
 all PUT and DELETE method requests are disabled since the security 
 constraint cannot be linked to a role. However, the fact that it 
 doesn't work yet means I'm doing something wrong somewhere!
 
 Well, you haven't disabled it. You have protected it. As 
 far as I can 
 tell, you would be required to login first, and then you would be 
 denied access. (When tomcat finds out that you are not in 
 no roles?!)
 
 Adam
 --
 struts 1.1 + tomcat 5.0.16 + java 1.4.2
 Linux 2.4.20 Debian
 
 
  
  
  
  
 -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  
  
 
 
 -- 
 struts 1.1 + tomcat 5.0.16 + java 1.4.2
 Linux 2.4.20 Debian
 
 
 -
 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: Disabling PUT and DELETE methods in Tomcat 5 standalone

2004-03-08 Thread James Agnew
There's no implementation of the servlet doPut() and doDelete() methods so
nothing can actually be put or deleted, but that's true before even creating
the security constraint. Yet, testing for PUT and DELETE methods still show
that they're enabled. Our security scanners still flag these methods as
being available, albeit not exploitable.

Is there any way to prevent the server from responding to these methods? I
ran the same scan tests on one of our Apache boxes and it can back complete
dead on the PUT and DELETE methods i.e. it didn't respond in any way -
that's the behaviour we're looking for. Would the same not be possible on
Tomcat standalone?

Thanks, David



- Original Message - 
From: Adam Hardy [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, March 08, 2004 11:39 PM
Subject: Re: Disabling PUT and DELETE methods in Tomcat 5 standalone


 What I was implying is that you have effectively disabled it already
 this way.

 Or are you able to do PUTs and DELETEs despite the security constraint?
 I'd be surprised.

 Adam

 On 03/08/2004 11:24 PM James Agnew wrote:
  So, how would I go about actually prevent PUT and DELETE for all users,
  logged in or otherwise? I've been hitting my head against this one for
some
  time, with no luck.  The solution needs to allow anonymous users to
access
  the site (i.e. no login) and still prevent PUT and DELETE methods.
 
  Thanks, James
 
 
 
 
 On 03/08/2004 10:15 AM funkster wrote:
 
 security-constraint
 web-resource-collection
 web-resource-nameDisable Methods/web-resource-name
 url-pattern/*/url-pattern
 http-methodPUT/http-method
 http-methodDELETE/http-method
 /web-resource-collection
 auth-constraint
 role-name/role-name
 /auth-constraint
 /security-constraint
 
 I was under the impression that by not including a role-name value,
 
  then
 
 all PUT and DELETE method requests are disabled since the security
 constraint cannot be linked to a role. However, the fact that it
doesn't
 work yet means I'm doing something wrong somewhere!
 
 Well, you haven't disabled it. You have protected it. As far as I can
 tell, you would be required to login first, and then you would be denied
 access. (When tomcat finds out that you are not in no roles?!)
 
 Adam
 -- 
 struts 1.1 + tomcat 5.0.16 + java 1.4.2
 Linux 2.4.20 Debian
 
 
 
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 


 -- 
 struts 1.1 + tomcat 5.0.16 + java 1.4.2
 Linux 2.4.20 Debian


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



Disabling PUT and DELETE methods in Tomcat 5 standalone

2004-03-08 Thread funkster
Running Nessus against our server (Debian Woody + standalone Tomcat 5.0.18)
produces a security warning that the PUT and DELETE http methods are enabled
in Tomcat. Although these warning were not exploitable, I really need to
ensure that these 2 methods are completely disabled.

I've spent a good while looking into this, and this is where I'm at so far -
I've placed the following in $CATALINA_HOME/conf/web.xml

security-constraint
web-resource-collection
web-resource-nameDisable Methods/web-resource-name
url-pattern/*/url-pattern
http-methodPUT/http-method
http-methodDELETE/http-method
/web-resource-collection
auth-constraint
role-name/role-name
/auth-constraint
/security-constraint

I was under the impression that by not including a role-name value, then
all PUT and DELETE method requests are disabled since the security
constraint cannot be linked to a role. However, the fact that it doesn't
work yet means I'm doing something wrong somewhere!

Any guidance is very much appreciated.



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



Re: Tomcat 5 standalone on Linux 2.6

2004-01-08 Thread Remy Maucherat
David Rees wrote:
On Wed, January 7, 2004 1at 1:54 am, Remy Maucherat wrote:

Does anyone have stability issues on this platform (without any
LD_ASSUME_KERNEL, and with Sun JDK 1.4.2 or similar very recent VM) ?
I'm trying to compare with Redhat 9 and see if the troubles also happen
with that (cleaner) platform.
Bonus question: How's the performance / scalability ?
I've been running Linux kernels 2.6.0 on a couple of very lightly loaded
Tomcat servers without any issues.  This is running on Fedora Core 1 and
JDK 1.4.2_01-b06 (which reminds me, I should upgrade that machine to the
latest JDK, 1.4.2_03-b02).  No LD_ASSUME_KERNEL env vars set.  I also have
a Redhat 7.3 with kernel 2.6.0 server running Tomcat with JDK 1.4.2_02-b03
with no problems, but again it's a development server so no real load.
I haven't done any performance / scalability tests but theoretically it
should be a lot better than 2.4 kernels.
This was a bonus question :)
I was wondering if Tomcat 5 (or 4.1.29, it's basically the same for the 
connector) had the same issues than on Redhat 9 (with Redhat kernels) 
and therefore needed a LD_ASSUME_KERNEL. The Redhat issue occurs 
regardless of the load, so your answer clears this :) Thanks !

BTW, I'm not sure what platform you really mean by Linux 2.6 as that
isn't a specific platform, but any Linux distribution running a 2.6
kernel.
Yes, that was the question.

--
x
Rémy Maucherat
Senior Developer  Consultant
JBoss Group (Europe) SàRL
x
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Tomcat 5 standalone on Linux 2.6

2004-01-08 Thread Oscar Carrillo
I've also been running a development machine with RH9/kernel 2.6.0 using
Tomcat 4.1.29/Apache 2.0.48/mod_jk/JDK-1.4.2_03/struts/jdbc-common
pool/Postgresql-7.4.1. No real load test yet, but haven't needed to set
the LD_KERNEL_ASSUME yet.

I'm going to start working with JMeter and see if I can produce some 
benchmark results against the 2.4 kernel.

I'll be putting the setup procedure and benchmark results here:
http://daydream.stanford.edu/tomcat/install_web_services.html

What was meant by Linux 2.6? Was that Debian or Suse?

Oscar

  Does anyone have stability issues on this platform (without any
  LD_ASSUME_KERNEL, and with Sun JDK 1.4.2 or similar very recent VM) ?
  I'm trying to compare with Redhat 9 and see if the troubles also happen
  with that (cleaner) platform.
 
  Bonus question: How's the performance / scalability ?
 
 I've been running Linux kernels 2.6.0 on a couple of very lightly loaded
 Tomcat servers without any issues.  This is running on Fedora Core 1 and
 JDK 1.4.2_01-b06 (which reminds me, I should upgrade that machine to the
 latest JDK, 1.4.2_03-b02).  No LD_ASSUME_KERNEL env vars set.  I also have
 a Redhat 7.3 with kernel 2.6.0 server running Tomcat with JDK 1.4.2_02-b03
 with no problems, but again it's a development server so no real load.
 
 I haven't done any performance / scalability tests but theoretically it
 should be a lot better than 2.4 kernels.
 
 BTW, I'm not sure what platform you really mean by Linux 2.6 as that
 isn't a specific platform, but any Linux distribution running a 2.6
 kernel.
 
 -Dave
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


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



Tomcat 5 standalone on Linux 2.6

2004-01-07 Thread Remy Maucherat
Hi,

Does anyone have stability issues on this platform (without any 
LD_ASSUME_KERNEL, and with Sun JDK 1.4.2 or similar very recent VM) ? 
I'm trying to compare with Redhat 9 and see if the troubles also happen 
with that (cleaner) platform.

Bonus question: How's the performance / scalability ?

Thanks :)

--
x
Rémy Maucherat
Senior Developer  Consultant
JBoss Group (Europe) SàRL
x
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Tomcat 5 standalone on Linux 2.6

2004-01-07 Thread David Rees
On Wed, January 7, 2004 1at 1:54 am, Remy Maucherat wrote:

 Does anyone have stability issues on this platform (without any
 LD_ASSUME_KERNEL, and with Sun JDK 1.4.2 or similar very recent VM) ?
 I'm trying to compare with Redhat 9 and see if the troubles also happen
 with that (cleaner) platform.

 Bonus question: How's the performance / scalability ?

I've been running Linux kernels 2.6.0 on a couple of very lightly loaded
Tomcat servers without any issues.  This is running on Fedora Core 1 and
JDK 1.4.2_01-b06 (which reminds me, I should upgrade that machine to the
latest JDK, 1.4.2_03-b02).  No LD_ASSUME_KERNEL env vars set.  I also have
a Redhat 7.3 with kernel 2.6.0 server running Tomcat with JDK 1.4.2_02-b03
with no problems, but again it's a development server so no real load.

I haven't done any performance / scalability tests but theoretically it
should be a lot better than 2.4 kernels.

BTW, I'm not sure what platform you really mean by Linux 2.6 as that
isn't a specific platform, but any Linux distribution running a 2.6
kernel.

-Dave

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



RE: Tomcat 4.1.24 Standalone max requests serviced java exception

2003-11-26 Thread Kilic, Hakan
Hi all,

After realizing that the application bug wasn't a bug or my main culprit, I
did some checking on my machine setup. I found that Hyperthreading actually
decreased the total load Tomcat could handle. Once I turned HT off, I was
able to significantly increase the amount of load the server could handle
(my application uses a lot of jsp pages).

Just wanted to post a follow up.

-Hakan

-Original Message-
From: Kilic, Hakan [mailto:[EMAIL PROTECTED]
Sent: Friday, November 21, 2003 9:53 AM
To: 'Tomcat Users List'
Subject: RE: Tomcat 4.1.24 Standalone max requests serviced java
exception


Hi Yansheng,

That was a great link, thanks! I did happen to have an error page specified
for my application, and once I removed this, I found that another java
exception was being reported, one from my application itself, that was being
hidden by the illegalstateexception.

Thanks so much!

-Hakan Kilic

-Original Message-
From: Yansheng Lin [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 20, 2003 3:17 PM
To: 'Tomcat Users List'
Subject: RE: Tomcat 4.1.24 Standalone max requests serviced java
exception



Here is a good link explaining the error:

http://www2.real-time.com/rte-tomcat/2000/Jun/msg02488.html



-Original Message-
From: Yansheng Lin [mailto:[EMAIL PROTECTED] 
Sent: Thursday, November 20, 2003 1:12 PM
To: 'Tomcat Users List'
Subject: RE: Tomcat 4.1.24 Standalone max requests serviced java exception


I will give this a try:

I don't think this is related to the number of requests.  By default, JSP 
pages will try to create a session.  So if you call a new jsp page after 
the response has been sent committed, this is exactly what is supposed to 
happen. Are you trying to forward or redirect the reponse after it's being 
committed?

How do you test your application, btw?

-Yan

-Original Message-
From: Kilic, Hakan [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, November 19, 2003 7:47 AM
To: 'Tomcat Users List'
Subject: Tomcat 4.1.24 Standalone max requests serviced java exception


Hi all,

I'm running into this java exception only when increasing my traffic to my
Tomcat web server. I'm running Tomcat 4.1.24 Standalone, and my traffic is
about 100 concurrent connections when this happens. I'm just wondering if

a) This error is really related to reaching the max number of requests my
server can handle
b) How can I increase the number of requests my server can service, already
tinkered around with connections in the server.xml (it's a dual P3 1.4 GHz,
2G ram machine)
c) What's this java exception really mean.

2003-11-18 12:45:17 JspFactoryImpl: Exception initializing page context
java.lang.IllegalStateException: Cannot create a session after the response
has been committed
at
org.apache.coyote.tomcat4.CoyoteRequest.doGetSession(CoyoteRequest.java:1884
)
at
org.apache.coyote.tomcat4.CoyoteRequest.getSession(CoyoteRequest.java:1731)
at
org.apache.coyote.tomcat4.CoyoteRequestFacade.getSession(CoyoteRequestFacade
.java:365)
at
org.apache.coyote.tomcat4.CoyoteRequestFacade.getSession(CoyoteRequestFacade
.java:370)
at
javax.servlet.http.HttpServletRequestWrapper.getSession(HttpServletRequestWr
apper.java:268)
at
org.apache.jasper.runtime.PageContextImpl._initialize(PageContextImpl.java:1
38)
at
org.apache.jasper.runtime.PageContextImpl.initialize(PageContextImpl.java:11
4)
at
org.apache.jasper.runtime.JspFactoryImpl.internalGetPageContext(JspFactoryIm
pl.java:175)
at
org.apache.jasper.runtime.JspFactoryImpl.getPageContext(JspFactoryImpl.java:
154)
at
org.apache.jsp.core_loadtest_jsp._jspService(core_loadtest_jsp.java:33)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2
10)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.
java:684)
at
org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatch
er.java:575)
at
org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher
.java:498)
at
org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:8
22)
at org.apache.jsp.digits_jsp._jspService(digits_jsp.java:2905)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2
10)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295

RE: Tomcat 4.1.24 Standalone max requests serviced java exception

2003-11-26 Thread Shapira, Yoav

Howdy,
Thank you for posting the followup -- it's important when people
actually report results.

Expect JDK 1.5 (this is not a tomcat-specific issue) to run better on
Hyperthreaded machines.


Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Kilic, Hakan [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 26, 2003 1:48 PM
To: 'Tomcat Users List'
Subject: RE: Tomcat 4.1.24 Standalone max requests serviced java
exception

Hi all,

After realizing that the application bug wasn't a bug or my main
culprit, I
did some checking on my machine setup. I found that Hyperthreading
actually
decreased the total load Tomcat could handle. Once I turned HT off, I
was
able to significantly increase the amount of load the server could
handle
(my application uses a lot of jsp pages).

Just wanted to post a follow up.

-Hakan

-Original Message-
From: Kilic, Hakan [mailto:[EMAIL PROTECTED]
Sent: Friday, November 21, 2003 9:53 AM
To: 'Tomcat Users List'
Subject: RE: Tomcat 4.1.24 Standalone max requests serviced java
exception


Hi Yansheng,

That was a great link, thanks! I did happen to have an error page
specified
for my application, and once I removed this, I found that another java
exception was being reported, one from my application itself, that was
being
hidden by the illegalstateexception.

Thanks so much!

-Hakan Kilic

-Original Message-
From: Yansheng Lin [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 20, 2003 3:17 PM
To: 'Tomcat Users List'
Subject: RE: Tomcat 4.1.24 Standalone max requests serviced java
exception



Here is a good link explaining the error:

http://www2.real-time.com/rte-tomcat/2000/Jun/msg02488.html



-Original Message-
From: Yansheng Lin [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 20, 2003 1:12 PM
To: 'Tomcat Users List'
Subject: RE: Tomcat 4.1.24 Standalone max requests serviced java
exception


I will give this a try:

I don't think this is related to the number of requests.  By default,
JSP
pages will try to create a session.  So if you call a new jsp page
after
the response has been sent committed, this is exactly what is supposed
to
happen. Are you trying to forward or redirect the reponse after it's
being
committed?

How do you test your application, btw?

-Yan

-Original Message-
From: Kilic, Hakan [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 19, 2003 7:47 AM
To: 'Tomcat Users List'
Subject: Tomcat 4.1.24 Standalone max requests serviced java exception


Hi all,

I'm running into this java exception only when increasing my traffic to
my
Tomcat web server. I'm running Tomcat 4.1.24 Standalone, and my traffic
is
about 100 concurrent connections when this happens. I'm just wondering
if

a) This error is really related to reaching the max number of requests
my
server can handle
b) How can I increase the number of requests my server can service,
already
tinkered around with connections in the server.xml (it's a dual P3 1.4
GHz,
2G ram machine)
c) What's this java exception really mean.

2003-11-18 12:45:17 JspFactoryImpl: Exception initializing page context
java.lang.IllegalStateException: Cannot create a session after the
response
has been committed
   at
org.apache.coyote.tomcat4.CoyoteRequest.doGetSession(CoyoteRequest.java
:188
4
)
   at
org.apache.coyote.tomcat4.CoyoteRequest.getSession(CoyoteRequest.java:1
731)
   at
org.apache.coyote.tomcat4.CoyoteRequestFacade.getSession(CoyoteRequestF
acad
e
.java:365)
   at
org.apache.coyote.tomcat4.CoyoteRequestFacade.getSession(CoyoteRequestF
acad
e
.java:370)
   at
javax.servlet.http.HttpServletRequestWrapper.getSession(HttpServletRequ
estW
r
apper.java:268)
   at
org.apache.jasper.runtime.PageContextImpl._initialize(PageContextImpl.j
ava:
1
38)
   at
org.apache.jasper.runtime.PageContextImpl.initialize(PageContextImpl.ja
va:1
1
4)
   at
org.apache.jasper.runtime.JspFactoryImpl.internalGetPageContext(JspFact
oryI
m
pl.java:175)
   at
org.apache.jasper.runtime.JspFactoryImpl.getPageContext(JspFactoryImpl.
java
:
154)
   at
org.apache.jsp.core_loadtest_jsp._jspService(core_loadtest_jsp.java:33)
   at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
   at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.j
ava:
2
10)
   at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295
)
   at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
   at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispat
cher
.
java:684)
   at
org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDis
patc
h
er.java:575)
   at
org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispa
tche
r
.java:498)
   at
org.apache.jasper.runtime.JspRuntimeLibrary.include

RE: Tomcat 4.1.24 Standalone max requests serviced java exception

2003-11-21 Thread Kilic, Hakan
Hi Yansheng,

That was a great link, thanks! I did happen to have an error page specified
for my application, and once I removed this, I found that another java
exception was being reported, one from my application itself, that was being
hidden by the illegalstateexception.

Thanks so much!

-Hakan Kilic

-Original Message-
From: Yansheng Lin [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 20, 2003 3:17 PM
To: 'Tomcat Users List'
Subject: RE: Tomcat 4.1.24 Standalone max requests serviced java
exception



Here is a good link explaining the error:

http://www2.real-time.com/rte-tomcat/2000/Jun/msg02488.html



-Original Message-
From: Yansheng Lin [mailto:[EMAIL PROTECTED] 
Sent: Thursday, November 20, 2003 1:12 PM
To: 'Tomcat Users List'
Subject: RE: Tomcat 4.1.24 Standalone max requests serviced java exception


I will give this a try:

I don't think this is related to the number of requests.  By default, JSP 
pages will try to create a session.  So if you call a new jsp page after 
the response has been sent committed, this is exactly what is supposed to 
happen. Are you trying to forward or redirect the reponse after it's being 
committed?

How do you test your application, btw?

-Yan

-Original Message-
From: Kilic, Hakan [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, November 19, 2003 7:47 AM
To: 'Tomcat Users List'
Subject: Tomcat 4.1.24 Standalone max requests serviced java exception


Hi all,

I'm running into this java exception only when increasing my traffic to my
Tomcat web server. I'm running Tomcat 4.1.24 Standalone, and my traffic is
about 100 concurrent connections when this happens. I'm just wondering if

a) This error is really related to reaching the max number of requests my
server can handle
b) How can I increase the number of requests my server can service, already
tinkered around with connections in the server.xml (it's a dual P3 1.4 GHz,
2G ram machine)
c) What's this java exception really mean.

2003-11-18 12:45:17 JspFactoryImpl: Exception initializing page context
java.lang.IllegalStateException: Cannot create a session after the response
has been committed
at
org.apache.coyote.tomcat4.CoyoteRequest.doGetSession(CoyoteRequest.java:1884
)
at
org.apache.coyote.tomcat4.CoyoteRequest.getSession(CoyoteRequest.java:1731)
at
org.apache.coyote.tomcat4.CoyoteRequestFacade.getSession(CoyoteRequestFacade
.java:365)
at
org.apache.coyote.tomcat4.CoyoteRequestFacade.getSession(CoyoteRequestFacade
.java:370)
at
javax.servlet.http.HttpServletRequestWrapper.getSession(HttpServletRequestWr
apper.java:268)
at
org.apache.jasper.runtime.PageContextImpl._initialize(PageContextImpl.java:1
38)
at
org.apache.jasper.runtime.PageContextImpl.initialize(PageContextImpl.java:11
4)
at
org.apache.jasper.runtime.JspFactoryImpl.internalGetPageContext(JspFactoryIm
pl.java:175)
at
org.apache.jasper.runtime.JspFactoryImpl.getPageContext(JspFactoryImpl.java:
154)
at
org.apache.jsp.core_loadtest_jsp._jspService(core_loadtest_jsp.java:33)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2
10)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.
java:684)
at
org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatch
er.java:575)
at
org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher
.java:498)
at
org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:8
22)
at org.apache.jsp.digits_jsp._jspService(digits_jsp.java:2905)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2
10)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:256)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke

RE: Tomcat 4.1.24 Standalone max requests serviced java exception

2003-11-20 Thread Yansheng Lin
I will give this a try:

I don't think this is related to the number of requests.  By default, JSP 
pages will try to create a session.  So if you call a new jsp page after 
the response has been sent committed, this is exactly what is supposed to 
happen. Are you trying to forward or redirect the reponse after it's being 
committed?

How do you test your application, btw?

-Yan

-Original Message-
From: Kilic, Hakan [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, November 19, 2003 7:47 AM
To: 'Tomcat Users List'
Subject: Tomcat 4.1.24 Standalone max requests serviced java exception


Hi all,

I'm running into this java exception only when increasing my traffic to my
Tomcat web server. I'm running Tomcat 4.1.24 Standalone, and my traffic is
about 100 concurrent connections when this happens. I'm just wondering if

a) This error is really related to reaching the max number of requests my
server can handle
b) How can I increase the number of requests my server can service, already
tinkered around with connections in the server.xml (it's a dual P3 1.4 GHz,
2G ram machine)
c) What's this java exception really mean.

2003-11-18 12:45:17 JspFactoryImpl: Exception initializing page context
java.lang.IllegalStateException: Cannot create a session after the response
has been committed
at
org.apache.coyote.tomcat4.CoyoteRequest.doGetSession(CoyoteRequest.java:1884
)
at
org.apache.coyote.tomcat4.CoyoteRequest.getSession(CoyoteRequest.java:1731)
at
org.apache.coyote.tomcat4.CoyoteRequestFacade.getSession(CoyoteRequestFacade
.java:365)
at
org.apache.coyote.tomcat4.CoyoteRequestFacade.getSession(CoyoteRequestFacade
.java:370)
at
javax.servlet.http.HttpServletRequestWrapper.getSession(HttpServletRequestWr
apper.java:268)
at
org.apache.jasper.runtime.PageContextImpl._initialize(PageContextImpl.java:1
38)
at
org.apache.jasper.runtime.PageContextImpl.initialize(PageContextImpl.java:11
4)
at
org.apache.jasper.runtime.JspFactoryImpl.internalGetPageContext(JspFactoryIm
pl.java:175)
at
org.apache.jasper.runtime.JspFactoryImpl.getPageContext(JspFactoryImpl.java:
154)
at
org.apache.jsp.core_loadtest_jsp._jspService(core_loadtest_jsp.java:33)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2
10)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.
java:684)
at
org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatch
er.java:575)
at
org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher
.java:498)
at
org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:8
22)
at org.apache.jsp.digits_jsp._jspService(digits_jsp.java:2905)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2
10)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:256)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:191)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2416)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke

RE: Tomcat 4.1.24 Standalone max requests serviced java exception

2003-11-20 Thread Yansheng Lin

Here is a good link explaining the error:

http://www2.real-time.com/rte-tomcat/2000/Jun/msg02488.html



-Original Message-
From: Yansheng Lin [mailto:[EMAIL PROTECTED] 
Sent: Thursday, November 20, 2003 1:12 PM
To: 'Tomcat Users List'
Subject: RE: Tomcat 4.1.24 Standalone max requests serviced java exception


I will give this a try:

I don't think this is related to the number of requests.  By default, JSP 
pages will try to create a session.  So if you call a new jsp page after 
the response has been sent committed, this is exactly what is supposed to 
happen. Are you trying to forward or redirect the reponse after it's being 
committed?

How do you test your application, btw?

-Yan

-Original Message-
From: Kilic, Hakan [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, November 19, 2003 7:47 AM
To: 'Tomcat Users List'
Subject: Tomcat 4.1.24 Standalone max requests serviced java exception


Hi all,

I'm running into this java exception only when increasing my traffic to my
Tomcat web server. I'm running Tomcat 4.1.24 Standalone, and my traffic is
about 100 concurrent connections when this happens. I'm just wondering if

a) This error is really related to reaching the max number of requests my
server can handle
b) How can I increase the number of requests my server can service, already
tinkered around with connections in the server.xml (it's a dual P3 1.4 GHz,
2G ram machine)
c) What's this java exception really mean.

2003-11-18 12:45:17 JspFactoryImpl: Exception initializing page context
java.lang.IllegalStateException: Cannot create a session after the response
has been committed
at
org.apache.coyote.tomcat4.CoyoteRequest.doGetSession(CoyoteRequest.java:1884
)
at
org.apache.coyote.tomcat4.CoyoteRequest.getSession(CoyoteRequest.java:1731)
at
org.apache.coyote.tomcat4.CoyoteRequestFacade.getSession(CoyoteRequestFacade
.java:365)
at
org.apache.coyote.tomcat4.CoyoteRequestFacade.getSession(CoyoteRequestFacade
.java:370)
at
javax.servlet.http.HttpServletRequestWrapper.getSession(HttpServletRequestWr
apper.java:268)
at
org.apache.jasper.runtime.PageContextImpl._initialize(PageContextImpl.java:1
38)
at
org.apache.jasper.runtime.PageContextImpl.initialize(PageContextImpl.java:11
4)
at
org.apache.jasper.runtime.JspFactoryImpl.internalGetPageContext(JspFactoryIm
pl.java:175)
at
org.apache.jasper.runtime.JspFactoryImpl.getPageContext(JspFactoryImpl.java:
154)
at
org.apache.jsp.core_loadtest_jsp._jspService(core_loadtest_jsp.java:33)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2
10)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.
java:684)
at
org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatch
er.java:575)
at
org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher
.java:498)
at
org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:8
22)
at org.apache.jsp.digits_jsp._jspService(digits_jsp.java:2905)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2
10)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:256)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:191)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995

Tomcat 4.1.24 Standalone max requests serviced java exception

2003-11-19 Thread Kilic, Hakan
Hi all,

I'm running into this java exception only when increasing my traffic to my
Tomcat web server. I'm running Tomcat 4.1.24 Standalone, and my traffic is
about 100 concurrent connections when this happens. I'm just wondering if

a) This error is really related to reaching the max number of requests my
server can handle
b) How can I increase the number of requests my server can service, already
tinkered around with connections in the server.xml (it's a dual P3 1.4 GHz,
2G ram machine)
c) What's this java exception really mean.

2003-11-18 12:45:17 JspFactoryImpl: Exception initializing page context
java.lang.IllegalStateException: Cannot create a session after the response
has been committed
at
org.apache.coyote.tomcat4.CoyoteRequest.doGetSession(CoyoteRequest.java:1884
)
at
org.apache.coyote.tomcat4.CoyoteRequest.getSession(CoyoteRequest.java:1731)
at
org.apache.coyote.tomcat4.CoyoteRequestFacade.getSession(CoyoteRequestFacade
.java:365)
at
org.apache.coyote.tomcat4.CoyoteRequestFacade.getSession(CoyoteRequestFacade
.java:370)
at
javax.servlet.http.HttpServletRequestWrapper.getSession(HttpServletRequestWr
apper.java:268)
at
org.apache.jasper.runtime.PageContextImpl._initialize(PageContextImpl.java:1
38)
at
org.apache.jasper.runtime.PageContextImpl.initialize(PageContextImpl.java:11
4)
at
org.apache.jasper.runtime.JspFactoryImpl.internalGetPageContext(JspFactoryIm
pl.java:175)
at
org.apache.jasper.runtime.JspFactoryImpl.getPageContext(JspFactoryImpl.java:
154)
at
org.apache.jsp.core_loadtest_jsp._jspService(core_loadtest_jsp.java:33)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2
10)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.
java:684)
at
org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatch
er.java:575)
at
org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher
.java:498)
at
org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:8
22)
at org.apache.jsp.digits_jsp._jspService(digits_jsp.java:2905)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2
10)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:256)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:191)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2416)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:171)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172
)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardEngineValve.invoke

Re: Forcing strong authentication with Tomcat 4.0.6 standalone web server

2003-11-06 Thread Bill Barker
As much as Tim is trying to help, the real answer is that at the moment only
TC 5 supports configuring the cipher-suite (except that it should be
technically possible to do in 4.1.29 using JMX).  There is a chance that the
TC 5 configuration code will be back-ported to a future version of 4.1.x.

deric stroud [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Hi,

I'm trying to configure SSL on a standalone Tomcat webserver 4.0.6. and
I can't quite work out how and where to configure the server to allow
the use of strong authentication only (1024) during cipher suite
negotiation.
Does someone what lines to add to server.xml file or otherwise?

Thanks!
Deric



_
Un mot doux à envoyer? Une sortie ciné à organiser? Faites le en temps
réel avec MSN Messenger! C'est gratuit!   http://ifrance.com/_reloc/m
_
Envie de discuter en live avec vos amis ? Télécharger MSN Messenger
http://www.ifrance.com/_reloc/m la 1ère messagerie instantanée de France




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



Forcing strong authentication with Tomcat 4.0.6 standalone web server

2003-11-05 Thread deric stroud
Hi,

I'm trying to configure SSL on a standalone Tomcat webserver 4.0.6. and
I can't quite work out how and where to configure the server to allow
the use of strong authentication only (1024) during cipher suite
negotiation.
Does someone what lines to add to server.xml file or otherwise?

Thanks!
Deric



_
Un mot doux à envoyer? Une sortie ciné à organiser? Faites le en temps
réel avec MSN Messenger! C'est gratuit!   http://ifrance.com/_reloc/m
_
Envie de discuter en live avec vos amis ? Télécharger MSN Messenger
http://www.ifrance.com/_reloc/m la 1ère messagerie instantanée de France


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



Re: Forcing strong authentication with Tomcat 4.0.6 standalone web server

2003-11-05 Thread Tim Funk
http://jakarta.apache.org/tomcat/faq/security.html#https

-Tim

deric stroud wrote:

Hi,

I'm trying to configure SSL on a standalone Tomcat webserver 4.0.6. and
I can't quite work out how and where to configure the server to allow
the use of strong authentication only (1024) during cipher suite
negotiation.
Does someone what lines to add to server.xml file or otherwise?
Thanks!
Deric
 


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


[HOWTO] Tomcat 4.1.27 Standalone Jpackage RPMs

2003-10-17 Thread Randy Watler
How To Install Tomcat 4.1.27 Standalone using Jpackage RPMs
---

The Tomcat Team no longer generates monolithic RPMs for the
full or LE version of Tomcat after 4.1.24. Instead, RPMs
can be obtained from www.jpackage.org. Jpackage's apparent
goal is to generate RPMs for common Java based packages and
to standardize the installed directory structure and
environment.

Because Jpackage manages many RPMs, (at least one for each
Java library/tool), there are over 20 RPMs that make up
a working Tomcat 4.1 installation. This includes RPMs for the
j2sdk and its extensions. As with other RPM managed products,
future upgrades to Tomcat may only include one or a handfull
of RPMs to be updated. If this sounds daunting or difficult
to manage, remember that RPMs make the whole process fairly
easy.

As mentioned above, Jpackage attempts to unify the Java install
environment by repackaging JVMs/JREs into a consistent form
that allows multiple versions of Sun, Blackdown, and IBM
product RPMs to be plug compatible with other Jpackage
components like Tomcat. This eliminates many configuration
problems and makes user and service environments generally
stable. To realize this goal, some Jpackage RPM installation
scripts require that the JVM and related components be
installed using Jpackage RPMs; this includes the Tomcat 4.1
RPM. Also, there is also a Jpackage utilities RPM that must
be installed to support this install architecture.

For many reasons, (see the site FAQ for details), Jpackage
cannot distribute binary RPMs for many vendor's products or
components. However, Jpackage has created nosrc RPMs that
you manually compose, (only once), after pulling the products
binary sources from the vendor's web sites. The nosrc
designation can be misleading: by building RPMs from these
templates, downloaded binary components are not rebuilt
from Java or other sources, they are simply repackaged as
Jpackage compatible binary RPMs! For a Tomcat 4.1 install,
this process must be done for only the JVM and a few of its
extensions. Don't let this extra step color your opinion of
the Jpackage RPMs!

Here are the steps I used to install Tomcat 4.1.27 using the
Sun 1.4.2_01 j2sdk on a RedHat 8.0 server, (YMMV):

---

1. Erase any j2sdk and obsolete Tomcat RPM installs. For
example, these were the commands I used after saving any
Tomcat configuration files or webapps:

 su -
Password:
 rpm -e j2sdk-1.4.2_01-fcs
 rpm -e tomcat4-4.1.24-full.2jpp
 rm -rf /var/tomcat4
 rm -rf /etc/tomcat4
 exit

---

2. Download the following RPMs from www.jpackage.org:

ant-1.5.4-2jpp.noarch.rpm   
jaf-1.0.2-3jpp.nosrc.rpm 
jakarta-commons-beanutils-1.6.1-4jpp.noarch.rpm 
jakarta-commons-collections-2.1-4jpp.noarch.rpm 
jakarta-commons-daemon-1.0.cvs20030227-6jpp.noarch.rpm 
jakarta-commons-dbcp-1.0-4jpp.noarch.rpm   
jakarta-commons-digester-1.5-3jpp.noarch.rpm 
jakarta-commons-fileupload-1.0-1jpp.noarch.rpm 
jakarta-commons-logging-1.0.3-4jpp.noarch.rpm 
jakarta-commons-modeler-1.1-2jpp.noarch.rpm
jakarta-commons-pool-1.0.1-5jpp.noarch.rpm 
java-1.4.2-sun-1.4.2.01-7jpp.nosrc.rpm
javamail-1.3.1-1jpp.nosrc.rpm 
jpackage-utils-1.5.27-1jpp.noarch.rpm
jta-1.0.1-0.b.3jpp.nosrc.rpm   
mx4j-1.1.1-5jpp.noarch.rpm
regexp-1.3-1jpp.noarch.rpm
servletapi4-4.0.4-3jpp.noarch.rpm
tomcat4-4.1.27-2jpp.noarch.rpm
tyrex-1.0-3jpp.noarch.rpm 
xalan-j2-2.5.1-1jpp.noarch.rpm
xerces-j2-2.4.0-3jpp.noarch.rpm   
xml-commons-1.0-0.b2.6jpp.noarch.rpm 
xml-commons-apis-1.0-0.b2.6jpp.noarch.rpm 

If you wish to use an older JVM version, choose the nosrc RPM
that you wish to use; you may also need to include the following
nosrc RPMs for required extensions and libraries depending on
the JVM version:

jaas-ext-1.0.1-2jpp.nosrc.rpm 
jdbc-stdext-ext-2.0-12jpp.nosrc.rpm 
jndi-ext-1.2.1-10jpp.nosrc.rpm
jsse-ext-1.0.3.01-5jpp.nosrc.rpm
ldapjdk-4.1-5jpp.noarch.rpm
oro-2.0.7-1jpp.noarch.rpm

---

3. Download the following binary sources from the Sun j2sdk
and appropriate product web sites:

j2sdk-1_4_2_01-linux-i586.bin
jaf-1_0_2.zip
javamail-1_3_1.zip
jta-1_0_1B-classes.zip

Again, you may also need to download these if you are using
older JVM versions:

jaas-1_0_01.zip
jdbc2_0-stdext.jar
jndi-1_2_1.zip
jsse-1_0_3_02-do.zip, (or jsse-1_0_3_02-gl.zip)

---

4. Install the require Jpackage utility RPM:

 su -
Password:
 rpm -U jpackage-utils-1.5.27-1jpp.noarch.rpm
 exit

---

5. Because we are going to build binary RPMs using the nosrc
RPMs and the downloaded binary sources, we need a standard
host RPM directory structure. Note that the following RPM
building steps should be done in a user directory and not as
root on your machine! More details for these steps can be
found on the www.jpackage.org web site. Here are the commands
to prepare the RPM environment:

 mkdir ~/rpm
 mkdir ~/rpm/BUILD
 mkdir ~/rpm/RPMS
 mkdir ~/rpm/RPMS/i386
 mkdir ~/rpm/RPMS/i586

[HOWTO UPDATE] Tomcat 4.1.27 Standalone Jpackage RPMs

2003-10-17 Thread Randy Watler
How To Install Tomcat 4.1.27 Standalone using Jpackage RPMs
---

The Tomcat Team no longer generates monolithic RPMs for the
full or LE version of Tomcat after 4.1.24. Instead, RPMs
can be obtained from www.jpackage.org. Jpackage's apparent
goal is to generate RPMs for common Java based packages and
to standardize the installed directory structure and
environment.

Because Jpackage manages many RPMs, (at least one for each
Java library/tool), there are over 20 RPMs that make up
a working Tomcat 4.1 installation. This includes RPMs for the
j2sdk and its extensions. As with other RPM managed products,
future upgrades to Tomcat may only include one or a handfull
of RPMs to be updated. If this sounds daunting or difficult
to manage, remember that RPMs make the whole process fairly
easy.

As mentioned above, Jpackage attempts to unify the Java install
environment by repackaging JVMs/JREs into a consistent form
that allows multiple versions of Sun, Blackdown, and IBM
product RPMs to be plug compatible with other Jpackage
components like Tomcat. This eliminates many configuration
problems and makes user and service environments generally
stable. To realize this goal, some Jpackage RPM installation
scripts require that the JVM and related components be
installed using Jpackage RPMs; this includes the Tomcat 4.1
RPM. Also, there is also a Jpackage utilities RPM that must
be installed to support this install architecture.

For many reasons, (see the site FAQ for details), Jpackage
cannot distribute binary RPMs for many vendor's products or
components. However, Jpackage has created nosrc RPMs that
you manually compose, (only once), after pulling the products
binary sources from the vendor's web sites. The nosrc
designation can be misleading: by building RPMs from these
templates, downloaded binary components are not rebuilt
from Java or other sources, they are simply repackaged as
Jpackage compatible binary RPMs! For a Tomcat 4.1 install,
this process must be done for only the JVM and a few of its
extensions. Don't let this extra step color your opinion of
the Jpackage RPMs!

Here are the steps I used to install Tomcat 4.1.27 using the
Sun 1.4.2_01 j2sdk on a RedHat 8.0 server, (YMMV):

---

1. Erase any j2sdk and obsolete Tomcat RPM installs. For
example, these were the commands I used after saving any
Tomcat configuration files or webapps:

 su -
Password:
 rpm -e j2sdk-1.4.2_01-fcs
 rpm -e tomcat4-4.1.24-full.2jpp
 rm -rf /var/tomcat4
 rm -rf /etc/tomcat4
 rm -rf /var/log/tomcat4
 exit

---

2. Download the following RPMs from www.jpackage.org:

ant-1.5.4-2jpp.noarch.rpm  
jaf-1.0.2-3jpp.nosrc.rpm
jakarta-commons-beanutils-1.6.1-4jpp.noarch.rpm
jakarta-commons-collections-2.1-4jpp.noarch.rpm
jakarta-commons-daemon-1.0.cvs20030227-6jpp.noarch.rpm
jakarta-commons-dbcp-1.0-4jpp.noarch.rpm  
jakarta-commons-digester-1.5-3jpp.noarch.rpm
jakarta-commons-fileupload-1.0-1jpp.noarch.rpm
jakarta-commons-logging-1.0.3-4jpp.noarch.rpm
jakarta-commons-modeler-1.1-2jpp.noarch.rpm   
jakarta-commons-pool-1.0.1-5jpp.noarch.rpm
java-1.4.2-sun-1.4.2.01-7jpp.nosrc.rpm
javamail-1.3.1-1jpp.nosrc.rpm
jpackage-utils-1.5.27-1jpp.noarch.rpm
jta-1.0.1-0.b.3jpp.nosrc.rpm  
mx4j-1.1.1-5jpp.noarch.rpm
regexp-1.3-1jpp.noarch.rpm
servletapi4-4.0.4-3jpp.noarch.rpm
tomcat4-4.1.27-2jpp.noarch.rpm
tyrex-1.0-3jpp.noarch.rpm
xalan-j2-2.5.1-1jpp.noarch.rpm
xerces-j2-2.4.0-3jpp.noarch.rpm  
xml-commons-1.0-0.b2.6jpp.noarch.rpm
xml-commons-apis-1.0-0.b2.6jpp.noarch.rpm

If you wish to use an older JVM version, choose the nosrc RPM
that you wish to use; you may also need to include the following
nosrc RPMs for required extensions and libraries depending on
the JVM version:

jaas-ext-1.0.1-2jpp.nosrc.rpm
jdbc-stdext-ext-2.0-12jpp.nosrc.rpm
jndi-ext-1.2.1-10jpp.nosrc.rpm
jsse-ext-1.0.3.01-5jpp.nosrc.rpm
ldapjdk-4.1-5jpp.noarch.rpm
oro-2.0.7-1jpp.noarch.rpm

---

3. Download the following binary sources from the Sun j2sdk
and appropriate product web sites:

j2sdk-1_4_2_01-linux-i586.bin
jaf-1_0_2.zip
javamail-1_3_1.zip
jta-1_0_1B-classes.zip

Again, you may also need to download these if you are using
older JVM versions:

jaas-1_0_01.zip
jdbc2_0-stdext.jar
jndi-1_2_1.zip
jsse-1_0_3_02-do.zip, (or jsse-1_0_3_02-gl.zip)

---

4. Install the require Jpackage utility RPM:

 su -
Password:
 rpm -U jpackage-utils-1.5.27-1jpp.noarch.rpm
 exit

---

5. Because we are going to build binary RPMs using the nosrc
RPMs and the downloaded binary sources, we need a standard
host RPM directory structure. Note that the following RPM
building steps should be done in a user directory and not as
root on your machine! More details for these steps can be
found on the www.jpackage.org web site. Here are the commands
to prepare the RPM environment:

 mkdir ~/rpm
 mkdir ~/rpm/BUILD
 mkdir ~/rpm/RPMS
 mkdir ~/rpm/RPMS/i386
 mkdir ~/rpm/RPMS

RE: Is Tomcat a standalone Web Server also?

2003-05-27 Thread Kannan Sundararajan
Yes, just change to port 8080 to 80 .. it looks better.. 

-Original Message-
From: Agarwal, Naresh [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 27, 2003 2:36 AM
To: [EMAIL PROTECTED]
Subject: Is Tomcat a standalone Web Server also?


Hi

Can I use Tomcat as a standalone WebServer?

regards,
Naresh Agarwal

-
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: Is Tomcat a standalone Web Server also?

2003-05-27 Thread Hassan
Yes offcourse. Further, I think J2EE Server is all but Tomcat implementation
;)

Hassan
- Original Message -
From: Agarwal, Naresh [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, May 27, 2003 7:36 AM
Subject: Is Tomcat a standalone Web Server also?


Hi

Can I use Tomcat as a standalone WebServer?

regards,
Naresh Agarwal

-
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 3.2.1 Standalone with SSL , Genuine Signed Certificate

2003-03-26 Thread Anthony Nolan
Hi,

I have been having a problem with getting tomcat 3.2.1 to work with SSL in
standalone. Previously we had used Apache for our SSL, but have had some
difficulties with this lately. Due to the fact that SSL was the only thing
we used Apache for, we decided to investigate running SSL on tomcat
standalone.

If I generate a self signed certificate using the keytool in jdk 1.3, I can
run ssl on tomcat standalone. The problem arises when I then generate a
certificate signing request and send it to our certificate provider. They
return a signed certificate which I then install, according to the
instructions given both in the tomcat docs and in the keytool docs. This
seems ok, but on closer examination of the SSL connection between tomcat and
the browser, I see that it is the original self signed certificate which is
being used to run the connection, the valid (and expensive!) real
certificate is having no influence on the process. I can remove the paid for
cert and ssl still works, I can then replace it and then remove the self
signed cert and ssl breaks.

From browsing the tomcat docs and searching the archives of this list it
appears that many people have had this problem, but none of the solutions
offered have been satisfactory for me.

We may at this stage revert to letting Apache do the SSL, but we feel as
though we are very close to getting tomcat to work and this would provide us
with a neater solution.

Does anyone know of any standalone tomcat ssl installations that are using
commercially signed certificates rather than the self signed certificates
generated by the keytool?

By the way I have taken a look at the page
http://www.comu.de/docs/tomcat_ssl.jsp
which is cited several times in the documentation. It provides an
alternative to keytool for importing the keypair initially generated. This
also did not work for me, even though I followed the instructions exactly.

My operating system is windows 2000 pro, I have tried IE6 and Netscape 6 and
7 browsers. Tomcat version is 3.2.1, although I have tried 4.1.18, but not
to the same extent. We would be happy to upgrade to 4.1.18 if it will solve
our problem. With Netscape the errors are more useful, the certificate is
loaded from the server, I can examine it and all appears well, but then an
error code -12227 is displayed when I click the ok button. IE just gives a
page cannot be displayed error. The tomcat console displays the following 2
lines for each attempt to connect:

2003-03-26 11:35:02 - Ctx(  ): 400 R( /) null
2003-03-26 11:35:02 - Ctx(  ): IOException in: R( /) Socket closed

Any help on this would be greatly appreciated, not only by me as I think
there are plenty of other users out there experiencing similar difficulty.
Apologies for the long mail, but I wanted to get as much detail in as
possible.

Regards

Anthony Nolan



This E-mail and any files transmitted with it are confidential and 
intended solely for the use of the individual or entity to whom they   
are addressed. If you have received this E-mail in error please notify us immediately 
and delete this E-mail from your system. Thank you.
It is possible for data transmitted by email to be deliberately or
accidentally corrupted or intercepted. For this reason, where the
communication is by E-mail, the Big Picture Group does not accept 
any responsibility for any breach of confidence which may arise through the use of 
this medium.
Opinions, conclusions and other information in this message that do not relate to the 
official business of Big Picture Group shall be understood as neither given nor 
endorsed by it.
This footnote also confirms that this email message has been swept for the presence of 
known computer viruses.

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



RE: Virtual Domains with Tomcat 4.1.12 Standalone

2002-12-17 Thread J. Norment
webapps/host0/index.html .

On Mon, 16 Dec 2002 18:46:28 -0500, Turner, John wrote:

I'm sorry, what's wrong isn't exactly clear from your post.  What
should
http://host0.com show besides the default welcome page?

John


-Original Message-
From: J. Norment [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 16, 2002 4:27 PM
To: Tomcat Users List
Subject: Virtual Domains with Tomcat 4.1.12 Standalone

I haven't seen this question answered yet:

I'm trying to set up virtual domains with Tomcat 4.1.12.  ( Not
running
Apache )
I have modified my server.xml file as follows.

webapps/host0 contains a basic index.html .

What might I be doing wrong?
(http://host0.com shows the default index.jsp. )

Is there a way to see the information that Tomcat receives when
http://host0.com is requested?

( thanks )


!-- Define the default virtual host --
Host name=localhost debug=0 appBase=webapps
unpackWARs=true autoDeploy=true

!-- This part is added: --

Host name=host0.com debug=0 appBase=webapps/host0
unpackWARs=true
Logger className=org.apache.catalina.logger.FileLogger
directory=logs prefix=host0. suffix=.log
timestamp=true/
Context path= docBase=webapps/host0 debug=0
reloadable=true/
Context path=/test docBase=webapps/host0 debug=0
reloadable=true/
/Host

!-- End, added part. --

!-- Normally, users must authenticate themselves to each web
app
individually.  Uncomment the following entry if you would like

a user to be authenticated the first time they encounter a

resource protected by a security constraint, and then have
that
user identity maintained across *all* web applications
contained
in this virtual host. --


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

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.419 / Virus Database: 235 - Release Date: 11/13/2002


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.419 / Virus Database: 235 - Release Date: 11/13/2002


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




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




RE: Virtual Domains with Tomcat 4.1.12 Standalone

2002-12-17 Thread Turner, John

You want index.html to show instead of index.jsp?  My tongue-in-cheek
response is rename index.html to index.jsp.  Another response would be
check the welcome file element in web.xml for your webapp.

John


 -Original Message-
 From: J. Norment [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, December 17, 2002 8:21 AM
 To: Tomcat Users List
 Subject: RE: Virtual Domains with Tomcat 4.1.12 Standalone
 
 
 webapps/host0/index.html .
 
 On Mon, 16 Dec 2002 18:46:28 -0500, Turner, John wrote:
 
 I'm sorry, what's wrong isn't exactly clear from your post.  What
 should
 http://host0.com show besides the default welcome page?
 
 John
 
 
 -Original Message-
 From: J. Norment [mailto:[EMAIL PROTECTED]]
 Sent: Monday, December 16, 2002 4:27 PM
 To: Tomcat Users List
 Subject: Virtual Domains with Tomcat 4.1.12 Standalone
 
 I haven't seen this question answered yet:
 
 I'm trying to set up virtual domains with Tomcat 4.1.12.  ( Not
 running
 Apache )
 I have modified my server.xml file as follows.
 
 webapps/host0 contains a basic index.html .
 
 What might I be doing wrong?
 (http://host0.com shows the default index.jsp. )
 
 Is there a way to see the information that Tomcat receives when
 http://host0.com is requested?
 
 ( thanks )
 
 
 !-- Define the default virtual host --
 Host name=localhost debug=0 appBase=webapps
 unpackWARs=true autoDeploy=true
 
 !-- This part is added: --
 
 Host name=host0.com debug=0 appBase=webapps/host0
 unpackWARs=true
 Logger className=org.apache.catalina.logger.FileLogger
 directory=logs prefix=host0. suffix=.log
 timestamp=true/
 Context path= docBase=webapps/host0 debug=0
 reloadable=true/
 Context path=/test docBase=webapps/host0 debug=0
 reloadable=true/
 /Host
 
 !-- End, added part. --
 
 !-- Normally, users must authenticate themselves to each web
 app
 individually.  Uncomment the following entry if you would like
 
 a user to be authenticated the first time they encounter a
 
 resource protected by a security constraint, and then have
 that
 user identity maintained across *all* web applications
 contained
 in this virtual host. --
 
 
 --
 To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 ---
 Incoming mail is certified Virus Free.
 Checked by AVG anti-virus system (http://www.grisoft.com).
 Version: 6.0.419 / Virus Database: 235 - Release Date: 11/13/2002
 
 
 ---
 Outgoing mail is certified Virus Free.
 Checked by AVG anti-virus system (http://www.grisoft.com).
 Version: 6.0.419 / Virus Database: 235 - Release Date: 11/13/2002
 
 
 --
 To unsubscribe, e-mail:   mailto:tomcat-user-
 [EMAIL PROTECTED]
 For additional commands, e-mail: mailto:tomcat-user-
 [EMAIL PROTECTED]
 
 
 
 
 --
 To unsubscribe, e-mail:   
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]

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




RE: Virtual Domains with Tomcat 4.1.12 Standalone

2002-12-17 Thread J. Norment
Hmm.  I think the answer to your question is no -- I am trying to get a very basic 
version of virtual domains working.  I noted in the past that renaming index.jsp to 
index.notjsp and putting an index.html file in the /ROOT directory resulted in tomcat 
loading index.html.

So... I'm trying to load index.html in a directory where no index.jsp exists.  ( 
Should have the same result: [webapps/host0/]index.html should be loaded, assuming 
that Tomcat process the virtual host as I want it to. )

BTW: If I want a .jsp to be loaded instead of an .htm or .html (default behavior?) if 
both exist in the directory, Do I need that step with the web.xml file?



On Tue, 17 Dec 2002 08:28:11 -0500, Turner, John wrote:

You want index.html to show instead of index.jsp?  My tongue-in-cheek
response is rename index.html to index.jsp.  Another response
would be
check the welcome file element in web.xml for your webapp.

John


-Original Message-
From: J. Norment [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 17, 2002 8:21 AM
To: Tomcat Users List
Subject: RE: Virtual Domains with Tomcat 4.1.12 Standalone


webapps/host0/index.html .

On Mon, 16 Dec 2002 18:46:28 -0500, Turner, John wrote:

I'm sorry, what's wrong isn't exactly clear from your post.  What
should
http://host0.com show besides the default welcome page?

John


-Original Message-
From: J. Norment [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 16, 2002 4:27 PM
To: Tomcat Users List
Subject: Virtual Domains with Tomcat 4.1.12 Standalone

I haven't seen this question answered yet:

I'm trying to set up virtual domains with Tomcat 4.1.12.  ( Not
running
Apache )
I have modified my server.xml file as follows.

webapps/host0 contains a basic index.html .

What might I be doing wrong?
(http://host0.com shows the default index.jsp. )

Is there a way to see the information that Tomcat receives when
http://host0.com is requested?

( thanks )


!-- Define the default virtual host --
Host name=localhost debug=0 appBase=webapps
unpackWARs=true autoDeploy=true

!-- This part is added: --

Host name=host0.com debug=0 appBase=webapps/host0
unpackWARs=true
Logger className=org.apache.catalina.logger.FileLogger
directory=logs prefix=host0. suffix=.log
timestamp=true/
Context path= docBase=webapps/host0 debug=0
reloadable=true/
Context path=/test docBase=webapps/host0 debug=0
reloadable=true/
/Host

!-- End, added part. --

!-- Normally, users must authenticate themselves to each web
app
individually.  Uncomment the following entry if you would like

a user to be authenticated the first time they encounter a

resource protected by a security constraint, and then have
that
user identity maintained across *all* web applications
contained
in this virtual host. --


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

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.419 / Virus Database: 235 - Release Date: 11/13/2002


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.419 / Virus Database: 235 - Release Date: 11/13/2002


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




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

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




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




RE: Virtual Domains with Tomcat 4.1.12 Standalone

2002-12-17 Thread Turner, John

Sorry, maybe someone else can answer your question.  I'm just not
understanding the problem.  I have a RH 7.3 test box setup, with two virtual
hosts (one is localhost, the other is some.server.com), and the welcome
files display correctly.  If it isn't working for you, I would suggest that
the issue is with your virtual hosting configuration, not your welcome
file/index.html configuration.

John

 -Original Message-
 From: J. Norment [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, December 17, 2002 9:03 AM
 To: Tomcat Users List
 Subject: RE: Virtual Domains with Tomcat 4.1.12 Standalone
 
 
 Hmm.  I think the answer to your question is no -- I am 
 trying to get a very basic version of virtual domains 
 working.  I noted in the past that renaming index.jsp to 
 index.notjsp and putting an index.html file in the /ROOT 
 directory resulted in tomcat loading index.html.
 
 So... I'm trying to load index.html in a directory where no 
 index.jsp exists.  ( Should have the same result: 
 [webapps/host0/]index.html should be loaded, assuming that 
 Tomcat process the virtual host as I want it to. )
 
 BTW: If I want a .jsp to be loaded instead of an .htm or 
 .html (default behavior?) if both exist in the directory, Do 
 I need that step with the web.xml file?
 

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




RE: Virtual Domains with Tomcat 4.1.12 Standalone

2002-12-17 Thread J. Norment
That sounds almost exactly like what I'm trying to do.  Does your test box setup also 
have Apache installed?  If not, what did you do to get some.server.com showing up?


On Tue, 17 Dec 2002 09:14:08 -0500, Turner, John wrote:

Sorry, maybe someone else can answer your question.  I'm just not
understanding the problem.  I have a RH 7.3 test box setup, with two
virtual
hosts (one is localhost, the other is some.server.com), and the
welcome
files display correctly.  If it isn't working for you, I would
suggest that
the issue is with your virtual hosting configuration, not your
welcome
file/index.html configuration.

John

-Original Message-
From: J. Norment [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 17, 2002 9:03 AM
To: Tomcat Users List
Subject: RE: Virtual Domains with Tomcat 4.1.12 Standalone


Hmm.  I think the answer to your question is no -- I am
trying to get a very basic version of virtual domains
working.  I noted in the past that renaming index.jsp to
index.notjsp and putting an index.html file in the /ROOT
directory resulted in tomcat loading index.html.

So... I'm trying to load index.html in a directory where no
index.jsp exists.  ( Should have the same result:
[webapps/host0/]index.html should be loaded, assuming that
Tomcat process the virtual host as I want it to. )

BTW: If I want a .jsp to be loaded instead of an .htm or
.html (default behavior?) if both exist in the directory, Do
I need that step with the web.xml file?


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




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




RE: Virtual Domains with Tomcat 4.1.12 Standalone

2002-12-17 Thread Turner, John

It has Apache installed, but I just verified this behavior using
http://some.server.com:8080 which bypasses Apache.

If you need a virtual host setup in Tomcat, modify server.xml and add a Host
element with a name parameter set to the FQDN that will be in the URL.
Alternatively, if you want some.server.com to be treated as localhost, add
an Alias tag to the localhost Host element in server.xml.

Apache VirtualHost = Tomcat Host (roughly speaking)

Host name=some.server.com

 ...some stuff here like Contexts, etc

/Host

The server.xml that comes with Tomcat has what you need already in it.  The
default server.xml file has a single virtual host (localhost) with a three
Contexts (admin, manager, examples).  Copy what you need from that.  The
Host element for localhost has a lot of stuff in it, probably stuff you
don't need.  Just delete most of it, and you should be fine.  Alternatively,
find the localhost Host element in server.xml and change the name parameter
from localhost to your.server.com, restart Tomcat, and test it out and
see if the behavior is what you want, then just copy that.

John

 -Original Message-
 From: J. Norment [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, December 17, 2002 9:20 AM
 To: Tomcat Users List
 Subject: RE: Virtual Domains with Tomcat 4.1.12 Standalone
 
 
 That sounds almost exactly like what I'm trying to do.  Does 
 your test box setup also have Apache installed?  If not, what 
 did you do to get some.server.com showing up?
 
 
 On Tue, 17 Dec 2002 09:14:08 -0500, Turner, John wrote:
 
 Sorry, maybe someone else can answer your question.  I'm just not
 understanding the problem.  I have a RH 7.3 test box setup, with two
 virtual
 hosts (one is localhost, the other is some.server.com), and the
 welcome
 files display correctly.  If it isn't working for you, I would
 suggest that
 the issue is with your virtual hosting configuration, not your
 welcome
 file/index.html configuration.
 
 John
 

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




RE: Virtual Domains with Tomcat 4.1.12 Standalone

2002-12-17 Thread Cox, Charlie
check out conf/web.xml and its welcome-file-list. there you can set the
order of welcome pages to load.(index,jsp first, then index.html, etc)

Charlie

 -Original Message-
 From: J. Norment [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, December 17, 2002 9:03 AM
 To: Tomcat Users List
 Subject: RE: Virtual Domains with Tomcat 4.1.12 Standalone
 
 
 Hmm.  I think the answer to your question is no -- I am 
 trying to get a very basic version of virtual domains 
 working.  I noted in the past that renaming index.jsp to 
 index.notjsp and putting an index.html file in the /ROOT 
 directory resulted in tomcat loading index.html.
 
 So... I'm trying to load index.html in a directory where no 
 index.jsp exists.  ( Should have the same result: 
 [webapps/host0/]index.html should be loaded, assuming that 
 Tomcat process the virtual host as I want it to. )
 
 BTW: If I want a .jsp to be loaded instead of an .htm or 
 .html (default behavior?) if both exist in the directory, Do 
 I need that step with the web.xml file?
 
 
 
 On Tue, 17 Dec 2002 08:28:11 -0500, Turner, John wrote:
 
 You want index.html to show instead of index.jsp?  My tongue-in-cheek
 response is rename index.html to index.jsp.  Another response
 would be
 check the welcome file element in web.xml for your webapp.
 
 John
 
 
 -Original Message-
 From: J. Norment [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, December 17, 2002 8:21 AM
 To: Tomcat Users List
 Subject: RE: Virtual Domains with Tomcat 4.1.12 Standalone
 
 
 webapps/host0/index.html .
 
 On Mon, 16 Dec 2002 18:46:28 -0500, Turner, John wrote:
 
 I'm sorry, what's wrong isn't exactly clear from your post.  What
 should
 http://host0.com show besides the default welcome page?
 
 John
 
 
 -Original Message-
 From: J. Norment [mailto:[EMAIL PROTECTED]]
 Sent: Monday, December 16, 2002 4:27 PM
 To: Tomcat Users List
 Subject: Virtual Domains with Tomcat 4.1.12 Standalone
 
 I haven't seen this question answered yet:
 
 I'm trying to set up virtual domains with Tomcat 4.1.12.  ( Not
 running
 Apache )
 I have modified my server.xml file as follows.
 
 webapps/host0 contains a basic index.html .
 
 What might I be doing wrong?
 (http://host0.com shows the default index.jsp. )
 
 Is there a way to see the information that Tomcat receives when
 http://host0.com is requested?
 
 ( thanks )
 
 
 !-- Define the default virtual host --
 Host name=localhost debug=0 appBase=webapps
 unpackWARs=true autoDeploy=true
 
 !-- This part is added: --
 
 Host name=host0.com debug=0 appBase=webapps/host0
 unpackWARs=true
 Logger className=org.apache.catalina.logger.FileLogger
 directory=logs prefix=host0. suffix=.log
 timestamp=true/
 Context path= docBase=webapps/host0 debug=0
 reloadable=true/
 Context path=/test docBase=webapps/host0 debug=0
 reloadable=true/
 /Host
 
 !-- End, added part. --
 
 !-- Normally, users must authenticate themselves to each web
 app
 individually.  Uncomment the following entry if you would like
 
 a user to be authenticated the first time they encounter a
 
 resource protected by a security constraint, and then have
 that
 user identity maintained across *all* web applications
 contained
 in this virtual host. --
 
 
 --
 To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 ---
 Incoming mail is certified Virus Free.
 Checked by AVG anti-virus system (http://www.grisoft.com).
 Version: 6.0.419 / Virus Database: 235 - Release Date: 11/13/2002
 
 
 ---
 Outgoing mail is certified Virus Free.
 Checked by AVG anti-virus system (http://www.grisoft.com).
 Version: 6.0.419 / Virus Database: 235 - Release Date: 11/13/2002
 
 
 --
 To unsubscribe, e-mail:   mailto:tomcat-user-
 [EMAIL PROTECTED]
 For additional commands, e-mail: mailto:tomcat-user-
 [EMAIL PROTECTED]
 
 
 
 
 --
 To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 --
 To unsubscribe, e-mail:   mailto:tomcat-user-
 [EMAIL PROTECTED]
 For additional commands, e-mail: mailto:tomcat-user-
 [EMAIL PROTECTED]
 
 
 
 
 --
 To unsubscribe, e-mail:   
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]

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




RE: Virtual Domains with Tomcat 4.1.12 Standalone

2002-12-17 Thread J. Norment
This is the change that I had made to the server.xml file:

!-- Define the default virtual host --
Host name=localhost debug=0 appBase=webapps unpackWARs=true 
autoDeploy=true

!-- This part is added: --

Host name=host0.com debug=0 appBase=webapps/host0 unpackWARs=true
Logger className=org.apache.catalina.logger.FileLogger directory=logs 
prefix=host0. suffix=.log timestamp=true/
Context path= docBase=webapps/host0 debug=0 reloadable=true/
Context path=/test docBase=webapps/host0 debug=0 reloadable=true/
/Host

!-- End, added part. --

Is this is the change that you are referring to in adding the host tag?

If that is not working, how would I track down what is broken?
(ie, are there log files saying exactly what Tomcat is getting from the request?)

As for adding an alias for localhost, wouldn't that mean that only one host was used?
Ultimately, I'd like host0.com and host1.com to be different hosts for Tomcat.

Applying Occam's Razor, I'm pretty sure that something is screwed on my end, but not 
sure how to track it down, at this point...


On Tue, 17 Dec 2002 09:27:14 -0500, Turner, John wrote:

It has Apache installed, but I just verified this behavior using
http://some.server.com:8080 which bypasses Apache.

If you need a virtual host setup in Tomcat, modify server.xml and
add a Host
element with a name parameter set to the FQDN that will be in the
URL.
Alternatively, if you want some.server.com to be treated as
localhost, add
an Alias tag to the localhost Host element in server.xml.

Apache VirtualHost = Tomcat Host (roughly speaking)

Host name=some.server.com

...some stuff here like Contexts, etc

/Host

The server.xml that comes with Tomcat has what you need already in
it.  The
default server.xml file has a single virtual host (localhost) with a
three
Contexts (admin, manager, examples).  Copy what you need from that.
The
Host element for localhost has a lot of stuff in it, probably stuff
you
don't need.  Just delete most of it, and you should be fine.
Alternatively,
find the localhost Host element in server.xml and change the name
parameter
from localhost to your.server.com, restart Tomcat, and test it
out and
see if the behavior is what you want, then just copy that.

John

-Original Message-
From: J. Norment [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 17, 2002 9:20 AM
To: Tomcat Users List
Subject: RE: Virtual Domains with Tomcat 4.1.12 Standalone


That sounds almost exactly like what I'm trying to do.  Does
your test box setup also have Apache installed?  If not, what
did you do to get some.server.com showing up?


On Tue, 17 Dec 2002 09:14:08 -0500, Turner, John wrote:

Sorry, maybe someone else can answer your question.  I'm just not
understanding the problem.  I have a RH 7.3 test box setup, with
two
virtual
hosts (one is localhost, the other is some.server.com), and the
welcome
files display correctly.  If it isn't working for you, I would
suggest that
the issue is with your virtual hosting configuration, not your
welcome
file/index.html configuration.

John


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




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




RE: Virtual Domains with Tomcat 4.1.12 Standalone

2002-12-17 Thread J. Norment
I *don't* want to change that order.

On Tue, 17 Dec 2002 09:55:06 -0500, Cox, Charlie wrote:
check out conf/web.xml and its welcome-file-list. there you can
set the
order of welcome pages to load.(index,jsp first, then index.html,
etc)

Charlie

-Original Message-
From: J. Norment [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 17, 2002 9:03 AM
To: Tomcat Users List
Subject: RE: Virtual Domains with Tomcat 4.1.12 Standalone


Hmm.  I think the answer to your question is no -- I am
trying to get a very basic version of virtual domains
working.  I noted in the past that renaming index.jsp to
index.notjsp and putting an index.html file in the /ROOT
directory resulted in tomcat loading index.html.

So... I'm trying to load index.html in a directory where no
index.jsp exists.  ( Should have the same result:
[webapps/host0/]index.html should be loaded, assuming that
Tomcat process the virtual host as I want it to. )

BTW: If I want a .jsp to be loaded instead of an .htm or
.html (default behavior?) if both exist in the directory, Do
I need that step with the web.xml file?



On Tue, 17 Dec 2002 08:28:11 -0500, Turner, John wrote:

You want index.html to show instead of index.jsp?  My tongue-in-
cheek
response is rename index.html to index.jsp.  Another response
would be
check the welcome file element in web.xml for your webapp.

John


-Original Message-
From: J. Norment [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 17, 2002 8:21 AM
To: Tomcat Users List
Subject: RE: Virtual Domains with Tomcat 4.1.12 Standalone


webapps/host0/index.html .

On Mon, 16 Dec 2002 18:46:28 -0500, Turner, John wrote:

I'm sorry, what's wrong isn't exactly clear from your post.  
What
should
http://host0.com show besides the default welcome page?

John


-Original Message-
From: J. Norment [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 16, 2002 4:27 PM
To: Tomcat Users List
Subject: Virtual Domains with Tomcat 4.1.12 Standalone

I haven't seen this question answered yet:

I'm trying to set up virtual domains with Tomcat 4.1.12.  ( Not
running
Apache )
I have modified my server.xml file as follows.

webapps/host0 contains a basic index.html .

What might I be doing wrong?
(http://host0.com shows the default index.jsp. )

Is there a way to see the information that Tomcat receives when
http://host0.com is requested?

( thanks )


!-- Define the default virtual host --
Host name=localhost debug=0 appBase=webapps
unpackWARs=true autoDeploy=true

!-- This part is added: --

Host name=host0.com debug=0 appBase=webapps/host0
unpackWARs=true
Logger className=org.apache.catalina.logger.FileLogger
directory=logs prefix=host0. suffix=.log
timestamp=true/
Context path= docBase=webapps/host0 debug=0
reloadable=true/
Context path=/test docBase=webapps/host0 debug=0
reloadable=true/
/Host

!-- End, added part. --

!-- Normally, users must authenticate themselves to each web
app
individually.  Uncomment the following entry if you would like

a user to be authenticated the first time they encounter a

resource protected by a security constraint, and then have
that
user identity maintained across *all* web applications
contained
in this virtual host. --


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

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.419 / Virus Database: 235 - Release Date:
11/13/2002


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.419 / Virus Database: 235 - Release Date:
11/13/2002


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




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

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




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

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




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




RE: Virtual Domains with Tomcat 4.1.12 Standalone

2002-12-17 Thread Hari Venkatesan
You have two Host name defined and only one closing tag for the host. Did you change 
Engine name=Standalone defaultHost=localhost debug=99 to reflect host0.com 
in the defaultHost

Hari

-Original Message-
From: J. Norment [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, December 17, 2002 10:15 AM
To: Tomcat Users List
Subject: RE: Virtual Domains with Tomcat 4.1.12 Standalone

This is the change that I had made to the server.xml file:

!-- Define the default virtual host --
Host name=localhost debug=0 appBase=webapps unpackWARs=true 
autoDeploy=true

!-- This part is added: --

Host name=host0.com debug=0 appBase=webapps/host0 unpackWARs=true
Logger className=org.apache.catalina.logger.FileLogger directory=logs 
prefix=host0. suffix=.log timestamp=true/
Context path= docBase=webapps/host0 debug=0 reloadable=true/
Context path=/test docBase=webapps/host0 debug=0 reloadable=true/
/Host

!-- End, added part. --

Is this is the change that you are referring to in adding the host tag?

If that is not working, how would I track down what is broken?
(ie, are there log files saying exactly what Tomcat is getting from the request?)

As for adding an alias for localhost, wouldn't that mean that only one host was used?
Ultimately, I'd like host0.com and host1.com to be different hosts for Tomcat.

Applying Occam's Razor, I'm pretty sure that something is screwed on my end, but not 
sure how to track it down, at this point...


On Tue, 17 Dec 2002 09:27:14 -0500, Turner, John wrote:

It has Apache installed, but I just verified this behavior using
http://some.server.com:8080 which bypasses Apache.

If you need a virtual host setup in Tomcat, modify server.xml and
add a Host
element with a name parameter set to the FQDN that will be in the
URL.
Alternatively, if you want some.server.com to be treated as
localhost, add
an Alias tag to the localhost Host element in server.xml.

Apache VirtualHost = Tomcat Host (roughly speaking)

Host name=some.server.com

...some stuff here like Contexts, etc

/Host

The server.xml that comes with Tomcat has what you need already in
it.  The
default server.xml file has a single virtual host (localhost) with a
three
Contexts (admin, manager, examples).  Copy what you need from that.
The
Host element for localhost has a lot of stuff in it, probably stuff
you
don't need.  Just delete most of it, and you should be fine.
Alternatively,
find the localhost Host element in server.xml and change the name
parameter
from localhost to your.server.com, restart Tomcat, and test it
out and
see if the behavior is what you want, then just copy that.

John

-Original Message-
From: J. Norment [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 17, 2002 9:20 AM
To: Tomcat Users List
Subject: RE: Virtual Domains with Tomcat 4.1.12 Standalone


That sounds almost exactly like what I'm trying to do.  Does
your test box setup also have Apache installed?  If not, what
did you do to get some.server.com showing up?


On Tue, 17 Dec 2002 09:14:08 -0500, Turner, John wrote:

Sorry, maybe someone else can answer your question.  I'm just not
understanding the problem.  I have a RH 7.3 test box setup, with
two
virtual
hosts (one is localhost, the other is some.server.com), and the
welcome
files display correctly.  If it isn't working for you, I would
suggest that
the issue is with your virtual hosting configuration, not your
welcome
file/index.html configuration.

John


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




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


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




RE: Virtual Domains with Tomcat 4.1.12 Standalone

2002-12-17 Thread J. Norment
Hari:

Thanks for the response.
( For that matter, thanks for everyone's response so far... )

I want the behavior to be:

http://localhost - loads up the default welcome page, root/index.jsp
http://host0.com - loads up host0's index page
http://host1.com - loads up host1's index page

Is changing the default host part of the solution?



On Tue, 17 Dec 2002 10:22:20 -0500, Hari Venkatesan wrote:
You have two Host name defined and only one closing tag for the
host. Did you change Engine name=Standalone
defaultHost=localhost debug=99 to reflect host0.com in the
defaultHost

Hari

-Original Message-
From: J. Norment [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 17, 2002 10:15 AM
To: Tomcat Users List
Subject: RE: Virtual Domains with Tomcat 4.1.12 Standalone

This is the change that I had made to the server.xml file:

!-- Define the default virtual host --
Host name=localhost debug=0 appBase=webapps
unpackWARs=true autoDeploy=true

!-- This part is added: --

Host name=host0.com debug=0 appBase=webapps/host0
unpackWARs=true
Logger className=org.apache.catalina.logger.FileLogger
directory=logs prefix=host0. suffix=.log timestamp=true/
Context path= docBase=webapps/host0 debug=0
reloadable=true/
Context path=/test docBase=webapps/host0 debug=0
reloadable=true/
/Host

!-- End, added part. --

Is this is the change that you are referring to in adding the host
tag?

If that is not working, how would I track down what is broken?
(ie, are there log files saying exactly what Tomcat is getting from
the request?)

As for adding an alias for localhost, wouldn't that mean that only
one host was used?
Ultimately, I'd like host0.com and host1.com to be different hosts
for Tomcat.

Applying Occam's Razor, I'm pretty sure that something is screwed on
my end, but not sure how to track it down, at this point...


On Tue, 17 Dec 2002 09:27:14 -0500, Turner, John wrote:

It has Apache installed, but I just verified this behavior using
http://some.server.com:8080 which bypasses Apache.

If you need a virtual host setup in Tomcat, modify server.xml and
add a Host
element with a name parameter set to the FQDN that will be in the
URL.
Alternatively, if you want some.server.com to be treated as
localhost, add
an Alias tag to the localhost Host element in server.xml.

Apache VirtualHost = Tomcat Host (roughly speaking)

Host name=some.server.com

...some stuff here like Contexts, etc

/Host

The server.xml that comes with Tomcat has what you need already in
it.  The
default server.xml file has a single virtual host (localhost) with a
three
Contexts (admin, manager, examples).  Copy what you need from that.
The
Host element for localhost has a lot of stuff in it, probably stuff
you
don't need.  Just delete most of it, and you should be fine.
Alternatively,
find the localhost Host element in server.xml and change the name
parameter
from localhost to your.server.com, restart Tomcat, and test it
out and
see if the behavior is what you want, then just copy that.

John

-Original Message-
From: J. Norment [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 17, 2002 9:20 AM
To: Tomcat Users List
Subject: RE: Virtual Domains with Tomcat 4.1.12 Standalone


That sounds almost exactly like what I'm trying to do.  Does
your test box setup also have Apache installed?  If not, what
did you do to get some.server.com showing up?


On Tue, 17 Dec 2002 09:14:08 -0500, Turner, John wrote:

Sorry, maybe someone else can answer your question.  I'm just not
understanding the problem.  I have a RH 7.3 test box setup, with
two
virtual
hosts (one is localhost, the other is some.server.com), and the
welcome
files display correctly.  If it isn't working for you, I would
suggest that
the issue is with your virtual hosting configuration, not your
welcome
file/index.html configuration.

John


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




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


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




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




RE: Virtual Domains with Tomcat 4.1.12 Standalone

2002-12-17 Thread Hari Venkatesan
I really don't know if changing the defaulthost name is the solution. R u able to 
serve the pages with the configuration you have now without changing the defaulthost 
name or are you getting a DNS error. 

IF you want to serve pages the way you want it, then each of the host entries you 
have in server.xml should have context defined with its own Web.xml file. 

Hari

-Original Message-
From: J. Norment [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, December 17, 2002 10:36 AM
To: Tomcat Users List
Subject: RE: Virtual Domains with Tomcat 4.1.12 Standalone

Hari:

Thanks for the response.
( For that matter, thanks for everyone's response so far... )

I want the behavior to be:

http://localhost - loads up the default welcome page, root/index.jsp
http://host0.com - loads up host0's index page
http://host1.com - loads up host1's index page

Is changing the default host part of the solution?



On Tue, 17 Dec 2002 10:22:20 -0500, Hari Venkatesan wrote:
You have two Host name defined and only one closing tag for the
host. Did you change Engine name=Standalone
defaultHost=localhost debug=99 to reflect host0.com in the
defaultHost

Hari

-Original Message-
From: J. Norment [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 17, 2002 10:15 AM
To: Tomcat Users List
Subject: RE: Virtual Domains with Tomcat 4.1.12 Standalone

This is the change that I had made to the server.xml file:

!-- Define the default virtual host --
Host name=localhost debug=0 appBase=webapps
unpackWARs=true autoDeploy=true

!-- This part is added: --

Host name=host0.com debug=0 appBase=webapps/host0
unpackWARs=true
Logger className=org.apache.catalina.logger.FileLogger
directory=logs prefix=host0. suffix=.log timestamp=true/
Context path= docBase=webapps/host0 debug=0
reloadable=true/
Context path=/test docBase=webapps/host0 debug=0
reloadable=true/
/Host

!-- End, added part. --

Is this is the change that you are referring to in adding the host
tag?

If that is not working, how would I track down what is broken?
(ie, are there log files saying exactly what Tomcat is getting from
the request?)

As for adding an alias for localhost, wouldn't that mean that only
one host was used?
Ultimately, I'd like host0.com and host1.com to be different hosts
for Tomcat.

Applying Occam's Razor, I'm pretty sure that something is screwed on
my end, but not sure how to track it down, at this point...


On Tue, 17 Dec 2002 09:27:14 -0500, Turner, John wrote:

It has Apache installed, but I just verified this behavior using
http://some.server.com:8080 which bypasses Apache.

If you need a virtual host setup in Tomcat, modify server.xml and
add a Host
element with a name parameter set to the FQDN that will be in the
URL.
Alternatively, if you want some.server.com to be treated as
localhost, add
an Alias tag to the localhost Host element in server.xml.

Apache VirtualHost = Tomcat Host (roughly speaking)

Host name=some.server.com

...some stuff here like Contexts, etc

/Host

The server.xml that comes with Tomcat has what you need already in
it.  The
default server.xml file has a single virtual host (localhost) with a
three
Contexts (admin, manager, examples).  Copy what you need from that.
The
Host element for localhost has a lot of stuff in it, probably stuff
you
don't need.  Just delete most of it, and you should be fine.
Alternatively,
find the localhost Host element in server.xml and change the name
parameter
from localhost to your.server.com, restart Tomcat, and test it
out and
see if the behavior is what you want, then just copy that.

John

-Original Message-
From: J. Norment [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 17, 2002 9:20 AM
To: Tomcat Users List
Subject: RE: Virtual Domains with Tomcat 4.1.12 Standalone


That sounds almost exactly like what I'm trying to do.  Does
your test box setup also have Apache installed?  If not, what
did you do to get some.server.com showing up?


On Tue, 17 Dec 2002 09:14:08 -0500, Turner, John wrote:

Sorry, maybe someone else can answer your question.  I'm just not
understanding the problem.  I have a RH 7.3 test box setup, with
two
virtual
hosts (one is localhost, the other is some.server.com), and the
welcome
files display correctly.  If it isn't working for you, I would
suggest that
the issue is with your virtual hosting configuration, not your
welcome
file/index.html configuration.

John


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




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


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




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


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED

RE: Virtual Domains with Tomcat 4.1.12 Standalone

2002-12-17 Thread Turner, John

No, you want defaultHost to be localhost, or some other name.  defaultHost
has nothing to do with virtual hosts.  One Engine can have multiple Hosts,
each Host can have multiple Contexts.

John


 -Original Message-
 From: Hari Venkatesan [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, December 17, 2002 10:22 AM
 To: Tomcat Users List
 Subject: RE: Virtual Domains with Tomcat 4.1.12 Standalone
 
 
 You have two Host name defined and only one closing tag for 
 the host. Did you change Engine name=Standalone 
 defaultHost=localhost debug=99 to reflect host0.com 
 in the defaultHost
 
 Hari
 
 -Original Message-
 From: J. Norment [mailto:[EMAIL PROTECTED]] 
 Sent: Tuesday, December 17, 2002 10:15 AM
 To: Tomcat Users List
 Subject: RE: Virtual Domains with Tomcat 4.1.12 Standalone
 
 This is the change that I had made to the server.xml file:
 
 !-- Define the default virtual host --
 Host name=localhost debug=0 appBase=webapps 
 unpackWARs=true autoDeploy=true
 
 !-- This part is added: --
 
 Host name=host0.com debug=0 appBase=webapps/host0 
 unpackWARs=true
 Logger className=org.apache.catalina.logger.FileLogger 
 directory=logs prefix=host0. suffix=.log timestamp=true/
 Context path= docBase=webapps/host0 debug=0 
 reloadable=true/
 Context path=/test docBase=webapps/host0 debug=0 
 reloadable=true/
 /Host
 
 !-- End, added part. --
 
 Is this is the change that you are referring to in adding the 
 host tag?
 
 If that is not working, how would I track down what is broken?
 (ie, are there log files saying exactly what Tomcat is 
 getting from the request?)
 
 As for adding an alias for localhost, wouldn't that mean that 
 only one host was used?
 Ultimately, I'd like host0.com and host1.com to be different 
 hosts for Tomcat.
 
 Applying Occam's Razor, I'm pretty sure that something is 
 screwed on my end, but not sure how to track it down, at this point...
 
 
 On Tue, 17 Dec 2002 09:27:14 -0500, Turner, John wrote:
 
 It has Apache installed, but I just verified this behavior using
 http://some.server.com:8080 which bypasses Apache.
 
 If you need a virtual host setup in Tomcat, modify server.xml and
 add a Host
 element with a name parameter set to the FQDN that will be in the
 URL.
 Alternatively, if you want some.server.com to be treated as
 localhost, add
 an Alias tag to the localhost Host element in server.xml.
 
 Apache VirtualHost = Tomcat Host (roughly speaking)
 
 Host name=some.server.com
 
 ...some stuff here like Contexts, etc
 
 /Host
 
 The server.xml that comes with Tomcat has what you need already in
 it.  The
 default server.xml file has a single virtual host (localhost) with a
 three
 Contexts (admin, manager, examples).  Copy what you need from that.
 The
 Host element for localhost has a lot of stuff in it, probably stuff
 you
 don't need.  Just delete most of it, and you should be fine.
 Alternatively,
 find the localhost Host element in server.xml and change the name
 parameter
 from localhost to your.server.com, restart Tomcat, and test it
 out and
 see if the behavior is what you want, then just copy that.
 
 John
 
 -Original Message-
 From: J. Norment [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, December 17, 2002 9:20 AM
 To: Tomcat Users List
 Subject: RE: Virtual Domains with Tomcat 4.1.12 Standalone
 
 
 That sounds almost exactly like what I'm trying to do.  Does
 your test box setup also have Apache installed?  If not, what
 did you do to get some.server.com showing up?
 
 
 On Tue, 17 Dec 2002 09:14:08 -0500, Turner, John wrote:
 
 Sorry, maybe someone else can answer your question.  I'm just not
 understanding the problem.  I have a RH 7.3 test box setup, with
 two
 virtual
 hosts (one is localhost, the other is some.server.com), and the
 welcome
 files display correctly.  If it isn't working for you, I would
 suggest that
 the issue is with your virtual hosting configuration, not your
 welcome
 file/index.html configuration.
 
 John
 
 
 --
 To unsubscribe, e-mail:   mailto:tomcat-user-
 [EMAIL PROTECTED]
 For additional commands, e-mail: mailto:tomcat-user-
 [EMAIL PROTECTED]
 
 
 
 
 --
 To unsubscribe, e-mail:   
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]


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

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




RE: Virtual Domains with Tomcat 4.1.12 Standalone

2002-12-17 Thread Turner, John

No, it is not.  Leave defaultHost alone.

Setup a Host element for host0.com and host1.com.

If this is not working, either post your entire server.xml or post log file
snippets with error messages.  XML files are sensitive to properly closed
tags and elements...including just a small snippet of your server.xml file
doesn't let anyone verify that you've positioned and closed the new tags
correctly because we can't see any of the other tags.

My apologies, but this is starting to get fairly tedious.  Adding a new Host
element is a trivial exercise, all you have to do is make sure you position
it correctly and close it correctly.  There's really nothing else to do.  If
you have to, copy server.xml to server-work.xml, delete all of the comments
and other extra information, and work with the resulting smaller file until
you get the new elements closed and positioned correctly.  Server.xml is no
different than and HTML file...position and close everything properly, and
it works.

John

 -Original Message-
 From: J. Norment [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, December 17, 2002 10:36 AM
 To: Tomcat Users List
 Subject: RE: Virtual Domains with Tomcat 4.1.12 Standalone
 
 
 Hari:
 
 Thanks for the response.
 ( For that matter, thanks for everyone's response so far... )
 
 I want the behavior to be:
 
 http://localhost - loads up the default welcome page, root/index.jsp
 http://host0.com - loads up host0's index page
 http://host1.com - loads up host1's index page
 
 Is changing the default host part of the solution?
 
 
 
 On Tue, 17 Dec 2002 10:22:20 -0500, Hari Venkatesan wrote:
 You have two Host name defined and only one closing tag for the
 host. Did you change Engine name=Standalone
 defaultHost=localhost debug=99 to reflect host0.com in the
 defaultHost
 
 Hari
 
 -Original Message-
 From: J. Norment [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, December 17, 2002 10:15 AM
 To: Tomcat Users List
 Subject: RE: Virtual Domains with Tomcat 4.1.12 Standalone
 
 This is the change that I had made to the server.xml file:
 
 !-- Define the default virtual host --
 Host name=localhost debug=0 appBase=webapps
 unpackWARs=true autoDeploy=true
 
 !-- This part is added: --
 
 Host name=host0.com debug=0 appBase=webapps/host0
 unpackWARs=true
 Logger className=org.apache.catalina.logger.FileLogger
 directory=logs prefix=host0. suffix=.log timestamp=true/
 Context path= docBase=webapps/host0 debug=0
 reloadable=true/
 Context path=/test docBase=webapps/host0 debug=0
 reloadable=true/
 /Host
 
 !-- End, added part. --
 
 Is this is the change that you are referring to in adding the host
 tag?
 
 If that is not working, how would I track down what is broken?
 (ie, are there log files saying exactly what Tomcat is getting from
 the request?)
 
 As for adding an alias for localhost, wouldn't that mean that only
 one host was used?
 Ultimately, I'd like host0.com and host1.com to be different hosts
 for Tomcat.
 
 Applying Occam's Razor, I'm pretty sure that something is screwed on
 my end, but not sure how to track it down, at this point...
 
 
 On Tue, 17 Dec 2002 09:27:14 -0500, Turner, John wrote:
 
 It has Apache installed, but I just verified this behavior using
 http://some.server.com:8080 which bypasses Apache.
 
 If you need a virtual host setup in Tomcat, modify server.xml and
 add a Host
 element with a name parameter set to the FQDN that will be in the
 URL.
 Alternatively, if you want some.server.com to be treated as
 localhost, add
 an Alias tag to the localhost Host element in server.xml.
 
 Apache VirtualHost = Tomcat Host (roughly speaking)
 
 Host name=some.server.com
 
 ...some stuff here like Contexts, etc
 
 /Host
 
 The server.xml that comes with Tomcat has what you need already in
 it.  The
 default server.xml file has a single virtual host (localhost) with a
 three
 Contexts (admin, manager, examples).  Copy what you need from that.
 The
 Host element for localhost has a lot of stuff in it, probably stuff
 you
 don't need.  Just delete most of it, and you should be fine.
 Alternatively,
 find the localhost Host element in server.xml and change the name
 parameter
 from localhost to your.server.com, restart Tomcat, and test it
 out and
 see if the behavior is what you want, then just copy that.
 
 John
 
 -Original Message-
 From: J. Norment [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, December 17, 2002 9:20 AM
 To: Tomcat Users List
 Subject: RE: Virtual Domains with Tomcat 4.1.12 Standalone
 
 
 That sounds almost exactly like what I'm trying to do.  Does
 your test box setup also have Apache installed?  If not, what
 did you do to get some.server.com showing up?
 
 
 On Tue, 17 Dec 2002 09:14:08 -0500, Turner, John wrote:
 
 Sorry, maybe someone else can answer your question.  I'm just not
 understanding the problem.  I have a RH 7.3 test box setup, with
 two
 virtual
 hosts (one is localhost, the other is some.server.com), and the
 welcome
 files display correctly

RE: Virtual Domains with Tomcat 4.1.12 Standalone

2002-12-17 Thread Turner, John

Changing defaultHost is not the solution.

John


 -Original Message-
 From: Hari Venkatesan [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, December 17, 2002 10:51 AM
 To: Tomcat Users List
 Subject: RE: Virtual Domains with Tomcat 4.1.12 Standalone
 
 
 I really don't know if changing the defaulthost name is the 
 solution. R u able to serve the pages with the configuration 
 you have now without changing the defaulthost name or are you 
 getting a DNS error. 
 
 IF you want to serve pages the way you want it, then each of 
 the host entries you have in server.xml should have 
 context defined with its own Web.xml file. 
 
 Hari
 
 -Original Message-
 From: J. Norment [mailto:[EMAIL PROTECTED]] 
 Sent: Tuesday, December 17, 2002 10:36 AM
 To: Tomcat Users List
 Subject: RE: Virtual Domains with Tomcat 4.1.12 Standalone
 
 Hari:
 
 Thanks for the response.
 ( For that matter, thanks for everyone's response so far... )
 
 I want the behavior to be:
 
 http://localhost - loads up the default welcome page, root/index.jsp
 http://host0.com - loads up host0's index page
 http://host1.com - loads up host1's index page
 
 Is changing the default host part of the solution?
 
 
 
 On Tue, 17 Dec 2002 10:22:20 -0500, Hari Venkatesan wrote:
 You have two Host name defined and only one closing tag for the
 host. Did you change Engine name=Standalone
 defaultHost=localhost debug=99 to reflect host0.com in the
 defaultHost
 
 Hari
 
 -Original Message-
 From: J. Norment [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, December 17, 2002 10:15 AM
 To: Tomcat Users List
 Subject: RE: Virtual Domains with Tomcat 4.1.12 Standalone
 
 This is the change that I had made to the server.xml file:
 
 !-- Define the default virtual host --
 Host name=localhost debug=0 appBase=webapps
 unpackWARs=true autoDeploy=true
 
 !-- This part is added: --
 
 Host name=host0.com debug=0 appBase=webapps/host0
 unpackWARs=true
 Logger className=org.apache.catalina.logger.FileLogger
 directory=logs prefix=host0. suffix=.log timestamp=true/
 Context path= docBase=webapps/host0 debug=0
 reloadable=true/
 Context path=/test docBase=webapps/host0 debug=0
 reloadable=true/
 /Host
 
 !-- End, added part. --
 
 Is this is the change that you are referring to in adding the host
 tag?
 
 If that is not working, how would I track down what is broken?
 (ie, are there log files saying exactly what Tomcat is getting from
 the request?)
 
 As for adding an alias for localhost, wouldn't that mean that only
 one host was used?
 Ultimately, I'd like host0.com and host1.com to be different hosts
 for Tomcat.
 
 Applying Occam's Razor, I'm pretty sure that something is screwed on
 my end, but not sure how to track it down, at this point...
 
 
 On Tue, 17 Dec 2002 09:27:14 -0500, Turner, John wrote:
 
 It has Apache installed, but I just verified this behavior using
 http://some.server.com:8080 which bypasses Apache.
 
 If you need a virtual host setup in Tomcat, modify server.xml and
 add a Host
 element with a name parameter set to the FQDN that will be in the
 URL.
 Alternatively, if you want some.server.com to be treated as
 localhost, add
 an Alias tag to the localhost Host element in server.xml.
 
 Apache VirtualHost = Tomcat Host (roughly speaking)
 
 Host name=some.server.com
 
 ...some stuff here like Contexts, etc
 
 /Host
 
 The server.xml that comes with Tomcat has what you need already in
 it.  The
 default server.xml file has a single virtual host (localhost) with a
 three
 Contexts (admin, manager, examples).  Copy what you need from that.
 The
 Host element for localhost has a lot of stuff in it, probably stuff
 you
 don't need.  Just delete most of it, and you should be fine.
 Alternatively,
 find the localhost Host element in server.xml and change the name
 parameter
 from localhost to your.server.com, restart Tomcat, and test it
 out and
 see if the behavior is what you want, then just copy that.
 
 John
 
 -Original Message-
 From: J. Norment [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, December 17, 2002 9:20 AM
 To: Tomcat Users List
 Subject: RE: Virtual Domains with Tomcat 4.1.12 Standalone
 
 
 That sounds almost exactly like what I'm trying to do.  Does
 your test box setup also have Apache installed?  If not, what
 did you do to get some.server.com showing up?
 
 
 On Tue, 17 Dec 2002 09:14:08 -0500, Turner, John wrote:
 
 Sorry, maybe someone else can answer your question.  I'm just not
 understanding the problem.  I have a RH 7.3 test box setup, with
 two
 virtual
 hosts (one is localhost, the other is some.server.com), and the
 welcome
 files display correctly.  If it isn't working for you, I would
 suggest that
 the issue is with your virtual hosting configuration, not your
 welcome
 file/index.html configuration.
 
 John
 
 
 --
 To unsubscribe, e-mail:   mailto:tomcat-user-
 [EMAIL PROTECTED]
 For additional commands, e-mail: mailto:tomcat-user-
 [EMAIL PROTECTED]
 
 
 
 
 --
 To unsubscribe, e-mail

RE: Virtual Domains with Tomcat 4.1.12 Standalone

2002-12-17 Thread Hari Venkatesan
If I leave the defaultHost to localhost and have a host name=something.com, when I 
type in the url http://something.com/{webapp}/index.jsp, I get a server not found or 
DNS error. Do I need to define something.com anywhere else in win2000

Hari


-Original Message-
From: Turner, John [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, December 17, 2002 11:04 AM
To: 'Tomcat Users List'
Subject: RE: Virtual Domains with Tomcat 4.1.12 Standalone


Changing defaultHost is not the solution.

John


 -Original Message-
 From: Hari Venkatesan [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, December 17, 2002 10:51 AM
 To: Tomcat Users List
 Subject: RE: Virtual Domains with Tomcat 4.1.12 Standalone
 
 
 I really don't know if changing the defaulthost name is the 
 solution. R u able to serve the pages with the configuration 
 you have now without changing the defaulthost name or are you 
 getting a DNS error. 
 
 IF you want to serve pages the way you want it, then each of 
 the host entries you have in server.xml should have 
 context defined with its own Web.xml file. 
 
 Hari
 
 -Original Message-
 From: J. Norment [mailto:[EMAIL PROTECTED]] 
 Sent: Tuesday, December 17, 2002 10:36 AM
 To: Tomcat Users List
 Subject: RE: Virtual Domains with Tomcat 4.1.12 Standalone
 
 Hari:
 
 Thanks for the response.
 ( For that matter, thanks for everyone's response so far... )
 
 I want the behavior to be:
 
 http://localhost - loads up the default welcome page, root/index.jsp
 http://host0.com - loads up host0's index page
 http://host1.com - loads up host1's index page
 
 Is changing the default host part of the solution?
 
 
 
 On Tue, 17 Dec 2002 10:22:20 -0500, Hari Venkatesan wrote:
 You have two Host name defined and only one closing tag for the
 host. Did you change Engine name=Standalone
 defaultHost=localhost debug=99 to reflect host0.com in the
 defaultHost
 
 Hari
 
 -Original Message-
 From: J. Norment [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, December 17, 2002 10:15 AM
 To: Tomcat Users List
 Subject: RE: Virtual Domains with Tomcat 4.1.12 Standalone
 
 This is the change that I had made to the server.xml file:
 
 !-- Define the default virtual host --
 Host name=localhost debug=0 appBase=webapps
 unpackWARs=true autoDeploy=true
 
 !-- This part is added: --
 
 Host name=host0.com debug=0 appBase=webapps/host0
 unpackWARs=true
 Logger className=org.apache.catalina.logger.FileLogger
 directory=logs prefix=host0. suffix=.log timestamp=true/
 Context path= docBase=webapps/host0 debug=0
 reloadable=true/
 Context path=/test docBase=webapps/host0 debug=0
 reloadable=true/
 /Host
 
 !-- End, added part. --
 
 Is this is the change that you are referring to in adding the host
 tag?
 
 If that is not working, how would I track down what is broken?
 (ie, are there log files saying exactly what Tomcat is getting from
 the request?)
 
 As for adding an alias for localhost, wouldn't that mean that only
 one host was used?
 Ultimately, I'd like host0.com and host1.com to be different hosts
 for Tomcat.
 
 Applying Occam's Razor, I'm pretty sure that something is screwed on
 my end, but not sure how to track it down, at this point...
 
 
 On Tue, 17 Dec 2002 09:27:14 -0500, Turner, John wrote:
 
 It has Apache installed, but I just verified this behavior using
 http://some.server.com:8080 which bypasses Apache.
 
 If you need a virtual host setup in Tomcat, modify server.xml and
 add a Host
 element with a name parameter set to the FQDN that will be in the
 URL.
 Alternatively, if you want some.server.com to be treated as
 localhost, add
 an Alias tag to the localhost Host element in server.xml.
 
 Apache VirtualHost = Tomcat Host (roughly speaking)
 
 Host name=some.server.com
 
 ...some stuff here like Contexts, etc
 
 /Host
 
 The server.xml that comes with Tomcat has what you need already in
 it.  The
 default server.xml file has a single virtual host (localhost) with a
 three
 Contexts (admin, manager, examples).  Copy what you need from that.
 The
 Host element for localhost has a lot of stuff in it, probably stuff
 you
 don't need.  Just delete most of it, and you should be fine.
 Alternatively,
 find the localhost Host element in server.xml and change the name
 parameter
 from localhost to your.server.com, restart Tomcat, and test it
 out and
 see if the behavior is what you want, then just copy that.
 
 John
 
 -Original Message-
 From: J. Norment [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, December 17, 2002 9:20 AM
 To: Tomcat Users List
 Subject: RE: Virtual Domains with Tomcat 4.1.12 Standalone
 
 
 That sounds almost exactly like what I'm trying to do.  Does
 your test box setup also have Apache installed?  If not, what
 did you do to get some.server.com showing up?
 
 
 On Tue, 17 Dec 2002 09:14:08 -0500, Turner, John wrote:
 
 Sorry, maybe someone else can answer your question.  I'm just not
 understanding the problem.  I have a RH 7.3 test box setup, with
 two
 virtual
 hosts

RE: Virtual Domains with Tomcat 4.1.12 Standalone

2002-12-17 Thread J. Norment
Got it, John.  Thanks for your time. ( not being sarcastic... forgot to thank you 
earlier. )
( For the record, I only posted the small snippet because that was all that I changed 
from out of the box )

I'll try to verify the XML tags now.
( I've thought about this before, but I'll look at it again. )

I thought that maybe I had something screwy going on with part of the request being 
blocked, but I honestly don't know that part intimately enough to look at it and 
verify that everything is coming through ok.


On Tue, 17 Dec 2002 11:03:06 -0500, Turner, John wrote:

No, it is not.  Leave defaultHost alone.

Setup a Host element for host0.com and host1.com.

If this is not working, either post your entire server.xml or post
log file
snippets with error messages.  XML files are sensitive to properly
closed
tags and elements...including just a small snippet of your
server.xml file
doesn't let anyone verify that you've positioned and closed the new
tags
correctly because we can't see any of the other tags.

My apologies, but this is starting to get fairly tedious.  Adding a
new Host
element is a trivial exercise, all you have to do is make sure you
position
it correctly and close it correctly.  There's really nothing else to
do.  If
you have to, copy server.xml to server-work.xml, delete all of the
comments
and other extra information, and work with the resulting smaller
file until
you get the new elements closed and positioned correctly.
Server.xml is no
different than and HTML file...position and close everything
properly, and
it works.

John

-Original Message-
From: J. Norment [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 17, 2002 10:36 AM
To: Tomcat Users List
Subject: RE: Virtual Domains with Tomcat 4.1.12 Standalone


Hari:

Thanks for the response.
( For that matter, thanks for everyone's response so far... )

I want the behavior to be:

http://localhost - loads up the default welcome page,
root/index.jsp
http://host0.com - loads up host0's index page
http://host1.com - loads up host1's index page

Is changing the default host part of the solution?



On Tue, 17 Dec 2002 10:22:20 -0500, Hari Venkatesan wrote:
You have two Host name defined and only one closing tag for the
host. Did you change Engine name=Standalone
defaultHost=localhost debug=99 to reflect host0.com in the
defaultHost

Hari

-Original Message-
From: J. Norment [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 17, 2002 10:15 AM
To: Tomcat Users List
Subject: RE: Virtual Domains with Tomcat 4.1.12 Standalone

This is the change that I had made to the server.xml file:

!-- Define the default virtual host --
Host name=localhost debug=0 appBase=webapps
unpackWARs=true autoDeploy=true

!-- This part is added: --

Host name=host0.com debug=0 appBase=webapps/host0
unpackWARs=true
Logger className=org.apache.catalina.logger.FileLogger
directory=logs prefix=host0. suffix=.log timestamp=true/
Context path= docBase=webapps/host0 debug=0
reloadable=true/
Context path=/test docBase=webapps/host0 debug=0
reloadable=true/
/Host

!-- End, added part. --

Is this is the change that you are referring to in adding the host
tag?

If that is not working, how would I track down what is broken?
(ie, are there log files saying exactly what Tomcat is getting
from
the request?)

As for adding an alias for localhost, wouldn't that mean that only
one host was used?
Ultimately, I'd like host0.com and host1.com to be different
hosts
for Tomcat.

Applying Occam's Razor, I'm pretty sure that something is screwed
on
my end, but not sure how to track it down, at this point...


On Tue, 17 Dec 2002 09:27:14 -0500, Turner, John wrote:

It has Apache installed, but I just verified this behavior using
http://some.server.com:8080 which bypasses Apache.

If you need a virtual host setup in Tomcat, modify server.xml and
add a Host
element with a name parameter set to the FQDN that will be in the
URL.
Alternatively, if you want some.server.com to be treated as
localhost, add
an Alias tag to the localhost Host element in server.xml.

Apache VirtualHost = Tomcat Host (roughly speaking)

Host name=some.server.com

...some stuff here like Contexts, etc

/Host

The server.xml that comes with Tomcat has what you need already
in
it.  The
default server.xml file has a single virtual host (localhost)
with a
three
Contexts (admin, manager, examples).  Copy what you need from
that.
The
Host element for localhost has a lot of stuff in it, probably
stuff
you
don't need.  Just delete most of it, and you should be fine.
Alternatively,
find the localhost Host element in server.xml and change the name
parameter
from localhost to your.server.com, restart Tomcat, and test
it
out and
see if the behavior is what you want, then just copy that.

John

-Original Message-
From: J. Norment [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 17, 2002 9:20 AM
To: Tomcat Users List
Subject: RE: Virtual Domains with Tomcat 4.1.12 Standalone


That sounds almost exactly

RE: Virtual Domains with Tomcat 4.1.12 Standalone

2002-12-17 Thread J. Norment
Hari:

My guess is that something.com would need to have a DNS record in a nameserver  ( 
that resolves to the box that you have Tomcat on. )


On Tue, 17 Dec 2002 11:09:30 -0500, Hari Venkatesan wrote:
If I leave the defaultHost to localhost and have a host
name=something.com, when I type in the url
http://something.com/{webapp}/index.jsp, I get a server not found or
DNS error. Do I need to define something.com anywhere else in win2000

Hari


-Original Message-
From: Turner, John [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 17, 2002 11:04 AM
To: 'Tomcat Users List'
Subject: RE: Virtual Domains with Tomcat 4.1.12 Standalone


Changing defaultHost is not the solution.

John


-Original Message-
From: Hari Venkatesan [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 17, 2002 10:51 AM
To: Tomcat Users List
Subject: RE: Virtual Domains with Tomcat 4.1.12 Standalone


I really don't know if changing the defaulthost name is the
solution. R u able to serve the pages with the configuration
you have now without changing the defaulthost name or are you
getting a DNS error.

IF you want to serve pages the way you want it, then each of
the host entries you have in server.xml should have
context defined with its own Web.xml file.

Hari

-Original Message-
From: J. Norment [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 17, 2002 10:36 AM
To: Tomcat Users List
Subject: RE: Virtual Domains with Tomcat 4.1.12 Standalone

Hari:

Thanks for the response.
( For that matter, thanks for everyone's response so far... )

I want the behavior to be:

http://localhost - loads up the default welcome page,
root/index.jsp
http://host0.com - loads up host0's index page
http://host1.com - loads up host1's index page

Is changing the default host part of the solution?



On Tue, 17 Dec 2002 10:22:20 -0500, Hari Venkatesan wrote:
You have two Host name defined and only one closing tag for the
host. Did you change Engine name=Standalone
defaultHost=localhost debug=99 to reflect host0.com in the
defaultHost

Hari

-Original Message-
From: J. Norment [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 17, 2002 10:15 AM
To: Tomcat Users List
Subject: RE: Virtual Domains with Tomcat 4.1.12 Standalone

This is the change that I had made to the server.xml file:

!-- Define the default virtual host --
Host name=localhost debug=0 appBase=webapps
unpackWARs=true autoDeploy=true

!-- This part is added: --

Host name=host0.com debug=0 appBase=webapps/host0
unpackWARs=true
Logger className=org.apache.catalina.logger.FileLogger
directory=logs prefix=host0. suffix=.log timestamp=true/
Context path= docBase=webapps/host0 debug=0
reloadable=true/
Context path=/test docBase=webapps/host0 debug=0
reloadable=true/
/Host

!-- End, added part. --

Is this is the change that you are referring to in adding the host
tag?

If that is not working, how would I track down what is broken?
(ie, are there log files saying exactly what Tomcat is getting
from
the request?)

As for adding an alias for localhost, wouldn't that mean that only
one host was used?
Ultimately, I'd like host0.com and host1.com to be different
hosts
for Tomcat.

Applying Occam's Razor, I'm pretty sure that something is screwed
on
my end, but not sure how to track it down, at this point...


On Tue, 17 Dec 2002 09:27:14 -0500, Turner, John wrote:

It has Apache installed, but I just verified this behavior using
http://some.server.com:8080 which bypasses Apache.

If you need a virtual host setup in Tomcat, modify server.xml and
add a Host
element with a name parameter set to the FQDN that will be in the
URL.
Alternatively, if you want some.server.com to be treated as
localhost, add
an Alias tag to the localhost Host element in server.xml.

Apache VirtualHost = Tomcat Host (roughly speaking)

Host name=some.server.com

...some stuff here like Contexts, etc

/Host

The server.xml that comes with Tomcat has what you need already
in
it.  The
default server.xml file has a single virtual host (localhost)
with a
three
Contexts (admin, manager, examples).  Copy what you need from
that.
The
Host element for localhost has a lot of stuff in it, probably
stuff
you
don't need.  Just delete most of it, and you should be fine.
Alternatively,
find the localhost Host element in server.xml and change the name
parameter
from localhost to your.server.com, restart Tomcat, and test
it
out and
see if the behavior is what you want, then just copy that.

John

-Original Message-
From: J. Norment [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 17, 2002 9:20 AM
To: Tomcat Users List
Subject: RE: Virtual Domains with Tomcat 4.1.12 Standalone


That sounds almost exactly like what I'm trying to do.  Does
your test box setup also have Apache installed?  If not, what
did you do to get some.server.com showing up?


On Tue, 17 Dec 2002 09:14:08 -0500, Turner, John wrote:

Sorry, maybe someone else can answer your question.  I'm just
not
understanding the problem.  I have

RE: Virtual Domains with Tomcat 4.1.12 Standalone

2002-12-17 Thread Turner, John

Let's put it this way.  If you had to change defaultHost for virtual hosts
to work, then you could never have more than one virtual host, since there
is only one defaultHost.  That's obviously wrong.  Tomcat has the ability to
serve many virtual hosts, not just one. I have several virtual hosts running
on a Sun 420R at the moment, and there's only one defaultHost (and it's set
to localhost).

If you are getting server not found then something.com doesn't resolve to
an IP address.  Can you ping something.com?  If not, there's your answer.  

If something.com resolved to the IP address where Tomcat was running, and
there was no virtual host defined, then Tomcat would revert to serving the
default context from the default host.  That's what defaultHost does.

John

 -Original Message-
 From: Hari Venkatesan [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, December 17, 2002 11:10 AM
 To: Tomcat Users List
 Subject: RE: Virtual Domains with Tomcat 4.1.12 Standalone
 
 
 If I leave the defaultHost to localhost and have a host 
 name=something.com, when I type in the url 
 http://something.com/{webapp}/index.jsp, I get a server not 
 found or DNS error. Do I need to define something.com 
 anywhere else in win2000
 
 Hari
 
 
 -Original Message-
 From: Turner, John [mailto:[EMAIL PROTECTED]] 
 Sent: Tuesday, December 17, 2002 11:04 AM
 To: 'Tomcat Users List'
 Subject: RE: Virtual Domains with Tomcat 4.1.12 Standalone
 
 
 Changing defaultHost is not the solution.
 
 John
 
 
  -Original Message-
  From: Hari Venkatesan [mailto:[EMAIL PROTECTED]]
  Sent: Tuesday, December 17, 2002 10:51 AM
  To: Tomcat Users List
  Subject: RE: Virtual Domains with Tomcat 4.1.12 Standalone
  
  
  I really don't know if changing the defaulthost name is the 
  solution. R u able to serve the pages with the configuration 
  you have now without changing the defaulthost name or are you 
  getting a DNS error. 
  
  IF you want to serve pages the way you want it, then each of 
  the host entries you have in server.xml should have 
  context defined with its own Web.xml file. 
  
  Hari
  
  -Original Message-
  From: J. Norment [mailto:[EMAIL PROTECTED]] 
  Sent: Tuesday, December 17, 2002 10:36 AM
  To: Tomcat Users List
  Subject: RE: Virtual Domains with Tomcat 4.1.12 Standalone
  
  Hari:
  
  Thanks for the response.
  ( For that matter, thanks for everyone's response so far... )
  
  I want the behavior to be:
  
  http://localhost - loads up the default welcome page, root/index.jsp
  http://host0.com - loads up host0's index page
  http://host1.com - loads up host1's index page
  
  Is changing the default host part of the solution?
  
  
  
  On Tue, 17 Dec 2002 10:22:20 -0500, Hari Venkatesan wrote:
  You have two Host name defined and only one closing tag for the
  host. Did you change Engine name=Standalone
  defaultHost=localhost debug=99 to reflect host0.com in the
  defaultHost
  
  Hari
  
  -Original Message-
  From: J. Norment [mailto:[EMAIL PROTECTED]]
  Sent: Tuesday, December 17, 2002 10:15 AM
  To: Tomcat Users List
  Subject: RE: Virtual Domains with Tomcat 4.1.12 Standalone
  
  This is the change that I had made to the server.xml file:
  
  !-- Define the default virtual host --
  Host name=localhost debug=0 appBase=webapps
  unpackWARs=true autoDeploy=true
  
  !-- This part is added: --
  
  Host name=host0.com debug=0 appBase=webapps/host0
  unpackWARs=true
  Logger className=org.apache.catalina.logger.FileLogger
  directory=logs prefix=host0. suffix=.log timestamp=true/
  Context path= docBase=webapps/host0 debug=0
  reloadable=true/
  Context path=/test docBase=webapps/host0 debug=0
  reloadable=true/
  /Host
  
  !-- End, added part. --
  
  Is this is the change that you are referring to in adding the host
  tag?
  
  If that is not working, how would I track down what is broken?
  (ie, are there log files saying exactly what Tomcat is getting from
  the request?)
  
  As for adding an alias for localhost, wouldn't that mean that only
  one host was used?
  Ultimately, I'd like host0.com and host1.com to be 
 different hosts
  for Tomcat.
  
  Applying Occam's Razor, I'm pretty sure that something is 
 screwed on
  my end, but not sure how to track it down, at this point...
  
  
  On Tue, 17 Dec 2002 09:27:14 -0500, Turner, John wrote:
  
  It has Apache installed, but I just verified this behavior using
  http://some.server.com:8080 which bypasses Apache.
  
  If you need a virtual host setup in Tomcat, modify server.xml and
  add a Host
  element with a name parameter set to the FQDN that will be in the
  URL.
  Alternatively, if you want some.server.com to be treated as
  localhost, add
  an Alias tag to the localhost Host element in server.xml.
  
  Apache VirtualHost = Tomcat Host (roughly speaking)
  
  Host name=some.server.com
  
  ...some stuff here like Contexts, etc
  
  /Host
  
  The server.xml that comes with Tomcat has what you need already

RE: Virtual Domains with Tomcat 4.1.12 Standalone

2002-12-17 Thread Turner, John

Exactly.

John


 -Original Message-
 From: J. Norment [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, December 17, 2002 11:16 AM
 To: Tomcat Users List
 Subject: RE: Virtual Domains with Tomcat 4.1.12 Standalone
 
 
 Hari:
 
 My guess is that something.com would need to have a DNS 
 record in a nameserver  ( that resolves to the box that you 
 have Tomcat on. )
 
 
 On Tue, 17 Dec 2002 11:09:30 -0500, Hari Venkatesan wrote:
 If I leave the defaultHost to localhost and have a host
 name=something.com, when I type in the url
 http://something.com/{webapp}/index.jsp, I get a server not found or
 DNS error. Do I need to define something.com anywhere else in win2000
 
 Hari
 
 
 -Original Message-
 From: Turner, John [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, December 17, 2002 11:04 AM
 To: 'Tomcat Users List'
 Subject: RE: Virtual Domains with Tomcat 4.1.12 Standalone
 
 
 Changing defaultHost is not the solution.
 
 John
 
 
 -Original Message-
 From: Hari Venkatesan [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, December 17, 2002 10:51 AM
 To: Tomcat Users List
 Subject: RE: Virtual Domains with Tomcat 4.1.12 Standalone
 
 
 I really don't know if changing the defaulthost name is the
 solution. R u able to serve the pages with the configuration
 you have now without changing the defaulthost name or are you
 getting a DNS error.
 
 IF you want to serve pages the way you want it, then each of
 the host entries you have in server.xml should have
 context defined with its own Web.xml file.
 
 Hari
 
 -Original Message-
 From: J. Norment [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, December 17, 2002 10:36 AM
 To: Tomcat Users List
 Subject: RE: Virtual Domains with Tomcat 4.1.12 Standalone
 
 Hari:
 
 Thanks for the response.
 ( For that matter, thanks for everyone's response so far... )
 
 I want the behavior to be:
 
 http://localhost - loads up the default welcome page,
 root/index.jsp
 http://host0.com - loads up host0's index page
 http://host1.com - loads up host1's index page
 
 Is changing the default host part of the solution?
 
 
 
 On Tue, 17 Dec 2002 10:22:20 -0500, Hari Venkatesan wrote:
 You have two Host name defined and only one closing tag for the
 host. Did you change Engine name=Standalone
 defaultHost=localhost debug=99 to reflect host0.com in the
 defaultHost
 
 Hari
 
 -Original Message-
 From: J. Norment [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, December 17, 2002 10:15 AM
 To: Tomcat Users List
 Subject: RE: Virtual Domains with Tomcat 4.1.12 Standalone
 
 This is the change that I had made to the server.xml file:
 
 !-- Define the default virtual host --
 Host name=localhost debug=0 appBase=webapps
 unpackWARs=true autoDeploy=true
 
 !-- This part is added: --
 
 Host name=host0.com debug=0 appBase=webapps/host0
 unpackWARs=true
 Logger className=org.apache.catalina.logger.FileLogger
 directory=logs prefix=host0. suffix=.log timestamp=true/
 Context path= docBase=webapps/host0 debug=0
 reloadable=true/
 Context path=/test docBase=webapps/host0 debug=0
 reloadable=true/
 /Host
 
 !-- End, added part. --
 
 Is this is the change that you are referring to in adding the host
 tag?
 
 If that is not working, how would I track down what is broken?
 (ie, are there log files saying exactly what Tomcat is getting
 from
 the request?)
 
 As for adding an alias for localhost, wouldn't that mean that only
 one host was used?
 Ultimately, I'd like host0.com and host1.com to be different
 hosts
 for Tomcat.
 
 Applying Occam's Razor, I'm pretty sure that something is screwed
 on
 my end, but not sure how to track it down, at this point...
 
 
 On Tue, 17 Dec 2002 09:27:14 -0500, Turner, John wrote:
 
 It has Apache installed, but I just verified this behavior using
 http://some.server.com:8080 which bypasses Apache.
 
 If you need a virtual host setup in Tomcat, modify server.xml and
 add a Host
 element with a name parameter set to the FQDN that will be in the
 URL.
 Alternatively, if you want some.server.com to be treated as
 localhost, add
 an Alias tag to the localhost Host element in server.xml.
 
 Apache VirtualHost = Tomcat Host (roughly speaking)
 
 Host name=some.server.com
 
 ...some stuff here like Contexts, etc
 
 /Host
 
 The server.xml that comes with Tomcat has what you need already
 in
 it.  The
 default server.xml file has a single virtual host (localhost)
 with a
 three
 Contexts (admin, manager, examples).  Copy what you need from
 that.
 The
 Host element for localhost has a lot of stuff in it, probably
 stuff
 you
 don't need.  Just delete most of it, and you should be fine.
 Alternatively,
 find the localhost Host element in server.xml and change the name
 parameter
 from localhost to your.server.com, restart Tomcat, and test
 it
 out and
 see if the behavior is what you want, then just copy that.
 
 John
 
 -Original Message-
 From: J. Norment [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, December 17, 2002 9:20 AM
 To: Tomcat Users List

RE: Virtual Domains with Tomcat 4.1.12 Standalone

2002-12-17 Thread Turner, John

If you post your server.xml, someone will look at it.  I can't promise I
will, as time is everything, but someone will.  If you could remove the
comments from it and post an uncommented version, that would make it smaller
and easier to scan.

John


 -Original Message-
 From: J. Norment [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, December 17, 2002 11:12 AM
 To: Tomcat Users List
 Subject: RE: Virtual Domains with Tomcat 4.1.12 Standalone
 
 
 Got it, John.  Thanks for your time. ( not being sarcastic... 
 forgot to thank you earlier. )
 ( For the record, I only posted the small snippet because 
 that was all that I changed from out of the box )
 
 I'll try to verify the XML tags now.
 ( I've thought about this before, but I'll look at it again. )
 
 I thought that maybe I had something screwy going on with 
 part of the request being blocked, but I honestly don't know 
 that part intimately enough to look at it and verify that 
 everything is coming through ok.
 
 
 On Tue, 17 Dec 2002 11:03:06 -0500, Turner, John wrote:
 
 No, it is not.  Leave defaultHost alone.
 
 Setup a Host element for host0.com and host1.com.
 
 If this is not working, either post your entire server.xml or post
 log file
 snippets with error messages.  XML files are sensitive to properly
 closed
 tags and elements...including just a small snippet of your
 server.xml file
 doesn't let anyone verify that you've positioned and closed the new
 tags
 correctly because we can't see any of the other tags.
 
 My apologies, but this is starting to get fairly tedious.  Adding a
 new Host
 element is a trivial exercise, all you have to do is make sure you
 position
 it correctly and close it correctly.  There's really nothing else to
 do.  If
 you have to, copy server.xml to server-work.xml, delete all of the
 comments
 and other extra information, and work with the resulting smaller
 file until
 you get the new elements closed and positioned correctly.
 Server.xml is no
 different than and HTML file...position and close everything
 properly, and
 it works.
 
 John
 
 -Original Message-
 From: J. Norment [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, December 17, 2002 10:36 AM
 To: Tomcat Users List
 Subject: RE: Virtual Domains with Tomcat 4.1.12 Standalone
 
 
 Hari:
 
 Thanks for the response.
 ( For that matter, thanks for everyone's response so far... )
 
 I want the behavior to be:
 
 http://localhost - loads up the default welcome page,
 root/index.jsp
 http://host0.com - loads up host0's index page
 http://host1.com - loads up host1's index page
 
 Is changing the default host part of the solution?
 
 
 
 On Tue, 17 Dec 2002 10:22:20 -0500, Hari Venkatesan wrote:
 You have two Host name defined and only one closing tag for the
 host. Did you change Engine name=Standalone
 defaultHost=localhost debug=99 to reflect host0.com in the
 defaultHost
 
 Hari
 
 -Original Message-
 From: J. Norment [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, December 17, 2002 10:15 AM
 To: Tomcat Users List
 Subject: RE: Virtual Domains with Tomcat 4.1.12 Standalone
 
 This is the change that I had made to the server.xml file:
 
 !-- Define the default virtual host --
 Host name=localhost debug=0 appBase=webapps
 unpackWARs=true autoDeploy=true
 
 !-- This part is added: --
 
 Host name=host0.com debug=0 appBase=webapps/host0
 unpackWARs=true
 Logger className=org.apache.catalina.logger.FileLogger
 directory=logs prefix=host0. suffix=.log timestamp=true/
 Context path= docBase=webapps/host0 debug=0
 reloadable=true/
 Context path=/test docBase=webapps/host0 debug=0
 reloadable=true/
 /Host
 
 !-- End, added part. --
 
 Is this is the change that you are referring to in adding the host
 tag?
 
 If that is not working, how would I track down what is broken?
 (ie, are there log files saying exactly what Tomcat is getting
 from
 the request?)
 
 As for adding an alias for localhost, wouldn't that mean that only
 one host was used?
 Ultimately, I'd like host0.com and host1.com to be different
 hosts
 for Tomcat.
 
 Applying Occam's Razor, I'm pretty sure that something is screwed
 on
 my end, but not sure how to track it down, at this point...
 
 
 On Tue, 17 Dec 2002 09:27:14 -0500, Turner, John wrote:
 
 It has Apache installed, but I just verified this behavior using
 http://some.server.com:8080 which bypasses Apache.
 
 If you need a virtual host setup in Tomcat, modify server.xml and
 add a Host
 element with a name parameter set to the FQDN that will be in the
 URL.
 Alternatively, if you want some.server.com to be treated as
 localhost, add
 an Alias tag to the localhost Host element in server.xml.
 
 Apache VirtualHost = Tomcat Host (roughly speaking)
 
 Host name=some.server.com
 
 ...some stuff here like Contexts, etc
 
 /Host
 
 The server.xml that comes with Tomcat has what you need already
 in
 it.  The
 default server.xml file has a single virtual host (localhost)
 with a
 three
 Contexts (admin, manager, examples).  Copy what

RE: Virtual Domains with Tomcat 4.1.12 Standalone

2002-12-17 Thread Hari Venkatesan
Thanks for the reply john. I got it. But there is one small problem yet to resolve. 
When I use http://something.com/{Webapp}/index.jsp, it comes back with a Basic Server 
Authentication window. I don't have any authentication setup in web.xml file. 

I am using IIS and tomcat and have defined virtualhost in server.xml file. If I access 
the server directly by it name, it is showing me the index page but if try with the 
virtualhost, I get authentication for the server. Any ideas?

Hari

-Original Message-
From: Turner, John [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, December 17, 2002 11:19 AM
To: 'Tomcat Users List'
Subject: RE: Virtual Domains with Tomcat 4.1.12 Standalone


Let's put it this way.  If you had to change defaultHost for virtual hosts
to work, then you could never have more than one virtual host, since there
is only one defaultHost.  That's obviously wrong.  Tomcat has the ability to
serve many virtual hosts, not just one. I have several virtual hosts running
on a Sun 420R at the moment, and there's only one defaultHost (and it's set
to localhost).

If you are getting server not found then something.com doesn't resolve to
an IP address.  Can you ping something.com?  If not, there's your answer.  

If something.com resolved to the IP address where Tomcat was running, and
there was no virtual host defined, then Tomcat would revert to serving the
default context from the default host.  That's what defaultHost does.

John

 -Original Message-
 From: Hari Venkatesan [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, December 17, 2002 11:10 AM
 To: Tomcat Users List
 Subject: RE: Virtual Domains with Tomcat 4.1.12 Standalone
 
 
 If I leave the defaultHost to localhost and have a host 
 name=something.com, when I type in the url 
 http://something.com/{webapp}/index.jsp, I get a server not 
 found or DNS error. Do I need to define something.com 
 anywhere else in win2000
 
 Hari
 
 
 -Original Message-
 From: Turner, John [mailto:[EMAIL PROTECTED]] 
 Sent: Tuesday, December 17, 2002 11:04 AM
 To: 'Tomcat Users List'
 Subject: RE: Virtual Domains with Tomcat 4.1.12 Standalone
 
 
 Changing defaultHost is not the solution.
 
 John
 
 
  -Original Message-
  From: Hari Venkatesan [mailto:[EMAIL PROTECTED]]
  Sent: Tuesday, December 17, 2002 10:51 AM
  To: Tomcat Users List
  Subject: RE: Virtual Domains with Tomcat 4.1.12 Standalone
  
  
  I really don't know if changing the defaulthost name is the 
  solution. R u able to serve the pages with the configuration 
  you have now without changing the defaulthost name or are you 
  getting a DNS error. 
  
  IF you want to serve pages the way you want it, then each of 
  the host entries you have in server.xml should have 
  context defined with its own Web.xml file. 
  
  Hari
  
  -Original Message-
  From: J. Norment [mailto:[EMAIL PROTECTED]] 
  Sent: Tuesday, December 17, 2002 10:36 AM
  To: Tomcat Users List
  Subject: RE: Virtual Domains with Tomcat 4.1.12 Standalone
  
  Hari:
  
  Thanks for the response.
  ( For that matter, thanks for everyone's response so far... )
  
  I want the behavior to be:
  
  http://localhost - loads up the default welcome page, root/index.jsp
  http://host0.com - loads up host0's index page
  http://host1.com - loads up host1's index page
  
  Is changing the default host part of the solution?
  
  
  
  On Tue, 17 Dec 2002 10:22:20 -0500, Hari Venkatesan wrote:
  You have two Host name defined and only one closing tag for the
  host. Did you change Engine name=Standalone
  defaultHost=localhost debug=99 to reflect host0.com in the
  defaultHost
  
  Hari
  
  -Original Message-
  From: J. Norment [mailto:[EMAIL PROTECTED]]
  Sent: Tuesday, December 17, 2002 10:15 AM
  To: Tomcat Users List
  Subject: RE: Virtual Domains with Tomcat 4.1.12 Standalone
  
  This is the change that I had made to the server.xml file:
  
  !-- Define the default virtual host --
  Host name=localhost debug=0 appBase=webapps
  unpackWARs=true autoDeploy=true
  
  !-- This part is added: --
  
  Host name=host0.com debug=0 appBase=webapps/host0
  unpackWARs=true
  Logger className=org.apache.catalina.logger.FileLogger
  directory=logs prefix=host0. suffix=.log timestamp=true/
  Context path= docBase=webapps/host0 debug=0
  reloadable=true/
  Context path=/test docBase=webapps/host0 debug=0
  reloadable=true/
  /Host
  
  !-- End, added part. --
  
  Is this is the change that you are referring to in adding the host
  tag?
  
  If that is not working, how would I track down what is broken?
  (ie, are there log files saying exactly what Tomcat is getting from
  the request?)
  
  As for adding an alias for localhost, wouldn't that mean that only
  one host was used?
  Ultimately, I'd like host0.com and host1.com to be 
 different hosts
  for Tomcat.
  
  Applying Occam's Razor, I'm pretty sure that something is 
 screwed on
  my end, but not sure how to track it down, at this point...
  
  
  On Tue

RE: Virtual Domains with Tomcat 4.1.12 Standalone

2002-12-17 Thread Turner, John

It's been a long time since I setup a Windows web server, but if I had to
guess:  IIS has authentication set for that resource.  The anonymous web
user (IUSR_SOMEMACHINENAME) account has no access to the directories where
the content exists.

John

 -Original Message-
 From: Hari Venkatesan [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, December 17, 2002 11:32 AM
 To: Tomcat Users List
 Subject: RE: Virtual Domains with Tomcat 4.1.12 Standalone
 
 
 Thanks for the reply john. I got it. But there is one small 
 problem yet to resolve. When I use 
 http://something.com/{Webapp}/index.jsp, it comes back with a 
 Basic Server Authentication window. I don't have any 
 authentication setup in web.xml file. 
 
 I am using IIS and tomcat and have defined virtualhost in 
 server.xml file. If I access the server directly by it name, 
 it is showing me the index page but if try with the 
 virtualhost, I get authentication for the server. Any ideas?
 
 Hari
 
 -Original Message-
 From: Turner, John [mailto:[EMAIL PROTECTED]] 
 Sent: Tuesday, December 17, 2002 11:19 AM
 To: 'Tomcat Users List'
 Subject: RE: Virtual Domains with Tomcat 4.1.12 Standalone
 
 
 Let's put it this way.  If you had to change defaultHost for 
 virtual hosts
 to work, then you could never have more than one virtual 
 host, since there
 is only one defaultHost.  That's obviously wrong.  Tomcat has 
 the ability to
 serve many virtual hosts, not just one. I have several 
 virtual hosts running
 on a Sun 420R at the moment, and there's only one defaultHost 
 (and it's set
 to localhost).
 
 If you are getting server not found then something.com 
 doesn't resolve to
 an IP address.  Can you ping something.com?  If not, there's 
 your answer.  
 
 If something.com resolved to the IP address where Tomcat 
 was running, and
 there was no virtual host defined, then Tomcat would revert 
 to serving the
 default context from the default host.  That's what 
 defaultHost does.
 
 John
 
  -Original Message-
  From: Hari Venkatesan [mailto:[EMAIL PROTECTED]]
  Sent: Tuesday, December 17, 2002 11:10 AM
  To: Tomcat Users List
  Subject: RE: Virtual Domains with Tomcat 4.1.12 Standalone
  
  
  If I leave the defaultHost to localhost and have a host 
  name=something.com, when I type in the url 
  http://something.com/{webapp}/index.jsp, I get a server not 
  found or DNS error. Do I need to define something.com 
  anywhere else in win2000
  
  Hari
  
  
  -Original Message-
  From: Turner, John [mailto:[EMAIL PROTECTED]] 
  Sent: Tuesday, December 17, 2002 11:04 AM
  To: 'Tomcat Users List'
  Subject: RE: Virtual Domains with Tomcat 4.1.12 Standalone
  
  
  Changing defaultHost is not the solution.
  
  John
  
  
   -Original Message-
   From: Hari Venkatesan [mailto:[EMAIL PROTECTED]]
   Sent: Tuesday, December 17, 2002 10:51 AM
   To: Tomcat Users List
   Subject: RE: Virtual Domains with Tomcat 4.1.12 Standalone
   
   
   I really don't know if changing the defaulthost name is the 
   solution. R u able to serve the pages with the configuration 
   you have now without changing the defaulthost name or are you 
   getting a DNS error. 
   
   IF you want to serve pages the way you want it, then each of 
   the host entries you have in server.xml should have 
   context defined with its own Web.xml file. 
   
   Hari
   
   -Original Message-
   From: J. Norment [mailto:[EMAIL PROTECTED]] 
   Sent: Tuesday, December 17, 2002 10:36 AM
   To: Tomcat Users List
   Subject: RE: Virtual Domains with Tomcat 4.1.12 Standalone
   
   Hari:
   
   Thanks for the response.
   ( For that matter, thanks for everyone's response so far... )
   
   I want the behavior to be:
   
   http://localhost - loads up the default welcome page, 
 root/index.jsp
   http://host0.com - loads up host0's index page
   http://host1.com - loads up host1's index page
   
   Is changing the default host part of the solution?
   
   
   
   On Tue, 17 Dec 2002 10:22:20 -0500, Hari Venkatesan wrote:
   You have two Host name defined and only one closing tag for the
   host. Did you change Engine name=Standalone
   defaultHost=localhost debug=99 to reflect 
 host0.com in the
   defaultHost
   
   Hari
   
   -Original Message-
   From: J. Norment [mailto:[EMAIL PROTECTED]]
   Sent: Tuesday, December 17, 2002 10:15 AM
   To: Tomcat Users List
   Subject: RE: Virtual Domains with Tomcat 4.1.12 Standalone
   
   This is the change that I had made to the server.xml file:
   
   !-- Define the default virtual host --
   Host name=localhost debug=0 appBase=webapps
   unpackWARs=true autoDeploy=true
   
   !-- This part is added: --
   
   Host name=host0.com debug=0 appBase=webapps/host0
   unpackWARs=true
   Logger className=org.apache.catalina.logger.FileLogger
   directory=logs prefix=host0. suffix=.log 
 timestamp=true/
   Context path= docBase=webapps/host0 debug=0
   reloadable=true/
   Context path=/test docBase=webapps/host0 debug=0

RE: Virtual Domains with Tomcat 4.1.12 Standalone

2002-12-17 Thread J. Norment
Just wanted to let you know: I got it working.  I ended up uninstalling Tomcat 4.1.12 
and installing Tomcat 4.1.17, and it worked almost from the start.  (I'm guessing that 
I somehow corrupted my server.xml file.)  Thanks for all your help!


On Tue, 17 Dec 2002 11:19:56 -0500, Turner, John wrote:

If you post your server.xml, someone will look at it.  I can't
promise I
will, as time is everything, but someone will.  If you could remove
the
comments from it and post an uncommented version, that would make it
smaller
and easier to scan.

John


-Original Message-
From: J. Norment [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 17, 2002 11:12 AM
To: Tomcat Users List
Subject: RE: Virtual Domains with Tomcat 4.1.12 Standalone


Got it, John.  Thanks for your time. ( not being sarcastic...
forgot to thank you earlier. )
( For the record, I only posted the small snippet because
that was all that I changed from out of the box )

I'll try to verify the XML tags now.
( I've thought about this before, but I'll look at it again. )

I thought that maybe I had something screwy going on with
part of the request being blocked, but I honestly don't know
that part intimately enough to look at it and verify that
everything is coming through ok.


On Tue, 17 Dec 2002 11:03:06 -0500, Turner, John wrote:

No, it is not.  Leave defaultHost alone.

Setup a Host element for host0.com and host1.com.

If this is not working, either post your entire server.xml or post
log file
snippets with error messages.  XML files are sensitive to properly
closed
tags and elements...including just a small snippet of your
server.xml file
doesn't let anyone verify that you've positioned and closed the
new
tags
correctly because we can't see any of the other tags.

My apologies, but this is starting to get fairly tedious.  Adding
a
new Host
element is a trivial exercise, all you have to do is make sure you
position
it correctly and close it correctly.  There's really nothing else
to
do.  If
you have to, copy server.xml to server-work.xml, delete all of the
comments
and other extra information, and work with the resulting smaller
file until
you get the new elements closed and positioned correctly.
Server.xml is no
different than and HTML file...position and close everything
properly, and
it works.

John

-Original Message-
From: J. Norment [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 17, 2002 10:36 AM
To: Tomcat Users List
Subject: RE: Virtual Domains with Tomcat 4.1.12 Standalone


Hari:

Thanks for the response.
( For that matter, thanks for everyone's response so far... )

I want the behavior to be:

http://localhost - loads up the default welcome page,
root/index.jsp
http://host0.com - loads up host0's index page
http://host1.com - loads up host1's index page

Is changing the default host part of the solution?



On Tue, 17 Dec 2002 10:22:20 -0500, Hari Venkatesan wrote:
You have two Host name defined and only one closing tag for the
host. Did you change Engine name=Standalone
defaultHost=localhost debug=99 to reflect host0.com in
the
defaultHost

Hari

-Original Message-
From: J. Norment [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 17, 2002 10:15 AM
To: Tomcat Users List
Subject: RE: Virtual Domains with Tomcat 4.1.12 Standalone

This is the change that I had made to the server.xml file:

!-- Define the default virtual host --
Host name=localhost debug=0 appBase=webapps
unpackWARs=true autoDeploy=true

!-- This part is added: --

Host name=host0.com debug=0 appBase=webapps/host0
unpackWARs=true
Logger className=org.apache.catalina.logger.FileLogger
directory=logs prefix=host0. suffix=.log
timestamp=true/
Context path= docBase=webapps/host0 debug=0
reloadable=true/
Context path=/test docBase=webapps/host0 debug=0
reloadable=true/
/Host

!-- End, added part. --

Is this is the change that you are referring to in adding the
host
tag?

If that is not working, how would I track down what is broken?
(ie, are there log files saying exactly what Tomcat is getting
from
the request?)

As for adding an alias for localhost, wouldn't that mean that
only
one host was used?
Ultimately, I'd like host0.com and host1.com to be different
hosts
for Tomcat.

Applying Occam's Razor, I'm pretty sure that something is
screwed
on
my end, but not sure how to track it down, at this point...


On Tue, 17 Dec 2002 09:27:14 -0500, Turner, John wrote:

It has Apache installed, but I just verified this behavior
using
http://some.server.com:8080 which bypasses Apache.

If you need a virtual host setup in Tomcat, modify server.xml
and
add a Host
element with a name parameter set to the FQDN that will be in
the
URL.
Alternatively, if you want some.server.com to be treated as
localhost, add
an Alias tag to the localhost Host element in server.xml.

Apache VirtualHost = Tomcat Host (roughly speaking)

Host name=some.server.com

...some stuff here like Contexts, etc

/Host

The server.xml that comes with Tomcat has what you need already

RE: Virtual Domains with Tomcat 4.1.12 Standalone

2002-12-17 Thread Hari Venkatesan
Congratulations Norment. R u using IIS?

Hari

-Original Message-
From: J. Norment [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, December 17, 2002 1:45 PM
To: Tomcat Users List
Subject: RE: Virtual Domains with Tomcat 4.1.12 Standalone

Just wanted to let you know: I got it working.  I ended up uninstalling Tomcat 4.1.12 
and installing Tomcat 4.1.17, and it worked almost from the start.  (I'm guessing that 
I somehow corrupted my server.xml file.)  Thanks for all your help!


On Tue, 17 Dec 2002 11:19:56 -0500, Turner, John wrote:

If you post your server.xml, someone will look at it.  I can't
promise I
will, as time is everything, but someone will.  If you could remove
the
comments from it and post an uncommented version, that would make it
smaller
and easier to scan.

John


-Original Message-
From: J. Norment [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 17, 2002 11:12 AM
To: Tomcat Users List
Subject: RE: Virtual Domains with Tomcat 4.1.12 Standalone


Got it, John.  Thanks for your time. ( not being sarcastic...
forgot to thank you earlier. )
( For the record, I only posted the small snippet because
that was all that I changed from out of the box )

I'll try to verify the XML tags now.
( I've thought about this before, but I'll look at it again. )

I thought that maybe I had something screwy going on with
part of the request being blocked, but I honestly don't know
that part intimately enough to look at it and verify that
everything is coming through ok.


On Tue, 17 Dec 2002 11:03:06 -0500, Turner, John wrote:

No, it is not.  Leave defaultHost alone.

Setup a Host element for host0.com and host1.com.

If this is not working, either post your entire server.xml or post
log file
snippets with error messages.  XML files are sensitive to properly
closed
tags and elements...including just a small snippet of your
server.xml file
doesn't let anyone verify that you've positioned and closed the
new
tags
correctly because we can't see any of the other tags.

My apologies, but this is starting to get fairly tedious.  Adding
a
new Host
element is a trivial exercise, all you have to do is make sure you
position
it correctly and close it correctly.  There's really nothing else
to
do.  If
you have to, copy server.xml to server-work.xml, delete all of the
comments
and other extra information, and work with the resulting smaller
file until
you get the new elements closed and positioned correctly.
Server.xml is no
different than and HTML file...position and close everything
properly, and
it works.

John

-Original Message-
From: J. Norment [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 17, 2002 10:36 AM
To: Tomcat Users List
Subject: RE: Virtual Domains with Tomcat 4.1.12 Standalone


Hari:

Thanks for the response.
( For that matter, thanks for everyone's response so far... )

I want the behavior to be:

http://localhost - loads up the default welcome page,
root/index.jsp
http://host0.com - loads up host0's index page
http://host1.com - loads up host1's index page

Is changing the default host part of the solution?



On Tue, 17 Dec 2002 10:22:20 -0500, Hari Venkatesan wrote:
You have two Host name defined and only one closing tag for the
host. Did you change Engine name=Standalone
defaultHost=localhost debug=99 to reflect host0.com in
the
defaultHost

Hari

-Original Message-
From: J. Norment [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 17, 2002 10:15 AM
To: Tomcat Users List
Subject: RE: Virtual Domains with Tomcat 4.1.12 Standalone

This is the change that I had made to the server.xml file:

!-- Define the default virtual host --
Host name=localhost debug=0 appBase=webapps
unpackWARs=true autoDeploy=true

!-- This part is added: --

Host name=host0.com debug=0 appBase=webapps/host0
unpackWARs=true
Logger className=org.apache.catalina.logger.FileLogger
directory=logs prefix=host0. suffix=.log
timestamp=true/
Context path= docBase=webapps/host0 debug=0
reloadable=true/
Context path=/test docBase=webapps/host0 debug=0
reloadable=true/
/Host

!-- End, added part. --

Is this is the change that you are referring to in adding the
host
tag?

If that is not working, how would I track down what is broken?
(ie, are there log files saying exactly what Tomcat is getting
from
the request?)

As for adding an alias for localhost, wouldn't that mean that
only
one host was used?
Ultimately, I'd like host0.com and host1.com to be different
hosts
for Tomcat.

Applying Occam's Razor, I'm pretty sure that something is
screwed
on
my end, but not sure how to track it down, at this point...


On Tue, 17 Dec 2002 09:27:14 -0500, Turner, John wrote:

It has Apache installed, but I just verified this behavior
using
http://some.server.com:8080 which bypasses Apache.

If you need a virtual host setup in Tomcat, modify server.xml
and
add a Host
element with a name parameter set to the FQDN that will be in
the
URL.
Alternatively, if you want some.server.com to be treated as
localhost, add
an Alias

Servlet and Applet working in Tomcat 4.0.4 standalone

2002-11-29 Thread Patrick Kosiol
Hi,

I am using the Tomcat 4.0.4 as a standalone-server. Esspecially because 
JBuilder7 supports Servlet debugging.
OK.
I have an webApplication that includes a client- and a server-directory 
(package). The server-dir contains the Servlet-Class and the client-dir 
contains the client, of course. This client is a java.applet and does 
work fine (it is startet through out a html-page). But my problem is to 
connect to the servlet.
I have also tried to put the .war file into the %CATALINA_HOME%/webapps 
- folder and added the Lines
!-- TOMCAT Bfpl-Context -- 
Context path=/myApp docBase=myApp debug=0 reloadable=true / 
into the server.xml.
So the .war - File should be extracted at the next start of Tomcat. But 
that doesn't work What am I doing wrong?
An other question is: How do I connect from an Applet or a java.frame 
(opened by the applet) to this servlet. What the adress of the servlet?

So my Applet is working fine but I do not get a connection to the 
servlet, so I cannot get my data from the webserver. :-(

I hope anyone can help me. thx

Patrick



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



RES: Servlet and Applet working in Tomcat 4.0.4 standalone

2002-11-29 Thread Tiago Ferraz Machado
Hi,

I don't know if it is it, but there is a directive called unpackWARs=true that I 
think you should add to your server.xml.

Could anyone confirm that ?

Thanks,

Tiago.

-Mensagem original-
De: Patrick Kosiol [mailto:[EMAIL PROTECTED]]
Enviada em: sexta-feira, 29 de novembro de 2002 10:18
Para: Tomcat Users List
Assunto: Servlet and Applet working in Tomcat 4.0.4 standalone


Hi,

I am using the Tomcat 4.0.4 as a standalone-server. Esspecially because 
JBuilder7 supports Servlet debugging.
OK.
I have an webApplication that includes a client- and a server-directory 
(package). The server-dir contains the Servlet-Class and the client-dir 
contains the client, of course. This client is a java.applet and does 
work fine (it is startet through out a html-page). But my problem is to 
connect to the servlet.
I have also tried to put the .war file into the %CATALINA_HOME%/webapps 
- folder and added the Lines
!-- TOMCAT Bfpl-Context -- 
 Context path=/myApp docBase=myApp debug=0 reloadable=true / 
into the server.xml.
So the .war - File should be extracted at the next start of Tomcat. But 
that doesn't work What am I doing wrong?
An other question is: How do I connect from an Applet or a java.frame 
(opened by the applet) to this servlet. What the adress of the servlet?

So my Applet is working fine but I do not get a connection to the 
servlet, so I cannot get my data from the webserver. :-(

I hope anyone can help me. thx

Patrick



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


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




Re: RES: Servlet and Applet working in Tomcat 4.0.4 standalone

2002-11-29 Thread Patrick Kosiol
THX,

that might be of course, but I am running the default settings of the 
Tomcat so this option is already set TRUE. That is not the problem. 
Because of that I don't understand why it doesn't unpack the war-file
But without the WAR-File can I also put my webapp onto the server? And 
how do I do that?

thx
Patrick

Tiago Ferraz Machado wrote:

Hi,

I don't know if it is it, but there is a directive called unpackWARs=true that I think you should add to your server.xml.

Could anyone confirm that ?

Thanks,

Tiago.

-Mensagem original-
De: Patrick Kosiol [mailto:[EMAIL PROTECTED]]
Enviada em: sexta-feira, 29 de novembro de 2002 10:18
Para: Tomcat Users List
Assunto: Servlet and Applet working in Tomcat 4.0.4 standalone


Hi,

I am using the Tomcat 4.0.4 as a standalone-server. Esspecially because 
JBuilder7 supports Servlet debugging.
OK.
I have an webApplication that includes a client- and a server-directory 
(package). The server-dir contains the Servlet-Class and the client-dir 
contains the client, of course. This client is a java.applet and does 
work fine (it is startet through out a html-page). But my problem is to 
connect to the servlet.
I have also tried to put the .war file into the %CATALINA_HOME%/webapps 
- folder and added the Lines
!-- TOMCAT Bfpl-Context -- 
Context path=/myApp docBase=myApp debug=0 reloadable=true / 
into the server.xml.
So the .war - File should be extracted at the next start of Tomcat. But 
that doesn't work What am I doing wrong?
An other question is: How do I connect from an Applet or a java.frame 
(opened by the applet) to this servlet. What the adress of the servlet?

So my Applet is working fine but I do not get a connection to the 
servlet, so I cannot get my data from the webserver. :-(

I hope anyone can help me. thx

Patrick



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


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

 




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




Re: Servlet and Applet working in Tomcat 4.0.4 standalone

2002-11-29 Thread David Brown
Patrick Kosiol writes: 

Hi, 

I am using the Tomcat 4.0.4 as a standalone-server. Esspecially because 
JBuilder7 supports Servlet debugging.
OK.
I have an webApplication that includes a client- and a server-directory 
(package). The server-dir contains the Servlet-Class and the client-dir 
contains the client, of course. This client is a java.applet and does work 
fine (it is startet through out a html-page). But my problem is to connect 
to the servlet.
I have also tried to put the .war file into the %CATALINA_HOME%/webapps - 
folder and added the Lines
!-- TOMCAT Bfpl-Context -- Context path=/myApp docBase=myApp 
debug=0 reloadable=true / into the server.xml.
So the .war - File should be extracted at the next start of Tomcat. But 
that doesn't work What am I doing wrong?
An other question is: How do I connect from an Applet or a java.frame 
(opened by the applet) to this servlet. What the adress of the servlet? 

So my Applet is working fine but I do not get a connection to the servlet, 
so I cannot get my data from the webserver. :-( 

I hope anyone can help me. thx 

Patrick 

 

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




Hello Patrick, based on ur info i have to make some assumptions. from ur 
statment: I have also tried to put the .war file into the 
%CATALINA_HOME%/webapps - folder... and on: So the .war - File should be 
extracted at the next start of Tomcat. But that doesn't work... i am 
compelled to ask: does the .war expanded into something expected like: 
$CATALINA_HOME/webapps/myApp? if not, this is the source of ur problem. if u 
do get expansion does this exist?: 
$CATALINA_HOME/webapps/myApp/WEB-INF/web.xml? if not, this is the source of 
ur problem. if u do have a web.xml then look 4 the following (depending on 
package naming): $CATALINA_HOME/webapps/myApp/WEB-INF/classes/package 
name/myApp/myApp.class (assuming ur servlet is named myApp.java). if this 
does not exits then definitely a source of problems. one small observation: 
ur statement: I have also tried to put the .war file... is disturbing 
because any good development system should work such that correct deployment 
is automatic. i'm not criticisizing jbuilder and borland. i like borland 
products. and, i'm not criticisizing u 4 ur choices. it just seems many 
people have problems w/ tc dev based more on deployment issues. if u have 
not progressed try the following: try to use the command line and deploy a 
test servlet (not myApp). and, invoke the servlet from the browser. ur 
applet should be outside ur webapps environment. if u can invoke ur test 
servlet then try to invoke it from ur applet. if u r comfortable working 
from the command line u might want to try the ant build system that is used 
to build the tc /examples applications. ant is a very powerfull tool and 
can really help w/ deployment issues. ide's r ok 4 debugging code issues 
but i have found most java developers have issues based more on: 
packaging, directories, files systems and deployment in general than code 
issues. hope this helps, david. 


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



Re: Servlet and Applet working in Tomcat 4.0.4 standalone

2002-11-29 Thread Patrick Kosiol
David Brown wrote:


Patrick Kosiol writes:


Hi,
I am using the Tomcat 4.0.4 as a standalone-server. Esspecially 
because JBuilder7 supports Servlet debugging.
OK.
I have an webApplication that includes a client- and a 
server-directory (package). The server-dir contains the Servlet-Class 
and the client-dir contains the client, of course. This client is a 
java.applet and does work fine (it is startet through out a 
html-page). But my problem is to connect to the servlet.
I have also tried to put the .war file into the 
%CATALINA_HOME%/webapps - folder and added the Lines
!-- TOMCAT Bfpl-Context -- Context path=/myApp docBase=myApp 
debug=0 reloadable=true / into the server.xml.
So the .war - File should be extracted at the next start of Tomcat. 
But that doesn't work What am I doing wrong?
An other question is: How do I connect from an Applet or a 
java.frame (opened by the applet) to this servlet. What the adress of 
the servlet?
So my Applet is working fine but I do not get a connection to the 
servlet, so I cannot get my data from the webserver. :-(
I hope anyone can help me. thx
Patrick
 

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




Hello Patrick, based on ur info i have to make some assumptions. from 
ur statment: I have also tried to put the .war file into the 
%CATALINA_HOME%/webapps - folder... and on: So the .war - File 
should be extracted at the next start of Tomcat. But that doesn't 
work... i am compelled to ask: does the .war expanded into something 
expected like: $CATALINA_HOME/webapps/myApp? if not, this is the 
source of ur problem. if u do get expansion does this exist?: 
$CATALINA_HOME/webapps/myApp/WEB-INF/web.xml? if not, this is the 
source of ur problem. if u do have a web.xml then look 4 the following 
(depending on package naming): 
$CATALINA_HOME/webapps/myApp/WEB-INF/classes/package 
name/myApp/myApp.class (assuming ur servlet is named myApp.java). if 
this does not exits then definitely a source of problems. one small 
observation: ur statement: I have also tried to put the .war file... 
is disturbing because any good development system should work such 
that correct deployment is automatic. i'm not criticisizing jbuilder 
and borland. i like borland products. and, i'm not criticisizing u 4 
ur choices. it just seems many people have problems w/ tc dev based 
more on deployment issues. if u have not progressed try the following: 
try to use the command line and deploy a test servlet (not myApp). 
and, invoke the servlet from the browser. ur applet should be outside 
ur webapps environment. if u can invoke ur test servlet then try to 
invoke it from ur applet. if u r comfortable working from the command 
line u might want to try the ant build system that is used to build 
the tc /examples applications. ant is a very powerfull tool and can 
really help w/ deployment issues. ide's r ok 4 debugging code issues 
but i have found most java developers have issues based more on: 
packaging, directories, files systems and deployment in general than 
code issues. hope this helps, david.

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

Hello,

1. I do not get any expansions.
2. My DirectorySystem is:
   WEB-INF
   classes
   myApp
   client
   server

Can that works that the client and the server classes are in there 
folders? These Directory is created by JB so that should also work in 
Tomcat.

Patrick



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



Re: Servlet and Applet working in Tomcat 4.0.4 standalone

2002-11-29 Thread Andreas Probst
On 29 Nov 2002 at 15:43, Patrick Kosiol wrote:

deleted older messages...

 
 Hello,
 
 1. I do not get any expansions.
 2. My DirectorySystem is:
 WEB-INF
 classes
 myApp
 client
 server
 
 Can that works that the client and the server classes are in
 there folders? These Directory is created by JB so that should
 also work in Tomcat.
 
 Patrick
 
A client cannot access files inside or below WEB-INF. Put all 
the files your applet needs above WEB-INF.

If you need the same classes on server and client you must have 
them twice.

For complex deployment see Ant as David suggested. You might 
also want to read the Application Developer's Guide:
http://jakarta.apache.org/tomcat/tomcat-4.0-
doc/appdev/index.html
or
localPathToTomcat/webapps/tomcat-docs/appdev/index.html

Andreas


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




RE: Tomcat 4 StandAlone Web Server, Static HTML and Images

2002-11-19 Thread p niemandt
Thanks Jeff, Steve: Giving me a lot of ideas: Sadly I'm still running
full speed into mud ...

I have changed the image directory to reside under my WEB-INF folder, do
I need to configure this in one of the xml files as well? ie.
application web.xml, or server.xml or something?

I have written a filter that does authentication: It serves the
index.shtml file, but for some reason I have to specify it as
WEB-INF\index.shtml to make it work ...

snip ---

if (!validated) {   
// Create the RequestDispatcher
 
Globals.utility.Log(className, 
doFilter:,
Forwarding to  + getHtmlResult, 5);   
RequestDispatcher rd = config.getServletContext().
getRequestDispatcher( getHtmlResult );
rd.forward( req, res );
return ;
}

--- snip 

where getHtmlResult is a string I read from a xml file. To make it work
I need to specify WEB-INF\index.shtml in my xml file. 

This then serves the html, but none of my stylesheets or images are
displayed ... 

snip ---

  link rel=stylesheet type=text/css href=style.css
img src=images/logo.gif alt=Home width=142 height=60 border=0
hspace=0 vspace=0

--- snip


On Mon, 2002-11-18 at 15:58, Steve Beech wrote:
 Jeff's right. You're web app is in the folder /servlet so your images should
 be in /servlet/images - of course I'm assuming you've got images on the
 index.shtml page and these are the ones you can't see.
 You only need the one web.xml file (in the WEB-INF folder for your web-app)
 - a second under images is not required.
 
 STeve
 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Sent: 18 November 2002 15:33
 To: Tomcat Users List
 Subject: Re: Tomcat 4 StandAlone Web Server, Static HTML and Images
 
 
 Looks like you're basically putting your images in its own web app.  You 
 may need a WEB-INF directory and trivial web.xml file under the images 
 directory in order for Tomcat to like it as a web app (not sure though). 
 Then, I think your url for the image would be /images/image.gif.
 
 Alternatively, you could move your images directory to be within your 
 servlet web app.  Then, your url (from index.shtml) would be 
 images/image.gif.
 
 HTH,
 -Jeff
  
 
 
 
 
 p niemandt [EMAIL PROTECTED]
 11/18/02 09:35 AM
 Please respond to Tomcat Users List
 
  
 To: Tomcat Users List [EMAIL PROTECTED]
 cc: 
 Subject:Tomcat 4 StandAlone Web Server, Static HTML and
 Images
 
 
 Hi Group: Please help ...
 
 I'm very new to servlets, though I do have a lot of programming
 experience. My problem is that I can't seem to get images displayed
 properly using Tomcat as the web server. 
 
 I have a very simple layout ...
 
 webapps
 /servlet
  index.shtml
  /WEB-INF- My servlets and web.xml
 /images
  contains my images
 
 I manage to serve the index.shtml quite easily, my problem is that I
 can't get the images displayed without specifying the whole url in the
 form file:///dir/to/images/image.gif, and I think this is wrong. 
 
 There is a lot of information regarding how to configure a web server to
 display the images, and this I can do fine, but I would like to only run
 Tomcat: My site is very small, and the latency in Tomcat would not
 effect it. My question is in how to specify the url for the image in the
 html,
 
 I have tried image.gif, /servlet/image.gif, ../image/image.gif,
 /servlet/../image/image.gif, etc, etc.
 
 Now I suspect I'm missing something very stupid, but sadly I have no
 idea what. I do not want to code the image display, as far as I know,
 Tomcat should be able to handle such a simple html site. 
 
 My servlets work well, database connectivity and all, and the site works
 well if I use apache as well, but how to do this without Apache is
 currently beyond me.
 
 Any information or just hints in the correct direction would be greatly
 appreciated. 
-- 
p niemandt [EMAIL PROTECTED]


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




Re: Tomcat 4 StandAlone Web Server, Static HTML and Images

2002-11-19 Thread Georg Hanwalter
Hi,

the problem with relative URL's when using the forward-method of a
request-dispatcher is that the URL's have to be relative to the server-root and
not to the destination page's actual location
e.g. under weapps you have a images-, a JSP and the WEB-INF-directory where your
servlet resides. Now when your servlet forwards to a JSP-page via a
request-dispatcher an the JSP-page contains an image you have to use the URL:

 ../images/image-used-in-the-page

Georg

p niemandt schrieb:

 Thanks Jeff, Steve: Giving me a lot of ideas: Sadly I'm still running
 full speed into mud ...

 I have changed the image directory to reside under my WEB-INF folder, do
 I need to configure this in one of the xml files as well? ie.
 application web.xml, or server.xml or something?

 I have written a filter that does authentication: It serves the
 index.shtml file, but for some reason I have to specify it as
 WEB-INF\index.shtml to make it work ...

 snip ---

 if (!validated) {
 // Create the RequestDispatcher
 Globals.utility.Log(className,
 doFilter:,
 Forwarding to  + getHtmlResult, 5);
 RequestDispatcher rd = config.getServletContext().
 getRequestDispatcher( getHtmlResult );
 rd.forward( req, res );
 return ;
 }

 --- snip

 where getHtmlResult is a string I read from a xml file. To make it work
 I need to specify WEB-INF\index.shtml in my xml file.

 This then serves the html, but none of my stylesheets or images are
 displayed ...

 snip ---

   link rel=stylesheet type=text/css href=style.css
 img src=images/logo.gif alt=Home width=142 height=60 border=0
 hspace=0 vspace=0

 --- snip

 On Mon, 2002-11-18 at 15:58, Steve Beech wrote:
  Jeff's right. You're web app is in the folder /servlet so your images should
  be in /servlet/images - of course I'm assuming you've got images on the
  index.shtml page and these are the ones you can't see.
  You only need the one web.xml file (in the WEB-INF folder for your web-app)
  - a second under images is not required.
 
  STeve
  -Original Message-
  From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
  Sent: 18 November 2002 15:33
  To: Tomcat Users List
  Subject: Re: Tomcat 4 StandAlone Web Server, Static HTML and Images
 
 
  Looks like you're basically putting your images in its own web app.  You
  may need a WEB-INF directory and trivial web.xml file under the images
  directory in order for Tomcat to like it as a web app (not sure though).
  Then, I think your url for the image would be /images/image.gif.
 
  Alternatively, you could move your images directory to be within your
  servlet web app.  Then, your url (from index.shtml) would be
  images/image.gif.
 
  HTH,
  -Jeff
 
 
 
 
 
  p niemandt [EMAIL PROTECTED]
  11/18/02 09:35 AM
  Please respond to Tomcat Users List
 
 
  To: Tomcat Users List [EMAIL PROTECTED]
  cc:
  Subject:Tomcat 4 StandAlone Web Server, Static HTML and
  Images
 
 
  Hi Group: Please help ...
 
  I'm very new to servlets, though I do have a lot of programming
  experience. My problem is that I can't seem to get images displayed
  properly using Tomcat as the web server.
 
  I have a very simple layout ...
 
  webapps
  /servlet
   index.shtml
   /WEB-INF- My servlets and web.xml
  /images
   contains my images
 
  I manage to serve the index.shtml quite easily, my problem is that I
  can't get the images displayed without specifying the whole url in the
  form file:///dir/to/images/image.gif, and I think this is wrong.
 
  There is a lot of information regarding how to configure a web server to
  display the images, and this I can do fine, but I would like to only run
  Tomcat: My site is very small, and the latency in Tomcat would not
  effect it. My question is in how to specify the url for the image in the
  html,
 
  I have tried image.gif, /servlet/image.gif, ../image/image.gif,
  /servlet/../image/image.gif, etc, etc.
 
  Now I suspect I'm missing something very stupid, but sadly I have no
  idea what. I do not want to code the image display, as far as I know,
  Tomcat should be able to handle such a simple html site.
 
  My servlets work well, database connectivity and all, and the site works
  well if I use apache as well, but how to do this without Apache is
  currently beyond me.
 
  Any information or just hints in the correct direction would be greatly
  appreciated.
 --
 p niemandt [EMAIL PROTECTED]

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


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




Re: Tomcat 4 StandAlone Web Server, Static HTML and Images

2002-11-19 Thread p niemandt
Hi: This is getting closer, but somewhere I'm still doing something
extremely stupid, I think ...

Without the ../ in my url, if I check the logs, I get a 302, Moved kinda
thing, but with the ../ I get a 200 ok. The problem is that I still
can't see the image.

Can the problem be that the file served is called index.shtml, and is
not a jsp page? 

I have tried to both include the request and to forward the request,
with the same results.

TIA,


On Tue, 2002-11-19 at 13:12, Georg Hanwalter wrote:
 Hi,
 
 the problem with relative URL's when using the forward-method of a
 request-dispatcher is that the URL's have to be relative to the server-root and
 not to the destination page's actual location
 e.g. under weapps you have a images-, a JSP and the WEB-INF-directory where your
 servlet resides. Now when your servlet forwards to a JSP-page via a
 request-dispatcher an the JSP-page contains an image you have to use the URL:
 
  ../images/image-used-in-the-page
 
 Georg
 
 p niemandt schrieb:
 
  Thanks Jeff, Steve: Giving me a lot of ideas: Sadly I'm still running
  full speed into mud ...
 
  I have changed the image directory to reside under my WEB-INF folder, do
  I need to configure this in one of the xml files as well? ie.
  application web.xml, or server.xml or something?
 
  I have written a filter that does authentication: It serves the
  index.shtml file, but for some reason I have to specify it as
  WEB-INF\index.shtml to make it work ...
 
  snip ---
 
  if (!validated) {
  // Create the RequestDispatcher
  Globals.utility.Log(className,
  doFilter:,
  Forwarding to  + getHtmlResult, 5);
  RequestDispatcher rd = config.getServletContext().
  getRequestDispatcher( getHtmlResult );
  rd.forward( req, res );
  return ;
  }
 
  --- snip
 
  where getHtmlResult is a string I read from a xml file. To make it work
  I need to specify WEB-INF\index.shtml in my xml file.
 
  This then serves the html, but none of my stylesheets or images are
  displayed ...
 
  snip ---
 
link rel=stylesheet type=text/css href=style.css
  img src=images/logo.gif alt=Home width=142 height=60 border=0
  hspace=0 vspace=0
 
  --- snip
 
  On Mon, 2002-11-18 at 15:58, Steve Beech wrote:
   Jeff's right. You're web app is in the folder /servlet so your images should
   be in /servlet/images - of course I'm assuming you've got images on the
   index.shtml page and these are the ones you can't see.
   You only need the one web.xml file (in the WEB-INF folder for your web-app)
   - a second under images is not required.
  
   STeve
   -Original Message-
   From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
   Sent: 18 November 2002 15:33
   To: Tomcat Users List
   Subject: Re: Tomcat 4 StandAlone Web Server, Static HTML and Images
  
  
   Looks like you're basically putting your images in its own web app.  You
   may need a WEB-INF directory and trivial web.xml file under the images
   directory in order for Tomcat to like it as a web app (not sure though).
   Then, I think your url for the image would be /images/image.gif.
  
   Alternatively, you could move your images directory to be within your
   servlet web app.  Then, your url (from index.shtml) would be
   images/image.gif.
  
   HTH,
   -Jeff
  
  
  
  
  
   p niemandt [EMAIL PROTECTED]
   11/18/02 09:35 AM
   Please respond to Tomcat Users List
  
  
   To: Tomcat Users List [EMAIL PROTECTED]
   cc:
   Subject:Tomcat 4 StandAlone Web Server, Static HTML and
   Images
  
  
   Hi Group: Please help ...
  
   I'm very new to servlets, though I do have a lot of programming
   experience. My problem is that I can't seem to get images displayed
   properly using Tomcat as the web server.
  
   I have a very simple layout ...
  
   webapps
   /servlet
index.shtml
/WEB-INF- My servlets and web.xml
   /images
contains my images
  
   I manage to serve the index.shtml quite easily, my problem is that I
   can't get the images displayed without specifying the whole url in the
   form file:///dir/to/images/image.gif, and I think this is wrong.
  
   There is a lot of information regarding how to configure a web server to
   display the images, and this I can do fine, but I would like to only run
   Tomcat: My site is very small, and the latency in Tomcat would not
   effect it. My question is in how to specify the url for the image in the
   html,
  
   I have tried image.gif, /servlet/image.gif, ../image/image.gif,
   /servlet/../image/image.gif, etc, etc.
  
   Now I suspect I'm missing something very stupid, but sadly I have no
   idea what. I do not want to code the image display, as far as I know,
   Tomcat should be able to handle such a simple html site.
  
   My servlets work well

Re: Tomcat 4 StandAlone Web Server, Static HTML and Images

2002-11-19 Thread Georg Hanwalter
Do you use tomcat as standalone serving also all static files or do you use tomcat
together with a webserver like apache or iis. In this take care that your webserver
knows your webapp-directory for serving the static-files like your images

Georg

p niemandt schrieb:

 Hi: This is getting closer, but somewhere I'm still doing something
 extremely stupid, I think ...

 Without the ../ in my url, if I check the logs, I get a 302, Moved kinda
 thing, but with the ../ I get a 200 ok. The problem is that I still
 can't see the image.

 Can the problem be that the file served is called index.shtml, and is
 not a jsp page?

 I have tried to both include the request and to forward the request,
 with the same results.

 TIA,

 On Tue, 2002-11-19 at 13:12, Georg Hanwalter wrote:
  Hi,
 
  the problem with relative URL's when using the forward-method of a
  request-dispatcher is that the URL's have to be relative to the server-root and
  not to the destination page's actual location
  e.g. under weapps you have a images-, a JSP and the WEB-INF-directory where your
  servlet resides. Now when your servlet forwards to a JSP-page via a
  request-dispatcher an the JSP-page contains an image you have to use the URL:
 
   ../images/image-used-in-the-page
 
  Georg
 
  p niemandt schrieb:
 
   Thanks Jeff, Steve: Giving me a lot of ideas: Sadly I'm still running
   full speed into mud ...
  
   I have changed the image directory to reside under my WEB-INF folder, do
   I need to configure this in one of the xml files as well? ie.
   application web.xml, or server.xml or something?
  
   I have written a filter that does authentication: It serves the
   index.shtml file, but for some reason I have to specify it as
   WEB-INF\index.shtml to make it work ...
  
   snip ---
  
   if (!validated) {
   // Create the RequestDispatcher
   Globals.utility.Log(className,
   doFilter:,
   Forwarding to  + getHtmlResult, 5);
   RequestDispatcher rd = config.getServletContext().
   getRequestDispatcher( getHtmlResult );
   rd.forward( req, res );
   return ;
   }
  
   --- snip
  
   where getHtmlResult is a string I read from a xml file. To make it work
   I need to specify WEB-INF\index.shtml in my xml file.
  
   This then serves the html, but none of my stylesheets or images are
   displayed ...
  
   snip ---
  
 link rel=stylesheet type=text/css href=style.css
   img src=images/logo.gif alt=Home width=142 height=60 border=0
   hspace=0 vspace=0
  
   --- snip
  
   On Mon, 2002-11-18 at 15:58, Steve Beech wrote:
Jeff's right. You're web app is in the folder /servlet so your images should
be in /servlet/images - of course I'm assuming you've got images on the
index.shtml page and these are the ones you can't see.
You only need the one web.xml file (in the WEB-INF folder for your web-app)
- a second under images is not required.
   
STeve
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: 18 November 2002 15:33
To: Tomcat Users List
Subject: Re: Tomcat 4 StandAlone Web Server, Static HTML and Images
   
   
Looks like you're basically putting your images in its own web app.  You
may need a WEB-INF directory and trivial web.xml file under the images
directory in order for Tomcat to like it as a web app (not sure though).
Then, I think your url for the image would be /images/image.gif.
   
Alternatively, you could move your images directory to be within your
servlet web app.  Then, your url (from index.shtml) would be
images/image.gif.
   
HTH,
-Jeff
   
   
   
   
   
p niemandt [EMAIL PROTECTED]
11/18/02 09:35 AM
Please respond to Tomcat Users List
   
   
To: Tomcat Users List [EMAIL PROTECTED]
cc:
Subject:Tomcat 4 StandAlone Web Server, Static HTML and
Images
   
   
Hi Group: Please help ...
   
I'm very new to servlets, though I do have a lot of programming
experience. My problem is that I can't seem to get images displayed
properly using Tomcat as the web server.
   
I have a very simple layout ...
   
webapps
/servlet
 index.shtml
 /WEB-INF- My servlets and web.xml
/images
 contains my images
   
I manage to serve the index.shtml quite easily, my problem is that I
can't get the images displayed without specifying the whole url in the
form file:///dir/to/images/image.gif, and I think this is wrong.
   
There is a lot of information regarding how to configure a web server to
display the images, and this I can do fine, but I would like to only run
Tomcat: My site is very small, and the latency in Tomcat would not
effect it. My question is in how

Re: Tomcat 4 StandAlone Web Server, Static HTML and Images

2002-11-19 Thread p niemandt
Yeah: I'm trying to use tomcat as a standalone web server: I managed to
do this fine using apache to host the images: but we don't want to run
both Apache and Tomcat for our web app. { The app is not complex enough
to warrant the extra overhead }

On Tue, 2002-11-19 at 14:46, Georg Hanwalter wrote:
 Do you use tomcat as standalone serving also all static files or do you use tomcat
 together with a webserver like apache or iis. In this take care that your webserver
 knows your webapp-directory for serving the static-files like your images
 
 Georg
 
 p niemandt schrieb:
 
  Hi: This is getting closer, but somewhere I'm still doing something
  extremely stupid, I think ...
 
  Without the ../ in my url, if I check the logs, I get a 302, Moved kinda
  thing, but with the ../ I get a 200 ok. The problem is that I still
  can't see the image.
 
  Can the problem be that the file served is called index.shtml, and is
  not a jsp page?
 
  I have tried to both include the request and to forward the request,
  with the same results.
 
  TIA,
 
  On Tue, 2002-11-19 at 13:12, Georg Hanwalter wrote:
   Hi,
  
   the problem with relative URL's when using the forward-method of a
   request-dispatcher is that the URL's have to be relative to the server-root and
   not to the destination page's actual location
   e.g. under weapps you have a images-, a JSP and the WEB-INF-directory where your
   servlet resides. Now when your servlet forwards to a JSP-page via a
   request-dispatcher an the JSP-page contains an image you have to use the URL:
  
../images/image-used-in-the-page
  
   Georg
  
   p niemandt schrieb:
  
Thanks Jeff, Steve: Giving me a lot of ideas: Sadly I'm still running
full speed into mud ...
   
I have changed the image directory to reside under my WEB-INF folder, do
I need to configure this in one of the xml files as well? ie.
application web.xml, or server.xml or something?
   
I have written a filter that does authentication: It serves the
index.shtml file, but for some reason I have to specify it as
WEB-INF\index.shtml to make it work ...
   
snip ---
   
if (!validated) {
// Create the RequestDispatcher
Globals.utility.Log(className,
doFilter:,
Forwarding to  + getHtmlResult, 5);
RequestDispatcher rd = config.getServletContext().
getRequestDispatcher( getHtmlResult );
rd.forward( req, res );
return ;
}
   
--- snip
   
where getHtmlResult is a string I read from a xml file. To make it work
I need to specify WEB-INF\index.shtml in my xml file.
   
This then serves the html, but none of my stylesheets or images are
displayed ...
   
snip ---
   
  link rel=stylesheet type=text/css href=style.css
img src=images/logo.gif alt=Home width=142 height=60 border=0
hspace=0 vspace=0
   
--- snip
   
On Mon, 2002-11-18 at 15:58, Steve Beech wrote:
 Jeff's right. You're web app is in the folder /servlet so your images should
 be in /servlet/images - of course I'm assuming you've got images on the
 index.shtml page and these are the ones you can't see.
 You only need the one web.xml file (in the WEB-INF folder for your web-app)
 - a second under images is not required.

 STeve
 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Sent: 18 November 2002 15:33
 To: Tomcat Users List
 Subject: Re: Tomcat 4 StandAlone Web Server, Static HTML and Images


 Looks like you're basically putting your images in its own web app.  You
 may need a WEB-INF directory and trivial web.xml file under the images
 directory in order for Tomcat to like it as a web app (not sure though).
 Then, I think your url for the image would be /images/image.gif.

 Alternatively, you could move your images directory to be within your
 servlet web app.  Then, your url (from index.shtml) would be
 images/image.gif.

 HTH,
 -Jeff





 p niemandt [EMAIL PROTECTED]
 11/18/02 09:35 AM
 Please respond to Tomcat Users List


 To: Tomcat Users List [EMAIL PROTECTED]
 cc:
 Subject:Tomcat 4 StandAlone Web Server, Static HTML and
 Images


 Hi Group: Please help ...

 I'm very new to servlets, though I do have a lot of programming
 experience. My problem is that I can't seem to get images displayed
 properly using Tomcat as the web server.

 I have a very simple layout ...

 webapps
 /servlet
  index.shtml
  /WEB-INF- My servlets and web.xml
 /images
  contains my images

 I manage to serve the index.shtml quite easily, my

SOLVED: Tomcat 4 StandAlone Web Server, Static HTML and Images

2002-11-19 Thread p niemandt
Hi Group: Thanks for all the help ...

All I can say is stupidity kills ... 

It turned out to be a simple configuration issue: Reinstalling Tomcat,
and reconfiguring it helped. It does not work if I use a ../ prefix,
but does if I just use images/xxx.gif

Regards.



On Tue, 2002-11-19 at 15:05, p niemandt wrote:
 Yeah: I'm trying to use tomcat as a standalone web server: I managed to
 do this fine using apache to host the images: but we don't want to run
 both Apache and Tomcat for our web app. { The app is not complex enough
 to warrant the extra overhead }
 
 On Tue, 2002-11-19 at 14:46, Georg Hanwalter wrote:
  Do you use tomcat as standalone serving also all static files or do you use tomcat
  together with a webserver like apache or iis. In this take care that your webserver
  knows your webapp-directory for serving the static-files like your images
  
  Georg
  
  p niemandt schrieb:
  
   Hi: This is getting closer, but somewhere I'm still doing something
   extremely stupid, I think ...
  
   Without the ../ in my url, if I check the logs, I get a 302, Moved kinda
   thing, but with the ../ I get a 200 ok. The problem is that I still
   can't see the image.
  
   Can the problem be that the file served is called index.shtml, and is
   not a jsp page?
  
   I have tried to both include the request and to forward the request,
   with the same results.
  
   TIA,
  
   On Tue, 2002-11-19 at 13:12, Georg Hanwalter wrote:
Hi,
   
the problem with relative URL's when using the forward-method of a
request-dispatcher is that the URL's have to be relative to the server-root and
not to the destination page's actual location
e.g. under weapps you have a images-, a JSP and the WEB-INF-directory where 
your
servlet resides. Now when your servlet forwards to a JSP-page via a
request-dispatcher an the JSP-page contains an image you have to use the URL:
   
 ../images/image-used-in-the-page
   
Georg
   
p niemandt schrieb:
   
 Thanks Jeff, Steve: Giving me a lot of ideas: Sadly I'm still running
 full speed into mud ...

 I have changed the image directory to reside under my WEB-INF folder, do
 I need to configure this in one of the xml files as well? ie.
 application web.xml, or server.xml or something?

 I have written a filter that does authentication: It serves the
 index.shtml file, but for some reason I have to specify it as
 WEB-INF\index.shtml to make it work ...

 snip ---

 if (!validated) {
 // Create the RequestDispatcher
 Globals.utility.Log(className,
 doFilter:,
 Forwarding to  + getHtmlResult, 5);
 RequestDispatcher rd = config.getServletContext().
 getRequestDispatcher( getHtmlResult );
 rd.forward( req, res );
 return ;
 }

 --- snip

 where getHtmlResult is a string I read from a xml file. To make it work
 I need to specify WEB-INF\index.shtml in my xml file.

 This then serves the html, but none of my stylesheets or images are
 displayed ...

 snip ---

   link rel=stylesheet type=text/css href=style.css
 img src=images/logo.gif alt=Home width=142 height=60 border=0
 hspace=0 vspace=0

 --- snip

 On Mon, 2002-11-18 at 15:58, Steve Beech wrote:
  Jeff's right. You're web app is in the folder /servlet so your images 
should
  be in /servlet/images - of course I'm assuming you've got images on the
  index.shtml page and these are the ones you can't see.
  You only need the one web.xml file (in the WEB-INF folder for your web-app)
  - a second under images is not required.
 
  STeve
  -Original Message-
  From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
  Sent: 18 November 2002 15:33
  To: Tomcat Users List
  Subject: Re: Tomcat 4 StandAlone Web Server, Static HTML and Images
 
 
  Looks like you're basically putting your images in its own web app.  You
  may need a WEB-INF directory and trivial web.xml file under the images
  directory in order for Tomcat to like it as a web app (not sure though).
  Then, I think your url for the image would be /images/image.gif.
 
  Alternatively, you could move your images directory to be within your
  servlet web app.  Then, your url (from index.shtml) would be
  images/image.gif.
 
  HTH,
  -Jeff
 
 
 
 
 
  p niemandt [EMAIL PROTECTED]
  11/18/02 09:35 AM
  Please respond to Tomcat Users List
 
 
  To: Tomcat Users List [EMAIL PROTECTED]
  cc:
  Subject:Tomcat 4 StandAlone Web Server, Static HTML and
  Images
 
 
  Hi Group: Please help ...
 
  I'm very new to servlets

Tomcat 4 StandAlone Web Server, Static HTML and Images

2002-11-18 Thread p niemandt
Hi Group: Please help ...

I'm very new to servlets, though I do have a lot of programming
experience. My problem is that I can't seem to get images displayed
properly using Tomcat as the web server. 

I have a very simple layout ...

webapps
/servlet
index.shtml
/WEB-INF- My servlets and web.xml
/images
contains my images

I manage to serve the index.shtml quite easily, my problem is that I
can't get the images displayed without specifying the whole url in the
form file:///dir/to/images/image.gif, and I think this is wrong. 

There is a lot of information regarding how to configure a web server to
display the images, and this I can do fine, but I would like to only run
Tomcat: My site is very small, and the latency in Tomcat would not
effect it. My question is in how to specify the url for the image in the
html,

I have tried image.gif, /servlet/image.gif, ../image/image.gif,
/servlet/../image/image.gif, etc, etc.

Now I suspect I'm missing something very stupid, but sadly I have no
idea what. I do not want to code the image display, as far as I know,
Tomcat should be able to handle such a simple html site. 

My servlets work well, database connectivity and all, and the site works
well if I use apache as well, but how to do this without Apache is
currently beyond me.

Any information or just hints in the correct direction would be greatly
appreciated. 


-- 
p niemandt [EMAIL PROTECTED]


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




Re: Tomcat 4 StandAlone Web Server, Static HTML and Images

2002-11-18 Thread jeff . guttadauro
Looks like you're basically putting your images in its own web app.  You 
may need a WEB-INF directory and trivial web.xml file under the images 
directory in order for Tomcat to like it as a web app (not sure though). 
Then, I think your url for the image would be /images/image.gif.

Alternatively, you could move your images directory to be within your 
servlet web app.  Then, your url (from index.shtml) would be 
images/image.gif.

HTH,
-Jeff
 




p niemandt [EMAIL PROTECTED]
11/18/02 09:35 AM
Please respond to Tomcat Users List

 
To: Tomcat Users List [EMAIL PROTECTED]
cc: 
Subject:Tomcat 4 StandAlone Web Server, Static HTML and Images


Hi Group: Please help ...

I'm very new to servlets, though I do have a lot of programming
experience. My problem is that I can't seem to get images displayed
properly using Tomcat as the web server. 

I have a very simple layout ...

webapps
/servlet
 index.shtml
 /WEB-INF- My servlets and web.xml
/images
 contains my images

I manage to serve the index.shtml quite easily, my problem is that I
can't get the images displayed without specifying the whole url in the
form file:///dir/to/images/image.gif, and I think this is wrong. 

There is a lot of information regarding how to configure a web server to
display the images, and this I can do fine, but I would like to only run
Tomcat: My site is very small, and the latency in Tomcat would not
effect it. My question is in how to specify the url for the image in the
html,

I have tried image.gif, /servlet/image.gif, ../image/image.gif,
/servlet/../image/image.gif, etc, etc.

Now I suspect I'm missing something very stupid, but sadly I have no
idea what. I do not want to code the image display, as far as I know,
Tomcat should be able to handle such a simple html site. 

My servlets work well, database connectivity and all, and the site works
well if I use apache as well, but how to do this without Apache is
currently beyond me.

Any information or just hints in the correct direction would be greatly
appreciated. 


-- 
p niemandt [EMAIL PROTECTED]


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






RE: Tomcat 4 StandAlone Web Server, Static HTML and Images

2002-11-18 Thread Steve Beech
Jeff's right. You're web app is in the folder /servlet so your images should
be in /servlet/images - of course I'm assuming you've got images on the
index.shtml page and these are the ones you can't see.
You only need the one web.xml file (in the WEB-INF folder for your web-app)
- a second under images is not required.

STeve
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: 18 November 2002 15:33
To: Tomcat Users List
Subject: Re: Tomcat 4 StandAlone Web Server, Static HTML and Images


Looks like you're basically putting your images in its own web app.  You 
may need a WEB-INF directory and trivial web.xml file under the images 
directory in order for Tomcat to like it as a web app (not sure though). 
Then, I think your url for the image would be /images/image.gif.

Alternatively, you could move your images directory to be within your 
servlet web app.  Then, your url (from index.shtml) would be 
images/image.gif.

HTH,
-Jeff
 




p niemandt [EMAIL PROTECTED]
11/18/02 09:35 AM
Please respond to Tomcat Users List

 
To: Tomcat Users List [EMAIL PROTECTED]
cc: 
Subject:Tomcat 4 StandAlone Web Server, Static HTML and
Images


Hi Group: Please help ...

I'm very new to servlets, though I do have a lot of programming
experience. My problem is that I can't seem to get images displayed
properly using Tomcat as the web server. 

I have a very simple layout ...

webapps
/servlet
 index.shtml
 /WEB-INF- My servlets and web.xml
/images
 contains my images

I manage to serve the index.shtml quite easily, my problem is that I
can't get the images displayed without specifying the whole url in the
form file:///dir/to/images/image.gif, and I think this is wrong. 

There is a lot of information regarding how to configure a web server to
display the images, and this I can do fine, but I would like to only run
Tomcat: My site is very small, and the latency in Tomcat would not
effect it. My question is in how to specify the url for the image in the
html,

I have tried image.gif, /servlet/image.gif, ../image/image.gif,
/servlet/../image/image.gif, etc, etc.

Now I suspect I'm missing something very stupid, but sadly I have no
idea what. I do not want to code the image display, as far as I know,
Tomcat should be able to handle such a simple html site. 

My servlets work well, database connectivity and all, and the site works
well if I use apache as well, but how to do this without Apache is
currently beyond me.

Any information or just hints in the correct direction would be greatly
appreciated. 


-- 
p niemandt [EMAIL PROTECTED]


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




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




Re: Tomcat 4.0.1 StandAlone Web Server and SSL

2002-02-19 Thread John Echano \(VMI\)

Where/what is CVS?

Thanks,

John

- Original Message -
From: Peter Romianowski [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Saturday, February 16, 2002 6:14 AM
Subject: RE: Tomcat 4.0.1 StandAlone Web Server and SSL


 Take a look into the the CVS. There is an updated version of the SSL-howto
 (under catalina/webapps/tomcat-doc)
 which describes how to use Verisign or Thawte CAs.

 -Original Message-
 From: Anton Brazhnyk [mailto:[EMAIL PROTECTED]]
 Sent: Saturday, February 16, 2002 10:11 AM
 To: Tomcat Users List
 Subject: RE: Tomcat 4.0.1 StandAlone Web Server and SSL


 Hi,

  -Original Message-
  From: John Echano [mailto:[EMAIL PROTECTED]]
  Sent: Saturday, February 16, 2002 2:36 AM
  To: [EMAIL PROTECTED]
  Subject: Tomcat 4.0.1 StandAlone Web Server and SSL
 
 
  We are interested in implementing SSL four our Apache Jakarta
  Tomcat Server.
  We are running this as a standalone web server on Red Hat Linux 7.1.
  According to Tomcat's documentation, it currently operates on JKS format
  keystores (the Java's standard keystore format). Is this
  something supported
  by well-known public CAs like Verisign or Thawte? For example,
  Are we going
  to be able to generate a certificate request in a format that Thawte
  supports  and that the return certificate can be imported into
  the Tomcat Server? If yes, how? The ssl-howto only provides instruction
on
  how to use a self-sign certificate.
 

 IMHO, its possible, but you'll have to become very familiar  (I wish I
were)
 with SSL, PKI, JSSE and so on.

  Thanks,
 
  John
 
 

 Anton

 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]



 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: Tomcat 4.0.1 StandAlone Web Server and SSL

2002-02-16 Thread Anton Brazhnyk

Hi,

 -Original Message-
 From: John Echano [mailto:[EMAIL PROTECTED]]
 Sent: Saturday, February 16, 2002 2:36 AM
 To: [EMAIL PROTECTED]
 Subject: Tomcat 4.0.1 StandAlone Web Server and SSL
 
 
 We are interested in implementing SSL four our Apache Jakarta 
 Tomcat Server.
 We are running this as a standalone web server on Red Hat Linux 7.1.
 According to Tomcat's documentation, it currently operates on JKS format
 keystores (the Java's standard keystore format). Is this 
 something supported
 by well-known public CAs like Verisign or Thawte? For example, 
 Are we going
 to be able to generate a certificate request in a format that Thawte
 supports  and that the return certificate can be imported into
 the Tomcat Server? If yes, how? The ssl-howto only provides instruction on
 how to use a self-sign certificate.
 

IMHO, its possible, but you'll have to become very familiar  (I wish I were)
with SSL, PKI, JSSE and so on.

 Thanks,
 
 John
 
 

Anton

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: Tomcat 4.0.1 StandAlone Web Server and SSL

2002-02-16 Thread Peter Romianowski

Take a look into the the CVS. There is an updated version of the SSL-howto
(under catalina/webapps/tomcat-doc)
which describes how to use Verisign or Thawte CAs.

-Original Message-
From: Anton Brazhnyk [mailto:[EMAIL PROTECTED]]
Sent: Saturday, February 16, 2002 10:11 AM
To: Tomcat Users List
Subject: RE: Tomcat 4.0.1 StandAlone Web Server and SSL


Hi,

 -Original Message-
 From: John Echano [mailto:[EMAIL PROTECTED]]
 Sent: Saturday, February 16, 2002 2:36 AM
 To: [EMAIL PROTECTED]
 Subject: Tomcat 4.0.1 StandAlone Web Server and SSL


 We are interested in implementing SSL four our Apache Jakarta
 Tomcat Server.
 We are running this as a standalone web server on Red Hat Linux 7.1.
 According to Tomcat's documentation, it currently operates on JKS format
 keystores (the Java's standard keystore format). Is this
 something supported
 by well-known public CAs like Verisign or Thawte? For example,
 Are we going
 to be able to generate a certificate request in a format that Thawte
 supports  and that the return certificate can be imported into
 the Tomcat Server? If yes, how? The ssl-howto only provides instruction on
 how to use a self-sign certificate.


IMHO, its possible, but you'll have to become very familiar  (I wish I were)
with SSL, PKI, JSSE and so on.

 Thanks,

 John



Anton

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Tomcat 4.0.1 StandAlone Web Server and SSL

2002-02-15 Thread John Echano

We are interested in implementing SSL four our Apache Jakarta Tomcat Server.
We are running this as a standalone web server on Red Hat Linux 7.1.
According to Tomcat's documentation, it currently operates on JKS format
keystores (the Java's standard keystore format). Is this something supported
by well-known public CAs like Verisign or Thawte? For example, Are we going
to be able to generate a certificate request in a format that Thawte
supports  and that the return certificate can be imported into
the Tomcat Server? If yes, how? The ssl-howto only provides instruction on
how to use a self-sign certificate.

Thanks,

John


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




How to configure a URL redirect with Tomcat 4.0 standalone

2002-01-21 Thread Haller, Joe

Is there a way to configure Tomcat 4.0 in standalone mode
to peform a URL redirect?

E.g.

www.myhost.com/FileA  -- www.myhost.com/FileB.

I would like to do this without deploying a servlet.

Many thanks in advance.

J. Haller

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: SSL working on tomcat 4.0 standalone?

2001-12-13 Thread Jim Urban

I just received a trial cert from Verisign.  I tried to import the cert
using the command keytool -import -alias tomcat -trustcacerts -file
./verisign.csr.  After entering the password I received the following error
keytool error: java.lang.Exception: Failed to establish chain from reply.
Any ideas what is causing this error and how to get around it?

Thanks,
Jim

-Original Message-
From: mik graham [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 12, 2001 6:05 PM
To: [EMAIL PROTECTED]
Subject: SSL working on tomcat 4.0 standalone?


I have SSL running on tomcat 4.0 standalone, solaris 8 box. After following
the directions from
http://jakarta.apache.org/tomcat/tomcat-4.0-doc/ssl-howto.html
it worked fine with my self signed certificate. I created the certificate by
running the following command:

keytool -genkey -alias tomcat -keyalg RSA

I then proceeded to create the CSR which I sent to Verisign with the
following:

keytool -certreq -alias tomcat -file /tmp/foo.csr

I found something odd here was that if I had spaces in my company name
when I ran the keytool -genkey..., the keytool -certreq... would
fail. I re-ran the keytool -genkey... and took out the spaces from
the company name. Then the keytool -certreq... would work fine.

Once I received back the certificate from Verisign, I tried to import
it with the following.

keytool -import -alias tomcat -trustcacerts -file ./verisign.csr

The only odd thing was at the end it asked if I wanted to trust
this certificate, I didn't think it was suppose to do that.

I'm still able to connect to the server via https. Once connected
I click on the lock to view the certificate and it still appears
to be the original self signed one, not Verisign's.

I'm looking for any help I can get on this one. Thanks.

Mik Graham

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




SSL working on tomcat 4.0 standalone?

2001-12-12 Thread mik graham

I have SSL running on tomcat 4.0 standalone, solaris 8 box. After following
the directions from http://jakarta.apache.org/tomcat/tomcat-4.0-doc/ssl-howto.html
it worked fine with my self signed certificate. I created the certificate by
running the following command: 

keytool -genkey -alias tomcat -keyalg RSA

I then proceeded to create the CSR which I sent to Verisign with the
following:

keytool -certreq -alias tomcat -file /tmp/foo.csr

I found something odd here was that if I had spaces in my company name
when I ran the keytool -genkey..., the keytool -certreq... would
fail. I re-ran the keytool -genkey... and took out the spaces from
the company name. Then the keytool -certreq... would work fine.

Once I received back the certificate from Verisign, I tried to import
it with the following.

keytool -import -alias tomcat -trustcacerts -file ./verisign.csr

The only odd thing was at the end it asked if I wanted to trust
this certificate, I didn't think it was suppose to do that.

I'm still able to connect to the server via https. Once connected
I click on the lock to view the certificate and it still appears
to be the original self signed one, not Verisign's.

I'm looking for any help I can get on this one. Thanks.

Mik Graham

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Tomcat 4.0 standalone webserver.

2001-10-05 Thread Danny Heinen

Hi,

I use the Tomcat 4.0 standalone webserver for an Intranet application. I
currently don't need that much performance, and thus don't need the Apache
webserver.

I generate log files (with log4J) in my application context, making them
available for the administrator, by using the browser. At the beginning it
worked fine. I could see the log files grow, just by making a refresh of the
page. But after a certain time (some hours) the file in the directory list
of Tomcat just freezed (date, size), and Tomcat doesn't serve the latest
file anymore.

When I check the file over network, it's fine.

I installed Tomcat in it's original configuration. No special settings. My
context:

Context path=/notes
docBase=C:/Danny/DannyProj/Hitec/Hitec/Hkms/webapps/hkms debug=0
reloadable=true
Logger className=org.apache.catalina.logger.FileLogger
prefix=localhost_notes_log. suffix=.txt timestamp=true/
/Context

Thanks for any info.

Regards,
Danny Heinen




tomcat 4 standalone virtual host

2001-09-23 Thread Dom

Is it possible to manage virtual hosts with tomcat 4 standalone ?

When I start Tomcat, I get in catalina out :
Starting service Tomcat-Standalone
Apache tomcat/4.0
java.lang.NullPointerException
at org.apache.catalina.startup.HostConfig.deployApps(Unknown Source)
...

If I start Tomcat without the virtual host, I get
Starting service Tomcat-Standalone
Apache tomcat/4.0
Starting service Tomcat-Apache
Apache tomcat/4.0

Using Tomcat 3.2 and Apache 1.3.19, I had no trouble managing this virtual
host

And trying to compile mod_webapp, after ./configure I get : APR buildconf :
autoconf not found
(Linux MDK 7.2 with kernel 2.4.9)

Dom




Re: Get Friggin Verisign Working on Tomcat 4.0 Standalone How To - The Official Thread

2001-09-23 Thread Jonathan Eric Miller

If you haven't already done this, you might want to check out the keytool
documentation that comes with the JDK. The Examples section pretty much
explains how to do it. The next thing you need to do is a -import when you
get back the signed certificate from Verisign.

http://java.sun.com/j2se/1.4/docs/tooldocs/win32/keytool.html

Jon

- Original Message -
From: Nick Torenvliet [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, September 20, 2001 9:33 AM
Subject: Get Friggin Verisign Working on Tomcat 4.0 Standalone How To - The
Official Thread




 Hi guys I''ve been searching through various sources like the list
archives,
 responses(thanks) to
 my previous posts and I've got two things to offer.

 First the observation that a lot of us are struggling with getting third
 party services like verisign
 to work on tomcat standalone.

 Second I can give what I have so far which I believe is useful, I hope
 someone can move this subject to
 the next level for us.  I'm running tomcat4.0 and jdk1.4(which includes
the
 JSSE).
 At this point I have certificates and https running on my lan.  The pretty
 little lock shows up on IE6
 whenever one of my pcs requests tomcat to serve up some html.
 I got to this point by following the instructions at
 http://jakarta.apache.org/tomcat/tomcat-4.0-doc/ssl-howto.html
 word for word.

 I found how to generate a CSR which was stumping a bunch of us, it was in
a
 SAMS book on J2 I bought
 a while back from a bargain table(to think my wife thought it was
useless),
 the command is

 keytool -certreq -keystore /root/.keystore -alias tomcat -file mycsr

 This command uses the keystore I created by following the the ssl how to
in
 /root/.keystore, and the alias
 I used (again from the ssl how to)being tomcat and saves that highly
coveted
 csr that you can send to verisign
 in the file mycsr.  I almost cried when I saw the csr, it was just like on
 versign's website sob
 sob.

 Anyways I am going to send off my csr now, and anyone who would like to
 finish this
 get friggin verisign working howto please do so I can go home on time
 tonight.

 Love ya all Nick





Get Friggin Verisign Working on Tomcat 4.0 Standalone How To - The Official Thread

2001-09-20 Thread Nick Torenvliet



Hi guys I''ve been searching through various sources like the list archives,
responses(thanks) to
my previous posts and I've got two things to offer.

First the observation that a lot of us are struggling with getting third
party services like verisign
to work on tomcat standalone.

Second I can give what I have so far which I believe is useful, I hope
someone can move this subject to
the next level for us.  I'm running tomcat4.0 and jdk1.4(which includes the
JSSE).
At this point I have certificates and https running on my lan.  The pretty
little lock shows up on IE6
whenever one of my pcs requests tomcat to serve up some html.
I got to this point by following the instructions at
http://jakarta.apache.org/tomcat/tomcat-4.0-doc/ssl-howto.html
word for word.

I found how to generate a CSR which was stumping a bunch of us, it was in a
SAMS book on J2 I bought
a while back from a bargain table(to think my wife thought it was useless),
the command is

keytool -certreq -keystore /root/.keystore -alias tomcat -file mycsr

This command uses the keystore I created by following the the ssl how to in
/root/.keystore, and the alias
I used (again from the ssl how to)being tomcat and saves that highly coveted
csr that you can send to verisign
in the file mycsr.  I almost cried when I saw the csr, it was just like on
versign's website sob
sob.

Anyways I am going to send off my csr now, and anyone who would like to
finish this
get friggin verisign working howto please do so I can go home on time
tonight.

Love ya all Nick




Tomcat 4 Standalone not running, NullPointerException..

2001-09-13 Thread Rajah Kalipatnapu


I successfully built tomcat 4, and when I try to run it as a standalone
server, I get this error in catalina.out. Any body faced this before, any
solution.

Thank you.

Contents from catalina.out

Starting service Tomcat-Standalone Apache Tomcat/4.0-rc1
java.lang.NullPointerException at
java.util.Hashtable.put(Hashtable.java:380) at
org.apache.catalina.core.ContainerBase.setResources(ContainerBase.java:747)
at
org.apache.catalina.core.StandardContext.setResources(StandardContext.java:1
090) at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3328) at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123) at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123) at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:307) at
org.apache.catalina.core.StandardService.start(StandardService.java:388) at
org.apache.catalina.core.StandardServer.start(StandardServer.java:505) at
org.apache.catalina.startup.Catalina.start(Catalina.java:776) at
org.apache.catalina.startup.Catalina.execute(Catalina.java:681) at
org.apache.catalina.startup.Catalina.process(Catalina.java:179) at
java.lang.reflect.Method.invoke(Native Method) at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:212)




Tomcat as standalone container

2001-06-14 Thread Casstevens, Brian



I am trying to use 
Tomcat as a standalone servlet container.To do this, do I need to have the 
Apache Web server installed and running, or is this contained in 
Tomcat?

Thanks,


Brian 
Casstevens



RE: Tomcat as standalone container

2001-06-14 Thread Rajeshwar Rao.V



NO 
need of Apache

  -Original Message-From: Casstevens, Brian 
  [mailto:[EMAIL PROTECTED]]Sent: Thursday, June 14, 2001 6:17 
  PMTo: [EMAIL PROTECTED]Subject: Tomcat as 
  standalone container
  I am trying to use 
  Tomcat as a standalone servlet container.To do this, do I need to have 
  the Apache Web server installed and running, or is this contained in 
  Tomcat?
  
  Thanks,
  
  
  Brian 
  Casstevens
  


RE: Tomcat as standalone container

2001-06-14 Thread Robert Slifka



...hence the use of the word "standalone" ;)

- 
r

  -Original Message-From: Rajeshwar Rao.V 
  [mailto:[EMAIL PROTECTED]]Sent: June 14, 2001 8:49 
  AMTo: '[EMAIL PROTECTED]'Subject: RE: 
  Tomcat as standalone container
  NO 
  need of Apache
  
-Original Message-From: Casstevens, Brian 
[mailto:[EMAIL PROTECTED]]Sent: Thursday, June 14, 2001 
6:17 PMTo: [EMAIL PROTECTED]Subject: 
Tomcat as standalone container
I am trying to 
use Tomcat as a standalone servlet container.To do this, do I need to 
have the Apache Web server installed and running, or is this contained in 
Tomcat?

Thanks,


Brian 
Casstevens



RE: Tomcat as standalone container

2001-06-14 Thread Christian Bernard



The 
Apache Web server is not contained in Tomcat. Tomcat is a Web server which 
includes a servlet engine and a JSP engine. To use Tomcat, there is no need to 
install a native Web server such as Apache or IIS or Netscape. Tomcat is able to 
serve static html pages as well.
For 
production needs, Tomcat is also able to run ontop of such native servers 
(either as a in-process or out-of-process container) but this is not necessary. 
This is a choice which depends of your context.
For 
more information, download the last version and have a look to the user's 
guide.

Christian BERNARD
Nagora 
Technologies

  -Original Message-From: Casstevens, Brian 
  [mailto:[EMAIL PROTECTED]]Sent: Thursday, June 14, 2001 2:47 
  PMTo: [EMAIL PROTECTED]Subject: Tomcat as 
  standalone container
  I am trying to use 
  Tomcat as a standalone servlet container.To do this, do I need to have 
  the Apache Web server installed and running, or is this contained in 
  Tomcat?
  
  Thanks,
  
  
  Brian 
  Casstevens
  


Re: Tomcat 3.2 standalone on Solaris 2.7 core dumping

2001-06-04 Thread Hemant Singh

HI Tom:
try increasing the memory available to shell in which your tomcat server is
running(on popup window in case ur using defaults)
It might work
Hemant


- Original Message -
From: Tom Amiro [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Sunday, June 03, 2001 10:31 PM
Subject: Tomcat 3.2 standalone on Solaris 2.7 core dumping


 Hi,

 I'm using Tomcat 3.2  in standalone mode on Solaris 2.7 with the JDK 1.3,
 and it is core dumping with Java Out of Memory.

 Tomcat is running a servlet that performs XSLT transformations on an
 XML file that is ~1.4MB big and returns html output to the client
 browser. It was running fine during development, but once the
 servlet was made available to the web site's users (www.coolrunning.com),
 it began crashing. Must be due to the increased load.

 I don't know how heavy the load is exactly, nor how to determine it, but
 the site is not an Ebay by any means. I'm assuming Tomcat can handle
 a single servlet application on a low-traffic web site -- less than
100,000 hits a day.

 Following suggestions on the web, I've

 - Increased the memory allocated to Tomcat to 128M (using -Xmx128m
switch)
 - Increased the max_threads to 100
 - Increased the file descriptors to 256
 - added System.gc(); to the end of the Servlet code

 These changes have helped; it takes much longer, but it still crashes
under normal use.

 I've been watching the output from the top command.
 It shows that the Tomcat  Java process is starting with about 32MB and
 over time and load it climbs. It was running at 62M for quite a while, and
 it even dropped to 55M, and then grew  to 169M without crashing.
 Not sure how high the SIZE (memory) gets to before it crashes; but crash
it does
 with a core dump.

 With the 'ps' command, I don't see any accumulation of treads. Here's
 a dump
   81= /usr/ucb/ps -auxww | grep thread
   root 24231 73.0 28.3173016141648 ?R 20:30:02 21:51
/usr/local/j2sdk/



bin/../bin/sparc/native_threads/java -Xmx128m -Dtomcat.home=/usr/local/tomca
t
   or g.apache.tomcat.startup.Tomcat

 I don't know how to analyze the core dump, except to use strings on it. At
least,
 I can see that it was definitely caused by Tomcat.

 What would be a reasonable setting on max_threads? Is 100 just to low?
 I could start Tomcat with more memory, say 256M (system has 512MB),
 but I don't want to negatively impact the other applications. The system
is running
 Apache without any problems, independent of Tomcat.

 I've spent months developing this JSP/Servlet application for the
Coolrunning
 Events calendar, and can't go back. Have to make Tomcat work!

 Any help appreciated.

 Tom











Tomcat 3.2 standalone on Solaris 2.7 core dumping

2001-06-03 Thread Tom Amiro

Hi,

I'm using Tomcat 3.2  in standalone mode on Solaris 2.7 with the JDK 1.3,
and it is core dumping with Java Out of Memory.

Tomcat is running a servlet that performs XSLT transformations on an
XML file that is ~1.4MB big and returns html output to the client
browser. It was running fine during development, but once the
servlet was made available to the web site's users (www.coolrunning.com),
it began crashing. Must be due to the increased load.

I don't know how heavy the load is exactly, nor how to determine it, but
the site is not an Ebay by any means. I'm assuming Tomcat can handle
a single servlet application on a low-traffic web site -- less than 100,000 hits a day.

Following suggestions on the web, I've

- Increased the memory allocated to Tomcat to 128M (using -Xmx128m switch)
- Increased the max_threads to 100
- Increased the file descriptors to 256
- added System.gc(); to the end of the Servlet code

These changes have helped; it takes much longer, but it still crashes under normal 
use.

I've been watching the output from the top command.
It shows that the Tomcat  Java process is starting with about 32MB and
over time and load it climbs. It was running at 62M for quite a while, and
it even dropped to 55M, and then grew  to 169M without crashing.
Not sure how high the SIZE (memory) gets to before it crashes; but crash it does
with a core dump.

With the 'ps' command, I don't see any accumulation of treads. Here's
a dump
  81= /usr/ucb/ps -auxww | grep thread
  root 24231 73.0 28.3173016141648 ?R 20:30:02 21:51 /usr/local/j2sdk/
  bin/../bin/sparc/native_threads/java -Xmx128m -Dtomcat.home=/usr/local/tomcat
  or g.apache.tomcat.startup.Tomcat

I don't know how to analyze the core dump, except to use strings on it. At least,
I can see that it was definitely caused by Tomcat.

What would be a reasonable setting on max_threads? Is 100 just to low?
I could start Tomcat with more memory, say 256M (system has 512MB),
but I don't want to negatively impact the other applications. The system is running
Apache without any problems, independent of Tomcat.

I've spent months developing this JSP/Servlet application for the Coolrunning
Events calendar, and can't go back. Have to make Tomcat work!

Any help appreciated.

Tom









Tomcat as standalone HTTP server

2001-04-25 Thread Olivier LAUDREN

Hi,

Is there somebody using Jakarta Tomcat as standalone HTTP server?
Witch (is/are) the most important difference(s) between this
configuration and Apache + Tomcat?

Bye.



Re: Tomcat as standalone HTTP server

2001-04-25 Thread Endre Stølsvik

On Wed, 25 Apr 2001, Olivier LAUDREN wrote:

| Hi,
|
| Is there somebody using Jakarta Tomcat as standalone HTTP server?
| Witch (is/are) the most important difference(s) between this
| configuration and Apache + Tomcat?

Speed on static documents. Apache is written in some C, while Tomcat is
written in the considerably slower Java.

Also you can load-balance via the apache, having one front-end apache
server, and 49 backend Tomcats. The apache can then do sticky session
load balancing between those tomcats.

It's a more messy config using both, but it works!

-- 
Mvh,
Endre




Classpath problems with tomcat 3.2.1 standalone.

2001-04-10 Thread Renee Petris



I've at my wits end 
trying to resolve ClassNotFoundExceptions using tomcat 3.2.1 and jdk 
1.2.2.

I'm using JMS and 
JNDI that relies on a jar file and a zip file, fmprtl.zip and j2ee.jar. I need 
j2ee.jar for the javax.naming classes which aren't included in jdk1.2.2. I 
explicitly added the .zip file to my Tomcat classpath. My webapps directory 
structure looks like:

D:\Apps\tomcat\webapps\JMSadmin
 
-error.jsp 
- JMSQueue.jsp
D:\Apps\tomcat\webapps\JMSadmin\WEB-INF
 
-classes\ 
- lib\
D:\Apps\tomcat\webapps\JMSadmin\WEB-INF\classes
 
- 
NumMessagesBean.class 
- 
QueueBean.class 
- 
queueList.properties 
- QueueListBean.class

D:\Apps\tomcat\webapps\JMSadmin\WEB-INF\lib
 
- j2ee.jar

When I try to access 
my JMSQueue.jsp page which uses the beans in the WEB-INF\classes directory, my 
jasper log shows 

2001-04-10 09:34:22 
- ServletPath: 
/JMSQueue.jsp2001-04-10 09:34:22 
- PathInfo: 
null2001-04-10 09:34:22 
- RealPath: 
D:\Apps\tomcat\webapps\JMSadmin\JMSQueue.jsp2001-04-10 09:34:22 
- RequestURI: 
/JMSadmin/JMSQueue.jsp2001-04-10 09:34:22 
- QueryString: 
server=devmosjms1port=20012001-04-10 09:34:22 - 
Request Params:2001-04-10 09:34:22 
- port = 
20012001-04-10 09:34:22 
- server = 
devmosjms1
2001-04-10 09:34:22 
- Classpath according to the Servlet Engine is: 
D:\Apps\tomcat\webapps\JMSadmin\WEB-INF\classes;D:\Apps\tomcat\webapps\JMSadmin\WEB-INF\lib\j2ee.jar

This makes it look 
like j2ee.jar is on my classpath, but the jsp throws an exception: 
java.lang.NoClassDefFoundError: javax/naming/spi/InitialContextFactory, and this 
class is in j2ee.jar. If I put j2ee.jar explicitly on my Tomcat classpath 
(making sure its after servlet.jar, which it conflicts with), the code works. 


I've added a Context 
to my servlet.xml file:

Context path="/JMSadmin" docBase="webapps/JMSadmin" debug="0" 
crossContext="false" 
reloadable="false" 
/ContextAny ideas why j2ee.jar isn't found by the .jsp 
page?
Renée PetrisOverseer of 
the ExecutionLoudeye 
Technologies[EMAIL PROTECTED]414 Olive 
Way, Suite 300Seattle, WA 98101206-832-4500 
phone206-832-4475 fax 



  1   2   >