Installation Issues

Help
2007-02-08
2013-04-16
  • Hi,

    I would love to use this application but I cannot get it to work right. I followed the installation instructions on the website, but when I access the URL it bails out with Java errors. When I use Sun's JDK 1.4.2.13 I get this :

    javax.servlet.ServletException: Servlet.init() for servlet Controller threw exception
        org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
        org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
        org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:199)
        org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:282)
        org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:767)
        org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:697)
        org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:889)
        org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
        java.lang.Thread.run(Thread.java:534)

    root cause

    java.lang.UnsupportedClassVersionError: jcifs/util/LogStream (Unsupported major.minor version 49.0)
        java.lang.ClassLoader.defineClass0(Native Method)
        java.lang.ClassLoader.defineClass(ClassLoader.java:539)
        java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
        org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1815)
        org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:869)
        org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1322)
        org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1201)
        java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
        webdisk.Controller.init(Controller.java:179)
        javax.servlet.GenericServlet.init(GenericServlet.java:211)
        org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
        org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
        org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:199)
        org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:282)
        org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:767)
        org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:697)
        org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:889)
        org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
        java.lang.Thread.run(Thread.java:534)

    After replacing the included jcifs-1.2.13_tb.jar with version 1.2.13 from jcifs.samba.org I can login. However, if I try to connect it bails out with another error message :

    exception

    javax.servlet.ServletException: Servlet execution threw an exception

    root cause

    java.lang.NoSuchMethodError: jcifs.smb.SmbFile.getComment()Ljava/lang/String;
        webdisk.Presentation.showDirectory(Presentation.java:967)
        webdisk.Presentation.showFileList(Presentation.java:786)
        webdisk.Presentation.showContent(Presentation.java:337)
        webdisk.Controller.doGet(Controller.java:283)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

    Using Sun JDK 1.5.0.10 I cannot get to the login page anymore using the supplied jcifs-1.2.13_tb.jar. This is what I get in that case :

    exception

    javax.servlet.ServletException: Servlet execution threw an exception

    root cause

    java.lang.UnsupportedClassVersionError: Bad version number in .class file
        java.lang.ClassLoader.defineClass1(Native Method)
        java.lang.ClassLoader.defineClass(ClassLoader.java:620)
        java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
        org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1815)
        org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:869)
        org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1322)
        org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1201)
        java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
        webdisk.Controller.doGet(Controller.java:233)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

    After replacing jcifs-1.2.13_tb.jar again I am back to this error :

    exception

    javax.servlet.ServletException: Servlet execution threw an exception

    root cause

    java.lang.NoSuchMethodError: jcifs.smb.SmbFile.getComment()Ljava/lang/String;
        webdisk.Presentation.showDirectory(Presentation.java:967)
        webdisk.Presentation.showFileList(Presentation.java:786)
        webdisk.Presentation.showContent(Presentation.java:337)
        webdisk.Controller.doGet(Controller.java:283)
        webdisk.Controller.doPost(Controller.java:297)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

    I am using Tomcat 5.5.20 on Gentoo.

    Help would be very much appreciated.
    Thanks.

     
    • Hello,

      the sources were compiled with a SDK 1.6 (compliance set to 1.4),
      so you can try to install JDK 1.6 or recompile the sources (see jcifs/build.xml).

      bye
      Thomas

       
      • Hello,

        I did a recompile with different settings for Ant, you can try:
        http://www.simple-groupware.de/files/jcifs-1.2.13_tb.jar

        bye
        Thomas

         
        • Hi,

          using your recompiled version it works flawlessly.

          Thanks.