Hi,

I have just run 'mvn test' in server/jpa and didn't get the same exception but also
Tests run: 15, Failures: 0, Errors: 0, Skipped: 0
------------------------------------------------------------------------
[INFO] BUILD SUCCESS
------------------------------------------------------------------------
So build is OK. Do you have also the build success message ?

To import with m2eclipse, use an archived version from http://m2eclipse.sonatype.org/archived-releases.html

The spring files now reside (https://svn.apache.org/repos/asf/james/app/trunk/).

Thx.

On 24/07/11 01:32, Marc Chamberlin wrote:
Thanks Eric, Norman for helping with the OOM issue.  The eclipse.ini
file already had the following configuration for vmargs -

-vmargs
-Dosgi.requiredJavaVersion=1.5
-XX:MaxPermSize=256m
-Xms40m
-Xmx512m

I upped the -Xmx512m to -Xmx1024m just to be safe. Since the issue I
originally had with the OOM error was happening when I ran mvn from a
command line prompt I also added the following line the the mvn script
itself -

MAVEN_OPTS="-XX:PermSize=64M -XX:MaxPermSize=256M"

and that solved the OOM error.  However, when I ran  "mvn clean package"
from the shell command line, I still got a couple different kinds of
exceptions/walkbacks (occurred multiple times in the output).  I
captured the output to a file, and here are examples -

-------------------------------------------------------
  T E S T S
-------------------------------------------------------
Running org.apache.james.user.jpa.JpaUsersRepositoryTest
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for
further details.
1525  WARN   [main] openjpa.Runtime - Query "SELECT COUNT(user) FROM
JamesUser user" is removed from cache  excluded permanently. Query "
SELECT COUNT(user) FROM JamesUser user" is not cached because it returns
a single value rather than a list. A query that returns single v
alue can not be cached. .
1547  WARN   [main] openjpa.Runtime - Query "SELECT COUNT(user) FROM
JamesUser user WHERE user.name=:name" is removed from cache  exclude
d permanently. Query "SELECT COUNT(user) FROM JamesUser user WHERE
user.name=:name" is not cached because it returns a single value rathe
r than a list. A query that returns single value can not be cached. .
org.apache.james.user.api.UsersRepositoryException: User username does
not exist
         at
org.apache.james.user.jpa.JPAUsersRepository.removeUser(JPAUsersRepository.java:153)
         at
org.apache.james.user.lib.AbstractUsersRepositoryTest.testUserAddRemoveCycle(AbstractUsersRepositoryTest.java:134)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at junit.framework.TestCase.runTest(TestCase.java:154)
         at junit.framework.TestCase.runBare(TestCase.java:127)
         at junit.framework.TestResult$1.protect(TestResult.java:106)
         at junit.framework.TestResult.runProtected(TestResult.java:124)
         at junit.framework.TestResult.run(TestResult.java:109)
         at junit.framework.TestCase.run(TestCase.java:118)
         at junit.framework.TestSuite.runTest(TestSuite.java:208)
         at junit.framework.TestSuite.run(TestSuite.java:203)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at
org.apache.maven.surefire.junit.JUnitTestSet.execute(JUnitTestSet.java:98)
         at
org.apache.maven.surefire.junit.JUnit3Provider.executeTestSet(JUnit3Provider.java:107)
         at
org.apache.maven.surefire.junit.JUnit3Provider.invoke(JUnit3Provider.java:84)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at
org.apache.maven.surefire.booter.ProviderFactory$ClassLoaderProxy.invoke(ProviderFactory.java:103)
         at $Proxy0.invoke(Unknown Source)
         at
org.apache.maven.surefire.booter.SurefireStarter.invokeProvider(SurefireStarter.java:150)
         at
org.apache.maven.surefire.booter.SurefireStarter.runSuitesInProcess(SurefireStarter.java:91)
         at
org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:69)


SEVERE: Failed delivery for exchangeId:
ID-marcslaptop-39723-1311458387102-3-6. Exhausted after delivery
attempt: 1 caught: javax.mail.Me
ssagingException
javax.mail.MessagingException
         at
org.apache.james.mailetcontainer.api.mock.ExceptionThrowingMailet.service(ExceptionThrowingMailet.java:49)
         at
org.apache.james.mailetcontainer.impl.camel.CamelProcessor.process(CamelProcessor.java:65)
         at
org.apache.camel.impl.converter.AsyncProcessorTypeConverter$ProcessorToAsyncProcessorBridge.process(AsyncProcessorTypeConverte
r.java:50)
         at
org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:70)
         at
org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:98)
         at
org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:89)
         at
org.apache.camel.processor.interceptor.TraceInterceptor.process(TraceInterceptor.java:99)
         at
org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:70)
         at
org.apache.camel.processor.RedeliveryErrorHandler.processErrorHandler(RedeliveryErrorHandler.java:299)
         at
org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:208)
         at
org.apache.camel.processor.DefaultChannel.process(DefaultChannel.java:256)
         at
