Trouble with Hashed Passwords

View: New views
5 Messages — Rating Filter:   Alert me  

Trouble with Hashed Passwords

by Robert Stagner-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I'm attempting to use the Hashd Passwords feature in FitNesse Release v20090818 (reference http://fitnesse.org/FitNesse.UserGuide.PasswordFile).  Each time I execute the following command


java fitnesse.authentication.Password -f passwordFile user

I get the following error (where 'user' is my usernanme)

Exception in thread "main" java.lang.NoClassDefFoundError: fitnesse/authentication/Password
Caused by: java.lang.ClassNotFoundException: fitnesse.authentication.Password
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
Could not find the main class: fitnesse.authentication.Password. Program will exit.

This same command worked just fine when I was using FitNesse Release v20090321.  What am I missing? Could this be a classpath issue at the commend line?

Any help in this matter would be greatly appreciated.


     

Re: Trouble with Hashed Passwords

by ggramlich :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Robert,

add the java classpath

java -cp fitnesse.jar fitnesse.authentication.Password -f passwordFile user

Gregor


2009/10/27 Robert Stagner <restagner@...>

>
>
>
> I'm attempting to use the Hashd Passwords feature in FitNesse Release v20090818 (reference http://fitnesse.org/FitNesse.UserGuide.PasswordFile).  Each time I execute the following command
>
> java fitnesse.authentication.Password -f passwordFile user
>
> I get the following error (where 'user' is my usernanme)
>
> Exception in thread "main" java.lang.NoClassDefFoundError: fitnesse/authentication/Password
> Caused by: java.lang.ClassNotFoundException: fitnesse.authentication.Password
> at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
> at java.security.AccessController.doPrivileged(Native Method)
> at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
> at
>  java.lang.ClassLoader.loadClass(ClassLoader.java:307)
> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
> at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
> Could not find the main class: fitnesse.authentication.Password. Program will exit.
>
> This same command worked just fine when I was using FitNesse
>   Release v20090321.  What am I missing? Could
>  this be a classpath issue at the commend line?
>
> Any help in this matter would be greatly appreciated.
>
>
>

Re: Trouble with Hashed Passwords

by Robert Stagner-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Gregor,

I've added the -cp option as noted, but it still throws a java.lang.NoClassDefFoundError (same error and stack trace as before).





________________________________
From: Gregor Gramlich <gramlich@...>
To: fitnesse@...
Sent: Tue, October 27, 2009 1:47:33 PM
Subject: Re: [fitnesse] Trouble with Hashed Passwords

 
Hi Robert,

add the java classpath

java -cp fitnesse.jar fitnesse.authentica tion.Password -f passwordFile user

Gregor

2009/10/27 Robert Stagner <restagner@yahoo. com>

>
>
>
> I'm attempting to use the Hashd Passwords feature in FitNesse Release v20090818 (reference http://fitnesse. org/FitNesse. UserGuide. PasswordFile).  Each time I execute the following command
>
> java fitnesse.authentica tion.Password -f passwordFile user
>
> I get the following error (where 'user' is my usernanme)
>
> Exception in thread "main" java.lang.NoClassDe fFoundError: fitnesse/authentica tion/Password
> Caused by: java.lang.ClassNotF oundException: fitnesse.authentica tion.Password
> at java.net.URLClassLo ader$1.run( URLClassLoader. java:200)
> at java.security. AccessController .doPrivileged( Native Method)
> at java.net.URLClassLo ader.findClass( URLClassLoader. java:188)
> at
>  java.lang.ClassLoad er.loadClass( ClassLoader. java:307)
> at sun.misc.Launcher$ AppClassLoader. loadClass( Launcher. java:301)
> at java.lang.ClassLoad er.loadClass( ClassLoader. java:252)
> at java.lang.ClassLoad er.loadClassInte rnal(ClassLoader .java:320)
> Could not find the main class: fitnesse.authentica tion.Password. Program will exit.
>
> This same command worked just fine when I was using FitNesse
>   Release v20090321.  What am I missing? Could
>  this be a classpath issue at the commend line?
>
> Any help in this matter would be greatly appreciated.
>
>
>

   


     

Re: Trouble with Hashed Passwords

by ggramlich :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Robert

I just downloaded fitnesse.jar 20090818

java -cp fitnesse.jar fitnesse.authentication.Password -f passwordFile user

works for me. You have to be in the directory where fitnesse.jar is stored.

Gregor


2009/10/27 Robert Stagner <restagner@...>

