Hi, I'm having a problem using Axis2-1.1.1 and Rampart-1.1 with the new WS-SecurityPolicy configurations. Specifically, I get a NullPointerException on the server side that gets propogated back to the client via an AxisFault every time I send a request secured with WS-Security. Here's the server console when it happens:
Unknown top level PED found: org.apache.neethi.builders.xml.XmlPrimtiveAssertion Unknown top level PED found: org.apache.neethi.builders.xml.XmlPrimtiveAssertion Unknown top level PED found: org.apache.neethi.builders.xml.XmlPrimtiveAssertion Unknown top level PED found: org.apache.neethi.builders.xml.XmlPrimtiveAssertion 2007-02-06 14:26:45,171 : AxisServlet.doPost : java.lang.NullPointerException It doesn't seem to matter what web service I call -- I've even tried plugging in the sample .aar's that come with the Rampart 1.1 distribution, and they give the error as well. But it only happens when I use Rampart with the WS-SecurityPolicy configuration. Through much pain and perseverence, I *think* I've tracked down the source of the error to missing "AssertionBuilder" objects. When Axis2 starts up, it looks for instances of AssertionBuilder objects to register for later use. Rampart has a whole mess of these things, apparently one for each possible XML tag in the WS-SecurityPolicy spec and its RampartConfig extensions. But for some reason the AssertionBuilders are not being registered when Axis starts up, so when it parses the security config it jams everything into the default XmlPrimitiveAssertion objects instead. Then when it tries to process a request and looks for the Policy to apply to it, the RampartConfig assertions it expects are missing, and it spits out an NPE. Can anyone tell me what's going on? Is this a bug in Axis2/Rampart, or is there something wrong with my config? Thanks!