0
我是新來的騾子,我配置騾子安全與HTTP基本身份驗證如下: 爲什麼我的請求在被HTTP基本認證保護時被卡住了?
<spring:beans>
<!-- Setup authentication -->
<ss:authentication-manager alias="authenticationManager">
<ss:authentication-provider user-service-ref="appAuthService">
</ss:authentication-provider>
</ss:authentication-manager>
<spring:bean id="appAuthService" class="org.jamee.demo.mule.rest.AppAuthService" />
<ss:global-method-security jsr250-annotations="enabled" />
</spring:beans>
<flow name="muleFlow1" doc:name="muleFlow1">
<http:inbound-endpoint exchange-pattern="request-response" host="0.0.0.0" port="8081" path="rest"
doc:name="HTTP">
<mule-ss:http-security-filter realm="mule-realm" />
</http:inbound-endpoint>
<jersey:resources doc:name="REST">
<component class="org.jamee.demo.mule.rest.WeatherService" />
</jersey:resources>
</flow>
,當我在騾子工作室調試它工作正常,但是當我將其導出爲zip包,並把它在app/mule-standalone-3.4.0中,並且通過瀏覽器請求其餘的API,它提示我輸入用戶名和密碼,我輸入正確的一個,然後它接受,但是瀏覽器很忙併且沒有響應輸出,好像是騾子卡住了。
當我刪除:< mule-ss:http-security-filter realm =「mule-realm」/ >,它立即響應正確的輸出。
日誌似乎正常:
INFO 2013-08-08 09:07:42,870 [WrapperListener_start_runner] org.mule.module.launcher.application.DefaultMuleApplication:
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+ New app 'demo.rest' +
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
八月 08, 2013 9:07:45 上午 com.sun.jersey.server.impl.application.WebApplicationImpl _initiate
INFO: Initiating Jersey application, version 'Jersey: 1.6 03/25/2011 01:14 PM'
INFO 2013-08-08 09:07:45,801 [WrapperListener_start_runner] org.mule.module.launcher.MuleDeploymentService:
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+ Started app 'demo.rest' +
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
INFO 2013-08-08 09:07:45,803 [WrapperListener_start_runner] org.mule.module.launcher.StartupSummaryDeploymentListener:
**********************************************************************
* - - + APPLICATION + - - * - - + STATUS + - - *
**********************************************************************
* demo.rest * DEPLOYED *
**********************************************************************
INFO 2013-08-08 09:07:45,806 [WrapperListener_start_runner] org.mule.module.launcher.MuleDeploymentService:
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+ Mule is up and kicking (every 5000ms) +
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
你可以與我們分享應用程序的日誌? – genjosanzo
看到我的編輯,日誌似乎很正常 – jamee