Re: [xSocket-develop] XSocket to start inside a WAR
Status: Inactive
Brought to you by:
grro
|
From: Vic C. <vce...@gm...> - 2009-08-26 16:53:39
|
On Wed, Aug 26, 2009 at 1:35 AM, Vic Cekvenich<vce...@gm...> wrote: > So I made a nice little socket server to do chat, nice. Works in > eclipse, tested. > > > Next I want to deploy it inside a servlet container, Tomcat in this > case (easy to manage and also I can "communicate"). I make a "fake" > servlet w/ init() that starts my socket server. > > Problem... stack trace bellow from tomcat. > Google says something about policy files and having to sing thingsm I > hope note? > Steps to reproduce, make a "genericServlet" and init start a xscoket > on any port. > > help? > > tia, > .V > > SEVERE: Servlet threw load() exception > java.security.AccessControlException: access denied > (java.util.PropertyPermission > org.xsocket.connection.server.workerpoolSize read) > at java.security.AccessControlContext.checkPermission(AccessControlContext.java:342) > at java.security.AccessController.checkPermission(AccessController.java:553) > at java.lang.SecurityManager.checkPermission(SecurityManager.java:549) > at java.lang.SecurityManager.checkPropertyAccess(SecurityManager.java:1302) > at java.lang.System.getProperty(System.java:669) > at org.xsocket.connection.Server.<clinit>(Server.java:69) > at pcn.AbsHostess.init(AbsHostess.java:93) > at javax.servlet.GenericServlet.init(GenericServlet.java:212) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:616) > at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:269) > at java.security.AccessController.doPrivileged(Native Method) > at javax.security.auth.Subject.doAsPrivileged(Subject.java:537) > at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:301) > at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:162) > at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:115) > at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1167) > at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:993) > at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4149) > at org.apache.catalina.core.StandardContext.start(StandardContext.java:4458) > at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045) > at org.apache.catalina.core.StandardHost.start(StandardHost.java:722) > at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045) > at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443) > at org.apache.catalina.core.StandardService.start(StandardService.java:516) > at org.apache.catalina.core.StandardServer.start(StandardServer.java:710) > at org.apache.catalina.startup.Catalina.start(Catalina.java:583) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:616) > at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:616) > at org.apache.commons.daemon.support.DaemonLoader.start(DaemonLoader.java:1 > > and some other msgs: > > Aug 26, 2009 1:14:06 AM org.apache.coyote.http11.Http11Protocol init > INFO: Initializing Coyote HTTP/1.1 on http-81 > Aug 26, 2009 1:14:06 AM org.apache.catalina.startup.Catalina load > INFO: Initialization processed in 4635 ms > Aug 26, 2009 1:14:06 AM org.apache.catalina.core.StandardService start > INFO: Starting service Catalina > Aug 26, 2009 1:14:06 AM org.apache.catalina.core.StandardEngine start > INFO: Starting Servlet Engine: Apache Tomcat/6.0.20 > Aug 26, 2009 1:14:07 AM org.xsocket.connection.IoProvider readProperty > WARNING: invalid value for system property > org.xsocket.connection.dispatcher.initialCount > java.security.AccessControlException: access denied > (java.util.PropertyPermission > org.xsocket.connection.dispatcher.initialCount read) > Aug 26, 2009 1:14:07 AM org.xsocket.connection.IoProvider readProperty > WARNING: invalid value for system property > org.xsocket.connection.client.dispatcher.initialCount > java.security.AccessControlException: access denied > (java.util.PropertyPermission > org.xsocket.connection.client.dispatcher.initialCount read) > Aug 26, 2009 1:14:07 AM org.xsocket.connection.IoProvider readProperty > WARNING: invalid value for system property > org.xsocket.connection.server.dispatcher.initialCount > java.security.AccessControlException: access denied > (java.util.PropertyPermission > org.xsocket.connection.server.dispatcher.initialCount read) > Aug 26, 2009 1:14:07 AM org.xsocket.connection.IoProvider readProperty > WARNING: invalid value for system property > org.xsocket.connection.dispatcher.maxHandles > java.security.AccessControlException: access denied > (java.util.PropertyPermission > org.xsocket.connection.dispatcher.maxHandles read) > Aug 26, 2009 1:14:07 AM org.xsocket.connection.IoProvider readProperty > WARNING: invalid value for system property > org.xsocket.connection.dispatcher.detachHandleOnNoOps > java.security.AccessControlException: access denied > (java.util.PropertyPermission > org.xsocket.connection.dispatcher.detachHandleOnNoOps read) > Aug 26, 2009 1:14:07 AM org.xsocket.connection.IoProvider readProperty > WARNING: invalid value for system property > org.xsocket.connection.dispatcher.bypassingWriteAllowed > java.security.AccessControlException: access denied > (java.util.PropertyPermission > org.xsocket.connection.dispatcher.bypassingWriteAllowed read) > Aug 26, 2009 1:14:07 AM org.xsocket.connection.IoProvider readProperty > WARNING: invalid value for system property > org.xsocket.connection.transfer.mappedbytebuffer.maxsize > java.security.AccessControlException: access denied > (java.util.PropertyPermission > org.xsocket.connection.transfer.mappedbytebuffer.maxsize read) > Aug 26, 2009 1:14:07 AM org.xsocket.connection.IoProvider readProperty > WARNING: invalid value for system property > org.xsocket.connection.suppressSyncFlushWarning > java.security.AccessControlException: access denied > (java.util.PropertyPermission > org.xsocket.connection.suppressSyncFlushWarning read) > Aug 26, 2009 1:14:07 AM org.xsocket.connection.IoProvider readProperty > WARNING: invalid value for system property > org.xsocket.connection.suppressSyncFlushCompletionHandlerWarning > java.security.AccessControlException: access denied > (java.util.PropertyPermission > org.xsocket.connection.suppressSyncFlushCompletionHandlerWarning read) > Aug 26, 2009 1:14:07 AM org.xsocket.connection.IoProvider readProperty > WARNING: invalid value for system property > org.xsocket.connection.suppressReuseBufferWarning > java.security.AccessControlException: access denied > (java.util.PropertyPermission > org.xsocket.connection.suppressReuseBufferWarning read) > Aug 26, 2009 1:14:07 AM org.xsocket.connection.IoProvider readProperty > WARNING: invalid value for system property > org.xsocket.connection.client.readbuffer.usedirect > java.security.AccessControlException: access denied > (java.util.PropertyPermission > org.xsocket.connection.client.readbuffer.usedirect read) > Aug 26, 2009 1:14:07 AM org.xsocket.connection.IoProvider readProperty > WARNING: invalid value for system property > org.xsocket.connection.server.readbuffer.usedirect > java.security.AccessControlException: access denied > (java.util.PropertyPermission > org.xsocket.connection.server.readbuffer.usedirect read) > Aug 26, 2009 1:14:07 AM org.xsocket.connection.IoProvider readProperty > WARNING: invalid value for system property > org.xsocket.connection.writebuffer.usedirect > java.security.AccessControlException: access denied > (java.util.PropertyPermission > org.xsocket.connection.writebuffer.usedirect read) > Aug 26, 2009 1:14:07 AM org.xsocket.connection.IoProvider readProperty > WARNING: invalid value for system property > org.xsocket.connection.client.readbuffer.defaultMaxReadBufferThreshold > java.security.AccessControlException: access denied > (java.util.PropertyPermission > org.xsocket.connection.client.readbuffer.defaultMaxReadBufferThreshold > read) > Aug 26, 2009 1:14:07 AM org.xsocket.connection.IoProvider readProperty > WARNING: invalid value for system property > org.xsocket.connection.server.readbuffer.defaultMaxReadBufferThreshold > java.security.AccessControlException: access denied > (java.util.PropertyPermission > org.xsocket.connection.server.readbuffer.defaultMaxReadBufferThreshold > read) > Aug 26, 2009 1:14:07 AM org.xsocket.connection.IoProvider readProperty > WARNING: invalid value for system property > org.xsocket.connection.client.readbuffer.defaultMaxWriteBufferThreshold > java.security.AccessControlException: access denied > (java.util.PropertyPermission > org.xsocket.connection.client.readbuffer.defaultMaxWriteBufferThreshold > read) > Aug 26, 2009 1:14:07 AM org.xsocket.connection.IoProvider readProperty > WARNING: invalid value for system property > org.xsocket.connection.server.readbuffer.defaultMaxWriteBufferThreshold > java.security.AccessControlException: access denied > (java.util.PropertyPermission > org.xsocket.connection.server.readbuffer.defaultMaxWriteBufferThreshold > read) > Aug 26, 2009 1:14:07 AM org.xsocket.connection.IoProvider readProperty > WARNING: invalid value for system property > org.xsocket.connection.server.ssl.sslengine.enabledProtocols > java.security.AccessControlException: access denied > (java.util.PropertyPermission > org.xsocket.connection.server.ssl.sslengine.enabledProtocols read) > Aug 26, 2009 1:14:07 AM org.xsocket.connection.IoProvider readProperty > WARNING: invalid value for system property > org.xsocket.connection.client.ssl.sslengine.enabledProtocols > java.security.AccessControlException: access denied > (java.util.PropertyPermission > org.xsocket.connection.client.ssl.sslengine.enabledProtocols read) > Aug 26, 2009 1:14:07 AM org.xsocket.connection.IoProvider readProperty > WARNING: invalid value for system property > org.xsocket.connection.server.ssl.sslengine.enabledCipherSuites > java.security.AccessControlException: access denied > (java.util.PropertyPermission > org.xsocket.connection.server.ssl.sslengine.enabledCipherSuites read) > Aug 26, 2009 1:14:07 AM org.xsocket.connection.IoProvider readProperty > WARNING: invalid value for system property > org.xsocket.connection.client.ssl.sslengine.enabledCipherSuites > java.security.AccessControlException: access denied > (java.util.PropertyPermission > org.xsocket.connection.client.ssl.sslengine.enabledCipherSuites read) > Aug 26, 2009 1:14:07 AM org.xsocket.connection.IoProvider readProperty > WARNING: invalid value for system property > org.xsocket.connection.server.ssl.sslengine.wantClientAuth > java.security.AccessControlException: access denied > (java.util.PropertyPermission > org.xsocket.connection.server.ssl.sslengine.wantClientAuth read) > Aug 26, 2009 1:14:07 AM org.xsocket.connection.IoProvider readProperty > WARNING: invalid value for system property > org.xsocket.connection.server.ssl.sslengine.needClientAuth > java.security.AccessControlException: access denied > (java.util.PropertyPermission > org.xsocket.connection.server.ssl.sslengine.needClientAuth read) > Aug 26, 2009 1:14:07 AM org.xsocket.connection.IoProvider readProperty > WARNING: invalid value for system property > org.xsocket.connection.client.readbuffer.preallocation.on > java.security.AccessControlException: access denied > (java.util.PropertyPermission > org.xsocket.connection.client.readbuffer.preallocation.on read) > Aug 26, 2009 1:14:07 AM org.xsocket.connection.IoProvider readProperty > WARNING: invalid value for system property > org.xsocket.connection.client.readbuffer.preallocation.size > java.security.AccessControlException: access denied > (java.util.PropertyPermission > org.xsocket.connection.client.readbuffer.preallocation.size read) > Aug 26, 2009 1:14:07 AM org.xsocket.connection.IoProvider readProperty > WARNING: invalid value for system property > org.xsocket.connection.client.readbuffer.preallocated.minSize > java.security.AccessControlException: access denied > (java.util.PropertyPermission > org.xsocket.connection.client.readbuffer.preallocated.minSize read) > Aug 26, 2009 1:14:07 AM org.xsocket.connection.IoProvider readProperty > WARNING: invalid value for system property > org.xsocket.connection.server.readbuffer.preallocation.on > java.security.AccessControlException: access denied > (java.util.PropertyPermission > org.xsocket.connection.server.readbuffer.preallocation.on read) > Aug 26, 2009 1:14:07 AM org.xsocket.connection.IoProvider readProperty > WARNING: invalid value for system property > org.xsocket.connection.server.readbuffer.preallocation.size > java.security.AccessControlException: access denied > (java.util.PropertyPermission > org.xsocket.connection.server.readbuffer.preallocation.size read) > Aug 26, 2009 1:14:07 AM org.xsocket.connection.IoProvider readProperty > WARNING: invalid value for system property > org.xsocket.connection.server.readbuffer.preallocated.minSize > java.security.AccessControlException: access denied > (java.util.PropertyPermission > org.xsocket.connection.server.readbuffer.preallocated.minSize read) > Aug 26, 2009 1:14:07 AM org.apache.coyote.http11.Http11Protocol start > INFO: Starting Coyote HTTP/1.1 on http-81 > Aug 26, 2009 1:14:07 AM org.apache.catalina.startup.Catalina start > |