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

GWT et Vaadin Java Discussion :

[Spring, GWT]Problème en hosted mode


Sujet :

GWT et Vaadin Java

  1. #1
    Membre averti
    Profil pro
    Inscrit en
    janvier 2009
    Messages
    199
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : janvier 2009
    Messages : 199
    Points : 335
    Points
    335
    Par défaut [Spring, GWT]Problème en hosted mode
    Bonjour, j'ai un problème avec GWT (encore).
    J'utilise Maven/GWT/Hibernate/Spring et j'ai le problème suivant en hosted mode:
    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
     
    Loading modules
       com.projet.projet
          Validating <servlet> tags for module 'projet'
          For additional info see: file:/C:/Eclipe_maven_gwt/eclipse/plugins/com.google.gwt.eclipse.sdkbundle_2.4.0.v201201120043-rel-r37/gwt-2.4.0/doc/helpInfo/servletMappings.html
             [WARN] Module declares a servlet class 'com.google.gwt.junit.server.JUnitHostImpl', but the web.xml has no corresponding declaration; please add the following lines to your web.xml:
    <servlet>
      <servlet-name>jUnitHostImpl</servlet-name>
      <servlet-class>com.google.gwt.junit.server.JUnitHostImpl</servlet-class>
    </servlet>
    <servlet-mapping>
      <servlet-name>jUnitHostImpl</servlet-name>
      <url-pattern>/projet/junithost/*</url-pattern>
    </servlet-mapping>
    [WARN] Server class 'org.springframework.web.context.ContextLoaderListener' could not be found in the web app, but was found on the system classpath
       [WARN] Adding classpath entry 'file:/C:/Documents%20and%20Settings/Aprolis/.m2/repository/org/springframework/spring-web/3.1.0.RELEASE/spring-web-3.1.0.RELEASE.jar' to the web app classpath for this session
       For additional info see: file:/C:/Eclipe_maven_gwt/eclipse/plugins/com.google.gwt.eclipse.sdkbundle_2.4.0.v201201120043-rel-r37/gwt-2.4.0/doc/helpInfo/webAppClassPath.html
    [WARN] Server class 'org.springframework.core.io.Resource' could not be found in the web app, but was found on the system classpath
       [WARN] Adding classpath entry 'file:/C:/Documents%20and%20Settings/Aprolis/.m2/repository/org/springframework/spring-core/3.1.0.RELEASE/spring-core-3.1.0.RELEASE.jar' to the web app classpath for this session
       For additional info see: file:/C:/Eclipe_maven_gwt/eclipse/plugins/com.google.gwt.eclipse.sdkbundle_2.4.0.v201201120043-rel-r37/gwt-2.4.0/doc/helpInfo/webAppClassPath.html
    [WARN] Server class 'org.springframework.context.ApplicationContextException' could not be found in the web app, but was found on the system classpath
       [WARN] Adding classpath entry 'file:/C:/Documents%20and%20Settings/Aprolis/.m2/repository/org/springframework/spring-context/3.1.0.RELEASE/spring-context-3.1.0.RELEASE.jar' to the web app classpath for this session
       For additional info see: file:/C:/Eclipe_maven_gwt/eclipse/plugins/com.google.gwt.eclipse.sdkbundle_2.4.0.v201201120043-rel-r37/gwt-2.4.0/doc/helpInfo/webAppClassPath.html
    [WARN] Server class 'org.springframework.beans.FatalBeanException' could not be found in the web app, but was found on the system classpath
       [WARN] Adding classpath entry 'file:/C:/Documents%20and%20Settings/Aprolis/.m2/repository/org/springframework/spring-beans/3.1.0.RELEASE/spring-beans-3.1.0.RELEASE.jar' to the web app classpath for this session
       For additional info see: file:/C:/Eclipe_maven_gwt/eclipse/plugins/com.google.gwt.eclipse.sdkbundle_2.4.0.v201201120043-rel-r37/gwt-2.4.0/doc/helpInfo/webAppClassPath.html
    log4j:WARN No appenders could be found for logger (org.springframework.web.context.ContextLoader).
    log4j:WARN Please initialize the log4j system properly.
    log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
    [WARN] Server class 'org.springframework.asm.ClassVisitor' could not be found in the web app, but was found on the system classpath
       [WARN] Adding classpath entry 'file:/C:/Documents%20and%20Settings/Aprolis/.m2/repository/org/springframework/spring-asm/3.1.0.RELEASE/spring-asm-3.1.0.RELEASE.jar' to the web app classpath for this session
       For additional info see: file:/C:/Eclipe_maven_gwt/eclipse/plugins/com.google.gwt.eclipse.sdkbundle_2.4.0.v201201120043-rel-r37/gwt-2.4.0/doc/helpInfo/webAppClassPath.html
    [WARN] Server class 'org.springframework.expression.PropertyAccessor' could not be found in the web app, but was found on the system classpath
       [WARN] Adding classpath entry 'file:/C:/Documents%20and%20Settings/Aprolis/.m2/repository/org/springframework/spring-expression/3.1.0.RELEASE/spring-expression-3.1.0.RELEASE.jar' to the web app classpath for this session
       For additional info see: file:/C:/Eclipe_maven_gwt/eclipse/plugins/com.google.gwt.eclipse.sdkbundle_2.4.0.v201201120043-rel-r37/gwt-2.4.0/doc/helpInfo/webAppClassPath.html
    [WARN] Server class 'org.apache.commons.dbcp.BasicDataSource' could not be found in the web app, but was found on the system classpath
       [WARN] Adding classpath entry 'file:/C:/Documents%20and%20Settings/Aprolis/.m2/repository/commons-dbcp/commons-dbcp/20030825.184428/commons-dbcp-20030825.184428.jar' to the web app classpath for this session
       For additional info see: file:/C:/Eclipe_maven_gwt/eclipse/plugins/com.google.gwt.eclipse.sdkbundle_2.4.0.v201201120043-rel-r37/gwt-2.4.0/doc/helpInfo/webAppClassPath.html
    [WARN] Server class 'org.springframework.orm.hibernate3.annotation.AnnotationSessionFactoryBean' could not be found in the web app, but was found on the system classpath
       [WARN] Adding classpath entry 'file:/C:/Documents%20and%20Settings/Aprolis/.m2/repository/org/springframework/spring-orm/3.0.6.RELEASE/spring-orm-3.0.6.RELEASE.jar' to the web app classpath for this session
       For additional info see: file:/C:/Eclipe_maven_gwt/eclipse/plugins/com.google.gwt.eclipse.sdkbundle_2.4.0.v201201120043-rel-r37/gwt-2.4.0/doc/helpInfo/webAppClassPath.html
    [WARN] Server class 'org.springframework.dao.support.PersistenceExceptionTranslator' could not be found in the web app, but was found on the system classpath
       [WARN] Adding classpath entry 'file:/C:/Documents%20and%20Settings/Aprolis/.m2/repository/org/springframework/spring-tx/3.1.0.RELEASE/spring-tx-3.1.0.RELEASE.jar' to the web app classpath for this session
       For additional info see: file:/C:/Eclipe_maven_gwt/eclipse/plugins/com.google.gwt.eclipse.sdkbundle_2.4.0.v201201120043-rel-r37/gwt-2.4.0/doc/helpInfo/webAppClassPath.html
    [WARN] Server class 'org.springframework.jdbc.core.JdbcTemplate' could not be found in the web app, but was found on the system classpath
       [WARN] Adding classpath entry 'file:/C:/Documents%20and%20Settings/Aprolis/.m2/repository/org/springframework/spring-jdbc/3.1.0.RELEASE/spring-jdbc-3.1.0.RELEASE.jar' to the web app classpath for this session
       For additional info see: file:/C:/Eclipe_maven_gwt/eclipse/plugins/com.google.gwt.eclipse.sdkbundle_2.4.0.v201201120043-rel-r37/gwt-2.4.0/doc/helpInfo/webAppClassPath.html
    [WARN] Server class 'com.google.gwt.user.client.rpc.RemoteService' could not be found in the web app, but was found on the system classpath
       [WARN] Adding classpath entry 'file:/C:/Documents%20and%20Settings/Aprolis/.m2/repository/com/google/gwt/gwt-servlet/2.4.0/gwt-servlet-2.4.0.jar' to the web app classpath for this session
       For additional info see: file:/C:/Eclipe_maven_gwt/eclipse/plugins/com.google.gwt.eclipse.sdkbundle_2.4.0.v201201120043-rel-r37/gwt-2.4.0/doc/helpInfo/webAppClassPath.html
    [WARN] Server class 'org.hibernate.JDBCException' could not be found in the web app, but was found on the system classpath
       [WARN] Adding classpath entry 'file:/C:/Documents%20and%20Settings/Aprolis/.m2/repository/org/hibernate/hibernate-core/3.5.0-Final/hibernate-core-3.5.0-Final.jar' to the web app classpath for this session
       For additional info see: file:/C:/Eclipe_maven_gwt/eclipse/plugins/com.google.gwt.eclipse.sdkbundle_2.4.0.v201201120043-rel-r37/gwt-2.4.0/doc/helpInfo/webAppClassPath.html
    [WARN] Server class 'javax.persistence.Entity' could not be found in the web app, but was found on the system classpath
       [WARN] Adding classpath entry 'file:/C:/Documents%20and%20Settings/Aprolis/.m2/repository/org/hibernate/javax/persistence/hibernate-jpa-2.0-api/1.0.0.Final/hibernate-jpa-2.0-api-1.0.0.Final.jar' to the web app classpath for this session
       For additional info see: file:/C:/Eclipe_maven_gwt/eclipse/plugins/com.google.gwt.eclipse.sdkbundle_2.4.0.v201201120043-rel-r37/gwt-2.4.0/doc/helpInfo/webAppClassPath.html
    [WARN] Server class 'org.hibernate.annotations.Entity' could not be found in the web app, but was found on the system classpath
       [WARN] Adding classpath entry 'file:/C:/Documents%20and%20Settings/Aprolis/.m2/repository/org/hibernate/hibernate-annotations/3.5.0-Final/hibernate-annotations-3.5.0-Final.jar' to the web app classpath for this session
       For additional info see: file:/C:/Eclipe_maven_gwt/eclipse/plugins/com.google.gwt.eclipse.sdkbundle_2.4.0.v201201120043-rel-r37/gwt-2.4.0/doc/helpInfo/webAppClassPath.html
    [WARN] Server class 'org.apache.commons.pool.impl.GenericObjectPool' could not be found in the web app, but was found on the system classpath
       [WARN] Adding classpath entry 'file:/C:/Documents%20and%20Settings/Aprolis/.m2/repository/commons-pool/commons-pool/20030825.183949/commons-pool-20030825.183949.jar' to the web app classpath for this session
       For additional info see: file:/C:/Eclipe_maven_gwt/eclipse/plugins/com.google.gwt.eclipse.sdkbundle_2.4.0.v201201120043-rel-r37/gwt-2.4.0/doc/helpInfo/webAppClassPath.html
    [WARN] Server class 'javax.transaction.TransactionManager' could not be found in the web app, but was found on the system classpath
       [WARN] Adding classpath entry 'file:/C:/Documents%20and%20Settings/Aprolis/.m2/repository/javax/transaction/jta/1.1/jta-1.1.jar' to the web app classpath for this session
       For additional info see: file:/C:/Eclipe_maven_gwt/eclipse/plugins/com.google.gwt.eclipse.sdkbundle_2.4.0.v201201120043-rel-r37/gwt-2.4.0/doc/helpInfo/webAppClassPath.html
    [WARN] Server class 'org.dom4j.DocumentException' could not be found in the web app, but was found on the system classpath
       [WARN] Adding classpath entry 'file:/C:/Documents%20and%20Settings/Aprolis/.m2/repository/dom4j/dom4j/1.6.1/dom4j-1.6.1.jar' to the web app classpath for this session
       For additional info see: file:/C:/Eclipe_maven_gwt/eclipse/plugins/com.google.gwt.eclipse.sdkbundle_2.4.0.v201201120043-rel-r37/gwt-2.4.0/doc/helpInfo/webAppClassPath.html
    [WARN] Server class 'org.hibernate.annotations.common.reflection.ReflectionManager' could not be found in the web app, but was found on the system classpath
       [WARN] Adding classpath entry 'file:/C:/Documents%20and%20Settings/Aprolis/.m2/repository/org/hibernate/hibernate-commons-annotations/3.2.0.Final/hibernate-commons-annotations-3.2.0.Final.jar' to the web app classpath for this session
       For additional info see: file:/C:/Eclipe_maven_gwt/eclipse/plugins/com.google.gwt.eclipse.sdkbundle_2.4.0.v201201120043-rel-r37/gwt-2.4.0/doc/helpInfo/webAppClassPath.html
    [WARN] Server class 'javax.validation.Validation' could not be found in the web app, but was found on the system classpath
       [WARN] Adding classpath entry 'file:/C:/Documents%20and%20Settings/Aprolis/.m2/repository/javax/validation/validation-api/1.0.0.GA/validation-api-1.0.0.GA.jar' to the web app classpath for this session
       For additional info see: file:/C:/Eclipe_maven_gwt/eclipse/plugins/com.google.gwt.eclipse.sdkbundle_2.4.0.v201201120043-rel-r37/gwt-2.4.0/doc/helpInfo/webAppClassPath.html
    [WARN] Server class 'com.mysql.jdbc.Driver' could not be found in the web app, but was found on the system classpath
       [WARN] Adding classpath entry 'file:/C:/Documents%20and%20Settings/Aprolis/.m2/repository/mysql/mysql-connector-java/5.1.18/mysql-connector-java-5.1.18.jar' to the web app classpath for this session
       For additional info see: file:/C:/Eclipe_maven_gwt/eclipse/plugins/com.google.gwt.eclipse.sdkbundle_2.4.0.v201201120043-rel-r37/gwt-2.4.0/doc/helpInfo/webAppClassPath.html
    [WARN] Server class 'org.apache.commons.collections.CursorableLinkedList' could not be found in the web app, but was found on the system classpath
       [WARN] Adding classpath entry 'file:/C:/Documents%20and%20Settings/Aprolis/.m2/repository/commons-collections/commons-collections/3.1/commons-collections-3.1.jar' to the web app classpath for this session
       For additional info see: file:/C:/Eclipe_maven_gwt/eclipse/plugins/com.google.gwt.eclipse.sdkbundle_2.4.0.v201201120043-rel-r37/gwt-2.4.0/doc/helpInfo/webAppClassPath.html
    [WARN] Server class 'javassist.util.proxy.MethodFilter' could not be found in the web app, but was found on the system classpath
       [WARN] Adding classpath entry 'file:/C:/Documents%20and%20Settings/Aprolis/.m2/repository/javassist/javassist/3.9.0.GA/javassist-3.9.0.GA.jar' to the web app classpath for this session
       For additional info see: file:/C:/Eclipe_maven_gwt/eclipse/plugins/com.google.gwt.eclipse.sdkbundle_2.4.0.v201201120043-rel-r37/gwt-2.4.0/doc/helpInfo/webAppClassPath.html
    Starting Jetty on port 8888
       [WARN] EXCEPTION 
    java.lang.ClassNotFoundException:    org.springframework.web.servlet.DispatcherServlet
    	at java.lang.ClassLoader.findClass(ClassLoader.java:358)
    	at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    	at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
    	at org.mortbay.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:352)
    	at org.mortbay.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:337)
    	at org.mortbay.util.Loader.loadClass(Loader.java:91)
    	at org.mortbay.util.Loader.loadClass(Loader.java:71)
    	at org.mortbay.jetty.servlet.Holder.doStart(Holder.java:73)
    	at org.mortbay.jetty.servlet.ServletHolder.doStart(ServletHolder.java:233)
    	at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:39)
    	at org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:616)
    	at org.mortbay.jetty.servlet.Context.startContext(Context.java:140)
    	at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1220)
    	at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:513)
    	at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:448)
    	at com.google.gwt.dev.shell.jetty.JettyLauncher$WebAppContextWithReload.doStart(JettyLauncher.java:468)
    	at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:39)
    	at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
    	at org.mortbay.jetty.handler.RequestLogHandler.doStart(RequestLogHandler.java:115)
    	at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:39)
    	at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
    	at org.mortbay.jetty.Server.doStart(Server.java:222)
    	at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:39)
    	at com.google.gwt.dev.shell.jetty.JettyLauncher.start(JettyLauncher.java:672)
    	at com.google.gwt.dev.DevMode.doStartUpServer(DevMode.java:509)
    	at com.google.gwt.dev.DevModeBase.startUp(DevModeBase.java:1068)
    	at com.google.gwt.dev.DevModeBase.run(DevModeBase.java:811)
    	at com.google.gwt.dev.DevMode.main(DevMode.java:311)
       [WARN] failed handler
    javax.servlet.UnavailableException:    org.springframework.web.servlet.DispatcherServlet
    	at org.mortbay.jetty.servlet.Holder.doStart(Holder.java:79)
    	at org.mortbay.jetty.servlet.ServletHolder.doStart(ServletHolder.java:233)
    	at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:39)
    	at org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:616)
    	at org.mortbay.jetty.servlet.Context.startContext(Context.java:140)
    	at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1220)
    	at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:513)
    	at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:448)
    	at com.google.gwt.dev.shell.jetty.JettyLauncher$WebAppContextWithReload.doStart(JettyLauncher.java:468)
    	at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:39)
    	at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
    	at org.mortbay.jetty.handler.RequestLogHandler.doStart(RequestLogHandler.java:115)
    	at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:39)
    	at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
    	at org.mortbay.jetty.Server.doStart(Server.java:222)
    	at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:39)
    	at com.google.gwt.dev.shell.jetty.JettyLauncher.start(JettyLauncher.java:672)
    	at com.google.gwt.dev.DevMode.doStartUpServer(DevMode.java:509)
    	at com.google.gwt.dev.DevModeBase.startUp(DevModeBase.java:1068)
    	at com.google.gwt.dev.DevModeBase.run(DevModeBase.java:811)
    	at com.google.gwt.dev.DevMode.main(DevMode.java:311)
       [WARN] Failed startup of context com.google.gwt.dev.shell.jetty.JettyLauncher$WebAppContextWithReload@7f8672{/,C:\gwt_maven_projet\const2\projet\src\main\webapp}
    javax.servlet.UnavailableException:    org.springframework.web.servlet.DispatcherServlet
    	at org.mortbay.jetty.servlet.Holder.doStart(Holder.java:79)
    	at org.mortbay.jetty.servlet.ServletHolder.doStart(ServletHolder.java:233)
    	at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:39)
    	at org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:616)
    	at org.mortbay.jetty.servlet.Context.startContext(Context.java:140)
    	at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1220)
    	at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:513)
    	at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:448)
    	at com.google.gwt.dev.shell.jetty.JettyLauncher$WebAppContextWithReload.doStart(JettyLauncher.java:468)
    	at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:39)
    	at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
    	at org.mortbay.jetty.handler.RequestLogHandler.doStart(RequestLogHandler.java:115)
    	at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:39)
    	at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
    	at org.mortbay.jetty.Server.doStart(Server.java:222)
    	at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:39)
    	at com.google.gwt.dev.shell.jetty.JettyLauncher.start(JettyLauncher.java:672)
    	at com.google.gwt.dev.DevMode.doStartUpServer(DevMode.java:509)
    	at com.google.gwt.dev.DevModeBase.startUp(DevModeBase.java:1068)
    	at com.google.gwt.dev.DevModeBase.run(DevModeBase.java:811)
    	at com.google.gwt.dev.DevMode.main(DevMode.java:311)
    Dont l'importance est selon moi:
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
     
    java.lang.ClassNotFoundException:    org.springframework.web.servlet.DispatcherServlet
    Problème: je ne comprends rien du tout car j'ai télécharger le jar spring-webmvc-3.1.0.RELEASE

    Mon POM:
    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
    207
    208
    209
    210
    211
    212
    213
    214
    215
    216
    217
    218
    219
    220
    221
    222
    223
    224
    225
    226
    227
    228
    229
    230
    231
    232
    233
    234
    235
    236
    237
    238
    239
    240
    241
    242
    243
    244
    245
    246
    247
    248
    249
    250
    251
    252
    253
    254
    255
    256
    257
    258
    259
    260
    261
    262
    263
    264
    265
    266
    267
    268
    269
    270
    271
    272
    273
    274
    275
    276
    277
    278
    279
    280
    281
    282
    283
    284
    285
    286
    287
    288
    289
    290
    291
    292
    293
    294
    295
    296
    297
    298
     
    <?xml version="1.0" encoding="UTF-8"?>
    <project
      xmlns="http://maven.apache.org/POM/4.0.0"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
     
      <!-- POM file generated with GWT webAppCreator -->
      <modelVersion>4.0.0</modelVersion>
      <groupId>projet</groupId>
      <artifactId>projet</artifactId>
      <packaging>war</packaging>
      <version>1</version>
      <name>GWT Maven Archetype</name>
     
      <properties>
        <!-- Convenience property to set the GWT version -->
        <gwtVersion>2.4.0</gwtVersion>    
        <!-- GWT needs at least java 1.5 -->    
        <webappDirectory>${project.build.directory}/${project.build.finalName}</webappDirectory>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
     
        <!-- Convenience property to set the GWT version -->
        <gwtVersion>2.4.0</gwtVersion>    
        <!-- GWT needs at least java 1.5 -->
        <webappDirectory>${project.build.directory}/${project.build.finalName}</webappDirectory>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
     
        <!-- Les versions pour les libs projets -->
        <!-- JUnit -->    
    	<org.junit.bom.version>4.8.1</org.junit.bom.version>
     
    	<!-- Hibernate version -->
    	<org.hibernate.bom.version>3.5.0-Final</org.hibernate.bom.version>
    	<!-- Hibernate annotations -->
    	<org.hibernate.bom.version.annotations>3.6.9.Final</org.hibernate.bom.version.annotations>
     
    	<!-- Commmon dbcp -->
    	<org.commons.dbcp.bon.version>20030825.184428</org.commons.dbcp.bon.version>
     
    	<!-- Common pools -->
    	<org.commons.dbcp.pools.version>20030825.183949</org.commons.dbcp.pools.version>
     
    	<!-- Driver JDBC MYSQL -->
    	<org.jdbc.driver.mysql.bom.version>5.1.18</org.jdbc.driver.mysql.bom.version>
     
    	<!-- spring general -->
    	<org.spring.bom.version>3.1.0.RELEASE</org.spring.bom.version>
    	<!-- Spring ORM -->
    	<org.spring.orm.bom.version>3.0.6.RELEASE</org.spring.orm.bom.version>
     
    	<!-- Validation -->
    	<org.validation.bom.version>1.0.0.GA</org.validation.bom.version>
    	<!-- Lib server (JSF...) compile for Tomcat, provided for JBoss -->
    	<com.lib.scope>compile</com.lib.scope>	
      </properties>
     
      <repositories>
    		<!-- JBoss-->
    		<repository>
    			<id>jboss richfaces</id>
    			<name>jboss repository</name>
    			<url>http://repository.jboss.org/nexus/content/groups/public-jboss/</url>
    		</repository>
     
    	</repositories>
     
      <dependencies>
        <dependency>
          <groupId>com.google.gwt</groupId>
          <artifactId>gwt-servlet</artifactId>
          <version>${gwtVersion}</version>
          <scope>runtime</scope>
        </dependency>
        <dependency>
          <groupId>com.google.gwt</groupId>
          <artifactId>gwt-user</artifactId>
          <version>${gwtVersion}</version>
          <scope>provided</scope>
        </dependency>
        <dependency>
          <groupId>junit</groupId>
          <artifactId>junit</artifactId>
          <version>${org.junit.bom.version}</version>
          <scope>test</scope>
        </dependency>
        <dependency>
          <groupId>javax.validation</groupId>
          <artifactId>validation-api</artifactId>
          <version>${org.validation.bom.version}</version>
          <scope>compile</scope>
        </dependency>
        <dependency>
          <groupId>javax.validation</groupId>
          <artifactId>validation-api</artifactId>
          <version>${org.validation.bom.version}</version>
          <classifier>sources</classifier>
          <scope>compile</scope>
        </dependency>
     
        <!-- Librairie projet -->
        <!-- Hibernate -->
    	<dependency> 
    		<groupId>org.hibernate</groupId> 
    		<artifactId>hibernate-core</artifactId> 
    		<version>${org.hibernate.bom.version}</version> 
    		<scope>${com.lib.scope}</scope> 
    		<exclusions>
    			<exclusion>
    				<groupId>org.slf4j</groupId>
    				<artifactId>slf4j-api</artifactId>
    			</exclusion>    
    		</exclusions>		    
    	</dependency>
     
    	<dependency> 
    		<groupId>org.hibernate</groupId> 
    		<artifactId>hibernate-entitymanager</artifactId> 
    		<version>${org.hibernate.bom.version}</version> 
    		<scope>${com.lib.scope}</scope> 
    	</dependency>  
     
    	<dependency> 
    		<groupId>org.hibernate</groupId> 
    		<artifactId>hibernate-validator</artifactId> 
    		<version>4.2.0.Final</version> 
    		<scope>${com.lib.scope}</scope> 
    	</dependency>  
     
    	<!-- SLF4J Log -->
    	<dependency>
    		<groupId>org.slf4j</groupId>
    		<artifactId>slf4j-log4j12</artifactId>
    		<version>1.6.4</version>
    		<scope>compile</scope> 
    	</dependency>
     
    	<!-- SLF4J Log -->
    	<dependency>
    		<groupId>org.slf4j</groupId>
    		<artifactId>slf4j-api</artifactId>
    		<version>1.6.4</version>
    		<scope>compile</scope> 
    	</dependency>
     
    	<!-- Common dbcp -->
    	<dependency>
    		<groupId>commons-dbcp</groupId>
    		<artifactId>commons-dbcp</artifactId>
    		<version>${org.commons.dbcp.bon.version}</version>
    		<scope>compile</scope>
    	</dependency>
     
    	<!-- MySQL driver -->
    	<dependency>
    		<groupId>mysql</groupId>
    		<artifactId>mysql-connector-java</artifactId>
    		<version> ${org.jdbc.driver.mysql.bom.version}</version>
    		<scope>compile</scope>
    	</dependency>
     
    	<!-- Commons pools -->
    	<dependency>
    		<groupId>commons-pool</groupId>
    		<artifactId>commons-pool</artifactId>
    		<version>${org.commons.dbcp.pools.version}</version>
    		<scope>compile</scope>
    	</dependency>
     
    	<!-- Spring core -->
    		<dependency>
    			<groupId>org.springframework</groupId>
    			<artifactId>spring-core</artifactId>
    			<version>${org.spring.bom.version}</version>
    			<scope>compile</scope>
    			<optional>false</optional>
    		</dependency>
    		<!-- Spring context -->
    		<dependency>
    			<groupId>org.springframework</groupId>
    			<artifactId>spring-context</artifactId>
    			<version>${org.spring.bom.version}</version>
    			<scope>compile</scope>
    			<optional>false</optional>
    		</dependency>
     
    		<!-- Spring JDBC -->                                            
    		<dependency>
    			<groupId>org.springframework</groupId>
    			<artifactId>spring-jdbc</artifactId>
    			<version>${org.spring.bom.version}</version>
    			<scope>compile</scope>
    			<optional>false</optional>
    		</dependency>
     
    		<!-- Spring ORM -->
    		<dependency>
    			<groupId>org.springframework</groupId>
    			<artifactId>spring-orm</artifactId> 
    			<version>${org.spring.orm.bom.version}</version>
    			<scope>compile</scope>
    			<optional>false</optional>
    		</dependency>
     
    		<!-- spring web -->
    		<dependency>
    			<groupId>org.springframework</groupId>
    			<artifactId>spring-web</artifactId>
    			<version>${org.spring.bom.version}</version>
    			<scope>compile</scope>
    			<optional>false</optional>
    		</dependency>
     
    		<!-- spring web MVC-->
    		<dependency>
    			<groupId>org.springframework</groupId>
    			<artifactId>spring-webmvc</artifactId>
    			<version>${org.spring.bom.version}</version>
    			<scope>compile</scope>
    			<optional>false</optional>
    		</dependency>
     
    		<!-- Spring + GWT -->
    		<dependency>
    			<groupId>net.sf.gwt-widget</groupId>
    			<artifactId>gwt-sl</artifactId>
    			<version>1.3-RC1</version>
    			<scope>compile</scope>
    			<optional>false</optional>
    		</dependency>
    		<!-- spring test -->
    		<dependency>
    			<groupId>org.springframework</groupId>
    			<artifactId>spring-test</artifactId>
    			<version>${org.spring.bom.version}</version>
    			<scope>test</scope>
    		</dependency>
      </dependencies>
     
      <build>
        <!-- Generate compiled stuff in the folder used for developing mode -->
        <outputDirectory> ${webappDirectory}/WEB-INF/classes</outputDirectory>
     
        <plugins>
     
          <!-- GWT Maven Plugin -->
          <plugin>
            <groupId>org.codehaus.mojo</groupId>
            <artifactId>gwt-maven-plugin</artifactId>
            <version>2.4.0</version>
            <executions>
              <execution>
                <goals>
                  <goal>compile</goal>
                  <goal>test</goal><!-- 
                  <goal>i18n</goal>
                  <goal>generateAsync</goal>-->
                </goals>
              </execution>
            </executions>
            <!-- Plugin configuration. There are many available options, see 
              gwt-maven-plugin documentation at codehaus.org -->
            <configuration>
              <runTarget>projet.html</runTarget>
              <hostedWebapp>${webappDirectory}</hostedWebapp>
              <i18nMessagesBundle> com.projet.client.Messages</i18nMessagesBundle>
            </configuration>
          </plugin> 
          <!-- Copy static web files before executing gwt:run -->
    	  <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-war-plugin</artifactId>
            <version>2.1.1</version>
            <executions>
              <execution>
                <phase>compile</phase>
                <goals><!-- 
                  <goal>exploded</goal>-->
                </goals>
              </execution>
            </executions>
            <configuration>
              <webappDirectory>${webappDirectory}</webappDirectory>
            </configuration>
          </plugin>
          <plugin> 
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-compiler-plugin</artifactId>
            <version>2.3.2</version>
            <configuration>
              <source>1.6</source>
              <target>1.6</target>
            </configuration>
          </plugin>                                                       
        </plugins>
      </build>              
     
    </project>
    Mon web.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
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
     
    <?xml version="1.0" encoding="UTF-8"?>
    <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" id="WebApp_ID" version="3.0">
     
      <!-- Servlets -->
    	  <servlet>
    		<servlet-name>handler</servlet-name>
    		<servlet-class>
    		   org.springframework.web.servlet.DispatcherServlet
    		</servlet-class>
    		<load-on-startup>1</load-on-startup>
    	</servlet>
     
    	<servlet-mapping>
    	   <servlet-name>handler</servlet-name>
    	   <url-pattern>*.rpc</url-pattern>
    	</servlet-mapping>
     
     
      <!-- Default page to serve -->
      <welcome-file-list>
      	<welcome-file>projet.html</welcome-file>
      </welcome-file-list>
     
      <!-- Spring -->
      <listener>
    	<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
      </listener>
     
      <listener>
        <listener-class>org.springframework.web.context.request.RequestContextListener</listener-class>
      </listener>
     
     <context-param>
        <param-name>contextConfigLocation</param-name>
            <!-- Chargement de tout fichier xml commençant par applicationContext -->
        <param-value>/WEB-INF/applicationContext*.xml</param-value>
     </context-param>
    </web-app>
    Mon jetty-web.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
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
     
    <?xml version="1.0" encoding="UTF-8"?>
    <Configure class="org.mortbay.jetty.webapp.WebAppContext">
    	<Set name="systemClasses">   
    		<Array type="java.lang.String"> 
    			<!--
    				we copied these paths from jetty WebAppContext source code ...
    			-->
    			<Item>java.</Item>
    			<Item>javax.servlet.</Item>
    			<Item>javax.xml.</Item>
    			<Item>org.mortbay.</Item>
    			<Item>org.xml.</Item>
    			<Item>org.w3c.</Item>
    			<Item>org.apache.commons.logging.</Item>
    			<Item>org.apache.log4j.</Item> 
    			<!-- and ... added slf4j -->
    			<Item>org.slf4j.</Item>
    			<!--
    				File to fix hosted mode bug We must promote slf4j to system classes,
    				otherwise gwt hosted mode will not allow loading them due to a
    				policy that don't allow server classes to be loaded from the outside
    				world (see gwt JettyLauncher source code).
     
    				http://osdir.com/ml/GoogleWebToolkit/2009-04/msg01034.html Issue :
    				http://code.google.com/p/google-web-toolkit/issues/detail?id=3496
    			-->
    		</Array>
    	</Set>
    </Configure>
    Je me suis inspiré du tutoriel ici.

    Quand j'ajoute l'item org.springframework.web.servlet. à jetty.xml, ça ne marche pas non plus.

  2. #2
    Membre averti
    Profil pro
    Inscrit en
    janvier 2009
    Messages
    199
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : janvier 2009
    Messages : 199
    Points : 335
    Points
    335
    Par défaut
    Je ne sais pas si c'est lié à mon actuel problème, mais j'ai les deux warnings suivants:
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    Description	Resource	Path	Location	Type
    Classpath entry com.google.gwt.eclipse.core.GWT_CONTAINER will not be exported or published. Runtime ClassNotFoundExceptions may result.  	projet		P/projet	Classpath Dependency Validator Message
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
     
    Description	Resource	Path	Location	Type
    Classpath entry org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER will not be exported or published. Runtime ClassNotFoundExceptions may result.  	projet		P/projet	Classpath Dependency Validator Message

  3. #3
    in
    in est déconnecté
    Membre expérimenté Avatar de in
    Profil pro
    Inscrit en
    avril 2003
    Messages
    1 612
    Détails du profil
    Informations personnelles :
    Localisation : France, Finistère (Bretagne)

    Informations forums :
    Inscription : avril 2003
    Messages : 1 612
    Points : 1 718
    Points
    1 718
    Par défaut
    Bonjour,

    je ne sais pas si ça va résoudre ton souci mais j'avais un souci du même ordre avec mes classes de test que GWT essayer de compiler en JS. Pour éviter ça dans mon gwt.xml j'ai

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    <!-- 
    	 to avoid error 
    	 No source code is available for type org.junit.Assert; did you forget to inherit a required module?
    	 remove test classes from compilation
    	  -->
    	<source path="client" excludes="**/*Test.java"></source>
    si ça peut t'aider

    [EDIT]
    maintenant que je relis ton message, ma solution ne va sans doute rien t'apporter ... désolé.
    "If email had been around before the telephone was invented, people would have said, 'Hey, forget email! With this new telephone invention I can actually talk to people!"

    Besoin d'une nouvelle méthode pour développer ? -> http://www.la-rache.com/

Discussions similaires

  1. [GWT + Maven] problème entre le hosted mode et le war généré
    Par PhilippeGibault dans le forum GWT et Vaadin
    Réponses: 2
    Dernier message: 13/03/2012, 18h14
  2. [Maven + GWT + Spring + Hibernate] Problème d'instantiation de classes
    Par PhilippeGibault dans le forum GWT et Vaadin
    Réponses: 12
    Dernier message: 15/02/2012, 14h37
  3. GWT Hosted Mode
    Par rgomes dans le forum Ubuntu
    Réponses: 1
    Dernier message: 05/01/2009, 10h19
  4. [résolution de noms] [réseau] problème fichier hosts
    Par Aldo dans le forum Administration
    Réponses: 2
    Dernier message: 11/04/2005, 22h38
  5. [VB.NET] Problème exécution en mode release.
    Par leSeb dans le forum Windows Forms
    Réponses: 2
    Dernier message: 07/01/2005, 18h39

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