0

I'm currently trying to set up a secured folder with a few pages within my Java Web App to allow only registered users to access the pages in that folder.

However, while trying to do the setup/mapping of the groups I have been having the issue that the sun-web.xml is missing. I'm using Netbeans IDE.

Any ideas why this happened and how to fix it? I've done research and haven't really found a solution for the issue.

Thanks in advance

lv10
  • 1,469
  • 7
  • 25
  • 46
  • Is there a file named glassfish-web.xml? – Bhesh Gurung Jun 10 '12 at 03:47
  • @BheshGurung thanks for the response. There is no GlassFish-web.xml either. Is there a way that you can this file manually? like when I add an web.xml? – lv10 Jun 10 '12 at 18:26
  • 1
    Try: right-click the project > New > Other, then form the Categories select Glassfish. After that from Files, select glassfish-web.xml. – Bhesh Gurung Jun 10 '12 at 19:22
  • 1
    @BheshGurung -- Tried that but the possibility to glassfish-web.xml was not shown. I however manage to get the file by updating Netbeans to 7.2. I can use this file instead of the sun-web.xml, right? – lv10 Jun 10 '12 at 21:47

1 Answers1

1

Problem fixed: I updated Netbeans to 7.2 from 7.0 and then I did what @Bhesh Gurung suggested:

Try: right-click the project > New > Other, then form the Categories select Glassfish. After that from Files, select glassfish-web.xmlBlockquote

lv10
  • 1,469
  • 7
  • 25
  • 46
  • I'm using netbeans 7.2 and on my end it's called GlassFish Descripter in the new dialog. – Rob Aug 10 '12 at 12:26