How to rethrow a checked exceptions without changing your method signature or wrapping them
How to write to Direct Memory Locations in Java
How to schema check xml via JAXB
How to improve perforamance of JAXB
JVM Garbage Collector Overview
CXF Endpoint Configuration in Java
timestamp/version from mvn to flex
how-to-load-all-the-resources-from-within-a-package-of-your-jar
If you are running against a Windows web server, you may have problems with authentication, if you get the following error :
INFO org.apache.commons.httpclient.auth.AuthChallengeProcessor - ntlm authentication scheme selected
INFO org.apache.commons.httpclient.HttpMethodDirector - No credentials available for NTLM <any realm>@yourhost:80
INFO org.apache.axis2.transport.http.HTTPSender - Unable to sendViaPost to url[http://yoururl]
The webserver is trying to authenticate via windows authentication, you have to set up a NTCredentials, the following code shows you how to overcome this issue :
importorg.apache.axis2.AxisFault;importorg.apache.axis2.transport.http.HttpTransportProperties;importorg.apache.commons.httpclient.Credentials;importorg.apache.commons.httpclient.NTCredentials;importorg.apache.commons.httpclient.auth.AuthScheme;importorg.apache.commons.httpclient.auth.CredentialsNotAvailableException;importorg.apache.commons.httpclient.auth.CredentialsProvider;importorg.apache.commons.httpclient.params.DefaultHttpParams;publicclassMain{publicstaticvoidmain(String...args)throwsAxisFault{finalNTCredentialsnt =newNTCredentials("your username","your password","","your domain");finalCredentialsProvidermyCredentialsProvider =newCredentialsProvider(){publicCredentialsgetCredentials(finalAuthSchemescheme,finalStringhost,intport,booleanproxy)throwsCredentialsNotAvailableException{returnnt;}};DefaultHttpParams.getDefaultParams().setParameter("http.authentication.credential-provider",myCredentialsProvider);}}