Re: tc-embed-9.0.38 : module does not declare uses

2020-10-09 Thread marc . davenport



On 10/9/20 11:49 AM, Mark Thomas wrote:

On 09/10/2020 16:38, marc.davenp...@oracle.com wrote:

Hello all,

I'm trying to upgrade from 9.0.35 to 9.0.38.  I know that explicit
module definitions were added between .37 & .38.  I'm just trying to
shake out the changes needed on our end to use it. It's my tentative
grasp on proper use of modules, but I could use some help. Now when we
are starting our embedded tomcat, I am getting an error as we
instantiate and configure the AccessLogValve.

Exception in thread "main" java.util.ServiceConfigurationError:
org.apache.juli.logging.Log: module org.apache.tomcat.embed.core does
not declare `uses`

https://urldefense.com/v3/__https://bz.apache.org/bugzilla/show_bug.cgi?id=64751__;!!GqivPVa7Brio!LobtElrQgI0ja3WtqMuX9RiJwqU3mbRK3cjL70UP3z5ZNsIfXECcvNMvkLriRL5oYwg$

Fixed in 9.0.39 which looks as if it will be released very (hours) shortly.

Mark


Ah, that explains it.  Thanks for the reply.  I'm going to switch to 
9.0.37 and then deal with the JPMS changes in the next quarter.


Regards,
Marc





     at java.base/java.util.ServiceLoader.fail(Unknown Source)
     at java.base/java.util.ServiceLoader.checkCaller(Unknown Source)
     at java.base/java.util.ServiceLoader.(Unknown Source)
     at java.base/java.util.ServiceLoader.load(Unknown Source)
     at
org.apache.tomcat.embed.core@9.0.38/org.apache.juli.logging.LogFactory.(LogFactory.java:89)

     at
org.apache.tomcat.embed.core@9.0.38/org.apache.juli.logging.LogFactory.(LogFactory.java:66)

     at
org.apache.tomcat.embed.core@9.0.38/org.apache.catalina.util.LifecycleBase.(LifecycleBase.java:39)

     at our/Server.start(OurServer.java:104) -> new AccessLogValve().

We are running against a custom jre made by jlink which includes the
following mods which might be pertinent.

/mods/commons-logging-1.2.jar
...
/mods/slf4j-api-1.8.0-beta4.jar
/mods/slf4j-log4j-100.0.0.0.0-SNAPSHOT.jar (shaded jar)
...
/mods/tomcat-annotations-api-9.0.38.jar
/mods/tomcat-embed-core-9.0.38.jar
/mods/tomcat-embed-el-9.0.38.jar
/mods/tomcat-embed-jasper-9.0.38.jar

I'm not sure what the implication of this error message is and any help
would be appreciated.

Thank you,

Marc


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: tc-embed-9.0.38 : module does not declare uses

2020-10-09 Thread Mark Thomas
On 09/10/2020 16:38, marc.davenp...@oracle.com wrote:
> Hello all,
> 
> I'm trying to upgrade from 9.0.35 to 9.0.38.  I know that explicit
> module definitions were added between .37 & .38.  I'm just trying to
> shake out the changes needed on our end to use it. It's my tentative
> grasp on proper use of modules, but I could use some help. Now when we
> are starting our embedded tomcat, I am getting an error as we
> instantiate and configure the AccessLogValve.
> 
> Exception in thread "main" java.util.ServiceConfigurationError:
> org.apache.juli.logging.Log: module org.apache.tomcat.embed.core does
> not declare `uses`

https://bz.apache.org/bugzilla/show_bug.cgi?id=64751

Fixed in 9.0.39 which looks as if it will be released very (hours) shortly.

Mark


>     at java.base/java.util.ServiceLoader.fail(Unknown Source)
>     at java.base/java.util.ServiceLoader.checkCaller(Unknown Source)
>     at java.base/java.util.ServiceLoader.(Unknown Source)
>     at java.base/java.util.ServiceLoader.load(Unknown Source)
>     at
> org.apache.tomcat.embed.core@9.0.38/org.apache.juli.logging.LogFactory.(LogFactory.java:89)
> 
>     at
> org.apache.tomcat.embed.core@9.0.38/org.apache.juli.logging.LogFactory.(LogFactory.java:66)
> 
>     at
> org.apache.tomcat.embed.core@9.0.38/org.apache.catalina.util.LifecycleBase.(LifecycleBase.java:39)
> 
>     at our/Server.start(OurServer.java:104) -> new AccessLogValve().
> 
> We are running against a custom jre made by jlink which includes the
> following mods which might be pertinent.
> 
> /mods/commons-logging-1.2.jar
> ...
> /mods/slf4j-api-1.8.0-beta4.jar
> /mods/slf4j-log4j-100.0.0.0.0-SNAPSHOT.jar (shaded jar)
> ...
> /mods/tomcat-annotations-api-9.0.38.jar
> /mods/tomcat-embed-core-9.0.38.jar
> /mods/tomcat-embed-el-9.0.38.jar
> /mods/tomcat-embed-jasper-9.0.38.jar
> 
> I'm not sure what the implication of this error message is and any help
> would be appreciated.
> 
> Thank you,
> 
> Marc
> 
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
> 


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



tc-embed-9.0.38 : module does not declare uses

2020-10-09 Thread marc . davenport

Hello all,

I'm trying to upgrade from 9.0.35 to 9.0.38.  I know that explicit 
module definitions were added between .37 & .38.  I'm just trying to 
shake out the changes needed on our end to use it. It's my tentative 
grasp on proper use of modules, but I could use some help. Now when we 
are starting our embedded tomcat, I am getting an error as we 
instantiate and configure the AccessLogValve.


Exception in thread "main" java.util.ServiceConfigurationError: 
org.apache.juli.logging.Log: module org.apache.tomcat.embed.core does 
not declare `uses`

    at java.base/java.util.ServiceLoader.fail(Unknown Source)
    at java.base/java.util.ServiceLoader.checkCaller(Unknown Source)
    at java.base/java.util.ServiceLoader.(Unknown Source)
    at java.base/java.util.ServiceLoader.load(Unknown Source)
    at 
org.apache.tomcat.embed.core@9.0.38/org.apache.juli.logging.LogFactory.(LogFactory.java:89)
    at 
org.apache.tomcat.embed.core@9.0.38/org.apache.juli.logging.LogFactory.(LogFactory.java:66)
    at 
org.apache.tomcat.embed.core@9.0.38/org.apache.catalina.util.LifecycleBase.(LifecycleBase.java:39)

    at our/Server.start(OurServer.java:104) -> new AccessLogValve().

We are running against a custom jre made by jlink which includes the 
following mods which might be pertinent.


/mods/commons-logging-1.2.jar
...
/mods/slf4j-api-1.8.0-beta4.jar
/mods/slf4j-log4j-100.0.0.0.0-SNAPSHOT.jar (shaded jar)
...
/mods/tomcat-annotations-api-9.0.38.jar
/mods/tomcat-embed-core-9.0.38.jar
/mods/tomcat-embed-el-9.0.38.jar
/mods/tomcat-embed-jasper-9.0.38.jar

I'm not sure what the implication of this error message is and any help 
would be appreciated.


Thank you,

Marc


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org