geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jarek Gawor (JIRA)" <j...@apache.org>
Subject [jira] Created: (GERONIMO-2730) JAX-RPC EJB Web Services support appears to be broken
Date Fri, 12 Jan 2007 21:12:27 GMT
JAX-RPC EJB Web Services support appears to be broken
-----------------------------------------------------

                 Key: GERONIMO-2730
                 URL: https://issues.apache.org/jira/browse/GERONIMO-2730
             Project: Geronimo
          Issue Type: Bug
      Security Level: public (Regular issues)
    Affects Versions: 2.0-M2
            Reporter: Jarek Gawor


The JAX-RPC-based EJB web services support appears to be broken. I'm attaching test code that
demonstrates the problems. Please note that the test WS is identical as in the POJO tests
(see https://issues.apache.org/jira/browse/GERONIMO-2729) where it works fine.

Here are the problems discovered:

1) By default, jar deployment with WS EJB will fail with:

Deployer operation failed: Unable to resolve reference "WebServiceContainer" in
gbean JEE5/JAXRPCEJB/1.1/car?EJBModule=JEE5/JAXRPCEJB/1.1/car,J2EEApplication=nu
ll,StatelessSessionBean=Greeter,j2eeType=WSLink,name=Greeter to a gbean matching
 the pattern [?name=JettyWebContainer#]due to: No matches for referencePatterns:
 [?name=JettyWebContainer#]

This can be fixed by adding an explicit dependency on the given container in the open-ejb.xml
file (see the open-ejb.xml in the attached patch). I think such dependency should be automatically
added by the deployer.

2) ?wsdl on the service fails with the following error:
HttpException(500,Could not fetch wsdl!,java.lang.IllegalStateException: request
 must contain a  wsdl or WSDL parameter: {wsdl=[Ljava.lang.String;@11054a5})
        at org.apache.geronimo.jetty6.JettyEJBWebServiceContext.handle(JettyEJBW
ebServiceContext.java:147)

3) Invocation on the service fails with:

        {http://xml.apache.org/axis/}stackTrace:java.lang.IndexOutOfBoundsExcept
ion: Index: 0, Size: 0
        at java.util.ArrayList.RangeCheck(ArrayList.java:546)
        at java.util.ArrayList.get(ArrayList.java:321)
        at org.apache.axis.description.JavaServiceDesc.getOperationsByQName(Java
ServiceDesc.java:520)
        at org.apache.axis.description.JavaServiceDesc.getOperationByElementQNam
e(JavaServiceDesc.java:465)
        at org.apache.geronimo.axis.server.ReadOnlyServiceDesc.getOperationByEle
mentQName(ReadOnlyServiceDesc.java:151)
        at org.apache.axis.providers.java.RPCProvider.getOperationDesc(RPCProvid
er.java:296)
        at org.apache.openejb.server.axis.EJBContainerProvider.processMessage(EJ
BContainerProvider.java:62)

These errors were discovered when using trunk with jetty6. 

Since openejb will be updated in trunk shortly, I think these errors can be ignored for now.
However, I do not know if the same problems exist in Geronimo 1.2 for example.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message