you can place servlets in a war with no problem. the classes are packaged in
WEB-INF/classes. I will place the simple deployment descriptor below. what
you really want is to use the servlet tags in the deployment descriptor to
tell your web application where they are. the example I will use is a simple
hello servlet. lets say the class is com.crunchy.servlets.HelloServlet to
deploy this you can have a deployment descriptor like this....
note the deployment descriptor is called web.xml and is also in the WEB-INF
directory.
<?xml version="1.0" encoding="ISO-8859-1"?>
<web-app>
<servlet>
<servlet-name>HelloServlet</servlet-name>
<servlet-class>com.crunchy.servlets.HelloServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>HelloServlet</servlet-name>
<url-pattern>/</url-pattern>
</servlet-mapping>
</web-app>
Now any request to http://host/ will result in a call to the helloservlet.
Hope this helps some.
Al
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Emerson
Sent: Wednesday, June 13, 2001 1:58 PM
To: [EMAIL PROTECTED]
Subject: RE: [JBoss-user] Old jserv with JBoss'
I need use Jserv because tomcat just works with war archiver (am I wrong?)
and not with servlets in directories like was in Jserv. I donīt use JSPīs
(wasnīt available that time), instead I use static pages with dinamic tags
that I change on the fly, and the system is already in production. I would
be too much work to change everything to JSP...
And is the Jserv compatible with the APIīs of JBoss client????
At 12:59 13/06/01 -0400, you wrote:
>I suspect it crshed because the new methods are not available in the old
>JServ package. Try compiling it using the old API and deploying it that
way,
>it should work. Assuming you have everything there you should still be able
>to do lookups. I haven't of course tried this. best bet would really be to
>upgrade to the latest versions (stable) of tomcat.
>
>Al
>
>
>-----Original Message-----
>From: [EMAIL PROTECTED]
>[mailto:[EMAIL PROTECTED]]On Behalf Of Emerson
>Sent: Wednesday, June 13, 2001 9:57 AM
>To: [EMAIL PROTECTED]
>Subject: [JBoss-user] Old jserv with JBoss'
>
>
>Is it possible to use old jserv (now tomcat) to run servlets that are
>clients to EJB JBoss remote objects??
>
>Thatīs because I have a system in production (web-centric) using
>jserv/apache/JSDK2.0/IBMJava2-1.3 and I made a new servlet accessing EJB
>objects.
>But the httpsession methods getValue and putValue are deprecated (in the
>new Servlet API in which i compiled the servlet), and when i put it to run
>it didnīt recognize the method getProperties (new method por getValue()).
>
>I tried to put the new Servlet API, but it crashed the Jserv.
>
>I indeed have to use new tomcat???
>
>Please help...
>
>
>Emerson Cargnin
>TRE-SC
>Setor de Desenvolvimento
>Tel: (48) 251-3700 - Ramal 3134
>
>_______________________________________________
>JBoss-user mailing list
>[EMAIL PROTECTED]
>http://lists.sourceforge.net/lists/listinfo/jboss-user
>
>
>_______________________________________________
>JBoss-user mailing list
>[EMAIL PROTECTED]
>http://lists.sourceforge.net/lists/listinfo/jboss-user
>
>
Emerson Cargnin
TRE-SC
Setor de Desenvolvimento
Tel: (48) 251-3700 - Ramal 3134
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user