[JBoss Microcontainer Development] New message: "Re: DependencyInfo remove items"
by Kabir Khan
User development,
A new message was posted in the thread "DependencyInfo remove items":
http://community.jboss.org/message/522866#522866
Author : Kabir Khan
Profile : http://community.jboss.org/people/kabir.khan@jboss.com
Message:
--------------------------------------------------------------
All tests pass with the below change which I have committed against https://jira.jboss.org/jira/browse/JBKERNEL-84. However, I do see a few warnings like this when running KernelAllTestSuite due to DemandDependencyItem not having its iDependOn set. Any ideas on making this more flexible? I kind of wish DependencyItem would record its dependencies somehow...
29221 WARN [AbstractKernelController] Problem finding dependency for AbstractDemandMetaData$DemandDependencyItem@4946101f{name=bean depends
On=null whenRequired=Instantiated resolved=false demand=foobar}
java.lang.IllegalArgumentException: Null name
at org.jboss.dependency.plugins.AbstractController.getContext(AbstractController.java:520)
at org.jboss.kernel.plugins.dependency.AbstractKernelController.getContext(AbstractKernelController.java:150)
at org.jboss.dependency.plugins.AbstractController.uninstallContext(AbstractController.java:1477)
at org.jboss.dependency.plugins.AbstractController.uninstallContext(AbstractController.java:1391)
at org.jboss.dependency.plugins.AbstractController.uninstall(AbstractController.java:704)
at org.jboss.dependency.plugins.AbstractController.uninstall(AbstractController.java:617)
at org.jboss.test.kernel.lazy.test.LazyInstantiationTest.testLazy(LazyInstantiationTest.java:109)
Index: dependency/src/main/java/org/jboss/dependency/plugins/AbstractController.java
===================================================================
--- dependency/src/main/java/org/jboss/dependency/plugins/AbstractController.java (revision 100075)
+++ dependency/src/main/java/org/jboss/dependency/plugins/AbstractController.java (working copy)
@@ -1459,7 +1459,40 @@
}
}
}
-
+
+ Set<DependencyItem> iDependOn = dependencies.getIDependOn(null);
+ if (iDependOn.isEmpty() == false)
+ {
+ for (DependencyItem item : iDependOn)
+ {
+ if (item.isResolved())
+ {
+ ControllerState whenRequired = item.getWhenRequired();
+ if (whenRequired == null || whenRequired.equals(fromState))
+ {
+ if (item.unresolved(this))
+ {
+ try
+ {
+ ControllerContext dependency = getContext(item.getIDependOn(), item.getDependentState());
+ if (dependency != null)
+ {
+ DependencyInfo info = dependency.getDependencyInfo();
+ if (info != null)
+ {
+ info.removeDependsOnMe(item);
+ }
+ }
+ }
+ catch(RuntimeException e)
+ {
+ log.warn("Problem finding dependency for " + item, e);
+ }
+ }
+ }
+ }
+ }
+ }
}
catch (Throwable error)
{
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/522866#522866
14 years, 3 months
[Spring Integration] New message: "Re: ClassNotFound error for classes in spring archives lib directory"
by Mike Karrys
User development,
A new message was posted in the thread "ClassNotFound error for classes in spring archives lib directory":
http://community.jboss.org/message/522865#522865
Author : Mike Karrys
Profile : http://community.jboss.org/people/mikekarrys
Message:
--------------------------------------------------------------
Marius
After what you said I looked at the jboss-spring.xml that was in the deployed ear and it was wrong. I had to clear my Maven local repository before it would include the correct version. But anyway that is a Maven problem.
But now I get the following error at deployment.
DEPLOYMENTS IN ERROR:
Deployment "vfszip:/C:/Applications/jboss-5.1.0.GA/server/default/deploy/avm-ear.ear/" is in error due to the following reason(s): org.xml.sax.S
AXParseException: cvc-complex-type.3.2.2: Attribute 'weaverclass' is not allowed to appear in element 'context:load-time-weaver'.
I have included the top my jboss-spring.xml file. I am actually not sure how to use the JBoss5LoadTimeWeaver so I'm not even sure if this is the correct way or situation to use it. Can you give any insight into how and when to use the JBoss5LoadTimeWeaver?
Thanks in advance,
Mike
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/522865#522865
14 years, 3 months