Okay,
here's what happened. I had preexisting servlet that needed to be
converted over to SOAP. I originally tried to simply put a SOAP wrapper on
the servlet, but due to preexisting problems, that didn't work. I ended up
moving to a clean install of tomcat and axis. Once there, I just copied
the logic from the old servlet to the new webservice. This all worked fine
except for the db connectivity using JNDI. Since I was going from a
serlvet to web service, I had to change the configuration in server.xml.
When I had first simply changed the path and docBase parameters of the Context
to axis, axis would not start. I finally found an example of using JNDI
with Axis in Developing Web Services Using SOAP (ISBN:0471236403). Using
the following context example, I was finally able to get my web service to see
the db.
<Context path="/axis" docBase="axis" debug="0" reloadable="true" crossContext="true"> <Logger className="org.apache.catalina.logger.FileLogger" prefix="localhost_jws_log." suffix=".txt" timestamp="true"/> <Resource name="jdbc/AcmeDB" reloadable="true" auth="Container" type="javax.sql.DataSource"/> <ResourceParams name="jdbc/AcmeDB"> <parameter> <name>user</name> <value>public</value> </parameter> <parameter> <name>password</name> <value>public</value> </parameter> <parameter> <name>driverClassName</name> <value>com.pointbase.jdbc.jdbcUniversalDriver </value> </parameter> <parameter> <name>driverName</name> <value> jdbc:pointbase:server://localhost/sample </value> </parameter> </ResourceParams> </Context>
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 30, 2004 3:09 AM
To: [EMAIL PROTECTED]
Subject: Re: Thanks for the help
That's good news, Chris. Would you like to share some of the problems and their solutions? If others are doing the same kind of porting, they might be able to avoid the same problems that you had.
Tony
Thanks to all that replied to my messages. I finally managed to get my app
ported over and working.
Chris