wildfly / wildfly-glow

Galleon Layers Output from War: Automatic discover of WildFly provisioning information from an application.
Apache License 2.0
7 stars 5 forks source link

Error while using the CLI to scan resteasy examples WAR. #23

Closed liweinan closed 7 months ago

liweinan commented 7 months ago

While I'm trying to use the wildfly-glow cli to scan the built WAR from the RESTEasy example:

with the following command:

weli@192:~/w/w/wildfly-glow-1.0.0.Alpha8
➤ ./wildfly-glow scan /Users/weli/.m2/repository/dev/resteasy/examples/tracing-example/6.0.1-SNAPSHOT/tracing-example-6.0.1-SNAPSHOT.war                      23:24:11

It generates the following error:

Wildfly Glow is scanning...
ERROR: Exception occured while retrieving known Galleon feature-packs for version null. Cause: Connection refused

Here are the details:

image
liweinan commented 7 months ago

@jfdenise I'm not sure whether it's my usage problem or not, could you please help to check it when you have time? Thanks!

liweinan commented 7 months ago

The used example is here: https://github.com/resteasy/resteasy-examples/tree/main/tracing-example

jfdenise commented 7 months ago

@liweinan , it seems that you can't access https://raw.githubusercontent.com/wildfly/wildfly-galleon-feature-packs/release/versions.yaml

Can you try: wget https://raw.githubusercontent.com/wildfly/wildfly-galleon-feature-packs/release/versions.yaml

liweinan commented 7 months ago

@jfdenise Okay I see, let me try to configure proxy.

liweinan commented 7 months ago

After setting the proxy I can run the command:

➤ JAVA_OPTS="-Dhttp.proxyHost=localhost -Dhttp.proxyPort=8829 -Dhttps.proxyHost=localhost -Dhttps.proxyPort=8829" ./wildfly-glow scan /Users/weli/.m2/repository/dev/resteasy/examples/tracing-example/6.0.1-SNAPSHOT/tracing-example-6.0.1-SNAPSHOT.war
Wildfly Glow is scanning...
context: bare-metal
enabled profile: none
galleon discovery
- feature-packs
   org.wildfly:wildfly-galleon-pack:30.0.0.Final
- layers
   ee-core-profile-server
   jaxrs

Some suggestions have been found. You could enable suggestions with --suggest option.
To provision the WildFly server for your deployment add the --provision=SERVER option to the scan command

@jfdenise Thanks for teaching! :D