IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

JOnAS Java Discussion :

Désactivation du load auto de certains Jars


Sujet :

JOnAS Java

  1. #1
    Membre actif Avatar de aymen83
    Inscrit en
    Décembre 2007
    Messages
    271
    Détails du profil
    Informations forums :
    Inscription : Décembre 2007
    Messages : 271
    Points : 268
    Points
    268
    Par défaut Désactivation du load auto de certains Jars
    Bonjour,

    J'ai un web service cxf 2.6 déploiyé dans un serveur Jonas server 4.10.9. Le web service marche bien sauf que maintenant j'ai la partie sécurité à ajouter donc j'ai rajouter cette config spring
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
     
    <bean class="org.apache.cxf.ws.security.wss4j.WSS4JInInterceptor" id="authentificationInterceptor">
                <constructor-arg>
                    <map>
                        <entry key="action" value="UsernameToken"/>
                        <entry key="passwordType" value="PasswordDigest"/>                   
                        <entry key="passwordCallbackRef">
                            <bean class="com.orange.ada.ws.config.interceptor.AuthentificationCallback"/>
                        </entry>
                    </map>
                </constructor-arg>
            </bean>
    mais là le problème c'est que jonas a la version WSS4J 1.5 et CXF la 1.6
    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
    26
    27
    28
    29
    30
    31
    32
    33
    34
     
    java.lang.NoSuchMethodError: org.apache.ws.security.WSSecurityEngine.getWssConfig()Lorg/apache/ws/security/WSSConfig;
            at org.apache.cxf.ws.security.wss4j.WSS4JInInterceptor.handleMessage(WSS4JInInterceptor.java:213)
            at org.apache.cxf.ws.security.wss4j.WSS4JInInterceptor.handleMessage(WSS4JInInterceptor.java:97)
            at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:262)
            at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:122)
            at org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:211)
            at org.apache.cxf.transport.servlet.ServletController.invokeDestination(ServletController.java:213)
            at org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:193)
            at org.apache.cxf.transport.servlet.CXFNonSpringServlet.invoke(CXFNonSpringServlet.java:129)
            at org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleRequest(AbstractHTTPServlet.java:187)
            at org.apache.cxf.transport.servlet.AbstractHTTPServlet.doPost(AbstractHTTPServlet.java:110)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
            at org.apache.cxf.transport.servlet.AbstractHTTPServlet.service(AbstractHTTPServlet.java:166)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:585)
            at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:244)
            at java.security.AccessController.doPrivileged(Native Method)
            at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
            at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:276)
            at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:162)
            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:262)
            at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:52)
            at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:171)
            at java.security.AccessController.doPrivileged(Native Method)
            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:167)
            at org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:198)
            at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:585)
    y a t'il un moyen de désactivé le chargement de la version 1.5 de jonas pour qu'il prenne en compte la mienne?

  2. #2
    Membre éprouvé Avatar de scandinave
    Homme Profil pro
    Développeur Java, NodeJs/Angular
    Inscrit en
    Mai 2009
    Messages
    277
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Gironde (Aquitaine)

    Informations professionnelles :
    Activité : Développeur Java, NodeJs/Angular

    Informations forums :
    Inscription : Mai 2009
    Messages : 277
    Points : 919
    Points
    919
    Par défaut
    meme probleme pour moi en ce qui concerne l'api criteria dans javax.persistance non supporté par ma version de jonas. quelqu'un a une idée pour notre probleme?

  3. #3
    Membre éprouvé Avatar de scandinave
    Homme Profil pro
    Développeur Java, NodeJs/Angular
    Inscrit en
    Mai 2009
    Messages
    277
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Gironde (Aquitaine)

    Informations professionnelles :
    Activité : Développeur Java, NodeJs/Angular

    Informations forums :
    Inscription : Mai 2009
    Messages : 277
    Points : 919
    Points
    919
    Par défaut
    alors ma solution, dans eclipse
    buildPath > order and export
    et placer le jonas runtime en bas de la liste

  4. #4
    Nouveau Candidat au Club
    Inscrit en
    Février 2013
    Messages
    1
    Détails du profil
    Informations forums :
    Inscription : Février 2013
    Messages : 1
    Points : 1
    Points
    1
    Par défaut probléme de connexion JOnas
    [salut a toute et a tous,

    en fait j'ai un soucie lorsque je commence start JOnas il m'affiche des erreurs, mais j'ai pas capté d'ou vien exactement le probléme, s'il vous plais aidez moi j'ai passé bq temps mais pas de solution, voila les toutes les erreurs:
    mon JOnas est JOnas4
    Merci d'avance


    2013-02-22 09:57:59,635 : Rar.processRar : Rar: Error from resource (D:\JONAS_BASE\rars\autoload\swiftmq.rar) start method.
    2013-02-22 09:57:59,635 : ResourceServiceImpl.createResourceAdapter : Error processing Rar: Error from start method. Unregister also failed with jonas:type=resourceadapter,name=/D|/JONAS_BASE/rars/autoload/swiftmq.rar
    2013-02-22 09:57:59,635 : ResourceServiceImpl.doStart : JOnAS: Cannot create resource: D:\JONAS_BASE\rars\autoload\swiftmq.rar exception: org.objectweb.jonas.resource.ResourceServiceException : Error processing Rar: Error from start method. Unregister also failed with jonas:type=resourceadapter,name=/D|/JONAS_BASE/rars/autoload/swiftmq.rar: java.lang.Exception: Error from start method.
    org.objectweb.jonas.resource.ResourceServiceException : Error processing Rar: Error from start method. Unregister also failed with jonas:type=resourceadapter,name=/D|/JONAS_BASE/rars/autoload/swiftmq.rar: java.lang.Exception: Error from start method.
    at org.objectweb.jonas.resource.ResourceServiceImpl.createResourceAdapter(ResourceServiceImpl.java:694)
    at org.objectweb.jonas.resource.ResourceServiceImpl.doStart(ResourceServiceImpl.java:509)
    at org.objectweb.jonas.service.AbsServiceImpl.start(AbsServiceImpl.java:80)
    at org.objectweb.jonas.service.ServiceManager.startServices(ServiceManager.java:336)
    at org.objectweb.jonas.server.Server$1.run(Server.java:578)
    Caused by: java.lang.Exception: Error from start method.
    at org.objectweb.jonas.resource.Rar.processRar(Rar.java:531)
    at org.objectweb.jonas.resource.ResourceServiceImpl.createResourceAdapter(ResourceServiceImpl.java:681)
    ... 4 more
    Caused by: javax.naming.NamingException: unable to connect, exception = javax.jms.JMSException: Unable to create a connection to: [[ServerEntry, hostname=serveur-jms, port=10002]]
    at com.swiftmq.connector.v15.ResourceAdapterImpl.start(Unknown Source)
    at org.objectweb.jonas.resource.Rar.processRar(Rar.java:527)
    ....5more
    CatalinaJWebContainerServiceImpl.doStart : Impossible de démarrer Tomcat
    2013-02-22 09:58:01,511 : Server.start : Erreur JOnAS : Incapable de demarrer le serveur 'jonas'. Exception: java.lang.Exception: org.objectweb.jonas.service.ServiceException : Cannot init/start service 'web': Can't retrieve resource 'telepac' from the security service: LifecycleException: Can't retrieve resource 'telepac' from the security service: org.objectweb.jonas.service.ServiceException : Can't retrieve resource 'telepac' from the security service: LifecycleException: Can't retrieve resource 'telepac' from the security service
    JOnAS error: java.lang.Exception: Error in Server start
    java.lang.Exception: Error in Server start
    at org.objectweb.jonas.server.Server.start(Server.java:652)
    at org.objectweb.jonas.server.Server.main(Server.java:200)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:592)
    at org.objectweb.jonas.server.Bootstrap.main(Bootstrap.java:97)
    Caused by: java.lang.Exception: org.objectweb.jonas.service.ServiceException : Cannot init/start service 'web': Can't retrieve resource 'telepac' from the security service: LifecycleException: Can't retrieve resource 'telepac' from the security service: org.objectweb.jonas.service.ServiceException : Can't retrieve resource 'telepac' from the security service: LifecycleException: Can't retrieve resource 'telepac' from the security service
    at org.objectweb.jonas.server.Server$1.run(Server.java:616)
    Caused by: org.objectweb.jonas.service.ServiceException : Cannot init/start service 'web': Can't retrieve resource 'telepac' from the security service: LifecycleException: Can't retrieve resource 'telepac' from the security service: org.objectweb.jonas.service.ServiceException : Can't retrieve resource 'telepac' from the security service: LifecycleException: Can't retrieve resource 'telepac' from the security service
    at org.objectweb.jonas.service.ServiceManager.startServices(ServiceManager.java:339)
    at org.objectweb.jonas.server.Server$1.run(Server.java:578)
    Caused by: org.objectweb.jonas.service.ServiceException : Can't retrieve resource 'telepac' from the security service: LifecycleException: Can't retrieve resource 'telepac' from the security service
    at org.objectweb.jonas.web.catalina55.CatalinaJWebContainerServiceImpl.doStart(CatalinaJWebContainerServiceImpl.java:308)
    at org.objectweb.jonas.service.AbsServiceImpl.start(AbsServiceImpl.java:80)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:592)
    at org.objectweb.jonas.web.wrapper.catalina55.CatalinaJWebContainerServiceWrapper.invoke(CatalinaJWebContainerServiceWrapper.java:158)
    at org.objectweb.jonas.web.wrapper.catalina55.CatalinaJWebContainerServiceWrapper.start(CatalinaJWebContainerServiceWrapper.java:549)
    at org.objectweb.jonas.service.ServiceManager.startServices(ServiceManager.java:336)
    ... 1 more
    Caused by: LifecycleException: Can't retrieve resource 'telepac' from the security service
    at fr.gouv.agriculture.telepac.auth.realm.jonas.TelepacRealm.start(TelepacRealm.java:186)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1006)
    at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
    at org.apache.catalina.core.StandardService.start(StandardService.java:448)
    at org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
    at org.objectweb.jonas.web.catalina55.CatalinaJWebContainerServiceImpl.doStart(CatalinaJWebContainerServiceImpl.java:304)
    ... 9 more
    JOnAS halting
    Arrêt du serveur JOnAS 'jonas'
    2013-02-22 09:58:01,511 : Server.stop : Le serveur JOnAS 'jonas' a été arrêté
    Exception during execution of org.objectweb.jonas.server.Server : Error in Server start
    java.lang.Exception: Error in Server start
    at org.objectweb.jonas.server.Server.start(Server.java:652)
    at org.objectweb.jonas.server.Server.main(Server.java:200)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:592)
    at org.objectweb.jonas.server.Bootstrap.main(Bootstrap.java:97)
    Caused by: java.lang.Exception: org.objectweb.jonas.service.ServiceException : Cannot init/start service 'web': Can't retrieve resource 'telepac' from the security service: LifecycleException: Can't retrieve resource 'telepac' from the security service: org.objectweb.jonas.service.ServiceException : Can't retrieve resource 'telepac' from the security service: LifecycleException: Can't retrieve resource 'telepac' from the security service
    at org.objectweb.jonas.server.Server$1.run(Server.java:616)
    Caused by: org.objectweb.jonas.service.ServiceException : Cannot init/start service 'web': Can't retrieve resource 'telepac' from the security service: LifecycleException: Can't retrieve resource 'telepac' from the security service: org.objectweb.jonas.service.ServiceException : Can't retrieve resource 'telepac' from the security service: LifecycleException: Can't retrieve resource 'telepac' from the security service
    at org.objectweb.jonas.service.ServiceManager.startServices(ServiceManager.java:339)
    at org.objectweb.jonas.server.Server$1.run(Server.java:578)
    Caused by: org.objectweb.jonas.service.ServiceException : Can't retrieve resource 'telepac' from the security service: LifecycleException: Can't retrieve resource 'telepac' from the security service
    at org.objectweb.jonas.web.catalina55.CatalinaJWebContainerServiceImpl.doStart(CatalinaJWebContainerServiceImpl.java:308)
    at org.objectweb.jonas.service.AbsServiceImpl.start(AbsServiceImpl.java:80)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:592)
    at org.objectweb.jonas.web.wrapper.catalina55.CatalinaJWebContainerServiceWrapper.invoke(CatalinaJWebContainerServiceWrapper.java:158)
    at org.objectweb.jonas.web.wrapper.catalina55.CatalinaJWebContainerServiceWrapper.start(CatalinaJWebContainerServiceWrapper.java:549)
    at org.objectweb.jonas.service.ServiceManager.startServices(ServiceManager.java:336)
    ... 1 more
    Caused by: LifecycleException: Can't retrieve resource 'telepac' from the security service
    at fr.gouv.agriculture.telepac.auth.realm.jonas.TelepacRealm.start(TelepacRealm.java:186)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1006)
    at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
    at org.apache.catalina.core.StandardService.start(StandardService.java:448)
    at org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
    at org.objectweb.jonas.web.catalina55.CatalinaJWebContainerServiceImpl.doStart(CatalinaJWebContainerServiceImpl.java:304)
    ... 9 more

Discussions similaires

  1. [WS 2003] ajouter une GPO pour désactiver la MAJ Auto
    Par devlopassion dans le forum Windows Serveur
    Réponses: 3
    Dernier message: 20/03/2010, 19h09
  2. JVM désactivé le loading automatique au démarrage
    Par GroRelou dans le forum Langage
    Réponses: 13
    Dernier message: 17/07/2009, 15h35
  3. Désactivation de déclenchement auto de macro
    Par 900CBR dans le forum Macros et VBA Excel
    Réponses: 4
    Dernier message: 26/06/2008, 17h06
  4. Jar auto-executable et Jar Librairie
    Par Clorish dans le forum Général Java
    Réponses: 7
    Dernier message: 25/02/2008, 13h23
  5. Réponses: 8
    Dernier message: 17/05/2002, 09h08

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo