- This topic has 9 replies, 5 voices, and was last updated 19 years, 2 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
July 30, 2004 at 6:45 am #211182
innovateParticipantSorry,
MyEclipseIDE 3.8Beta2, Eclipse 3.0 GTK, Linux 2.6.x (Gentoo).
July 30, 2004 at 8:42 am #211187
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”?
August 4, 2004 at 4:31 pm #211525
ruettimacMemberYes, it was SpringIDE editor …
August 4, 2004 at 4:35 pm #211526
Riyad KallaMemberAhh, yea we can’t help there 😉
April 24, 2006 at 9:10 am #250964
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?
April 24, 2006 at 10:04 am #250974
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
April 25, 2006 at 1:45 am #251036
Andrew OatenMemberHow do you want me to send the source? A zip of the project? To which email account?
April 25, 2006 at 8:03 am #251049
Haris PecoMemberAndrew,
Send us just application context xml and describe problem (i will add mock classes)
Best
April 25, 2006 at 9:59 am #251063
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