I have looked through the JiBX site and done many Google searches on this
and found a lot of people with similar problems.  I have tried many of the
suggestions but none worked.

 

This is the error I am getting in Tomcat6's catalina.out.

No unmarshaller for element
"{http://www.myURL.com/file/path/journalentry}JournalEntry";

 

Binding file:

<?xml version="1.0" encoding="UTF-8"?>

<binding>

      <mapping name="sje:JournalEntry"
class="my.package.structure.journalentry.model.JournalEntry">

            <namespace prefix="sje"
uri="http://www.myURL.com/file/path/journalentry"; default="elements"/>

            <namespace prefix="i" uri="http://nome.com/nome/appinfo/1.0"/>

            <namespace prefix="c" uri="http://nome.com/nome/common/1.0"/>

            <namespace prefix="im"
uri="http://nome.com/nome/domains/immigration/1.0"/>

            <namespace prefix="j"
uri="http://nome.com/nome/domains/justice/1.0"/>

            <namespace prefix="scr"
uri="http://nome.com/nome/domains/screening/1.0"/>

            <namespace prefix="nome-xsd"
uri="http://nome.com/nome/proxy/xsd/1.0"/>

            <namespace prefix="s"
uri="http://nome.com/nome/structures/1.0"/>

            <namespace prefix="u" uri="http://nome.com/nome/universal/1.0"/>

            <namespace prefix="e"
uri="http://www.myURL.com/file/path/extension"/>

            <namespace prefix="kdr"
uri="http://kcjis.state.ks.us/kdr/1.0.0"/>

            <value field="schemaNS" name="xmlns:xsi" style="attribute"
usage="optional"/>

<value field="schemaFile" name="xsi:schemaLocation" style="attribute"
usage="optional" />

            ...

</binding>

 

I have some collections that I use the generic List for and I have used
factory="org.jibx.runtime.Utility.arrayListFactory" to tell JiBX that they
are ArrayList.  I found this post < http://jira.codehaus.org/browse/JIBX-179
> where at the bottom they note that when the took out the factories and
used the concrete ArrayList in place of List, it worked.  I went through and
changed all the List to ArrayList and fixed all the effected code.  When I
ran the program, I got the same error.

 

I also found these <
http://jibx.sourceforge.net/tutorial/binding-advanced.html#namespaces
<http://jibx.sourceforge.net/tutorial/binding-advanced.html#namespaces> ,
http://www.mail-archive.com/jibx-users@lists.sourceforge.net/msg00153.html
<http://www.mail-archive.com/jibx-users@lists.sourceforge.net/msg00153.html>
, and
http://www.mail-archive.com/jibx-users@lists.sourceforge.net/msg00475.html
<http://www.mail-archive.com/jibx-users@lists.sourceforge.net/msg00475.html>
> which all said I needed to add default="elements" to declare the default
namespace.  I have done that but it did not fix my problem.

 

Also in the previously mentioned post <
http://www.mail-archive.com/jibx-users@lists.sourceforge.net/msg00475.html
<http://www.mail-archive.com/jibx-users@lists.sourceforge.net/msg00475.html>
> I saw that the namespaces were declared after the binding but before the
mapping.  I moved my namespaces up there and ran it but that still gave me
the same error.

 

I am using Maven 2.0.8 to build with the Maven JiBX plugin version 1.1.5 <
http://jibx.sourceforge.net/maven-jibx-plugin/usage.html
<http://jibx.sourceforge.net/maven-jibx-plugin/usage.html>  > to compile the
binding file.

 

Any advice anyone can give me would be appreciated.

 

Thank You

 

Greg

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Register now and save $200. Hurry, offer ends at 11:59 p.m., 
Monday, April 7! Use priority code J8TLD2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
jibx-users mailing list
jibx-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jibx-users

Reply via email to