Make sure you have an index.jelly giving the plugin description

On Tue 6 Jun 2017 at 19:35, Slide <slide.o....@gmail.com> wrote:

> I haven't seen that issue before, can you post the link to your source
> code so people can take a look?
>
> On Tue, Jun 6, 2017 at 11:29 AM Simon M <simon.d.matth...@gmail.com>
> wrote:
>
>> Anyone? Any ideas?
>>
>>
>> On Monday, June 5, 2017 at 5:45:51 PM UTC-7, Simon M wrote:
>>>
>>> I am in the process of writing a custom parser to work with the Warnings
>>> plugin.
>>>
>>> For now, I have taken the second route described in the documentation:
>>> "Writing a new standalone parser that will be deployed in a new plug-in". I
>>> have written the appropriate code to extend RegexpLineParser. I may come
>>> back to that later, but for now, I am working with extending
>>> RegexpLineParser.
>>>
>>> This now compiles, but fails during test. I have not defined any tests:
>>> I assume it's a default test that is run. Note that this is a different
>>> approach to what I was trying to do last week.
>>>
>>> I would appreciate advice on what I need to do to resolve this.
>>>
>>>
>>> The message is:
>>> Running InjectedTest
>>> Tests run: 4, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 11.704
>>> sec <<< FAILURE! - in InjectedTest
>>> org.jvnet.hudson.test.JellyTestSuiteBuilder$JellyTestSuite(org.jvnet.hudson.test.junit.FailedTest)
>>> Time elapsed: 0.016 sec  <<< ERROR!
>>> java.lang.NoClassDefFoundError: org/apache/http/config/Lookup
>>>     at
>>> com.gargoylesoftware.htmlunit.WebClient.createWebConnection(WebClient.java:1956)
>>>     at com.gargoylesoftware.htmlunit.WebClient.init(WebClient.java:236)
>>>     at com.gargoylesoftware.htmlunit.WebClient.<init>(WebClient.java:211)
>>>     at
>>> org.jvnet.hudson.test.HudsonTestCase$WebClient.<init>(HudsonTestCase.java:1486)
>>>     at
>>> org.jvnet.hudson.test.HudsonTestCase.createWebClient(HudsonTestCase.java:1473)
>>>     at
>>> org.jvnet.hudson.test.HudsonTestCase.executeOnServer(HudsonTestCase.java:1458)
>>>     at
>>> org.jvnet.hudson.test.JellyTestSuiteBuilder$JellyTestSuite.runGroupedTests(JellyTestSuiteBuilder.java:157)
>>>     at org.jvnet.hudson.test.junit.GroupedTest.run(GroupedTest.java:51)
>>>     at junit.framework.TestSuite.runTest(TestSuite.java:252)
>>>     at junit.framework.TestSuite.run(TestSuite.java:247)
>>>     at
>>> org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:86)
>>>     at
>>> org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:283)
>>>     at
>>> org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:173)
>>>     at
>>> org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
>>>     at
>>> org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:128)
>>>     at
>>> org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:203)
>>>     at
>>> org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:155)
>>>     at
>>> org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
>>> Caused by: java.lang.ClassNotFoundException:
>>> org.apache.http.config.Lookup
>>>     at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
>>>     at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
>>>     at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
>>>     at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
>>>     at
>>> com.gargoylesoftware.htmlunit.WebClient.createWebConnection(WebClient.java:1956)
>>>     at com.gargoylesoftware.htmlunit.WebClient.init(WebClient.java:236)
>>>     at com.gargoylesoftware.htmlunit.WebClient.<init>(WebClient.java:211)
>>>     at
>>> org.jvnet.hudson.test.HudsonTestCase$WebClient.<init>(HudsonTestCase.java:1486)
>>>     at
>>> org.jvnet.hudson.test.HudsonTestCase.createWebClient(HudsonTestCase.java:1473)
>>>     at
>>> org.jvnet.hudson.test.HudsonTestCase.executeOnServer(HudsonTestCase.java:1458)
>>>     at
>>> org.jvnet.hudson.test.JellyTestSuiteBuilder$JellyTestSuite.runGroupedTests(JellyTestSuiteBuilder.java:157)
>>>     at org.jvnet.hudson.test.junit.GroupedTest.run(GroupedTest.java:51)
>>>     at junit.framework.TestSuite.runTest(TestSuite.java:252)
>>>     at junit.framework.TestSuite.run(TestSuite.java:247)
>>>     at
>>> org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:86)
>>>     at
>>> org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:283)
>>>     at
>>> org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:173)
>>>     at
>>> org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
>>>     at
>>> org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:128)
>>>     at
>>> org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:203)
>>>     at
>>> org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:155)
>>>     at
>>> org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
>>>
>>>
>>> Results :
>>>
>>> Tests in error:
>>>   FailedTest.org.jvnet.hudson.test.JellyTestSuiteBuilder$JellyTestSuite
>>> ยป NoClassDefFound
>>>
>>> Simon
>>>
>>> --
>> You received this message because you are subscribed to the Google Groups
>> "Jenkins Users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to jenkinsci-users+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/jenkinsci-users/14d5431e-a764-4572-8670-2492a4115f97%40googlegroups.com
>> <https://groups.google.com/d/msgid/jenkinsci-users/14d5431e-a764-4572-8670-2492a4115f97%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
> --
> You received this message because you are subscribed to the Google Groups
> "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to jenkinsci-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/CAPiUgVdouA5YKsXH1yDj-o38htURQ9doCn0qRjvdHfa22TXBSA%40mail.gmail.com
> <https://groups.google.com/d/msgid/jenkinsci-users/CAPiUgVdouA5YKsXH1yDj-o38htURQ9doCn0qRjvdHfa22TXBSA%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>
-- 
Sent from my phone

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CA%2BnPnMzdhKuXnioWSUROwspX-zUPHbpiKKH2%3D5rjFrp2e0OmKA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to