You can get technical
details here.
Please continue your visit at our home page.
I don’t have a good answer for you on either of these issues other than noting that I think something is wrong with your deployment, maybe the war file is corrupted or… something, I don’t know. The issue is here:
SEVERE: ClassNotFoundException while loading persisted sessions: java.lang.ClassNotFoundException: net.bull.javamelody.SessionListener
java.lang.ClassNotFoundException: net.bull.javamelody.SessionListener
There’s no good reason to try to load that class when trying to load a persisted session. XNAT doesn’t reference javamelody at ALL other than to provide a link to the application context at which javamelody is automatically provisioned (/monitoring) and it definitely doesn’t rely on it to load a session. Also, net.bull.javamelody.SessionListener should be available to the application in the appropriate jar file. In the case of 1.7.4.1, that is javamelody-core-1.68.1.jar. I just downloaded the war for 1.7.4.1 and did this:
$ jar xf xnat-web-1.7.4.1.war WEB-INF/lib/javamelody-core-1.68.1.jar
$ jar tf WEB-INF/lib/javamelody-core-1.68.1.jar | fgrep SessionListener
net/bull/javamelody/SessionListener$SessionInformationsComparator.class
net/bull/javamelody/SessionListener.class
You can check your war and/or the exploded application in Tomcat for the javamelody jar file and make sure that nothing’s corrupted in there. Alternatively you could just delete ROOT.war and the ROOT folder in your Tomcat webapps folder and download a fresh copy of the war and try that.
One other thing you can do is to modify the context.xml inside of XNAT to prevent Tomcat from even trying to load persisted sessions. Presuming you’re working with ROOT.war, you could do this (make sure Tomcat’s not running because this will blow its tiny tiny mind):
$ jar xf ROOT.war META-INF/context.xml
$ vim META-INF/context.xml
$ jar uf ROOT.war META-INF/context.xml
$ rm -rf META-INF
On the edit step there, you want to add one line to the context.xml file:
<Context>
<Loader className="org.apache.catalina.loader.VirtualWebappLoader" searchVirtualFirst="true" virtualClasspath="${xnat.home}/plugins/*.jar"/>
<JarScanner scanAllDirectories="true" />
<Parameter name="xnatHome" value="${xnat.home}"/>
<Manager pathname=""/>
</Context>
That highlighted line will not be in the file you extract. Add it in, save the file, then proceed. Note that this line is in context.xml in the upcoming 1.7.5 release.
Try those things and see if it helps fix your issue(s).
--
Rick Herrick
Sr. Programmer/Analyst
Neuroinformatics Research Group
Washington University School of Medicine
Phone: +1 (314) 273-1645
--
You received this message because you are subscribed to the Google Groups "xnat_discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
xnat_discussi...@googlegroups.com.
To post to this group, send email to
xnat_di...@googlegroups.com.
Visit this group at https://groups.google.com/group/xnat_discussion.
To view this discussion on the web visit
https://groups.google.com/d/msgid/xnat_discussion/f2e557d8-f181-4224-96ef-3a6d7422a6fe%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
The materials in this message are private and may contain Protected Healthcare Information or other information of a sensitive nature. If you are not the intended recipient, be advised that any unauthorized use, disclosure, copying or the taking of any action in reliance on the contents of this information is strictly prohibited. If you have received this email in error, please immediately notify the sender via telephone or return mail.
java.util.zip.ZipException: duplicate entry: WEB-INF/lib/axis-ant-1.4.jar
at java.util.zip.ZipOutputStream.putNextEntry(ZipOutputStream.java:215)
at java.util.jar.JarOutputStream.putNextEntry(JarOutputStream.java:109)
at sun.tools.jar.Main.update(Main.java:583)
at sun.tools.jar.Main.run(Main.java:224)
at sun.tools.jar.Main.main(Main.java:1231)
I tried running "jar xf WEB-INF/lib/axis-ant-1.4.jar" to take a look but I got File not found error. Should the file exist given the above error?