You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Hassan Abolhassani <Ha...@razorfish.com> on 2002/06/11 10:49:19 UTC

problem compiling a new action

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\WEB-INF\lib\avalon-framework-4.1.2.jar;E:\jakarta-tomcat-4.0\webapps\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?

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