我用SPRING + Xfire 
在调用服务端方法时 每调用一次 就会出现ERROR [http-8080-Processor24] WSS4JInHandler.invoke(271) | org.apache.ws.security.WSSecurityException: WSHandler: Signature: no crypto properties
 
异常 但是却能调用该方法 这是什么问题 怎样解决?客户端:public static void main(String[] args) {
WSS4JOutHandler wsOut;
Client client;
try {

/**
 * 动态访问
 */

client = new Client(new URL(
"http://localhost:8080/PYPproject/getlistservice.ws?wsdl"));

Properties properties = new Properties();
properties.setProperty(WSHandlerConstants.ACTION,
WSHandlerConstants.SIGNATURE);
// 私钥名字
properties.setProperty(WSHandlerConstants.USER, "ws_security");
// properties文件URL
properties.setProperty(WSHandlerConstants.SIG_PROP_FILE,
"outsecurity.properties");
// callback类
properties.setProperty(WSHandlerConstants.PW_CALLBACK_CLASS,
PasswordHandler.class.getName()); // 绑定
wsOut = new WSS4JOutHandler(properties); client.addOutHandler(new DOMOutHandler());
client.addOutHandler(wsOut);

String tem = "123456%%2006";
Object[] results = client.invoke("addId",new Object[] { tem });
System.out.println(results[0].toString());

/*Object[] results = client.invoke("sayHello",new Object[] {});
System.out.println((String)results[0]);*/
 client.invoke("Look",new Object[] {});
 
} catch (MalformedURLException e) {
e.printStackTrace();
} catch (Exception e) {
e.printStackTrace();
}
xfire-server.xml:<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">
<beans>
<!-- 引入XFire预配置信息 -->
<import resource="classpath:org/codehaus/xfire/spring/xfire.xml" /> 

<!-- 定义访问的url -->
<bean class="org.springframework.web.servlet.handler.SimpleUrlHandlerMapping">
<property name="urlMap">
<map>
<entry key="/getlistservice.ws">
<ref bean="GetListService" />
</entry>
</map>
</property>
</bean> <!-- 使用XFire导出器  -->
<bean id="baseWebService" class="org.codehaus.xfire.spring.remoting.XFireExporter"
lazy-init="false" abstract="true">
<!-- 引用xfire.xml中定义的工厂 -->
<property name="serviceFactory" ref="xfire.serviceFactory" />
<!-- 引用xfire.xml中的xfire实例 -->
<property name="xfire" ref="xfire" />
</bean> <bean id="GetListService" class="org.codehaus.xfire.spring.remoting.XFireExporter">
<property name="serviceBean" ref="IdcardListImpl" />
<property name="serviceClass" value="org.appfuse.webapp.linkedlist.IdCardList"/>
<property name="inHandlers">
<list>
<ref bean="domInHandler" />
<ref bean="wss4jInHandlerSign" />
</list>
</property>
</bean>

<bean id="IdcardListImpl" class="org.appfuse.webapp.linkedlist.IdcardListImpl" />

<bean id="domInHandler" class="org.codehaus.xfire.util.dom.DOMInHandler" /> <bean id="wss4jInHandlerSign" class="org.codehaus.xfire.security.wss4j.WSS4JInHandler">
<property name="properties">
<props>
<prop key="action">Signature</prop>
<prop key="decryptionPropFile">WEB-INF/insecurity.properties</prop>
<prop key="passwordCallbackClass">org.appfuse.webapp.linkedlist.PasswordHandler</prop>
</props>
</property>
</bean>


</beans>