[JBoss JIRA] (ISPN-5535) Infinispan subsystem not loaded in WildFly
by Tristan Tarrant (JIRA)
[ https://issues.jboss.org/browse/ISPN-5535?page=com.atlassian.jira.plugin.... ]
Tristan Tarrant commented on ISPN-5535:
---------------------------------------
Can we see your MANIFEST.MF and jboss-deployment-structure.xml ?
Infinispan jar files are not automatically exported to WildFly deployments and you need to explicitly add them as dependencies using the techniques described at https://docs.jboss.org/author/display/WFLY8/Class+Loading+in+WildFly
> Infinispan subsystem not loaded in WildFly
> ------------------------------------------
>
> Key: ISPN-5535
> URL: https://issues.jboss.org/browse/ISPN-5535
> Project: Infinispan
> Issue Type: Enhancement
> Affects Versions: 6.0.3.Final
> Environment: Linux / WildFy 8.2.0
> Reporter: Veli Cris
> Attachments: standalone.xml
>
>
> org.infinispan.Cache<Object, Object> c = new org.infinispan.manager.DefaultCacheManager().getCache();
> Triying to instantiate a simple infinispan cache in test application results in following exception:
> 2015-06-09 12:10:13,241 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-4) MSC000001: Failed to start service jboss.undertow.deployment.default-server.default-host./push-api: org.jboss.msc.service.StartException in service jboss.undertow.deployment.default-server.default-host./push-api: Failed to start service
> at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1904)
> at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
> at java.lang.Thread.run(Thread.java:745)
> Caused by: java.lang.NoClassDefFoundError: org/infinispan/manager/DefaultCacheManager
> at io.undertow.servlet.core.ApplicationListeners.contextInitialized(ApplicationListeners.java:173)
> at io.undertow.servlet.core.DeploymentManagerImpl.deploy(DeploymentManagerImpl.java:195)
> at org.wildfly.extension.undertow.deployment.UndertowDeploymentService.startContext(UndertowDeploymentService.java:86)
> at org.wildfly.extension.undertow.deployment.UndertowDeploymentService.start(UndertowDeploymentService.java:71)
> at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1948)
> at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1881)
> ... 3 more
> Caused by: java.lang.ClassNotFoundException: org.infinispan.manager.DefaultCacheManager from [Module "deployment.push-api.war:main" from Service Module Loader]
> at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:205)
> at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:455)
> at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:404)
> at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:385)
> at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:130)
> ... 11 more
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
9 years, 7 months
[JBoss JIRA] (ISPN-5457) Infinispan with Wildfly 8.2 random fails using customized key2StringMapper
by Galder Zamarreño (JIRA)
[ https://issues.jboss.org/browse/ISPN-5457?page=com.atlassian.jira.plugin.... ]
Galder Zamarreño updated ISPN-5457:
-----------------------------------
Status: Pull Request Sent (was: Open)
> Infinispan with Wildfly 8.2 random fails using customized key2StringMapper
> --------------------------------------------------------------------------
>
> Key: ISPN-5457
> URL: https://issues.jboss.org/browse/ISPN-5457
> Project: Infinispan
> Issue Type: Bug
> Components: Core
> Affects Versions: 6.0.2.Final
> Environment: OSX Yosemite, Wildfly 8.2
> Reporter: Flemming Harms
> Fix For: 8.0.0.Alpha2, 8.0.0.Final
>
>
> Using JDBC string based store feature in combination with customize key2string mapper fails random with the error below. I track it down to be an issue in XmlConfigHelper when it call the “setValues” and iterate through the method names. The problem is if you have a class that overload methods, like it is with “JdbcStringBasedStoreConfigurationBuilder key2StringMapper(....)”, there is no guarantee it will choose the “key2StringMapper(String key2StringMapper)”
> *code snippets :*
> {noformat}
> for (Method m : objectClass.getMethods()) {
> if (setter.equals(m.getName()) || fluentSetter.equals(m.getName())) {
> Class<?> paramTypes[] = m.getParameterTypes();
> if (paramTypes.length != 1) {
> log.tracef("Rejecting setter %s on class %s due to incorrect number of parameters", m, objectClass);
> continue; // try another param with the same name.
> }
> Class<?> parameterType = paramTypes[0];
>
> PropertyEditor editor = PropertyEditorManager.findEditor(parameterType);
> if (editor == null) {
> throw new CacheConfigurationException("Couldn't find a property editor for parameter type " + parameterType);
> }
> editor.setAsText((String) attribs.get(propName));
> …
> }
> {noformat}
> *Suggested patch :*
> {noformat}
> diff --git a/core/src/main/java/org/infinispan/configuration/parsing/XmlConfigHelper.java b/core/src/main/java/org/infinispan/configuration/parsing/XmlConfigHelper.java
> index 5305e82..377f315 100644
> --- a/core/src/main/java/org/infinispan/configuration/parsing/XmlConfigHelper.java
> +++ b/core/src/main/java/org/infinispan/configuration/parsing/XmlConfigHelper.java
> @@ -425,6 +425,11 @@ public static void setValues(Object target, Map<?, ?> attribs, boolean isXmlAttr
> }
>
> Class<?> parameterType = paramTypes[0];
> +
> + if (parameterType.equals(Class.class)) {
> + log.tracef("Rejecting setter %s on class %s due to class parameter is type class", m, objectClass);
> + continue; // try another param with the same name.
> + }
> PropertyEditor editor = PropertyEditorManager.findEditor(parameterType);
> if (editor == null) {
> throw new CacheConfigurationException("Couldn't find a property editor for parameter type " + parameterType);
> {noformat}
> *Configuration wildfly 8.2 standanlone.xml snippets :*
> {noformat}
> <replicated-cache name="LuceneIndexesData" start="EAGER" mode="SYNC" remote-timeout="25000">
> <locking isolation="READ_COMMITTED" striping="false" acquire-timeout="330000" concurrency-level="500"/>
> <transaction mode="NONE"/>
> <eviction strategy="NONE" max-entries="-1"/>
> <expiration max-idle="-1"/>
> <state-transfer enabled="true" timeout="480000"/>
> <string-keyed-jdbc-store preload="true" passivation="false" fetch-state="true" singleton="true" datasource="java:jboss/datasources/PostgresDS" dialect="POSTGRES">
> <write-behind/>
> <property name="key2StringMapper">
> org.infinispan.lucene.LuceneKey2StringMapper
> </property>
> <string-keyed-table>
> <id-column name="ID_COLUMN" type="VARCHAR(255)"/>
> <data-column name="DATA_COLUMN" type="bytea"/>
> <timestamp-column name="TIMESTAMP_COLUMN" type="BIGINT"/>
> </string-keyed-table>
> </string-keyed-jdbc-store>
> <indexing index="NONE"/>
> </replicated-cache>
> {noformat}
> *Stacktrace :*
> {noformat}
> 18:32:55,218 ERROR [org.jboss.as.controller.management-operation] (ServerService Thread Pool -- 36) JBAS014612: Operation ("add") failed - address: ([
> ("subsystem" => "infinispan"),
> ("cache-container" => "hibernate-search"),
> ("replicated-cache" => "LuceneIndexesMetadata")
> ]): org.infinispan.commons.CacheConfigurationException: Couldn't find a property editor for parameter type class java.lang.Class
> at org.infinispan.configuration.parsing.XmlConfigHelper.setValues(XmlConfigHelper.java:430)
> at org.infinispan.configuration.cache.AbstractStoreConfigurationBuilder.withProperties(AbstractStoreConfigurationBuilder.java:91)
> at org.infinispan.configuration.cache.AbstractStoreConfigurationBuilder.withProperties(AbstractStoreConfigurationBuilder.java:9)
> at org.jboss.as.clustering.infinispan.subsystem.CacheAdd.processModelNode(CacheAdd.java:551)
> at org.jboss.as.clustering.infinispan.subsystem.ClusteredCacheAdd.processModelNode(ClusteredCacheAdd.java:69)
> at org.jboss.as.clustering.infinispan.subsystem.SharedStateCacheAdd.processModelNode(SharedStateCacheAdd.java:50)
> at org.jboss.as.clustering.infinispan.subsystem.CacheAdd.installRuntimeServices(CacheAdd.java:207)
> at org.jboss.as.clustering.infinispan.subsystem.CacheAdd.performRuntime(CacheAdd.java:181)
> at org.jboss.as.controller.AbstractAddStepHandler$1.execute(AbstractAddStepHandler.java:75)
> at org.jboss.as.controller.AbstractOperationContext.executeStep(AbstractOperationContext.java:660)
> at org.jboss.as.controller.AbstractOperationContext.doCompleteStep(AbstractOperationContext.java:501)
> at org.jboss.as.controller.AbstractOperationContext.completeStepInternal(AbstractOperationContext.java:298)
> at org.jboss.as.controller.AbstractOperationContext.executeOperation(AbstractOperationContext.java:293)
> at org.jboss.as.controller.ParallelBootOperationStepHandler$ParallelBootTask.run(ParallelBootOperationStepHandler.java:354)
> at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [rt.jar:1.8.0_40]
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [rt.jar:1.8.0_40]
> at java.lang.Thread.run(Thread.java:745) [rt.jar:1.8.0_40]
> at org.jboss.threads.JBossThread.run(JBossThread.java:122)
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
9 years, 7 months
[JBoss JIRA] (ISPN-5457) Infinispan with Wildfly 8.2 random fails using customized key2StringMapper
by Galder Zamarreño (JIRA)
[ https://issues.jboss.org/browse/ISPN-5457?page=com.atlassian.jira.plugin.... ]
Galder Zamarreño updated ISPN-5457:
-----------------------------------
Status: Open (was: New)
> Infinispan with Wildfly 8.2 random fails using customized key2StringMapper
> --------------------------------------------------------------------------
>
> Key: ISPN-5457
> URL: https://issues.jboss.org/browse/ISPN-5457
> Project: Infinispan
> Issue Type: Bug
> Components: Core
> Affects Versions: 6.0.2.Final
> Environment: OSX Yosemite, Wildfly 8.2
> Reporter: Flemming Harms
>
> Using JDBC string based store feature in combination with customize key2string mapper fails random with the error below. I track it down to be an issue in XmlConfigHelper when it call the “setValues” and iterate through the method names. The problem is if you have a class that overload methods, like it is with “JdbcStringBasedStoreConfigurationBuilder key2StringMapper(....)”, there is no guarantee it will choose the “key2StringMapper(String key2StringMapper)”
> *code snippets :*
> {noformat}
> for (Method m : objectClass.getMethods()) {
> if (setter.equals(m.getName()) || fluentSetter.equals(m.getName())) {
> Class<?> paramTypes[] = m.getParameterTypes();
> if (paramTypes.length != 1) {
> log.tracef("Rejecting setter %s on class %s due to incorrect number of parameters", m, objectClass);
> continue; // try another param with the same name.
> }
> Class<?> parameterType = paramTypes[0];
>
> PropertyEditor editor = PropertyEditorManager.findEditor(parameterType);
> if (editor == null) {
> throw new CacheConfigurationException("Couldn't find a property editor for parameter type " + parameterType);
> }
> editor.setAsText((String) attribs.get(propName));
> …
> }
> {noformat}
> *Suggested patch :*
> {noformat}
> diff --git a/core/src/main/java/org/infinispan/configuration/parsing/XmlConfigHelper.java b/core/src/main/java/org/infinispan/configuration/parsing/XmlConfigHelper.java
> index 5305e82..377f315 100644
> --- a/core/src/main/java/org/infinispan/configuration/parsing/XmlConfigHelper.java
> +++ b/core/src/main/java/org/infinispan/configuration/parsing/XmlConfigHelper.java
> @@ -425,6 +425,11 @@ public static void setValues(Object target, Map<?, ?> attribs, boolean isXmlAttr
> }
>
> Class<?> parameterType = paramTypes[0];
> +
> + if (parameterType.equals(Class.class)) {
> + log.tracef("Rejecting setter %s on class %s due to class parameter is type class", m, objectClass);
> + continue; // try another param with the same name.
> + }
> PropertyEditor editor = PropertyEditorManager.findEditor(parameterType);
> if (editor == null) {
> throw new CacheConfigurationException("Couldn't find a property editor for parameter type " + parameterType);
> {noformat}
> *Configuration wildfly 8.2 standanlone.xml snippets :*
> {noformat}
> <replicated-cache name="LuceneIndexesData" start="EAGER" mode="SYNC" remote-timeout="25000">
> <locking isolation="READ_COMMITTED" striping="false" acquire-timeout="330000" concurrency-level="500"/>
> <transaction mode="NONE"/>
> <eviction strategy="NONE" max-entries="-1"/>
> <expiration max-idle="-1"/>
> <state-transfer enabled="true" timeout="480000"/>
> <string-keyed-jdbc-store preload="true" passivation="false" fetch-state="true" singleton="true" datasource="java:jboss/datasources/PostgresDS" dialect="POSTGRES">
> <write-behind/>
> <property name="key2StringMapper">
> org.infinispan.lucene.LuceneKey2StringMapper
> </property>
> <string-keyed-table>
> <id-column name="ID_COLUMN" type="VARCHAR(255)"/>
> <data-column name="DATA_COLUMN" type="bytea"/>
> <timestamp-column name="TIMESTAMP_COLUMN" type="BIGINT"/>
> </string-keyed-table>
> </string-keyed-jdbc-store>
> <indexing index="NONE"/>
> </replicated-cache>
> {noformat}
> *Stacktrace :*
> {noformat}
> 18:32:55,218 ERROR [org.jboss.as.controller.management-operation] (ServerService Thread Pool -- 36) JBAS014612: Operation ("add") failed - address: ([
> ("subsystem" => "infinispan"),
> ("cache-container" => "hibernate-search"),
> ("replicated-cache" => "LuceneIndexesMetadata")
> ]): org.infinispan.commons.CacheConfigurationException: Couldn't find a property editor for parameter type class java.lang.Class
> at org.infinispan.configuration.parsing.XmlConfigHelper.setValues(XmlConfigHelper.java:430)
> at org.infinispan.configuration.cache.AbstractStoreConfigurationBuilder.withProperties(AbstractStoreConfigurationBuilder.java:91)
> at org.infinispan.configuration.cache.AbstractStoreConfigurationBuilder.withProperties(AbstractStoreConfigurationBuilder.java:9)
> at org.jboss.as.clustering.infinispan.subsystem.CacheAdd.processModelNode(CacheAdd.java:551)
> at org.jboss.as.clustering.infinispan.subsystem.ClusteredCacheAdd.processModelNode(ClusteredCacheAdd.java:69)
> at org.jboss.as.clustering.infinispan.subsystem.SharedStateCacheAdd.processModelNode(SharedStateCacheAdd.java:50)
> at org.jboss.as.clustering.infinispan.subsystem.CacheAdd.installRuntimeServices(CacheAdd.java:207)
> at org.jboss.as.clustering.infinispan.subsystem.CacheAdd.performRuntime(CacheAdd.java:181)
> at org.jboss.as.controller.AbstractAddStepHandler$1.execute(AbstractAddStepHandler.java:75)
> at org.jboss.as.controller.AbstractOperationContext.executeStep(AbstractOperationContext.java:660)
> at org.jboss.as.controller.AbstractOperationContext.doCompleteStep(AbstractOperationContext.java:501)
> at org.jboss.as.controller.AbstractOperationContext.completeStepInternal(AbstractOperationContext.java:298)
> at org.jboss.as.controller.AbstractOperationContext.executeOperation(AbstractOperationContext.java:293)
> at org.jboss.as.controller.ParallelBootOperationStepHandler$ParallelBootTask.run(ParallelBootOperationStepHandler.java:354)
> at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [rt.jar:1.8.0_40]
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [rt.jar:1.8.0_40]
> at java.lang.Thread.run(Thread.java:745) [rt.jar:1.8.0_40]
> at org.jboss.threads.JBossThread.run(JBossThread.java:122)
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
9 years, 7 months
[JBoss JIRA] (ISPN-2154) Use JGroups' anycast when sending messages to multiple target
by Galder Zamarreño (JIRA)
[ https://issues.jboss.org/browse/ISPN-2154?page=com.atlassian.jira.plugin.... ]
Galder Zamarreño updated ISPN-2154:
-----------------------------------
Status: Resolved (was: Pull Request Sent)
Fix Version/s: 8.0.0.Alpha2
8.0.0.Final
Resolution: Done
> Use JGroups' anycast when sending messages to multiple target
> -------------------------------------------------------------
>
> Key: ISPN-2154
> URL: https://issues.jboss.org/browse/ISPN-2154
> Project: Infinispan
> Issue Type: Task
> Components: Core
> Affects Versions: 5.2.0.ALPHA1
> Reporter: Dan Berindei
> Assignee: Dan Berindei
> Priority: Minor
> Fix For: 8.0.0.Alpha2, 8.0.0.Final
>
>
> We currently emulate anycasts in CommandAwareRpcDispatcher by sending the message to each target sequentially and then waiting for all the responses in parallel.
> This doesn't work very well with JGroups' RSVP protocol: if the RSVP flag is set, the send operation will block until we have received an ACK from the target, making the operation take much longer than it should.
> We only use RSVP for state transfer-related commands, so this is not critical. But it should be slightly more efficient for normal commands, as well.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
9 years, 7 months
[JBoss JIRA] (ISPN-5535) Infinispan subsystem not loaded in WildFly
by Veli Cris (JIRA)
[ https://issues.jboss.org/browse/ISPN-5535?page=com.atlassian.jira.plugin.... ]
Veli Cris updated ISPN-5535:
----------------------------
Attachment: standalone.xml
> Infinispan subsystem not loaded in WildFly
> ------------------------------------------
>
> Key: ISPN-5535
> URL: https://issues.jboss.org/browse/ISPN-5535
> Project: Infinispan
> Issue Type: Enhancement
> Affects Versions: 6.0.3.Final
> Environment: Linux / WildFy 8.2.0
> Reporter: Veli Cris
> Attachments: standalone.xml
>
>
> org.infinispan.Cache<Object, Object> c = new org.infinispan.manager.DefaultCacheManager().getCache();
> Triying to instantiate a simple infinispan cache in test application results in following exception:
> 2015-06-09 12:10:13,241 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-4) MSC000001: Failed to start service jboss.undertow.deployment.default-server.default-host./push-api: org.jboss.msc.service.StartException in service jboss.undertow.deployment.default-server.default-host./push-api: Failed to start service
> at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1904)
> at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
> at java.lang.Thread.run(Thread.java:745)
> Caused by: java.lang.NoClassDefFoundError: org/infinispan/manager/DefaultCacheManager
> at io.undertow.servlet.core.ApplicationListeners.contextInitialized(ApplicationListeners.java:173)
> at io.undertow.servlet.core.DeploymentManagerImpl.deploy(DeploymentManagerImpl.java:195)
> at org.wildfly.extension.undertow.deployment.UndertowDeploymentService.startContext(UndertowDeploymentService.java:86)
> at org.wildfly.extension.undertow.deployment.UndertowDeploymentService.start(UndertowDeploymentService.java:71)
> at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1948)
> at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1881)
> ... 3 more
> Caused by: java.lang.ClassNotFoundException: org.infinispan.manager.DefaultCacheManager from [Module "deployment.push-api.war:main" from Service Module Loader]
> at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:205)
> at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:455)
> at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:404)
> at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:385)
> at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:130)
> ... 11 more
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
9 years, 7 months
[JBoss JIRA] (ISPN-5535) Infinispan subsystem not loaded in WildFly
by Veli Cris (JIRA)
[ https://issues.jboss.org/browse/ISPN-5535?page=com.atlassian.jira.plugin.... ]
Veli Cris edited comment on ISPN-5535 at 6/9/15 7:35 AM:
---------------------------------------------------------
Hi,
I don't have a pom.xml, I deploy web application (jar) file into WildFly 8.2.0. and the jar is deployed with success but when I try to refer infinispan with the piece of code that I provided in description I received ClassNotFoundException. The inifinispan jars are correct located into /modules/system/layers/base/org/infinispan/ folder.
I attached WildFly 8.2.0 configuration: standalone.xml
was (Author: vlcvlc):
Hi,
I don't have a pom.xml, I deploy web application (jar) file into WildFly 8.2.0. and the jar is deployed with success but when I try to refer infinispan with the piece of code that I provided in description I received ClassNotFoundException. The inifinispan jars are correct located into /modules/system/layers/base/org/infinispan/ folder.
I will attach WildFly 8.2.0 standalone.xml
> Infinispan subsystem not loaded in WildFly
> ------------------------------------------
>
> Key: ISPN-5535
> URL: https://issues.jboss.org/browse/ISPN-5535
> Project: Infinispan
> Issue Type: Enhancement
> Affects Versions: 6.0.3.Final
> Environment: Linux / WildFy 8.2.0
> Reporter: Veli Cris
> Attachments: standalone.xml
>
>
> org.infinispan.Cache<Object, Object> c = new org.infinispan.manager.DefaultCacheManager().getCache();
> Triying to instantiate a simple infinispan cache in test application results in following exception:
> 2015-06-09 12:10:13,241 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-4) MSC000001: Failed to start service jboss.undertow.deployment.default-server.default-host./push-api: org.jboss.msc.service.StartException in service jboss.undertow.deployment.default-server.default-host./push-api: Failed to start service
> at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1904)
> at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
> at java.lang.Thread.run(Thread.java:745)
> Caused by: java.lang.NoClassDefFoundError: org/infinispan/manager/DefaultCacheManager
> at io.undertow.servlet.core.ApplicationListeners.contextInitialized(ApplicationListeners.java:173)
> at io.undertow.servlet.core.DeploymentManagerImpl.deploy(DeploymentManagerImpl.java:195)
> at org.wildfly.extension.undertow.deployment.UndertowDeploymentService.startContext(UndertowDeploymentService.java:86)
> at org.wildfly.extension.undertow.deployment.UndertowDeploymentService.start(UndertowDeploymentService.java:71)
> at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1948)
> at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1881)
> ... 3 more
> Caused by: java.lang.ClassNotFoundException: org.infinispan.manager.DefaultCacheManager from [Module "deployment.push-api.war:main" from Service Module Loader]
> at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:205)
> at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:455)
> at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:404)
> at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:385)
> at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:130)
> ... 11 more
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
9 years, 7 months
[JBoss JIRA] (ISPN-5535) Infinispan subsystem not loaded in WildFly
by Veli Cris (JIRA)
[ https://issues.jboss.org/browse/ISPN-5535?page=com.atlassian.jira.plugin.... ]
Veli Cris commented on ISPN-5535:
---------------------------------
Hi,
I don't have a pom.xml, I deploy web application (jar) file into WildFly 8.2.0. and the jar is deployed with success but when I try to refer infinispan with the piece of code that I provided in description I received ClassNotFoundException. The inifinispan jars are correct located into /modules/system/layers/base/org/infinispan/ folder.
I will attach WildFly 8.2.0 standalone.xml
> Infinispan subsystem not loaded in WildFly
> ------------------------------------------
>
> Key: ISPN-5535
> URL: https://issues.jboss.org/browse/ISPN-5535
> Project: Infinispan
> Issue Type: Enhancement
> Affects Versions: 6.0.3.Final
> Environment: Linux / WildFy 8.2.0
> Reporter: Veli Cris
>
> org.infinispan.Cache<Object, Object> c = new org.infinispan.manager.DefaultCacheManager().getCache();
> Triying to instantiate a simple infinispan cache in test application results in following exception:
> 2015-06-09 12:10:13,241 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-4) MSC000001: Failed to start service jboss.undertow.deployment.default-server.default-host./push-api: org.jboss.msc.service.StartException in service jboss.undertow.deployment.default-server.default-host./push-api: Failed to start service
> at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1904)
> at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
> at java.lang.Thread.run(Thread.java:745)
> Caused by: java.lang.NoClassDefFoundError: org/infinispan/manager/DefaultCacheManager
> at io.undertow.servlet.core.ApplicationListeners.contextInitialized(ApplicationListeners.java:173)
> at io.undertow.servlet.core.DeploymentManagerImpl.deploy(DeploymentManagerImpl.java:195)
> at org.wildfly.extension.undertow.deployment.UndertowDeploymentService.startContext(UndertowDeploymentService.java:86)
> at org.wildfly.extension.undertow.deployment.UndertowDeploymentService.start(UndertowDeploymentService.java:71)
> at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1948)
> at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1881)
> ... 3 more
> Caused by: java.lang.ClassNotFoundException: org.infinispan.manager.DefaultCacheManager from [Module "deployment.push-api.war:main" from Service Module Loader]
> at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:205)
> at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:455)
> at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:404)
> at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:385)
> at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:130)
> ... 11 more
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
9 years, 7 months
[JBoss JIRA] (ISPN-5535) Infinispan subsystem not loaded in WildFly
by Jiří Holuša (JIRA)
[ https://issues.jboss.org/browse/ISPN-5535?page=com.atlassian.jira.plugin.... ]
Jiří Holuša commented on ISPN-5535:
-----------------------------------
Hi, could you please attach your wildfly configuration and you pom.xml?
> Infinispan subsystem not loaded in WildFly
> ------------------------------------------
>
> Key: ISPN-5535
> URL: https://issues.jboss.org/browse/ISPN-5535
> Project: Infinispan
> Issue Type: Enhancement
> Affects Versions: 6.0.3.Final
> Environment: Linux / WildFy 8.2.0
> Reporter: Veli Cris
>
> org.infinispan.Cache<Object, Object> c = new org.infinispan.manager.DefaultCacheManager().getCache();
> Triying to instantiate a simple infinispan cache in test application results in following exception:
> 2015-06-09 12:10:13,241 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-4) MSC000001: Failed to start service jboss.undertow.deployment.default-server.default-host./push-api: org.jboss.msc.service.StartException in service jboss.undertow.deployment.default-server.default-host./push-api: Failed to start service
> at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1904)
> at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
> at java.lang.Thread.run(Thread.java:745)
> Caused by: java.lang.NoClassDefFoundError: org/infinispan/manager/DefaultCacheManager
> at io.undertow.servlet.core.ApplicationListeners.contextInitialized(ApplicationListeners.java:173)
> at io.undertow.servlet.core.DeploymentManagerImpl.deploy(DeploymentManagerImpl.java:195)
> at org.wildfly.extension.undertow.deployment.UndertowDeploymentService.startContext(UndertowDeploymentService.java:86)
> at org.wildfly.extension.undertow.deployment.UndertowDeploymentService.start(UndertowDeploymentService.java:71)
> at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1948)
> at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1881)
> ... 3 more
> Caused by: java.lang.ClassNotFoundException: org.infinispan.manager.DefaultCacheManager from [Module "deployment.push-api.war:main" from Service Module Loader]
> at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:205)
> at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:455)
> at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:404)
> at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:385)
> at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:130)
> ... 11 more
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
9 years, 7 months
[JBoss JIRA] (ISPN-5535) Infinispan subsystem not loaded in WildFly
by Veli Cris (JIRA)
Veli Cris created ISPN-5535:
-------------------------------
Summary: Infinispan subsystem not loaded in WildFly
Key: ISPN-5535
URL: https://issues.jboss.org/browse/ISPN-5535
Project: Infinispan
Issue Type: Enhancement
Affects Versions: 6.0.3.Final
Environment: Linux / WildFy 8.2.0
Reporter: Veli Cris
org.infinispan.Cache<Object, Object> c = new org.infinispan.manager.DefaultCacheManager().getCache();
Triying to instantiate a simple infinispan cache in test application results in following exception:
2015-06-09 12:10:13,241 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-4) MSC000001: Failed to start service jboss.undertow.deployment.default-server.default-host./push-api: org.jboss.msc.service.StartException in service jboss.undertow.deployment.default-server.default-host./push-api: Failed to start service
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1904)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.NoClassDefFoundError: org/infinispan/manager/DefaultCacheManager
at io.undertow.servlet.core.ApplicationListeners.contextInitialized(ApplicationListeners.java:173)
at io.undertow.servlet.core.DeploymentManagerImpl.deploy(DeploymentManagerImpl.java:195)
at org.wildfly.extension.undertow.deployment.UndertowDeploymentService.startContext(UndertowDeploymentService.java:86)
at org.wildfly.extension.undertow.deployment.UndertowDeploymentService.start(UndertowDeploymentService.java:71)
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1948)
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1881)
... 3 more
Caused by: java.lang.ClassNotFoundException: org.infinispan.manager.DefaultCacheManager from [Module "deployment.push-api.war:main" from Service Module Loader]
at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:205)
at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:455)
at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:404)
at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:385)
at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:130)
... 11 more
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
9 years, 7 months
[JBoss JIRA] (ISPN-5526) Replication: The DELTA_WRITE flag should force a remote get during state transfer
by Ryan Emerson (JIRA)
[ https://issues.jboss.org/browse/ISPN-5526?page=com.atlassian.jira.plugin.... ]
Ryan Emerson updated ISPN-5526:
-------------------------------
Status: Open (was: New)
> Replication: The DELTA_WRITE flag should force a remote get during state transfer
> ---------------------------------------------------------------------------------
>
> Key: ISPN-5526
> URL: https://issues.jboss.org/browse/ISPN-5526
> Project: Infinispan
> Issue Type: Bug
> Affects Versions: 5.2.10.Final
> Reporter: Dennis Reed
> Assignee: Ryan Emerson
> Priority: Critical
>
> Same issue as ISPN-3184, but for repl caches in Infinispan 5.2.x.
> (ISPN-3184 only fixed dist caches, since repl uses the same code in 5.3+).
> AtomicHashMap and FineGrainedAtomicHashMap, as well as custom DeltaAware implementations, use PutKeyValueCommands with the DELTA_WRITE flag to execute incremental updates. These commands need the previous value of the entry in order to work.
> If a node is joining and it receives a PutKeyValueCommand with the DELTA_WRITE flag before it has received the value of the affected key, it should do a remote get to retrieve the previous value and apply the change on top of that value, just like we do for conditional commands. Not doing so leads to data loss.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
9 years, 7 months