Showing posts with label jboss tools. Show all posts
Showing posts with label jboss tools. Show all posts

JBoss Tools on Ubuntu 8.04

I finished the installation of Ubuntu 8.04 last night. I just became a 100% open source developer by completely dumping windows. The installation was not very straight forward because I encountered several problems with eclipse running on Ubuntu. The following are the things I needed to solve while trying to install my Java development tools:

1. Eclipse keeps on crashing

This problem was really annoying because eclipse keeps on crashing every 5-10 minutes.

Solution:

Just add this at the end of your eclipse.ini (considering that no previous modification to that file was made):

-XX:MaxPermSize=90M

You will need to adjust the size depending on your computers memory.


2. Cannot open any file with JBoss Tools HTML Editor

When opening any file using JBoss Tools HTML Editor, I get a message box with the following error:

/home/jexter/app/eclipse/plugins/org.mozilla.xulrunner.gtk.linux.x86_1.8.1.3-20070904/xulrunner/libjavaxpcomglue.so: libstdc++.so.5: cannot open shared object file: No such file or directory

Solution:

Just install libstdc++5 by simply running this:

apt-get install libstdc++5

Don't forget to update your packages first.

When using JBoss Tools 2.0.0 GA, the generated test project doesn't allow me to provide a custom persistence.xml. I'm not sure if this is a bug or the feature is not yet included on the given version. The persistence.xml being used when the application is deployed and when running test is the same. So what I did is update the hbm2ddl.auto property of the projectname-ejb/META-INF/persistence.xml to create/create-drop when running test and then when deploying the application, i switch it back to update.

Right now I don't want to waste my time just figuring out how to run test that uses a different persistence context. I have already spent 2 days just doing that but nothing happened. Its either I wait for a major JBoss Tools update or I'll try solving the problem again once I get some free time.

Older Posts Home

Blogger Template by Blogcrowds