GlassFish Version (and build number)
version = 8.0.0-M12
JDK version
21
OS
Ubuntu 24.04.4 LTS
Database
No response
Problem Description
I have added mp-config 3.1 in my project but deployment keeps failing with below error:
remote failure: Error occurred during deployment: Exception while deploying the app [isi] : A MultiException has 3 exceptions. They are:
1. com.sun.enterprise.module.ResolveError: Failed to start OSGiModuleImpl:: Bundle = [org.glassfish.main.microprofile.config [12]], State = [NEW]Unable to resolve
org.glassfish.main.microprofile.config [12]
missing requirement
[12]
jar = file:/home/backend-dev/servers/glassfish-8.0.0/glassfish8/glassfish/modules/microprofile-config.jar
artifactId = microprofile-config
groupId = org.glassfish.main.microprofile
version = 8.0.0-M12
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.M12}
rank=0
loader=OsgiPopulatorPostProcessor.HK2Loader(OSGiModuleImpl:: Bundle = [org.glassfish.main.microprofile.config [12]], State = [NEW],2139522667)
proxiable=null
proxyForSameScope=null
analysisName=null
id=556
locatorId=0
identityHashCode=2042572790
reified=false)
3. java.lang.IllegalStateException: Unable to resolve
org.glassfish.main.microprofile.config [12]
missing requirement
package = io.helidon
From the guides I see the below section which I believe means config is supported out of the box?
Steps to reproduce
- Create jakarta ee 11 project(exact version
11.0.0-M1)
- Add micro profile config dependency:
<dependency>
<groupId>org.eclipse.microprofile.config</groupId>
<artifactId>microprofile-config-api</artifactId>
<version>3.1</version>
<scope>provided</scope>
</dependency>
- inject a config property from
microprofile-config.properties. (My case I was doing REST so I injected in my resource class)
- Deploy
Impact of Issue
No response
GlassFish Version (and build number)
version = 8.0.0-M12
JDK version
21
OS
Ubuntu 24.04.4 LTS
Database
No response
Problem Description
I have added
mp-config 3.1in my project but deployment keeps failing with below error:From the guides I see the below section which I believe means config is supported out of the box?
Steps to reproduce
11.0.0-M1)microprofile-config.properties. (My case I was doing REST so I injected in my resource class)Impact of Issue
No response