Thanks for the help but I get the following stack trace when I use Axis2 1.6.0 with Rampart 1.6.1. I tried backing down to Rampart 1.5.1 with Axis2 1.6.0 and I get the same stack trace.
I there an Axis2 config parameter to solve the stack trace below? If
not then I hope the new Rampart is released soon.
[ERROR] Expected transport is "https" but incoming transport found :
"http"
org.apache.axis2.AxisFault: Expected transport is "https" but incoming
transport found : "http"
at
org.apache.rampart.handler.RampartReceiver.setFaultCodeAndThrowAxisFault
(RampartReceiver.java:180)
at
org.apache.rampart.handler.RampartReceiver.invoke(RampartReceiver.java:9
9)
at org.apache.axis2.engine.Phase.invokeHandler(Phase.java:340)
at org.apache.axis2.engine.Phase.invoke(Phase.java:313)
at
org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:262)
at
org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:168)
at
org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostReques
t(HTTPTransportUtils.java:172)
at
org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:146)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:641)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:304)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:210)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv
e.java:224)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv
e.java:185)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authenticator
Base.java:472)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
:151)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
:100)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:929
)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.
java:118)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:4
05)
at
org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.j
ava:269)
at
org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(Abs
tractProtocol.java:515)
at
org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.j
ava:1773)
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecuto
r.java:886)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.ja
va:908)
at java.lang.Thread.run(Thread.java:662)
Caused by: org.apache.rampart.RampartException: Expected transport is
"https" but incoming transport found : "http"
at
org.apache.rampart.util.RampartUtil.validateTransport(RampartUtil.java:1
709)
at
org.apache.rampart.RampartEngine.process(RampartEngine.java:84)
at
org.apache.rampart.handler.RampartReceiver.invoke(RampartReceiver.java:9
2)
... 24 more
From: Thilina Mahesh Buddhika [mailto:[email protected]]
Sent: Thursday, September 22, 2011 9:53 AM
To: [email protected]
Subject: Re: Error Deploying Webservice on Axis2 1.6.1 and Rampart 1.6.0
with wsp:Policy in services.xml
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 <[email protected]>
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-utili
ty-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.processService
Group(ArchiveReader.java:150)
at
org.apache.axis2.deployment.ServiceDeployer.deploy(ServiceDeployer.java:
82)
at
org.apache.axis2.deployment.repository.util.DeploymentFileData.deploy(De
ploymentFileData.java:136)
at
org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.j
ava: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(RepositoryL
istener.java:254)
at
org.apache.axis2.deployment.DeploymentEngine.loadServices(DeploymentEngi
ne.java:142)
at
org.apache.axis2.deployment.WarBasedAxisConfigurator.loadServices(WarBas
edAxisConfigurator.java:283)
at
org.apache.axis2.context.ConfigurationContextFactory.createConfiguration
Context(ConfigurationContextFactory.java:95)
at
org.apache.axis2.transport.http.AxisServlet.initConfigContext(AxisServle
t.java:584)
at
org.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java:454)
at
org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.jav
a:1228)
at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.jav
a:1147)
at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1043)
at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.j
ava:4957)
at
org.apache.catalina.core.StandardContext$3.call(StandardContext.java:528
4)
at
org.apache.catalina.core.StandardContext$3.call(StandardContext.java:527
9)
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(ThreadPoolExecuto
r.java:886)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.ja
va: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(AssertionBui
lderFactoryImpl.java:128)
at
org.apache.neethi.AssertionBuilderFactoryImpl.build(AssertionBuilderFact
oryImpl.java:110)
at
org.apache.neethi.PolicyBuilder.processOperationElement(PolicyBuilder.ja
va:225)
at
org.apache.neethi.PolicyBuilder.getAllOperator(PolicyBuilder.java:185)
at
org.apache.neethi.PolicyBuilder.processOperationElement(PolicyBuilder.ja
va:218)
at
org.apache.neethi.PolicyBuilder.getExactlyOneOperator(PolicyBuilder.java
:181)
at
org.apache.neethi.PolicyBuilder.processOperationElement(PolicyBuilder.ja
va: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(Des
criptionBuilder.java:639)
at
org.apache.axis2.deployment.ServiceBuilder.populateService(ServiceBuilde
r.java:307)
at
org.apache.axis2.deployment.repository.util.ArchiveReader.buildServiceGr
oup(ArchiveReader.java:101)
at
org.apache.axis2.deployment.repository.util.ArchiveReader.processService
Group(ArchiveReader.java:143)
... 22 more
Scott Selvia
Manager of Product Development
(O) 813.960.7800 x102 <tel:813.960.7800%20x102>
(F) 813.960.7811
http://www.datamentors.com <http://www.datamentors.com/>
--
Thilina Mahesh Buddhika
http://blog.thilinamb.com
<<image001.gif>>
