Problem in running Jolokia agent in JBoss

classic Classic list List threaded Threaded
3 messages Options
Pallavi G S Pallavi G S
Reply | Threaded
Open this post in threaded view
|

Problem in running Jolokia agent in JBoss

I have Jolokia agent running in a war file which has to be deployed in JBoss.

The config file is as follows,
<jolokia:agent lookupConfig="false" systemPropertiesMode="never">
        <jolokia:config autoStart="true" host="127.0.0.1" port="portNum" />
    </jolokia:agent>


in Tomcat server the war file is running.

But not getting deployed in JBoss server with the below eeror.

org.springframework.web.context.ContextLoaderListener: java.lang.NoClassDefFoundError: com/sun/net/httpserver/HttpHandler

Can anyone please suggest on this
Pallavi G S Pallavi G S
Reply | Threaded
Open this post in threaded view
|

Re: Problem in running Jolokia agent in JBoss

Add the below line :

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

To module.xml in the path,

jboss\modules\system\layers\base\sun\jdk\main

The war file will get deployed.
roland roland
Reply | Threaded
Open this post in threaded view
|

Re: Problem in running Jolokia agent in JBoss

Thanks for sharing ! (and sorry that I missed the initial post)
... roland