Remove a workspace in Eclipse

The following will remove it from the dropdown list when your startup Eclipse. Eclipse is not very happy if it thinks there's supposed to be a workspace but it's not there.

Window,Preferences,General,"Startup and Shutdown",Workspaces

From there you can delete a workspace you are no longer using, and then delete if from your drive

Installing Maven Inside Eclipse (Subversion Eclipse Plug-in)

Initial install of plug-in

1. Create a Maven Workspace "/home/jboss1/workspace-your-space"
2. File, New, Other, "Checkout Maven Projects from SCM"
3. Next
4: Click on "Find more SCM connectors in the m2e" link (Maven to Eclipse)
5. Check "m2e-subclipse"
6. Finish
7. Next
8. Next
9. Next
10. Accept terms and conditions, and "Finish"
11. Click "OK" for "Security Warning" wait for "Installing Software"
12. Allow "Eclipse" to restart

Subsequent Installation of Projects

1. File, New, Other
2. File, New, Other, "Checkout Maven Projects from SCM"
3. Next
4. Choose "SVN" in the SCM URL, left-most drop-down

5. Copy the URL from SVN and remove the trailing slash, such as:
http://halsvn01/svn/hal/branches/RC/yy.ww-RC
Default values: Checkout Head Revision, and Checkout All Projects

6. Next
7. Use default Workspace location, Finish
8. Wait about a minute for it to import and build

Debug on Server

1. Right-click on hal-ear, "Run As", "Debug on Server"
2. Next, Finish

If you have problems debugging because of a gateway timeout error then make sure of the following:
/etc/httpd/conf/workers.properties
set worker.template.reply_timeout=0 (instead of 30000)

Removing errror in JSP's

1. Right-click hal-parent and choose "Import..."
2. General,"File System"
3. Click Next
4. From directory: /home/jboss1/programs/jboss-eap-5.1/jboss-as/server/standard/deploy/jbossweb.sar
5. Click besides jstl.jar and standard.jar to activate the check boxes
6. Into: hal-parent
7. Click "Finish"
8. Right-click hal-web, "Build Path", "Configure Build Path"
9. Click on "Java Build Path"
10. Click Libraries tab
11. Click "Add Jar", click on your hal-parent project, and filter to jstl.jar, press OK

Reference: http://stackoverflow.com/questions/1265309/eclipse-cannot-find-the-tag-library-descriptor

Change your JRE to 1.6 compliance instead of 1.5

1. hal-ejb, Project, Properties, Java Compiler, use "JavaSE-1.6"
2. In your Markers tab there is an error "Java compiler does not match the version of the installed java project facet", right-click, quick fix, Change to Java 1.6, and click Finish

If you encounter an error during build

** This needs further investigation **
1. You may encounter a "Building workspace" error, as such you will need to disable the JavaScript Validator
2. Click OK twice, if error encountered
3. Go to Workbench, Windows, Preferences, Javascript, Validator, Errors/Warning
4. Uncheck the "Enable JavaScript semantic validation"
5. Apply, "Accept Full Build", and OK
6. Right-click on hal-web project, properties
7. Builders, uncheck JavaScript Validator
8. Continue, through side-effect warning
9. OK

Install new version of Eclipse

Still a work in progress but here are the results so far:

The Maven project with our base JBoss install has lots-o-errors, and seems to run slowly.  I’ve installed the newest version of Eclipse.  It still shows many JSP errors but some of them are worth fixing and it seems like it cannot find tag library through our proxy perhaps.  It also seems to run a bit snappier and it does not have that JSF problem that occurs when viewing JSP pages.

Still probably will need to install a few more times, here’s what’s been tried so far.

Eclipse Version
eclipse-jee-indigo-SR2-linux-gtk-x86_64.tar.gz

For Maven Integration with Eclipse
http://download.eclipse.org/technology/m2e/releases/

Subclipse
http://subclipse.tigris.org/update_1.6.x (works)
http://subclipse.tigris.org/update_1.8.x (failed)

From: Fillman, Eric (HAL)
Sent: Sunday, June 16, 2013 9:27 PM
To: Klein, Brian (HAL)
Cc: Ruckman, Maurice (HAL)
Subject: I think I got Eclipse working on the Linux VM

Can you try this on your machine and see if it fixes the problem?

On your Linux VM, go in to where your main eclipse directory is located.

