You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by PLANAMENTE Michael EXT-OD <mi...@atos.net> on 2012/07/23 12:00:50 UTC

bundle start problem

Hi all,
Maybe you'll be able to help us ,
We have a strange problem with some of our bundles. Here is the context:

We have 1 bundle(call it A) containing commons stuff(1 XSD file + generated classes)
We have an other bundle(call it B) using the xsd through JAXB context instanciation.
When I deploy both, B seems not to recognize generated classes from bundle A saying:
Javax.xml.bind.JAXBException: "name of our package in bundle A containing generated classes from XSD" doesn't contain ObjectFactory.class or jaxb.index

That occurs when jaxb context factory createContext is called.

All classes from bundle A are available AND well generated.

The really strange thing is , when we refresh bundle B, it restarts correctly, I suppose the problem comes from class loading or something BUT I do not really know why!

Many thanks,
Michael


________________________________

Atos Worldline SA/NV - Chaussee de Haecht 1442 Haachtsesteenweg
- 1130 Brussels - Belgium
RPM-RPR Bruxelles-Brussel - TVA-BTW BE 0418.547.872
Bankrekening-Compte Bancaire-Bank Account 310-0269424-44
BIC BBRUBEBB - IBAN BE55 3100 2694 2444

"The information contained in this e-mail and any attachment thereto is confidential and may contain information which is protected by intellectual property rights.
This information is intended for the exclusive use of the recipient(s) named above.
This e-mail does not constitute any binding relationship or offer toward any of the addressees.
If you are not one of the addressees , one of their employees or a proxy holder entitled to hand over this message to the addressee(s), any use of the information contained herein (e.g. reproduction, divulgation, communication or distribution,...) is prohibited.
If you have received this message in error, please notify the sender and destroy it immediately after.
The integrity and security of this message cannot be guaranteed and it may be subject to data corruption, interception and unauthorized amendment, for which we accept no liability."

RE: bundle start problem

Posted by PLANAMENTE Michael EXT-OD <mi...@atos.net>.
To be more precise, error occurs when JAXBContext.newInstance(the class name) is called
See below for problem description

Hi all,
Maybe you'll be able to help us ,
We have a strange problem with some of our bundles. Here is the context:

We have 1 bundle(call it A) containing commons stuff(1 XSD file + generated classes)
We have an other bundle(call it B) using the xsd through JAXB context instanciation.
When I deploy both, B seems not to recognize generated classes from bundle A saying:
Javax.xml.bind.JAXBException: "name of our package in bundle A containing generated classes from XSD" doesn't contain ObjectFactory.class or jaxb.index

That occurs when jaxb context factory createContext is called.

All classes from bundle A are available AND well generated.

The really strange thing is , when we refresh bundle B, it restarts correctly, I suppose the problem comes from class loading or something BUT I do not really know why!

Many thanks,
Michael


________________________________

Atos Worldline SA/NV - Chaussee de Haecht 1442 Haachtsesteenweg
- 1130 Brussels - Belgium
RPM-RPR Bruxelles-Brussel - TVA-BTW BE 0418.547.872
Bankrekening-Compte Bancaire-Bank Account 310-0269424-44
BIC BBRUBEBB - IBAN BE55 3100 2694 2444

"The information contained in this e-mail and any attachment thereto is confidential and may contain information which is protected by intellectual property rights.
This information is intended for the exclusive use of the recipient(s) named above.
This e-mail does not constitute any binding relationship or offer toward any of the addressees.
If you are not one of the addressees , one of their employees or a proxy holder entitled to hand over this message to the addressee(s), any use of the information contained herein (e.g. reproduction, divulgation, communication or distribution,...) is prohibited.
If you have received this message in error, please notify the sender and destroy it immediately after.
The integrity and security of this message cannot be guaranteed and it may be subject to data corruption, interception and unauthorized amendment, for which we accept no liability."


Atos Worldline SA/NV - Chaussee de Haecht 1442 Haachtsesteenweg
- 1130 Brussels - Belgium
RPM-RPR Bruxelles-Brussel - TVA-BTW BE 0418.547.872
Bankrekening-Compte Bancaire-Bank Account 310-0269424-44
BIC BBRUBEBB - IBAN BE55 3100 2694 2444

"The information contained in this e-mail and any attachment thereto is confidential and may contain information which is protected by intellectual property rights.
This information is intended for the exclusive use of the recipient(s) named above.
This e-mail does not constitute any binding relationship or offer toward any of the addressees.
If you are not one of the addressees , one of their employees or a proxy holder entitled to hand over this message to the addressee(s), any use of the information contained herein (e.g. reproduction, divulgation, communication or distribution,...) is prohibited.
If you have received this message in error, please notify the sender and destroy it immediately after.
The integrity and security of this message cannot be guaranteed and it may be subject to data corruption, interception and unauthorized amendment, for which we accept no liability."


RE: bundle start problem

Posted by PLANAMENTE Michael EXT-OD <mi...@atos.net>.
Hi all,
Maybe you'll be able to help us ,
We have a strange problem with some of our bundles. Here is the context:

We have 1 bundle(call it A) containing commons stuff(1 XSD file + generated classes)
We have an other bundle(call it B) using the xsd through JAXB context instanciation.
When I deploy both, B seems not to recognize generated classes from bundle A saying:
Javax.xml.bind.JAXBException: "name of our package in bundle A containing generated classes from XSD" doesn't contain ObjectFactory.class or jaxb.index

That occurs when jaxb context factory createContext is called.

All classes from bundle A are available AND well generated.

The really strange thing is , when we refresh bundle B, it restarts correctly, I suppose the problem comes from class loading or something BUT I do not really know why!

Many thanks,
Michael


________________________________

Atos Worldline SA/NV - Chaussee de Haecht 1442 Haachtsesteenweg
- 1130 Brussels - Belgium
RPM-RPR Bruxelles-Brussel - TVA-BTW BE 0418.547.872
Bankrekening-Compte Bancaire-Bank Account 310-0269424-44
BIC BBRUBEBB - IBAN BE55 3100 2694 2444

"The information contained in this e-mail and any attachment thereto is confidential and may contain information which is protected by intellectual property rights.
This information is intended for the exclusive use of the recipient(s) named above.
This e-mail does not constitute any binding relationship or offer toward any of the addressees.
If you are not one of the addressees , one of their employees or a proxy holder entitled to hand over this message to the addressee(s), any use of the information contained herein (e.g. reproduction, divulgation, communication or distribution,...) is prohibited.
If you have received this message in error, please notify the sender and destroy it immediately after.
The integrity and security of this message cannot be guaranteed and it may be subject to data corruption, interception and unauthorized amendment, for which we accept no liability."