Re: can Tomcat call classes in JARs?

2002-03-27 Thread Amine AMAR

can Tomcat call classes in JARs?You need to put your jar file in the WEB-INF/lib folder

Amine
  - Original Message - 
  From: Carlos Martins 
  To: Tomcat (E-mail) 
  Sent: Wednesday, March 27, 2002 10:01 AM
  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 



--


  --
  To unsubscribe:   mailto:[EMAIL PROTECTED]
  For additional commands: mailto:[EMAIL PROTECTED]
  Troubles with the list: mailto:[EMAIL PROTECTED]



RE: can Tomcat call classes in JARs?

2002-03-27 Thread Reynir Hübner

place your .jar file in WEB-INF/lib and it will work
you must call your servlet with full path (e.g.
com.companyname.package.classname) in your url-path.
 
http://server.com/servlets/com.companyname.package.classname/
if your servlet is not in a package 
http://server.com/servlets/classname/
 
hope it helps
[EMAIL PROTECTED]
 

-Original Message-
From: Carlos Martins [mailto:[EMAIL PROTECTED]]
Sent: 27. mars 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 




Look at this document (Was Re: can Tomcat call classes in JARs?)

2002-03-27 Thread Sriram N


--- Carlos Martins [EMAIL PROTECTED] wrote:
  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?
  
Have you placed these jars in the WEB-INF/lib folder ?

Visit http://jakarta.apache.org/tomcat/tomcat-4.0-doc/appdev/deployment.html
for more information.

  Thanks.
  Carlos
  --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]


__
Do You Yahoo!?
Yahoo! Movies - coverage of the 74th Academy Awards®
http://movies.yahoo.com/

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: can Tomcat call classes in JARs?

2002-03-27 Thread Reynir Hübner

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:[EMAIL PROTECTED]]
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-namebusDriver/servlet-name
servlet-classbus.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 




RE: can Tomcat call classes in JARs?

2002-03-27 Thread Carlos Martins

Reynir,

Do you find this method bad? are there perfomance issues?

-Original Message-
From: Reynir Hübner [mailto:[EMAIL PROTECTED]]
Sent: quarta-feira, 27 de Março de 2002 10:23
To: Tomcat Users List
Subject: RE: can Tomcat call classes in JARs?


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:[EMAIL PROTECTED]]
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-namebusDriver/servlet-name
servlet-classbus.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 


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]