Re: -noserver 1.5 RPC Help

2008-10-15 Thread Christopher Venning

I didn't have to do that.  The service path is set as "/myService" in
both Module.gwt.xml and as the argument to
@RemoteServiceRelativePath.  I tried "/myModule/myService", but got
404s stating that the server couldn't find "/myModule/myModule/
myService".  Some aspects of GWT seem to be tightly-coupled, so
changing either one probably would break your app.

Additionally, the arguments in Module.launch (Eclipse-specific) looks
like: "-noserver http://localhost:8080/Module/Module.html";, loading up
a Hosted Browser with the included URL on launch.  Alternatively, "-
noserver -port 8080 Module/Module.html" works identically, as
localhost is the default host Hosted Mode seeks.  Additional URL
arguments load multiple Hosted Browser instances in the Hosted Mode
session at launch if need be.

Both my trivial and non-trivial apps are working with this setup.  If
anyone would like to see the codebase for the entire, functioning
trivial app, I can put that up.

But, hey.  What works, works.


On Oct 15, 12:16 pm, jos <[EMAIL PROTECTED]> wrote:
> Hi Christopher
>
> I had a tough time getting this to work at first too (using 1.5). One
> of the changes I
> made that I have not seen mentioned in this thread is that I had to
> change the
> service entry point to something different than what Bruce had in his
> initial post
> I had to use a full URL to my server, see example of my service entry
> point below.
>
> Also a couple of other things - you need to copy the compiled GWT
> application
> directory to the server directories (and recopy if you change the
> interface)
> and don't forget that you need to alter the address in the hosted mode
> browser to
> the actual page on your server or the application won't load.
>
> >> from bruce johnson's post
>
> 5) Make sure that your client-side code references the right service
> entrypoint using ServiceDefTarget.  In this case, it would be
> something
> like serviceDefTarget.setServiceEntryPoint("/myproject/myservice").
>
> >> example of what I put in my code
>
> geoServiceTarget.setServiceEntryPoint("http://staging.abaqus.net/geo/
> gcb/geoservice");
>
> hope this helps
>
> jos
>
> On Oct 14, 9:34 am, Christopher Venning
>
> <[EMAIL PROTECTED]> wrote:
> > I cannot seem to get the -noserver mode working with RPCs.  I got it
> > to work in 1.4 but have changed environments in the last year.  There
> > don't appear to be any Group postings about getting it going since 1.5
> > was released.  Bruce Johnson's original posting (http://
> > groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/
> > 338c4b765d7dfc39) doesn't appear to be the 1.5-supported method, based
> > on the current Developer's Guide (yes, I tried it anyways and
> > failed).  Working off 
> > ofhttp://code.google.com/docreader/#p=google-web-toolkit-doc-1-5&t=FAQ_...,
> > Hosted Mode hooks in appropriately (changing Java code and refreshing
> > the Hosted Browser changes content).  However, the RPCs fail.  I am
> > probably doing something dumb, and would appreciate someone pointing
> > that out.
>
> > Relevant Environment: GWT 1.5.2, Eclipse 3.4.0, Tomcat 5.5.27, jdk
> > 1.6u7, XP SP3
>
> > Relevant Error
> > ---
> > Throwable type:
> >   - com.google.gwt.user.client.rpc.StatusCodeException
> > Message content:
> >   - html page from external Tomcat (has been confirmed)
> >   - 404 report
> >   - description: "The requested resource (/ServerTest/testService) is
> > not available."
>
> > Relevant module code
> > ---
> > from TestService.java (extends RemoteService):
> > @RemoteServiceRelativePath("/testService")
>
> > from ServerTest.gwt.xml:
> > 
>
> > from ServerTest.launch (arguments):
> > -noserverhttp://localhost:8080/ServerTest/ServerTest.html
>
> > Sum Total of changes to Tomcat
> > ---
> > created %TOMCAT_HOME%/webapps/ServerTest
> > copied into that directory (from compilation):
> >   - clear.cache.gif
> >   - history.html
> >   - hosted.html
> >   - org.ServerTest.nocache.js
> >   - ServerTest.html
> >   - 5BA8A5B3E35F40698BB0BF65F390BCF2.gwt.rpc
> >   - 9DA92932034707C17CFF15F95086D53F.cache.png
> >   - 548CDF11D6FE9011F3447CA200D7FB7F.cache.png
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: -noserver 1.5 RPC Help

