Hey Guys,

I want to thank you for your help. I still have had no luck, but I'm
starting to think it's on the Tomcat side. I even tried downloading a
complete exmaple of a .jsp servlet and it's not working. Even when I
link straight to the jsp which should kick off the Tomcat server to
handle it, it just comes up as text. Something isn't right here. I'm
going to contact their support.

Thanks for all your help!

On Mar 3, 10:29 am, John Ivens <[email protected]> wrote:
> This is my web.xml file... this might help you out.   See if you can map
> your call to like parameters in my call...
>
> <?xml version="1.0" encoding="ISO-8859-1"?>
> <web-app xmlns="http://java.sun.com/xml/ns/j2ee";
>     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
>     
> xsi:schemaLocation="http://java.sun.com/xml/ns/j2eehttp://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd";
>     version="2.4">
>         <servlet>
>                 <servlet-name>ObservationService</servlet-name>
>
>  <servlet-class>edu.noao.tuc.odigui.server.ObservationServiceImpl</servlet-class>
>         </servlet>
>         <servlet-mapping>
>                 <servlet-name>ObservationService</servlet-name>
>
>  <url-pattern>/edu.noao.tuc.odigui.OdiGui/observation</url-pattern>
>         </servlet-mapping>
> </web-app>
>
> On Mon, Mar 2, 2009 at 4:40 PM, Sean <[email protected]> wrote:
>
> > 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 <[email protected]> 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 <[email protected]> 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 <[email protected]> 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 [email protected]
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to