[jibx-users] precompiled binding problem

2012-02-03 Thread Chris Florian
Hi list,

Using Jibx 1.2.2/jdk 1.6.x. I have a jar of jibx instrumented support 
classes. In a separate jar, I subclass one of the support classes and I 
want to include and extend the mapping for that base class. I added the 
include with precompiled=true and I am including the base jar in the 
classpath of the binding compiler task, but I always seem to get No 
mapping found for class X.

If I only use map-as in the extended binding I get no errors, only if 
I try to use extends in the mapping element.

Is this not allowed or have I completely misunderstood the concept of 
extending a binding?



Thanks.
Chris


--
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
___
jibx-users mailing list
jibx-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jibx-users


Re: [jibx-users] precompiled binding problem

2012-02-03 Thread Chris Florian
From the Jibx src it appears as if a mapping can only extend an 
instance of MappingElement and not a PrecompiledMappingElement 
(model/MappingElement.java).



On 02/03/2012 06:40 AM, Chris Florian wrote:

Hi list,

Using Jibx 1.2.2/jdk 1.6.x. I have a jar of jibx instrumented support
classes. In a separate jar, I subclass one of the support classes and I
want to include and extend the mapping for that base class. I added the
include  with precompiled=true and I am including the base jar in the
classpath of the binding compiler task, but I always seem to get No
mapping found for class X.

If I only use map-as in the extended binding I get no errors, only if
I try to use extends in the mapping element.

Is this not allowed or have I completely misunderstood the concept of
extending a binding?



Thanks.
Chris


--
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
___
jibx-users mailing list
jibx-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jibx-users



--
_ Chris Florian |TXIO Corporation|www.txio.ca http://www.txio.ca | 
1.416.414.6378 _
--
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2___
jibx-users mailing list
jibx-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jibx-users


Re: [jibx-users] Precompiled binding problem

2010-02-18 Thread Dennis Sosnoski
Hi Alison,

I did include this change in the 1.2.2 release. Sorry it took me longer 
than planned to get the release out.

  - Dennis


Alison Rosewarne wrote:
 Hi Dennis,

 Can you please let me know if you think the change below would be :
 1) a very large piece of work
 2) a minor enhancement
 3) something in between

 Also can you please advise where the code is currently located?
 The CVS repository referenced through sourceforge does not seem
 to be available and I'd like to investigate this myself...

 (I'm Karel's colleague, by the way, and this particular issue is still
 preventing us from adopting pre-compiled binaries).

 Thanks,
 Alison

 On 04/19/2009 08:25 PM, Dennis Sosnoski wrote:
   
 Hi Karel,

 I like the classpath:binding.xml path idea for precompiled bindings, and
 will see if I can easily add that. I'll also take a look at your maven
 precompiled bindings classloading fix for 1.2.2.

 Thanks,

- 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



 Karel Alfonso wrote:

 
 Hi everyone,

I'm working on a simple solution where I have two projects and one
 reuses classes already bound (precompiled) in the other project. I'm
 using JiBX version 1.2.1

Let's say I have a precompiled binding in projectA, projecta-binding.xml

binding package=com.projecta
mapping name=a class=...A

/mapping
/binding

Then projectB defines a binding that requires using class A from
 projectA already compiled, projectb-binding.xml

binding
   include path=projecta-binding.xml precompiled=true /

   mapping name=b class=B
 structure  map-as=...A /
   /mapping
/binding

However when I do mvn clean install (using the 1.2.1 JiBX maven
 plugin) I get the following error:

Classloader conflict for binding 'projecta_binding' - factory does not
 implement required interface

The exception is thrown from BindingDirectory.getFactory() method. I've
 checked the binding factory generated by JiBX does implement
 IBindingFactory, so I'm assumming it is really a class loader issue but
 I'm not doing anything fancy, just a mvn clean install.

I'd appreciate any help or advice regarding the use of precompiled
 binding as shown in this example.

Also, as a second suggestion, is it possible to include a precompiled
 binding doinginclude path=classpath:binding.xml/  ? in that way
 other projects don't have to manually copy the precompiled binding
 definition to the project directory.

Thanks in advance,

Karel

 --
 ___
 jibx-users mailing list
 jibx-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/jibx-users


  
   
 --
 Stay on top of everything new and different, both inside and
 around Java (TM) technology - register by April 22, and save
 $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
 300 plus technical and hands-on sessions. Register today.
 Use priority code J9JMT32. http://p.sf.net/sfu/p
 ___
 jibx-users mailing list
 jibx-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/jibx-users

 


 --
 Return on Information:
 Google Enterprise Search pays you back
 Get the facts.
 http://p.sf.net/sfu/google-dev2dev
 ___
 jibx-users mailing list
 jibx-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/jibx-users

   

--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
jibx-users mailing list
jibx-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jibx-users


Re: [jibx-users] Precompiled binding problem

2009-12-14 Thread Alison Rosewarne
Hi Dennis,

Can you please let me know if you think the change below would be :
1) a very large piece of work
2) a minor enhancement
3) something in between

Also can you please advise where the code is currently located?
The CVS repository referenced through sourceforge does not seem
to be available and I'd like to investigate this myself...

(I'm Karel's colleague, by the way, and this particular issue is still
preventing us from adopting pre-compiled binaries).

Thanks,
Alison

On 04/19/2009 08:25 PM, Dennis Sosnoski wrote:
 Hi Karel,

 I like the classpath:binding.xml path idea for precompiled bindings, and
 will see if I can easily add that. I'll also take a look at your maven
 precompiled bindings classloading fix for 1.2.2.

 Thanks,

- 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



 Karel Alfonso wrote:

 Hi everyone,

I'm working on a simple solution where I have two projects and one
 reuses classes already bound (precompiled) in the other project. I'm
 using JiBX version 1.2.1

Let's say I have a precompiled binding in projectA, projecta-binding.xml

binding package=com.projecta
mapping name=a class=...A

/mapping
/binding

Then projectB defines a binding that requires using class A from
 projectA already compiled, projectb-binding.xml

binding
   include path=projecta-binding.xml precompiled=true /

   mapping name=b class=B
 structure  map-as=...A /
   /mapping
/binding

However when I do mvn clean install (using the 1.2.1 JiBX maven
 plugin) I get the following error:

Classloader conflict for binding 'projecta_binding' - factory does not
 implement required interface

The exception is thrown from BindingDirectory.getFactory() method. I've
 checked the binding factory generated by JiBX does implement
 IBindingFactory, so I'm assumming it is really a class loader issue but
 I'm not doing anything fancy, just a mvn clean install.

I'd appreciate any help or advice regarding the use of precompiled
 binding as shown in this example.

Also, as a second suggestion, is it possible to include a precompiled
 binding doinginclude path=classpath:binding.xml/  ? in that way
 other projects don't have to manually copy the precompiled binding
 definition to the project directory.

Thanks in advance,

Karel

 --
 ___
 jibx-users mailing list
 jibx-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/jibx-users


  
 --
 Stay on top of everything new and different, both inside and
 around Java (TM) technology - register by April 22, and save
 $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
 300 plus technical and hands-on sessions. Register today.
 Use priority code J9JMT32. http://p.sf.net/sfu/p
 ___
 jibx-users mailing list
 jibx-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/jibx-users



--
Return on Information:
Google Enterprise Search pays you back
Get the facts.
http://p.sf.net/sfu/google-dev2dev
___
jibx-users mailing list
jibx-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jibx-users


Re: [jibx-users] Precompiled binding problem

2009-04-19 Thread Dennis Sosnoski
Hi Karel,

I like the classpath:binding.xml path idea for precompiled bindings, and 
will see if I can easily add that. I'll also take a look at your maven 
precompiled bindings classloading fix for 1.2.2.

Thanks,

  - 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



Karel Alfonso wrote:
 Hi everyone,

   I'm working on a simple solution where I have two projects and one
 reuses classes already bound (precompiled) in the other project. I'm
 using JiBX version 1.2.1

   Let's say I have a precompiled binding in projectA, projecta-binding.xml

   binding package=com.projecta
   mapping name=a class=...A
   
   /mapping
   /binding

   Then projectB defines a binding that requires using class A from
 projectA already compiled, projectb-binding.xml

   binding
  include path=projecta-binding.xml precompiled=true /

  mapping name=b class=B
