Reputation: 675
I am a newbie to Java EE, and was trying to get a Webapp's container security manager to work.
Im using:
GlassFish 3.1.2 Netbeans 7.3 Windows 8
After I checked the security manager on my GlassFish admin console I can't start the GlassFish server anymore.
I always get this:
access denied ("java.lang.RuntimePermission" "getenv.GlassFish_Platform").
I am however able to start it from the console. When i do so i can see the admin console and my jdbcRealm is not there anymore.
I tried finding the jvm option inside the domain.xml to delete as instructed in some other questions, but i don't have it set.
I did try running Netbeans as admin, also no luck there...
Any hints anyone?
Upvotes: 0
Views: 9597
Reputation: 675
Solved it Netbeans installs Glassfish in one folder but makes its own configuration folder on another path.
C:\Program Files\glassfish-3.1.2.2\glassfish\domains\domain1\config\domain.xml
i was editing that file, the one i needed was but in:
C:\Users\Andres\AppData\Roaming\NetBeans\7.3\config\GF3\domain1\config\domain.xml
so removed the security jvm-option and now it works again!
Upvotes: 3