Tim Burns' Weblog
 
Tuesday, October 7, 2003 [*]
 

Evolving a SOAP Template for Tomcat

Usually when I'm using an app server, I don't really have the time to start from an empty configuration and configure all the web.xml parameters, but this time I did so, and I'm glad I did it. I'm especially glad because I not only configured in servlets, but I also nailed down the bare bones of getting a nice SOAP template.

If you just cut and paste an existing web.xml file from say the Tomcat examples, then you get this innocuos little snippet by default:

        <servlet-mapping>
            <servlet-name>invoker</servlet-name>
            <url-pattern>/servlet/*</url-pattern>
        </servlet-mapping>
    

When I started from scratch though I didn't have the servlet mapping and I had quite a puzzle trying to figure out why my servlets weren't executing. Once I added that mapping, it works like a charm. Anyways, I'm glad to have added it to my latest J2EE template.

I discovered another gotcha when running in my simple environment when I tried to load classes in the javax.* namespaces. It turns out my classpath set when running ant wasn't loading these classes and all my calls to the SOAP classes failed. When I added the SOAP classes to the WEB-INF/lib of my application, then it worked liked a charm. After reading the After looking through the Tomcat Class Loader-FAQ I now believe that this was related security in the class loader.

 
Comments [0]
 

Articles

Non-Blocking Socket I/O in JDK 1.4

Generating Entity Beans with XSL Templates

 

Photos

Phantom Farms
Providence
Baby Shower
Camden, Maine
 

The Daily Chronic

Atrios
Bio Informatics
Brown News
Carl Zimmer
Charles Murtaugh
Dijkstra
Docnotes
Get Fuzzy
Oreilly
Pipeline
Philip Greenspun
Orcinus
Salon
Science Blog
Scientific American
The Living Code
Tom Tomorrow
Woods Hole News
 

References

Statistics

 

Archive

2003
 October 07 11 12 16 18
 September 04 09 10 12 14 28
 August 05 08 13 17 18 25 29
 July
 June
2002
2001
 

Copyright 2001-2003 Owl Mountain Software, LLC. All Rights Reserved. xml