RE: Re: Re: problem with restlet-gwt

2009-02-28 Thread Jerome Louvel
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

2009-02-19 Thread Neha Verma
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

2009-02-19 Thread Rob Heittman
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

2009-02-18 Thread blackhole
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


Re: problem with restlet-gwt

2008-12-08 Thread Thierry Boileau
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=981095


Re: problem with restlet-gwt

2008-12-04 Thread Rob Heittman
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=979801

Re: problem with restlet-gwt

2008-12-04 Thread antoniojg
Hi Rob, thanks for your support.
Unfortunatelly the web.xml has not been overwritten.
I controlled it more times and it's ok.
What can be wrong?
Did you try the sample on windows?
It seems like the gwt engine is finding something in the module.
When we perform a gwt-rpc call, we have to add a servlet entry in the module
and the gwt module in this way knows how to route the request.
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?
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.
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.
Can You please help me?




Rob Heittman wrote:
> 
> On Thu, Dec 4, 2008 at 10:31 AM, antoniojg <[EMAIL PROTECTED]> wrote:
> 
>> Hello, I imported the sample restlet-gwt project within eclipse 3.4 but
>> I'm
>> unable to connect to the restlet resource. When I click on the close
>> button
>> It complains of the following  error
>>
>> "unable to find 'ping.gwt.xml' on your classpath; could be a typo, or
>> maybe
>> you forgot to include a classpath entry for source?"
> 
> 
> The web.xml inside your project root /tomcat/webapps/ROOT/WEB-INF/web.xml
> has probably been overwritten (or never configured).  GWT sometimes will
> overwrite this due to some combination of timestamps I've never been able
> to
> figure out.  (If someone knows, and can propose a workaround, I'd love to
> hear it).  This needs to have the declaration of the
> GwtShellServletWrapper
> in it (see the one in the example zip).
> 
> Moreover has someone succeded in configuring the module to run on a real
>> tomcat instance?
> 
> Which kind of servlet is it necessary to configure in the deoployment
>> descriptor? GwtServletWrapper should not work in web mode so
>> ServerServlet
>> should be enough? And how to pass the module information?
> 
> 
> Yes, just use ServerServlet to power your Restlet server side.  You need
> not
> pass the module information any more, as you'd now be running a JavaScript
> compiled version of the client side.  You cannot, to my knowledge, use a
> real Tomcat in GWT hosted mode -- I believe there are Google specific
> changes in the hosted mode Tomcat bundled with GWT.
> 
> We'll add it to the "to do" list to add a walk thru of compilation and
> deployment options in some various production environments.
> 
> - Rob
> 
> --
> http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=979683
> 

-- 
View this message in context: 
http://n2.nabble.com/problem-with-restlet-gwt-tp1613932p1614203.html
Sent from the Restlet Discuss mailing list archive at Nabble.com.

--
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=979699


Re: problem with restlet-gwt

2008-12-04 Thread Thierry Boileau
Hi Rob,

if you don't mind, I will cope with this task and tell you when it will 
be achieved.

best regards,
THierry Boileau

>
>
> On Thu, Dec 4, 2008 at 10:31 AM, antoniojg <[EMAIL PROTECTED] 
> > wrote:
>
> Hello, I imported the sample restlet-gwt project within eclipse
> 3.4 but I'm
> unable to connect to the restlet resource. When I click on the
> close button
> It complains of the following  error
>
> "unable to find 'ping.gwt.xml' on your classpath; could be a typo,
> or maybe
> you forgot to include a classpath entry for source?"
>
>
> The web.xml inside your project root 
> /tomcat/webapps/ROOT/WEB-INF/web.xml has probably been overwritten (or 
> never configured).  GWT sometimes will overwrite this due to some 
> combination of timestamps I've never been able to figure out.  (If 
> someone knows, and can propose a workaround, I'd love to hear it).  
> This needs to have the declaration of the GwtShellServletWrapper in it 
> (see the one in the example zip).
>
> Moreover has someone succeded in configuring the module to run on
> a real
> tomcat instance?
>
> Which kind of servlet is it necessary to configure in the deoployment
> descriptor? GwtServletWrapper should not work in web mode so
> ServerServlet
> should be enough? And how to pass the module information?
>
>
> Yes, just use ServerServlet to power your Restlet server side.  You 
> need not pass the module information any more, as you'd now be running 
> a JavaScript compiled version of the client side.  You cannot, to my 
> knowledge, use a real Tomcat in GWT hosted mode -- I believe there are 
> Google specific changes in the hosted mode Tomcat bundled with GWT.
>
> We'll add it to the "to do" list to add a walk thru of compilation and 
> deployment options in some various production environments.
>
> - Rob
>

--
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=979692


Re: problem with restlet-gwt

2008-12-04 Thread Rob Heittman
On Thu, Dec 4, 2008 at 10:31 AM, antoniojg <[EMAIL PROTECTED]> wrote:

> Hello, I imported the sample restlet-gwt project within eclipse 3.4 but I'm
> unable to connect to the restlet resource. When I click on the close button
> It complains of the following  error
>
> "unable to find 'ping.gwt.xml' on your classpath; could be a typo, or maybe
> you forgot to include a classpath entry for source?"


The web.xml inside your project root /tomcat/webapps/ROOT/WEB-INF/web.xml
has probably been overwritten (or never configured).  GWT sometimes will
overwrite this due to some combination of timestamps I've never been able to
figure out.  (If someone knows, and can propose a workaround, I'd love to
hear it).  This needs to have the declaration of the GwtShellServletWrapper
in it (see the one in the example zip).

Moreover has someone succeded in configuring the module to run on a real
> tomcat instance?

Which kind of servlet is it necessary to configure in the deoployment
> descriptor? GwtServletWrapper should not work in web mode so ServerServlet
> should be enough? And how to pass the module information?


Yes, just use ServerServlet to power your Restlet server side.  You need not
pass the module information any more, as you'd now be running a JavaScript
compiled version of the client side.  You cannot, to my knowledge, use a
real Tomcat in GWT hosted mode -- I believe there are Google specific
changes in the hosted mode Tomcat bundled with GWT.

We'll add it to the "to do" list to add a walk thru of compilation and
deployment options in some various production environments.

- Rob

--
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=979683