Re: newbie question: deploying the starter web project

2010-07-25 Thread LukaF
I have the same problem with deploying on a tomcat. Everything works
fine in debug mode, but on tomcat, i can't get my RPC working. My
web.xml seems fine (the same as Oby) and @RemoteServiceRelativePath
matches that.

Is it wrong to create war files for tomcat just by zipping the whole
war folder and naming it Projectname.war? Tomcat doesn't report
anything wrong when deploying this war file.

-- 
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=en.



Re: newbie question: deploying the starter web project

2010-07-15 Thread Oby Sumampouw
Hi Katharina,

Thanks for your help so far.

No I didn't have AppEngine enabled, I only have the GWT SDK clicked. I
also didn't change anything from the starter project.
I still have this line...

@RemoteServiceRelativePath(greet)
public interface GreetingService extends RemoteService

this is weird, the javascript RPC is pointing to the right servlet but
it says it cannot find the server... What can possibly go wrong. I
restarted the tomcat too.

In my CPanel error log I found this error
[Thu Jul 15 01:02:05 2010] [error] [client 99.185.43.174] File does
not exist: /home/osumampo/public_html/404.shtml, referer:
http://www.tuwuk.com/mainarea/F4DE64580EEC20A0487A6B1C498FA109.cache.html
[Thu Jul 15 01:02:05 2010] [error] [client 99.185.43.174] File does
not exist: /home/osumampo/public_html/mainarea/greet, referer:
http://www.tuwuk.com/mainarea/F4DE64580EEC20A0487A6B1C498FA109.cache.html
[Thu Jul 15 01:01:35 2010] [error] [client 99.185.43.174] File does
not exist: /home/osumampo/public_html/404.shtml
[Thu Jul 15 01:01:35 2010] [error] [client 99.185.43.174] File does
not exist: /home/osumampo/public_html/favicon.ico

So apparently the javascript is really pointing to the right URL
mainarea/greet but it seems the tomcat server does not translate
'mainarea/greet' to the servlet but directly translate it to real
path.
I checked my web.xml in WEB_INF

?xml version=1.0 encoding=UTF-8?
!DOCTYPE web-app
PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN
http://java.sun.com/dtd/web-app_2_3.dtd;

web-app

  !-- Servlets --
  servlet
servlet-namegreetServlet/servlet-name
servlet-classpath.to.server.GreetingServiceImpl/servlet-class
  /servlet

  servlet-mapping
servlet-namegreetServlet/servlet-name
url-pattern/mainarea/greet/url-pattern
  /servlet-mapping

  !-- Default page to serve --
  welcome-file-list
welcome-fileMainArea.html/welcome-file
  /welcome-file-list

/web-app

the url-pattern seems correct. Do you have any guess on why this
happen?

Thanks,
Oby




On Jul 14, 5:53 pm, Katharina Probst kpro...@google.com wrote:
 When you created your project, did you have AppEngine enabled?  If you're
 trying to deploy with tomcat, you shouldn't have that option enabled.

  does the javascript file generated by the GWT sends request to the
  wrong servlet? does it point to /mainarea/greet all the time?

 Your client-side implementation of the RPC (what allows you to talk between
 the client and the server) has an annotation that should look like
 this: @RemoteServiceRelativePath(greet)

 That's how it hooks up to the server side servlet (whose URL pattern is
 specified in the web.xml file). So, no, it doesn't have to point to
 /mainarea/greet. Did you modify anything from the starter project?

 kathrin



  Thanks,
  Oby

  On Jul 14, 6:01 am, Katharina Probst kpro...@google.com wrote:
   Try just taking the whole war directory that the compiler produces (as
  is)
   and copying it to your tomcat/webapps/ directory.  Rename the war
  directory
   to the name of your webapp (say, public_html).

   Then do tomcat/bin/startup.sh

   and go to

   localhost:8080/public_html/MainArea.html

   That should do the trick...

   kathrinOn Wed, Jul 14, 2010 at 2:51 AM, Oby Sumampouw 
  osumamp...@gmail.com wrote:
Hi,
I am trying to see if I can deploy the web starter project to a web
server (which runs using tomcat)

The steps that I have done so far:
0.) create new GWT application, so it's the default template for a web
app
1.) I compiled the starter project
2.) Copy the class, lib directory to the ~/public_html/WEB-INF
3.) Copy the web.xml to the ~/public_html/WEB-INF

this is the web.xml

