while selecting database it throwing error

Hi,

while selection the database : Embedded Derby or MSSQL its throwing error. I am not able to proceed further. Any help appreciated.
Below is the Tomcat (catalina) log .

Jan 21, 2014 10:10:09 AM com.opentext.otag.rest.util.JsonpFilter doFilter
INFO: A warning about POST requests is expected due to jsonp filtering, and can be safely ignored.
Jan 21, 2014 10:10:09 AM com.sun.jersey.spi.container.servlet.WebComponent filterFormParameters
WARNING: A servlet request, to the URI http://localhost:8080/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.
Jan 21, 2014 10:10:09 AM com.opentext.otag.api.PersistenceContext close
INFO: Closing persistence context for OTAG so it can be safely redeployed.
Jan 21, 2014 10:10:09 AM com.opentext.otag.api.PersistenceContext getEntityManagerFactory
INFO: Making an EntityManagerFactory for db persistence context "OTAG"
Jan 21, 2014 10:10:46 AM com.opentext.otag.auth.OtdsInstaller runInstaller
SEVERE: org.apache.commons.exec.ExecuteException: Process exited with an error: 1 (Exit value: 1)
Jan 21, 2014 10:10:46 AM com.sun.jersey.spi.container.ContainerResponse logException
SEVERE: Mapped exception to response: 500 (Internal Server Error)
javax.ws.rs.WebApplicationException
at com.opentext.otag.auth.OtdsInstaller.runInstaller(OtdsInstaller.java:168)
at com.opentext.otag.auth.OtdsInstaller.installOtds(OtdsInstaller.java:110)
at com.opentext.otag.rest.impl.SetupImpl.installOtds(SetupImpl.java:213)
at com.opentext.otag.rest.impl.SetupImpl.doBasicConfig(SetupImpl.java:170)
at com.opentext.otag.rest.v1.Setup.doBasicConfig(Setup.java:55)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.sun.jersey.spi.container.JavaMethodInvokerFactory$1.invoke(JavaMethodInvokerFactory.java:60)
at com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$ResponseOutInvoker._dispatch(AbstractResourceMethodDispatchProvider.java:205)
at com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:75)
at com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:302)
at com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(ResourceClassRule.java:108)
at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)
at com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(RootResourceClassesRule.java:84)
at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1511)
at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1442)
at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1391)
at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1381)
at com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:416)
at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:538)
at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:716)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at com.opentext.otag.rest.util.JsonpFilter.doFilter(JsonpFilter.java:67)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:409)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1044)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:607)
at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:313)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)

Comments

  • Near the beginning of the above log, note these lines:

    Jan 21, 2014 10:10:46 AM com.opentext.otag.auth.OtdsInstaller runInstaller 
    SEVERE: org.apache.commons.exec.ExecuteException: Process exited with an error: 1 (Exit value: 1)
    

    This tells you that the OTDS install failed. You can check the OTDS deploy log for information on why. Likely causes:

    • you have another LDAP or OTDS instance on your machine, and there is a port conflict
    • you are running on linux and need to set the ports to a number greater than 1024
    • an earlier install attempt left a partially-installed OTDS behind.
  • Thanks John Wilkinson for the reply.
    I have checked the OTDS deployment log and found :
    ERROR: Unable to bind to port 389. This port may already be in use, or you
    INFO com.opentext.otds.deploy.OpenDjUtils - executeScript: may not have permission to bind to it
    ERROR com.opentext.otds.deploy.OpenDjUtils - executeScript: Non-zero exit code from command shell: 2
    ERROR com.opentext.otds.deploy.OpenDjUtils - executeScript: Error executing command

    Yes I have more than one instance on my machine. From where I can change this port any idea?

    Thanks
    Dhaval

  • hi Dhaval,
    during the installation you can set up OTDS ports in Advanced Configuration for Directory Services (Optional):

    • LDAP Port and
    • LDAP Admin Port

    otag advanced installation