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

Wildfly/JBoss Java Discussion :

Migration depuis tomcat


Sujet :

Wildfly/JBoss Java

  1. #1
    Nouveau Candidat au Club
    Profil pro
    Inscrit en
    Septembre 2010
    Messages
    2
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Septembre 2010
    Messages : 2
    Points : 1
    Points
    1
    Par défaut Migration depuis tomcat
    Bonjour à tous,

    Je viens de créer un projet JEE sous Tomcat 6.0.14 avec les framework Hiberate3.5, Spring3 et JSF2 et je voulais le tester sous Jboss 6M3, donc j’ai placé mon war dans %JBOSS_HOME%/server/default/deploy mais au démarrage du serveur j’ai eu cette erreur
    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
     
    14:23:26,273 ERROR [AbstractKernelController] Error installing to PostClassLoader: name=vfs:///E:/jboss-6.0.0.20100429-M3/server/default/deploy/test.war state=Class
    Loader mode=Manual requiredState=PostClassLoader: org.jboss.deployers.spi.DeploymentException: Error during deploy: vfs:///E:/jboss-6.0.0.20100429-M3/server/default/deploy/test.war
            at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49) [:2.2.0.Alpha4]
            at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:185) [:2.2.0.Alpha4]
            at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1857) [:2.2.0.Alpha4]
            at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1575) [:2.2.0.Alpha4]
            at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1516) [:2.2.0.Alpha4]
            at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:377) [jboss-dependency.jar:2.2.0.Alpha9]
            at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:2042) [jboss-dependency.jar:2.2.0.Alpha9]
            at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:1081) [jboss-dependency.jar:2.2.0.Alpha9]
            at org.jboss.dependency.plugins.AbstractController.executeOrIncrementStateDirectly(AbstractController.java:1320) [jboss-dependency.jar:2.2.0.Alpha9]
            at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1244) [jboss-dependency.jar:2.2.0.Alpha9]
            at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1137) [jboss-dependency.jar:2.2.0.Alpha9]
            at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:937) [jboss-dependency.jar:2.2.0.Alpha9]
            at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:652) [jboss-dependency.jar:2.2.0.Alpha9]
            at org.jboss.deployers.plugins.deployers.DeployersImpl.change(DeployersImpl.java:2008) [:2.2.0.Alpha4]
            at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:1101) [:2.2.0.Alpha4]
            at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:679) [:2.2.0.Alpha4]
            at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.process(MainDeployerAdapter.java:117) [:6.0.0.20100429-M3]
            at org.jboss.system.server.profileservice.repository.ProfileDeployAction.install(ProfileDeployAction.java:70) [:6.0.0.20100429-M3]
            at org.jboss.system.server.profileservice.repository.AbstractProfileAction.install(AbstractProfileAction.java:53) [:6.0.0.20100429-M3]
            at org.jboss.system.server.profileservice.repository.AbstractProfileService.install(AbstractProfileService.java:403) [:6.0.0.20100429-M3]
            at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:377) [jboss-dependency.jar:2.2.0.Alpha9]
            at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:2042) [jboss-dependency.jar:2.2.0.Alpha9]
            at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:1081) [jboss-dependency.jar:2.2.0.Alpha9]
            at org.jboss.dependency.plugins.AbstractController.executeOrIncrementStateDirectly(AbstractController.java:1320) [jboss-dependency.jar:2.2.0.Alpha9]
            at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1244) [jboss-dependency.jar:2.2.0.Alpha9]
            at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1137) [jboss-dependency.jar:2.2.0.Alpha9]
            at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:892) [jboss-dependency.jar:2.2.0.Alpha9]
            at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:639) [jboss-dependency.jar:2.2.0.Alpha9]
            at org.jboss.system.server.profileservice.repository.AbstractProfileService.registerProfile(AbstractProfileService.java:308) [:6.0.0.20100429-M3]
            at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:256) [:6.0.0.20100429-M3]
            at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:97) [:6.0.0.20100429-M3]
            at org.jboss.bootstrap.impl.base.server.AbstractServer.startBootstraps(AbstractServer.java:827) [jboss-bootstrap-impl-base.jar:2.1.0-alpha-5]
            at org.jboss.bootstrap.impl.base.server.AbstractServer$StartServerTask.run(AbstractServer.java:417) [jboss-bootstrap-impl-base.jar:2.1.0-alpha-5]
            at java.lang.Thread.run(Thread.java:619) [:1.6.0_20]
    Caused by: java.lang.LinkageError: loader constraint violation in interface itable initialization: when resolving method "com.mysql.jdbc.JDBC4MysqlSQLXML.getSource(Ljava/lang/Class
    ;)Ljavax/xml/transform/Source;" the class loader (instance of org/jboss/classloader/spi/base/BaseClassLoader) of the current class, com/mysql/jdbc/JDBC4MysqlSQLXML, and the class l
    oader (instance of <bootloader>) for interface java/sql/SQLXML have different Class objects for the type javax/xml/transform/Source used in the signature
            at java.lang.Class.getDeclaredMethods0(Native Method) [:1.6.0_20]
            at java.lang.Class.privateGetDeclaredMethods(Class.java:2427) [:1.6.0_20]
            at java.lang.Class.getDeclaredMethods(Class.java:1791) [:1.6.0_20]
            at org.jboss.deployment.AnnotatedClassFilter.hasAnnotations(AnnotatedClassFilter.java:186) [:6.0.0.20100429-M3]
            at org.jboss.deployment.AnnotatedClassFilter.accepts(AnnotatedClassFilter.java:114) [:6.0.0.20100429-M3]
            at org.jboss.deployment.AnnotatedClassFilter.visit(AnnotatedClassFilter.java:99) [:6.0.0.20100429-M3]
            at org.jboss.vfs.VirtualFile.visit(VirtualFile.java:407) [jboss-vfs.jar:3.0.0.CR5]
            at org.jboss.vfs.VirtualFile.visit(VirtualFile.java:409) [jboss-vfs.jar:3.0.0.CR5]
            at org.jboss.vfs.VirtualFile.visit(VirtualFile.java:409) [jboss-vfs.jar:3.0.0.CR5]
            at org.jboss.vfs.VirtualFile.visit(VirtualFile.java:409) [jboss-vfs.jar:3.0.0.CR5]
            at org.jboss.vfs.VirtualFile.visit(VirtualFile.java:395) [jboss-vfs.jar:3.0.0.CR5]
            at org.jboss.web.deployers.WarAnnotationMetaDataDeployer.getClasses(WarAnnotationMetaDataDeployer.java:172) [:6.0.0.20100429-M3]
            at org.jboss.web.deployers.WarAnnotationMetaDataDeployer.processMetaData(WarAnnotationMetaDataDeployer.java:145) [:6.0.0.20100429-M3]
            at org.jboss.web.deployers.WarAnnotationMetaDataDeployer.deploy(WarAnnotationMetaDataDeployer.java:119) [:6.0.0.20100429-M3]
            at org.jboss.web.deployers.WarAnnotationMetaDataDeployer.deploy(WarAnnotationMetaDataDeployer.java:80) [:6.0.0.20100429-M3]
            at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:179) [:2.2.0.Alpha4]
            ... 32 more
     
    14:23:28,977 WARNING [FileConfigurationParser] AIO wasn't located on this platform, it will fall back to using pure Java NIO. If your platform is Linux, install LibAIO to enable th
    e AIO journal
    14:23:29,428 INFO  [JMXConnector] starting JMXConnector on host 127.0.0.1:1090
    14:23:29,688 INFO  [MailService] Mail Service bound to java:/Mail
    14:23:32,873 INFO  [HornetQServerImpl] live server is starting..
    14:23:32,963 INFO  [JournalStorageManager] Using NIO Journal
    14:23:32,993 WARNING [HornetQServerImpl] Security risk! It has been detected that the cluster admin user and password have not been changed from the installation default. Please se
    e the HornetQ user guide, cluster chapter, for instructions on how to do this.
    14:23:36,148 INFO  [NettyAcceptor] Started Netty Acceptor version 3.2.0.BETA1-r2215 127.0.0.1:5445
    14:23:36,148 INFO  [NettyAcceptor] Started Netty Acceptor version 3.2.0.BETA1-r2215 127.0.0.1:5455
    14:23:36,148 INFO  [HornetQServerImpl] HornetQ Server version 2.1.0.BETA3 (Hungry Hornet, 117) started
    14:23:36,248 INFO  [WebService] Using RMI server codebase: http://127.0.0.1:8083/
    14:23:38,441 INFO  [AprLifecycleListener] The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: E:\Pr
    ogram Files\Java\jdk1.6.0_20\bin;.;E:\WINDOWS\Sun\Java\bin;E:\WINDOWS\system32;E:\WINDOWS;E:\WINDOWS\system32;E:\WINDOWS;E:\WINDOWS\System32\Wbem;E:\apache-maven-2.2.1\bin;E:\Progr
    am Files\OpenVPN\bin
    14:23:38,751 INFO  [TomcatDeployment] deploy, ctxPath=/invoker
    14:23:40,614 INFO  [RARDeployment] Required license terms exist, view vfs:/E:/jboss-6.0.0.20100429-M3/server/default/deploy/jboss-local-jdbc.rar/META-INF/ra.xml
    14:23:40,634 INFO  [RARDeployment] Required license terms exist, view vfs:/E:/jboss-6.0.0.20100429-M3/server/default/deploy/jboss-xa-jdbc.rar/META-INF/ra.xml
    14:23:40,724 INFO  [RARDeployment] Required license terms exist, view vfs:/E:/jboss-6.0.0.20100429-M3/server/default/deploy/jms-ra.rar/META-INF/ra.xml
    14:23:40,744 INFO  [HornetQResourceAdapter] HornetQ resource adaptor started
    14:23:40,754 INFO  [RARDeployment] Required license terms exist, view vfs:/E:/jboss-6.0.0.20100429-M3/server/default/deploy/mail-ra.rar/META-INF/ra.xml
    14:23:40,824 INFO  [RARDeployment] Required license terms exist, view vfs:/E:/jboss-6.0.0.20100429-M3/server/default/deploy/quartz-ra.rar/META-INF/ra.xml
    14:23:40,945 INFO  [SimpleThreadPool] Job execution threads will use class loader of thread: Thread-2
    14:23:41,025 INFO  [SchedulerSignalerImpl] Initialized Scheduler Signaller of type: class org.quartz.core.SchedulerSignalerImpl
    14:23:41,035 INFO  [QuartzScheduler] Quartz Scheduler v.1.7.3 created.
    14:23:41,035 INFO  [RAMJobStore] RAMJobStore initialized.
    14:23:41,035 INFO  [StdSchedulerFactory] Quartz scheduler 'DefaultQuartzScheduler' initialized from default resource file in Quartz package: 'quartz.properties'
    14:23:41,035 INFO  [StdSchedulerFactory] Quartz scheduler version: 1.7.3
    14:23:41,035 INFO  [QuartzScheduler] Scheduler DefaultQuartzScheduler_$_NON_CLUSTERED started.
    14:23:41,185 INFO  [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=edcDS' to JNDI name 'java:edcDS'
    14:23:43,168 INFO  [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=DefaultDS' to JNDI name 'java:DefaultDS'
    14:23:43,358 INFO  [UpdateChecker] New update(s) found: 1.8.4 [http://www.terracotta.org/kit/reflector?kitID=default&pageID=QuartzChangeLog]
    14:23:43,548 INFO  [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=ConnectionFactoryBinding,name=JmsXA' to JNDI name 'java:JmsXA'
    14:23:43,598 INFO  [xnio] XNIO Version 2.1.0.CR2
    14:23:43,608 INFO  [nio] XNIO NIO Implementation Version 2.1.0.CR2
    14:23:43,799 INFO  [remoting] JBoss Remoting version 3.1.0.Beta2
    14:23:44,149 INFO  [TomcatDeployment] deploy, ctxPath=/
    14:23:44,420 INFO  [service] Removing bootstrap log handlers
    14:23:44,490 INFO  [org.jboss.system.server.profileservice.ProfileServiceBootstrap] Loading profile: ProfileKey@d861b7[domain=default, server=default, name=default]
    14:23:44,490 ERROR [org.jboss.system.server.profileservice.ProfileServiceBootstrap] Failed to load profile: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):
     
    DEPLOYMENTS IN ERROR:
      Deployment "vfs:///E:/jboss-6.0.0.20100429-M3/server/default/deploy/test.war" is in error due to the following reason(s): java.lang.LinkageError: loader constrain
    t violation in interface itable initialization: when resolving method "com.mysql.jdbc.JDBC4MysqlSQLXML.getSource(Ljava/lang/Class;)Ljavax/xml/transform/Source;" the class loader (i
    nstance of org/jboss/classloader/spi/base/BaseClassLoader) of the current class, com/mysql/jdbc/JDBC4MysqlSQLXML, and the class loader (instance of <bootloader>) for interface java
    /sql/SQLXML have different Class objects for the type javax/xml/transform/Source used in the signature
    Est-ce que vous auriez une idée d’où ça peut venir ce problème?

    Merci d'avance.

    PS : je n’ai aucun problème sous Tomcat

  2. #2
    Membre expert
    Homme Profil pro
    Ingénieur développement logiciels
    Inscrit en
    Juin 2007
    Messages
    2 938
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

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

    Informations forums :
    Inscription : Juin 2007
    Messages : 2 938
    Points : 3 938
    Points
    3 938
    Par défaut
    T'as visiblement un doublon de librairie, regarde dans les librairies de ton repertoire default de de jboss s'il n'ya deja pas une librairie mysql, sioui vire le , et redemarre ton truc.
    Vous avez peut être hâte de réussir et il n'y a rien de mal à cela...
    mais la patience est aussi une vertu; l'échec vous l'enseignera certainement..."

  3. #3
    Membre éprouvé
    Avatar de hasalex
    Homme Profil pro
    Développeur Java
    Inscrit en
    Janvier 2009
    Messages
    879
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 54
    Localisation : France, Rhône (Rhône Alpes)

    Informations professionnelles :
    Activité : Développeur Java

    Informations forums :
    Inscription : Janvier 2009
    Messages : 879
    Points : 1 269
    Points
    1 269
    Par défaut
    On dirait plutôt que le conflit vient de javax.xml.transform.Source.
    Tu dois avoir un Xalan ou qq chose comme ça dans ton war, et le driver mysql dans default/lib, non ?

  4. #4
    Nouveau Candidat au Club
    Profil pro
    Inscrit en
    Septembre 2010
    Messages
    2
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Septembre 2010
    Messages : 2
    Points : 1
    Points
    1
    Par défaut
    Bonsoir,

    Merci pour vos réponses,

    Citation Envoyé par DevServlet Voir le message
    T'as visiblement un doublon de librairie, regarde dans les librairies de ton repertoire default de de jboss s'il n'ya deja pas une librairie mysql, sioui vire le , et redemarre ton truc.
    Je n’ai aucun jar dans le répertoire default /lib du Jboss

    Citation Envoyé par hasalex Voir le message
    On dirait plutôt que le conflit vient de javax.xml.transform.Source.
    Tu dois avoir un Xalan ou qq chose comme ça dans ton war, et le driver mysql dans default/lib, non ?
    Pour le driver MySQL, j’ai essayé plusieurs façon, soit en mettant juste dans le war, soit juste dans default /lib ou les deux même temps, mais j’ai toujours la même exception

    Sinon dans mon war j’ai les librairies suivantes, je ne sais pas si certain qui peux poser des problèmes
    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
     
    activation-1.1.jar
    antlr-2.7.6.jar
    aopalliance-1.0.jar
    atmosphere-compat-jbossweb-0.5.1.jar
    atmosphere-compat-tomcat-0.5.1.jar
    atmosphere-compat-weblogic-0.5.1.jar
    atmosphere-runtime-0.5.1.jar
    bcmail-jdk14-138.jar
    bcprov-jdk14-138.jar
    commons-beanutils-1.8.0.jar
    commons-codec-1.4.jar
    commons-collections-3.1.jar
    commons-dbcp-1.4.jar
    commons-digester-2.0.jar
    commons-el-1.0.jar
    commons-lang-2.0.jar
    commons-logging-1.1.1.jar
    commons-pool-1.5.4.jar
    core-renderer.jar
    dom4j-1.6.1.jar
    hibernate-core-3.5.3-Final.jar
    itext-2.0.8.jar
    javassist-3.8.0.GA.jar
    jsf-api-2.0.3-b02.jar
    jsf-impl-2.0.3-b02.jar
    jta-1.1.jar
    jtidy-r938.jar
    junit-4.8.1.jar
    log4j-1.2.11.jar
    mail-1.4.2.jar
    prettyfaces-jsf2-3.0.1.jar
    primefaces-2.1.jar
    quartz-1.5.2.jar
    rss4jsf-0.2.jar
    rsslib4j-0.2.jar
    slf4j-api-1.6.0.jar
    spring-aop-3.0.2.RELEASE.jar
    spring-asm-3.0.2.RELEASE.jar
    spring-beans-3.0.2.RELEASE.jar
    spring-context-3.0.2.RELEASE.jar
    spring-context-support-3.0.3.RELEASE.jar
    spring-core-3.0.2.RELEASE.jar
    spring-expression-3.0.2.RELEASE.jar
    spring-jdbc-3.0.3.RELEASE.jar
    spring-orm-3.0.3.RELEASE.jar
    spring-tx-3.0.3.RELEASE.jar
    spring-web-3.0.2.RELEASE.jar
    xml-apis-1.0.b2.jar
    Merci encore

Discussions similaires

  1. Réponses: 1
    Dernier message: 19/11/2008, 14h38
  2. [ EJB ] [ TOMCAT ] accès aux EJB depuis Tomcat
    Par Houbbba dans le forum Tomcat et TomEE
    Réponses: 5
    Dernier message: 30/07/2008, 11h42
  3. Migration depuis Access
    Par Cantalou dans le forum Débuter
    Réponses: 3
    Dernier message: 27/10/2006, 22h08
  4. [VB.NET] Migration depuis VB6
    Par neuropathie dans le forum Windows Forms
    Réponses: 1
    Dernier message: 29/08/2006, 00h28
  5. PB migration appli tomcat/WIN vers tomcat/Debian
    Par benoizette75 dans le forum Tomcat et TomEE
    Réponses: 1
    Dernier message: 24/08/2006, 18h29

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