You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Johannes Stein <jo...@googlemail.com> on 2011/01/13 16:01:54 UTC

vhost - servlets not available

Hey,
i deployed a gwt-application in tomcat 6.0.18 without any problems. I
pointed a url to the ip-adress and deployed the application unter
webapps/myfolder, so that the app was reachable unter http://mydomain/myfolder.
It worked fine.
But since im using a vhost in tomcat i got a problem.
Every time when gwt tries a callback i get the message: "Requested
resource not found". I did not make any changes in the web.xml.
I added the host like the following in the server.xml:
...
<!-- Define the default virtual host
           Note: XML Schema validation will not work with Xerces 2.2.
       -->
      <Host name="srv2.tudom.de" appBase="tudom"
       unpackWARs="true" autoDeploy="true"
       xmlValidation="false" xmlNamespaceAware="false">
        </Host>
         <!-- VIRTUAL HOST INJECTION POINT -->
    </Engine>
The code is deployed into the folder tudom. The .html works fine, but
my callbacks dont work.

A snippet from my web.xml:
<servlet>
        <servlet-name>StartService</servlet-name>
        <servlet-class>tudom.start.server.StartServiceImpl</servlet-class>
  </servlet>
  <servlet-mapping>
        <servlet-name>StartService</servlet-name>
        <url-pattern>/tudom.start.Start/StartService</url-pattern>
  </servlet-mapping>

When im changing the URL-Pattern to
<url-pattern>/tudom.start.Start/StartService</url-pattern>

the Servlet gets reachable, but this doesnt interest GWT, cause it
still tries to load /tudom.start.Start/StartService.

Could everyone help me? Im now searching some hours and cant find
anything. Hope you can help me.
Greetings

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


RE: vhost - servlets not available

Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: Johannes Stein [mailto:johannes.stein@googlemail.com] 
> Subject: Re: vhost - servlets not available

> Is it regular that i will need a ROOT-directory in my app-base?

Yes - you always need to have a default webapp to handle requests that do not match other webapp paths.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: vhost - servlets not available

Posted by Christopher Schultz <ch...@christopherschultz.net>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Johannes,

On 1/13/2011 2:55 PM, Johannes Stein wrote:
> i got it working... i changed the host-entry and set the correct
> CATALINA_HOME and CATALINA_BASE.
> Both were not set correctly.

That'll get you.

> Now i set the following in server.xml:
> 
> for localhost
> appBase="webapps/localhost/"
> 
> for srv2.tudom.de
> appBase="webapps/tudom/"

Though that will work, it may be surprising for a Tomcat admin, who
expects that the "localhost" vhost will point to "webapps" and not a
directory within it. Looking at your filesystem, I would expect webapps
deployed as /localhost and /tudor instead of what's really going on. Of
course, one should always read the server.xml, but it will certainly be
surprising to someone new.

> after that i saw in the localhost directory that i will need a ROOT
> directory in webapps/tudom.

Yes: you should have a ROOT webapp for each of your vhosts unless you
don't care to serve anything at the root (/) level.

> There (webapps/tudom/ROOT/) i deployed my files. Dont know why, but its working.
> Is it regular that i will need a ROOT-directory in my app-base?

Unless you want to deploy to http://srv2.tudom.de/tudom/index.html,
you'll need to have your webapp called ROOT: those are the rules.

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk0vWhAACgkQ9CaO5/Lv0PDZvwCgkF4o8sBMbebTbyhoUFFP0mND
ztEAn1zpXz/b6IO6N7SwQoywi08YIwnA
=TgI6
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: vhost - servlets not available

Posted by Johannes Stein <jo...@googlemail.com>.
Hey Christopher,

i got it working... i changed the host-entry and set the correct
CATALINA_HOME and CATALINA_BASE.
Both were not set correctly.

Now i set the following in server.xml:

for localhost
appBase="webapps/localhost/"

for srv2.tudom.de
appBase="webapps/tudom/"

after that i saw in the localhost directory that i will need a ROOT
directory in webapps/tudom.
There (webapps/tudom/ROOT/) i deployed my files. Dont know why, but its working.
Is it regular that i will need a ROOT-directory in my app-base?

Thank you for your great help!

2011/1/13 Christopher Schultz <ch...@christopherschultz.net>:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Johannes,
>
> On 1/13/2011 2:20 PM, Johannes Stein wrote:
>> Now $CATALINA_HOME is setted to "/usr/share/tomcat6".
>
> Was that set to something else, earlier? /usr/share/tomcat6 looks like
> the CATALINA_HOME for a package-managed version of Tomcat. If that's the
> case, stuff could be anywhere.
>
> Do you have a "webapps" directory anywhere? Your default <Host> is set
> to appBase="webapps" and your /other/ <Host> is set to appBase="tudom".
> Since these settings aren't fully-qualified, they will be relative to
> the CATALINA_BASE setting (which is the same as CATALINA_HOME in a
> standard install, but might be different depending on how your package
> manager has laid things out).
>
>> There i can find  "bin,  lib,  webapps".
>
> Okay, that's a start. Here's what's in my CATALINA_HOME:
>
> - -rw-r--r-- 1 root root 37950 Mar  9  2010 LICENSE
> - -rw-r--r-- 1 root root   557 Mar  9  2010 NOTICE
> - -rw-r--r-- 1 root root  8669 Mar  9  2010 RELEASE-NOTES
> - -rw-r--r-- 1 root root  6670 Mar  9  2010 RUNNING.txt
> drwxr-xr-x 2 root root  4096 Mar 19  2010 bin
> drwxr-xr-x 2 root root  4096 Mar  9  2010 conf
> drwxr-xr-x 2 root root  4096 Mar 19  2010 lib
> drwxr-xr-x 2 root root  4096 Mar  9  2010 logs
> drwxr-xr-x 2 root root  4096 Mar 19  2010 temp
> drwxr-xr-x 7 root root  4096 Mar  9  2010 webapps
> drwxr-xr-x 2 root root  4096 Mar  9  2010 work
>
> Here's what's in my CATALINA_BASE:
>
> drwx------ 3 cschultz cschultz 4096 Jan  7 14:49 conf
> drwxr-xr-x 2 cschultz cschultz 4096 Jan 13 08:56 logs
> drwxr-xr-x 2 cschultz cschultz 4096 Jan  7 14:49 temp
> drwxr-xr-x 3 cschultz cschultz 4096 Jan  7 14:49 webapps
> drwxr-xr-x 3 cschultz cschultz 4096 Jan  7 14:49 work
>
>> But now srv2.tudom.de is not resolvable.
>
> Works for me:
>
> $ host srv2.tudom.de
> srv2.tudom.de           A       109.239.60.41
>
> Did you mean that you can't reach your webapps?
>
> I suspect that your webapp isn't placed into the correct location. You
> said that you can get to it, somehow. Is there a URL that responds with
> a 200 response that Tomcat serves? If so, what is it?
>
> (By the way, offering someone you don't know shell access on your server
> is a really bad idea.)
>
> - -chris
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.10 (MingW32)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
>
> iEYEARECAAYFAk0vU0IACgkQ9CaO5/Lv0PDZIACeP2oeRJMnYvhiBJKZasz4QmM7
> soIAn01l5h/23WfEUHp4yyLtIjjxvp19
> =p78x
> -----END PGP SIGNATURE-----
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: vhost - servlets not available

Posted by Christopher Schultz <ch...@christopherschultz.net>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Johannes,

On 1/13/2011 2:20 PM, Johannes Stein wrote:
> Now $CATALINA_HOME is setted to "/usr/share/tomcat6".

Was that set to something else, earlier? /usr/share/tomcat6 looks like
the CATALINA_HOME for a package-managed version of Tomcat. If that's the
case, stuff could be anywhere.

Do you have a "webapps" directory anywhere? Your default <Host> is set
to appBase="webapps" and your /other/ <Host> is set to appBase="tudom".
Since these settings aren't fully-qualified, they will be relative to
the CATALINA_BASE setting (which is the same as CATALINA_HOME in a
standard install, but might be different depending on how your package
manager has laid things out).

> There i can find  "bin,  lib,  webapps".

Okay, that's a start. Here's what's in my CATALINA_HOME:

- -rw-r--r-- 1 root root 37950 Mar  9  2010 LICENSE
- -rw-r--r-- 1 root root   557 Mar  9  2010 NOTICE
- -rw-r--r-- 1 root root  8669 Mar  9  2010 RELEASE-NOTES
- -rw-r--r-- 1 root root  6670 Mar  9  2010 RUNNING.txt
drwxr-xr-x 2 root root  4096 Mar 19  2010 bin
drwxr-xr-x 2 root root  4096 Mar  9  2010 conf
drwxr-xr-x 2 root root  4096 Mar 19  2010 lib
drwxr-xr-x 2 root root  4096 Mar  9  2010 logs
drwxr-xr-x 2 root root  4096 Mar 19  2010 temp
drwxr-xr-x 7 root root  4096 Mar  9  2010 webapps
drwxr-xr-x 2 root root  4096 Mar  9  2010 work

Here's what's in my CATALINA_BASE:

drwx------ 3 cschultz cschultz 4096 Jan  7 14:49 conf
drwxr-xr-x 2 cschultz cschultz 4096 Jan 13 08:56 logs
drwxr-xr-x 2 cschultz cschultz 4096 Jan  7 14:49 temp
drwxr-xr-x 3 cschultz cschultz 4096 Jan  7 14:49 webapps
drwxr-xr-x 3 cschultz cschultz 4096 Jan  7 14:49 work

> But now srv2.tudom.de is not resolvable.

Works for me:

$ host srv2.tudom.de
srv2.tudom.de           A       109.239.60.41

Did you mean that you can't reach your webapps?

I suspect that your webapp isn't placed into the correct location. You
said that you can get to it, somehow. Is there a URL that responds with
a 200 response that Tomcat serves? If so, what is it?

(By the way, offering someone you don't know shell access on your server
is a really bad idea.)

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk0vU0IACgkQ9CaO5/Lv0PDZIACeP2oeRJMnYvhiBJKZasz4QmM7
soIAn01l5h/23WfEUHp4yyLtIjjxvp19
=p78x
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: vhost - servlets not available

Posted by Johannes Stein <jo...@googlemail.com>.
Sorry for my stupidity.
Now $CATALINA_HOME is setted to "/usr/share/tomcat6".
There i can find  "bin,  lib,  webapps". But now srv2.tudom.de is not
resolvable.
Any ideas?


2011/1/13 Johannes Stein <jo...@googlemail.com>:
> When i am entering the $CATALINA_HOME directory in the shell with cd
> $CATALINA_HOME
> There is nothing else then there is nothing. cd $CATALINA_HOME/bin
> redirects me into the bin folder.
>
> 2011/1/13 Johannes Stein <jo...@googlemail.com>:
>> 2011/1/13 Christopher Schultz <ch...@christopherschultz.net>:
>>> -----BEGIN PGP SIGNED MESSAGE-----
>>> Hash: SHA1
>>>
>>> Johannes,
>>>
>>> On 1/13/2011 11:34 AM, Johannes Stein wrote:
>>>> <?xml version='1.0' encoding='utf-8'?>
>>>>
>>>> <Server port="8005" shutdown="SHUTDOWN">
>>>>     <Resource name="UserDatabase" auth="Container"
>>>>               type="org.apache.catalina.UserDatabase"
>>>>               description="User database that can be updated and saved"
>>>>               factory="org.apache.catalina.users.MemoryUserDatabaseFactory"
>>>>               pathname="conf/tomcat-users.xml" />
>>>>   </GlobalNamingResources>
>>>
>>> I hope this is a copy/paste error: the above is not well-formed.
>>>
>>>>   <Service name="Catalina">
>>>>     <Connector port="80" protocol="HTTP/1.1"
>>>>                connectionTimeout="20000"
>>>>                URIEncoding="UTF-8"
>>>>                redirectPort="8443" />
>>>
>>> NB: If you aren't using SSL, you should remove "redirectPort". It will
>>> only confuse you in the future.
>>>
>>>>     <Engine name="Catalina" defaultHost="localhost">
>>>>       <Host name="localhost"  appBase="webapps"
>>>>             unpackWARs="true" autoDeploy="true"
>>>>             xmlValidation="false" xmlNamespaceAware="false">
>>>>       </Host>
>>>>
>>>>       <Host name="srv2.tudom.de" appBase="tudom"
>>>
>>> What files/directories are currently under $CATALINA_HOME/tudom?
>>
>> It seems that there is nothing. I can find a folder localhost, but
>> there isnt a folder named tudom.
>> The path is /etc/tomcat6/Catalina... ist this correct?
>>
>>>>        unpackWARs="true" autoDeploy="true"
>>>>        xmlValidation="false" xmlNamespaceAware="false">
>>>>       <Alias>srv2.tudom.de</Alias>
>>>
>>> <Alias> is not necessary, here: the hostname is already "srv2.tudom.de".
>>>
>>>>         </Host>
>>>>     </Engine>
>>>>   </Service>
>>>> </Server>
>>>
>>> - -chris
>>> -----BEGIN PGP SIGNATURE-----
>>> Version: GnuPG v1.4.10 (MingW32)
>>> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
>>>
>>> iEYEARECAAYFAk0vKncACgkQ9CaO5/Lv0PCYAACdHdKAt5zbbx0eCQldoTE5bnp8
>>> ykkAniPaFOtWeJxdDS3LJI0kpBj9ieSB
>>> =VdAE
>>> -----END PGP SIGNATURE-----
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>>> For additional commands, e-mail: users-help@tomcat.apache.org
>>>
>>>
>>
>> If you wish i can grant you for some minutes access into the shell.
>>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: vhost - servlets not available

Posted by Johannes Stein <jo...@googlemail.com>.
When i am entering the $CATALINA_HOME directory in the shell with cd
$CATALINA_HOME
There is nothing else then there is nothing. cd $CATALINA_HOME/bin
redirects me into the bin folder.

2011/1/13 Johannes Stein <jo...@googlemail.com>:
> 2011/1/13 Christopher Schultz <ch...@christopherschultz.net>:
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA1
>>
>> Johannes,
>>
>> On 1/13/2011 11:34 AM, Johannes Stein wrote:
>>> <?xml version='1.0' encoding='utf-8'?>
>>>
>>> <Server port="8005" shutdown="SHUTDOWN">
>>>     <Resource name="UserDatabase" auth="Container"
>>>               type="org.apache.catalina.UserDatabase"
>>>               description="User database that can be updated and saved"
>>>               factory="org.apache.catalina.users.MemoryUserDatabaseFactory"
>>>               pathname="conf/tomcat-users.xml" />
>>>   </GlobalNamingResources>
>>
>> I hope this is a copy/paste error: the above is not well-formed.
>>
>>>   <Service name="Catalina">
>>>     <Connector port="80" protocol="HTTP/1.1"
>>>                connectionTimeout="20000"
>>>                URIEncoding="UTF-8"
>>>                redirectPort="8443" />
>>
>> NB: If you aren't using SSL, you should remove "redirectPort". It will
>> only confuse you in the future.
>>
>>>     <Engine name="Catalina" defaultHost="localhost">
>>>       <Host name="localhost"  appBase="webapps"
>>>             unpackWARs="true" autoDeploy="true"
>>>             xmlValidation="false" xmlNamespaceAware="false">
>>>       </Host>
>>>
>>>       <Host name="srv2.tudom.de" appBase="tudom"
>>
>> What files/directories are currently under $CATALINA_HOME/tudom?
>
> It seems that there is nothing. I can find a folder localhost, but
> there isnt a folder named tudom.
> The path is /etc/tomcat6/Catalina... ist this correct?
>
>>>        unpackWARs="true" autoDeploy="true"
>>>        xmlValidation="false" xmlNamespaceAware="false">
>>>       <Alias>srv2.tudom.de</Alias>
>>
>> <Alias> is not necessary, here: the hostname is already "srv2.tudom.de".
>>
>>>         </Host>
>>>     </Engine>
>>>   </Service>
>>> </Server>
>>
>> - -chris
>> -----BEGIN PGP SIGNATURE-----
>> Version: GnuPG v1.4.10 (MingW32)
>> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
>>
>> iEYEARECAAYFAk0vKncACgkQ9CaO5/Lv0PCYAACdHdKAt5zbbx0eCQldoTE5bnp8
>> ykkAniPaFOtWeJxdDS3LJI0kpBj9ieSB
>> =VdAE
>> -----END PGP SIGNATURE-----
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>> For additional commands, e-mail: users-help@tomcat.apache.org
>>
>>
>
> If you wish i can grant you for some minutes access into the shell.
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: vhost - servlets not available

Posted by Johannes Stein <jo...@googlemail.com>.
2011/1/13 Christopher Schultz <ch...@christopherschultz.net>:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Johannes,
>
> On 1/13/2011 11:34 AM, Johannes Stein wrote:
>> <?xml version='1.0' encoding='utf-8'?>
>>
>> <Server port="8005" shutdown="SHUTDOWN">
>>     <Resource name="UserDatabase" auth="Container"
>>               type="org.apache.catalina.UserDatabase"
>>               description="User database that can be updated and saved"
>>               factory="org.apache.catalina.users.MemoryUserDatabaseFactory"
>>               pathname="conf/tomcat-users.xml" />
>>   </GlobalNamingResources>
>
> I hope this is a copy/paste error: the above is not well-formed.
>
>>   <Service name="Catalina">
>>     <Connector port="80" protocol="HTTP/1.1"
>>                connectionTimeout="20000"
>>                URIEncoding="UTF-8"
>>                redirectPort="8443" />
>
> NB: If you aren't using SSL, you should remove "redirectPort". It will
> only confuse you in the future.
>
>>     <Engine name="Catalina" defaultHost="localhost">
>>       <Host name="localhost"  appBase="webapps"
>>             unpackWARs="true" autoDeploy="true"
>>             xmlValidation="false" xmlNamespaceAware="false">
>>       </Host>
>>
>>       <Host name="srv2.tudom.de" appBase="tudom"
>
> What files/directories are currently under $CATALINA_HOME/tudom?

It seems that there is nothing. I can find a folder localhost, but
there isnt a folder named tudom.
The path is /etc/tomcat6/Catalina... ist this correct?

>>        unpackWARs="true" autoDeploy="true"
>>        xmlValidation="false" xmlNamespaceAware="false">
>>       <Alias>srv2.tudom.de</Alias>
>
> <Alias> is not necessary, here: the hostname is already "srv2.tudom.de".
>
>>         </Host>
>>     </Engine>
>>   </Service>
>> </Server>
>
> - -chris
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.10 (MingW32)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
>
> iEYEARECAAYFAk0vKncACgkQ9CaO5/Lv0PCYAACdHdKAt5zbbx0eCQldoTE5bnp8
> ykkAniPaFOtWeJxdDS3LJI0kpBj9ieSB
> =VdAE
> -----END PGP SIGNATURE-----
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>

If you wish i can grant you for some minutes access into the shell.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: vhost - servlets not available

Posted by Christopher Schultz <ch...@christopherschultz.net>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Johannes,

On 1/13/2011 11:34 AM, Johannes Stein wrote:
> <?xml version='1.0' encoding='utf-8'?>
> 
> <Server port="8005" shutdown="SHUTDOWN">
>     <Resource name="UserDatabase" auth="Container"
>               type="org.apache.catalina.UserDatabase"
>               description="User database that can be updated and saved"
>               factory="org.apache.catalina.users.MemoryUserDatabaseFactory"
>               pathname="conf/tomcat-users.xml" />
>   </GlobalNamingResources>

I hope this is a copy/paste error: the above is not well-formed.

>   <Service name="Catalina">
>     <Connector port="80" protocol="HTTP/1.1"
>                connectionTimeout="20000"
>                URIEncoding="UTF-8"
>                redirectPort="8443" />

NB: If you aren't using SSL, you should remove "redirectPort". It will
only confuse you in the future.

>     <Engine name="Catalina" defaultHost="localhost">
>       <Host name="localhost"  appBase="webapps"
>             unpackWARs="true" autoDeploy="true"
>             xmlValidation="false" xmlNamespaceAware="false">
>       </Host>
> 
>       <Host name="srv2.tudom.de" appBase="tudom"

What files/directories are currently under $CATALINA_HOME/tudom?

>        unpackWARs="true" autoDeploy="true"
>        xmlValidation="false" xmlNamespaceAware="false">
> 	<Alias>srv2.tudom.de</Alias>

<Alias> is not necessary, here: the hostname is already "srv2.tudom.de".

>         </Host>
>     </Engine>
>   </Service>
> </Server>

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk0vKncACgkQ9CaO5/Lv0PCYAACdHdKAt5zbbx0eCQldoTE5bnp8
ykkAniPaFOtWeJxdDS3LJI0kpBj9ieSB
=VdAE
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: vhost - servlets not available

Posted by Johannes Stein <jo...@googlemail.com>.
Enclosed the server.xml, hope this helps!

<?xml version='1.0' encoding='utf-8'?>

<Server port="8005" shutdown="SHUTDOWN">
    <Resource name="UserDatabase" auth="Container"
              type="org.apache.catalina.UserDatabase"
              description="User database that can be updated and saved"
              factory="org.apache.catalina.users.MemoryUserDatabaseFactory"
              pathname="conf/tomcat-users.xml" />
  </GlobalNamingResources>


  <Service name="Catalina">
    <Connector port="80" protocol="HTTP/1.1"
               connectionTimeout="20000"
               URIEncoding="UTF-8"
               redirectPort="8443" />


    <Engine name="Catalina" defaultHost="localhost">

      <Realm className="org.apache.catalina.realm.UserDatabaseRealm"
             resourceName="UserDatabase"/>


      <Host name="localhost"  appBase="webapps"
            unpackWARs="true" autoDeploy="true"
            xmlValidation="false" xmlNamespaceAware="false">
      </Host>


      <Host name="srv2.tudom.de" appBase="tudom"
       unpackWARs="true" autoDeploy="true"
       xmlValidation="false" xmlNamespaceAware="false">
	<Alias>srv2.tudom.de</Alias>
        </Host>

    </Engine>
  </Service>
</Server>


2011/1/13 Caldarale, Charles R <Ch...@unisys.com>:
>> From: Johannes Stein [mailto:johannes.stein@googlemail.com]
>> Subject: Re: vhost - servlets not available
>
>> But it isnt still reachable. Do you have any idea?
>
> Post your complete server.xml, with comments removed and passwords obfuscated.  There's a strong possibility you've broken it.
>
>  - Chuck
>
>
> THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


RE: vhost - servlets not available

Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: Johannes Stein [mailto:johannes.stein@googlemail.com] 
> Subject: Re: vhost - servlets not available

> But it isnt still reachable. Do you have any idea?

Post your complete server.xml, with comments removed and passwords obfuscated.  There's a strong possibility you've broken it.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: vhost - servlets not available

Posted by Johannes Stein <jo...@googlemail.com>.
Firebug says that the call is going to: /tudom.start.Start/StartService
And thats correct. Its also mapped correctly....

<servlet>
  <servlet-name>StartService</servlet-name>
        <servlet-class>tudom.start.server.StartServiceImpl</servlet-class>
</servlet>
<servlet-mapping>
      <servlet-name>StartService</servlet-name>
      <url-pattern>/tudom.start.Start/StartService</url-pattern>
  </servlet-mapping>

But it isnt still reachable. Do you have any idea?


2011/1/13 Johannes Stein <jo...@googlemail.com>:
> 2011/1/13 Christopher Schultz <ch...@christopherschultz.net>:
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA1
>>
>> Johannes,
>>
>> On 1/13/2011 10:01 AM, Johannes Stein wrote:
>>> i deployed a gwt-application in tomcat 6.0.18 without any problems. I
>>> pointed a url to the ip-adress and deployed the application unter
>>> webapps/myfolder, so that the app was reachable unter http://mydomain/myfolder.
>>> It worked fine.
>>
>> Thanks for using the standard deployment mechanism! So many people want
>> to edit server.xml for some reason.
>>
>> BTW, 6.0.18 is really quite ancient. You should seriously consider
>> upgrading. 6.0.30 was released today... seems like an auspicious occasion.
>>
>>> But since im using a vhost in tomcat i got a problem.
>>> Every time when gwt tries a callback i get the message: "Requested
>>> resource not found". I did not make any changes in the web.xml.
>>> I added the host like the following in the server.xml:
>>> ...
>>> <!-- Define the default virtual host
>>>            Note: XML Schema validation will not work with Xerces 2.2.
>>>        -->
>>>       <Host name="srv2.tudom.de" appBase="tudom"
>>>        unpackWARs="true" autoDeploy="true"
>>>        xmlValidation="false" xmlNamespaceAware="false">
>>>         </Host>
>>>          <!-- VIRTUAL HOST INJECTION POINT -->
>>>     </Engine>
>>
>> What is your default host? It's specified in the <Engine> "defaultHost"
>> attribute.
>>
>
> As default host is set:
>
> <Engine name="Catalina" defaultHost="localhost">
>
>
>>> The code is deployed into the folder tudom. The .html works fine, but
>>> my callbacks dont work.
>>>
>>> A snippet from my web.xml:
>>> <servlet>
>>>         <servlet-name>StartService</servlet-name>
>>>         <servlet-class>tudom.start.server.StartServiceImpl</servlet-class>
>>>   </servlet>
>>>   <servlet-mapping>
>>>         <servlet-name>StartService</servlet-name>
>>>         <url-pattern>/tudom.start.Start/StartService</url-pattern>
>>>   </servlet-mapping>
>>>
>>> When im changing the URL-Pattern to
>>> <url-pattern>/tudom.start.Start/StartService</url-pattern>
>>>
>>> the Servlet gets reachable, but this doesnt interest GWT, cause it
>>> still tries to load /tudom.start.Start/StartService.
>>
>> Aren't those the same URL?
>
> Oh, i made a mistake. When im changing the url-pattern in the
> servlet-mapping to <url-pattern>/StartService</url-pattern> the
> servlet will be avaible.
> If i use the default config of gwt which sets:
> <url-pattern>/tudom.start.Start/StartService</url-pattern> the Servlet
> will not be available.
>
>>
>> What is the full URL that GWT is trying to access -- including server
>> name? I suspect that the introduction of the VHOST has exposed a flaw in
>> the URL building in your GWT interface's URLs.
>>
>> Are you trying to call one VHOST from a page hosted by another VHOST?
>> Are there any <BASE> elements in your web page that might be affecting
>> things?
>
> The files are on the same hast. I call directly the same vhost.
> Try it by yourself: http://srv2.tudom.de/Start.html
>
>>
>> It might be helpful to use a protocol sniffer like firebug,
>> LiveHTTPHeaders, iehttpheader, fiddler, etc. to see what URL your GWT
>> app is really trying to hit.
>
> I just downloaded it and will try it. But do you have any idea?
>
>>
>> - -chris
>> -----BEGIN PGP SIGNATURE-----
>> Version: GnuPG v1.4.10 (MingW32)
>> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
>>
>> iEYEARECAAYFAk0vG/4ACgkQ9CaO5/Lv0PDpbQCeLJ7PVFJcV7qPzzCFO5oYv04v
>> 4e0AnAnYUlftZps6btkg50xliMbK+n0U
>> =yQgm
>> -----END PGP SIGNATURE-----
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>> For additional commands, e-mail: users-help@tomcat.apache.org
>>
>>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: vhost - servlets not available

Posted by Christopher Schultz <ch...@christopherschultz.net>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Johannes,

On 1/13/2011 10:44 AM, Johannes Stein wrote:
> 2011/1/13 Christopher Schultz <ch...@christopherschultz.net>:
>> What is your default host? It's specified in the <Engine> "defaultHost"
>> attribute.
> 
> As default host is set:
> 
> <Engine name="Catalina" defaultHost="localhost">

Okay, that can certainly cause problems if you introduce a new vhost and
don't use it properly. I'm not saying that's the problem, here... just
mentioning that if all you did was introduce another vhost, that's the
only thing I can think of.

>> Aren't those the same URL?
> 
> Oh, i made a mistake. When im changing the url-pattern in the
> servlet-mapping to <url-pattern>/StartService</url-pattern> the
> servlet will be avaible.
> If i use the default config of gwt which sets:
> <url-pattern>/tudom.start.Start/StartService</url-pattern> the Servlet
> will not be available.
> 
>> What is the full URL that GWT is trying to access -- including server
>> name? I suspect that the introduction of the VHOST has exposed a flaw in
>> the URL building in your GWT interface's URLs.
> 
> The files are on the same hast. I call directly the same vhost.
> Try it by yourself: http://srv2.tudom.de/Start.html

Here's the conversation as my web browser sees it (beware: it's long):

http://srv2.tudom.de/Start.html

GET /Start.html HTTP/1.1
Host: srv2.tudom.de
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13)
Gecko/20101203 Firefox/3.6.13 ( .NET CLR 3.5.30729; .NET4.0C)
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Connection: keep-alive

HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Accept-Ranges: bytes
Etag: W/"7758-1293708879000"
Last-Modified: Thu, 30 Dec 2010 11:34:39 GMT
Content-Type: text/html
Content-Length: 7758
Date: Thu, 13 Jan 2011 16:03:41 GMT
- ----------------------------------------------------------
http://srv2.tudom.de/style.css

GET /style.css HTTP/1.1
Host: srv2.tudom.de
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13)
Gecko/20101203 Firefox/3.6.13 ( .NET CLR 3.5.30729; .NET4.0C)
Accept: text/css,*/*;q=0.1
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Connection: keep-alive
Referer: http://srv2.tudom.de/Start.html

HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Accept-Ranges: bytes
Etag: W/"8475-1294758302000"
Last-Modified: Tue, 11 Jan 2011 15:05:02 GMT
Content-Type: text/css
Content-Length: 8475
Date: Thu, 13 Jan 2011 16:03:41 GMT
- ----------------------------------------------------------
http://srv2.tudom.de/tudom.start.Start/tudom.start.Start.nocache.js

GET /tudom.start.Start/tudom.start.Start.nocache.js HTTP/1.1
Host: srv2.tudom.de
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13)
Gecko/20101203 Firefox/3.6.13 ( .NET CLR 3.5.30729; .NET4.0C)
Accept: */*
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Connection: keep-alive
Referer: http://srv2.tudom.de/Start.html

HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Accept-Ranges: bytes
Etag: W/"5833-1294928014000"
Last-Modified: Thu, 13 Jan 2011 14:13:34 GMT
Content-Type: text/javascript
Content-Length: 5833
Date: Thu, 13 Jan 2011 16:03:41 GMT
- ----------------------------------------------------------
http://srv2.tudom.de/tudom.start.Start/E42B631CE3333C5C735AF15B86EBDC85.cache.html

GET /tudom.start.Start/E42B631CE3333C5C735AF15B86EBDC85.cache.html HTTP/1.1
Host: srv2.tudom.de
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13)
Gecko/20101203 Firefox/3.6.13 ( .NET CLR 3.5.30729; .NET4.0C)
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Connection: keep-alive
Referer: http://srv2.tudom.de/Start.html

HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Accept-Ranges: bytes
Etag: W/"101720-1294928014000"
Last-Modified: Thu, 13 Jan 2011 14:13:34 GMT
Content-Type: text/html
Content-Length: 101720
Date: Thu, 13 Jan 2011 16:03:42 GMT
- ----------------------------------------------------------
http://srv2.tudom.de/tudom.start.Start/gwt/standard/standard.css