structure  map-as=...A /
  /mapping
   /binding

   However when I do mvn clean install (using the 1.2.1 JiBX maven
 plugin) I get the following error:

   Classloader conflict for binding 'projecta_binding' - factory does not
 implement required interface

   The exception is thrown from BindingDirectory.getFactory() method. I've
 checked the binding factory generated by JiBX does implement
 IBindingFactory, so I'm assumming it is really a class loader issue but
 I'm not doing anything fancy, just a mvn clean install.

   I'd appreciate any help or advice regarding the use of precompiled
 binding as shown in this example.

   Also, as a second suggestion, is it possible to include a precompiled
 binding doing include path=classpath:binding.xml/ ? in that way
 other projects don't have to manually copy the precompiled binding
 definition to the project directory.

   Thanks in advance,

   Karel

 --
 ___
 jibx-users mailing list
 jibx-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/jibx-users

   

--
Stay on top of everything new and different, both inside and 
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today. 
Use priority code J9JMT32. http://p.sf.net/sfu/p
___
jibx-users mailing list
jibx-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jibx-users


[jibx-users] Precompiled binding problem with ant-run plugin

2009-03-30 Thread Karel Alfonso
Hi everyone again,

  Tyring to get a successful binding compilation referencing a precompiled
binding I decided to use the JiBX Ant tasks through the ant-run maven
plugin.

  Again, I ran into the same classloader conflict error, which makes me
think the problem is related to the way Maven and JiBXbinding compiler
load the classes that somehow end up loading IBindingFactory in
different classloaders.

  I could only run a successful binding compilation from the command line,
doing java -cp ... orj.jibx.binding.Compile ..

  The maven JiBX plugin is very simple in its implementation and nothing
in it points to an improper handling of the classloaders. It's only the
combination of the Maven plugin execution and JiBX binding compilation
that generates the issue.

  Has anyone been able to use precompiled bindings using the maven JiBX
plugin?

  Thanks again,

Karel
 Hi everyone,

   I'm working on a simple solution where I have two projects and one
 reuses classes already bound (precompiled) in the other project. I'm
 using JiBX version 1.2.1

   Let's say I have a precompiled binding in projectA, projecta-binding.xml

   binding package=com.projecta
   mapping name=a class=...A
   
   /mapping
   /binding

   Then projectB defines a binding that requires using class A from
 projectA already compiled, projectb-binding.xml

   binding
  include path=projecta-binding.xml precompiled=true /

  mapping name=b class=B
structure  map-as=...A /
  /mapping
   /binding

   However when I do mvn clean install (using the 1.2.1 JiBX maven
 plugin) I get the following error:

   Classloader conflict for binding 'projecta_binding' - factory does not
 implement required interface

   The exception is thrown from BindingDirectory.getFactory() method. I've
 checked the binding factory generated by JiBX does implement
 IBindingFactory, so I'm assumming it is really a class loader issue but
 I'm not doing anything fancy, just a mvn clean install.

   I'd appreciate any help or advice regarding the use of precompiled
 binding as shown in this example.

   Also, as a second suggestion, is it possible to include a precompiled
 binding doing include path=classpath:binding.xml/ ? in that way
 other projects don't have to manually copy the precompiled binding
 definition to the project directory.

   Thanks in advance,

   Karel

 --
 ___
 jibx-users mailing list
 jibx-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/jibx-users



--
___
jibx-users mailing list
jibx-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jibx-users


[jibx-users] Precompiled binding problem

2009-03-29 Thread Karel Alfonso
Hi everyone,

  I'm working on a simple solution where I have two projects and one
reuses classes already bound (precompiled) in the other project. I'm
using JiBX version 1.2.1

  Let's say I have a precompiled binding in projectA, projecta-binding.xml

  binding package=com.projecta
  mapping name=a class=...A
  
  /mapping
  /binding

  Then projectB defines a binding that requires using class A from
projectA already compiled, projectb-binding.xml

  binding
 include path=projecta-binding.xml precompiled=true /

 mapping name=b class=B
   structure  map-as=...A /
 /mapping
  /binding

  However when I do mvn clean install (using the 1.2.1 JiBX maven
plugin) I get the following error:

  Classloader conflict for binding 'projecta_binding' - factory does not
implement required interface

  The exception is thrown from BindingDirectory.getFactory() method. I've
checked the binding factory generated by JiBX does implement
IBindingFactory, so I'm assumming it is really a class loader issue but
I'm not doing anything fancy, just a mvn clean install.

  I'd appreciate any help or advice regarding the use of precompiled
binding as shown in this example.

  Also, as a second suggestion, is it possible to include a precompiled
binding doing include path=classpath:binding.xml/ ? in that way
other projects don't have to manually copy the precompiled binding
definition to the project directory.

  Thanks in advance,

  Karel

--
___
jibx-users mailing list
jibx-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jibx-users