Re: Trying to build tomcat app

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Orion Poplawski wrote:
I'm trying to build a tomcat application but getting:

+ ant -lib /usr/share/java/tomcat6
Buildfile: build.xml
BUILD FAILED
/builddir/build/BUILD/openmailarchiva-1.7.5e/build.xml:35: taskdef class org.apache.catalina.ant.InstallTask cannot be found

I've installed tomcat6-lib and there is /usr/share/java/tomcat6/catalina-ant.jar which is where the InstallTask class is. How do I point the build to it?

Thanks!


export CLASSPATH=/usr/share/java/tomcat6/catalina-ant.jar

seems to have done the trick.   If there is a better way, let me know.

Next issue -


 public class ADIdentity extends Identity implements Serializable {
...
public boolean loadSettings(String prefix, Settings prop, String suffix) {
        logger.debug("loading ad identity");
                // active directory identity info

gives error:

[javac] 5. ERROR in /builddir/build/BUILD/openmailarchiva-1.7.5e/src/com/stimulus/arch
iva/authentication/ADIdentity.java (at line 102)
    [javac]     logger.debug("loading ad identity");
    [javac]     ^^^^^^
    [javac] Logger cannot be resolved to a type

Which I'm not surprised at since logger is not defined anywhere in the source file. Is there some version of java compiler (eclipse? I think this project was developed with it) that would allow this?

It is defined in Indentity.java:

import org.apache.log4j.Logger;

 public abstract class Identity implements java.io.Serializable, Props  {

protected static Logger logger = Logger.getLogger(Identity.class.getName());

but that hasn't been compiled yet at this point.

Some other warnings earlier:

[taskdef] Could not load definitions from resource axis-tasks.properties. It could not be found.

[javac] Annotation processing got disabled, since it requires a 1.6 compliant JVM


Thanks!
--
Orion Poplawski
Technical Manager                     303-415-9701 x222
NWRA/CoRA Division                    FAX: 303-415-9702
3380 Mitchell Lane                  orion@xxxxxxxxxxxxx
Boulder, CO 80301              http://www.cora.nwra.com

--
fedora-devel-java-list mailing list
fedora-devel-java-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-devel-java-list

[Index of Archives]     [Red Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux