Note that there are some explanatory texts on larger screens.

plurals
  1. POApplication successfully deployed on Tomcat, but 404 error
    primarykey
    data
    text
    <p>I've deployed, after some struggle, a web-app on a (remote) Tomcat 5.5 server (Turnkey Linux comes with that). It is a GoogleWebToolkit web-app with a Java backend.</p> <p>Observing the logs everything went fine. The /manager app also shows 'running=true' on my new app.</p> <p>But the problem is, going to the /myApp url gives 404. What I've done so far, to no success:</p> <ul> <li>Made sure it does run locally using Eclipse, works fine there</li> <li>Checked the logs on the deployment server, it successfully loads Spring, and some other libraries. In fact, it shows the same messages as when I run it in hosted-mode in Eclipse</li> <li>The /manager, /host-manager, /admin applications run fine.</li> <li>Reloading the app on /manager also says 'OK'</li> <li>I have a welcome file specified, one that is actually there, directly hitting that also gives 404</li> <li>I use the default host ('localhost'), just like the /manager, /host-manager and /admin apps</li> <li>Did a lot of searching on the internet, to no avail.</li> <li>Tried a different Tomcat (v6) server (my home ubuntu box, the one I want to deploy on is a VPS somewhere on the net), and there it just works... Reinstall the VPS?</li> </ul> <p>Any hints on how to fix this, find out what the problem is, or what might cause this? Can there be conflicts? there is another app running in the $CATALINA_HOME/webapps dir, can that conflict with myApp, which is in the same directory deployed?</p> <p>Below is my server.xml</p> <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;Server&gt; &lt;Listener className="org.apache.catalina.core.AprLifecycleListener"/&gt; &lt;Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener"/&gt; &lt;Listener className="org.apache.catalina.storeconfig.StoreConfigLifecycleListener"/&gt; &lt;Listener className="org.apache.catalina.mbeans.ServerLifecycleListener"/&gt; &lt;GlobalNamingResources&gt; &lt;Environment name="simpleValue" type="java.lang.Integer" value="30"/&gt; &lt;Resource auth="Container" description="User database that can be updated and saved" name="UserDatabase" type="org.apache.catalina.UserDatabase" pathname="conf/tomcat-users.xml" factory="org.apache.catalina.users.MemoryUserDatabaseFactory"/&gt; &lt;/GlobalNamingResources&gt; &lt;Service name="Catalina"&gt; &lt;Connector port="8009" redirectPort="8443" address="127.0.0.1" protocol="AJP/1.3"&gt; &lt;/Connector&gt; &lt;Engine defaultHost="localhost" name="Catalina"&gt; &lt;Realm className="org.apache.catalina.realm.UserDatabaseRealm"/&gt; &lt;Host appBase="webapps" name="localhost"&gt; &lt;/Host&gt; &lt;/Engine&gt; &lt;/Service&gt; &lt;/Server&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload