Skip to content
This repository has been archived by the owner on Apr 19, 2022. It is now read-only.

Spring Trader applicationContext.xml STS Validation Error #48

Open
stevewallone opened this issue Jun 12, 2013 · 0 comments
Open

Spring Trader applicationContext.xml STS Validation Error #48

stevewallone opened this issue Jun 12, 2013 · 0 comments

Comments

@stevewallone
Copy link

Hello,
I posted this on stackoverflow as well. If you answer it there, I'll be sure to give you the points.

http://stackoverflow.com/questions/17048564/spring-trader-applicationcontext-xml-sts-validation-error

The STS IDE shows an error in the applicationContext.xml in the below snippet. The error states a duplicate definition of id="dataSource" in the second "beans" element definition at line:

<jee:jndi-lookup id="dataSource" jndi-name="jdbc/nanodb" />

Here's the specific error:
Attribute : id
The unique identifier for a bean. A bean id may not be used more than once within the same element.
Data Type : string

It appears to be related to the definition in the first "beans" element. Removing the line from the first beans definition causes the error to go away. Since the definitions are in different "beans" elements, why is this error being reported?

false org.hibernate.dialect.DerbyDialect validate /util:properties true org.hibernate.dialect.PostgreSQLDialect validate /util:properties Why does STS show this as an error?

Environment : STS 3.2.0.RELEASE, Windows

Thanks!
Steve

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant