Unable to access servlet when deployed on Tomcat [message #82178] |
Thu, 10 April 2008 03:12  |
Eclipse User |
|
|
|
Hi all,
Recently I've tried to deploy our RAP application to Tomcat.
We use browser widget pointing to a servlet in our welcome view which
works fine under Jetty, but in Tomcat it throws something like unable to
find the servlet.
To register servlet we have defined it in our plugin.xml:
<extension id="com.fearnot.ui.resources"
point="org.eclipse.equinox.http.registry.resources">
<resource alias="/web" base-name="/web"/>
</extension>
<extension id="com.fearnot.ui.servlets"
point="org.eclipse.equinox.http.registry.servlets">
<servlet alias="/fes" class="com.fearnot.ui.servlets.MainServlet"
load-on-startup="true"/>
</extension>
I suspect that I can't deploy application with internal browser widget to
Tomcat as it is.
Do I have to move the declaration above to the web.xml ?
Any help would be greatly appreciated.
Best Regards,
Setya
|
|
|
|
|
|
|
Re: Unable to access servlet when deployed on Tomcat [message #82455 is a reply to message #82395] |
Fri, 11 April 2008 09:00   |
Eclipse User |
|
|
|
Originally posted by: fappel.innoopract.com
Hi,
at the moment I'm running a little bit out of options. What is the exact
URL you are using to access the application on tomcat?
Ciao
Frank
-----Ursprüngliche Nachricht-----
Von: Setya [mailto:jsetya@gmail.com]
Bereitgestellt: Freitag, 11. April 2008 12:42
Bereitgestellt in: eclipse.technology.rap
Unterhaltung: Unable to access servlet when deployed on Tomcat
Betreff: Re: Unable to access servlet when deployed on Tomcat
Frank,
> are you sure that your build.properties file contains the plugin.xml?
> That's a common mistake.
This is the content of my build.properties :
source.. = src/
output.. = bin/
bin.includes = META-INF/,\
.,\
plugin.xml,\
web/,\
plugin.properties
The web/ folder contains all the web stuff like jsp and WEB-INF folder.
> Besides the common logs available at the tomcat's log directory, there
> is a log in case of problems written by equinox at '<path to your
> tomcat
> installation>workCatalinalocalhost<RAP
> application>eclipseworkspace.metadata.log'
The log from catalina just show the Tomcat startup process and no .log
file produced under .metadata folder.
Regards,
Setya
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.06894 seconds