Category: TomEE

  • JAX-WS Custom Exception with FaultBean in TomEE and WebSphere Application Server

    In our last post we were able to deploy a simple JAX-WS service on both TomEE and WebSphere Application Server. JAX-WS Specification suggests that three thing should be followed for us to implement Custom Exception as SOAP Fault. WrapperException(String message, FaultBean faultInfo) A constructor where WrapperException is replaced with the name of the generated wrapper…

  • JAX-WS Exception Handling with TomEE and WebSphere Application Server 8.5

    Let’s write a simple JAX-WS example which will throw an Exception. We will then deploy it in TomEE and then to WebSphere 8.5 and see the difference. Download TomEE ( I have downloaded the plus version which at the time of writing was 1.7.1) Download and install WebSphere Application Server (Developer version is free) Download…

  • Java EE 6 Servlet – TomEE – Caused by: java.lang.IllegalArgumentException: Invalid in servlet mapping

    How bad a plain vanilla servlet can go with annotations??? Let’s see what happens if we miss a simple “/”. So I configured a simple Servlet in eclipse, see the code below [sourcecode language=”java”] package com.mumz.test.javaee.servlet; import java.io.IOException; import javax.servlet.ServletException; import javax.servlet.annotation.WebServlet; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; /** * Servlet implementation class MySecondServlet. */…