You are on page 1of 27

1/28/2020 How to install and setup a PACS (dcm4chee) | Perched on the Shoulders of Giants…

Perched on the Shoulders of Giants…

OPEN SOURCE

HOW TO INSTALL AND SETUP A PACS (DCM4CHEE)


16/09/2015 | DANIEL | 14 COMMENTS

Introduction
A Picture Archiving and Communication System (PACS) is a medical imaging technology which provides economical storage of and
convenient access to images from multiple modalities (source machine types).

In our case we can use it to create pre-production environments to test PACS communications. For example, we can setup a PACS to send
endoscopy images and retrieve radiology samples to an application.

We are going to use the dcm4chee open source solution from dcm4che.org. This is a JEE and JMX system which is deployed within
the JBoss Application Server to provide a number of clinical services. It may be used for a variety of different purposes, the most popular
being:

1. a DICOM archive and image manager


2. a PACS, when coupled with a viewer such as OsiriX, K-PACS, ClearCanvas, Ginkgo CADx, etc.

As a host, trying to use always open source solutions, we are going to use a GNU/Linux operating system, speci cally
Kubuntu 14.04 LTS (Long Term Supported).

 As a database we are going to use PostgresSQL (9.3).


This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. Accept Reject

coneixement.info/blog/?p=143 1/27
1/28/2020 How to install and setup a PACS (dcm4chee) | Perched on the Shoulders of Giants…

We can nd installation instructions at dcm4chee page, but there are not always updated, so I will show all the steps for the current
versions.

Installation of JDK
Although we can use the openjdk that comes with kubuntu, we are going to use the one from Oracle.

First we have to download the package from Oracle site:

http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html

And choose the one that ts our platform (x86 tar.gz in my case)

This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. Accept Reject

coneixement.info/blog/?p=143 2/27
1/28/2020 How to install and setup a PACS (dcm4chee) | Perched on the Shoulders of Giants…

Once decrompressed, just copy the folder to /usr/lib and add the following lines at the end of the ~/.bashrc le:

JAVA_HOME=/usr/lib/jvm/jdk1.8.0_25
PATH=$JAVA_HOME/bin:$PATH
export JAVA_HOME
export PATH

This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. Accept Reject
We can check the version using the command “java -version”
coneixement.info/blog/?p=143 3/27
1/28/2020 How to install and setup a PACS (dcm4chee) | Perched on the Shoulders of Giants…

$ java -version
java version “1.8.0_25”
Java(TM) SE Runtime Environment (build 1.8.0_25-b17)
Java HotSpot(TM) Server VM (build 25.25-b02, mixed mode)

Installation procedure

1. Download and extract the binary distribution package of dcm4chee:


We have to download the latest version of dcm4chee that is relevant to the database we want from sourceforge. In our case, the postgres
one.

2. Download the binary distribution package of JBoss Application Server 4.2.3.GA


Download the binary distribution of JBoss 4.2.3.GA from here and extract it into a different directory.
This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. Accept Reject

coneixement.info/blog/?p=143 4/27
1/28/2020 How to install and setup a PACS (dcm4chee) | Perched on the Shoulders of Giants…

Use neither JBoss 5 nor JBoss 6, because it is completely re-architected and is signi cantly different than the 4.2 line of JBoss! 

If you want to use JDK 5, don’t download JBoss for JDK 6 (jboss-4.2.3.GA-jdk6.zip) – use jboss-4.2.3.GA.zip!

3. Copy les from JBoss to dcm4chee


Go to the dcm4chee-2.18.1-xxx/bin directory and execute the install_jboss.sh script, with the path of your JBoss as installation directory as
a parameter.

For example, if we have JBoss downloaded in the same directory as dcm4chee:

dcm4chee-2.18.0-psql/bin$ sh install_jboss.sh ../../jboss-4.2.3.GA/

4. Install the Database Software and create the DCM4CHEE Database


Set permissions on Postgres database. The following setting will trust only connections from the localhost, which is reasonable for a
development machine, but may need to be changed for production.

Edit the pg_hba.conf le in order to set the right permissions.

$ sudo vim /etc/postgresql/9.3/main/pg_hba.conf

Set a password for the postgres user

$export PGUSER=postgres
$createdb pacsdb
$psql pacsdb -f dcm4chee-psql-2.18.0/sql/create.psql

This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. Accept Reject

coneixement.info/blog/?p=143 5/27
1/28/2020 How to install and setup a PACS (dcm4chee) | Perched on the Shoulders of Giants…

This will create all the database structure. Now we have to setup the database access from dcm4chee. In your dcm4chee installation, use a
text editor to edit server/default/deploy/pacs-postgres-ds.xml and set the database password. This le controls the dcm4chee
connections to the main archive application database.

5. Deploy the Audit Record Repository (ARR)


The Audit Record Repository will help us track any movement in dcm4chee.

Starting with dcm4chee-2.12.0, the binary distribution package of the archive application does NOT include the dcm4chee Audit Record
Repository (ARR) anymore. The ARR maintains an audit log of all transactions within the archive. This is necessary for HIPAA and IHE.
Some dcm4chee deployment scenarios call for the deployment of the ARR in a standalone fashion because it acts as an ARR for more than
one dcm4chee instance, or multiple applications which can take advantage of an external ARR. Commonly though it is deployed within the
dcm4chee archive itself.

Download the latest version from soruceforge related with the database we have chosen (postgres in our case)

This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. Accept Reject

coneixement.info/blog/?p=143 6/27
1/28/2020 How to install and setup a PACS (dcm4chee) | Perched on the Shoulders of Giants…

Go to the dcm4chee-*-xxx/bin directory and execute the install_arr.sh script with the path of the dcm4chee-arr-* installation directory
as parameter.

NOTE: Due to a bug, we have to modify two lines of the installer dcm4chee-2.18.psql/bin/install_arr.sh

VERS=3.0.11 should be VERS=3.0.12

This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. Accept Reject

coneixement.info/blog/?p=143 7/27
1/28/2020 How to install and setup a PACS (dcm4chee) | Perched on the Shoulders of Giants…

cp -v “$ARR_SERV” /lib/dcm4che-core-2.0.25.jar \ should be cp -v “$ARR_SERV” /lib/dcm4che-core-2.0.27.jar \

Now we can run the installer without problem.

dcm4chee-2.18.0-psql/bin$ sh install_arr.sh ../../dcm4chee-arr-3.0.12-psql/

We have to create the arr database in Postgres and create the structure using the script from the dcm4chee-arr sql folder:

dcm4chee-arr-3.0.12-psql/sql$ psql arrdb -f dcm4chee-arr-psql.ddl

Now we have to set the ARR database acces. In your dcm4chee installation, use a text editor to edit server/default/deploy/arr-psql-
ds.xml and set the database password. This le control the dcm4chee connections to the Audit Record Repository (ARR) database.

This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. Accept Reject

coneixement.info/blog/?p=143 8/27
1/28/2020 How to install and setup a PACS (dcm4chee) | Perched on the Shoulders of Giants…

6. Set environment variable JAVA_HOME to JDK location


The dcm4chee startup/shutdown scripts depend on the JAVA_HOME environment variable in order to nd the Java executables and libraries.
For example, if your JDK is installed at “/usr/lib/jvm/jdk1.8.0_25” then that is the path to JAVA_HOME.

If you choose to add in the ~/.bashrc le, remember the PACS would not start unless you start the session.

7. Optional: Adjust maximum allocation of heap memory


Java programs run with a nite amount of memory allocated to them. If you anticipate high volumes of storage and retrievals, or very large
datasets, you may want to increase the max (-Xmx) heap size of the Java process.

Linux/Unix/OSX: dcm4chee-2.xx-xxx/bin/run.conf

# Specify options to pass to the Java VM.


if [ "x$JAVA_OPTS" = "x" ]; then
JAVA_OPTS="-Xms128m -Xmx512m -XX:MaxPermSize=128m ..
fi

according to available RAM and memory requirements of other processes on this node.

E.g.: if only 512 MB RAM are available, you should decrease the default value -Xmx512m to (e.g.) -Xmx300.

8. Test the installation


To test your installation, go to the dcm4chee-2.xx-xxx/bin directory and execute the run.sh script. Your output should look like the
following and contains no error or exception messages:

This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. Accept Reject

coneixement.info/blog/?p=143 9/27
1/28/2020 How to install and setup a PACS (dcm4chee) | Perched on the Shoulders of Giants…

=========================================================================

JBoss Bootstrap Environment

JBOSS_HOME: /home/daniel/Downloads/dcm4chee-2.18.0-psql

JAVA: /usr/lib/jvm/jdk1.8.0_25/bin/java

JAVA_OPTS: -Dprogram.name=run.sh -server -Xms128m -Xmx512m -XX:MaxPermSize=128m -


Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Djboss.messaging.ServerPeerID=0 -
Djavax.xml.transform.TransformerFactory=com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl -
Djava.awt.headless=true -Dapp.name=dcm4chee -Djava.net.preferIPv4Stack=true -
Djava.library.path=/home/daniel/Downloads/dcm4chee-2.18.0-psql/bin/native

CLASSPATH: /home/daniel/Downloads/dcm4chee-2.18.0-psql/bin/run.jar:/usr/lib/jvm/jdk1.8.0_25/lib/tools.jar

=========================================================================

Java HotSpot(TM) Server VM warning: ignoring option MaxPermSize=128m; support was removed in 8.0
19:43:15,087 INFO [Server] Starting JBoss (MX MicroKernel)...
19:43:15,088 INFO [Server] Release ID: JBoss [Trinity] 4.2.3.GA (build: SVNTag=JBoss_4_2_3_GA date=200807181439)
19:43:15,089 INFO [Server] Home Dir: /home/daniel/Downloads/dcm4chee-2.18.0-psql
19:43:15,089 INFO [Server] Home URL: file:/home/daniel/Downloads/dcm4chee-2.18.0-psql/
19:43:15,090 INFO [Server] Patch URL: null
19:43:15,090 INFO [Server] Server Name: default
19:43:15,090 INFO [Server] Server Home Dir: /home/daniel/Downloads/dcm4chee-2.18.0-psql/server/default
19:43:15,090 INFO [Server] Server Home URL: file:/home/daniel/Downloads/dcm4chee-2.18.0-psql/server/default/
19:43:15,090 INFO [Server] Server Log Dir: /home/daniel/Downloads/dcm4chee-2.18.0-psql/server/default/log
19:43:15,090 INFO [Server] Server Temp Dir: /home/daniel/Downloads/dcm4chee-2.18.0-psql/server/default/tmp
This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. Accept Reject
19:43:15,091 INFO [Server] Root Deployment Filename: jboss-service.xml
coneixement.info/blog/?p=143 10/27
1/28/2020 How to install and setup a PACS (dcm4chee) | Perched on the Shoulders of Giants…

19:43:15,359 INFO [ServerInfo] Java version: 1.8.0_25,Oracle Corporation


19:43:15,359 INFO [ServerInfo] Java VM: Java HotSpot(TM) Server VM 25.25-b02,Oracle Corporation
19:43:15,359 INFO [ServerInfo] OS-System: Linux 3.13.0-40-generic,i386
19:43:15,654 INFO [Server] Core system initialized
19:43:17,680 INFO [WebService] Using RMI server codebase: http://daniel-VirtualBox:8083/
19:43:17,682 INFO [Log4jService$URLWatchTimerTask] Configuring from URL: resource:jboss-log4j.xml
19:43:18,095 INFO [TransactionManagerService] JBossTS Transaction Service (JTA version) - JBoss Inc.
....
19:43:49,281 INFO [RequestListenerInterface] registered listener interface [RequestListenerInterface
name=IActivePageBehaviorListener, method=public abstract void
org.apache.wicket.behavior.IBehaviorListener.onRequest()]
19:43:49,281 INFO [Application] [WicketApplication] init: Wicket extensions initializer
19:43:49,281 INFO [WebApplication] [WicketApplication] Started Wicket version 1.4.22 in deployment mode
19:43:49,347 INFO [EARDeployer] Started J2EE application: file:/home/daniel/Downloads/dcm4chee-2.18.0-
psql/server/default/deploy/dcm4chee-web-ear-3.0.4-psql.ear
19:43:49,378 INFO [ServerImpl] Start Server listening on 0.0.0.0:2575
19:43:49,414 INFO [Http11Protocol] Starting Coyote HTTP/1.1 on http-0.0.0.0-8080
19:43:49,440 INFO [Http11Protocol] Starting Coyote HTTP/1.1 on http-8443
19:43:49,460 INFO [AjpProtocol] Starting Coyote AJP/1.3 on ajp-0.0.0.0-8009
19:43:49,472 INFO [ServerImpl] Start Server listening on 0.0.0.0:11112
19:43:49,473 INFO [Server] JBoss (MX MicroKernel) [4.2.3.GA (build: SVNTag=JBoss_4_2_3_GA date=200807181439)]
Started in 34s:379ms

