Gwt debug mode error when changing source output folder-Collection of common programming errors
I want to change the standard gwt war output directory to my existing target directory ( it looks like by default it is src/main/webapp where i also have the sources). For that i changed the the source output folder in project properties -> java build path to degx/target/degx-0.0.1-SNAPSHOT/WEB-INF/classes . But i got nullpointerexception
[ERROR] [degx] Unable to load module entry point class consi.degx.client.Application (see associated exception for details)
java.lang.NullPointerException: null
at consi.degx.client.Application.initialize(Application.java:159)
at consi.degx.client.Application.onModuleLoad(Application.java:153)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:406)
at com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:200)
at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:526)
at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:364)
at java.lang.Thread.run(Thread.java:662)
I also get this error in eclipse : Description Resource Path Location Type The output directory for the project should be set to /degx/src/main/webapp/WEB-INF/classes degx Unknown Google Web App Problem .
But the whole idea is to have the GPE use my already created war target directory using maven. So setting the output directoy to /degx/src/main/webapp/WEB-INF/classes would make GPE not use the directory i want
EDIT1: And i notice that once i set the source output directory to degx/target/degx-0.0.1-SNAPSHOT/WEB-INF/classes , the degx/target/degx-0.0.1-SNAPSHOT/WEB-INF/classes dissappears in project explorer. It only reappears if i change the setting for output source back to its default /degx/src/main/webapp/WEB-INF/classes folder .
Originally posted 2013-11-09 23:34:12.