Permission issue when deploying JSP code to Linux server.

Posted on 2006-05-31
Last Modified: 2010-05-18
I tested my jsp codes in my local machine and it works great.

I then deploy the code to a linux server and encounter the error below.
I'm not sure how to approach this situation. I gave the permission for user and group to be rwx for myFile.jsp also for the directories where the file kept.

Any advice?
Thanks in advance for the help.

------------------------------------------------------------------------ /usr/local/apache-tomcat-5.5.15/work/Catalina/localhost/myDirectory/org/apache/jsp/ (Permission denied) Method)<init>(<init>(
      sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      java.lang.reflect.Method.invoke($ Method)
Question by:rnicholus
    LVL 29

    Accepted Solution

    I does appear that it is a permissions issue. Your jsp is compiled into the java class and it is this that appears to be causing a problem. So can you double check your permissions allows Tomcat to compile the jsp into a java file and the java file into a class.

    I notice that you have an odd capitalisation in the jsp name "myFile" you might want to check that there are no floating copies of similar files such as "" or ""

    Author Comment

    Other jsp application using the same tomcat doesn't have this problem. I was thinking that the permission issue could be in the directory permission instead of tomcat permission?
    I'll take a look again.

    Author Comment


    Sorry about this.
    Could you please close this question?

    The problem is in the permission of this directory:


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    If you're not part of the solution, you're part of the problem.   Tips on how to secure IoT devices, even the dumbest ones, so they can't be used as part of a DDoS botnet.  Use PRTG Network Monitor as one of the building blocks, to detect unusual…
    DECT technology has become a popular standard for wireless voice communication. DECT devices are not likely to be affected by other electronic devices and signals because they operate in a separate frequency-band.
    Here's a very brief overview of the methods PRTG Network Monitor ( offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
    This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor ( If you're looking for how to monitor bandwidth using netflow or packet s…

    760 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    14 Experts available now in Live!

    Get 1:1 Help Now