How to deploy a datasource to jboss6 with maven - mysql

Is there a recommended way to deploy a mysql datasource and corresponding mysql-connector-java.5.1.21.jar using maven? Right now we have an ear deployment that installs the mysql-ds.xml, the connector j driver, an ejb.jar and a war file. It works but I also get this stack trace during startup of my JBoss 6 server. We don't have this issue if we place the mysql jar into the server\default\lib dir but we are hoping the datasource and driver jar can be part of our ear deploy.

Related

Apache Flink: logback configuration ignored

I have a flink job in which i am using logback as my logging framework. Apart from the file, console appenders, i am also using logstash-logback-appender to send my log to a logstash instance.
If i run the flink job from Eclipse, the logs are sent to the specified logstash server.
I can see the logs being sent to logstash if i package the application as jar and run it outside Eclipse.
However if run the flink application as job (by uploading the same jar as above) from flink dashboard, the logs are not sent to logstash.
My flink setup is running on windows as per the instructions here Running flink on windows. I start flink using start-cluster.bat
I think the logback configuration is ignored. I have placed the logback configuration at src/main/resources in my application. How can i get the logback configuration recognized by flink setup?
I have tried the steps mentioned in Best practices. Does this steps to replace log4j with logback are for the jobmanager & taskmanager logs or are they for application logs?
Try adding logstash-logback-encoder lib in the lib/ folder along with logback jars.

how to add keycloak module to openshift wildfly cartridge?

I'm using a wildfly 10 cartridge on openshift on line and want to protect the application using a keycloak wildfly adapter. I add the adapter modules to the .openshift/config/modules in my local git directory and I modify the .openshift/config/standalone.xml (as specified in the documentation here). Unfortunately when I add/commit/push my project the result is that remote standalone.xml is correctly updated but the adapter module files are not there. What am I doing wrong?

Installation of Maven 3.2.1 is not terminating

I try to set up a new Hudson (3.3.2) with Maven (3.2.1), but installation of Maven is not terminating.
Configuration of Maven:
Job log:
Gestartet durch Benutzer anonymous
[...]
Unpacking http://archive.apache.org/dist/maven/binaries/apache-maven-3.2.1-bin.zip to C:\Users\dur\.hudson\tools\Maven_3.2.1 on Hudson
Created files:
.hudson
tools
Maven_3.2.1
apache-maven-3.2.1
boot
plexus-classworlds-2.5.1.jar
All other files are not unpacked. But it is no network problem, because I can manually download and unpack apache-maven-3.2.1-bin.zip without any problem.
Environment:
Windows 7
Java 8 (also with Java 7)
Hudson 3.3.2 (also with 3.3.3)
Legacy Maven 2 job type Plugin 3.0.2
In the year 2014 I set up a Hudson (3.1.2) with Maven 3.0.4 successfully.
A work-around is to install Maven manually and use this installation, see The Hudson Book:
Use an existing Installation
Specify a Name and add the path to your Maven install in the MAVEN_HOME input control.
Configuration:

How to resolve Microsoft SQL geography type dependency on AppHarbor

I am trying to deploy my web service on AppHarbor through GitHub. My web service is using NHibernate.Spatial, which has Microsoft.SQLServer.Types version 10.0.0.0 as a dependency. This assembly is, if I understand correctly, installed along with SQL Server 2008. When I run my web service on my development computer, on which I have SQL Server 2008 installed, the service runs without trouble, but when I deploy to AppHarbor I get the following exception:
"Could not load file or assembly 'Microsoft.SqlServer.Types,
Version=10.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91' or
one of its dependencies. The system cannot find the file specified."
As I already build my own version of NHibernate.Spatial.MsSql2008, the assembly from which the dependency derives, I have simply tried copying the required dll into the bin folder when building this project, by setting the reference property Copy Local to true. This is also reflected in the web service bin folder which is pulled by AppHarbor through Git. This didn't help though and my guess is that my web service is looking for the dependency in a different folder than bin.
How do I make the Microsoft.SqlServer.Types assembly available on AppHarbor? As the exception states, this might also be caused by possible missing dependencies of Microsoft.SqlServer.Types, but how do I find if this is the case, and again, how do I make the dependencies of Microsoft.SqlServer.Types available on AppHarbor?
Here's a NuGet package with the Microsoft.SqlServer.Types assembly. You can use this in combination with NuGet package restore on AppHarbor.

How can I add websphere admin jars to Hudson's class path?

I try to use Hudson's Deploy Websphere plug-in to deploy my artifacts to remote websphere.
From the plug-in documentation, I need to do this:
The following WAS JAR files need to be placed into the Hudson class path or dropped into the %project.basedir%/WEB-INF/lib/ directory. These JAR files can be copied from the %WAS_HOME%/runtimes/ directory of your WAS server installation.
com.ibm.ws.admin.client_6.1.0
com.ibm.ws.webservices.thinclient_6.1.0
I have installed hudson as a windows service, how can I add these jars to hudson's class path?
According to Hudson's documentation:
Changing the configuration of services
The JVM launch parameters of these
Windows services are controlled by an
XML file hudson.xml and
hudson-slave.xml respectively. These
files can be found in $HUDSON_HOME and
in the slave root directory
respectively, after you've install
them as Windows services.
The file format should be
self-explanatory. Tweak the arguments
for example to give JVM a bigger
memory.
Stdout and stderr from the service
processes go to log files in the same
directory.
So, it appears you can manipulate the service's JVM classpath using the hudson.xml file.
HTH