I do have that code, I even added in the null check just to be doubley
sure and still no go. It works in hosted mode, just with this web.xml
(and I tried removing the com.ll.server from teh Servlet-class) and I
get the same error message.

>From my gwt.xml :

            <servlet path="/Foo"
                  class="com.ll.server.RPCTestImpl"/>

That works fine, but:

<?xml version="1.0" encoding="UTF-8"?>

<web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd";>

 <!-- Standard Action Servlet Configuration -->
 <servlet>
   <servlet-name>Foo</servlet-name>
   <servlet-class>RPCTestImpl</servlet-class>
 </servlet>

 <!-- Standard Action Servlet Mapping -->
 <servlet-mapping>
   <servlet-name>Foo</servlet-name>
   <url-pattern>/Foo</url-pattern>
 </servlet-mapping>

</web-app>

doesn't. I've tried restarting my Tomcat to no avail. This is mind
boggling!

On Mar 2, 10:36 am, John Ivens <john.wagner.iv...@gmail.com> wrote:
> I'll bet dollars to donuts that you are having the same problem that I had.
> The sample code works in embedded tomcat but not in external tomcat.
>
> You need to add code something like this:
>
> if (observationSvc == null) {
>
> observationSvc = (ObservationServiceAsync) GWT.create(ObservationService.
> class);
>
> }
>
> String observationServiceURL = GWT.getModuleBaseURL() + "/observation";
>
> ((ServiceDefTarget) observationSvc
> ).setServiceEntryPoint(observationServiceURL);
>
> Where ObservationService is your service class.  ObservationServiceAsync is
> your asynchronous call.
>
> /observation is probably /Foo in your case.
>
> This is in your GUI before you actually call the function you have defined
> on the server side.  If you don't do this, the application WILL NOT FIND
> YOUR URL.
>
> On Mon, Mar 2, 2009 at 5:26 AM, Sean <slough...@gmail.com> wrote:
>
> > I did restart Tomcat still no go.
>
> > #1
> > The latest I tried putting all the google files and Web-INF directory
> > in my base http directory. So I am just calling:
> >http://www.celticlock.com/Foo.html
>
> > I'm on a shared Tomcat server and the documentation says I can only
> > have one Web-INF directory there with one web.xml. So I'm trying to
> > get everything on an even footing.
>
> > #2
> > I added the com.ll.server to the servlet class after I saw it in an
> > example. I've tried a dozen different configurations at this point.
> > This is the state it's left in after I threw my hands up in the air
> > and decided to see if hte groups can point me in the right direction.
>
> > I think I might possibly be confused by, the Url-pattern and what
> > exactly is the url-pattern supposed to represent. This is where I
> > dislike Google's example and naming everything Foo.
>
> > and I called my Mom and she said I am spelling Sean correctly! ;-P
>
> > On Mar 1, 7:13 pm, Shawn Brown <big.coffee.lo...@gmail.com> wrote:
> > > Hi,
>
> > > It looks to me like you have 2 problems.
>
> > > #1
>
> > > > The requested URL /Foo was not found on this server
>
> > > Did you restart the tomcat or restart your app?
>
> > > What url are you using to access it.  What is your app called?
>
> > > Are you using something like serverurl/app_name/foo?
>
> > > > And this is the web.xml I am using:
>
> > > > <?xml version="1.0" encoding="UTF-8"?>
>
> > > > <web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee";
> > > > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
> > > > xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
> > > >http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd";>
>
> > > >  <!-- Standard Action Servlet Configuration -->
> > > >  <servlet>
> > > >   <servlet-name>Foo</servlet-name>
> > > >   <servlet-class>com.ll.server.fooImpl</servlet-class>
> > > >  </servlet>
>
> > > >  <!-- Standard Action Servlet Mapping -->
> > > >  <servlet-mapping>
> > > >   <servlet-name>Foo</servlet-name>
> > > >   <url-pattern>/Foo</url-pattern>
> > > >  </servlet-mapping>
>
> > > > </web-app>
>
> > > > It looks like it's trying to do the url-pattern (/Foo), but I'm not
> > > > really sure what to put there. Right now, all the files created from
> > > > GWT are at the same level as WEB-INF and in WEB-INF I have the Web.xml
> > > > as well as the classes and lib. And under classes I have:
> > > > WEB-INF\classes\com\ll\server\RPCTestImpl.class
> > > > WEB-INF\classes\com\ll\server\RPCTestImpl.java
>
> > > #2
> > > Um, don't you need to have com.ll.server.fooImpl in your
> >  WEB-INF\classes?
> > > If RPCTestImpl _is_ your foolImpl then say so
>
> > >   <servlet>
> > >    <servlet-name>Foo</servlet-name>
> > >   <servlet-class>com.ll.server.RPCTestImpl</servlet-class>
> > >   </servlet>
>
> > > Oh, and you are spelling your name wrong.
>
> > > Shawn
--~--~---------~--~----~------------~-------~--~----~
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 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to