tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Reynir Hübner <rey...@hugsmidjan.is>
Subject RE: can Tomcat call classes in JARs?
Date Wed, 27 Mar 2002 10:22:53 GMT
sure what ever, if you want to map  your servlets into web.xml you can
do that, with any name if you like.
bye
-reynir
 
 

-----Original Message-----
From: Carlos Martins [mailto:carlos.martins@pararede.com]
Sent: 27. mars 2002 10:20
To: Tomcat (E-mail)
Subject: FW: can Tomcat call classes in JARs?


BINGO!! thank you very much - it's working fine now! (also my jar file
was not properly built, but now it is - sorry - newbie!!)
Anyway, a note to reynir: No need to address the full package in the URL
- the secret is the servlet declaration made in the web.xml file - i
have it like this:
        <servlet-name>busDriver</servlet-name>
        <servlet-class>bus.busDriver</servlet-class>
so, when the URL adresses busDriver tomcat knows that the class it
should load is really bus.busDriver.
 
Thank you all for your support.
 
regards
Carlos
 
-----Original Message-----
From: Carlos Martins 
Sent: quarta-feira, 27 de Março de 2002 10:02
To: Tomcat (E-mail)
Subject: can Tomcat call classes in JARs?



Hello, 

Is it possible to have tomcat call servlets that are included in a jar
file rather than simple class files located in the WEB-INF/classes
folder?

I'm trying this, by placing the jar file with the classes in that
folder, but tomcat does not see to be able to find them...

Is there any special configuration that i'm missing? 

Thanks. 
Carlos 


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message