GET /tudom.start.Start/gwt/standard/standard.css HTTP/1.1
Host: srv2.tudom.de
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13)
Gecko/20101203 Firefox/3.6.13 ( .NET CLR 3.5.30729; .NET4.0C)
Accept: text/css,*/*;q=0.1
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Connection: keep-alive
Referer: http://srv2.tudom.de/Start.html

HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Accept-Ranges: bytes
Etag: W/"26804-1288100650000"
Last-Modified: Tue, 26 Oct 2010 13:44:10 GMT
Content-Type: text/css
Content-Length: 26804
Date: Thu, 13 Jan 2011 16:03:42 GMT
- ----------------------------------------------------------
http://srv2.tudom.de/tudom.start.Start/Tudomde.css

GET /tudom.start.Start/Tudomde.css HTTP/1.1
Host: srv2.tudom.de
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13)
Gecko/20101203 Firefox/3.6.13 ( .NET CLR 3.5.30729; .NET4.0C)
Accept: text/css,*/*;q=0.1
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Connection: keep-alive
Referer: http://srv2.tudom.de/Start.html

HTTP/1.1 404 Not Found
Server: Apache-Coyote/1.1
Content-Type: text/html;charset=utf-8
Content-Length: 1042
Date: Thu, 13 Jan 2011 16:03:42 GMT
- ----------------------------------------------------------
http://srv2.tudom.de/tudom.start.Start/StartService

POST /tudom.start.Start/StartService HTTP/1.1
Host: srv2.tudom.de
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13)
Gecko/20101203 Firefox/3.6.13 ( .NET CLR 3.5.30729; .NET4.0C)
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Connection: keep-alive
Content-Type: text/x-gwt-rpc; charset=utf-8
X-GWT-Permutation: E42B631CE3333C5C735AF15B86EBDC85
X-GWT-Module-Base: http://srv2.tudom.de/tudom.start.Start/
Referer: http://srv2.tudom.de/Start.html
Content-Length: 140
Pragma: no-cache
Cache-Control: no-cache
6|0|4|http://srv2.tudom.de/tudom.start.Start/|77F7A9C4DE1B7D8F905266A054AE883D|tudom.start.client.rpc.StartService|getNewQuizList|1|2|3|4|0|
HTTP/1.1 404 Not Found
Server: Apache-Coyote/1.1
Content-Type: text/html;charset=utf-8
Content-Length: 1045
Date: Thu, 13 Jan 2011 16:03:44 GMT
- ----------------------------------------------------------
http://srv2.tudom.de/tudom.start.Start/StartService

POST /tudom.start.Start/StartService HTTP/1.1
Host: srv2.tudom.de
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13)
Gecko/20101203 Firefox/3.6.13 ( .NET CLR 3.5.30729; .NET4.0C)
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Connection: keep-alive
Content-Type: text/x-gwt-rpc; charset=utf-8
X-GWT-Permutation: E42B631CE3333C5C735AF15B86EBDC85
X-GWT-Module-Base: http://srv2.tudom.de/tudom.start.Start/
Referer: http://srv2.tudom.de/Start.html
Content-Length: 140
Pragma: no-cache
Cache-Control: no-cache
6|0|4|http://srv2.tudom.de/tudom.start.Start/|77F7A9C4DE1B7D8F905266A054AE883D|tudom.start.client.rpc.StartService|getTopQuizList|1|2|3|4|0|
HTTP/1.1 404 Not Found
Server: Apache-Coyote/1.1
Content-Type: text/html;charset=utf-8
Content-Length: 1045
Date: Thu, 13 Jan 2011 16:03:44 GMT
- ----------------------------------------------------------

****************
****************
****************

It looks like the problematic request is for this URL:
http://srv2.tudom.de/tudom.start.Start/StartService

This will match your "srv2.tudom.de" domain, but probably will not match
your webapp's deployment path, which is /tudom. I would have expected
the URL to be:

http://srv2.tudom.de/tudom/tudom.start.Start/StartService

I even get a 404 when I access this. Can you verify your configuration
again? Post as much of your config as you can.

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk0vJ/kACgkQ9CaO5/Lv0PBJIQCgkkb5WwoSEJfY8X+GfJXl2l6G
U24AoJdpl/rMsKY3YNtGOXKjKYiVnloH
=fdFz
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: vhost - servlets not available

Posted by Johannes Stein <jo...@googlemail.com>.
2011/1/13 Christopher Schultz <ch...@christopherschultz.net>:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Johannes,
>
> On 1/13/2011 10:01 AM, Johannes Stein wrote:
>> i deployed a gwt-application in tomcat 6.0.18 without any problems. I
>> pointed a url to the ip-adress and deployed the application unter
>> webapps/myfolder, so that the app was reachable unter http://mydomain/myfolder.
>> It worked fine.
>
> Thanks for using the standard deployment mechanism! So many people want
> to edit server.xml for some reason.
>
> BTW, 6.0.18 is really quite ancient. You should seriously consider
> upgrading. 6.0.30 was released today... seems like an auspicious occasion.
>
>> But since im using a vhost in tomcat i got a problem.
>> Every time when gwt tries a callback i get the message: "Requested
>> resource not found". I did not make any changes in the web.xml.
>> I added the host like the following in the server.xml:
>> ...
>> <!-- Define the default virtual host
>>            Note: XML Schema validation will not work with Xerces 2.2.
>>        -->
>>       <Host name="srv2.tudom.de" appBase="tudom"
>>        unpackWARs="true" autoDeploy="true"
>>        xmlValidation="false" xmlNamespaceAware="false">
>>         </Host>
>>          <!-- VIRTUAL HOST INJECTION POINT -->
>>     </Engine>
>
> What is your default host? It's specified in the <Engine> "defaultHost"
> attribute.
>

