Sending a SOAP request to a Web Service via URLConnection
You may want to test you web service by sending it a manually composed request and reading the XML returned. Here's how to do it (e.g. using BeanShell in jEdit):
Continue reading →
RAD, WebSphere and changing the classloader mode
I've spent hours trying to change the classloader mode for a .war include in an .ear application and deployed to the WebSphere Portal v5.1 Test Environment by means of Rational Application Developer's server configuration editor. I was able to change to for the EAR, but when I changed the mode for a WAR of the EAR from PARENT_FIRST to PARENT_LAST and saved the configuration, I was required to republish, after doing this RAD promted me to reload the configuration from the disk because it has changed. I did so - and my change to parent_last was gone.
Finally i discovered that if I stop the server, remove the application (EAR), republish (?), add the application, change the classloader mode of all WARs in question (and perhaps the EAR as well), save the config. and republish, the change will really apply.
Continue reading →
Eclipse: Run => NoClassDefFoundError for an interface when loading a class implementing it
Continue reading →
Redeploy an application (ear/war/…) on JBoss
A) Via JMX-console
- find jboss.system:service=MainDeployer
- invoke listDeployed - find something like:
org.jboss.deployment.DeploymentInfo@d78e875f { url=file:/C:/jboss-3.2.3/server/default/deploy/tap.ear }
- copy the url, go back and invoke Redeploy with the url (file:/C:/...) as the parameter.
Continue reading →
Access EJB on JBoss from outside
How to acces an enterprise java bean (EJB) running on JBoss from a standalone application running outside JBoss?
Continue reading →