Le 15 sept. 2013 15:35, "mohan kumar Muddana" <[email protected]> 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]> wrote:
>>
>> On Sat, Sep 14, 2013 at 7:24 AM, mohan kumar Muddana
>> <[email protected]> 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].
>>
>> 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.

-- 
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