Weblogic 10.3.3 JRE1.6_0_23 SHA2 Certificates works only in debug mode

Hello All,
I have received the new certificates which are using SHA2 algorithm. However my weblogic application server 10.3.3 together with JRE1.6 and default SSL provider (certicom) cannot handle this new SHA2 algorithm (Previously sha1). After reading some post I have changed the ssl provder to Sun standard by enabling the JSSE flag true. (<jsse-enabled>true</jsse-enabled>)
Unfortunately with this change to the config.xml neither Admin Server nor the managed server starts. Server simply hangs on this step and no error message to find in any of the logs.
So to be able to see the error I have enabled the debug flag in the weblogic start up options.
-Djavax.net.debug=ssl
Suddenly after enabling this (debug) flag Admin server could start, managed server still hangs. This behaviour was tested multiple times by removing and putting the debug flag.
Has anybody encountered such problem? What changes after setting the debug flag which led the Admin server to start? Even if the Admin server starts why the Managed server still hangs?
Looking forward for the help.
Best Regards
Prasad

By default, WebLogic Server uses the Certicom SSL implementation, which does not support SHA2* algorithms.
WebLogic Server 10.3.3 and higher offers the option to switch to the JSSE SSL implementation instead which does support such algorithms.
Note that in WLS 10.3.3 and higher, the Certicom SSL implementation is deprecated.
So in WLS 10.3.3 and higher, this issue can be resolved by enabling (argument added to JAVA_OPTIONS) the JSEE SSL provider with the following JVM startup argument:
-Dweblogic.security.SSL.enableJSSE=true
The below link offers more details on the JSSE SSL implementation.
http://docs.oracle.com/cd/E24329_01/web.1211/e24422/ssl.htm#SECMG494
Thanks,
Vijaya

