Tell me more ×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

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 .

share|improve this question
Fixed it. The null pointer exception was because of one of my functions...i don't know why that exception was not thrown before, when i had the default source output path set.. probably unrelated – osh 17 hours ago

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.