Some notes while trying to get up on speed with Glassfish and JEE6, mainly about what can go wrong... and there is plenty of it. The most time-consuming activity is researching generic stack traces which hardly ever point to the real cause. NullPointerException when deploying Been there, done that: A beans.xml in META-INF might cause … Continue reading JEE6, EJB and Glassfish diaries
Category: programming
CRTL + Left click on java methods/members/classes slow in Eclipse
In a certain, corporate installation of Eclipse on a quite fast computer CRTL+Left click on java classes, members and methods in the java editor incurred always several seconds of a locked up eclipse which coincided with moderate network traffic. When disconnecting the network the delay would magically vanish. Pierre-Antoine Grégoire came up with the reason … Continue reading CRTL + Left click on java methods/members/classes slow in Eclipse
Solving the 8 Queens puzzle with bit operations
The 8 queens puzzle is a classic (and quite fun to solve) toy problem: place eight queens on a chess board in such a way that all queens could fully move without being obstructed by any other queen. While without practical applications, it illustrates a number of aspects of designing algorithms and implementing programmes: - … Continue reading Solving the 8 Queens puzzle with bit operations
Connecting with Eclipse to a remote SVN repository via SSH on non-standard ports
Having been bitten by this for the n-th time (with n being subjectively a large integer), I'm noting this down for the following generations to benefit; and hopefully to save myself some fiddling next time it happens. Without further ado: How to connect with SVN to a remote repository that is running on a non-standard … Continue reading Connecting with Eclipse to a remote SVN repository via SSH on non-standard ports
The jsp-file directive
The jsp-file directive in web.xml allows mapping of JSPs to concrete URLs: <servlet> <servlet-name>My Hidden Page</servlet-name> <jsp-file>/mydir/foo.jsp</jsp-file> </servlet> <servlet-mapping> <servlet-name>My Hidden Page</servlet-name> <url-pattern>/hidden</url-pattern> </servlet-mapping> Shame on me, I didn't know about this. As seen here: http://mail-archives.apache.org/mod_mbox/tomcat-users/200107.mbox/%3CPine.BSF.4.21.0107271807540.7976-100000@localhost%3E