Similar Messages

  • SHA2 certificates and WebAuth with 7.4 code

    Hi All,
    are SHA2 certificates supported on the 2504 and 5508, the reason is that I am doing WebAuth and the Certificate
    I got from GoDaddy was an SHA1 signed by a Root CA (GO Daddy Class 2 Certification Authority Root Certificate) that
    is not in the cert root store on the Android phones I am using, these phones only have the GO Daddy Root Certificate Authority - G2,
    root cert in their certificate store, which only signs certificates as SHA2.
    So if I get the certificate reissued will it be accepted by controller
    TIA

    So the issue was how you initially generated the certificate, or you were just asking but didn't initially try it?
    Thanks,
    Scott
    Help out other by using the rating system and marking answered questions as "Answered"

  • WLC: which software-version support SHA2 certificates for Web Authentification and Web Management ?

    Hello,
    I tried to install new SHA2 3th-Party certificates on our WLCs. There are old WiSM1-Boards and 2504 to support our old 1230 Access Points, running 7.0.251.2, which didn't install it, although the config manual for 7.6 and 8.0 say that SHA2 certificates are supported since 7.0.250.0. When I tried to install the SHA2-certificates I get the message "File transfer failed" an the log says:
    *TransferTask: Dec 12 13:22:14.394: #UPDATE-3-CERT_INST_FAIL: updcode.c:1869 Failed to install Webauth certificate. rc = 1
    *TransferTask: Dec 12 13:22:14.394: #SSHPM-3-KEYED_PEM_DECODE_FAILED: sshpmcert.c:4085 Cannot PEM decode private key
    I tried to install the same certificates on our WiSM2-Boards, running 7.4.121.0 and I failed too. The same certificates could be installed on a 2504 running 8.0.100 without any problems.
    In all 3 cases I tried to install unchained certificates for web management and Level 3 chained certificates  for web authentication. I used the following guides to get the certificates (e.g. taken from the config manual 8.0.100):
    http://www.cisco.com/c/en/us/support/docs/wireless/4400-series-wireless-lan-controllers/109597-csr-chained-certificates-wlc-00.html
    http://www.cisco.com/c/en/us/support/docs/wireless-mobility/wlan-security/70584-csr-wlc-00.pdf
    Which software versions support SHA2 certificates and which didn't ? Is the a list for it ?
    Regards

    Hello,
    I solved the problem. First I used a Debian Linux system with Openssl 1.0.1. After I searched the internet using one of the log messages above I found sites which mentioned to use Openssl 0.9.x. So I tried a productive and security fixes Debian Linux System running Openssl 0.9.8 and I succeeded. The wlcs accepted the certificate files and used it after a reboot. The Web GUI still shows a SHA1 Fingerprint, but the certificate signature Algorithm is SHA2:
    Signature Algorithm: sha256WithRSAEncryption
    When you check the openssl.org homepage Openssl 0.9.8 is still one of the actual version of openssl and is still available and fixed. But the Openssl Roadmap says:
    "We don't want to have to maintain too many branches. This is likely to include a timescale for the EOL of version 0.9.8"
    I don't know the differences between certificates made with openssl 0.9.8 and 1.0.1. Is there anybody who can explain it to me ?
    Regards

  • Error when starting Weblogic in debug mode

    Hi there
    Has anyone experienced any difficulties when starting weblogic in debug mode.
    More specifically, it cannot start correctly because it thinks that another instance
    is using the same port (definately not the case).
    Any clues/suggestions are greatly appreciated.
    Error log follows:
    <Mar 18, 2002 7:42:32 AM GMT+10:00> <Emergency> <WebLogicServer> <Unable to create
    a server socket for port: 8320. java.net.BindException: Address already in use
    Perhaps another process is using port 8320.>
    <Mar 18, 2002 7:42:32 AM GMT+10:00> <Notice> <WebLogicServer> <SSLListenThread
    listening on port 8321>
    <Mar 18, 2002 7:42:32 AM GMT+10:00> <Emergency> <WebLogicServer> <The WebLogic
    Server is no longer listening for connections. You should probably restart it.>
    <Mar 18, 2002 7:42:32 AM GMT+10:00> <Alert> <WebLogicServer> <Server shutdown
    has been requested by system>
    <Mar 18, 2002 7:42:32 AM GMT+10:00> <Alert> <WebLogicServer> <The shutdown sequence
    has been initiated.>
    <Mar 18, 2002 7:42:32 AM GMT+10:00> <Info> <WebLogicServer> <Server shutdown is
    commencing NOW and is irreversible.>
    <Mar 18, 2002 7:42:32 AM GMT+10:00> <Error> <Performance Pack> <Unable to load
    performance pack, using Java I/O.
    java.lang.ThreadDeath
    at java.lang.Thread.stop(Thread.java:581)
    at weblogic.t3.srvr.T3Srvr.die(T3Srvr.java:764)
    at weblogic.t3.srvr.T3Srvr.waitForDeath(T3Srvr.java:507)
    at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:171)
    at weblogic.Server.main(Server.java:35)

    Thanks for the suggestion.
    Unfortunatley the port is definately free/available during startup.
    Stephane Kergozien <[email protected]> wrote:
    Maark,
    Before starting your server, please could you check that the port is
    not used by one
    other process. You can use the netstat command to do this.
    Regards
    Stephane
    Mark wrote:
    Hi there
    Has anyone experienced any difficulties when starting weblogic in debugmode.
    More specifically, it cannot start correctly because it thinks thatanother instance
    is using the same port (definately not the case).
    Any clues/suggestions are greatly appreciated.
    Error log follows:
    <Mar 18, 2002 7:42:32 AM GMT+10:00> <Emergency> <WebLogicServer> <Unableto create
    a server socket for port: 8320. java.net.BindException: Address alreadyin use
    Perhaps another process is using port 8320.>
    <Mar 18, 2002 7:42:32 AM GMT+10:00> <Notice> <WebLogicServer> <SSLListenThread
    listening on port 8321>
    <Mar 18, 2002 7:42:32 AM GMT+10:00> <Emergency> <WebLogicServer> <TheWebLogic
    Server is no longer listening for connections. You should probablyrestart it.>
    <Mar 18, 2002 7:42:32 AM GMT+10:00> <Alert> <WebLogicServer> <Servershutdown
    has been requested by system>
    <Mar 18, 2002 7:42:32 AM GMT+10:00> <Alert> <WebLogicServer> <The shutdownsequence
    has been initiated.>
    <Mar 18, 2002 7:42:32 AM GMT+10:00> <Info> <WebLogicServer> <Servershutdown is
    commencing NOW and is irreversible.>
    <Mar 18, 2002 7:42:32 AM GMT+10:00> <Error> <Performance Pack> <Unableto load
    performance pack, using Java I/O.
    java.lang.ThreadDeath
    at java.lang.Thread.stop(Thread.java:581)
    at weblogic.t3.srvr.T3Srvr.die(T3Srvr.java:764)
    at weblogic.t3.srvr.T3Srvr.waitForDeath(T3Srvr.java:507)
    at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:171)
    at weblogic.Server.main(Server.java:35)--
    Regards,
    Stephane Kergozien
    BEA Support

  • Remote Debug mode while starting Weblogic server using my eclipse plugin

    Hi
    When am starting the Weblogic server via my eclipse it is opening in Remote Debug mode. Can anyone tell me how do I change the preferences/configure so that it doesnt run in debug mode.
    NOTE:I have deployed the application and ran number of times, till yesterday it wasn't starting in this mode, though I haven't changed any settings since then, it is starting in Remote Debug mode.
    Thanks,

    The above issue is resolved by adding this to setDomainEnv.sh :
    ALTERNATE_TYPES_DIRECTORY="${WLPORTAL_HOME}/portal/lib/security"
    export ALTERNATE_TYPES_DIRECTORY
    JAVA_OPTIONS="${JAVA_OPTIONS} -Dweblogic.alternateTypesDirectory=${ALTERNATE_TYPES_DIRECTORY}"
    # weblogic extension directories (system jars)
    if [ "${WEBLOGIC_EXTENSION_DIRS}" != "" ] ; then
    WEBLOGIC_EXTENSION_DIRS="${WEBLOGIC_EXTENSION_DIRS}${CLASSPATHSEP}${WLPORTAL_HOME}/p13n/lib/system"
    export WEBLOGIC_EXTENSION_DIRS
    else
    WEBLOGIC_EXTENSION_DIRS="${WLPORTAL_HOME}/p13n/lib/system"
    export WEBLOGIC_EXTENSION_DIRS
    fi
    WEBLOGIC_EXTENSION_DIRS="${WEBLOGIC_EXTENSION_DIRS}${CLASSPATHSEP}${WLPORTAL_HOME}/light-portal/lib/system${CLASSPATHSEP}${WLPORTAL_HOME}/portal/lib/system${
    CLASSPATHSEP}${WLPORTAL_HOME}/info-mgmt/lib/system${CLASSPATHSEP}${WLPORTAL_HOME}/analytics/lib/system${CLASSPATHSEP}${WLPORTAL_HOME}/apps/lib/system${CLASSP
    ATHSEP}${WLPORTAL_HOME}/info-mgmt/deprecated/lib/system"
    export WEBLOGIC_EXTENSION_DIRS
    WEBLOGIC_EXTENSION_DIRS="${WEBLOGIC_EXTENSION_DIRS}${CLASSPATHSEP}${WLPORTAL_HOME}/content-mgmt/lib/system"
    export WEBLOGIC_EXTENSION_DIRS
    if [ "${WEBLOGIC_EXTENSION_DIRS}" != "" ] ; then
    JAVA_OPTIONS="${JAVA_OPTIONS} -Dweblogic.ext.dirs=${WEBLOGIC_EXTENSION_DIRS}"
    export JAVA_OPTIONS
    fi

  • Devloper system configuration (weblogic in debug mode on Eclipse/windows)

    Hi,
    I work on a project, which we may consider as big. Couple of thousads of java files, muilti-tired. We use, weblogic in eclipse on widows for development. Curreltly we have 1G ram on each of developer mechines. But most of us are complaining that, system is running slow in debug mode. Sometimes, we can't even work.
    I greatly appreciate if somebody can point me to the URL or suggestion for good system configuration, so that we can work comfortably.
    Just asking to increase the RAM may not help me in convencing the business/management. If there any specific recommandations by either by BEA or IBM (eclipse), that helps me a lot in raising the same to our buisness.
    Greatly appricate your suggestions
    Reg,
    Mahi

    Hi Bigmachini,
    According to my solution, what about your issue now?
    If you have been solved the issue, would you mind sharing us the solution here? So it would be helpful for other members who get the same issue.
    If not, please let us know the latest information about it.
    @Malik, could you please tell me if you try to check your issue by the above suggestion as I said?
    If no, please try the above suggestions to check this issue and then tell me the latest message about this issue.
    >>The error mostly occurs when debugging ADO.NET or database function calls. If code is run without debugging then there is no issue at all.
    You could also try to copy your project and then debug your project in debug mode on a another machine you install same Windows 10 OS check this issue again.
    Best Regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How to start weblogic in debug mode from BEA WebLogic Eclipse plugin

    I have a problem making weblogic work with eclipse3.1. I am using a BEA WebLogic plugin to handle weblogic (start/stop) from eclipse. However I want to debug my application and I am unable to figure out a way to start my weblogic in debug mode like we do in WSAD. I tried using some other plugins also but no luck. Please suggest me a plugin to handle this or any other way of debugging my application from eclipse. I am using weblogic 8.1.

    Hi,
    Dev Environment
    weblogic eclipse plugin 2.0 beta
    weblogic server 8.1
    eclipse 3.1.1
    Created a server that i would like to deploy my EJB so that i can put break points on my EJB in eclipse.
    How do i do it?
    I managed to deploy an ear (containing the ejb) directly to the weblogic installed folder and it deployed the ejb. But the breakpoint set in eclipse is not triggered. Of course in this case as weblogic server is running the .ear file deployed manually in the file system.
    Any help is appreciated.
    Mel

  • How to start weblogic in debug mode ? and how to set the eclipse in the deb

    how to start weblogic in debug mode ? and how to set the eclipse in the debug

    Put this in JAVA_OPTIONS :
    Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,address=3999,suspend=y,server=y
    After restarted weblogic, in eclipse set your breakpoint , open debug perspective then choose Remote Java Appliction and configure Connection Properties (host=localhost and port=3999)

  • Start weblogic in debug mode

    Hi,
    I want to start weblogic in debug mode.
    Do you know what modifications should be made in the default configurations?
    -John

    John wrote:
    Hi,
    I want to start weblogic in debug mode.
    Do you know what modifications should be made in the default configurations?
    -JohnWebLogic Server doesn't have a debug mode. Are you trying to see debug
    messages in the shell window where you started the server?
    ~Ryan

  • Help! Starting Weblogic in Debug Mode

    Hi there
    Any clues/suggestions are greatly appreciated.
    Has anyone experienced any difficulties when starting weblogic in debug mode.
    More specifically, it cannot start correctly because it thinks that another instance
    is using the same port (definately not the case).
    Error log follows:
    <Mar 18, 2002 7:42:32 AM GMT+10:00> <Emergency> <WebLogicServer> <Unable to create
    a server socket for port: 8320. java.net.BindException: Address already in use
    Perhaps another process is using port 8320.> <Mar 18, 2002 7:42:32 AM GMT+10:00>
    <Notice> <WebLogicServer> <SSLListenThread listening on port 8321> <Mar 18, 2002
    7:42:32 AM GMT+10:00> <Emergency> <WebLogicServer> <The WebLogic Server is no
    longer listening for connections. You should probably restart it.>
    <Mar 18, 2002 7:42:32 AM GMT+10:00> <Alert> <WebLogicServer> <Server shutdown
    has been requested by system> <Mar 18, 2002 7:42:32 AM GMT+10:00> <Alert> <WebLogicServer>
    <The shutdown sequence has been initiated.> <Mar 18, 2002 7:42:32 AM GMT+10:00>
    <Info> <WebLogicServer> <Server shutdown is commencing NOW and is irreversible.>
    <Mar 18, 2002 7:42:32 AM GMT+10:00> <Error> <Performance Pack> <Unable to load
    performance pack, using Java I/O. java.lang.ThreadDeath at java.lang.Thread.stop(Thread.java:581)
    at weblogic.t3.srvr.T3Srvr.die(T3Srvr.java:764) at weblogic.t3.srvr.T3Srvr.waitForDeath(T3Srvr.java:507)
    at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:171) at weblogic.Server.main(Server.java:35)

    The following error has nothing to do with running in debug mode?
    It just means that there's another process already binded to port 8320
    you might want to see the output of netstat -a
    BTW, what flags you switched on to run the server in debug mode?
    Kumar
    "Mark" <[email protected]> wrote in message
    news:3c951474$[email protected]..
    >
    Hi there
    Any clues/suggestions are greatly appreciated.
    Has anyone experienced any difficulties when starting weblogic in debugmode.
    More specifically, it cannot start correctly because it thinks thatanother instance
    is using the same port (definately not the case).
    Error log follows:
    <Mar 18, 2002 7:42:32 AM GMT+10:00> <Emergency> <WebLogicServer> <Unableto create
    a server socket for port: 8320. java.net.BindException: Address already inuse
    Perhaps another process is using port 8320.> <Mar 18, 2002 7:42:32 AMGMT+10:00>
    <Notice> <WebLogicServer> <SSLListenThread listening on port 8321> <Mar18, 2002
    7:42:32 AM GMT+10:00> <Emergency> <WebLogicServer> <The WebLogic Server isno
    longer listening for connections. You should probably restart it.>
    <Mar 18, 2002 7:42:32 AM GMT+10:00> <Alert> <WebLogicServer> <Servershutdown
    has been requested by system> <Mar 18, 2002 7:42:32 AM GMT+10:00> <Alert><WebLogicServer>
    <The shutdown sequence has been initiated.> <Mar 18, 2002 7:42:32 AMGMT+10:00>
    <Info> <WebLogicServer> <Server shutdown is commencing NOW and isirreversible.>
    <Mar 18, 2002 7:42:32 AM GMT+10:00> <Error> <Performance Pack> <Unable toload
    performance pack, using Java I/O. java.lang.ThreadDeath atjava.lang.Thread.stop(Thread.java:581)
    at weblogic.t3.srvr.T3Srvr.die(T3Srvr.java:764) atweblogic.t3.srvr.T3Srvr.waitForDeath(T3Srvr.java:507)
    at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:171) atweblogic.Server.main(Server.java:35)
    >
    >

  • WebLogic Server Times  OUT during DEBUG mode startup

    Hi,
    I am having a issue where my WebLogic Server 10.3 times out when I try to run it in debug mode in my workshop. Below is the error I get.
    "Timeout waiting for Oracle WebLogic Server v10.3 at localhost to start. Server did not start after 480s. "
    Do anyone have any idea why this is happening? I have reinstalled workshop but still same error.
    Thanks

    I have also seen this error when the debug mode does not start.
    starting weblogic with Java version:
    FATAL ERROR in native method: JDWP No transports initialized, jvmtiError=AGENT_ERROR_TRANSPORT_INIT(197)
    ERROR: transport error 202: bind failed: Address already in use
    ERROR: JDWP Transport dt_socket failed to initialize, TRANSPORT_INIT(510)
    JDWP exit error AGENT_ERROR_TRANSPORT_INIT(197): No transports initialized [../../../src/share/back/debugInit.c:690]
    Starting WLS with line:
    C:\bea103\JDK160~1\bin\java -client -Debug -Xnoagent -Xrunjdwp:transport=dt_socket,address=8453,server=y,suspend=n -Djava.compiler=NONE -Xms1200m -Xmx1200m -XX:CompileThreshold=8000 -XX:PermSize=192m -XX:MaxPermSize=192m -Xverify:none -ea -da:com.bea... -da:javelin... -da:weblogic... -ea:com.bea.wli... -ea:com.bea.broker... -ea:com.bea.sbconsole... -Dplatform.home=C:\bea103\WLSERV~1.3 -Dwls.home=C:\bea103\WLSERV~1.3\server -Dweblogic.home=C:\bea103\WLSERV~1.3\server -Dweblogic.wsee.bind.suppressDeployErrorMessage=true -Dweblogic.wsee.skip.async.response=true -Dweblogic.management.discover=true -Dweblogic.security.SSL.ignoreHostnameVerify=false -Dwlw.iterativeDev=true -Dwlw.testConsole=true -Dwlw.logErrorsToConsole=true -DKS_URL=rmi://10.87.40.196:1188/KS -Dweblogic.ext.dirs=C:\bea103\patch_wlw1030\profiles\default\sysext_manifest_classpath;C:\bea103\patch_wls1030\profiles\default\sysext_manifest_classpath;C:\bea103\patch_wlp1030\profiles\default\sysext_manifest_classpath;C:\bea103\patch_cie670\profiles\default\sysext_manifest_classpath;C:\bea103\wlportal_10.3\p13n\lib\system;C:\bea103\wlportal_10.3\light-portal\lib\system;C:\bea103\wlportal_10.3\portal\lib\system;C:\bea103\wlportal_10.3\info-mgmt\lib\system;C:\bea103\wlportal_10.3\analytics\lib\system;C:\bea103\wlportal_10.3\apps\lib\system;C:\bea103\wlportal_10.3\info-mgmt\deprecated\lib\system;C:\bea103\wlportal_10.3\content-mgmt\lib\system -Dweblogic.alternateTypesDirectory=C:\bea103\wlportal_10.3\portal\lib\security -Dweblogic.Name=AdminServer -Djava.security.policy=C:\bea103\WLSERV~1.3\server\lib\weblogic.policy weblogic.Server
    FATAL ERROR in native method: JDWP No transports initialized, jvmtiError=AGENT_ERROR_TRANSPORT_INIT(197)
    ERROR: transport error 202: bind failed: Address already in use
    ERROR: JDWP Transport dt_socket failed to initialize, TRANSPORT_INIT(510)
    JDWP exit error AGENT_ERROR_TRANSPORT_INIT(197): No transports initialized [../../../src/share/back/debugInit.c:690]

  • Start weblogic server in debug mode through command prompt

    Hi,
    Please help me in starting the weblogic server in debug mode through command prompt.I am using weblogic 10.3.6 app server.
    Thanks

    Hi,
    To debug weblogic startup issues you can pass the below jvm arguments:
    -Dweblogic.slc=true
    -Dweblogic.debug.DebugServerLifeCycle=true
    Debug options are available in weblogic based on the subsystem, such as security, jms, jdbc, deployment..etc
    You can refer to :
    https://blogs.oracle.com/vijaya/entry/weblogic_web_service_debug_flags
    Thanks,
    Sharmela

  • Running Weblogic Server 10.3.3 in Debug  mode

    Hi to all,
    Here i got a problem after installing Oracle Identity Manager 11g R3,to solve the issue i need to run WebLogic Server 10.3.3 in Debug mode.
    Can any suggest how to run WebLogic Server 10.3.3 in Debug mode.
    Here i find a solution to run in debug mode,but no difference in log files before and after changing debug mode.
    Enable Debugging on the WebLogic Server
    To start WebLogic Server in debug mode, you will need to modify the startWebLogic.cmd script in the <WLS-root>\wlserver_10.0\samples\domains\wl_server directory. <WLS-root> is the directory in which WebLogic 10.0.1 was installed into.
    In the startWebLogic.cmd script, specify the JAVA OPTIONS with:
    set JAVA_OPTIONS=-Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,address=4000,server=y,suspend=n
    Let me know if u have any questions,
    Thanks and Ragards,
    Satish

    Greg,
    I cam across this issue too. It looks like there is a bug in sample script provided by weblogic documentation. We should not use ADMIN_URL as they mentioned in the script.
    Remove it and try. For more info. please see this link helps:
    http://ananthkannan.blogspot.com/2009/10/weblogic-server-instance-as-window.html
    Thanks.
    Ananth

  • How to check whether weblogic server is in DEBUG mode or not

    Hi
    I want to check in my OSB proxy whether weblogic server is in Debug mode or not?
    IF abv thing is not possible ,
    I have check whether server is in development mode or production mode from my OSB proxy service?
    I m not able to find any doc on this??Please let me know how it can be done?
    Thanks

    There isnt any other way except for doing a Java Callout. In the callout method you can access the Domain/Server MBean for the information that you seek. Based on the callout result you can go ahead with the logic in your PS..
    Here is a sample Java Code to get the Server Log Level and ascertain whether the server is in Production Mode or not.
    package com.dell.mbean;
    import java.io.IOException;
    import java.net.MalformedURLException;
    import java.util.Hashtable;
    import javax.management.MBeanServerConnection;
    import javax.management.MalformedObjectNameException;
    import javax.management.ObjectName;
    import javax.management.remote.JMXConnector;
    import javax.management.remote.JMXConnectorFactory;
    import javax.management.remote.JMXServerErrorException;
    import javax.management.remote.JMXServiceURL;
    import javax.naming.Context;
    public class MyConnection {
         private static MBeanServerConnection connection;
         private static JMXConnector connector;
         private static final ObjectName service;
         static {
              try {
              service = new ObjectName("com.bea:Name=DomainRuntimeService,Type=weblogic.management.mbeanservers.domainruntime.DomainRuntimeServiceMBean");
              catch (MalformedObjectNameException e) {
              throw new AssertionError(e.getMessage());
         * Initialize connection to the Domain Runtime MBean Server.
         @SuppressWarnings("unchecked")
         public static void initConnection(String hostname, String portString,
         String username, String password) throws IOException,
         MalformedURLException {
         String protocol = "t3";
         Integer portInteger = Integer.valueOf(portString);
         int port = portInteger.intValue();
         String jndiroot = "/jndi/";
         String mserver = "weblogic.management.mbeanservers.domainruntime";
         JMXServiceURL serviceURL = new JMXServiceURL(protocol, hostname, port,
         jndiroot + mserver);
         Hashtable h = new Hashtable();
         h.put(Context.SECURITY_PRINCIPAL, username);
         h.put(Context.SECURITY_CREDENTIALS, password);
         h.put(JMXConnectorFactory.PROTOCOL_PROVIDER_PACKAGES,"weblogic.management.remote");
         h.put("jmx.remote.x.request.waiting.timeout", new Long(10000));
         try {
         connector = JMXConnectorFactory.connect(serviceURL, h);
         connection = connector.getMBeanServerConnection();
         } catch(JMXServerErrorException jmxSE)
              jmxSE.printStackTrace();
         catch(Exception ex)
              ex.printStackTrace();
         public static String getLogSeverity(String hostName, String portName, String userName, String password) throws Exception {
              initConnection(hostName, portName, userName,password);
              connector.close();
              ObjectName domainConfig = (ObjectName) connection.getAttribute(service,
              "DomainConfiguration");
              ObjectName logMbean =(ObjectName) connection.getAttribute(domainConfig, "Log");
              String logFileFilter = (String) connection.getAttribute(logMbean, "LogFileSeverity");
              System.out.println("Log File Filter= "+ logFileFilter.toString());
              return logFileFilter;
         public static boolean isProductionModeEnabled(String hostName, String portName, String userName, String password) throws Exception {
              initConnection(hostName, portName, userName,password);
              connector.close();
              ObjectName domainConfig = (ObjectName) connection.getAttribute(service,
              "DomainConfiguration");
              boolean prodEnabled= (Boolean) connection.getAttribute(domainConfig, "ProductionModeEnabled");
              System.out.println("Is Production Mode Enabled=" +prodEnabled);
              return prodEnabled;
    Make sure you have wlclient.jar and wljmxclient.jar as your dependent libraries.

  • Weblogic service pack 4 debug mode, for remote debugging

    Hi there,
    I am using WebLogic Enterprise 5.1 Service Pack 4 on NT. I would
    like to launch it in debug mode, so that I can debug some EJBs
    using JBuilder4. JBuilder supports WL SP 4 only.
    I installed JPDA and it is in path. When I try this command:
    java
    -ms64m
    -mx64m
    -classpath d:\weblogic\lib\weblogic510sp4boot.jar;.\classes\boot;
              .\eval\cloudscape\lib\cloudscape.jar;
    -Dweblogic.class.path=d:\weblogic\lib\weblogic510sp4.jar;.\lib\weblogicaux.jar;
                   .\license;.\classes;.\myserver\serverclasses;d:\weblogic\lib\jConnect.jar
    -Dweblogic.home=.
    -Djava.security.manager
    -Djava.security.policy==.\weblogic.policy
    -Xdebug
    -Xnoagent
    -Djava.compiler=NONE
    -Xrunjdwp:transport=dt_socket,address=7001,suspend=y,server=y
    weblogic.Server
    the process hangs and nothing happens.
    I included other newsgroup postings on the same subject below.
    Thanks,
    Ramesh
    Subject: Re: Remote Debugging with WLE (JPDA)
    Date: Wed, 16 Aug 2000 08:54:36 -0300
    From: Wendell MacKenzie <[email protected]>
    Newsgroups: weblogic.developer.interest.weblogicenterprise
    I made a mistake. BEA's JavaServer DOES NOT today support the
    JPDA debugger platform. Only the "old" Sun one which uses the agent
    password stuff.
    Sorry to have mislead you.
    unless of course a BEA WLE guru in engineering has a trick that
    allows this to work...?
    Wendell MacKenzie wrote:
    This works under Solaris7 using jpda1_0.
    LD_LIBRARY_PATH=/opt/wle/5.1/lib:/usr/Solaris_JDK_1.2.2_05a/jre/lib/sparc:/usr/jpda1_0/lib/sparc>
    export LD_LIBRARY_PATH
    edit according to your host's installation dirs
    get the startup args to your JavaServer's boot requirementsvia:
    >
    tmboot -n -d1 -i <ID> (where ID is the numeric id ofthe Java Server you want
    to debug)
    and then launch the process from the shell as in:
    JavaServer -C dom=<DOMAIN> -i 6 -i 81 -u nodename -U<ULOG_PATH_PREFIX> -m 0
    -A --
    -Xbootclasspath:/usr/Solaris_JDK_1.2.2_05a/lib/tools.jar:/usr/Solaris_JDK_1.2.2_05a/jre/lib/rt.jar
    -Xrunjdwp:transport=dt_socket,address=<PORT>,server=y,suspend=n-Xdebug
    <SERVERIMPL>.jar <SERVER_SPECIFIC_ARGS>
    Change each <XXXXX> as appropriate for your configuration.
    Be sure to check your ULOG for the password generated, you'llneed it when
    you launch your client
    that will connect to the Java server at debug time.
    Hope this helps.
    Wendell
    Scott Jones wrote:
    Help,
    Need to information on connecting TogetherJ or VisualCafe
    to WLE. I have
    been told to install JavaTM Platform Debugger Architecture,version 1.0
    (JPDA 1.0).
    Has anyone done this?
    Any pointers,
    Thanks,
    [email protected]

    WLE does not have service packs, you must be using WLS - you should post this in a WLS newsgroup. WLE
    and WLS are 2 separate products.
    Ramesh Babu wrote:
    Hi there,
    I am using WebLogic Enterprise 5.1 Service Pack 4 on NT. I would
    like to launch it in debug mode, so that I can debug some EJBs
    using JBuilder4. JBuilder supports WL SP 4 only.
    I installed JPDA and it is in path. When I try this command:
    java
    -ms64m
    -mx64m
    -classpath d:\weblogic\lib\weblogic510sp4boot.jar;.\classes\boot;
    .\eval\cloudscape\lib\cloudscape.jar;
    -Dweblogic.class.path=d:\weblogic\lib\weblogic510sp4.jar;.\lib\weblogicaux.jar;
    .\license;.\classes;.\myserver\serverclasses;d:\weblogic\lib\jConnect.jar
    -Dweblogic.home=.
    -Djava.security.manager
    -Djava.security.policy==.\weblogic.policy
    -Xdebug
    -Xnoagent
    -Djava.compiler=NONE
    -Xrunjdwp:transport=dt_socket,address=7001,suspend=y,server=y
    weblogic.Server
    the process hangs and nothing happens.
    I included other newsgroup postings on the same subject below.
    Thanks,
    Ramesh
    Subject: Re: Remote Debugging with WLE (JPDA)
    Date: Wed, 16 Aug 2000 08:54:36 -0300
    From: Wendell MacKenzie <[email protected]>
    Newsgroups: weblogic.developer.interest.weblogicenterprise
    I made a mistake. BEA's JavaServer DOES NOT today support the
    JPDA debugger platform. Only the "old" Sun one which uses the agent
    password stuff.
    Sorry to have mislead you.
    unless of course a BEA WLE guru in engineering has a trick that
    allows this to work...?
    Wendell MacKenzie wrote:
    This works under Solaris7 using jpda1_0.
    LD_LIBRARY_PATH=/opt/wle/5.1/lib:/usr/Solaris_JDK_1.2.2_05a/jre/lib/sparc:/usr/jpda1_0/lib/sparc
    export LD_LIBRARY_PATH
    edit according to your host's installation dirs
    get the startup args to your JavaServer's boot requirementsvia:
    tmboot -n -d1 -i <ID> (where ID is the numeric id ofthe Java Server you want
    to debug)
    and then launch the process from the shell as in:
    JavaServer -C dom=<DOMAIN> -i 6 -i 81 -u nodename -U<ULOG_PATH_PREFIX> -m 0
    -A --
    -Xbootclasspath:/usr/Solaris_JDK_1.2.2_05a/lib/tools.jar:/usr/Solaris_JDK_1.2.2_05a/jre/lib/rt.jar
    -Xrunjdwp:transport=dt_socket,address=<PORT>,server=y,suspend=n-Xdebug
    <SERVERIMPL>.jar <SERVER_SPECIFIC_ARGS>
    Change each <XXXXX> as appropriate for your configuration.
    Be sure to check your ULOG for the password generated, you'llneed it when
    you launch your client
    that will connect to the Java server at debug time.
    Hope this helps.
    Wendell
    Scott Jones wrote:
    Help,
    Need to information on connecting TogetherJ or VisualCafe
    to WLE. I have
    been told to install JavaTM Platform Debugger Architecture,version 1.0
    (JPDA 1.0).
    Has anyone done this?
    Any pointers,
    Thanks,
    [email protected]

Maybe you are looking for

  • I get an error message when opening a secure website from a managed account

    I get an error message that says that safari can't open a specific website, because it can't establish a secure connection. This is happening on a managed account with parental controls. It seems to only happen for secure sites. How can I fix this?

  • IPlanet Messenger Express Problem after Patch 1

    After installing 5.2 P1, SMTP and POP3 are working fine. However, when I try to login to Messenger Express, I get an invalid user or bad password error! What might be the cause of this?

  • Batch file missing . . .

    Hello again world. I've written a simple reminder program which runs fine except for one little problem. Here's the code: import java.util.*; public class AlarmClock    public static void main(String[] params)       long delay = (long) 60000 * Intege

  • DVD on TV?

    Just a quick question I can't seem to find an answer for.... If I download a SEASON or Movie from iTunes, can it be burned and then played on a regular DVD player/TV? Like when you download music and burn discs for the car. Thanks

  • I did a dumb

    I have created a problem in CS5.When I open an image the curser is a "+1".I have looked in all my books and cant figure out what I did.Any ideas will be very helpful and appreciated.