Git Product home page Git Product logo

Comments (4)

momo-tong avatar momo-tong commented on September 18, 2024 1

Hi, Thank you very much for your help. I successfully run it. Thanks again.

from steady.

serenaponta avatar serenaponta commented on September 18, 2024

Hi @momo-tong ,

this error usually happens when the application coordinates
vulas.core.appContext.group = <GROUP>, vulas.core.appContext.artifact = <ARTIFACT>, vulas.core.appContext.version = <VERSION> are not provided in the steady-custom.properties configuration.
Also note that the dependencies are distinguished from application code based on the configuration of
vulas.core.app.appPrefixes = and vulas.core.app.appJarNames =.

See #542 for a similar issue and tutorial.

from steady.

momo-tong avatar momo-tong commented on September 18, 2024

Hi
Thank for your reply. I want to analyze spring-boot-security-saml-sample-2.0.0.RELEASE jar. Basically got the same error that tried the following configurations. By the way, pom.xml in the jar haves tag, doesn't that matter?

# parent tag in pom.xml of spring-boot-security-saml-sample-2.0.0.RELEASE jar

<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.1.1.RELEASE</version>
</parent>

#ERROR INFO

2023-02-21 11:13:46,173 [main] [INFO ] shared.util.VulasConfiguration -     vulas.shared.sys=[os., java., runtime., maven., sun.]
2023-02-21 11:13:46,175 [main] [INFO ] shared.util.VulasConfiguration -     vulas.shared.version=3.2.4
2023-02-21 11:13:46,182 [main] [ERROR] e.steady.shared.util.StopWatch - [045914] [00.309 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:108)
	at org.eclipse.steady.goals.BomGoal.prepareExecution(BomGoal.java:57)
	at org.eclipse.steady.goals.AbstractGoal.start(AbstractGoal.java:419)
	at org.eclipse.steady.goals.AbstractGoal.execute(AbstractGoal.java:254)
	at org.eclipse.steady.goals.AbstractGoal.executeSync(AbstractGoal.java:248)
	at org.eclipse.steady.cli.VulasCli.main(VulasCli.java:99)

#the first configuration

vulas.core.appContext.group = com.vdenotaris.spring
vulas.core.appContext.artifact = spring-boot-security-saml-sample
vulas.core.appContext.version = 2.0.0.RELEASE
vulas.core.app.appPrefixes = com.vdenotaris.spring.boot.security.saml

#the second configuration

vulas.core.appContext.group = com.vdenotaris.spring
vulas.core.appContext.artifact = spring-boot-security-saml-sample
vulas.core.appContext.version = 2.0.0.RELEASE
vulas.core.app.appJarNames = spring-boot-security-saml-sample

#the third configuration

vulas.core.appContext.group = com.vdenotaris.spring
vulas.core.appContext.artifact = spring-boot-security-saml-sample
vulas.core.appContext.version = 2.0.0.RELEASE
vulas.core.app.appPrefixes =  spring-boot-security-saml

from steady.

serenaponta avatar serenaponta commented on September 18, 2024

When using the cli the pom.xml is not read, that's why information like the application context has to be provided in the steady-custom.properties configuration file.

From the stacktrace it looks like the configuration file is not read. The configuration file has to be named steady-custom.properties without any additional extension and the .sample present in the file provided in the zip archive has to be removed.
The first configuration you provided looks good to me (assuming that the code inside the spring-boot-security-saml-sample uses has package name com.vdenotaris.spring.boot.security.saml).

from steady.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.