2008-10-15 Thread jos

Hi Christopher

I had a tough time getting this to work at first too (using 1.5). One
of the changes I
made that I have not seen mentioned in this thread is that I had to
change the
service entry point to something different than what Bruce had in his
initial post
I had to use a full URL to my server, see example of my service entry
point below.

Also a couple of other things - you need to copy the compiled GWT
application
directory to the server directories (and recopy if you change the
interface)
and don't forget that you need to alter the address in the hosted mode
browser to
the actual page on your server or the application won't load.

>> from bruce johnson's post
5) Make sure that your client-side code references the right service
entrypoint using ServiceDefTarget.  In this case, it would be
something
like serviceDefTarget.setServiceEntryPoint("/myproject/myservice").

>> example of what I put in my code
geoServiceTarget.setServiceEntryPoint("http://staging.abaqus.net/geo/
gcb/geoservice");

hope this helps

jos


On Oct 14, 9:34 am, Christopher Venning
<[EMAIL PROTECTED]> wrote:
> I cannot seem to get the -noserver mode working with RPCs.  I got it
> to work in 1.4 but have changed environments in the last year.  There
> don't appear to be any Group postings about getting it going since 1.5
> was released.  Bruce Johnson's original posting (http://
> groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/
> 338c4b765d7dfc39) doesn't appear to be the 1.5-supported method, based
> on the current Developer's Guide (yes, I tried it anyways and
> failed).  Working off 
> ofhttp://code.google.com/docreader/#p=google-web-toolkit-doc-1-5&t=FAQ_...,
> Hosted Mode hooks in appropriately (changing Java code and refreshing
> the Hosted Browser changes content).  However, the RPCs fail.  I am
> probably doing something dumb, and would appreciate someone pointing
> that out.
>
> Relevant Environment: GWT 1.5.2, Eclipse 3.4.0, Tomcat 5.5.27, jdk
> 1.6u7, XP SP3
>
> Relevant Error
> ---
> Throwable type:
>   - com.google.gwt.user.client.rpc.StatusCodeException
> Message content:
>   - html page from external Tomcat (has been confirmed)
>   - 404 report
>   - description: "The requested resource (/ServerTest/testService) is
> not available."
>
> Relevant module code
> ---
> from TestService.java (extends RemoteService):
> @RemoteServiceRelativePath("/testService")
>
> from ServerTest.gwt.xml:
> 
>
> from ServerTest.launch (arguments):
> -noserverhttp://localhost:8080/ServerTest/ServerTest.html
>
> Sum Total of changes to Tomcat
> ---
> created %TOMCAT_HOME%/webapps/ServerTest
> copied into that directory (from compilation):
>   - clear.cache.gif
>   - history.html
>   - hosted.html
>   - org.ServerTest.nocache.js
>   - ServerTest.html
>   - 5BA8A5B3E35F40698BB0BF65F390BCF2.gwt.rpc
>   - 9DA92932034707C17CFF15F95086D53F.cache.png
>   - 548CDF11D6FE9011F3447CA200D7FB7F.cache.png
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: -noserver 1.5 RPC Help

2008-10-14 Thread Christopher Venning

Sorry, maybe _I_ should be more explicit.  In reference to updating
the documentation, I meant including the need to create a web.xml file
and package the server-side code into the webapp pathing.  Parsing the
module.gwt.xml file for  elements and inserting transformed
 and  elements into an external
web.xml, as well as automating the app-specific server-side packaging,
should be relatively straightforward.  It is the *need* to do those
things that is not explicit.  (Caveat: It is perhaps painfully obvious
to others.  I'm not exactly an experienced web developer, which is why
GWT is so attractive to me.)

On other subjects, the documentation provides the GWT-RPC way of doing
things along with a general abstraction to assist those employing
another request handling mechanism.  It seems like the -noserver
documentation should include GWT-RPC-specific server-side packaging
steps for completeness-sake.  "...all server-side requests will be
served by your web or application server of choice" seems insufficient
(though obvious now that I look back).  Maybe 'seems' is the operative
word here.  External-server Hosted Mode toes the line between
understandable and automagical.  I guess I suckered myself into
thinking that the -noserver option would still handle the server
config for me.  Who knows how I got this to work a year ago, and why I
didn't document it for myself.

I will take your advice and submit changes.  Thank you once again.


On Oct 14, 2:10 pm, "Isaac Truett" <[EMAIL PROTECTED]> wrote:
> Having an automated build and deploy process is just a good idea. It saves
> you from the tedium and risk of manually moving files around. I would just
> as soon choose not to automate my builds as I would choose not to keep my
> project in a versioned repository.
> I image that the topic of build process isn't mentioned in GWT's
> documentation because it really isn't pertinent. Your project should have a
> build process regardless of whether or not you use GWT and the use of GWT
> doesn't preclude any specific choice of build process.
>
> Contributions of all kinds from non-Google-employees are always welcome. If
> there's something you think would be helpful to add to the documentation you
> can post it here or open an issue in the issue tracker.
>
> On Tue, Oct 14, 2008 at 1:50 PM, Christopher Venning <
>
> [EMAIL PROTECTED]> wrote:
>
> > Will do.  As an aside, does the Documentation need to be more explicit
> > about this or am I the exception here?  If so, I can submit a change,
> > if documentation updates are something non-Google contributors are
> > allowed.  Any moderators listening?
>
> > Thank you again for your assistance.
>
> > On Oct 14, 1:34 pm, "Isaac Truett" <[EMAIL PROTECTED]> wrote:
> > > You'll want to set yourself up with a proper build process. I suggest
> > Ant.
> > > It's simple, powerful, and there are a number of examples you can borrow
> > > from this forum. Have your Ant script build a .war file and copy it to
> > your
> > > tomcat/webapps directory. Tomcat's default configuration is to
> > automatically
> > > deploy any .war it finds in webapps. No server restart required.
>
> > > On Tue, Oct 14, 2008 at 1:18 PM, Christopher Venning <
>
> > > [EMAIL PROTECTED]> wrote:
>
> > > > Thank you very much.
>
> > > > For posterity: I compiled the my.module.server package (with
> > > > dependencies) and exported to %TOMCAT_HOME%/webapps/ServerTest/WEB-INF/
> > > > lib, where I also copied gwt-servlet.jar (a dependency) from
> > > > GWT_HOME.  I also created the WEB-INF/web.xml file with the servlet
> > > > mapping.
>
> > > > Now, I understand the web.xml and dependencies need to be updated with
> > > > service changes, but this method also means that changing server-side
> > > > code requires a server restart (which embedded-serer Hosted Mode
> > > > requires anyways) along with a newly-minted server-side code extract.
> > > > Don't get me wrong, you're my new favorite person, I just want to make
> > > > sure this is the best option.  Am I correct?
>
> > > > On Oct 14, 1:01 pm, "Isaac Truett" <[EMAIL PROTECTED]> wrote:
> > > > > You're use GWT RPC, which means you have a RemoteServiceServlet
> > somewhere
> > > > > that implements the server side of that RPC service. You need to
> > compile
> > > > > that servlet to a Java .class file and deploy it to your web server.
> > You
> > > > > also need a web.xml file to map request URLs to your servlet.
>
> > > > > On Tue, Oct 14, 2008 at 12:55 PM, Christopher Venning <
>
> > > > > [EMAIL PROTECTED]> wrote:
>
> > > > > > On Oct 14, 12:53 pm, "Isaac Truett" <[EMAIL PROTECTED]> wrote:
> > > > > > > Did you deploy your compiled servlet? I don't see it listed in
> > the
> > > > stuff
> > > > > > you
> > > > > > > copied to tomcat/webapps/ServerTest.
>
> > > > > > What do you mean "compiled servlet"?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To 

