Re: Deploy a .class file when tomcat is running

2009-11-28 Thread Stefano Tranquillini
the tomcat is 6.0 under linux (ubuntu) but the OS is not mandatory.

the solution is to deploy and undploy the whole project?

i'd to remove and copy the .war each time?

thanks

On Fri, Nov 27, 2009 at 20:43, André Warnier a...@ice-sa.com wrote:

 Stefano Tranquillini wrote:

 Hi all.
 i've a question for you.

 i made a web project and i deployed it into tomcat. now, i've a ant script
 that compile and put the .class file into the WEB-INF of the project (the
 place where the .class must be).


 Did you try WEB-INF/classes/ ?


  How can i tell to tomcat that i've upload new files? becasue somethimes
 the
 file that are present in the folder are not accessible via url?
 is like that tomcat dosen't realize that new files are present.


 The on-line Tomcat documentation may provide some info about that, like at
 http://tomcat.apache.org/tomcat-6.0-doc/deployer-howto.html


 It is also always a good idea to mention trivial info such as the version
 of Tomcat you are using, where you got it from, what platform you are
 running it under, that kind of thing.


 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org




-- 
Stefano


Re: Deploy a .class file when tomcat is running

2009-11-28 Thread Stefano Tranquillini
I solved, or better the problem did not exists.

i've a .class that are rest in jsr311 (annotation for rest).

there's a Servlet that parse these class, so i've only to put the .class
into a floder and all is ok.

thanks

On Sat, Nov 28, 2009 at 13:22, Pid p...@pidster.com wrote:

 On 28/11/2009 12:06, André Warnier wrote:

 Stefano Tranquillini wrote:

 the tomcat is 6.0 under linux (ubuntu) but the OS is not mandatory.


 It often is, such as for example when you want information about the
 correct paths for things. Providing some minimal information together
 with your question saves the time of people on this list to ask you for
 it, which also helps you to get better and faster responses.


 the solution is to deploy and undploy the whole project?

 i'd to remove and copy the .war each time?



 http://tomcat.apache.org/tomcat-6.0-doc/deployer-howto.html#Deploying%20on%20a%20running%20Tomcat%20server


 What part of the above section do you not understand ?
 What option have you tried ?


 N.B.  Java != PHP

 You can't just drop files into a Servlet Container and expect them to run
 like a PHP script does.  A Servlet, for example, requires* an entry in
 web.xml for Tomcat to know what to do with it.


 p


 * Unless you're doing something very, very old school, risky security wise
 and much frowned upon.


  -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org



 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org




-- 
Stefano


Deploy a .class file when tomcat is running

2009-11-27 Thread Stefano Tranquillini
Hi all.
i've a question for you.

i made a web project and i deployed it into tomcat. now, i've a ant script
that compile and put the .class file into the WEB-INF of the project (the
place where the .class must be).
How can i tell to tomcat that i've upload new files? becasue somethimes the
file that are present in the folder are not accessible via url?
is like that tomcat dosen't realize that new files are present.

idea about that?
thanks in advance.

-- 
Stefano


Tomcat architecture

2008-02-25 Thread Stefano Tranquillini
Hi everybody.
Someone has the architecture of Tomcat and a brief explanation of this?
For architecture t think at some like this:
http://www.javaportal.it/images/tesi/bonzagni2/Bonzagnic_html_m14d04b4d.png
thanks

-- 
Stefano