0 Replies Latest reply on Nov 10, 2011 3:11 PM by Vinicius Carvalho

    Start soffice.bin process from jboss as 7

    Vinicius Carvalho Newbie

      Hello,

       

      I have a class that implements ServletContextListener.

       

      In this class i call:

      Runtime.getRuntime.exec("path_openoffice/soffice.exe"), works fine. Open a new process.

       

      But if i call:

      Runtime.getRuntime.exec("path_openoffice/soffice.bin"), does not work. No log. No error.

       

       

      Using tomcat 6, both ways works fine.

       

      Is it a security issue?

         

      Code:

      public class Bootstrat implements ServletContextListener {

          @Override

          public void contextInitialized(ServletContextEvent evt) {

               Runtime.getRuntime().exec("C:\\Program Files\\OpenOffice.org 3\\program\\soffice.exe"); WORKS

               Runtime.getRuntime().exec("C:\\Program Files\\OpenOffice.org 3\\program\\soffice.bin"); FAIL

          }

      }

       

      Environment:

      - jboss as 7 (7.0.2) in standalone mode started by jboss tools plugin.

      - windows 7, 32 bits

      - openoffice 32 bits