configs are broken
by Dimitris Andreadis
With the latest Ales' changes the minimal doesn't boot, and you need to manually specify
-Djboss.vfs.cache=org.jboss.virtual.plugins.cache.WeakRefVFSCache on every other config.
The VFS needs to have settings that works out of the box.
16 years, 1 month
ConfigurationException
by Scott Stark
On one box with the current jbossas trunk I'm seeing this exception when
starting the all config. On another box with the same trunk I'm not
seeing this. Its coming from some file from jboss-cache-manager.sar. Any
idea why this would happen on one box and not the other?
16:36:39,543 ERROR [RootElementBuilder] Configuration warning: Content
is not allowed in prolog.
16:36:39,544 ERROR [RootElementBuilder]
org.jboss.cache.config.ConfigurationException: Incorrect configuration
file. Use '-Djbosscache.config.validate=false' to disable validation.
16:36:39,548 ERROR [AbstractKernelController] Error installing to Start:
name=CacheConfigurationRegistry state=Create
org.jboss.cache.config.ConfigurationException: Could not parse the
config file
at
org.jboss.cache.config.parsing.RootElementBuilder.readRoot(RootElementBuilder.java:111)
at
org.jboss.cache.config.parsing.CacheConfigsXmlParser.getDocumentRoot(CacheConfigsXmlParser.java:145)
at
org.jboss.cache.config.parsing.CacheConfigsXmlParser.parseConfigs(CacheConfigsXmlParser.java:94)
at
org.jboss.cache.config.parsing.CacheConfigsXmlParser.parseConfigs(CacheConfigsXmlParser.java:88)
at
org.jboss.ha.cachemanager.DependencyInjectedConfigurationRegistry.loadConfigResource(DependencyInjectedConfigurationRegistry.java:51)
at
org.jboss.ha.cachemanager.DependencyInjectedConfigurationRegistry.start(DependencyInjectedConfigurationRegistry.java:42)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at
org.jboss.reflect.plugins.introspection.ReflectionUtils.invoke(ReflectionUtils.java:59)
at
org.jboss.reflect.plugins.introspection.ReflectMethodInfoImpl.invoke(ReflectMethodInfoImpl.java:150)
at
org.jboss.joinpoint.plugins.BasicMethodJoinPoint.dispatch(BasicMethodJoinPoint.java:66)
at
org.jboss.kernel.plugins.dependency.KernelControllerContextAction$JoinpointDispatchWrapper.execute(KernelControllerContextAction.java:241)
at
org.jboss.kernel.plugins.dependency.ExecutionWrapper.execute(ExecutionWrapper.java:47)
at
org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchExecutionWrapper(KernelControllerContextAction.java:109)
at
org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchJoinPoint(KernelControllerContextAction.java:70)
at
org.jboss.kernel.plugins.dependency.LifecycleAction.installActionInternal(LifecycleAction.java:221)
at
org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:54)
at
org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:42)
at
org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62)
at
org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)
at
org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)
at
org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
at
org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1598)
at
org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
at
org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1062)
at
org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
at
org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:774)
at
org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:540)
at
org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataDeployer.deploy(BeanMetaDataDeployer.java:121)
at
org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataDeployer.deploy(BeanMetaDataDeployer.java:51)
at
org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:62)
at
org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)
at
org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)
at
org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1410)
at
org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1128)
at
org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1149)
at
org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1069)
at
org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
at
org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1598)
at
org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
at
org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1062)
at
org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
at
org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
at
org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
at
org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:752)
at
org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:541)
at
org.jboss.system.server.profileservice.ProfileServiceBootstrap.loadProfile(ProfileServiceBootstrap.java:265)
at
org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:143)
at
org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:410)
at org.jboss.Main.boot(Main.java:209)
at org.jboss.Main$1.run(Main.java:544)
at java.lang.Thread.run(Thread.java:595)
*** CONTEXTS MISSING DEPENDENCIES: Name -> Dependency{Required
State:Actual State}
CacheManager
-> CacheConfigurationRegistry{Configured:**ERROR**}
DistributedState
-> HAPartitionCacheHandler{Configured:Instantiated}
HAJNDI
-> HAJNDI$distributedTreeManager#1{Configured:Instantiated}
-> HAPartition{Configured:Instantiated}
HAJNDI$distributedTreeManager#1
-> HAPartitionCacheHandler{Configured:Instantiated}
HAPartition
-> DistributedState{Configured:Instantiated}
-> HAPartitionCacheHandler{Configured:Instantiated}
HAPartitionCacheHandler
-> CacheManager{Configured:Instantiated}
HASessionStateService
-> HAPartition{Configured:Instantiated}
HASingletonDeployer
-> HAPartition{Configured:Instantiated}
JGCacheInvalidationBridge
-> HAPartition{Configured:Instantiated}
JRMPInvokerHA
-> HAPartition{Create:Instantiated}
PooledInvokerHA
-> HAPartition{Create:Instantiated}
UnifiedInvokerHA
-> HAPartition{Create:Instantiated}
16 years, 1 month
testsuite cluster related compile problems
by Scott Stark
I'm seeing this both in eclipse and from the command line compile after
updating my jbossas trunk workspace. In the middle of a library change,
checkin?
compile-classes-only:
[javac] Compiling 13 source files to
/Users/svn/JBossHead/jboss-head/testsuite/output/classes
[javac]
/Users/svn/JBossHead/jboss-head/testsuite/src/main/org/jboss/test/cluster/testutil/DelegatingMockCache.java:48:
org.jboss.test.cluster.testutil.DelegatingMockCache is not abstract and
does not override abstract method get(org.jboss.cache.Fqn<?>,K) in
org.jboss.cache.Cache
[javac] public class DelegatingMockCache<K, V> implements Cache<K, V>
[javac] ^
[javac]
/Users/svn/JBossHead/jboss-head/testsuite/src/main/org/jboss/test/cluster/testutil/DelegatingMockCache.java:61:
cannot find symbol
[javac] symbol : method
addInterceptor(org.jboss.cache.interceptors.base.CommandInterceptor,java.lang.Class)
[javac] location: interface org.jboss.cache.Cache<K,V>
[javac] delegate.addInterceptor(arg0, arg1);
[javac] ^
[javac]
/Users/svn/JBossHead/jboss-head/testsuite/src/main/org/jboss/test/cluster/testutil/DelegatingMockCache.java:66:
cannot find symbol
[javac] symbol : method
addInterceptor(org.jboss.cache.interceptors.base.CommandInterceptor,int)
[javac] location: interface org.jboss.cache.Cache<K,V>
[javac] delegate.addInterceptor(arg0, arg1);
[javac] ^
[javac]
/Users/svn/JBossHead/jboss-head/testsuite/src/main/org/jboss/test/cluster/testutil/DelegatingMockCache.java:71:
cannot find symbol
[javac] symbol : method removeInterceptor(int)
[javac] location: interface org.jboss.cache.Cache<K,V>
[javac] delegate.removeInterceptor(arg0);
[javac] ^
[javac]
/Users/svn/JBossHead/jboss-head/testsuite/src/main/org/jboss/test/cluster/testutil/DelegatingMockCache.java:76:
cannot find symbol
[javac] symbol : method startBatch()
[javac] location: interface org.jboss.cache.Cache<K,V>
[javac] delegate.startBatch();
[javac] ^
[javac]
/Users/svn/JBossHead/jboss-head/testsuite/src/main/org/jboss/test/cluster/testutil/DelegatingMockCache.java:81:
cannot find symbol
[javac] symbol : method endBatch(boolean)
[javac] location: interface org.jboss.cache.Cache<K,V>
[javac] delegate.endBatch(arg0);
[javac] ^
[javac]
/Users/svn/JBossHead/jboss-head/testsuite/src/main/org/jboss/test/cluster/testutil/SessionTestUtil.java:173:
cannot find symbol
[javac] symbol : method setSerializationExecutorPoolSize(int)
[javac] location: class org.jboss.cache.config.Configuration
[javac] config.setSerializationExecutorPoolSize(0);
[javac] ^
[javac]
/Users/svn/JBossHead/jboss-head/testsuite/src/main/org/jboss/test/compatibility/test/matrix/MatrixTestContainer.java:196:
warning: non-varargs call of varargs method with inexact argument type
for last parameter;
[javac] cast to java.lang.Class for a varargs call
[javac] cast to java.lang.Class[] for a non-varargs call and to
suppress this warning
[javac] method = clazz.getMethod("suite", null);
[javac] ^
[javac]
/Users/svn/JBossHead/jboss-head/testsuite/src/main/org/jboss/test/compatibility/test/matrix/MatrixTestContainer.java:204:
warning: non-varargs call of varargs method with inexact argument type
for last parameter;
[javac] cast to java.lang.Object for a varargs call
[javac] cast to java.lang.Object[] for a non-varargs call and to
suppress this warning
[javac] return (Test) method.invoke(null, null);
[javac] ^
[javac] Note:
/Users/svn/JBossHead/jboss-head/testsuite/src/main/org/jboss/test/cluster/testutil/SessionTestUtil.java
uses or overrides a deprecated API.
[javac] Note: Recompile with -Xlint:deprecation for details.
[javac] Note: Some input files use unchecked or unsafe operations.
[javac] Note: Recompile with -Xlint:unchecked for details.
[javac] 7 errors
[javac] 2 warnings
16 years, 1 month
build script for the repository
by Frank Liu
Hi there,
I downloaded the jboss 4.2.3 source and tried to build it.
I have noticed it is pulling the thirdparty binary files from the
jboss repository. I assume the repository is being auto rebuild using
some build scripts. Are those build scripts available somewhere?
People may want to tweak the source for one of the thirdparty
components and build it.
In particular, I am interested in rebuilding the thirdparty/jboss/web
for the jboss 4.2.3.
Thanks!
Frank
16 years, 1 month
jndi.properties
by Dimitris Andreadis
One of the latest changes broke the minimal/default configs by using the jndi.properties
from the all config. I suppose this was by mistake, so I've rolled that back.
16 years, 1 month
SoftValueHashMap behaves diff then WeakValueHashMap
by Ales Justin
jboss-commons-core issue:
SoftValueHashMap::values doesn't return expected value type:
e.g.
public void testBasicOperations() throws Exception
{
Map map = createMap();
map.put("date1", new Date());
Iterable<String> keys = map.keySet();
assertIterable(keys, String.class);
Iterable<Date> values = map.values();
assertIterable(values, Date.class);
}
protected <T> void assertIterable(Iterable<T> iter, Class<T> clazz)
{
assertTrue(iter.iterator().hasNext());
T next = iter.iterator().next();
assertTrue("Next " + next + " is not instance of " +
clazz.getName(), clazz.isInstance(next));
assertNotNull(next);
}
---
junit.framework.AssertionFailedError: Next
org.jboss.util.collection.SoftValueHashMap$SoftValueRef@157f0dc is not
instance of java.util.Date
at
org.jboss.test.util.test.collection.AbstractMapUnitTest.assertIterable(AbstractMapUnitTest.java:33)
at
org.jboss.test.util.test.collection.AbstractMapUnitTest.testBasicOperations(AbstractMapUnitTest.java:26)
---
Where WeakValueHashMap works OK.
I'll do the fix, Dimitris|Scott can you do a new release then?
16 years, 1 month
jboss_5_0.xsd and EJB2 container elements
by Alexey Loubyansky
We've discussed this previously with Carlo but I would like to bring
this up once again before the GA.
jboss_5_0.xsd currently doesn't contain all the legacy EJB2 container
configuration elements, such as container-configurations,
invoker-proxy-bindings, entity. (The EJB2 deployment descriptors should
reference jboss_5_0.dtd instead)
On the other hand, bean types (session-beanType,
message-driven-beanType, etc) still declare some elements that are
legacy from EJB2 container (e.g. configuration-name, invoker-bindings,
security-proxy, etc).
This is kind of messy. If we want to clean this up then we should have
different types for EJB2 and EJB3 beans in metadata (e.g. just extend
the current bean types and bind them differently based on the EJB version).
Alexey
16 years, 1 month