?xml version=1.0 encoding=UTF-8?
!DOCTYPE web-app
   PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN
   http://java.sun.com/dtd/web-app_2_3.dtd;

web-app

 !-- Servlets --
 servlet
   servlet-namegreetServlet/servlet-name
   servlet-classbla.bla.bla.server.GreetingServiceImpl/servlet-
class
 /servlet

 servlet-mapping
   servlet-namegreetServlet/servlet-name
   url-pattern/mainarea/greet/url-pattern
 /servlet-mapping

 !-- Default page to serve --
 welcome-file-list
   welcome-fileMainArea.html/welcome-file
 /welcome-file-list

/web-app

4.) I put the MainArea.html and MainArea.css to the ~/public_html
because they are the welcome-file
5.) I copied the compiled javascript and resources (in the folder
called 'mainarea') to ~/public_html
6.) So the structure is like this:

-- public_html
     |- MainArea.html
     |- MainArea.css
     |- WEB-INF
          |- web.xml
          |- lib
          |- class
     |- mainarea
          |- gwt
          |- hosted.html
          |- mainarea.nocache.js
          |- other resources

When I go to the website, the page loads fine. But when I click send
(to send 

Re: newbie question: deploying the starter web project

2010-07-15 Thread Katharina Probst
I think I know what the problem may be related to.

When I navigate to:
http://www.tuwuk.com/mainarea/

http://www.tuwuk.com/mainarea/I get nothing, but when I go to

http://www.tuwuk.com

Given what I've told you to do, I would expect the first one to work, not
the second one.

I get your starter project (with the error).  Because of the way you
deployed it, it looks like the servlet will look for mainarea/greet, but
it's not finding anything there (just like I didn't).  I think you have a
problem with your tomcat setup - you say that public_html is your webapps
folder.  Now I don't know enough tomcat hackery to know how to rename the
webapps folder successfully (although I know you can make one project your
default project, but the way I did it it still sat in the webapps folder),
but it doesn't look like maybe you did it quite right.

If you just have stock (i.e., unmodified) tomcat, you'll get a webapps
directory, and you can dump your application (everything under war, like
we'd discussed and you've done) there.  Can you give that a try and see if
it works?

kathrin

On Thu, Jul 15, 2010 at 2:14 AM, Oby Sumampouw osumamp...@gmail.com wrote:

 Hi Katharina,

 Thanks for your help so far.

 No I didn't have AppEngine enabled, I only have the GWT SDK clicked. I
 also didn't change anything from the starter project.
 I still have this line...

 @RemoteServiceRelativePath(greet)
 public interface GreetingService extends RemoteService

 this is weird, the javascript RPC is pointing to the right servlet but
 it says it cannot find the server... What can possibly go wrong. I
 restarted the tomcat too.

 In my CPanel error log I found this error
 [Thu Jul 15 01:02:05 2010] [error] [client 99.185.43.174] File does
 not exist: /home/osumampo/public_html/404.shtml, referer:
 http://www.tuwuk.com/mainarea/F4DE64580EEC20A0487A6B1C498FA109.cache.html
 [Thu Jul 15 01:02:05 2010] [error] [client 99.185.43.174] File does
 not exist: /home/osumampo/public_html/mainarea/greet, referer:
 http://www.tuwuk.com/mainarea/F4DE64580EEC20A0487A6B1C498FA109.cache.html
 [Thu Jul 15 01:01:35 2010] [error] [client 99.185.43.174] File does
 not exist: /home/osumampo/public_html/404.shtml
 [Thu Jul 15 01:01:35 2010] [error] [client 99.185.43.174] File does
 not exist: /home/osumampo/public_html/favicon.ico

 So apparently the javascript is really pointing to the right URL
 mainarea/greet but it seems the tomcat server does not translate
 'mainarea/greet' to the servlet but directly translate it to real
 path.
 I checked my web.xml in WEB_INF

 ?xml version=1.0 encoding=UTF-8?
 !DOCTYPE web-app
PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN
http://java.sun.com/dtd/web-app_2_3.dtd;

 web-app

  !-- Servlets --
  servlet
servlet-namegreetServlet/servlet-name
 servlet-classpath.to.server.GreetingServiceImpl/servlet-class
   /servlet

  servlet-mapping
servlet-namegreetServlet/servlet-name
url-pattern/mainarea/greet/url-pattern
  /servlet-mapping

  !-- Default page to serve --
  welcome-file-list
