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

AWT/Swing Java Discussion :

Mon client SWING ne se lance pas sur toutes les machines


Sujet :

AWT/Swing Java

  1. #1
    Membre régulier
    Inscrit en
    Mars 2007
    Messages
    179
    Détails du profil
    Informations forums :
    Inscription : Mars 2007
    Messages : 179
    Points : 97
    Points
    97
    Par défaut Mon client SWING ne se lance pas sur toutes les machines
    Hello there,
    Ok je vous explique le contexte.
    J'ai une appli J2EE client serveur. Client SWING téléchargeable en Java Web Start par les users. Serveur distant tournant sous JBoss 4.0.5.
    Aujourd'hui j'ai passé mon application en version 4.0.12 (auparavant 4.0.11). La différence entre les deux versions est a priori minime.
    J'ai tout redéployé en suivant le cheminemnt que je suis d'habitude: mise à jour du JNLP sur le serveur, mise à jour de l'ear dans JBoss, arrêt et redémarrage de JBoss....

    Ouii mais voilà. Il se passe qqch qui ne m'est jamais arrivé avant. L'application client se lance sur ma machine, mais pas sur les autres. Sur les autres machines, je ne peux pas me logger. L'écran de log apparait, mais peu importe la combinaison, impossible de se logger.

    J'ai vérifié les versions des JNLP, ce sont les mêmes quelques soient la machine. Les logins sont les mêmes (puisqu'ils sont côté serveur... et que j'ai essayé toujours avec le même).
    J'ai vérifié d'ailleurs les logs côté Serveur: il n'y a rien de particulier. D'habitude, quand qqn se loggait avec des infos erronnées, çà me faisait une AcegiSecurityException avec "bad credentials" en message. Mais là, rien, aucun pb côté serveur. Je soupçonne que le serveur n'est même pas atteint.

    Dans les logs côté client, il n'y a aucune erreur non plus, il y a cependant qqch qui a attiré mon oeil averti ;o)

    Voici un log sur la machine qui parvient à se logger:
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    [javawsApplicationMain] INFO com.thalys.opalys.client.OpalysClient - Starting up Opalys Client...
    [javawsApplicationMain] INFO com.thalys.opalys.client.OpalysClient - Current timezone:Europe/Brussels
    [SwingWorker-pool-17422995-thread-1] INFO org.springframework.core.CollectionFactory - JDK 1.4+ collections available
    [SwingWorker-pool-17422995-thread-1] INFO org.springframework.core.CollectionFactory - Commons Collections 3.x available
    [SwingWorker-pool-17422995-thread-1] INFO org.springframework.beans.factory.xml.XmlBeanDefinitionReader - Loading XML bean definitions from class path resource [applicationContext-import-remoteServices.xml]
    [SwingWorker-pool-17422995-thread-1] INFO org.springframework.context.support.ClassPathXmlApplicationContext - Bean factory for application context [org.springframework.context.support.ClassPathXmlApplicationContext;hashCode=25798515]: org.springframework.beans.factory.support.DefaultListableBeanFactory defining beans [propertyPlaceholderConfigurer,administrationService,dataImportService,echoService,securityService,trafficGeneratorService,schedulerService,valentysService,incidentService,breakageService,regularityService,passengerFileParsingService,scheduler,httpInvokerRequestExecutor,opalys-server-remotingRemoteAuthenticationManagerService]; root of BeanFactory hierarchy
    [SwingWorker-pool-17422995-thread-1] INFO org.springframework.context.support.ClassPathXmlApplicationContext - 15 beans defined in application context [org.springframework.context.support.ClassPathXmlApplicationContext;hashCode=25798515]
    [SwingWorker-pool-17422995-thread-1] INFO org.springframework.beans.factory.config.PropertyPlaceholderConfigurer - Loading properties file from class path resource [applicationContext-import-remoteServices.properties]
    [SwingWorker-pool-17422995-thread-1] INFO org.springframework.beans.factory.support.DefaultListableBeanFactory - Pre-instantiating singletons in factory [org.springframework.beans.factory.support.DefaultListableBeanFactory defining beans [propertyPlaceholderConfigurer,administrationService,dataImportService,echoService,securityService,trafficGeneratorService,schedulerService,valentysService,incidentService,breakageService,regularityService,passengerFileParsingService,scheduler,httpInvokerRequestExecutor,opalys-server-remotingRemoteAuthenticationManagerService]; root of BeanFactory hierarchy]
    [SwingWorker-pool-17422995-thread-1] INFO org.springframework.aop.framework.DefaultAopProxyFactory - CGLIB2 available: proxyTargetClass feature enabled
    [AWT-EventQueue-0] INFO com.thalys.opalys.client.OpalysClient - Logged: ndaudin - Grants: ROLE_ADMIN,
    [AWT-EventQueue-0] INFO com.thalys.opalys.client.OpalysClient - [ROLE_ADMIN]
    Et sur la machine qui ne parvient pas à se logger:
    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
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    2007-12-05 17:35:17  INFO [OpalysClient] Démarrage du client Opalys...
    2007-12-05 17:35:17  INFO [OpalysClient] Current timezone:Europe/Brussels
    2007-12-05 17:35:22  INFO [CollectionFactory] JDK 1.4+ collections available
    2007-12-05 17:35:22  INFO [CollectionFactory] Commons Collections 3.x available
    2007-12-05 17:35:22 DEBUG [CollectionFactory] Creating [java.util.LinkedHashMap]
    2007-12-05 17:35:22 DEBUG [CollectionFactory] Creating [java.util.LinkedHashMap]
    2007-12-05 17:35:22  INFO [XmlBeanDefinitionReader] Loading XML bean definitions from class path resource [applicationContext-import-remoteServices.xml]
    2007-12-05 17:35:22 DEBUG [XmlBeanDefinitionReader] Using JAXP implementation [org.apache.xerces.jaxp.DocumentBuilderFactoryImpl@18600d6]
    2007-12-05 17:35:22 DEBUG [ResourceEntityResolver] Trying to resolve XML entity with public ID [-//SPRING//DTD BEAN//EN] and system ID [http://www.springframework.org/dtd/spring-beans.dtd]
    2007-12-05 17:35:22 DEBUG [ResourceEntityResolver] Trying to locate [spring-beans.dtd] in Spring jar
    2007-12-05 17:35:22 DEBUG [ResourceEntityResolver] Found beans DTD [http://www.springframework.org/dtd/spring-beans.dtd] in classpath
    2007-12-05 17:35:22 DEBUG [DefaultXmlBeanDefinitionParser] Loading bean definitions
    2007-12-05 17:35:22 DEBUG [DefaultXmlBeanDefinitionParser] Default lazy init 'false'
    2007-12-05 17:35:22 DEBUG [DefaultXmlBeanDefinitionParser] Default autowire 'no'
    2007-12-05 17:35:22 DEBUG [DefaultXmlBeanDefinitionParser] Default dependency check 'none'
    2007-12-05 17:35:22 DEBUG [DefaultXmlBeanDefinitionParser] Neither XML 'id' nor 'name' specified - using generated bean name [org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean#c713d2]
    2007-12-05 17:35:22 DEBUG [DefaultXmlBeanDefinitionParser] Neither XML 'id' nor 'name' specified - using generated bean name [org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean#14c4d61]
    2007-12-05 17:35:22 DEBUG [DefaultXmlBeanDefinitionParser] Neither XML 'id' nor 'name' specified - using generated bean name [org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean#6c5356]
    2007-12-05 17:35:22 DEBUG [DefaultXmlBeanDefinitionParser] Neither XML 'id' nor 'name' specified - using generated bean name [org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean#1d349e2]
    2007-12-05 17:35:22 DEBUG [DefaultXmlBeanDefinitionParser] Neither XML 'id' nor 'name' specified - using generated bean name [org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean#97d3f0]
    2007-12-05 17:35:22 DEBUG [DefaultXmlBeanDefinitionParser] Neither XML 'id' nor 'name' specified - using generated bean name [org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean#1db6942]
    2007-12-05 17:35:22 DEBUG [DefaultXmlBeanDefinitionParser] Neither XML 'id' nor 'name' specified - using generated bean name [org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean#1db9f45]
    2007-12-05 17:35:22 DEBUG [DefaultXmlBeanDefinitionParser] Neither XML 'id' nor 'name' specified - using generated bean name [org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean#1b59919]
    2007-12-05 17:35:22 DEBUG [DefaultXmlBeanDefinitionParser] Neither XML 'id' nor 'name' specified - using generated bean name [org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean#1566a6c]
    2007-12-05 17:35:22 DEBUG [DefaultXmlBeanDefinitionParser] Neither XML 'id' nor 'name' specified - using generated bean name [org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean#650646]
    2007-12-05 17:35:22 DEBUG [DefaultXmlBeanDefinitionParser] Neither XML 'id' nor 'name' specified - using generated bean name [org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean#39da8a]
    2007-12-05 17:35:22 DEBUG [DefaultXmlBeanDefinitionParser] Neither XML 'id' nor 'name' specified - using generated bean name [org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean#3acc67]
    2007-12-05 17:35:22 DEBUG [DefaultXmlBeanDefinitionParser] Neither XML 'id' nor 'name' specified - using generated bean name [org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean#41a12f]
    2007-12-05 17:35:22 DEBUG [DefaultXmlBeanDefinitionParser] Found 16 <bean> elements in class path resource [applicationContext-import-remoteServices.xml]
    2007-12-05 17:35:22 DEBUG [XmlBeanDefinitionReader] Loaded 16 bean definitions from location pattern [applicationContext-import-remoteServices.xml]
    2007-12-05 17:35:22  INFO [ClassPathXmlApplicationContext] Bean factory for application context [org.springframework.context.support.ClassPathXmlApplicationContext;hashCode=27341624]: org.springframework.beans.factory.support.DefaultListableBeanFactory defining beans [propertyPlaceholderConfigurer,administrationService,dataImportService,echoService,securityService,trafficGeneratorService,schedulerService,valentysService,incidentService,breakageService,regularityService,passengerFileParsingService,scheduler,javaMailSender,httpInvokerRequestExecutor,opalys-server-remotingRemoteAuthenticationManagerService]; root of BeanFactory hierarchy
    2007-12-05 17:35:22  INFO [ClassPathXmlApplicationContext] 16 beans defined in application context [org.springframework.context.support.ClassPathXmlApplicationContext;hashCode=27341624]
    2007-12-05 17:35:22 DEBUG [DefaultListableBeanFactory] Creating shared instance of singleton bean 'propertyPlaceholderConfigurer'
    2007-12-05 17:35:22 DEBUG [DefaultListableBeanFactory] Creating instance of bean 'propertyPlaceholderConfigurer' with merged definition [Root bean: class [org.springframework.beans.factory.config.PropertyPlaceholderConfigurer]; abstract=false; singleton=true; lazyInit=false; autowire=0; dependencyCheck=0; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in class path resource [applicationContext-import-remoteServices.xml]]
    2007-12-05 17:35:22 DEBUG [DefaultListableBeanFactory] Invoking BeanPostProcessors before instantiation of bean 'propertyPlaceholderConfigurer'
    2007-12-05 17:35:22 DEBUG [CachedIntrospectionResults] Getting BeanInfo for class [org.springframework.beans.factory.config.PropertyPlaceholderConfigurer]
    2007-12-05 17:35:22 DEBUG [CachedIntrospectionResults] Caching PropertyDescriptors for class [org.springframework.beans.factory.config.PropertyPlaceholderConfigurer]
    2007-12-05 17:35:22 DEBUG [CachedIntrospectionResults] Found bean property 'beanFactory' of type [org.springframework.beans.factory.BeanFactory]
    2007-12-05 17:35:22 DEBUG [CachedIntrospectionResults] Found bean property 'beanName' of type [java.lang.String]
    2007-12-05 17:35:22 DEBUG [CachedIntrospectionResults] Found bean property 'class' of type [java.lang.Class]
    2007-12-05 17:35:22 DEBUG [CachedIntrospectionResults] Found bean property 'fileEncoding' of type [java.lang.String]
    2007-12-05 17:35:22 DEBUG [CachedIntrospectionResults] Found bean property 'ignoreResourceNotFound' of type [boolean]
    2007-12-05 17:35:22 DEBUG [CachedIntrospectionResults] Found bean property 'ignoreUnresolvablePlaceholders' of type [boolean]
    2007-12-05 17:35:22 DEBUG [CachedIntrospectionResults] Found bean property 'localOverride' of type [boolean]
    2007-12-05 17:35:22 DEBUG [CachedIntrospectionResults] Found bean property 'location' of type [org.springframework.core.io.Resource]
    2007-12-05 17:35:22 DEBUG [CachedIntrospectionResults] Found bean property 'locations' of type [[Lorg.springframework.core.io.Resource;]
    2007-12-05 17:35:22 DEBUG [CachedIntrospectionResults] Found bean property 'order' of type [int]
    2007-12-05 17:35:22 DEBUG [CachedIntrospectionResults] Found bean property 'placeholderPrefix' of type [java.lang.String]
    2007-12-05 17:35:22 DEBUG [CachedIntrospectionResults] Found bean property 'placeholderSuffix' of type [java.lang.String]
    2007-12-05 17:35:22 DEBUG [CachedIntrospectionResults] Found bean property 'properties' of type [java.util.Properties]
    2007-12-05 17:35:22 DEBUG [CachedIntrospectionResults] Found bean property 'propertiesArray' of type [[Ljava.util.Properties;]
    2007-12-05 17:35:22 DEBUG [CachedIntrospectionResults] Found bean property 'propertiesPersister' of type [org.springframework.util.PropertiesPersister]
    2007-12-05 17:35:22 DEBUG [CachedIntrospectionResults] Found bean property 'searchSystemEnvironment' of type [boolean]
    2007-12-05 17:35:22 DEBUG [CachedIntrospectionResults] Found bean property 'systemPropertiesMode' of type [int]
    2007-12-05 17:35:22 DEBUG [CachedIntrospectionResults] Found bean property 'systemPropertiesModeName' of type [java.lang.String]
    2007-12-05 17:35:22 DEBUG [CachedIntrospectionResults] Class [org.springframework.beans.factory.config.PropertyPlaceholderConfigurer] is cache-safe
    2007-12-05 17:35:22 DEBUG [CollectionFactory] Creating [java.util.LinkedHashMap]
    2007-12-05 17:35:22 DEBUG [DefaultListableBeanFactory] Eagerly caching bean of type [org.springframework.beans.factory.config.PropertyPlaceholderConfigurer] with name 'propertyPlaceholderConfigurer' to allow for resolving potential circular references
    2007-12-05 17:35:22 DEBUG [BeanWrapperImpl] Converting String to [interface org.springframework.core.io.Resource] using property editor [org.springframework.core.io.ResourceEditor@d2d58b]
    2007-12-05 17:35:22 DEBUG [BeanWrapperImpl] About to invoke write method [public void org.springframework.core.io.support.PropertiesLoaderSupport.setLocation(org.springframework.core.io.Resource)] on object of class [org.springframework.beans.factory.config.PropertyPlaceholderConfigurer]
    2007-12-05 17:35:22 DEBUG [BeanWrapperImpl] Invoked write method [public void org.springframework.core.io.support.PropertiesLoaderSupport.setLocation(org.springframework.core.io.Resource)] with value of type [org.springframework.core.io.Resource]
    2007-12-05 17:35:22 DEBUG [BeanWrapperImpl] About to invoke write method [public void org.springframework.beans.factory.config.PropertyPlaceholderConfigurer.setSystemPropertiesModeName(java.lang.String) throws java.lang.IllegalArgumentException] on object of class [org.springframework.beans.factory.config.PropertyPlaceholderConfigurer]
    2007-12-05 17:35:22 DEBUG [BeanWrapperImpl] Invoked write method [public void org.springframework.beans.factory.config.PropertyPlaceholderConfigurer.setSystemPropertiesModeName(java.lang.String) throws java.lang.IllegalArgumentException] with value of type [java.lang.String]
    2007-12-05 17:35:22 DEBUG [DefaultListableBeanFactory] Invoking setBeanName on BeanNameAware bean 'propertyPlaceholderConfigurer'
    2007-12-05 17:35:22 DEBUG [DefaultListableBeanFactory] Invoking setBeanFactory on BeanFactoryAware bean 'propertyPlaceholderConfigurer'
    2007-12-05 17:35:22 DEBUG [DefaultListableBeanFactory] Invoking BeanPostProcessors before initialization of bean 'propertyPlaceholderConfigurer'
    2007-12-05 17:35:22 DEBUG [DefaultListableBeanFactory] Invoking BeanPostProcessors after initialization of bean 'propertyPlaceholderConfigurer'
    2007-12-05 17:35:22  INFO [PropertyPlaceholderConfigurer] Loading properties file from class path resource [applicationContext-import-remoteServices.properties]
    2007-12-05 17:35:22 DEBUG [PropertyPlaceholderConfigurer] Resolved placeholder 'remoteServer' to value [operations.thalys.com]
    2007-12-05 17:35:22 DEBUG [PropertyPlaceholderConfigurer] Resolved placeholder 'remotePort' to value [8080]
    2007-12-05 17:35:22 DEBUG [PropertyPlaceholderConfigurer] Resolved placeholder 'remoteContext' to value [opalys-server-remoting]
    2007-12-05 17:35:22 DEBUG [PropertyPlaceholderConfigurer] Resolved placeholder 'remoteServer' to value [operations.thalys.com]
    2007-12-05 17:35:22 DEBUG [PropertyPlaceholderConfigurer] Resolved placeholder 'remotePort' to value [8080]
    ...
    2007-12-05 17:35:22 DEBUG [PropertyPlaceholderConfigurer] Resolved placeholder 'remoteContext' to value [opalys-server-remoting]
    2007-12-05 17:35:22 DEBUG [CollectionFactory] Creating [java.util.LinkedHashMap]
    2007-12-05 17:35:22 DEBUG [ClassPathXmlApplicationContext] Unable to locate MessageSource with name 'messageSource': using default [org.springframework.context.support.DelegatingMessageSource@1e2a069]
    2007-12-05 17:35:22 DEBUG [CollectionFactory] Creating [java.util.LinkedHashSet]
    2007-12-05 17:35:22 DEBUG [ClassPathXmlApplicationContext] Unable to locate ApplicationEventMulticaster with name 'applicationEventMulticaster': using default [org.springframework.context.event.SimpleApplicationEventMulticaster@1cefde4]
    2007-12-05 17:35:22 DEBUG [CollectionFactory] Creating [java.util.LinkedHashMap]
    2007-12-05 17:35:22  INFO [DefaultListableBeanFactory] Pre-instantiating singletons in factory [org.springframework.beans.factory.support.DefaultListableBeanFactory defining beans [propertyPlaceholderConfigurer,administrationService,dataImportService,echoService,securityService,trafficGeneratorService,schedulerService,valentysService,incidentService,breakageService,regularityService,passengerFileParsingService,scheduler,javaMailSender,httpInvokerRequestExecutor,opalys-server-remotingRemoteAuthenticationManagerService]; root of BeanFactory hierarchy]
    2007-12-05 17:35:22 DEBUG [DefaultListableBeanFactory] Creating shared instance of singleton bean 'administrationService'
    2007-12-05 17:35:22 DEBUG [DefaultListableBeanFactory] Creating instance of bean 'administrationService' with merged definition [Root bean: class [org.springframework.aop.framework.ProxyFactoryBean]; abstract=false; singleton=true; lazyInit=false; autowire=0; dependencyCheck=0; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in class path resource [applicationContext-import-remoteServices.xml]]
    2007-12-05 17:35:22 DEBUG [DefaultListableBeanFactory] Invoking BeanPostProcessors before instantiation of bean 'administrationService'
    2007-12-05 17:35:22  INFO [DefaultAopProxyFactory] CGLIB2 not available: proxyTargetClass feature disabled
    2007-12-05 17:35:22 DEBUG [CollectionFactory] Creating [java.util.IdentityHashMap]
    2007-12-05 17:35:22 DEBUG [CachedIntrospectionResults] Getting BeanInfo for class [org.springframework.aop.framework.ProxyFactoryBean]
    2007-12-05 17:35:22 DEBUG [CachedIntrospectionResults] Caching PropertyDescriptors for class [org.springframework.aop.framework.ProxyFactoryBean]
    ... 
    2007-12-05 17:35:22 DEBUG [CollectionFactory] Creating [java.util.IdentityHashMap]
    2007-12-05 17:35:22 DEBUG [ProxyFactory] Added new aspect interface: org.springframework.mail.javamail.JavaMailSender
    2007-12-05 17:35:22 DEBUG [JdkDynamicAopProxy] Creating JDK dynamic proxy: target source is EmptyTargetSource: no target
    2007-12-05 17:35:22  INFO [DefaultListableBeanFactory] Destroying singletons in factory {org.springframework.beans.factory.support.DefaultListableBeanFactory defining beans [propertyPlaceholderConfigurer,administrationService,dataImportService,echoService,securityService,trafficGeneratorService,schedulerService,valentysService,incidentService,breakageService,regularityService,passengerFileParsingService,scheduler,javaMailSender,httpInvokerRequestExecutor,opalys-server-remotingRemoteAuthenticationManagerService]; root of BeanFactory hierarchy}
    Comme vous pouvez le constater il y a une différence concernant CGLIB2. Mais aucune idée de où çà puisse bien venir. Pour les logs de la seconde machine, j'ai viré qq logs (sinon çà rentre pas dans le message) mais c'était les moins importants. Je n'ai viré que des DEBUG, y avait aucun ERROR.

    Voilà...
    Hésitez pas à me poser des questions, je répondrais rapidement vu que j'étais censé mettre en prod ce soir.. et que je suis repassé à la version antérieure à cause de ce problème...

    Pour info, la machine où çà marche était un PC (et l'appli fonctionnait avant). Les machines où çà ne marchent pas sont des MAC et PC (l'applui fonctionnait avant également).
    Nicolas
    Blogueur @ www.ABCArgent.com

  2. #2
    Membre expérimenté
    Avatar de Patriarch24
    Homme Profil pro
    Ingénieur développement logiciels
    Inscrit en
    Septembre 2003
    Messages
    1 047
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 40
    Localisation : France

    Informations professionnelles :
    Activité : Ingénieur développement logiciels
    Secteur : Industrie

    Informations forums :
    Inscription : Septembre 2003
    Messages : 1 047
    Points : 1 640
    Points
    1 640
    Par défaut
    Question : il ne manquerait pas un jar (celui de cglib par exemple ?) dans le classpath ?
    En premier lieu, utilisez un moteur de recherche.
    En second lieu, postez sur le forum adéquat !

  3. #3
    Membre régulier
    Inscrit en
    Mars 2007
    Messages
    179
    Détails du profil
    Informations forums :
    Inscription : Mars 2007
    Messages : 179
    Points : 97
    Points
    97
    Par défaut
    Déjà, merci pour vous intéresser à mon sujet :o)
    Ben en fait, côté serveur le jar de cglib y est.
    Côté client... ben dans mon esprit, c'est packagé dans le .jar que je télécharge via Java Web Start... non? c'est pas là tout l'intérêt de Java Web Start?
    Donc pour moi il n'y a pas vraiment de CLASSPATH à proprement parler puisque l'execution doit pouvoir se faire depuis n'importe quelle machine... chaque machine téléchargeant le .jar.

    J'ai vérifié le contenu du .jar, il n'y a que des .class dont j'ai besoin (SWING, mes libs à moi....) plus les ressources dont j'ai besoin. Il y a bien le package org.springframework.aop.framework dans lequel je peux trouver Cglib2AopProxy.class, DefaultAopProxyFactory.class, Cglib2AopProxy$1.class, Cglib2AopProxy$AdvisedDispatcher.class....

    Et ce .jar est le même, téléchargé par toutes les machines....

    D'où mes questions
    Nicolas
    Blogueur @ www.ABCArgent.com

  4. #4
    Expert éminent
    Avatar de djo.mos
    Profil pro
    Inscrit en
    Octobre 2004
    Messages
    4 666
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Octobre 2004
    Messages : 4 666
    Points : 7 679
    Points
    7 679
    Par défaut
    Bonjour.
    Ce n'est pas une solution directe à ton problème, mais tu n'as pas pensé à passer par des interfaces pour pouvoir utiliser le proxying standard de Java au lieu du proxying sur classe de CgLib ?

  5. #5
    Membre régulier
    Inscrit en
    Mars 2007
    Messages
    179
    Détails du profil
    Informations forums :
    Inscription : Mars 2007
    Messages : 179
    Points : 97
    Points
    97
    Par défaut
    Bon en fait je vais faire une réponse détournée (et je m'en excuse).
    Mais j'utilise du code généré par AndroMDA (qui est très fiable, là n'est pas le problème). Sauf que étant débutant en Java (1 an d'expérience) et utilisant AndroMDA qui rajoute pas mal d'abstraction, je ne comprends pas forcément ces problématiques...

    Et pour le coup je coris bien que mon proxying même si il passe par Cglib, se fait sur des interface.

    Un extrait de mon applicationContext.xml côté serveur donc:
    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
     
        <!-- The Hibernate interceptor -->
        <bean id="hibernateInterceptor" class="org.springframework.orm.hibernate3.HibernateInterceptor ">
            <property name="sessionFactory"><ref bean="sessionFactory"/></property>
        </bean>
     
        <bean id="pointDao" class="org.springframework.aop.framework.ProxyFactoryBean">
            <property name="target">
                <bean class="com.thalys.opalys.domain.PointDaoImpl ">
                    <property name="sessionFactory"><ref local="sessionFactory"/></property>
                </bean>
            </property>
            <property name="proxyInterfaces">
                <value>com.thalys.opalys.domain.PointDao</value>
            </property>
            <property name="interceptorNames">
                <list>
                    <value>hibernateInterceptor</value>
                </list>
            </property>
        </bean>
    J'ai également un applicationContext-import-remoteServices.xml, généré à partir d'AndroMDA, et dans le .jar client (donc celui téléchargé à chaque mise à jour et utilisé par les postes clients)
    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
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
    131
    132
    133
    134
    135
    136
    137
    138
    139
    140
    141
    142
    143
    144
    145
    146
    147
    148
    149
    150
    151
    152
    153
    154
    155
    156
    157
    158
    159
    160
    161
    162
    163
    164
    165
    166
    167
    168
    169
    170
    171
    172
    173
    174
    175
    176
    177
    178
    179
    180
    181
    182
    183
    184
    185
    186
    187
    188
    189
    190
    191
    192
    193
    194
    195
    196
    197
    198
    199
    200
    201
    202
    203
    204
    205
    206
     
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">
     
    <beans>
     
        <!-- ========================= Start of BEAN POSTPROCESSORS ======================== -->
     
        <bean id="propertyPlaceholderConfigurer"
            class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
            <property name="location">
                <value>classpath:applicationContext-import-remoteServices.properties</value>
            </property>
            <property name="systemPropertiesModeName">
                <value>SYSTEM_PROPERTIES_MODE_OVERRIDE</value>
            </property>
        </bean>
     
        <!-- ========================= End of BEAN POSTPROCESSORS ========================== -->
     
     
        <!-- ========================= Start of SERVICE DEFINITIONS ========================= -->
     
        <!-- AdministrationService Remote Service Local Proxy with inner AdministrationService Remote Service invoker -->
        <bean id="administrationService" class="org.springframework.aop.framework.ProxyFactoryBean">
            <property name="target">
                <bean class="org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean">
                    <property name="serviceUrl"><value>http://${remoteServer}:${remotePort}/${remoteContext}/AdministrationService</value></property>
                    <property name="serviceInterface"><value>com.thalys.opalys.business.AdministrationService</value></property>
                    <property name="httpInvokerRequestExecutor">
                        <ref local="httpInvokerRequestExecutor"/>
                    </property>
                </bean>
            </property>
            <property name="proxyInterfaces"><value>com.thalys.opalys.business.AdministrationService</value></property>
        </bean>
     
        <!-- DataImportService Remote Service Local Proxy with inner DataImportService Remote Service invoker -->
        <bean id="dataImportService" class="org.springframework.aop.framework.ProxyFactoryBean">
            <property name="target">
                <bean class="org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean">
                    <property name="serviceUrl"><value>http://${remoteServer}:${remotePort}/${remoteContext}/DataImportService</value></property>
                    <property name="serviceInterface"><value>com.thalys.opalys.business.DataImportService</value></property>
                    <property name="httpInvokerRequestExecutor">
                        <ref local="httpInvokerRequestExecutor"/>
                    </property>
                </bean>
            </property>
            <property name="proxyInterfaces"><value>com.thalys.opalys.business.DataImportService</value></property>
        </bean>
     
        <!-- EchoService Remote Service Local Proxy with inner EchoService Remote Service invoker -->
        <bean id="echoService" class="org.springframework.aop.framework.ProxyFactoryBean">
            <property name="target">
                <bean class="org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean">
                    <property name="serviceUrl"><value>http://${remoteServer}:${remotePort}/${remoteContext}/EchoService</value></property>
                    <property name="serviceInterface"><value>com.thalys.opalys.business.EchoService</value></property>
                    <property name="httpInvokerRequestExecutor">
                        <ref local="httpInvokerRequestExecutor"/>
                    </property>
                </bean>
            </property>
            <property name="proxyInterfaces"><value>com.thalys.opalys.business.EchoService</value></property>
        </bean>
     
        <!-- SecurityService Remote Service Local Proxy with inner SecurityService Remote Service invoker -->
        <bean id="securityService" class="org.springframework.aop.framework.ProxyFactoryBean">
            <property name="target">
                <bean class="org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean">
                    <property name="serviceUrl"><value>http://${remoteServer}:${remotePort}/${remoteContext}/SecurityService</value></property>
                    <property name="serviceInterface"><value>com.thalys.opalys.business.SecurityService</value></property>
                    <property name="httpInvokerRequestExecutor">
                        <ref local="httpInvokerRequestExecutor"/>
                    </property>
                </bean>
            </property>
            <property name="proxyInterfaces"><value>com.thalys.opalys.business.SecurityService</value></property>
        </bean>
     
        <!-- TrafficGeneratorService Remote Service Local Proxy with inner TrafficGeneratorService Remote Service invoker -->
        <bean id="trafficGeneratorService" class="org.springframework.aop.framework.ProxyFactoryBean">
            <property name="target">
                <bean class="org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean">
                    <property name="serviceUrl"><value>http://${remoteServer}:${remotePort}/${remoteContext}/TrafficGeneratorService</value></property>
                    <property name="serviceInterface"><value>com.thalys.opalys.business.TrafficGeneratorService</value></property>
                    <property name="httpInvokerRequestExecutor">
                        <ref local="httpInvokerRequestExecutor"/>
                    </property>
                </bean>
            </property>
            <property name="proxyInterfaces"><value>com.thalys.opalys.business.TrafficGeneratorService</value></property>
        </bean>
     
        <!-- SchedulerService Remote Service Local Proxy with inner SchedulerService Remote Service invoker -->
        <bean id="schedulerService" class="org.springframework.aop.framework.ProxyFactoryBean">
            <property name="target">
                <bean class="org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean">
                    <property name="serviceUrl"><value>http://${remoteServer}:${remotePort}/${remoteContext}/SchedulerService</value></property>
                    <property name="serviceInterface"><value>com.thalys.opalys.business.SchedulerService</value></property>
                    <property name="httpInvokerRequestExecutor">
                        <ref local="httpInvokerRequestExecutor"/>
                    </property>
                </bean>
            </property>
            <property name="proxyInterfaces"><value>com.thalys.opalys.business.SchedulerService</value></property>
        </bean>
     
        <!-- ValentysService Remote Service Local Proxy with inner ValentysService Remote Service invoker -->
        <bean id="valentysService" class="org.springframework.aop.framework.ProxyFactoryBean">
            <property name="target">
                <bean class="org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean">
                    <property name="serviceUrl"><value>http://${remoteServer}:${remotePort}/${remoteContext}/ValentysService</value></property>
                    <property name="serviceInterface"><value>com.thalys.opalys.business.valentys.ValentysService</value></property>
                    <property name="httpInvokerRequestExecutor">
                        <ref local="httpInvokerRequestExecutor"/>
                    </property>
                </bean>
            </property>
            <property name="proxyInterfaces"><value>com.thalys.opalys.business.valentys.ValentysService</value></property>
        </bean>
     
        <!-- IncidentService Remote Service Local Proxy with inner IncidentService Remote Service invoker -->
        <bean id="incidentService" class="org.springframework.aop.framework.ProxyFactoryBean">
            <property name="target">
                <bean class="org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean">
                    <property name="serviceUrl"><value>http://${remoteServer}:${remotePort}/${remoteContext}/IncidentService</value></property>
                    <property name="serviceInterface"><value>com.thalys.opalys.business.IncidentService</value></property>
                    <property name="httpInvokerRequestExecutor">
                        <ref local="httpInvokerRequestExecutor"/>
                    </property>
                </bean>
            </property>
            <property name="proxyInterfaces"><value>com.thalys.opalys.business.IncidentService</value></property>
        </bean>
     
        <!-- BreakageService Remote Service Local Proxy with inner BreakageService Remote Service invoker -->
        <bean id="breakageService" class="org.springframework.aop.framework.ProxyFactoryBean">
            <property name="target">
                <bean class="org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean">
                    <property name="serviceUrl"><value>http://${remoteServer}:${remotePort}/${remoteContext}/BreakageService</value></property>
                    <property name="serviceInterface"><value>com.thalys.opalys.business.BreakageService</value></property>
                    <property name="httpInvokerRequestExecutor">
                        <ref local="httpInvokerRequestExecutor"/>
                    </property>
                </bean>
            </property>
            <property name="proxyInterfaces"><value>com.thalys.opalys.business.BreakageService</value></property>
        </bean>
     
        <!-- RegularityService Remote Service Local Proxy with inner RegularityService Remote Service invoker -->
        <bean id="regularityService" class="org.springframework.aop.framework.ProxyFactoryBean">
            <property name="target">
                <bean class="org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean">
                    <property name="serviceUrl"><value>http://${remoteServer}:${remotePort}/${remoteContext}/RegularityService</value></property>
                    <property name="serviceInterface"><value>com.thalys.opalys.business.RegularityService</value></property>
                    <property name="httpInvokerRequestExecutor">
                        <ref local="httpInvokerRequestExecutor"/>
                    </property>
                </bean>
            </property>
            <property name="proxyInterfaces"><value>com.thalys.opalys.business.RegularityService</value></property>
        </bean>
     
        <!-- PassengerFileParsingService Remote Service Local Proxy with inner PassengerFileParsingService Remote Service invoker -->
        <bean id="passengerFileParsingService" class="org.springframework.aop.framework.ProxyFactoryBean">
            <property name="target">
                <bean class="org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean">
                    <property name="serviceUrl"><value>http://${remoteServer}:${remotePort}/${remoteContext}/PassengerFileParsingService</value></property>
                    <property name="serviceInterface"><value>com.thalys.opalys.business.PassengerFileParsingService</value></property>
                    <property name="httpInvokerRequestExecutor">
                        <ref local="httpInvokerRequestExecutor"/>
                    </property>
                </bean>
            </property>
            <property name="proxyInterfaces"><value>com.thalys.opalys.business.PassengerFileParsingService</value></property>
        </bean>
     
        <!-- Scheduler Remote Service Local Proxy with inner Scheduler Remote Service invoker -->
        <bean id="scheduler" class="org.springframework.aop.framework.ProxyFactoryBean">
            <property name="target">
                <bean class="org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean">
                    <property name="serviceUrl"><value>http://${remoteServer}:${remotePort}/${remoteContext}/Scheduler</value></property>
                    <property name="serviceInterface"><value>org.quartz.Scheduler</value></property>
                    <property name="httpInvokerRequestExecutor">
                        <ref local="httpInvokerRequestExecutor"/>
                    </property>
                </bean>
            </property>
            <property name="proxyInterfaces"><value>org.quartz.Scheduler</value></property>
        </bean>
     
        <bean id="httpInvokerRequestExecutor" class="org.acegisecurity.context.httpinvoker.AuthenticationSimpleHttpInvokerRequestExecutor"/>
     
        <bean id="opalys-server-remotingRemoteAuthenticationManagerService"
            class="org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean">
            <property name="serviceUrl">
                <value>http://${remoteServer}:${remotePort}/${remoteContext}/RemoteAuthenticationManagerService</value>
            </property>
            <property name="serviceInterface">
                <value>org.acegisecurity.providers.rcp.RemoteAuthenticationManager</value>
            </property>
        </bean>
     
        <!-- ========================= End of SERVICE DEFINITIONS ========================= -->
     
    </beans>
    Il me semble bien voir des interfaces...
    Nicolas
    Blogueur @ www.ABCArgent.com

  6. #6
    Expert éminent
    Avatar de djo.mos
    Profil pro
    Inscrit en
    Octobre 2004
    Messages
    4 666
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Octobre 2004
    Messages : 4 666
    Points : 7 679
    Points
    7 679
    Par défaut
    Euh ... Montres plutôt les déclarations des champs où seront injectés les beans definis dans spring: ce sont eux qui doivent être des interfaces pour que le proxying standard (sans cglib) puisse marcher.

    Mais de toute façon c'est AndroMDA qui génère le code, donc t'as pas vraiment de contrôle la dessus.

  7. #7
    Membre régulier
    Inscrit en
    Mars 2007
    Messages
    179
    Détails du profil
    Informations forums :
    Inscription : Mars 2007
    Messages : 179
    Points : 97
    Points
    97
    Par défaut
    Bon, même si a priori çà sert pas, je mets le détail (en espérant que çà n'induira pas les gens en erreur):

    Par exemple pour mon entité ParticularPoint, j'ai un ParticularPointDao défini tel quel:
    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
     
        <!-- ParticularPoint Entity Proxy with inner ParticularPoint Entity implementation -->
        <bean id="particularPointDao" class="org.springframework.aop.framework.ProxyFactoryBean">
            <property name="target">
                <bean class="com.thalys.opalys.domain.ParticularPointDaoImpl">
                    <property name="sessionFactory"><ref local="sessionFactory"/></property>
                    <property name="pointDao"><ref bean="pointDao"/></property>
                </bean>
            </property>
            <property name="proxyInterfaces">
                <value>com.thalys.opalys.domain.ParticularPointDao</value>
            </property>
            <property name="interceptorNames">
                <list>
                    <value>hibernateInterceptor</value>
                </list>
            </property>
        </bean>
    PPDao utilise donc PointDao dont voici la déclaration dans le xml
    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
     
        <!-- Point Entity Proxy with inner Point Entity implementation -->
        <bean id="pointDao" class="org.springframework.aop.framework.ProxyFactoryBean">
            <property name="target">
                <bean class="com.thalys.opalys.domain.PointDaoImpl">
                    <property name="sessionFactory"><ref local="sessionFactory"/></property>
                </bean>
            </property>
            <property name="proxyInterfaces">
                <value>com.thalys.opalys.domain.PointDao</value>
            </property>
            <property name="interceptorNames">
                <list>
                    <value>hibernateInterceptor</value>
                </list>
            </property>
        </bean>
    avec SessionFactory et hibernateInterceptor tels quels
    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
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
     
    <!-- applicationContext merge-point -->
        <!-- Hibernate SessionFactory -->
        <bean id="sessionFactory" class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">
            <property name="dataSource"><ref bean="dataSource"/></property>
            <property name="mappingResources">
                <list>
                    <value>com/thalys/opalys/domain/Point.hbm.xml</value>
                    <value>com/thalys/opalys/domain/ParticularPoint.hbm.xml</value>
                    <value>com/thalys/opalys/domain/Axis.hbm.xml</value>
                    <value>com/thalys/opalys/domain/Reference.hbm.xml</value>
                    <value>com/thalys/opalys/domain/PassagePoint.hbm.xml</value>
                    <value>com/thalys/opalys/domain/Variante.hbm.xml</value>
                    <value>com/thalys/opalys/domain/User.hbm.xml</value>
                    <value>com/thalys/opalys/domain/Role.hbm.xml</value>
                    <value>com/thalys/opalys/domain/RegularityForm.hbm.xml</value>
                    <value>com/thalys/opalys/domain/EndOfMissionMessage.hbm.xml</value>
                    <value>com/thalys/opalys/domain/EffectiveTranche.hbm.xml</value>
                    <value>com/thalys/opalys/domain/TrainSet.hbm.xml</value>
                    <value>com/thalys/opalys/domain/EffectivePassage.hbm.xml</value>
                    <value>com/thalys/opalys/domain/IncidentForm.hbm.xml</value>
                    <value>com/thalys/opalys/domain/MailingList.hbm.xml</value>
                    <value>com/thalys/opalys/domain/BreakageForm.hbm.xml</value>
                    <value>com/thalys/opalys/domain/Incident.hbm.xml</value>
                    <value>com/thalys/opalys/domain/IncidentType.hbm.xml</value>
                    <value>com/thalys/opalys/domain/Effect.hbm.xml</value>
                    <value>com/thalys/opalys/domain/EffectivePassageIssue.hbm.xml</value>
                    <value>com/thalys/opalys/domain/VarianteSpecialCase.hbm.xml</value>
                    <value>com/thalys/opalys/domain/Tranche.hbm.xml</value>
                    <value>com/thalys/opalys/domain/Breakage.hbm.xml</value>
                    <value>com/thalys/opalys/domain/IncidentLocation.hbm.xml</value>
                    <value>com/thalys/opalys/domain/IncidentFormNoticeSender.hbm.xml</value>
                    <value>com/thalys/opalys/domain/Mail.hbm.xml</value>
                </list>
            </property>
            <property name="hibernateProperties">
                <props>
                    <prop key="hibernate.show_sql">false</prop>
                    <prop key="hibernate.dialect">org.hibernate.dialect.MySQLInnoDBDialect</prop>
                    <prop key="hibernate.cache.use_query_cache">false</prop>
                    <prop key="hibernate.cache.provider_class">org.hibernate.cache.EhCacheProvider</prop>
                    <prop key="hibernate.cache.query_cache_factory">org.hibernate.cache.StandardQueryCacheFactory</prop>
                    <!-- applicationContext hibernateProperties merge-point -->
                </props>
            </property>
        </bean>
     
        <!-- The Hibernate interceptor -->
        <bean id="hibernateInterceptor" class="org.springframework.orm.hibernate3.HibernateInterceptor">
            <property name="sessionFactory"><ref bean="sessionFactory"/></property>
        </bean>
    Et enfin dans le code de PPDaoBase (qui hérite d'une interface PPDao), j'ai:
    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
     
    public abstract class ParticularPointDaoBase
        extends org.springframework.orm.hibernate3.support.HibernateDaoSupport
        implements com.thalys.opalys.domain.ParticularPointDao
    {
     
        private com.thalys.opalys.domain.PointDao pointDao;
     
        /**
         * Sets the reference to <code>pointDao</code>.
         */
        public void setPointDao(com.thalys.opalys.domain.PointDao pointDao)
        {
            this.pointDao = pointDao;
        }
     
        /**
         * Gets the reference to <code>pointDao</code>.
         */
        protected com.thalys.opalys.domain.PointDao getPointDao()
        {
            return this.pointDao;
        }
     
    ..
    }
    Donc oui AndroMDA de toute façon s'occupe de çà donc je n'ai aucun contrôle. Ce qui est bien d'un point de vue business, mais pour apprendre c'est déjà plus chaud...
    Nicolas
    Blogueur @ www.ABCArgent.com

  8. #8
    Membre régulier
    Inscrit en
    Mars 2007
    Messages
    179
    Détails du profil
    Informations forums :
    Inscription : Mars 2007
    Messages : 179
    Points : 97
    Points
    97
    Par défaut
    Bon je voudrais rajouter qq informations sur mon GROS problème:
    J'ai à nouveau reessayé à l'instant (avec une nouvelle version de mon appli) et j'ai le même problème: seul mon PC semble capable de se connecter, et toujours cette différence sur CGLIB.

    Je sais qu'entre la version qui fonctionne et les nouvelles versions, j'ai fait un changement majeur: côté serveur j'ai rajotué un bean JavaMailSender qui utilise org.springframework.mail.javamail.JavaMailSenderImpl initialisé ainsi:

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
     
       <bean id="javaMailSender" class="org.springframework.mail.javamail.JavaMailSenderImpl">
          <property name="host">
              <value>10.0.1.2 </value>
          </property>
     
       </bean>
    Côté client, j'ai enlevé une dépendance à javax.mail donc on a plus javax.mail dans les .class du .jar.
    Mais comme je le répète l'appli se lance sur ma machine PC (qui fut machine de dev avant... donc peut-être les bonnes libs sont présentes???)

    Une idée?
    Nicolas
    Blogueur @ www.ABCArgent.com

  9. #9
    Membre régulier
    Inscrit en
    Mars 2007
    Messages
    179
    Détails du profil
    Informations forums :
    Inscription : Mars 2007
    Messages : 179
    Points : 97
    Points
    97
    Par défaut
    Bon le pb a été résolu.
    En fait côté client, j'avais enlevé des dépendances à javax.mail et javax.activation de mon pom.xml.
    J'ai pas compris le lien (puisque les librairies sont packagées dans le .jar donc aucun rapport avec le classpath d'une machine), et j'ai pas compris non plus pourquoi çà impactait sur la connexion.
    Si je trouve l'explication je la reposterais ici, on sait jamais.
    Je marque çà en résolu, merci pour votre aide!
    Nico.
    Nicolas
    Blogueur @ www.ABCArgent.com

+ Répondre à la discussion
Cette discussion est résolue.

Discussions similaires

  1. transparence mais pas sur toutes les propriétés CSS
    Par Nixar dans le forum Mise en page CSS
    Réponses: 17
    Dernier message: 31/12/2007, 19h30
  2. Réponses: 8
    Dernier message: 01/08/2007, 15h38
  3. [JXTable] Tri mais pas sur toutes les lignes
    Par grabriel dans le forum AWT/Swing
    Réponses: 2
    Dernier message: 12/07/2007, 09h17
  4. Requete qui ne fonctionne pas sur toutes les versions de MySQL
    Par goldorax113 dans le forum Requêtes
    Réponses: 2
    Dernier message: 06/06/2006, 11h04
  5. Réponses: 9
    Dernier message: 07/05/2003, 12h57

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