[Spacewalk-list] Exception in taskomatic after upgrade to 0.6 - SOLVED

Thomas von Steiger thomas.vonsteiger at bluewin.ch
Thu Oct 29 20:55:03 UTC 2009


On 28.10.2009, at 12:42, Joshua Roys wrote:

> On 10/28/2009 03:23 AM, Thomas von Steiger wrote:
>> Hi,
>>
>> I have done upgrade from 0.5 to 0.6 on i686 centos5 update4.
>>
>> Now after startup spacewalk i found this messages in  
>> rhn_taskomatic.log.
>> I think from this spacewalk don't make rebuild of /var/cache/rhn  
>> after
>> cleanup.
>>
>> STATUS | wrapper  | 2009/10/28 07:52:24 | Launching a JVM...
>> INFO   | jvm 1    | 2009/10/28 07:52:25 | Exception in thread "main"
>> java.lang.NoClassDefFoundError: redstone/xmlrpc/XmlRpcClient
>> INFO   | jvm 1    | 2009/10/28 07:52:25 | Caused by:
>> java.lang.ClassNotFoundException: redstone.xmlrpc.XmlRpcClient
>> INFO   | jvm 1    | 2009/10/28 07:52:25 | 	at java.net.URLClassLoader
>> $1.run(URLClassLoader.java:217)
>> INFO   | jvm 1    | 2009/10/28 07:52:25 | 	at
>> java.security.AccessController.doPrivileged(Native Method)
>> INFO   | jvm 1    | 2009/10/28 07:52:25 | 	at
>> java.net.URLClassLoader.findClass(URLClassLoader.java:205)
>> INFO   | jvm 1    | 2009/10/28 07:52:25 | 	at
>> java.lang.ClassLoader.loadClass(ClassLoader.java:323)
>> INFO   | jvm 1    | 2009/10/28 07:52:25 | 	at sun.misc.Launcher
>> $AppClassLoader.loadClass(Launcher.java:294)
>> INFO   | jvm 1    | 2009/10/28 07:52:25 | 	at
>> java.lang.ClassLoader.loadClass(ClassLoader.java:268)
>> INFO   | jvm 1    | 2009/10/28 07:52:25 | 	at
>> java.lang.ClassLoader.loadClassInternal(ClassLoader.java:336)
>> ERROR  | wrapper  | 2009/10/28 07:52:25 | JVM exited while loading  
>> the
>> application.
>
> Hello,
>
> Maybe check the following:
> - open /etc/rhn/default/rhn_taskomatic_daemon.conf and see if  
> 'redstone-xmlrpc.jar' is listed somewhere.
> - rpm -V redstone-xmlrpc spacewalk-java spacewalk-java-lib
> - ls -l /usr/share/java/redstone-xmlrpc.jar /var/lib/tomcat5/webapps/ 
> rhn/WEB-INF/lib/redstone-xmlrpc*
> - zipinfo /usr/share/java/redstone-xmlrpc.jar | less
>  (and then look for the redstone/xmlrpc/XmlRpcClient.class file in  
> that list)
>
> Hope to help,
>
> Josh

Hi Josh,
Thank you for this ideas.
The first check in rhn_taskomatic_daemon.conf, there was no  
wrapper.java.classpath for redstone-xmlrpc.jar.
I have add this to rhn_taskomatic_daemon.conf:
wrapper.java.classpath.66=/usr/share/java/redstone-xmlrpc.jar

and after spacewalk restart taskomatic goes to rebuild /var/cache/rhn/ 
repodata

Great Stuff
Thanks,
Thomas




More information about the Spacewalk-list mailing list