[jboss-user] [Beginner's Corner] - experimenting with JBoss 7 quickstart helloworld tutorial

mperdikeas do-not-reply at jboss.com
Tue Jun 19 12:03:06 EDT 2012


mperdikeas [https://community.jboss.org/people/mperdikeas] created the discussion

"experimenting with JBoss 7 quickstart helloworld tutorial"

To view the discussion, visit: https://community.jboss.org/message/742795#742795

--------------------------------------------------------------
I am coming from a Tomcat / JSF background so I did a little experimentation with the quickstart helloworld tutorial.
Specifically I was curious as to the need for the beans.xml file which basically defines namespaces.
Since the first helloworld example does not include any xhtml I thought the file is not needed and so I removed it.
Not surprisingly I received an error when I tried to access the deployed application:

java.lang.NullPointerException
 org.jboss.as.quickstarts.helloworld.HelloWorldServlet.doGet(Unknown Source)
 javax.servlet.http.HttpServlet.service(HttpServlet.java:734)
 javax.servlet.http.HttpServlet.service(HttpServlet.java:847)

What I cannot fathom is how not defining XML namespaces which are not used results in a NullPointerException error.
If anybody can shed some light this will help me improve my mental model and perhaps be able to decipher similarly cryptic messages in the future.
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/742795#742795]

Start a new discussion in Beginner's Corner at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2075]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20120619/4d4655e4/attachment.html 


More information about the jboss-user mailing list