Priti Machhi wrote:How did you add the header to the client. When I try building it using the OMElement it gave me error at line
OMElement omuserName = omFactory.createOMElement(new QName("", "Username", "wsse"), null);
java.lang.IllegalArgumentException: Cannot create a prefixed element with an empty namespace name
at org.apache.axiom.om.impl.llom.OMElementImpl.handleNamespace(OMElementImpl.java:186)
at org.apache.axiom.om.impl.llom.OMElementImpl.<init>(OMElementImpl.java:161)
at org.apache.axiom.om.impl.llom.factory.OMLinkedListImplFactory.createOMElement(OMLinkedListImplFactory.java:126)
Originally posted by Campbell Ritchie:
. . . and to other classes in the same package.
Originally posted by John Cronk:
Ok I compared my settings with another person's PC here, and they were using JRE 1.5.
So I downloaded that and changed my eclipse JRE settings to point to this instead.
Originally posted by John Cronk:
Now on ant build I get
So it appears that Eclipse's understanding of what JAVA_HOME is has been affected by my changing the default JRE.
JAVA_HOME is definitely "C:\Program Files\Java\jdk1.5.0_12"
?? Again, any ideas anyone ?
Originally posted by Santhosh Reddy:
Connection closing is not required as i'm using iBATIS