Skip to main content

Posts

Showing posts from June, 2007

HTTP 403 With GlassFish

If you’re getting an HTTP 403 error message with an enterprise application deployed as an EAR file using JAAS security, then there is potentially a simple fix. In GlassFish, you need to map the JAAS security role name to a GlassFish group name. This can be done in the sun-application.xml file as shown below: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE sun-application PUBLIC "-//Sun Microsystems, Inc.//DTD Application Server 9.0 Java EE Application 5.0//EN" "http://www.sun.com/software/appserver/dtds/sun-application_5_0-0.dtd"> <sun-application> <security-role-mapping> <role-name>role_name</role-name> <group-name>group_name</group-name> </security-role-mapping> </sun-application> If you’re developing a web project packaged as a WAR file, you need to do a similar thing, but in the sun-web.xml file instead.

Trialling NetBeans 6

I’ve just installed the latest NetBeans 6.0 (M9) onto my Mac and I like all the new features. The new Web Service Designer is pretty good although some have said that the UI does need sprucing up a bit. The other main area thats improved (for me) is the editor. It seems a lot faster and I could quite easily use it all day. I do have 2 issues though. Occasionally the editor will lock up and the cursor will vanish. The mouse still works, but whatever I do I can’t type anywhere. The only solution I’ve found is to close NB down and then start again. I imagine this bug will be fixed before version 6 is fully released. When running with GlassFish the editor is v e r y slow. Admittedly I’ve not got oodles or RAM on my machine, but I didn’t experience these problems with NB5.5. I’m not sure if this problem is because I installed the full (enterprise) NB or if its because of the new App Server supplied with 6.0. Are there any memory settings that can be tweaked when starting up Glas...