9. Login into web interface


Connect to the Web Interface at http://localhost:8080/dcm4chee-web3/ of the archive using any Web Browser. You should get the User
Login Screen. Login in using default Administrator account ‘admin’, with password ‘admin’.

This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. Accept Reject

coneixement.info/blog/?p=143 11/27
1/28/2020 How to install and setup a PACS (dcm4chee) | Perched on the Shoulders of Giants…

This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. Accept Reject

coneixement.info/blog/?p=143 12/27
1/28/2020 How to install and setup a PACS (dcm4chee) | Perched on the Shoulders of Giants…

10. Login to JMX Console


Connect to JBoss’s JMX Console at http://localhost:8080/jmx-console/ and login using also the Administrator account ‘admin’, with
password ‘admin’.
Follow the link “group=ONLINE_STORAGE,service=FileSystemMgt” to the con guration page for File System Management service under
the “dcm4chee.archive” heading.
Invoke the operation addRWFileSystem(), with argument dirPath specifying the directory, where the archive shall store received
objects/images.

If no Storage File System is con gured, the archive will auto-con gure dcm4chee-2.xx.1-xxx/server/default/archive as Storage File System,
when receiving the rst object/image.

11. Optional: Change the default AE Title


Connect to JBoss’s JMX Console at http://localhost:8080/jmx-console/ and login using also the Administrator account ‘admin’, with
password ‘admin’.

This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. Accept Reject

coneixement.info/blog/?p=143 13/27
1/28/2020 How to install and setup a PACS (dcm4chee) | Perched on the Shoulders of Giants…

Follow the link “service=AE” to the con guration page for AE (Application Entity – a DICOM term for a DICOM node on the network)
service under the “dcm4chee.archive” heading.
Invoke the operation update AETitle with the old AE Title (DCM4CHEE if unchanged from the default), and new AE Title as parameters.
This will update the following con gurations:

update  the “retrieve AET” of le systems, associated to the current retrieve AET of this node
update “retrieve AETs” of all instances, series and studies that have les on these lesystems
update the entry for the “retrieve AE” in the AE Con guration
update the AE Title of all services listed by attribute OtherServiceAETitleAttributesToUpdate
This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. Accept Reject

coneixement.info/blog/?p=143 14/27
1/28/2020 How to install and setup a PACS (dcm4chee) | Perched on the Shoulders of Giants…

12. Install as a service


If running as a service or daemon on any operating system, you should disable CONSOLE logging as noted
here:http://forums.dcm4che.org/jiveforums/thread.jspa?messageID=4787ኳ

After verifying that the archive works, you may want to run it as a service so that it stays running even when you log out. If still running in
the console window, you may stop the archive by Ctrl+C, and copy the init script dcm4chee_init_redhat.sh to /etc/init.d/ and adjust it
according your installation location of the archive and the JDK and under which user the archive application shall run.

SHARE THIS:

       More

Related

Hackers Can Add, Remove Cancer From CT HL7 tools How to set and use passwords in a safety way
Scans: Researchers 16/09/2015 17/10/2016
06/04/2019 In "Health" In "Open Source"
In "Health"

