Programmers learn & share
0 votes

Problem :

My GlassFish v3 error log says:

java.lang.illegalargumentexception uri has an authority component

by (6.9k points)  
edited by | 97 views

1 Answer

0 votes

Soultion :

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.

Further Readings :

by (36.1k points)  
2,187 questions
2,514 answers
241 users