Hi Rajan,
I don't know how much you know about Java, so I'll tell you this
about“Error: Could not find or load main class error:”
It occurs in the following circumstances ... The voms-proxy-init command
on a Centos7 machine is a Java program (the voms-proxy-init is actually
only a sh script, see below.)
That error comes from the java command when it fails to find the main
class of the application (every java app has a main, like C, but you
often need to specify it explicitly. Don't blame me for that!)
Anyway, the system is saying that the classpath (-cp) where it looks for
its classes does not contain that main class (which BTW is called
org.italiangrid.voms.clients.VomsProxyInit)
There are many reasons why a specific classpath might not contain the
main. It could be a release bug, an installation fault or a missing
dependency etc.
I'd have to duplicate your set-up for find out. But here are some tips
that might lead you to the answer. Here is the actual java command as
it gets run on my Centos7/UMD4 build (it works, for me, on a
worker-node, BTW).
java -XX:+UseSerialGC -Xmx16m -cp
/usr/share/java/voms-clients-java/voms-clients.jar:/usr/share/java/voms-api-java/voms-api-java.jar:/usr/share/java/canl-java/canl.jar:/usr/share/java/bcpkix.jar:/usr/share/java/bcprov.jar:/usr/share/java/commons-cli.jar:/usr/share/java/commons-io.jar
org.italiangrid.voms.clients.VomsProxyInit
The first options are just technical and relate to the Virtual Machine.
Looking at everything to the right of the -cp flag, but before the main
class definition (org.italiangrid.voms.clients.VomsProxyInit)...
All those "jar" files have to be present; if not, that's your problem.
If they are, then it's something even more fishy.
# ls -lrt /usr/share/java/voms-clients-java/voms-clients.jar
/usr/share/java/voms-api-java/voms-api-java.jar
/usr/share/java/canl-java/canl.jar /usr/share/java/bcpkix.jar
/usr/share/java/bcprov.jar /usr/share/java/commons-cli.jar
/usr/share/java/commons-io.jar
-rw-r--r-- 1 root root 4043246 Feb 20 2014 /usr/share/java/bcprov.jar
-rw-r--r-- 1 root root 687341 Mar 7 2014 /usr/share/java/bcpkix.jar
-rw-r--r-- 1 root root 40849 Jun 9 2014 /usr/share/java/commons-cli.jar
-rw-r--r-- 1 root root 184977 Jun 10 2014 /usr/share/java/commons-io.jar
-rw-r--r-- 1 root root 305847 Feb 13 2016
/usr/share/java/canl-java/canl.jar
-rw-r--r-- 1 root root 151570 Feb 14 2016
/usr/share/java/voms-api-java/voms-api-java.jar
-rw-r--r-- 1 root root 85641 Sep 11 2016
/usr/share/java/voms-clients-java/voms-clients.jar
Cheers,
Ste
---- voms-proxy-init is a sh script.
cat /usr/bin/voms-proxy-init
#!/bin/sh
VOMS_CLIENTS_JAVA_OPTIONS=${VOMS_CLIENTS_JAVA_OPTIONS:-"-XX:+UseSerialGC
-Xmx16m"}
java $VOMS_CLIENTS_JAVA_OPTIONS -cp $(build-classpath voms-clients-java
voms-api-java canl-java bcpkix bcprov commons-cli commons-io)
org.italiangrid.voms.clients.VomsProxyInit "$@"
On 05/02/18 10:49, Rajan Atthi wrote:
>
> Hi,
>
> I am working with the Tier-1 here at RAL for 3 months working on IPV6
> deployment.
>
> I am trying to set up a SL7 Dual stack UI Machine and am encountering
> some problems.
>
> I have installed the ui (for centos7) metapackages.:
>
> http://repository.egi.eu/sw/production/umd/4/centos7/x86_64/updates/ui-4.0.3-1.el7.x86_64.rpm
>
> I have followed these instructions
> athttp://repository.egi.eu/category/umd_releases/distribution/umd-4/
>
> When I do a voms-proxy-init it comes with the following message
> “Error: Could not find or load main class error:”
>
> I have the certificate installed. When I do the same on an sl6 machine.
>
> This is the first thing I have tried and I am not sure if I need to
> install other packages.
>
> Am I missing something or do I need to do anything else before this
> can work.
>
> Thanks
>
> Rajan Atthi
>
--
Steve Jones [log in to unmask]
Grid System Administrator office: 220
High Energy Physics Division tel (int): 43396
Oliver Lodge Laboratory tel (ext): +44 (0)151 794 3396
University of Liverpool http://www.liv.ac.uk/physics/hep/
|