Tuesday, December 1, 2009

Re: OOPHM not connecting to Code Server

Hey Adam,

Try adding the following to the program arguments of your launch configuration:

-startupUrl webconfig/default



Rajeev

On Tue, Dec 1, 2009 at 12:03 AM, ahawtho <adam.hawthorne@gmail.com> wrote:
When running in Development mode from the Eclipse plugin, the DevMode
console does not indicate any URL, and starting DevMode does not open
a browser.  From the UsingOOPHM wiki link, I found the text:

> If you start DevMode in a browser without the plugin, you will get to the
> page allowing you to install the plugin. If you want to install it ahead
> of time, you can go directly to that missing-plugin page to install the
> plugin.

Since nothing appeared, I went to the missing-plugin page to install
the plugin, and found references to the "gwt.hosted" query param.

Our GWT pages are all served via servlets from a context URL of /
webconfig/*. We do not have a static HTML page.  I tried to follow the
same pattern by navigating in FF to localhost:8888/webconfig/default?
gwt.hosted=localhost:9997 .  Our application does seem to load and
function normally, but although I had run the DevMode configuration
from Eclipse's Debug menu, breakpoints don't work and I never see a
connection from the OOPHM plugin noted in the logs.  I even suspended
the Code Server thread from within the DevMode JVM to see if it ever
returned from the ServerSocket.accept() (it didn't).  It seems as
though the URL I'm using is bypassing the mechanism that invokes the
OOPHM plugin.

Another anomaly that I think might be related is that when creating or
editing a Run/Debug Configuration, the GWT tab on the configuration
dialog appears different when I select my GWT project (it's missing
the Browser URL field and replaces the Compiler & Shell section with a
Development Mode section, see attached images for details).  I idly
wondered if it was related to our GWT bootstrap HTML pages being
generated by servlets, so I mention it here.

I found this:
http://groups.google.com/group/google-web-toolkit/browse_thread/thread/b3c69a212002444b/95f9e9a0d65347f5?lnk=gst

but I verified the gwt-servlet.jar was the same in the 2.0rc2 dir and
my war/WEB-INF/lib dir .

This looks like maybe the URL field is no longer valid:

http://groups.google.com/group/google-web-toolkit/browse_thread/thread/b688ac3e31802a6/bbc44affbff385e0

But in any case, perhaps my servlet is handling things before it gets
to yours?  FWIW, I do have <load-on-startup> tags in my web.xml .

Thanks for any help,

Adam

--

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.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate