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

Hibernate Java Discussion :

Nouveau projet Jee JPA/Hibernate


Sujet :

Hibernate Java

Vue hybride

Message précédent Message précédent   Message suivant Message suivant
  1. #1
    Membre éprouvé

    Homme Profil pro
    Développeur informatique
    Inscrit en
    Octobre 2013
    Messages
    1 116
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Paris (Île de France)

    Informations professionnelles :
    Activité : Développeur informatique
    Secteur : Conseil

    Informations forums :
    Inscription : Octobre 2013
    Messages : 1 116
    Par défaut Nouveau projet Jee JPA/Hibernate
    Bonjour,

    Je fais un nouveau projet JEE JPA/Hibernatefrom scratch.
    Et je suis un peu perdu.
    Car d'habitude j'ai le socle. déjà fait

    Je travaille sous Eclipse Jee oxygen,
    J'utilise Wamp pour avoir une base MySql
    J'utilise TomEE comme Serveur pour avoir un environement jee complet

    J'ai fait les fichiers de configurations suivants :
    - web.xml
    - persistance.xml
    - bean.xml

    J'ai séparé mon projet en plusieurs projets
    La partie métier est dans un projet séparé.

    J'ai l'impression que TommEE ne trouve pas mon projet externe contenant mes Entity

    Si vous avez une idée de ce que j'ai oublié.


    Voici la console

    Cordialement
    Fabrice
    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
    <table width="100%" border="0" cellspacing="0" cellpadding="0"><tr>
    	<td style="border: 0; padding: 0; text-align: left">Code  :</td>
    	<td style="border: 0; padding: 0; text-align: right"><a href="#" onclick="return ano_selectionnerCode(this);">Sélectionner tout</a> -
    	<a href="#" onclick="return ano_etendreCode(this);">Visualiser dans une fenêtre à part</a></td></tr></table>
    	<pre class="bbcode_code" style="height:36px;">Insérer le code ici</pre>
    avr. 19, 2018 9:08:43 AM sun.reflect.NativeMethodAccessorImpl invoke
    AVERTISSEMENT: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:xComptaJee' did not find a matching property.
    avr. 19, 2018 9:08:43 AM sun.reflect.NativeMethodAccessorImpl invoke
    INFOS: Server version:        Apache Tomcat (TomEE)/8.5.6 (7.0.2)
    avr. 19, 2018 9:08:43 AM sun.reflect.NativeMethodAccessorImpl invoke
    INFOS: Server built:          Oct 6 2016 20:15:31 UTC
    avr. 19, 2018 9:08:43 AM sun.reflect.NativeMethodAccessorImpl invoke
    INFOS: Server number:         8.5.6.0
    avr. 19, 2018 9:08:43 AM sun.reflect.NativeMethodAccessorImpl invoke
    INFOS: OS Name:               Windows 10
    avr. 19, 2018 9:08:43 AM sun.reflect.NativeMethodAccessorImpl invoke
    INFOS: OS Version:            10.0
    avr. 19, 2018 9:08:43 AM sun.reflect.NativeMethodAccessorImpl invoke
    INFOS: Architecture:          amd64
    avr. 19, 2018 9:08:43 AM sun.reflect.NativeMethodAccessorImpl invoke
    INFOS: Java Home:             C:\Program Files\Java\jre1.8.0_162
    avr. 19, 2018 9:08:43 AM sun.reflect.NativeMethodAccessorImpl invoke
    INFOS: JVM Version:           1.8.0_162-b12
    avr. 19, 2018 9:08:43 AM sun.reflect.NativeMethodAccessorImpl invoke
    INFOS: JVM Vendor:            Oracle Corporation
    avr. 19, 2018 9:08:43 AM sun.reflect.NativeMethodAccessorImpl invoke
    INFOS: CATALINA_BASE:         D:\Dropbox\Eclipse\workspaces\xCompta\.metadata\.plugins\org.eclipse.wst.server.core\tmp0
    avr. 19, 2018 9:08:43 AM sun.reflect.NativeMethodAccessorImpl invoke
    INFOS: CATALINA_HOME:         P:\apache-tomee-webprofile-7.0.2
    avr. 19, 2018 9:08:43 AM sun.reflect.NativeMethodAccessorImpl invoke
    INFOS: Command line argument: -Dcatalina.base=D:\Dropbox\Eclipse\workspaces\xCompta\.metadata\.plugins\org.eclipse.wst.server.core\tmp0
    avr. 19, 2018 9:08:43 AM sun.reflect.NativeMethodAccessorImpl invoke
    INFOS: Command line argument: -Dcatalina.home=P:\apache-tomee-webprofile-7.0.2
    avr. 19, 2018 9:08:43 AM sun.reflect.NativeMethodAccessorImpl invoke
    INFOS: Command line argument: -Dwtp.deploy=D:\Dropbox\Eclipse\workspaces\xCompta\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps
    avr. 19, 2018 9:08:43 AM sun.reflect.NativeMethodAccessorImpl invoke
    INFOS: Command line argument: -Djava.endorsed.dirs=P:\apache-tomee-webprofile-7.0.2\endorsed
    avr. 19, 2018 9:08:43 AM sun.reflect.NativeMethodAccessorImpl invoke
    INFOS: Command line argument: -Dfile.encoding=UTF-8
    avr. 19, 2018 9:08:43 AM sun.reflect.DelegatingMethodAccessorImpl invoke
    INFOS: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Java\jre1.8.0_162\bin;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:/Program Files/Java/jre1.8.0_162/bin/server;C:/Program Files/Java/jre1.8.0_162/bin;C:/Program Files/Java/jre1.8.0_162/lib/amd64;C:\ProgramData\Oracle\Java\javapath;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Skype\Phone\;P:\Programmes\Git\cmd;D:\Utilisateurs\Fabrice\AppData\Local\Microsoft\WindowsApps;;p:\Program Files\Microsoft VS Code\bin;P:\eclipsejee oxygen;;.
    avr. 19, 2018 9:08:44 AM sun.reflect.DelegatingMethodAccessorImpl invoke
    INFOS: Initializing ProtocolHandler ["http-nio-8080"]
    avr. 19, 2018 9:08:44 AM sun.reflect.DelegatingMethodAccessorImpl invoke
    INFOS: Using a shared selector for servlet write/read
    avr. 19, 2018 9:08:44 AM sun.reflect.DelegatingMethodAccessorImpl invoke
    INFOS: Initializing ProtocolHandler ["ajp-nio-8009"]
    avr. 19, 2018 9:08:44 AM sun.reflect.DelegatingMethodAccessorImpl invoke
    INFOS: Using a shared selector for servlet write/read
    avr. 19, 2018 9:08:45 AM org.apache.openejb.util.OptionsLog info
    INFOS: Using 'openejb.jdbc.datasource-creator=org.apache.tomee.jdbc.TomEEDataSourceCreator'
    avr. 19, 2018 9:08:45 AM org.apache.openejb.OpenEJB$Instance <init>
    INFOS: ********************************************************************************
    avr. 19, 2018 9:08:45 AM org.apache.openejb.OpenEJB$Instance <init>
    INFOS: OpenEJB <a href="http://tomee.apache.org/" target="_blank">http://tomee.apache.org/</a>
    avr. 19, 2018 9:08:45 AM org.apache.openejb.OpenEJB$Instance <init>
    INFOS: Startup: Thu Apr 19 09:08:45 CEST 2018
    avr. 19, 2018 9:08:45 AM org.apache.openejb.OpenEJB$Instance <init>
    INFOS: Copyright 1999-2016 (C) Apache OpenEJB Project, All Rights Reserved.
    avr. 19, 2018 9:08:45 AM org.apache.openejb.OpenEJB$Instance <init>
    INFOS: Version: 7.0.2
    avr. 19, 2018 9:08:45 AM org.apache.openejb.OpenEJB$Instance <init>
    INFOS: Build date: 20161106
    avr. 19, 2018 9:08:45 AM org.apache.openejb.OpenEJB$Instance <init>
    INFOS: Build time: 07:23
    avr. 19, 2018 9:08:45 AM org.apache.openejb.OpenEJB$Instance <init>
    INFOS: ********************************************************************************
    avr. 19, 2018 9:08:45 AM org.apache.openejb.OpenEJB$Instance <init>
    INFOS: openejb.home = P:\apache-tomee-webprofile-7.0.2
    avr. 19, 2018 9:08:45 AM org.apache.openejb.OpenEJB$Instance <init>
    INFOS: openejb.base = D:\Dropbox\Eclipse\workspaces\xCompta\.metadata\.plugins\org.eclipse.wst.server.core\tmp0
    avr. 19, 2018 9:08:45 AM org.apache.openejb.cdi.CdiBuilder initializeOWB
    INFOS: Created new singletonService org.apache.openejb.cdi.ThreadSingletonServiceImpl@d83da2e
    avr. 19, 2018 9:08:45 AM org.apache.openejb.cdi.CdiBuilder initializeOWB
    INFOS: Succeeded in installing singleton service
    avr. 19, 2018 9:08:45 AM org.apache.openejb.config.ConfigurationFactory init
    INFOS: TomEE configuration file is 'D:\Dropbox\Eclipse\workspaces\xCompta\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\conf\openejb.xml'
    avr. 19, 2018 9:08:45 AM org.apache.openejb.config.ConfigurationFactory configureService
    INFOS: Configuring Service(id=Tomcat Security Service, type=SecurityService, provider-id=Tomcat Security Service)
    avr. 19, 2018 9:08:45 AM org.apache.openejb.config.ConfigurationFactory configureService
    INFOS: Configuring Service(id=Default Transaction Manager, type=TransactionManager, provider-id=Default Transaction Manager)
    avr. 19, 2018 9:08:45 AM org.apache.openejb.config.ConfigurationFactory configureService
    INFOS: Configuring Service(id=My DataSource, type=Resource, provider-id=Default JDBC Database)
    avr. 19, 2018 9:08:45 AM org.apache.openejb.config.ConfigurationFactory configureService
    INFOS: Configuring Service(id=My Unmanaged DataSource, type=Resource, provider-id=Default JDBC Database)
    avr. 19, 2018 9:08:45 AM org.apache.openejb.config.ConfigurationFactory configureService
    INFOS: Configuring Service(id=My Singleton Container, type=Container, provider-id=Default Singleton Container)
    avr. 19, 2018 9:08:45 AM org.apache.openejb.config.ConfigurationFactory configureService
    INFOS: Configuring Service(id=My Stateful Container, type=Container, provider-id=Default Stateful Container)
    avr. 19, 2018 9:08:45 AM org.apache.openejb.config.ConfigurationFactory configureService
    INFOS: Configuring Service(id=My Stateless Container, type=Container, provider-id=Default Stateless Container)
    avr. 19, 2018 9:08:45 AM org.apache.openejb.config.DeploymentsResolver loadFrom
    AVERTISSEMENT: File error: <Deployments dir="apps/"> - Does not exist: D:\Dropbox\Eclipse\workspaces\xCompta\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\apps
    avr. 19, 2018 9:08:45 AM org.apache.openejb.util.OptionsLog info
    INFOS: Using 'openejb.deployments.classpath=false'
    avr. 19, 2018 9:08:45 AM org.apache.openejb.assembler.classic.Assembler createRecipe
    INFOS: Creating TransactionManager(id=Default Transaction Manager)
    avr. 19, 2018 9:08:45 AM org.apache.openejb.assembler.classic.Assembler createRecipe
    INFOS: Creating SecurityService(id=Tomcat Security Service)
    avr. 19, 2018 9:08:45 AM org.apache.openejb.assembler.classic.Assembler createRecipe
    INFOS: Creating Resource(id=My DataSource)
    avr. 19, 2018 9:08:46 AM org.apache.openejb.assembler.classic.Assembler createRecipe
    INFOS: Creating Resource(id=My Unmanaged DataSource)
    avr. 19, 2018 9:08:46 AM org.apache.openejb.assembler.classic.Assembler createRecipe
    INFOS: Creating Container(id=My Singleton Container)
    avr. 19, 2018 9:08:46 AM org.apache.openejb.assembler.classic.Assembler createRecipe
    INFOS: Creating Container(id=My Stateful Container)
    avr. 19, 2018 9:08:46 AM org.apache.openejb.core.stateful.SimplePassivater init
    INFOS: Using directory D:\Utilisateurs\Fabrice\AppData\Local\Temp for stateful session passivation
    avr. 19, 2018 9:08:46 AM org.apache.openejb.assembler.classic.Assembler createRecipe
    INFOS: Creating Container(id=My Stateless Container)
    avr. 19, 2018 9:08:46 AM org.apache.openejb.server.ServiceManager initServer
    INFOS: Creating ServerService(id=cxf-rs)
    avr. 19, 2018 9:08:46 AM org.apache.openejb.server.SimpleServiceManager start
    INFOS:   ** Bound Services **
    avr. 19, 2018 9:08:46 AM org.apache.openejb.server.SimpleServiceManager printRow
    INFOS:   NAME                 IP              PORT  
    avr. 19, 2018 9:08:46 AM org.apache.openejb.server.SimpleServiceManager start
    INFOS: -------
    avr. 19, 2018 9:08:46 AM org.apache.openejb.server.SimpleServiceManager start
    INFOS: Ready!
    avr. 19, 2018 9:08:46 AM sun.reflect.DelegatingMethodAccessorImpl invoke
    INFOS: Initialization processed in 3565 ms
    avr. 19, 2018 9:08:46 AM org.apache.tomee.catalina.OpenEJBNamingContextListener bindResource
    INFOS: Importing a Tomcat Resource with id 'UserDatabase' of type 'org.apache.catalina.UserDatabase'.
    avr. 19, 2018 9:08:46 AM org.apache.openejb.assembler.classic.Assembler createRecipe
    INFOS: Creating Resource(id=UserDatabase)
    avr. 19, 2018 9:08:46 AM sun.reflect.DelegatingMethodAccessorImpl invoke
    INFOS: Démarrage du service Catalina
    avr. 19, 2018 9:08:46 AM sun.reflect.DelegatingMethodAccessorImpl invoke
    INFOS: Starting Servlet Engine: Apache Tomcat (TomEE)/8.5.6 (7.0.2)
    avr. 19, 2018 9:08:46 AM org.apache.tomee.catalina.TomcatWebAppBuilder init
    INFOS: ------------------------- localhost -> /
    avr. 19, 2018 9:08:46 AM org.apache.openejb.config.ConfigurationFactory configureApplication
    INFOS: Configuring enterprise application: D:\Dropbox\Eclipse\workspaces\xCompta\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\ROOT
    avr. 19, 2018 9:08:46 AM org.apache.openejb.config.ConfigurationFactory configureService
    INFOS: Configuring Service(id=Default Managed Container, type=Container, provider-id=Default Managed Container)
    avr. 19, 2018 9:08:46 AM org.apache.openejb.config.AutoConfig createContainer
    INFOS: Auto-creating a container for bean .Comp1569735099: Container(type=MANAGED, id=Default Managed Container)
    avr. 19, 2018 9:08:46 AM org.apache.openejb.assembler.classic.Assembler createRecipe
    INFOS: Creating Container(id=Default Managed Container)
    avr. 19, 2018 9:08:46 AM org.apache.openejb.core.managed.SimplePassivater init
    INFOS: Using directory D:\Utilisateurs\Fabrice\AppData\Local\Temp for stateful session passivation
    avr. 19, 2018 9:08:46 AM org.apache.openejb.config.AppInfoBuilder build
    INFOS: Enterprise application "D:\Dropbox\Eclipse\workspaces\xCompta\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\ROOT" loaded.
    avr. 19, 2018 9:08:46 AM org.apache.openejb.assembler.classic.Assembler createApplication
    INFOS: Assembling app: D:\Dropbox\Eclipse\workspaces\xCompta\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\ROOT
    avr. 19, 2018 9:08:46 AM org.apache.openejb.assembler.classic.Assembler createApplication
    INFOS: Deployed Application(path=D:\Dropbox\Eclipse\workspaces\xCompta\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\ROOT)
    avr. 19, 2018 9:08:47 AM org.apache.tomee.catalina.TomcatWebAppBuilder init
    INFOS: ------------------------- localhost -> /fr.xcompta.jee
    avr. 19, 2018 9:08:49 AM org.apache.openejb.config.ConfigurationFactory configureApplication
    INFOS: Configuring enterprise application: D:\Dropbox\Eclipse\workspaces\xCompta\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\xComptaJee
    avr. 19, 2018 9:08:50 AM org.apache.openejb.config.AutoConfig deploy
    INFOS: Configuring PersistenceUnit(name=xCompta, provider=org.hibernate.jpa.HibernatePersistenceProvider)
    avr. 19, 2018 9:08:50 AM org.apache.openejb.config.AutoConfig setJtaDataSource
    INFOS: Adjusting PersistenceUnit xCompta <jta-data-source> to Resource ID 'My DataSource' from 'xcomptap'
    avr. 19, 2018 9:08:50 AM org.apache.openejb.config.AutoConfig setNonJtaDataSource
    INFOS: Adjusting PersistenceUnit xCompta <non-jta-data-source> to Resource ID 'My Unmanaged DataSource' from 'null'
    avr. 19, 2018 9:08:50 AM org.apache.openejb.config.AppInfoBuilder build
    INFOS: Enterprise application "D:\Dropbox\Eclipse\workspaces\xCompta\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\xComptaJee" loaded.
    avr. 19, 2018 9:08:50 AM org.apache.openejb.assembler.classic.Assembler createApplication
    INFOS: Assembling app: D:\Dropbox\Eclipse\workspaces\xCompta\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\xComptaJee
    avr. 19, 2018 9:08:50 AM org.apache.openejb.cdi.CdiBuilder initSingleton
    INFOS: Existing thread singleton service in SystemInstance(): org.apache.openejb.cdi.ThreadSingletonServiceImpl@d83da2e
    avr. 19, 2018 9:08:50 AM org.apache.openejb.cdi.OpenEJBLifecycle startApplication
    INFOS: OpenWebBeans Container is starting...
    avr. 19, 2018 9:08:50 AM org.apache.webbeans.plugins.PluginLoader startUp
    INFOS: Adding OpenWebBeansPlugin : [CdiPlugin]
    avr. 19, 2018 9:08:50 AM org.apache.webbeans.config.BeansDeployer validateInjectionPoints
    INFOS: All injection points were validated successfully.
    avr. 19, 2018 9:08:50 AM org.apache.openejb.cdi.OpenEJBLifecycle startApplication
    INFOS: OpenWebBeans Container has started, it took 288 ms.
    avr. 19, 2018 9:08:50 AM org.apache.openejb.assembler.classic.Assembler createApplication
    INFOS: Deployed Application(path=D:\Dropbox\Eclipse\workspaces\xCompta\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\xComptaJee)
    avr. 19, 2018 9:08:50 AM sun.reflect.DelegatingMethodAccessorImpl invoke
    INFOS: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
    avr. 19, 2018 9:08:50 AM sun.reflect.DelegatingMethodAccessorImpl invoke
    INFOS: Starting ProtocolHandler [http-nio-8080]
    avr. 19, 2018 9:08:50 AM sun.reflect.DelegatingMethodAccessorImpl invoke
    INFOS: Starting ProtocolHandler [ajp-nio-8009]
    avr. 19, 2018 9:08:50 AM sun.reflect.DelegatingMethodAccessorImpl invoke
    INFOS: Server startup in 4405 ms
    avr. 19, 2018 9:11:57 AM org.apache.catalina.core.StandardWrapperValve invoke
    GRAVE: Servlet.service() for servlet [fr.xcomptaJee.controller.ClasseControler] in context with path [/fr.xcompta.jee] threw exception [L''exécution de la servlet a lancé une exception] with root cause
    java.lang.ClassNotFoundException: fr.xcompta.base.Classe
    	at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1285)
    	at org.apache.tomee.catalina.TomEEWebappClassLoader.loadClass(TomEEWebappClassLoader.java:204)
    	at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1119)
    	at fr.xcomptaJee.controller.ClasseControler.doGet(ClasseControler.java:41)
    	at javax.servlet.http.HttpServlet.service(HttpServlet.java:622)
    	at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
    	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:230)
    	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)
    	at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
    	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:192)
    	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)
    	at org.apache.openejb.server.httpd.EEFilter.doFilter(EEFilter.java:65)
    	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:192)
    	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)
    	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:198)
    	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:108)
    	at org.apache.tomee.catalina.OpenEJBValve.invoke(OpenEJBValve.java:44)
    	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
    	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140)
    	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
    	at org.apache.tomee.catalina.OpenEJBSecurityListener$RequestCapturer.invoke(OpenEJBSecurityListener.java:97)
    	at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:620)
    	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)
    	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:349)
    	at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:784)
    	at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
    	at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:802)
    	at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1410)
    	at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
    	at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
    	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    	at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
    	at java.lang.Thread.run(Unknown Source)
     
    </div>
    Consultez mes articles sur l'accessibilité numérique :

    Comment rendre son application SWING accessible aux non voyants
    Créer des applications web accessibles à tous

    YES WE CAN BLANCHE !!!

    Rappelez-vous que Google est le plus grand aveugle d'Internet...
    Plus c'est accessible pour nous, plus c'est accessible pour lui,
    et meilleur sera votre score de référencement !

  2. #2
    Rédacteur/Modérateur
    Avatar de andry.aime
    Homme Profil pro
    Inscrit en
    Septembre 2007
    Messages
    8 391
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : Ile Maurice

    Informations forums :
    Inscription : Septembre 2007
    Messages : 8 391
    Par défaut
    Bonjour,

    Comment tu gères les dépendances? avec Maven?

    A+.

  3. #3
    Membre éprouvé

    Homme Profil pro
    Développeur informatique
    Inscrit en
    Octobre 2013
    Messages
    1 116
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Paris (Île de France)

    Informations professionnelles :
    Activité : Développeur informatique
    Secteur : Conseil

    Informations forums :
    Inscription : Octobre 2013
    Messages : 1 116
    Par défaut
    Bonjour,

    Je travaille avec TomEE, pour avoir un environement JEE plus complet qu'avec TomCat
    Ca a des répercutions sur mon POM

    J''utilise Maven voici 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
    <table width="100%" border="0" cellspacing="0" cellpadding="0"><tr>
    	<td style="border: 0; padding: 0; text-align: left">Code  :</td>
    	<td style="border: 0; padding: 0; text-align: right"><a href="#" onclick="return ano_selectionnerCode(this);">Sélectionner tout</a> -
    	<a href="#" onclick="return ano_etendreCode(this);">Visualiser dans une fenêtre à part</a></td></tr></table>
    	<pre class="bbcode_code" style="height:36px;">Insérer le code ici</pre>
    <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/xsd/maven-4.0.0.xsd">
      <modelVersion>4.0.0</modelVersion>
      <groupId>fr.xcompta</groupId>
      <artifactId>fr.xcompta.jee</artifactId>
      <version>0.0.1-SNAPSHOT</version>
      <packaging>war</packaging>
      <build>
        <sourceDirectory>src</sourceDirectory>
        <plugins>
          <plugin>
            <artifactId>maven-compiler-plugin</artifactId>
            <version>3.5.1</version>
            <configuration>
              <source>1.8</source>
              <target>1.8</target>
            </configuration>
          </plugin>
          <plugin>
            <artifactId>maven-war-plugin</artifactId>
            <version>3.0.0</version>
            <configuration>
              <warSourceDirectory>WebContent</warSourceDirectory>
            </configuration>
          </plugin>
        </plugins>
      </build>
     
    <dependencies>
    <!-- dépendance internes -->
    <!--
        <dependency>
          <groupId>fr.xcompta</groupId>
      <artifactId>xcompta-core</artifactId>
      <version>0.0.1-SNAPSHOT</version>
      </dependency>
     
        <dependency>
          <groupId>fr.xcompta</groupId>
      <artifactId>xcompta-dao</artifactId>
      <version>0.0.1-SNAPSHOT</version>
      </dependency>
      -->
     
      <!-- dépendance externes -->
    	<dependency>
        	<groupId>javax.servlet</groupId>
        	<artifactId>jstl</artifactId>
        	<version>1.2</version>
    	</dependency>
     
    	<dependency>
        	<groupId>org.jboss.weld.servlet</groupId>
        	<artifactId>weld-servlet</artifactId>
        	<version>2.2.11.Final</version>
    	</dependency>
     
    	<dependency>
        <groupId>org.jboss</groupId>
        <artifactId>jandex</artifactId>
        <version>1.2.2.Final</version>
    </dependency>
     
    	<dependency>
        	<groupId>junit</groupId>
        	<artifactId>junit</artifactId>
        	<version>4.11</version>
    	</dependency>
     
    	<dependency>
        <groupId>org.hibernate</groupId>
        <artifactId>hibernate-entitymanager</artifactId>
        <version>5.0.9.Final</version>
    </dependency>
     
    <dependency>
        <groupId>org.hibernate</groupId>
        <artifactId>hibernate-java8</artifactId>
        <version>5.0.9.Final</version>
    </dependency>
     
    <dependency>
        <groupId>mysql</groupId>
        <artifactId>mysql-connector-java</artifactId>
        <version>5.1.6</version>
    </dependency>
     
    <dependency>
        <groupId>log4j</groupId>
        <artifactId>log4j</artifactId>
        <version>1.2.17</version>
    </dependency>
     
    </dependencies>
    </project>
    </div>
    Consultez mes articles sur l'accessibilité numérique :

    Comment rendre son application SWING accessible aux non voyants
    Créer des applications web accessibles à tous

    YES WE CAN BLANCHE !!!

    Rappelez-vous que Google est le plus grand aveugle d'Internet...
    Plus c'est accessible pour nous, plus c'est accessible pour lui,
    et meilleur sera votre score de référencement !

  4. #4
    Rédacteur/Modérateur
    Avatar de andry.aime
    Homme Profil pro
    Inscrit en
    Septembre 2007
    Messages
    8 391
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : Ile Maurice

    Informations forums :
    Inscription : Septembre 2007
    Messages : 8 391
    Par défaut
    Dé-commente les deux autres projets requis. Fait un mvn install des deux projets, fait ensuite un mvn package ou mvn install sur le projet à deployer. Clique droite ensuite sur le projet --> Properties --> Deployment Assembly, regarde ensuite si il y a Maven Dependencies --> WEB-INF/lib.

    PS: utilise la balise code (bouton #)

    A+.

  5. #5
    Membre éprouvé

    Homme Profil pro
    Développeur informatique
    Inscrit en
    Octobre 2013
    Messages
    1 116
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Paris (Île de France)

    Informations professionnelles :
    Activité : Développeur informatique
    Secteur : Conseil

    Informations forums :
    Inscription : Octobre 2013
    Messages : 1 116
    Par défaut
    Merci pour ton aide

    Je ne comprends pas il ne veut pas builder xComptaDao, qui dépend de xComptaCore
    Et les deux sont référencé dans xcomptaJee

    La référence est Voixi le résultat du build

    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
    <table width="100%" border="0" cellspacing="0" cellpadding="0"><tr>
    	<td style="border: 0; padding: 0; text-align: left">Code  :</td>
    	<td style="border: 0; padding: 0; text-align: right"><a href="#" onclick="return ano_selectionnerCode(this);">Sélectionner tout</a> -
    	<a href="#" onclick="return ano_etendreCode(this);">Visualiser dans une fenêtre à part</a></td></tr></table>
    	<pre class="bbcode_code" style="height:36px;">Insérer le code ici</pre>
    [INFO] Scanning for projects...
    [INFO]                                                                         
    [INFO] ------------------------------------------------------------------------
    [INFO] Building xcompta-dao 0.0.1-SNAPSHOT
    [INFO] ------------------------------------------------------------------------
    [WARNING] The POM for fr.xcompta:xcompta-core:jar:.0.1-SNAPSHOT is missing, no dependency information available
    [INFO] ------------------------------------------------------------------------
    [INFO] BUILD FAILURE
    [INFO] ------------------------------------------------------------------------
    [INFO] Total time: 0.300 s
    [INFO] Finished at: 2018-04-20T13:10:44+02:00
    [INFO] Final Memory: 6M/155M
    [INFO] ------------------------------------------------------------------------
    [ERROR] Failed to execute goal on project xcompta-dao: Could not resolve dependencies for project fr.xcompta:xcompta-dao:jar:0.0.1-SNAPSHOT: Could not find artifact fr.xcompta:xcompta-core:jar:.0.1-SNAPSHOT -> [Help 1]
    [ERROR] 
    [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
    [ERROR] Re-run Maven using the -X switch to enable full debug logging.
    [ERROR] 
    [ERROR] For more information about the errors and possible solutions, please read the following articles:
    [ERROR] [Help 1] <a href="http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException" target="_blank">http://cwiki.apache.org/confluence/d...utionException</a>
    </div>
    Le Pom de xcompta dao fait référence au bon nom
    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
    <<table width="100%" border="0" cellspacing="0" cellpadding="0"><tr>
    	<td style="border: 0; padding: 0; text-align: left">Code  :</td>
    	<td style="border: 0; padding: 0; text-align: right"><a href="#" onclick="return ano_selectionnerCode(this);">Sélectionner tout</a> -
    	<a href="#" onclick="return ano_etendreCode(this);">Visualiser dans une fenêtre à part</a></td></tr></table>
    	<pre class="bbcode_code" style="height:36px;">Insérer le code ici</pre>
    <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/xsd/maven-4.0.0.xsd">
      <modelVersion>4.0.0</modelVersion>
      <groupId>fr.xcompta</groupId>
      <artifactId>xcompta-dao</artifactId>
      <version>0.0.1-SNAPSHOT</version>
     
        <properties>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    <maven.compiler.source>1.8</maven.compiler.source>
    <maven.compiler.target>1.8</maven.compiler.target>
    </properties>
     
      <dependencies>
      <dependency>
      <groupId>fr.xcompta</groupId>
      <artifactId>xcompta-core</artifactId>
      <version>.0.1-SNAPSHOT</version>
      </dependency>
     
    <dependency>
    <groupId>org.hibernate</groupId>
    <artifactId>hibernate-core</artifactId>
    <version>5.3.0.CR1</version>
    	</dependency>
     
    	<dependency>
    		<groupId>org.hibernate</groupId>
    			<artifactId>hibernate-entitymanager</artifactId>
    			<version>5.2.8.Final</version>
    		</dependency>
    <dependency>
    	<groupId>org.hsqldb</groupId>
    	<artifactId>hsqldb</artifactId>
    	<version>2.3.1</version>
    </dependency>
     
    <dependency>
        <groupId>log4j</groupId>
        <artifactId>log4j</artifactId>
        <version>1.2.17</version>
    </dependency>
    </dependencies>
     
      </project>
     
    </div>
    Consultez mes articles sur l'accessibilité numérique :

    Comment rendre son application SWING accessible aux non voyants
    Créer des applications web accessibles à tous

    YES WE CAN BLANCHE !!!

    Rappelez-vous que Google est le plus grand aveugle d'Internet...
    Plus c'est accessible pour nous, plus c'est accessible pour lui,
    et meilleur sera votre score de référencement !

  6. #6
    Rédacteur/Modérateur
    Avatar de andry.aime
    Homme Profil pro
    Inscrit en
    Septembre 2007
    Messages
    8 391
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : Ile Maurice

    Informations forums :
    Inscription : Septembre 2007
    Messages : 8 391
    Par défaut
    Tu lances d'abord mvn clean install pour le projet xcompta-core, ensuite tu le lances pour le projet xcompta-dao. Vérifie ensuite si les jar sont bien créés dans ton repositori .m2/repository/fr/xcompta/xcompta-core et xcompta-dao. Lance ensuite mvn clean install pour le projet fr.xcompta.jee.

    Sinon, pour l'utilisation de la balise CODE, regarde ici: https://www.developpez.net/forums/d5...ation-boutons/

    A+.

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

Discussions similaires

  1. nouveau projet jee
    Par natalie75 dans le forum Développement Web en Java
    Réponses: 2
    Dernier message: 29/05/2015, 10h13
  2. Projet JEE, EJB3 + Hibernate
    Par velocity dans le forum Hibernate
    Réponses: 1
    Dernier message: 25/04/2013, 17h16
  3. Projet Java, JPA Hibernate
    Par noussa88 dans le forum JPA
    Réponses: 0
    Dernier message: 08/07/2011, 17h41
  4. Quels framework pour un nouveau projet JEE?
    Par ganga dans le forum Java EE
    Réponses: 6
    Dernier message: 28/06/2010, 07h51
  5. Créer un nouveau projet JEE, quelles technos choisir ?
    Par kroax dans le forum Frameworks Web
    Réponses: 5
    Dernier message: 22/05/2007, 09h05

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