SimpleCallbackHandler no longer in weblogic.jar for WebLogic 10.3g

I was using the weblogic.security.SimpleCallbackHandler in WebLogic 9.2 to authenticate users. I looked at the documentation for 10.3g and it still mentions this class is available, however it is not in the weblogic.jar file nor in the javadocs. Here is the URL where I was looking. http://e-docs.bea.com/wls/docs103/security/thin_client.html#wp1035574.
The only CallbackHandler in the 10.3g release seems to be the weblogic.security.URLCallbackHandler class. I tried replacing the SimpleCallbackHandler with this class. When I put the weblogic.jar in my classpath and build, I get the following error.
class file for weblogic.security.acl.internal.AuthenticatedSubject not found
ServletAuthentication.runAs(mySubject, request);
Indeed, this class is not in the weblogic.jar file. Both SimpleCallbackHandler and AuthenticatedSubject were in the weblogic.jar for WebLogic 9.2
<code>
import javax.security.auth.Subject;
import weblogic.security.SimpleCallbackHandler;
import weblogic.security.services.Authentication;
public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception {
LoginForm loginForm = (LoginForm) form;
Subject subject = Authentication.login(new SimpleCallbackHandler(loginForm.getUsername(), loginForm.getPassword().getBytes()));
weblogic.servlet.security.ServletAuthentication.runAs(subject, request);
<./code>
Why were these removed and not deprecated???

SimpleCallbackHandler does not exist in weblogic.jar. Used the following code to get around this. WebLogic documentation offers this as an alternative to using SimpleCallbackHandler.
Subject subject = Authentication.login(new URLCallbackHandler(uid, pwd));
weblogic.servlet.security.ServletAuthentication.runAs(subject, request);
This code agrees with the snippet provided in WebLogic documentation
Project does not compile with the following error:
Project: C:\apps\11g\PrismMainApp\ViewController\ViewController.jpr
C:\apps\11g\PrismMainApp\ViewController\src\adr\prismmain\view\managed\PrismLogin.java
Error(70,28): cannot access weblogic.security.acl.internal.AuthenticatedSubject

Similar Messages

  • Weblogic.jar for Weblogic 4.5.1

    I'm trying to upgrade the Weblogic JSP Compiler optional Ant task so that it
    will
    work with newer version of Weblogic JSP Compiler. I got it to work for 6.1,
    7.0 and 8.1.
    The current released version of Ant supports only Weblogic JSP compiler
    version 4.5.1.
    I want to ensure backward compatibility with 4.5.1 jsp compiler but I don't
    have the older version of Weblogic 4.5.1. I've gone to the Bea support site
    and apparently, our company's support contract doesn't allow me to download
    older versions of WebLogic.
    How do I get my hands on the older version? I don't need the entire
    product, I just need the portion that has the Weblogic JSP Compiler
    (weblogic.jar)

    4.5.1 isn't supported anymore so I wouldn't worry about it.
    -- Rob
    newsgroups.bea.com wrote:
    I'm trying to upgrade the Weblogic JSP Compiler optional Ant task so that it
    will
    work with newer version of Weblogic JSP Compiler. I got it to work for 6.1,
    7.0 and 8.1.
    The current released version of Ant supports only Weblogic JSP compiler
    version 4.5.1.
    I want to ensure backward compatibility with 4.5.1 jsp compiler but I don't
    have the older version of Weblogic 4.5.1. I've gone to the Bea support site
    and apparently, our company's support contract doesn't allow me to download
    older versions of WebLogic.
    How do I get my hands on the older version? I don't need the entire
    product, I just need the portion that has the Weblogic JSP Compiler
    (weblogic.jar)

  • Where to download wlst.jar and python.jar for weblogic 10

    where to download wlst.jar and python.jar for weblogic 10 ? I am unable to find the links ..most of the prevoius ones point to dev2dev which are no longer valid

    Hi,
    I have written the below python script to list the user ,that was created in realms->myrealms->users.
    It's not working it.
    Kindly help to in this python script.
    from weblogic.management.security.authentication import UserReaderMBean
    from weblogic.management.security.authentication import GroupReaderMBean
    file_loc='MbeanValues.properties'
    file=java.io.File(file_loc)
    if file.exists():
         loadProperties(file_loc)
    connect(dwlusr,dwlspwd,dwlsurl)
    domain_name = cmo.getName()
    print 'UserName='+dwlusr
    print 'URL='+dwlsurl
    print 'DomainName='+ domain_name
    print 'welcome'
    print 'Checking if isMember of a group'realm=cmo.getSecurityConfiguration().getDefaultRealm()
    atns = realm.getAuthenticationProviders()
    for i in atns:
    if isinstance(i,UserReaderMBean):
    userReader = i cursor = i.listUsers("*",0)
    print 'Users in realm '+realm.getName()+' are: '
    while userReader.haveCurrent(cursor):
    print userReader.getCurrentName(cursor)
    userReader.advance(cursor)
    userReader.close(cursor)for i in atns:
    if isinstance(i,GroupReaderMBean):
    groupReader = i
    cursor = i.listGroups("*",0)
    print 'Groups in realm are: '
    while groupReader.haveCurrent(cursor):
    print groupReader.getCurrentName(cursor)
    groupReader.advance(cursor)
    groupReader.close(cursor)
    disconnect()

  • JDriver and weblogic.jar for the wlserver 6.1 sp2

    Hi all,
    After I download the jDriver for Ms sql 2000 server, I set the classpath as
    document told, I test
    it using the utils.dbping it works fine. But when I try to use it with the weblogic
    server 6.1
    I have the problem as following:
    I included the jDriver classes in the classpath of the startWeblogic.cmd as
    set CLASSPATH=.;.\lib\weblogic_sp.jar;.\lib\weblogic.jar;C:\weblogic\mssqlserver4v70\classes
    saved the startWeblogic.cmd file
    Then I start the wls with startWeblogic.cmd(the new classpath). It starts fine
    Then I setup the connection sql pool using the weblogic.jdbc.mssqlserver4.Driver
    It says "No suitable driver"
    I found that in the weblogic.jar(shipped with the weblogic 6.1) and in the jDriver
    classes, there are two files which have the same name is weblogic.jdbc.mssqlserver4.Driver.
    Because in the classpath
    .\lib\weblogic.jar comes first so weblogic server takes weblogic.jdbc.mssqlserver4.Driver
    of the weblogic.jar rather than in the jDriver classes directory. So I thought
    the matter of changing the order in the classpath (.\lib\weblogic_sp.jar;C:\weblogic\mssqlserver4v70\classes;.\lib\weblogic.jar")
    will solve the problem, but when I changed the oder in the classpath the weblogic
    server did not start AT ALL with the following errror.
    ------------------Begin error----------------------------
    C:\bea\wlserver6.1>"C:\bea\jdk131\bin\java" -hotspot -ms64m -mx64m -classpath
    ;.\lib\weblogic_sp.jar;C:\weblogic\mssqlserver4v70\classes;.\lib\weblogic.jar"
    -Dweblogic.Domain=mydomain -Dweblogic.Name=myserver -Dbea.home="C:\\bea" -Dweblogic.management.password=
    -Dweblogic.ProductionModeEnabled=true -Djava.security.policy="C:\bea\wlserver6.
    1/lib/weblogic.policy" weblogic.Server
    The WebLogic Server did not start up properly.
    Exception raised:
    java.lang.NoSuchMethodError
    at weblogic.Home.getFileSource(Home.java:66)
    at weblogic.Home.<init>(Home.java:29)
    at weblogic.Home.getInstance(Home.java:81)
    at weblogic.Home.getPath(Home.java:89)
    at weblogic.security.internal.ServerAuthenticate.main(ServerAuthenticate
    .java:77)
    at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:200)
    at weblogic.Server.main(Server.java:35)
    Reason: Fatal initialization exception
    C:\bea\wlserver6.1>goto finish
    ------------------End error----------------------------
    I wonder how can I use the jDriver with weblogic server?
    Do you have any idea what I have done wrong or how to get around with this problem?
    Please help
    Thanks in advance

    It works now.
    Thanks Laurent.
    Tom
    Laurent Goldsztejn <[email protected]> wrote:
    Hi Tom,
    Can you please make sure that the driver is defined as
    weblogic.jdbc.mssqlserver4.Driver
    and that the url starts with jdbc:weblogic:mssqlserver4
    Thank you,
    Laurent Goldsztejn
    Developer Relations Engineer
    BEA Support

  • Small weblogic.jar for jms/j2ee clients of weblogic

              We are trying to create a smaller footprint for the ~38M weblogic.jar for distribution
              to our client applications to use the JMS and J2EE features of Weblogic 7.0sp2.
              I attempted to use the whitepaper document distributed by BEA for creating a smaller
              jar file, but it did not work. Has anyone else in the user community successfully
              created the jar file and if so could they give me some insight on how they did
              it.
              Thanks,
              Ashish
              

    Hi Ashish,
              I've personally used the "URL" class loader option with success,
              and I know that several customers have also used this option, as
              well as the other options for years. Feel free to
              post more detail than "it did not work", and I may be able
              to help you out.
              Tom, BEA
              P.S. If 8.1 is an option, you may with to consider using the
              thin client jars it supplies.
              Ashish Bisarya wrote:
              > We are trying to create a smaller footprint for the ~38M weblogic.jar for distribution
              > to our client applications to use the JMS and J2EE features of Weblogic 7.0sp2.
              > I attempted to use the whitepaper document distributed by BEA for creating a smaller
              > jar file, but it did not work. Has anyone else in the user community successfully
              > created the jar file and if so could they give me some insight on how they did
              > it.
              >
              > Thanks,
              > Ashish
              

  • Need WebLogic.jar for download

    I need WebLogic.jar for development .Kindly let me no from where can i get?

    Go to support.oracle.com
    Search for document id 763603.1
    OR
    edelivery.oracle.com and use the BEA WebLogic Media Pack
    Did you try creating a wlfullclient.jar?
    http://download.oracle.com/docs/cd/E14571_01/web.1111/e13717/jarbuilder.htm#BABCGHFH

  • Need Weblogic.jar from Weblogic server 9.2

    Hi All,
    I need weblogic.jar from Weblogic server 9.2.
    but i dont want to download & install Weblogic Server 9.2.
    Is thereany way i can get only the .jar file?
    Thanks & Regards,
    BOB

    We are having this problem as well. I e-mailed BEA support, but they just said we needed to include the jar in the EAR (this is all supposed to be assembled automatically by the workshop).
    For us the issue seems to be the files not being put into the EAR automatically as they are with other types of projects. If we have to manually copy/jar up our class files then we might as well just use notepad and some batch files and skip BEA altogether.
    Edited by jmckitt at 09/18/2007 11:04 AM
    Edited by jmckitt at 09/18/2007 11:05 AM

  • Minimizing size of weblogic.jar for JavaWebStart

    We have a number of in-house client-server Swing applications. They run through
    JavaWebStart and talk to WebLogic EJB's on the backend. I'm working on a new app,
    the first on WL7, and the sheer mass of weblogic.jar is a big problem: close to
    40MB! It's so big that when I made the JWS web client into a WAR inside our app's
    ear, I got an OutOfMemoryError deploying unless I gave the weblogic.Deployer at
    least 256mb of memory! It also takes a long time to download, a long time to deploy,
    etc.. I imagine only a fraction of those classes are actually needed at runtime,
    but which ones?!? I have found nothing on Google or dev2dev, because I guess this
    sort of config is a lot less common than a JSP/servlet type set-up. Help!
    --kd

    I guess you should search for VerboseToZip utility in WLS. Search on dev2dev
    site. I saw a white paper. Title is something like "thin client jar..."
    "Kyle Downey" <[email protected]> wrote in message
    news:[email protected]..
    >
    We have a number of in-house client-server Swing applications. They runthrough
    JavaWebStart and talk to WebLogic EJB's on the backend. I'm working on anew app,
    the first on WL7, and the sheer mass of weblogic.jar is a big problem:close to
    40MB! It's so big that when I made the JWS web client into a WAR insideour app's
    ear, I got an OutOfMemoryError deploying unless I gave theweblogic.Deployer at
    least 256mb of memory! It also takes a long time to download, a long timeto deploy,
    etc.. I imagine only a fraction of those classes are actually needed atruntime,
    but which ones?!? I have found nothing on Google or dev2dev, because Iguess this
    sort of config is a lot less common than a JSP/servlet type set-up. Help!
    --kd

  • OWSM: Jar for weblogic.wsee.jws.jaxws.owsm.SecurityPolicyFeature

    I am developing a JAX-WS client to access the web service which has OWSM policy "wss_username_token_service_policy" attached to it. Hence i am trying to add the below code:
    weblogic.wsee.jws.jaxws.owsm.SecurityPolicyFeature[] securityFeature = new weblogic.wsee.jws.jaxws.owsm.SecurityPolicyFeature[]
    new weblogic.wsee.jws.jaxws.owsm.SecurityPolicyFeature( "policy:oracle/wss_username_token_service_policy")
    But I am unable to find the class SecurityPolicyFeature class in weblogic.wsee.jws.jaxws.owsm package of weblogic.jar. It only has PolicySubjectBindingFeature class in it. Hence I am unable to proceed. Can you let me know where I can find this class?

    You're welcome... If you think the answer is helpful/correct just remember to mark it accordingly... Don't just mark the question as anwered, but mark the answers as well...
    https://forums.oracle.com/forums/ann.jspa?annID=893
    Cheers,
    Vlad

  • Jar for weblogic client applications?

    I am developing a client applications that accesses some session beans from
    WLS 6.1 SP1.
    I am currently putting the weblogic.jar file in the classpath in order to
    be able to access the WLS JNDI server using T3/T3S.
    This weblogic.jar file is very large (about 25MB) and includes many things
    I am not using.
    Is there a way to make a client applications that accesses EJBs in a
    weblogic server without using that large file?
    Regards,
    Vegeta

    Please don't cross post. see my reply in weblogic.developer.interest.ejb.
    thanks,
    Michael
    Vegeta wrote:
    I am developing a client applications that accesses some session beans from
    WLS 6.1 SP1.
    I am currently putting the weblogic.jar file in the classpath in order to
    be able to access the WLS JNDI server using T3/T3S.
    This weblogic.jar file is very large (about 25MB) and includes many things
    I am not using.
    Is there a way to make a client applications that accesses EJBs in a
    weblogic server without using that large file?
    Regards,
    Vegeta--
    Michael Young
    Developer Relations Engineer
    BEA Support

  • Location of dtd for weblogic 92 for weblogic.xml

    Hi:
    Can anybody gives me the location of the dtd for the weblogic.xml file for weblogic 92.
    I can't seem to find it on google.
    Yours,
    Frustrate
    Edited by jadeite100 at 03/23/2007 6:59 AM

    In 9.x there are no DTDs as everything is now schema based. You can find the schemas here:http://www.bea.com/ns/weblogic/90/**.xsd
    So for your weblogic.xml for your weblogic-web-app you can find the xsd at:
    http://www.bea.com/ns/weblogic/90/weblogic-web-app.xsd
    Hope this helps!
    -Jesus

  • Could not find Patch CR112484_81sp1.jar for WEBLOGIC 8.1

    Due problem with ACTUATE Server 7 WE have to install this patch but we could not
    find it ?
    Where is it on WL8.1 reference site ?
    Thanks

    Hello,
    As these patch is not publically avialble through BEA Advisories....so you need to open a support case to get this patch. Or otherwise you can upgrade to WLS 8.1 sp2 ,as this issue is fixed in this service pack.
    Regards,
    Kuldeep.

  • Package api.jar in WebLogic 10.3

    Hi,
    in Oracle WebLogic 10.3 (windows xp release) the package api.jar in WL_HOME\wlserver_10.3\server\lib is just 1 kb and has no classes inside (just a META-INF directory).
    Is this a bug in weblogic installation because in WebLogic 10.0 the api.jar is about 1 mb and has all the servlet classes etc. inside?
    Any help would be greatly appreciated.
    Thanks in advance
    - Stephan

    You stopped too soon, open the META-INF directory and the MANIFEST.MF file to see which jar files are referenced.
    In the 8.1 world, you could use weblogic.jar for client applications and all the classes you need were in one place.
    In the 10.3 world, the server has been modularized into many different pieces. However, you can build a complete jar called the wlfullclient.jar using a tool called JarBuilder that works much like the way the 8.1 world works. Please reference the following 2 links:
    http://edocs.bea.com/wls/docs103/client/basics.html#wp1069994
    http://edocs.bea.com/wls/docs103/client/jarbuilder.html

  • Where can i find javax.servlet.http.httpServletRequest in weblogic jars

    Hi,
    i'm migrating from weblogic 8 to weblogic 10.3.
    in my java codes, i use import javax.servlet.http.httpServletRequest. Previously this package can in found in weblogic.jar in weblogic 8.
    However weblogic.jar for 10.3 does not have this package. Where can i find this package?
    Thanks

    oh i see. the api.jar has the indicate the path to the servlet package.
    /modules/javax.servlet_1.0.0.0-2-5.jar.
    Thanks for the guidance.:)

  • Which jar Conains weblogic.jdbc.extensions.WLConnection in Weblogic 10.3

    Hi,
    Thank you in advance for your help.
    I am upgrading my application from weblogic 9.2 to weblogic 10.3. My app uses weblogic.jdbc.extensions.WLConnection. This class is in weblogic.jar of weblogic 9.2. Which jar contains this class in weblogic 10.3?
    Please advise,
    Best Regards.
    John

    It's in the com.bea.core.datasource_1.4.0.0.jar in modules directory.

Maybe you are looking for

  • Project No Longer Loads

    I have been working on a project for several weeks. Two days ago I tried to load it to work on it but after the progress bar reaches 100%, it just sits there. I tried starting another project and importing some video and it appears to work. The lost

  • Problem with Confirmation (BUS2203) Process Controlled Workflow SRM 7.0

    Hi gurus, I'm having a bit of trouble with the Process-Controlled approval workflow for the business object "BUS2203" (Confirmation) in SRM 7.0. Basically, I've configured it to determine N-process levels, and for each level to retrieve the correspon

  • Too late to start up with Aperture?

    I'm aware of both Aperture and iPhoto being trashed by Apple in the near future. I have been using iPhoto on my MacBook Pro since it was introduced and usually do some additional editing as required using Adobe Photoshop Elements. But now I'm startin

  • Difference between wait() and sleep()

    hi can any one tell me what is the difference between wait() and sleep(). thanks in advance.

  • Determination of Book Quantity in Physical Inventory

    Dear Experts, May we know how is the Book Quantity in MI20 being determined? Because when we processed a physical inventory, the book quantity as per MI20 differs from the inventory balance in MB51. Your help will be rewarded. Thank you.