Win a copy of Beginning Java 17 Fundamentals: Object-Oriented Programming in Java 17 this week in the Java in General forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

removing Duplicate properties in the resources.cml file

 
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all,

we got a config error mesg in WAS61 console saying that there is a duplicate name 'URL' exists in resources.xml file at particular location of appl. server in config dir.

From our observation we found there are 5 properties with name as URL as mentioned below.
1. <resourceProperties xmi:id="J2EEResourceProperty_1248106890890" name="URL" type="java.lang.String" value="jdbc:oracle:thin:@//remote_ip:port/db" required="false" /> under <propertySet xmi:id="J2EEResourcePropertySet_1248106068839">

2. <resourceProperties xmi:id="J2EEResourceProperty_1248106941125" name="URL" type="java.lang.String" value="jdbc:oracle:thin:@//remote_ip:port/db" required="false" /> under <propertySet xmi:id="J2EEResourcePropertySet_1248106400744">


3. <resourceProperties xmi:id="J2EEResourceProperty_1248105272599" name="URL" type="java.lang.String" value="jdbc:oracle:thin:@//remote_ip:port/db" description="This is a required property. The URL indicating the database from which the Data Source will obtain connections, such as 'jdbc:oracle:thin:@localhost:1521:sample' for thin driver and 'jdbc:oracle:oci8:@sample' for thick driver." required="true" /> under
<propertySet xmi:id="J2EEResourcePropertySet_1248105272586">
4. <resourceProperties xmi:id="J2EEResourceProperty_1248106826194" name="URL" type="java.lang.String" value="jdbc:oracle:thin:@//remote_ip:port/db" required="false" /> under <propertySet xmi:id="J2EEResourcePropertySet_1248105272586">

5. <resourceProperties xmi:id="J2EEResourceProperty_1248105688438" name="URL" type="java.lang.String" value="jdbc:oracle:thin:@//remote_ip:port/db" description="This is a required property. The URL indicating the database from which the Data Source will obtain connections, such as 'jdbc:oracle:thin:@localhost:1521:sample' for thin driver and 'jdbc:oracle:oci8:@sample' for thick driver." required="true" /> under <propertySet xmi:id="J2EEResourcePropertySet_1248105688424">

If we can observe params 3 and 4 are both under <propertySet xmi:id="J2EEResourcePropertySet_1248105272586"> and values of remote_ip, port and db are same on all the 5.

Now our concern is

> which one we have to remove and how to select among them.
> What is the best way to remove.
> Is there any other file that needs to be changed.
> do we need stop/start server before or after the change.

Kindly help me in this regard.
Thanks


 
WHAT is your favorite color? Blue, no yellow, ahhhhhhh! Tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic