Why my request get stuck when mule is secured by HTTP Basic Authentication? -


i new mule, , configured mule security http basic authentication following:

<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> 

it works fine when debug in mule studio, when export zip package , put in app/ of mule-standalone-3.4.0, , request rest api browser, prompts me user , password, input right one, , accepts, browser busy , no response output, seems mule stuck.

when remove the:<mule-ss:http-security-filter realm="mule-realm"/>,it response right output immediately.

log seems normal:

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 , kicking (every 5000ms)                    + ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 

sorry, checked code carefully, found that: import wrong class: edu.emory.mathcs.backport.java.util.arrays, when changed to: java.util.arrays, works fine! not sure how edu.emory arrays implemented.


Comments

Popular posts from this blog

image - ClassNotFoundException when add a prebuilt apk into system.img in android -

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -