

Reason: Deployment failed and was rolled back. Failed to execute goal .plugins:jboss-as-maven-plugin:7.0.0.Final:deploy (default-cli) on project pa-web: Could not execute goal deploy on pa-web.war. Phone_number varchar(12) NOT NULL DEFAULT "",īut if i try mvn jboss-as:deploy i have got error:


I try example project : so i define table in mysql : Service (no longer required)Ģ3:16:43,704 INFO JBoss AS 7.0.0.Final "Lightning" stopped in 2ms

I do everything but i have got this error too :Ģ3:16:41,809 ERROR (Controller Boot Thread) JBoss AS 7.0.0.Final "Lightning" started (with errors) in 2047ms - Started 93 of 151 services (3 services failed or missing dependencies, 55 services are passive or on-demand) So i dont know what i missed ? Is there anybody who successfull connected mysql with jboss ? So i create folder META-INF/services/ and create file and write in this documen one line:ĪS7_HOME="/usr/local/jboss7/modules/com/mysql/main/mysql-connector-java-5.0.8-bin.jar"
#MYSQL CONNECTOR FOR JAVA 7 UPDATE#
Use the "jar" command-line tool to update the JAR like this:.Create a "META-INF/services/" file which contains one line - the fully-qualified class name of the JDBC driver.Create a "META-INF/services" subdirectory.Change to, or create, an empty temporary directory.You can do this from your command shell by: The most straightforward solution is to simply modify the JAR and add the missing file. I dont understand how can i modify the jar: What i do wrong that i have got this error msg?Īrticle is very simple but i havent got idea what is wrong with my configuration Service (missing)Ĭom.MysqlXADataSourceĪnd i create module in com/mysql/main and copy jar in this location mysql-connector-java-5.0.8-bin and my module.xml: I read article: and i try add mysql as module but i have got error : Java =/usr/local/mysql/lib/mysql/ -classpath /usr/local/mysql/share/mysql/java/clusterjpa.jar:/usr/local/openjpa/openjpa-1.2.1.jar:/usr/local/openjpa/lib/*:/usr/local/connectorj/mysql-connector-java-5.1. newbie but i work with jboss4.0.2GA and i havent any problem with configure mysqlīut in jboss7 i have got problem with integrate jboss with mysql Javac -classpath /usr/local/mysql/share/mysql/java/clusterjpa.jar:/usr/local/openjpa/openjpa-1.2.1.jar:/usr/local/openjpa/lib/geronimo-jpa_3.0_spec-1.0.jar. Java -classpath /usr/local/mysql/share/mysql/java/clusterj.jar. Javac -classpath /usr/local/mysql/share/mysql/java/clusterj-api.jar. I’ll follow up a little later with a post with example applications (in the mean time refer to this tutorial or the MySQL Cluster for Java on-line documentation) but FYI these are the options I use to compile and run my test aps: Note that for ‘make install’ you need to run it from an account that has access to /usr/local That’s it! Obviously, the exact location of the OpenJPA jars will depend on where you installed it. configure -prefix=/usr/local/mysql –enable-assembler –with-mysqld-ldflags=-all-static –with-plugins=max –with-openjpa –with-classpath=/usr/local/openjpa/openjpa-1.2.1.jar:/usr/local/openjpa/lib/geronimo-jpa_3.0_spec-1.0.jar:/usr/local/openjpa/lib/geronimo-jta_1.1_spec-1.1.jar –with-extra-charsets=all The example here was on Fedora12 with the MySQL Cluster 7.1.2 source:ĬFLAGS=”-O3″ CXX=gcc CXXFLAGS=”-O3 -felide-constructors -fno-exceptions -fno-rtti”.
#MYSQL CONNECTOR FOR JAVA 7 INSTALL#
Note that if you want to make use of OpenJPA then you first need to install OpenJPA and Connector/J. If you want to try out the beta features in MySQL Cluster 7.1 then you can either use the appropriate binaries or you can build it for yourself from source.
