What is the best way to deploy/update custom security realm classes to WLS 6.0?

From the WLS 6.0 console, I see that I can specify the Java class that
implements my custom security realm but I am wondering what is the best way
to deploy/update this code. I don't see a way to do this from the console.
Does this mean that I have to manually copy the class files over that
implement my custom security realm?

Thanks Danut,
A jar file seems to be a good way to package it up but it sounds like it
still needs to be manually copied to each Weblogic server install directory
post-installation and whenever it is updated. I thought it would be nice to
be able to deploy/update the custom security realm by uploading it through
the Console just as you can with web applications and EJBs.
Brian
"Danut Prisacaru" <[email protected]> wrote in message
news:3aba2db0$[email protected]..
You have to have your Custom Realm class in the class path. I usually havea
jar file with all the Custom Realm classes and that jar I copy it in thelib
folder. Then I modify "startWebLogic.cmd" and I add to the classpath
".\lib\CustomRealm.jar"
set
CLASSPATH=.;.\lib\weblogic_sp.jar;.\lib\weblogic.jar;.\lib\CustomRealm.jar;
>
Be aware that in order to have you custom realm besides creating thecustom
realm using the console you also have to create a custom caching andchoose
that one as your default caching realm.
Here is how the security settings are looking in my "config.xml"
<CustomRealm Name="CustomRealm"
RealmClassName="Custom.appserver.weblogic.security.CustomRealm"/>
<CachingRealm BasicRealm="CustomRealm" CacheCaseSensitive="true"
Name="CustomCachingRealm"/>
<Realm CachingRealm="CustomCachingRealm" FileRealm="wl_default_file_realm"
Name="wl_default_realm"/>
<FileRealm Name="wl_default_file_realm"/>
<Security GuestDisabled="false"
Name="mydomain" PasswordPolicy="wl_default_password_policy"
Realm="wl_default_realm"/>
Danut

Similar Messages

  • What is the best way of deploying a jsp and bc4j aplication

    Hi
    I would like to know what is the best way of deploying a jsp and
    bc4j aplication in ias 9i.
    thanks in advanced
    rjc

    In the page I simply referenced the facescontext directly... no need for a custom servlet.
    public void createcookie() {
    FacesContext fc = FacesContext.getCurrentInstance();
    HttpServletResponse resp = (HttpServletResponse)fc.getExternalContext().getResponse();
    Cookie userCookie = new Cookie("cookiename", "cookievalue");
    userCookie.setMaxAge(-1);
    userCookie.setMaxAge(3600);
    resp.addCookie(userCookie);
    return null;
    public String readcookie() {
    FacesContext fc = FacesContext.getCurrentInstance();
    ExternalContext ec = fc.getExternalContext();
    Map cookiemap = ec.getRequestCookieMap();
    if (cookiemap != null) {
    Cookie cookie = (Cookie) cookiemap.get("cookievalue");
    return cookievalue;
    For reference I could not get getCookies() method of HttpServletRequest to work.. it would only return JSESSIONID.

  • I am a Creative Cloud customer . . . what is the best way to contact Adobe Customer Support???

    I am a paying Creative Cloud customer . . . that being said . . . what is the best way to contact Adobe Customer Support???

    Hi miami730,
    Please refer the link: http://helpx.adobe.com/in/contact.html to contact customer support.
    Regards,
    Romit Sinha

  • What is the best way to zero a 'custom voltage with excitation' sensor from the front panel?

    What is the best way to zero a 'custom voltage with excitation' sensor from the front panel?
    Thanks for any help

    Hi Donavan,
    There are two options for zeroing with the NI-9237.  You can perform offset nulling and shunt calibration with a strain task, or if you use custom excitation you can use software compensation.
    See the Bridge Balancing, Offset Nulling section in  the Load, Force, and Torque Measurements tutorial. Take a measurement before the strain is applied and subtract this from all subsequent measurements.  See the above tutorial to consider the tradeoff in accuracy between these two options.
    Hope this helps,
    Jennifer O.
    Applications Engineer
    National Instruments

  • What is the best way to make drawings an notes during class (on my iPad), which I can add to my (digital) handout later on?!

    What is the best way to make drawings an notes during class (on my iPad), which I can add to my (digital) handout later on?!

    Hello BDAqua, thanx for the suggestions. Before I saw this reply I tried to first quit the finder and then to relaunch the Finder but that resulted was a blank gray screen.
    In the end I ended up having to power down the iMac.
    Fortunately the RAID array that was "active" seems to be fine and also has a firewire 800 connection so I can use it_ just not with thunderbolt until this issue is solved.
    I'm going to check in the Applications>Utilities>system log to see if any clues are evident_ thank you for the suggestion.
    PS: Nothing of note was obvious as a root cause in the Activity Monitor though.
    hmmm....I was told that the Helios and seritek card were compatable and that the Helios didn't require any drivers..it will be a drag if there isn't an easy fix for this since this new PCIe card from seritek is the first to offer port multiplier compatibility for eSATA to thunderbolt...since they are both new I'm hoping that an OS upgrade will be the fix (presently7.2)...we shall see.

  • What is the best way to deploy application that uses web services?

    Hi all,
    I'm having some problems figuring out the best way to deploy our app now that we've switched over to using web services.
    I'm fairly new to Java and web services. From what I understand, JNLP and WebStart are methods to deploy Java clients to users and not for creating war files and the like.
    Here's a little background:
    We have a large PowerBuilder/Oracle application. The db consists of over 500 tables and the client consists of several thousand PB components. A user creates "transactions" which contain a series of "sub-transactions" within. Most of the data is collected and stored locally in the client in a series of datastores. When the "finalize" happens, the records are validated and sent to the database.
    We are in the process of moving each of the subtransactions (currently in the PB client) into subPROCESSES on a java project. We are using the JAX-WS framework to develop the web services in Netbeans. These web services aren't much more than remote xml as the messaging technology. For writing data back to the database, we are using the Java Persistence API to function outside of an EJB container but will shortly be migrating to the Glassfish application server to use several of the EJB container frameworks including the EntityManager.
    We haven't attempted any type of deployment and are unsure of where to start. Any suggestions would be so helpful and appreciated!
    Thanks!
    Edited by: doubleEspresso on Jan 10, 2008 8:06 AM

    >
    I'm fairly new to Java and web services. From what I understand, JNLP and WebStart are methods to deploy Java clients to users and not for creating war files and the like. >Correct, while Java Web Start has 'web' in the name, it has little if anything to do with web applications - certainly not providing much toward their installation. It is for launching rich client GUI based (AWT, Swing, SWT..) applications onto the end-user's desktop.
    There are some parts of JWS that might seem peripherally useful to the installation of a web-app., but it is really not a 'good fit'.
    >
    ..Any suggestions would be so helpful and appreciated!>You might try the forums for the 'web tier' APIs.
    <http://forum.java.sun.com/category.jspa?categoryID=20>
    Or perhaps the forum 'Java Technologies for Web Services' (under 'enterprise technologies')
    <http://forum.java.sun.com/forum.jspa?forumID=331>
    This one in 'BigAdmin' seems particularly relevant, 'Set up and Deploy'
    <http://forum.java.sun.com/forum.jspa?forumID=550>

  • What is the best way to deploy an application ??

    Hi,
    Please advise me how to automate in a best way to Deploy 10 different applications(.ear/.war)
    to 10 different Clusters(containing 40 Managed servers) in wls6.1......and that
    too in a Production environment.
    I know that we can use weblogic Console to deploy an application BUT if i have
    2 unix boxes and each box contains 4-4 clusters(each containing 16-20 managed
    servers) .....then i have to open up 2 Admin server consoles to deploy each of
    the respective applications and that too deploying these application to 8 clusters.....OR
    i can use deploy commad to do the same.
    AND if i have like 100 clusters .....then i would have to "deploy" 100 times ......
    is there any way that we can BEST AUTOMATE this process.
    Thanks a lot.
    -sangita

    Thanks Tommy. but i would like to know a very important point here: this is using
    the weblogic.utility that you just talkd about.
    Suppose iam having an ADMIN server that has say 10 clusters and 50 managed servers
    underneath to take care.
    1 cluster each = 5 managed server
    now iam deploying a simple .war file to say a single managed server, i have found
    out that it takes a looot of time to get the application deployed.
    what do you say about this situation ?
    what is the best approach ??????
    -sangita
    "Tomy Mathew" <[email protected]> wrote:
    >
    >
    To deploy the application from the command prompt in WebLogic 6.1 you
    use the
    following command
    $JAVA_HOME/bin/java -cp $WL_HOME/weblogic.jar weblogic.deploy -port $WEBLOGIC_PORT
    -host $WL_HOST_IP $WEBLOGIC_CMD $WEBLOGIC_PWD -component $WL_Server_NAME:$WL_Server_NAME
    $WL_APPLICATION_NAME YourApplication.war
    $WEBLOGIC_CMD sould be DEPLOY for the first time deployment and UPDATE
    for redeployment
    For deploying in a cluster you better create a shell script which call
    the above
    command with different cluster ip address as a parameter.
    Tomy
    "sangita" <[email protected]> wrote:
    Thanks Rob for your expertise advise. I would check to see wls8.1's
    ANT tasks.....for
    wls6.1, i would guess shell scripts to be a better option for us.
    thanks again.
    Rob Woollen <[email protected]> wrote:
    If you're using 8.1, then it's pretty nice to use ant for
    configuration/deployment/starting and stopping servers etc. There's
    a
    wlconfig task to do configuration, wldeploy to deploy applications,
    wlserver to start/stop servers.
    For 6.1, it's probably not a huge win to use ant. It's up to you.
    If
    you're more comfortable using shell scripts, that's certainly a
    reasonable route.
    -- Rob
    sangita wrote:
    Thanks Rob.
    But all the stuff that ANT can do for me FOR DEPLOYMENT (ONLY) .....ican do it
    from a simple shell script too.
    And i understand of ANT's cross-platform environment and usage of
    JAVA
    .....but
    can i use ANT to do something like CONFIGURING my wls6.1 managed
    servers/clusters/creating
    managed servers/db connection pools ......and all the other configurationthat
    i do from wls console(or manually) ....????
    and if yes, do you know of any examples, suggestions, ideas ?????
    basically, if i need to sell(?) ANT to my juniors ......what are
    the
    basic reasoning
    i can put forward....keeping in mind that these guys use wls6.1 &
    wls8.1......and
    these guys do CONFIGURATION and DEPLOYMENT only.
    sorry for asking, may be these silly questions.
    thanks, sangita
    Rob Woollen <[email protected]> wrote:
    sangita wrote:
    Thanks Rob.
    Rob, do you still consider or suggest using ANT for deploying say
    20
    applications
    on a 10 clustered environment.Yes
    do you see any advantages using [ANT + weblogic.deploy]..... over
    simply
    using
    weblogic.deploy utility ???Yes. ANT essentially gives you a cross-platform environment that
    allows
    extensibility through java. It's very powerful.
    -- Rob
    -sangita
    Rob Woollen <[email protected]> wrote:
    sangita wrote:
    Rob,
    I have found the answer for my question #1 ...this is the URL:
    http://edocs.bea.com/wls/docs81/admin_ref/ant_tasks.html
    iam still hoping to hear back from you for #2, #3
    thanks a ton.
    "sangita" <[email protected]> wrote:
    Thanks Rob.
    quick question:
    1) do you know of any example which illustrates the use of ANT
    wrapper....or
    please
    direct me to a URL where i can find some documentation about
    it.
    2) does this ANT wrapper has any advantages over using weblogic.Deployer
    utility
    ??If you're doing deployment via ant, then it's a bit more convenientto
    use <wldeploy> rather than invoking a raw <java> process, but
    fundamentally it's just a wrapper around weblogic.Deployer
    3) i would certainly check to see weblogic.deploy for wls6.1
    ....can
    i use ANT
    for deployment purpose in wls6.1 ?You'll just need to wrap it in a <java> task
    See:
    http://ant.apache.org/manual/CoreTasks/java.html
    -- Rob
    Rob Woollen <[email protected]> wrote:
    If you were using WLS 7.0 or later, you could use weblogic.Deployer.
    If
    you were using 8.1, you could use wldeploy which is an ant task
    wrapper
    for weblogic.Deployer.
    In WLS 6.1, you'll have to use weblogic.deploy which is a bit
    cumbersome, but it's still certainly possible to script deployment.
    -- Rob
    sangita wrote:
    Hi,
    Please advise me how to automate in a best way to Deploy
    10
    different
    applications(.ear/.war)
    to 10 different Clusters(containing 40 Managed servers) in
    wls6.1......and
    that
    too in a Production environment.
    I know that we can use weblogic Console to deploy an application
    BUT
    if i have
    2 unix boxes and each box contains 4-4 clusters(each containing
    16-20
    managed
    servers) .....then i have to open up 2 Admin server consoles
    to
    deploy
    each of
    the respective applications and that too deploying these applicationto 8 clusters.....OR
    i can use deploy commad to do the same.
    AND if i have like 100 clusters .....then i would have to "deploy"100 times ......
    is there any way that we can BEST AUTOMATE this process.
    Thanks a lot.
    -sangita

  • What is the best way to deploy a cert office wide

    We need to find a way to deploy a cert to 400 systems. What would be the best way to go about this please and thanks

    HELLO!!! WELCOME BACK!! I THINK YOU SHOULD USE
    deploy....Hey Thanks.
    is there any network congestion OR any other problem that i can anticipate before i use "deploy" utility. I have heared of some problems(i couldn't remember them now ....because honestly, i couldn't understand them atall when a BEA consultant told me those...).
    so, any problem that may arise ....that i need to think about before deploying ~10 applications to like ~70-80 clusters ....all at a time.
    thanks again for your advise. iam learning to see the big picture of application deployment.
    -sangita

  • What is the best way to deploy a java application ??

    Hi,
    I have a question about "deploying" a java application on to a weblogic server.
    Please advise me how to automate in a best way to Deploy 10 different applications(.ear/.war) to 10 different Clusters(containing 40 Managed servers) in wls6.1......and that too in a Production environment.
    I know of using Weblogic Console OR the "deploy" utility to do so ......BUT if i have like 100 clusters .....then i would have to "deploy" 100 times ......
    is there any way that we can BEST AUTOMATE this process.
    Thanks a lot.
    -sangita

    HELLO!!! WELCOME BACK!! I THINK YOU SHOULD USE
    deploy....Hey Thanks.
    is there any network congestion OR any other problem that i can anticipate before i use "deploy" utility. I have heared of some problems(i couldn't remember them now ....because honestly, i couldn't understand them atall when a BEA consultant told me those...).
    so, any problem that may arise ....that i need to think about before deploying ~10 applications to like ~70-80 clusters ....all at a time.
    thanks again for your advise. iam learning to see the big picture of application deployment.
    -sangita

  • What is the best way to deploy Lion over network

    Hi All...
    Ok... so I've created a boot disk using the image I downloaded from the app store..  (the one inside the application)
    and created a netinstall image using package maker and siu.  I transfer that image to the deployment folder om the server... and all seems to be working
    fine on the client side... except that right before installation I get an error saying the image is missing a component... Server...
    Does anyone know why I would get an error saying im missing the Server in my image when I'm not trying to install the server?
    Should I try creating a new boot disk and image in siu?
    Oh... and im burning the image to a disk... and using that as my source in siu... if that helps.
    Thanks for any help

    Thanks Danut,
    A jar file seems to be a good way to package it up but it sounds like it
    still needs to be manually copied to each Weblogic server install directory
    post-installation and whenever it is updated. I thought it would be nice to
    be able to deploy/update the custom security realm by uploading it through
    the Console just as you can with web applications and EJBs.
    Brian
    "Danut Prisacaru" <[email protected]> wrote in message
    news:3aba2db0$[email protected]..
    You have to have your Custom Realm class in the class path. I usually havea
    jar file with all the Custom Realm classes and that jar I copy it in thelib
    folder. Then I modify "startWebLogic.cmd" and I add to the classpath
    ".\lib\CustomRealm.jar"
    set
    CLASSPATH=.;.\lib\weblogic_sp.jar;.\lib\weblogic.jar;.\lib\CustomRealm.jar;
    >
    Be aware that in order to have you custom realm besides creating thecustom
    realm using the console you also have to create a custom caching andchoose
    that one as your default caching realm.
    Here is how the security settings are looking in my "config.xml"
    <CustomRealm Name="CustomRealm"
    RealmClassName="Custom.appserver.weblogic.security.CustomRealm"/>
    <CachingRealm BasicRealm="CustomRealm" CacheCaseSensitive="true"
    Name="CustomCachingRealm"/>
    <Realm CachingRealm="CustomCachingRealm" FileRealm="wl_default_file_realm"
    Name="wl_default_realm"/>
    <FileRealm Name="wl_default_file_realm"/>
    <Security GuestDisabled="false"
    Name="mydomain" PasswordPolicy="wl_default_password_policy"
    Realm="wl_default_realm"/>
    Danut

  • What is the best way to deploy Web Dynrpo DC without NWDI?

    Hi, SDN Fellow.
    We are currently developed our WDP DC without using NWDI (we are just creating local DC of the Web Dynpro project.)
    Now, we need to send our deployment archive to the sys. admin team to transport them to Dev from Sandbox.
    I just wonder should I just deploy the ear file that located in the .../dc_name/gen/default/deploy/xxx.ear by using SDM? Or there is a more proper way for us to deploy our WDP DC works?
    I know that I can just set up the J2EE engine of the Dev / QA box and deploy them, but it doesn't seems like the right procedure to do so.
    Please suggest, thanks.
    Thanks.
    Kent

    Hi, Maksim
    > >>but it doesn't seems like the right procedure to do
    > so.
    What I means it does not make sense is deployment through NWDS.
    System admin usually will not install a NWDS to deploy the ear, but they will use SDM to deploy the ear files.
    I just need to verify there is the best practice to do so.
    Thanks for your answer.
    Kent

  • What is the best way to deploy an applet using iWeb

    I have an applet with a very standard applet tag.
    I don't see any way to deploy that directly.
    So instead, I just create an html snippet widget, and paste in the applet tag.
    Very simple standard stuff
    <applet codebase="xx" code="xx.class" etc>
    <parameter ...>
    <parameter ...>
    etc
    </applet>
    iWeb has not seen my applet yet, so it is just a bunch of html code.
    The problem is that it is hanging forever.
    Apparently it is throwing some kind of exception.
    Give it a try and you will see.
    Whatever shall I do to get my applet deployed?
    Thanks, Victor

    I have an applet with a very standard applet tag.
    I don't see any way to deploy that directly.
    So instead, I just create an html snippet widget, and paste in the applet tag.
    Very simple standard stuff
    <applet codebase="xx" code="xx.class" etc>
    <parameter ...>
    <parameter ...>
    etc
    </applet>
    iWeb has not seen my applet yet, so it is just a bunch of html code.
    The problem is that it is hanging forever.
    Apparently it is throwing some kind of exception.
    Give it a try and you will see.
    Whatever shall I do to get my applet deployed?
    Thanks, Victor

  • What is the best way to make a custom arch install cd?

    Hello, before I start I should mention that I have been reading about various tools and looking at wiki articles.  But I have had some trouble getting started.
    What I would like is an install cd that installs the packages I choose.  I'd like this to be either automatic, or allow me to select the packages I want (which are presumably on the cd), just like in the normal way of installing arch perhaps, maybe.
    I'd just like a way of installing arch, the way it is set up now, with minimal hassle, no internet access, just pop the cd in and out comes archlinux with a nice desktop environment so I can give it to my mum without having to travel hundreds of miles to install it for her.
    "just pop the cd in and out comes archlinux with a nice desktop environment" -Ahahahahahaha, I hear you react.  Well, you know, at least I would like it to be no MORE difficult than the standard install procedure. 
    For example, is there no way I can just download the .pkg.tar.gz files I want, add 'em to the fracking archlinux iso I download from here, meddle about with a config file so pacman knows where to find the additional pkg.tar.gzips, and then run a script afterwards to copy a few configuration files to the relevant locations?  No?  Won't work? 
    At least, I have not discovered a way to do this yet.  Please can someone get me started?
    Should I maybe start HERE?
    http://wiki.archlinux.org/index.php/Qui … stallation
    It says it "may contain old, confusing and wrong information" -how unusual... 
    Larch looks pretty good, will this do what I want?
    I actually think larch is definitely the answer.  I'm gonna mark it solved.  Even though I will probably have some trouble with it.  Sorry for asking this question for the hundredth time, but, well, the forums were down yesterday (the day I was trying to do this, obviously).
    Maybe I'll leave it unsolved until I get specific errors...
    Last edited by darkbeanies (2009-09-01 16:44:00)

    darkbeanies wrote:
    Yeah, I like xfce, but I'd give her the excellent chakra if I was going to give her a ready made thing, which I might do if things go wrong...
    But that isn't what I'm trying to do.  I want to learn how to build an install disc, too.  It takes me a long time to get arch up and running.  I would like to know how to automate it so that I end up with my own personal humble distribution.
    I realize there are many alternatives to doing what I am trying to do. But there are a hundred reasons I can think of why a custom archlinux install cd made by me that goes "do you want to install y/n" and then you press y and it formats the disk, shoves the stuff on and then it works would be the best option.
    This assumes, of course, that my mum can plug in the computer, monitor, mouse, keyboard and speakers, insert the disc and press y, all of which are long shots.
    Anyway, I'm making some progress with larch now.  I can roughly see how it's going to work, it's pretty straightforward, so it would seem.
    Thanks!
    Yeah I see your point. I like archiso because he has a barebone option there, and you can build it the way you like it from there. I just had trouble getting Arch to run for me, so his iso was just easier as I am very unlearned in linux, and at 63 I dont have a lot of time, or energy to learn what it seems everyone but me knows. I still have to work to earn a living, and with a limited education I may be more dense than alot of the younger folks on here, so this just made it a little easier for me. Good luck with it, I hope you get what your after.
    Maybe have a look at ISOMaster too, it seems simple enough to use.
    Last edited by regibbs1 (2009-09-01 22:40:45)

  • What's the best way to insert/update thousands records in multiple tables

    Can anyone give an example of how to insert/update thousands records in multiple tables on performance wise? or what should I do to improve the performance?
    Thanks
    jim

    You can see a set of sample applications in various scenarious available at
    http://otn.oracle.com/sample_code/tech/java/sqlj_jdbc/content.html

  • What is the best way to deploy Flash in the Enterprise?

    We would like to deploy Flash Player in our corporate environment.
    Users are NOT administrators of their local machines, so just installing it on the image and leaving it is not an option.
    Telling users not to click the large Adobe Flash Player has an update splash screen is also not an option.
    1) How do you install Flash Player in an Enterprise environment?
    Please include answer with a guided installation document, as the SCUP document is not end-to-end.
    2) How do you disable Flash Player update notifications?
    Please advise,
    Andy

    Hi,
    Thanks for this, but I am looking for a enterprise class solution: i.e. installing hundres of machines with automation and reporting.  We are already aware of the MSI, but the automatic installation recently started failing since we migrated to Windows 7 and users are non-admins.  We also plan on keeping UAC turned on, so running the MSI with the SYSTEM account in a script fails.
    Again, we are looking for an end-to-end solution, possibly using SCCM and SCUP.  In essence, documentation and web chatter points to being able to:
    1) automatically have SCUP poll Adobe.com for updates
    2) automatically have SCUP publish it to SCCM when available
    3) push it out to WSUS as an update
    4) clients automatically update it as part of Windows Update.
    I have the bits and pieces, but have failed putting it all together.
    I know I am not the only person administrating a large company and uses Flash.... help!

Maybe you are looking for