A
Amir Michail
Hi,
I'm trying to deploy my app without a path: instead of something like
mydomain.com/path/somefile.html, one could just access it using
mydomain.com/somefile.html.
To get this to work, I have tried the following in server.xml:
<Host name="mydomain.com" appBase="/var/lib/tomcat5.5/webapps"
unpackWARs="true" autoDeploy="true">
<Context path="" docBase="myApp" debug="0" reloadable="true"/>
<Valve className="org.apache.catalina.valves.AccessLogValve"
directory="logs" prefix="web1_access_log."
suffix=".txt"
pattern="common" resolveHosts="false"/>
</Host>
For mounts, I have:
<VirtualHost mydomain.com>
ServerName mydomain.com
JkMount / ajp13
JkMount /* ajp13
</VirtualHost>
The web.xml file for my app contains:
<servlet-name>myAppService</servlet-name>
<url-pattern>/</url-pattern>
</servlet-mapping>
This results in a 405 error when I access mydomain.com/somefile.html.
Changing it to:
<servlet-name>myAppService</servlet-name>
<url-pattern>/myApp</url-pattern>
</servlet-mapping>
works better (i.e., the app starts) but results in a subsequent RPC
error: the requested resource (/) is not available. (I'm using gwt's
rpc mechanism.)
Any hints?
Amir
I'm trying to deploy my app without a path: instead of something like
mydomain.com/path/somefile.html, one could just access it using
mydomain.com/somefile.html.
To get this to work, I have tried the following in server.xml:
<Host name="mydomain.com" appBase="/var/lib/tomcat5.5/webapps"
unpackWARs="true" autoDeploy="true">
<Context path="" docBase="myApp" debug="0" reloadable="true"/>
<Valve className="org.apache.catalina.valves.AccessLogValve"
directory="logs" prefix="web1_access_log."
suffix=".txt"
pattern="common" resolveHosts="false"/>
</Host>
For mounts, I have:
<VirtualHost mydomain.com>
ServerName mydomain.com
JkMount / ajp13
JkMount /* ajp13
</VirtualHost>
The web.xml file for my app contains:
<servlet-name>myAppService</servlet-name>
<url-pattern>/</url-pattern>
</servlet-mapping>
This results in a 405 error when I access mydomain.com/somefile.html.
Changing it to:
<servlet-name>myAppService</servlet-name>
<url-pattern>/myApp</url-pattern>
</servlet-mapping>
works better (i.e., the app starts) but results in a subsequent RPC
error: the requested resource (/) is not available. (I'm using gwt's
rpc mechanism.)
Any hints?
Amir