Cannot access the second dcm4chee jboss server

172 views
Skip to first unread message

GOKHAN DILEK

unread,
Jul 9, 2014, 2:36:50 AM7/9/14
to dcm...@googlegroups.com
Hi there,

I am trying to set up multiple archive instances.

ubuntu 10.4
postgresql 9.3
java oracle sdk 7
dcm4cheepostgresql 2.18.0

I can access the server using 2 different IPs from an external location.

This is what I have done so far:

2. Download all the packages, etc., set up exactly as for single instance and get it working
3. In the jmx-console, set the Local Address for DcmServer, HL7Server, TCPListener, UDPListener to the first IP address.( I managed to save DcmServer, HL7Server but I cannot see TCPlistener and UDP listerner for some reason)
4. Quit the server. This is the run terminal I was running and I quit that
5. Create two more databases, one for pacs, one for arr. I used "pacsdb2" and "arrdb2", with the same user as for the first server.
6. Copy dcm4chee/server/default to dcm4chee/server/newone (my goal was to support both plain and tls connections, the name "tls" is arbitrary)
$ cp -R default tls
7. Edit tls/deploy/pacs-<database>-ds.xml and tls/deploy/arr-<database>-ds.xml and change the dbnames to the new ones created in step 5.
8. Edit default/conf/jboss-log4j.xml and tls/conf/jboss-log4j.xml, changing "localhost" to the the desired IP address:
<param name="Host" value="10.20.30.10" />, <param name="Host" value="10.20.30.11" />


When I try to access ip1:8080/jmx-console and ip2:8080/jmx-console they are basically showing the same archive settings (I confirmed this by checking the dcmserver ip and hl7server ip. Checked the ip1:8080/jmxconsole and the ip2:8080/jmx-console configurations are the same.

I also sent some dicom files from an external location to the IP1 which recieved the images and managed to access the /dcm4chee-web3 & saw the items.

The problem is when I access the IP2, it shows the same images that I sent to IP1 (hope it is making sense)

I managed to run run.sh for ip1 and run.sh for ip2 without any error...

I am not sure what I am missing here and any help would be apprecited.

Thank you.

GOKHAN DILEK

unread,
Jul 9, 2014, 7:26:54 AM7/9/14
to
oK.
edited...

GOKHAN DILEK

unread,
Jul 9, 2014, 11:21:01 AM7/9/14
to dcm...@googlegroups.com
It looks like my IP binding is not working at all.
I can run the first server IP#1 but the second one fails to load the HL7 and the dicom server(IP#2).

Here is the log below:

08:17:47,979 INFO  [ServerImpl] Start Server listening on IP#1:2575
08:17:47,979 ERROR [HL7ServerService] Start of HL7 Server failed!
java
.net.BindException: Address already in use
        at java
.net.PlainSocketImpl.socketBind(Native Method)
        at java
.net.AbstractPlainSocketImpl.bind(AbstractPlainSocketImpl.java:376)
        at java
.net.ServerSocket.bind(ServerSocket.java:376)
        at java
.net.ServerSocket.<init>(ServerSocket.java:237)
        at javax
.net.DefaultServerSocketFactory.createServerSocket(ServerSocketFactory.java:231)
        at org
.dcm4cheri.server.ServerImpl.start(ServerImpl.java:240)
        at org
.dcm4chex.archive.hl7.HL7ServerService.startHL7Server(HL7ServerService.java:392)
        at org
.dcm4chex.archive.hl7.HL7ServerService.handleNotification(HL7ServerService.java:382)
        at sun
.reflect.GeneratedMethodAccessor5.invoke(Unknown Source)
        at sun
.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java
.lang.reflect.Method.invoke(Method.java:606)
        at org
.jboss.mx.notification.NotificationListenerProxy.invoke(NotificationListenerProxy.java:153)
        at com
.sun.proxy.$Proxy252.handleNotification(Unknown Source)
        at org
.jboss.mx.util.JBossNotificationBroadcasterSupport.handleNotification(JBossNotificationBroadcasterSupport.java:127)
        at org
.jboss.mx.util.JBossNotificationBroadcasterSupport.sendNotification(JBossNotificationBroadcasterSupport.java:108)
        at org
.jboss.system.server.ServerImpl.sendNotification(ServerImpl.java:916)
        at org
.jboss.system.server.ServerImpl.doStart(ServerImpl.java:497)
        at org
.jboss.system.server.ServerImpl.start(ServerImpl.java:362)
        at org
.jboss.Main.boot(Main.java:200)
        at org
.jboss.Main$1.run(Main.java:508)
        at java
.lang.Thread.run(Thread.java:745)
08:17:47,986 INFO  [Http11Protocol] Starting Coyote HTTP/1.1 on http-IP#2-8080
08:17:48,009 ERROR [Http11Protocol] Error starting endpoint
java
.net.BindException: Address already in use:8443
        at org
.apache.tomcat.util.net.JIoEndpoint.init(JIoEndpoint.java:500)
        at org
.apache.tomcat.util.net.JIoEndpoint.start(JIoEndpoint.java:514)
        at org
.apache.coyote.http11.Http11Protocol.start(Http11Protocol.java:203)
        at org
.apache.catalina.connector.Connector.start(Connector.java:1146)
        at org
.jboss.web.tomcat.service.JBossWeb.startConnectors(JBossWeb.java:601)
        at org
.jboss.web.tomcat.service.JBossWeb.handleNotification(JBossWeb.java:638)
        at sun
.reflect.GeneratedMethodAccessor5.invoke(Unknown Source)
        at sun
.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java
.lang.reflect.Method.invoke(Method.java:606)
        at org
.jboss.mx.notification.NotificationListenerProxy.invoke(NotificationListenerProxy.java:153)
        at com
.sun.proxy.$Proxy48.handleNotification(Unknown Source)
        at org
.jboss.mx.util.JBossNotificationBroadcasterSupport.handleNotification(JBossNotificationBroadcasterSupport.java:127)
        at org
.jboss.mx.util.JBossNotificationBroadcasterSupport.sendNotification(JBossNotificationBroadcasterSupport.java:108)
        at org
.jboss.system.server.ServerImpl.sendNotification(ServerImpl.java:916)
        at org
.jboss.system.server.ServerImpl.doStart(ServerImpl.java:497)
        at org
.jboss.system.server.ServerImpl.start(ServerImpl.java:362)
        at org
.jboss.Main.boot(Main.java:200)
        at org
.jboss.Main$1.run(Main.java:508)
        at java
.lang.Thread.run(Thread.java:745)
08:17:48,010 WARN  [JBossWeb] Failed to startConnectors
LifecycleException:  service.getName(): "jboss.web";  Protocol handler start failed: java.net.BindException: Address already in use:8443
        at org
.apache.catalina.connector.Connector.start(Connector.java:1153)
        at org
.jboss.web.tomcat.service.JBossWeb.startConnectors(JBossWeb.java:601)
        at org
.jboss.web.tomcat.service.JBossWeb.handleNotification(JBossWeb.java:638)
        at sun
.reflect.GeneratedMethodAccessor5.invoke(Unknown Source)
        at sun
.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java
.lang.reflect.Method.invoke(Method.java:606)
        at org
.jboss.mx.notification.NotificationListenerProxy.invoke(NotificationListenerProxy.java:153)
        at com
.sun.proxy.$Proxy48.handleNotification(Unknown Source)
        at org
.jboss.mx.util.JBossNotificationBroadcasterSupport.handleNotification(JBossNotificationBroadcasterSupport.java:127)
        at org
.jboss.mx.util.JBossNotificationBroadcasterSupport.sendNotification(JBossNotificationBroadcasterSupport.java:108)
        at org
.jboss.system.server.ServerImpl.sendNotification(ServerImpl.java:916)
        at org
.jboss.system.server.ServerImpl.doStart(ServerImpl.java:497)
        at org
.jboss.system.server.ServerImpl.start(ServerImpl.java:362)
        at org
.jboss.Main.boot(Main.java:200)
        at org
.jboss.Main$1.run(Main.java:508)
        at java
.lang.Thread.run(Thread.java:745)
08:17:48,010 INFO  [ServerImpl] Start Server listening on IP#1:11112
08:17:48,010 ERROR [DcmServerService] Start DICOM Server failed!
java
.net.BindException: Address already in use
        at java
.net.PlainSocketImpl.socketBind(Native Method)
        at java
.net.AbstractPlainSocketImpl.bind(AbstractPlainSocketImpl.java:376)
        at java
.net.ServerSocket.bind(ServerSocket.java:376)
        at java
.net.ServerSocket.<init>(ServerSocket.java:237)
        at javax
.net.DefaultServerSocketFactory.createServerSocket(ServerSocketFactory.java:231)
        at org
.dcm4cheri.server.ServerImpl.start(ServerImpl.java:240)
        at org
.dcm4chex.archive.dcm.DcmServerService.startDicomServer(DcmServerService.java:284)
        at org
.dcm4chex.archive.dcm.DcmServerService.handleNotification(DcmServerService.java:274)
        at sun
.reflect.GeneratedMethodAccessor5.invoke(Unknown Source)
        at sun
.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java
.lang.reflect.Method.invoke(Method.java:606)
        at org
.jboss.mx.notification.NotificationListenerProxy.invoke(NotificationListenerProxy.java:153)
        at com
.sun.proxy.$Proxy253.handleNotification(Unknown Source)
        at org
.jboss.mx.util.JBossNotificationBroadcasterSupport.handleNotification(JBossNotificationBroadcasterSupport.java:127)
        at org
.jboss.mx.util.JBossNotificationBroadcasterSupport.sendNotification(JBossNotificationBroadcasterSupport.java:108)
        at org
.jboss.system.server.ServerImpl.sendNotification(ServerImpl.java:916)
        at org
.jboss.system.server.ServerImpl.doStart(ServerImpl.java:497)
        at org
.jboss.system.server.ServerImpl.start(ServerImpl.java:362)
        at org
.jboss.Main.boot(Main.java:200)
        at org
.jboss.Main$1.run(Main.java:508)
        at java
.lang.Thread.run(Thread.java:745)
08:17:48,011 INFO  [Server] JBoss (MX MicroKernel) [4.2.3.GA (build: SVNTag=JBoss_4_2_3_GA date=200807181417)] Started in 22s:147ms





On Wednesday, July 9, 2014 2:36:50 PM UTC+8, GOKHAN DILEK wrote:

GOKHAN DILEK

unread,
Jul 10, 2014, 3:03:03 AM7/10/14
to dcm...@googlegroups.com

I have tried ./run.sh -c second -b #IP2 and ./run.sh -default -b #IP2 still the same. I cannot run the second server comes up with the same error above.


On Wednesday, July 9, 2014 2:36:50 PM UTC+8, GOKHAN DILEK wrote:

GOKHAN DILEK

unread,
Jul 10, 2014, 5:00:04 AM7/10/14
to dcm...@googlegroups.com
More updates:

I got the two server up and running now.

They received the studies (sent 1 study to the ip#1 and another study to ip#2).

When I login to the IP#1's archive is the same as ip#2's archive. I cannot see the different studies.

Is this something to do with my database connection?

I am using localhost for both of the databasepsql.xml files. When I tried to write the specific IP addresses the database connection can not be established.



On Wednesday, July 9, 2014 2:36:50 PM UTC+8, GOKHAN DILEK wrote:

GOKHAN DILEK

unread,
Jul 13, 2014, 4:00:25 AM7/13/14
to dcm...@googlegroups.com
Still having problems accessing the images of the second IP. 

Anyone knows what else I should be checking? 

Thank you.


On Wednesday, July 9, 2014 2:36:50 PM UTC+8, GOKHAN DILEK wrote:
Reply all
Reply to author
Forward
0 new messages