RE : set default web application

2005-01-12 Thread LERBSCHER Jean-Pierre
If i understand what you want to do, you have to edit your web.xml file and
specify your url-pattern element in servlet-mapping section.
For example :
servlet-mapping
servlet-nameyour servlet classe/servlet-name
url-pattern//url-pattern
/servlet-mapping
Servlet specification specification of mappings indicates
* A string containing only the '/' character indicates the default
servlet of the
application. In this case the servlet path is the request URI minus the
context
path and the path info is null.
-Message d'origine-
De : Parsons Technical Services [mailto:[EMAIL PROTECTED] 
Envoyé : mercredi 12 janvier 2005 05:51
À : Tomcat Users List
Objet : Re: set default web application

Turn up debugging and check your logs. It should report on startup what is 
processed. Look for errors.

Move the ROOT folder out of the webapps folder.

After step 3 would step 1 still work?

Doug

- Original Message - 
From: xhu1 [EMAIL PROTECTED]
To: tomcat-user@jakarta.apache.org
Sent: Tuesday, January 11, 2005 8:42 PM
Subject: set default web application


 Hi,
 I just downloaded Tomcat5.5 and Struts1.2.4. I would
 like to make struts-mailreader app to be the default
 application in Tomcat. However I could not make it.

 What I did (I didn't touch any configuration yet):
 1. copy struts-mailreader.war and put in webapps
 directory. it got deployed and I can go to
 http://localhost:8080/struts-mailreader
 2. I add context.xml under
 webapps/struts-mailreader/META-INFO with the following
 line:
 Context path=
 docbase=${catalina.home}/webapps/struts-mailreader/Context.
 When I go to http://localhost:8080, it still points to
 welcome one.
 3. I rename ROOT under webapps to be ROOT1, now
 http://localhost:8080 becomes blank screen
 4, I add struts-mailreader.xml under
 conf\Catalina\localhost with the same line as in
 context.xml, it still a blank screen when I request
 http://localhost:8080.

 set the default web app should be very commom task,
 but it's so difficult for me. Please help. Thanks.




 __
 Do you Yahoo!?
 Yahoo! Mail - Helps protect you from nasty viruses.
 http://promotions.yahoo.com/new_mail

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


 



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

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



Re: set default web application

2005-01-12 Thread xhu1

 Thanks for your reply. 
 I turned on the debug and didn't see any error
 log. I still get blank screen when I request
 http://localhost:8081 (I change the port to be
 8081),
 the following is the log that when request the
 default http://localhost:8081:
 
 DEBUG http-8081-Processor24
 org.apache.commons.modeler.BaseModelMBean -
 preRegister [EMAIL PROTECTED]

Catalina:type=RequestProcessor,worker=http-8081,name=HttpRequest1
  DEBUG http-8081-Processor24
 org.apache.catalina.connector.MapperListener -
 Handle

Catalina:type=RequestProcessor,worker=http-8081,name=HttpRequest1
  DEBUG http-8081-Processor24
 org.apache.catalina.connector.MapperListener -
 Handle

Catalina:type=RequestProcessor,worker=http-8081,name=HttpRequest1
  DEBUG http-8081-Processor24
 org.apache.tomcat.util.threads.ThreadPool - Getting
 new thread data
  
 However, both http://localhost:8081/ROOT1 and 
 http://localhost:8081/struts-mailreader works
 perfectly. I checked the applications using manager,
 there are /ROOT1, /struts-mailreader, there is no
 application /.
 
 I think there should be a step by step faq to do
 this common task.
 
 Thanks again.
 
 Turn up debugging and check your logs. It should  
 report on startup what is processed. Look for 
 errors.


 Move the ROOT folder out of the webapps folder.


 After step 3 would step 1 still work?


 Doug





__ 
Do you Yahoo!? 
Yahoo! Mail - Find what you need with new enhanced search.
http://info.mail.yahoo.com/mail_250

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



Re: set default web application

2005-01-12 Thread Parsons Technical Services
I think I have found the answer. In 5.5 any path elements are ignored and 
the filename/docBase is used instead, UNLESS you specify it in a context 
element placed in the server.xml. So to set the default app for Tomcat you 
will need to do it this way.
As I said I think.

So try adding a context element to your server.xml and restart Tomcat.
Doug
- Original Message - 
From: xhu1 [EMAIL PROTECTED]
To: tomcat-user@jakarta.apache.org
Sent: Wednesday, January 12, 2005 7:05 PM
Subject: Re: set default web application


Thanks for your reply.
I turned on the debug and didn't see any error
log. I still get blank screen when I request
http://localhost:8081 (I change the port to be
8081),
the following is the log that when request the
default http://localhost:8081:
DEBUG http-8081-Processor24
org.apache.commons.modeler.BaseModelMBean -
preRegister [EMAIL PROTECTED]
Catalina:type=RequestProcessor,worker=http-8081,name=HttpRequest1
 DEBUG http-8081-Processor24
