[jboss-user] [Installation, Configuration & DEPLOYMENT] - Cannot deploy my persistence-unit

tdemuth do-not-reply at jboss.com
Sat Nov 17 08:36:40 EST 2007


Hi,

I'm trying to deploy a persistence-unit on JBoss 4.2, but it fails all the time:

Here is the logging-output when I start up JBoss:
14:30:08,687 INFO  [Server] Starting JBoss (MX MicroKernel)...
  | 14:30:08,687 INFO  [Server] Release ID: JBoss [Trinity] 4.2.1.GA (build: SVNTag=JBoss_4_2_1_GA date=200707131605)
  | 14:30:08,687 INFO  [Server] Home Dir: F:\jboss-4.2.1.GA
  | 14:30:08,687 INFO  [Server] Home URL: file:/F:/jboss-4.2.1.GA/
  | 14:30:08,687 INFO  [Server] Patch URL: null
  | 14:30:08,687 INFO  [Server] Server Name: default
  | 14:30:08,687 INFO  [Server] Server Home Dir: F:\jboss-4.2.1.GA\server\default
  | 14:30:08,687 INFO  [Server] Server Home URL: file:/F:/jboss-4.2.1.GA/server/default/
  | 14:30:08,687 INFO  [Server] Server Log Dir: F:\jboss-4.2.1.GA\server\default\log
  | 14:30:08,687 INFO  [Server] Server Temp Dir: F:\jboss-4.2.1.GA\server\default\tmp
  | 14:30:08,687 INFO  [Server] Root Deployment Filename: jboss-service.xml
  | 14:30:08,968 INFO  [ServerInfo] Java version: 1.5.0_10,Sun Microsystems Inc.
  | 14:30:08,968 INFO  [ServerInfo] Java VM: Java HotSpot(TM) Client VM 1.5.0_10-b03,Sun Microsystems Inc.
  | 14:30:08,968 INFO  [ServerInfo] OS-System: Windows XP 5.1,x86
  | 14:30:09,265 INFO  [Server] Core system initialized
  | 14:30:10,843 INFO  [WebService] Using RMI server codebase: http://127.0.0.1:8083/
  | 14:30:10,843 INFO  [Log4jService$URLWatchTimerTask] Configuring from URL: resource:jboss-log4j.xml
  | 14:30:11,187 INFO  [TransactionManagerService] JBossTS Transaction Service (JTA version) - JBoss Inc.
  | 14:30:11,187 INFO  [TransactionManagerService] Setting up property manager MBean and JMX layer
  | 14:30:11,328 INFO  [TransactionManagerService] Starting recovery manager
  | 14:30:11,390 INFO  [TransactionManagerService] Recovery manager started
  | 14:30:11,390 INFO  [TransactionManagerService] Binding TransactionManager JNDI Reference
  | 14:30:13,718 INFO  [EJB3Deployer] Starting java:comp multiplexer
  | 14:30:15,015 INFO  [ServiceEndpointManager] jbossws-1.2.1.GA (build=200704151756)
  | 14:30:16,250 INFO  [AprLifecycleListener] The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Programme\Java\jre1.5.0_10\bin;.;C:\WINDOWS\system32;C:\WINDOWS;C:\Programme\Java\jre1.6.0_03\bin\client;C:\Programme\Java\jre1.6.0_03\bin;C:\Programme\MiKTeX 2.5\miktex\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Programme\Gemeinsame Dateien\GTK\2.0\bin
  | 14:30:16,312 INFO  [Http11Protocol] Initializing Coyote HTTP/1.1 on http-127.0.0.1-8080
  | 14:30:16,312 INFO  [AjpProtocol] Initializing Coyote AJP/1.3 on ajp-127.0.0.1-8009
  | 14:30:16,312 INFO  [Catalina] Initialization processed in 195 ms
  | 14:30:16,312 INFO  [StandardService] Starting service jboss.web
  | 14:30:16,312 INFO  [StandardEngine] Starting Servlet Engine: JBossWeb/2.0.0.GA
  | 14:30:16,375 INFO  [Catalina] Server startup in 57 ms
  | 14:30:16,468 INFO  [TomcatDeployer] deploy, ctxPath=/, warUrl=.../deploy/jboss-web.deployer/ROOT.war/
  | 14:30:16,984 INFO  [TomcatDeployer] deploy, ctxPath=/invoker, warUrl=.../deploy/http-invoker.sar/invoker.war/
  | 14:30:17,140 INFO  [TomcatDeployer] deploy, ctxPath=/jbossws, warUrl=.../tmp/deploy/tmp59194jbossws-context-exp.war/
  | 14:30:17,250 INFO  [TomcatDeployer] deploy, ctxPath=/jbossmq-httpil, warUrl=.../deploy/jms/jbossmq-httpil.sar/jbossmq-httpil.war/
  | 14:30:18,000 INFO  [TomcatDeployer] deploy, ctxPath=/web-console, warUrl=.../deploy/management/console-mgr.sar/web-console.war/
  | 14:30:18,421 INFO  [MailService] Mail Service bound to java:/Mail
  | 14:30:18,546 INFO  [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-ha-local-jdbc.rar
  | 14:30:18,578 INFO  [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-ha-xa-jdbc.rar
  | 14:30:18,609 INFO  [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-local-jdbc.rar
  | 14:30:18,640 INFO  [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-xa-jdbc.rar
  | 14:30:18,687 INFO  [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jms/jms-ra.rar
  | 14:30:18,718 INFO  [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/quartz-ra.rar
  | 14:30:18,718 INFO  [QuartzResourceAdapter] start quartz!!!
  | 14:30:18,781 INFO  [SimpleThreadPool] Job execution threads will use class loader of thread: main
  | 14:30:18,796 INFO  [QuartzScheduler] Quartz Scheduler v.1.5.2 created.
  | 14:30:18,796 INFO  [RAMJobStore] RAMJobStore initialized.
  | 14:30:18,796 INFO  [StdSchedulerFactory] Quartz scheduler 'DefaultQuartzScheduler' initialized from default resource file in Quartz package: 'quartz.properties'
  | 14:30:18,796 INFO  [StdSchedulerFactory] Quartz scheduler version: 1.5.2
  | 14:30:18,796 INFO  [QuartzScheduler] Scheduler DefaultQuartzScheduler_$_NON_CLUSTERED started.
  | 14:30:19,687 INFO  [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=DefaultDS' to JNDI name 'java:DefaultDS'
  | 14:30:19,875 INFO  [A] Bound to JNDI name: queue/A
  | 14:30:19,875 INFO  [B] Bound to JNDI name: queue/B
  | 14:30:19,875 INFO  [C] Bound to JNDI name: queue/C
  | 14:30:19,875 INFO  [D] Bound to JNDI name: queue/D
  | 14:30:19,890 INFO  [ex] Bound to JNDI name: queue/ex
  | 14:30:19,890 INFO  [testTopic] Bound to JNDI name: topic/testTopic
  | 14:30:19,906 INFO  [securedTopic] Bound to JNDI name: topic/securedTopic
  | 14:30:19,906 INFO  [testDurableTopic] Bound to JNDI name: topic/testDurableTopic
  | 14:30:19,906 INFO  [testQueue] Bound to JNDI name: queue/testQueue
  | 14:30:19,937 INFO  [UILServerILService] JBossMQ UIL service available at : /127.0.0.1:8093
  | 14:30:19,968 INFO  [DLQ] Bound to JNDI name: queue/DLQ
  | 14:30:20,046 INFO  [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=ConnectionFactoryBinding,name=JmsXA' to JNDI name 'java:JmsXA'
  | 14:30:20,296 INFO  [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=CubeDS' to JNDI name 'java:CubeDS'
  | 14:30:20,359 INFO  [JmxKernelAbstraction] creating wrapper delegate for: org.jboss.ejb3.stateless.StatelessContainer
  | 14:30:20,359 INFO  [JmxKernelAbstraction] installing MBean: jboss.j2ee:jar=cube_server.jar,name=SearchServiceBean,service=EJB3 with dependencies:
  | 14:30:20,500 INFO  [EJBContainer] STARTED EJB: de.tobiasdemuth.cube.server.search.SearchServiceBean ejbName: SearchServiceBean
  | 14:30:20,531 INFO  [JmxKernelAbstraction] creating wrapper delegate for: org.jboss.ejb3.stateless.StatelessContainer
  | 14:30:20,531 INFO  [JmxKernelAbstraction] installing MBean: jboss.j2ee:jar=cube_server.jar,name=SecurityServiceBean,service=EJB3 with dependencies:
  | 14:30:20,562 INFO  [EJBContainer] STARTED EJB: de.tobiasdemuth.cube.server.security.SecurityServiceBean ejbName: SecurityServiceBean
  | 14:30:20,562 INFO  [JmxKernelAbstraction] creating wrapper delegate for: org.jboss.ejb3.stateless.StatelessContainer
  | 14:30:20,562 INFO  [JmxKernelAbstraction] installing MBean: jboss.j2ee:jar=cube_server.jar,name=XULServiceBean,service=EJB3 with dependencies:
  | 14:30:20,562 INFO  [JmxKernelAbstraction] 	persistence.units:unitName=cube
  | 14:30:20,562 INFO  [JmxKernelAbstraction] 	jboss.j2ee:jar=cube_server.jar,name=SecurityServiceBean,service=EJB3
  | 14:30:20,578 INFO  [EJB3Deployer] Deployed: file:/F:/jboss-4.2.1.GA/server/default/deploy/cube_server.jar
  | 14:30:20,593 INFO  [TomcatDeployer] deploy, ctxPath=/jmx-console, warUrl=.../deploy/jmx-console.war/
  | 14:30:20,703 ERROR [URLDeploymentScanner] Incomplete Deployment listing:
  | 
  | --- MBeans waiting for other MBeans ---
  | ObjectName: jboss.j2ee:jar=cube_server.jar,name=XULServiceBean,service=EJB3
  |   State: NOTYETINSTALLED
  |   I Depend On:
  |     persistence.units:unitName=cube
  |     jboss.j2ee:jar=cube_server.jar,name=SecurityServiceBean,service=EJB3
  | 
  | --- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
  | ObjectName: persistence.units:unitName=cube
  |   State: NOTYETINSTALLED
  |   Depends On Me:
  |     jboss.j2ee:jar=cube_server.jar,name=XULServiceBean,service=EJB3
  | 
  | 
  | 14:30:20,781 INFO  [Http11Protocol] Starting Coyote HTTP/1.1 on http-127.0.0.1-8080
  | 14:30:20,796 INFO  [AjpProtocol] Starting Coyote AJP/1.3 on ajp-127.0.0.1-8009
  | 14:30:20,812 INFO  [Server] JBoss (MX MicroKernel) [4.2.1.GA (build: SVNTag=JBoss_4_2_1_GA date=200707131605)] Started in 12s:125ms

This is the structure of cube_server.jar, which contains all my Beans and the XML-Files:

  | de
  |     - some packages, then my Beans
  | META-INF
  |     -MANIFEST.MF
  | cube-ds.xml
  | persistence.xml

My cube-ds.xml:
<?xml version="1.0" encoding="UTF-8"?>
  | 
  | <datasources>
  |   <local-tx-datasource>
  |     <jndi-name>CubeDS</jndi-name>
  |     <connection-url>jdbc:mysql://localhost:3306/cube</connection-url>
  |     <driver-class>com.mysql.jdbc.Driver</driver-class>
  |     <user-name>XXX</user-name>
  |     <password>YYYYYYYYY</password>
  |     <exception-sorter-class-name>org.jboss.resource.adapter.jdbc.vendor.MySQLExceptionSorter</exception-sorter-class-name>
  |     <valid-connection-checker-class-name>org.jboss.resource.adapter.jdbc.vendor.MySQLValidConnectionChecker</valid-connection-checker-class-name>
  |     <!-- corresponding type-mapping in the standardjbosscmp-jdbc.xml -->
  |     <metadata>
  |        <type-mapping>mySQL</type-mapping>
  |     </metadata>
  |   </local-tx-datasource>
  | </datasources>

And finally, my persistence.xml:

  | <?xml version="1.0" encoding="UTF-8"?>
  | 
  | <persistence>
  | 	<persistence-unit name="cube">
  | 		<jta-data-source>java:/CubeDS</jta-data-source>
  | 	</persistence-unit>
  | </persistence>
  | 
  | 

So, what is wrong? I don't know why JBoss doesn't deploy my persistence-unit. But I'm a newbie, so maybe someone of you can help?

kind regards
Tobias

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4105748#4105748

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4105748



More information about the jboss-user mailing list