Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Configure GWT (Google Web Toolkit) Servlet

New Here ,
May 29, 2008 May 29, 2008
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
TOPICS
Advanced techniques
442
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jun 02, 2008 Jun 02, 2008
LATEST
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.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources