Installing MySQL on FreeBSD

Go to the installation folder cd /usr/ports/databases/mysql56-server carry out the installation command make install clean After a long run of installation edit the below file nano /etc/rc.conf add this line and save&exit mysql_enable="YES" start the server /usr/local/etc/rc.d/mysql-server start Set the root password mysqladmin -u root password "YOUR-PASSWORD-GOES-HERE" connect to your server mysql -u root -p

Enabling root remote ssh login on Freebsd

Using username "root". Access denied Using keyboard-interactive authentication. Password for root@Freebsd10: Access denied nano /etc/ssh/sshd_config find the "#PermitRootLogin no" line or you can use ctrl + w and enter the line then remove # and change no to yes then ctrl+o and ctrl+x to exit restart sshd deamon by entering "/etc/rc.d/sshd restart" Performing sanity check

vmware linux ethernet module compile issue

I’ve faced this issue today in the morning after a fresh ubuntu 14.04 installation on my laptop. The issue occurs because vmware cannot configure the Ethernet module. Virtual machine monitor done Virtual machine communication interface done VM communication interface socket family done Blocking file system done Virtual ethernet failed VMware Authentication Daemon done to resolve

javax.faces.application.ViewExpiredException

I have come to use two solutions to prevent this exception. First of all I implement my managed bean clases to Serializable interface and add the below line into web.xml <!– This line is to prevent ViewExpiredException –> <context-param> <param-name>com.sun.faces.enableRestoreView11Compatibility</param-name> <param-value>true</param-value> </context-param>

One jar with all dependencies

The configuration is below when you issue this command “mvn clean package assembly:single” then you will get a jar file containing all the sources and if  you check the me MANIFEST.MF file and you will see the line “Main-Class: com.tugrulaslan.App” the value we set below in the pom.xml <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>de.goeuro</groupId>

Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file:

This happens because you define set in factory session as just like below. To ward off the issue delete the name definition. <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate Configuration DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd"> <hibernate-configuration> <session-factory name="KYSSessionFactory"> <property name="hibernate.connection.driver_class">oracle.jdbc.driver.OracleDriver</property> <property name="hibernate.connection.password">xxxx</property> <property name="hibernate.connection.url">jdbc:Oracle:thin:@exap-scan.xxx:1525/xxxx</property> <property name="hibernate.connection.username">xxxx</property> <property name="hibernate.default_schema">xxxx</property> <property name="hibernate.dialect">org.hibernate.dialect.Oracle10gDialect</property> <mapping class="com.xxx"/> </session-factory> </hibernate-configuration>