Installation errors

Installing AppWorks Gateway into Tomcat 7. I keep getting this:

Nov 26, 2013 2:59:45 PM com.opentext.otag.rest.settings.OtdsInstaller isOtdsInstalled
WARNING: --------WARNING--------

Nov 26, 2013 2:59:45 PM com.opentext.otag.rest.settings.OtdsInstaller isOtdsInstalled
WARNING: OTDS appears to have been partially installed. It may be necessary to shut down tomcat, delete all directories under /otds EXCEPT 'install', and delete all files from /conf/Catalina/localhost.

Nov 26, 2013 2:59:45 PM com.opentext.otag.rest.settings.OtdsInstaller isOtdsInstalled
WARNING: --------WARNING--------

Nov 26, 2013 2:59:45 PM com.opentext.otag.rest.settings.OtdsInstaller runInstaller
SEVERE: java.io.IOException: Cannot run program "java" (in directory "C:\Program Files\Apache Software Foundation\Tomcat 7.0\otds\install"): CreateProcess error=2, The system cannot find the file specified

Nov 26, 2013 2:59:45 PM com.sun.jersey.spi.container.ContainerResponse logException
SEVERE: Mapped exception to response: 500 (Internal Server Error)
javax.ws.rs.WebApplicationException
at com.opentext.otag.rest.settings.OtdsInstaller.runInstaller(OtdsInstaller.java:164)
at com.opentext.otag.rest.settings.OtdsInstaller.installOtds(OtdsInstaller.java:107)
at com.opentext.otag.rest.impl.SetupImpl.installOtds(SetupImpl.java:212)
at com.opentext.otag.rest.impl.SetupImpl.doBasicConfig(SetupImpl.java:169)
at com.opentext.otag.rest.v1.Setup.doBasicConfig(Setup.java:54)
....

I did have an OTDS server installed, but not configured. It was completely uninstalled. The Tomcat was reinstalled clean. There shouldn't be anything left over.
What is that about cannot run "java"?

Any ideas?

Tagged:

