• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

First deployment of EJB3 project failed

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello !

I have followed this tutorial (http://www.eclipsetotale.com/articles/Introduction_EJB3_avec_Eclipse.html) in order to do my first steps with JBoss.

But I have the following error in eclipse console when deploying the applcation :

15:40:16,398 INFO [Server] Starting JBoss (MX MicroKernel)...
15:40:16,399 INFO [Server] Release ID: JBoss [Zion] 4.0.5.GA (build: CVSTag=Branch_4_0 date=200610162339)
15:40:16,405 INFO [Server] Home Dir: /home/wedge/Applications/jboss-4.0.5.GA
15:40:16,406 INFO [Server] Home URL: file:/home/wedge/Applications/jboss-4.0.5.GA/
15:40:16,407 INFO [Server] Patch URL: null
15:40:16,408 INFO [Server] Server Name: default
15:40:16,408 INFO [Server] Server Home Dir: /home/wedge/Applications/jboss-4.0.5.GA/server/default
15:40:16,409 INFO [Server] Server Home URL: file:/home/wedge/Applications/jboss-4.0.5.GA/server/default/
15:40:16,409 INFO [Server] Server Log Dir: /home/wedge/Applications/jboss-4.0.5.GA/server/default/log
15:40:16,410 INFO [Server] Server Temp Dir: /home/wedge/Applications/jboss-4.0.5.GA/server/default/tmp
15:40:16,410 INFO [Server] Root Deployment Filename: jboss-service.xml
15:40:16,719 INFO [ServerInfo] Java version: 1.6.0_06,Sun Microsystems Inc.
15:40:16,719 INFO [ServerInfo] Java VM: Java HotSpot(TM) Server VM 10.0-b22,Sun Microsystems Inc.
15:40:16,719 INFO [ServerInfo] OS-System: Linux 2.6.24-18-generic,i386
15:40:17,025 INFO [Server] Core system initialized
15:40:18,810 INFO [Log4jService$URLWatchTimerTask] Configuring from URL: resource:log4j.xml
15:40:19,751 INFO [SocketServerInvoker] Invoker started for locator: InvokerLocator [socket://127.0.1.1:3873/]
15:40:21,590 INFO [ServiceEndpointManager] WebServices: jbossws-1.0.3.SP1 (date=200609291417)
15:40:22,463 INFO [SnmpAgentService] SNMP agent going active
15:40:27,745 INFO [WebService] Using RMI server codebase: http://Alderaan:8083/
15:40:28,752 INFO [Embedded] Catalina naming disabled
15:40:28,787 INFO [ClusterRuleSetFactory] Unable to find a cluster rule set in the classpath. Will load the default rule set.
15:40:28,788 INFO [ClusterRuleSetFactory] Unable to find a cluster rule set in the classpath. Will load the default rule set.
15:40:28,970 INFO [Http11BaseProtocol] Initializing Coyote HTTP/1.1 on http-0.0.0.0-8082
15:40:28,971 INFO [Catalina] Initialization processed in 183 ms
15:40:28,971 INFO [StandardService] Starting service jboss.web
15:40:28,973 INFO [StandardEngine] Starting Servlet Engine: Apache Tomcat/5.5.20
15:40:29,008 INFO [StandardHost] XML validation disabled
15:40:29,089 INFO [Catalina] Server startup in 118 ms
15:40:29,186 INFO [TomcatDeployer] deploy, ctxPath=/invoker, warUrl=.../deploy/http-invoker.sar/invoker.war/
15:40:29,389 INFO [WebappLoader] Dual registration of jndi stream handler: factory already defined
15:40:29,669 INFO [TomcatDeployer] deploy, ctxPath=/, warUrl=.../deploy/jbossweb-tomcat55.sar/ROOT.war/
15:40:29,816 INFO [TomcatDeployer] deploy, ctxPath=/jbossws, warUrl=.../tmp/deploy/tmp7417jbossws-context-exp.war/
15:40:29,915 INFO [TomcatDeployer] deploy, ctxPath=/jbossmq-httpil, warUrl=.../deploy/jms/jbossmq-httpil.sar/jbossmq-httpil.war/
15:40:30,041 INFO [TomcatDeployer] deploy, ctxPath=/web-console, warUrl=.../deploy/management/console-mgr.sar/web-console.war/
15:40:30,172 INFO [[/web-console]] JSR77 J2EE Apps: Failed to init plugin, null
15:40:30,175 INFO [[/web-console]] JMS Message: Failed to init plugin, null
15:40:30,181 INFO [[/web-console]] SystemFolder: Failed to init plugin, null
15:40:30,183 INFO [[/web-console]] JSR77 EJBModules and EJBs: Failed to init plugin, null
15:40:30,185 INFO [[/web-console]] MonitorsFolder: Failed to init plugin, null
15:40:30,199 INFO [[/web-console]] JSR77 WebModule: Failed to init plugin, null
15:40:30,205 INFO [[/web-console]] JSR77 Domains and Servers: Failed to init plugin, null
15:40:30,205 INFO [[/web-console]] J2EEFolder: Failed to init plugin, null
15:40:30,207 INFO [[/web-console]] UCLs: Failed to init plugin, null
15:40:30,212 INFO [[/web-console]] MBeans: Failed to init plugin, null
15:40:30,219 INFO [[/web-console]] AOPFolder: Failed to init plugin, null
15:40:31,137 INFO [MailService] Mail Service bound to java:/Mail
15:40:31,459 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-ha-local-jdbc.rar
15:40:31,518 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-ha-xa-jdbc.rar
15:40:31,581 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-local-jdbc.rar
15:40:31,643 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-xa-jdbc.rar
15:40:31,878 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jms/jms-ra.rar
15:40:31,905 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/mail-ra.rar
15:40:31,939 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/quartz-ra.rar
15:40:31,946 INFO [QuartzResourceAdapter] start quartz!!!
15:40:31,997 INFO [SimpleThreadPool] Job execution threads will use class loader of thread: main
15:40:32,016 INFO [QuartzScheduler] Quartz Scheduler v.1.5.2 created.
15:40:32,018 INFO [RAMJobStore] RAMJobStore initialized.
15:40:32,019 INFO [StdSchedulerFactory] Quartz scheduler 'DefaultQuartzScheduler' initialized from default resource file in Quartz package: 'quartz.properties'
15:40:32,019 INFO [StdSchedulerFactory] Quartz scheduler version: 1.5.2
15:40:32,019 INFO [QuartzScheduler] Scheduler DefaultQuartzScheduler_$_NON_CLUSTERED started.
15:40:32,592 INFO [WrapperDataSourceService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=DefaultDS' to JNDI name 'java efaultDS'
15:40:32,851 INFO [A] Bound to JNDI name: queue/A
15:40:32,852 INFO [B] Bound to JNDI name: queue/B
15:40:32,853 INFO [C] Bound to JNDI name: queue/C
15:40:32,854 INFO [D] Bound to JNDI name: queue/D
15:40:32,855 INFO [ex] Bound to JNDI name: queue/ex
15:40:32,873 INFO [testTopic] Bound to JNDI name: topic/testTopic
15:40:32,875 INFO [securedTopic] Bound to JNDI name: topic/securedTopic
15:40:32,876 INFO [testDurableTopic] Bound to JNDI name: topic/testDurableTopic
15:40:32,879 INFO [testQueue] Bound to JNDI name: queue/testQueue
15:40:32,915 INFO [UILServerILService] JBossMQ UIL service available at : /0.0.0.0:8093
15:40:32,941 INFO [DLQ] Bound to JNDI name: queue/DLQ
15:40:33,130 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=ConnectionFactoryBinding,name=JmsXA' to JNDI name 'java:JmsXA'
15:40:33,394 INFO [Ejb3Deployment] EJB3 deployment time took: 91
15:40:33,463 INFO [JmxKernelAbstraction] installing MBean: jboss.j2ee:jar=IntroEJB3.jar,name=GestionDeStockBean,service=EJB3 with dependencies:
15:40:33,464 INFO [JmxKernelAbstraction] persistence.units:unitName=IntroEJB3
15:40:33,466 INFO [JmxKernelAbstraction] installing MBean: jboss.j2ee:jar=IntroEJB3.jar,name=PremierEJB3Bean,service=EJB3 with dependencies:
15:40:33,588 INFO [EJBContainer] STARTED EJB: com.et.PremierEJB3Bean ejbName: PremierEJB3Bean
15:40:33,638 INFO [EJB3Deployer] Deployed: file:/home/wedge/Applications/jboss-4.0.5.GA/server/default/deploy/IntroEJB3.jar
15:40:33,715 INFO [TomcatDeployer] deploy, ctxPath=/jmx-console, warUrl=.../deploy/jmx-console.war/
15:40:33,896 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


15:40:33,939 INFO [Http11BaseProtocol] Starting Coyote HTTP/1.1 on http-0.0.0.0-8082
15:40:34,066 INFO [ChannelSocket] JK: ajp13 listening on /0.0.0.0:8009
15:40:34,093 INFO [JkMain] Jk running ID=0 time=0/45 config=null
15:40:34,105 INFO [Server] JBoss (MX MicroKernel) [4.0.5.GA (build: CVSTag=Branch_4_0 date=200610162339)] Started in 17s:693ms



The server.log doesn't show any relevant stack trace.

Below are my source codes

persistence.xml


GestionDeStock.java


GestionDeStockBean.java


If anyone could help, it would be nice

Thanks

[Edited by Jaikiran: Fixed the formatting of the post]
[ June 13, 2008: Message edited by: Wedge Antilles ]
[ June 13, 2008: Message edited by: Jaikiran Pai ]
 
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Welcome to JavaRanch

Have you placed the persistence.xml file in the META-INF folder of your IntroEJB3.jar? What the following command output:



By the way, any specific reason for using JBoss-4.0.5 GA version instead of using the latest stable 4.2.2 GA version?
 
You learn how to close your eyes and tell yourself "this just isn't really happening to me." Tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic