I've installed and configured ATG on my system. I'm using the following configuration for the publishing and production servers:
Publishing
Production
After running the startServerOnJBoss.bat
of my production server, it starts its services. The problem is when I run publishing's startServerOnJBoss.bat
: it shows, immediately this error:
ERROR: transport error 202: bind failed: Address already in use
ERROR: JDWP Transport dt_socket failed to initialize, TRANSPORT_INIT(510)
JDWP exit error AGENT_ERROR_TRANSPORT_INIT(197): No transports initialized [../../../src/share/back/debugInit.c:750]
FATAL ERROR in native method: JDWP No Transports initialized, jvmtiError=AGENT_ERROR_TRANSPORT_INIT(197)
Any idea?
This is because your production and publishing server are using the same port for debugging. In your jboss_home/bin directory, you have run.conf file which has this line setting your debugging port 8787 which will conflict.
set "JAVA_OPTS=%JAVA_OPTS% -Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n"
To use different ports, just make a copy of run.bat and run.conf bat and rename it, and start your publishing server. Make sure to change the debugging port for publishing server.