Comments (20)
@garcia-jj is true, thanks !
"Install the JDBC driver as a core module"
"For example, using the MySQL JDBC driver above, you would create a directory structure as follows: JBOSS_HOME/modules/com/mysql/main ... "
from hurraa.
If you put mysql libs in WILDFLY_HOME/modules/com/mysql/main you get the following error:
[standalone@localhost:9990 /] ./subsystem=datasources/jdbc-driver=com.mysql:add(driver-name="com.mysql", driver-module-name="com.mysql", driver-xa-datasource-class-name="com.mysql.jdbc.jdbc2.optional.MysqlXADataSource" )
{
"outcome" => "failed",
"failure-description" => "JBAS010441: Failed to load module for driver [com.mysql]",
"rolled-back" => true
}
from hurraa.
Beto, attached have a printscreen of my pgsql driver under Wildfly modules location.
Check if your jar is located under modules/com/mysql/main and if module.xml properly defines the jar and your dependencies.
<?xml version="1.0" encoding="UTF-8"?>
<module xmlns="urn:jboss:module:1.1" name="org.postgresql">
<resources>
<resource-root path="postgresql-9.2-1002.jdbc4.jar"/>
</resources>
<dependencies>
<module name="javax.api"/>
<module name="javax.transaction.api"/>
</dependencies>
</module>
from hurraa.
Thank's! Sorry, my fault. I extract to another folder... ;)
from hurraa.
wait:
- the focus is standalone mode ?
"WildFly offers two modes: a traditional, single JVM, standalone mode, and a multi-JVM option, domain mode, which synchronizes configuration across any number of processes and hosts."
So the doc says:
"Install the JDBC driver as a deployment"
"In WildFly 8 standalone mode, you simply copy the JDBC 4-compliant JAR into the AS7_HOME/standalone/deployments directory. Here is an example of a MySQL JDBC driver installed as a deployment:
JBOSS_HOME/standalone/deployments/mysql-connector-java-5.1.15.jar"
from hurraa.
we need to remember that the end user will do the installation of Hurraa project, so we need try to keep it simple right : D
2014 no more "run db and put war on deployment directory" and have fun ?
yougi is for user groups so at least one end user is developer to take care of installation, now the end user may be a sysadmin or support guy that only knows backup, restore, MTA, hardware support, tivoli etc etc ... and nothing about "Wildfly".
[edited]
just my particular opinion : D
when hurraa release the first war , we need "test" the installation process with a junior support if him cannot install so is not cool. Easy setup means many users too:
http://ocomonphp.sourceforge.net/empresas.php
( gentoo vs ubuntu ?)
[/edited]
from hurraa.
so, we need to configure a .sh or .bat file like this:
https://gist.github.com/sukharevd/6087988 ?
from hurraa.
Excelent idea @betowebti !
Yes !
Wee need script install !
from hurraa.
When put under standalone/deployments
, only works in standalone mode. Put under modules
, works for all modes.
from hurraa.
@garcia-jj cool !
But for end user it needs to be invisible the math is simple, "no easy setup, no users"
like LFS vs Linux mint , hurraa is for end user not developers.
this is possible ?
"dear end user: "
- wget this script xpto
- run and wait
- access localhost:8080/hurraa
going to create a issue for something like this
from hurraa.
@EProgramming We have a mistake here. I was read the readme, and the location is wrong. So I only have suggested to change this location to use the right location. Using system layer works, but is not the right location.
But the project is yours. So you can decide what's the best for your users.
from hurraa.
@garcia-jj when running in domain mode, all deployments are replicated among all WildFly instances. Since the JDBC Driver is a deployment it will be replicated and become available as well.
from hurraa.
@EProgramming the main advantage of a module is the possibility of customising a WildFly installation, zip it, and make sure everybody works with the same configuration. They don't even need to deploy the driver. We can customise a WildFly for Hurraa and make it available for download.
from hurraa.
@htmfilho " We can customise a WildFly for Hurraa and make it available for download."
So if is really possible we don't need the script install anymore ! Great and thanks for the tip !
from hurraa.
I think the script is a plus. Both are very interesting strategies.
from hurraa.
I agree @htmfilho .. or maybe we can have both. Distribute wildfly with hurraa inside and a script to configure important data like database name, user, password, etc .. on root folder named install.sh|bat and other to help client easily start|stop hurraa start.sh|bat and stop.sh|bat
from hurraa.
π
from hurraa.
I think that providing a install script will help newbie users. This script can download Wildfly, extract the package, and configure the appserver using cli interface.
At this time I'm very busy with my personal project. But as soon as possible I'll happy to send a pull request with a suggestion for cli script.
Thank you guys.
from hurraa.
PS: if your personal project is open source do not hesitate to ask the CEJUG community for contributions ;-)
from hurraa.
Great idea Garcia, i will finish the script today and provide for the project, thanks for the idea =)
from hurraa.
Related Issues (20)
- User form - password confirmation field HOT 6
- Atualizar a versΓ£o do VRaptor para RC2
- Open Ocurrence form HOT 3
- Sectors list - Boolean columns values HOT 4
- List Ocurrence
- CRUD Occurrence Status HOT 2
- Update Occurrence HOT 2
- Search Occurrence
- Add a script contribution. HOT 8
- Create a wiki page to teach how to made Wildfly as Unix System Service HOT 3
- Any problems with encoding ? HOT 5
- Update mysql connector
- m HOT 3
- messages_pt_BR.properties using iso-8859-1 encoding HOT 4
- Simple injection usage and no more @Deprecated annotation HOT 4
- Please use space and no tabs... HOT 3
- Review and update message bundle
- Validation message properties HOT 1
- sitemesh3 ? HOT 3
- Udate to vraptor final and wildfly 8.1.0
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hurraa.