Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3840572
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T15:32:43+00:00 2026-05-19T15:32:43+00:00

Forgive me if this is a duplicate. Here is my binding.xjb file. But now

  • 0

Forgive me if this is a duplicate. Here is my binding.xjb file. But now i am getting the regular error that the complex type target “AddBankVaultRplyType” is not found. I don’t see any issue. Can somebody help me with this? I am listing the xsd that i am trying to customize

<jxb:bindings 
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:xjc="http://java.sun.com/xml/ns/jaxb/xjc"
xmlns:jxb="http://java.sun.com/xml/ns/jaxb"
xmlns:pd="http://chubb.com/cpi/polsvc/xmlobj"
xmlns:inheritance="http://jaxb2-commons.dev.java.net/basic/inheritance"
jxb:extensionBindingPrefixes="inheritance"
jxb:version="2.1"
>


<jxb:bindings node="/xs:schema/xs:ServiceReply/xs:complexType[@name='AddBankVaultRplyType']">
<inheritance:extends>com.print.poc.AddressTypeHelper</inheritance:extends>
</jxb:bindings>

Here is the piece of XSD that i am trying to customize

<xs:schema xmlns:pd="http://com/polsvc/xmlobj" xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://com/polsvc/xmlobj" elementFormDefault="qualified" attributeFormDefault="unqualified">
<xs:complexType name="AddBankVaultRplyType">

</xs:complexType>
<xs:element name="ServiceReply">
   <xs:complexType>
   <xs:sequence>
    <xs:element name="ReplyHeader" type="pd:MsgHeaderType"/>
    <xs:element name="RequestHeader" type="pd:MsgHeaderType"/>
    <xs:choice>
     <xs:element name="AddBankVaultReply" type="pd:AddBankVaultRplyType"/>
</xs:choice>
 </xs:sequence>
  </xs:complexType>
 </xs:element>
</xs:schema>

Now if i run XJC it is saying me that the target "/xs:schema/xs:ServiceReply/xs:complexType[@name='AddBankVaultRplyType']" results in empty node. What is the mistake i am doing here

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-19T15:32:43+00:00Added an answer on May 19, 2026 at 3:32 pm

    You will need to wrap in a bindings that has the schema location set. It should be something like:

    <jxb:bindings 
        xmlns:xs="http://www.w3.org/2001/XMLSchema"
        xmlns:xjc="http://java.sun.com/xml/ns/jaxb/xjc"
        xmlns:jxb="http://java.sun.com/xml/ns/jaxb"
        xmlns:pd="http://chubb.com/cpi/polsvc/xmlobj"
        xmlns:inheritance="http://jaxb2-commons.dev.java.net/basic/inheritance"
        jxb:extensionBindingPrefixes="inheritance"
        version="2.1">
        <jxb:bindings schemaLocation="your-schema.xsd">
            <jxb:bindings node="//xs:complexType[@name='AddBankVaultRplyType']">
                <inheritance:extends>com.print.poc.AddressTypeHelper</inheritance:extends>
            </jxb:bindings>
        </jxb:bindings>
    </jxb:bindings>
    

    For more information:

    • http://jaxb.java.net/guide/Dealing_with_errors.html
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Forgive me if this is a duplicate, but it's a minor issue for me
Forgive me if this is a duplicate, I can't seem to find anything that
Forgive me if this is a very basic question, but I'm hoping someone here
Forgive me if this is a repeated question but I am having trouble finding
Forgive me for this unbeautiful code, but I'm trying to get it to work
Forgive me if this has been asked before, but I assure you I've scoured
Forgive me if this is a dumb beginners problem, but I really don't get
(THIS IS A DUPLICATE, I FORGOT A TAG, PLEASE FORGIVE) I'm writing a small
Forgive me if this has been asked repeatedly, but I couldn't find an example
Please forgive this rather basic question, but I'm very new to Java and still

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.