So last night one of my students’ final projects just refused to work. I rebuilt it, tweaked the Ant script, nothing worked! 3 hours. I am tired. I repeatedly get the unable to compile class for jsp
error on one of his JSPs.
Finally, I read a posting online and try to run JBoss using JDK 1.4.2.whatever instead of the 1.5 JDK, and guess what? Worked like a charm! The issue had to do with one of the struts tld files, so maybe that is a conflict I was definitely unaware of…
Author: yuval
Axis nsmap.properties
Trying to generate classes from a SOAP WSDL is pretty easy, especially if you are using Ant. You simply run the axis-wsdl2java
task and you get the stub classes. The problem is that if your WSDL file looks like this:
<wsdl :definitions
targetNamespace="http://localhost/axis/services/MyService">
</wsdl>
<schema targetNamespace="http://myservice.yzukerman.cscie162.harvard">
The classes will be generated into two directories:
-
The Axis infrastructure classes will be generated into:
localhost/axis/services/MyService
Which corresponds to the WSDL URL
- The service stubs will be generated into:
harvard/cscie162/yzukerman/myservice
which is in the reverse order of the namespace URL
To overcome that, Axis can use a namespace mapping file, nsmap.properties
which maps the namespace names into the package names you want each of the remote namespaces (Axis classes, stub classes) to be generated into. So, for the above files to both be mapped under a package called com.enavigo.myservice
, the nsmap will look like this:
http\://myservice.yzukerman.cscie162.harvard=
com.enavigo.myservice
http\://localhost/axis/services/MyService=com.enavigo.myservice
My co-worker Nate Pickett helped me with this ‘discovery’.
Look at this JavaWorld article to more.
The Sandman Panel Van is a concept vehicle from GM’s Holden division in Australia. Other than a V8 and more flames and demons than single designer on acid can dream of, the car even sports a ‘Chill Out Zone’ rear compartment.
I think my beloved Fu Manchu finally have the wheels that fit.