[jboss-user] [JBossWS] - org.jboss.ws.WSException: Cannot load schema: [file:/C:/jbos

Josef@logistikpur.com do-not-reply at jboss.com
Fri Sep 1 08:18:59 EDT 2006


hello

we are using jboss-4.0.4.GA-Patch1-installer.jar default! ejb2.1
win xp sp2
java version "1.5.0_08"


***when i generate a webservice from a stateless session bean
...

***webservices.xml
<?xml version="1.0" encoding="UTF-8"?>
<webservices xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/j2ee_web_services_1_1.xsd" version="1.1" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <webservice-description>
    <display-name>PartnerFacService</display-name>
    <webservice-description-name>PartnerFacService</webservice-description-name>
    <wsdl-file>META-INF/wsdl/PartnerFac.wsdl</wsdl-file>
    <jaxrpc-mapping-file>META-INF/PartnerFac.xml</jaxrpc-mapping-file>
    <port-component>
      <port-component-name>PartnerFacPort</port-component-name>
      <wsdl-port xmlns:ejb="http://ejbfac.partner.server.lp.com">ejb:PartnerFacPort</wsdl-port>
      <service-endpoint-interface>com.lp.server.partner.ejbfac.PartnerFacWebService</service-endpoint-interface>
      <service-impl-bean>
        <ejb-link>PartnerFac</ejb-link>
      </service-impl-bean>
    </port-component>
  </webservice-description>




***META-INF/PartnerFac.wsdl
<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions targetNamespace="http://service.partner.server.lp.com" xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns:impl="http://service.partner.server.lp.com" xmlns:intf="http://service.partner.server.lp.com" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns2="http://sql.java" xmlns:tns3="http://service.system.server.lp.com" xmlns:tns4="http://util.java" xmlns:tns5="http://util.lp.com" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<!--WSDL created by Apache Axis version: 1.2.1
Built on Aug 08, 2005 (11:49:10 PDT)-->
 <wsdl:types>
  
   
   
   
   
   
   
    
     
     
     
     
     
     
    
   
   
    
     
     
     
     
     
     
     
     
     
     
     
     
     
    
   
   
    
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
    
   
  
  
   
   
   
   
   
   
    
     
     
     
     
     
     
     
     
    
   
   
    
     
     
     
     
    
   
   
    
     
     
     
     
     
     
     
     
     
     
     
     
     
    
   
  
 </wsdl:types>

   <wsdl:message name="EJBExceptionLP">

      <wsdl:part name="fault" type="xsd:anyType"/>

   </wsdl:message>

   <wsdl:message name="removePartnerRequest">

      <wsdl:part name="partnerDtoI" type="impl:PartnerDto"/>

      <wsdl:part name="cNrUserI" type="soapenc:string"/>

   </wsdl:message>

   <wsdl:message name="removePartnerResponse">

   </wsdl:message>

   <wsdl:portType name="PartnerFac">

      <wsdl:operation name="removePartner" parameterOrder="partnerDtoI cNrUserI">

         <wsdl:input message="impl:removePartnerRequest" name="removePartnerRequest"/>

         <wsdl:output message="impl:removePartnerResponse" name="removePartnerResponse"/>

         <wsdl:fault message="impl:EJBExceptionLP" name="EJBExceptionLP"/>

      </wsdl:operation>

   </wsdl:portType>

   <wsdl:binding name="PartnerFacSoapBinding" type="impl:PartnerFac">

      <wsdlsoap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>

      <wsdl:operation name="removePartner">

         <wsdlsoap:operation soapAction=""/>

         <wsdl:input name="removePartnerRequest">

            <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://service.partner.server.lp.com" use="encoded"/>

         </wsdl:input>

         <wsdl:output name="removePartnerResponse">

            <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://service.partner.server.lp.com" use="encoded"/>

         </wsdl:output>

         <wsdl:fault name="EJBExceptionLP">

            <wsdlsoap:fault encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" name="EJBExceptionLP" namespace="http://service.partner.server.lp.com" use="encoded"/>

         </wsdl:fault>

      </wsdl:operation>

   </wsdl:binding>

   <wsdl:service name="PartnerFacService">

      <wsdl:port binding="impl:PartnerFacSoapBinding" name="PartnerFacPort">

         <wsdlsoap:address location="http://127.0.0.1"/>

      </wsdl:port>

   </wsdl:service>

</wsdl:definitions>



***METAINF/PartnerFac.xml
<?xml version="1.0" encoding="UTF-8"?>
<java-wsdl-mapping xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/j2ee_jaxrpc_mapping_1_1.xsd" version="1.1" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <package-mapping>
    <package-type>com.lp.server.partner.service</package-type>
    http://service.partner.server.lp.com
  </package-mapping>
  <package-mapping>
    <package-type>java.util</package-type>
    http://util.java
  </package-mapping>
  <package-mapping>
    <package-type>com.lp.util</package-type>
    http://util.lp.com
  </package-mapping>
  <package-mapping>
    <package-type>com.lp.server.system.service</package-type>
    http://service.system.server.lp.com
  </package-mapping>
  <package-mapping>
    <package-type>java.sql</package-type>
    http://sql.java
  </package-mapping>
  <package-mapping>
    <package-type>com.lp.server.partner.ejbfac</package-type>
    http://service.partner.server.lp.com
  </package-mapping>
  <exception-mapping>
    <exception-type>com.lp.util.EJBExceptionLP</exception-type>
    <wsdl-message xmlns:ser="http://service.partner.server.lp.com">ser:EJBExceptionLP</wsdl-message>
    <constructor-parameter-order>
      <element-name>eI</element-name>
    </constructor-parameter-order>
  </exception-mapping>
  <service-interface-mapping>
    <service-interface>com.lp.server.partner.ejbfac.PartnerFacService</service-interface>
    <wsdl-service-name xmlns:ser="http://service.partner.server.lp.com">ser:PartnerFacService</wsdl-service-name>
    <port-mapping>
      <port-name>PartnerFacPort</port-name>
      <java-port-name>PartnerFacPort</java-port-name>
    </port-mapping>
  </service-interface-mapping>
  <service-endpoint-interface-mapping>
    <service-endpoint-interface>com.lp.server.partner.ejbfac.PartnerFacWebService</service-endpoint-interface>
    <wsdl-port-type xmlns:ser="http://service.partner.server.lp.com">ser:PartnerFac</wsdl-port-type>
    <wsdl-binding xmlns:ser="http://service.partner.server.lp.com">ser:PartnerFacSoapBinding</wsdl-binding>
    <service-endpoint-method-mapping>
      <java-method-name>removePartner</java-method-name>
      <wsdl-operation>removePartner</wsdl-operation>
      <method-param-parts-mapping>
        <param-position>0</param-position>
        <param-type>com.lp.server.partner.service.PartnerDto</param-type>
        <wsdl-message-mapping>
          <wsdl-message xmlns:ser="http://service.partner.server.lp.com">ser:removePartnerRequest</wsdl-message>
          <wsdl-message-part-name>partnerDtoI</wsdl-message-part-name>
          <parameter-mode>IN</parameter-mode>
        </wsdl-message-mapping>
      </method-param-parts-mapping>
      <method-param-parts-mapping>
        <param-position>1</param-position>
        <param-type>java.lang.String</param-type>
        <wsdl-message-mapping>
          <wsdl-message xmlns:ser="http://service.partner.server.lp.com">ser:removePartnerRequest</wsdl-message>
          <wsdl-message-part-name>cNrUserI</wsdl-message-part-name>
          <parameter-mode>IN</parameter-mode>
        </wsdl-message-mapping>
      </method-param-parts-mapping>
    </service-endpoint-method-mapping>
  </service-endpoint-interface-mapping>
</java-wsdl-mapping>



***jboss gets during startup/deploy the following error:
  ...
  2006-09-01 13:47:31,562 INFO  [org.jboss.ejb.EjbModule] Deploying KundesokoFac
  2006-09-01 13:47:33,765 WARN  [org.jboss.util.xml.JBossEntityResolver] Trying to resolve systemId as a non-file URL: http://util.lp.com
  2006-09-01 13:47:33,875 ERROR [org.jboss.deployment.MainDeployer] Could not create deployment: file:/C:/jboss-4.0.4.GA/server/helium/deploy/partner.jar
  org.jboss.ws.WSException: Cannot load schema: [file:/C:/jboss-4.0.4.GA/server/helium/tmp/jbossws/JBossWS_service.system.server.lp.com60186.xsd, file:/C:/jboss-4.0.4.GA/server/helium/tmp/jbossws/JBossWS_service.partner.server.lp.com60185.xsd]
          at org.jboss.ws.tools.JavaToXSD.parseSchema(JavaToXSD.java:191)
          at org.jboss.ws.metadata.wsdl.WSDL11Reader.processTypes(WSDL11Reader.java:227)
          at org.jboss.ws.metadata.wsdl.WSDL11Reader.processDefinition(WSDL11Reader.java:118)
          at org.jboss.ws.metadata.wsdl.WSDLDefinitionsFactory.parse(WSDLDefinitionsFactory.java:145)
          at org.jboss.ws.metadata.ServiceMetaData.getWsdlDefinitions(ServiceMetaData.java:273)
          at org.jboss.ws.metadata.JSR109ServerMetaDataBuilder.buildMetaData(JSR109ServerMetaDataBuilder.java:111)
          at org.jboss.ws.server.WebServiceDeployerEJB21.createWebServicesMetaData(WebServiceDeployerEJB21.java:113)
          at org.jboss.ws.server.WebServiceDeployer.create(WebServiceDeployer.java:103)
          at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.create(SubDeployerInterceptorSupport.java:180)
          at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:91)
          at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
          at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
          at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
          at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
          at $Proxy34.create(Unknown Source)
          at org.jboss.deployment.MainDeployer.create(MainDeployer.java:953)
          at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:807)
          at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:771)
          at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
          at java.lang.reflect.Method.invoke(Method.java:585)
          at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
          at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
          at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
          at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
          at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
          at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
          at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
          at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
          at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
          at $Proxy6.deploy(Unknown Source)
          at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
          at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:634)
          at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
          at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:336)
          at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
          at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
          at java.lang.reflect.Method.invoke(Method.java:585)
          at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
          at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
          at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
          at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
          at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
          at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
          at $Proxy0.start(Unknown Source)
          at org.jboss.system.ServiceController.start(ServiceController.java:417)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
          at java.lang.reflect.Method.invoke(Method.java:585)
          at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
          at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
          at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
          at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
          at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
          at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
          at $Proxy4.start(Unknown Source)
          at org.jboss.deployment.SARDeployer.start(SARDeployer.java:302)
          at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1007)
          at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:808)
          at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:771)
          at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:755)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
          at java.lang.reflect.Method.invoke(Method.java:585)
          at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
          at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
          at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
          at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
          at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
          at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
          at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
          at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
          at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
          at $Proxy5.deploy(Unknown Source)
          at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482)
          at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)
          at org.jboss.Main.boot(Main.java:200)
          at org.jboss.Main$1.run(Main.java:464)
          at java.lang.Thread.run(Thread.java:595)


