Hi Scot, There is a known incompatibility between Axis2 1.6.1 and Rampart 1.6.0. Please try reverting back to Axis2 1.6.0 until Rampart 1.6.1 will be released. We are planning to release Rampart 1.6.1 soon.
Thanks, Thilina On Thu, Sep 22, 2011 at 5:59 PM, Scott Selvia <ssel...@datamentors.com>wrote: > The following wsp:Policy block in my services.xml works with Axis2 1.5.5 > with Rampart 1.5.1 however with Axis2 1.6.1 and Rampart 1.6.0 I get the > stack trace below the policy block. What has changed and is the policy > block no longer needed?**** > > ** ** > > <wsp:Policy wsu:Id="HTTPS"**** > > xmlns:wsu=" > http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd > "**** > > xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy">* > *** > > <wsp:ExactlyOne>**** > > <wsp:All>**** > > <sp:TransportBinding xmlns:sp=" > http://schemas.xmlsoap.org/ws/2005/07/securitypolicy">**** > > <wsp:Policy>**** > > <sp:TransportToken>**** > > <wsp:Policy>**** > > <sp:HttpsToken > RequireClientCertificate="false"/>**** > > </wsp:Policy>**** > > </sp:TransportToken>**** > > ** ** > > <sp:AlgorithmSuite>**** > > <wsp:Policy>**** > > <sp:Basic256/>**** > > </wsp:Policy>**** > > </sp:AlgorithmSuite>**** > > ** ** > > <sp:Layout>**** > > <wsp:Policy>**** > > <sp:Lax/>**** > > </wsp:Policy>**** > > </sp:Layout>**** > > ** ** > > <sp:IncludeTimestamp/>**** > > </wsp:Policy>**** > > </sp:TransportBinding>**** > > ** ** > > <ramp:RampartConfig xmlns:ramp=" > http://ws.apache.org/rampart/policy">**** > > </ramp:RampartConfig>**** > > </wsp:All>**** > > </wsp:ExactlyOne>**** > > </wsp:Policy>**** > > ** ** > > org.apache.axis2.deployment.DeploymentException: java.lang.Class cannot be > cast to java.lang.reflect.ParameterizedType**** > > at > org.apache.axis2.deployment.repository.util.ArchiveReader.processServiceGroup(ArchiveReader.java:150) > **** > > at > org.apache.axis2.deployment.ServiceDeployer.deploy(ServiceDeployer.java:82) > **** > > at > org.apache.axis2.deployment.repository.util.DeploymentFileData.deploy(DeploymentFileData.java:136) > **** > > at > org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.java:813) > **** > > at > org.apache.axis2.deployment.repository.util.WSInfoList.update(WSInfoList.java:144) > **** > > at > org.apache.axis2.deployment.RepositoryListener.update(RepositoryListener.java:370) > **** > > at > org.apache.axis2.deployment.RepositoryListener.checkServices(RepositoryListener.java:254) > **** > > at > org.apache.axis2.deployment.DeploymentEngine.loadServices(DeploymentEngine.java:142) > **** > > at > org.apache.axis2.deployment.WarBasedAxisConfigurator.loadServices(WarBasedAxisConfigurator.java:283) > **** > > at > org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:95) > **** > > at > org.apache.axis2.transport.http.AxisServlet.initConfigContext(AxisServlet.java:584) > **** > > at > org.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java:454)**** > > at > org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1228) > **** > > at > org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1147) > **** > > at > org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1043)** > ** > > at > org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4957) > **** > > at > org.apache.catalina.core.StandardContext$3.call(StandardContext.java:5284) > **** > > at > org.apache.catalina.core.StandardContext$3.call(StandardContext.java:5279) > **** > > at > java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)**** > > at java.util.concurrent.FutureTask.run(FutureTask.java:138)**** > > at > java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) > **** > > at > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) > **** > > at java.lang.Thread.run(Thread.java:662)**** > > Caused by: java.lang.ClassCastException: java.lang.Class cannot be cast to > java.lang.reflect.ParameterizedType**** > > at > org.apache.neethi.AssertionBuilderFactoryImpl.findAssertionBuilderTarget(AssertionBuilderFactoryImpl.java:136) > **** > > at > org.apache.neethi.AssertionBuilderFactoryImpl.invokeBuilder(AssertionBuilderFactoryImpl.java:128) > **** > > at > org.apache.neethi.AssertionBuilderFactoryImpl.build(AssertionBuilderFactoryImpl.java:110) > **** > > at > org.apache.neethi.PolicyBuilder.processOperationElement(PolicyBuilder.java:225) > **** > > at > org.apache.neethi.PolicyBuilder.getAllOperator(PolicyBuilder.java:185)**** > > at > org.apache.neethi.PolicyBuilder.processOperationElement(PolicyBuilder.java:218) > **** > > at > org.apache.neethi.PolicyBuilder.getExactlyOneOperator(PolicyBuilder.java:181) > **** > > at > org.apache.neethi.PolicyBuilder.processOperationElement(PolicyBuilder.java:216) > **** > > at > org.apache.neethi.PolicyBuilder.getPolicyOperator(PolicyBuilder.java:175)* > *** > > at > org.apache.neethi.PolicyBuilder.getPolicy(PolicyBuilder.java:125)**** > > at org.apache.neethi.PolicyEngine.getPolicy(PolicyEngine.java:102) > **** > > at > org.apache.axis2.deployment.DescriptionBuilder.processPolicyElements(DescriptionBuilder.java:639) > **** > > at > org.apache.axis2.deployment.ServiceBuilder.populateService(ServiceBuilder.java:307) > **** > > at > org.apache.axis2.deployment.repository.util.ArchiveReader.buildServiceGroup(ArchiveReader.java:101) > **** > > at > org.apache.axis2.deployment.repository.util.ArchiveReader.processServiceGroup(ArchiveReader.java:143) > **** > > ... 22 more**** > > ** ** > > *Scott Selvia* > Manager of Product Development > (O) 813.960.7800 x102 > (F) 813.960.7811 > *http://www.datamentors.com* <http://www.datamentors.com/>* ***** > > [image: cid:image002.gif@01CB24F6.87C39E10]**** > > ** ** > -- Thilina Mahesh Buddhika http://blog.thilinamb.com
<<image001.gif>>