You are right ant war does not deploy it. It only creates the war file.Anyway, the problem is solved now. Thanks a lot Ray :))
I have a new problem now. :) I have added a class in org.apache.nutch.util Now when I do ant war, and I check out the class in the build folder, its there. But deploying the war file, and trying to use the newly added class in a JSP throws an error, saying, " cannot be resolved to a type". What is the reason and how can it be resolved? Thanks and regards, Mayank. On Tue, Apr 28, 2009 at 2:33 AM, Raymond Balmès <[email protected]>wrote: > The ant war does not deploy it to the tomcat server as far as I remember. > > I created a special ant target to "copy" my plugin code to the right > location in the webapp directories of Tomcat. > Don't forget to "reload" the application otherwise of course you see no > changes. In this way I have a fast turnaround and don't need to build war, > re-install the war etc... of course eventually you want to do it the proper > way. > > -Ray- > > 2009/4/27 Mayank Kamthan <[email protected]> > > > Hi! > > When I deploy nutch in TomCat using the war file provided with the > > distribution, it works fine. > > But, when I do an "ant war", the war file generated is of different size > > and > > also, it does not work. > > The jsp files are not there in the webapps folder in TomCat. > > > > Can anybody guide me please, in building a war file. As I want to do some > > code changes, and > > as far as I know, they can only be checked out only after re-deploying > > nutch, i.e., re-building the > > war file again. I hope I am correct here. > > > > Please somebody help. > > > > Thanks and regards, > > Mayank. > > > > -- > > Mayank Kamthan > > > -- Mayank Kamthan
