BlackBerry Forums Support Community

BlackBerry Forums Support Community (http://www.blackberryforums.com/index.php)
-   BES Admin Corner (http://www.blackberryforums.com/forumdisplay.php?f=21)
-   -   can't run BES 5 User Admin Tool cmd programatically? (http://www.blackberryforums.com/showthread.php?t=204601)

Laeeq 09-18-2009 04:38 AM

can't run BES 5 User Admin Tool cmd programatically?
 
Hi,

I wrote an application to manage BES users in bulk for 4.1.6. It is running without any problem, I was just calling BES User Admin Tool commands in my C# application.

Now when I installed BES USer Admin tool successfully on BES 5.0 from Blackberry Resource Kit 5.0, I am able to run all commands from command line. but when I ran my code here on BES 5, it is giving me error:

java.lang.NoClassDefFoundError: com/rim/bes/brk/besuseradmin/BESUserAdminMain Exception in thread "main"


I m running this command programatically as I ran on BES 4.1.6

BESUserAdminClient.exe -list -it_policies -p passwor
d

I can run this command succesfully on BES 5 using command line.

Any thougts would be appreciated in this regard.

hdawg 09-20-2009 04:12 PM

looks like a problem with your code and not the BESUserAdminClient ...

Mobeen.bhatti 09-26-2009 01:25 AM

can't run BES 5 User Admin Tool cmd programatically? Reply to Thread
 
Copy this file "BESUserAdmin.jar" from "BlackBerry Enterprise Server User Administration Tool" folder and paste it to your application bin folder.

Laeeq 10-05-2009 06:31 AM

can't run BES 5 User Admin Tool cmd programatically?
 
Hi,

Thanx mobeen for your reply, it really worked for me. There were no changes required in code, same code which ran on BES 4.1.6 also ran on BES 5.0.

Regards,
Laeeq

venkatasuresh 11-02-2009 08:45 AM

Hi,
For tomcat5, i tried copy this "BESUserAdmin.jar" to bin and common\lib directory. It did not work for me. Any suggestions?

Thanks,
Suresh.

venkatasuresh 11-03-2009 02:01 AM

Hi,

I installed BRK 5 in C:\BRK5.[this is where BESUserAdminClient.exe is avaialable].

When i run the following command [navigating to C:\BRK5 in the command prompt]

C:\BRK5> BESUserAdminClient.exe -list -it_policies -p password

is working fine and giving me the results.

But when i try to run it as from some other directory(C:\XXX) in the command prompt
C:\XXX> C:\BRK5\BESUserAdminClient.exe -list -it_policies -p password
is failing :( with java.lang.NoClassDefFoundError: com/rim/bes/brk/besuseradmin/BESUserAdminMain Exception in thread "main"

exception..

Any help is appreciated.

Thanks in advance!

venkatasuresh 11-03-2009 05:29 AM

Hi,

I installed BRK 5 in C:\BRK5.[this is where BESUserAdminClient.exe is avaialable].

When i run the following command [navigating to C:\BRK5 in the command prompt]

C:\BRK5> BESUserAdminClient.exe -list -it_policies -p password

is working fine and giving me the results.

But when i try to run it as from some other directory(C:\XXX) in the command prompt
C:\XXX> C:\BRK5\BESUserAdminClient.exe -list -it_policies -p password
is failing :( with java.lang.NoClassDefFoundError: com/rim/bes/brk/besuseradmin/BESUserAdminMain Exception in thread "main"

exception..

My observations-

Basically, the command succeeds if the location form where we are executing contains BESUserAdmin.jar. else fails. throwing
"java.lang.NoClassDefFoundError: com/rim/bes/brk/besuseradmin/BESUserAdminMain Exception in thread "main"" exception.

And also running BRK commands generating BUA log file corresponding to BESUserAdmin.jar.

Please clarify!


Any help is appreciated.

Thanks in advance!

Laeeq 11-03-2009 02:12 PM

Hi,

Put this jar file in Windows system32 folder.

Hope this helps.


All times are GMT -5. The time now is 01:50 PM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.