History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: AMQ-1857
Type: Bug Bug
Status: Open Open
Priority: Major Major
Assignee: Unassigned
Reporter: Wouter de vaal
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
ActiveMQ

running activemq using maven causes NoClassDefFoundError: org/springframework/core/io/FileSystemResource

Created: 17/Jul/08 06:41 AM   Updated: 10/Sep/08 05:13 AM
Component/s: Broker
Affects Version/s: 5.1.0
Fix Version/s: 5.3.0

Time Tracking:
Not Specified

Environment: maven 2.0.9, java 1.6


 Description  « Hide
I tried to follow these instructions:
http://activemq.apache.org/maven2-activemq-broker-plugin.html

Create pom with plugin definition:
<build>
<plugins>
<plugin>
<groupId>org.apache.activemq.tooling</groupId>
<artifactId>maven-activemq-plugin</artifactId>
<version>5.1.0</version>
<configuration>
<configUri>
xbean:file:activemq.xml
</configUri>
<fork>false</fork>
<systemProperties>
<property>
<name>
org.apache.activemq.default.directory.prefix
</name>
<value>./target/</value>
</property>
</systemProperties>
</configuration>
</plugin>
</plugins>
</build>

And when I call mvn activemq:run
I get:
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'activemq'.
[INFO] ------------------------------------------------------------------------
[INFO] Building main project
[INFO] task-segment: [activemq:run]
[INFO] ------------------------------------------------------------------------
[INFO] [activemq:run]
[INFO] Loading broker configUri: xbean:file:activemq.xml
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Failed to start ActiveMQ Broker

Embedded error: Could not load xbean factory:java.lang.NoClassDefFoundError: org/springframework/core/io/FileSystemResource
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2 seconds
[INFO] Finished at: Thu Jul 17 15:40:50 CEST 2008
[INFO] Final Memory: 5M/82M
[INFO] ------------------------------------------------------------------------



 All   Comments   Work Log   Change History   Subversion Commits   FishEye   Crucible      Sort Order: Ascending order - Click to sort in descending order
Jason Royals - 13/Aug/08 11:10 PM
I also had this issue. Workaround for this is to explicitly include Spring as a dependency on the plugin:
<plugin>
    <groupId>org.apache.activemq.tooling</groupId>
    <artifactId>maven-activemq-plugin</artifactId>
    <version>5.1.0</version>
    <configuration>
                           ....
    </configuration>
                       
    <dependencies>
        <dependency>
            <groupId>org.springframework</groupId>
            <artifactId>spring</artifactId>
            <version>2.5</version>
        </dependency>
    </dependencies>
</plugin>

Wouter de vaal - 14/Aug/08 12:39 AM
That helps (imho this still needs fixing), but now I get namespace errors like:
Embedded error: Unrecognized xbean namespace mapping: http://mortbay.com/schemas/jetty/1.0
Adding jetty dependency did not help in this case...