welcome-fileMainArea.html/welcome-file
  /welcome-file-list

 /web-app

 the url-pattern seems correct. Do you have any guess on why this
 happen?

 Thanks,
 Oby




 On Jul 14, 5:53 pm, Katharina Probst kpro...@google.com wrote:
  When you created your project, did you have AppEngine enabled?  If you're
  trying to deploy with tomcat, you shouldn't have that option enabled.
 
   does the javascript file generated by the GWT sends request to the
   wrong servlet? does it point to /mainarea/greet all the time?
 
  Your client-side implementation of the RPC (what allows you to talk
 between
  the client and the server) has an annotation that should look like
  this: @RemoteServiceRelativePath(greet)
 
  That's how it hooks up to the server side servlet (whose URL pattern is
  specified in the web.xml file). So, no, it doesn't have to point to
  /mainarea/greet. Did you modify anything from the starter project?
 
  kathrin
 
 
 
   Thanks,
   Oby
 
   On Jul 14, 6:01 am, Katharina Probst kpro...@google.com wrote:
Try just taking the whole war directory that the compiler produces
 (as
   is)
and copying it to your tomcat/webapps/ directory.  Rename the war
   directory
to the name of your webapp (say, public_html).
 
Then do tomcat/bin/startup.sh
 
and go to
 
localhost:8080/public_html/MainArea.html
 
That should do the trick...
 
kathrinOn Wed, Jul 14, 2010 at 2:51 AM, Oby Sumampouw 
   osumamp...@gmail.com wrote:
 Hi,
 I am trying to see if I can deploy the web starter project to a web
 server (which runs using tomcat)
 
 The steps that I have done so far:
 0.) create new GWT application, so it's the default template for a
 web
 app
 1.) I compiled the starter project
 2.) Copy the class, lib directory to the ~/public_html/WEB-INF
 3.) Copy the web.xml to the ~/public_html/WEB-INF
 
 this is the web.xml
 
 ?xml version=1.0 

Re: newbie question: deploying the starter web project

2010-07-15 Thread Oby Sumampouw
I agree this seems to be some tomcat issue not GWT issue.
Ok I'll try and reply back.

Thanks
Oby

On Jul 15, 6:30 am, Katharina Probst kpro...@google.com wrote:
 I think I know what the problem may be related to.

 When I navigate to:http://www.tuwuk.com/mainarea/

 http://www.tuwuk.com/mainarea/I get nothing, but when I go to

 http://www.tuwuk.com

 Given what I've told you to do, I would expect the first one to work, not
 the second one.

 I get your starter project (with the error).  Because of the way you
 deployed it, it looks like the servlet will look for mainarea/greet, but
 it's not finding anything there (just like I didn't).  I think you have a
 problem with your tomcat setup - you say that public_html is your webapps
 folder.  Now I don't know enough tomcat hackery to know how to rename the
 webapps folder successfully (although I know you can make one project your
 default project, but the way I did it it still sat in the webapps folder),
 but it doesn't look like maybe you did it quite right.

 If you just have stock (i.e., unmodified) tomcat, you'll get a webapps
 directory, and you can dump your application (everything under war, like
 we'd discussed and you've done) there.  Can you give that a try and see if
 it works?

 kathrin



 On Thu, Jul 15, 2010 at 2:14 AM, Oby Sumampouw osumamp...@gmail.com wrote:
  Hi Katharina,

  Thanks for your help so far.

  No I didn't have AppEngine enabled, I only have the GWT SDK clicked. I
  also didn't change anything from the starter project.
  I still have this line...

  @RemoteServiceRelativePath(greet)
  public interface GreetingService extends RemoteService

  this is weird, the javascript RPC is pointing to the right servlet but
  it says it cannot find the server... What can possibly go wrong. I
  restarted the tomcat too.

  In my CPanel error log I found this error
  [Thu Jul 15 01:02:05 2010] [error] [client 99.185.43.174] File does
  not exist: /home/osumampo/public_html/404.shtml, referer:
 http://www.tuwuk.com/mainarea/F4DE64580EEC20A0487A6B1C498FA109.cache
  [Thu Jul 15 01:02:05 2010] [error] [client 99.185.43.174] File does
  not exist: /home/osumampo/public_html/mainarea/greet, referer:
 http://www.tuwuk.com/mainarea/F4DE64580EEC20A0487A6B1C498FA109.cache
  [Thu Jul 15 01:01:35 2010] [error] [client 99.185.43.174] File does
  not exist: /home/osumampo/public_html/404.shtml
  [Thu Jul 15 01:01:35 2010] [error] [client 99.185.43.174] File does
  not exist: /home/osumampo/public_html/favicon.ico

  So apparently the javascript is really pointing to the right URL
  mainarea/greet but it seems the tomcat server does not translate
  'mainarea/greet' to the servlet but directly translate it to real
  path.
  I checked my web.xml in WEB_INF

  ?xml version=1.0 encoding=UTF-8?
  !DOCTYPE web-app
     PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN
     http://java.sun.com/dtd/web-app_2_3.dtd;

  web-app

   !-- Servlets --
   servlet
     servlet-namegreetServlet/servlet-name
      servlet-classpath.to.server.GreetingServiceImpl/servlet-class
    /servlet

   servlet-mapping
     servlet-namegreetServlet/servlet-name
     url-pattern/mainarea/greet/url-pattern
   /servlet-mapping

   !-- Default page to serve --
   welcome-file-list
     welcome-fileMainArea.html/welcome-file
   /welcome-file-list

  /web-app

  the url-pattern seems correct. Do you have any guess on why this
  happen?

  Thanks,
  Oby

  On Jul 14, 5:53 pm, Katharina Probst kpro...@google.com wrote:
   When you created your project, did you have AppEngine enabled?  If you're
   trying to deploy with tomcat, you shouldn't have that option enabled.

