[Installation, Configuration & DEPLOYMENT] - Got error message when running application with war file dep
by hauerw2009
We found the following problem in JBoss 5.0.0.GA with a war file. But the same war file works in JBoss 4.0.2.
When the application is deployed on JBoss 5.0, we got the following error message when it runs
SEVERE: Error happened while running the application.
java.lang.ExceptionInInitializerError
at org.apache.axis.client.Service.getAxisClient(Service.java:103)
at org.apache.axis.client.Service.(Service.java:112)
.
.
.
Caused by: org.apache.commons.logging.LogConfigurationException: org.apache.commons.logging.LogConfigurationException: No suitable Log constructor
[Ljava.lang.Class;@1853069 for org.apache.commons.logging.impl.Log4JLogger (Caused by java.lang.NoClassDefFoundError: org/apache/log4j/Category) (Caused by
org.apache.commons.logging.LogConfigurationException: No suitable Log constructor [Ljava.lang.Class;@1853069 for org.apache.commons.logging.impl.Log4JLogger (Caused by java.lang.NoClassDefFoundError: org/apache/log4j/Category))
at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:543)
at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:235)
at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:370)
at org.apache.axis.components.logger.LogFactory.getLog(LogFactory.java:37)
at org.apache.axis.handlers.BasicHandler.(BasicHandler.java:43)
... 101 more
Caused by: org.apache.commons.logging.LogConfigurationException: No suitable Log constructor [Ljava.lang.Class;@1853069 for
org.apache.commons.logging.impl.Log4JLogger (Caused by java.lang.NoClassDefFoundError: org/apache/log4j/Category)
We run JBoss 5.0 on Windows XP Professional,JDK version is 1.6.
Does anyone have any thoughts on this? Thank you in advance.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4217203#4217203
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4217203
17 years, 1 month
[JBoss Cache: Core Edition] - Re: is it possible for MVCCInvocationContext to have null mv
by dukehoops
Got it. The following sequence will fail:
1. get()
2. pfer()
3. get() //fail here
However, if the 1st step is eliminated, second get succeeds:
pfer();
get();//success.
Here's the test:
package org.jboss.cache.api;
|
| import org.jboss.cache.config.Configuration;
| import org.jboss.cache.config.Configuration.NodeLockingScheme;
| import org.jboss.cache.factories.UnitTestConfigurationFactory;
| import org.testng.annotations.Test;
|
| import javax.transaction.TransactionManager;
|
| import org.jboss.cache.*;
| import org.jboss.cache.lock.IsolationLevel;
|
| /**
| * Tests that a node that was putFromExternalRead and then removed in TX1 does NOT
| * get returned in subsequent TX2.
| *
| * @author nikita_tovstoles(a)mba.berkeley.edu
| * @since 3.0.3.GA
| */
| @Test(groups = {"functional", "pessimistic"}, sequential = true, testName = "api.RemovedNodeResurrectionInSubsequentTxTest")
| public class RemovedNodeResurrectionInSubsequentTxTest extends AbstractSingleCacheTest {
|
| private static final Fqn A_B = Fqn.fromString("/a/b");
| private static final Fqn A = Fqn.fromString("/a");
| private static final Fqn A_C = Fqn.fromString("/a/c");
| private static final String KEY = "key";
| private static final String VALUE = "value";
| private static final String K2 = "k2";
| private static final String V2 = "v2";
| protected NodeSPI root;
| protected TransactionManager txManager;
|
| public CacheSPI createCache() {
| CacheSPI myCache = (CacheSPI<Object, Object>) new UnitTestCacheFactory<Object, Object>().createCache(UnitTestConfigurationFactory.createConfiguration(Configuration.CacheMode.LOCAL, false), false, getClass());
| myCache.getConfiguration().setCacheMode(Configuration.CacheMode.LOCAL);
| myCache.getConfiguration().setCacheLoaderConfig(null);
| myCache.getConfiguration().setNodeLockingScheme(NodeLockingScheme.MVCC);
| configure(myCache.getConfiguration());
| myCache.start();
| root = myCache.getRoot();
| txManager = myCache.getTransactionManager();
|
| return myCache;
| }
|
| protected void configure(Configuration c) {
| c.setIsolationLevel(IsolationLevel.REPEATABLE_READ);
| }
|
| public void testPferAndEvictInSameTx() throws Exception {
|
| Object val = null;
|
| cache.getRoot().addChild(A);
|
| txManager.begin();
|
| val = cache.get(A_B, KEY); //N1 IF THIS LINE IS EXECUTED, TEST FAILS BELOW AT N2
|
| //put in cache
| cache.putForExternalRead(A_B, KEY, VALUE);
|
| val = cache.get(A_B, KEY);
| assert val != null : "get() after pfer() returned " + val; //N2 THIS WILL FAIL IF LINE N1 (ABOVE) IS EXECUTED (NOT COMMENTED OUT)
|
| //evict from cache
| cache.evict(A_B); //sometimes MVCCInvocationContext has ref to mvccTCtx, sometimes NOT
|
| //verify eviction
| val = cache.get(A_B, KEY);
| assert val == null : "get() after evict() returned " + val;
|
| txManager.commit();
|
| }
| }
|
Here's the output:
anonymous wrote :
|
|
| java.lang.AssertionError: get() after pfer() returned null
| at org.jboss.cache.api.RemovedNodeResurrectionInSubsequentTxTest.testPferAndEvictInSameTx(RemovedNodeResurrectionInSubsequentTxTest.java:65)
| 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:619)
|
However, if line marked as "N1" is commented out, test passes. Any ideas?
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4217201#4217201
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4217201
17 years, 1 month
[JBoss Tools (users)] - Re: Hibernate Configurations problem
by asookazian
"max.andersen(a)jboss.com" wrote : if you are using hsql in-memory then only one process can access the database at one time.
|
| you should at least use a hsql server if you want concurrent access.
Ok, I *finally* ran two HQL queries in the HQL editor successfully for the booking project using HSQLDB: "from User" and "from Hotel".
I'm not sure how/why that lock error was happening but now I actually am able to run simultaneous HQL queries from JBDS and from HSQL DB mgr swing app.
So now I know that I should be able to get my seam-gen'd project to work with HQL Editor as well b/c the booking project has the same project skeleton/structure.
I had to learn how HSQLDB works and load/creates tables on startup, etc. but this was a good POC success for my scenario...
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4217200#4217200
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4217200
17 years, 1 month