Re: -noserver 1.5 RPC Help

2008-10-14 Thread Isaac Truett
Having an automated build and deploy process is just a good idea. It saves
you from the tedium and risk of manually moving files around. I would just
as soon choose not to automate my builds as I would choose not to keep my
project in a versioned repository.
I image that the topic of build process isn't mentioned in GWT's
documentation because it really isn't pertinent. Your project should have a
build process regardless of whether or not you use GWT and the use of GWT
doesn't preclude any specific choice of build process.

Contributions of all kinds from non-Google-employees are always welcome. If
there's something you think would be helpful to add to the documentation you
can post it here or open an issue in the issue tracker.



On Tue, Oct 14, 2008 at 1:50 PM, Christopher Venning <
[EMAIL PROTECTED]> wrote:

>
> Will do.  As an aside, does the Documentation need to be more explicit
> about this or am I the exception here?  If so, I can submit a change,
> if documentation updates are something non-Google contributors are
> allowed.  Any moderators listening?
>
> Thank you again for your assistance.
>
>
> On Oct 14, 1:34 pm, "Isaac Truett" <[EMAIL PROTECTED]> wrote:
> > You'll want to set yourself up with a proper build process. I suggest
> Ant.
> > It's simple, powerful, and there are a number of examples you can borrow
> > from this forum. Have your Ant script build a .war file and copy it to
> your
> > tomcat/webapps directory. Tomcat's default configuration is to
> automatically
> > deploy any .war it finds in webapps. No server restart required.
> >
> > On Tue, Oct 14, 2008 at 1:18 PM, Christopher Venning <
> >
> > [EMAIL PROTECTED]> wrote:
> >
> > > Thank you very much.
> >
> > > For posterity: I compiled the my.module.server package (with
> > > dependencies) and exported to %TOMCAT_HOME%/webapps/ServerTest/WEB-INF/
> > > lib, where I also copied gwt-servlet.jar (a dependency) from
> > > GWT_HOME.  I also created the WEB-INF/web.xml file with the servlet
> > > mapping.
> >
> > > Now, I understand the web.xml and dependencies need to be updated with
> > > service changes, but this method also means that changing server-side
> > > code requires a server restart (which embedded-serer Hosted Mode
> > > requires anyways) along with a newly-minted server-side code extract.
> > > Don't get me wrong, you're my new favorite person, I just want to make
> > > sure this is the best option.  Am I correct?
> >
> > > On Oct 14, 1:01 pm, "Isaac Truett" <[EMAIL PROTECTED]> wrote:
> > > > You're use GWT RPC, which means you have a RemoteServiceServlet
> somewhere
> > > > that implements the server side of that RPC service. You need to
> compile
> > > > that servlet to a Java .class file and deploy it to your web server.
> You
> > > > also need a web.xml file to map request URLs to your servlet.
> >
> > > > On Tue, Oct 14, 2008 at 12:55 PM, Christopher Venning <
> >
> > > > [EMAIL PROTECTED]> wrote:
> >
> > > > > On Oct 14, 12:53 pm, "Isaac Truett" <[EMAIL PROTECTED]> wrote:
> > > > > > Did you deploy your compiled servlet? I don't see it listed in
> the
> > > stuff
> > > > > you
> > > > > > copied to tomcat/webapps/ServerTest.
> >
> > > > > What do you mean "compiled servlet"?
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: -noserver 1.5 RPC Help

2008-10-14 Thread Christopher Venning

Will do.  As an aside, does the Documentation need to be more explicit
about this or am I the exception here?  If so, I can submit a change,
if documentation updates are something non-Google contributors are
allowed.  Any moderators listening?

Thank you again for your assistance.


On Oct 14, 1:34 pm, "Isaac Truett" <[EMAIL PROTECTED]> wrote:
> You'll want to set yourself up with a proper build process. I suggest Ant.
> It's simple, powerful, and there are a number of examples you can borrow
> from this forum. Have your Ant script build a .war file and copy it to your
> tomcat/webapps directory. Tomcat's default configuration is to automatically
> deploy any .war it finds in webapps. No server restart required.
>
> On Tue, Oct 14, 2008 at 1:18 PM, Christopher Venning <
>
> [EMAIL PROTECTED]> wrote:
>
> > Thank you very much.
>
> > For posterity: I compiled the my.module.server package (with
> > dependencies) and exported to %TOMCAT_HOME%/webapps/ServerTest/WEB-INF/
> > lib, where I also copied gwt-servlet.jar (a dependency) from
> > GWT_HOME.  I also created the WEB-INF/web.xml file with the servlet
> > mapping.
>
> > Now, I understand the web.xml and dependencies need to be updated with
> > service changes, but this method also means that changing server-side
> > code requires a server restart (which embedded-serer Hosted Mode
> > requires anyways) along with a newly-minted server-side code extract.
> > Don't get me wrong, you're my new favorite person, I just want to make
> > sure this is the best option.  Am I correct?
>
> > On Oct 14, 1:01 pm, "Isaac Truett" <[EMAIL PROTECTED]> wrote:
> > > You're use GWT RPC, which means you have a RemoteServiceServlet somewhere
> > > that implements the server side of that RPC service. You need to compile
> > > that servlet to a Java .class file and deploy it to your web server. You
> > > also need a web.xml file to map request URLs to your servlet.
>
> > > On Tue, Oct 14, 2008 at 12:55 PM, Christopher Venning <
>
> > > [EMAIL PROTECTED]> wrote:
>
> > > > On Oct 14, 12:53 pm, "Isaac Truett" <[EMAIL PROTECTED]> wrote:
> > > > > Did you deploy your compiled servlet? I don't see it listed in the
> > stuff
> > > > you
> > > > > copied to tomcat/webapps/ServerTest.
>
> > > > What do you mean "compiled servlet"?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: -noserver 1.5 RPC Help

2008-10-14 Thread Isaac Truett
You'll want to set yourself up with a proper build process. I suggest Ant.
It's simple, powerful, and there are a number of examples you can borrow
from this forum. Have your Ant script build a .war file and copy it to your
tomcat/webapps directory. Tomcat's default configuration is to automatically
deploy any .war it finds in webapps. No server restart required.



On Tue, Oct 14, 2008 at 1:18 PM, Christopher Venning <
[EMAIL PROTECTED]> wrote:

>
> Thank you very much.
>
> For posterity: I compiled the my.module.server package (with
> dependencies) and exported to %TOMCAT_HOME%/webapps/ServerTest/WEB-INF/
> lib, where I also copied gwt-servlet.jar (a dependency) from
> GWT_HOME.  I also created the WEB-INF/web.xml file with the servlet
> mapping.
>
> Now, I understand the web.xml and dependencies need to be updated with
> service changes, but this method also means that changing server-side
> code requires a server restart (which embedded-serer Hosted Mode
> requires anyways) along with a newly-minted server-side code extract.
> Don't get me wrong, you're my new favorite person, I just want to make
> sure this is the best option.  Am I correct?
>
>
> On Oct 14, 1:01 pm, "Isaac Truett" <[EMAIL PROTECTED]> wrote:
> > You're use GWT RPC, which means you have a RemoteServiceServlet somewhere
> > that implements the server side of that RPC service. You need to compile
> > that servlet to a Java .class file and deploy it to your web server. You
> > also need a web.xml file to map request URLs to your servlet.
> >
> > On Tue, Oct 14, 2008 at 12:55 PM, Christopher Venning <
> >
> > [EMAIL PROTECTED]> wrote:
> >
> > > On Oct 14, 12:53 pm, "Isaac Truett" <[EMAIL PROTECTED]> wrote:
> > > > Did you deploy your compiled servlet? I don't see it listed in the
> stuff
> > > you
> > > > copied to tomcat/webapps/ServerTest.
> >
> > > What do you mean "compiled servlet"?
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: -noserver 1.5 RPC Help

