In order to tell the AS deployer that we want to use the Infinispan APIs within our application, we need to add explicit dependencies to the deployment's MANIFEST:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Manifest-Version: 1.0 | |
Dependencies: org.infinispan:5.2 services |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<dependencies> | |
<dependency> | |
<groupId>org.infinispan</groupId> | |
<artifactId>infinispan-core</artifactId> | |
<version>5.2.0.CR2</version> | |
<scope>provided</scope> | |
</dependency> | |
<dependency> | |
<groupId>org.infinispan</groupId> | |
<artifactId>infinispan-cachestore-jdbc</artifactId> | |
<version>5.2.0.CR2</version> | |
<scope>provided</scope> | |
</dependency> | |
</dependencies> | |
<build> | |
<plugins> | |
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-war-plugin</artifactId> | |
<configuration> | |
<archive> | |
<manifestEntries> | |
<Dependencies>org.infinispan:5.2 services, org.infinispan.cachestore.jdbc:5.2 services</Dependencies> | |
</manifestEntries> | |
</archive> | |
</configuration> | |
</plugin> | |
</plugins> | |
</build> |
Just tried using the infinispan 5.2.0.CR2 on my JBOSS EAP 6.0.1 server, it threw a NoSuchMethod error while starting the sub system.
ReplyDeleteLooks like a incompatibility with the underlying JBOSS AS 7.1.3.