Re: Start separate servlet (358 Views)
Trusted Contributor
Posts: 990
Registered: ‎10-06-2009
Message 1 of 3 (391 Views)

Start separate servlet

How can i start separate servlet from commandline and connect to it from web-client.

(Just need to make log file for one user connection - for troubleshooting)

Honored Contributor
Posts: 513
Registered: ‎04-05-2010
Message 2 of 3 (369 Views)

Re: Start separate servlet

Have a look at How to trace Web client communication through a dedicated port.

Honored Contributor
Posts: 4,177
Registered: ‎07-21-2008
Message 3 of 3 (358 Views)

Re: Start separate servlet

In case you can't access the document, here's the short version.


Within the \RUN directory where you've installed Service Manager (for example ..\Service Manager 9.30\Server\RUN) and run a command like the following:


sm -httpPort:13077 -httpsPort:13078 -debugnode:1 -RTM:3 -debugdbquery:999 -log:..\logs\RADtrace.log -debughttp:1 -soap12binding:0


That will start up a debug node and traffic will not automatically be routed to that port from the load balancer, and the log will go into a file called RADtrace.log within the logs directory, and an httplog file within that directory as well.


To access that servlet via the web, you need to make sure that you've modified the web.xml file honorUrlHost and honorUrlPort parameters have been set to true. If not, then you _can't_ access the servlet from the web.


But, if that is set, then you can access that specific servlet by appending &serverHost=HOSTNAME&serverPort=13077 to the end of your URL.

The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.