Showing posts with label eclipse. Show all posts
Showing posts with label eclipse. Show all posts

2007-08-23

Eclipse 3.2.2 with JBoss Server 4.2.1

Since I want to try the new version of JBoss Server, I downloaded the newest Version of it and unzip it to a folder. Just like usual, I go to the eclipse workbench and select file | new | other | server | next, then I can see 2 entries for JBoss server which are the v3.2.x one and the v4.0.

Chosing the 2nd option I get the error :

Missing classpath entry C:\jboss-4.2.1.GA\server\default\lib\javax.servlet.jar

As far as I know, from the version 4.x of the Jboss Server, it already includes the EJB. So the only reason for that error should due to a not correct server definition.

Internet is a good place to find the answer. Thanks to Wolfgang Knauf, we have some new JBoss server definitions here: http://www.informatik.fh-wiesbaden.de/~knauf/public/

There are two different jars for WTP 1.5 and 2.0.

To use the plugin:
  • JBoss 4.0.x: You MUST have installed the EJB3 RC9 to the default configuration so that the plugin can find all required libraries.
    For JBoss 4.0.4 with installer including EJB3 RC8 this is done automatically.
    For EJB3 RC 9 there is no JBoss AS installer, it must be installed to the default configuration manually. Later you can install EJB3 RC9 to any other configuration, the jars from the default configuration are only needed for starting up application clients and for Eclipse.
  • JBoss 4.2.0: the default configuration must be present so that the plugin can find all required libraries (tested for CR1 to GA)
  • JBoss 5.0.0: the default configuration must be present so that the plugin can find all required libraries (tested for Beta2)
  • Delete previous versions of this plugin if already installed.
  • Download org.eclipse.jst.server.jboss.ejb3_1.5.0.v200706052200.jar
  • Copy the file to the subdirectory "plugins" of your eclipse installation.
  • Restart eclipse once with the "-clean" option: "eclipse -clean".
  • Create a new server runtime. You will find the runtimes in the "JBoss" branch, labeled "JBoss 4.0.4 or 4.0.5 with EJB3 RC8 or RC9", "JBoss 4.2.0" or "JBoss 5.0"
So enjoy it!

2007-08-02

QuantumDB Eclipse Plugin

Today I've tried the famous QuantumDB Eclipse Plugin, It's really a powerful database management tool and supports many different databases.

To install it, open Eclipse and select from the menu "help"->"Software updates"->"Find and Install..."->"Search for new features to install"->"new remote site", then type the update URL: http://quantum.sourceforge.net/update-site, then click next...

Note: Quantum needs the GEF plugin to work, so you have to install it before installing Quantum. That plugin can be installed via an already built-in remote site: "Callisto Discovery Site".

After successful installation, I was really frustrated to figure out that the Quantum comes with only TWO connector:

  1. JDBC to ODBC bridge
  2. MS Access

If we want to use MySQL, we must get the connector jar! Now it's called MySQL Connector / J. Go to that page and download the package.

Tip: you don't need to register or sign in when you click "select a mirror", just find the gray text "No thanks, just take me to the downloads!".

Extract all things in a folder, you can find a file called like mysql-connector-java-5.0.7-bin.jar. You need to do the following to add support of MySQL driver:

  1. Go to eclipse and switch to the view "Quantum DB" by clicking the top right icon near to "Java". Add a new bookmark by right click on the left "database bookmarks" panel.
  2. Now click "Add driver", find "mysql" in the dropdown list "type", then click "add external jar", point to the file mysql-connector-java-5.0.7-bin.jar.
  3. Click the "browse" button for the class name "com.mysql.jdbc.Driver", then go on clicking many "OK" buttons.

So now do the step again and select "mysql" as connector, a dialog will be shown to let you input some infos of the mysql database you want to connect. That is it!

2007-05-02

An internal error occured during: Initializing Java tooling

Since I updated my jBPM plugin for eclipse, I get the error "An internal error occured during: Initializing Java tooling" everytime when I start eclipse. Sometimes it becomes even worse, I cannot commit changes to CVS server or do something else in eclipse.

The reason is that the new version has changed the file structures and didn't provide the coresponding convension tools. So here is endly the solution:

  1. Backup the whole workspace before upgrading;
  2. You can enable or disable a new version jBPM plugin under "help"->"software updates"->"manage configurations";
  3. After the new version is running, create a blank process project, then create a blank process definition;
  4. Close eclipse, find the folder where the new created process files are;
  5. Open gpd.xml and processdefiniton.xml of the new process and your old process in an editor;
  6. Just compare the difference between those files. Mostly the new version of jBPM changes the structure of gpd.xml;
  7. So change the xml structure manually and save them;
  8. Maybe the file .classpath should alse be compared and changed.
  9. Open it in eclipse. If you are lucky, you will never see the error message again.
Hope it helps.