Re: automatic invocation of servlet as the root-service
How to setup virtual hosting with Orion: http://kb.atlassian.com/content/orionsupport/articles/vhosts.html Thanks Scott, great tutorial on virtual hosting with orion! orion_love_fest Ya gotta love Orion, the orion developers, all the folks from Atlassian, Elephantwalker and mail list contributors!!Hay, if big Larry E. votes with his pocket book and mouth, Orion's getting the respect it's deserved. Go Orion, eat WLS, kick Websphere... -falling off chair dizzy,,... /orion_love_fest Thanks guys!
Re: automatic invocation of servlet as the root-service
Please take off your email list. Technologent - Original Message - From: Jeff Schnitzer [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Thursday, January 31, 2002 8:01 AM Subject: RE: automatic invocation of servlet as the root-service Create a default.jsp with either: jsp:forward page=your/servlet/path/ or % response.sendRedirect(your/servlet/path); % depending on which fits your preference best. I find that the redirect is a bit better for debugging because jsp:forward munges any errors. I never managed to configure Orion to use a servlet as the context root. Nothing in the Servlet specification seems to require this be possible, either. Jeff Schnitzer [EMAIL PROTECTED] -Original Message- From: Robert Virkus [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 31, 2002 12:27 PM To: Orion-Interest Cc: Orion-Interest Subject: Re: automatic invocation of servlet as the root-service Hello Igor everyone out there, thanks for your help, I set the servlet-webdir to in the orion-web.xml and set the welcome file in the WEB-INF/web.xml to my desired servlet (welcome-file-list welcome-filecom.scaraboo.servlet.Loadbalancer/welcome-file /welcome-file-list) but if I surf to the root (eg. http://127.0.0.1), I just get a 403 Forbidden Directory browsing not allowed-Message. If I browse http://127.0.0.1/com.scaraboo.servlet.Loadbalancer instead, my servlet is invoked as expected... As you know I'd like to have my serlvet invoked each time I enter the root of the server (like in http://127.0.0.1). any further ideas? thanks a lot! - Robert Friday, February 01, 2002, 12:09:41 AM, you wrote: IC Hello, Robert . IC I sent to you the same message throw orion-interest e-mail(just reply on your message), but I am not sure you received it or not. IC Try next: IC Go to \orion\application-deployments\YourApplication... directory created IC YourSubApplication... IC folder with IC orion-web.xml where we IC can init IC servlet-webdir=/NameWebDir/ IC Default is /servlet/ IC You also can use: servlet-webdir= IC I hope it's help. IC Igor. IC Hello everybody! IC IC I hope someone can give me a hint for my problem: IC I want to try to use a servlet as the root of my web-application, so I IC want the servlet/com.company.mystuff.MyServlet - servlet called, when IC I do not specify any file in my http-request. IC IC So I want to map my servlet to the root of the web-application; if I IC call www.mycompany.com I want to get to my servlet, rather than IC receiving default.jsp or index.html (or a directory-browsing not IC allowed - message). IC IC Thanks in advance for your help!!! -- Robert Virkus scaraboo GmbH mobile Entertainment Georg-Wulf-Str.4-6 28199 Bremen Germany phone +49 - (0)421 - 59 67 549 fax+49 - (0)421 - 59 67 567 mobile +49 - (0)171 - 35 31 635 [EMAIL PROTECTED] www.scaraboo.de wap.scaraboo.de Aus Rechts- und Sicherheitsgruenden ist die in dieser E-Mail gegebene Information nicht rechtsverbindlich. Eine rechtsverbindliche Bestaetigung reichen wir Ihnen gerne auf Anforderung in schriftlicher Form nach. Beachten Sie bitte, dass jede Form der unautorisierten Nutzung, Veroeffentlichung, Vervielfaeltigung oder Weitergabe des Inhalts dieser E-Mail nicht gestattet ist. Diese Nachricht ist ausschliesslich fuer den bezeichneten Adressaten oder dessen Vertreter bestimmt. Sollten Sie nicht der vorgesehene Adressat dieser E-Mail oder dessen Vertreter sein, so bitten wir Sie, sich mit dem Absender der E-Mail in Verbindung zu setzen. For legal and security reasons the information provided in this e-mail is not legally binding. Upon request we would be pleased to provide you with a legally binding confirmation in written form. Any form of unauthorised use, publication, reproduction, copying or disclosure of the content of this e-mail is not permitted. This message is exclusively for the person addressed or their representative. If you are not the intended recipient of this message and its contents, please notify the sender immediately.
Re: automatic invocation of servlet as the root-service
If Your server allows FollowSymLinks just set a symbolic link /usr/httpd/htdocs/index.html - /usr/orion/web-app/WEB-INF/classes/indexservlet Or use the HTML-way: meta http-equiv=refresh value=0, url:http://www.maycompany.com/servlets/indexservlet; Please look the docs for correct syntax Max - Original Message - From: Robert Virkus [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Wednesday, January 30, 2002 10:06 AM Subject: automatic invocation of servlet as the root-service Hello everybody! I hope someone can give me a hint for my problem: I want to try to use a servlet as the root of my web-application, so I want the servlet/com.company.mystuff.MyServlet - servlet called, when I do not specify any file in my http-request. So I want to map my servlet to the root of the web-application; if I call www.mycompany.com I want to get to my servlet, rather than receiving default.jsp or index.html (or a directory-browsing not allowed - message). Thanks in advance for your help!!! best regards, Robert Virkus Director Mobile Solutions -- Robert Virkus scaraboo GmbH mobile Entertainment Georg-Wulf-Str.4-6 28199 Bremen Germany phone +49 - (0)421 - 59 67 549 fax+49 - (0)421 - 59 67 567 mobile +49 - (0)171 - 35 31 635 [EMAIL PROTECTED] www.scaraboo.de wap.scaraboo.de
Re: automatic invocation of servlet as the root-service
The drawback of this method is, that now _only_ the servlet can be invoked within this instance of orion - nothing else! But for our purposes this is just fine. It would be great if the J2EE /web.xml specs supported virtual hosting. I.E. URL based routing at the web container level to an application. Like Apache virtual hosting on the same IP/Port. curt
Re: automatic invocation of servlet as the root-service
Hello Igor everyone out there, thanks for your help, I set the servlet-webdir to in the orion-web.xml and set the welcome file in the WEB-INF/web.xml to my desired servlet (welcome-file-list welcome-filecom.scaraboo.servlet.Loadbalancer/welcome-file /welcome-file-list) but if I surf to the root (eg. http://127.0.0.1), I just get a 403 Forbidden Directory browsing not allowed-Message. If I browse http://127.0.0.1/com.scaraboo.servlet.Loadbalancer instead, my servlet is invoked as expected... As you know I'd like to have my serlvet invoked each time I enter the root of the server (like in http://127.0.0.1). any further ideas? thanks a lot! - Robert Friday, February 01, 2002, 12:09:41 AM, you wrote: IC Hello, Robert . IC I sent to you the same message throw orion-interest e-mail(just reply on your message), but I am not sure you received it or not. IC Try next: IC Go to \orion\application-deployments\YourApplication... directory created ICYourSubApplication... IC folder with IC orion-web.xml where we IC can init IC servlet-webdir=/NameWebDir/ IC Default is /servlet/ IC You also can use: servlet-webdir= IC I hope it's help. IC Igor. IC Hello everybody! IC IC I hope someone can give me a hint for my problem: IC I want to try to use a servlet as the root of my web-application, so I IC want the servlet/com.company.mystuff.MyServlet - servlet called, when IC I do not specify any file in my http-request. IC IC So I want to map my servlet to the root of the web-application; if I IC call www.mycompany.com I want to get to my servlet, rather than IC receiving default.jsp or index.html (or a directory-browsing not IC allowed - message). IC IC Thanks in advance for your help!!! -- Robert Virkus scaraboo GmbH mobile Entertainment Georg-Wulf-Str.4-6 28199 Bremen Germany phone +49 - (0)421 - 59 67 549 fax+49 - (0)421 - 59 67 567 mobile +49 - (0)171 - 35 31 635 [EMAIL PROTECTED] www.scaraboo.de wap.scaraboo.de Aus Rechts- und Sicherheitsgruenden ist die in dieser E-Mail gegebene Information nicht rechtsverbindlich. Eine rechtsverbindliche Bestaetigung reichen wir Ihnen gerne auf Anforderung in schriftlicher Form nach. Beachten Sie bitte, dass jede Form der unautorisierten Nutzung, Veroeffentlichung, Vervielfaeltigung oder Weitergabe des Inhalts dieser E-Mail nicht gestattet ist. Diese Nachricht ist ausschliesslich fuer den bezeichneten Adressaten oder dessen Vertreter bestimmt. Sollten Sie nicht der vorgesehene Adressat dieser E-Mail oder dessen Vertreter sein, so bitten wir Sie, sich mit dem Absender der E-Mail in Verbindung zu setzen. For legal and security reasons the information provided in this e-mail is not legally binding. Upon request we would be pleased to provide you with a legally binding confirmation in written form. Any form of unauthorised use, publication, reproduction, copying or disclosure of the content of this e-mail is not permitted. This message is exclusively for the person addressed or their representative. If you are not the intended recipient of this message and its contents, please notify the sender immediately.
RE: automatic invocation of servlet as the root-service
Hi Here is what I would try. Setup a context for your app (Servlet) Setup a defautl/welcome type pages for the root of your web server, say redir.html. Have that page do a redirect to the servlet resource using the standard HTML meta tag. meta http-equiv=refresh content = 0; url=http://your-site/your-servlet-resource Becarefull with your servlet mapping, so you dont get stuck in a loop -Original Message- From: Robert Virkus [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 31, 2002 1:27 PM To: Orion-Interest Cc: Orion-Interest Subject: Re: automatic invocation of servlet as the root-service Hello Igor everyone out there, thanks for your help, I set the servlet-webdir to in the orion-web.xml and set the welcome file in the WEB-INF/web.xml to my desired servlet (welcome-file-list welcome-filecom.scaraboo.servlet.Loadbalancer/welcome-file /welcome-file-list) but if I surf to the root (eg. http://127.0.0.1), I just get a 403 Forbidden Directory browsing not allowed-Message. If I browse http://127.0.0.1/com.scaraboo.servlet.Loadbalancer instead, my servlet is invoked as expected... As you know I'd like to have my serlvet invoked each time I enter the root of the server (like in http://127.0.0.1). any further ideas? thanks a lot! - Robert Friday, February 01, 2002, 12:09:41 AM, you wrote: IC Hello, Robert . IC I sent to you the same message throw orion-interest e-mail(just reply on your message), but I am not sure you received it or not. IC Try next: IC Go to \orion\application-deployments\YourApplication... directory created ICYourSubApplication... IC folder with IC orion-web.xml where we IC can init IC servlet-webdir=/NameWebDir/ IC Default is /servlet/ IC You also can use: servlet-webdir= IC I hope it's help. IC Igor. IC Hello everybody! IC IC I hope someone can give me a hint for my problem: IC I want to try to use a servlet as the root of my web-application, so I IC want the servlet/com.company.mystuff.MyServlet - servlet called, when IC I do not specify any file in my http-request. IC IC So I want to map my servlet to the root of the web-application; if I IC call www.mycompany.com I want to get to my servlet, rather than IC receiving default.jsp or index.html (or a directory-browsing not IC allowed - message). IC IC Thanks in advance for your help!!! -- Robert Virkus scaraboo GmbH mobile Entertainment Georg-Wulf-Str.4-6 28199 Bremen Germany phone +49 - (0)421 - 59 67 549 fax+49 - (0)421 - 59 67 567 mobile +49 - (0)171 - 35 31 635 [EMAIL PROTECTED] www.scaraboo.de wap.scaraboo.de Aus Rechts- und Sicherheitsgruenden ist die in dieser E-Mail gegebene Information nicht rechtsverbindlich. Eine rechtsverbindliche Bestaetigung reichen wir Ihnen gerne auf Anforderung in schriftlicher Form nach. Beachten Sie bitte, dass jede Form der unautorisierten Nutzung, Veroeffentlichung, Vervielfaeltigung oder Weitergabe des Inhalts dieser E-Mail nicht gestattet ist. Diese Nachricht ist ausschliesslich fuer den bezeichneten Adressaten oder dessen Vertreter bestimmt. Sollten Sie nicht der vorgesehene Adressat dieser E-Mail oder dessen Vertreter sein, so bitten wir Sie, sich mit dem Absender der E-Mail in Verbindung zu setzen. For legal and security reasons the information provided in this e-mail is not legally binding. Upon request we would be pleased to provide you with a legally binding confirmation in written form. Any form of unauthorised use, publication, reproduction, copying or disclosure of the content of this e-mail is not permitted. This message is exclusively for the person addressed or their representative. If you are not the intended recipient of this message and its contents, please notify the sender immediately. ** THIS MESSAGE IS INTENDED ONLY FOR THE ADDRESSEE, IT MAY CONTAIN PRIVILEGED OR CONFIDENTIAL INFORMATION. ANY UNAUTHORISED DISCLOSURE IS STRICTLY PROHIBITED. IF YOU HAVE RECEIVED THIS MESSAGE IN ERROR, PLEASE NOTIFY US IMMEDIATELY SO THAT WE MAY CORRECT OUR INTERNAL RECORDS. PLEASE THEN DELETE THE ORIGINAL EMAIL. THANK YOU **
RE: automatic invocation of servlet as the root-service
Create a default.jsp with either: jsp:forward page=your/servlet/path/ or % response.sendRedirect(your/servlet/path); % depending on which fits your preference best. I find that the redirect is a bit better for debugging because jsp:forward munges any errors. I never managed to configure Orion to use a servlet as the context root. Nothing in the Servlet specification seems to require this be possible, either. Jeff Schnitzer [EMAIL PROTECTED] -Original Message- From: Robert Virkus [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 31, 2002 12:27 PM To: Orion-Interest Cc: Orion-Interest Subject: Re: automatic invocation of servlet as the root-service Hello Igor everyone out there, thanks for your help, I set the servlet-webdir to in the orion-web.xml and set the welcome file in the WEB-INF/web.xml to my desired servlet (welcome-file-list welcome-filecom.scaraboo.servlet.Loadbalancer/welcome-file /welcome-file-list) but if I surf to the root (eg. http://127.0.0.1), I just get a 403 Forbidden Directory browsing not allowed-Message. If I browse http://127.0.0.1/com.scaraboo.servlet.Loadbalancer instead, my servlet is invoked as expected... As you know I'd like to have my serlvet invoked each time I enter the root of the server (like in http://127.0.0.1). any further ideas? thanks a lot! - Robert Friday, February 01, 2002, 12:09:41 AM, you wrote: IC Hello, Robert . IC I sent to you the same message throw orion-interest e-mail(just reply on your message), but I am not sure you received it or not. IC Try next: IC Go to \orion\application-deployments\YourApplication... directory created IC YourSubApplication... IC folder with IC orion-web.xml where we IC can init IC servlet-webdir=/NameWebDir/ IC Default is /servlet/ IC You also can use: servlet-webdir= IC I hope it's help. IC Igor. IC Hello everybody! IC IC I hope someone can give me a hint for my problem: IC I want to try to use a servlet as the root of my web-application, so I IC want the servlet/com.company.mystuff.MyServlet - servlet called, when IC I do not specify any file in my http-request. IC IC So I want to map my servlet to the root of the web-application; if I IC call www.mycompany.com I want to get to my servlet, rather than IC receiving default.jsp or index.html (or a directory-browsing not IC allowed - message). IC IC Thanks in advance for your help!!! -- Robert Virkus scaraboo GmbH mobile Entertainment Georg-Wulf-Str.4-6 28199 Bremen Germany phone +49 - (0)421 - 59 67 549 fax+49 - (0)421 - 59 67 567 mobile +49 - (0)171 - 35 31 635 [EMAIL PROTECTED] www.scaraboo.de wap.scaraboo.de Aus Rechts- und Sicherheitsgruenden ist die in dieser E-Mail gegebene Information nicht rechtsverbindlich. Eine rechtsverbindliche Bestaetigung reichen wir Ihnen gerne auf Anforderung in schriftlicher Form nach. Beachten Sie bitte, dass jede Form der unautorisierten Nutzung, Veroeffentlichung, Vervielfaeltigung oder Weitergabe des Inhalts dieser E-Mail nicht gestattet ist. Diese Nachricht ist ausschliesslich fuer den bezeichneten Adressaten oder dessen Vertreter bestimmt. Sollten Sie nicht der vorgesehene Adressat dieser E-Mail oder dessen Vertreter sein, so bitten wir Sie, sich mit dem Absender der E-Mail in Verbindung zu setzen. For legal and security reasons the information provided in this e-mail is not legally binding. Upon request we would be pleased to provide you with a legally binding confirmation in written form. Any form of unauthorised use, publication, reproduction, copying or disclosure of the content of this e-mail is not permitted. This message is exclusively for the person addressed or their representative. If you are not the intended recipient of this message and its contents, please notify the sender immediately.
RE: automatic invocation of servlet as the root-service
Sounds like you should use a filter! Check out the filter tutorials at orionserver.com. /Jason -Original Message- From: Robert Virkus [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 31, 2002 9:27 PM To: Orion-Interest Cc: Orion-Interest Subject: Re: automatic invocation of servlet as the root-service Hello Igor everyone out there, thanks for your help, I set the servlet-webdir to in the orion-web.xml and set the welcome file in the WEB-INF/web.xml to my desired servlet (welcome-file-list welcome-filecom.scaraboo.servlet.Loadbalancer/welcome-file /welcome-file-list) but if I surf to the root (eg. http://127.0.0.1), I just get a 403 Forbidden Directory browsing not allowed-Message. If I browse http://127.0.0.1/com.scaraboo.servlet.Loadbalancer instead, my servlet is invoked as expected... As you know I'd like to have my serlvet invoked each time I enter the root of the server (like in http://127.0.0.1). any further ideas? thanks a lot! - Robert Friday, February 01, 2002, 12:09:41 AM, you wrote: IC Hello, Robert . IC I sent to you the same message throw orion-interest e-mail(just reply on your message), but I am not sure you received it or not. IC Try next: IC Go to \orion\application-deployments\YourApplication... directory created ICYourSubApplication... IC folder with IC orion-web.xml where we IC can init IC servlet-webdir=/NameWebDir/ IC Default is /servlet/ IC You also can use: servlet-webdir= IC I hope it's help. IC Igor. IC Hello everybody! IC IC I hope someone can give me a hint for my problem: IC I want to try to use a servlet as the root of my web-application, so I IC want the servlet/com.company.mystuff.MyServlet - servlet called, when IC I do not specify any file in my http-request. IC IC So I want to map my servlet to the root of the web-application; if I IC call www.mycompany.com I want to get to my servlet, rather than IC receiving default.jsp or index.html (or a directory-browsing not IC allowed - message). IC IC Thanks in advance for your help!!! -- Robert Virkus scaraboo GmbH mobile Entertainment Georg-Wulf-Str.4-6 28199 Bremen Germany phone +49 - (0)421 - 59 67 549 fax+49 - (0)421 - 59 67 567 mobile +49 - (0)171 - 35 31 635 [EMAIL PROTECTED] www.scaraboo.de wap.scaraboo.de Aus Rechts- und Sicherheitsgruenden ist die in dieser E-Mail gegebene Information nicht rechtsverbindlich. Eine rechtsverbindliche Bestaetigung reichen wir Ihnen gerne auf Anforderung in schriftlicher Form nach. Beachten Sie bitte, dass jede Form der unautorisierten Nutzung, Veroeffentlichung, Vervielfaeltigung oder Weitergabe des Inhalts dieser E-Mail nicht gestattet ist. Diese Nachricht ist ausschliesslich fuer den bezeichneten Adressaten oder dessen Vertreter bestimmt. Sollten Sie nicht der vorgesehene Adressat dieser E-Mail oder dessen Vertreter sein, so bitten wir Sie, sich mit dem Absender der E-Mail in Verbindung zu setzen. For legal and security reasons the information provided in this e-mail is not legally binding. Upon request we would be pleased to provide you with a legally binding confirmation in written form. Any form of unauthorised use, publication, reproduction, copying or disclosure of the content of this e-mail is not permitted. This message is exclusively for the person addressed or their representative. If you are not the intended recipient of this message and its contents, please notify the sender immediately.