- This topic has 9 replies, 5 voices, and was last updated 18 years, 10 months ago by
Haris Peco.
-
AuthorPosts
-
innovateParticipantWhile editing a spring context file, the XML Editor complains about classes which are not in the classpath or whatever. But they are! Following is a snippet of such a file:
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd"> <beans> <bean class="org.springframework.jdbc.datasource.DriverManagerDataSource" id="dataSource"> <property name="driverClassName"> <value>com.mysql.jdbc.Driver</value> </property> <property name="url"> <value>jdbc:mysql://localhost:3306/myusers</value> </property> <property name="username"> <value>spring</value> </property> <property name="password"> <value></value> </property> </bean> </beans>
In this particular case, the class org.springframework.jdbc.datasource.DriverManagerDataSource can not be found by the XML Editor, visualized with a red circle on the left side.
Regards,
Cyrill
innovateParticipantSorry,
MyEclipseIDE 3.8Beta2, Eclipse 3.0 GTK, Linux 2.6.x (Gentoo).
Riyad KallaMember:|…
We don’t do any sort of class resolution in the XML Editor… are you sure you are using our editor? Can you right click the XML file, go to OPen With and use “MyEclipse XML Editor”?
ruettimacMemberYes, it was SpringIDE editor …
Riyad KallaMemberAhh, yea we can’t help there 😉
Andrew OatenMemberI can open the XML file with “MyEclipse Spring Config Editor” and the class is not found although it is there.
I guess SpringIDE is incorporated into MyEclipse as I’ve not installed it.
I’m also getting “Referenced bean ‘XXXXXX’ not found on each spring config file. The application is working fine but SpringIDE / MyEclipse is confused. Does the bean resolution only work if all the spring beans are in one file?
Haris PecoMemberAndrew,
Have you example, please ?
There are some cases when problems exists and it will be fixed in next release, but I would like test your case, too
It isn’t important if you have more files than property editors in spring, but example is best
Thanks
Andrew OatenMemberHow do you want me to send the source? A zip of the project? To which email account?
Haris PecoMemberAndrew,
Send us just application context xml and describe problem (i will add mock classes)
Best
Haris PecoMemberAndrew,
I got your xml file and screenshots and i don’t sure what is problem.It looks good for me
For example – there isn’t error in line ‘<!– Update –>’, i have error for bean ‘updateProcessor’,
but when i add class error disappear etc
What is your version eclipse and myeclipse and can you try describe problem, please ?Thanks
-
AuthorPosts