Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Debug as" -> Web Application (Dev or Superdev) gives error. #59

Closed
slavap opened this issue May 12, 2015 · 8 comments
Closed

"Debug as" -> Web Application (Dev or Superdev) gives error. #59

slavap opened this issue May 12, 2015 · 8 comments

Comments

@slavap
Copy link

slavap commented May 12, 2015

Error: Could not find any host pages in project myProject1.

I can add debug configuration manually, then it works just fine.

Another strange thing that main class is substituted as com.google.gwt.dev.GWTShell, though it should be com.google.gwt.dev.DevMode

@branflake2267
Copy link
Contributor

Thanks for reporting and testing. Could you provide the steps you used to produce that or what are the steps I could do to replicate that?

@branflake2267
Copy link
Contributor

Could you provide the project that I could use as a test case?

@slavap
Copy link
Author

slavap commented May 12, 2015

It's not easy, because my current projects are not open source :-(
But I've found the one, which can be used to reproduce this problem.

  1. I'm using the latest Eclipse STS 3.6.4 based on Luna 4.4.2 (just FYI, don't think it's so important).
  2. Clone git: https://github.com/nippur72/Dart.RayTracerDemo.git
  3. Import project to Eclipse (you can safely edit 2.6.1 to 2.7.0 in pom.xml)
  4. GWT Compile.
  5. Right click on javaraytracerdemo -> Debug As -> Web Application (any choice Dev or Superdev)
  6. Error: Could not find any host pages in project javaraytracerdemo.

To workaround the problem:
7. Debug Configuration -> Web Application (right click) -> New
8. Main class is substituted as com.google.gwt.dev.GWTShell, fix it as com.google.gwt.dev.DevMode
9. Also manually add to debug configuration -> Arguments the following: -startupUrl gwt_raytracerdemo.html
Also it could be needed to fix -war parameter there, for me it's c:\user\Documents\myworkspace\Dart.RayTracerDemo\JavaGWT.RayTracerDemo\target\javaraytracerdemo-1.0-SNAPSHOT\WEB-INF\classes

Now you are able to run this project.

@branflake2267
Copy link
Contributor

Thank you for working on that. I'll take a look and see if I can squash soon.

@branflake2267 branflake2267 added this to the GWT Plugin 1.0 milestone May 12, 2015
@slavap
Copy link
Author

slavap commented May 12, 2015

Thank you for taking care of GPE plugin, it was kind of slow maintained before you, so I'm really happy someone started to pay attention to it, it's very important part of GWT.

@branflake2267
Copy link
Contributor

There are two issues here.

  1. The pom.xml gwt-maven-plugin is missing the <module/> definition.
  2. The module is in src/main/resources which is also issue 66, where something is not adding this to the classpath.
<modules>
  <module>io.github.timeu.javagwtraytracerdemo.GWTRayTracerDemo</module>
</modules>

@branflake2267
Copy link
Contributor

M2e default configuration for resources directory is to exclude it from the classpath, which creates a problem when the compiler is activated.

screen shot 2015-05-18 at 9 03 24 pm

@branflake2267
Copy link
Contributor

I'm going to close this bug as duplicate of Issue 66.

#66

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants