Thursday, January 26, 2012
Introduction This post describes how to install soapUI on Ubuntu 11.10 and solve potential issues with installation. Installation Download linux version (soapui-4.0.1-linux-bin.zip file) of soapUI 4.0.1 Unpack it to desired location Add execute permission to bin/soapui.sh file: chmod +x bin/soapui.sh Run soapUI ./soapui.sh Troubleshooting If you get following exception after running and your application closes: [...]
Tuesday, January 17, 2012
Introduction This post describes how to set up environment to be able to code and debug Alfresco on Tomcat in Eclipse. To start with make sure you have downloaded and installed the following: Eclipse Indigo – download it here Tomcat 7.0 – download it here Sysdeo Eclipse Tomcat Launcher plugin – download it here Oracle [...]
Introduction In this blog we’ll be looking at how to use hibernate tools with just ant. This may be useful if you need to plug some hibernate tasks into your build system or have them scripted in any way. We will create a stand-alone ant build file with the minimum number of required libraries. Libraries [...]
Introduction Remember me functionality is a mechanism that lets users log in automatically, even when they re-start their browser. In other words: after their session cookie is deleted by the browser (which is normally after closing the browser). This is implemented by setting up another cookie that will live in the browser’s database for a [...]
Sometimes it might be very convenient to be able to debug application deployed on web server. This tutorial presents how to do it, if the application is deployed using Jetty plugin for Maven or Tomcat servers. Jetty Maven plugin Set the following MAVEN_OPTS to the following: export MAVEN_OPTS=’-Xdebug -Xrunjdwp:transport=dt_socket,address=4000,server=y,suspend=y’ Run Jetty Maven plugin: mvn jetty:run [...]
Introduction In the tutorial below we will look at a basic integration of a Java web application with Spring Security 3. In this particular scenario we’ll be integrating Spring Security with existing web application that uses Struts & Spring. However, similar steps can be applied to any other web framework you may be using. We [...]
Introduction When developing web application set up of convenient development environment might be crucial for more efficient work. Let’s consider web application that uses following frameworks: Maven Spring Struts2 Hibernate In addition we want to use Eclipse as our editor. This tutorial presents initial setting of Eclipse project to support all the frameworks mentioned above [...]
Apache log4j is one of the most popular frameworks used for logging events within Java code. Apache CXF on the other hand is one of the most popular framework to support communication using web services. To monitor and debug Java application there might be a need to log inbound and outbound web service messages. If [...]
This is part 5 of the Java Technologies Integration tutorial. The purpose of this part is to provide updates to Hibernate configuration in existing project to make the maintenance of the project more straight forward. Hibernate configuration files The description of Hibernate configuration was described here: Java Technologies Integration tutorial – part 2 – Hibernate [...]
In the tutorial below I will focus on transactions management with Spring 3. For the sake of simplicity, we will create a standalone Java application – but the same logic can be used in J2EE application. We will create: Entity objects (simple POJO) – the basic entities mapped to the relational database (via annotations). DAO [...]