On my VM, it’s in /home/jboss1/programs/eclipse.

Within this directory, there should be a file called eclipse.ini.  It contains a bunch of arguments and parameters that get passed to Eclipse when it starts.

Make a copy of eclipse.ini, and call it eclipse.ini.bak or something like that.

Open eclipse.ini in text editor, and add the following to the bottom of the list of arguments.

-Dorg.eclipse.swt.browser.XULRunnerPath=/home/jboss1/programs/jbdevstudio/studio/plugins/org.mozilla.xulrunner.gtk.linux.x86_64_1.9.1.2a/xulrunner

-Dorg.eclipse.swt.browser.UseWebKitGTK=false

What this does is tells Eclipse to use XULRunner that is part of the JBoss Dev Studio rather than the XULRunner that was patched on Wednesday.  Eclipse needs to run with XULRunner 1.9.2 or earlier.  The patch on Wednesday upgraded the version used by Firefox to version 17 or something like that, and that’s what Eclipse is trying to use.  It don’t work.

JBoss Dev Studio works because it’s using that 1.9.1.2a version of XULRunner.

Save the changes to eclipse.ini, and try to start Eclipse.

Let me know how it goes.

Thanks.

Eric

 

How to Install Eclipse and Create Projects

Pre-steps

Setup HAL Formatting
Turn off Project, Build Automatically

Start Project Setup via Repository

Open a Perspective "SVN Repository Explorer"

Right-click blank window, New, Respository Location
http://halsvn01/svn/hal

Go into preferences, search for Workspace and have it "Prompt for workspace on startup"
NOTE: When machines are currently imaged, the wrong default workspace is set

Right-click SVN Repositories
branchesfeaturesjboss-migration (current release candidate or the like)

and click "Checkout"
Use the wizard, "Check out as a project configured using the New Project Wizard", "Check out HEAD revision", "Allow unversioned obstructions" (defaults)
Click "Finish"

Wizards: Java Project, Next
Project Name: HAL, "Use default location" /home/jboss1/workspace/HAL, "Create separate folders for sources and class files"
Use an execution environment JRE: JavaSE-1.6
Click "Finish"

Click "OK" for Java Perspective
Click "OK" for confirm overwrite process

Right Click the project branch HAL, Build Path, Configure Build Path...
Source, Remove "HAL/src"
"Add Folder", Click "OK"
Check "HAL" and Click "OK"

Included: (All), Edit
"Add Multiple" "com" (com/)
Click "OK"
Click "Finish"

Click "OK"

Setup JBoss Server for Runtime and Debugging

File, New, Other, Server

Server, Next "jBoss AS 5.1"

server's host name "haldevjbs04.hq.halw.com"

Next

Name: JBoss Runtime

Home Directory: /home/jboss1/programs/jboss-eap-5.1/jboss-as

JRE: java-1.6.0-sun-1.6.0.31.x86_64

Directory: sever
and then highlight: "haldev-vm-template"

Then click "Finish"

Configure JBoss Server for Performance

Windows, Show View, Servers

Now you have a tab down in the lower window section

Double-click the "JBoss 5.1 Runtime Server [Stopped]" icon to open setup

"Open Launch Configuration" link

VM arguments: (need updated)

-Xmx768m -> -Xmx1024m

Scroll to the bottom, and add (preceed with a space)
-Djboss.jvmroute=haldevjbs04.hq.halw.com

Then click "OK" to finish the server configuration.

Complete Project Setup by Adding Jar Files

Right-click your project, in the Package Explorer

Configure build path, "Add Library" "Server Runtime", Next, "JBoss 5.1 Runtime"
Finish, and OK

Add Jars "Java Build Path", "Libraries", "Add JARs"
choose HAL project put *jar in the filter
expand all branches, and then select all of the jar files
Click "OK" once you have deselected all of the folder nodes

Post-steps

Turn on Project, Build Automatically
Install PMD

Getting Eclipse 3.5 Working Behind Firewall

Update eclipse.ini file by adding the following line to the end of the file:
-Dorg.eclipse.ecf.provider.filetransfer.excludeContributors=org.eclipse.ecf.provider.filetransfer.httpclient

Windows, Preferences, Network Connections
Active Provider: Manual

Complete HTTP and HTTPS with credentials and make sure SOCKS setting is cleared