Skip to main content
Participant
May 29, 2008
Question

Configure GWT (Google Web Toolkit) Servlet

  • May 29, 2008
  • 1 reply
  • 476 views
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
This topic has been closed for replies.

1 reply

ezskrivAuthor
Participant
June 2, 2008
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.