Posts Tagged Java

Effective Java, Second Edition

Joshua Bloch of Google is coming up with his second installment of the famous Effective Java book.

0321356683 Effective Java (2nd Ed)

InfoQ has an interesting article about the upcoming book and provides a sample chapter on Generics free for download.

Other books from Bloch include:

I’ve benefited a lot from the original book and I’m excited to see how this updated version will turn out.

Leave a Comment

Sun Tech Days in Manila

Sun Tech Days will be in Manila from June 17-19.

Now in its 10th year, Tech Days is a Worldwide Developer Conference that spans 15 cities across the world reaching more than 100,000 developers. This is your chance to develop skills and advance your career in a Web 2.0 world; share knowledge and grow your network; participate in communities with fellow developers changing the face of technology.

Below are some details on what the sessions will be like:

Two Java development tracks will cover sessions in the following areas:

So if you’re in the area, and have some annual leaves to spare, be sure to check them out.

Leave a Comment

Email/IM Notification with Log4J

For years, Log4J has been the de facto logging framework for Java. I’m not sure if most developers are already aware of this but there are a lot of other neat things you can do with Log4J aside from writing debug lines to plain text files.

Among them are sending notifications through email, IM or even JMS when your log levels reach a certain threshold. It’s a pretty useful feature especially if you need to be notified in real-time of problems encountered in your application.

I’d like to share with you some articles which I found useful about this topic:

So whether you’re developing a desktop or a web application in Java it’s nice to know that you have these options.

Leave a Comment

Collective Intelligence in Action

Finally, I won a book from JavaRanch!

Praise God!

The book is entitled:

1933988312 Collective Intelligence in Action

Unlike other books in Collective Intelligence, the methods and examples presented in CIA are based in Java.

I’ve already joined many other book promos in the Ranch (Head First PMP, Rock Star Programmers, JQuery In Action), but this is the first time I actually won something.

And what a perfect timing it is, since I badly need to make the search algorithms I’m currently working on in our church ministry to be “more intelligent”.

I would like to thank JavaRanch, Manning and the author Satnam Alag for such a wonderful book.

Leave a Comment

Get TWO Chances at Getting Sun Certified For the Price of One

Taken directly from Sun’s email:

500,000 Have Done it and You Can Too!

Dear READER:

More than 500,000 IT Professionals are now Sun Certified. Are You Next?

With the purchase of any certification exam voucher through June 30, 2008, you will receive a second chance certification voucher to retake the exam, if you need it.

Here’s how to take advantage of this offer:

1. Select the package or certification exam that you are interested in.
2. Use Priority Code WW48CX1 when you place your order.
3. Schedule Your Exam.
4. And if you don’t pass the first time, schedule your retake exam for FREE.

Hurry! Offer Ends June 30, 2008.

More details along with recommended books can be found here.

Leave a Comment

MyFaces 1.2 Error: No Factories configured for this Application

If you’ve received the “No Factories configured for this Application” error with MyFaces 1.2, then you’re not alone.

Detailed message goes like this:

java.lang.IllegalStateException: No Factories configured for this Application. This happens if the faces-initialization does not work at all – make sure that you properly include all configuration settings necessary for a basic faces application and that all the necessary libs are included. Also check the logging output of your web application and your container for any exceptions!

If you did that and find nothing, the mistake might be due to the fact that you use some special web-containers which do not support registering context-listeners via TLD files and a context listener is not setup in your web.xml.

The weirdest thing is that I have the context listener declared in my web.xml!

	<listener>
	<listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class>
</listener>

From what I’ve gathered, changing the web.xml entry

from


<servlet>
<servlet-name>Faces Servlet</servlet-name>
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>

to


<servlet>
<servlet-name>Faces Servlet</servlet-name>
<servlet-class>org.apache.myfaces.webapp.MyFacesServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>

should do the trick.

But then again, moving to 1.2.2 of MyFaces also makes the problem go away. (at least that was the case when I upgraded to 1.2.2).

So my suggestion is to just upgrade the version of your MyFaces jars instead of going with the rather “hacky” solution.

Leave a Comment

Has .NET Leapfrogged Java?

Got this message from my Inbox this morning:

Our authors often have great insights. So when one recently told us that .NET technology–in particular C# combined with LINQ–has “leapfrogged Java,” we took note. His evidence?

  • The new .NET library, LINQ*, provides a direct link between C# code and any data source, without the need for a persistence layer like Hibernate.
  • C# introduced generics, custom attributes, delegates, standardized foreach iterators, property syntax, and extensible value types before Java.
  • The .NET platform now includes Python, Ruby, and new languages like F#, and frameworks like WPF, WCF, and ASP.NET have become industrial-strength.

On the flipside, another of our authors tells us, a language lives in a developer community and Java’s is more vibrant. Java-to-.NET ports like NAnt, NHibernate and NUnit abound, but there’s been little movement in the other direction. And .NET still implies Windows.

Have the tables really turned? Join the discussion at www.manning.com/leapfrog

I’ll leave it up to you guys to decide.

Comments (1)

Older Posts »