facebook

XML Editor can not resolve Classes [Closed]

  1. MyEclipse Archived
  2.  > 
  3. Bugs
Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #211181 Reply

    innovate
    Participant

    While 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

    #211182 Reply

    innovate
    Participant

    Sorry,

    MyEclipseIDE 3.8Beta2, Eclipse 3.0 GTK, Linux 2.6.x (Gentoo).

    #211187 Reply

    Riyad Kalla
    Member

    :|…

    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”?

    #211525 Reply

    ruettimac
    Member

    Yes, it was SpringIDE editor …

    #211526 Reply

    Riyad Kalla
    Member

    Ahh, yea we can’t help there 😉

    #250964 Reply

    Andrew Oaten
    Member

    I 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?

    #250974 Reply

    Haris Peco
    Member

    Andrew,

    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

    #251036 Reply

    Andrew Oaten
    Member

    How do you want me to send the source? A zip of the project? To which email account?

    #251049 Reply

    Haris Peco
    Member

    Andrew,

    Send us just application context xml and describe problem (i will add mock classes)

    Best

    #251063 Reply

    Haris Peco
    Member

    Andrew,

    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

Viewing 10 posts - 1 through 10 (of 10 total)
Reply To: XML Editor can not resolve Classes [Closed]

You must be logged in to post in the forum log in