***in the dir C:\jboss-4.0.4.GA\server\helium\tmp\jbossws there are both files
  JBossWS_service.partner.server.lp.com60185.xsd

    <schema targetNamespace='http://service.partner.server.lp.com' xmlns='http://www.w3.org/2001/XMLSchema' xmlns:apachesoap='http://xml.apache.org/xml-soap' xmlns:impl='http://service.partner.server.lp.com' xmlns:intf='http://service.partner.server.lp.com' xmlns:soapenc='http://schemas.xmlsoap.org/soap/encoding/' xmlns:tns2='http://sql.java' xmlns:tns3='http://service.system.server.lp.com' xmlns:tns4='http://util.java' xmlns:tns5='http://util.lp.com' xmlns:wsdl='http://schemas.xmlsoap.org/wsdl/' xmlns:wsdlsoap='http://schemas.xmlsoap.org/wsdl/soap/' xmlns:xsd='http://www.w3.org/2001/XMLSchema'>
     
     
     
     
     
     
     
      
       
       
       
       
       
       
      
     
     
      
       
       
       
       
       
       
       
       
       
       
       
       
       
      
     
     
      
       
       
       
       
       
       
       
       
       
       
       
       
       
       
       
       
       
       
       
       
       
       
       
       
       
       
       
       
       
       
       
       
       
       
       
       
       
       
       
       
       
       
       
       
       
       
       
       
       
       
       
       
       
       
       
       
       
       
       
       
       
       
       
       
       
       
       
       
       
       
       
       
       
       
       
       
       
       
       
       
       
       
       
       
       
       
       
       
      
     
    


  JBossWS_service.system.server.lp.com60186.xsd
    <schema targetNamespace='http://service.system.server.lp.com' xmlns='http://www.w3.org/2001/XMLSchema' xmlns:apachesoap='http://xml.apache.org/xml-soap' xmlns:impl='http://service.partner.server.lp.com' xmlns:intf='http://service.partner.server.lp.com' xmlns:soapenc='http://schemas.xmlsoap.org/soap/encoding/' xmlns:tns2='http://sql.java' xmlns:tns3='http://service.system.server.lp.com' xmlns:tns4='http://util.java' xmlns:tns5='http://util.lp.com' xmlns:wsdl='http://schemas.xmlsoap.org/wsdl/' xmlns:wsdlsoap='http://schemas.xmlsoap.org/wsdl/soap/' xmlns:xsd='http://www.w3.org/2001/XMLSchema'>
     
     
     
     
     
     
     
      
       
       
       
       
       
       
       
       
      
     
     
      
       
       
       
       
      
     
     
      
       
       
       
       
       
       
       
       
       
       
       
       
       
      
     
    

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3968911#3968911

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3968911



More information about the jboss-user mailing list