As default host is set:

<Engine name="Catalina" defaultHost="localhost">


>> The code is deployed into the folder tudom. The .html works fine, but
>> my callbacks dont work.
>>
>> A snippet from my web.xml:
>> <servlet>
>>         <servlet-name>StartService</servlet-name>
>>         <servlet-class>tudom.start.server.StartServiceImpl</servlet-class>
>>   </servlet>
>>   <servlet-mapping>
>>         <servlet-name>StartService</servlet-name>
>>         <url-pattern>/tudom.start.Start/StartService</url-pattern>
>>   </servlet-mapping>
>>
>> When im changing the URL-Pattern to
>> <url-pattern>/tudom.start.Start/StartService</url-pattern>
>>
>> the Servlet gets reachable, but this doesnt interest GWT, cause it
>> still tries to load /tudom.start.Start/StartService.
>
> Aren't those the same URL?

Oh, i made a mistake. When im changing the url-pattern in the
servlet-mapping to <url-pattern>/StartService</url-pattern> the
servlet will be avaible.
If i use the default config of gwt which sets:
<url-pattern>/tudom.start.Start/StartService</url-pattern> the Servlet
will not be available.

>
> What is the full URL that GWT is trying to access -- including server
> name? I suspect that the introduction of the VHOST has exposed a flaw in
> the URL building in your GWT interface's URLs.
>
> Are you trying to call one VHOST from a page hosted by another VHOST?
> Are there any <BASE> elements in your web page that might be affecting
> things?

The files are on the same hast. I call directly the same vhost.
Try it by yourself: http://srv2.tudom.de/Start.html

>
> It might be helpful to use a protocol sniffer like firebug,
> LiveHTTPHeaders, iehttpheader, fiddler, etc. to see what URL your GWT
> app is really trying to hit.

I just downloaded it and will try it. But do you have any idea?

>
> - -chris
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.10 (MingW32)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
>
> iEYEARECAAYFAk0vG/4ACgkQ9CaO5/Lv0PDpbQCeLJ7PVFJcV7qPzzCFO5oYv04v
> 4e0AnAnYUlftZps6btkg50xliMbK+n0U
> =yQgm
> -----END PGP SIGNATURE-----
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: vhost - servlets not available

Posted by Christopher Schultz <ch...@christopherschultz.net>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Johannes,

On 1/13/2011 10:01 AM, Johannes Stein wrote:
> i deployed a gwt-application in tomcat 6.0.18 without any problems. I
> pointed a url to the ip-adress and deployed the application unter
> webapps/myfolder, so that the app was reachable unter http://mydomain/myfolder.
> It worked fine.

Thanks for using the standard deployment mechanism! So many people want
to edit server.xml for some reason.

BTW, 6.0.18 is really quite ancient. You should seriously consider
upgrading. 6.0.30 was released today... seems like an auspicious occasion.

> But since im using a vhost in tomcat i got a problem.
> Every time when gwt tries a callback i get the message: "Requested
> resource not found". I did not make any changes in the web.xml.
> I added the host like the following in the server.xml:
> ...
> <!-- Define the default virtual host
>            Note: XML Schema validation will not work with Xerces 2.2.
>        -->
>       <Host name="srv2.tudom.de" appBase="tudom"
>        unpackWARs="true" autoDeploy="true"
>        xmlValidation="false" xmlNamespaceAware="false">
>         </Host>
>          <!-- VIRTUAL HOST INJECTION POINT -->
>     </Engine>

What is your default host? It's specified in the <Engine> "defaultHost"
attribute.

> The code is deployed into the folder tudom. The .html works fine, but
> my callbacks dont work.
> 
> A snippet from my web.xml:
> <servlet>
>         <servlet-name>StartService</servlet-name>
>         <servlet-class>tudom.start.server.StartServiceImpl</servlet-class>
>   </servlet>
>   <servlet-mapping>
>         <servlet-name>StartService</servlet-name>
>         <url-pattern>/tudom.start.Start/StartService</url-pattern>
>   </servlet-mapping>
> 
> When im changing the URL-Pattern to
> <url-pattern>/tudom.start.Start/StartService</url-pattern>
> 
> the Servlet gets reachable, but this doesnt interest GWT, cause it
> still tries to load /tudom.start.Start/StartService.

Aren't those the same URL?

What is the full URL that GWT is trying to access -- including server
name? I suspect that the introduction of the VHOST has exposed a flaw in
the URL building in your GWT interface's URLs.

Are you trying to call one VHOST from a page hosted by another VHOST?
Are there any <BASE> elements in your web page that might be affecting
things?

It might be helpful to use a protocol sniffer like firebug,
LiveHTTPHeaders, iehttpheader, fiddler, etc. to see what URL your GWT
app is really trying to hit.

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk0vG/4ACgkQ9CaO5/Lv0PDpbQCeLJ7PVFJcV7qPzzCFO5oYv04v
4e0AnAnYUlftZps6btkg50xliMbK+n0U
=yQgm
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org