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 ( <<ALL FILES>> execute)at java.lang.SecurityManager.checkPermission( java.lang.SecurityManager.checkExec( java.lang.Runtime.exec( java.lang.Runtime.exec( java.lang.Runtime.exec( java.lang.Runtime.exec( pdfmanager.AppendDom.createDomDocument(Unknown Source)at pdfmanager.PdfManagerImpl.mergePDFs(Unknown Source)at pdfmanager.PdfManagerIF_Tie.invoke_mergePDFs( pdfmanager.PdfManagerIF_Tie.processingHook( com.sun.xml.rpc.server.StreamingHandler.handle( com.sun.xml.rpc.server.http.JAXRPCServletDelegate.doPost( com.sun.enterprise.webservice.JAXRPCServlet.doPost( javax.servlet.http.HttpServlet.service( javax.servlet.http.HttpServlet.service( sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)at sun.reflect.NativeMethodAccessorImpl.invoke( sun.reflect.DelegatingMethodAccessorImpl.invoke( java.lang.reflect.Method.invoke($ Method)at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(

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