cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Announcements

Welcome to the Smart Net Total Care Community!

Our community includes Cisco experts to answer your questions about the Smart Net Total Care (SNTC) portal and CSP-Collector.
Click the navigation links below to access materials for using our service and supported collectors.

492
Views
0
Helpful
7
Replies
Highlighted
Beginner

SSH login giving Java error and closing

When i login with Admin, it give the following errors. This is after running the upgrade from 2.7.3 to 2.7.4 via CLI, GUI not working or auto upgrade not working.

 

I have collector login and root access.

 

Here is the error, any help would be great.

 

Mikey

 

Please use below url to access CSP Collector appliance GUI
IPv4 URL : https://1x.xx.xx.xx:8001

----------------------------------------------------------------------------------------------------
****************************************************************************************************
Using keyboard-interactive authentication.
Password:
Last login: Tue Aug 14 10:22:23 2018 from 10.164.193.197

#########################################################################
#     This system is hardened and for the use of authorized users only. #
#     Individuals using this computer system without authority, or in   #
#     excess of their authority, are subject to having all of their     #
#     activities on this system monitored and recorded by system        #
#     personnel.                                                        #
#                                                                       #
#     In the course of monitoring individuals improperly using this     #
#     system, or in the course of system maintenance, the activities    #
#     of authorized users may also be monitored.                        #
#                                                                       #
#     Anyone using this system expressly consents to such monitoring    #
#     and is advised that if such monitoring reveals possible           #
#     evidence of criminal activity, system personnel may provide the   #
#     evidence of such monitoring to law enforcement officials.         #
#########################################################################
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/log4j/Logger
 at com.cisco.ca.ss.lcm.adminshell.client.ShellClient.<clinit>(ShellClient.java:20)
Caused by: java.lang.ClassNotFoundException: org.apache.log4j.Logger
 at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
 at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:338)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
 ... 1 more

Everyone's tags (3)
7 REPLIES 7
Beginner

Re: SSH login giving Java error and closing

Hi Mikey, 

 

I send you a pm with the workaround to fix the issue. 

Beginner

Re: SSH login giving Java error and closing

Hi,
I tried that it didn't work, see attached the order I entered the commands and below it the same error when I ssh back using admin.

Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/log4j/Logger
at com.cisco.ca.ss.lcm.adminshell.client.ShellClient.(ShellClient.java:20)
Caused by: java.lang.ClassNotFoundException: org.apache.log4j.Logger
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:338)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 1 more
Beginner

Re: SSH login giving Java error and closing

Hi Mikey, 

 

During the upgrade process did you notice any errors that might have occurred. I would recommend trying to reapply the patches again as it seems that the initial upgrade that was done may have triggered the errors that you are receiving now. 

Beginner

Re: SSH login giving Java error and closing

Hi,
I didn't notice any errors but I have all the logs and they are attached.

I will retry the install later and let you know.

Re: SSH login giving Java error and closing

Hi deogill,

 

I also have this problem. Can you share your proposed fix to see if it works in my case.

 

I also have a 2.7.4.2 update stuck in Initiated. Prior it was stuck in Apply-in-Progress but I managed to resolve that with the procedure mentioned at https://community.cisco.com/t5/smart-net-total-care-portal-and/cspc-stuck-in-apply-in-progress-when-updating-to-version-2-7-4/td-p/3374640, in a linked document page 6. I also had similar issues with the 2.7.3 to 2.7.4 upgrade and had to manually install those upgrade packages as described in CSPC Collection Platform Software Manual Upgrade from 2.7/2.7.x.x, June 2018 which is a document I can't locate on the Cisco website right now. In case the fix doesn't work I assume a manual upgrade will be the only path possible since we can't get access to the Admin CLI? Should I be trying to install 2.7.4 again or the 2.7.4.2 update manually?

Re: SSH login giving Java error and closing

Hi Kevin,

Thank you for your post. We ask that a new discussion be started for tracking and visibility for our experts.

Thanks!
Cheri

Re: SSH login giving Java error and closing

Seriously, this discussion is less that 8 days old, if Cisco is gong to be like we need a new issue for every person with the same problem I'll just call TAC. If I have to have my own thread I may as well get personalized support. While you are at it please remove the "I have the same problem" button as it is also pointless if your tracking requires every issue to have a new thread.

CreatePlease to create content
Right-rail
Navigation
Be sure to bookmark these support pages and use them in the future to find all the self-help information.
Helpful Links