Announcement Announcement Module
Collapse
No announcement yet.
XML Schema: complexContent/extension Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • #16
    I've packaged app in .war file and the following jars i have in WEB-INF/lib:

    Code:
    acegi-security-1.0.3.jar
    activation-1.1.jar
    aopalliance-1.0.jar
    commons-logging-1.1.jar
    jaxb-api-2.1.jar
    jaxb-impl-2.1.3.jar
    log4j-1.2.12.jar
    mail-1.4.jar
    oro-2.0.8.jar
    saaj-api-1.3.jar
    saaj-impl-1.3.jar
    spring-aop-2.0.5.jar
    spring-beans-2.0.5.jar
    spring-context-2.0.5.jar
    spring-core-2.0.6.jar
    spring-dao-2.0.6.jar
    spring-oxm-1.0-rc3-SNAPSHOT.jar
    spring-oxm-tiger-1.0-rc3-20070815.014704-28.jar
    spring-remoting-2.0.5.jar
    spring-support-2.0.5.jar
    spring-web-2.0.5.jar
    spring-webmvc-2.0.5.jar
    spring-ws-core-1.0-rc3-SNAPSHOT.jar
    spring-ws-core-tiger-1.0-rc3-20070815.014704-28.jar
    spring-ws-security-1.0-rc3-20070815.014704-28.jar
    spring-xml-1.0-rc3-SNAPSHOT.jar
    stax-api-1.0-2.jar
    stax-api-1.0.1.jar
    wsdl4j-1.6.1.jar
    xalan-2.7.0.jar
    xercesImpl-2.8.1.jar
    xml-apis-1.3.03.jar
    xmldsig-1.0.jar
    xmlsec-1.3.0.jar
    xmlsec-2.0.jar
    xws-security-2.0-FCS.jar
    and deployed the .war to the clean apache-tomcat-6.0.13.

    also i've added into the catalina.bat:

    Code:
    set JAVA_OPTS=%JAVA_OPTS% -Djavax.xml.validation.SchemaFactory=org.apache.xerces.jaxp.validation.XMLSchemaFactory
    to noop

    Comment


    • #17
      Please read the bug report carefully. The property to set is:

      Code:
      javax.xml.validation.SchemaFactory:http://www.w3.org/2001/XMLSchema
      Note the semicolon, and the W3C schema reference after it.

      So for tomcat, you would do:

      Code:
      set JAVA_OPTS=%JAVA_OPTS% -Djavax.xml.validation.SchemaFactory:http://www.w3.org/2001/XMLSchema=org.apache.xerces.jaxp.validation.XMLSchemaFactory

      Comment


      • #18
        Thanx, Arjen and res1st.

        It's all validates now!!!

        for jetty i've set:

        Code:
        <plugin>
          <groupId>org.mortbay.jetty</groupId>
          <artifactId>maven-jetty-plugin</artifactId>
          <configuration>
            <systemProperties>
              <systemProperty>
                <name>javax.xml.validation.SchemaFactory</name>
                <value>http\://www.w3.org/2001/XMLSchema=org.apache.xerces.jaxp.validation.XMLSchemaFactory</value>
              </systemProperty>
            </systemProperties>
          </configuration>
        </plugin>
        and for tomcat:

        Code:
        set JAVA_OPTS=%JAVA_OPTS% -Djavax.xml.validation.SchemaFactory:http://www.w3.org/2001/XMLSchema=org.apache.xerces.jaxp.validation.XMLSchemaFactory
        Again, thanx a lot!

        Comment


        • #19
          Great!

          Note that a slightly better solution for Jetty would be this:
          Code:
          <plugin>
            <groupId>org.mortbay.jetty</groupId>
            <artifactId>maven-jetty-plugin</artifactId>
            <configuration>
              <systemProperties>
                <systemProperty>
                 <name>javax.xml.validation.SchemaFactory\:http\://www.w3.org/2001/XMLSchema</name>
                  <value>org.apache.xerces.jaxp.validation.XMLSchemaFactory</value>
                </systemProperty>
              </systemProperties>
            </configuration>
          </plugin>
          Since the property name is "javax.xml.validation.SchemaFactory:http://www.w3.org/2001/XMLSchema", after all.

          Comment

          Working...
          X