Return-Path: Delivered-To: apmail-xml-cocoon-dev-archive@xml.apache.org Received: (qmail 82979 invoked by uid 500); 11 Jun 2002 09:15:16 -0000 Mailing-List: contact cocoon-dev-help@xml.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: cocoon-dev@xml.apache.org Delivered-To: mailing list cocoon-dev@xml.apache.org Received: (qmail 82968 invoked from network); 11 Jun 2002 09:15:15 -0000 Message-ID: From: Piroumian Konstantin To: "'cocoon-dev@xml.apache.org'" Subject: RE: problem compiling a new action Date: Tue, 11 Jun 2002 13:15:23 +0400 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="koi8-r" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N > From: Hassan Abolhassani [mailto:Hassan.Abolhassani@razorfish.com] > I have tried to compile HelloWorldAction.java from Cocoon > documentation. > > From command line I did as follows: > > >set > classpath=%classpath%;;E:\jakarta-tomcat-4.0\webapps\cocoon\WE > B-INF\lib\avalon-framework-4.1.2.jar;E:\jakarta-tomcat-4.0\web > apps\cocoon\WEB-INF\lib\cocoon-2.0.2.jar; > > >javac HelloWorldAction.java > > I receive a message saying that this program uses a deprecated API > > Then if i try > >javac -deprecation HelloWorldAction.java > > I receive a message telling that REQUEST_OBJECT is not > defined in Constants, for the following line: > Request request = (Request) objectModel.get(Constants.REQUEST_OBJECT); > > Could anyone tell me what might be wrong. Am I using correct > jar files in classpath. Should I compile differently? Deprecated means that the current method is out of date and a newer one should be used. Take a look at org.apache.cocoon.environment.ObjectModelHelper and use it to get the Request object. And 'deprecated' does not mean that compilation failed. Your class is compiled and will work. Konstantin > > Every help is appreciated. > > Hassan > > --------------------------------------------------------------------- > To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org > For additional commands, email: cocoon-dev-help@xml.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org For additional commands, email: cocoon-dev-help@xml.apache.org