hi guys can you figure out some solution to this??
i have downloaded cocoon latest version but i am facing compilation error while i am running the build.bat
the exception is as follows::
D:\cocoon-2.1.7>build
Buildfile: build.xml
prepare:
======================================================================
Apache Cocoon 2.1.7 [1999-2005]
======================================================================
Building with Apache
Ant version 1.6.2 compiled on July 16 2004
----------------------------------------------------------------------
Using build file D:\cocoon-2.1.7\build.xml
----------------------------------------------------------------------
Compiler options:
- debug ......... [on]
- optimize ...... [on]
- deprecation ... [off]
======================================================================
compile-core:
Compiling 177 source files to D:\cocoon-2.1.7\build\cocoon-2.1.7\classes
D:\cocoon-2.1.7\src\java\org\apache\cocoon\generation\JXTemplateGenerator.java:3
04: cannot resolve symbol
symbol : method capitalize (java.lang.String)
location: class org.apache.commons.lang.StringUtils
result = ScriptableObject.getProperty(thisObj, "get" + S
tringUtils.capitalize(name));
^
D:\cocoon-2.1.7\src\java\org\apache\cocoon\generation\JXTemplateGenerator.java:1
478: indexOfAny(java.lang.String,java.lang.String[]) in org.apache.commons.lang.
StringUtils cannot be applied to (java.lang.String,java.lang.String)
int index = StringUtils.indexOfAny(locale, "-_");
^
D:\cocoon-2.1.7\src\java\org\apache\cocoon\generation\JXTemplateGenerator.java:2
989: cannot resolve symbol
symbol : method substringAfter (java.lang.String,java.lang.String)
location: class org.apache.commons.lang.StringUtils
buf.append(StringUtils.substringAfter(str, ">")); // cut
the XML header
^
D:\cocoon-2.1.7\src\java\org\apache\cocoon\servlet\multipart\MultipartHttpServle
tRequest.java:41: org.apache.cocoon.servlet.multipart.MultipartHttpServletReques
t is not abstract and does not override abstract method getLocalPort() in javax.
servlet.ServletRequest
public class MultipartHttpServletRequest implements HttpServletRequest {
^
D:\cocoon-2.1.7\src\java\org\apache\cocoon\util\NetUtils.java:306: cannot resolv
e symbol
symbol : method indexOfDifference (java.lang.String,java.lang.String)
location: class org.apache.commons.lang.StringUtils
int index = StringUtils.indexOfDifference(path, absoluteResource);
^
D:\cocoon-2.1.7\src\java\org\apache\cocoon\util\NetUtils.java:385: cannot resolv
e symbol
symbol : method split (java.lang.String,char)
location: class org.apache.commons.lang.StringUtils
String[] params = StringUtils.split(uri.substring(i + 1), '&');
^
6 errors
BUILD FAILED
D:\cocoon-2.1.7\tools\targets\compile-build.xml:61: Compile failed; see the comp
iler error output for details.
Total time: 8 seconds
D:\cocoon-2.1.7>