• 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:
  • Campbell Ritchie
  • Paul Clapham
  • Tim Cooke
  • Ron McLeod
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Junilu Lacar
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Stephan van Hulst
  • Peter Rooke
  • Mikalai Zaikin
Bartenders:
  • Himai Minh

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


 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic