This actually seems linked to an issue that I'm having as well. It seems
that you need to explicitly make sure that compile is executed. I either
run
mvn compile jibx:bind
or
mvn package jibx:bind
I also find that the plugin kills my deployment phase. For some reason, it
tries to run during the site:site phase, and cannot bind to the classes. I
have the following plugin config in my pom, what do you have?
<plugin>
<groupId>org.jibx</groupId>
<artifactId>maven-jibx-plugin</artifactId>
<version>1.1-pefcu</version>
<configuration>
<directory>src/main/jibx</directory>
<includes>
<includes>*-binding.xml</includes>
</includes>
<excludes>
<exclude>template-binding.xml</exclude>
</excludes>
<verbose>true</verbose>
<load>true</load>
<validate>true</validate>
</configuration>
<executions>
<execution>
<phase>process-classes</phase>
<goals>
<goal>bind</goal>
</goals>
</execution>
</executions>
</plugin>
Thanks,
Todd
On 7/22/07, Dennis Sosnoski <[EMAIL PROTECTED]> wrote:
>
> Hi Maciek,
>
> I don't know enough about the maven plugin to make any suggestions on
> this. Can any maven mavens comment?
>
> - Dennis
>
> Dennis M. Sosnoski
> SOA and Web Services in Java
> Training and Consulting
> http://www.sosnoski.com - http://www.sosnoski.co.nz
> Seattle, WA +1-425-939-0576 - Wellington, NZ +64-4-298-6117
>
>
>
> Maciej Zywno wrote:
> > Hi,
> >
> > I checked out one project for the second time from cvs and now I have
> > two copies of the same project in two directories. I build both
> > projects with maven1, jib-plugin version: 1.2 I get a binding error
> > while building one project copy(in one directory) and everything is ok
> > when run for the second project copy(in another directory). I did my
> > best to ensure that all the settings/files are the same when
> > triggering both builds. (Both copies are fresh copies from cvs) The
> > jibx settings defined in project.properties seem to be the same I ran
> > maven with -X to see the debug messages, went through both log files
> > to compare them and couldn't find any difference. However there must
> > be some difference! The error I get is:
> >
> > Error: [jibx] [DEBUG] Finding class
> > org.jibx.runtime.ValidationException
> > [jibx] [DEBUG] Finding class org.jibx.runtime.RecoverableException
> > [jibx] [DEBUG] Class org.jibx.runtime.RecoverableException loaded
> > from ant loader
> > [jibx] [DEBUG] Class org.jibx.runtime.ValidationException loaded
> > from ant loader
> > Unable to load class
> > com.foo.air.webservices.shop.bar.util.JibxParsingUtil for converting
> > default value of type java.lang.Boolean; on value element at (line 91,
> > col 33, in binding_lowfaresearch_response.jibx.xml)
> > Error: Unable to load class
> > com.foo.air.webservices.shop.bar.util.JibxParsingUtil for converting
> > default value of type java.lang.Boolean; on value element at (line 96,
> > col 33, in binding_lowfaresearch_response.jibx.xml)
> > Error: Unable to load class
> > com.foo.air.webservices.shop.bar.util.JibxParsingUtil for converting
> > default value of type java.lang.Boolean; on value element at (line
> > 101, col 33, in binding_lowfaresearch_response.jibx.xml)
> > Error: Unable to load class
> > com.foo.air.webservices.shop.bar.util.JibxParsingUtil for converting
> > default value of type java.lang.Boolean; on value element at (line
> > 109, col 33, in binding_lowfaresearch_response.jibx.xml)
> > Error: Unable to load class
> > com.foo.air.webservices.shop.bar.util.JibxParsingUtil for converting
> > default value of type java.lang.Boolean; on value element at (line
> > 114, col 33, in binding_lowfaresearch_response.jibx.xml)
> > Error: Unable to load class
> > com.foo.air.webservices.shop.bar.util.JibxParsingUtil for converting
> > default value of type java.lang.Boolean; on value element at (line
> > 194, col 36, in binding_lowfaresearch_response.jibx.xml)
> > Error: Unable to load class
> > com.foo.air.webservices.shop.bar.util.JibxParsingUtil for converting
> > default value of type java.lang.Boolean; on value element at (line
> > 222, col 33, in binding_lowfaresearch_response.jibx.xml)
> >
> > Upper in the log file the class:
> >
> > [javac] [VERBOSE]
> > com\foo\air\webservices\shop\bar\util\JibxParsingUtil.java omitted as
> > com/foo/air/webservices/shop/bar/util/JibxParsingUtil.class is up to
> > date.
> >
> > I tried cleaning and recompiling a few times. It doesn't help. The
> > class is present in target/classes/com/foo...It compiles. Do you know
> > how it cannot be loaded? Where should I look for the settings that may
> > be different? Let me know if I can provide more information.
> >
> > Thanks,
> >
> > Maciek
> >
> > ------------------------------------------------------------------------
> >
> >
> -------------------------------------------------------------------------
> > This SF.net email is sponsored by DB2 Express
> > Download DB2 Express C - the FREE version of DB2 express and take
> > control of your XML. No limits. Just data. Click to get it now.
> > http://sourceforge.net/powerbar/db2/
> > ------------------------------------------------------------------------
> >
> > _______________________________________________
> > jibx-users mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/jibx-users
> >
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems? Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >> http://get.splunk.com/
> _______________________________________________
> jibx-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/jibx-users
>
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
jibx-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jibx-users