Is there a way to find the correct port number for the server.startup.bat file?
3 answers
Whenever you run a shell script (bat file on Windows) from the UI (rather than a command prompt) the default OS behavior is to create a command prompt to launch the shell script and then close the command prompt. If you want to see the console output, start the command prompt manually and then run the shell script from the command prompt. This will give you a little more time to investigate any output from the shell script invocation.
As far as the server.startup, essentially it launches a java process and then the rest of the work is done in the Java process, so there's really not much to see in the command prompt as all it does is start the Java process. In this case, the java process is an instance of a web server (e.g. Tomcat or WebSphere, or WebSphere Liberty profile). Depending on which of these web servers you're launching, you need to understand how those servers are administered to find where the port numbers are specified. For Tomcat and Liberty, there is a server.xml file that usually contains the port info. For WebSphere full profile, it's more involved as there are a lot of XML files (or the Admin GUI) that you'll have to go through to get at the info you need.
Comments
Please read https://jazz.net/library/article/1000 carefully. There are suggestions around the debug port.
You also want to provide reasonable context e.g. the OS you run on and the RTC version.
I remeber that there are comments about debugging on one of the blogs: https://rsjazz.wordpress.com/?s=extensions+workshop&submit=Search Linux might be different. The Java Version can also be important.
You can open a console and CD to the server folder to run the startup files from there, then you may be able to see error messages.
Every operating system provides commands to find out which ports are in use. You can find those in the internet e.g. on stackoverlow.
Comments
1) I used the combination Windows 10 and 6.0.6 and have no problem at all.
2) Comment out the lines you added
set JAVA_OPTS=%JAVA_OPTS% -Djava.awt.headless=true
rem set JAVA_OPTS=%JAVA_OPTS% -Xdebug
rem set JAVA_OPTS=%JAVA_OPTS% -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=3388
set JAVA_OPTS=%JAVA_OPTS% -Duser.language=en
save, then start the server by running the server.startup.bat. If it runs now go to 3), otherwise you need to get that fixed. How do you install (ZIP or Installation Manager), where do you install....
3) I followed the instructions and changed the server.startup to
set JAVA_OPTS=%JAVA_OPTS% -Djava.awt.headless=true
set JAVA_OPTS=%JAVA_OPTS% -Xdebug
set JAVA_OPTS=%JAVA_OPTS% -Xrunjdwp:transport=dt_socket,server=y,suspend=n
rem set JAVA_OPTS=%JAVA_OPTS% -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=3388
set JAVA_OPTS=%JAVA_OPTS% -Duser.language=en
I again ran the server.startup from a cmd command console and it shows the port number it chooses as indicated by the workshop.