2 Replies Latest reply on Feb 26, 2002 7:52 PM by 3004

    7.0 beta - security problem using servlet

    3004



      hello,

      i'm testing our product on your 7.0 beta... we currently support 6.0, 6.1, and
      6.1 sp2 (oh, and 5.1)... essentially, i have my application deployed and i have
      created my pool and datasources fine. I can see that my pool is being created
      on startup.

      I can call a simple hello world servlet fine, but when i call a servlet that attempts
      to make a connection to the database using the datasource, i get the following
      error:

      ----------------------------------------------
      <Feb 26, 2002 1:25:06 PM EST> <Error> <HTTP> <101020> <[WebAppServletContext(500
      2918,cs,/cs)] Servlet failed with Exception
      java.lang.IllegalAccessError: java.security.acl.NotOwnerException
      at weblogic.security.acl.Realm.getRealm(Realm.java:94)
      at weblogic.security.acl.Realm.getRealm(Realm.java:39)
      at weblogic.security.acl.Realm.authenticate(Realm.java:186)
      at weblogic.security.acl.Realm.getAuthenticatedName(Realm.java:236)
      at weblogic.security.acl.internal.Security.authenticate(Security.java:13
      6)
      at weblogic.security.acl.Security.doAsPrivileged(Security.java:507)
      at weblogic.jdbc.common.internal.RmiDataSource.getConnection(RmiDataSour
      ce.java:149)
      at COM.FutureTense.Servlet.JNDIConnection.initClass(JDBCConn.java:174)
      at COM.FutureTense.Servlet.theConnection.<init>(JDBCConn.java:65)
      at COM.FutureTense.Servlet.JNDIConnection.<init>(JDBCConn.java:129)
      at COM.FutureTense.Servlet.JDBCConn.<init>(JDBCConn.java:284)
      at COM.FutureTense.Servlet.FRequestObj.CreateConnection(FRequestObj.java
      :478)
      at COM.FutureTense.Common.FTConnection.get(FManager.java:462)
      at COM.FutureTense.Common.FManager.getDataConn(FManager.java:415)
      at COM.FutureTense.Common.ftAppLogic.getDataConn(ftAppLogic.java:954)
      at COM.FutureTense.Common.ftDBTable.getconn(ftDBTable.java:3437)
      at COM.FutureTense.Common.ftDBTable.grab(ftDBTable.java:728)
      at COM.FutureTense.Common.ftDBTable.newgrab(ftDBTable.java:686)
      at COM.FutureTense.Common.ftSysInfo.getCol(ftSysInfo.java:485)
      at COM.FutureTense.Common.ftSysInfo.getDocBase(ftSysInfo.java:198)
      at COM.FutureTense.Common.ftAppLogic.assetDir(ftAppLogic.java:1197)
      at COM.FutureTense.Common.ftAppLogic.initBuiltinVars(ftAppLogic.java:678
      )
      at COM.FutureTense.Common.ftAppLogic.init(ftAppLogic.java:656)
      at COM.FutureTense.Common.ContentServer.execute(ContentServer.java:367)
      at COM.FutureTense.Servlet.FTServlet.execute(FTServlet.java:121)
      at COM.FutureTense.Servlet.FTServlet.doGet(FTServlet.java:75)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
      at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
      pl.java:272)
      at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
      pl.java:200)
      at weblogic.servlet.internal.WebAppServletContext$ServletInvocationActio
      n.run(WebAppServletContext.java:5115)
      at weblogic.security.service.SecurityServiceManager.runAs(SecurityServic
      eManager.java:798)
      at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe
      rvletContext.java:2963)
      at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm
      pl.java:2430)
      at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:156)
      at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:137)
      >
      <Feb 26, 2002 1:25:58 PM EST> <Info> <HTTP> <101047> <[WebAppServletContext(2086
      839,console,/console)] FileServlet: init>
      <Feb 26, 2002 1:25:58 PM EST> <Info> <HTTP> <101047> <[WebAppServletContext(2086
      839,console,/console)] FileServlet: Using standard I/O>
      <Feb 26, 2002 1:26:07 PM EST> <Info> <HTTP> <101047> <[WebAppServletContext(2086
      839,console,/console)] actions: init>
      <Feb 26, 2002 1:29:58 PM EST> <Info> <Management> <140009> <Configuration change
      s for domain saved to the repository.>
      <Feb 26, 2002 1:34:48 PM EST> <Info> <HTTP> <101047> <[WebAppServletContext(5002
      918,cs,/cs)] /*: init>
      <Feb 26, 2002 1:34:48 PM EST> <Info> <HTTP> <101047> <[WebAppServletContext(5002
      918,cs,/cs)] /*: Using standard I/O>
      <Feb 26, 2002 1:34:54 PM EST> <Error> <HTTP> <101018> <[WebAppServletContext(500
      2918,cs,/cs)] Servlet failed with ServletException
      javax.servlet.ServletException: No web services registered for this web app. Web
      ServiceServlet did not initialized properly.
      at weblogic.webservice.server.servlet.WebServiceServlet.getWebService(We
      bServiceServlet.java:130)
      at weblogic.webservice.server.servlet.WebServiceServlet.doGet(WebService
      Servlet.java:153)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
      at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
      pl.java:272)
      at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
      pl.java:200)
      at weblogic.servlet.internal.WebAppServletContext$ServletInvocationActio
      n.run(WebAppServletContext.java:5115)
      at weblogic.security.service.SecurityServiceManager.runAs(SecurityServic
      eManager.java:798)
      at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe
      rvletContext.java:2963)
      at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm
      pl.java:2430)
      at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:156)
      at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:137)
      >
      <Feb 26, 2002 1:34:59 PM EST> <Error> <HTTP> <101018> <[WebAppServletContext(500
      2918,cs,/cs)] Servlet failed with ServletException
      javax.servlet.ServletException: No web services registered for this web app. Web
      ServiceServlet did not initialized properly.
      at weblogic.webservice.server.servlet.WebServiceServlet.getWebService(We
      bServiceServlet.java:130)
      at weblogic.webservice.server.servlet.WebServiceServlet.doGet(WebService
      Servlet.java:153)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
      at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
      pl.java:272)
      at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
      pl.java:200)
      at weblogic.servlet.internal.WebAppServletContext$ServletInvocationActio
      n.run(WebAppServletContext.java:5115)
      at weblogic.security.service.SecurityServiceManager.runAs(SecurityServic
      eManager.java:798)
      at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe
      rvletContext.java:2963)
      at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm
      pl.java:2430)
      at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:156)
      at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:137)
      >

      ----------------------------------------------

      now, i know a lot has changed in your security implementation. can you tell me
      what i need to do so that i can call my servlets that use this datasource/pool?

      thanks,
      Mark