i have written my own plugin and i ´ m trying to establish a connection
from Jenkins to my JBoss-Server and i have this Error Message:
org.nabucco.testautomation.mgmt.launcher.LauncherException: Could not
connect to Server
at
org.nabucco.testautomation.mgmt.launcher.RemoteTestConfigurationLauncher.<init>(RemoteTestConfigurationLauncher.java:191)
at
org.nabucco.testautomation.mgmt.launcher.TestautomationLauncher.execute(TestautomationLauncher.java:103)
at
org.nabucco.testautomation.jenkins.plugin.TestautomationBuilder.perform(TestautomationBuilder.java:204)
at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19)
at
hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:703)
at hudson.model.Build$RunnerImpl.build(Build.java:178)
at hudson.model.Build$RunnerImpl.doRun(Build.java:139)
at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:473)
at hudson.model.Run.run(Run.java:1410)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
at hudson.model.ResourceController.execute(ResourceController.java:88)
at hudson.model.Executor.run(Executor.java:238)
Caused by:
org.nabucco.framework.base.facade.component.connection.ConnectionException:
Error creating JBoss connection.
at
org.nabucco.framework.base.facade.component.connection.JBossConnection.initContext(JBossConnection.java:57)
at
org.nabucco.framework.base.facade.component.connection.Connection.<init>(Connection.java:58)
at
org.nabucco.framework.base.facade.component.connection.JBossConnection.<init>(JBossConnection.java:41)
at
org.nabucco.framework.base.facade.component.connection.ConnectionFactory.createConnection(ConnectionFactory.java:105)
at
org.nabucco.testautomation.mgmt.launcher.RemoteTestConfigurationLauncher.<init>(RemoteTestConfigurationLauncher.java:171)
... 11 more
Caused by: javax.naming.NoInitialContextException: Cannot instantiate
class: org.jnp.interfaces.NamingContextFactory
at
javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:657)
at
javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:288)
at javax.naming.InitialContext.init(InitialContext.java:223)
at javax.naming.InitialContext.<init>(InitialContext.java:197)
at
org.nabucco.framework.base.facade.component.connection.JBossConnection.initContext(JBossConnection.java:55)
... 15 more
Caused by: java.lang.ClassNotFoundException:
org.jnp.interfaces.NamingContextFactory
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
at
winstone.classLoader.WebappClassLoader.loadClass(WebappClassLoader.java:83)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:247)
at
com.sun.naming.internal.VersionHelper12.loadClass(VersionHelper12.java:46)
at
javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:654)
... 19 more
i Have the put the jnp-client.jar in the lib-Folder, but it doesn´t
recognise it.
i am using:
- jenkins 1.456
- JBoss 5.1.0.GA
Can somebody help me?
Does somebody know how i can let jenkins recognise my jnp--client.jar?
or does it give another way to solve this Problem?
Thanks,
Gil