I changed the ports configuration, using the recommended
how to, but it didn´t solve the problem.
My changes resulted in the following port configuration:
Startup completed in 73 seconds
Listening on Ports:
1099 0.0.0.0 RMI Naming
1527 0.0.0.0 Derby Connector
1527 208.xx.yy.zzz Derby Connector
4201 0.0.0.0 ActiveIO Connector EJB
4242 0.0.0.0 Remote Login Listener
8309 0.0.0.0 Jetty Connector AJP13
8380 0.0.0.0 Jetty Connector HTTP
8743 0.0.0.0 Jetty Connector HTTPS
9999 0.0.0.0 JMX Remoting Connector
61616 0.0.0.0 ActiveMQ Message Broker Connector
Please note that ports 1099 and 1257 were not changed because changing the configuration files on the above "how-to" was not enough to change the ports used in these two cases. I was not able to identify what other configurations changes should be made to realy change these ports.
However, I noticed that on windows, the logs entries for Derby connector points to port 1527 x IP 127.0.0.1 and port 1528 x IP 0.0.0.0, which is different from logs on my linux server as seen above. Checking the derby log (on ../var/derby/derby.log), I found the following:
"Could not listen on port 1527 on host 208.xx.yy.zzz.
An exception was thrown during network server startup. DRDA_ListenPort.S:Could not listen on port 1527 on host 208.xx.yy.zzz.
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at ...sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.derby.iapi.jdbc.DRDAServerStarter.run(Unknown Source)
at java.lang.Thread.run(Thread.java:595)
Caused by: java.lang.Exception: DRDA_ListenPort.S:Could not listen on port 1527 on host 208.xx.yy.zzz.
at org.apache.derby.impl.drda.NetworkServerControlImpl.consolePropertyMessageWork(Unknown Source)
at org.apache.derby.impl.drda.NetworkServerControlImpl.consolePropertyMessage(Unknown Source)
at org.apache.derby.impl.drda.NetworkServerControlImpl.blockingStart(Unknown Source)"
So, maybe the problem is on port 1527 but how can I change it ? Or maybe I should try changing to MySql ?
regards
Antoine wrote:The default port for the server is 8080, I think there are other ports taken, I just cannot find the document listing them now (mainly all the Geronimo ports, like 1099 for RMI).
If you want to change your ports, there is a how to, it needs to be updated for 5.0 though.
Hope this helps.
Antoine