[Management, JMX/JBoss] - Re: XMBean and SubscriptionList
by alfred.rsa
Hi Dimitris
Here is the rest of my config - I only showed the notifications.
I am using XMBeans because it seemed to be the most convenient way of adding method/parameter names and descriptions in the JMX console. I tried normal MBeans, dynamic and model mbeans as well. I like XMBeans the best. Should I not use them?
<?xml version='1.0' encoding='UTF-8' ?>
| <!DOCTYPE server PUBLIC "-//JBoss//DTD MBean Service 4.2//EN" "http://www.jboss.org/j2ee/dtd/jboss-service_4_2.dtd">
|
| <server>
| <mbean code="za.co.fnb.bflo.eventlistener.FileEventListenerService" name="FNB.Commercial.BFLo:service=FileEventListenerService" xmbean-dd="META-INF/FileEventListenerService.xml">
| <depends>jboss.ejb3:service=EJB3Deployer</depends>
| <attribute name="ConfigurationFilename">FileEventListenerService.xml</attribute>
| </mbean>
| <mbean code="za.co.fnb.bflo.dispatcher.JMSEventDispatcherService" name="FNB.Commercial.BFLo:service=JMSEventDispatcherService" xmbean-dd="META-INF/JMSEventDispatcherService.xml">
| <depends>jboss.ejb3:service=EJB3Deployer</depends>
| <depends>FNB.Commercial.BFLo:service=FileEventListenerService</depends>
| <attribute name="ConfigurationFilename">JMSEventDispatcherService.xml</attribute>
| <attribute name="SubscriptionList">
| <subscription-list>
| <mbean name="FNB.Commercial.BFLo:service=FileEventListenerService"/>
| </subscription-list>
| </attribute>
| </mbean>
| </server>
|
| and
|
| <?xml version="1.0" encoding="UTF-8"?>
|
| <!DOCTYPE mbean PUBLIC "-//JBoss//DTD JBOSS XMBEAN 1.2//EN" "http://www.jboss.org/j2ee/dtd/jboss_xmbean_1_2.dtd">
|
| <mbean>
| <description>File listener event service</description>
| <class>za.co.fnb.bflo.dispatcher.JMSEventDispatcherService</class>
|
| <constructor>
| <description>Default constructor</description>
| <name>JMSEventDispatcherService</name>
| </constructor>
|
| <attribute access='read-write' getMethod='getConfigurationFilename' setMethod='setConfigurationFilename'>
| <description>MBean Attribute.</description>
| <name>ConfigurationFilename</name>
| <type>java.lang.String</type>
| </attribute>
|
| <operation>
| <name>start</name>
| </operation>
|
| <operation>
| <name>stop</name>
| </operation>
|
| </mbean>
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4103021#4103021
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4103021
18 years, 7 months
[JBoss Portal] - Problem installing JBoss Portal
by mfb
I am having a problem installing the JBoss Portal. I downloaded the JBoss Portal + JBoss AS bundle version 2.6.2 and extracted the zip file to a local folder.
I have Java 1.5 installed and I have my JAVA_HOME system environment set up pointing to that location.
The install instructions say to execute the run.bat in the \bin folder. When I run the Run.bat file, I can see the cmd window open and the install runs for a few minutes. Eventually, I get to a message in the window: [ProducerInfo] Refreshed registration information for consumer with id 'self' . The install seems to hang at this point. As a matter of fact, if I dump the output from the .bat file to a log file I will see multiple entries of this line in the log.
There is no way to get out of this hanging state without closing the window. At this point, it appears the install is aborted.
I have search the forum to tryd find out why this happening to no avail.
Has anyone seen this problem?
Thanks in advance for any help on this.
mfb
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4103020#4103020
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4103020
18 years, 7 months
[JBoss jBPM] - jBPM + SEAM 2.0.0.GA - Getting
by csweeney
No doubt I have an error somewhere...
These messages were not being generated in a previous version of SEAM (so I have been blissfully unaware of my less than perfect implementation).
|
| Process definition:
| <?xml version="1.0" encoding="UTF-8"?>
|
| <process-definition
| xmlns="" name="test_process">
| <start-state name="start_process">
| <transition to="wait_for_action">
| <mail name="confirm_start" to="${user.email}" template="/emailTemplates/confirm.xhtml"/>
| </transition>
| </start-state>
| <mail-node name="email_manager" to="another_address(a)nowhere.com" template="/emailTemplates/process_started.xhtml">
| <transition to="task-node1"/>
| </mail-node>
|
| <task-node name="task-node1" end-tasks="true">
| <task name="test">
| <description>
| Testing
| </description>
| <assignment pooled-actors="managers"></assignment>
| </task>
| <transition to="end-state1"></transition>
| </task-node>
| <end-state name="end-state1"/>
| </process-definition>
|
| The process is started with a
| @CreateProcess(...)
| public String persist(){
| //persist stuff in application db...
| ...
| }
|
| Later...
| @In(required=false)
| ProcessInstance processInstance;
|
| @ResumeProcess(...)
| public String managerLoggedInAndCompletedProcess(){
| ...
| processInstance.signal();
| }
|
No exceptions are thrown, nothing interesting in any log output. I poked around in the the SEAM code and the messages are added via this thread:
| at org.jboss.seam.faces.BusinessProcess.processEnded(BusinessProcess.java:58)
| at org.jboss.seam.bpm.BusinessProcess.afterResumeProcess(BusinessProcess.java:296)
| at org.jboss.seam.bpm.BusinessProcess.resumeProcess(BusinessProcess.java:267)
| at org.jboss.seam.async.Asynchronous.executeInContexts(Asynchronous.java:63)
| at org.jboss.seam.async.Asynchronous.execute(Asynchronous.java:45)
| at org.jboss.seam.async.TransactionSuccessEvent.afterCompletion(TransactionSuccessEvent.java:24)
| at org.jboss.seam.transaction.SynchronizationRegistry.afterTransactionCompletion(SynchronizationRegistry.java:42)
| at org.jboss.seam.transaction.SeSynchronizations.afterTransactionCommit(SeSynchronizations.java:40)
| at org.jboss.seam.transaction.UTTransaction.commit(UTTransaction.java:57)
| at org.jboss.seam.jsf.SeamPhaseListener.commitOrRollback(SeamPhaseListener.java:582)
| at org.jboss.seam.jsf.SeamPhaseListener.handleTransactionsAfterPhase(SeamPhaseListener.java:325)
| at org.jboss.seam.jsf.SeamPhaseListener.afterServletPhase(SeamPhaseListener.java:226)
| at org.jboss.seam.jsf.SeamPhaseListener.afterPhase(SeamPhaseListener.java:184)
| at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:280)
| at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)
| at javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
| at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)
| at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:85)
| at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
| at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64)
| at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
| at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:44)
| at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
| at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:141)
| at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:281)
| at org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:60)
| at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
| at org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:58)
| at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
| at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
| at com.assistgroup.support.TAGLoggingFilter.doFilter(TAGLoggingFilter.java:57)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
| at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
| at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
| at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
| at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
| at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433)
| at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
| at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
| at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
| at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
| at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
| at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241)
| at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
| at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:580)
| at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
| at java.lang.Thread.run(Thread.java:637)
|
Not quite sure what I am doing, and I'm not sure what I am doing wrong.
Environment:
jBoss AS 4.2.0.GA
SEAM 2.0.0.GA
jBPM 3.2.2?(not sure if this is true - it is whatever is packaged with SEAM at the moment)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4103019#4103019
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4103019
18 years, 7 months
[JNDI/Naming/Network] - JBoss behind a NAT
by flios
Good evening Community !
I'm trying to connect a client application to my JBoss, who is running inside a virtual machine (VMWare). The link between the virtual machine and its host is a NAT. We've got :
* PC_Client : real machine that has the "IP1" ip address in the subnet1 (the real one)
* PC_Server_Host : real machine that has the "IP2" ip address in the subnet1 (the real one), and "IP3" ine the NAT VMWare subnet
* Server_Virtual : virtual machine, Linux RedHat, running into "PC_Server_Host" ; il has "IP4" in the NAT VMWare subnet
I have forwarded the ports 1098, 1099, 4444, 4445, 8080 and 8083 from PC_Server_Host to Server_Virtual.
I've read this article from the wiki : http://wiki.jboss.org/wiki/Wiki.jsp?page=UsingJBossBehindAFirewall
And I tried, as il was suggested to add :
"-Djava.rmi.server.hostname=IP2 -Djava.rmi.server.useLocalHostname=true "
to my JBoss startup script run.sh.
I launch JBoss on Server_Virtual then, and then I launch the client on PC_Client ; the client falls into a "Connection timed out" error.
With wireshark (ethereal), I found that the discussion starts well between the PC_Client and the PC_Server_Host on port 1098, but the client tries then to connect on "IP4", which is not visible to him...
I've been looking on the web, and I found that the option should be "-Djava.rmi.server.useLocalHostname=false" instead of true, but it doesn't change anything to me.
Did I forget something ? I've also read that there may be a problem with the /etc/hosts file from the system where JBoss is running...
Even if the problem seems complicated to explain, I think that it's a very common one, but when I follow the tips, it doesn't work...
Any idea ?
Thanks you (at least to have read my post !!!)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4103011#4103011
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4103011
18 years, 7 months
[JBoss jBPM] - Asynchronous execution within fork throws TransactionRolledb
by mavrides
Hi, I have a rather simple process that uses a fork with 3 branches. If I set the nodes in the fork as asynchronous (async='true') I get a TransactionRolledbackLocalException with a HibernateStaleObjectException. Now, I know that Tom Bayens has mentioned that this doesn't really matter, however, even though the transactions are rolledback, the action handlers modify the database and these changes are persisted in spite of the rollback.
I am using JBoss AS 4.0.5GA with JBPM 3.2.2 EAR (not the suite) with MySQL 5.0.4 . I have tried modifying the transaction isolation as mentioned in the forums, to all possible levels but that didn't solve anything.
Here is part of the stack trace:
| TransactionRolledbackLocalException in method: public abstract java.lang.Object org.jbpm.command.CommandService.execute(org.jbpm.command.Command), causedBy:
| org.jbpm.JbpmException: couldn't execute org.jbpm.ejb.impl.ExecuteJobCommand@1812b51
| at org.jbpm.ejb.impl.CommandServiceBean.execute(CommandServiceBean.java:92)
| at sun.reflect.GeneratedMethodAccessor234.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:597)
| .....
| .....
| Caused by: org.jbpm.graph.def.DelegationException: Row was updated or deleted by another transaction (or unsaved-value mapping was incorrect): [org.jbpm.graph.exe.Token#58]
| at org.jbpm.graph.def.GraphElement.raiseException(GraphElement.java:387)
| 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:597)
| .....
| .....
|
I would like to know whether it is possible to overcome this problem of having asynchronous nodes within a fork because even though it seems trivial I can't find a way around it.
Regards,
Andreas
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4103010#4103010
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4103010
18 years, 7 months