Hi Norman,

Thanks for your help, I did exactly what you've said.

Untar the Gzip file with James binary

and was trying to execute run.sh here:

/home/james/trunk/spring-deployment/target/james-server-spring-deployment-3.0-M1/bin

But getting the same error:

Exception in thread "main" java.lang.NoClassDefFoundError:
org/apache/james/container/spring/Main
Caused by: java.lang.ClassNotFoundException:
org.apache.james.container.spring.Main
        at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
Could not find the main class: org.apache.james.container.spring.Main.
 Program will exit.

I thought that maybe something got cached during the first start(when I
started run.sh from wrong place), so what I've done, I wiped out all files,
checked out from trunk again, done everything from scratch, untar everything
and tried to execute it from the same place which you recommended, same
error for some reason.

Any thoughts?



2010/4/7 Norman Maurer <[email protected]>

> Hi Max,
>
> tthe files in appassembler are just a "left-over" of the build. You
> need to unpack the tar.gz. So just do:
>
> # tar xfvz
> path/to/james-src/spring-deployment/target/james-server-spring-deployment-3.0-M1-bin.tar.gz
> # cd /james-server-spring-deployment-3.0-M1/bin
> # ./run.sh
>
> Bye,
> Nomrna
>
> 2010/4/7 Max Levinson <[email protected]>:
> > It seems it went well.
> >
> > After that I went to spring-deployment/target/appassembler/bin
> >
> > and tried to run run.sh
> >
> > Here is what I've got:
> >
> > Exception in thread "main" java.lang.NoClassDefFoundError:
> > org/apache/james/container/spring/Main
> > Caused by: java.lang.ClassNotFoundException:
> > org.apache.james.container.spring.Main
> >        at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
> >        at java.security.AccessController.doPrivileged(Native Method)
> >        at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
> >        at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
> >        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
> >        at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
> > Could not find the main class: org.apache.james.container.spring.Main.
> >  Program will exit.
> >
> > Thanks for fixing first issue.
> >
> > 2010/4/7 Norman Maurer <[email protected]>
> >
> >> Hi Max,
> >>
> >> this should be fixed some hours ago. Could you do an "svn up" and try
> again
> >> ?
> >>
> >> Thx,
> >> Norman
> >>
> >>
> >> 2010/4/7 Max Levinson <[email protected]>:
> >> > Hi guys,
> >> >
> >> > I am trying to build James trunk on CentOS:
> >> >
> >> > I just checked out from SVN as was recommended:
> >> >
> >> > *svn co http://svn.apache.org/repos/asf/james/server/trunk*
> >> >
> >> > *mvn clean package*
> >> >
> >> > As you can see at the bottom, build failed. Can anyone help? What went
> >> > wrong?
> >> >
> >> > Here is info about my system and tools used:
> >> >
> >> > *uname -a*
> >> > Linux fleetwood 2.6.18-53.el5 #1 SMP Mon Nov 12 02:22:48 EST 2007 i686
> >> i686
> >> > i386 GNU/Linux
> >> > *java -version*
> >> > java version "1.6.0_18"
> >> > Java(TM) SE Runtime Environment (build 1.6.0_18-b07)
> >> > Java HotSpot(TM) Server VM (build 16.0-b13, mixed mode)
> >> >
> >> > *mvn -version*
> >> > Apache Maven 2.2.1 (r801777; 2009-08-06 20:16:01+0100)
> >> > Java version: 1.6.0_18
> >> > Java home: /usr/java/jdk1.6.0_18/jre
> >> > Default locale: ru_RU, platform encoding: UTF-8
> >> > OS name: "linux" version: "2.6.18-53.el5" arch: "i386" Family: "unix"
> >> >
> >> > ERROR LOG:
> >> >
> >> > Tests run: 63, Failures: 0, Errors: 0, Skipped: 0
> >> >
> >> > [INFO] [jar:jar {execution: default-jar}]
> >> > [INFO] Building jar:
> >> > /home/james/trunk/smtpserver/target/james-server-smtpserver-3.0-M1.jar
> >> > [INFO] [jar:test-jar {execution: default}]
> >> > [INFO] Building jar:
> >> >
> >>
> /home/james/trunk/smtpserver/target/james-server-smtpserver-3.0-M1-tests.jar
> >> > [INFO]
> >> >
> ------------------------------------------------------------------------
> >> > [INFO] Building Apache JAMES Server POP3
> >> > [INFO]    task-segment: [clean, package]
> >> > [INFO]
> >> >
> ------------------------------------------------------------------------
> >> > [INFO] [clean:clean {execution: default-clean}]
> >> > [INFO] [remote-resources:process {execution: default}]
> >> > [INFO] snapshot
> >> org.apache.james:apache-james-imap-memory:0.1-M2-SNAPSHOT:
> >> > checking for updates from module-local
> >> > [INFO] snapshot
> >> org.apache.james:apache-james-imap-memory:0.1-M2-SNAPSHOT:
> >> > checking for updates from maven2-repository.dev.java.net
> >> > [INFO] snapshot
> >> org.apache.james:apache-james-imap-memory:0.1-M2-SNAPSHOT:
> >> > checking for updates from maven1-repository.dev.java.net
> >> > [INFO] snapshot
> >> org.apache.james:apache-james-imap-memory:0.1-M2-SNAPSHOT:
> >> > checking for updates from apache.snapshots
> >> > Downloading:
> >> >
> >>
> http://repository.apache.org/snapshots/org/apache/james/apache-james-imap-memory/0.1-M2-SNAPSHOT/apache-james-imap-memory-0.1-M2-20100407.003228-74.pom
> >> > 2K downloaded
>  (apache-james-imap-memory-0.1-M2-20100407.003228-74.pom)
> >> > Downloading:
> >> >
> >>
> http://repository.apache.org/snapshots/org/apache/james/apache-james-imap-memory/0.1-M2-SNAPSHOT/apache-james-imap-memory-0.1-M2-20100407.003228-74.jar
> >> > 23K downloaded
>  (apache-james-imap-memory-0.1-M2-20100407.003228-74.jar)
> >> > [INFO] [resources:resources {execution: default-resources}]
> >> > [INFO] Using 'UTF-8' encoding to copy filtered resources.
> >> > [INFO] Copying 0 resource
> >> > [INFO] Copying 3 resources
> >> > [INFO] [compiler:compile {execution: default-compile}]
> >> > [INFO] Compiling 27 source files to
> >> > /home/james/trunk/pop3server/target/classes
> >> > [INFO] [resources:testResources {execution: default-testResources}]
> >> > [INFO] Using 'UTF-8' encoding to copy filtered resources.
> >> > [INFO] Copying 0 resource
> >> > [INFO] Copying 3 resources
> >> > [INFO] [compiler:testCompile {execution: default-testCompile}]
> >> > [INFO] Compiling 2 source files to
> >> > /home/james/trunk/pop3server/target/test-classes
> >> > [INFO]
> >> >
> ------------------------------------------------------------------------
> >> > [ERROR] BUILD FAILURE
> >> > [INFO]
> >> >
> ------------------------------------------------------------------------
> >> > [INFO] Compilation failure
> >> >
> >> >
> >>
> /home/james/trunk/pop3server/src/test/java/org/apache/james/pop3server/AsyncPOP3ServerTest.java:[425,15]
> >> >
> >>
> appendMessage(java.io.InputStream,java.util.Date,org.apache.james.imap.mailbox.MailboxSession,boolean,javax.mail.Flags)
> >> > in org.apache.james.imap.mailbox.Mailbox cannot be applied to
> >> >
> >>
> (byte[],java.util.Date,org.apache.james.imap.mailbox.MailboxSession,boolean,javax.mail.Flags)
> >> >
> >> >
> >>
> /home/james/trunk/pop3server/src/test/java/org/apache/james/pop3server/AsyncPOP3ServerTest.java:[427,15]
> >> >
> >>
> appendMessage(java.io.InputStream,java.util.Date,org.apache.james.imap.mailbox.MailboxSession,boolean,javax.mail.Flags)
> >> > in org.apache.james.imap.mailbox.Mailbox cannot be applied to
> >> >
> >>
> (byte[],java.util.Date,org.apache.james.imap.mailbox.MailboxSession,boolean,javax.mail.Flags)
> >> >
> >> >
> >> > [INFO]
> >> >
> ------------------------------------------------------------------------
> >> > [INFO] For more information, run Maven with the -e switch
> >> > [INFO]
> >> >
> ------------------------------------------------------------------------
> >> > [INFO] Total time: 4 minutes 11 seconds
> >> > [INFO] Finished at: Wed Apr 07 16:54:09 BST 2010
> >> > [INFO] Final Memory: 98M/263M
> >> > [INFO]
> >> >
> ------------------------------------------------------------------------
> >> >
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: [email protected]
> >> For additional commands, e-mail: [email protected]
> >>
> >>
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>

Reply via email to