2008-10-14 Thread Ian Petersen

On Tue, Oct 14, 2008 at 12:34 PM, Christopher Venning
<[EMAIL PROTECTED]> wrote:
> Relevant module code
> ---
> from TestService.java (extends RemoteService):
> @RemoteServiceRelativePath("/testService")

I don't know what difference it makes, but my
@RemoteServiceRelativePath doesn't have a leading /.

> from ServerTest.gwt.xml:
> 

I'm _pretty_ sure this is a red herring that should be removed.  Your
module "descriptor" doesn't have any impact on the configuration of an
external servlet container.

> from ServerTest.launch (arguments):
> -noserver http://localhost:8080/ServerTest/ServerTest.html

This looks fine to me.

> Sum Total of changes to Tomcat
> ---
> created %TOMCAT_HOME%/webapps/ServerTest
> copied into that directory (from compilation):
>  - clear.cache.gif
>  - history.html
>  - hosted.html
>  - org.ServerTest.nocache.js
>  - ServerTest.html
>  - 5BA8A5B3E35F40698BB0BF65F390BCF2.gwt.rpc
>  - 9DA92932034707C17CFF15F95086D53F.cache.png
>  - 548CDF11D6FE9011F3447CA200D7FB7F.cache.png

The fact that you have *.gwt.rpc in there along with the rest of your
stuff is good--after reading the subject but before reading the body
of your message, I was going to guess that you were missing that file.
 If you get Tomcat to respond to the RPC request but it throws errors
complaining about missing serialization policies, make sure you're
using an up-to-date *.gwt.rpc file.

Ian

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: -noserver 1.5 RPC Help

2008-10-14 Thread Christopher Venning

Thank you very much.

For posterity: I compiled the my.module.server package (with
dependencies) and exported to %TOMCAT_HOME%/webapps/ServerTest/WEB-INF/
lib, where I also copied gwt-servlet.jar (a dependency) from
GWT_HOME.  I also created the WEB-INF/web.xml file with the servlet
mapping.

Now, I understand the web.xml and dependencies need to be updated with
service changes, but this method also means that changing server-side
code requires a server restart (which embedded-serer Hosted Mode
requires anyways) along with a newly-minted server-side code extract.
Don't get me wrong, you're my new favorite person, I just want to make
sure this is the best option.  Am I correct?


On Oct 14, 1:01 pm, "Isaac Truett" <[EMAIL PROTECTED]> wrote:
> You're use GWT RPC, which means you have a RemoteServiceServlet somewhere
> that implements the server side of that RPC service. You need to compile
> that servlet to a Java .class file and deploy it to your web server. You
> also need a web.xml file to map request URLs to your servlet.
>
> On Tue, Oct 14, 2008 at 12:55 PM, Christopher Venning <
>
> [EMAIL PROTECTED]> wrote:
>
> > On Oct 14, 12:53 pm, "Isaac Truett" <[EMAIL PROTECTED]> wrote:
> > > Did you deploy your compiled servlet? I don't see it listed in the stuff
> > you
> > > copied to tomcat/webapps/ServerTest.
>
> > What do you mean "compiled servlet"?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: -noserver 1.5 RPC Help

2008-10-14 Thread Christopher Venning



On Oct 14, 12:53 pm, "Isaac Truett" <[EMAIL PROTECTED]> wrote:
> Did you deploy your compiled servlet? I don't see it listed in the stuff you
> copied to tomcat/webapps/ServerTest.

