FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Fedora Development Java

 
 
LinkBack Thread Tools
 
Old 09-05-2008, 03:52 PM
Orion Poplawski
 
Default Trying to build tomcat app

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!

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

--
fedora-devel-java-list mailing list
fedora-devel-java-list@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-devel-java-list
 
Old 09-05-2008, 04:28 PM
Orion Poplawski
 
Default Trying to build tomcat app

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@cora.nwra.com
Boulder, CO 80301 http://www.cora.nwra.com

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

Thread Tools




All times are GMT. The time now is 11:33 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org