For information, it's not classes.jar from the JRE.
It's WEB-INF/lib/classes.jar and they are now created in Jenkins for each 
plugin, to be remoting friendly.
Since 
https://github.com/jenkinsci/jenkins/commit/f7330d7a158eff6705706b1f812993a9b918c351

Emeric

Le lundi 16 septembre 2013 08:44:05 UTC+2, Baptiste Mathus a écrit :
>
>
> Le 15 sept. 2013 15:35, "mohan kumar Muddana" 
> <[email protected]<javascript:>> 
> a écrit :
> >
> > Hi Jesse thanks for your support. 
> > There is no dependency mentioned in pom file.
> >
> > Initially we got exception as "Failed to scout 
> com.mobilecloud.project.MobileCloudProject" 
> > java.lang.InstantiationException: 
> file:/N:/Jenkins/plugins/MobileCloudPlugin/WEB-INF/classes/META-INF/annotations/hudson.Extension
>  
> might need to be rebuilt: java.lang.ClassNotFoundException: 
> com.mobilecloud.project.MobileCloudProject
> >
> > After we did package the hpi using -DskipTests package using maven 
> command this error has gone.
>
> I would personally stop there first. You should better fix your tests 
> before you try deploying your plugin. Moreover, who knows, the tests 
> currently failing might already be showing the cause of your issue.
>
> Cheers
> >
> > Now it gives (I guess it is on a different machine) 
> > WARNING: Failed to load com.mobilecloud.project.MobileCloudProject
> > java.lang.InstantiationException: 
> C:\Users\.jenkins\plugins\mobilecloud\WEB-INF\lib\classes.jar might need to 
> be rebuilt:    java.lang.ClassNotFoundException: 
> com.mobilecloud.project.MobileCloudProject
> > at net.java.sezpoz.IndexItem.element(IndexItem.java:144)
> >
> > Jesse: Any guesses.
> >
> > We are building package using maven command line. Do you think it is 
> something to do with how we are building the plugin.
> > Problem is it run perfectly on our machines (both Windows and Ubuntu) 
> and it is on our client machine which gives these exceptions, which is also 
> becoming difficult for us to understand what exactly is happening as we 
> don't have access to it. 
> >
> > Thanks
> > Mohan
> >
> >
> >
> > On Sun, Sep 15, 2013 at 5:43 PM, Jesse Glick 
> > <[email protected]<javascript:>> 
> wrote:
> >>
> >> On Sat, Sep 14, 2013 at 7:24 AM, mohan kumar Muddana
> >> <[email protected] <javascript:>> wrote:
> >> > If Jenkins server is started with war, classes.jar is present in the 
> lib folder of the plugin.
> >>
> >> classes.jar? From the JRE? Bizarre. Did you perhaps declare a
> >> dependency on classes.jar in your POM (for some reason I cannot guess)
> >> and fail to mark it <scope>provided</scope>?
> >>
> >> --
> >> You received this message because you are subscribed to a topic in the 
> Google Groups "Jenkins Developers" group.
> >> To unsubscribe from this topic, visit 
> https://groups.google.com/d/topic/jenkinsci-dev/za3PR_2KFTo/unsubscribe.
> >> To unsubscribe from this group and all its topics, send an email to 
> [email protected] <javascript:>.
> >>
> >> For more options, visit https://groups.google.com/groups/opt_out.
> >
> >
> > -- 
> > You received this message because you are subscribed to the Google 
> Groups "Jenkins Developers" group.
> > To unsubscribe from this group and stop receiving emails from it, send 
> an email to [email protected] <javascript:>.
> > For more options, visit https://groups.google.com/groups/opt_out.
>  

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to