Building an Admin Console Extension for a Custom Security Provider

I am looking for an example or a description how to build an Administration Console extension for a custom Authentication Provider.
Especially the creation page for the provider is interesting because I am not able to create and register the required Authentication Provider MBean.
The call “mbeanHome.getMBeanServer().createMBean(className,objectname)” always throws the following Exception “javax.management.ReflectionException: The MBean class could not be loaded by the default loader repository”
Even if I try the class “weblogic.security.providers.authentication.IPlanetAuthenticator”, that is part of the bea distribution, the same exception is thrown.
It seams that the Problem has something to do with class loaders?
When I use the standard admin console pages to create and configure my provider everything works fine.
The only example “kennedy0208.zip” I found in the net does not deal with the creation of the MBean.
It only customizes the edit pages for the provider and at that point the MBean has already been created by the standard admin pages.
Maybe the author discovered the same Problems and gave up!?
What makes me wondering is that I have to put my MBean Classes to my console extension war file to be able to import the packages in my jsp.
If I not put the classes to my war the compiler throws an exception because he can’t resolve the package.
Because I moved my provider implementation jar to the directory “WLHOME\server\lib\mbeantypes” as described in the bea documentation it should run without putting the classes to the war!?!
I am very surprised that the bea documentation does not provide any example about this topic.

Found it. Cut and paste error. I still had one of their example class
names in my code. Oops.

Similar Messages

  • Unable to save changes in console for a custom security provider

    I built a custom security provider and dropped it in the mbeantypes folder. This gets picked up by weblogic. I then try to modify the control flags and make it SUFFICIENT. I reboot the server but when i log back in the control flag is reset to OPTIONAL. It not saving the data to the xml file. We are running it on a UNIX box.

    Hi,
    I solved the problem by myself.
    The log area was at 100%, that's why the configtool wasn't able to save my changes.
    Now I changed the backup properties for the log files to AutoLog (in the Backup Wizard) and it works fine.
    Best regards,
    Christian

  • Spring Console extension for weblogic 10.0

    Hi,
    I am trying to configure spring console extension for weblogic version 10.0 . As mentioned in some documents, I am unable to find the required jars in the server lib folder, and googled to download it, but yet no success. If any one is aware of where can I get the required jars and steps to configure spring console for version10.0, let me know.
    Thanks

    Hi
    To my surprise, When i asked my Server team to get me weblogic support, I got a response from them stating that weblogic will not support spring framework 2.5 and they sent me the link
    http://download.oracle.com/docs/cd/E13196_01/platform/suppconfigs/configs100/100_over/overview.html#1131715
    And asked me to downgrade my project to the supported version.
    But I think it is not correct, I don't have information if really my local team contacted weblogic support, or they are just sending me this link based on the document they have.
    But I don't understand why it is so hard to get this thing working. Is there many people facing this issue ?
    Or every one using apache Axis2 or CFX for web service and spring webservice is not advised ?
    Some time I don't know whom should be blamed.
    Thanks

  • Custom Security Provider impossible to remove the MBean Jar File

    Hi,
    I am currently developping a custom security provider for Weblogic. I
    have deploy my Mbean File Jar on a remote server weblogic running on
    solaris. NO authentication provider for this security provider has
    been defined in the console, it means there is no link with this
    security provider. Nevertheless, when I remove the MJF the server
    crashes when starting:
    <...>
    <May 21, 2003 3:37:08 PM CEST> <Critical> <WebLogicServer> <000364>
    <Server failed during initialization.
    Exception:weblogic.management.configuration.ConfigurationException: -
    with nested exception:
    [javax.management.MBeanException: Commo type:
    be.fgov.minfin.ccff.security.provider.CCFFSimpleSampleAuthenticator is
    not loaded. Checks MJFs.]
    javax.management.MBeanException: Commo type:
    be.fgov.minfin.ccff.security.provider.CCFFSimpleSampleAuthenticator is
    not loaded. Checks MJFs.
    at weblogic.management.commo.CommoModelMBean.load(CommoModelMBean.java:588)
    at weblogic.management.commo.Commo.initInstances(Commo.java:241)
    at weblogic.management.commo.Commo.init(Commo.java:125)
    at weblogic.management.AdminServerAdmin.initializeCommo(AdminServerAdmin.java:477)
    at weblogic.management.AdminServerAdmin.initialize(AdminServerAdmin.java:108)
    at weblogic.t3.srvr.T3Srvr.initialize1(T3Srvr.java:659)
    at weblogic.t3.srvr.T3Srvr.initialize(T3Srvr.java:589)
    at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:277)
    at weblogic.Server.main(Server.java:32)
    <...>
    I have been looking through all the config file where the MJF
    (removed) could be linked but I did not find anything.
    I am really confused because with my local weblogic running on
    win2000, there is no problem to remove this MJF.
    Thx in advance,
    tiggy

    Tiggy,
    Remove the userConfig directory under your domain directory. That should
    fix the problem.
    Thanks,
    ~satya
    Tiggy wrote:
    Hi,
    I am currently developping a custom security provider for Weblogic. I
    have deploy my Mbean File Jar on a remote server weblogic running on
    solaris. NO authentication provider for this security provider has
    been defined in the console, it means there is no link with this
    security provider. Nevertheless, when I remove the MJF the server
    crashes when starting:
    <...>
    <May 21, 2003 3:37:08 PM CEST> <Critical> <WebLogicServer> <000364>
    <Server failed during initialization.
    Exception:weblogic.management.configuration.ConfigurationException: -
    with nested exception:
    [javax.management.MBeanException: Commo type:
    be.fgov.minfin.ccff.security.provider.CCFFSimpleSampleAuthenticator is
    not loaded. Checks MJFs.]
    javax.management.MBeanException: Commo type:
    be.fgov.minfin.ccff.security.provider.CCFFSimpleSampleAuthenticator is
    not loaded. Checks MJFs.
    at weblogic.management.commo.CommoModelMBean.load(CommoModelMBean.java:588)
    at weblogic.management.commo.Commo.initInstances(Commo.java:241)
    at weblogic.management.commo.Commo.init(Commo.java:125)
    at weblogic.management.AdminServerAdmin.initializeCommo(AdminServerAdmin.java:477)
    at weblogic.management.AdminServerAdmin.initialize(AdminServerAdmin.java:108)
    at weblogic.t3.srvr.T3Srvr.initialize1(T3Srvr.java:659)
    at weblogic.t3.srvr.T3Srvr.initialize(T3Srvr.java:589)
    at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:277)
    at weblogic.Server.main(Server.java:32)
    <...>
    I have been looking through all the config file where the MJF
    (removed) could be linked but I did not find anything.
    I am really confused because with my local weblogic running on
    win2000, there is no problem to remove this MJF.
    Thx in advance,
    tiggy

  • Custom security provider exception

    Good day, colleagues. I want to raise an old topic.
    I use custom security provider exceptions:
    -AccountExpiredException
    -AccountLockedException
    However, the login() method only captures FailedLoginException
    try
      CallbackHandler pwcall = new weblogic.security.URLCallbackHandler(user, pass.getBytes("UTF-8"));
      subject = weblogic.security.services.Authentication.login(pwcall);
      weblogic.servlet.security.ServletAuthentication.runAs(subject, request);
    catch (javax.security.auth.login.LoginException e) {
      e.printStackTrace();
    javax.security.auth.login.FailedLoginException: [Security:090304]Authentication Failed: User ...
      at weblogic.security.providers.authentication.LDAPAtnLoginModuleImpl.login(LDAPAtnLoginModuleImpl.java:240)
      at com.bea.common.security.internal.service.LoginModuleWrapper$1.run(LoginModuleWrapper.java:110)
      at java.security.AccessController.doPrivileged(Native Method)
    I found similar questions IdentityAssertion custom exception, FailedLoginException asked many years ago for WLS 9.2
    Their solution (wlp.propogate.login.exception.cause=true) does not work for WLS 10.3.
    How to propagate original LoginException?
    Or exception message only.

    I did it! look closely to source code:
    javax.security.auth.login.LoginContext:875
    if (moduleStack[i].entry.getControlFlag() == AppConfigurationEntry.LoginModuleControlFlag.REQUISITE) {
      // if REQUISITE, then immediately throw an exception
      if (methodName.equals(ABORT_METHOD) || methodName.equals(LOGOUT_METHOD)) {
           if (firstRequiredError == null)
                firstRequiredError = le;
      } else {
           throwException(firstRequiredError, le);
    } else if (moduleStack[i].entry.getControlFlag() == AppConfigurationEntry.LoginModuleControlFlag.REQUIRED) {
      // mark down that a REQUIRED module failed
      if (firstRequiredError == null)
           firstRequiredError = le;
    } else {
      // mark down that an OPTIONAL module failed
      if (firstError == null)
           firstError = le;
    javax.security.auth.login.LoginContext:922
    // we went thru all the LoginModules.
    if (firstRequiredError != null) {
      // a REQUIRED module failed -- return the error
      throwException(firstRequiredError, null);
    } else if (success == false && firstError != null) {
      // no module succeeded -- return the first error
      throwException(firstError, null);
    } else...
    I set Control flag: OPTION to DefaultAuth (was REQUIRED)
    and order it after my LoginModule. (restart required!)
    Now I catch my exceptions %)

  • OEPE can't launch server that uses custom Security provider

    I recently migrated a Weblogic 8.1 server that we had a custom security provider for, to 10.3.2. It works fine when started with the startWeblogic.cmd file but when I try to start it using OEPE in eclipse it starts fine and runs fine but OEPE reports that
    "Unable to validate WebLogic domain.Please make sure the running WebLogic instance is an Administration Server"
    When I look at the Error Log it appears that it thinks one of my custom security classes is not found. But the server is running fine, so it is fine, it's on the classpath via the use of the EXT_PREPEND_CLASSPATH environment variable.
    I am running Weblogic 10.3.2 on Windows XP using eclipse Ganymede 3.5.2 and OEPE version 1.5.0.201003170852
    Here's the Error Log:
    eclipse.buildId=
    java.version=1.6.0_03
    java.vendor=Sun Microsystems Inc.
    BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
    Framework arguments: -product org.eclipse.epp.package.jee.product
    Command-line arguments: -os win32 -ws win32 -arch x86 -product org.eclipse.epp.package.jee.product
    This is a continuation of log file C:\tools\eclipse-workspaces\galileo\.metadata\.bak_3.log
    Created Time: 2010-05-12 14:04:01.549
    Error
    Thu May 13 14:25:11 EDT 2010
    Server Weblogic 10.3 failed to start.
    eclipse.buildId=
    java.version=1.6.0_03
    java.vendor=Sun Microsystems Inc.
    BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
    Framework arguments: -product org.eclipse.epp.package.jee.product
    Command-line arguments: -os win32 -ws win32 -arch x86 -product org.eclipse.epp.package.jee.product
    This is a continuation of log file C:\tools\eclipse-workspaces\galileo\.metadata\.bak_3.log
    Created Time: 2010-05-12 14:04:01.549
    Error
    Thu May 13 14:25:10 EDT 2010
    Another server (or another process) is running on the same TCP/IP port '7001'.
    eclipse.buildId=
    java.version=1.6.0_03
    java.vendor=Sun Microsystems Inc.
    BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
    Framework arguments: -product org.eclipse.epp.package.jee.product
    Command-line arguments: -os win32 -ws win32 -arch x86 -product org.eclipse.epp.package.jee.product
    This is a continuation of log file C:\tools\eclipse-workspaces\galileo\.metadata\.bak_3.log
    Created Time: 2010-05-12 14:04:01.549
    Warning
    Thu May 13 14:25:10 EDT 2010
    Unable to validate WebLogic domain.
    Please make sure the running WebLogic instance is an Administration Server
    eclipse.buildId=
    java.version=1.6.0_03
    java.vendor=Sun Microsystems Inc.
    BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
    Framework arguments: -product org.eclipse.epp.package.jee.product
    Command-line arguments: -os win32 -ws win32 -arch x86 -product org.eclipse.epp.package.jee.product
    This is a continuation of log file C:\tools\eclipse-workspaces\galileo\.metadata\.bak_3.log
    Created Time: 2010-05-12 14:04:01.549
    Error
    Thu May 13 14:25:10 EDT 2010
    java.io.IOException
         at weblogic.management.remote.common.ClientProviderBase.makeConnection(ClientProviderBase.java:187)
         at weblogic.management.remote.common.ClientProviderBase.newJMXConnector(ClientProviderBase.java:81)
         at javax.management.remote.JMXConnectorFactory.newJMXConnector(Unknown Source)
         at javax.management.remote.JMXConnectorFactory.connect(Unknown Source)
         at oracle.eclipse.tools.weblogic.server.internal.WlsJMXHelper.createConnector(WlsJMXHelper.java:269)
         at oracle.eclipse.tools.weblogic.server.internal.WlsJMXHelper.connectToJMX(WlsJMXHelper.java:76)
         at oracle.eclipse.tools.weblogic.server.internal.WlsJMXHelper.getDomainAttribute(WlsJMXHelper.java:139)
         at oracle.eclipse.tools.weblogic.server.internal.WlsJ2EEDeploymentHelper.validateRemote(WlsJ2EEDeploymentHelper.java:1687)
         at oracle.eclipse.tools.weblogic.server.internal.WeblogicServerBehaviour.validateRemote(WeblogicServerBehaviour.java:2646)
         at oracle.eclipse.tools.weblogic.server.internal.ServerWatcher.runOnce(ServerWatcher.java:574)
         at oracle.eclipse.tools.weblogic.server.internal.ServerWatcher.run(ServerWatcher.java:482)
         at java.lang.Thread.run(Unknown Source)
    Caused by: javax.naming.CommunicationException [Root exception is weblogic.rjvm.PeerGoneException: ; nested exception is:
         weblogic.utils.NestedException: java.lang.AssertionError: Exception creating response stream]
         at weblogic.jndi.internal.ExceptionTranslator.toNamingException(ExceptionTranslator.java:74)
         at weblogic.jndi.internal.WLContextImpl.translateException(WLContextImpl.java:452)
         at weblogic.jndi.internal.WLContextImpl.lookup(WLContextImpl.java:408)
         at weblogic.jndi.internal.WLContextImpl.lookup(WLContextImpl.java:393)
         at javax.naming.InitialContext.lookup(Unknown Source)
         at weblogic.management.remote.common.ClientProviderBase.makeConnection(ClientProviderBase.java:170)
         ... 11 more
    Caused by: weblogic.rjvm.PeerGoneException: ; nested exception is:
         weblogic.utils.NestedException: java.lang.AssertionError: Exception creating response stream
         at weblogic.rjvm.ResponseImpl.unmarshalReturn(ResponseImpl.java:234)
         at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:348)
         at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:259)
         at weblogic.jndi.internal.ServerNamingNode_1032_WLStub.lookup(Unknown Source)
         at weblogic.jndi.internal.WLContextImpl.lookup(WLContextImpl.java:405)
         ... 14 more
    Caused by: weblogic.utils.NestedException: java.lang.AssertionError: Exception creating response stream
         at weblogic.rjvm.RJVMImpl.gotExceptionReceiving(RJVMImpl.java:957)
         at weblogic.rjvm.ConnectionManager.gotExceptionReceiving(ConnectionManager.java:1030)
         at weblogic.rjvm.MsgAbbrevJVMConnection.gotExceptionReceiving(MsgAbbrevJVMConnection.java:459)
         at weblogic.rjvm.t3.MuxableSocketT3.hasException(MuxableSocketT3.java:327)
         at weblogic.socket.SocketMuxer.deliverExceptionAndCleanup(SocketMuxer.java:784)
         at weblogic.socket.SocketMuxer.deliverHasException(SocketMuxer.java:724)
         at weblogic.socket.JavaSocketMuxer.processSockets(JavaSocketMuxer.java:359)
         at weblogic.socket.SocketReaderRequest.run(SocketReaderRequest.java:29)
         at weblogic.work.ExecuteRequestAdapter.execute(ExecuteRequestAdapter.java:21)
         at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:145)
         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:117)
    Caused by: java.lang.AssertionError: Exception creating response stream
         at weblogic.rjvm.MsgAbbrevJVMConnection.readMsgAbbrevs(MsgAbbrevJVMConnection.java:238)
         at weblogic.rjvm.MsgAbbrevInputStream.init(MsgAbbrevInputStream.java:173)
         at weblogic.rjvm.MsgAbbrevJVMConnection.dispatch(MsgAbbrevJVMConnection.java:439)
         at weblogic.rjvm.t3.MuxableSocketT3.dispatch(MuxableSocketT3.java:322)
         at weblogic.socket.BaseAbstractMuxableSocket.dispatch(BaseAbstractMuxableSocket.java:298)
         at weblogic.socket.SocketMuxer.readReadySocketOnce(SocketMuxer.java:915)
         at weblogic.socket.SocketMuxer.readReadySocket(SocketMuxer.java:844)
         at weblogic.socket.JavaSocketMuxer.processSockets(JavaSocketMuxer.java:335)
         ... 4 more
    Caused by: java.lang.ClassNotFoundException: com.companyname.security.principal.CompanyNameWebLogicPrincipal
         at java.net.URLClassLoader$1.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.net.URLClassLoader.findClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClassInternal(Unknown Source)
         at java.lang.Class.forName0(Native Method)
         at java.lang.Class.forName(Unknown Source)
         at java.io.ObjectInputStream.resolveClass(Unknown Source)
         at java.io.ObjectInputStream.readNonProxyDesc(Unknown Source)
         at java.io.ObjectInputStream.readClassDesc(Unknown Source)
         at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
         at java.io.ObjectInputStream.readObject0(Unknown Source)
         at java.io.ObjectInputStream.readObject(Unknown Source)
         at java.util.LinkedList.readObject(Unknown Source)
         at sun.reflect.GeneratedMethodAccessor46.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at java.io.ObjectStreamClass.invokeReadObject(Unknown Source)
         at java.io.ObjectInputStream.readSerialData(Unknown Source)
         at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
         at java.io.ObjectInputStream.readObject0(Unknown Source)
         at java.io.ObjectInputStream.defaultReadFields(Unknown Source)
         at java.io.ObjectInputStream.readSerialData(Unknown Source)
         at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
         at java.io.ObjectInputStream.readObject0(Unknown Source)
         at java.io.ObjectInputStream.defaultReadFields(Unknown Source)
         at java.io.ObjectInputStream.defaultReadObject(Unknown Source)
         at weblogic.security.acl.internal.AuthenticatedSubject.readObject(AuthenticatedSubject.java:406)
         at sun.reflect.GeneratedMethodAccessor57.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at java.io.ObjectStreamClass.invokeReadObject(Unknown Source)
         at java.io.ObjectInputStream.readSerialData(Unknown Source)
         at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
         at java.io.ObjectInputStream.readObject0(Unknown Source)
         at java.io.ObjectInputStream.readObject(Unknown Source)
         at weblogic.rjvm.InboundMsgAbbrev.readObject(InboundMsgAbbrev.java:65)
         at weblogic.rjvm.InboundMsgAbbrev.read(InboundMsgAbbrev.java:37)
         at weblogic.rjvm.MsgAbbrevJVMConnection.readMsgAbbrevs(MsgAbbrevJVMConnection.java:227)
         ... 11 more

    I am also facing the same issue.
    i am running my web service program on tomcat. the server is weblogic 9.1. I am trying to invoke the EJBs running on the server from the tomcat.
    i am getting similar exception. anyone got a solution for this ?
    Caused by: weblogic.rjvm.PeerGoneException: ; nested exception is:weblogic.utils.NestedException: java.lang.AssertionError: Exception creating response stream at weblogic.rjvm.ResponseImpl.unmarshalReturn(ResponseImpl.java:234)
    thanks
    Kiranlal.

  • How to get domain name in java code/custom security provider

    Hi all,
    I've developed a custom security provider and deployed it in WL_HOME/server/lib/mbeantypes folder. I also have multiple domain created and running in the same machine. now if a user logs in from a specific domain, say, t3://localhost:7005, how do I retrieve the domain name in my custom security provider?
    I found the following code could do it, but this code needs to know the port number in advance
    Hashtable env = new Hashtable();
    env.put(Context.PROVIDER_URL,"t3://localhost:7101");
    env.put(Context.INITIAL_CONTEXT_FACTORY,
    "weblogic.jndi.WLInitialContextFactory");
    env.put(Context.SECURITY_PRINCIPAL,"weblogic");
    env.put(Context.SECURITY_CREDENTIALS,"weblogic1");
    Context ctx = new InitialContext(env);
    MBeanHome home = (MBeanHome)ctx.lookup(MBeanHome.ADMIN_JNDI_NAME);
    String domainName = home.getDomainName();
    System.out.println(domainName);
    Any help is greatly appreciated...
    Thanks,
    Philip
    Edited by: VivaCuba on Nov 14, 2010 9:43 AM

    Check out methods in the following classes: LegacyDirectoryLocator and DirectoryLocator.
    Jonathan
    http://jonathanhult.com

  • Admin Console Integration for Users in a Custom Realm

    We are implementing a custom realm and are having troubles getting our Users to
    show up in the User list.
    Our user class extends weblogic.security.acl.User, and is forced to use the default
    CTOR because our data access layer requires it.
    Unfortunately, getName() returns null if the User(String) constructor is not used.
    Furthermore, Identity::setName() is final, so it seems as though there is no
    way to set the user's name after construction.
    I am correct in this?
    If so, any thoughts on whether it is worth going down the path of making my user
    class implement Principal instead of extending weblogic.security.acl.User? I
    would be forced to try to guess at what methods in User are required to integrate
    with the admin console, I believe. I have not been able to find any documentation
    that specifies what api/contract the console uses when it attempts to display
    user, role, acl information for a custom realm.
    Any advice would be greatly appreciated.
    -chris

    My comments mixed with your text
    "Chris Goodacre" <[email protected]> wrote:
    >
    We are implementing a custom realm and are having troubles getting our
    Users to
    show up in the User list.
    Our user class extends weblogic.security.acl.User, and is forced to use
    the default
    CTOR because our data access layer requires it.
    Unfortunately, getName() returns null if the User(String) constructor
    is not used.Yes.
    Furthermore, Identity::setName() is final, so it seems as though there
    is no
    way to set the user's name after construction.
    I am correct in this?Yes. Changing a user's name on a constructed user object is like mutating that
    user to another user - a security hole. It isn't allowed.
    >
    If so, any thoughts on whether it is worth going down the path of making
    my user
    class implement Principal instead of extending weblogic.security.acl.User?I'd try to stay with extending weblogic.security.acl.User, but also implement
    weblogic.security.acl.CredentialChanger, so you can change passwords through the
    console (otherwise you get NullPointerExceptions).
    You really want to get around not being able to supply a user name as part of
    the ctor.
    I
    would be forced to try to guess at what methods in User are required
    to integrate
    with the admin console, I believe. I have not been able to find any
    documentation
    that specifies what api/contract the console uses when it attempts to
    display
    user, role, acl information for a custom realm.
    Any advice would be greatly appreciated.
    -chris1. Your realm should extend AbstractManageableRealm and implement DebuggableRealm
    if you want to integrate with the console.
    2. The only contract is to implement all the methods!
    3. Check the type of the user and group objects being passed to your realm - if
    they're not your user and group type, reject the call.
    4. The documentation is indeed terrible, and often wrong. The examples shipped
    are incomplete (the RBDMS realm shipped has approx 1/3 of the functionality).
    You'll get good with jad.
    Should all be better in 7.0 with JAAS. The realm interfaces is a dog.
    Good luck,
    simon.

  • Any complete example on weblogic 10 admin console extension?

    in the sample code corner, all examples are for 8 or 9

    Weblogic 9.x and 10.x are very similar when it comes to Admin Console. So try using console extension 9.x steps for 10.x. You cannnot use 8.x since it is very old and it is completely changed from 9.x onwards.
    HTH
    Ravi Jegga

  • Admin console extension sample

    I've been trying to create a simple admin extension against WLS 10.0. I believe I've followed the proper procedure by creating a myextension.jar file and placing it into the console-ext of the domain root directory. In this jar file, I have a WEB-INF/netuix_extension.xml file that tries to place a portlet on the "page" parent. The portlet is nothing special and just has a "hello world" jsp page. I have placed the files in the directories as recommended by WLS documentation and created the jar file. However, the extension has no effect. There are no console errors to be found in either output or logs and am hoping to find some help.
    Are there some extra debug flags I can turn on to see if it's being loaded, i.e. is there any config setting I can enable to provide more insight into finding the problem?
    I've looked, but have been unable to find a working bare bones example like this. Does anyone know where I can find one for WLS 10.0
    Here are the contents of the files I used to generate the extension:
    The netuix_extension.xml look like:
    <?xml version="1.0" encoding="UTF-8"?>
    <weblogic-portal-extension
    xmlns="http://www.bea.com/servers/portal/weblogic-portal/8.0"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://www.bea.com/servers/portal/weblogic-portal/8.0 netuix-extension-1_0_0.xsd">
    <provider-info>
    <title>My Console Extension</title>
    <version>1.0</version>
    <description>My Console Extension</description>
    <author>Oracle Inc.</author>
    <last-modified>08/18/2008</last-modified>
    <support-url>http://www.bea.com</support-url>
    </provider-info>
    <portal-file>/console.portal</portal-file>
    <!-- Adds a page -->
         <page-extension>
    <page-location>
    <parent-label-location label="page"/>
    <page-insertion-point
    layout-location="1"
    placeholder-position="0"/>
    </page-location>
    <portlet-content
    content-uri="/portlets/myext.portlet"
    title="My Console Extension"
    orientation="top"
    instance-label="MyExtLabel"/>
    </page-extension>
    </weblogic-portal-extension>
    The /portlets/myext.portlet page is:
    <?xml version="1.0" encoding="UTF-8"?>
    <portal:root xmlns:html="http://www.w3.org/1999/xhtml-netuix-modified/1.0.0"
    xmlns:portal="http://www.bea.com/servers/netuix/xsd/portal/support/1.0.0"
    xmlns:netuix="http://www.bea.com/servers/netuix/xsd/controls/netuix/1.0.0"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://www.bea.com/servers/netuix/xsd/portal/
    support/1.0.0 portal-support-1_0_0.xsd">
    <netuix:portlet definitionLabel="MyAdminPortlet" title="wwMyAdminPortlet">
    <netuix:content>
    <netuix:jspContent contentUri="/ext_jsp/myext.jsp"/>
    </netuix:content>
    </netuix:portlet>
    </portal:root>
    the jsp page is:
    <html>
    <head>
    <title>Sample Application JSP Page</title>
    </head>
    <body>
    Sample Application JSP Page
    <%= new String("Hello!") %>
    </body>
    </html>
    Thanks

    I have successfully installed this sample on a domain configured with the MedRec tutorial, but failed on a newly created domain. Again there were no errors reported in the console or log. How does one get more debug information?

  • Is there a way to disable concurrent Weblogic Admin Console sessions for the same user?

    A coworker on another workstation and I are able to log into same user account on the Weblogic Admin Console at the same time. I would like to restrict access so only one session per user account can be logged in to the Admin Console. Is this possible?
    Alternatively, is there a way to log identifiable information (IP/workstation) when multiple sessions for one account occur at the same time?
    I am using 10.3.6.0

    Hi,
    You could also check the http access logs for such info. There you could see records for the received requests, with each record starting with the source IP that initiated the request.
    The default location for access logs is ${DOMAIN_HOME}/servers/${SERVER_NAME}/logs. Of course in your case, the ${SERVER_NAME} would be your admin server name (AdminServer if left as default).
    Regards,
    Mohab

  • Using credentials of a logged in user with JMX (Admin console extension)

    Hello,
    I would appreciate any info regarding creation of a connection to the DomainRuntimeService MBean server in an administration console extension in BEA Weblogic 9.2.
    The problem is that if I provide no security credentials, I'm not able to invoke any operations on the MBean server. Also the possibility of providing "default" user credentials within the extension "configuration" used to authenticate is not an option.
    The most convenient way would be to use the same mechanisms used by the rest of the administration console, but there seems to be very little information around about where to retrieve the username/password used to log in to the console.
    Thank you very much in advance, If you didn't understand my question, please ask for more information since English is not my native tongue.

    Hi,
    Check the following wiki content submitted by Michael Nicholls:
    https://www.sdn.sap.com/irj/scn/wiki?path=/display/snippets/excel%252bspreadsheet%252bof%252bume%252bassignment%252bdata
    The code for getting groups for your case (current logged in user) should be like:-
    IWDClientUser clientUser = WDClientUser.getLoggedInClientUser();
    IUser user1 = clientUser.getSAPUser();
    Iterator groups = user1.getParentGroups(false);
    while (groups.hasNext()) {
    IGroup group = groupFact.getGroup(groups.next().toString());
    String groupname = group.getDisplayName();
    Add this group name to a list
    I do not have NWDS access at the moment so haven't checked it myself... you may try it out.
    Also check out the following threads on the same issue:
    Re: Get all Groups for current user
    Re: Portal User and Role info

  • GW Mobility Service admin console - logins for non-Admins no longerworks

    We recently upgraded from the GW Mobility Pack (Data Synchronizer)
    v1.2.5 (299) to the new GW Mobility Service v2.0.1 (53).
    Previously, a regular user could login to the Data Synchronizer admin
    console and configure their own account settings to determine which
    cabinet folders or address books would get synchronized to their mobile
    device.
    Since our upgrade to the GW Mobility Service, only administrators can
    log in to the admin console. Any attempt by a non-admin user to login
    to the admin console is met with an "Invalid username/password" error.
    Is this by design, or is there something we've missed in our GMS
    configuration?
    Thanks,
    Greg
    former e-mail for posting:
    [email protected]

    On 4/22/2014 11:49 AM, DZanre wrote:> "Greg N." wrote:
    >
    >> Any attempt by a non-admin user to login to the admin console is met
    with an
    >> "Invalid username/password" error.
    >>
    >> Is this by design, or is there something we've missed in our GMS
    >> configuration?
    >
    > If you switched your authentication mode from LDAP to GW, then you
    will need to
    > login with the GW user/password. Have you tried that? It's quite
    possible that
    > this is an entirely different password (and in some cases a different
    userid).
    >
    Danita,
    Thanks for responding. Unfortunately, the authentication type wasn't
    changed during the upgrade. It's still set to LDAP. Both Provisioning
    and Authentication under User Source are on LDAP.
    I did go ahead and try a GW login anyway, but no luck.
    I also checked the base user and group DN's to make sure they are still
    set to the correct eDirectory context, and they are.
    Any other suggestions?
    Thanks,
    -Greg
    former e-mail for posting:
    [email protected]

  • Admin console error for 8.1sp2

    Hi, we are using weblogic server 8.1 sp2 and we are getting the following error on our admin console only after a few days of the server restart. Does anyone know why?
    java.lang.NullPointerException
         at weblogic.management.console.helpers.UrlHelper.buildIconList(UrlHelper.java:169)
         at weblogic.management.console.helpers.UrlHelper.getIcon(UrlHelper.java:203)
         at weblogic.management.console.tags.nav.SmartNavNodeTag.getIcon(SmartNavNodeTag.java:147)
         at weblogic.management.console.tags.nav.SmartNavNodeTag.inferStuffFromContext(SmartNavNodeTag.java:132)
         at weblogic.management.console.tags.nav.SmartNavNodeTag.doStartTag(SmartNavNodeTag.java:43)
         at weblogic.management.console.webapp._domain.__nav._jspService(__nav.java:690)
         at weblogic.servlet.jsp.JspBase.service(JspBase.java:33)
         at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:971)
         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:402)
         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:305)
         at weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:301)
         at weblogic.servlet.jsp.PageContextImpl.forward(PageContextImpl.java:150)
         at weblogic.management.console.actions.ForwardAction.perform(ForwardAction.java:35)
         at weblogic.management.console.actions.internal.ActionServlet.doAction(ActionServlet.java:173)
         at weblogic.management.console.actions.internal.ActionServlet.doGet(ActionServlet.java:91)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:971)
         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:402)
         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:305)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6350)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:317)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
         at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3635)
         at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2585)
         at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
    ========================
    p.s. error CR100006 was supposed to be fixed in SP2.

    Strange Error... seems due to currpt installation.
    Things to check:
    - Start of instance: please check all processes are down before starting up AdminServer
    - Start of instance: please check messages during startup (also Warnings...)
    - Check listen address, listen IP of instance...are there other (managed) instances?
    - Config files: check the <doman>/config.xml , compare it with backups if you got them

  • Can admin console extensions be integrated into the change center?

    We are extending the WL server 10 administration console to update some of our proprietary tables. We are following the instructions from this document:
    [url http://e-docs.bea.com/wls/docs100/console_ext/]
    It works fine, but the actions we perform in our extensions are not displayed in the change center.
    Does anyone know if this can be done?
    Thanks

    I would like software that will work with my 8600 that is substantially the same as the Solution Center.  
    With the solution center I could:
    Switch scanning from the flatbed to the feeder and back as many times as I wanted within one scan job. As an example I could scan a document on the feeder, switch to the flatbed for a business card (or photo, or prescription, etc.) and then back to the feeder to scan more document.
    Once my scan was complete I could go to a panel at the lower right of the solution center and move pages end to beginning or beginning to end and place any page in any position. Example: if I wanted page 23 out of 50 pages to be page 28, I could simply move page 23 to the 28 page position.
    I could perform a scan at a DPI of my choosing for the entire scan. Example: I could set the DPI at 400 and scan all my photos to the 400dpi setting without the scanner first sensing the scan item and then scanning to the file.
    I could add pages as often as I liked at a higher DPI than 300. With the 8600 I can only scan 1 page at higher than 300dpi and I cannot crop the item.
    When I placed the photos (at which only 3   4 x 6  photos would fit the bed)  each photo would scan independently at any DPI I set. With the 8600 I can only scan at 300 and still be able to crop but I do have to crop each item. Example: If I scan four photos from the full flatbed then I can only crop from 300dpi or less. If the scanner is set at 600 (the only allowed next setting) or higher, I cannot crop and all four photos scan as one item.
    The DPI setting with not allow for variable dpi settings as the 8500 solution center did.  I have to jump from 300 to 600 or higher and then I lose all previous functionality.
    Hope this helps with future development. I noticed you have thousands of similar requests here reference this same problem. Does that tell you anything?

Maybe you are looking for