View Single Post
  #1 (permalink)  
Old May 5th, 2005, 10:53 PM
Stephen Lam Stephen Lam is offline
Registered User
 
Join Date: Mar 2005
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to Stephen Lam
Default Read First !! An Important Error

Dear all,

I try the Professional Java Security ISBN: 1-861004-25-7.
I run the chapter 11 (Securing a Large Application).
Get the following error.

Please help me !! :-)

Thank you very much.
--------------------------------------------------------------------

[u]Description</u> The server encountered an internal error () that prevented it from fulfilling this request.

exception

javax.servlet.ServletException: access denied (java.net.SocketPermission 127.0.0.1:1099 connect,resolve)
    ecommerce_example.servlet.AbstractEcommerceServlet .init(AbstractEcommerceServlet.java:33)
    javax.servlet.GenericServlet.init(GenericServlet.j ava:211)
    sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
    sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39)
    sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
    java.lang.reflect.Method.invoke(Method.java:324)
    org.apache.catalina.security.SecurityUtil$1.run(Se curityUtil.java:241)
    java.security.AccessController.doPrivileged(Native Method)
    javax.security.auth.Subject.doAsPrivileged(Subject .java:500)
    org.apache.catalina.security.SecurityUtil.execute( SecurityUtil.java:268)
    org.apache.catalina.security.SecurityUtil.doAsPriv ilege(SecurityUtil.java:157)
    org.apache.catalina.security.SecurityUtil.doAsPriv ilege(SecurityUtil.java:110)
    org.apache.catalina.valves.ErrorReportValve.invoke (ErrorReportValve.java:117)
    org.apache.coyote.tomcat5.CoyoteAdapter.service(Co yoteAdapter.java:160)
    org.apache.coyote.http11.Http11Processor.process(H ttp11Processor.java:793)
    org.apache.coyote.http11.Http11Protocol$Http11Conn ectionHandler.processConnection(Http11Protocol.jav a:702)
    org.apache.tomcat.util.net.TcpWorkerThread.runIt(P oolTcpEndpoint.java:571)
    org.apache.tomcat.util.threads.ThreadPool$ControlR unnable.run(ThreadPool.java:644)
    java.lang.Thread.run(Thread.java:534)




Stephen
Reply With Quote