2017  Kodetalk | Feedback | Privacy Policy | Terms | About
userimage

java.lang.NoClassDefFoundError: com/sun/net/httpserver/HttpHandler after added neo4j-jdbc driver version 2.3.2 using maven

13:58:10,851 ERROR [stderr] (default task-16) java.util.concurrent.ExecutionException: java.lang.NoClassDefFoundError: com/sun/net/httpserver/HttpHandler
13:58:10,854 ERROR [stderr] (default task-16)   at java.util.concurrent.ForkJoinTask.get(ForkJoinTask.java:1006)


i am using wildfly server and i did try to add the neo4j-jdbc driver version 2.3.2 using maven. But every time i run am getting exception like. What should i do. Thanks in advance.

userimage

To resolve this issue you can try the below method:


go the path of wildfly server and find the path as below:

<server>/modules/system/layers/base/sun/jdk/main


Once you reach the path you will get a file named module.xml


in that module.xml file add a line as below:

<path name="com/sun/net/httpserver"/>


restart the server, your issue will be resolved.

Answer is