Hi, I'm going through the quickstart sample from axis2 and found an error that only occurs while using the packaged ant in Fedora 8 and 9. Here is the error I receive:
$ ant generate.wsdl Buildfile: build.xml
compile.service:
generate.wsdl:
BUILD FAILED /home/timothys/projects/lib/java/axis2-1.4/samples/quickstart/build.xml:53: java.lang.ExceptionInInitializerError
Total time: 0 seconds
When run with '-debug', I see *lots* of the following errors:
Caused by: org.apache.commons.logging.LogConfigurationException: org.apache.commons.logging.LogConfigurationException: org.apache.commons.logging.LogConfigurationException: Invalid class loader hierarchy. You have more than one version of 'org.apache.commons.logging.Log' visible, which is not allowed.
When I use upstream's ant and set ANT_HOME to that, the error does not occur and the build succeeds. I'm very new to java et al., so I don't know if I am missing something, or if this is a bug in the way things are packaged...
--Tim
On Tue, 2008-06-10 at 15:40 -0700, Timothy Selivanow wrote:
When run with '-debug', I see *lots* of the following errors:
Caused by: org.apache.commons.logging.LogConfigurationException: org.apache.commons.logging.LogConfigurationException: org.apache.commons.logging.LogConfigurationException: Invalid class loader hierarchy. You have more than one version of 'org.apache.commons.logging.Log' visible, which is not allowed.
When I use upstream's ant and set ANT_HOME to that, the error does not occur and the build succeeds.
OK, so I decided to see how far the Fedora<->JPackage work has gone and install the JPackage repo in F9...in addition to no conflicts like I had experienced in earlier Fedora versions (good job Jesse and Fernando, and any one else working on that BTW), it fixed the problem I saw. Below is a partial yum out put of what it did (I also tried to clean it up a bit as it didn't copy into the email nicely, limited space and all...)
Installing: xml-commons-resolver10 noarch 1.3.03-11jpp jpackage-generic 68 k replacing xml-commons-resolver.i386 1.1-1jpp.12
xml-commons-resolver11 noarch 1.3.03-11jpp jpackage-generic 63 k replacing xml-commons-resolver.i386 1.1-1jpp.12
xml-commons-resolver12 noarch 1.3.03-11jpp jpackage-generic 78 k replacing xml-commons-resolver.i386 1.1-1jpp.12
Updating: axis noarch 1.4-2jpp jpackage-generic 10 M jakarta-commons-dbcp noarch 1.2.2-1jpp jpackage-generic 126 k jakarta-commons-dbcp-tomcat5 noarch 1.2.2-1jpp jpackage-generic 112 k jakarta-commons-fileupload noarch 1:1.1.1-3jpp jpackage-generic 33 k jakarta-commons-launcher noarch 1.1-3jpp jpackage-generic 48 k jakarta-commons-logging noarch 1.1-4jpp package-generic 116 k java_cup noarch 1:0.10-0.k.7jpp jpackage-generic 64 k jdepend noarch 2.9.1-1jpp jpackage-generic 177 k wsdl4j noarch 1.6.2-2jpp jpackage-generic 139 k xerces-j2 noarch 2.9.0-2jpp jpackage-generic 1.1 M Installing for dependencies: xml-commons noarch 1.3.03-11jpp jpackage-generic 9.4 k
--Tim
java-devel@lists.fedoraproject.org