Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MicroProfile Config Load Error #25298

Open
hantsy opened this issue Dec 26, 2024 · 1 comment
Open

MicroProfile Config Load Error #25298

hantsy opened this issue Dec 26, 2024 · 1 comment

Comments

@hantsy
Copy link

hantsy commented Dec 26, 2024

Windows 10, Java 21 , Glassfish 8.0.0-M9

Created @ConfigProperties class, and got exception when deploying phase.

1. com.sun.enterprise.module.ResolveError: Failed to start OSGiModuleImpl:: Bundle = [org.glassfish.main.microprofile.config [91]], State = [NEW]Unable to resolve
    org.glassfish.main.microprofile.config [91]
    missing requirement
[91] 
jar = file:/home/runner/work/jakartaee11-sandbox/jakartaee11-sandbox/cdi/target/glassfish8/glassfish/modules/microprofile-config.jar
artifactId = microprofile-config
groupId = org.glassfish.main.microprofile
version = 8.0.0-M9


2. java.lang.IllegalStateException: Could not load descriptor SystemDescriptor(
	implementation=org.glassfish.microprofile.config.ConfigContainer
	name=org.glassfish.microprofile.config.ConfigContainer
	contracts={org.glassfish.microprofile.config.ConfigContainer,org.glassfish.api.container.Container}
	scope=jakarta.inject.Singleton
	qualifiers={}
	descriptorType=CLASS
	descriptorVisibility=NORMAL
	metadata=Bundle-SymbolicName={org.glassfish.main.microprofile.config},Bundle-Version={8.0.0.M9}
	rank=0
	loader=OsgiPopulatorPostProcessor.HK2Loader(OSGiModuleImpl:: Bundle = [org.glassfish.main.microprofile.config [91]], State = [NEW],98086928)
	proxiable=null
	proxyForSameScope=null
	analysisName=null
	id=956
	locatorId=0
	identityHashCode=174473294
	reified=false)
3. java.lang.IllegalStateException: Unable to resolve
    org.glassfish.main.microprofile.config [91]
    missing requirement
        package = io.helidon.common.types
@hantsy
Copy link
Author

hantsy commented Dec 26, 2024

Add io.helidon.microprofile.config:helidon-microprofile-config and io.helidon.common:helidon-common-types in the project dependencies, still report the issue.

<dependency>
    <groupId>io.helidon.microprofile.config</groupId>
    <artifactId>helidon-microprofile-config</artifactId>
    <version>4.1.6</version>
</dependency>
<!-- https://mvnrepository.com/artifact/io.helidon.common/helidon-common-types -->
<dependency>
    <groupId>io.helidon.common</groupId>
    <artifactId>helidon-common-types</artifactId>
    <version>4.1.6</version>
</dependency>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant