Apache CXF Without spring

I found a very good blog post about that topic, here: http://chathurangat.blogspot.com/2014/02/apache-cxf-first-jax-ws-soap-web.html

I copied there, to be here also for the future:

Apache CXF First JAX-WS (SOAP Web Service) Example (CXFNonSpringServlet)

The most of the people think that the Apache CXF supports only to develop Spring based Web Services. this is NOT true. is supports to build both Spring based and Non spring based web services.
1. CXFServlet –  this will support for the Spring based web services.
2. CXFNonSpringServlet –  this will support for the non spring web services.the purpose of this article is to demonstrate how to develop non spring based web service with Apache CXF. i have already developed and  tetsed the service with SoapUI. i am just sharing the source code for your reference.the project structure looks as below.,




the following is the Service Endpoint Interface(SEI).



the following is the Service Implementation Bean (SIB)



the custom implementation for the CXFNonSpringServlet.



Source code can be downloaded at :- https://github.com/chathurangat/apache-cxf-jax-ws-first-service

Chathuranga Tennakoon


OpenVPN Android client, error msg: “option or or was not properly closed out”

The fckn openvpn always s**ked me on android…

I found, why:

I have learned:
1. Filename extension *must* be lowercase
2. Remove all space(s) between last character(s) and CrLf. E.g.:
<CA>{SPACE}CrLf to

src: https://forums.openvpn.net/viewtopic.php?t=25096

Sierra Wireless EM7455 Qualcomm Snapdragon X7 LTE-A – PIN2 – NPCap

I bought a DELL notebook with LTE modem Sierra Wireless EM7455 Qualcomm Snapdragon X7 LTE-A. After that, I installed Whireshark with NPCap.


After that, my WWAn connetion didn’t work more.


I used the windows troubleshooter and it sometimes put a result to me, I have to add my PIN2 number.


After that, I googled a lot, and I find this article.


Uninstalled NPCap, and the LTE modem works very well.


Ubuntu/Debian (linux) WSL and Docker

If you would like to use docker on windows Ubuntu/Debain WSL you have to modify the .bashrc file in your home directory.

and add this line to the end:

reload the modifications:

That’s all folks 😀

Ubuntu WSL add git brach name to promt

you have to mofify ~/.basrc from that:



Modification details:

  • add $(parse_git_branch)\[\033[00m\] 
  • and COMMENT the unset color_prompt force_color_prompt line

src: https://askubuntu.com/questions/730754/how-do-i-show-the-git-branch-with-colours-in-bash-prompt

Transmission network problem

Recently started in debug mode on Transmission and I see:

[17:42:40.319] UDP Failed to set receive buffer: requested 4194304, got 262142 (tr-udp.c:75)
[17:42:40.319] UDP Please add the line "net.core.rmem_max = 4194304" to /etc/sysctl.conf (tr-udp.c:80)
[17:42:40.319] UDP Failed to set send buffer: requested 1048576, got 262142 (tr-udp.c:86)
[17:42:40.319] UDP Please add the line "net.core.wmem_max = 1048576" to /etc/sysctl.conf (tr-udp.c:91)

By tuning the two variables, higher throughput can be achieved more easily using uTP.

Here’s the relevant part from the changeset :

Since we are using a single UDP socket to implement multiple UTP sockets,
and since we are not always timely in servicing an incoming UDP packet,
it is important to use a large receive buffer. The send buffer is probably
less critical, we increase it nonetheless.

Four megabytes might seem huge for embedded clients, but running behind a dedicated connection, it might even become too small. I recommend using 16 megabytes for receive buffering and 4 for the send buffer. That is, because uTP implements a retransmission algorithm and by scaling up the buffers we can achieve fewer retransmits because of dropped datagrams. Let’s set it up that way.

Check actual settings:

do the modifications:

src: https://falkhusemann.de/blog/2012/07/transmission-utp-and-udp-buffer-optimizations/

Oracle 11g XE install on Ubuntu 14/16

After Ubuntu downloaded and installed.

First install Java:


Reload sources:


result should be:

Second: Download and prepare Oracle DB

Copy the downloaded file and paste it in home directory.

Unzip using the command:

Install required packages using the command:

Enter into the Disk1 folder using command:

Convert RPM package format to DEB package format (that is used by Ubuntu) using the command:

Create the required chkconfig script using the command:

The pico text editor is started and the commands are shown at the bottom of the screen. Now copy and paste the following into the file and save:

Change the permission of the chkconfig file using the command:

Set kernel parameters. Oracle 11gR2 XE requires additional kernel parameters which you need to set using the command:

Copy the following into the file and save:

Verify the change using the command:

You should see what you entered earlier. Now load the kernel parameters:

Verify the new parameters are loaded using:

You should see the file-max value that you entered earlier.

Set up /dev/shm mount point for Oracle. Create the following file using the command:

Copy the following into the file and save.

Change the permissions of the file using the command:

Now execute the following commands:

Install Oracle

Install the oracle DBMS using the command:

Configure Oracle using the command:

Setup environment variables by editting your .bashrc file:

Add the following lines to the end of the file:

Load the changes by executing your profile:

Start the Oracle 11gR2 XE:

Add user YOURUSERNAME to group dba using the command:


src: https://askubuntu.com/questions/566734/how-to-install-oracle-11gr2-on-ubuntu-14-04 and https://www.quora.com/How-can-I-install-Oracle-11g-in-Ubuntu-16-04LTS

gentoo beragadt init script takarítása


Debian 8 Docker daemon default start params remove

Somebody at debian’s thought, it will be very usefull, if adds the

param to the docker daemon default

To remove it, and use the /etc/docker/daemon.json do this below:

mod this line:


than reload the daemon config

and reload the service



JDK 8 Failed to read schema document ‘xjc.xsd’, because ‘file’ access is not allowed due to restriction set by the accessExternalSchema property.

The error msg is:

java.lang.AssertionError: org.xml.sax.SAXParseException; systemId: jar:file:/path/to/glassfish/modules/jaxb-osgi.jar!/com/sun/tools/xjc/reader/xmlschema/bindinfo/binding.xsd; lineNumber: 52; columnNumber: 88; schema_reference: Failed to read schema document ‘xjc.xsd’, because ‘file’ access is not allowed due to restriction set by the accessExternalSchema property.

the resolution is:

Create a file named jaxp.properties (if it doesn’t exist) under /path/to/jdk1.8.0/jre/lib and then write this line in it:

src: https://stackoverflow.com/questions/23011547/webservice-client-generation-error-with-jdk8