1 Reply Latest reply on Oct 23, 2004 5:58 PM by Thomas Diesler

    Help Please.... No provider type matches QName

    sureshkt Newbie

      Hi All,

      I tried to tie a web serice to an EJB. I followed the sample given in the Axis
      disitribution (in samples/ejb). I have a stateless session bean and i was trying to deploy that as webservice...I have copied all the axis WEB-INF stuff into my application war file...and merged the web.xml of axis with my application web.xml...(the one that is given in the webapps directory of the distribution).

      However, in JBoss 4.0.0, Axis complains like this when I try to reach
      http://localhost:8080/servlet/AxisServlet (after having deployed the
      WSDD file of my service, without apparent trouble) : I could see the
      * AdminService (wsdl)
      * AdminService
      * Version (wsdl)
      * getVersion

      But when i deploy the service using the below WSDD through command line with AdminClient program ..i am getting the following exception..

      Sorry, something seems to have gone wrong... here are the details:

      Exception - org.apache.axis.ConfigurationException: org.apache.axis.deployment.wsdd.WSDDException: No provider type matches QName '{http://xml.apache.org/axis/wsdd/providers/java}EJB'
      org.apache.axis.deployment.wsdd.WSDDException: No provider type matches QName '{http://xml.apache.org/axis/wsdd/providers/java}EJB'
      at org.apache.axis.deployment.wsdd.WSDDProvider.getInstance(WSDDProvider.java:206)

      It looks like Axis can't find the EJB provider, and I have not much clue where
      to start to look... Another thing to note is that if I /don't/ deploy my WSDD
      file, then the http://localhost.../AxisServlet page just displays fine... It
      starts to fail as soon as I deploy the WSDD.

      My WSDD is like this :

      <?xml version="1.0" encoding="UTF-8"?>
      <deployment xmlns="http://xml.apache.org/axis/wsdd/" xmlns:java="http://xml.apache.org/axis/wsdd/providers/java">
      service name="MLoginService" provider="java:EJB">
      parameter name="beanJndiName" value="com.airejb.administrator"/>
      parameter name="homeInterfaceName" value="com.airejb.AdministratorHome"/>
      parameter name="remoteInterfaceName" value="com.airejb.Administrator"/>
      parameter name="className" value="AdministratorBean" />
      parameter name="allowedMethods" value="getParent"/>
      parameter name="jndiURL" value="jnp://localhost:1099"/>
      parameter name="jndiContextClass" value="org.jnp.interfaces.NamingContextFactory"/>

      Sorry i had to remove the "<" in this posting otherwise the full XML is not getting posted.. But my WSDD has the "<" before parameter and service..

      Thanks in Advance