Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-15570

Failure to deploy on WildFly caused by ClassNotFoundException: com.sun.net.httpserver.HttpHandler

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 10.8-rc-1
    • 10.7
    • Other
    • WildFly 14
    • Unknown

    Description

      12:15:24,297 INFO  [stdout] (http://localhost:8080/xwiki/bin/distribution/XWiki/Distribution?xredirect=%2Fxwiki%2Fbin%2Fview%2FMain%2F) Caused by: org.apache.velocity.exception.MethodInvocationException: Invocation of method 'url' in  class org.xwiki.rest.script.RESTScriptService threw exception java.lang.NoClassDefFoundError: com/sun/net/httpserver/HttpHandler at 125:/templates/distribution.vm[line 22, column 50]
      12:15:24,297 INFO  [stdout] (http://localhost:8080/xwiki/bin/distribution/XWiki/Distribution?xredirect=%2Fxwiki%2Fbin%2Fview%2FMain%2F) 	at org.apache.velocity.runtime.parser.node.ASTMethod.handleInvocationException(ASTMethod.java:261)
      12:15:24,297 INFO  [stdout] (http://localhost:8080/xwiki/bin/distribution/XWiki/Distribution?xredirect=%2Fxwiki%2Fbin%2Fview%2FMain%2F) 	at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:187)
      12:15:24,297 INFO  [stdout] (http://localhost:8080/xwiki/bin/distribution/XWiki/Distribution?xredirect=%2Fxwiki%2Fbin%2Fview%2FMain%2F) 	at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:280)
      12:15:24,297 INFO  [stdout] (http://localhost:8080/xwiki/bin/distribution/XWiki/Distribution?xredirect=%2Fxwiki%2Fbin%2Fview%2FMain%2F) 	at org.apache.velocity.context.ProxyVMContext.get(ProxyVMContext.java:219)
      12:15:24,297 INFO  [stdout] (http://localhost:8080/xwiki/bin/distribution/XWiki/Distribution?xredirect=%2Fxwiki%2Fbin%2Fview%2FMain%2F) 	at org.apache.velocity.runtime.parser.node.ASTReference.getVariableValue(ASTReference.java:991)
      12:15:24,297 INFO  [stdout] (http://localhost:8080/xwiki/bin/distribution/XWiki/Distribution?xredirect=%2Fxwiki%2Fbin%2Fview%2FMain%2F) 	at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:240)
      12:15:24,297 INFO  [stdout] (http://localhost:8080/xwiki/bin/distribution/XWiki/Distribution?xredirect=%2Fxwiki%2Fbin%2Fview%2FMain%2F) 	at org.apache.velocity.runtime.parser.node.ASTReference.value(ASTReference.java:567)
      12:15:24,297 INFO  [stdout] (http://localhost:8080/xwiki/bin/distribution/XWiki/Distribution?xredirect=%2Fxwiki%2Fbin%2Fview%2FMain%2F) 	at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:151)
      12:15:24,297 INFO  [stdout] (http://localhost:8080/xwiki/bin/distribution/XWiki/Distribution?xredirect=%2Fxwiki%2Fbin%2Fview%2FMain%2F) 	at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:280)
      12:15:24,298 INFO  [stdout] (http://localhost:8080/xwiki/bin/distribution/XWiki/Distribution?xredirect=%2Fxwiki%2Fbin%2Fview%2FMain%2F) 	at org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:369)
      12:15:24,298 INFO  [stdout] (http://localhost:8080/xwiki/bin/distribution/XWiki/Distribution?xredirect=%2Fxwiki%2Fbin%2Fview%2FMain%2F) 	at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72)
      12:15:24,298 INFO  [stdout] (http://localhost:8080/xwiki/bin/distribution/XWiki/Distribution?xredirect=%2Fxwiki%2Fbin%2Fview%2FMain%2F) 	at org.apache.velocity.runtime.directive.VelocimacroProxy.render(VelocimacroProxy.java:216)
      12:15:24,298 INFO  [stdout] (http://localhost:8080/xwiki/bin/distribution/XWiki/Distribution?xredirect=%2Fxwiki%2Fbin%2Fview%2FMain%2F) 	at org.apache.velocity.runtime.directive.RuntimeMacro.render(RuntimeMacro.java:311)
      12:15:24,298 INFO  [stdout] (http://localhost:8080/xwiki/bin/distribution/XWiki/Distribution?xredirect=%2Fxwiki%2Fbin%2Fview%2FMain%2F) 	at org.apache.velocity.runtime.directive.RuntimeMacro.render(RuntimeMacro.java:230)
      12:15:24,298 INFO  [stdout] (http://localhost:8080/xwiki/bin/distribution/XWiki/Distribution?xredirect=%2Fxwiki%2Fbin%2Fview%2FMain%2F) 	at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:207)
      12:15:24,298 INFO  [stdout] (http://localhost:8080/xwiki/bin/distribution/XWiki/Distribution?xredirect=%2Fxwiki%2Fbin%2Fview%2FMain%2F) 	at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72)
      12:15:24,298 INFO  [stdout] (http://localhost:8080/xwiki/bin/distribution/XWiki/Distribution?xredirect=%2Fxwiki%2Fbin%2Fview%2FMain%2F) 	at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:87)
      12:15:24,298 INFO  [stdout] (http://localhost:8080/xwiki/bin/distribution/XWiki/Distribution?xredirect=%2Fxwiki%2Fbin%2Fview%2FMain%2F) 	at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:342)
      12:15:24,298 INFO  [stdout] (http://localhost:8080/xwiki/bin/distribution/XWiki/Distribution?xredirect=%2Fxwiki%2Fbin%2Fview%2FMain%2F) 	at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluateInternal(DefaultVelocityEngine.java:259)
      12:15:24,299 INFO  [stdout] (http://localhost:8080/xwiki/bin/distribution/XWiki/Distribution?xredirect=%2Fxwiki%2Fbin%2Fview%2FMain%2F) 	at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:222)
      12:15:24,299 INFO  [stdout] (http://localhost:8080/xwiki/bin/distribution/XWiki/Distribution?xredirect=%2Fxwiki%2Fbin%2Fview%2FMain%2F) 	... 118 common frames omitted
      12:15:24,299 INFO  [stdout] (http://localhost:8080/xwiki/bin/distribution/XWiki/Distribution?xredirect=%2Fxwiki%2Fbin%2Fview%2FMain%2F) Caused by: java.lang.NoClassDefFoundError: com/sun/net/httpserver/HttpHandler
      12:15:24,299 INFO  [stdout] (http://localhost:8080/xwiki/bin/distribution/XWiki/Distribution?xredirect=%2Fxwiki%2Fbin%2Fview%2FMain%2F) 	at org.restlet.engine.Engine.registerDefaultConnectors(Engine.java:841)
      12:15:24,299 INFO  [stdout] (http://localhost:8080/xwiki/bin/distribution/XWiki/Distribution?xredirect=%2Fxwiki%2Fbin%2Fview%2FMain%2F) 	at org.restlet.engine.Engine.discoverConnectors(Engine.java:658)
      12:15:24,299 INFO  [stdout] (http://localhost:8080/xwiki/bin/distribution/XWiki/Distribution?xredirect=%2Fxwiki%2Fbin%2Fview%2FMain%2F) 	at org.restlet.engine.Engine.<init>(Engine.java:491)
      12:15:24,299 INFO  [stdout] (http://localhost:8080/xwiki/bin/distribution/XWiki/Distribution?xredirect=%2Fxwiki%2Fbin%2Fview%2FMain%2F) 	at org.restlet.engine.Engine.register(Engine.java:382)
      12:15:24,299 INFO  [stdout] (http://localhost:8080/xwiki/bin/distribution/XWiki/Distribution?xredirect=%2Fxwiki%2Fbin%2Fview%2FMain%2F) 	at org.restlet.engine.Engine.register(Engine.java:368)
      12:15:24,300 INFO  [stdout] (http://localhost:8080/xwiki/bin/distribution/XWiki/Distribution?xredirect=%2Fxwiki%2Fbin%2Fview%2FMain%2F) 	at org.restlet.engine.Engine.getInstance(Engine.java:252)
      12:15:24,300 INFO  [stdout] (http://localhost:8080/xwiki/bin/distribution/XWiki/Distribution?xredirect=%2Fxwiki%2Fbin%2Fview%2FMain%2F) 	at org.restlet.engine.Engine.getLogger(Engine.java:316)
      12:15:24,300 INFO  [stdout] (http://localhost:8080/xwiki/bin/distribution/XWiki/Distribution?xredirect=%2Fxwiki%2Fbin%2Fview%2FMain%2F) 	at org.restlet.Context.getCurrentLogger(Context.java:81)
      12:15:24,300 INFO  [stdout] (http://localhost:8080/xwiki/bin/distribution/XWiki/Distribution?xredirect=%2Fxwiki%2Fbin%2Fview%2FMain%2F) 	at org.restlet.routing.Template.<init>(Template.java:328)
      12:15:24,300 INFO  [stdout] (http://localhost:8080/xwiki/bin/distribution/XWiki/Distribution?xredirect=%2Fxwiki%2Fbin%2Fview%2FMain%2F) 	at org.restlet.routing.Template.<init>(Template.java:302)
      12:15:24,300 INFO  [stdout] (http://localhost:8080/xwiki/bin/distribution/XWiki/Distribution?xredirect=%2Fxwiki%2Fbin%2Fview%2FMain%2F) 	at org.restlet.routing.Template.<init>(Template.java:268)
      12:15:24,300 INFO  [stdout] (http://localhost:8080/xwiki/bin/distribution/XWiki/Distribution?xredirect=%2Fxwiki%2Fbin%2Fview%2FMain%2F) 	at org.restlet.ext.jaxrs.AbstractUriBuilder.buildFromEncoded(AbstractUriBuilder.java:211)
      12:15:24,300 INFO  [stdout] (http://localhost:8080/xwiki/bin/distribution/XWiki/Distribution?xredirect=%2Fxwiki%2Fbin%2Fview%2FMain%2F) 	at org.xwiki.rest.internal.Utils.createURI(Utils.java:380)
      12:15:24,301 INFO  [stdout] (http://localhost:8080/xwiki/bin/distribution/XWiki/Distribution?xredirect=%2Fxwiki%2Fbin%2Fview%2FMain%2F) 	at org.xwiki.rest.internal.url.resources.DocumentRestURLGenerator.getURL(DocumentRestURLGenerator.java:57)
      12:15:24,301 INFO  [stdout] (http://localhost:8080/xwiki/bin/distribution/XWiki/Distribution?xredirect=%2Fxwiki%2Fbin%2Fview%2FMain%2F) 	at org.xwiki.rest.internal.url.resources.DocumentRestURLGenerator.getURL(DocumentRestURLGenerator.java:39)
      12:15:24,301 INFO  [stdout] (http://localhost:8080/xwiki/bin/distribution/XWiki/Distribution?xredirect=%2Fxwiki%2Fbin%2Fview%2FMain%2F) 	at org.xwiki.rest.internal.url.DefaultRestURLGenerator.getURL(DefaultRestURLGenerator.java:55)
      12:15:24,301 INFO  [stdout] (http://localhost:8080/xwiki/bin/distribution/XWiki/Distribution?xredirect=%2Fxwiki%2Fbin%2Fview%2FMain%2F) 	at org.xwiki.rest.script.RESTScriptService.url(RESTScriptService.java:92)
      12:15:24,301 INFO  [stdout] (http://localhost:8080/xwiki/bin/distribution/XWiki/Distribution?xredirect=%2Fxwiki%2Fbin%2Fview%2FMain%2F) 	at org.xwiki.rest.script.RESTScriptService.url(RESTScriptService.java:73)
      12:15:24,302 INFO  [stdout] (http://localhost:8080/xwiki/bin/distribution/XWiki/Distribution?xredirect=%2Fxwiki%2Fbin%2Fview%2FMain%2F) 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      12:15:24,302 INFO  [stdout] (http://localhost:8080/xwiki/bin/distribution/XWiki/Distribution?xredirect=%2Fxwiki%2Fbin%2Fview%2FMain%2F) 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      12:15:24,302 INFO  [stdout] (http://localhost:8080/xwiki/bin/distribution/XWiki/Distribution?xredirect=%2Fxwiki%2Fbin%2Fview%2FMain%2F) 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      12:15:24,302 INFO  [stdout] (http://localhost:8080/xwiki/bin/distribution/XWiki/Distribution?xredirect=%2Fxwiki%2Fbin%2Fview%2FMain%2F) 	at java.lang.reflect.Method.invoke(Method.java:498)
      12:15:24,303 INFO  [stdout] (http://localhost:8080/xwiki/bin/distribution/XWiki/Distribution?xredirect=%2Fxwiki%2Fbin%2Fview%2FMain%2F) 	at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:395)
      12:15:24,303 INFO  [stdout] (http://localhost:8080/xwiki/bin/distribution/XWiki/Distribution?xredirect=%2Fxwiki%2Fbin%2Fview%2FMain%2F) 	at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:384)
      12:15:24,303 INFO  [stdout] (http://localhost:8080/xwiki/bin/distribution/XWiki/Distribution?xredirect=%2Fxwiki%2Fbin%2Fview%2FMain%2F) 	at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:173)
      12:15:24,303 INFO  [stdout] (http://localhost:8080/xwiki/bin/distribution/XWiki/Distribution?xredirect=%2Fxwiki%2Fbin%2Fview%2FMain%2F) 	... 136 common frames omitted
      12:15:24,303 INFO  [stdout] (http://localhost:8080/xwiki/bin/distribution/XWiki/Distribution?xredirect=%2Fxwiki%2Fbin%2Fview%2FMain%2F) Caused by: java.lang.ClassNotFoundException: com.sun.net.httpserver.HttpHandler from [Module "deployment.xwiki.war" from Service Module Loader]
      12:15:24,303 INFO  [stdout] (http://localhost:8080/xwiki/bin/distribution/XWiki/Distribution?xredirect=%2Fxwiki%2Fbin%2Fview%2FMain%2F) 	at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:255)
      12:15:24,303 INFO  [stdout] (http://localhost:8080/xwiki/bin/distribution/XWiki/Distribution?xredirect=%2Fxwiki%2Fbin%2Fview%2FMain%2F) 	at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:410)
      12:15:24,303 INFO  [stdout] (http://localhost:8080/xwiki/bin/distribution/XWiki/Distribution?xredirect=%2Fxwiki%2Fbin%2Fview%2FMain%2F) 	at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398)
      12:15:24,303 INFO  [stdout] (http://localhost:8080/xwiki/bin/distribution/XWiki/Distribution?xredirect=%2Fxwiki%2Fbin%2Fview%2FMain%2F) 	at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:116)
      12:15:24,303 INFO  [stdout] (http://localhost:8080/xwiki/bin/distribution/XWiki/Distribution?xredirect=%2Fxwiki%2Fbin%2Fview%2FMain%2F) 	... 161 common frames omitted
      

      Attachments

        Issue Links

          Activity

            People

              vmassol Vincent Massol
              vmassol Vincent Massol
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: