14 Replies Latest reply: Jul 1, 2009 6:15 PM by Anil Saldhana RSS

JAXB annotations for OSGi Blueprint

Thomas Diesler Master

> JAXB annotations is the recommended way now.

I looked at

http://www.jboss.org/community/wiki/JBossXBPOTutorial

but could not find a tutorial that uses JAXB annotations.
Could you please provide one?

Using annotations I get

Caused by: org.jboss.xb.binding.JBossXBRuntimeException: {http://www.osgi.org/xmlns/blueprint/v1.0.0}bean not found as a child of {http://www.osgi.org/xmlns/blueprint/v1.0.0}blueprint
 at org.jboss.xb.binding.sunday.unmarshalling.SundayContentHandler.startElement(SundayContentHandler.java:400)
 at org.jboss.xb.binding.parser.sax.SaxJBossXBParser$DelegatingContentHandler.startElement(SaxJBossXBParser.java:401)


Here is the new parser

https://anonsvn.jboss.org/repos/jbossas/projects/jboss-osgi/trunk/blueprint/impl/src/main/java/org/jboss/osgi/blueprint/parser/SchemaResolverParser.java