House of Fusion
Search over 2,500 ColdFusion resources here
  
Home of the ColdFusion Community

Mailing Lists
Home / Groups / JRun-Talk

Google Web Toolkit and JRUN

Author:
Charlie Arehart
06/14/2008 07:54 PM

Ed, you've not said where you put the class or JAR for the servlet. Take a look at the CF docs on doing Java integration, specifically the ColdFusion Developers Guide (http://livedocs.adobe.com/coldfusion/8/htmldocs/Part_4_CF_DevGuide_1.html), which has a chapter specifically on this topic: Integrating J2EE and Java Elements in CFML Applications. It clarifies that you put the servlet CLASS file in the [CFserver]/WEB-INF/classes directory or a JAR file in [CFserver]/WEB-INF/lib. Now, you say you're on JRun so I assume you mean you're using the Multiserver deployment. In that case, my recollection is that they should go in the web-inf/lib of the CF instance, such as: c:\jrun4\servers\cfusion\cfusion-ear\cfusion-war\WEB-INF\lib Can you confirm if any of the above helps? /charlie Hi, I'm trying to embed a GWT module in an existing CF app, and I'm using JRUN server included in Adobe CF8 Dev Edition. I'm getting a FileNotFound error and can't figure out what I'm doing wrong. I've edited WEB-INF/web.xml like so... <servlet>   <servlet-name>FNWiz</servlet-name>   <servlet-class>com.example.MyServiceImpl</servlet-class> </servlet> <servlet-mapping>   <servlet-name>FNWiz</servlet-name>    <url-pattern>/myapp/GWT_MODULES/com.example.MyApp/FNService</url-pattern> </servlet-mapping> The request from (GWT-generated) JavaScript looks like so: http://localhost:8500/myapp/GWT_MODULES/com.example.MyApp/FNService Here is the error I get: 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:26 6)   at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66) Anyone have any idea what I'm doing wrong?  Thanks in advance! By the way, if I request a URL that hasn't been mapped, the error looks a little different.  Not sure if that's helpful, but I include in case it is... 404 /myapp/GWT_MODULES/com.example.MyApp/FNServiceWRONG_URL java.io.FileNotFoundException: /myapp/GWT_MODULES/com.example.MyApp/FNServiceWRONG_URL   at jrun.servlet.file.FileServlet.service(FileServlet.java:349)   at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:106)   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:26 6)   at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)


Search jrun-talk

June 19, 2013

<<   <   Today   >   >>
Su Mo Tu We Th Fr Sa
             1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30             

Designer, Developer and mobile workflow conference