Skip to main content

changing web.xml gives null pointer exception

Please note these forums are being decommissioned and use the new and improved forums at
1 reply [Last post]
Joined: 2011-06-07

Hi Good Team,

i have a problem, when i change my web descriptor (web.xml) in glassfish I get an error;

[#|2011-10-28T18:32:39.031+0300|SEVERE|glassfish3.1|javax.enterprise.resource.webcontainer.jsf.application|_ThreadID=121;_ThreadName=Thread-1;|Error Rendering View[/index.xhtml]
javax.el.ELException: /index.xhtml @14,66 value="#{userManager.user}": java.lang.NullPointerException


[#|2011-10-28T18:32:39.031+0300|WARNING|glassfish3.1||_ThreadID=121;_ThreadName=Thread-1;|StandardWrapperValve[Faces Servlet]: PWC1406: Servlet.service() for servlet Faces Servlet threw exception

This is my part of web.xml

<description>Administrator Access</description>
<url-pattern>/customer/*</url-pattern> <---- This is the error part, if I change it to /* it work fine...
<description>protected areas</description>

Please help me

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Joined: 2011-06-07

on more thing,

I have a folder like this

|-Web pages

what i want to do is secure the customer folder only for administrator access