I am sorry, but can you summarize, what is not working at this
moment?

What computers, where in the network, are involved in the case
that is not working?

In this thread several questions were raised.

a) How to make an application the default one.

Answer: The default application is named ROOT (case sensitive).
You should undeploy the default one
(delete webapps/ROOT, webapps/ROOT.war, conf/localhost/ROOT.xml),
rename your war file to ROOT.war and deploy it.

Using the manager application you can verify, whether the deployment
was successful. But it seems that it was, because you can access
your application without MyApp path.

Also, as far as I understand, at this moment you have deployed your
application twice, as  ROOT.war and as MyApp.war.

Note, that the manager application displays a name for each application,
that name is configured in <display-name> element of web.xml.
Thus, you can see, whether your application is the root one, and not the
Tomcat's default one ("Welcome to Tomcat" is the name of the one that
comes with Tomcat).

b) IIS is not used at the server.

c) When accessing the server from a client computer, using its external
IP address of the server, the application is accessible without MyApp path.

d) If, accessed from the same client, using DNS name of the server,
default Tomcat ROOT application is displayed.

If that is the case, then you should check that it is actually accessing
your server, and not some other computer.

Check that DNS name is being resolved correctly, as you are expecting.
1) with nslookup Windows command, 2) check the contents
of file %SystemRoot%\system32\drivers\etc\hosts - the IP address
can be overwritten there.

Check the route to the server (tracert).

If there is network address translation (NAT) and/or port mapping involved,
check configuration of the router (proxy) that performs the translation.
Maybe your ISA is that proxy, and I am not familiar with how it is being
configured.

Try accessing the manager application through the server name.

If request reaches the server, it can be processed differently if virtual
servers are configured, but in your case
- Tomcat configuration does not have virtual servers (we have seen that
from your server.xml),
- You have undeployed the default ROOT application (you can check
that through the manager application), thus there is no way that the
default Tomcat page can be displayed by this instance of the server.

What is the configuration of your ISA? How your "publishing the server
through it" is configured?

So, what is not working?


Best regards,
Konstantin Kolinko

