GlassFish 3.1 has been just released. It contains many new features and stability improvements (more details about the release are here) as well as all the new Metro 2.1 release. You can find out more about Metro 2.1 features from my earlier Metro 2.1 preview post. Fabian Ritzmann also wrote a nice Metro 2.1 feature summary in his recent post.
Yeap. is out, and now I can’t use JAXBContext properly. After upgrading i get a superb “javax.xml.bind.JAXBException: ClassCastException: attempting to cast bundle://325.1:1/javax/xml/bind/JAXBContext.class to jar:file:/C:/Program%20files/glassfish-3.0.1/glassfish/modules/endorsed/jaxb-api-osgi.jar!/javax/xml/bind/JAXBContext.class. Please make sure that you are specifying the proper ClassLoader.” Meaning that somehow the Jaxb libraries in java 6 and the endorsed ones in glassfish are getting confused. I don’t really know any workaround this.
This seems to be some OSGi related issue. Rather than just ranting, have you tried to ask for help on GF or Metro or JAXB forums? 🙂
Also, note that Metro 2.1 requires GF 3.1 (as it dependes on some of its features as well as newer version of JAXB) or later and I wonder how did you managed to install it on GF 3.0.1 ? Probably to make it work you would need to manually upgrade the JAXB modules in your GF installation to those one shipped with 3.1, and I am still not sure if that would be enough. So, I’d recommend to switch to GF 3.1 instead.
Is there a release build of WSIT 2.1 available for download anywhere? The WSIT download page (http://java.net/downloads/wsit) seems to be locked down and requires a username/password…
WSIT is part of the Metro. IOW, if you download Metro, you download WSIT including the core web servicing support. WSIT without the core is useless.
You can still download just WSIT API and Impl bundles from Maven repository:
http://download.java.net/maven/2/org/glassfish/metro/wsit-api/
http://download.java.net/maven/2/org/glassfish/metro/wsit-impl/
…but as I have said, those are not of much use without the Metro core libs.
Marek,
Many thanks, I had not realised it was included in the main Metro build.
Cheers,
Tom
Hi,
is there any documentation of workflow how provide WS-Secuirty using Metro/WSIT?
How for exapmle GlassFish is doing it or others Web Applications?
Hi,
is there any documentation how provide WS-Security using Metro/WSIT?
greg