Tag Archives: eclipse

Recreate Derby Database Under WebSphere

WebSphere uses SQL databases for internal managment of MQ queues (Derby database engine under the covers). Sometimes you need to reset their state. Here's the script that erase and recreate BPEDB database state (tested under WS 6.1.2): rm -rf $WID_HOME/pf/wps/databases/BPEDB … Continue reading

Posted in en | Tagged , , , | Leave a comment

Generic Types in Java 1.5

Generics are very useful Java language feature introduced in Java 1.5. Starting from 1.5 you can statically declare expected types of objects inside collections and compiler will enforce this assumption during compilation: Map<String, BankAccount> bankAccounts = new HashMap<String, BankAccount>(); bankAccounts.put("a1", … Continue reading

Posted in en | Tagged , , | Leave a comment

Eclipse hangs – solved!

Sometimes you see that Eclipse stops responding and causes 100% of CPU usage (UI controls not redrawn). The only action can be taken then is to kill eclipse process. I discovered that it's caused by big console output option. Test … Continue reading

Posted in en | Tagged , , | Leave a comment

The simplest commons-logging usage

I assume you're a developer and want to control global log level you are getting on your console window in Eclipse. Just log level. You don't want to learn all Log4J machinery to create many log files, customize logging format … Continue reading

Posted in en | Tagged , | Leave a comment

libxpcom.so: cannot open shared object file: No such file or directory

When opening JSP file in visual mode in Eclipse (Websphere Integrated Developer 6.1.2) I'm getting the following error (under Debian Lenny): Caused by: java.lang.UnsatisfiedLinkError: /opt/IBM/WID61/configuration/org.eclipse.osgi/bundles/2374/1/.cp/libswt-mozilla-gtk-3236.so (libxpcom.so: cannot open shared object file: No such file or directory) I checked for shared … Continue reading

Posted in en | Tagged , , , , | 1 Comment