First I would download the latest java JDK. The version of java that comes with ubuntu slows down ALOT when you run eclipse and and app server. I would go with the jar file version of the jdk. I have it extracted to /usr/lib/jvm. Then you should replace the java-gcj sym-link in the /usr/lib/jvm directory.
Code:
sudo ln -s /usr/lib/jvm/jdk1.5.0_09/ ./java-gcj
make sure that the sym link worked
It should now have the latest version that you installed there.
Jboss has an Eclipse based IDE available for free. It comes with all the plug-ins for jboss and works great. Download the jar file version and run it with
Code:
sudo java -jar {{jboss-ide.jar}}
. You can put it where ever you want, but I like it in /usr/local because this is where jboss server is installed by default.
Next get the jboss as from jboss.com. Get the jems-installer version. Run it with
Code:
sudo java -jar jems-installer-1.2.0.GA.jar
If you are going to have this clustered then you need to install the ejb3-clustered version, if not then do the ejb3 version.
Once you have the IDE installed you need to make a new project of the server type. Set this up with the server that you installed (should be at /usr/local).
Next start a new project of the jboss-ide type sub-category of j2ee1.4. Then import the struts-blank.war file into your project. That should bring in all the jars and xml files you need. If you need more help with struts then copy the ear files from the struts installation that you have into the {JBOSS_HOME}/server/default/deploy directory. This will deploy them to your app-server. You can at this point start the jboss server through the ide or from {jboss_home}/bin directory by using or
Code:
sudo java -jar run.jar
. If you are having problems with the permissions with jboss when starting it you can do several things. One is to change the permissions like this from /usr/local
Code:
sudo chmod 777 {jboss_home} -R
THIS IS NOT A GOOD IDEA. You can also make yourself the owner of the directory from /usr/local
Code:
sudo chown {ur_name} {jboss_home} -R
Have fun.
Bookmarks