2013-08-07 25 views
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)     + 
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 
+0

你可以与我们分享应用程序的日志? – genjosanzo

+0

看到我的编辑,日志似乎很正常 – jamee

回答

0

对不起,我仔细检查代码,我发现:我输入一个错误的类:edu.emory.mathcs.backport.java.util.Arrays,当我改变到:java.util.Arrays,它工作正常! 我不确定edu.emory数组是如何实现的。