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 4333344
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T10:22:51+00:00 2026-05-21T10:22:51+00:00

I have a library of JAXB/Entity objects I am using to unmarshall a xml

  • 0

I have a library of JAXB/Entity objects I am using to unmarshall a xml stream. I can do so with no problems just running as a Java SE application. I have moved everything over to a Java EE app using Netbeans 6.9 and Glassfish 3.01. I am now running into a number of exceptions like the following.

com.sun.xml.bind.v2.runtime.IllegalAnnotationsException: 19 counts of IllegalAnnotationExceptions
Property _persistence_productBase_vh is present but not specified in @XmlType.propOrder
        this problem is related to the following location:
                at protected org.eclipse.persistence.indirection.WeavedAttributeValueHolderInterface entitiesjaxb.cmic.ajrs.com.ProductSorts._persistence_productBase_vh
                at entitiesjaxb.cmic.ajrs.com.ProductSorts
                at public entitiesjaxb.cmic.ajrs.com.ProductSorts entitiesjaxb.cmic.ajrs.com.ObjectFactory.createProductSorts()
                at entitiesjaxb.cmic.ajrs.com.ObjectFactory

My problem is that there is no xml element or variable _persistence_productBase_vh anywhere in my enties/jaxb files. I assume this is being added by Glassfish and EclipseLink. Does anyone know any way to make these properties ignored? Here is the entity and a sample from the xml.

@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "ProductSorts", propOrder = {
    "pkId",
    "productBase",
    "field",
    "value",
    "ts"
})

@Entity
@Table(name = "product_sorts")
@NamedQueries({
    //@NamedQuery(name = "ProductSorts.findAll", query = "SELECT p FROM ProductSorts p"),
    @NamedQuery(name = "ProductSorts.findByPkId", query = "SELECT p FROM ProductSorts p WHERE p.pkId = :pkId"),
    @NamedQuery(name = "ProductSorts.findByField", query = "SELECT p FROM ProductSorts p WHERE p.field = :field"),
    @NamedQuery(name = "ProductSorts.findByValue", query = "SELECT p FROM ProductSorts p WHERE p.value = :value"),
    @NamedQuery(name = "ProductSorts.findByTs", query = "SELECT p FROM ProductSorts p WHERE p.ts = :ts")})
public class ProductSorts implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @Basic(optional = false)
    @Column(name = "pk_id")
    private Integer pkId;
    @Column(name = "field")
    @XmlElement(name = "Field")
    private String field;
    @Column(name = "value")
    @XmlElement(name = "Value")
    private String value;
    @Basic(optional = false)
    @Column(name = "ts")
    @Temporal(TemporalType.TIMESTAMP)
    @XmlElement(required = true)
    @XmlSchemaType(name = "dateTime")
    private Date ts;
    @JoinColumn(name = "pk_product", referencedColumnName = "pk_id")
    @ManyToOne(fetch = FetchType.LAZY)
    private ProductBase productBase;

    public ProductSorts() {
    }

    public ProductSorts(Integer pkId) {
        this.pkId = pkId;
    }



<ProductSorts>
  <pkID>317926</pkID>
  <pkProduct>118647</pkProduct>
  <Field>3D TECHNOLOGY</Field>
  <Value>No</Value>
  <ts>1970-01-13T00:43:15.947</ts>
</ProductSorts>
  • 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-21T10:22:51+00:00Added an answer on May 21, 2026 at 10:22 am

    This property (_persistence_productBase_vh) has been woven onto the JPA entity. You can use property access in your JAXB mappings to get around this issue.

    @XmlAccessorType(XmlAccessType.PROPERTY)
    

    When EclipseLink does bytecode weaving it checks for JAXB on the classpath. If JAXB is present it will weave that property with the @XmlTransient annotation. Are you using static or dynamic weaving? If you are using static weaving you will need to ensure that the JAXB API jar is on your class path.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Whenever I have a library that use across different websites/ applications I've always just
I would like to marshall Java objects into XML and vice-versa from within an
I am using JAXB to unmarshal an XML file into an object tree. The
I am writing a simple CSV to XML processor in Java. I am using
I have some (library API, so I can't change the function prototype) function which
Of course most languages have library functions for this, but suppose I want to
I have a library I created, File mylib.c: #include <mylib.h> int testlib() { printf("Hello,
I have a library A, that I develop. When I deploy it on a
I have a library consisting of approx 100 source files. I want one of
I have a library that I would like to license and distribute. I know

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.