[jboss-dev-forums] [Design of JBossXB] - Re: problem parsing sip.xml with JBossXB
alex.loubyansky@jboss.com
do-not-reply at jboss.com
Fri Jan 9 17:11:05 EST 2009
anonymous wrote : In creating my own ServletsMetatData and ServletMetatData classes and add the XmlElement annotation for each setter present in specifying the javaee namespace in the ServletMetatData class + adding the XmlType annotation at the class level with the javaee namespace specified it worked
Yes, I don't see another workaround. There should be an annotation that would just bind the type and all its content to the specified namespace. This is what I would expect from @JBossXmlNsPrefix but it's effective only on the property's element name, the children will still be bound to the schema target/default namespace.
anonymous wrote : but now if you don't specify any schema in the sip.xml which will call the JBossSip11MetaData (http://code.google.com/p/mobicents/source/browse/trunk/servers/sip-servlets/sip-servlets-jboss5/src/main/java/org/jboss/metadata/sip/jboss/JBossSip11MetaData.java ) it fails because it seems it tries to lookup the javaee namespace always...
Because they are explicitly bound to javaee ns?
If you want to create testcases, I'd suggest the metadata project.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4200727#4200727
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4200727
More information about the jboss-dev-forums
mailing list