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 :

Problème de création d'un EJB Entity


Sujet :

Wildfly/JBoss Java

  1. #1
    Membre à l'essai
    Profil pro
    Inscrit en
    Août 2005
    Messages
    25
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Août 2005
    Messages : 25
    Points : 20
    Points
    20
    Par défaut Problème de création d'un EJB Entity
    Bonjour,

    Je suis débutante dans la création d'application EJB.
    J'ai trouvé un tuto sur internet : http://www.eclipsetotale.com/article...c_Eclipse.html

    J'ai réussi à créer l'EJB Session, mais je n'arrive absolument pas à créer l'EJB Entity.

    Voila ce que ma console me renvoi:
    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
    20:06:17,927 INFO  [Server] Starting JBoss (MX MicroKernel)...
    20:06:17,927 INFO  [Server] Release ID: JBoss [Zion] 4.0.5.GA (build: CVSTag=Branch_4_0 date=200610162339)
    20:06:17,927 INFO  [Server] Home Dir: C:\Program Files\jboss-4.0.5.GA
    20:06:17,927 INFO  [Server] Home URL: file:/C:/Program Files/jboss-4.0.5.GA/
    20:06:17,927 INFO  [Server] Patch URL: null
    20:06:17,927 INFO  [Server] Server Name: default
    20:06:17,927 INFO  [Server] Server Home Dir: C:\Program Files\jboss-4.0.5.GA\server\default
    20:06:17,927 INFO  [Server] Server Home URL: file:/C:/Program Files/jboss-4.0.5.GA/server/default/
    20:06:17,927 INFO  [Server] Server Log Dir: C:\Program Files\jboss-4.0.5.GA\server\default\log
    20:06:17,927 INFO  [Server] Server Temp Dir: C:\Program Files\jboss-4.0.5.GA\server\default\tmp
    20:06:17,927 INFO  [Server] Root Deployment Filename: jboss-service.xml
    20:06:18,302 INFO  [ServerInfo] Java version: 1.5.0_04,Sun Microsystems Inc.
    20:06:18,302 INFO  [ServerInfo] Java VM: Java HotSpot(TM) Client VM 1.5.0_04-b05,Sun Microsystems Inc.
    20:06:18,302 INFO  [ServerInfo] OS-System: Windows XP 5.1,x86
    20:06:18,896 INFO  [Server] Core system initialized
    20:06:21,115 INFO  [Log4jService$URLWatchTimerTask] Configuring from URL: resource:log4j.xml
    20:06:22,834 INFO  [SocketServerInvoker] Invoker started for locator: InvokerLocator [socket://192.168.1.50:3873/]
    20:06:27,006 INFO  [ServiceEndpointManager] WebServices: jbossws-1.0.3.SP1 (date=200609291417)
    20:06:28,974 INFO  [SnmpAgentService] SNMP agent going active
    20:06:29,318 INFO  [WebService] Using RMI server codebase: http://Allison:8083/
    20:06:30,584 INFO  [CorbaNamingService] Naming: [IOR:000000000000002B49444C3A6F6D672E6F72672F436F734E616D696E672F4E616D696E67436F6E746578744578743A312E3000000000000200000000000000E8000102000000000D3139322E3136382E312E353000000DC8000000114A426F73732F4E616D696E672F726F6F74000000000000050000000000000008000000004A414300000000010000001C00000000000100010000000105010001000101090000000105010001000000210000006000000000000000010000000000000024000000200000007E00000000000000010000000D3139322E3136382E312E353000000DC900400000000000000000001004010008060667810201010100000000000000000000000000000000000000000000002000000004000000000000001F0000000400000003000000010000002000000000000000020000002000000004000000000000001F0000000400000003]
    20:06:30,756 INFO  [CorbaTransactionService] TransactionFactory: [IOR:000000000000003049444C3A6F72672F6A626F73732F746D2F69696F702F5472616E73616374696F6E466163746F72794578743A312E30000000000200000000000000E8000102000000000D3139322E3136382E312E353000000DC8000000144A426F73732F5472616E73616374696F6E732F46000000050000000000000008000000004A414300000000010000001C00000000000100010000000105010001000101090000000105010001000000210000006000000000000000010000000000000024000000200000007E00000000000000010000000D3139322E3136382E312E353000000DC900400000000000000000001004010008060667810201010100000000000000000000000000000000000000000000002000000004000000000000001F0000000400000003000000010000002000000000000000020000002000000004000000000000001F0000000400000003]
    20:06:31,959 INFO  [Embedded] Catalina naming disabled
    20:06:32,084 INFO  [ClusterRuleSetFactory] Unable to find a cluster rule set in the classpath. Will load the default rule set.
    20:06:32,084 INFO  [ClusterRuleSetFactory] Unable to find a cluster rule set in the classpath. Will load the default rule set.
    20:06:32,646 INFO  [Http11BaseProtocol] Initializing Coyote HTTP/1.1 on http-0.0.0.0-8080
    20:06:32,646 INFO  [Catalina] Initialization processed in 562 ms
    20:06:32,646 INFO  [StandardService] Starting service jboss.web
    20:06:32,662 INFO  [StandardEngine] Starting Servlet Engine: Apache Tomcat/5.5.20
    20:06:32,724 INFO  [StandardHost] XML validation disabled
    20:06:32,818 INFO  [Catalina] Server startup in 172 ms
    20:06:33,052 INFO  [TomcatDeployer] deploy, ctxPath=/invoker, warUrl=.../deploy/http-invoker.sar/invoker.war/
    20:06:34,349 INFO  [WebappLoader] Dual registration of jndi stream handler: factory already defined
    20:06:35,021 INFO  [TomcatDeployer] deploy, ctxPath=/, warUrl=.../deploy/jbossweb-tomcat55.sar/ROOT.war/
    20:06:35,271 INFO  [TomcatDeployer] deploy, ctxPath=/jbossws, warUrl=.../tmp/deploy/tmp2280jbossws-context-exp.war/
    20:06:35,506 INFO  [TomcatDeployer] deploy, ctxPath=/jbossmq-httpil, warUrl=.../deploy/jms/jbossmq-httpil.sar/jbossmq-httpil.war/
    20:06:35,818 INFO  [TomcatDeployer] deploy, ctxPath=/web-console, warUrl=.../deploy/management/console-mgr.sar/web-console.war/
    20:06:36,162 INFO  [[/web-console]] MonitorsFolder: Failed to init plugin, null
    20:06:36,162 INFO  [[/web-console]] UCLs: Failed to init plugin, null
    20:06:36,193 INFO  [[/web-console]] JMS Message: Failed to init plugin, null
    20:06:36,193 INFO  [[/web-console]] JSR77 WebModule: Failed to init plugin, null
    20:06:36,209 INFO  [[/web-console]] J2EEFolder: Failed to init plugin, null
    20:06:36,209 INFO  [[/web-console]] AOPFolder: Failed to init plugin, null
    20:06:36,209 INFO  [[/web-console]] SystemFolder: Failed to init plugin, null
    20:06:36,240 INFO  [[/web-console]] MBeans: Failed to init plugin, null
    20:06:36,256 INFO  [[/web-console]] JSR77 Domains and Servers: Failed to init plugin, null
    20:06:36,256 INFO  [[/web-console]] JSR77 EJBModules and EJBs: Failed to init plugin, null
    20:06:36,256 INFO  [[/web-console]] JSR77 J2EE Apps: Failed to init plugin, null
    20:06:38,537 INFO  [MailService] Mail Service bound to java:/Mail
    20:06:39,318 INFO  [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-ha-local-jdbc.rar
    20:06:39,443 INFO  [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-ha-xa-jdbc.rar
    20:06:39,537 INFO  [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-local-jdbc.rar
    20:06:39,631 INFO  [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-xa-jdbc.rar
    20:06:39,834 INFO  [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jms/jms-ra.rar
    20:06:39,943 INFO  [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/mail-ra.rar
    20:06:40,068 INFO  [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/quartz-ra.rar
    20:06:40,099 INFO  [QuartzResourceAdapter] start quartz!!!
    20:06:40,209 INFO  [SimpleThreadPool] Job execution threads will use class loader of thread: main
    20:06:40,271 INFO  [QuartzScheduler] Quartz Scheduler v.1.5.2 created.
    20:06:40,287 INFO  [RAMJobStore] RAMJobStore initialized.
    20:06:40,287 INFO  [StdSchedulerFactory] Quartz scheduler 'DefaultQuartzScheduler' initialized from default resource file in Quartz package: 'quartz.properties'
    20:06:40,287 INFO  [StdSchedulerFactory] Quartz scheduler version: 1.5.2
    20:06:40,287 INFO  [QuartzScheduler] Scheduler DefaultQuartzScheduler_$_NON_CLUSTERED started.
    20:06:41,427 INFO  [WrapperDataSourceService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=DefaultDS' to JNDI name 'java:DefaultDS'
    20:06:41,802 INFO  [A] Bound to JNDI name: queue/A
    20:06:41,802 INFO  [B] Bound to JNDI name: queue/B
    20:06:41,802 INFO  [C] Bound to JNDI name: queue/C
    20:06:41,802 INFO  [D] Bound to JNDI name: queue/D
    20:06:41,802 INFO  [ex] Bound to JNDI name: queue/ex
    20:06:42,209 INFO  [testTopic] Bound to JNDI name: topic/testTopic
    20:06:42,224 INFO  [securedTopic] Bound to JNDI name: topic/securedTopic
    20:06:42,224 INFO  [testDurableTopic] Bound to JNDI name: topic/testDurableTopic
    20:06:42,224 INFO  [testQueue] Bound to JNDI name: queue/testQueue
    20:06:42,334 INFO  [UILServerILService] JBossMQ UIL service available at : /0.0.0.0:8093
    20:06:42,427 INFO  [DLQ] Bound to JNDI name: queue/DLQ
    20:06:42,787 INFO  [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=ConnectionFactoryBinding,name=JmsXA' to JNDI name 'java:JmsXA'
    20:06:43,177 INFO  [Ejb3Deployment] EJB3 deployment time took: 250
    20:06:43,318 WARN  [ServiceController] Ignoring request to stop nonexistent service: jboss.j2ee:jar=IntroEJB3.jar,name=GestionDeStockBean,service=EJB3
    20:06:43,318 WARN  [ServiceController] Ignoring request to destroy nonexistent service: jboss.j2ee:jar=IntroEJB3.jar,name=GestionDeStockBean,service=EJB3
    20:06:43,318 WARN  [ServiceController] Ignoring request to stop nonexistent service: jboss.j2ee:jar=IntroEJB3.jar,name=PremierEJB3Bean,service=EJB3
    20:06:43,318 WARN  [ServiceController] Ignoring request to destroy nonexistent service: jboss.j2ee:jar=IntroEJB3.jar,name=PremierEJB3Bean,service=EJB3
    20:06:43,318 WARN  [ServiceController] Problem starting service jboss.j2ee:service=EJB3,module=IntroEJB3.jar
    java.lang.RuntimeException: Illegal @PersistenceUnit on javax.persistence.EntityManager com.et.GestionDeStockBean.em :There is no default persistence unit in this deployment.
    	at org.jboss.injection.PersistenceContextHandler.handleFieldAnnotations(PersistenceContextHandler.java:182)
    	at org.jboss.injection.InjectionUtil.processFieldAnnotations(InjectionUtil.java:136)
    	at org.jboss.injection.InjectionUtil.processAnnotations(InjectionUtil.java:173)
    	at org.jboss.ejb3.EJBContainer.processMetadata(EJBContainer.java:270)
    	at org.jboss.ejb3.SessionContainer.processMetadata(SessionContainer.java:116)
    	at org.jboss.ejb3.Ejb3Deployment.processEJBContainerMetadata(Ejb3Deployment.java:273)
    	at org.jboss.ejb3.Ejb3Deployment.start(Ejb3Deployment.java:322)
    	at org.jboss.ejb3.Ejb3Module.startService(Ejb3Module.java:91)
    	at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
    	at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
    	at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
    	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    	at java.lang.reflect.Method.invoke(Unknown Source)
    	at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
    	at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
    	at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
    	at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
    	at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
    	at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
    	at $Proxy0.start(Unknown Source)
    	at org.jboss.system.ServiceController.start(ServiceController.java:417)
    	at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source)
    	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    	at java.lang.reflect.Method.invoke(Unknown Source)
    	at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
    	at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
    	at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
    	at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
    	at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
    	at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
    	at $Proxy28.start(Unknown Source)
    	at org.jboss.ejb3.EJB3Deployer.start(EJB3Deployer.java:449)
    	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    	at java.lang.reflect.Method.invoke(Unknown Source)
    	at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
    	at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
    	at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
    	at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
    	at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
    	at org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:97)
    	at org.jboss.system.InterceptorServiceMBeanSupport.invokeNext(InterceptorServiceMBeanSupport.java:238)
    	at org.jboss.ws.integration.jboss.DeployerInterceptor.start(DeployerInterceptor.java:92)
    	at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.start(SubDeployerInterceptorSupport.java:188)
    	at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:95)
    	at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
    	at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
    	at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
    	at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
    	at $Proxy29.start(Unknown Source)
    	at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
    	at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
    	at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
    	at sun.reflect.GeneratedMethodAccessor13.invoke(Unknown Source)
    	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    	at java.lang.reflect.Method.invoke(Unknown Source)
    	at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
    	at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
    	at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
    	at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
    	at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
    	at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
    	at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
    	at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
    	at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
    	at $Proxy6.deploy(Unknown Source)
    	at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
    	at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:634)
    	at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
    	at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:336)
    	at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
    	at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
    	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    	at java.lang.reflect.Method.invoke(Unknown Source)
    	at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
    	at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
    	at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
    	at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
    	at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
    	at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
    	at $Proxy0.start(Unknown Source)
    	at org.jboss.system.ServiceController.start(ServiceController.java:417)
    	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    	at java.lang.reflect.Method.invoke(Unknown Source)
    	at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
    	at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
    	at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
    	at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
    	at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
    	at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
    	at $Proxy4.start(Unknown Source)
    	at org.jboss.deployment.SARDeployer.start(SARDeployer.java:302)
    	at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
    	at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
    	at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
    	at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:766)
    	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    	at java.lang.reflect.Method.invoke(Unknown Source)
    	at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
    	at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
    	at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
    	at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
    	at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
    	at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
    	at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
    	at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
    	at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
    	at $Proxy5.deploy(Unknown Source)
    	at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482)
    	at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)
    	at org.jboss.Main.boot(Main.java:200)
    	at org.jboss.Main$1.run(Main.java:490)
    	at java.lang.Thread.run(Unknown Source)
    20:06:43,334 INFO  [EJB3Deployer] Deployed: file:/C:/Program Files/jboss-4.0.5.GA/server/default/deploy/IntroEJB3.jar
    20:06:43,396 INFO  [TomcatDeployer] deploy, ctxPath=/jmx-console, warUrl=.../deploy/jmx-console.war/
    20:06:43,771 ERROR [URLDeploymentScanner] Incomplete Deployment listing:
     
    --- MBeans waiting for other MBeans ---
    ObjectName: jboss.j2ee:service=EJB3,module=IntroEJB3.jar
      State: FAILED
      Reason: java.lang.RuntimeException: Illegal @PersistenceUnit on javax.persistence.EntityManager com.et.GestionDeStockBean.em :There is no default persistence unit in this deployment.
     
    --- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
    ObjectName: jboss.j2ee:service=EJB3,module=IntroEJB3.jar
      State: FAILED
      Reason: java.lang.RuntimeException: Illegal @PersistenceUnit on javax.persistence.EntityManager com.et.GestionDeStockBean.em :There is no default persistence unit in this deployment.
     
     
    20:06:43,974 INFO  [Http11BaseProtocol] Starting Coyote HTTP/1.1 on http-0.0.0.0-8080
    20:06:44,302 INFO  [ChannelSocket] JK: ajp13 listening on /0.0.0.0:8009
    20:06:44,349 INFO  [JkMain] Jk running ID=0 time=0/110  config=null
    20:06:44,365 INFO  [Server] JBoss (MX MicroKernel) [4.0.5.GA (build: CVSTag=Branch_4_0 date=200610162339)] Started in 26s:422ms
    Après avoir consulté un post sur ce même site, j'ai résolu le problème de persistence en ajoutant le nom dans:
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    @PersistenceContext(unitName="IntroEJB3")
    Seulement, ça ne fonctionne toujours pas.

    Voila ce que la console me renvoi:
    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
    20:10:44,349 INFO  [Server] Starting JBoss (MX MicroKernel)...
    20:10:44,349 INFO  [Server] Release ID: JBoss [Zion] 4.0.5.GA (build: CVSTag=Branch_4_0 date=200610162339)
    20:10:44,365 INFO  [Server] Home Dir: C:\Program Files\jboss-4.0.5.GA
    20:10:44,365 INFO  [Server] Home URL: file:/C:/Program Files/jboss-4.0.5.GA/
    20:10:44,365 INFO  [Server] Patch URL: null
    20:10:44,365 INFO  [Server] Server Name: default
    20:10:44,365 INFO  [Server] Server Home Dir: C:\Program Files\jboss-4.0.5.GA\server\default
    20:10:44,365 INFO  [Server] Server Home URL: file:/C:/Program Files/jboss-4.0.5.GA/server/default/
    20:10:44,365 INFO  [Server] Server Log Dir: C:\Program Files\jboss-4.0.5.GA\server\default\log
    20:10:44,365 INFO  [Server] Server Temp Dir: C:\Program Files\jboss-4.0.5.GA\server\default\tmp
    20:10:44,365 INFO  [Server] Root Deployment Filename: jboss-service.xml
    20:10:44,724 INFO  [ServerInfo] Java version: 1.5.0_04,Sun Microsystems Inc.
    20:10:44,724 INFO  [ServerInfo] Java VM: Java HotSpot(TM) Client VM 1.5.0_04-b05,Sun Microsystems Inc.
    20:10:44,724 INFO  [ServerInfo] OS-System: Windows XP 5.1,x86
    20:10:45,302 INFO  [Server] Core system initialized
    20:10:47,490 INFO  [Log4jService$URLWatchTimerTask] Configuring from URL: resource:log4j.xml
    20:10:49,193 INFO  [SocketServerInvoker] Invoker started for locator: InvokerLocator [socket://192.168.1.50:3873/]
    20:10:53,365 INFO  [ServiceEndpointManager] WebServices: jbossws-1.0.3.SP1 (date=200609291417)
    20:10:55,318 INFO  [SnmpAgentService] SNMP agent going active
    20:10:55,677 INFO  [WebService] Using RMI server codebase: http://Allison:8083/
    20:10:56,943 INFO  [CorbaNamingService] Naming: [IOR:000000000000002B49444C3A6F6D672E6F72672F436F734E616D696E672F4E616D696E67436F6E746578744578743A312E3000000000000200000000000000E8000102000000000D3139322E3136382E312E353000000DC8000000114A426F73732F4E616D696E672F726F6F74000000000000050000000000000008000000004A414300000000010000001C00000000000100010000000105010001000101090000000105010001000000210000006000000000000000010000000000000024000000200000007E00000000000000010000000D3139322E3136382E312E353000000DC900400000000000000000001004010008060667810201010100000000000000000000000000000000000000000000002000000004000000000000001F0000000400000003000000010000002000000000000000020000002000000004000000000000001F0000000400000003]
    20:10:57,099 INFO  [CorbaTransactionService] TransactionFactory: [IOR:000000000000003049444C3A6F72672F6A626F73732F746D2F69696F702F5472616E73616374696F6E466163746F72794578743A312E30000000000200000000000000E8000102000000000D3139322E3136382E312E353000000DC8000000144A426F73732F5472616E73616374696F6E732F46000000050000000000000008000000004A414300000000010000001C00000000000100010000000105010001000101090000000105010001000000210000006000000000000000010000000000000024000000200000007E00000000000000010000000D3139322E3136382E312E353000000DC900400000000000000000001004010008060667810201010100000000000000000000000000000000000000000000002000000004000000000000001F0000000400000003000000010000002000000000000000020000002000000004000000000000001F0000000400000003]
    20:10:58,287 INFO  [Embedded] Catalina naming disabled
    20:10:58,427 INFO  [ClusterRuleSetFactory] Unable to find a cluster rule set in the classpath. Will load the default rule set.
    20:10:58,427 INFO  [ClusterRuleSetFactory] Unable to find a cluster rule set in the classpath. Will load the default rule set.
    20:10:58,974 INFO  [Http11BaseProtocol] Initializing Coyote HTTP/1.1 on http-0.0.0.0-8080
    20:10:58,974 INFO  [Catalina] Initialization processed in 547 ms
    20:10:58,974 INFO  [StandardService] Starting service jboss.web
    20:10:58,990 INFO  [StandardEngine] Starting Servlet Engine: Apache Tomcat/5.5.20
    20:10:59,052 INFO  [StandardHost] XML validation disabled
    20:10:59,146 INFO  [Catalina] Server startup in 172 ms
    20:10:59,381 INFO  [TomcatDeployer] deploy, ctxPath=/invoker, warUrl=.../deploy/http-invoker.sar/invoker.war/
    20:11:00,162 INFO  [WebappLoader] Dual registration of jndi stream handler: factory already defined
    20:11:00,818 INFO  [TomcatDeployer] deploy, ctxPath=/, warUrl=.../deploy/jbossweb-tomcat55.sar/ROOT.war/
    20:11:01,068 INFO  [TomcatDeployer] deploy, ctxPath=/jbossws, warUrl=.../tmp/deploy/tmp62505jbossws-context-exp.war/
    20:11:01,302 INFO  [TomcatDeployer] deploy, ctxPath=/jbossmq-httpil, warUrl=.../deploy/jms/jbossmq-httpil.sar/jbossmq-httpil.war/
    20:11:01,599 INFO  [TomcatDeployer] deploy, ctxPath=/web-console, warUrl=.../deploy/management/console-mgr.sar/web-console.war/
    20:11:01,927 INFO  [[/web-console]] MonitorsFolder: Failed to init plugin, null
    20:11:01,959 INFO  [[/web-console]] UCLs: Failed to init plugin, null
    20:11:01,974 INFO  [[/web-console]] JMS Message: Failed to init plugin, null
    20:11:01,974 INFO  [[/web-console]] JSR77 WebModule: Failed to init plugin, null
    20:11:01,990 INFO  [[/web-console]] J2EEFolder: Failed to init plugin, null
    20:11:01,990 INFO  [[/web-console]] AOPFolder: Failed to init plugin, null
    20:11:01,990 INFO  [[/web-console]] SystemFolder: Failed to init plugin, null
    20:11:02,021 INFO  [[/web-console]] MBeans: Failed to init plugin, null
    20:11:02,037 INFO  [[/web-console]] JSR77 Domains and Servers: Failed to init plugin, null
    20:11:02,037 INFO  [[/web-console]] JSR77 EJBModules and EJBs: Failed to init plugin, null
    20:11:02,037 INFO  [[/web-console]] JSR77 J2EE Apps: Failed to init plugin, null
    20:11:04,287 INFO  [MailService] Mail Service bound to java:/Mail
    20:11:05,115 INFO  [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-ha-local-jdbc.rar
    20:11:05,240 INFO  [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-ha-xa-jdbc.rar
    20:11:05,318 INFO  [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-local-jdbc.rar
    20:11:05,443 INFO  [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-xa-jdbc.rar
    20:11:05,631 INFO  [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jms/jms-ra.rar
    20:11:05,724 INFO  [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/mail-ra.rar
    20:11:05,865 INFO  [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/quartz-ra.rar
    20:11:05,896 INFO  [QuartzResourceAdapter] start quartz!!!
    20:11:06,006 INFO  [SimpleThreadPool] Job execution threads will use class loader of thread: main
    20:11:06,068 INFO  [QuartzScheduler] Quartz Scheduler v.1.5.2 created.
    20:11:06,068 INFO  [RAMJobStore] RAMJobStore initialized.
    20:11:06,068 INFO  [StdSchedulerFactory] Quartz scheduler 'DefaultQuartzScheduler' initialized from default resource file in Quartz package: 'quartz.properties'
    20:11:06,068 INFO  [StdSchedulerFactory] Quartz scheduler version: 1.5.2
    20:11:06,068 INFO  [QuartzScheduler] Scheduler DefaultQuartzScheduler_$_NON_CLUSTERED started.
    20:11:07,177 INFO  [WrapperDataSourceService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=DefaultDS' to JNDI name 'java:DefaultDS'
    20:11:07,537 INFO  [A] Bound to JNDI name: queue/A
    20:11:07,537 INFO  [B] Bound to JNDI name: queue/B
    20:11:07,537 INFO  [C] Bound to JNDI name: queue/C
    20:11:07,537 INFO  [D] Bound to JNDI name: queue/D
    20:11:07,552 INFO  [ex] Bound to JNDI name: queue/ex
    20:11:07,912 INFO  [testTopic] Bound to JNDI name: topic/testTopic
    20:11:07,912 INFO  [securedTopic] Bound to JNDI name: topic/securedTopic
    20:11:07,912 INFO  [testDurableTopic] Bound to JNDI name: topic/testDurableTopic
    20:11:07,927 INFO  [testQueue] Bound to JNDI name: queue/testQueue
    20:11:08,006 INFO  [UILServerILService] JBossMQ UIL service available at : /0.0.0.0:8093
    20:11:08,084 INFO  [DLQ] Bound to JNDI name: queue/DLQ
    20:11:08,412 INFO  [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=ConnectionFactoryBinding,name=JmsXA' to JNDI name 'java:JmsXA'
    20:11:08,818 INFO  [Ejb3Deployment] EJB3 deployment time took: 250
    20:11:08,990 INFO  [JmxKernelAbstraction] installing MBean: jboss.j2ee:jar=IntroEJB3.jar,name=GestionDeStockBean,service=EJB3 with dependencies:
    20:11:08,990 INFO  [JmxKernelAbstraction] 	persistence.units:unitName=IntroEJB3
    20:11:09,006 INFO  [JmxKernelAbstraction] installing MBean: jboss.j2ee:jar=IntroEJB3.jar,name=PremierEJB3Bean,service=EJB3 with dependencies:
    20:11:09,349 INFO  [EJBContainer] STARTED EJB: com.et.PremierEJB3Bean ejbName: PremierEJB3Bean
    20:11:09,490 INFO  [EJB3Deployer] Deployed: file:/C:/Program Files/jboss-4.0.5.GA/server/default/deploy/IntroEJB3.jar
    20:11:09,537 INFO  [TomcatDeployer] deploy, ctxPath=/jmx-console, warUrl=.../deploy/jmx-console.war/
    20:11:09,881 ERROR [URLDeploymentScanner] Incomplete Deployment listing:
     
    --- MBeans waiting for other MBeans ---
    ObjectName: jboss.j2ee:jar=IntroEJB3.jar,name=GestionDeStockBean,service=EJB3
      State: NOTYETINSTALLED
      I Depend On:
        persistence.units:unitName=IntroEJB3
     
    --- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
    ObjectName: persistence.units:unitName=IntroEJB3
      State: NOTYETINSTALLED
      Depends On Me:
        jboss.j2ee:jar=IntroEJB3.jar,name=GestionDeStockBean,service=EJB3
     
     
    20:11:10,037 INFO  [Http11BaseProtocol] Starting Coyote HTTP/1.1 on http-0.0.0.0-8080
    20:11:10,381 INFO  [ChannelSocket] JK: ajp13 listening on /0.0.0.0:8009
    20:11:10,412 INFO  [JkMain] Jk running ID=0 time=0/110  config=null
    20:11:10,459 INFO  [Server] JBoss (MX MicroKernel) [4.0.5.GA (build: CVSTag=Branch_4_0 date=200610162339)] Started in 26s:94ms
    J'ai bien essayé de modifier mon fichier persistence.xml, mais ça ne donne rien.

    Avez-vous une idée?

    Merci

  2. #2
    Nouveau Candidat au Club
    Profil pro
    Inscrit en
    Octobre 2008
    Messages
    205
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Octobre 2008
    Messages : 205
    Points : 0
    Points
    0
    Par défaut
    Salut !

    Ah ouais j'avais utilisé le même exemple pour débuter hihi !

    T'utilise quel version de Jboss ?

    Sinon je crois que j'ai le code qui marche pour cet exemple... j'attends de savoir sur quel version tu bosse et je te le file !

    C'est bien parce que t'es une fille, sinon je t'aurais pas aidé lol !

  3. #3
    Membre à l'essai
    Profil pro
    Inscrit en
    Août 2005
    Messages
    25
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Août 2005
    Messages : 25
    Points : 20
    Points
    20
    Par défaut
    Salut,

    Désolé pour la réponse tardive, mais c'était un long week end !!!


    Sinon, je suis sous la version 4.0.5 de JBoss.

    Tu avais réussi à faire tourner cet exemple ?

    Merci
    ++

  4. #4
    Membre éclairé Avatar de XmasRock
    Inscrit en
    Janvier 2007
    Messages
    729
    Détails du profil
    Informations forums :
    Inscription : Janvier 2007
    Messages : 729
    Points : 821
    Points
    821
    Par défaut
    [Server] Starting JBoss (MX MicroKernel)...
    20:10:44,349 INFO [Server] Release ID: JBoss [Zion] 4.0.5.GA (build: CVSTag=Branch_4_0 date=200610162339)
    20:10:44,365 INFO [Server] Home Dir: C:\Program Files\jboss-4.0.5.GA
    20:10:44,365 INFO [Server] Home URL: file:/C:/Program Files/jboss-4.0.5.GA/
    20:10:44,365 INFO [Server] Patch URL: null
    J'allais le dire. JBoss AS 4.0.5 n'est pas la version a utiliser pour faire des EJB3. Utilises une 4.2.x ou une 5.

  5. #5
    Membre à l'essai
    Profil pro
    Inscrit en
    Août 2005
    Messages
    25
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Août 2005
    Messages : 25
    Points : 20
    Points
    20
    Par défaut
    Salut,

    Apparement, d'après le tutoriel que j'utilise, ils disent que:
    "Le téléchargement de base (fichier zip) de JBoss 4.0.5 n'intègre pas le conteneur EJB 3. Pour installer JBoss avec le support des EJB 3, il faut utiliser l'installeur graphique : télécharger ce fichier contenant JBoss 4.0.5 et son installeur graphique."
    Du coup ça devrait fonctionner non ?

    Merci

  6. #6
    Membre à l'essai
    Profil pro
    Inscrit en
    Juin 2009
    Messages
    18
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Juin 2009
    Messages : 18
    Points : 22
    Points
    22
    Par défaut
    La version la plus stable et la plus éprouvée de JBoss à l'heure actuelle est la 4.2.3, c'est d'ailleurs celle qui est livrée dans JBoss Developer Studio. Je te conseil fortement d'utiliser celle-là en mode "default".

  7. #7
    Nouveau Candidat au Club
    Inscrit en
    Juin 2013
    Messages
    1
    Détails du profil
    Informations forums :
    Inscription : Juin 2013
    Messages : 1
    Points : 1
    Points
    1
    Par défaut
    Bonjour à tous !

    Dsl de déterrer un topic aussi vieux mais...

    j'ai exactement le même problème sur le même tuto, je débute avec l'utilisation d'EJB3, est ce que quelqu"un à trouvé une solution depuis le temp ??


    ps : déjà pris en compte les messages précédent. Jboss Version 4.2.

Discussions similaires

  1. Réponses: 4
    Dernier message: 27/06/2014, 16h57
  2. Réponses: 5
    Dernier message: 28/03/2012, 17h04
  3. [EJB3 Entity] Probleme de création d'EJB Entity
    Par tiamat dans le forum Java EE
    Réponses: 2
    Dernier message: 15/10/2007, 18h38
  4. Réponses: 5
    Dernier message: 04/07/2006, 00h11
  5. [Ant] [Ejb] Probléme de création d'ejb avec Genic
    Par rivierem dans le forum JOnAS
    Réponses: 7
    Dernier message: 25/06/2004, 16h21

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