DICOM PACS

14 THOUGHTS ON “HOW TO INSTALL AND SETUP A PACS (DCM4CHEE)”

Gustavo Fernández Guirland


09/03/2016 AT 9:16 PM

This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. Accept Reject

coneixement.info/blog/?p=143 15/27
1/28/2020 How to install and setup a PACS (dcm4chee) | Perched on the Shoulders of Giants…

Felicitaciones por el artículo


Te envié invitación por Linkedin ya que me dedico a Instalación y Soporte de DCM4CHEE

Beginner
15/06/2016 AT 8:40 AM

Hi,
I need help in installing DCM4CHEE.. I have downloaded and extracted all the above said les with the paths:
C:\apps\dcm4chee-2.18.3-mysql
C:\apps\jboss-4.2.3.GA
but when i try to install jboss ,
C:\apps\dcm4chee-2.18.3-mysql\bin>install_jboss.bat C:\apps\jboss-4.2.3.GA
it shows
‘install_jboss.bat’ is not recognized as an internal or external command,
operable program or batch le.

Pls help me go forward

 Daniel
16/06/2016 AT 10:08 PM

Hi,

Please, could you post the content of install_jboss.bat? Which OS are you using?

Regards,

 Daniel
This16/06/2016
website uses cookies
AT 10:06 PM to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. Accept Reject

coneixement.info/blog/?p=143 16/27
1/28/2020 How to install and setup a PACS (dcm4chee) | Perched on the Shoulders of Giants…

Hi Rob,

Could you told me what kind of information is missing?

Regards,

Daniel

Beginner
20/06/2016 AT 10:15 AM

Hi Daniel
i sorted out the problem.. its becoz dcm4chee-2.18.3-mysql version doesnt have an install_jboss.bat le within the folder.. so i tried
other version dcm4chee-2.18.1-mysql. Everything seems ok until i reached the veri cation test. when i execute run.bat it shows error (
I am using Windows10)

‘MySQL’ is not recognized as an internal or external command,


operable program or batch le.
‘MySQL’ is not recognized as an internal or external command,
operable program or batch le.
===============================================================================

JBoss Bootstrap Environment

JBOSS_HOME: C:\apps\dcm4chee-2.18.1-mysql

JAVA: C:\Program Files\Java\jdk1.8.0_91\bin\java

JAVA_OPTS: -Djava.library.path=”C:\apps\dcm4chee-2.18.1-mysql\bin\native” -Dprogram.name=run.bat -server -Xms128m -


ThisXmx512m -XX:MaxPermSize=128m
website uses cookies to improve your-Djboss.messaging.ServerPeerID=0 - this, but you can opt-out if you wish. Accept
experience. We'll assume you're ok with Reject

coneixement.info/blog/?p=143 17/27
1/28/2020 How to install and setup a PACS (dcm4chee) | Perched on the Shoulders of Giants…

Djavax.xml.transform.TransformerFactory=com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl -
Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Dapp.name=dcm4chee

CLASSPATH: C:\Program Files\Java\jdk1.8.0_91\lib\tools.jar;C:\apps\dcm4chee-2.18.1-mysql\bin\run.jar

 Daniel
21/06/2016 AT 8:51 PM

Hi,

It seems it does not nd the mysql command. Could you edit the run.bat le and include the full pah to the mysql command?

Beginner
24/06/2016 AT 7:07 AM

Hi Daniel,
I am sorry that i need more help since m a newbie to programming.. how should i give path to mysql?

This is the full run.bat le :


@echo off
rem ————————————————————————-
rem JBoss Bootstrap Script for Win32
rem ————————————————————————-

rem $Id: run.bat 17856 2013-06-04 10:10:22Z javawilli $

@if not “%ECHO%” == “” echo %ECHO%


@if “%OS%” == “Windows_NT” setlocal

This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. Accept Reject

coneixement.info/blog/?p=143 18/27
1/28/2020 How to install and setup a PACS (dcm4chee) | Perched on the Shoulders of Giants…

