[ https://jira.codehaus.org/browse/JIBX-470?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=287024#comment-287024 ]
Don Corley commented on JIBX-470: --------------------------------- I always like to start with a working example when I first use software. Take a look at the source code in this simple example from our repository: https://github.com/jibx/maven-plugin/blob/master/test-suite/org.jibx.test.gen/src/test/java/org/jibx/samples/flight/AppTest.java All it does is create a java object, marshal it to xml and then unmarshal it to a new java object. If this helps, please close this bug. Good Luck! Don > Supplied root object of class com.mycompany.domain.Currency cannot be > marshalled without top-level mapping > ---------------------------------------------------------------------------------------------------------- > > Key: JIBX-470 > URL: https://jira.codehaus.org/browse/JIBX-470 > Project: JiBX > Issue Type: Bug > Affects Versions: JiBX 1.2.3 > Environment: Java7; Solaris 10; maven3 > Reporter: Harshit > > Hi, I have a use-case where I need to generate Java Objects from XSD and then > these objects interact with a component which "takes-in" XML and returns back > XML (requires marshalling and unmarshalling of domain object) > I am able to successfully generate domain objects from XSD by using JiBx's > maven codegen plugin. Also I then compiled the sources and ran the > compile-time binder on these objects (again using the maven plugin). I then > packaged these enhanced class-files into jar file. > Now, when I am trying to marshal one of these domain objects into XML, I am > getting the following error: > ------------------- > Caused by: org.jibx.runtime.JiBXException: Supplied root object of class > com.mycompany.domain.Currency cannot be marshalled without top-level mapping > at > org.jibx.runtime.impl.MarshallingContext.marshalRoot(MarshallingContext.java:1023) > at > org.jibx.runtime.impl.MarshallingContext.marshalDocument(MarshallingContext.java:1041) > ------------------- > Being a beginner, I am not able to understand what is the error that JiBx is > trying to convey mean and hence not able to fix this. > Could you please help me know if I am missing something? > Thanks in advance! -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira ------------------------------------------------------------------------------ Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex infrastructure or vast IT resources to deliver seamless, secure access to virtual desktops. With this all-in-one solution, easily deploy virtual desktops for less than the cost of PCs and save 60% on VDI infrastructure costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox _______________________________________________ jibx-devs mailing list jibx-devs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jibx-devs