The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

my program can not write in own file with tomcat5.32 + cpanel

Discussion in 'General Discussion' started by amiry2, Sep 23, 2011.

  1. amiry2

    amiry2 Member

    Joined:
    Sep 4, 2011
    Messages:
    16
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Website Owner
    hi
    i use tomcat5.32 + cpanel .

    my code is :
    Code:
    <% 
    Properties p = new Properties() ; 
    String path = application.getRealPath(""); 
    path +="/WEB-INF/classes/pack2/cookie.properties" ; 
    p.load(new FileInputStream(path)); 
    p.setProperty("amir", "morteza") ; 
    p.store(new FileOutputStream(path), "this is a test"); 
    
    %> 
    when requested get this error :

    Code:
    java.io.FileNotFoundException: /home/domainname/public_html/ROOT/WEB-INF/classes/pack2/cookie.properties (Permission denied) 
    java.io.FileInputStream.open(Native Method) 
    java.io.FileInputStream.<init>(FileInputStream.java:106) 
    java.io.FileInputStream.<init>(FileInputStream.java:66) 
    org.apache.jsp.newjsp_jsp._jspService(newjsp_jsp.java:66) 
    org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98) 
    the perms is 0644 but my program can not write in own files and it is not any error when deploy program .

    please help me !!!
     
  2. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,467
    Likes Received:
    196
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    How many threads are we going to need here? You've got multiple threads going that you don't reply to, yet you continue to start new threads which all appear to be on the same topic.

    Unless you can provide a valid reason why these threads are all different, I intend on combining them all together in the next 48 hours.

    Please explain it to me.
     
  3. amiry2

    amiry2 Member

    Joined:
    Sep 4, 2011
    Messages:
    16
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Website Owner
    hi
    thanks .
    this thread In related for my file with perms =0644 can not write in file Even with perms =0664 can not . but other host with the same perms can write in our files .

    other thread is related how change perms files and folders Simultaneously .
     
Loading...

Share This Page