Bonjour,
Nous avons migré une application d'un éditeur d'un environnement wls11 vers wls12.
Serveur Centos 7.6 .
L'appli n'a pas été relivrée : il n'y a que le serveur d'appli qui a changé.
Quand je déploie mon appli ( sous forme exploded ) , j'ai ce type d'erreur dans le log du serveur managé.
Code :Sélectionner tout -Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
####<25 juin 2020 16 h 20 CEST> <Warning> <JAXRSIntegration> <lweblo12> <horustst> <[STANDBY] ExecuteThread: '4' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <9138ac1c-7e10-4c59-b395-760619d98cbb-00000007> <1593094830266> <[severity-value: 16] [rid: 0] [partition-id: 0] [partition-name: DOMAIN] > <BEA-2192510> <Cannot add Jersey servlet for application class org.glassfish.jersey.server.ResourceConfig because ApplicationPath annotation is not set on it.>
####<25 juin 2020 16 h 20 CEST> <Warning> <JAXRSIntegration> <lweblo12> <horustst> <[STANDBY] ExecuteThread: '4' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <9138ac1c-7e10-4c59-b395-760619d98cbb-00000007> <1593094830267> <[severity-value: 16] [rid: 0] [partition-id: 0] [partition-name: DOMAIN] > <BEA-2192510> <Cannot add Jersey servlet for application class org.glassfish.jersey.server.ResourceConfig$WrappingResourceConfig because ApplicationPath annotation is not set on it.>
####<25 juin 2020 16 h 20 CEST> <Warning> <JAXRSIntegration> <lweblo12> <horustst> <[STANDBY] ExecuteThread: '4' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <9138ac1c-7e10-4c59-b395-760619d98cbb-00000007> <1593094830267> <[severity-value: 16] [rid: 0] [partition-id: 0] [partition-name: DOMAIN] > <BEA-2192510> <Cannot add Jersey servlet for application class org.glassfish.jersey.server.ResourceConfig$RuntimeConfig because ApplicationPath annotation is not set on it.>
####<25 juin 2020 16 h 20 CEST> <Warning> <JAXRSIntegration> <lweblo12> <horustst> <[STANDBY] ExecuteThread: '4' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <9138ac1c-7e10-4c59-b395-760619d98cbb-00000007> <1593094830292> <[severity-value: 16] [rid: 0] [partition-id: 0] [partition-name: DOMAIN] > <BEA-2192511> <The list of resource packages: org.apache.cxf.jaxrs.provider;org.glassfish.json.jaxrs;as.horus.webservices.acteurFSE;org.glassfish.jersey.server.wadl.internal;as.horus.webservices.grc;as.horus.webservices;as.horus.webservices.authentification;org.glassfish.jersey.client.filter;org.apache.cxf.jaxrs.impl>
####<25 juin 2020 16 h 20 CEST> <Info> <Deployer> <lweblo12> <horustst> <[STANDBY] ExecuteThread: '4' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <9138ac1c-7e10-4c59-b395-760619d98cbb-00000007> <1593094837007> <[severity-value: 64] [rid: 0] [partition-id: 0] [partition-name: DOMAIN] > <BEA-149060> <Module / of application horustst_app successfully transitioned from STATE_NEW to STATE_PREPARED on server horustst.>
####<25 juin 2020 16 h 20 CEST> <Info> <WorkManager> <lweblo12> <horustst> <Timer-2> <<WLS Kernel>> <> <9138ac1c-7e10-4c59-b395-760619d98cbb-00000008> <1593094837216> <[severity-value: 64] [rid: 0] [partition-id: 0] [partition-name: DOMAIN] > <BEA-002959> <Self-tuning thread pool contains 4 running threads, 0 idle threads, and 13 standby threads>
####<25 juin 2020 16 h 20 CEST> <Info> <WebLogicServer> <lweblo12> <horustst> <[STANDBY] ExecuteThread: '4' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <9138ac1c-7e10-4c59-b395-760619d98cbb-00000007> <1593094837380> <[severity-value: 64] [rid: 0] [partition-id: 0] [partition-name: DOMAIN] > <BEA-000256> <Invoking weblogic.transaction.internal.StartupClass.main(null)>
####<25 juin 2020 16 h 20 CEST> <Info> <org.jboss.weld.Version> <lweblo12> <horustst> <[STANDBY] ExecuteThread: '4' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <9138ac1c-7e10-4c59-b395-760619d98cbb-00000007> <1593094837401> <[severity-value: 64] [rid: 0] [partition-id: 0] [partition-name: DOMAIN] > <BEA-000000> <WELD-000900: 2.3.2 (Final)>
####<25 juin 2020 16 h 20 CEST> <Info> <Deployer> <lweblo12> <horustst> <[STANDBY] ExecuteThread: '4' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <9138ac1c-7e10-4c59-b395-760619d98cbb-00000007> <1593094837573> <[severity-value: 64] [rid: 0] [partition-id: 0] [partition-name: DOMAIN] > <BEA-149059> <Module / of application horustst_app is transitioning from STATE_PREPARED to STATE_ADMIN on server horustst.>
####<25 juin 2020 16 h 20 CEST> <Info> <Deployer> <lweblo12> <horustst> <[STANDBY] ExecuteThread: '4' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <9138ac1c-7e10-4c59-b395-760619d98cbb-00000007> <1593094837573> <[severity-value: 64] [rid: 0] [partition-id: 0] [partition-name: DOMAIN] > <BEA-149059> <Module / of application horustst_app is transitioning from STATE_PREPARED to STATE_ADMIN on server horustst.>
####<25 juin 2020 16 h 20 CEST> <Info> <Deployer> <lweblo12> <horustst> <[STANDBY] ExecuteThread: '4' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <9138ac1c-7e10-4c59-b395-760619d98cbb-00000007> <1593094837582> <[severity-value: 64] [rid: 0] [partition-id: 0] [partition-name: DOMAIN] > <BEA-149060> <Module / of application horustst_app successfully transitioned from STATE_PREPARED to STATE_ADMIN on server horustst.>
####<25 juin 2020 16 h 20 CEST> <Info> <Deployer> <lweblo12> <horustst> <[STANDBY] ExecuteThread: '4' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <9138ac1c-7e10-4c59-b395-760619d98cbb-00000007> <1593094837583> <[severity-value: 64] [rid: 0] [partition-id: 0] [partition-name: DOMAIN] > <BEA-149060> <Module / of application horustst_app successfully transitioned from STATE_PREPARED to STATE_ADMIN on server horustst.>
####<25 juin 2020 16 h 20 CEST> <Error> <HTTP> <lweblo12> <horustst> <[STANDBY] ExecuteThread: '4' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <9138ac1c-7e10-4c59-b395-760619d98cbb-00000007> <1593094838217> <[severity-value: 8] [rid: 0] [partition-id: 0] [partition-name: DOMAIN] > <BEA-101216> <Servlet: "JAX-RS/Jersey#1" failed to preload on startup in Web application: "/".
java.lang.ClassCastException: Cannot cast org.glassfish.jersey.jackson.internal.JacksonAutoDiscoverable to org.glassfish.jersey.internal.spi.AutoDiscoverable
        at java.lang.Class.cast(Class.java:3369)
        at org.glassfish.jersey.internal.ServiceFinder$LazyObjectIterator.hasNext(ServiceFinder.java:689)
        at org.glassfish.jersey.internal.ServiceFinderBinder.configure(ServiceFinderBinder.java:91)
        at org.glassfish.hk2.utilities.binding.AbstractBinder.bind(AbstractBinder.java:187)
        at org.glassfish.hk2.utilities.binding.AbstractBinder.install(AbstractBinder.java:362)
        at org.glassfish.jersey.server.ServerBinder.configure(ServerBinder.java:123)
        at org.glassfish.hk2.utilities.binding.AbstractBinder.bind(AbstractBinder.java:187)
        at org.glassfish.jersey.internal.inject.Injections.bind(Injections.java:158)
...
...




j'ai voulu jouer sur les prefer-application-package/resources de cette manière:
Code XML :Sélectionner tout -Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
  <container-descriptor>
    <index-directory-enabled>true</index-directory-enabled>
    <prefer-web-inf-classes>true</prefer-web-inf-classes>
    <!-- <prefer-application-packages>
        <package-name>org.glassfish.jersey.*</package-name>
        <package-name>org.glassfish.json.*</package-name>
    </prefer-application-packages>              -->
                <!-- <package-name>javax.ws.rs.*</package-name> -->
            <!-- <package-name>weblogic.jaxrs.internal.api.client.*</package-name> -->
                <!-- <package-name>weblogic.jaxrs.api.client.*</package-name> -->
 
 </container-descriptor>
    <!-- <prefer-application-resources>
        <resource-name>javax.ws.rs.*</resource-name>
        <resource-name>org.glassfish.jersey.*</resource-name>
    </prefer-application-resources>
    -->

Tout a été remis en commentaires car cela n'apportait rien au problème.

N'étant pas familier du développement java , des class-loaders hierarchiques, des classpaths , je suis un peu das le dur :

Avez vous des idées ?

Merci.

Bruno