Hi euler,
glad to hear you got there in the end, and that my suspicion about
the problem (though perhaps not the one about the cause of the
problem) was correct - multiple versions of slf4j jars.
Just for the record, I think another scenario where I encountered
this was custom dependencies (eg in
[dspace-src]/dspace/modules/additions/pom.xml) pointing to an older
version of dspace-api, which resulted in the inclusion of both
versions.
https://maven.apache.org/plugins/maven-dependency-plugin/examples/resolving-conflicts-using-the-dependency-tree.html
shows how to get the dependencies for a particular group of
artifacts, that technique might help troubleshoot this sort of
issue.
cheers,
Andrea
On 28/09/15 14:09, euler wrote:
Hi Andrea,
Yes, I did run mvn clean clean -U package. I just checked
this morning and running ls slf4j* in [dspace]/lib, I have
this files:
$ ls slf4j*
slf4j-api-1.5.6.jar slf4j-log4j12-1.5.6.jar
slf4j-api-1.6.1.jar slf4j-log4j12-1.6.1.jar
Anyways, I was kind of desperate to fix this issue and
couldn't wait after the weekend to wait for a response, so I
just reinstall DSpace to a different directory. Thankfully I
didn't encounter that issue. I really suspect it's a
permission issue because I just inherited this repository
and I am using a different user when the original DSpace was
installed. Plus, I always encountered a permissions denied
errors from the [dspace]/log directory.
Thanks for this, I now know where to look and what file
to delete if ever I encounter that error again.
Best regards,
euler
On Monday, September 28, 2015 at 4:18:14 AM UTC+8, Andrea
Schweer wrote:
Hi
euler,
On 26/09/15 19:27, euler wrote:
> Dear All,
>
> When attempting to run "dspace -h" from the command
line, I am
> receiving this error:
>
> log4j:ERROR Attempted to append to closed appender
named [A1].
> log4j:ERROR Attempted to append to closed appender
named [A1].
> log4j:ERROR Attempted to append to closed appender
named [A1].
> Exception in thread "main" java.lang.NoSuchMethodError:
> org.slf4j.spi.LocationAw
> areLogger.log(Lorg/slf4j/Marker;Ljava/lang/String;ILjava/lang/String;[Ljava/lang
> /Object;Ljava/lang/Throwable;)V
Just to get the super obvious out of the way, you did run
mvn clean
during the upgrade, yes? I think I've seen this happen when
I forgot the
"clean" bit, which results in more than one slf4j version in
[dspace]/lib and the wrong one (an earlier version) is
loaded instead of
the correct one. What do you get for this?
ls [dspace]/lib/slf4j*
I just ran this on a DSpace 5.3 instance and I get:
slf4j-api-1.6.1.jar
slf4j-log4j12-1.6.1.jar
cheers,
Andrea
--
Dr Andrea Schweer
IRR Technical Specialist, ITS Information Systems
The University of Waikato, Hamilton, New Zealand
+64-7-837 9120
--
You received this message because you are subscribed to the Google
Groups "DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it,
send an email to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/dspace-tech.
For more options, visit https://groups.google.com/d/optout.
--
Dr Andrea Schweer
IRR Technical Specialist, ITS Information Systems
The University of Waikato, Hamilton, New Zealand
+64-7-837 9120
--
You received this message because you are subscribed to the Google Groups "DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/dspace-tech.
For more options, visit https://groups.google.com/d/optout.
|