[CORE-79] Error In pm-ds.xml file Created: 27/Sep/13  Updated: 05/Jun/14  Resolved: 12/May/14

Status: Closed
Project: i2b2 Core Software
Component/s: Install, PM Cell
Affects Version/s: 1.7.00-RC1
Fix Version/s: None

Type: Bug Priority: Major
Reporter: George Kowalski Assignee: Mike Mendis
Resolution: Cannot Reproduce Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment: Centos 6.4 in VM using postgres 9.1 1.7.0 RC2 is what I have but it's not in upur Version list in Jira

Rank: 0|i000pz:
Participant/s:

 Description   
In doing my first deploy of the PM module I received the following error in the JBoss log :

I needed to change the pool-name to something different ( I used PMBootStrapDSPool , below ) than the jndi-name and redeploy this file , then it worked :

Log of failure :

5 INFO [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) JBAS015014: Re-attempting failed deployment i2b2.war
11:28:27,994 INFO [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) JBAS015003: Found i2b2.war in deployment directory. To trigger deployment create a file called i2b2.war.dodeploy
11:28:28,035 INFO [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-2) JBAS010400: Bound data source [java:jboss/datasources/ExampleDS]
11:28:28,061 ERROR [org.jboss.as.controller.management-operation] (DeploymentScanner-threads - 2) Operation ("add") failed - address: ([("deployment" => "pm-ds.xml")]) - failure description: "JBAS014803: Duplicate resource [(\"deployment\" => \"pm-ds.xml\")]"
11:28:28,065 INFO [org.jboss.as] (Controller Boot Thread) JBAS015951: Admin console listening on http://127.0.0.1:9990
11:28:28,066 INFO [org.jboss.as] (Controller Boot Thread) JBAS015874: JBoss AS 7.1.1.Final "Brontes" started in 3606ms - Started 133 of 208 services (74 services are passive or on-demand)

File that worked with new pool name :

<?xml version="1.0" encoding="UTF-8"?>
<datasources xmlns="http://www.jboss.org/ironjacamar/schema">
        <datasource jta="false" jndi-name="java:/PMBootStrapDS" pool-name="PMBootStrapDSPool" enabled="true" use-ccm="false">
                <connection-url>jdbc:postgresql://xxx.xxx.xxx.xxx:5432/postgres?searchpath=i2b2pm&lt;/connection-url>
                <driver>postgresql-9.2-1002.jdbc4.jar</driver>
                <security>
                        <user-name>i2b2pm</user-name>
                        <password>demouser</password>
                </security>
                <validation>
                        <validate-on-match>false</validate-on-match>
                        <background-validation>false</background-validation>
                </validation>
                <statement>
                        <share-prepared-statements>false</share-prepared-statements>
                </statement>
        </datasource>
</datasources>



 Comments   
Comment by Mike Mendis [ 10/Jan/14 ]
Was the oracle PMBootStrapDSPool also deployed which could explain the duplicate deployment?
Generated at Fri Apr 26 23:15:20 UTC 2024 using Jira 8.20.11#820011-sha1:0629dd8d260e3954ece49053e565d01dabe11609.