Menu

Start: bin/wrapper: syntax error at line 1: `

Steve
2007-10-10
2013-05-01
  • Steve

    Steve - 2007-10-10

    I just installed the tar file and performed the setup as per the site instructions. When I try and start the dimdim server I get the following error:

    bash-2.05# ./dimdim start
    Starting DimDim Conference Server...
    /usr/local/dimdim/ConferenceServer/apache-tomcat-5.5.17/bin/wrapper: syntax error at line 1: `(' unexpected
    bash-2.05#

    The wrapper.conf file has the proper path setting:
    # Java Application
    wrapper.java.command=/usr/java/bin/java

    Any idea's on why I am getting the failure?

    Thanks,
    Steve

     
    • Rajesh Dharmalingam

      Hello Steve,

      Thanks for using dimdim.
      Can you please send us the wrapper.log and wrapper.conf to rajesh@dimdim.com so that it will be useful for troubleshooting.

      Regards,
      -Rajesh
      rajesh@dimdim.com

       
    • Steve

      Steve - 2007-10-10

      The conf/wrapper.log file is empty.

      bash-2.05# ls -alt
      total 4
      drwxr-xr-x   2 root     root         512 Aug  2 10:49 .
      drwxr-xr-x  11 root     root         512 Aug  2 10:49 ..
      -rw-r--r--   1 root     root           0 Jul  2  2006 wrapper.log
      bash-2.05# pwd
      /usr/local/dimdim/ConferenceServer/apache-tomcat-5.5.17/logs
      bash-2.05#

      I have done some more troubleshooting and have output the command syntax via the dimdim script to determine if there is a character being appended to the actual command but nothing appears:

      bash-2.05# ./dimdim start
      Starting DimDim Conference Server...
      /usr/local/dimdim/ConferenceServer/apache-tomcat-5.5.17/bin/wrapper /usr/local/dimdim/ConferenceServer/apache-tomcat-5.5.17/bin/../conf/wrapper.conf wrapper.syslog.ident=DimDim wrapper.pidfile=/usr/local/dimdim/ConferenceServer/apache-tomcat-5.5.17/bin/./DimDim.pid wrapper.daemonize=TRUE
      /usr/local/dimdim/ConferenceServer/apache-tomcat-5.5.17/bin/wrapper: syntax error at line 1: `(' unexpected
      bash-2.05#

      The output from the wrapper.conf file is:

      #********************************************************************^M
      # Wrapper Properties^M
      #********************************************************************^M
      # Java Application
      wrapper.java.command=/usr/java/bin/java

      # Java Main class.  This class must implement the WrapperListener interface^M
      #  or guarantee that the WrapperManager class is initialized.  Helper^M
      #  classes are provided to do this for you.  See the Integration section^M
      #  of the documentation for details.^M
      wrapper.java.mainclass=org.tanukisoftware.wrapper.WrapperStartStopApp

      # Java Classpath (include wrapper.jar)  Add class path elements as
      #  needed starting from 1
      wrapper.java.classpath.1=../common/lib/wrapper.jar
      wrapper.java.classpath.2=../bin/bootstrap.jar
      wrapper.java.classpath.3=../bin/tomcat-juli.jar
      wrapper.java.classpath.4=../common/lib/wrappertest.jar

      # Java Library Path (location of Wrapper.DLL or libwrapper.so)^M
      wrapper.java.library.path.1=../common/lib

      .... Nothing has changed except for the wrapper.java.command= as outlined in the install instructions.

      Here is some other info:

      bash-2.05# pwd
      /usr/local/dimdim/ConferenceServer/apache-tomcat-5.5.17/conf
      bash-2.05# ls
      Catalina             catalina.properties  logging.properties   server.xml           web.xml
      catalina.policy      context.xml          server-minimal.xml   tomcat-users.xml     wrapper.conf
      bash-2.05#

      bash-2.05# pwd
      /usr/local/dimdim/ConferenceServer/apache-tomcat-5.5.17/bin
      bash-2.05# ls -l wrapper
      -rwxr-xr-x   1 root     root       97481 Jul  2  2006 wrapper
      bash-2.05#

       

Log in to post a comment.