Deploying GWT on shared tomcat hosting...

2009-11-12 Thread Haitham
I know this is a common question, and that's why this is so
frustrating...

I have something that works great in non-hosted and hosted mode on
netbeans idea using glassfish 2.0 server.

When i take it online i get the dreaded 404 error from the mismatch
(apparent mismatch?) between the servlet url-pattern and the actual
entrypoint that is set by the application at runtime...

The farthest I have gotten on this is as follows:

GetBaseURL() prints the following to screen:

http://scp.hostjava.net/org.yournamehere.Main/scp

that is where my entry point is being set and giving a 404.

The server log shows the following

File does not exist:
/var/www/vhosts/scp.hostjava.net/httpdocs/org.yournamehere.Main/scp
referer: http://scp.hostjava.net/welcomeGWT.html

I've tried my URL pattern as
/scp
/org.yournamehere.Main/scp

and EVEN hardcoding the full path to

http://scp.hostjava.net/org.yournamehere.Main/scp

nothing works

There must be a more intelligent way of doing this...

It sucks to write a whole application in 10 days (loved GWT at that
point) but to spend 7 days failing to get it hosted (starting to hate
GWT at this point)

So frustrating

Thanks for the help 

Sorry for the newbie question

--

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-tool...@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=.




Re: Deploying to a Shared TOMCAT

2009-03-04 Thread Sean

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 john.wagner.iv...@gmail.com 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-nameObservationService/servlet-name

  servlet-classedu.noao.tuc.odigui.server.ObservationServiceImpl/servlet-class
         /servlet
         servlet-mapping
                 servlet-nameObservationService/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 slough...@gmail.com 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-nameFoo/servlet-name
     servlet-classRPCTestImpl/servlet-class
   /servlet

   !-- Standard Action Servlet Mapping --
   servlet-mapping
    servlet-nameFoo/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 

Re: Deploying to a Shared TOMCAT

2009-03-03 Thread Shawn Brown

 I want to know if I am understanding this correctly. I outputted
 GWT.getModuleBaseURL()+/Foo and I get: http://www.celticlock.com//Foo

 Now if I understand this correctly, the /Foo at the end should be
 picked up because of the url-pattern/Foo/url-pattern to map to the
 Servlet-name. And the servlet-name maps to the servlet-Class, right?

Yes, if your webapp with the /Foo servlet is /ROOT or /
If your webapp is in anyother dir, then /Foo will not get picked up.


http://www.celticlock.com//Foo doesn't look right to me at all.

 you have an extra / before Foo

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: Deploying to a Shared TOMCAT

2009-03-03 Thread Thomas Broyer



On 3 mar, 00:54, Sean slough...@gmail.com wrote:
 I want to know if I am understanding this correctly. I outputted
 GWT.getModuleBaseURL()+/Foo and I get:http://www.celticlock.com//Foo

How about GWT.getModuleBaseURL()+Foo (without the slash, which is
already in moduleBaseURL) ?


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: Deploying to a Shared TOMCAT

2009-03-03 Thread John Ivens
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/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd;
version=2.4
servlet
servlet-nameObservationService/servlet-name

 
servlet-classedu.noao.tuc.odigui.server.ObservationServiceImpl/servlet-class
/servlet
servlet-mapping
servlet-nameObservationService/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 slough...@gmail.com 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-nameFoo/servlet-name
servlet-classRPCTestImpl/servlet-class
  /servlet

  !-- Standard Action Servlet Mapping --
  servlet-mapping
   servlet-nameFoo/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-nameFoo/servlet-name
   servlet-classcom.ll.server.fooImpl/servlet-class
  /servlet
 
  !-- Standard Action Servlet Mapping --
  servlet-mapping
   servlet-nameFoo/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 

Re: Deploying to a Shared TOMCAT

2009-03-02 Thread Sean

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-nameFoo/servlet-name
    servlet-classcom.ll.server.fooImpl/servlet-class
   /servlet

   !-- Standard Action Servlet Mapping --
   servlet-mapping
    servlet-nameFoo/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-nameFoo/servlet-name
   servlet-classcom.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
-~--~~~~--~~--~--~---



Re: Deploying to a Shared TOMCAT

2009-03-02 Thread John Ivens
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-nameFoo/servlet-name
 servlet-classcom.ll.server.fooImpl/servlet-class
/servlet
 
!-- Standard Action Servlet Mapping --
servlet-mapping
 servlet-nameFoo/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-nameFoo/servlet-name
servlet-classcom.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
-~--~~~~--~~--~--~---



Re: Deploying to a Shared TOMCAT

2009-03-02 Thread Sean

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-nameFoo/servlet-name
   servlet-classRPCTestImpl/servlet-class
 /servlet

 !-- Standard Action Servlet Mapping --
 servlet-mapping
   servlet-nameFoo/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-nameFoo/servlet-name
  servlet-classcom.ll.server.fooImpl/servlet-class
 /servlet

 !-- Standard Action Servlet Mapping --
 servlet-mapping
  servlet-nameFoo/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-nameFoo/servlet-name
     servlet-classcom.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

Re: Deploying to a Shared TOMCAT

2009-03-02 Thread Sean

I want to know if I am understanding this correctly. I outputted
GWT.getModuleBaseURL()+/Foo and I get: http://www.celticlock.com//Foo

Now if I understand this correctly, the /Foo at the end should be
picked up because of the url-pattern/Foo/url-pattern to map to the
Servlet-name. And the servlet-name maps to the servlet-Class, right?

So, it just seems like Tomcat isn't picking up that /Foo should
somehow be related to what's in the web.xml?

Sorry if these are naive questions, I just don't know anything about
this. I appreciate everyone helping me.
On Mar 2, 6:40 pm, Sean slough...@gmail.com 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/javaeehttp://java.sun.com/xml/ns/javaee/web-app_2_5.xsd;

  !-- Standard Action Servlet Configuration --
  servlet
    servlet-nameFoo/servlet-name
    servlet-classRPCTestImpl/servlet-class
  /servlet

  !-- Standard Action Servlet Mapping --
  servlet-mapping
    servlet-nameFoo/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-nameFoo/servlet-name
   servlet-classcom.ll.server.fooImpl/servlet-class
  /servlet

  !-- Standard Action Servlet Mapping --
  servlet-mapping
   servlet-nameFoo/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
    

Deploying to a Shared TOMCAT

2009-03-01 Thread Sean

Hello,

I have read dozens of posts about deploying RPC's to TOMCAT, but I
still can't seem to get it done. I am working with MOCHA hosting and
they allow one WEB-INF file in the base of your public http directory.
I can't seem to figure out what in the web.xml file is talking about
what. The Google Example names everything Foo so I'm not sure what Foo
relates to what.

Right now all I get is :

com.google.gwt.user.client.rpc.StatusCodeException:
Not Found

The requested URL /Foo was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to
use an ErrorDocument to handle the request.

When I try to invoke the RPC.


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-nameFoo/servlet-name
   servlet-classcom.ll.server.fooImpl/servlet-class
 /servlet

 !-- Standard Action Servlet Mapping --
 servlet-mapping
   servlet-nameFoo/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

I was wondering if anyone had thoughts on this? Thanks!
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: Deploying to a Shared TOMCAT

2009-03-01 Thread Shawn Brown

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-nameFoo/servlet-name
   servlet-classcom.ll.server.fooImpl/servlet-class
  /servlet

  !-- Standard Action Servlet Mapping --
  servlet-mapping
   servlet-nameFoo/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-nameFoo/servlet-name
  servlet-classcom.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
-~--~~~~--~~--~--~---