Using web service compiled for Tomcat in a different container

A

Alexey

Hi!

Here is an interesting question for me (hope for someone also, who can
share his/her knowledge):

I've created a web service using Sun java web services developer pack
and successfully installed it into Tomcat. However, now I need to do
(almost) the same thing in a Domino server - put there a servlet and
use it as a web service. Is it possible to port somehow the generated
..war file, that is done for Tomcat, into another servlet holder.

And a more general question (of therminology): Is the generated .war
package a servlet or it is a web application? Is it possible to
quickly create a servlet if I have .war file? (e.g. by importing some
..jar files from tomcat to another servlet holder).

The problem is that we need to either host web service in the Domino
server or tell our customer it is not possible without rewriting the
code (or adding much code to the existing classes).

Thank you in advance,
Alexey.
 
J

John C. Bollinger

Alexey said:
Hi!

Here is an interesting question for me (hope for someone also, who can
share his/her knowledge):

I've created a web service using Sun java web services developer pack
and successfully installed it into Tomcat. However, now I need to do
(almost) the same thing in a Domino server - put there a servlet and
use it as a web service. Is it possible to port somehow the generated
.war file, that is done for Tomcat, into another servlet holder.

The WAR format is standard. You ought to be able to integrate it into
any servlet container. The lowest common denominator is to simply
unpack it into a directory and use it that way, but I am unaware of any
specific servlet container that does not support WARs.

That being said, I can't tell you where in a Domino server you need to
put the WAR. You should also be aware that you may need to package some
of the jars / classes from the web services developer pack in the WAR,
or otherwise install them on the Domino server.
And a more general question (of therminology): Is the generated .war
package a servlet or it is a web application? Is it possible to
quickly create a servlet if I have .war file? (e.g. by importing some
.jar files from tomcat to another servlet holder).

The WAR is a Web application ARchive. It contains a web application,
which consists of some or all of the following: servlets, JSP pages,
applets, supporting classes and libraries, and static content.
The problem is that we need to either host web service in the Domino
server or tell our customer it is not possible without rewriting the
code (or adding much code to the existing classes).

I have not used Domino, but its docs appear to claim that it provides a
J2EE environment. If you have a J2EE-compliant web application then it
should be possible to get it going in any compliant J2EE environment
without too much trouble. If your application is non-compliant then you
should bring it into compliance as a matter of professionalism. If the
app runs in Tomcat then it is unlikely to be very much out of compliance.


John Bollinger
(e-mail address removed)
 
J

Juha Laiho

(e-mail address removed) (Alexey) said:
I've created a web service using Sun java web services developer pack
and successfully installed it into Tomcat.

Ok - though I'm not familiar with the dev.pack.
Is it possible to port somehow the generated .war file, that is done
for Tomcat, into another servlet holder.

I guess it is. As long as the "destination" container implements recent
enough version of the servlet specification (for the required servlet
specifiation, see WEB-INF/web.xml within the .war file.
And a more general question (of therminology): Is the generated .war
package a servlet or it is a web application? Is it possible to
quickly create a servlet if I have .war file? (e.g. by importing some
.jar files from tomcat to another servlet holder).

See the .war contents yourself: "jar tvf file.war".
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,682
Members
48,796
Latest member
Greg L.

Latest Threads

Top