does the javascript file generated by the GWT sends request to the
wrong servlet? does it point to /mainarea/greet all the time?

   Your client-side implementation of the RPC (what allows you to talk
  between
   the client and the server) has an annotation that should look like
   this: @RemoteServiceRelativePath(greet)

   That's how it hooks up to the server side servlet (whose URL pattern is
   specified in the web.xml file). So, no, it doesn't have to point to
   /mainarea/greet. Did you modify anything from the starter project?

   kathrin

Thanks,
Oby

On Jul 14, 6:01 am, Katharina Probst kpro...@google.com wrote:
 Try just taking the whole war directory that the compiler produces
  (as
is)
 and copying it to your tomcat/webapps/ directory.  Rename the war
directory
 to the name of your webapp (say, public_html).

 Then do tomcat/bin/startup.sh

 and go to

 localhost:8080/public_html/MainArea.html

 That should do the trick...

 kathrinOn Wed, Jul 14, 2010 at 2:51 AM, Oby Sumampouw 
osumamp...@gmail.com wrote:
  Hi,
  I am trying to see if I can deploy the web starter project to a web
  server (which runs using tomcat)

  The steps that I have done so far:
  0.) create new GWT application, so it's the default template 

Re: newbie question: deploying the starter web project

2010-07-14 Thread Katharina Probst
Try just taking the whole war directory that the compiler produces (as is)
and copying it to your tomcat/webapps/ directory.  Rename the war directory
to the name of your webapp (say, public_html).

Then do tomcat/bin/startup.sh

and go to

localhost:8080/public_html/MainArea.html

That should do the trick...

kathrin

On Wed, Jul 14, 2010 at 2:51 AM, Oby Sumampouw osumamp...@gmail.com wrote:

 Hi,
 I am trying to see if I can deploy the web starter project to a web
 server (which runs using tomcat)

 The steps that I have done so far:
 0.) create new GWT application, so it's the default template for a web
 app
 1.) I compiled the starter project
 2.) Copy the class, lib directory to the ~/public_html/WEB-INF
 3.) Copy the web.xml to the ~/public_html/WEB-INF

 this is the web.xml

 ?xml version=1.0 encoding=UTF-8?
 !DOCTYPE web-app
PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN
http://java.sun.com/dtd/web-app_2_3.dtd;

 web-app

  !-- Servlets --
  servlet
servlet-namegreetServlet/servlet-name
servlet-classbla.bla.bla.server.GreetingServiceImpl/servlet-
 class
  /servlet

  servlet-mapping
servlet-namegreetServlet/servlet-name
url-pattern/mainarea/greet/url-pattern
  /servlet-mapping

  !-- Default page to serve --
  welcome-file-list
