[ 
https://issues.apache.org/jira/browse/AXIS2-2431?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12489946
 ] 

Amila Chinthaka Suriarachchi commented on AXIS2-2431:
-----------------------------------------------------

your wsdl has two schemas as follows
<schema elementFormDefault="qualified"
                targetNamespace="http://ws.sosnoski.com/library/wsdl";
                xmlns="http://www.w3.org/2001/XMLSchema";>

            <import namespace="http://ws.sosnoski.com/library/types"/>
</schema>
<schema elementFormDefault="qualified"
        targetNamespace="http://ws.sosnoski.com/library/types";
        xmlns="http://www.w3.org/2001/XMLSchema";>
</schema>

but if I put the second schema into a seperate file and import it to the first 
file giving a schema location it works fine.
i.e
<schema elementFormDefault="qualified"
                targetNamespace="http://ws.sosnoski.com/library/wsdl";
                xmlns="http://www.w3.org/2001/XMLSchema";>

            <import namespace="http://ws.sosnoski.com/library/types"; 
schemaLocation="type.xsd"/>
</schema>

Jaxb compiler takes one schema at time and compile it. So it can not find that 
inline schema in the first instace.
is this (i.e just importing the namespace without a schema location) a standard 
way of refering another inline schema?


> JAXB code generation failure
> ----------------------------
>
>                 Key: AXIS2-2431
>                 URL: https://issues.apache.org/jira/browse/AXIS2-2431
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: codegen
>    Affects Versions: nightly
>            Reporter: Dennis Sosnoski
>            Priority: Critical
>         Attachments: jaxb-issue.zip
>
>
> Trying to use JAXB data binding with Wsdl2Java results in 
> NullPointerException:
>      [java] Caused by: java.lang.NullPointerException
>      [java]     at 
> org.apache.axis2.jaxbri.CodeGenerationUtility.processSchemas(CodeGenerationUtility.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to