NullPointerException when generating webservice with Apache CXF in Eclipse
<p>I am following this tutorial to create a web service in a Java web project: <a href="https://angelozerr.wordpress.com/2011/08/24/jaxwscxf_step2/" rel="nofollow noreferrer">https://angelozerr.wordpress.com/2011/08/24/jaxwscxf_step2/</a>. When I get to actually generating it with Apache CXF, it makes all the files and packages (makes two jaxws packages for some reason), but I see this error in the console:</p>

<pre><code>java2ws -cp C:\Users\mo\Documents\Workspace\NpcWS\build\classes -s C:\Users\mo\Documents\Workspace\NpcWS\.cxftmp/src -d C:\Users\mo\Documents\Workspace\NpcWS\.cxftmp/wsdl -classdir C:\Users\mo\Documents\Workspace\NpcWS\build\classes -o helloserviceimpl.wsdl -createxsdimports -verbose -frontend jaxws -databinding jaxb -wsdl -wrapperbean org.cloudlet.ws.HelloServiceImpl
java2ws - Apache CXF 3.1.6

May 26, 2016 9:18:55 AM org.apache.cxf.wsdl.service.factory.ReflectionServiceFactoryBean buildServiceFromClass
INFO: Creating Service {http://ws.clodulet.org/}HelloServiceImplService from class org.clodulet.ws.HelloServiceImpl
java.lang.NullPointerException
    at org.apache.cxf.common.util.Compiler.useJava6Compiler(Compiler.java:187)
    at org.apache.cxf.common.util.Compiler.compileFiles(Compiler.java:141)
    at org.apache.cxf.tools.java2wsdl.generator.wsdl11.BeanGenerator.generateAndCompile(BeanGenerator.java:91)
    at org.apache.cxf.tools.java2wsdl.generator.wsdl11.BeanGenerator.generate(BeanGenerator.java:58)
    at org.apache.cxf.tools.java2wsdl.generator.wsdl11.BeanGenerator.generate(BeanGenerator.java:35)
    at org.apache.cxf.tools.java2wsdl.processor.JavaToWSDLProcessor.generate(JavaToWSDLProcessor.java:156)
    at org.apache.cxf.tools.java2wsdl.processor.JavaToWSDLProcessor.process(JavaToWSDLProcessor.java:118)
    at org.apache.cxf.tools.java2ws.JavaToWSContainer.processWSDL(JavaToWSContainer.java:110)
    at org.apache.cxf.tools.java2ws.JavaToWSContainer.execute(JavaToWSContainer.java:75)
    at org.apache.cxf.tools.common.toolspec.ToolRunner.runTool(ToolRunner.java:103)
    at org.apache.cxf.tools.common.toolspec.ToolRunner.runTool(ToolRunner.java:58)
    at org.apache.cxf.tools.common.toolspec.ToolRunner.runTool(ToolRunner.java:40)
    at org.apache.cxf.tools.java2ws.JavaToWS.run(JavaToWS.java:77)
    at org.apache.cxf.tools.java2ws.JavaToWS.main(JavaToWS.java:45)
</code></pre>

<p>I was reading this: <a href="https://stackoverflow.com/questions/26034338/nullpointerexception-while-generating-web-service-with-apache-cxf">NullPointerException while generating web service with Apache CXF</a>, but my execution environment is already 1.8.</p>

<p><a href="https://i.stack.imgur.com/LOua7.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/LOua7.png" alt="enter image description here"></a></p>

<p>What am I doing wrong? Any help would be appreciated!</p>

<p>EDIT: Java class</p>

<pre><code>package org.clodulet.ws;

import javax.jws.WebService;

@WebService(targetNamespace = "http://ws.clodulet.org/", portName = "HelloServiceImplPort", serviceName = "HelloServiceImplService")
public class HelloServiceImpl 
{
    public String getVersion() {
        return "1.0";
    }

    public String hello(String str) {
        return "Hello " + str;
    }
}
</code></pre>

<p>These are the files it creates: (then the error shows up)</p>

<p><a href="https://i.stack.imgur.com/If334.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/If334.png" alt="enter image description here"></a></p>