2 Replies Latest reply on Mar 24, 2003 4:52 PM by 843797

    Error 500: Server caught unhandled exception from servlet

    843797
      Hi,

      I call a JavaBean from a JSP. When I want to open the JSP file, the browser shows the following error message:

      Error 500: Server caught unhandled exception from servlet [JSP 1.2 Processor]: access denied (java.util.PropertyPermission * read,write)


      I am using WebSphere as an application server. Do I need to have a special policy file or something else?

      Many thanks in advance

      Simone
        • 1. Re: Error 500: Server caught unhandled exception from servlet
          DrClap
          Before you start solving the problem you need to have a clue what it is. Some error happened in your JSP. You'll find the stack trace in one of the Websphere log files.
          • 2. Re: Error 500: Server caught unhandled exception from servlet
            843797
            Thanks. I had a look at the log file but it doesn't tell me much really.
            The ServiceDiscoveryAgent is my JavaBean.
            Does it say anything to you?

            Thanks

            Simone

            Websphere Activity Log:

            * : access denied (java.util.PropertyPermission * read,write)

            ServiceDiscoveryAgent in {file:/C:/WSDK_v5/appserver/installedApps/DefaultNode/ServiceOne.ear/ServiceOne.war/}

            java.security.AccessControlException: access denied (java.util.PropertyPermission * read,write)
                 at java.security.AccessControlContext.checkPermission(AccessControlContext.java(Compiled Code))
                 at java.security.AccessController.checkPermission(AccessController.java(Compiled Code))
                 at java.lang.SecurityManager.checkPermission(SecurityManager.java(Compiled Code))
                 at com.ibm.ws.security.core.SecurityManager.checkPermission(SecurityManager.java(Compiled Code))
                 at java.lang.SecurityManager.checkPropertiesAccess(SecurityManager.java:1266)
                 at java.lang.System.getProperties(System.java:522)
                 at org.uddi4j.transport.TransportFactory.newInstance(TransportFactory.java:76)
                 at org.uddi4j.client.UDDIProxy.<init>(UDDIProxy.java:113)
                 at ServiceDiscoveryAgent.<init>(ServiceDiscoveryAgent.java:83)
                 at org.apache.jsp._ServiceDiscoveryList._jspService(_ServiceDiscoveryList.java:74)
                 at com.ibm.ws.webcontainer.jsp.runtime.HttpJspBase.service(HttpJspBase.java:89)
                 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
                 at com.ibm.ws.webcontainer.jsp.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:344)
                 at com.ibm.ws.webcontainer.jsp.servlet.JspServlet.serviceJspFile(JspServlet.java:598)
                 at com.ibm.ws.webcontainer.jsp.servlet.JspServlet.service(JspServlet.java:696)
                 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
                 at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java:110)
                 at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java:174)
                 at com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycleServlet.java:313)
                 at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java:116)
                 at com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java:258)
                 at com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java:42)
                 at com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java:40)
                 at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:872)
                 at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:491)
                 at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:173)
                 at com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java:79)
                 at com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:199)
                 at com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:71)
                 at com.ibm.ws.webcontainer.cache.invocation.CacheableInvocationContext.invoke(CacheableInvocationContext.java:114)
                 at com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:187)
                 at com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSEListener.java:331)
                 at com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection.java:56)
                 at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:432)
                 at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:343)
                 at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:592)