RE: Re: Re: problem with restlet-gwt
Hi Neva, Thanks for the update. I finally took time to play with this sample project on my freshly reinstalled WinXP box. I was able to reproduce this weird timestamp issue. It may be due to GWT detecting a more recent version installed (GWT 1.5.3 in my case) than the one used to compile the project, triggering some kind of reset on the configuration files. I have added a 'web.xml.backup' file to facilitate restoring in this case and separated the launch configuration for Eclipse into two separate ones, one for Linux and another for Windows and updated the how-to steps on the page with things that need to be adjusted manually on Windows/Eclipse. I've also updated the build.xml file to use the good JAR name on Windows so it builds with no manual change beside the GWT_HOME variable and uploaded the new sample ZIP on the wiki for version 1.1 and 1.2 of Restlet User Guide. Best regards, Jerome Louvel -- Restlet ~ Founder and Lead developer ~ http://www.restlet.org Noelios Technologies ~ Co-founder ~ http://www.noelios.com -Message d'origine- De : Neha Verma [mailto:neve...@lehman.com] Envoyé : jeudi 19 février 2009 22:49 À : discuss@restlet.tigris.org Objet : RE: Re: Re: problem with restlet-gwt I had this problem too. The issue is that the web.xml in the zip file is not updated with restlet's GWTSheelWrapper. This is how I resolved it. 1) Downloading the zip file 2) Import to eclipse 3) update the SimpleExample.launch with your GWT home directory. 4) Update the web.xml at the following location <>\tomcat\webapps\ROOT\WEB-INF The contents of the file have to be as followsadapter com.noelios.restlet.ext.gwt.GwtShellServletWrapper org.restlet.application org.restlet.example.gwt.server.TestServerApplication module org.restlet.example.gwt.SimpleExample adapter /* 5)run the example by running "SimpleExample.launch" -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=11946 52 -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=1245180
RE: Re: Re: problem with restlet-gwt
I had this problem too. The issue is that the web.xml in the zip file is not updated with restlet's GWTSheelWrapper. This is how I resolved it. 1) Downloading the zip file 2) Import to eclipse 3) update the SimpleExample.launch with your GWT home directory. 4) Update the web.xml at the following location <>\tomcat\webapps\ROOT\WEB-INF The contents of the file have to be as follows adapter com.noelios.restlet.ext.gwt.GwtShellServletWrapper org.restlet.application org.restlet.example.gwt.server.TestServerApplication module org.restlet.example.gwt.SimpleExample adapter /* 5)run the example by running "SimpleExample.launch" -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=1194652
Re: Re: problem with restlet-gwt
I was never able to reproduce the issue -- don't know about Thierry. If your web.xml has NOT been overwritten (refresh your resources in the IDE to check that it still contains the GwtShellServletWrapper), it happens for you consistently and you are able to do a web conference, feel free to email me personally so I can get eyes on the problem. On Wed, Feb 18, 2009 at 5:39 PM, wrote: > I am having the same problem. Does any one know of the solution? > >> Hi all, >> >> I hope to find time this week. >> >> best regards, >> Thierry Boileau >> >> > I very, very seldom use Windows, but Jerome and Thierry do, so I'm >> > sure he's used the sample there -- I think he updated it most recently. >> > >> > I think I see what you are asking -- you need to use both Restlet and >> > RPC in the same application. I don't have an example of that right at >> > hand; I use Restlet so I don't have to use RPC at all ... but I do >> > understand and I know that it can be set up. >> > >> > If you are running under Eclipse, it is possible for the web.xml to be >> > overwritten and Eclipse doesn't know about it without you doing an >> > explicit Refresh on the file -- but you probably tried this already. >> > Is your web.xml exactly as it came from the example, or have you >> > modified it in any way? >> > >> > When we run the gwtshell under eclipse, I saw that it starts a tomcat >> > instance. >> > It also deploys the restlet resources there in order they to be >> > found by the >> > gwt engine? >> > My question is does the gwt shell behave as a web container and >> > deploy the >> > resources (in the server folder) within it as we had created a web >> > project >> > and put the restlet based application >> > classes within it? >> > >> > >> > Yes, that is how the hosted mode works. >> > >> > If I start the restlet TestServer component as a standaolne >> > application and >> > then run the shell again it complains of an already used address >> > and so the >> > server side should work well even if I can not see the TestServer's >> > sytem.out statements in the console. >> > >> > >> > If the standalone uses the same port as hosted mode, you can't run >> > them both at once. I think hosted mode defaults to . >> > >> > I read several books on gwt (gwt in practice and Pro web 2.0 >> > with gwt >> > ... and so on) and I have seen different solutions but noone >> > clearly refers >> > to this particular integration with rest. >> > >> > >> > It is very new -- not likely to be in the books yet! >> > >> > >> > Can You please help me? >> > >> > >> > Trying :-) Thierry here may also have some ideas. >> > >> > - Rob >> > > > -- > http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=1188476 > -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=1191713
RE: Re: problem with restlet-gwt
I am having the same problem. Does any one know of the solution? > Hi all, > > I hope to find time this week. > > best regards, > Thierry Boileau > > > I very, very seldom use Windows, but Jerome and Thierry do, so I'm > > sure he's used the sample there -- I think he updated it most recently. > > > > I think I see what you are asking -- you need to use both Restlet and > > RPC in the same application. I don't have an example of that right at > > hand; I use Restlet so I don't have to use RPC at all ... but I do > > understand and I know that it can be set up. > > > > If you are running under Eclipse, it is possible for the web.xml to be > > overwritten and Eclipse doesn't know about it without you doing an > > explicit Refresh on the file -- but you probably tried this already. > > Is your web.xml exactly as it came from the example, or have you > > modified it in any way? > > > > When we run the gwtshell under eclipse, I saw that it starts a tomcat > > instance. > > It also deploys the restlet resources there in order they to be > > found by the > > gwt engine? > > My question is does the gwt shell behave as a web container and > > deploy the > > resources (in the server folder) within it as we had created a web > > project > > and put the restlet based application > > classes within it? > > > > > > Yes, that is how the hosted mode works. > > > > If I start the restlet TestServer component as a standaolne > > application and > > then run the shell again it complains of an already used address > > and so the > > server side should work well even if I can not see the TestServer's > > sytem.out statements in the console. > > > > > > If the standalone uses the same port as hosted mode, you can't run > > them both at once. I think hosted mode defaults to . > > > > I read several books on gwt (gwt in practice and Pro web 2.0 > > with gwt > > ... and so on) and I have seen different solutions but noone > > clearly refers > > to this particular integration with rest. > > > > > > It is very new -- not likely to be in the books yet! > > > > > > Can You please help me? > > > > > > Trying :-) Thierry here may also have some ideas. > > > > - Rob > > -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=1188476