My GlassFish v3 error log says:
java.lang.illegalargumentexception uri has an authority component
I had the same problem (NetBeans 6.9.1) and the fix is very simple.
I found that NetBeans did not create a META-INF folder and so there was no context.xml , so I created the META-INF folder under the main project folder and also created file context.xml with the bellow content.
<?xml version="1.0" encoding="UTF-8"?>
<Context antiJARLocking="true" path="/home"/>
And problem is resolved.