rnicholus
asked on
Permission issue when deploying JSP code to Linux server.
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.
-------------------------- ---------- ---------- ---------- ---------- ------
java.io.FileNotFoundExcept ion: /usr/local/apache-tomcat-5 .5.15/work /Catalina/ localhost/ myDirector y/org/apac he/jsp/myF ile_jsp.ja va (Permission denied)
java.io.FileOutputStream.o pen(Native Method)
java.io.FileOutputStream.< init>(File OutputStre am.java:17 9)
java.io.FileOutputStream.< init>(File OutputStre am.java:70 )
org.apache.jasper.compiler .Compiler. generateJa va(Compile r.java:140 )
org.apache.jasper.compiler .Compiler. compile(Co mpiler.jav a:295)
org.apache.jasper.compiler .Compiler. compile(Co mpiler.jav a:276)
org.apache.jasper.compiler .Compiler. compile(Co mpiler.jav a:264)
org.apache.jasper.JspCompi lationCont ext.compil e(JspCompi lationCont ext.java:5 63)
org.apache.jasper.servlet. JspServlet Wrapper.se rvice(JspS ervletWrap per.java:3 03)
org.apache.jasper.servlet. JspServlet .serviceJs pFile(JspS ervlet.jav a:314)
org.apache.jasper.servlet. JspServlet .service(J spServlet. java:264)
javax.servlet.http.HttpSer vlet.servi ce(HttpSer vlet.java: 802)
sun.reflect.NativeMethodAc cessorImpl .invoke0(N ative Method)
sun.reflect.NativeMethodAc cessorImpl .invoke(Na tiveMethod AccessorIm pl.java:39 )
sun.reflect.DelegatingMeth odAccessor Impl.invok e(Delegati ngMethodAc cessorImpl .java:25)
java.lang.reflect.Method.i nvoke(Meth od.java:58 5)
org.apache.catalina.securi ty.Securit yUtil$1.ru n(Security Util.java: 243)
java.security.AccessContro ller.doPri vileged(Na tive Method)
javax.security.auth.Subjec t.doAsPriv ileged(Sub ject.java: 517)
org.apache.catalina.securi ty.Securit yUtil.exec ute(Securi tyUtil.jav a:275)
org.apache.catalina.securi ty.Securit yUtil.doAs Privilege( SecurityUt il.java:16 1)
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.
--------------------------
java.io.FileNotFoundExcept
java.io.FileOutputStream.o
java.io.FileOutputStream.<
java.io.FileOutputStream.<
org.apache.jasper.compiler
org.apache.jasper.compiler
org.apache.jasper.compiler
org.apache.jasper.compiler
org.apache.jasper.JspCompi
org.apache.jasper.servlet.
org.apache.jasper.servlet.
org.apache.jasper.servlet.
javax.servlet.http.HttpSer
sun.reflect.NativeMethodAc
sun.reflect.NativeMethodAc
sun.reflect.DelegatingMeth
java.lang.reflect.Method.i
org.apache.catalina.securi
java.security.AccessContro
javax.security.auth.Subjec
org.apache.catalina.securi
org.apache.catalina.securi
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Moderator,
Sorry about this.
Could you please close this question?
The problem is in the permission of this directory:
work\Catalina\localhost\my App
Sorry about this.
Could you please close this question?
The problem is in the permission of this directory:
work\Catalina\localhost\my
ASKER
I'll take a look again.