>
>
>
> Hi Gregor,
>
> I've added the -cp option as noted, but it still throws a java.lang.NoClassDefFoundError (same error and stack trace as before).
>
>
>
> ________________________________
> From: Gregor Gramlich <gramlich@...>
> To: fitnesse@...
> Sent: Tue, October 27, 2009 1:47:33 PM
> Subject: Re: [fitnesse] Trouble with Hashed Passwords
>
>
>
> Hi Robert,
>
> add the java classpath
>
> java -cp fitnesse.jar fitnesse.authentica tion.Password -f passwordFile user
>
> Gregor
>
> 2009/10/27 Robert Stagner <restagner@yahoo. com>
> >
> >
> >
> > I'm attempting to use the Hashd Passwords feature in FitNesse Release v20090818 (reference http://fitnesse. org/FitNesse. UserGuide. PasswordFile).  Each time I execute the following command
> >
> > java fitnesse.authentica tion.Password -f passwordFile user
> >
> > I get the following error (where 'user' is my usernanme)
> >
> > Exception in thread "main" java.lang.NoClassDe fFoundError: fitnesse/authentica tion/Password
> > Caused by: java.lang.ClassNotF oundException: fitnesse.authentica tion.Password
> > at java.net.URLClassLo ader$1.run( URLClassLoader. java:200)
> > at java.security. AccessController .doPrivileged( Native Method)
> > at java.net.URLClassLo ader.findClass( URLClassLoader. java:188)
> > at
> > java.lang.ClassLoad er.loadClass( ClassLoader. java:307)
> > at sun.misc.Launcher$ AppClassLoader. loadClass( Launcher. java:301)
> > at java.lang.ClassLoad er.loadClass( ClassLoader. java:252)
> > at java.lang.ClassLoad er.loadClassInte rnal(ClassLoader .java:320)
> > Could not find the main class: fitnesse.authentica tion.Password. Program will exit.
> >
> > This same command worked just fine when I was using FitNesse
> > Release v20090321. What am I missing? Could
> > this be a classpath issue at the commend line?
> >
> > Any help in this matter would be greatly appreciated.
> >
> >
> >
>
>

Re: Trouble with Hashed Passwords

by Robert Stagner-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Gregor

Running the same command from the directory where fitnesse.jar is stored produced the same error.  However, I've determined why this is not working for me -- I'm not issuing the 'sudo' command. You see, I've installed FitNesse on a Linux box and each of the files is owned by root.  So, if I execute the command preceded with 'sudo' it works fine.  Thanks again for all of your suggestions !!




________________________________
From: Gregor Gramlich <gramlich@...>
To: fitnesse@...
Sent: Tue, October 27, 2009 2:40:09 PM
Subject: Re: [fitnesse] Trouble with Hashed Passwords

 
Hi Robert

I just downloaded fitnesse.jar 20090818

java -cp fitnesse.jar fitnesse.authentica tion.Password -f passwordFile user

works for me. You have to be in the directory where fitnesse.jar is stored.

Gregor

2009/10/27 Robert Stagner <restagner@yahoo. com>

>
>
>
> Hi Gregor,
>
> I've added the -cp option as noted, but it still throws a java.lang.NoClassDe fFoundError (same error and stack trace as before).
>
>
>
> ____________ _________ _________ __
> From: Gregor Gramlich <gramlich@eosc. de>
> To: fitnesse@yahoogroup s.com
> Sent: Tue, October 27, 2009 1:47:33 PM
> Subject: Re: [fitnesse] Trouble with Hashed Passwords
>
>
>
> Hi Robert,
>
> add the java classpath
>
> java -cp fitnesse.jar fitnesse.authentica tion.Password -f passwordFile user
>
> Gregor
>
> 2009/10/27 Robert Stagner <restagner@yahoo. com>
> >
> >
> >
> > I'm attempting to use the Hashd Passwords feature in FitNesse Release v20090818 (reference http://fitnesse. org/FitNesse. UserGuide. PasswordFile) .  Each time I execute the following command
> >
> > java fitnesse.authentica tion.Password -f passwordFile user
> >
> > I get the following error (where 'user' is my usernanme)
> >
> > Exception in thread "main" java.lang.NoClassDe fFoundError: fitnesse/authentica tion/Password
> > Caused by: java.lang.ClassNotF oundException: fitnesse.authentica tion.Password
> > at java.net.URLClassLo ader$1.run( URLClassLoader. java:200)
> > at java.security. AccessController .doPrivileged( Native Method)
> > at java.net.URLClassLo ader.findClass( URLClassLoader. java:188)
> > at
> > java.lang.ClassLoad er.loadClass( ClassLoader. java:307)
> > at sun.misc.Launcher$ AppClassLoader. loadClass( Launcher. java:301)
> > at java.lang.ClassLoad er.loadClass( ClassLoader. java:252)
> > at java.lang.ClassLoad er.loadClassInte rnal(ClassLoader .java:320)
> > Could not find the main class: fitnesse.authentica tion.Password. Program will exit.
> >
> > This same command worked just fine when I was using FitNesse
> > Release v20090321. What am I missing? Could
> > this be a classpath issue at the commend line?
> >
> > Any help in this matter would be greatly appreciated.
> >
> >
> >
>
>