Friday, April 29, 2011

Re: Application works locally, but not from remote server?

Karl,

I'm hosted by GoDaddy; it's their Linux host, and I don't know which http server they're running. I do not have any server-side cgi capabilities (I've got the basic package).

What I tried to do was put the GWT application in a folder under the root of my ftp area:

/
  |
  |
  /cgi
     
TestModule.html
     
TestModule.css
      /com.TestModule
         com.
TestModule.nocache.js
         <other stuff from war>

So, I'd direct my browser to "www.rtcworks.com/cgi/TestModule.html". The browser would find the html, but not the javascript.

If the files are moved to the root directory:

/
  |
  |
  
TestModule.html
  
TestModule.css
   /com.
TestModule
     com.TestModule.nocache.js
      <other stuff from war>

The whole thing works.

Since my application is in the "com" package in my Eclipse project, I'm wondering if there's a problem associated with the package path?

I've tried changing the html link from <script language="javascript" src="com.TestModule/com.TestModule.nocache.js"></script> to <script language="javascript" src="cgi/com.TestModule/com.TestModule.nocache.js"></script> (and other variations of path), but without success. It's up there now, so you could actually go to rtcworks.com/cgi/TestModule.html and see it misbehaving.

I'd just like to understand this so I can partition my host data and reduce clutter.

Thanks again for your response.

Best regards,

Bob Wirka

On Thu, Apr 28, 2011 at 5:56 PM, Karl Meiser <karldotm@gmail.com> wrote:
Bob,

Does your hosting service provide Tomcat or something similar? The HTML won't just work by itself unfortunately.

I can try to help you more but I need more information.

Karl

On Thu, Apr 28, 2011 at 1:32 PM, BobWirka <bobwirka@gmail.com> wrote:
I've created a GWT Java Application from the wizard (the one with the
Click Me! button). It compiles, and if I open the html file from
Firefox, all is good; the button appears as does the popup dialog box
when the button is clicked.

However, when the files are ftp'd to my web hosting service the button
does not appear. The web page is found and loaded, but the GWT button
does not display.

Windows Internet Explorer behaves the same way.

Google Chrome will not even display the button locally, though the
page does load.

There are no elements in the html <body>, as I'd like to generate a
purely javaScript html element to be a part of a larger html page.

Would anyone know why this may be happening? I've transferred the
whole war directory to the web host, but no luck yet.

Thanks,

Bob Wirka

--

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

No comments:

Post a Comment