[JBoss Tools] - How we use jface databinding in Deltacloud Tools
by Andre Dietisheim
Andre Dietisheim [http://community.jboss.org/people/adietish] modified the document:
"How we use jface databinding in Deltacloud Tools"
To view the document, visit: http://community.jboss.org/docs/DOC-15964
--------------------------------------------------------------
h1. Less code
If you use jface databinding to code your swt views in Eclipse you'll get spared from writing listeners and updating code by hand. JFace databinding offers very nice abstractions and automatisms that offer funcitonalities for the vast majority of the tasks where you have to listen for user input and update the view accordingly.
*Premise*
If you implement a complex and highly dynamic UI in Eclipse you'll have to code many many many listener that wait for user actions. Those listeners mostly do nothing spectacular but update widgets and models in reaction to the user inputs. You end up with a lot of repetitive boilerplate code. UI frameworks in the non-java land (ex. http://qt.nokia.com/products/ Trolltechs QT) already have approaches that are far more elegant and slick than what we knew for Swing and SWT.
By luck Eclipse has progressed in this area (since 2005!) and offers neat abstractions that help a lot in this area and lead to far more concise and a less verbose implementations: Jface Databinding!
h1. Solution
h1. Conclusion
--------------------------------------------------------------
Comment by going to Community
[http://community.jboss.org/docs/DOC-15964]
Create a new document in JBoss Tools at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=102&co...]
14 years, 1 month
[jBPM] - Group activity does not appear in jBPM GPD
by Adel Haider
Adel Haider [http://community.jboss.org/people/delinhos] created the discussion
"Group activity does not appear in jBPM GPD"
To view the discussion, visit: http://community.jboss.org/message/566727#566727
--------------------------------------------------------------
*=== Environment ==============================*
- *jBPM Version*: 4.4
- *Database*: inbuilt hsqldb
- *JDK*: 1.6
- *Container*: jBoss
- *Configuration*: jbpm.cfg.xml only importing files from the jbpm.jar lib itself
- *Libraries*: using the exact versions of the libs from inside the jbpm distribution
*=== Process ==================================*
<process name="GroupSimple" xmlns=" http://jbpm.org/4.4/jpdl http://jbpm.org/4.4/jpdl">
<start g="107,163,80,40">
</start>
<group name="evaluate document">
<start>
<transition to="distribute document" />
</start>
<state name="distribute document">
<transition to="collect feedback" />
</state>
<state name="collect feedback">
<transition name="approved" to="done" />
<transition name="rejected" to="update document" />
</state>
<state name="update document">
<transition to="distribute document" />
</state>
<end name="done" />
<transition to="publish document" />
</group>
<state g="552,174,186,40" name="publish document" />
</process>
*=== API ===================================*
Eclipse IDE version 3.5.2
*=== Stacktrace ==============================*
N/A
*=== Debug logs ==============================*
N/A
*=== Problem description =========================*
I've been going through the example processes provided in the developer guide ( http://docs.jboss.com/jbpm/v4/devguide/html_single/#group http://docs.jboss.com/jbpm/v4/devguide/html_single/#group) and encountered a problem in the GPD. When using a group activity in a process the graphical designer doesn't show the group activity in the process flow (see attached print-screen). This is a problem since my intention is to use the image produced by the graphical designer in documentation.
I have been through the jBPM wiki, user forums, etc. but nothing seems to address this issue in any way. Is there a reason for this to occur? Is there any work-around?
Kind Regards,
Adel Haider
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/566727#566727]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
14 years, 1 month
[JBoss Tools] - Could not open the editor: An exception was thrown during initialization
by Hans Stoll
Hans Stoll [http://community.jboss.org/people/hammerhai] created the discussion
"Could not open the editor: An exception was thrown during initialization"
To view the discussion, visit: http://community.jboss.org/message/566679#566679
--------------------------------------------------------------
Hello,
since yesterday I got exceptions when I try to open XML or XHTML files in JBoos tools editor.
I tried Eclipse 3.4.2 with JBossAS Tools Version: 2.0.2.v200910211631N-H194-GA
as well as Eclipse 3.6.1. with
JBossAS Tools
JBossAS Tools Version: 2.2.0.v20100908-1606-H23-M2
Version: 2.2.0.v20100908-1606-H23-M2
and JBoss Tools RichFaces for Eclipse Version: 3.2.0.v20100908-1606-H23-M2
but all I got is
java.lang.NullPointerException
at org.jboss.tools.common.model.project.ProjectHome.getLocationFrom_strutsstudio_File(ProjectHome.java:61)
at org.jboss.tools.common.model.project.ProjectHome.getLocation(ProjectHome.java:52)
at org.jboss.tools.common.model.project.ProjectHome.getLocation(ProjectHome.java:38)
at org.jboss.tools.common.model.project.ModelNature.checkModelNature(ModelNature.java:220)
at org.jboss.tools.common.model.util.EclipseResourceUtil.getModelNature(EclipseResourceUtil.java:217)
at org.jboss.tools.common.model.util.EclipseResourceUtil.getObjectByResource(EclipseResourceUtil.java:93)
at org.jboss.tools.common.core.resources.XModelObjectEditorInput.convertFileInput(XModelObjectEditorInput.java:197)
at org.jboss.tools.common.core.resources.XModelObjectEditorInput.checkInput(XModelObjectEditorInput.java:174)
at org.jboss.tools.common.model.ui.editor.EditorPartWrapper.init(EditorPartWrapper.java:87)
at org.eclipse.ui.internal.EditorManager.createSite(EditorManager.java:799)
at org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:643)
at org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:428)
at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:594)
at org.eclipse.ui.internal.PartPane.setVisible(PartPane.java:306)
at org.eclipse.ui.internal.presentations.PresentablePart.setVisible(PresentablePart.java:180)
at org.eclipse.ui.internal.presentations.util.PresentablePartFolder.select(PresentablePartFolder.java:270)
at org.eclipse.ui.internal.presentations.util.LeftToRightTabOrder.select(LeftToRightTabOrder.java:65)
at org.eclipse.ui.internal.presentations.util.TabbedStackPresentation.selectPart(TabbedStackPresentation.java:473)
at org.eclipse.ui.internal.PartStack.refreshPresentationSelection(PartStack.java:1256)
at org.eclipse.ui.internal.PartStack.setSelection(PartStack.java:1209)
at org.eclipse.ui.internal.PartStack.showPart(PartStack.java:1608)
at org.eclipse.ui.internal.PartStack.add(PartStack.java:499)
at org.eclipse.ui.internal.EditorStack.add(EditorStack.java:103)
at org.eclipse.ui.internal.PartStack.add(PartStack.java:485)
at org.eclipse.ui.internal.EditorStack.add(EditorStack.java:112)
at org.eclipse.ui.internal.EditorSashContainer.addEditor(EditorSashContainer.java:63)
at org.eclipse.ui.internal.EditorAreaHelper.addToLayout(EditorAreaHelper.java:217)
at org.eclipse.ui.internal.EditorAreaHelper.addEditor(EditorAreaHelper.java:207)
at org.eclipse.ui.internal.EditorManager.createEditorTab(EditorManager.java:779)
at org.eclipse.ui.internal.EditorManager.openEditorFromDescriptor(EditorManager.java:678)
at org.eclipse.ui.internal.EditorManager.openEditor(EditorManager.java:639)
at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(WorkbenchPage.java:2817)
at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:2729)
at org.eclipse.ui.internal.WorkbenchPage.access$11(WorkbenchPage.java:2721)
at org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.java:2673)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2668)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2652)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2643)
at org.eclipse.ui.ide.IDE.openEditor(IDE.java:646)
at org.eclipse.ui.ide.IDE.openEditor(IDE.java:605)
at org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInEditor(EditorUtility.java:318)
at org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInEditor(EditorUtility.java:160)
at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:228)
at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:207)
at org.eclipse.jdt.ui.actions.SelectionDispatchAction.dispatchRun(SelectionDispatchAction.java:274)
at org.eclipse.jdt.ui.actions.SelectionDispatchAction.run(SelectionDispatchAction.java:250)
at org.eclipse.jdt.internal.ui.packageview.PackageExplorerActionGroup.handleOpen(PackageExplorerActionGroup.java:363)
at org.eclipse.jdt.internal.ui.packageview.PackageExplorerPart$5.open(PackageExplorerPart.java:603)
at org.eclipse.jface.viewers.StructuredViewer$2.run(StructuredViewer.java:820)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
at org.eclipse.core.runtime.Platform.run(Platform.java:880)
at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:48)
at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:175)
at org.eclipse.jface.viewers.StructuredViewer.fireOpen(StructuredViewer.java:818)
at org.eclipse.jface.viewers.StructuredViewer.handleOpen(StructuredViewer.java:1079)
at org.eclipse.jface.viewers.StructuredViewer$6.handleOpen(StructuredViewer.java:1183)
at org.eclipse.jface.util.OpenStrategy.fireOpenEvent(OpenStrategy.java:263)
at org.eclipse.jface.util.OpenStrategy.access$2(OpenStrategy.java:257)
at org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrategy.java:297)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3823)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3422)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2384)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2348)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2200)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:495)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:288)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:490)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:113)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:193)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:386)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
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)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:549)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
at org.eclipse.equinox.launcher.Main.run(Main.java:1236)
Any idea what's going wrong here?
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/566679#566679]
Start a new discussion in JBoss Tools at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
14 years, 1 month
[JBoss Tools] - JBoss/Red Hat at Eclipse Summit 2010
by Max Andersen
Max Andersen [http://community.jboss.org/people/max.andersen%40jboss.com] created the blog post:
"JBoss/Red Hat at Eclipse Summit 2010"
To view the blog post, visit: http://community.jboss.org/community/jbosstools/blog/2010/10/15/jbossred-...
--------------------------------------------------------------
I'm looking forward to attend for my first time Eclipse Summit 2010 where as I until now only been at EclipseCon's.
http://www.eclipsesummit.org/ http://www.eclipsecon.org/summiteurope2010/static/image/friends/100x100_g...
I (luckily?) won't be speaking at the conference, but Chris Aniszczyk and Nick Boldt will:
Tuesday at 14:00, Nick is having a 4-hour symposium together with Henrik Lindberg (Cloudsmith) on the topic of http://www.eclipsecon.org/summiteurope2010/sessions/?page=sessions&id=1924 "What's in a Build? Best Practices and Requirements". The intent of this is to work out best practices for how to mange the process of developer, nightly, milestone and release builds for Eclipse projects. Something that we have spent alot of time on in the JBoss Tools project but still know can be improved - looking forward to see if what others have done in projects of our scale/size.
Wednesday at 10:30, Chris is doing his http://www.eclipsecon.org/summiteurope2010/sessions/?page=sessions&id=1658 "Using Git in Eclipse" together with Matthias Sohn (SAP) showing of the wonders of Git and the EGit tooling for it.
Thursday at 10:30, Nick Boldt is participating together with Henrik Lindberg (Cloudsmith), Jason Van Zyl (Sonatype), Oisin Hurley and Thomas Hallgren (Cloudsmith) in http://www.eclipsecon.org/summiteurope2010/sessions/?page=sessions&id=1869 "Build Systems Exposed: Strengths & Weaknesses of Build Technologies at Eclipse" . This talk will compare the various build systems in use at Eclipse - will we finally reach some concensus ? :)
http://rlv.zcache.com/jboss_tools_dark_jacket_v3_embroidered_shirt-p23107... http://rlv.zcache.com/jboss_tools_dark_jacket_v3_embroidered_shirt-p23107...
I'm looking forward to meet old and new Eclipse friends - if you want to find me, look for someone with a JBoss Tools jacket!
See you there!
--------------------------------------------------------------
Comment by going to Community
[http://community.jboss.org/community/jbosstools/blog/2010/10/15/jbossred-...]
14 years, 1 month
[JBoss Tools] - How we use jface databinding in Deltacloud Tools
by Andre Dietisheim
Andre Dietisheim [http://community.jboss.org/people/adietish] modified the document:
"How we use jface databinding in Deltacloud Tools"
To view the document, visit: http://community.jboss.org/docs/DOC-15964
--------------------------------------------------------------
h1. Less code
If you use jface databinding to code your swt views in Eclipse you'll get spared from writing listeners and updating code by hand. JFace databinding offers very nice abstractions and automatisms that offer funcitonalities for the vast majority of the tasks where you have to listen for user input and update the view accordingly.
*Premise*
If you implement a complex and highly dynamic UI in Eclipse you'll have to code many many many listener that wait for user actions. Those listeners mostly do nothing spectacular but update widgets and models in reaction to the user inputs. You end up with a lot of repetitive boilerplate code. UI frameworks in the non-java land (ex. http://qt.nokia.com/products/ Trolltechs QT) already have approaches that are far more elegant and slick than what we knew for Swing and SWT.
By luck Eclipse has progressed in this area (since 2005!) and offers neat abstractions that help a lot in this area and lead to far more concise and a less verbose implementations: Jface Databinding!
h1. Solution
h1. Conclusion
--------------------------------------------------------------
Comment by going to Community
[http://community.jboss.org/docs/DOC-15964]
Create a new document in JBoss Tools at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=102&co...]
14 years, 1 month
[JBoss Tools] - Seam runtime does not exist error but... it exists
by Tanya Ruttenberg
Tanya Ruttenberg [http://community.jboss.org/people/daxxy] created the discussion
"Seam runtime does not exist error but... it exists"
To view the discussion, visit: http://community.jboss.org/message/566552#566552
--------------------------------------------------------------
I had to rebuild my workspace, JBDS environment and I did it with the latest version of JBDS 3.0.1 GA. I had a lot of "Problems" and resolved all but one that I can't figure out.
I have a seam project with 3 parts, assettag, assettag-ear, assettag-ejb. I am getting this error on the assettag project:
Seam Runtime "seam" specified for Seam project "assettag" does not exist.
It is a bold-faced LIE! :-)
The "seam" runtime does exist for Seam project "assettag". I've recreated that runtime, added another runtime, restarted, deleted, re-added, etc. and this error will not go away no matter what I do. I believe it is related to some other Property on this project or one of the related projects. Just to prove it I'm attaching a screen shot of the Seam Settings.
What else might influence this project so that it would produce this error?
TDR
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/566552#566552]
Start a new discussion in JBoss Tools at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
14 years, 1 month
[JBoss Tools] - Simple Seam app configured for Tomcat
by Philippe Leménager
Philippe Leménager [http://community.jboss.org/people/cinephil] created the discussion
"Simple Seam app configured for Tomcat"
To view the discussion, visit: http://community.jboss.org/message/564739#564739
--------------------------------------------------------------
Hello Seamians ! :)
I've been trying to config a simple seam test project for Tomcat 6 using JBoss Tools but it still doesn't work after reading many things about it on the Internet and trying the solutions proposed. :(
1) New Seam Web Project
1.a) Seam web project window
Project name : projettest
Target runtime : Apache Tomcat v6.0
Dynamic web module version : 2.5 (default choice)
Target Server : Tomcat v6.0 Server at localhost
Configuration : Dynamic Web Project with Seam 2.2 (default choice)
NEXT
1.b) Java
NEXT
1.c) Web Module
NEXT
1.d) JSF Capabilities
After some unsuccessfull tries, I've created a user-library with jsf-api.jar and jsf-impl.jar taken in jboss-seam-2.2.0.GA/lib directory and selected this new library + "Include libraries with this application". I lived the other things by default.
NEXT
1.d) Seam Facet
Seam Runtime : jboss-seam-2.2.0.GA
Deploy as : WAR
Database type : MySQL5 (InnoDB)
Connection profile MysQL Test (configured and tested)
Database Schema Name : Test
Database Catalog Name : Test
DB Tables already exists in database : selected (the database contains only one simple table called users (usr_id, username, name, password) with two lines inside).
I leaved the other options as default.
FINISH
=> The project has been created without errors.
2) Changing some things, after reading issues about this operation.
2.a) projettest/WebContent/META-INF/context.xml
2.b) projettest/WebContent/WEB-INF/classes/META-INF/persistence.xml
2.c) projettest/WebContent/WEB-INF/components.xml
I've deleted all params in tag <core:init />
2.d) projettest/WebContent/WEB-INF/pages.xml
I've commented the last tag <exception>, this one :
<!-- <exception>
<redirect view-id="/error.xhtml">
<message severity="error">Unexpected error, please try again</message>
</redirect>
</exception> -->
2.e) Added jars
I copied from jboss-seam-2.2.0.GA/lib those jars :
- commons-collections.jar
- commons-lang.jar
- commons-logging.jar
- concurrent.jar
- dom4j.jar
- hibernate-annotations.jar
- hibernate-common-annotations.jar
- hibernate-core.jar
- hibernate-entitymanager.jar
- hibernate-search.jar
- hibernate-validator.jar
- javassist.jar
- jboss-common-core.jar
- jta.jar
- log4j.jar
- lucene-core.jar
- persistence-api.jar
- slf4j-api.jar
- slf4j-log4j12.jar
2.f) log4j.xml
I've copied the file log4j.xml from jboss-seam-jpa example project to projettest/WebContent/WEB-INF/classes.
3) Starting Tomcat and trying to access to the project
There is no error when I start Tomcat, just this info message :
org.apache.catalina.core.StandardContext addApplicationListener
INFO: The listener "com.sun.faces.config.ConfigureListener" is already configured for this context. The duplicate definition has been ignored.
I also have this WARN :
WARN [PersistentPermissionResolver] no permission store available - please install a PermissionStore with the name 'org.jboss.seam.security.jpaPermissionStore' if persistent permissions are required.
When I type http://localhost:8080/projettest http://localhost:8080/projettest in Firefox, I already have the "Welcome to Seam!" page with the url http://localhost:8080/projettest/home.seam http://localhost:8080/projettest/home.seam but some errors appears in Tomcat console :
12:22:09,217 ERROR [SeamPhaseListener] swallowing exception
java.lang.RuntimeException: exception invoking: getTransaction
at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:154)
...
Caused by: javax.naming.NamingException: Cannot create resource instance
at org.apache.naming.factory.TransactionFactory.getObjectInstance(TransactionFactory.java:113)
...
12:22:09,310 WARN [SeamPhaseListener] uncaught exception, passing to exception handler
java.lang.IllegalStateException: Could not commit transaction
at org.jboss.seam.jsf.SeamPhaseListener.commitOrRollback(SeamPhaseListener.java:625)
...
Caused by: java.lang.RuntimeException: exception invoking: getTransaction
at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:154)
...
Caused by: javax.naming.NamingException: Cannot create resource instance
at org.apache.naming.factory.TransactionFactory.getObjectInstance(TransactionFactory.java:113)
...
Many times the same errors.
4) Generate entities
4.1) New Seam Generate Entities
Reverse engineer from database is selected
NEXT
4.2) Select Tables
I had to click on the Refresh button because no database had appeared. Then I selected Test database and clicked on the Include button.
FINISH
=> Some more files have been generated successfully.
5) Trying to browse data
After reloading the home page, a "Browse Data / Users List" menu appears. When I click on it, I already have the UsersList.seam page with some more ERROR [SeamPhaseListener] swallowing exception in Tomcat Console.
If I click on the Search button, with ou without something in the fields of the page, the application crashes with these errors :
org.apache.catalina.core.StandardWrapperValve invoke
GRAVE: "Servlet.service()" pour la servlet Faces Servlet a généré une exception
javax.el.PropertyNotFoundException: /UsersList.xhtml @19,81 value="#{usersList.users.username}": Target Unreachable, identifier 'usersList' resolved to null
at com.sun.facelets.el.TagValueExpression.getType(TagValueExpression.java:62)
...
I've searched on the Internet but didn't find clear explanation and solution.
Someone here can help me ?
Thanks in advance.
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/564739#564739]
Start a new discussion in JBoss Tools at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
14 years, 1 month