2017-09-13 5 views
0

エラーが発生します。WSDLとのWeblogic 12.2 - CXF 3.1 - JAXB 2.2 - 展開:エラーjavax.xml.ws.WebServiceException:java.lang.IllegalStateException:WebLogic Serverの起動時に接頭辞Xがバインドされていない

問題生成された:それは@XmlRootElementで定義されている間

org.springframework.beans.factory.BeanCreationException: Error creating bean with name '': Invocation of init method failed; nested exception is javax.xml.ws.WebServiceException: java.lang.IllegalStateException: The prefix X is not bound. 
 
     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1578) 
 
     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:545) 
 
     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482) 
 
Caused by: javax.xml.ws.WebServiceException: java.lang.IllegalStateException: The prefix X is not bound. 
 
     at org.apache.cxf.jaxws.EndpointImpl.doPublish(EndpointImpl.java:375) 
 
     at org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:255) 
 
     at org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:543) 
 
Caused by: java.lang.IllegalStateException: The prefix X is not bound. 
 
     at org.apache.ws.commons.schema.SchemaBuilder.getRefQName(SchemaBuilder.java:823) 
 
     at org.apache.ws.commons.schema.SchemaBuilder.getRefQName(SchemaBuilder.java:831)

名前空間は、要素のルート上に見つからない

ここ

SchemaBuilder.getRefQNameソースコード:

https://github.com/wso2/wso2-xmlschema/blob/master/xmlschema/src/main/java/org/apache/ws/commons/schema/SchemaBuilder.java

 prefix = pName.substring(0, offset); 
     uri = NodeNamespaceContext.getNamespaceURI(pNode, prefix); 
     if (uri == null || Constants.NULL_NS_URI.equals(uri)) { 
      if (schema.parent != null 
        && schema.parent.getNamespaceContext() != null) { 
       uri = schema.parent.getNamespaceContext().getNamespaceURI(
         prefix); 
      } 
     } 

     if (uri == null || Constants.NULL_NS_URI.equals(uri)) { 
      throw new IllegalStateException("The prefix " + prefix 
        + " is not bound."); 
     } 

任意のアイデアしてください?

答えて

0

バージョン互換性の問題を避けるためには、プロジェクトにweblogicライブラリを強制的に使用することをお勧めします。

0

私の問題は、Javaエンティティで定義された@XmlType注釈にな名前空間追加することによって解決される:

@XmlType(名= ""、propOrder = { "elt1"、 "elt2"、 "elt3"} 、namespace = "http:// xyz"

関連する問題