Hi,
I am trying to test the Flex 2 Beta 1 (which looks like a collection of
web-app 2.3 apps) on GlassFish, build 32d.
I saw the following message in the log file:
[#|2006-02-03T13:21:40.218-0800|INFO|sun-appserver-pe9.0|javax.enterprise.system.core.security|_ThreadID=10;_ThreadName=main;|JACC
Policy Provider: PolicyWrapper.implies, context(null)-
permission((java.lang.RuntimePermission createClassLoader)) domain that
failed(ProtectionDomain
(file:/C:/flex2b1/samples/WEB-INF/lib/flex-bootstrap.jar <no signer
certificates>)
WebappClassLoader
delegate: true
repositories:
/WEB-INF/classes/
----------> Parent Classloader:
EJBClassLoader :
urlSet = []
doneCalled = false
Parent -> java.net.URLClassLoader_at_b02efa
<no principals>
java.security.Permissions_at_1aca5e2 (
(javax.management.MBeanTrustPermission register)
(java.util.PropertyPermission java.version read)
(java.util.PropertyPermission java.vm.name read)
(java.util.PropertyPermission java.vm.vendor read)
(java.util.PropertyPermission os.name read)
(java.util.PropertyPermission java.vendor.url read)
(java.util.PropertyPermission java.vm.specification.vendor read)
(java.util.PropertyPermission java.specification.vendor read)
(java.util.PropertyPermission os.version read)
(java.util.PropertyPermission java.specification.name read)
(java.util.PropertyPermission java.class.version read)
(java.util.PropertyPermission file.separator read)
(java.util.PropertyPermission java.vm.version read)
(java.util.PropertyPermission os.arch read)
(java.util.PropertyPermission java.vm.specification.name read)
(java.util.PropertyPermission java.vm.specification.version read)
(java.util.PropertyPermission java.specification.version read)
(java.util.PropertyPermission java.vendor read)
(java.util.PropertyPermission * read)
(java.util.PropertyPermission path.separator read)
(java.util.PropertyPermission line.separator read)
(javax.management.MBeanPermission [com.sun.messaging.jms.*:*] *)
(java.lang.RuntimePermission loadLibrary.*)
(java.lang.RuntimePermission modifyThreadGroup)
(java.lang.RuntimePermission accessDeclaredMembers)
(java.lang.RuntimePermission queuePrintJob)
(java.lang.RuntimePermission stopThread)
(unresolved com.sun.enterprise.security.CORBAObjectPermission * *)
(java.net.SocketPermission localhost:1024- listen,resolve)
(java.net.SocketPermission * connect,resolve)
(org.apache.naming.JndiPermission jndi:/server/samples/WEB-INF/classes/*)
(org.apache.naming.JndiPermission jndi:/server/samples/WEB-INF/lib/*)
(org.apache.naming.JndiPermission jndi:/server/samples/*)
(javax.security.auth.PrivateCredentialPermission
javax.resource.spi.security.PasswordCredential * "*" read)
(java.io.FilePermission C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\\- delete)
(java.io.FilePermission C:/Documents and
Settings/Administrator/Desktop/glassfish/domains/domain1\lib\databases\-
delete)
(java.io.FilePermission <<ALL FILES>> read,write)
(java.io.FilePermission C:\flex2b1\samples\WEB-INF\lib\- read)
(java.io.FilePermission C:\flex2b1\samples\WEB-INF\lib read)
(java.io.FilePermission C:\flex2b1\samples\- read)
(java.io.FilePermission C:\flex2b1\samples read)
(java.io.FilePermission C:\Documents and
Settings\Administrator\Desktop\glassfish\domains\domain1\generated\jsp\j2ee-modules\Flex-samples\-
read,write,delete)
(java.io.FilePermission C:\Documents and
Settings\Administrator\Desktop\glassfish\domains\domain1\generated\jsp\j2ee-modules\Flex-samples
read,write)
(java.io.FilePermission
\C:\flex2b1\samples\WEB-INF\lib\flex-bootstrap.jar read)
)
)|#]
I added the following entry to the END of my server.policy file for the
domain:
grant codeBase "file:C:/flex2b1/flex/WEB-INF/lib/flex-bootstrap.jar" {
permission java.lang.RuntimePermission "createClassLoader";
};
But the message refuses to go away.
Have I botched something obvious?
Thanks,
vbk