Category Archives: Java

Getting rid of java.lang.ClassNotFoundException when deploying exploded ear

Been having trouble deploying an ear in Eclipse to a JBoss server. Apparently, when you use the server connectors from the JBossAS Tools project, the server deploys the ear as exploded. This is different from the default JBoss server connector, … Continue reading

Posted in Java | Leave a comment

JiperRandom: A better random solution

This is an extension of java.util.Random which I find very useful and use in my tests. Some very useful methods are: nextString, nextEnum, pickRandom and other methods for random numbers as well (which are more flexible than the standard ones … Continue reading

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

Useful Eclipse templates

These are some templates I use in eclipse for the auto-completion (Ctrl+Space): Section comments: General section comment (sec): Section comment for constants (secconstants): Section comment for constructors (secctors): Section comment for class fields (secfields): Section comment for class getters & … Continue reading

Posted in Java | Tagged , , | Leave a comment