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 drcallaway <dr...@gmail.com> on 2011/07/10 03:02:57 UTC

Problem running James from an IDE

I'm trying to run James from within IntelliJ IDEA. I've downloaded the James
3.0 beta2 source from Subversion and run "mvn install" to deploy the
artifacts to my local repository. I've created a new Maven project to hold
my matchers and mailets. The POM looks like this:

<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>

    <groupId>mail</groupId>
    <artifactId>mail</artifactId>
    <version>3.0-beta2</version>
    <packaging>jar</packaging>

    <dependencies>
        <dependency>
            <groupId>org.apache.james</groupId>
            <artifactId>james-server-container-spring</artifactId>
            <version>3.0-beta2</version>
        </dependency>
    </dependencies>
</project>

This POM seems to work in that IntelliJ adds all of the James dependencies
to my project. I've also copied all file system config files to a /conf
folder in the working directory and the other config files to a directory
that's in the classpath. However, whenever I run the
org.apache.james.container.spring.Main class, I always get the following
error:

INFO  18:45:04,713 |
org.apache.james.container.spring.context.JamesServerApplicationContext |
Refreshing
org.apache.james.container.spring.context.JamesServerApplicationContext@1e32382:
startup date [Sat Jul 09 18:45:04 MDT 2011]; root of context hierarchy
Exception in thread "main"
org.springframework.beans.factory.parsing.BeanDefinitionParsingException:
Configuration problem: Unable to locate Spring NamespaceHandler for XML
schema namespace [http://activemq.apache.org/schema/core]
Offending resource: class path resource [context/james-server-context.xml]

Any idea what might be the problem here?

Thanks!

Dustin
-- 
View this message in context: http://old.nabble.com/Problem-running-James-from-an-IDE-tp32029933p32029933.html
Sent from the James - Users mailing list archive at Nabble.com.


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


Re: Problem running James from an IDE

Posted by drcallaway <dr...@gmail.com>.
I was able to get this working by just switching from beta2 to beta1 (same
POM as below except beta1 replaces beta2). It seems that the
james-server-context.xml file hasn't been updated properly in beta2. For
instance, many of the packages have changed in beta2 but the
james-server-context.xml file hasn't been updated to reflect those changes.
Likewise, it still references the CamelMailetContext class that no longer
exists in beta2.

Regardless, I now have James successfully running inside of IntelliJ so I
can easily debug matchers and mailets. Hopefully this approach will work
again when beta3 is released.


drcallaway wrote:
> 
> I'm trying to run James from within IntelliJ IDEA. I've downloaded the
> James 3.0 beta2 source from Subversion and run "mvn install" to deploy the
> artifacts to my local repository. I've created a new Maven project to hold
> my matchers and mailets. The POM looks like this:
> 
> <project xmlns="http://maven.apache.org/POM/4.0.0"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
> http://maven.apache.org/xsd/maven-4.0.0.xsd">
>     <modelVersion>4.0.0</modelVersion>
> 
>     <groupId>mail</groupId>
>     <artifactId>mail</artifactId>
>     <version>3.0-beta2</version>
>     <packaging>jar</packaging>
> 
>     <dependencies>
>         <dependency>
>             <groupId>org.apache.james</groupId>
>             <artifactId>james-server-container-spring</artifactId>
>             <version>3.0-beta2</version>
>         </dependency>
>     </dependencies>
> </project>
> 
> This POM seems to work in that IntelliJ adds all of the James dependencies
> to my project. I've also copied all file system config files to a /conf
> folder in the working directory and the other config files to a directory
> that's in the classpath. However, whenever I run the
> org.apache.james.container.spring.Main class, I always get the following
> error:
> 
> INFO  18:45:04,713 |
> org.apache.james.container.spring.context.JamesServerApplicationContext |
> Refreshing
> org.apache.james.container.spring.context.JamesServerApplicationContext@1e32382:
> startup date [Sat Jul 09 18:45:04 MDT 2011]; root of context hierarchy
> Exception in thread "main"
> org.springframework.beans.factory.parsing.BeanDefinitionParsingException:
> Configuration problem: Unable to locate Spring NamespaceHandler for XML
> schema namespace [http://activemq.apache.org/schema/core]
> Offending resource: class path resource [context/james-server-context.xml]
> 
> Any idea what might be the problem here?
> 
> Thanks!
> 
> Dustin
> 

-- 
View this message in context: http://old.nabble.com/Problem-running-James-from-an-IDE-tp32029933p32030132.html
Sent from the James - Users mailing list archive at Nabble.com.


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