org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:70)
         at
org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:98)
         at
org.apache.camel.processor.ChoiceProcessor.process(ChoiceProcessor.java:80)
         at
org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:70)
         at
org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:98)
         at
org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:89)
         at
org.apache.camel.processor.interceptor.TraceInterceptor.process(TraceInterceptor.java:99)
         at
org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:70)
         at
org.apache.camel.processor.RedeliveryErrorHandler.processErrorHandler(RedeliveryErrorHandler.java:299)
         at
org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:208)
         at
org.apache.camel.processor.DefaultChannel.process(DefaultChannel.java:256)
         at
org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:70)
         at org.apache.camel.processor.Pipeline.process(Pipeline.java:143)
         at org.apache.camel.processor.Pipeline.process(Pipeline.java:78)
         at
org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:70)
         at
org.apache.camel.processor.RedeliveryErrorHandler.processErrorHandler(RedeliveryErrorHandler.java:299)
         at
org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:208)
         at
org.apache.camel.processor.UnitOfWorkProcessor.process(UnitOfWorkProcessor.java:99)
         at
org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:91)
         at
org.apache.camel.processor.MulticastProcessor.doProcessParallel(MulticastProcessor.java:515)
         at
org.apache.camel.processor.MulticastProcessor.access$100(MulticastProcessor.java:73)
         at
org.apache.camel.processor.MulticastProcessor$1.call(MulticastProcessor.java:239)
         at
org.apache.camel.processor.MulticastProcessor$1.call(MulticastProcessor.java:231)
         at
java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
         at java.util.concurrent.FutureTask.run(FutureTask.java:138)
         at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
         at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
         at java.lang.Thread.run(Thread.java:662)

So making progress I think...  I am still getting the error messages I
reported in my previous email, inside Eclipse and need help resolving
those. Also I am still unable to complete the step for Prepare Projects -

Copy the spring-beans.xml, log4j.properties and
META-INF/persistence.xmlfrom container-spring\src\main\config\james
directory to a source folder of container-spring project"

as I cannot locate the config directory mentioned. Again thanks for
helping...   Marc....



On 7/23/2011 3:23 AM, Norman Maurer wrote:
you need to increase the perm space which is different from heap space.

see
http://wiki.eclipse.org/FAQ_How_do_I_increase_the_permgen_size_available_to_Eclipse%3F

bye
norman

Am Freitag, 22. Juli 2011 schrieb Marc Chamberlin<m...@marcchamberlin.com>:
On 7/22/2011 1:30 AM, Eric Charles wrote:
Hi Marc&  Dhrubo,

I've just added on the wiki page the following sentence on top:

To build James V3 in eclipse, read
http://james.apache.org/server/3/dev-build.html

This last page if more up-to-date and has been reported to work.

Thx.

Thanks Eric for the pointer. I dunno if I am doing things right but here
is where I am at. Since I like the idea of working within (and learning)
Eclipse, I did not extract the James project externally using SVN.
Instead, I added the SVN plugin module to Eclipse, set up the repository
to point to the James svn URL, and checked out server/trunk directly as
a Java project. That worked fine.
<stuff deleted about the OOM error from my previous email>

Anywise, no matter whether I checked, or didn't check this "Add
project(s) to working set" feature, I would get the following error from
the Maven build:

    openjps-maven-plugin:1.2:enhance (1 errors)
Action:  Resolve Later
         Execution:enhancer, in jpa/porn.xml

with a description of

No marketplace entries found to handle openjpa-maven-plugin:1.2:enhance
in Eclipse.  Please see Help for more information.

I tried looking in Help but was unable to grok anything useful... Seeing
that the action was "Resolve Later" I decided to punt on this and
proceeded to click on "Finish"  I eventually discovered that the "Add
project(s) to working set" should be checked, since it almost
successfully builds the project with just one error if you do so. (might
mention this also on the website... Without that feature being checked I
got lots of errors...)  The one error I got after the Maven build of the
workspace finished was -

Description    Resource    Path    Location    Type
Plugin execution not covered by lifecycle configuration:
org.codehaus.mojo:openjpa-maven-plugin:1.2:enhance (execution: enhancer,
phase: process-classes)    pom.xml    /james-server-jpa    line 83
Maven Project Build Lifecycle Mapping Problem

I have no idea what to do about that, so decided to again punt and move
on with the instructions. Under "Prepare Projects" step 1 it says -

"Copy the spring-beans.xml, log4j.properties and
META-INF/persistence.xmlfrom container-spring\src\main\config\james
directory to a source folder of container-spring project"

I cannot find a config directory anywhere under
"container-spring\src\main" (I do find a config directory in several
other locations) nor can I find a file called "spring-beans.xml"
anywhere. However I do find files called log4j.properties in several
different locations... So... not sure how to proceed...

    Marc..





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




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



--
Eric Charles
http://about.echarles.net

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

Reply via email to