0
Configure GWT (Google Web Toolkit) Servlet
New Here
,
/t5/coldfusion-discussions/configure-gwt-google-web-toolkit-servlet/td-p/380561
May 29, 2008
May 29, 2008
Copy link to clipboard
Copied
I've just recently inherited a CF application, and am trying
to embed a GWT (Google Web Toolkit) module in it. I need to
configure CF to correctly hit my GWT servlet, and have had no
success yet.
I'm using ColdFusion Developer, and have added the following to <docroot>/WEB-INF/web.xml:
<servlet>
<servlet-name>MyService</servlet-name>
<servlet-class>com.example.MyServiceImpl</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>FirstNationsWizardService</servlet-name>
<url-pattern>/myapp/GWT_MODULES/com.example.MyApp/MyService.rpc</url-pattern>
</servlet-mapping>
In my client, when I try to call that URL, I get the following error:
404
java.io.FileNotFoundException
at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:94)
at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
at jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:286)
at jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:543)
at jrun.servlet.http.WebService.invokeRunnable(WebService.java:172)
at jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPool.java:320)
at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:428)
at jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool.java:266)
at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)
Any ideas?
Thanks
Ed
I'm using ColdFusion Developer, and have added the following to <docroot>/WEB-INF/web.xml:
<servlet>
<servlet-name>MyService</servlet-name>
<servlet-class>com.example.MyServiceImpl</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>FirstNationsWizardService</servlet-name>
<url-pattern>/myapp/GWT_MODULES/com.example.MyApp/MyService.rpc</url-pattern>
</servlet-mapping>
In my client, when I try to call that URL, I get the following error:
404
java.io.FileNotFoundException
at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:94)
at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
at jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:286)
at jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:543)
at jrun.servlet.http.WebService.invokeRunnable(WebService.java:172)
at jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPool.java:320)
at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:428)
at jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool.java:266)
at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)
Any ideas?
Thanks
Ed
TOPICS
Advanced techniques
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
ezskriv
AUTHOR
New Here
,
LATEST
/t5/coldfusion-discussions/configure-gwt-google-web-toolkit-servlet/m-p/380562#M34365
Jun 02, 2008
Jun 02, 2008
Copy link to clipboard
Copied
Let me try asking this another way. I have my own custom
servlet, and I want to be able to hit it using CF 8 Dev Edition,
and I have added the following to wwwrooot/WEB-INF/web.xml:
<servlet>
<servlet-name>MyService</servlet-name>
<servlet-class>com.example.MyServiceImpl</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>MyService</servlet-name>
<url-pattern>/path/to/MyServiceYo</url-pattern>
</servlet-mapping>
When I request the URL /path/to/MyServiceYo (from JavaScript) in my client code, I get the FileNotFoundError. This tells me that I am not mapping correctly. (I restart the server after changing web.xml.)
Can anyone shed any light on this for me? Thank you again.
e.
<servlet>
<servlet-name>MyService</servlet-name>
<servlet-class>com.example.MyServiceImpl</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>MyService</servlet-name>
<url-pattern>/path/to/MyServiceYo</url-pattern>
</servlet-mapping>
When I request the URL /path/to/MyServiceYo (from JavaScript) in my client code, I get the FileNotFoundError. This tells me that I am not mapping correctly. (I restart the server after changing web.xml.)
Can anyone shed any light on this for me? Thank you again.
e.
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more

