RE: REPOST: Multiple websites on one server not found [NEED HELP]
At 13:42 15.11.00 , you wrote: At 11:06 AM 11/15/2000 -0600, you wrote: no, you have to get the terminology right, so people understand what you're trying to do ;-). you DON'T want to set up 3 websites in j2ee/orion terminology but have one website witth three web applications. your website is http://myserver. you got answers to set up different websites by the people who thought you wanted to do that because you said so and you got answers to set up one website with three web applications because that's what you described as in this email and the ones before. web site == one address like http://myserver (which will have a default web application mounted at "/") web application == twsm which you want to mount to the website http://myserver under "/twsm" which results in http://myserver/twsm hope this clears up the confusion and of course it's all your fault ;-). Allright, so I'm a dolt. :-) You are, of course, correct. Terminology is such a hard thing to master. ANYHOO, the above methods are what I'm trying to accomplish. I'm sorry for the confusion, and I will promise to assume all blame for any flamage which may occur as a result. So, now that Robert has so elegantly spoken for me, what sort of solutions do y'all have to offer the poor, clueless orion dev-head? what about the one I posted? one web-site.xml for http://myserver with default-web-app being the one you want to see at http://myserver/ and two web-apps (with root set to "/twsm" and "/cs2k" respectively). didn't that work? it should. I have plenty of sites/apps set up this way here. robert -- Andrew Kidder L3 SW/Support Engineer, IBU Tivoli Systems 512-436-4544 [EMAIL PROTECTED] http://www.tivoli.com (-) Robert Krüger (-) SIGNAL 7 Gesellschaft für Informationstechnologie mbH (-) Brüder-Knauß-Str. 79 - 64285 Darmstadt, (-) Tel: 06151 665401, Fax: 06151 665373 (-) [EMAIL PROTECTED], www.signal7.de
RE: REPOST: Multiple websites on one server not found [NEED HELP]
Sorry about my lack of lucidity. I would like to have 3 web sites up and running under one Orion server. I want the default website (the one that Orion displays by default) to display when the user types http://myserver, I want my cs2k site to come up when the user enters http://myserver/cs2k, and I would like http://myserver/twsm to display my other site. Currently, whichever site's application tag is defined first in server.xml is the one that gets mapped to http://myserver, and neither of the other two URL's work. These sites consist mostly of jsp's and servlets, but I am not sure about any EJBs that might be present. We have various beans littering the classpath, but the sites seem to be functioning properly in and of themselves. I guess I'm just confused about how to set up multiple websites under the same Orion server, and it seems that everyone on this list has a different opinion of how to do that. :) At 05:35 PM 11/14/2000 -0600, you wrote: Do you want 3 web sites? Or one web site that uses 3 web applications? Perhaps you could clarify your problem for us in a line or two? -mike -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Drew Kidder Sent: Wednesday, November 15, 2000 3:33 AM To: Orion-Interest Subject: Re: REPOST: Multiple websites on one server not found [NEED HELP] At 01:58 PM 11/13/2000 -0600, you wrote: THE SETUP (in $ORION_HOME/config, on host "orionhost") 1. I have a web-site.xml file for each of the two sites that I want to run under Orion (cs2k-web-site.xml and twsm-web-site.xml). Each file contains a line like this (sub "cs2k" in for "twsm" for cs2k-web-site.xml): default-web-app application="twsm" name="twsm-web" shared="true" root="/twsm" / this doesn't make sense. the default-web-app of a site is always mounted to "/". what you want is probably one web-site.xml that reads default-web-app application="whatever" name="whatever" root="/" / web-app application="twsm" name="twsm-web" root="/twsm" / web-app application="cs2k" name="cs2k-web" root="/cs2k" / HTH robert I have 3 separate web-site files: default-web-site.xml, cs2k-web-site.xml, and twsm-web-site.xml. I removed the default-web-app tag from the cs2k and twsm files, and I got an error when Orion tried to re-deploy that said that there was no default website defined for either application. I added the default-web-app tag back in, but this time did not add the "root" attribute. The apps deployed correctly, but the problem is still not resolved. I also went so far as to add context-root tags to each site's META-INF/application.xml, and those did no good either. I have included the relevant config files in a small zip attached to this note. You can see what I've done, and hopefully where I've munged up the works. The only file that I have modified but not included here is each site's respective application.xml file, and the only mods that I have done to either is to add the following lines: module web web-uritwsm-web/web-uri context-roottwsm//context-root /web /module (sub "cs2k" for "twsm" and you have the mods to the cs2k application.xml.) The context-root does nothing, in my tests. I may as well not have it defined. -- Andrew Kidder L3 SW/Support Engineer, IBU Tivoli Systems 512-436-4544 [EMAIL PROTECTED] http://www.tivoli.com
RE: REPOST: Multiple websites on one server not found [NEED HELP]
At 09:52 15.11.00 , you wrote: Sorry about my lack of lucidity. I would like to have 3 web sites up and running under one Orion server. I want the default website (the one that Orion displays by default) to display when the user types http://myserver, I want my cs2k site to come up when the user enters http://myserver/cs2k, and I would like http://myserver/twsm to display my other site. Currently, whichever site's application tag is defined first in server.xml is the one that gets mapped to http://myserver, and neither of the other two URL's work. These sites consist mostly of jsp's and servlets, but I am not sure about any EJBs that might be present. We have various beans littering the classpath, but the sites seem to be functioning properly in and of themselves. I guess I'm just confused about how to set up multiple websites under the same Orion server, and it seems that everyone on this list has a different opinion of how to do that. :) no, you have to get the terminology right, so people understand what you're trying to do ;-). you DON'T want to set up 3 websites in j2ee/orion terminology but have one website witth three web applications. your website is http://myserver. you got answers to set up different websites by the people who thought you wanted to do that because you said so and you got answers to set up one website with three web applications because that's what you described as in this email and the ones before. web site == one address like http://myserver (which will have a default web application mounted at "/") web application == twsm which you want to mount to the website http://myserver under "/twsm" which results in http://myserver/twsm hope this clears up the confusion and of course it's all your fault ;-). best regards, robert (-) Robert Krüger (-) SIGNAL 7 Gesellschaft für Informationstechnologie mbH (-) Brüder-Knauß-Str. 79 - 64285 Darmstadt, (-) Tel: 06151 665401, Fax: 06151 665373 (-) [EMAIL PROTECTED], www.signal7.de
Re: REPOST: Multiple websites on one server not found [NEED HELP]
At 01:58 PM 11/13/2000 -0600, you wrote: THE SETUP (in $ORION_HOME/config, on host "orionhost") 1. I have a web-site.xml file for each of the two sites that I want to run under Orion (cs2k-web-site.xml and twsm-web-site.xml). Each file contains a line like this (sub "cs2k" in for "twsm" for cs2k-web-site.xml): default-web-app application="twsm" name="twsm-web" shared="true" root="/twsm" / this doesn't make sense. the default-web-app of a site is always mounted to "/". what you want is probably one web-site.xml that reads default-web-app application="whatever" name="whatever" root="/" / web-app application="twsm" name="twsm-web" root="/twsm" / web-app application="cs2k" name="cs2k-web" root="/cs2k" / HTH robert I have 3 separate web-site files: default-web-site.xml, cs2k-web-site.xml, and twsm-web-site.xml. I removed the default-web-app tag from the cs2k and twsm files, and I got an error when Orion tried to re-deploy that said that there was no default website defined for either application. I added the default-web-app tag back in, but this time did not add the "root" attribute. The apps deployed correctly, but the problem is still not resolved. I also went so far as to add context-root tags to each site's META-INF/application.xml, and those did no good either. I have included the relevant config files in a small zip attached to this note. You can see what I've done, and hopefully where I've munged up the works. The only file that I have modified but not included here is each site's respective application.xml file, and the only mods that I have done to either is to add the following lines: module web web-uritwsm-web/web-uri context-roottwsm//context-root /web /module (sub "cs2k" for "twsm" and you have the mods to the cs2k application.xml.) The context-root does nothing, in my tests. I may as well not have it defined. config_files.tar -- Andrew Kidder L3 SW/Support Engineer, IBU Tivoli Systems 512-436-4544 [EMAIL PROTECTED] http://www.tivoli.com
RE: REPOST: Multiple websites on one server not found [NEED HELP]
Do you want 3 web sites? Or one web site that uses 3 web applications? Perhaps you could clarify your problem for us in a line or two? -mike -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Drew Kidder Sent: Wednesday, November 15, 2000 3:33 AM To: Orion-Interest Subject: Re: REPOST: Multiple websites on one server not found [NEED HELP] At 01:58 PM 11/13/2000 -0600, you wrote: THE SETUP (in $ORION_HOME/config, on host "orionhost") 1. I have a web-site.xml file for each of the two sites that I want to run under Orion (cs2k-web-site.xml and twsm-web-site.xml). Each file contains a line like this (sub "cs2k" in for "twsm" for cs2k-web-site.xml): default-web-app application="twsm" name="twsm-web" shared="true" root="/twsm" / this doesn't make sense. the default-web-app of a site is always mounted to "/". what you want is probably one web-site.xml that reads default-web-app application="whatever" name="whatever" root="/" / web-app application="twsm" name="twsm-web" root="/twsm" / web-app application="cs2k" name="cs2k-web" root="/cs2k" / HTH robert I have 3 separate web-site files: default-web-site.xml, cs2k-web-site.xml, and twsm-web-site.xml. I removed the default-web-app tag from the cs2k and twsm files, and I got an error when Orion tried to re-deploy that said that there was no default website defined for either application. I added the default-web-app tag back in, but this time did not add the "root" attribute. The apps deployed correctly, but the problem is still not resolved. I also went so far as to add context-root tags to each site's META-INF/application.xml, and those did no good either. I have included the relevant config files in a small zip attached to this note. You can see what I've done, and hopefully where I've munged up the works. The only file that I have modified but not included here is each site's respective application.xml file, and the only mods that I have done to either is to add the following lines: module web web-uritwsm-web/web-uri context-roottwsm//context-root /web /module (sub "cs2k" for "twsm" and you have the mods to the cs2k application.xml.) The context-root does nothing, in my tests. I may as well not have it defined.
Re: REPOST: Multiple websites on one server not found [NEED HELP]
At 13:19 13.11.00 , you wrote: I posted this last week, but haven't gotten any resolution. I've followed the how-to's and such in the Orion docs, and have searched the archive. None of the stuff that is mentioned there is working, so I implore any of you out there with multiple websites running to give this a look and help me figure out what I'm doing wrong. If you'd rather contact me off list, that's fine toobut I need to get this little problem solved, and I'm running out of places to look THE SETUP (in $ORION_HOME/config, on host "orionhost") 1. I have a web-site.xml file for each of the two sites that I want to run under Orion (cs2k-web-site.xml and twsm-web-site.xml). Each file contains a line like this (sub "cs2k" in for "twsm" for cs2k-web-site.xml): default-web-app application="twsm" name="twsm-web" shared="true" root="/twsm" / this doesn't make sense. the default-web-app of a site is always mounted to "/". what you want is probably one web-site.xml that reads default-web-app application="whatever" name="whatever" root="/" / web-app application="twsm" name="twsm-web" root="/twsm" / web-app application="cs2k" name="cs2k-web" root="/cs2k" / HTH robert 2. I have added the following lines to the end of server.xml: application name="twsm" path="../applications/twsm/" / web-site path="./twsm-web-site.xml" / application name="cs2k" path="../applications/cs2k/" / web-site path="./cs2k-web-site.xml" / 3. I have added the following lines to application.xml, under the default web-module tag: web-module id="cs2k" path="../applications/cs2k" / web-module id="twsm" path="../applications/twsm" / 4. All other files remain unmodified, and the default-web-site.xml has the root set to "/". Now, the application that comes up when entering a URL of http://orionhost/ is the first app to be defined in server.xml. I have verified this by switching the declarations, and the other site comes up as the default. I do not know how to get the browser to display the other site, as http://orionhost/cs2k and http://orionhost/twsm both yield 404 errors. Also, since I have defined the default website with a root of "/", shouldn't http://orionhost/ output the default web page, rather than one of my webapps? Currently, the same host:port will be serving both websites. They may get differing virtual domains in the future. So, can anyone tell me how I can view both websites on the same server? Can anyone see what I'm missing here? -- Andrew Kidder L3 SW/Support Engineer, IBU Tivoli Systems 512-436-4544 [EMAIL PROTECTED] http://www.tivoli.com (-) Robert Krüger (-) SIGNAL 7 Gesellschaft für Informationstechnologie mbH (-) Brüder-Knauß-Str. 79 - 64285 Darmstadt, (-) Tel: 06151 665401, Fax: 06151 665373 (-) [EMAIL PROTECTED], www.signal7.de
Re: REPOST: Multiple websites on one server not found [NEED HELP]
In your application.xml for each file, specify the context root. Eg, in cs2k/META-INF/application.xml specify: module web web-urics2k-web/web-uri !-- directory where the website lives, eg applications/cs2k/cs2k-web, must have a WEB-INF/web.xml file in it -- context-rootcs2k//context-root /web /module On Mon, 13 Nov 2000, Drew Kidder wrote: I posted this last week, but haven't gotten any resolution. I've followed the how-to's and such in the Orion docs, and have searched the archive. None of the stuff that is mentioned there is working, so I implore any of you out there with multiple websites running to give this a look and help me figure out what I'm doing wrong. If you'd rather contact me off list, that's fine toobut I need to get this little problem solved, and I'm running out of places to look THE SETUP (in $ORION_HOME/config, on host "orionhost") 1. I have a web-site.xml file for each of the two sites that I want to run under Orion (cs2k-web-site.xml and twsm-web-site.xml). Each file contains a line like this (sub "cs2k" in for "twsm" for cs2k-web-site.xml): default-web-app application="twsm" name="twsm-web" shared="true" root="/twsm" / 2. I have added the following lines to the end of server.xml: application name="twsm" path="../applications/twsm/" / web-site path="./twsm-web-site.xml" / application name="cs2k" path="../applications/cs2k/" / web-site path="./cs2k-web-site.xml" / 3. I have added the following lines to application.xml, under the default web-module tag: web-module id="cs2k" path="../applications/cs2k" / web-module id="twsm" path="../applications/twsm" / 4. All other files remain unmodified, and the default-web-site.xml has the root set to "/". Now, the application that comes up when entering a URL of http://orionhost/ is the first app to be defined in server.xml. I have verified this by switching the declarations, and the other site comes up as the default. I do not know how to get the browser to display the other site, as http://orionhost/cs2k and http://orionhost/twsm both yield 404 errors. Also, since I have defined the default website with a root of "/", shouldn't http://orionhost/ output the default web page, rather than one of my webapps? Currently, the same host:port will be serving both websites. They may get differing virtual domains in the future. So, can anyone tell me how I can view both websites on the same server? Can anyone see what I'm missing here? -- Andrew Kidder L3 SW/Support Engineer, IBU Tivoli Systems 512-436-4544 [EMAIL PROTECTED] http://www.tivoli.com
Re: REPOST: Multiple websites on one server not found [NEED HELP]
At 14:59 13.11.00 , you wrote: In your application.xml for each file, specify the context root. Eg, in cs2k/META-INF/application.xml specify: module web web-urics2k-web/web-uri !-- directory where the website lives, eg applications/cs2k/cs2k-web, must have a WEB-INF/web.xml file in it -- context-rootcs2k//context-root /web /module have you actually tried this?? I wasn't aware that the context root actually does anything. would be a surprise to me. I'm quite sure the only thing that's honoured is the root attribute in the web-app element. robert (-) Robert Krüger (-) SIGNAL 7 Gesellschaft für Informationstechnologie mbH (-) Brüder-Knauß-Str. 79 - 64285 Darmstadt, (-) Tel: 06151 665401, Fax: 06151 665373 (-) [EMAIL PROTECTED], www.signal7.de
Re: REPOST: Multiple websites on one server not found [NEED HELP]
Yep, it's how I have things set up! I don't have a web-app defined, just an application, with ejb and web modules, and it all works very nicely, unless I'm missing something here... On Mon, 13 Nov 2000, Robert Krueger wrote: At 14:59 13.11.00 , you wrote: In your application.xml for each file, specify the context root. Eg, in cs2k/META-INF/application.xml specify: module web web-urics2k-web/web-uri !-- directory where the website lives, eg applications/cs2k/cs2k-web, must have a WEB-INF/web.xml file in it -- context-rootcs2k//context-root /web /module have you actually tried this?? I wasn't aware that the context root actually does anything. would be a surprise to me. I'm quite sure the only thing that's honoured is the root attribute in the web-app element. robert (-) Robert Krüger (-) SIGNAL 7 Gesellschaft für Informationstechnologie mbH (-) Brüder-Knauß-Str. 79 - 64285 Darmstadt, (-) Tel: 06151 665401, Fax: 06151 665373 (-) [EMAIL PROTECTED], www.signal7.de
Re: REPOST: Multiple websites on one server not found [NEED HELP]
Ooops, spoke too soon. I just combed through my config files and it does look like I have a web-app root defined in default-web-site.xml, my mistake. On Mon, 13 Nov 2000, Robert Krueger wrote: At 14:59 13.11.00 , you wrote: In your application.xml for each file, specify the context root. Eg, in cs2k/META-INF/application.xml specify: module web web-urics2k-web/web-uri !-- directory where the website lives, eg applications/cs2k/cs2k-web, must have a WEB-INF/web.xml file in it -- context-rootcs2k//context-root /web /module have you actually tried this?? I wasn't aware that the context root actually does anything. would be a surprise to me. I'm quite sure the only thing that's honoured is the root attribute in the web-app element. robert (-) Robert Krüger (-) SIGNAL 7 Gesellschaft für Informationstechnologie mbH (-) Brüder-Knauß-Str. 79 - 64285 Darmstadt, (-) Tel: 06151 665401, Fax: 06151 665373 (-) [EMAIL PROTECTED], www.signal7.de