Sunday, November 28, 2010

Re: webappcreator with -maven and Eclipse: output directories don't match

If you look at Project Properties -> Google -> Web Toolkit, what is mentioned for the GWT SDK? Also, if you navigate to Window -> Show View -> Error Log, do you see any errors listed there?

On Sun, Nov 28, 2010 at 10:34 AM, PeteUK <newbarker@gmail.com> wrote:
On Nov 22, 7:41 am, Manuel Carrasco Moñino <man...@apache.org> wrote:
> When using maven in eclipse, it is better to let maven to produce the
> eclipse stuff instead of webAppCreator using the undocumented option
> -XnoEclipse, and use the google eclipse plugin to launch the app in
> dev mode:
>
> 1.-  webAppCreator -noant -maven -XnoEclipse com.example.MyApp
> 2.- You can use eitehr:
>     - If you have m2eclipse plugin already installed in eclipse,
> import the project as a maven project
>     - Otherwise, execute mvn eclipse:eclipse and import it as a
> existing eclipse project
> 3.- Install google plugin for eclipse, and mark the checkbox
>     Project -> Google -> Web Toolkit -> 'Use Google Web Toolkit'.
> 4.- Then configure the project's war folder
>     Project -> Google -> Web Application -> This project has a war
> folder -> src/main/webapp
>     unmark 'Launch an deploy from this directory', and the first time
> you launch it, select target/www

Following the above instructions, I can create an application and run
it as a GWT Web Application (which is a bonus). If I try to Debug As -
> Web Application I get problems. At debug startup Eclipse complains
that the source attachment does not contain the source for the file
URLClassPath.class. The debug session is suspended with a
FileNotFoundException. Here's the call stack from the Eclipse's Debug
window:

MyApp.html [Web Application]
 com.google.gwt.dev.DevMode at localhost:51620
 Thread [main] (Suspended (exception FileNotFoundException))
  URLClassPath$JarLoader.getJarFile(URL) line: 644
  URLClassPath$JarLoader.access$600(URLClassPath$JarLoader, URL)
line: 540
  URLClassPath$JarLoader$1.run() line: 607
  AccessController.doPrivileged(PrivilegedExceptionAction<T>) line:
not available [native method]
  URLClassPath$JarLoader.ensureOpen() line: 599
  URLClassPath$JarLoader.<init>(URL, URLStreamHandler,
HashMap<String,Loader>) line: 583
  URLClassPath$JarLoader$3.run() line: 810
  AccessController.doPrivileged(PrivilegedExceptionAction<T>) line:
not available [native method]
  URLClassPath$JarLoader.getResource(String, boolean, Set<String>)
line: 806
  URLClassPath$JarLoader.getResource(String, boolean) line: 765
  URLClassPath.getResource(String, boolean) line: 169
  URLClassLoader$1.run() line: 194
  AccessController.doPrivileged(PrivilegedExceptionAction<T>,
AccessControlContext) line: not available [native method]
  Launcher$AppClassLoader(URLClassLoader).findClass(String) line:
190
  Launcher$AppClassLoader(ClassLoader).loadClass(String, boolean)
line: 307
  Launcher$AppClassLoader.loadClass(String, boolean) line: 301
  Launcher$AppClassLoader(ClassLoader).loadClass(String) line: 248
 C:\Program Files\Java\jdk1.6.0_21\bin\javaw.exe (28 Nov 2010
15:28:32)

I have to click resume about 10 times before it'll properly start up.

I have completely wiped out my Eclipse workspace and recreated/
reimported the project and the same thing happens.

Any ideas?

Thanks,

Pete

--
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