Sounds like a class loading issue, since we do bundle the slf4j jar. You may
be lucky by moving this jar to the library of your container or by
restricting the classpath of hibernatetool.
Changing the runtime of Artifactory won't help, since if I understand
correctly, this happens in the Jenkins JVM which is different to the
Artifactory JVM.

On Mon, Sep 12, 2011 at 9:25 PM, jm_in_pgh <[email protected]> wrote:

> Hi, I've had issues with publishing large files to Artifactory using Ivy on
> a Jenkins system. Acting on Yoav's advice 
> here<http://forums.jfrog.org/IOException-error-writing-to-server-tp6345612p6345774.html>I
>  deployed the Jenkins Artifactory plugin, which is dependent on the Jenkins
> Ivy plugin <https://wiki.jenkins-ci.org/display/JENKINS/Ivy+Plugin>. Now I
> am seeing problems related to this. Whenever I enable this plugin (simply by
> checking the "Ant/Ivy-Artifactory Integration" option in the "Build
> Environment" section), I begin to get the following error message in one
> particular build: [hibernatetool] Executing Hibernate Tool with a
> Hibernate Annotation/EJB3 Configuration [hibernatetool] 1. task: hbm2doc
> (Generates html schema documentation) [hibernatetool] SLF4J: Failed to load
> class "org.slf4j.impl.StaticLoggerBinder". [hibernatetool] SLF4J: See
> http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
> [hibernatetool] An exception occurred while running exporter #2:hbm2doc
> (Generates html schema documentation) [hibernatetool] To get the full stack
> trace run ant with -verbose [hibernatetool] Problems in creating a
> AnnotationConfiguration. Have you remembered to add it to the classpath ?
> [hibernatetool] java.lang.NoClassDefFoundError:
> org/slf4j/impl/StaticLoggerBinder [hibernatetool]
> java.lang.ClassNotFoundException: org.slf4j.impl.StaticLoggerBinder
> [hibernatetool] A class were not found in the classpath of the Ant task.
> [hibernatetool] Ensure that the classpath contains the classes needed for
> Hibernate and your code are in the classpath. When I uncheck the option,
> the issue disappears. I have checked that the appropriate JARs are in the
> path (which we already know they must be since the job works without the
> plugin enabled). I've also looked into the possibility of conflicts between
> JAR versions as suggested 
> here<http://stackoverflow.com/questions/3773379/beginning-hibernate-3-5-problems-with-ant-task/3773469#3773469>,
> but I don't believe this is the problem. The Ivy plugin includes JARs that
> my project does not include, and while the Artifactory plugin depends on a
> few JARs that my project also depends on (including slf4j-api.jar), I've
> configured my project to depend on the same JARs the the plugin depends on,
> and this has not resolved the problem. So, two questions: 1. Any idea how I
> might resolve the issue I've described? 2. Failing that, what other options
> do I have for publishing my large artifact to Artifactory? Should I try to
> run Artifactory on Tomcat instead of Jetty as suggested in the first thread
> I linked above? Thanks for everything! -- Jerry
> ------------------------------
> View this message in context: Classpath problem in Jenkins Artifactory
> plugin or Jenkins Ivy 
> plugin<http://forums.jfrog.org/Classpath-problem-in-Jenkins-Artifactory-plugin-or-Jenkins-Ivy-plugin-tp6784735p6784735.html>
> Sent from the Artifactory - Users mailing list 
> archive<http://forums.jfrog.org/Artifactory-Users-f2377369.html>at Nabble.com.
>
>
> ------------------------------------------------------------------------------
> Doing More with Less: The Next Generation Virtual Desktop
> What are the key obstacles that have prevented many mid-market businesses
> from deploying virtual desktops?   How do next-generation virtual desktops
> provide companies an easier-to-deploy, easier-to-manage and more affordable
> virtual desktop model.http://www.accelacomm.com/jaw/sfnl/114/51426474/
> _______________________________________________
> Artifactory-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/artifactory-users
>
>
------------------------------------------------------------------------------
Doing More with Less: The Next Generation Virtual Desktop 
What are the key obstacles that have prevented many mid-market businesses
from deploying virtual desktops?   How do next-generation virtual desktops
provide companies an easier-to-deploy, easier-to-manage and more affordable
virtual desktop model.http://www.accelacomm.com/jaw/sfnl/114/51426474/
_______________________________________________
Artifactory-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/artifactory-users

Reply via email to