0 Replies Latest reply: Feb 22, 2013 12:26 AM by 689442 RSS

    weblogic AbstractDataBinding.addSchemaDocument

    689442
      I deploy a web project which use cxf 2.7.3+spring 3.2.1+hibernate 4.2.0. to weblogic 12c
      But I get error: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'WebServiceSecurity': Invocation of init method failed; nested exception is javax.xml.ws.WebServiceException: java.lang.RuntimeException: Invalid schema document passed to AbstractDataBinding.addSchemaDocument, not in W3C schema namespace: schema
      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1486)

      How to deploy to weblogic 12c?

      Thanks

      My weblogic-application.xml is as follows:
       
      <?xml version="1.0" encoding="UTF-8"?>
      <weblogic-application xmlns="http://www.bea.com/ns/weblogic/90">
          <application-param>
              <param-name>webapp.encoding.default</param-name>
              <param-value>UTF-8</param-value>
          </application-param>
          <prefer-application-packages>
              <package-name>javax.jws.*</package-name>
              <package-name>org.apache.*</package-name>
              <package-name>antlr.*</package-name>
               <package-name>org.apache.xml.security.*</package-name>
          </prefer-application-packages>
      </weblogic-application>
       
      weblogic.xml contents as follow:
       
      <?xml version="1.0" encoding="UTF-8"?>
      <!DOCTYPE weblogic-web-app PUBLIC "-//BEA Systems, Inc.//DTD Web Application 8.1//EN" "http://www.bea.com/servers/wls810/dtd/weblogic810-web-jar.dtd">
      <weblogic-web-app>
          <jsp-descriptor>
              <jsp-param>
                  <param-name>pageCheckSeconds</param-name>
                  <param-value>3000</param-value>
              </jsp-param>
          </jsp-descriptor>
          <container-descriptor>
              <index-directory-enabled>false</index-directory-enabled>
              <prefer-web-inf-classes>true</prefer-web-inf-classes>
          </container-descriptor>
          <context-root>/</context-root>
          
      </weblogic-web-app>