Uploaded image for project: 'Archiva'
  1. Archiva
  2. MRM-1634

wrapper script broken - it cannot find the java executable

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: system
    • Labels:
      None
    • Environment:
      Win 2008 R2, JDK 7

      Description

      When i try to start archiva as documented in the docu (.\bin\archiva.bat console) i get an error from the wrapper script:

      E:\archiva-snapshot>.\bin\archiva console
      wrapper | --> Wrapper Started as Console
      wrapper | Launching a JVM...
      wrapper | Unable to execute Java command. The system cannot find the file specified. (0x2)
      wrapper | "java" -Dappserver.home=. -Dappserver.base=. -Djetty.logs=./logs -Djava.io.tmpdir=./temp -Darchiva.tmp.group.index.ttl=30 -XX:MaxPermSize=128m -Xms512m -Xmx512m -Djava.library.path="lib" -classpath "lib/wrapper.jar;lib/archiva-jetty-js-1.4-M3-SNAPSHOT.pom;lib/jetty-server-7.4.5.v20110725.jar;lib/servlet-api-2.5.jar;lib/jetty-continuation-7.4.5.v20110725.jar;lib/jetty-http-7.4.5.v20110725.jar;lib/jetty-io-7.4.5.v20110725.jar;lib/jetty-jndi-7.4.5.v20110725.jar;lib/jetty-start-7.4.5.
      v20110725.jar;lib/jetty-plus-7.4.5.v20110725.jar;lib/geronimo-jta_1.1_spec-1.1.1.jar;lib/jetty-webapp-7.4.5.v20110725.jar;lib/jetty-servlet-7.4.5.v20110725.jar;lib/jetty-security-7.4.5.v20110725.jar;lib/jetty-deploy-7.4.5.v20110725.jar;lib/jetty-xml-7.4.5.v20110725.jar;lib/jetty-util-7.4.5.v20110725.jar;lib/derby-10.8.2.2.jar;lib/mail-1.4.jar;lib/activation-1.1.jar;lib/ant-1.8.3.jar;lib/ant-launcher-1.8.3.jar;lib/commons-dbcp-1.4.jar;lib/commons-pool-1.6.jar" -Dwrapper.key="dy4iBSHrKipw5C5P" -Dw
      rapper.port=32001 -Dwrapper.jvm.port.min=31000 -Dwrapper.jvm.port.max=31999 -Dwrapper.pid=2668 -Dwrapper.version="3.2.3" -Dwrapper.native_library="wrapper" -Dwrapper.cpu.timeout="10" -Dwrapper.jvmid=1 org.tanukisoftware.wrapper.WrapperSimpleApp org.eclipse.jetty.start.Main ./conf/jetty.xml
      wrapper | Critical error: wait for JVM process failed
      Press any key to continue . . .

      When i change the line in the wrapper.conf from:
      wrapper.java.command=java
      to
      wrapper.java.command=E:\Java\jre\bin\java.exe

      it works

      java is in %PATH%, when i execute java in a fresh cmd.exe, i get the regular output from java. JAVA_HOME JDK_HOME and JRE_HOME is also set.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              olze asdf asdf
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: