|
From: Jesús A. <jes...@0z...> - 2013-07-08 11:40:45
|
Hi Markus.
I'm using liveCD installed on a VM. On this path there is no such file,
but, I found that file on:
/home/jboss/signserver-trunk/signserver/modules/SignServer-Client-SigningAndValidationAPI/dist/SignServer-Client-SigningAndValidationAPI.jar
.
I try to unzip it in order to see if there is MANIFEST.MF, and I see it:
root@livecd:~/jar# unzip SignServer-Client-SigningAndValidationAPI.jar
Archive: SignServer-Client-SigningAndValidationAPI.jar
creating: META-INF/
extracting: META-INF/MANIFEST.MF
creating: org/
creating: org/signserver/
creating: org/signserver/client/
creating: org/signserver/client/api/
extracting: org/signserver/client/api/ISignServerWorker.class
extracting: org/signserver/client/api/ISigningAndValidation.class
extracting: org/signserver/client/api/SigningAndValidationEJB.class
extracting: org/signserver/client/api/SigningAndValidationWS.class
extracting:
org/signserver/client/api/SigningAndValidationWSBalanced$LogErrorCallback.class
extracting: org/signserver/client/api/SigningAndValidationWSBalanced.class
root@livecd:~/jar# cp SignServer-Client-SigningAndValidationAPI.jar ..
root@livecd:~/jar# cd ..
root@livecd:~# ls
But I get the same error trying tu run it on eclipse. I open the
MANIFEST, but I no see information about other jar:
------------
root@livecd:~/jar/META-INF# cat MANIFEST.MF
Manifest-Version: 1.0
Ant-Version: Apache Ant 1.7.1
Created-By: 20.0-b12 (Sun Microsystems Inc.)
root@livecd:~/jar/META-INF#
-------------
El 08/07/2013 9:17, Markus Kilås escribió:
> Hi Jesús,
>
> It is better to use the jar
> /home/jboss/signserver-trunk/signserver/lib/SignServer-Client-SigningAndValidationAPI.jar
> as it includes a reference to all the JARs it depends on in its
> META-INF/manifest.mf file.
>
> That being said, I am not myself using Eclipse so I am not sure if just
> including that JAR instead will solved the problem. If not, you will
> have to also add all the jars listed in the manifest file.
>
>
> Best regards,
> Markus
>
> PrimeKey Solutions offers a commercial EJBCA & SignServer support
> subscription and training. Please see www.primekey.se or contact
> in...@pr... for more information.
> http://www.primekey.se/Services/Support/
> http://www.primekey.se/Services/Training/
>
>
>
> On 2013-07-07 01:47, Jesús Arnáiz wrote:
>> Hi.
>>
>> I'm trying to use the SigningAndValidation API. I create a Java Project
>> on eclipse and then in the "Libraries" tab of "Java Build Path" (Project
>> Properties) I add with "Add External JARs":
>>
>> /home/jboss/signserver-trunk/signserver/modules/SignServer-Client-SigningAndValidationAPI/dist/SignServer-Client-SigningAndValidationAPI.jar
>>
>> I try to create a simple program, but when I create a new object I get
>> and exception. Here is my code:
>>
>> ---
>> import org.signserver.client.api.ISigningAndValidation;
>> import org.signserver.client.api.SigningAndValidationWS;
>>
>> public class test {
>>
>> public static void main(String[] args) {
>> // TODO Auto-generated method stub
>> try {
>> ISigningAndValidation signserver = new
>> SigningAndValidationWS("localhost", 8442, true);
>>
>>
>> } catch (Exception ex) {
>> ex.printStackTrace();
>> }
>> }
>>
>> }
>> -----
>>
>> And the exception I get:
>> ---------
>> Caused by: java.lang.ClassNotFoundException:
>> org.signserver.common.ProcessRequest
>> at java.net.URLClassLoader$1.run(Unknown Source)
>> at java.net.URLClassLoader$1.run(Unknown Source)
>> at java.security.AccessController.doPrivileged(Native Method)
>> at java.net.URLClassLoader.findClass(Unknown Source)
>> at java.lang.ClassLoader.loadClass(Unknown Source)
>> at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
>> at java.lang.ClassLoader.loadClass(Unknown Source)
>> ... 1 more
>> ----------
>>
>> I try different methods to add the JAR but I get the same, any help?
>>
>> ------------------------------------------------------------------------------
>> This SF.net email is sponsored by Windows:
>>
>> Build for Windows Store.
>>
>> http://p.sf.net/sfu/windows-dev2dev
>> _______________________________________________
>> SignServer-develop mailing list
>> Sig...@li...
>> https://lists.sourceforge.net/lists/listinfo/signserver-develop
>>
>
>
>
|