welcome-fileMainArea.html/welcome-file
  /welcome-file-list

 /web-app

 4.) I put the MainArea.html and MainArea.css to the ~/public_html
 because they are the welcome-file
 5.) I copied the compiled javascript and resources (in the folder
 called 'mainarea') to ~/public_html
 6.) So the structure is like this:

 -- public_html
  |- MainArea.html
  |- MainArea.css
  |- WEB-INF
   |- web.xml
   |- lib
   |- class
  |- mainarea
   |- gwt
   |- hosted.html
   |- mainarea.nocache.js
   |- other resources

 When I go to the website, the page loads fine. But when I click send
 (to send the input to the server) it seems the path is wrong. I got
 this error:

 Sending name to the server:
 GWT User

 Server replies:
 An error occurred while attempting to contact the server. Please check
 your network connection and try again.

 I was wondering if this servlet location is correct?

 Another noob question about JSP, can I put the generated javascript
 code to ~/public_html/WEB_INF/mainarea instead of ~/public_html/
 mainarea.

 Initially I thought WEB_INF becomes the root directory if web app
 tries to refer to some file? But apparently in the MainArea.html the
 script src='mainarea/mainare.nocache.js' doesn't work if I put
 mainarea inside WEB_INF.

 I wish there's a way to make the html file able to access the mainarea
 directory from WEB_INF. Is it possible?

 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-tool...@googlegroups.com.
 To unsubscribe from this group, send email to
 google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=en.



-- 
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=en.



Re: newbie question: deploying the starter web project

2010-07-14 Thread Oby Sumampouw
I copied the content of war directory to the web_app (which is my
public_html directory). Then I restarted tomcat, still I got the same
error

--- ERROR--
Sending name to the server:
test abcdef

Server replies:
An error occurred while attempting to contact the server. Please check
your network connection and try again
-- ERROR--

does the javascript file generated by the GWT sends request to the
wrong servlet? does it point to /mainarea/greet all the time?

Thanks,
Oby


On Jul 14, 6:01 am, Katharina Probst kpro...@google.com wrote:
 Try just taking the whole war directory that the compiler produces (as is)
 and copying it to your tomcat/webapps/ directory.  Rename the war directory
 to the name of your webapp (say, public_html).

 Then do tomcat/bin/startup.sh

 and go to

 localhost:8080/public_html/MainArea.html

 That should do the trick...

 kathrinOn Wed, Jul 14, 2010 at 2:51 AM, Oby Sumampouw osumamp...@gmail.com 
 wrote:
  Hi,
  I am trying to see if I can deploy the web starter project to a web
  server (which runs using tomcat)

  The steps that I have done so far:
  0.) create new GWT application, so it's the default template for a web
  app
  1.) I compiled the starter project
  2.) Copy the class, lib directory to the ~/public_html/WEB-INF
  3.) Copy the web.xml to the ~/public_html/WEB-INF

  this is the web.xml

  ?xml version=1.0 encoding=UTF-8?
  !DOCTYPE web-app
     PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN
     http://java.sun.com/dtd/web-app_2_3.dtd;

  web-app

   !-- Servlets --
   servlet
     servlet-namegreetServlet/servlet-name
     servlet-classbla.bla.bla.server.GreetingServiceImpl/servlet-
  class
   /servlet

   servlet-mapping
     servlet-namegreetServlet/servlet-name
     url-pattern/mainarea/greet/url-pattern
   /servlet-mapping

   !-- Default page to serve --
   welcome-file-list
     welcome-fileMainArea.html/welcome-file
   /welcome-file-list

  /web-app

  4.) I put the MainArea.html and MainArea.css to the ~/public_html
  because they are the welcome-file
  5.) I copied the compiled javascript and resources (in the folder
  called 'mainarea') to ~/public_html
  6.) So the structure is like this:

  -- public_html
       |- MainArea.html
       |- MainArea.css
       |- WEB-INF
            |- web.xml
            |- lib
            |- class
       |- mainarea
            |- gwt
            |- hosted.html
            |- mainarea.nocache.js
            |- other resources

  When I go to the website, the page loads fine. But when I click send
  (to send the input to the server) it seems the path is wrong. I got
  this error:

  Sending name to the server:
  GWT User

  Server replies:
  An error occurred while attempting to contact the server. Please check
  your network connection and try again.

  I was wondering if this servlet location is correct?

  Another noob question about JSP, can I put the generated javascript
  code to ~/public_html/WEB_INF/mainarea instead of ~/public_html/
  mainarea.

  Initially I thought WEB_INF becomes the root directory if web app
  tries to refer to some file? But apparently in the MainArea.html the
  script src='mainarea/mainare.nocache.js' doesn't work if I put
  mainarea inside WEB_INF.

  I wish there's a way to make the html file able to access the mainarea
  directory from WEB_INF. Is it possible?

  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-tool...@googlegroups.com.
  To unsubscribe from this group, send email to
  google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2Bunsubs 
  cr...@googlegroups.com
  .
  For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=en.

