[JBoss Tools] - JBosstoolsVisualEditorFAQ
by Yahor Radtsevich
Yahor Radtsevich [https://community.jboss.org/people/yradtsevich] modified the document:
"JBosstoolsVisualEditorFAQ"
To view the document, visit: https://community.jboss.org/docs/DOC-10862
--------------------------------------------------------------
*Q: Which platforms are supported by* *Visual Editor?*
*A:* The list of supported platforms (and their IDs):
* Windows with Java 32-bit (win32.win32.x86)
* Windows with Java 64-bit (win32.win32.x86_64) - Experimental support is available in JBoss Tools 4.1.0.Beta1 and JBoss Developer Studio 7.0.0.Beta1.
To enable it, you need to install XULRunner from this update site: http://download.jboss.org/jbosstools/builds/staging/xulrunner-1.9.2_win64... http://download.jboss.org/jbosstools/builds/staging/xulrunner-1.9.2_win64....
Please comment https://issues.jboss.org/browse/JBIDE-2720 this JIRA if something went wrong.
* Linux x86 (gtk.linux.x86)
* Linux x86-64 (gtk.linux.x86_64)
* Mac OS X Cocoa with Java 32-bit (cocoa.macosx.x86)
* Mac OS X Carbon with Java 32-bit (carbon.macosx.x86) [not supported by JBoss Tools 3.3.0 and later, JBDS 5.0 and later]
In brief, Java 64-bit is supported on Linux only, on all other systems Visual Editor requires Java 32-bit.
*Q: Eclipse crashes when I use Visual Editor, what can I do?*
*A:* This may happen in JBoss Tools 3.3.0.M2 and above with Eclipse 3.7.0 due to https://issues.jboss.org/browse/JBIDE-9144 the WebKit and XULRunner conflict. You can disable Visual Editor by adding the option –Dorg.jboss.tools.vpe.loadxulrunner=false to the eclipse.ini (or jbdevstudio.ini if you use JBoss Developer Studio).
*Q: Visual Editor does not start under Linux*
*A:* Linux users may need to do the following to get the visual editor to work correctly on their machines.
* The Visual Page Editor (before JBoss Tools 3.1.0.M4) requires the library libstdc++.so.5. This library is contained in the compat-libstdc++-33.i386 package.
* To install this package on Fedora Core or Red Hat Enterprise Linux run the following command:
yum install compat-libstdc++-33.i386
** On any other rpm based distributions download libstdc++.so.5 and run the following command:
rpm -Uvh compat-libstdc++-33.i386
** On Debian and Debian based distributions (e.g. Ubuntu) run the following command:
apt-get install libstdc++5
* In case you have the library installed and you still have issue with starting the visual page editor then close all browser views/editors and leave one visual page editor open and restart eclipse. This should force a load of the right XULRunner viewer.
*Q: Visual Editor doesn't start at any platform and shows message 'The VPE editor can't be run because your system environment needs to be changed slightly'*
*A:* Check if you version of JBoss Developer Studio/JBoss Tools is compatible with you version of Eclipse, see the compatibility matrix https://community.jboss.org/docs/DOC-14297 http://www.jboss.org/community/wiki/Matrixofsupportedplatformsruntimesand...
*Q: Visual Editor starts OK, but the following message dialog appears:*
https://community.jboss.org/servlet/JiveServlet/showImage/102-10862-49-19... https://community.jboss.org/servlet/JiveServlet/downloadImage/102-10862-4...
*A:* Some functionality of Visual Editor may not work if a project doesn't have org.jboss.tools.jsf.jsfnature or org.jboss.tools.jst.web.kb.kbnature in .project configuration. To fix this problem and turn off the message box execute next steps:
* Right mouse button click on a project in Package Explorer.
* Select +Configure -> Add JSF Capabilities+ from the context menu.
* Configure your project using +Add JSF Capabilities+ wizard and press Finish.
*P.S.* If you are sure that your project does not need JSF capabilities, just disable this message box by checking "+Do not show this dialog again!+" checkbox.
*Q: Visual Part doesn't start and "XPCOM error -2147467259" is shown*
*A:* Something bad happened with buildin xulrunner. To check it you should:
* Go to Eclipse -> Help -> About -> Installation Details... -> Configuration
* find +org.eclipse.swt.browser.XULRunnerPath+ and open this path in terminal
* try xulrunner.exe -version or ./xulrunner -version and it should show what is needed for XR to work
--------------------------------------------------------------
Comment by going to Community
[https://community.jboss.org/docs/DOC-10862]
Create a new document in JBoss Tools at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=102&c...]
12 years, 10 months
[jBPM] - Re: Example of simple process of executing a service task in JBPM Console.
by Sumeru Saha
Sumeru Saha [https://community.jboss.org/people/sumerus] created the discussion
"Re: Example of simple process of executing a service task in JBPM Console."
To view the discussion, visit: https://community.jboss.org/message/818341#818341
--------------------------------------------------------------
Hi David,
Was your problem resolved? I'm doing things similar to what you were doing ... i wanted to create a Domain Specific service task called "CallaJava" for that i wrote the below workietm definition (WID)
[
"name" : "CallJava",
"parameters" : [
"Interface" : new StringDataType(),
"Operation" : new StringDataType(),
"ParameterType" : new StringDataType(),
"Parameter" : new ObjectDataType("com.sample.service.Student")
],
"results" : [
"Result" : new ObjectDataType("java.util.Map")
],
"displayName" : "CallJava",
"icon" : " http://localhost:8080/drools-guvnor/rest/packages/defaultPackage/assets/j... http://localhost:8080/drools-guvnor/rest/packages/defaultPackage/assets/j..." ,
"defaultHandler" : "com.sample.service.ExtendedServiceTaskHandler"
]
I've put the jar containing my custom WorkItemHandler, a class called "com.sample.service.ExtendedServiceTaskHandler" witin *jbpm-gwt-console-server.war/WEB-INF/lib*
I've added an entry in the *jbpm-gwt-console-server.war/WEB-INF/classes/META-INF/CustomWorkItemHandlers.conf* (like below)
[
"Log": new org.jbpm.process.instance.impl.demo.SystemOutWorkItemHandler(),
"CallJava": new com.sample.service.ExtendedServiceTaskHandler(ksession),
]
Now i can get this handler invoked with parameters that i mentioned in the WID, i can have any java code invoked from within the handler, BUT my problem is that i can't pass any variables from the process flow (defined in the BPMN process in designer) into this handler - i can only pass literal values (of primitive types like String, int etc.). Have you been able to do that?
Thanks
Sumeru
---
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/818341#818341]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 10 months
[Datasource Configuration] - java.sql.SQLException: [Microsoft][ODBC Microsoft Access Driver] Could not find file
by m p
m p [https://community.jboss.org/people/mp_108] created the discussion
"java.sql.SQLException: [Microsoft][ODBC Microsoft Access Driver] Could not find file"
To view the discussion, visit: https://community.jboss.org/message/820693#820693
--------------------------------------------------------------
Background:
I am developing in Eclipse and using Struts 2 framework to build and deploy .war file to http://www.coderanch.com/forums/f-63/JBoss JBoss. 4.2.3GA
There is an action class that I am using to insert a user into a database table - pretty simple stuff http://cache-www.coderanch.com/images/smilies/3b63d1616c5dfcf29f8a7a031aa... http://cache-www.coderanch.com/images/smilies/3b63d1616c5dfcf29f8a7a031aa...
I get the following exception for executeUpdate() method.
DEBUG com.opensymphony.xwork2.DefaultActionInvocation.debug:68 - Executing action method = execute
[STDOUT] >>>>>>>>>>insert into catNav.USERS values('mm', 'pp', 88, 'mm.pp(a)yahoo.com (mailto:'mm.pp(a)yahoo.com)');
[STDOUT] java.sql.SQLException (http://docs.oracle.com/javase/7/docs/api/java/sql/SQLException.html): [Microsoft][ODBC Microsoft Access Driver] Could not find file *'C:\java\jboss-4.2.3.GA\bin\catNav.mdb'*.
*I am provide the full path to the database .mdb file but the exception is referring to file in jboss folder, which is does no exist. I am struggling to find a solution to resolve this. * The path, using either \\ or / file separators is validated as an exception occurs if invalid path is defined.
The code is below; I have the same code in a standalone Java program that executes successfully (I verify row was added) .... *but fails when running on JBoss* :(
public String execute() throws Exception {
//call Service class to store personBean's state in database
final String dbName = "catNav";
Connection con = null; // The connection to the database.
Statement stmt = null;
// The following code can throw errors, so they must be caught.
try{
// First, tell Java what driver to use and where to find it.
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
// Next, create a connection to your data source.
// Specify that you are using the ODBC-JDBC Bridge.
// And specify the data source name from ODBC.
String database =
"jdbc:odbc:Driver={Microsoft Access Driver (*.mdb)};DBQ=C:/Users/mp/Documents/Work/JDBC/catNav.mdb;";
con = DriverManager.getConnection(database, "", "");
/* also tried:
con = DriverManager.getConnection("jdbc:odbc:catNavDB");
*/
// Create an SQL statement.
stmt = con.createStatement();
// Execute some SQL to create a table in your database.
// If the table already exists, an exception is thrown!
String sqlSt = "insert into " + dbName +
".USERS " +
"values('" + personBean.getFirstName() + "', " + // FIRST_NAME
"'" + personBean.getLastName() + "', " + // LAST_NAME
personBean.getAge() + ", " + // AGE
"'" + personBean.getEmail() + "'); " ; // EMAIL
// display SQL statment
System.out.println (">>>>>>>>>>" + sqlSt );
stmt.executeUpdate( sqlSt);
}
// Catch any exceptions that are thrown.
etc.
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/820693#820693]
Start a new discussion in Datasource Configuration at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 10 months