Never mind this error, thanks to Chris Petrus

The problem was with my work space some jars were broken, so eclipse don't
have a way of checking the validity of jars in the work space

Due to this limitation of eclipse, the error above was thrown at runtime.



On Thu, Nov 8, 2012 at 3:59 PM, Themba Shezi <[email protected]> wrote:

> Hi Steve
>
> Thanks for your quick response. I added commons-logging library in path
> but the error still persist
>
>
> On Thu, Nov 8, 2012 at 3:02 PM, Steve Viens <[email protected]> wrote:
>
>> Download and add Apache Commons Logging to your classpath.
>>
>> http://commons.apache.org/logging/
>>
>> Steve
>>
>> Sent from my iPad
>>
>> On Nov 8, 2012, at 5:28 AM, Themba Shezi <[email protected]> wrote:
>>
>> Greetings All
>>
>> i have been working on trying to obtain authentication token for my juddi
>> v3 using juddi client
>>
>> I have a java class similar to the one used in the juddi guide as follows;
>> This is my Constructor
>>
>> String clazz = UDDIClientContainer.getUDDIClerkManager(null).
>>         getClientConfig().getUDDINode("default").getProxyTransport();
>>         Class<?> transportClass = ClassUtil.forName(clazz,
>> Transport.class);
>> if (transportClass!=null) {
>> Transport transport = (Transport) transportClass.
>>  getConstructor(String.class).newInstance("default");
>> security = transport.getUDDISecurityService();
>>
>> This is the method for obtaining security token
>>
>> GetAuthToken getAuthToken = new GetAuthToken();
>> getAuthToken.setUserID("root");
>>  getAuthToken.setCred("");
>> try {
>> AuthToken authToken = security.getAuthToken(getAuthToken);
>>  System.out.println ("AUTHTOKEN = "
>> + authToken.getAuthInfo());
>>  } catch (Exception e) {
>> e.printStackTrace();
>> }
>>
>>
>> This is the error I'm getting
>> Exception in thread "main" java.lang.NoClassDefFoundError:
>> org/apache/commons/logging/LogFactory
>> at
>> org.apache.juddi.v3.client.config.UDDIClientContainer.<clinit>(UDDIClientContainer.java:27)
>>  at juddi.pkg.publisher.<init>(publisher.java:41)
>> at juddi.pkg.publisher.main(publisher.java:56)
>> Caused by: java.lang.ClassNotFoundException:
>> org.apache.commons.logging.LogFactory
>> at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
>>  at java.security.AccessController.doPrivileged(Native Method)
>> at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
>>  at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
>> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
>>  at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
>> ... 3 more
>>
>> In my class path i have the following jars
>>
>> commons-configuration
>> uddi-ws-3.1.3
>> juddi-client-3.1.3
>> juddi-core-3.1.3
>> commons-configuration- 1.5
>> commons-collections-3.2.1
>> log4j-1.2.13
>>
>>
>>
>>
>> --
>> Name          : Mr T. Shezi
>> NickName   : Mthimbanator
>> Student No  : 200702908
>> Level           : Computer Sc Research Student
>> Institution    : University of Zululand
>> Department : Computer Science
>> Cell No       : 078 706 7208
>>
>>
>>
>
>
> --
> Name          : Mr T. Shezi
> NickName   : Mthimbanator
> Student No  : 200702908
> Level           : Computer Sc Research Student
> Institution    : University of Zululand
> Department : Computer Science
> Cell No       : 078 706 7208
>
>
>


-- 
Name          : Mr T. Shezi
NickName   : Mthimbanator
Student No  : 200702908
Level           : Computer Sc Research Student
Institution    : University of Zululand
Department : Computer Science
Cell No       : 078 706 7208

Reply via email to