question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Getting the following error while trying to run steady on steady-cli

See original GitHub issue

Describe the bug This problem occurs when I run steady on steady-cli. I didn’t find steady-cli-3.2.3, so I used steady-cli-3.2.0 the command ‘java -jar steady-cli-3.2.0-jar-with-dependencies.jar -goal app’ the error [main] [ERROR] e.steady.shared.util.StopWatch - [287797] [00.059 ms] Failed: Application context is required to execute goal [APP] Exception in thread "main" org.eclipse.steady.goals.GoalConfigurationException: Application context is required to execute goal [APP] at org.eclipse.steady.goals.AbstractAppGoal.prepareExecution(AbstractAppGoal.java:107) at org.eclipse.steady.goals.BomGoal.prepareExecution(BomGoal.java:57) at org.eclipse.steady.goals.AbstractGoal.start(AbstractGoal.java:418) at org.eclipse.steady.goals.AbstractGoal.execute(AbstractGoal.java:253) at org.eclipse.steady.goals.AbstractGoal.executeSync(AbstractGoal.java:247) at org.eclipse.steady.cli.VulasCli.main(VulasCli.java:99)

steady-custom.properties file I have edit the <GROUP>, <ARTIFACT> and <VERSION> of the application to be analyzed and my workspace token 6A9A4AB1-CF14-4648-A57B-C669060596A5

steady-cli folder The application code (java, class or JAR files) and all application dependencies (JAR files) In the app folder A2BBC9FF-38D9-4FBD-AD75-6E57253AB71F

I have read the Java source code, but still can’t find the problem and how to fix it. Can you please teach me how to solve this problem,thank you!

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
11111821commented, Apr 14, 2022

Hi @serenaponta Thank you very much for your help. I succeeded. Thank you!

0reactions
serenapontacommented, Apr 14, 2022

Hi @11111821,

when using the steady-cli the app folder must contain both the application code and the dependencies. Then the configuration of vulas.core.app.appPrefixes or vulas.core.app.appJarNames is used to discriminate between the two. Looking at the log of the steady-cli you provided above, I think you have the spring-boot-demo application in the app folder (as the DirAnalyzer found only Java and Class files) but the dependencies are not present (as usually happens in Maven projects). The way to proceed is to add the dependencies, e.g., simply running mvn dependency:copy-dependencies and configuring the package prefix (as you did).

I also tested the demo-zookeeper module: I run the mvn command above to get the dependencies within the app folder and configured vulas.core.app.appPrefixes = com.xkcoding and got the expected 77 dependencies. The first alternative you used for the appPrefixes configuration should also work but if you don’t have dependencies under com.xkcoding the one I used makes it simpler 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error trying to run steady-state sonicFoam - CFD Online
Hello all, I receive a strange error when trying to run sonicFoam on my case. Eventually I want to run my case using...
Read more >
Windows Updates fails with Steady State installed
Once I install Steady State and have it take control of the updates I get the following error in the event viewer "Automatic...
Read more >
getmindspun/steady-cli: CLI for programmatically ... - GitHub
The setup command will install the following: a local version of Ghost; a new theme under content/data/ghoststead. If you want to check your...
Read more >
Getting the following error after trying to use Sp...
I got that error when I first tried to install the TA on a universal forwarder. But this TA needs to run on...
Read more >
SteadyClip, An Economical Camera Gimbal – Part 07
The program is fairly simple, but deals with inputs as well as outputs. The program has 3 states. It boots up, waits for...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found