2008/9/8 Mostafa Mossaad <[EMAIL PROTECTED]>:
> Konstantin, any ideas?
>
> Guys?
>
> -----Original Message-----
> From: Mostafa Mossaad [mailto:[EMAIL PROTECTED]
> Sent: Saturday, September 06, 2008 2:59 PM
> To: Tomcat Users List
> Subject: RE: Default application or HTML redirect
>
> Hello Konstantin,
>        I changed the port number during installation to avoid having
> users writing :8080 whenever the access my application
>
>        Also, I believe I have the manager application installed, I took
> a look at it a while ago, however, my .WAR file is deployed and I didn't
> find any need to use the manager application.
>
>        I have checked my META-INF folder, and didn't find any files
> except for "MANIFEST.ME"
>
>        What do you think?
>
>
> Regards,
> Mostafa
>
> -----Original Message-----
> From: Konstantin Kolinko [mailto:[EMAIL PROTECTED]
> Sent: Thursday, September 04, 2008 12:22 PM
> To: Tomcat Users List
> Subject: Re: Default application or HTML redirect
>
> Well,
>
> Judging from your server.xml file, you are using Tomcat 6.0.
>
> Well, the file is the same as the default one, only connector port
> number is changed, s/8080/80/
>
> Do you have manager application installed? Usally it is installed.
> If yes, you can add
> <user username="foo" password="bar" roles="manager"/> to your
> conf/tomcat-users.xml, and access the application by the
> http://localhost/manager/html/
>
> It will list all the applications that are deployed, and allows you to
> undeploy applications and deploy your war file by uploading it.
>
> Also, do you have META-INF/context.xml in your war file? If it does
> exist there, and is not correctly written, it may break some things.
>
> Best regards,
> Konstantin Kolinko
>
> 2008/9/4 Mostafa Mossaad <[EMAIL PROTECTED]>:
>> Hello Konstantin,
>>        I believe I've miss lead you. I'm not using IIS and Tomcat
>> concurrently.
>>
>>        What I mean is that I had an older version of this application
>> that used to run on IIS *instead* of Tomcat. When I had the IIS
>> application, I used to access my URL directly, without the /MyApp
>> extension via a simple .html redirect file in the wwwroot folder.
>>
>>        Right now, I don't even use IIS, only Tomcat.
>>
>> Regards,
>> Mostafa
>>
>> -----Original Message-----
>> From: Konstantin Kolinko [mailto:[EMAIL PROTECTED]
>> Sent: Thursday, September 04, 2008 1:59 AM
>> To: Tomcat Users List
>> Subject: Re: Default application or HTML redirect
>>
>> I have a thought that there is some specifics in integrating Tomcat
>> with IIS.
>>
>> You did not mention how you did that, and what is in your
>> "worker.properties", and so on. Do you have proper configuration of
>> IIS-Tomcat ISAPI redirector?
>>
>> I have to say that I have yet no experience with configuring IIS with
>> Tomcat, so the following are somewhat theoretical findings. Maybe, if
>> the following won't help you, you can repost your question mentioning
>> IIS in its title, and properly describing all components of your
>> configuration.
>>
>> Also, you may try searching on "how to access tomcat root application
>> through IIS".
>>
>> Here is what I have found:
>> 1)
>> http://tomcat.apache.org/tomcat-5.5-doc/catalina/docs/api/org/apache/j
>> k/
>> config/IISConfig.html
>>
>> It is some Tomcat class that writes IIS configuration files for you
>> (e.g.
>> as the initial configuration of the server). Note the "noRoot"
>> configuration
>> attribute.
>>
>> If you examine the sources of that class, you may note, that root
>> context (ctxPath equals "") have some special processing. That
>> includes the following comment:
>> "# Note: To correctly serve the Tomcat's root context, IIS's Home
>> Directory must"
>> "# must be set to: \"" + getAbsoluteDocBase(context) + "\""
>>
>> May be that is what you are missing?
>>
>> Somehow I cannot not find any mention of root context specifics in the
>
>> tomcat and tomcat connector documention and wiki.
>>
>> 2) The following two articles might be useful:
>> http://www.iisadmin.co.uk/?p=8
>> http://blogs.msdn.com/david.wang/archive/2005/10/14/HOWTO_IIS_6_Reques
>> t_
>> Processing_Basics_Part_1.aspx
>>
>> I did not read them through, though.
>>
>> Best regards,
>> Konstantin Kolinko
>>
>> 2008/9/3 Mostafa Mossaad <[EMAIL PROTECTED]>:
>>> Any ideas Konstantin?
>>>
>>> Any ideas Mark?
>>>
>>> Regards,
>>> Mostafa
>>>
>>>
>>> -----Original Message-----
>>> From: Mostafa Mossaad [mailto:[EMAIL PROTECTED]
>>> Sent: Monday, September 01, 2008 3:56 PM
>>> To: Tomcat Users List
>>> Subject: RE: Default application or HTML redirect
>>>
>>> I forgot to add that yes, I can access my application locally but
>>> with using the external IP address, also without the /MyApp extension
>
>>> and
>> it
>>> loads like I want
>>>
>>> -----Original Message-----
>>> From: Mostafa Mossaad [mailto:[EMAIL PROTECTED]
>>> Sent: Monday, September 01, 2008 11:51 AM
>>> To: Tomcat Users List
>>> Subject: RE: Default application or HTML redirect
>>>
>>> Hello Konstantin
>>>
>>> 1- Yes, my host is accessible by its IP address, when I enter the IP,
>
>>> without the /MyAPp extension, it loads the web page I want normally,
>> not
>>> the Apache default page
>>>
>>> 2- I always delete temp files and clear my cookies whenever I'm
>>> trying
>>>
>>> 3- After uninstalling Tomcat, I deleted all its folders, especially
>> the
>>> ones that contain conf/server.xml and conf/web.xml
>>>
>>> 4- No, my ISA isn't on the same machine, and my ISA acts as a
>>> firewall/gateway, and I in this case, I use it to publish my
>>> application/web site
>>>
>>> A small comment, my application used to be published via IIS, and not
>
>>> Apache tomcat, and to get over this /MyApp extension, I simple
>>> created
>> a
>>> simple .html redirect file in the wwroot folder inside the inetpub
>>> folder of the IIS. Can't the same be somehow achieved via Tomcat? Via
>
>>> the "Welcome files" or something..
>>>
>>>
>>> -----Original Message-----
>>> From: Konstantin Kolinko [mailto:[EMAIL PROTECTED]
>>> Sent: Monday, September 01, 2008 2:23 AM
>>> To: Tomcat Users List
>>> Subject: Re: Default application or HTML redirect
>>>
>>> 1. Is your host accessible by its IP address?
>>>
>>> Also, can you access your application locally, but using external
>>> (not 127.0.0.1) IP address?
>>>
>>> 2. I hope, that it is not a caching issue (Ctrl+F5 from browser
>>> retrieves non-cached instance of the page, and, I think, should also
>>> refresh intermediate caches, if there are any).
>>>
>>> 3. I do not remember, whether reinstalling Tomcat will reset its
>>> configuration (at least, when uninstalling it allows you to keep it).
>>>
>>> You may download the *.zip distribution of Tomcat and compare/replace
>
>>> your conf/server.xml and conf/web.xml files with the ones from there.
>>>
>>> 4. Is your Microsoft Internet Security and Acceleration (ISA) 2006
>>> server on the same PC?
>>> You mentioned it, but where it comes into play here? I do not have
>>> experience with that product.
>>>
>>> Best regards,
>>> Konstantin Kolinko
>>>
>>> 2008/8/30 Mostafa Mossaad <[EMAIL PROTECTED]>:
>>>> Can you please tell me how?
>>>>
>>>> -----Original Message-----
>>>> From: Mark Thomas [mailto:[EMAIL PROTECTED]
>>>> Sent: Saturday, August 30, 2008 8:45 PM
>>>> To: Tomcat Users List
>>>> Subject: Re: Default application or HTML redirect
>>>>
>>>> Christopher Schultz wrote:
>>>>> Mark,
>>>>>
>>>>> Mark Thomas wrote:
>>>>>> Mostafa Mossaad wrote:
>>>>>>>  however, all my trails only seemed to make the application
>>>>>>> accessible via http://localhost only, not from the Internet.
>>>>>> Then you have a proxy / dns / routing issue, not a Tomcat one.
>>>>>
>>>>> It's possible that his default <Host> has not been set, and that
>>>>> the name of the only <Host> is "localhost". That'd do it.
>>>>>
>>>>> Mostafa, could you post your entire server.xml? Any changes you
>>>>> made
>>>> to
>>>>> CATALINA_BASE/conf/web.xml should be changed back.
>>>>
>>>> Yep, that would do it although the OP claimed a new Tomcat install
>>>> so the default host should be set.
>>>>
>>>> Mark
>>>>

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to