The reason why you are seeing a directory listing when you specify 
http://localhost:8080/HelloJSF/ is because you dont have a welcome file in your 
application. By default the server searches for index.jsp or index.html in the 
application. If it does not find this then it wil display the directory 
listing. If you want to disable this, you have 2 options:

1) There's a xml file where you can disable the directory listing

or 2) You can specify your welcome file in the web.xml:

<?xml version="1.0" encoding="UTF-8"?>
  | <web-app id="WebApp_ID" version="2.4" 
xmlns="http://java.sun.com/xml/ns/j2ee"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee 
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd";>
  |     <servlet>
  |             ...
  |             
  |     </servlet>
  |     <servlet-mapping>
  |     ...
  |     </servlet-mapping>
  |     <welcome-file-list>
  |             <welcome-file>hello.jsp</welcome-file>
  |     </welcome-file-list>
  | </web-app>

The other error that you are seeing (NullPointerException) when you access the 
hello.jsp is related to the code in your jsp. You will have to debug from the 
logs in server.log to figure out why thats occuring




View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4039274#4039274

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4039274
_______________________________________________
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to