Posts Tagged ‘java’

WebSphere CE – Deploy WAR on its own port

I was tasked by the powers that be to figure out how to deploy a WAR in WebSphere Application Server Community Edition (WSASCE) under a separate port from other applications that were already running on our test server. After much googling and frustration, since I have never worked with WSASCE before, I finally figured it [...]

Mac – Eclipse Galileo – Installing GWT Plugin

Ok, So I was having some real issues when I tried to install the GWT plugin from Google into Eclipse Galileo on my Mac in order create a GWT 2.0 application. After installing the plugin (via the update site – http://dl.google.com/eclipse/plugin/3.5) you need to restart Eclipse. However when Eclipse restarted all I got was an [...]

Struts2 Rest Webservice

I started out trying to create a rest webservice for a project I’m working on with Mersoft. After a little bit of research, I discovered Apache has a rest plugin that enables Struts 2 to perform as a rest webservice.
I followed the documentation at http://struts.apache.org/2.x/docs/rest-plugin.html and created my rest webservice. However, I came across a [...]

GWT – Hide Tabs in TabPanel

I was continuing my work on a sample GWT app and needed the ability to use a Menu with CheckItems to show/hide tabs in a tab panel. Here is how I did it.
Note: This post does not cover the creation of the TabPanel, Toolbar and ToolbarButton with a Menu.
Step 1: Override the Ext.TabPanel. (Note: This [...]

How to Configure Axis 1.4 WS Client (Java) to accept GZIP compressed SOAP messages.

In this blog I will explain how to write an Axis 1.4 Client that can accept GZIP compressed SOAP messages. The GZIP compression feature of Axis 1.x is not well documented on the Apache website, so you have to search for it in blogs like this one. You can also use Axis 1.x [...]

GWT Disable ComboBox options

I have been working on an application that required the ability to disable ComboBox options. I googled to see if someone else had already done this and I found the following post. I used the code from the post as a starting point and added additional code to flush out a few more features.
The main [...]

GWT-EXT: Retain Checkbox selections in page-able GridPanel

When working on a sample project for Mersoft using GWT-EXT I came across a use case that required a data table that was page-able, had a checkbox selection per row, and needed to maintain the checkbox selections when paging.
Here is what I ended up doing. It may not be pretty, but hey, its a sample.
I [...]

My Experience with Google AJAX toolkit

 
 
 
My first task at Mersoft was to develop an ajax-rich web interface with a Java backend. I was told that it must be tabbed and was shown the existing interface which pretty much was just a file upload. The project was to keep the file upload plus have several tabs containing different types of reports [...]

Problems with duplicate or multiple log messages using log4j xml

Are you seeing duplicate or multiple log messages using log4j xml configuration?
The configuration below produces three log messages.
log4j.xml:
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/">
  <appender name="console" class="org.apache.log4j.ConsoleAppender">
    <param name="Target" value="System.out" />
    <layout class="org.apache.log4j.PatternLayout">
      <param name="ConversionPattern" value="%-5p %c{1} – %m%n" />
    </layout>
  </appender>
  <logger name="com.acme.LoggingTest">
    <level value="debug" />
    <appender-ref ref="console" />
  </logger>
  <logger name="com.acme">
    <level value="debug" />
    <appender-ref ref="console" />
  </logger>
  <root>
    <priority value="debug" />
    <appender-ref ref="console" />
  </root>
</log4j:configuration>

LoggingTest.java:

package com.acme;
public class LoggingTest {
  
  private [...]