Announcement Announcement Module
Collapse
No announcement yet.
Failed to read schema document and cannot find class [xxx] for bean Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Failed to read schema document and cannot find class [xxx] for bean

    Hi everyone,
    I'm writing a plugin with config file out of that plugin, and I get some follow issues:
    1- Failed to read schema document:
    In file config, 'http://www.springframework.org/schema/beans/spring-beans.xsd ' doesn't work. I tried some solutions by goolge like get this file via classpath:

    a- Replace it in file config by http\://www.springframework.org/schema/beans/spring-beans.xsd=org/springframework/beans/factory/xml/spring-beans-3.1.xsd (my spring version is 3.1.1) but it doesn't work, org.springframework.beans_3.1.1.RELEASE.jar which contains spring-beans-3.1.xsd is in project plugin- dependencies, I also tried move it to runtime-classpath but it doesn't work too

    b- Create META-INF\spring.schemas in project and add http\://www.springframework.org/schema/beans/spring-beans.xsd=org/springframework/beans/factory/xml/spring-beans-3.1.xsd, but it doesn't work too

    c- Replace 'http://www.springframework.org/schema/beans/spring-beans.xsd' by an absolute filename, it works for me but disadvantage is not portable

    May be I config classpath wrong way, but I don't have any idea for it.

    2- If .xsd is regconized, I face new issue
    Cannot find class [sample.bean.xml.reader.UIXmlParser] for bean with name 'helloWorld' defined in URL [file:/Project/test_headless/test_input/Beans.xml]; nested exception is java.lang.ClassNotFoundException: sample.bean.xml.reader.UIXmlParser

    Config file can't see my class in plugin, I tried to google it, but don't have any solution for this problem

    Could you please give me your ideas?
    Thanks you so much
Working...
X