tomcat access denied

Hier geht es um XAMPP AddOns wie z. B. das Apache-Konfigurations-Tool Apanatschi. Irgendwelche Probleme damit oder Fragen dazu? Dann ist hier genau der richtige Ort um nachzufragen.

tomcat access denied

Postby weedlight » 02. June 2009 13:31

Ich kriegs einfach nicht auf die Reihe mein Servlet mit xampp zum laufen zu bringen.

hier ein Teil meiner Datei catalina.2009-06-02.log

Code: Select all
02.06.2009 13:28:56 org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8081
02.06.2009 13:28:56 org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1029 ms
02.06.2009 13:28:56 org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
02.06.2009 13:28:56 org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.18
02.06.2009 13:28:56 org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive MvServlets.war
02.06.2009 13:28:57 org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8081
02.06.2009 13:28:57 org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8010
02.06.2009 13:28:57 org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/47  config=null
02.06.2009 13:28:57 org.apache.catalina.startup.Catalina start
INFO: Server startup in 1760 ms
02.06.2009 13:29:16 org.apache.catalina.connector.CoyoteAdapter service
SCHWERWIEGEND: An exception or error occurred in the container during the request processing
java.security.AccessControlException: access denied (java.lang.RuntimePermission setContextClassLoader)
   at java.security.AccessControlContext.checkPermission(AccessControlContext.java:323)
   at java.security.AccessController.checkPermission(AccessController.java:546)
   at java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
   at java.lang.Thread.setContextClassLoader(Thread.java:1351)
   at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:148)
   at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
   at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
   at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
   at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
   at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
   at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
   at java.lang.Thread.run(Thread.java:619)
02.06.2009 13:29:27 org.apache.tomcat.util.net.JIoEndpoint$Acceptor run
SCHWERWIEGEND: Socket accept failed
java.security.AccessControlException: access denied (java.net.SocketPermission 127.0.0.1:4880 accept,resolve)
   at java.security.AccessControlContext.checkPermission(AccessControlContext.java:323)
   at java.security.AccessController.checkPermission(AccessController.java:546)
   at java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
   at java.lang.SecurityManager.checkAccept(SecurityManager.java:1157)
   at java.net.ServerSocket.implAccept(ServerSocket.java:457)
   at java.net.ServerSocket.accept(ServerSocket.java:421)
   at org.apache.tomcat.util.net.DefaultServerSocketFactory.acceptSocket(DefaultServerSocketFactory.java:61)
   at org.apache.tomcat.util.net.JIoEndpoint$Acceptor.run(JIoEndpoint.java:310)
   at java.lang.Thread.run(Thread.java:619)
02.06.2009 13:29:27 org.apache.tomcat.util.net.JIoEndpoint$Acceptor run
SCHWERWIEGEND: Socket accept failed
java.security.AccessControlException: access denied (java.net.SocketPermission 127.0.0.1:4881 accept,resolve)
   at java.security.AccessControlContext.checkPermission(AccessControlContext.java:323)
   at java.security.AccessController.checkPermission(AccessController.java:546)
   at java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
   at java.lang.SecurityManager.checkAccept(SecurityManager.java:1157)
   at java.net.ServerSocket.implAccept(ServerSocket.java:457)
   at java.net.ServerSocket.accept(ServerSocket.java:421)
   at org.apache.tomcat.util.net.DefaultServerSocketFactory.acceptSocket(DefaultServerSocketFactory.java:61)
   at org.apache.tomcat.util.net.JIoEndpoint$Acceptor.run(JIoEndpoint.java:310)
   at java.lang.Thread.run(Thread.java:619)



und meine Datei localhost.2009-06-02.log

Code: Select all
02.06.2009 14:19:08 org.apache.catalina.core.StandardWrapperValve invoke
SCHWERWIEGEND: Servlet.service() for servlet MvModuleServlet threw exception
java.security.AccessControlException: access denied (java.util.logging.LoggingPermission control)
   at java.security.AccessControlContext.checkPermission(AccessControlContext.java:323)
   at java.security.AccessController.checkPermission(AccessController.java:546)
   at java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
   at java.util.logging.LogManager.checkAccess(LogManager.java:952)
   at java.util.logging.Logger.setParent(Logger.java:1353)
   at org.apache.juli.ClassLoaderLogManager$3.run(ClassLoaderLogManager.java:436)
   at java.security.AccessController.doPrivileged(Native Method)
   at org.apache.juli.ClassLoaderLogManager.doSetParentLogger(ClassLoaderLogManager.java:434)
   at org.apache.juli.ClassLoaderLogManager.addLogger(ClassLoaderLogManager.java:121)
   at java.util.logging.LogManager.demandLogger(LogManager.java:318)
   at java.util.logging.Logger.getLogger(Logger.java:274)
   at sun.rmi.runtime.Log$LoggerLogFactory.createLog(Log.java:154)
   at sun.rmi.runtime.Log.getLog(Log.java:121)
   at sun.rmi.transport.Transport.<clinit>(Transport.java:43)
   at sun.rmi.transport.tcp.TCPEndpoint.<clinit>(TCPEndpoint.java:121)
   at java.rmi.registry.LocateRegistry.getRegistry(LocateRegistry.java:158)
   at java.rmi.registry.LocateRegistry.getRegistry(LocateRegistry.java:106)
   at java.rmi.Naming.getRegistry(Naming.java:204)
   at java.rmi.Naming.lookup(Naming.java:80)
   at MvModuleServlet.doGet(MvModuleServlet.java:34)
   at MvModuleServlet.doPost(MvModuleServlet.java:217)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
   at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
   at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
   at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
   at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
   at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
   at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
   at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
   at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
   at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
   at java.lang.Thread.run(Thread.java:619)



und schliesslich noch was ich an die Datei catalina.policy angehängt habe

Code: Select all
grant{
   permission java.security.AllPermission;
};
weedlight
 
Posts: 4
Joined: 29. May 2009 10:39

Problem gelöst

Postby weedlight » 03. June 2009 12:13

das Problem war folgendes, in der datei xampp\tomcat\bin\service.bat wurde die Datei catalina.policy nicht als Parameter übergeben. Diese Datei enthält nun unter anderem folgende Zeile

Code: Select all
"%EXECUTABLE%" //US//%SERVICE_NAME% --JvmOptions "-Dcatalina.base=%CATALINA_BASE%;-Dcatalina.home=%CATALINA_HOME%;-Djava.endorsed.dirs=%CATALINA_HOME%\endorsed;-Djava.security.manager;-Djava.security.policy=C:\xampp\tomcat\conf\catalina.policy" --StartMode jvm --StopMode jvm
weedlight
 
Posts: 4
Joined: 29. May 2009 10:39


Return to XAMPP AddOns

Who is online

Users browsing this forum: No registered users and 0 guests