Comments

  • Pete_Oliver
    Pete_Oliver E Community Moderator

    This looks like either JAVA_HOME is not set, or that java.exe is not in your executables path. The OTDS installer kicks off a separate java process to do it's stuff, AFAIK.

  • Well... JAVA_HOME is set to C:\Program Files\Java\jdk1.7.0_21. PATH contains "C:\Program Files\Java\jdk1.7.0_21\bin".
    Tomcat is using the jvm from C:\Program Files\Java\jdk1.7.0_21\jre\bin\server\jvm.dll. This is 64-bit java on 64-bit Windows 8. Could it be a 32/64-bit thing?

  • Look like a permission issue("C:\Program Files\Apache Software Foundation\Tomcat 7.0\otds\install"), are there files created in the folder?

  • The files were COPIED in that folder from the original appworks_gateway_1.1.0.zip. Here's the dir:

    11/13/2013 04:22 PM 1,972 99-otds-plugin.ldif

    11/13/2013 04:22 PM 35,144 99-otperson.ldif

    11/13/2013 04:22 PM 44,175 changes-10.5.ldif

    11/13/2013 04:22 PM 46,725 commons-codec-1.3.jar

    11/13/2013 04:22 PM 87,776 commons-io-1.3.2.jar

    11/13/2013 04:22 PM 315,805 commons-lang3-3.1.jar

    11/13/2013 04:22 PM 60,841 commons-logging-1.1.1.jar

    11/13/2013 04:22 PM 489,883 log4j-1.2.17.jar

    11/13/2013 04:22 PM 675 log4j.properties

    11/13/2013 04:22 PM 506 MANIFEST

    11/13/2013 04:22 PM 2,165,550 ojdbc6.jar

    11/13/2013 04:22 PM 18,438,820 OpenDJ-2.5.0-Xpress1.zip

    11/26/2013 02:59 PM 478 otds-deploy.config

    11/13/2013 04:22 PM 76,669 otds-deploy.jar

    11/13/2013 04:22 PM 2,402 otds-fwd.zip

    11/13/2013 04:22 PM 58,370 otds-plugin.jar

    11/13/2013 04:22 PM 2,871 otds-plugin.ldif

    11/13/2013 04:22 PM 8,675,180 otds-reg.zip

    11/13/2013 04:22 PM 11,862 OtdsDefaultOpenDSLayout.ldif

    11/13/2013 04:22 PM 64,512 OTDSNative.dll

    11/13/2013 04:22 PM 52,347,979 otdsws.zip

    11/26/2013 05:25 PM 0 otds_listing.txt

    11/13/2013 04:22 PM 52,403,538 patch.zip

    11/13/2013 04:22 PM

      sap 11/13/2013 04:22 PM 537,303 sqljdbc4.jar 11/13/2013 04:22 PM 123,839 tomcat-jdbc.jar 11/13/2013 04:22 PM 1,852 tomcat.log4j.properties 26 File(s) 135,994,727 bytes 3 Dir(s) 90,939,392,000 bytes free
  • Hi,

    Right click on the Apache Software Foundation folder in Windows Explorer, select Properties and go to Security tab and p press Edit button. In the newly opened dialog box select the local Users group. Give it Full Control in the bottom pane and press ok for all dialog boxes.

    Nic.

  • Were there any other errors in the log file, prior to this one?

  • Maria, you've likely done this, but if you open a console and type java -version, what does it say?

    If that is successful, I think the best avenue to investigate next is security settings/perms as suggested by Nicolae.

  • Nic, your permissions thing didn't work for Remote Cache, it doesn't work here. It's something else. Although looks like the same, or very similar, problem. Again, it could be bitness, like trying to load a 64-bit dll from a 32-bit process.

    Dean, none that look like errors. Only this warning:

    WARNING: A servlet request, to the URI http://localhost:8090/gateway/v1/setup, contains form parameters in the request body but the request body has been consumed by the servlet or a servlet filter accessing the request parameters. Only resource methods using @FormParam will work as expected. Resource methods consuming the request body by other means will not work as expected.

  • The "request body has been consumed" warning is expected, for what that's worth.

    Did you try java -version? Just making sure we don't miss anything.

  • @John:

    java version "1.7.0_21"

    Java(TM) SE Runtime Environment (build 1.7.0_21-b11)

    Java HotSpot(TM) 64-Bit Server VM (build 23.21-b01, mixed mode)

  • FYI, I have just confirmed that we don't support Windows 8 for AppWorks Gateway server (or windows 7 in fact, although that one is pretty well-tested in practice).

    (I know of one instance in which someone has installed on Win 8 without this difficulty.)

    The problem seems to be that your path variable is not available to the tomcat process or perhaps to the shell it launches.

    How are you running tomcat? Is it run by your logged-in user, or is it started as a system service? Perhaps shutting down the service and running manually (by launching /bin/startup.bat) would produce different results.

  • It runs as a service, under the SYSTEM account.
    When starting up via bin/tomcat7.exe, it runs as a process under my logged-in user, but I get the same error.

    Tried switching my JAVA_HOME and PATH to use 32-bit java, nothign changed

    Interestingly enough, when I changed tomcat's jvm to 32-bit, the service failed to start... Apparently my Tomcat is 64-bit.

  • Installed a new instance of tomcat 7, using 32-bit jvm. It won't start with -Xmx1024M, but does with 512, 750. Neither is sufficient for appworks, the welcome page demands I increase -Xmx to 1024. I got enough RAM, and I am not the only one having this issue. Lots of google hits, and many seem to have something to do with using 32-bit jvm on 64-bit system, switching to 64-bit jvm works for them.

    Getting frustrated...

  • Windows 7 installation worked. It failed yesterday with a different error, but worked today. At least I can use that machine for now.
    It would be nice to figure out what's going on here, though

  • Hi Maria,

    Please have a system ready with Tomcat and Java 64 bit and let's reproduce it together this afternoon. At this point I am not sure where the problem is and I am not sure that this is on OTDS deployment issue, but I was wrong before.

    Thanks,
    Nic.

  • So after XX mins on the phone with Nic, we managed to get it installed on my win 8 machine
    1) bypass the otag OTDSInstaller by manualy installing oTDS via "java -jar otds-deploy.jar -install".
    2) Choose "connect to existing OTDS" on the gateway config page, provide otds admin credentials. I believe mine got autocompleted with "otag/otag", that won't work, of course.
    3) Sit back and relax
    Phew.