users@jaxb.java.net

namespacePrefixMapper

From: Malachi de AElfweald <malachi_at_EOTI.ORG>
Date: Mon, 16 Jun 2003 14:00:10 -0600

I've been out of the loop for awhile on other projects. I upgraded to the latest stuff and started testing it.

I was trying my hand at the example: samples/namespace-prefix

I created my own NamespacePrefixMapper, then instantiated it as per the example:

 m.setProperty("com.sun.xml.bind.namespacePrefixMapper",new NSPrefixMapper());

However, the try/catch around that always fails with a PropertyException that doesn't explain what the problem is:

javax.xml.bind.PropertyException: name: com.sun.xml.bind.namespacePrefixMapper value: com.temporalwave.spec.NSPrefixMapp
er_at_111a3a4
        at javax.xml.bind.helpers.AbstractMarshallerImpl.setProperty(AbstractMarshallerImpl.java:290)
        at com.sun.xml.bind.marshaller.MarshallerImpl.setProperty(MarshallerImpl.java:226)
        at dynTest.<init>(dynTest.java:186)
        at dynTest.main(dynTest.java:20)



How do I fix this?

Thanks,
Malachi