-- 
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=en.



Re: newbie question: deploying the starter web project

2010-07-14 Thread Katharina Probst
When you created your project, did you have AppEngine enabled?  If you're
trying to deploy with tomcat, you shouldn't have that option enabled.


 does the javascript file generated by the GWT sends request to the
 wrong servlet? does it point to /mainarea/greet all the time?


Your client-side implementation of the RPC (what allows you to talk between
the client and the server) has an annotation that should look like
this: @RemoteServiceRelativePath(greet)

That's how it hooks up to the server side servlet (whose URL pattern is
specified in the web.xml file). So, no, it doesn't have to point to
/mainarea/greet. Did you modify anything from the starter project?

kathrin


 Thanks,
 Oby


 On Jul 14, 6:01 am, Katharina Probst kpro...@google.com wrote:
  Try just taking the whole war directory that the compiler produces (as
 is)
  and copying it to your tomcat/webapps/ directory.  Rename the war
 directory
  to the name of your webapp (say, public_html).
 
  Then do tomcat/bin/startup.sh
 
  and go to
 
  localhost:8080/public_html/MainArea.html
 
  That should do the trick...
 
  kathrinOn Wed, Jul 14, 2010 at 2:51 AM, Oby Sumampouw 
 osumamp...@gmail.com wrote:
   Hi,
   I am trying to see if I can deploy the web starter project to a web
   server (which runs using tomcat)
 
   The steps that I have done so far:
   0.) create new GWT application, so it's the default template for a web
   app
   1.) I compiled the starter project
   2.) Copy the class, lib directory to the ~/public_html/WEB-INF
   3.) Copy the web.xml to the ~/public_html/WEB-INF
 
   this is the web.xml
 
   ?xml version=1.0 encoding=UTF-8?
   !DOCTYPE web-app
  PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN
  http://java.sun.com/dtd/web-app_2_3.dtd;
 
   web-app
 
!-- Servlets --
servlet
  servlet-namegreetServlet/servlet-name
  servlet-classbla.bla.bla.server.GreetingServiceImpl/servlet-
   class
/servlet
 
servlet-mapping
  servlet-namegreetServlet/servlet-name
  url-pattern/mainarea/greet/url-pattern
/servlet-mapping
 
!-- Default page to serve --
welcome-file-list
  welcome-fileMainArea.html/welcome-file
/welcome-file-list
 
   /web-app
 
   4.) I put the MainArea.html and MainArea.css to the ~/public_html
   because they are the welcome-file
   5.) I copied the compiled javascript and resources (in the folder
   called 'mainarea') to ~/public_html
   6.) So the structure is like this:
 
   -- public_html
|- MainArea.html
|- MainArea.css
|- WEB-INF
 |- web.xml
 |- lib
 |- class
|- mainarea
 |- gwt
 |- hosted.html
 |- mainarea.nocache.js
 |- other resources
 
   When I go to the website, the page loads fine. But when I click send
   (to send the input to the server) it seems the path is wrong. I got
   this error:
 
   Sending name to the server:
   GWT User
 
   Server replies:
   An error occurred while attempting to contact the server. Please check
   your network connection and try again.
 
   I was wondering if this servlet location is correct?
 
   Another noob question about JSP, can I put the generated javascript
   code to ~/public_html/WEB_INF/mainarea instead of ~/public_html/
   mainarea.
 
   Initially I thought WEB_INF becomes the root directory if web app
   tries to refer to some file? But apparently in the MainArea.html the
   script src='mainarea/mainare.nocache.js' doesn't work if I put
   mainarea inside WEB_INF.
 
   I wish there's a way to make the html file able to access the mainarea
   directory from WEB_INF. Is it possible?
 
   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-tool...@googlegroups.com.
   To unsubscribe from this group, send email to
   google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.comgoogle-web-toolkit%2Bunsubs
 cr...@googlegroups.com
   .
   For more options, visit this group at
  http://groups.google.com/group/google-web-toolkit?hl=en.

 --
 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.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=en.



-- 
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=en.