Tag Archives: java

JPA + ObjectDB example

JPA stands for "Java Persistence API" – an API that tries to replace direct Hibernate (or other ORM) usage with more generic layer that allows to replace underlying ORM with no application code changes. Although ORM (object relational mappers) typically … Continue reading

Posted in en | Tagged , , | Leave a comment

ConfigurationException: XML-22101: (Fatal Error) DOMSource node as this type not supported

When you setup your project with commons-configuration library plugged in sometimes you can get very misleading error: ConfigurationException: XML-22101: (Fatal Error) DOMSource node as this type not supported This error may be caused by missing XML library bindings. In order … Continue reading

Posted in en | Tagged | 5 Comments

Is Static Typing the Root of All Evil?

Anders Janmyr has written recently an interesting article why he hates static typing: Donald Knuth wrote in his famous paper Structured Programming with go to Statements (PDF) We should forget about small efficiencies, say about 97% of the time: pre-mature … Continue reading

Posted in en | Tagged | 1 Comment

commons-logging.jar considered harmfull?

During recent 2nd level cache implementation research I noticed EHCache has a very funny dependency: slf4j. Hey, WTH, yet another log library implementation? – I asked myself. No commons-logging as everywhere? I googled around and found "The evils of commons-logging.jar … Continue reading

Posted in en | Tagged , | Leave a comment

How To Debug JNDI Lookup Problems

Sometimes when you get an exception like this: javax.naming.NameNotFoundException: Name "comp/UserTransaction" not found in context "java:" you want to see what entries are visible in JNDI. No problem, place this code somewhere near lookup problem code location: InitialContext ic = … Continue reading

Posted in en | Tagged , | 1 Comment