- Wicket's Date & Time Components and Client-Server Timezones
- Some useful Java System Properties while starting JVM.
- Jbossws 2.0.1 with JDK 1.6
- Date & Time selection made simple in Wicket
- New Features in Vim 7
- Maven best practices: Use dependency management for multi module projects.
- Prototyping LAMP with WAMP
- Bash shell tricks
Reply to comment |
Here I describe how to use the latest jbossws (2.0.1) with JDK 1.6Prior to version # 2.0.0.GA, jbossws (The Jboss stack for web services based on jax-ws ), did not support JDK 1.6. But since the 2.0.0.GA version , support for JDK 1.6 has been added. However you need to take some extra steps in order for jbossws to work correctly under JDK 1.6. Following is a list of things you need to do in order to install and run jbossws in jbossas (jboss application server) under JDK 1.6. Supported Jboss versionsjbossws 2.0.1.GA supports the following jboss versions.
Any previous jboss versions are not supported. In order to install jbossws on top of an existing jboss app server installation, first download the latest distribution.Unzip it in some temporary folder, and depending upon your target jboss version change the jboss50.home, or jboss42.home, or jboss40.home property to point to your jbossas installation. After that do The build file, will then remove the stock jbossws that came with the app. server installation, and install jbossws 2.0.1.GA in it's place. This completes the installation part Support for JDK 1.6Jbossws 2.0.1.GA is based on the jax-ws and jaxb versions 2.1. But JDK 1.6 ships jaxb 2.0 classes as part of the core distribution (rt.jar). So in order for the jboss jars to take precedent over the jdk supplied jars, we have to use the endorsed directory mechanism, as described here. The above link is for using jaxws ri 2.1, but we need jbossws 2.0.1. For that purpose copy the following 3 jars in to the jboss/lib/endorsed directory. So assuming your jboss is setup in a directory/jboss and you have already installed jbossws 2.0.1 on top of it, Copy the following 3 files to /jboss/lib/endorsed.
The jboss run script is already configured to add the Other notesThese are things that I have noticed, as part of trial and error of getting jbossws to work correctly with JDK 1.6. I couldn't find any documentation for them any where, so I am listing them here so that other can benefit from my experiences. Target NamespaceWith jbossws < 2.0.0.GA, you did not need to specify a target namespace for your web service, the default is derived from the Java package name. However in the 2.0.1.GA version I noticed, that if you don't specify a target namespace, and if the web service interface and implementation are in different packages, then you get errors at invocation time. The same used to work with the stock jbossws (1.0.3) that came with 4.0.5 ver. of jboss. So if your WS interfaces and implementations are in different Java packages, then make sure to add the same target namespace to the @WebService annotation, for both the interface and the implementation. JMX local AgentIf you enable the jmx local agent for your jboss app. server, with the System property Depending on the JDK version (1.5 or 1.6) you are using you will get a NPE, in different classes,
but the crux of the problem, is that WSServiceConfig MBean described in
|
|||