You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-user@james.apache.org by Megha Agarval <me...@adnovum.ch> on 2008/09/29 15:25:11 UTC

Error running James: No Class Definition Found (ImapConstants)

Hello,

I checked out the latest version of james from the repository (version 
700001). I have been able to build it but while running it I got the 
following error:

java.lang.NoClassDefFoundError: org/apache/james/api/imap/ImapConstants

I have checked the class ImapConstants. It is located in 2 jars:

/james/trunk> grepzip ImapConstants.class

org/apache/james/api/imap/ImapConstants.class
./spring-deployment/target/james-server-spring-deployment-3.0-SNAPSHOT/lib/apache-james-imap-api-0.1-SNAPSHOT.jar

org/apache/james/api/imap/ImapConstants.class
./stage/org.apache.james/jars/apache-james-imap-api-0.1-SNAPSHOT.jar

So I tried to start running James with the classpath set to these 2 jars 
in phonix.sh:

'/share/java/jdk/1.5.0_13/bin/java -classpath 
/home/megha/james_29th/trunk/stage/org.apache.james/jars/apache-james-imap-api-0.1-SNAPSHOT.jar;/home/megha/james_29th/trunk/spring-deployment/target/james-server-spring-deployment-3.0-SNAPSHOT/lib/apache-james-imap-api-0.1-SNAPSHOT.jar 
      ... '

But without luck, I still get the NoClassDefFoundException:


There was an uncaught exception:
---------------------------------------------------------
--- Message ---
org/apache/james/api/imap/ImapConstants
--- Stack Trace ---
java.lang.NoClassDefFoundError: org/apache/james/api/imap/ImapConstants
         at java.lang.ClassLoader.defineClass1(Native Method)
         at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
         at 
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
         at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
         at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
         at java.net.URLClassLoader$1.run(URLClassLoader.java:195)


Can someone please help ?

Regards,
Megha
-- 
  AdNovum Informatik AG
  Agarval Megha,
  Informatik Student EPFL

  Roentgenstrasse 22, CH-8005 Zurich
  mailto:megha@adnovum.ch
  phone: +41 44 272 6111, fax: +41 44 272 6312
  http://www.adnovum.ch

  AdNovum Offices: Bern, Budapest, San Mateo, Zurich (HQ)

---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org