Feature #3430
closedJSAGA + UNICORE: authentication failed
0%
Description
Hi,
I've tried to configure JSAGA to use UNICORE adaptor (jsaga-default-contexts.xml file configured).
Executed jsaga-context-init.sh, added -Djavax.net.ssl.trustStore and password as PROPERTIES.
This error occurs:
...VERCE/JSAGA/bin$ ./jsaga-job-run.sh -b -Executable /bin/hostname -r unicore://grid.cineca.it:9111/Target?=CINECA-PLX -Output output.txt -Error error.txt
Exception in thread "main" AuthenticationFailed: Security context class 'fr.in2p3.jsaga.adaptor.security.NoneSecurityCredential' not supported for protocol: unicore
at fr.in2p3.jsaga.engine.factories.ServiceAdaptorFactory.getCredential(ServiceAdaptorFactory.java:75)
at fr.in2p3.jsaga.engine.factories.JobAdaptorFactory.connect(JobAdaptorFactory.java:58)
at fr.in2p3.jsaga.impl.job.AbstractSyncJobFactoryImpl.doCreateJobServiceSync(AbstractSyncJobFactoryImpl.java:72)
at fr.in2p3.jsaga.impl.job.JobFactoryImpl.doCreateJobService(JobFactoryImpl.java:35)
at org.ogf.saga.job.JobFactory.createJobService(JobFactory.java:202)
at org.ogf.saga.job.JobFactory.createJobService(JobFactory.java:146)
at fr.in2p3.jsaga.command.JobRun.main(JobRun.java:77)
do you have any idea? maybe a java version issue?
Best Regards,
Michele
Updated by Schwarz Lionel over 12 years ago
Hi Michele,
This is not a Java version issue. This means that you have not configured the security context for using the "unicore" service in your configuration file. You should have something like:
<context type="JKS" id="..."> <attribute name="Keystore" value="..."/> <attribute name="KeystorePass" value="..."/> <attribute name="Truststore" value="..."/> <attribute name="TruststorePass" value="..."/> <data type="unicore"/> <job type="unicore"/> </context>
And you don't need the "-Djavax.net.ssl.trustStore" and "password" properties.
Lionel
Updated by Schwarz Lionel over 12 years ago
- Category set to Unicore adaptors
- Status changed from New to Assigned
- Assigned To set to Schwarz Lionel
Updated by Carpené Michele over 12 years ago
ok, thanks Lionel, I report the remaining part of the discussion:
Hi Lionel,
thanks a lot, now I've configured the xml file as it is:
<jsaga-default xmlns="http://www.in2p3.fr/jsaga/session">
<contexts>
<context type="VOMS">
<data type="gsiftp"/>
<data type="srm"/>
<data type="lfn"/>
<job type="wms"/>
<job type="cream"/>
</context>
<context type="JKS">
<data type="unicore"/>
<job type="unicore"/>
</context>
</contexts>
<session>
<context type="JKS">
<attribute name="Keystore" value="/home/mcarpene/Scrivania/VERCE/JSAGA/bin/mykeystore.jks"/>
<attribute name="KeystorePass" value="XXXXXXXXXXX"/>
<attribute name="Truststore" value="/home/mcarpene/Scrivania/Certificati/keystore.jks"/>
<attribute name="TruststorePass" value="storepass"/>
</context>
</session>
</jsaga-default>
and remove jvm properties, now the error has changed:
/Scrivania/VERCE/JSAGA/bin$./jsaga-job-run.sh -b -Executable /bin/hostname -r unicore://grid.cineca.it:9111/Target?=CINECA-PLX -Output output.txt -Error error.txt
Exception in thread "main" java.lang.NoClassDefFoundError
at org.codehaus.xfire.aegis.type.DefaultTypeMappingRegistry.class$(DefaultTypeMappingRegistry.java:64)
at org.codehaus.xfire.aegis.type.DefaultTypeMappingRegistry.createDefaultMappings(DefaultTypeMappingRegistry.java:406)
at org.codehaus.xfire.aegis.type.DefaultTypeMappingRegistry.createDefaultMappings(DefaultTypeMappingRegistry.java:311)
at org.codehaus.xfire.aegis.type.DefaultTypeMappingRegistry.<init>(DefaultTypeMappingRegistry.java:131)
at org.codehaus.xfire.aegis.type.DefaultTypeMappingRegistry.<init>(DefaultTypeMappingRegistry.java:137)
at org.codehaus.xfire.aegis.type.DefaultTypeMappingRegistry.<init>(DefaultTypeMappingRegistry.java:118)
at org.codehaus.xfire.xmlbeans.XmlBeansTypeRegistry.<init>(XmlBeansTypeRegistry.java:11)
at org.codehaus.xfire.xmlbeans.XmlBeansServiceFactory.<init>(XmlBeansServiceFactory.java:17)
at eu.unicore.security.xfireutil.client.JSR181ServiceFactory.<init>(JSR181ServiceFactory.java:63)
at eu.unicore.security.xfireutil.client.SecuredXFireClientFactory.<init>(SecuredXFireClientFactory.java:92)
at de.fzj.unicore.wsrflite.xfire.WSRFClientFactory.<init>(WSRFClientFactory.java:62)
at de.fzj.unicore.wsrflite.xmlbeans.client.BaseWSRFClient.<init>(BaseWSRFClient.java:158)
at de.fzj.unicore.uas.client.BaseUASClient.<init>(BaseUASClient.java:68)
at de.fzj.unicore.uas.client.TSFClient.<init>(TSFClient.java:32)
at fr.in2p3.jsaga.adaptor.unicore.job.UnicoreJobControlAdaptor.connect(UnicoreJobControlAdaptor.java:81)
at fr.in2p3.jsaga.engine.factories.JobAdaptorFactory.connect(JobAdaptorFactory.java:66)
at fr.in2p3.jsaga.engine.factories.JobAdaptorFactory.connect(JobAdaptorFactory.java:61)
at fr.in2p3.jsaga.impl.job.AbstractSyncJobFactoryImpl.doCreateJobServiceSync(AbstractSyncJobFactoryImpl.java:72)
at fr.in2p3.jsaga.impl.job.JobFactoryImpl.doCreateJobService(JobFactoryImpl.java:35)
at org.ogf.saga.job.JobFactory.createJobService(JobFactory.java:202)
at org.ogf.saga.job.JobFactory.createJobService(JobFactory.java:146)
at fr.in2p3.jsaga.command.JobRun.main(JobRun.java:77)
Caused by: java.lang.ClassNotFoundException: org.jdom.Element
at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:186)
... 22 more
PS: I cannot update the ticket or answer, I think I've no permission
BR,
Michele
Updated by Schwarz Lionel over 12 years ago
Looks like a library conflict issue or something. The missing class (org.jdom.Element) is in the JDom package used by Xfire, itself used by the Unicore client library.
Do you have the jdom-1.0.jar file in your $JSAGA_HOME/lib directory? Could you check the class with:
jar tvf $JSAGA_HOME/lib/jdom-1.0.jar |grep Element
Lionel
Updated by Carpené Michele over 12 years ago
Hi,
thank you again, I've added the jdom-1.0.jar and the error changed again:
./jsaga-job-run.sh -b -Executable /bin/hostname -r unicore://grid.cineca.it:9111/Target?=CINECA-PLX -Output output.txt -Error error.txt
Exception in thread "main" java.lang.NoClassDefFoundError: eu/unicore/security/dsig/DSigException
at eu.unicore.security.xfireutil.client.SecuredXFireClientFactory.initHandlers(SecuredXFireClientFactory.java:118)
at de.fzj.unicore.wsrflite.xfire.WSRFClientFactory.initHandlers(WSRFClientFactory.java:71)
at eu.unicore.security.xfireutil.client.XFireClientFactory.<init>(XFireClientFactory.java:124)
at eu.unicore.security.xfireutil.client.SecuredXFireClientFactory.<init>(SecuredXFireClientFactory.java:102)
at eu.unicore.security.xfireutil.client.SecuredXFireClientFactory.<init>(SecuredXFireClientFactory.java:92)
at de.fzj.unicore.wsrflite.xfire.WSRFClientFactory.<init>(WSRFClientFactory.java:62)
at de.fzj.unicore.wsrflite.xmlbeans.client.BaseWSRFClient.<init>(BaseWSRFClient.java:158)
at de.fzj.unicore.uas.client.BaseUASClient.<init>(BaseUASClient.java:68)
at de.fzj.unicore.uas.client.TSFClient.<init>(TSFClient.java:32)
at fr.in2p3.jsaga.adaptor.unicore.job.UnicoreJobControlAdaptor.connect(UnicoreJobControlAdaptor.java:81)
at fr.in2p3.jsaga.engine.factories.JobAdaptorFactory.connect(JobAdaptorFactory.java:66)
at fr.in2p3.jsaga.engine.factories.JobAdaptorFactory.connect(JobAdaptorFactory.java:61)
at fr.in2p3.jsaga.impl.job.AbstractSyncJobFactoryImpl.doCreateJobServiceSync(AbstractSyncJobFactoryImpl.java:72)
at fr.in2p3.jsaga.impl.job.JobFactoryImpl.doCreateJobService(JobFactoryImpl.java:35)
at org.ogf.saga.job.JobFactory.createJobService(JobFactory.java:202)
at org.ogf.saga.job.JobFactory.createJobService(JobFactory.java:146)
at fr.in2p3.jsaga.command.JobRun.main(JobRun.java:77)
Caused by: java.lang.ClassNotFoundException: eu.unicore.security.dsig.DSigException
at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
... 17 more
seems a long thing
Michele
Updated by Schwarz Lionel over 12 years ago
It seems there was a problem at installation. How did you install JSAGA? Did you select Unicore as adaptor when you installed JSAGA?
Updated by Schwarz Lionel over 12 years ago
- Status changed from Assigned to Resolved
I'm closing this ticket since the autentication issue was fixed. I have filed a new bug at:
https://forge.in2p3.fr/issues/3436
This is now a bug in the graphical installer.
Michele, to fix your issue, download and unzip the ZIP archive and copy all JARs in lib into your lib directory.
Lionel