|
View:
New views
7 Messages
—
Rating Filter:
Alert me
|
|
|
Google Web Toolkit and JRUNHi, 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:266) 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:266) at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/JRun-Talk/message.cfm/messageid:5833 Subscription: http://www.houseoffusion.com/groups/JRun-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=17837.14401.8 |
|
|
RE: Google Web Toolkit and JRUNEd, 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 -----Original Message----- From: Ed Zwart [mailto:ed.zwart@...] Sent: Wednesday, June 11, 2008 4:35 PM To: JRun-Talk Subject: Google Web Toolkit and JRUN 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) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/JRun-Talk/message.cfm/messageid:5834 Subscription: http://www.houseoffusion.com/groups/JRun-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=17837.14401.8 |
|
|
Re: Google Web Toolkit and JRUNHey Charlie, thanks for the help.
Problem solved!! Embarrassing, but potentially useful to someone, so here goes... I am using the single server instance, by the way, and was putting my jar file in WEB-INF/lib, as you said. The problem was with the jar file. I was teaching myself Ant at the same time, and just assumed that part was okay, but I had been jar'ing the src folder instead of the bin one. OOPS! How I came to the solution though was by switching from CF 8 Dev (with JRUN) to Open Blue Dragon (with Jetty). Starting Jetty from the command line gave me instant feedback about what was wrong, whereas when I started CF as a Windows service (which starts JRUN), there's no feedback to help lead me to the problem. Thanks again for your help! Nice to meet you. e. On Sat, Jun 14, 2008 at 4:51 PM, Charlie Arehart <charlie@...> wrote: > 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 > > > -----Original Message----- > From: Ed Zwart [mailto:ed.zwart@...] > Sent: Wednesday, June 11, 2008 4:35 PM > To: JRun-Talk > Subject: Google Web Toolkit and JRUN > > 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) > > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/JRun-Talk/message.cfm/messageid:5835 Subscription: http://www.houseoffusion.com/groups/JRun-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=17837.14401.8 |
|
|
Re: Google Web Toolkit and JRUNHey Charlie, thanks for the help.
Problem solved!! Embarrassing, but potentially useful to someone, so here goes... I am using the single server instance, by the way, and was putting my jar file in WEB-INF/lib, as you said. The problem was with the jar file. I was teaching myself Ant at the same time, and just assumed that part was okay, but I had been jar'ing the src folder instead of the bin one. OOPS! How I came to the solution though was by switching from CF 8 Dev (with JRUN) to Open Blue Dragon (with Jetty). Starting Jetty from the command line gave me instant feedback about what was wrong, whereas when I started CF as a Windows service (which starts JRUN), there's no feedback to help lead me to the problem. Thanks again for your help! Nice to meet you. e. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/JRun-Talk/message.cfm/messageid:5836 Subscription: http://www.houseoffusion.com/groups/JRun-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=17837.14401.8 |
|
|
|
|
|
Re: Google Web Toolkit and JRUNI'm sure JRUN/CF can be started from the command line!
I should have said "_Being forced_ to start Jetty from the command line...". Feedback about failure when starting a Windows service would still be useful though. Although, that's probably an issue for Windows and not JRUN. Anyway, thanks for the heads up! e. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/JRun-Talk/message.cfm/messageid:5838 Subscription: http://www.houseoffusion.com/groups/JRun-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=17837.14401.8 |
|
|
RE: Google Web Toolkit and JRUNJust a point of clarification. Even if you do run it as a service, the same
errors you would have seen at the command line are in the logs--not the CF logs, but rather the [jrun]/logs (or in a standalone deployment of CF, it would be the [cf]/runtime/logs), where you will find files like cfusion-out.log (or in standalone, coldfusion-out.log.) Many do miss those logs and they're very valuable. Granted, it's still on you to think to look at them even if you know they exist! :-) And that's just not as easy as them popping up in the command line, but as Dave showed that's possible too. Still, the info is indeed there even when run as a service. Hope that's helpful. /charlie -----Original Message----- From: Ed Zwart [mailto:ed.zwart@...] Sent: Monday, June 16, 2008 3:42 PM To: JRun-Talk Subject: Re: Google Web Toolkit and JRUN I'm sure JRUN/CF can be started from the command line! I should have said "_Being forced_ to start Jetty from the command line...". Feedback about failure when starting a Windows service would still be useful though. Although, that's probably an issue for Windows and not JRUN. Anyway, thanks for the heads up! e. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/JRun-Talk/message.cfm/messageid:5839 Subscription: http://www.houseoffusion.com/groups/JRun-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=17837.14401.8 |
| Free embeddable forum powered by Nabble | Forum Help |