probs starting webdisk

Help
2007-08-28
2013-04-16
  • Nobody/Anonymous

    don't know where to find answer for this prob.:
    type Exception report

    message

    description The server encountered an internal error () that prevented it from fulfilling this request.

    exception

    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.coyote.http11.Http11Processor.process(Http11Processor.java:869)
        org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
        org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
        org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
        org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
        java.lang.Thread.run(Thread.java:619)

    root cause

    java.security.AccessControlException: access denied (java.io.FilePermission /tmp/webdisk read)
        java.security.AccessControlContext.checkPermission(AccessControlContext.java:323)
        java.security.AccessController.checkPermission(AccessController.java:546)
        java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
        java.lang.SecurityManager.checkRead(SecurityManager.java:871)
        java.io.File.exists(File.java:731)
        webdisk.Configs.loadConfig(Configs.java:180)
        webdisk.Configs.<init>(Configs.java:115)
        webdisk.Controller.init(Controller.java:179)
        javax.servlet.GenericServlet.init(GenericServlet.java:211)
        sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        java.lang.reflect.Method.invoke(Method.java:597)
        org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:243)
        java.security.AccessController.doPrivileged(Native Method)
        javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
        org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:275)
        org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:161)
        org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:114)
        org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
        org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
        org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
        org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
        org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
        org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
        org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
        java.lang.Thread.run(Thread.java:619)

     
    • Nobody/Anonymous

      Hello,

      the user running the tomcat server is not allowed to read the upload directory under "/tmp/webdisk".

      bye
      Thomas

       
      • Nobody/Anonymous

        Hello,

        maybe your java security policy forbids the access in any way ?
        (see http://java.sun.com/j2se/1.4.2/docs/guide/security/PolicyFiles.html\)

        The relevant code is ok:

        uploadPath = (String) servletconfig.getInitParameter("uploadpath");
        File f = new File(uploadPath);
        if (!f.exists() || !f.isDirectory()) {

        bye
        Thomas

         
        • Nobody/Anonymous

          the code is same
          i'm gonna try older version of java, maybe its '6 version mess.

          but if you gotta' any sugestions let me know ;]

           
          • Nobody/Anonymous

            Hello,

            you can try a different operating system (e.g. windows) or a different linux distribution or check you java policy files.

            bye
            Thomas

             
        • Nobody/Anonymous

          same shi...t with java ver. 1.5

           
    • Nobody/Anonymous

      drwxrwxrwx  2 tomcat55 root        48 2007-08-29 16:21 webdisk

      recreated /tmp/webdisk but same error

      p.s. i use tomcat 5.5.20, apache 2.2.4-3, java 1.6.0_02-b05

       
      • Nobody/Anonymous

        Hello,

        maybe some firewall or other setting restricting the access ?

        bye
        Thomas

         
        • Nobody/Anonymous

          nope, no restrictions for ports or addresses on that machine

           

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks