You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by bu...@apache.org on 2002/10/21 11:21:05 UTC

DO NOT REPLY [Bug 13808] New: - java:EJB provider does not work ?

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13808>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13808

java:EJB provider does not work ?

           Summary: java:EJB provider does not work ?
           Product: Axis
           Version: 1.0
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Deployment / Registries
        AssignedTo: axis-dev@xml.apache.org
        ReportedBy: cchabanois@cognicase.fr


I tried to deploy an EJB as a web service using Axis 1.0 & Jboss 'jboss-
3.0.3_tomcat-4.1.12"
(I am not using JBoss.net)

I deployed axis on Jboss. No problem. I deployed my EJB on JBoss. No problem. 

I used the wsdd to deploy the ejb with axis. No errors.
The service also appears on http://localhost:8080/axis/services but with more 
methods than expected.
Indeed, the following methods are also present : remove, getEJBHome, getHandle, 
getPrimaryKey, isIdentical

When I click on http://localhost:8080/axis/services/HelloService?wsdl to get 
the wsdl, I get the following error 
:
"
Fault - WSDLException: faultCode=OTHER_ERROR: Can't find prefix 
for 'http://www.w3.org/1999/XMLSchema'. Namespace prefixes must be set on the 
Definition object using the addNamespace(...) method.:  

AxisFault
 faultCode: {http://xml.apache.org/axis/}Server.userException
 faultString: WSDLException: faultCode=OTHER_ERROR: Can't find prefix 
for 'http://www.w3.org/1999/XMLSchema'. Namespace prefixes must be set on the 
Definition object using the addNamespace(...) method.: 
 faultActor: null
 faultDetail: 
	stackTrace: WSDLException: faultCode=OTHER_ERROR: Can't find prefix 
for 'http://www.w3.org/1999/XMLSchema'. Namespace prefixes must be set on the 
Definition object using the addNamespace(...) method.: 
	at com.ibm.wsdl.util.xml.DOMUtils.getPrefix(Unknown Source)
	at com.ibm.wsdl.util.xml.DOMUtils.getQualifiedValue(Unknown Source)
	at com.ibm.wsdl.util.xml.DOMUtils.printQualifiedAttribute(Unknown 
Source)
	at com.ibm.wsdl.xml.WSDLWriterImpl.printParts(Unknown Source)
	at com.ibm.wsdl.xml.WSDLWriterImpl.printMessages(Unknown Source)
	at com.ibm.wsdl.xml.WSDLWriterImpl.printDefinition(Unknown Source)
	at com.ibm.wsdl.xml.WSDLWriterImpl.writeWSDL(Unknown Source)
	at com.ibm.wsdl.xml.WSDLWriterImpl.getDocument(Unknown Source)
	at org.apache.axis.wsdl.fromJava.Emitter.emit(Emitter.java:236)
	at org.apache.axis.providers.java.JavaProvider.generateWSDL
(JavaProvider.java:418)
	at org.apache.axis.strategies.WSDLGenStrategy.visit
(WSDLGenStrategy.java:72)
	at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:156)[...]
"

Perhaps my wsdd is wrong.
I think that an example for java:EJB provider would be a good thing.
The one included here could be a good starting point : this is a very simple 
stateless ejb.

The attachment has all that is needed to reproduce this problem.
It includes a readme.txt