This week's book giveaway is in the Cloud/Virtualization forum.
We're giving away four copies of Building Blockchain Apps and have Michael Yuan on-line!
See this thread for details.
Win a copy of Building Blockchain Apps this week in the Cloud/Virtualization forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Liutauras Vilda
  • Knute Snortum
  • Bear Bibeault
Sheriffs:
  • Devaka Cooray
  • Jeanne Boyarsky
  • Junilu Lacar
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • salvin francis
Bartenders:
  • Tim Holloway
  • Piet Souris
  • Frits Walraven

Websphere security -- SOAP signatures -- Redbook webbank example

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying the webbank example provided with the Websphere AE Security redbook because I am interested in implementing SOAP signature. I have completed the example, but when running the generated test client (section 9.4.3) I am getting an 'Invalid Signature' exception.
Has anyone encountered this problem? Can someone offer some help? Thanks.
--Tony
Console output of test:
*** Starting the server ***
IBM WebSphere Application Server, Release 4.0.2
Advanced Single Server Edition for Multiplatforms
Copyright IBM Corp., 1997-2001
************ Start Display Current Environment ************
WebSphere AEs 4.0.2 a0150.05 running with process name localhost/Default Server and process id 2668
Host Operating System is Windows 2000, version 5.1
Java version = J2RE 1.3.0 IBM build cn130-20010925was (JIT disabled), Java Compiler = , Java VM name = Classic VM
server.root = D:/Apps/appDevWSAD/plugins/com.ibm.etools.websphere.runtime
Java Home = D:\Apps\appDevWSAD\plugins\com.ibm.etools.server.jdk\jre
ws.ext.dirs = D:/Apps/appDevWSAD/plugins/com.ibm.etools.server.jdk/lib;D:/Apps/appDevWSAD/plugins/com.ibm.etools.websphere.runtime/classes;D:/Apps/appDevWSAD/plugins/com.ibm.etools.websphere.runtime/lib;D:/Apps/appDevWSAD/plugins/com.ibm.etools.websphere.runtime/lib/ext;D:/Apps/appDevWSAD/plugins/com.ibm.etools.websphere.runtime/web/help;D:/Apps/DB2/java/db2java.zip;D:/Apps/appDevWSAD/plugins/com.ibm.etools.websphere.tools/runtime/wasListener.jar;D:/Apps/appDevWSAD/plugins/com.ibm.etools.webservice/runtime/wo rf.jar
Classpath = D:/Apps/appDevWSAD/plugins/com.ibm.etools.websphere.runtime/properties;D:/Apps/appDevWSAD/plugins/com.ibm.etools.websphere.runtime/lib/bootstrap.jar;D:/Apps/appDevWSAD/plugins/com.ibm.etools.websphere.tools/runtime/wteServers.jar;D:/Apps/appDevWSAD/plugins/com.ibm.etools.websphere.tools/runtime/wasTools.jar
Java Library path = D:/Apps/appDevWSAD/plugins/com.ibm.etools.websphere.runtime/bin;D:\Apps\appDevWSAD\jre\bin;.;C:\WINDOWS\System32;C:\WINDOWS;C:\Program Files\JavaSoft\JRE\1.3.1_02\bin;d:\Apps\Tools\MKSToolkit\mksnt;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\PROGRA~1\COMMON~1\ADAPTE~1\System;D:\Apps\DB2\BIN;D:\Apps\DB2\FUNCTION;D:\Apps\DB2\SAMPLES\REPL;D:\Apps\DB2\HELP;D:\Apps\IBM\IMNNQ;C:\Program Files\JavaSoft\JRE\1.3.1_02\bin;d:\WebSphere\AppServer\bin;d:\tsnm\manager\mq\tools\c\samples\bin;d:\tsnm\manager\mq\bin;d:\apps\CMVC\exe;d:\apps\CMVC\exe\bin;;
Current trace specification = *=all=disabled
************* End Display Current Environment *************
[4/28/02 13:04:03:123 PDT] dcd2968 Server U Version : 4.0.2
[4/28/02 13:04:03:139 PDT] dcd2968 Server U Edition: Advanced Single Server Edition for Multiplatforms
[4/28/02 13:04:03:139 PDT] dcd2968 Server U Build date: Tue Dec 18 00:00:00 PST 2001
[4/28/02 13:04:03:139 PDT] dcd2968 Server U Build number: a0150.05
[4/28/02 13:04:07:435 PDT] dcd2968 DrAdminServer I WSVR0053I: DrAdmin available on port 7000
[4/28/02 13:04:07:810 PDT] dcd2968 ResourceBinde I WSVR0049I: Binding Session Persistence datasource as jdbc/Session
[4/28/02 13:04:07:842 PDT] dcd2968 ResourceBinde I WSVR0049I: Binding webbank as jdbc/webbank
[4/28/02 13:04:12:560 PDT] dcd2968 EJBEngine I WSVR0037I: Starting EJB jar: webbankEJBs
[4/28/02 13:04:16:467 PDT] dcd2968 ServletEngine A SRVE0161I: IBM WebSphere Application Server - Web Container. Copyright IBM Corp. 1998-2001
[4/28/02 13:04:16:873 PDT] dcd2968 ServletEngine A SRVE0162I: Servlet Specification Level: 2.2
[4/28/02 13:04:16:889 PDT] dcd2968 ServletEngine A SRVE0163I: Supported JSP Specification Level: 1.1
[4/28/02 13:04:17:545 PDT] dcd2968 ServletEngine A SRVE0167I: Session Manager is Configured - Initializing...
[4/28/02 13:04:17:951 PDT] dcd2968 CacheManager A DYNA0011E: Servlet cache file dynacache.xml not found; caching is disabled
[4/28/02 13:04:18:045 PDT] dcd2968 ServletEngine A SRVE0169I: Loading Web Module: IBM EJB Test Client.
[4/28/02 13:04:18:873 PDT] dcd2968 WebGroup I SRVE0091I: [Servlet LOG]: JSP 1.1 Processor: init
[4/28/02 13:04:18:967 PDT] dcd2968 WebGroup I SRVE0091I: [Servlet LOG]: SimpleFileServlet: init
[4/28/02 13:04:19:139 PDT] dcd2968 ServletEngine A SRVE0169I: Loading Web Module: webbankWeb.
[4/28/02 13:04:19:326 PDT] dcd2968 WebGroup I SRVE0091I: [Servlet LOG]: JSP 1.1 Processor: init
[4/28/02 13:04:19:404 PDT] dcd2968 WebGroup I SRVE0091I: [Servlet LOG]: SimpleFileServlet: init
[4/28/02 13:04:19:467 PDT] dcd2968 WebGroup I SRVE0091I: [Servlet LOG]: InvokerServlet: init
[4/28/02 13:04:19:639 PDT] dcd2968 HttpTransport A SRVE0171I: Transport http is listening on port 8,080.
[4/28/02 13:04:19:685 PDT] dcd2968 Server A WSVR0023I: Server Default Server open for e-business
[4/28/02 13:04:59:982 PDT] 144c696b SystemOut U [Sunday, April 28, 2002 1:04:59 PM PDT] Servlet.Engine.Transports:10 "EditorComponent class name: com.ibm.xml.soap.security.dsig.SOAPVerifier"
[4/28/02 13:05:00:139 PDT] 144c696b SystemOut U [Sunday, April 28, 2002 1:05:00 PM PDT] Servlet.Engine.Transports:10 "{EnvelopeEditorHome=d:/websphere/projects/webbank/webbankWeb/webApplication, filename=conf/cl-ver-config.xml}"
[4/28/02 13:05:00:139 PDT] 144c696b SystemOut U [Sunday, April 28, 2002 1:05:00 PM PDT] Servlet.Engine.Transports:10 "conf/cl-ver-config.xml"
[4/28/02 13:05:01:514 PDT] 144c696b SystemOut U [Sunday, April 28, 2002 1:05:01 PM PDT] Servlet.Engine.Transports:10 "EditorComponent class name: com.ibm.xml.soap.security.dsig.SOAPSigner"
[4/28/02 13:05:01:560 PDT] 144c696b SystemOut U [Sunday, April 28, 2002 1:05:01 PM PDT] Servlet.Engine.Transports:10 "{EnvelopeEditorHome=d:/websphere/projects/webbank/webbankWeb/webApplication, filename=conf/cl-sig-config.xml}"
[4/28/02 13:05:01:560 PDT] 144c696b SystemOut U [Sunday, April 28, 2002 1:05:01 PM PDT] Servlet.Engine.Transports:10 "conf/cl-sig-config.xml"
[4/28/02 13:05:03:607 PDT] 1448a96b WebGroup I SRVE0091I: [Servlet LOG]: rpcrouter: init
[4/28/02 13:05:03:639 PDT] 1448a96b SystemOut U [Sunday, April 28, 2002 1:05:03 PM PDT] Servlet.Engine.Transports:9 "EditorComponent class name: com.ibm.xml.soap.security.dsig.SOAPVerifier"
[4/28/02 13:05:03:639 PDT] 1448a96b SystemOut U [Sunday, April 28, 2002 1:05:03 PM PDT] Servlet.Engine.Transports:9 "{EnvelopeEditorHome=d:\websphere\projects\webbank\webbankWeb\webApplication\, filename=conf/sv-ver-config.xml}"
[4/28/02 13:05:03:654 PDT] 1448a96b SystemOut U [Sunday, April 28, 2002 1:05:03 PM PDT] Servlet.Engine.Transports:9 "conf/sv-ver-config.xml"
[4/28/02 13:05:03:967 PDT] 1448a96b SystemOut U [Sunday, April 28, 2002 1:05:03 PM PDT] Servlet.Engine.Transports:9 "EditorComponent class name: com.ibm.xml.soap.security.dsig.SOAPSigner"
[4/28/02 13:05:03:967 PDT] 1448a96b SystemOut U [Sunday, April 28, 2002 1:05:03 PM PDT] Servlet.Engine.Transports:9 "{EnvelopeEditorHome=d:\websphere\projects\webbank\webbankWeb\webApplication\, filename=conf/sv-sig-config.xml}"
[4/28/02 13:05:03:967 PDT] 1448a96b SystemOut U [Sunday, April 28, 2002 1:05:03 PM PDT] Servlet.Engine.Transports:9 "conf/sv-sig-config.xml"
[SOAPException: faultCode=SOAP-ENV:Client; msg=Invalid signature]
at com.ibm.xml.soap.security.dsig.SOAPVerifier.edit(SOAPVerifier.java:320)
at com.ibm.xml.soap.transport.PluggableEnvelopeEditor.editIncoming(PluggableEnvelopeEditor.java:129)
at org.apache.soap.transport.FilterTransport.receive(FilterTransport.java:159)
at org.apache.soap.rpc.Call.getEnvelopeString(Call.java:174)
at org.apache.soap.rpc.Call.invoke(Call.java:224)
at proxy.soap.itso.webbank.ejbs.ConsultationProxy.getBranchBalance(ConsultationProxy.java:92)
at sample.Consultation._Result_jsp_0._jspService(Result.jsp :194)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:142)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspServlet.java:300)
at org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java:430)
at org.apache.jasper.runtime.JspServlet.service(JspServlet.java:565)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.ibm.servlet.engine.webapp.StrictServletInstance.doService(ServletManager.java:827)
at com.ibm.servlet.engine.webapp.StrictLifecycleServlet._service(StrictLifecycleServlet.java:167)
at com.ibm.servlet.engine.webapp.IdleServletState.service(StrictLifecycleServlet.java:297)
at com.ibm.servlet.engine.webapp.StrictLifecycleServlet.service(StrictLifecycleServlet.java:110)
at com.ibm.servlet.engine.webapp.ServletInstance.service(ServletManager.java:472)
at com.ibm.servlet.engine.webapp.ValidServletReferenceState.dispatch(ServletManager.java:1012)
at com.ibm.servlet.engine.webapp.ServletInstanceReference.dispatch(ServletManager.java:913)
at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:523)
at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:282)
at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:112)
at com.ibm.servlet.engine.srt.WebAppInvoker.doForward(WebAppInvoker.java:91)
at com.ibm.servlet.engine.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:184)
at com.ibm.servlet.engine.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:67)
at com.ibm.servlet.engine.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:122)
at com.ibm.servlet.engine.oselistener.OSEListenerDispatcher.service(OSEListener.java:315)
at com.ibm.servlet.engine.http11.HttpConnection.handleRequest(HttpConnection.java:60)
at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:323)
at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:252)
at com.ibm.ws.util.CachedThread.run(ThreadPool.java:122)
 
The harder you work, the luckier you get. This tiny ad brings luck - just not good luck or bad luck.
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!