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=15300>.
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=15300

WSDLException: faultCode=OTHER_ERROR: Can't find prefix for 'http://ejb.javax'. 
Namespace prefixes must be set on the Definition object using the addNamespace(...) 
method

           Summary: WSDLException: faultCode=OTHER_ERROR: Can't find prefix
                    for 'http://ejb.javax'. Namespace prefixes must be set
                    on the Definition object using the addNamespace(...)
                    method
           Product: Axis
           Version: 1.1beta
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: WSDL processing
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


I have an interface called EJBTestIF.java which extends EJBObject and from 
which I wish to generate a WSDL file using the Java2WSDL tool.  To narrow down 
the problem, I have left the interface empty;

>import javax.ejb.*;
>
>public interface EJBTestIF extends EJBObject{}

I get the following result;

%java org.apache.axis.wsdl.Java2WSDL \
    -o ejbtest.wsdl \
    -l"http://localhost:8080/axis/services/ejb_test_service"; \
    -n "urn:ejb_test_service" \
    -p"EJBTestIF" \
    "urn:ejb_test_service" 
    EJBTestIF
- The class javax.ejb.EJBHome is defined in a java or javax package and cannot b
e converted into an xml schema type.  An xml schema anyType will be used to defi
ne this class in the wsdl file.
- The class javax.ejb.Handle is defined in a java or javax package and cannot be
 converted into an xml schema type.  An xml schema anyType will be used to defin
e this class in the wsdl file.
- The class javax.ejb.EJBObject is defined in a java or javax package and cannot
 be converted into an xml schema type.  An xml schema anyType will be used to de
fine this class in the wsdl file.
WSDLException: faultCode=OTHER_ERROR: Can't find prefix for 'http://ejb.javax'.
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:269)
        at org.apache.axis.wsdl.fromJava.Emitter.emit(Emitter.java:338)
        at org.apache.axis.wsdl.Java2WSDL.run(Java2WSDL.java:506)
        at org.apache.axis.wsdl.Java2WSDL.main(Java2WSDL.java:544)


I am using;

axis 1.1beta
xerces v1.4.4
j2ee v1.3
Weblogic 5.1

A similar sort of problem was reported as bug #14182

Reply via email to