org.apache.catalina.connector.MapperListener -
Handle
Catalina:type=RequestProcessor,worker=http-8081,name=HttpRequest1
 DEBUG http-8081-Processor24
org.apache.catalina.connector.MapperListener -
Handle
Catalina:type=RequestProcessor,worker=http-8081,name=HttpRequest1
 DEBUG http-8081-Processor24
org.apache.tomcat.util.threads.ThreadPool - Getting
new thread data
However, both http://localhost:8081/ROOT1 and
http://localhost:8081/struts-mailreader works
perfectly. I checked the applications using manager,
there are /ROOT1, /struts-mailreader, there is no
application /.
I think there should be a step by step faq to do
this common task.
Thanks again.
Turn up debugging and check your logs. It should
report on startup what is processed. Look for
errors.

Move the ROOT folder out of the webapps folder.

After step 3 would step 1 still work?

Doug


__
Do you Yahoo!?
Yahoo! Mail - Find what you need with new enhanced search.
http://info.mail.yahoo.com/mail_250
-
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]


set default web application

2005-01-11 Thread xhu1
Hi,
I just downloaded Tomcat5.5 and Struts1.2.4. I would
like to make struts-mailreader app to be the default
application in Tomcat. However I could not make it.

What I did (I didn't touch any configuration yet):
1. copy struts-mailreader.war and put in webapps
directory. it got deployed and I can go to
http://localhost:8080/struts-mailreader
2. I add context.xml under
webapps/struts-mailreader/META-INFO with the following
line:
Context path=
docbase=${catalina.home}/webapps/struts-mailreader/Context.
When I go to http://localhost:8080, it still points to
welcome one.
3. I rename ROOT under webapps to be ROOT1, now
http://localhost:8080 becomes blank screen
4, I add struts-mailreader.xml under
conf\Catalina\localhost with the same line as in
context.xml, it still a blank screen when I request
http://localhost:8080.

set the default web app should be very commom task,
but it's so difficult for me. Please help. Thanks.




__ 
Do you Yahoo!? 
Yahoo! Mail - Helps protect you from nasty viruses. 
http://promotions.yahoo.com/new_mail

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



Re: set default web application

2005-01-11 Thread Parsons Technical Services
Turn up debugging and check your logs. It should report on startup what is 
processed. Look for errors.

Move the ROOT folder out of the webapps folder.
After step 3 would step 1 still work?
Doug
- Original Message - 
From: xhu1 [EMAIL PROTECTED]
To: tomcat-user@jakarta.apache.org
Sent: Tuesday, January 11, 2005 8:42 PM
Subject: set default web application


Hi,
I just downloaded Tomcat5.5 and Struts1.2.4. I would
like to make struts-mailreader app to be the default
application in Tomcat. However I could not make it.
What I did (I didn't touch any configuration yet):
1. copy struts-mailreader.war and put in webapps
directory. it got deployed and I can go to
http://localhost:8080/struts-mailreader
2. I add context.xml under
webapps/struts-mailreader/META-INFO with the following
line:
Context path=
docbase=${catalina.home}/webapps/struts-mailreader/Context.
When I go to http://localhost:8080, it still points to
welcome one.
3. I rename ROOT under webapps to be ROOT1, now
http://localhost:8080 becomes blank screen
4, I add struts-mailreader.xml under
conf\Catalina\localhost with the same line as in
context.xml, it still a blank screen when I request
http://localhost:8080.
set the default web app should be very commom task,
but it's so difficult for me. Please help. Thanks.

__
Do you Yahoo!?
Yahoo! Mail - Helps protect you from nasty viruses.
http://promotions.yahoo.com/new_mail
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


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