Soutenez-nous
Publicité
+ Répondre à la discussion
Affichage des résultats 1 à 4 sur 4
  1. #1
    Membre confirmé Avatar de aymen83
    Inscrit en
    décembre 2007
    Messages
    271
    Détails du profil
    Informations forums :
    Inscription : décembre 2007
    Messages : 271
    Points : 218
    Points
    218

    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 :
    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 :
    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 habitué
    Homme Profil pro
    Développeur Java, Php, html, css, javascript
    Inscrit en
    mai 2009
    Messages
    158
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations professionnelles :
    Activité : Développeur Java, Php, html, css, javascript

    Informations forums :
    Inscription : mai 2009
    Messages : 158
    Points : 121
    Points
    121

    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 habitué
    Homme Profil pro
    Développeur Java, Php, html, css, javascript
    Inscrit en
    mai 2009
    Messages
    158
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations professionnelles :
    Activité : Développeur Java, Php, html, css, javascript

    Informations forums :
    Inscription : mai 2009
    Messages : 158
    Points : 121
    Points
    121

    Par défaut

    alors ma solution, dans eclipse
    buildPath > order and export
    et placer le jonas runtime en bas de la liste

  4. #4
    Invité de passage
    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

Liens sociaux

Règles de messages

  • Vous ne pouvez pas créer de nouvelles discussions
  • Vous ne pouvez pas envoyer des réponses
  • Vous ne pouvez pas envoyer des pièces jointes
  • Vous ne pouvez pas modifier vos messages
  •