newer versions of jenkins will use the class and method name if you don't
include the correct key-values in Messages.properties.

Just add the correct ones in to the Messages.properties for the same
package as your class with the initializers

the key should be ClassName.MethodName

On 25 April 2012 09:29, eraonel <[email protected]> wrote:

> Hi,
>
> I use @Initializer for my static methods to be loaded at startup. When I
> run
> it I get the following error message:
>
> Apr 25, 2012 10:16:05 AM hudson.init.InitializerFinder getDisplayNameOf
> WARNING: Failed to load jenkins.plugins.parse.Messages for public static
> void jenkins.plugins.parse.TestNGParser.init()
> java.lang.ClassNotFoundException: jenkins.plugins.parse.Messages
>        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 sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
>        at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
>        at
> hudson.init.InitializerFinder.getDisplayNameOf(InitializerFinder.java:90)
>        at
>
> hudson.init.InitializerFinder$TaskImpl.getDisplayName(InitializerFinder.java:166)
>        at hudson.model.Hudson$5.onTaskCompleted(Hudson.java:774)
>        at
>
> org.jvnet.hudson.reactor.ReactorListener$Aggregator.onTaskCompleted(ReactorListener.java:71)
>        at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:188)
>        at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:94)
>        at
>
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
>        at
>
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
>        at java.lang.Thread.run(Thread.java:662)
>
> This seems to be an old problem that has been there before:
>
> http://issues.hudson-ci.org/browse/HUDSON-5433
>
> Do I compile my plugin against an too old version of jenkins?
>
> br,
>
> //mike
>
> Here is my pom.xml
>
> <project xmlns="http://maven.apache.org/POM/4.0.0";
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
> http://maven.apache.org/maven-v4_0_0.xsd";>
>  <modelVersion>4.0.0</modelVersion>
>  <parent>
>    <groupId>org.jenkins-ci.plugins</groupId>
>    <artifactId>plugin</artifactId>
>    <version>1.403</version>
>  </parent>
>
>  <groupId>se.ericsson.wcdma.jenkins.plugins</groupId>
>  <artifactId>qrank</artifactId>
>  <name>qrank</name>
>  <version>1.0-SNAPSHOT</version>
>  <packaging>hpi</packaging>
>
>
>  <repositories>
>    <repository>
>      <id>m.g.o-public</id>
>      <url>http://maven.glassfish.org/content/groups/public/</url>
>    </repository>
>  </repositories>
>
>  <pluginRepositories>
>    <pluginRepository>
>      <id>m.g.o-public</id>
>      <url>http://maven.glassfish.org/content/groups/public/</url>
>    </pluginRepository>
>  </pluginRepositories>
> </project>
>
>
> --
> View this message in context:
> http://jenkins.361315.n4.nabble.com/java-lang-ClassNotFoundException-jenkins-plugins-parse-Messages-tp4585929p4585929.html
> Sent from the Jenkins dev mailing list archive at Nabble.com.
>

Reply via email to