[ 
http://jira.codehaus.org/browse/XFIRE-1080?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_105850
 ] 

Jean-Louis Pinheiro commented on XFIRE-1080:
--------------------------------------------

Martin,

I have the same problem and the same configuration as Franck.
Your patch seems to solve this issue and my service returns the security 
headers when an exception occurs.
The problem is that the soap fault doesn't have a detail element, and I then 
always obtain a org.codehaus.xfire.XFireRuntimeException instead of my 
functional exception.

Here is the stacktrace I obtain :
org.codehaus.xfire.XFireRuntimeException: Exception while calling: 
http://localhost:8082/SOFFWK_METIER_WAR/remoting/SecureSimulationService 
arguments: java.util.GregorianCalendar : 
java.util.GregorianCalendar[time=1188305504562,areFieldsSet=true,areAllFieldsSet=true,lenient=true,zone=sun.util.calendar.ZoneInfo[id="Europe/Paris",offset=3600000,dstSavings=3600000,useDaylight=true,transitions=184,lastRule=java.util.SimpleTimeZone[id=Europe/Paris,offset=3600000,dstSavings=3600000,useDaylight=true,startYear=0,startMode=2,startMonth=2,startDay=-1,startDayOfWeek=1,startTime=3600000,startTimeMode=2,endMode=2,endMonth=9,endDay=-1,endDayOfWeek=1,endTime=3600000,endTimeMode=2]],firstDayOfWeek=2,minimalDaysInFirstWeek=4,ERA=1,YEAR=2007,MONTH=7,WEEK_OF_YEAR=35,WEEK_OF_MONTH=5,DAY_OF_MONTH=28,DAY_OF_YEAR=240,DAY_OF_WEEK=3,DAY_OF_WEEK_IN_MONTH=4,AM_PM=1,HOUR=2,HOUR_OF_DAY=14,MINUTE=51,SECOND=44,MILLISECOND=562,ZONE_OFFSET=3600000,DST_OFFSET=3600000]
 |. Nested exception is org.codehaus.xfire.fault.XFireFault: Erreur pour de faux

The XFireFault should be converted to the functional exception thrown ...

Do you have an idea ?

> CLONE -Fault with Ws-Security : message not signed, when an exception is 
> thrown by the service
> ----------------------------------------------------------------------------------------------
>
>                 Key: XFIRE-1080
>                 URL: http://jira.codehaus.org/browse/XFIRE-1080
>             Project: XFire
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 1.2.4
>         Environment: Windows 2000, Tomcat 5.5, Java 1.5
>            Reporter: Franck HUGOT
>            Assignee: Tomasz Sztelak
>             Fix For: 1.2.5
>
>
> I have followed the instructions found in page 
> http://xfire.codehaus.org/WS-Security to sign my messages from client to 
> service and from service to client, and it works fine ! But when an exception 
> is thrown by the service, the message is not signed, and the following stack 
> trace is displayed by the client :
> org.codehaus.xfire.XFireRuntimeException: Could not invoke service.. Nested 
> exception is org.codehaus.xfire.fault.XFireFault: WSS4JInHandler: Request 
> does not contain required Security header
>       org.codehaus.xfire.client.XFireProxy.handleRequest(XFireProxy.java:92)
>       org.codehaus.xfire.client.XFireProxy.invoke(XFireProxy.java:57)
>       $Proxy12.rechercherPatrimoine(Unknown Source)
>       net.gicm.astral.test.XfireTest.test(XfireTest.java:65)
>       org.apache.jsp.index_jsp._jspService(index_jsp.java:48)
>       org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
>       javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>       
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:334)
>       org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
>       org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
>       javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> You can find client code + service.xml in attachment.
> I have tried to add a <faultHandlers> in service.xml, but it doesn't work. 
> Below what i have added in service.xml, but without success :
>               <faultHandlers>
>                       <handler 
> handlerClass="org.codehaus.xfire.util.dom.DOMOutHandler" />
>                       <bean 
> class="org.codehaus.xfire.security.wss4j.WSS4JOutHandler" xmlns="">
>                               <property name="properties">
>                                       <props>
>                                               <prop 
> key="action">Signature</prop>
>                                               <prop 
> key="signaturePropFile">service.properties</prop>
>                                   <prop 
> key="signatureKeyIdentifier">DirectReference</prop>
>                                               <prop 
> key="passwordCallbackClass">net.gicm.astral.handler.PasswordHandler</prop>
>                                   <prop key="user">Service</prop>
>                                       </props>
>                               </property>
>                       </bean>
>               </faultHandlers>
> It is the same problem that is described in 
> http://www.nabble.com/ws-security--exception-fault-handling-tf2241051.html#a6215424.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira



---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email

Reply via email to