Win a copy of Head First Android this week in the Android forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Jesse Silverman
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Al Hobbs
  • salvin francis

Cocoon compile build problem

 
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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>
 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic