Unable to deploy any Apps after fresh install - AWServiceContextHandler
Options
Hi All,
Anyone familiar with the following error message? I see it when trying to deploy anything into OTAG.
It is a fresh install based on TomCat 8.0.44, Java 8.0.131
All the apps just sleep until I can resolve this issue.
Thank you
2017-07-03 14:49:32.290 ERROR com.opentext.otag.sdk.client.v3.AbstractOtagServiceClient - ServiceClient instances cannot be used safely before the host container has been setup and the Gateway has started, please delay client construction until after AWServiceContextHandler#onStart has fired within yourservices @AWServiceStartupComplete method has fired 2017-07-03 14:49:32.295 ERROR com.opentext.otag.service.agent.AppManagementAgent - *** APP-MANAGEMENT-AGENT *** Uncaught exception in app registration thread java.lang.IllegalStateException: ServiceClient instances cannot be used safely before the host container has been setup and the Gateway has started, please delay client construction until after AWServiceContextHandler#onStart has fired within yourservices @AWServiceStartupComplete method has fired at com.opentext.otag.sdk.client.v3.AbstractOtagServiceClient.ensureGatewayIsReady(AbstractOtagServiceClient.java:249) at com.opentext.otag.sdk.client.v3.AbstractOtagServiceClient.<init>(AbstractOtagServiceClient.java:100) at com.opentext.otag.sdk.client.v3.SettingsClient.<init>(SettingsClient.java:41) at com.opentext.otag.service.agent.AWComponentManager.registerSettingsHandlers(AWComponentManager.java:94) at com.opentext.otag.service.agent.AppManagementAgent.lambda$start$1(AppManagementAgent.java:308) at java.lang.Thread.run(Unknown Source) 2017-07-03 14:49:32.302 ERROR com.opentext.otag.sdk.client.v3.AbstractOtagServiceClient - ServiceClient instances cannot be used safely before the host container has been setup and the Gateway has started, please delay client construction until after AWServiceContextHandler#onStart has fired within yourservices @AWServiceStartupComplete method has fired 2017-07-03 14:49:41.044 INFO com.opentext.otag.service.agent.ServiceBootstrapListener - Container is not ready for service to start, sleeping ...
Tagged:
0
Comments
-
Hi Matt,
Did you replace or edit
tomcat-home/conf/server.xml
? AppWorks installs a Tomcat startup/shutdown listener, and you'll see the reported behaviour if this is stripped fromserver.xml
. Ensure yourserver.xml
has an entry forcom.opentext.otag.tomcat.TomcatLifecycleListener
, e.g.:<Server port="8651" shutdown="SHUTDOWN"> <Listener className="org.apache.catalina.startup.VersionLoggerListener"/> <!-- Security listener. Documentation at /docs/config/listeners.html <Listener className="org.apache.catalina.security.SecurityListener" /> --> <!--APR library loader. Documentation at /docs/apr.html --> <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"/> <Listener className="com.opentext.otag.tomcat.TomcatLifecycleListener"/>
0 -
Thanks Pete - I was using an old server.xml
This solved my issue.
Cheers - M0
Categories
- All Categories
- 109 Developer Announcements
- 49 Articles
- 100 General Questions
- 122 IM Services
- 40 OpenText Hackathon
- 31 Developer Tools
- 20.6K Analytics
- 4.1K AppWorks
- 8.9K Extended ECM
- 897 Cloud Fax and Notifications
- 77 Digital Asset Management
- 9.3K Documentum
- 29 eDOCS
- 122 Exstream
- 39.8K TeamSite
- 1.7K Web Experience Management