Welcome, Guest
Guest Settings
Help

DCM4CHE Support Forums » dcm4che development » dcm4chee

Thread: Worklist error: java.lang.NoClassDefFoundError: org/apache/log4j/Logger...


Reply to this Thread Reply to this Thread Search Forum Search Forum Back to Thread List Back to Thread List

Permlink Replies: 1 - Pages: 1 - Last Post: Nov 29, 2013 1:31 PM Last Post By: jano
jano

Posts: 9
Registered: 10/26/11
Worklist error: java.lang.NoClassDefFoundError: org/apache/log4j/Logger...
Posted: Nov 28, 2013 5:08 PM
  Click to reply to this thread Reply
Hi everyone!

I have dcm4chee-mysql--2.14.8-mysql working but when I run "java -jar bin/editmwl.jar -a -f file.xml"...

java.lang.NoClassDefFoundError: org/apache/log4j/Logger
at org.dcm4cheri.data.DcmObjectImpl.<clinit>(DcmObjectImpl.java:82)
at org.dcm4cheri.data.DcmObjectFactoryImpl.newDataset(DcmObjectFactoryImpl.java:65)
at org.dcm4chex.archive.common.DatasetUtils.fromXML(DatasetUtils.java:146)
at org.dcm4chex.archive.common.DatasetUtils.fromXML(DatasetUtils.java:153)
at org.dcm4chex.archive.tools.EditMwl.loadMWLItem(EditMwl.java:160)
at org.dcm4chex.archive.tools.EditMwl.main(EditMwl.java:126)
Caused by: java.lang.ClassNotFoundException: org.apache.log4j.Logger
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
... 6 more

I'm not expert in Java, I've expanded the file $DCM4CHEE_HOME/server/default/lib/log4j.jar in org/apache/log4j/ and I've found Logger.class. Do I go well? Which more tests can I do?
My system is:
Mac OS X Server 10.6.8
java version "1.6.0_51"
Java(TM) SE Runtime Environment (build 1.6.0_51-b11-457-10M4509)
Java HotSpot(TM) 64-Bit Server VM (build 20.51-b01-457, mixed mode)

Can you help me, please?
jano

Posts: 9
Registered: 10/26/11
Re: Worklist error: java.lang.NoClassDefFoundError: org/apache/log4j/Logger...
Posted: Nov 29, 2013 1:31 PM   in response to: jano in response to: jano
  Click to reply to this thread Reply
Finally, I've reinstalled dcm4chee and it works :)
Legend
Expert: 501 - 999999 pts
Contributor: 151 - 500 pts
Member: 1 - 150 pts
dcm4che team
community contributor
Helpful Answer
Correct Answer

Point your RSS reader here for a feed of the latest messages in all forums