What do you mean "compiled servlet"?

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: -noserver 1.5 RPC Help

2008-10-14 Thread Isaac Truett
You're use GWT RPC, which means you have a RemoteServiceServlet somewhere
that implements the server side of that RPC service. You need to compile
that servlet to a Java .class file and deploy it to your web server. You
also need a web.xml file to map request URLs to your servlet.


On Tue, Oct 14, 2008 at 12:55 PM, Christopher Venning <
[EMAIL PROTECTED]> wrote:

>
>
>
> On Oct 14, 12:53 pm, "Isaac Truett" <[EMAIL PROTECTED]> wrote:
> > Did you deploy your compiled servlet? I don't see it listed in the stuff
> you
> > copied to tomcat/webapps/ServerTest.
>
> What do you mean "compiled servlet"?
>
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: -noserver 1.5 RPC Help

2008-10-14 Thread Christopher Venning

Err, sorry.  Didn't answer you.  No, the changes detailed are the only
changes made to a fresh extract of a freshly-downloaded (MD5-checked)
package of Tomcat (Windows binaries).  If there is something else that
needs to be deployed, I have not done that.


On Oct 14, 12:55 pm, Christopher Venning
<[EMAIL PROTECTED]> wrote:
> On Oct 14, 12:53 pm, "Isaac Truett" <[EMAIL PROTECTED]> wrote:
>
> > Did you deploy your compiled servlet? I don't see it listed in the stuff you
> > copied to tomcat/webapps/ServerTest.
>
> What do you mean "compiled servlet"?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: -noserver 1.5 RPC Help

2008-10-14 Thread Isaac Truett
Did you deploy your compiled servlet? I don't see it listed in the stuff you
copied to tomcat/webapps/ServerTest.

On Tue, Oct 14, 2008 at 12:34 PM, Christopher Venning <
[EMAIL PROTECTED]> wrote:

>
> I cannot seem to get the -noserver mode working with RPCs.  I got it
> to work in 1.4 but have changed environments in the last year.  There
> don't appear to be any Group postings about getting it going since 1.5
> was released.  Bruce Johnson's original posting (http://
> groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/
> 338c4b765d7dfc39)
> doesn't appear to be the 1.5-supported method, based
> on the current Developer's Guide (yes, I tried it anyways and
> failed).  Working off of
> http://code.google.com/docreader/#p=google-web-toolkit-doc-1-5&t=FAQ_HostedModeNoServer
> ,
> Hosted Mode hooks in appropriately (changing Java code and refreshing
> the Hosted Browser changes content).  However, the RPCs fail.  I am
> probably doing something dumb, and would appreciate someone pointing
> that out.
>
>
> Relevant Environment: GWT 1.5.2, Eclipse 3.4.0, Tomcat 5.5.27, jdk
> 1.6u7, XP SP3
>
> Relevant Error
> ---
> Throwable type:
>  - com.google.gwt.user.client.rpc.StatusCodeException
> Message content:
>  - html page from external Tomcat (has been confirmed)
>  - 404 report
>  - description: "The requested resource (/ServerTest/testService) is
> not available."
>
> Relevant module code
> ---
> from TestService.java (extends RemoteService):
> @RemoteServiceRelativePath("/testService")
>
> from ServerTest.gwt.xml:
> 
>
> from ServerTest.launch (arguments):
> -noserver http://localhost:8080/ServerTest/ServerTest.html
>
> Sum Total of changes to Tomcat
> ---
> created %TOMCAT_HOME%/webapps/ServerTest
> copied into that directory (from compilation):
>  - clear.cache.gif
>  - history.html
>  - hosted.html
>  - org.ServerTest.nocache.js
>  - ServerTest.html
>  - 5BA8A5B3E35F40698BB0BF65F390BCF2.gwt.rpc
>  - 9DA92932034707C17CFF15F95086D53F.cache.png
>  - 548CDF11D6FE9011F3447CA200D7FB7F.cache.png
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---