Hello,
I am trying to install Appwork Gateway 1.2.2 for Tempo Box (CS 16).
When I try to deploy any application via web interface it throws 500 error and aborts.
I am attaching my tomcat (8.5.6) configuration and logs.
I have already tried setting access permissions and increase tomcat memory.
server.xml:
<?xml version="1.0" encoding="UTF-8"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<!-- Note: A "Server" is not itself a "Container", so you may not
define subcomponents such as "Valves" at this level.
Documentation at /docs/config/server.html
-->
<Server port="18005" shutdown="SHUTDOWN">
<Listener className="org.apache.catalina.startup.VersionLoggerListener" />
<!-- Security listener. Documentation at /docs/config/listeners.html
<Listener className="org.apache.catalina.security.SecurityListener" />
-->
<!-- TODO-->
<Listener className="org.apache.catalina.core.AprLifecycleListener" SSLEngine="on" />
<!-- Prevent memory leaks due to use of particular java/javax APIs-->
<Listener className="org.apache.catalina.core.JreMemoryLeakPreventionListener" />
<Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" />
<Listener className="org.apache.catalina.core.ThreadLocalLeakPreventionListener" />
<!-- Global JNDI resources
Documentation at /docs/jndi-resources-howto.html
-->
<GlobalNamingResources>
<!-- Editable user database that can also be used by
UserDatabaseRealm to authenticate users
-->
<Resource name="UserDatabase" auth="Container"
type="org.apache.catalina.UserDatabase"
description="User database that can be updated and saved"
factory="org.apache.catalina.users.MemoryUserDatabaseFactory"
pathname="conf/tomcat-users.xml" />
</GlobalNamingResources>
<!-- A "Service" is a collection of one or more "Connectors" that share
a single "Container" Note: A "Service" is not itself a "Container",
so you may not define subcomponents such as "Valves" at this level.
Documentation at /docs/config/service.html
-->
<Service name="Catalina">
<!--The connectors can use a shared executor, you can define one or more named thread pools-->
<!--
<Executor name="tomcatThreadPool" namePrefix="catalina-exec-"
maxThreads="150" minSpareThreads="4"/>
-->
<!-- A "Connector" represents an endpoint by which requests are received
and responses are returned. Documentation at :
Java HTTP Connector: /docs/config/http.html
Java AJP Connector: /docs/config/ajp.html
APR (HTTP/AJP) Connector: /docs/apr.html
Define a non-SSL/TLS HTTP/1.1 Connector on port 18080
-->
<!-- <Connector port="18080"
protocol="HTTP/1.1"
connectionTimeout="20000"
maxConnections="2000"
maxThreads="2048"
useBodyEncodingForURI="true"
maxKeepAliveRequests="-1"
keepAliveTimeout="60000"
redirectPort="18443" /> -->
<!-- A "Connector" using the shared thread pool-->
<!--
<Connector executor="tomcatThreadPool"
port="18080" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="18443" />
-->
<!-- Define a SSL/TLS HTTP/1.1 Connector on port 18443
This connector uses the NIO implementation with the JSSE engine. When
using the JSSE engine, the JSSE configuration attributes must be used.
-->
<Connector port="18443"
maxPostSize="-1"
maxHttpHeaderSize= "67589953"
maxThreads="2000"
scheme="https"
clientAuth="false"
secure="true"
SSLEnabled="true"
sslProtocol="TLS"
keystoreFile="E:\cert\cert.pfx"
keystorePass="">
</Connector>
<!-- Define a SSL/TLS HTTP/1.1 Connector on port 18443 with HTTP/2
This connector uses the APR/native implementation. When using the
APR/native implementation or the OpenSSL engine with NIO or NIO2 then
the OpenSSL configuration attributes must be used.
-->
<!--
<Connector port="18443" protocol="org.apache.coyote.http11.Http11AprProtocol"
maxThreads="150" SSLEnabled="true" >
<UpgradeProtocol className="org.apache.coyote.http2.Http2Protocol" />
<SSLHostConfig>
<Certificate certificateKeyFile="conf/localhost-rsa-key.pem"
certificateFile="conf/localhost-rsa-cert.pem"
certificateChainFile="conf/localhost-rsa-chain.pem"
type="RSA" />
</SSLHostConfig>
</Connector>
-->
<!-- Define an AJP 1.3 Connector on port 18009 -->
<Connector port="18009" protocol="AJP/1.3" redirectPort="18443" >
</Connector>
<!-- An Engine represents the entry point (within Catalina) that processes
every request. The Engine implementation for Tomcat stand alone
analyzes the HTTP headers included with the request, and passes them
on to the appropriate Host (virtual host).
Documentation at /docs/config/engine.html -->
<!-- You should set jvmRoute to support load-balancing via AJP ie :
<Engine name="Catalina" defaultHost="localhost" jvmRoute="jvm1">
-->
<Engine name="Catalina" defaultHost="localhost">
<!--For clustering, please take a look at documentation at:
/docs/cluster-howto.html (simple how to)
/docs/config/cluster.html (reference documentation) -->
<!--
<Cluster className="org.apache.catalina.ha.tcp.SimpleTcpCluster"/>
-->
<!-- Use the LockOutRealm to prevent attempts to guess user passwords
via a brute-force attack -->
<Realm className="org.apache.catalina.realm.LockOutRealm">
<!-- This Realm uses the UserDatabase configured in the global JNDI
resources under the key "UserDatabase". Any edits
that are performed against this UserDatabase are immediately
available for use by the Realm. -->
<Realm className="org.apache.catalina.realm.UserDatabaseRealm"
resourceName="UserDatabase"/>
</Realm>
<Host name="localhost" appBase="webapps"
unpackWARs="true" autoDeploy="true">
<!-- SingleSignOn valve, share authentication between web applications
Documentation at: /docs/config/valve.html -->
<!--
<Valve className="org.apache.catalina.authenticator.SingleSignOn" />
-->
<!-- Access log processes all example.
Documentation at: /docs/config/valve.html
Note: The pattern used is equivalent to using pattern="common" -->
<Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs"
prefix="localhost_access_log" suffix=".txt"
pattern="%h %l %u %t "%r" %s %b" />
</Host>
</Engine>
</Service>
</Server>
Catalina log:
14-Nov-2016 10:35:51.037 INFO [localhost-startStop-1] org.apache.jasper.servlet.TldScanner.scanJars At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
14-Nov-2016 10:35:51.039 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory C:\Program Files\Apache Software Foundation\Tomcat 8.5 appworks\webapps\ROOT has finished in 1,071 ms
14-Nov-2016 10:35:51.042 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler [https-jsse-nio-18443]
14-Nov-2016 10:35:51.047 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler [ajp-nio-18009]
14-Nov-2016 10:35:51.048 INFO [main] org.apache.catalina.startup.Catalina.start Server startup in 27420 ms
14-Nov-2016 10:35:51.313 INFO [https-jsse-nio-18443-exec-3] org.apache.tomcat.util.http.parser.Cookie.logInvalidHeader A cookie header was received [username":"otadmin@otds.admin","firstName":null,"lastName":"N/A","displayName":"N/A","email":null,"id":"otadmin@otds.admin"}; JSESSIONID=DBF3D97EDCAA44A2E0E817684EB51C4A; LLCookie=MouqQjEgtHna1vELOiBKowSIxvxS2bWhSaM4MFRApJBIEpoZFYsFPuM67%2BD%2BPX1EXch0H6rH%2FbqX87ddCLtVCnruyifB4OUGytZoc4BwnI%2BvMgl7egOhjg%3D%3D; otdsticket=*OTDSSSO*AVBBUUFVcFZvUmlFY0pGcVAxdmhaREppZ2ZmWF9pN2NzQUVPcGk5OU9ESnhDWU10THVNMkNjNmNvQTBOcTZSbVMwOEQ1QW1HajVpem5hWFo3Vy1oTEsxZkNqSlpuRHhMbUNIU1oyNTBHeUJ3S21VVVMzQk9FQkpVRzNkY0Q3UllJWHZoTzh6eEJlRUFJQ3BHWFZVZ2o0MElIUnNCRkpiNmRVUGE2M1ptV21pM3U1VVNZYlBLUVJnWWdNanNNOGVwV0lXYU55Tkc4M2dmSnBPTElORlVoOWpYOE1reHlMelgwRXFINU9fN0xxdktIYnVUZ2JjVEVFRGR1cUo5VGhTMmF5X0ZQcmhMVVBRRGpyOHZGYm1hWjFmWF9aZWVISUo2WUw2TWtiZzEtWjEzbWROeVpzMWFMSnFKZVJzeEZiZmdXTm9fa2FwZ24tM19fVFZDRSoATgBKABTfBSbMUdedAK0OvM-SPLthEMEpLgAQjBm5IqG0Kr8xv5oBbYSsyQAgZ_xHLMaEmghR62R6DwXnIrTpqGFr4Yb6Jvs5S8BVMs0AAA**; otagtoken=db5be3c8-4e18-44ac-b79e-3c39de524033; accessToken=a5093167136a29963cf8f9f47356f0e4] that contained an invalid cookie. That cookie will be ignored.Note: further occurrences of this error will be logged at DEBUG level.
14-Nov-2016 10:35:51.313 INFO [https-jsse-nio-18443-exec-1] org.apache.tomcat.util.http.parser.Cookie.logInvalidHeader A cookie header was received [username":"otadmin@otds.admin","firstName":null,"lastName":"N/A","displayName":"N/A","email":null,"id":"otadmin@otds.admin"}; JSESSIONID=DBF3D97EDCAA44A2E0E817684EB51C4A; LLCookie=MouqQjEgtHna1vELOiBKowSIxvxS2bWhSaM4MFRApJBIEpoZFYsFPuM67%2BD%2BPX1EXch0H6rH%2FbqX87ddCLtVCnruyifB4OUGytZoc4BwnI%2BvMgl7egOhjg%3D%3D; otdsticket=*OTDSSSO*AVBBUUFVcFZvUmlFY0pGcVAxdmhaREppZ2ZmWF9pN2NzQUVPcGk5OU9ESnhDWU10THVNMkNjNmNvQTBOcTZSbVMwOEQ1QW1HajVpem5hWFo3Vy1oTEsxZkNqSlpuRHhMbUNIU1oyNTBHeUJ3S21VVVMzQk9FQkpVRzNkY0Q3UllJWHZoTzh6eEJlRUFJQ3BHWFZVZ2o0MElIUnNCRkpiNmRVUGE2M1ptV21pM3U1VVNZYlBLUVJnWWdNanNNOGVwV0lXYU55Tkc4M2dmSnBPTElORlVoOWpYOE1reHlMelgwRXFINU9fN0xxdktIYnVUZ2JjVEVFRGR1cUo5VGhTMmF5X0ZQcmhMVVBRRGpyOHZGYm1hWjFmWF9aZWVISUo2WUw2TWtiZzEtWjEzbWROeVpzMWFMSnFKZVJzeEZiZmdXTm9fa2FwZ24tM19fVFZDRSoATgBKABTfBSbMUdedAK0OvM-SPLthEMEpLgAQjBm5IqG0Kr8xv5oBbYSsyQAgZ_xHLMaEmghR62R6DwXnIrTpqGFr4Yb6Jvs5S8BVMs0AAA**; otagtoken=db5be3c8-4e18-44ac-b79e-3c39de524033; accessToken=a5093167136a29963cf8f9f47356f0e4] that contained an invalid cookie. That cookie will be ignored.Note: further occurrences of this error will be logged at DEBUG level.
14-Nov-2016 10:35:51.338 WARNING [https-jsse-nio-18443-exec-1] com.sun.jersey.spi.container.servlet.WebComponent.filterFormParameters A servlet request, to the URI https://ipejahacs:18443/gateway/v1/auth, 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.
14-Nov-2016 10:36:12.703 WARNING [https-jsse-nio-18443-exec-8] com.sun.jersey.spi.container.servlet.WebComponent.filterFormParameters A servlet request, to the URI https://ipejahacs:18443/gateway/v1/stagedapps/AppLauncher, 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.
14-Nov-2016 10:36:12.711 SEVERE [https-jsse-nio-18443-exec-8] com.sun.jersey.spi.container.ContainerResponse.mapMappableContainerException The exception contained within MappableContainerException could not be mapped to a response, re-throwing to the HTTP container
java.lang.NoClassDefFoundError: org/apache/catalina/tribes/group/interceptors/MessageDispatch15Interceptor
at com.opentext.otag.common.notifications.Cluster.<init>(Cluster.java:54)
at com.opentext.otag.common.notifications.NotificationService.getCluster(NotificationService.java:73)
at com.opentext.otag.rest.impl.StagedAppsImpl.completeInstall(StagedAppsImpl.java:54)
at com.opentext.otag.rest.v1.StagedApps.completeInstall(StagedApps.java:39)
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.RightHandPathRule.accept(RightHandPathRule.java:147)
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:729)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:230)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:192)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)
at com.opentext.otag.rest.util.JsonpFilter.doFilter(JsonpFilter.java:72)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:192)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:198)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:108)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:620)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:349)
at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:784)
at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:802)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1410)
at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Unknown Source)
14-Nov-2016 10:36:21.051 INFO [ContainerBackgroundProcessor[StandardEngine[Catalina]]] org.apache.catalina.startup.HostConfig.undeploy Undeploying context [/AppLauncher]
14-Nov-2016 10:36:21.065 INFO [localhost-startStop-2] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory C:\Program Files\Apache Software Foundation\Tomcat 8.5 appworks\webapps\AppLauncher
14-Nov-2016 10:36:22.427 INFO [localhost-startStop-2] org.apache.jasper.servlet.TldScanner.scanJars At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
14-Nov-2016 10:36:22.430 INFO [localhost-startStop-2] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory C:\Program Files\Apache Software Foundation\Tomcat 8.5 appworks\webapps\AppLauncher has finished in 1,365 ms