Upgrade Sonar 9.0.0 to Sonar 9.2.4

Java version 11.0.3
Current sonar version: 9.0.0
Future sonar version: 9.2.4

Good afternoon, due to the log4j vulnerability found in my environment’s sonar version 9.0.0, I’m upgrading to version 9.2.4.
But I’m having an error at the start of sonar, following log:

Launching the JVM...
Wrapper (Version 3.2.3) http://wrapper.tanukisoftware.org
  Copyright 1999-2006 Tanuki Software, Inc. All Rights Reserved.

WrapperSimpleApp: Unable to locate the class org.sonar.application.App: java.lang.ClassNotFoundException: org.sonar.application.App

WrapperSimpleApp Usage:
  java org.tanukisoftware.wrapper.WrapperSimpleApp {app_class} [app_arguments]

Onde:
  app_class: The fully qualified class name of the application to run.
  app_arguments: The arguments that would normally be passed to the
                  application.
<-- Wrapper Stopped
--> Wrapper Started as Daemon
Launching the JVM...
Wrapper (Version 3.2.3) http://wrapper.tanukisoftware.org
  Copyright 1999-2006 Tanuki Software, Inc. All Rights Reserved.

WrapperSimpleApp: Unable to locate the class org.sonar.application.App: java.lang.ClassNotFoundException: org.sonar.application.App

WrapperSimpleApp Usage:
  java org.tanukisoftware.wrapper.WrapperSimpleApp {app_class} [app_arguments]

Onde:
  app_class: The fully qualified class name of the application to run.
  app_arguments: The arguments that would normally be passed to the
                  application.
<-- Wrapper Stopped

I already followed the documentation that asks to change the wrapper.conf file, including the java path, even doing that the error persists.

Hi,

How are you starting your 9.0 instance? Also with the wrapper?

Could you point me to the documentation that “asks to change the wrapper.conf file”?

 
Ann

Good night, how are you?
The upgrade doc asks to update wrapper.conf and sonar.properties, with the contents of the previous installation.
Upgrade with .zip (Upgrade Guide | SonarQube Docs)
After doing this I got the error mentioned at the beginning.

I stating sonar 9.0 with script sonar.sh

Hi,

Had you made changes to the wrapper.conf of your previous installation? What happens when you start 9.2.4 with sonar.sh?

 
Ann

Hello, There were no specific settings in the wrapper.conf of the previous installation 9.0.0
when I initialize version 9.2.4 by the sonar.sh script, it presents the error mentioned at the beginning of the issue.

Launching the JVM…
Wrapper (Version 3.2.3) http://wrapper.tanukisoftware.org
Copyright 1999-2006 Tanuki Software, Inc. All Rights Reserved.

WrapperSimpleApp: Unable to locate the class org.sonar.application.App: java.lang.ClassNotFoundException: org.sonar.application.App

WrapperSimpleApp Usage:
java org.tanukisoftware.wrapper.WrapperSimpleApp {app_class} [app_arguments]

Onde:
app_class: The fully qualified class name of the application to run.
app_arguments: The arguments that would normally be passed to the
application.
← Wrapper Stopped
→ Wrapper Started as Daemon
Launching the JVM…
Wrapper (Version 3.2.3) http://wrapper.tanukisoftware.org
Copyright 1999-2006 Tanuki Software, Inc. All Rights Reserved.

WrapperSimpleApp: Unable to locate the class org.sonar.application.App: java.lang.ClassNotFoundException: org.sonar.application.App

Resolved upgrade ok.

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.