ejb - JBOSS doesn't find datasource -


i'm developing webapp ejb3, hibernate, jsf , jboss, i'm not able start jboss, keeps on throwing error:

16:03:55,888 info  [org.jboss.modules] jboss modules version 1.1.1.ga 16:03:56,130 info  [org.jboss.msc] jboss msc version 1.0.2.ga 16:03:56,187 info  [org.jboss.as] jbas015899: jboss 7.1.0.final "thunder" starting 16:03:57,085 info  [org.xnio] xnio version 3.0.3.ga 16:03:57,086 info  [org.jboss.as.server] jbas015888: creating http management service using socket-binding (management-http) 16:03:57,097 info  [org.xnio.nio] xnio nio implementation version 3.0.3.ga 16:03:57,105 info  [org.jboss.remoting] jboss remoting version 3.2.2.ga 16:03:57,131 info  [org.jboss.as.logging] jbas011502: removing bootstrap log handlers 16:03:57,135 info  [org.jboss.as.configadmin] (serverservice thread pool -- 26) jbas016200: activating configadmin subsystem 16:03:57,136 info  [org.jboss.as.clustering.infinispan] (serverservice thread pool -- 31) jbas010280: activating infinispan subsystem. 16:03:57,148 info  [org.jboss.as.security] (serverservice thread pool -- 44) jbas013101: activating security subsystem 16:03:57,160 info  [org.jboss.as.security] (msc service thread 1-3) jbas013100: current picketbox version=4.0.6.final 16:03:57,165 info  [org.jboss.as.webservices] (serverservice thread pool -- 48) jbas015537: activating webservices extension 16:03:57,168 info  [org.jboss.as.naming] (serverservice thread pool -- 38) jbas011800: activating naming subsystem 16:03:57,172 info  [org.jboss.as.osgi] (serverservice thread pool -- 39) jbas011940: activating osgi subsystem 16:03:57,220 info  [org.jboss.as.connector] (msc service thread 1-10) jbas010408: starting jca subsystem (jboss ironjacamar 1.0.7.final) 16:03:57,261 info  [org.jboss.as.naming] (msc service thread 1-12) jbas011802: starting naming service 16:03:57,273 info  [org.jboss.as.mail.extension] (msc service thread 1-10) jbas015400: bound mail session [java:jboss/mail/default] 16:03:57,286 info  [org.jboss.as.connector.subsystems.datasources] (serverservice thread pool -- 27) jbas010403: deploying jdbc-compliant driver class org.h2.driver (version 1.3) 16:03:57,419 info  [org.jboss.ws.common.management.abstractserverconfig] (msc service thread 1-3) jboss web services - stack cxf server 4.0.1.ga 16:03:57,680 info  [org.jboss.as.server.deployment.scanner] (msc service thread 1-2) jbas015012: started filesystemdeploymentservice directory c:\desarrollo\jboss-as-7.1.0.final\standalone\deployments 16:03:57,682 info  [org.jboss.as.server.deployment.scanner] (deploymentscanner-threads - 1) jbas015003: found allyoucanvisit.ear in deployment directory. trigger deployment create file called allyoucanvisit.ear.dodeploy 16:03:57,684 info  [org.jboss.as.remoting] (msc service thread 1-7) jbas017100: listening on localhost/127.0.0.1:4447 16:03:57,685 info  [org.jboss.as.remoting] (msc service thread 1-6) jbas017100: listening on /127.0.0.1:9999 16:03:57,700 info  [org.apache.coyote.http11.http11protocol] (msc service thread 1-11) starting coyote http/1.1 on http-localhost-127.0.0.1-8080 16:03:57,836 info  [org.jboss.as.connector.subsystems.datasources] (msc service thread 1-9) jbas010400: bound data source [java:jboss/datasources/exampleds] 16:03:58,086 info  [org.jboss.as.controller] (controller boot thread) jbas014774: service status report jbas014775:    new missing/unsatisfied dependencies:       service jboss.jdbc-driver.mysql (missing) dependents: [service jboss.data-source.java:jboss/datasources/mysql_ds]   16:03:58,113 error [org.jboss.as] (controller boot thread) jbas015875: jboss 7.1.0.final "thunder" started (with errors) in 2515ms - started 135 of 209 services (2 services failed or missing dependencies, 70 services passive or on-demand) 

my persistence.xml file:

<?xml version="1.0" encoding="utf-8"?> <persistence version="2.0"     xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/xmlschema-instance"     xsi:schemalocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd">      <persistence-unit name="primary">         <provider>org.hibernate.ejb.hibernatepersistence</provider>         <jta-data-source>java:jboss/datasources/mysql_ds</jta-data-source>          <exclude-unlisted-classes>false</exclude-unlisted-classes>         <properties>             <!-- properties hibernate -->             <property name="hibernate.show_sql" value="true" />             <property name="hibernate.hbm2ddl.auto" value="update" />             <property name="hibernate.use_sql_comments" value="true" />             <property name="hibernate.dialect" value="org.hibernate.dialect.mysqldialect" />         </properties>      </persistence-unit>  </persistence> 

and datasources standalone.xml file in jboss:

<datasource jndi-name="java:jboss/datasources/mysql_ds" pool-name="mysql_ds" enabled="true" use-java-context="true" jta="true">                     <connection-url>jdbc:mysql://localhost:3306/mydatabase</connection-url>                     <driver>mysql</driver>                     <security>                         <user-name>user</user-name>                         <password>password</password>                     </security>                 </datasource>                 <drivers>                     <driver name="h2" module="com.h2database.h2">                         <xa-datasource-class>org.h2.jdbcx.jdbcdatasource</xa-datasource-class>                     </driver>                     <driver name="mysql" module="com.mysql">                         <xa-datasource-class>com.mysql.jdbc.jdbc2.optional.mysqlxadatasource</xa-datasource-class>                     </driver>                 </drivers> 

what missing?

reinstalling server , configuring driver , datasources again made work.


Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

CSS3 Transition to highlight new elements created in JQuery -