Use Glassfish embedded with MySQL - mysql

Well, the title says almost everything, how can I define a jdbc-connection in an embedded glassfish to be able to use a MySQL database as a jdbc resource??
Thanks for your replies!

I got it working, it was simpler than I thought!
I've used a jdbc I had configured with an installed glassfish and copied the configuration from domain.xml.
For the embedded glassfish to be able to use MySql driver, I just put the dependency in maven...

Related

Can't find libmysql.dll and others connecting to MYSQL from ZeosLib in Delphi

Excuse me, I would like to ask about how can I connect Delphi with MYSQL with ZeosLib. I already know the steps but I can't get it yet cause when I change the Properties in ZConnection where Connection = True, it can't. And this is the message
By the way, my OS actually Linux Ubuntu and I have to use VirtualBox to work on it.
So if there's somebody know this, I'm begging you guys to help me.
You need to download the dynamic link library that the error message is referencing. The following link https://dev.mysql.com/downloads/windows/installer/8.0.html takes you to MySQL Download page for the latest version of MySQL 8.0.13, or go to this page if you are on a 5.X version https://dev.mysql.com/downloads/installer/
Download the appropriate file 32bit or 64 bit and install it. Find the installed libMySQL.dll and put that file in the same directory as the executable being created by Delphi
You may instead set the Zeos Connection Component's Library Location property to the directory that the dll is located in.
I have got a similar project and I used this link:
http://docwiki.embarcadero.com/RADStudio/Tokyo/en/Connect_to_MySQL_Server_(FireDAC)
and it's working.
But if you mean : set the "connection := true" in designtime, you have to use the platform assistant under the linux as well.

JDBC connector cannot be accessed by Server

I am having issues trying to run a web application, that was working fine, but suddenly, stop working and now the server cannot find the JDBC connector that is located on the WEB-INF/lib… is there a way that can move the .jar file to another location? How can I say to the server where to find it?
Thanks in advance.

Which mysql driver will suport ejabberd 2.1.13 perfectly?

I want to configure Ejabberd with Mysql. I have seen many mysql drivers available in different sites. I don't know which will work fine with ejabberd 2.1.13.
I am using drivers from the link -
https://github.com/dizzyd/erlang-mysql-driver
And these are not working fine.
Use https://svn.process-one.net/ejabberd-modules/mysql/trunk/
This is a deprecated repository, but will work with 2.1.x.

Sonar Tomcat installation fails

I installed both Sonar and Jenkins on the same Tomcat (7.0.29) version. I followed the instructions, which means that I created the sonarqube database (we are using MySQL), that I built and created the WAR file, and that I deployed that file to Tomcat. I also modified the Tomcat CATALINA_OPTS value to give Tomcat more memory. Jenkins will run, but Sonar will give me a "We're sorry, but something went wrong." error. I checked all of the Tomcat logs but could not find anything useful such as an exception. Does anyone have any ideas on this?
Thanks in advance...
Deployment on Tomcat won't be supported as of next version. Therefore, I recommend you to use the standalone mode instead. Note also that is not recommended to install SonarQube and Jenkins on the same machine. See http://docs.codehaus.org/display/SONAR/Installing#Installing-SonarQubePlatformOverview.

I can't see MySQL in datasource list for entity framework

I use visual studio 2010-12 and I installed ADO.NET Entity Framework 4.1 , Mysql .Net Connector and Mysql Workbench
Before formatting, my computer, I could use entity framework for MySQL. but not I cant see MySQL in data source list. Here is what I mean
Well...where is the my mistake or missing?
Try uninstall existing mysqlconnector.
Download mysqlconnector/net 6.5.6
It works with VS2010 on my desktop.
However, id you're using vs2012, you may try the
latest version.
Okay I solved, I opened server explorer and I connected to mysql database, after I tried to add an ado.net entity framework object and it works