Win a copy of Spring Boot in Practice this week in the Spring forum!

Guy Van Iseghem

Greenhorn
+ Follow
since Nov 25, 2004
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Guy Van Iseghem

Hi All,

I have an urgent question.
I'm currently using the jpcsc library(from IBM) needed to communicate with a smartcard. Although when I execute the following line
Runtime.getRuntime().loadLibrary(PCSC.pcscNativeLibName);

gives the exception:
java.lang.UnsatisfiedLinkError: no jpcsc in java.library.path
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.loadLibrary0(Unknown Source)
at java.lang.Runtime.loadLibrary(Unknown Source)
at com.linuxnet.jpcsc.PCSC.<clinit>(PCSC.java:136)
at com.linuxnet.jpcsc.Context.<clinit>(Context.java:21)
at be.godot.sc.engine.SmartCardReader.lookForSmartCard(SmartCardReader.java:72)
at be.godot.sc.engine.EidCard.lookForSmartCard(EidCard.java:618)
at be.godot.sc.engine.EidCard.lookForSmartCard(EidCard.java:607)
at be.godot.sc.engine.EidCard.getAuthenticationCertificate(EidCard.java:74)
at dsoft.D2S.sign.eid.EidSigner.getAuthenticationCertificate(EidSigner.java:52)
at com.dsoft.client.pref.CertificatePanel.fillCertificateFromEIDStore(CertificatePanel.java:430)
at com.dsoft.client.pref.CertificatePanel.access$9(CertificatePanel.java:427)
at com.dsoft.client.pref.CertificatePanel$3.actionPerformed(CertificatePanel.java:263)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.Dialog$1.run(Unknown Source)
at java.awt.Dialog.show(Unknown Source)
at com.dsoft.client.D2SApplet.openPreferencePanel(D2SApplet.java:486)
at com.dsoft.client.D2SApplet.access$2(D2SApplet.java:485)
at com.dsoft.client.D2SApplet$10.actionPerformed(D2SApplet.java:427)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)

Please does anyone knows how I could solve this problem?

Thanks in advance!

Guy
17 years ago
Hi all,

I need to make my java web based application OCSP enabled.
I already looked to the BouncyCastle api and novosec extensions of it but
on request of my client I may not sign my request. I know, OCSP is normally used in a secure environment but my client wants to use a free OCSP provider, therefort the request may not be signed.
If anyone can provide me a clear and working OCSP example this would be great!

Thanks in advance.

Guy Van Iseghem
[ February 01, 2005: Message edited by: Guy Van Iseghem ]
17 years ago
Hi,

I have a webservice issue.
I'm trying to implement a Java Web service using IBM Application Studio. D2SPDFSigner is my stateless session bean. For this session bean I let IBM Application Studio generate a proxies namely D2SPDFSignerService.
Although the proxy can be found I receive an exception that the web can't be found. On the the other hand the execution of the link http://localhost:9080/D2SSignWebService/services/D2SPDFSigner"/ works fine. Does somebody have any clue what the problem for this issue could be.
Does somebody now a tool to trace such problem? I have already verifed my ear file using the verifier.bat tool of Sun and the result is that my ear file should be fine.

If somebody knows what the sollution would be this would be great!

Thanks in advance,

Guy
E-mail: gvaniseghem@yahoo.com


Part of genrated D2SPDFSignerProxy:
------------------------------------
public byte[] calculateHashSize(java.lang.String arg0) throws java.rmi.RemoteException{
if (d2SPDFSigner == null) {
_initD2SPDFSignerProxy(); //is ok
}
return d2SPDFSigner.calculateHashSize(arg0);
}

Caused exception:
-----------------
13-dec-2004 17:19:35 com.ibm.ws.webservices.engine.client.Connection invoke
INFO: WSWS3243I: Info: Mapping Exception to WebServicesFault.
WebServicesFault
faultCode: {http://websphere.ibm.com/webservices/}HTTP
faultString: (500)Internal Server Error
faultActor: null
faultDetail:
null: WSWS3192E: Error: return code: 500
Error 500: WSWS3142E: Error: Could not find Web services engine.
.
(500)Internal Server Error
at com.ibm.ws.webservices.engine.transport.http.HTTPSender.readFromSocket(HTTPSender.java:818)
at com.ibm.ws.webservices.engine.transport.http.HTTPSender.invoke(HTTPSender.java:168)
at com.ibm.ws.webservices.engine.PivotHandlerWrapper.invoke(PivotHandlerWrapper.java:212)
at com.ibm.ws.webservices.engine.WebServicesEngine.invoke(WebServicesEngine.java:253)
at com.ibm.ws.webservices.engine.client.Connection.invokeEngine(Connection.java:686)
at com.ibm.ws.webservices.engine.client.Connection.invoke(Connection.java:610)
at com.ibm.ws.webservices.engine.client.Connection.invoke(Connection.java:440)
at com.ibm.ws.webservices.engine.client.Stub$Invoke.invoke(Stub.java:659)
at com.dsoft.server.D2S.webservice.D2SPDFSignerSoapBindingStub.calculateHashSize(D2SPDFSignerSoapBindingStub.java:107)
at com.dsoft.server.D2S.webservice.D2SPDFSignerProxy.calculateHashSize(D2SPDFSignerProxy.java:72)
at com.dsoft.client.SigningUtility.testcalculateHashSize(SigningUtility.java:100)
at com.dsoft.client.SigningUtility.signDocument(SigningUtility.java:52)
at com.dsoft.client.NavigatorPanel$3.actionPerformed(NavigatorPanel.java:289)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)


My Web.xml:
-------------
"<web-app id="WebApp">
<display-name>D2SSignWebService</display-name>
<servlet>
<servlet-name>D2SPDFSigner</servlet-name>
<display-name>D2SPDFSigner</display-name>
<servlet-lass> com.ibm.ws.webservices.engine.transport.http.WebServicesServlet
</servlet-class>

<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>D2SPDFSigner</servlet-name>
<url-pattern>/services/D2SPDFSigner</url-pattern>
</servlet-mapping>
<welcome-file-list>
<welcome-file>D2SSigning.htm</welcome-file>
</welcome-file-list>
</web-app>
"
A part of the WSDL:
--------------------
"<wsdl:service name="D2SPDFSignerService">
<wsdl ort binding="impl 2SPDFSignerSoapBinding" name="D2SPDFSigner">
<wsdlsoap:address location ="http://localhost:9080/D2SSignWebService/services/D2SPDFSigner"/>
</wsdl ort>
</wsdl:service>
"
[ December 14, 2004: Message edited by: Guy Van Iseghem ]
17 years ago
Hi,

I'm using Websphere Application Studio to build a websigning webservice. I made my session bean D2SPDFSigner but the compilation failes.
Websphere Studio says the following (general error):

The content of element type "ejb-jar" must match "(description?,display-name?,small-icon?,large-icon?,enterprise-beans,relationships?,assembly-descriptor?,ejb-client-jar?)".ejb-jar.xmlD2SSignServer/ejbModule/com/dsoft/server/D2S/webservice/META-INFline 19


My ejb-jar.xml looks as follows:
Does someone has any idea why the compilation fails?

<?xml version="1.0" encoding="UTF-8"?>
< !DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN" "http://java.sun.com/dtd/ejb-jar_2_0.dtd">;

<ejb-jar id="ejb-jar_ID">
<description>This is the single point of contact session of the Web signing service</description>
<display-name>D2S WebSigner bean</display-name>
<enterprise-beans>
<session id="D2SPDFSigner">
<description>D2S WebSigning session TOC of webservice</description>
<display-name>D2S WebSigner bean</display-name>
<ejb-name>D2SPDFSigner</ejb-name>
<home>com.dsoft.server.D2S.webservice.D2SPDFSignerHome</home>
<remote>com.dsoft.server.D2S.webservice.D2SPDFSigner</remote>
<ejb-class>com.dsoft.server.D2S.webservice.D2SPDFSignerBean</ejb-class>
<session-type>Stateless</session-type>
<transaction-type>Container</transaction-type>
</session>
</enterprise-beans>
<assembly-descriptor>
<container-transaction>
<method>
<ejb-name>D2SPDFSigner</ejb-name>
<method-name>*</method-name>
</method>
<trans-attribute>NotSupported</trans-attribute>
</container-transaction>
</assembly-descriptor>
</ejb-jar>

Many thanks in advance,

Guy
mail: gvaniseghem@yahoo.com
17 years ago
Hi,

I have a small urgent question.

I want to communicate with a .NET Webservice using Java together with JAXM and DIME (so no RPC call). The reason is that I need to upload a big file to this webservice. I now we use nowadays MTOM but the client doesn't want to use this yet. If someone could provide me with an clear example this would be great.

Thanks in advance,

Guy
17 years ago
Hi,

I have a small urgent question.

I want to communicate with a .NET Webservice using Java together with JAXM and DIME (so no RPC call). The reason is that I need to upload a big file to this webservice. I now we use nowadays MTOM but the client doesn't want to use this yet. If someone could provide me with an clear example this would be great.

Thanks in advance,

Guy
17 years ago
With question 1
I see A as incorrect because the question asks what could CAUSE a thread to stop executing, the InterruptedException is thrown as a result of a thread being interrupted, the exception did not cause the thread to stop executing, it would be a statement like interrupt().
With regard to question 2
C. Invoking the suspend() stops a thread so that it cannot be restarted
and Why C is not correct, this is what the Java 2 Certification by 'Jamie Jaworski' says, and I am curious if it is correct or not.
'Prior to JDK 1.2, it was possible for one thread to stop or suspend the execution of another thread(or itself). The stop(), suspend(), and resume() methods have been identified as problematic and are deprecated in JDK 1.2'
According to that statement, C is not correct because the methods are no longer supported?
Can anybody set us straight on this, it would concern me if my study guide had errors as bad as this.
Thanks
Guy