set DIRNAME=.\
if “%OS%” == “Windows_NT” set DIRNAME=%~dp0%
set PROGNAME=run.bat
if “%OS%” == “Windows_NT” set PROGNAME=%~nx0%

pushd %DIRNAME%..
set JBOSS_HOME=%CD%
popd

REM Add JBOSS_HOME/bin to the PATH


set PATH=%JBOSS_HOME%\bin;%PATH%

REM Add bin/native to the PATH if present


if exist “%JBOSS_HOME%\bin\native” set PATH=%JBOSS_HOME%\bin\native;%PATH%
if exist “%JBOSS_HOME%\bin\native” set JAVA_OPTS=%JAVA_OPTS% -Djava.library.path=”%JBOSS_HOME%\bin\native”

rem Read all command line arguments

REM
REM The %ARGS% env variable commented out in favor of using %* to include
REM all args in java command line. See bug #840239. [jpl]
REM
REM set ARGS=
REM :loop
REM if [%1] == [] goto endloop
REM set ARGS=%ARGS% %1
REM shift
REM goto loop
REM :endloop
This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. Accept Reject

coneixement.info/blog/?p=143 19/27
1/28/2020 How to install and setup a PACS (dcm4chee) | Perched on the Shoulders of Giants…

rem Find run.jar, or we can’t continue

set RUNJAR=%JBOSS_HOME%\bin\run.jar
if exist “%RUNJAR%” goto FOUND_RUN_JAR
echo Could not locate %RUNJAR%. Please check that you are in the
echo bin directory when running this script.
goto END

:FOUND_RUN_JAR

if not “%JAVA_HOME%” == “” goto ADD_TOOLS

set JAVA=java

echo JAVA_HOME is not set. Unexpected results may occur.


echo Set JAVA_HOME to the directory of your local JDK to avoid this message.
goto SKIP_TOOLS

:ADD_TOOLS

set JAVA=%JAVA_HOME%\bin\java

rem A full JDK with toos.jar is not required anymore since jboss web packages
rem the eclipse jdt compiler and javassist has its own internal compiler.
if not exist “%JAVA_HOME%\lib\tools.jar” goto SKIP_TOOLS

rem If exists, point to the JDK javac compiler in case the user wants to
rem later override the eclipse jdt compiler for compiling JSP pages.
set JAVAC_JAR=%JAVA_HOME%\lib\tools.jar
This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. Accept Reject

coneixement.info/blog/?p=143 20/27
1/28/2020 How to install and setup a PACS (dcm4chee) | Perched on the Shoulders of Giants…

:SKIP_TOOLS

rem If JBOSS_CLASSPATH or JAVAC_JAR is empty, don’t include it, as this will


rem result in including the local directory in the classpath, which makes
rem error tracking harder.
if not “%JAVAC_JAR%” == “” set RUNJAR=%JAVAC_JAR%;%RUNJAR%
if “%JBOSS_CLASSPATH%” == “” set RUN_CLASSPATH=%RUNJAR%
if “%RUN_CLASSPATH%” == “” set RUN_CLASSPATH=%JBOSS_CLASSPATH%;%RUNJAR%

set JBOSS_CLASSPATH=%RUN_CLASSPATH%

rem Setup JBoss speci c properties


set JAVA_OPTS=%JAVA_OPTS% -Dprogram.name=%PROGNAME%

rem Add -server to the JVM options, if supported


“%JAVA%” -version 2>&1 | ndstr /I hotspot > nul
if not errorlevel == 1 (set JAVA_OPTS=%JAVA_OPTS% -server)

rem JVM memory allocation pool parameters. Modify as appropriate.


set JAVA_OPTS=%JAVA_OPTS% -Xms128m -Xmx512m -XX:MaxPermSize=128m

rem Specify the ID of the ServerPeer used by JBoss Messaging. Must be unique per JBoss instance
set JAVA_OPTS=%JAVA_OPTS% -Djboss.messaging.ServerPeerID=0

rem Use Compiling XSLT Processor (XSLTC)


set JAVA_OPTS=%JAVA_OPTS% -
Djavax.xml.transform.TransformerFactory=com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl

rem Uncomment to enable the jconsole agent locally


Thisrem JAVA_OPTS=%JAVA_OPTS%
website -Dcom.sun.management.jmxremote
uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. Accept Reject

coneixement.info/blog/?p=143 21/27
1/28/2020 How to install and setup a PACS (dcm4chee) | Perched on the Shoulders of Giants…

rem Tell JBossAS to use the platform MBean server


rem set JAVA_OPTS=%JAVA_OPTS% -Djboss.platform.mbeanserver
rem Make the platform MBean server able to work with JBossAS MBeans
rem set JAVA_OPTS=%JAVA_OPTS% -Djavax.management.builder.initial=org.jboss.system.server.jmx.MBeanServerBuilderImpl

rem Uncomment to enable the jconsole agent remotely on port 12345 with disabled security and ssl transport
rem set JAVA_OPTS=%JAVA_OPTS% -Dcom.sun.management.jmxremote.port=12345
rem set JAVA_OPTS=%JAVA_OPTS% -Dcom.sun.management.jmxremote.authenticate=false
rem set JAVA_OPTS=%JAVA_OPTS% -Dcom.sun.management.jmxremote.ssl=false

rem With Sun JVMs reduce the RMI GCs to once per hour
set JAVA_OPTS=%JAVA_OPTS% -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000

rem Set app.name used in emitted audit log messages


set JAVA_OPTS=%JAVA_OPTS% -Dapp.name=dcm4chee

rem Set Node Name displayed in web login page


rem (display hostname if dcm4che.archive.nodename isn’t set)
rem set JAVA_OPTS=%JAVA_OPTS% -Ddcm4che.archive.nodename=DCM4CHEE

rem JPDA options. Uncomment and modify as appropriate to enable remote debugging.
rem set JAVA_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=y %JAVA_OPTS%

rem Setup the java endorsed dirs


set JBOSS_ENDORSED_DIRS=%JBOSS_HOME%\lib\endorsed

rem Enable remote access to jboss services and web interface


if “%JBOSS_BIND_ADDR%” == “” set JBOSS_BIND_ADDR=0.0.0.0

This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. Accept Reject

coneixement.info/blog/?p=143 22/27
1/28/2020 How to install and setup a PACS (dcm4chee) | Perched on the Shoulders of Giants…

rem Sample SSL debugging option:


rem set JAVA_OPTS=%JAVA_OPTS% -Djavax.net.debug=ssl,handshake,data,trustmanager,help
rem set JAVA_OPTS=%JAVA_OPTS% -Djavax.net.debug=ssl,handshake

echo ===============================================================================
echo.
echo JBoss Bootstrap Environment
echo.
echo JBOSS_HOME: %JBOSS_HOME%
echo.
echo JAVA: %JAVA%
echo.
echo JAVA_OPTS: %JAVA_OPTS%
echo.
echo CLASSPATH: %JBOSS_CLASSPATH%
echo.
echo ===============================================================================
echo.

:RESTART
“%JAVA%” %JAVA_OPTS% “-Djava.endorsed.dirs=%JBOSS_ENDORSED_DIRS%” -classpath “%JBOSS_CLASSPATH%” org.jboss.Main -
b %JBOSS_BIND_ADDR% %*
if ERRORLEVEL 10 goto RESTART

:END
if “%NOPAUSE%” == “” pause

:END_NO_PAUSE

This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. Accept Reject

coneixement.info/blog/?p=143 23/27
1/28/2020 How to install and setup a PACS (dcm4chee) | Perched on the Shoulders of Giants…

 Daniel
24/06/2016 AT 1:05 PM

Hi,

According to google (https://groups.google.com/forum/#!topic/dcm4che/cwPAbKua7gg) it seems something is wrong with the


mysql installation. Try to use postgresql or maybe an older version of installation les. Or maybe wait for a newer version that x this
bug.

Beginner
05/07/2016 AT 7:19 AM

Hi
I successfully installed dcm4chee and got login screen in webconsole and jmx console. I tried to upload a dicom le to dcm4chee using
command :
dcmsnd DCM4CHEE@localhost:11112 D:\dicom

It gives error as :
Scanning les to send
.
Scanned 1 les in 0.034s (=34ms/ le)
11:40:13,756 INFO – Association(1) initiated Socket[addr=localhost/127.0.0.1,port=11112,localport=55823]
11:40:13,759 INFO – DCM4CHEE(1): A-ASSOCIATE-RQ DCM4CHEE <> DCM4CHEE
Connected to DCM4CHEE@localhost:11112 in 0.073s
11:40:13,813 INFO – DCM4CHEE(1) <> 1:C-STORE-RSP[pcid=1, status=110H
error=java.lang.RuntimeException: Failed to invoke ‘selectStorageFileS
cuid=1.2.840.10008.5.1.4.1.1.7/Secondary Capture Image Storage
iuid=2.16.124.113543.6004.101.103.20021117.190619.1.002.001]
ERROR: Received RSP with Status 0110H for D:\dicom\TG18-BR-1k-01.dcm, cuid=1.2.840.10008.5.1.4.1.1.7,
Thistsuid=1.2.840.10008.1.2
website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. Accept Reject

coneixement.info/blog/?p=143 24/27
1/28/2020 How to install and setup a PACS (dcm4chee) | Perched on the Shoulders of Giants…

(0000,0002) UI #26 [1.2.840.10008.5.1.4.1.1.7] Affected SOP Class UID


(0000,0100) US #2 [32769] Command Field
(0000,0120) US #2 [1] Message ID Being Responded To
(0000,0800) US #2 [257] Command Data Set Type
(0000,0900) US #2 [272] Status
(0000,0902) LO #64 [java.lang.RuntimeException: Failed to invoke ‘selectStorageFileS] Error Comment
(0000,1000) UI #54 [2.16.124.113543.6004.101.103.20021117.190619.1.002.001] Affected SOP Instance UI

F
Sent 0 objects (=0.0KB) in 0.636s (=0.0KB/s)
11:40:14,436 INFO – DCM4CHEE(1) <> A-RELEASE-RP
Released connection to DCM4CHEE@localhost:11112
11:40:14,441 INFO – DCM4CHEE(1): close Socket[addr=localhost/127.0.0.1,port=11112,localport=55823]

Please help in resolving this …

 Daniel
05/07/2016 AT 9:54 PM

Hi,

It seems there is run out of space. Sorry, but I can’t help you. If you google it for this error, you will nd information:
https://groups.google.com/forum/#!topic/dcm4che/uJ87PCK4lvY
http://www.dcm4che.org/jira/browse/DCMEE-1095

Regards,

Kevin
This20/03/2017
website uses cookies
AT 8:54 AM to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. Accept Reject

coneixement.info/blog/?p=143 25/27
1/28/2020 How to install and setup a PACS (dcm4chee) | Perched on the Shoulders of Giants…

Thank you very much


Can you guide to install PACS viewer also.

 Daniel
22/03/2017 AT 10:00 PM

You are welcome. I have not installed PACS viewer. Sorry.

Samuel Vazquez
13/01/2019 AT 11:23 PM

Hi Dany , i have a DCMROUTER install OK this DCM have Weasys, ando Oviyam, but I need setup a second aetitle

it`s Work ne whit the default Parameters Por 11112 Aetitle DCM4CHEE, now need con gure a second Port and Aetitle

Can you help me, to way a con gure this feature?

Regards

Samuel VL

 Daniel
23/01/2019 AT 10:12 PM

Hi Samuel,

It’s been a while since I played with dcm4chee. Perhaps you will nd some clue inside the AE Title con guration documentation:
https://dcm4che.atlassian.net/wiki/spaces/ee2/pages/2555914/AE+Title+Con guration+Service

This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. Accept Reject

coneixement.info/blog/?p=143 26/27
1/28/2020 How to install and setup a PACS (dcm4chee) | Perched on the Shoulders of Giants…

This site uses Akismet to reduce spam. Learn how your comment data is processed.

This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. Accept Reject

coneixement.info/blog/?p=143 27/27

You might also like