[Installation, Configuration & DEPLOYMENT] - direction of JBoss with osgi is what?
by deanhiller
I am looking at this ear file thing and see jars all over the place like so
myapp.ear
+-lib
....+- jars location 1
+ jars location 2
+ mywar.war
....+ WEB-INF
..........+- jars location 3
Well, I come from OSGi where everything is exposed as a shared library or a not shared library. It is very simple and there are really only those two choices. When a service, you may be accessible by some services and not others. I look at this ear file and think the following
1. jars location 3...okay, I get that, these are LIBRARIES only used in the war
2. Then there is jars location1 and 2 which is weird. jars location1 is like shared libraries. What is jars location 2 then? Are they shared or not?
Are they going to clean this up to the point where it is as easy as OSGi. In OSGi, every jar is either shared or not shared. when it is shared, the client then defines whether it is using that shared jar or just using it's own library. It is really quite simple and I thought JBoss 5 was using Osgi now, but it does not seem to have propagated up.
For those who don't know: in OSGi, in your shared library jar, you just define what packages are exposed and can be used in other services. In the other services jars, you just define what you import....if you have your own library, just don't import. It works beautifully and gives you the full power. I feel very limited in JBoss in that I cannot share my EJB layer between two ear files(and I hate ears....I wish it was just OSGi bundles and war files which covers just about everything including sar, har, jar, etc. etc. just by tweaking the manifest file).
Anyways, this is just my opinion but it would be nice to know the direction of JBoss and if it will catch up to the power of OSGi when it comes to Classloaders which is where OSGi rules on making the complicated simple.
Dean
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4185207#4185207
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4185207
17 years, 6 months
[JBoss AOP] - Re: The use of Hotswapping
by aquatr7
Here is the content of the "jboss-aop.xml" file:
<?xml version="1.0" encoding="UTF-8"?>
| <aop>
| <prepare expr="execution(public * POJO->someMethod(..))"/>
| </aop>
In "execute" method I have deleted Per instance interception
| Advised advised = (Advised)pojo;
| advised._getInstanceAdvisor().insertInterceptor(new InstanceInterceptor());
| System.out.println("--- pojo.counter++; ---");
| pojo.counter++;
|
I created META-INF directory and moved "jboss-aop.xml" in it. I also modified the "-Djboss.aop.path" to point to the new location of "jboss-aop.xml". But it doesn't work.
So I tried the verbose mode, Here is the new configuration of "VM aguments":
anonymous wrote : -Djboss.aop.verbose=true -Djboss.aop.path=C:/Driverexemple/DynamicAOP/META-INF/jboss-aop.xml -javaagent:C:/aop/jboss-aop_1.5.6.GA/lib-50/jboss-aop-jdk50.jar=-hotSwap
I run the application and before the end of the "for" loop I modified "SimpleInterceptor" by "InstanceInterceptor".
The verbose mode display after 10000 without interception:
| --------------
| --- new POJO(); ---
| in empty constructor
| --- adding instance interceptors ---
| --- pojo.someMethod(); ---
| in someMethod
| --------------
| [trying to transform] SimpleInterceptor
| [debug] There are no caller pointcuts!
| [debug] was SimpleInterceptor converted: false
| [trying to transform] SimpleInterceptor
| [debug] There are no caller pointcuts!
| [debug] was SimpleInterceptor converted: false
| [debug] softmatch succeeded for : POJO org.jboss.aop.advice.AdviceBinding@4a8436a5 execution(public * POJO->someMethod(..))
| iterate binding 1225222694453:0
| [debug] added advisor: POJO from binding: 1225222694453:0
| method matched binding execution(public * POJO->someMethod(..)) public void POJO.someMethod()
| --- new POJO(); ---
| in empty constructor
| --- adding instance interceptors ---
| --- pojo.someMethod(); ---
| <<< Entering Simplenterceptor for: POJO$someMethod_2315001504750198986
| in someMethod
|
Thank you for the help.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4185206#4185206
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4185206
17 years, 6 months
[Beginners Corner] - Strange messages on log
by acastanheira2001
Hi,
We are receiving some error messages that I can´t know its meaning.
Can you tell me what is this related to?
2008-10-28 16:26:46,397 97243442 ERROR [org.jboss.jmx.adaptor.snmp.agent.SnmpAgentService] (SnmpPortal--1:) Message from manager /127.0.0.1 on port 38913
2008-10-28 16:26:46,397 97243442 ERROR [org.jboss.jmx.adaptor.snmp.agent.SnmpAgentService] (SnmpPortal--1:) Unsupported PDU command......... 165
2008-10-28 16:31:46,340 97543385 ERROR [org.jboss.jmx.adaptor.snmp.agent.SnmpAgentService] (SnmpPortal--1:) Message from manager /127.0.0.1 on port 38913
2008-10-28 16:31:46,340 97543385 ERROR [org.jboss.jmx.adaptor.snmp.agent.SnmpAgentService] (SnmpPortal--1:) Unsupported PDU command......... 165
2008-10-28 16:31:46,393 97543438 ERROR [org.jboss.jmx.adaptor.snmp.agent.SnmpAgentService] (SnmpPortal--1:) Message from manager /127.0.0.1 on port 38913
2008-10-28 16:31:46,393 97543438 ERROR [org.jboss.jmx.adaptor.snmp.agent.SnmpAgentService] (SnmpPortal--1:) Unsupported PDU command......... 165
2008-10-28 16:31:46,450 97543495 ERROR [org.jboss.jmx.adaptor.snmp.agent.SnmpAgentService] (SnmpPortal--1:) Message from manager /127.0.0.1 on port 38913
2008-10-28 16:31:46,450 97543495 ERROR [org.jboss.jmx.adaptor.snmp.agent.SnmpAgentService] (SnmpPortal--1:) Unsupported PDU command......... 165
2008-10-28 16:31:46,505 97543550 ERROR [org.jboss.jmx.adaptor.snmp.agent.SnmpAgentService] (SnmpPortal--1:) Message from manager /127.0.0.1 on port 38913
2008-10-28 16:31:46,505 97543550 ERROR [org.jboss.jmx.adaptor.snmp.agent.SnmpAgentService] (SnmpPortal--1:) Unsupported PDU command......... 165
2008-10-28 16:36:46,344 97843389 ERROR [org.jboss.jmx.adaptor.snmp.agent.SnmpAgentService] (SnmpPortal--1:) Message from manager /127.0.0.1 on port 38913
2008-10-28 16:36:46,344 97843389 ERROR [org.jboss.jmx.adaptor.snmp.agent.SnmpAgentService] (SnmpPortal--1:) Unsupported PDU command......... 165
2008-10-28 16:36:46,396 97843441 ERROR [org.jboss.jmx.adaptor.snmp.agent.SnmpAgentService] (SnmpPortal--1:) Message from manager /127.0.0.1 on port 38913
2008-10-28 16:36:46,396 97843441 ERROR [org.jboss.jmx.adaptor.snmp.agent.SnmpAgentService] (SnmpPortal--1:) Unsupported PDU command......... 165
Thanks,
Andre
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4185205#4185205
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4185205
17 years, 6 months
[JBoss jBPM] - Re: Problem running bpel process designed with eclipse bpel
by alex.guizar@jboss.com
I see two different problems.
13:50:20,215 ERROR [XPathEvaluator] selection of size other than one: []
This means one of your expressions is required to return a node-set of size 1, as described in the BPEL spec, but it returned an empty node-set (as evidenced by the empty string inside the square brackets []). Check your expressions. The server log file (jboss-4.x.x/server/default/log/server.log) will tell you which expression was being evaluated and help you pinpoint the problem.
13:50:20,246 WARN [loggerI18N] [com.arjuna.ats.internal.jta.transaction.arjunacore.lastResource.disallow] Adding multiple last resources is disallowed. Current resource is org.jboss.resource.connectionmanager.TxConnectionManager$LocalXAResource@151cc3
This situation is known and documented. Please refer to section 3.5.2 "Transaction Manager" of the jBPM BPEL 1.1.1 manual for details.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4185201#4185201
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4185201
17 years, 6 months