A 404 message that adds value More Rails / Java Talk
Jul 14

Why isn’t software just a bit easier?

Java, Tech Add comments

You work all night and finish off your lovely application for the meeting the following day. You check and re-check your application and it works like a champ. You are feeling good about the demo.

Then you get to the office where you are giving the demo, and spend time configuring your browser so you can get through the lovely corporate proxy/firewall. Always a pleasure.

Then you bring your app up, and all of a sudden you get a stacktrace that could reach to the moon and back, and at the heart of it you see:

org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML document from URL [jar:file:/C:/servers/tomcat/webapps/your-app/WEB-INF/lib/jsf-spring.jar!/META-INF/faces-config.xml]; nested exception is java.net.ConnectException: Connection timed out: connect
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:139)

Er. Huh?

The faces-config.xml looks good in there. Everything seems fine.

You then look deeper into the message of stacktraces from Tomcat, and you find a bunch of connection errors. Hmm, what kind of connection?

After awhile you realise that this is ALL due to Digester, using Xerces, and VALIDATING the damn XML.

So the errors are due to loading the faces-config which has the DTD:

<!DOCTYPE faces-config PUBLIC
“-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.1//EN”
“http://java.sun.com/dtd/web-facesconfig_1_1.dtd”>

You can try to turn off the validation, or just through in your proxy info to Tomcat:

-Dhttp.proxyHost=extproxy -Dhttp.proxyPort=80

Now, just 2 hours later, you are ready to give your demo :)

5 Responses to “Why isn’t software just a bit easier?”

  1. Keith Says:

    Ah looks like someone somewhere forgot to provide a Dtd EntityResolver! :-)

  2. Will Sargent Says:

    Ran into the same thing.

    http://tersesystems.com/post/6000058.jhtml

  3. Spring User Says:

    Ha Ha. That’s what you get for using a lame framework like Spring. Try coding without the crutches and you will see the light.

  4. bbog Says:

    http://www.black-handjobs-movies.handjobnow.com *B* http://www.blowjob-handjob-cynthia.handjobnow.com *B* http://www.hooks-ginger.handjobnow.com *B* http://www.ejuclation-cora.squirtingpics.net *B* http://www.enhancers-mpeg.squirtingpics.net *B* http://www.women-eiaculation-pictures.squirtingpics.net *B*

  5. bbog Says:

    adorable handjobs *B* titfuck jenny *B* gloryhole movie *B* erectile cora *B* pussies squirt clip *B* edjaculation clip *B*

Leave a Reply

Spam is a pain, I am sorry to have to do this to you, but can you answer the question below?

Q: Type in the word 'ajax'