Monday, September 21, 2009

'jar-no-fork' was specified in an execution, but not found in the plugin

Problem:

[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] 'jar-no-fork' was specified in an execution, but not found in the plugin

Solution:
To install the maven version 2.2.1

Wednesday, September 16, 2009

Eclipse Galileo 3.5

1. Install Eclipse.

Download eclipse-jee-galileo-linux-gtk.tar.gz from:
http://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/galileo/R/eclipse-jee-galileo-linux-gtk.tar.gz
tar -zxvf eclipse-jee-galileo-linux-gtk.tar.gz

2. Install Subversive.

2.1. Install subversion for Ubuntu https://launchpad.net/~anders-kaseorg/+archive/subversion-1.6
The list of all dependencies for Ubuntu 9.04 is here https://launchpad.net/~anders-kaseorg/+archive/subversion-1.6/+build/1200532

for install it use "
gksudo gdebi -i package_name.deb
or
sudo dpkg -i package_name.deb
2.2. Install subversion for Eclipse

Add update site
http://download.eclipse.org/technology/subversive/0.7/update-site/
Now you can install only Subversive SVN Team Provider.


After restart eclipse go to Window -> Preferences -> Team -> SVN
on the first call to any Subversive functionality the Connector Discovery feature will detect that there are no connectors installed and will launch a dialog which displays the SVN Connectors you need and enables download and installation:




2.3. Use share project.
Click right-button mouse on project and select Team -> Share Project SVN, Next, Next,
Enter user/password, check Save password, Finish


3. Configure JRE, Classpath variables, Formatter and Templates

JRE

Classpath variables are configured at
Window -> Preferences -> Java -> Build Path ->
Classpath variable
Click NEW to add maven repo "M2_REPO" variable.

Formatter

Templates


Links:
1. How to use maven for eclipse
2. How to debug tomcat with eclipse

Tuesday, September 15, 2009

[SOLVED] to disable Checking file systems

To disable annoying delay for several minutes to boot ubuntu with "Checking file systems"

This is controlled by the last column in /etc/fstab. If that value is non-zero, say 1 or 2, that filesystem will be checked on startup.


How to install and configure VirtualBox 3.0.6 on Ubuntu 9.04

Download VirtualBox
at http://www.virtualbox.org/wiki/Linux_Downloads
and install it with "gdebi" command.


For example

wget http://download.virtualbox.org/virtualbox/3.0.6/virtualbox-3.0_3.0.6-52128_Ubuntu_jaunty_i386.deb
mv virtualbox-3.0_3.0.6-52128_Ubuntu_jaunty_i386.deb?e=1253006096&h=261692f9fb58b931914cb1dae9141b82 virtualbox-3.0_3.0.6-52128_Ubuntu_jaunty_i386.deb
sudo gdebi virtualbox-3.0_3.0.6-52128_Ubuntu_jaunty_i386.deb



Restart Ubuntu.

Configure a bridge interface for local machine.


========
root@alexey:~# cat /etc/network/interfaces

auto lo
iface lo inet loopback

iface br0 inet static
address 192.168.0.23
netmask 255.255.255.0
gateway 192.168.0.254
auto br0


========
The constants values for me:
NEW_INT_NAME = winXP
USER = alexey

Comands:

VBoxTunctl -u USER -t NEW_INT_NAME
apt-get install bridge-utils
brctl addbr br0
brctl addif br0 NEW_INT_NAME

Monday, September 7, 2009

Element soap:address is wrong. The namespace on the "definitions" element, is not a valid SOAP version.

Don't use "?wsdl" postfix within soap:address element!









If you a register client with wrong xml, after trigger wsdl via browser your client throws an exception:


Caused by: org.apache.cxf.binding.soap.SoapFault: "http://schemas.xmlsoap.org/wsdl/", the namespace on the "definitions" element, is not a valid SOAP version.
at org.apache.cxf.binding.soap.interceptor.ReadHeadersInterceptor.handleMessage(ReadHeadersInterceptor.java:92)
at org.apache.cxf.binding.soap.interceptor.ReadHeadersInterceptor.handleMessage(ReadHeadersInterceptor.java:54)
at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:220)
at org.apache.cxf.endpoint.ClientImpl.onMessage(ClientImpl.java:449)
at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponse(HTTPConduit.java:2029)
at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:1865)
at org.apache.cxf.transport.AbstractConduit.close(AbstractConduit.java:66)
at org.apache.cxf.transport.http.HTTPConduit.close(HTTPConduit.java:593)
at org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:62)
at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:220)
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:296)
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:242)
at org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:73)
at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:178)



So, correct use the soap:address element.