Just to follow up on this ... this seems to be the eclipse plugin,
I've managed to get host mode running from the command line and it
works.

The weird thing is, it DOES work with a small war project that I
built, deployed on jboss and ran the hosted mode -noserver option from
eclipse via the plugin. Our more complicated maven built war (part of
a larger ear) doesn't and it seems to classpath issue but I don't know
how to debug the eclipse plugin.

I've added the command line startup command into my eclipse run so I
can debug but it would be better if the plugin worked :(

I did notice that the usage for plugin was different from commandline
options so there could well be a bug here (i.e. theres a possiblity
I'm not going mad). GWTShell vs HostedMode ??

Unknown argument: -blah
Google Web Toolkit 1.7.0
GWTShell [-noserver] [-port port-number | "auto"] [-whitelist
whitelist-string] [-blacklist blacklist-string] [-logLevel level] [-
gen dir] [-style style] [-ea] [-out dir] [url]

where
  -noserver   Prevents the embedded web server from running
  -port       Specifies the TCP port for the embedded web server
(defaults to 8888)
  -whitelist  Allows the user to browse URLs that match the specified
regexes (comma or space separated)
  -blacklist  Prevents the user browsing URLs that match the specified
regexes (comma or space separated)
  -logLevel   The level of logging detail: ERROR, WARN, INFO, TRACE,
DEBUG, SPAM, or ALL
  -gen        The directory into which generated files will be written
for review
  -style      Script output style: OBF[USCATED], PRETTY, or DETAILED
(defaults to OBF)
  -ea         Debugging: causes the compiled output to check assert
statements.
  -out        The directory to write output files into (defaults to
current)
and
  url         Automatically launches the specified URL

versus

java -cp gwt-dev-<your platform here>.jar
com.google.gwt.dev.HostedMode
Missing required argument 'module[s]'
Google Web Toolkit 1.7.0
HostedMode [-noserver] [-port port-number | "auto"] [-whitelist
whitelist-string
] [-blacklist blacklist-string] [-logLevel level] [-gen dir] [-style
style] [-ea
] [-server servletContainerLauncher] [-startupUrl url] [-war dir] [-
extra dir] [
-workDir dir] [-localWorkers count] module[s]

where
  -noserver      Prevents the embedded web server from running
  -port          Specifies the TCP port for the embedded web server
(defaults to 8888)
  -whitelist     Allows the user to browse URLs that match the
specified regexes (comma or space separated)
  -blacklist     Prevents the user browsing URLs that match the
specified regexes (comma or space separated)
  -logLevel      The level of logging detail: ERROR, WARN, INFO,
TRACE, DEBUG, SPAM, or ALL
  -gen           The directory into which generated files will be
written for review
  -style         Script output style: OBF[USCATED], PRETTY, or
DETAILED (defaults to OBF)
  -ea            Debugging: causes the compiled output to check assert
statements.
  -server        Specifies a different embedded web server to run
(must implement ServletContainerLauncher)
  -startupUrl    Automatically launches the specified URL
  -war           The war directory to write output files into
(defaults to war)
  -extra         The directory into which extra, non-deployed files
will be written
  -workDir       The compiler work directory (must be writeable;
defaults to a system temp dir)
  -localWorkers  Specifies the number of local workers to use when
compiling permutations
and
  module[s]      Specifies the name(s) of the module(s) to host


On Oct 7, 11:02 am, mike_mac <[email protected]> wrote:
> Hi ...
>    I'm trying to get hosted mode debugging running using Jboss as the
> server instead of tomcat and I can't get it working ...
>
> I've followed the instructions here 
> ...http://code.google.com/webtoolkit/doc/1.6/FAQ_DebuggingAndCompiling.h...
>
> But when I try to run the google web tool kit development shell with
> eclipse I'm getting
> [ERROR] Unable to find 'main.gwt.xml' on your classpath; could be a
> typo, or maybe you forgot to include a classpath entry for source?
>
> I've specified Main as my entry point module in the gwt tab of the
> launch configuration. Yes I did notice the case difference in the
> name, the module definition was changed to main with
> <module rename-to="main"> and the url was <context-root>/main/
> main.html ...
> I've tried renamining the gwt.xml to main.gwt.xml but that had no
> effect.
>
> The root src dir with the gwt.xml is on the classpath (in the
> classpath tab).
>
> I've tried explcitly setting the directory with the Main.gwt.xml into
> the classpath which does indeed let eclipse/gwt find the xml file but
> then I get lots of errors along the lines of
>
>  The declared package
> "com.company.product.web.client.uicomponent.menu" does not match the
> expected package "client.uicomponent.menu"
>
> I'm stumped ... could it be the rename-to="main" thats confusing it ?
> anyone with any ideas ?
>
> I'm able to run some sample projects in the embedded server no problem
> so I can only think that its something to do with running in -noserver
> option but I'm lost.
>
> I'm using "Google App Engine for Java 1.2.5 SDK Bundle for Eclipse
> 3.5" with GWT 1.7
>
> Everything compiles with Maven and runs ok on JBoss ...
--~--~---------~--~----~------------~-------~--~----~
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