[Beginner's Corner] - Starting hsqldb database manager from the jmx console with jboss 6.0
by Simone Monotti
Simone Monotti [http://community.jboss.org/people/s3lvatico] created the discussion
"Starting hsqldb database manager from the jmx console with jboss 6.0"
To view the discussion, visit: http://community.jboss.org/message/632454#632454
--------------------------------------------------------------
While using a database server login module for authentication in jboss 6, I found it very useful managing principals and roles with the hsqldb database manager gui. This can be invoked via the JMX console. There are no problems at all when the application server resides on the same machine from which I'm using the JMX console.
Now I'm in the situation in which the application server runs on a different machine, say a linux box to which I connect via ssh, +tail -f+ the logs for debugging and stuff, and I develop on a machine with a plain Vista installation.
Of course the JMX console is still accessible, but this time I can't manage to have the hsqldb database manager window showing up.
I installed the classic XMing X server without any special configuration (I'm not very well versed in X servers, so I'm practically using the default settings), and all that I found was the need to set and export the DISPLAY environment variable on the remote machine so that it points to the development machine, as in:
set DISPLAY=192.168.0.5:0
export DISPLAY
I also configured my ssh client (the simple putty) for X11 forwarding to the same ip address the remote DISPLAY variable points to.
Now when I try invoking the database manager from the JMX console, I get this exception trace:
{code:java}
ERROR [org.jboss.jdbc.HypersonicDatabase] (Thread-33) Failed to start database manager: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [:1.6.0_17]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) [:1.6.0_17]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [:1.6.0_17]
at java.lang.reflect.Method.invoke(Method.java:616) [:1.6.0_17]
at org.jboss.jdbc.HypersonicDatabase$1.run(HypersonicDatabase.java:530) [:6.0.0.Final]
Caused by: java.lang.NoClassDefFoundError: Could not initialize class sun.awt.X11GraphicsEnvironment
at java.lang.Class.forName0(Native Method) [:1.6.0_17]
at java.lang.Class.forName(Class.java:186) [:1.6.0_17]
at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:82) [:1.6.0_17]
at java.awt.Window.init(Window.java:385) [:1.6.0_17]
at java.awt.Window.<init>(Window.java:438) [:1.6.0_17]
at java.awt.Frame.<init>(Frame.java:419) [:1.6.0_17]
at javax.swing.JFrame.<init>(JFrame.java:218) [:1.6.0_17]
at org.hsqldb.util.DatabaseManagerSwing.main(Unknown Source) [:6.0.0.Final]
... 5 more
{code}
I'd need some help :-/
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/632454#632454]
Start a new discussion in Beginner's Corner at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
14 years, 5 months
[JBoss Web Services] - Module Dependency problem
by Amos Feng
Amos Feng [http://community.jboss.org/people/zhfeng] created the discussion
"Module Dependency problem"
To view the discussion, visit: http://community.jboss.org/message/632319#632319
--------------------------------------------------------------
I managed to using arquillian to run xts crash recovery tests. I meet the problem with:
> 22:05:53,022 ERROR [stderr] (Thread-66) org.jboss.jbossts.xts.servicetests.test.at.SingleParticipantPrepareAndCommitTest : txbegin failure com.arjuna.wst.SystemException: javax.xml.ws.WebServiceException: Provider com.sun.xml.internal.ws.spi.ProviderImpl not found
It looks like a module dependency issue.
so I added dependency like:
> Dependencies: org.jboss.xts, org.jboss.ws.cxf.jbossws-cxf-client services export
and now the error are:
> 22:26:28,803 ERROR [stderr] (Thread-72) Exception in thread "Thread-72" java.lang.LinkageError: ClassCastException: attempting to castjar:file:/home/zhfeng/tools/jboss-as-7.0.2.Final/modules/javax/xml/ws/api/main/jboss-jaxws-api_2.2_spec-2.0.0.Final.jar!/javax/xml/ws/spi/Provider.classtojar:file:/opt/jdk1.6.0_27/jre/lib/rt.jar!/javax/xml/ws/spi/Provider.class
> 22:26:28,803 ERROR [stderr] (Thread-72) at javax.xml.ws.spi.Provider.provider(Provider.java:94)
> 22:26:28,804 ERROR [stderr] (Thread-72) at javax.xml.ws.Service.<init>(Service.java:56)
> 22:26:28,804 ERROR [stderr] (Thread-72) at org.oasis_open.docs.ws_tx.wscoor._2006._06.ActivationService.<init>(ActivationService.java:46)
> 22:26:28,804 ERROR [stderr] (Thread-72) at com.arjuna.webservices11.wscoor.client.WSCOORClient.getActivationService(WSCOORClient.java:44)
> 22:26:28,805 ERROR [stderr] (Thread-72) at com.arjuna.webservices11.wscoor.client.WSCOORClient.getActivationPort(WSCOORClient.java:65)
> 22:26:28,805 ERROR [stderr] (Thread-72) at com.arjuna.webservices11.wscoor.client.ActivationCoordinatorClient.sendCreateCoordination(ActivationCoordinatorClient.java:82)
> 22:26:28,806 ERROR [stderr] (Thread-72) at com.arjuna.wsc11.ActivationCoordinator.createCoordinationContext(ActivationCoordinator.java:77)
> 22:26:28,806 ERROR [stderr] (Thread-72) at com.arjuna.mwlabs.wst11.at.remote.UserTransactionImple.startTransaction(UserTransactionImple.java:289)
> 22:26:28,807 ERROR [stderr] (Thread-72) at com.arjuna.mwlabs.wst11.at.remote.UserTransactionImple.begin(UserTransactionImple.java:80)
> 22:26:28,807 ERROR [stderr] (Thread-72) at com.arjuna.mwlabs.wst11.at.remote.UserTransactionImple.begin(UserTransactionImple.java:70)
> 22:26:28,807 ERROR [stderr] (Thread-72) at org.jboss.jbossts.xts.servicetests.test.at.SingleParticipantPrepareAndCommitTest.run(SingleParticipantPrepareAndCommitTest.java:68)
> 22:26:28,808 ERROR [stderr] (Thread-72) at org.jboss.jbossts.xts.servicetests.ejb.XTSServiceTestRunnerEJBImpl$1.run(XTSServiceTestRunnerEJBImpl.java:70)
any idea about these error?
Thanks a lot,
Amos
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/632319#632319]
Start a new discussion in JBoss Web Services at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
14 years, 6 months
[jBPM] - Re: ProcessEventListener methods executed twice
by Sebastien Lelarge
Sebastien Lelarge [http://community.jboss.org/people/slelarge] created the discussion
"Re: ProcessEventListener methods executed twice"
To view the discussion, visit: http://community.jboss.org/message/632405#632405
--------------------------------------------------------------
After some further test, I manage to make the solution based on AgendaEventListener work but ONLY WHEN A NEW SESSION is created.
In my application, i query the sessiontable at startup and I load the existing StatefulSession if I find an entry in this table.
If no previous session was created, I created one (see below)
// check if there is an existing session in the DB
// if a session is found, then restore it else create a new one
int existingSessionId = findLastKnowledgeSessionID();
if (existingSessionId != -1) {
ksession = JPAKnowledgeService.loadStatefulKnowledgeSession(existingSessionId, base, kconfig, env);
} else {
ksession = JPAKnowledgeService.newStatefulKnowledgeSession(base, kconfig, env);
}
In case where I load the previous session then the Agenda Event Listener is not triggered...
When I look in the nodeinstancelog table, I can see that the engine enters the Rule node (type = 0) but it hangs.
Any idea ?
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/632405#632405]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
14 years, 6 months
[jBPM] - jBPM5.1 - eclipse BPMN process editor loses imports of script tasks
by Sebastien Lelarge
Sebastien Lelarge [http://community.jboss.org/people/slelarge] created the discussion
"jBPM5.1 - eclipse BPMN process editor loses imports of script tasks"
To view the discussion, visit: http://community.jboss.org/message/614763#614763
--------------------------------------------------------------
Hi all,
I am using the eclipse BPMN process editor v5.1.0.Final (not the new one BPMN visual editor) to design my processes and I have discovered something that is really annoying.
When using script tasks with Java code inside, I use the "imports" button to import external classes and make them available in the code executed from the task. When I save my process definition just after setting imports, they are successfully saved in the generated BPMN file for this process.
The problem is that the imports disappear when I re-open the process definition in editor to update it and then save it. When the process is saved after the update, then the imports are lost.
Is this a known problem for the plugin ? Is there something am I doing wrong in task config ?
How can I solve this problem ?
I am still using this editor because I think the new one is not very useable to configure script & user tasks. Maybe future versions will be easier and intuitive to use.
regards
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/614763#614763]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
14 years, 6 months