cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Darin Kuntze" <dkun...@sgrp.com>
Subject RE: BUILD errors: package org.apache.tools.ant does not exist
Date Thu, 13 Nov 2003 17:12:22 GMT
I tried all of those suggestions with no luck. Same exact errors.

Interestingly, the jms and ojb blocks were already set to be excluded by
default in the blocks.properties file.

Any other suggestions?

-----Original Message-----
From: Upayavira [mailto:uv@upaya.co.uk] 
Sent: Thursday, November 13, 2003 10:54 AM
To: users@cocoon.apache.org
Subject: Re: BUILD errors: package org.apache.tools.ant does not exist


Darin,

You can solve some of those by excluding the JMS and OJB blocks. That'll 
get you past much of it.

Secondly, try compiling with $ANT_HOME not set, so that you use the Ant 
that comes with Cocoon, rather than your own, i.e.:

Regards, Upayavira

>I'm having trouble compiling cocoon on my Linux box. The build does not 
>fail, but I get all sorts of error messages.
>
>Here is the config:
>JDK 1.4.2
>ANT 1.5.4
>Cocooon 2.1.3
>
>The interesting bit is these messages:
>
>/usr/local/cocoon-2.1.3/src/java/org/apache/cocoon/CocoonTask.java:61:
>package org.apache.tools.ant does not exist
>import org.apache.tools.ant.AntClassLoader;
>                            ^
>/usr/local/cocoon-2.1.3/src/java/org/apache/cocoon/CocoonTask.java:62:
>package org.apache.tools.ant does not exist
>import org.apache.tools.ant.BuildException;
>                            ^
>/usr/local/cocoon-2.1.3/src/java/org/apache/cocoon/CocoonTask.java:63:
>package org.apache.tools.ant does not exist
>import org.apache.tools.ant.DynamicConfigurator;
>                            ^
>/usr/local/cocoon-2.1.3/src/java/org/apache/cocoon/CocoonTask.java:64:
>package org.apache.tools.ant does not exist
>import org.apache.tools.ant.ExitException;
>                            ^
>/usr/local/cocoon-2.1.3/src/java/org/apache/cocoon/CocoonTask.java:65:
>package org.apache.tools.ant does not exist
>import org.apache.tools.ant.Project;
>                            ^
>/usr/local/cocoon-2.1.3/src/java/org/apache/cocoon/CocoonTask.java:66:
>package org.apache.tools.ant does not exist
>import org.apache.tools.ant.Task;
>                            ^
>/usr/local/cocoon-2.1.3/src/java/org/apache/cocoon/CocoonTask.java:67:
>package org.apache.tools.ant.types does not exist
>import org.apache.tools.ant.types.CommandlineJava;
>                                  ^
>/usr/local/cocoon-2.1.3/src/java/org/apache/cocoon/CocoonTask.java:68:
>package org.apache.tools.ant.types does not exist
>import org.apache.tools.ant.types.Path;
>                                  ^
>/usr/local/cocoon-2.1.3/src/java/org/apache/cocoon/CocoonTask.java:69:
>package org.apache.tools.ant.types does not exist
>import org.apache.tools.ant.types.Reference;
>
>It also is looking for javax.jdo among other things:
>
>/usr/local/cocoon-2.1.3/src/blocks/scratchpad/java/org/apache/cocoon/an
>t/Coc
>oonTask.java:87: package org.apache.tools.ant does not exist
>import org.apache.tools.ant.AntClassLoader;
>                            ^
>/usr/local/cocoon-2.1.3/src/blocks/scratchpad/java/org/apache/cocoon/ant/Co
c
>oonTask.java:88: package org.apache.tools.ant does not exist
>import org.apache.tools.ant.BuildException;
>                            ^
>/usr/local/cocoon-2.1.3/src/blocks/scratchpad/java/org/apache/cocoon/ant/Co
c
>oonTask.java:89: package org.apache.tools.ant does not exist
>import org.apache.tools.ant.Project;
>                            ^
>/usr/local/cocoon-2.1.3/src/blocks/scratchpad/java/org/apache/cocoon/ant/Co
c
>oonTask.java:90: package org.apache.tools.ant does not exist
>import org.apache.tools.ant.Task;
>                            ^
>/usr/local/cocoon-2.1.3/src/blocks/scratchpad/java/org/apache/cocoon/ant/Co
c
>oonTask.java:91: package org.apache.tools.ant.types does not exist
>import org.apache.tools.ant.types.EnumeratedAttribute;
>                                  ^
>/usr/local/cocoon-2.1.3/src/blocks/scratchpad/java/org/apache/cocoon/ant/Co
c
>oonTask.java:92: package org.apache.tools.ant.types does not exist
>import org.apache.tools.ant.types.Path;
>                                  ^
>/usr/local/cocoon-2.1.3/src/blocks/scratchpad/java/org/apache/cocoon/ant/Co
c
>oonTask.java:93: package org.apache.tools.ant.types does not exist
>import org.apache.tools.ant.types.Reference;
>                                  ^
>/usr/local/cocoon-2.1.3/src/blocks/scratchpad/java/org/apache/cocoon/ant/Co
c
>oonTask.java:101: cannot resolve symbol
>symbol  : class Task 
>location: class org.apache.cocoon.ant.CocoonTask
>public class CocoonTask extends Task {
>                                ^
>/usr/local/cocoon-2.1.3/src/blocks/scratchpad/java/org/apache/cocoon/ant/Co
c
>oonTask.java:151: cannot resolve symbol
>symbol  : class Path 
>location: class org.apache.cocoon.ant.CocoonTask
>    private Path cocoonClasspath;
>            ^
>/usr/local/cocoon-2.1.3/src/blocks/scratchpad/java/org/apache/cocoon/ant/Co
c
>oonTask.java:778: cannot resolve symbol
>symbol  : class EnumeratedAttribute 
>location: class org.apache.cocoon.ant.CocoonTask.LogLevelOption
>    public static class LogLevelOption extends EnumeratedAttribute {
>                                               ^
>/usr/local/cocoon-2.1.3/src/blocks/scratchpad/java/org/apache/cocoon/ant/Co
c
>oonTask.java:309: cannot resolve symbol
>symbol  : class Reference 
>location: class org.apache.cocoon.ant.CocoonTask
>    public void setClasspathRef(Reference r) {
>                                ^
>/usr/local/cocoon-2.1.3/src/blocks/scratchpad/java/org/apache/cocoon/ant/Co
c
>oonTask.java:320: cannot resolve symbol
>symbol  : class Path 
>location: class org.apache.cocoon.ant.CocoonTask
>    public Path createClasspath() {
>           ^
>/usr/local/cocoon-2.1.3/src/blocks/scratchpad/java/org/apache/cocoon/ant/Co
c
>oonTask.java:335: cannot resolve symbol
>symbol  : class BuildException 
>location: class org.apache.cocoon.ant.CocoonTask
>    public void execute() throws BuildException {
>                                 ^
>/usr/local/cocoon-2.1.3/src/blocks/scratchpad/java/org/apache/cocoon/ant/Co
c
>oonTask.java:490: cannot resolve symbol
>symbol  : class BuildException 
>location: class org.apache.cocoon.ant.CocoonTask
>    protected File getDir(String dir, boolean create, String type) throws
>BuildException {
>                                                                          ^
>/usr/local/cocoon-2.1.3/src/blocks/scratchpad/java/org/apache/cocoon/ant/Co
c
>oonTask.java:519: cannot resolve symbol
>symbol  : class BuildException 
>location: class org.apache.cocoon.ant.CocoonTask
>    protected void checkValidity() throws BuildException {
>                                          ^
>/usr/local/cocoon-2.1.3/src/blocks/ojb/java/org/apache/cocoon/ojb/samples/E
m
>ployeeImpl.java:53: package javax.jdo does not exist
>import javax.jdo.PersistenceManager;
>                 ^
>/usr/local/cocoon-2.1.3/src/blocks/ojb/java/org/apache/cocoon/ojb/samples/E
m
>ployeeImpl.java:54: package javax.jdo does not exist
>import javax.jdo.Transaction;
>                 ^
>/usr/local/cocoon-2.1.3/src/blocks/ojb/java/org/apache/cocoon/ojb/jdo/compo
n
>ents/JdoPMF.java:54: package javax.jdo does not exist
>import javax.jdo.PersistenceManager;
>                 ^
>/usr/local/cocoon-2.1.3/src/blocks/ojb/java/org/apache/cocoon/ojb/jdo/compo
n
>ents/JdoPMF.java:70: cannot resolve symbol
>symbol  : class PersistenceManager 
>location: interface org.apache.cocoon.ojb.jdo.components.JdoPMF
>    public PersistenceManager getPersistenceManager();
>           ^
>/usr/local/cocoon-2.1.3/src/blocks/ojb/java/org/apache/cocoon/ojb/jdo/compo
n
>ents/JdoPMFImpl.java:53: package javax.jdo does not exist
>import javax.jdo.PersistenceManager;
>                 ^
>/usr/local/cocoon-2.1.3/src/blocks/ojb/java/org/apache/cocoon/ojb/jdo/compo
n
>ents/JdoPMFImpl.java:54: package javax.jdo does not exist
>import javax.jdo.PersistenceManagerFactory;
>                 ^
>/usr/local/cocoon-2.1.3/src/blocks/ojb/java/org/apache/cocoon/ojb/jdo/compo
n
>ents/JdoPMFImpl.java:74: cannot resolve symbol
>symbol  : class PersistenceManagerFactory 
>location: class org.apache.cocoon.ojb.jdo.components.JdoPMFImpl
>        protected PersistenceManagerFactory factory = null;
>                  ^
>/usr/local/cocoon-2.1.3/src/blocks/ojb/java/org/apache/cocoon/ojb/jdo/compo
n
>ents/JdoPMFImpl.java:97: cannot resolve symbol
>symbol  : class PersistenceManager 
>location: class org.apache.cocoon.ojb.jdo.components.JdoPMFImpl
>        public PersistenceManager getPersistenceManager()
>
>Any help with this would be appreicated.
>
>Thanks,
>
>
>Darin Kuntze
>The Sacco Group
>402.392.2222 x120
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
>For additional commands, e-mail: users-help@cocoon.apache.org
>
>
>  
>



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org




---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message