Win a copy of Head First Agile this week in the Agile forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Executing System Command from Sun AppServer  RSS feed

 
Arfoo Huang
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am running a WAR application. From one of the programs, system commands are executed, such as "cd /apps/mydata" and "java TheProgram param1". It works for "cd /apps/mydata" but not "java TheProgram param1". The error message in the log file is as the following:

access denied (java.io.FilePermission <<ALL FILES>> execute)at java.security.AccessControlContext.checkPermission(AccessControlContext.java:269)at java.security.AccessController.checkPermission(AccessController.java:401)at java.lang.SecurityManager.checkPermission(SecurityManager.java:524)at java.lang.SecurityManager.checkExec(SecurityManager.java:774)at java.lang.Runtime.exec(Runtime.java:563)at java.lang.Runtime.exec(Runtime.java:428)at java.lang.Runtime.exec(Runtime.java:364)at java.lang.Runtime.exec(Runtime.java:326)at pdfmanager.AppendDom.createDomDocument(Unknown Source)at pdfmanager.PdfManagerImpl.mergePDFs(Unknown Source)at pdfmanager.PdfManagerIF_Tie.invoke_mergePDFs(PdfManagerIF_Tie.java:53)at pdfmanager.PdfManagerIF_Tie.processingHook(PdfManagerIF_Tie.java:123)at com.sun.xml.rpc.server.StreamingHandler.handle(StreamingHandler.java:228)at com.sun.xml.rpc.server.http.JAXRPCServletDelegate.doPost(JAXRPCServletDelegate.java:316)at com.sun.enterprise.webservice.JAXRPCServlet.doPost(JAXRPCServlet.java:49)at javax.servlet.http.HttpServlet.service(HttpServlet.java:768)at javax.servlet.http.HttpServlet.service(HttpServlet.java:861)at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)at java.lang.reflect.Method.invoke(Method.java:324)at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:289)at java.security.AccessController.doPrivileged(Native Method)at javax.security.auth.Subject.doAsPrivileged(Subject.java:500)at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:311)at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:205)at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:283)

Any help? Thank you.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!