Example to access weblogic's MBeanHome interface using javax.management.MBeanServer

Hi All
I am new to the JMX world and newer at accessing Weblogic MBeans. I don't
want to use the weblogic specific classes like Environment and Helper
because then my code won't be appserver neutral.
Can you please provide me with an example to access weblogoc MBeans using a
fully JMX compliant code. I tried this code, but here I don't know what
service name should I supply and how do supply the credentials and to which
MBean. here is the test code that I wrote and ofcourse it doesn't work but
any help from you guys will be apperecitated.
import javax.management.*;
public class WeblogicJMX {
public static void main(String[] args) {
try {
MBeanServer mBeanServer =
MBeanServerFactory.createMBeanServer("http://localhost:7001/");
System.out.println(mBeanServer.getClass().getName());
ObjectName objectName = new
ObjectName("mydomain:service=WebLogicServer,server=myserver");
ObjectInstance objectInstance =
mBeanServer.createMBean("weblogic.management.MBeanHome.class", objectName);
String className = objectInstance.getClassName();
System.out.println("className = " + className);
} catch (MalformedObjectNameException e) {
e.printStackTrace();
} catch (ReflectionException e) {
e.printStackTrace();
} catch (InstanceAlreadyExistsException e) {
e.printStackTrace();
} catch (MBeanException e) {
e.printStackTrace();
} catch (NotCompliantMBeanException e) {
e.printStackTrace();
Any help is greately appreciated.
thanx in advance
Daya Sharma

sorry I think I missed my email address here it is
[email protected]
"bea news groups" <newsgroups.bea.com> wrote in message
news:[email protected]..
Hi All
I am new to the JMX world and newer at accessing Weblogic MBeans. I don't
want to use the weblogic specific classes like Environment and Helper
because then my code won't be appserver neutral.
Can you please provide me with an example to access weblogoc MBeans usinga
fully JMX compliant code. I tried this code, but here I don't know what
service name should I supply and how do supply the credentials and towhich
MBean. here is the test code that I wrote and ofcourse it doesn't work but
any help from you guys will be apperecitated.
import javax.management.*;
public class WeblogicJMX {
public static void main(String[] args) {
try {
MBeanServer mBeanServer =
MBeanServerFactory.createMBeanServer("http://localhost:7001/");
System.out.println(mBeanServer.getClass().getName());
ObjectName objectName = new
ObjectName("mydomain:service=WebLogicServer,server=myserver");
ObjectInstance objectInstance =
mBeanServer.createMBean("weblogic.management.MBeanHome.class",objectName);
String className = objectInstance.getClassName();
System.out.println("className = " + className);
} catch (MalformedObjectNameException e) {
e.printStackTrace();
} catch (ReflectionException e) {
e.printStackTrace();
} catch (InstanceAlreadyExistsException e) {
e.printStackTrace();
} catch (MBeanException e) {
e.printStackTrace();
} catch (NotCompliantMBeanException e) {
e.printStackTrace();
Any help is greately appreciated.
thanx in advance
Daya Sharma

Similar Messages

  • Weblogic.utils.NestedRuntimeException when using javax.servlet.Filter

    IDE: JDev 10gR3.4 & JDev 11gR2.3
    ViewController technology: JSF/ADF Faces
    Example code flow:
    Run page2.jsf
    MyFilter intercepts request, checks for parameter on session.
    If parameter not null, goto page2.jsf
    Else redirect to page1.jsf
    page1.jsf has a button that sets the value on the session scope after clicking.
    In jdev 11gR2.3, I get an weblogic.utils.NestedRuntimeException after clicking the button on page1.jsf. This error does not occur in jdev 10gR3.5. Although the application continues to execute and proper info is displayed, I’m wondering why this occurs and also if I should be concerned. Has anyone experienced a similar issue when using javax.servlet.Filter in 11g?
    MyFilter code snipet:
        public void doFilter(ServletRequest servletRequest, ServletResponse servletResponse, FilterChain filterChain) {
            try {
                HttpServletRequest httpRequest = (HttpServletRequest)servletRequest;
                HttpServletResponse httpResponse = (HttpServletResponse)servletResponse;
                String redirect = httpRequest.getContextPath() + "/faces/page1.jsf"; //only difference here is 11g uses jsf, 10g uses jsp.
                String uri = httpRequest.getRequestURI().toString();
                Boolean mySessionAttribute = (Boolean)httpRequest.getSession().getAttribute("MYSESSIONATTRIBUTE");
                if (uri.endsWith(redirect) || mySessionAttribute != null) {
                    filterChain.doFilter(servletRequest, servletResponse);
                } else {
                    httpResponse.sendRedirect(redirect);
                    return;
            } catch (IOException e) {
                e.printStackTrace();
            } catch (ServletException e) {
                e.printStackTrace();
    page1.jsf/jsp
    <?xml version='1.0' encoding='UTF-8'?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <f:view xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html">
        <h:form id="f1">
            <h:commandButton value="Submit" id="cb1" action="#{Page1Bean.clicked}" type="submit"/>
        </h:form>
    </f:view>page2.jsf/jsp
    <?xml version='1.0' encoding='UTF-8'?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <f:view xmlns:f="http://java.sun.com/jsf/core" xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
        <af:document title="main.jsf" id="d1">
            <af:form id="f1">
                <af:outputText value="This is the main content" id="ot1"/>
            </af:form>
        </af:document>
    </f:view>Page1Bean.java
    public class Page1Bean {
        public void clicked() {       
            FacesContext context = FacesContext.getCurrentInstance();
            ExternalContext externalContext = context.getExternalContext();
            externalContext.getSessionMap().put("MYSESSIONATTRIBUTE", Boolean.TRUE);
            try {
                externalContext.redirect("/11gFilterExample-ViewController-context-root/faces/page2.jsf");
            } catch (IOException e) {
                    e.printStackTrace();
    }Full exception
    weblogic.utils.NestedRuntimeException: Cannot parse POST parameters of request: '/11gFilterExample-ViewController-context-root/faces/page1.jsf'
         at weblogic.servlet.internal.ServletRequestImpl$RequestParameters.mergePostParams(ServletRequestImpl.java:2144)
         at weblogic.servlet.internal.ServletRequestImpl$RequestParameters.parseQueryParams(ServletRequestImpl.java:2024)
         at weblogic.servlet.internal.ServletRequestImpl$RequestParameters.getQueryParams(ServletRequestImpl.java:1918)
         at weblogic.servlet.internal.ServletRequestImpl$RequestParameters.getParameter(ServletRequestImpl.java:1995)
         at weblogic.servlet.internal.ServletRequestImpl$RequestParameters.access$800(ServletRequestImpl.java:1817)
         at weblogic.servlet.internal.ServletRequestImpl.getParameter(ServletRequestImpl.java:804)
         at javax.servlet.ServletRequestWrapper.getParameter(ServletRequestWrapper.java:169)
         at org.apache.myfaces.trinidadinternal.context.external.ServletRequestParameterMap.getAttribute(ServletRequestParameterMap.java:43)
         at org.apache.myfaces.trinidadinternal.context.external.ServletRequestParameterMap.getAttribute(ServletRequestParameterMap.java:31)
         at org.apache.myfaces.trinidadinternal.context.external.AbstractAttributeMap.get(AbstractAttributeMap.java:73)
         at oracle.adfinternal.controller.state.ControllerState.getRootViewPortFromRequest(ControllerState.java:788)
         at oracle.adfinternal.controller.state.AdfcContext.initialize(AdfcContext.java:185)
         at oracle.adfinternal.controller.state.AdfcContext.initialize(AdfcContext.java:79)
         at oracle.adfinternal.controller.application.AdfcConfigurator.beginRequest(AdfcConfigurator.java:53)
         at org.apache.myfaces.trinidadinternal.config.GlobalConfiguratorImpl._startConfiguratorServiceRequest(GlobalConfiguratorImpl.java:562)
         at org.apache.myfaces.trinidadinternal.config.GlobalConfiguratorImpl.beginRequest(GlobalConfiguratorImpl.java:212)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:174)
         at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:119)
         at java.security.AccessController.doPrivileged(Native Method)
         at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:315)
         at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:442)
         at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:103)
         at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:171)
         at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:139)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
    Caused by: java.net.SocketException: Connection reset
         at java.net.SocketInputStream.read(SocketInputStream.java:168)
         at weblogic.servlet.internal.PostInputStream.read(PostInputStream.java:177)
         at weblogic.servlet.internal.ServletInputStreamImpl.read(ServletInputStreamImpl.java:228)
         at weblogic.servlet.internal.ServletRequestImpl$RequestParameters.mergePostParams(ServletRequestImpl.java:2118)
         ... 39 more
    <UIXEditableValue> <_isBeanValidationAvailable> A Bean Validation provider is not present, therefore bean validation is disabled

    I dont believe that solution pertains to my case. clicked() is invoked from standard jsf page and the adf controller is not acquired yet. i put a couple of print statements in the filter and it seems that the doFilter is called twice! This is not the case when running in 10g.
                if (uri.endsWith(redirect) || mySessionAttribute != null) {
                    System.out.println("URI dofilter: "+uri);
                    filterChain.doFilter(servletRequest, servletResponse);
                } else {
                    System.out.println("URI sendRedirect: "+uri);
                    httpResponse.sendRedirect(redirect);              
                }11g weblogic console log:
    URI sendRedirect: /11gFilterExample-ViewController-context-root/faces/page2
    URI dofilter: /11gFilterExample-ViewController-context-root/faces/page1.jsf
    URI dofilter: /11gFilterExample-ViewController-context-root/faces/page1.jsf
    10g oc4j console log:
    13/01/07 15:48:13 URI sendRedirect: /10gFilterExample-ViewController-context-root/faces/page2.jsp
    13/01/07 15:48:13 URI dofilter: /10gFilterExample-ViewController-context-root/faces/page1.jsp
    I believe whatever thats causing this occur could be why the exception is thrown...

  • Perl based client to access weblogic web services

    Hello All,
    Do we have sample code where Perl (Soap::Lite) client will access weblogic based web services using https protocol?
    Regards,
    ssaxena

    Hello All,
    Do we have sample code where Perl (Soap::Lite) client will access weblogic based web services using https protocol?
    Regards,
    ssaxena

  • How to update java.sql.Clob using javax.persistence.EntityManager?

    Hello.
    Can anyone tell me (or show me some example) how to update java.sql.Clob using javax.persistence.EntityManager.
    When I’m trying to update column (with type Clob) value is not inserting, after update column is empty. I haven’t any error during update, I’m using database Oracle 10g.
    Edited by: ernest211 on Jul 16, 2009 1:24 AM

    Post some code so we can see how you are doing it. If you are using JPA entities take a look at the @Lob annotation.
    m

  • Programming Weblogic with jmx without using weblogic api?

    Hi,
    I want to know if it is possible to program weblogic management service without
    using weblogic api but just rely on standard JMX interface and methods.
    Currently, I am relying on weblogic api weblogic.jndi.Environment and weblogic.management.MBeanHome
    interface to get the context and access the MBean Server subsystem. Can I find
    the equivalent using jmx?
    My code is as follows:
    Environment env = new Environment();
    env.setProviderUrl(url);
    env.setSecurityPrincipal(username);
    env.setSecurityCredentials(password);
    Context ctx = env.getInitialContext();
    MBeanHome home = (MBeanHome) ctx.lookup(MBeanHome.ADMIN_JNDI_NAME);
    String domain = home.getDomainName();
    homeServer = home.getMBeanServer();
    Thank you.

    Hi Ryan,
    I have looked through the documentation.
    It told me that I need to use weblogic.management.MBeanHome interface to get MBeanHome
    and from there then I can only use jmx interface.
    I presume it is not possible not to use weblogic.jar if I want to establish the
    initial connection with Weblogic server?
    Thanks.
    ryan upton <[email protected]> wrote:
    YongLeong wrote:
    Hi,
    I want to know if it is possible to program weblogic management servicewithout
    using weblogic api but just rely on standard JMX interface and methods.
    Currently, I am relying on weblogic api weblogic.jndi.Environment andweblogic.management.MBeanHome
    interface to get the context and access the MBean Server subsystem.Can I find
    the equivalent using jmx?
    My code is as follows:
    Environment env = new Environment();
    env.setProviderUrl(url);
    env.setSecurityPrincipal(username);
    env.setSecurityCredentials(password);
    Context ctx = env.getInitialContext();
    MBeanHome home = (MBeanHome) ctx.lookup(MBeanHome.ADMIN_JNDI_NAME);
    String domain = home.getDomainName();
    homeServer = home.getMBeanServer();
    Thank you.I think you'll find your answer here:
    http://edocs.bea.com/wls/docs81/jmx/index.html
    HTH
    ~Ryan

  • Unable to access Weblogic console

    Hi,
    I am using Jdev 11.1.1.3.0. I have started the Integration Server and it is successful.
    It is bout to port 7101
    I ahve tried to access the weblogic console or EM at
    http://127.0.0.1/em
    http://127.0.0.1/console but I get a 404 page not found error
    but when I try http://127.0.0.1/ I can see the Welcome page with all the components SOA EM Console listed
    Please help
    Thanks
    Ashrita

    Hi Ashrita,
    In your URL it looks like the PORT is missing for Example If your WebLogic Server is running on your Local Box and the Port of it is 7001 then you must try to open the AdminConsole using:
    http://127.0.0.1:7001/console
    The following URL will work only when your WebLogic Server will be running on port 80.....
    http://127.0.0.1/console
    Because the 80 is default HTTP listen port so in the URL you wont be able to see Post number.
    So Please check in which Port your WebLogic Server is RUNNING and then add that Post Number as well in the URL. like:
    http://<WLSHostName>:<Port>/console
    Thanks
    Jay SenSharma
    http://middlewaremagic.com/weblogic  (Middleware Magic Is Here)

  • Marker interface use

    In which case Marker interface is getting use plz tell

    Marker Interfaces are giving specification to the JVM about the implementing classes.
    One of the features of the Java programming language is that it mandates a separation between interfaces (pure behavior) and classes (state and behavior). Interfaces are used in Java to specify the behavior of derived classes. Often you will come across interfaces in Java that have no behavior. In other words, they are just empty interface definitions. These are known as marker interfaces. Marker interfaces are also called "tag" interfaces since they tag all the derived classes into a category based on their purpose.
    Some examples of marker interfaces in the Java API include: -
    Java.lang.Cloneable
    A class implements the Cloneable interface to indicate to the Object.clone() method that it is legal for that method to make a field-for-field copy of instances of that class.
    java.io.Serializable
    Serialization is nothing but s saving the state of an object to persistent storage as byte stream. Serializability of a class is enabled by the class implementing the java.io.Serializable interface. Classes that do not implement this interface will not have any of their state serialized or deserialized. All subtypes of a serializable class are themselves serializable. The serialization interface has no methods or fields and serves only to identify the semantics of being serializable. To allow subtypes of non-serializable classes to be serialized, the subtype may assume responsibility for saving and restoring the state of the supertype's public, protected, and (if accessible) package fields. The subtype may assume this responsibility only if the class it extends has an accessible no-arg constructor to initialize the class's state. It is an error to declare a class Serializable if this is not the case. The error will be detected at runtime.
    java.util.EventListener
    A tagging interface that all event listener interfaces must extend.
    java.rmi.Remote
    The Remote interface serves to identify interfaces whose methods may be invoked from a non-local virtual machine. Any object that is a remote object must directly or indirectly implement this interface. Only those methods specified in a "remote interface", an interface that extends java.rmi.Remote are available remotely.
    Javax.servlet.SingleThreadModel
    Ensures that servlets handle only one request at a time. This interface has no methods. If a servlet implements this interface, you are guaranteed that no two threads will execute concurrently in the servlet's service method.
    Java.util.RandomAccess
    This Marker interface used by List implementations (ArrayList, Vector) to indicate that they support fast (generally constant time) random access. The primary purpose of this interface is to allow generic algorithms to alter their behavior to provide good performance when applied to either random or sequential access lists.
    Javax.ejb.EnterpriseBean
    The EnterpriseBean interface must be implemented by every enterprise Bean class. It is a common superinterface for the SessionBean, EntityBean and MessageDrivenBean interfaces.
    Reference From Sun Documentation

  • How to do inbound and outbound interfacing using UTL_FILE?

    dear members,
    How can we do interfacing from a legacy system to oracle and vice versa using the UTL_FILE package. I mean how to do an INBOUND and OUTBOUND interfacing using utl_file.
    regards
    sandeep

    Hi Sandeep,
    I do not know if I got your question correct.
    Here is my understanding of it, pls correct me if I am wrong:
    You want to read from and write to the OS from inside the DB? Right?
    There are differnt waysa to do so, depanding on your Oracle version:
    1. you can use the initialization parameter UTL_FILE_DIR to specify a directory on OS where you can read from and write to through the package UTL_FILE.
    2. You can use a directory object in the DB to manage read write access to the OS. This is also usable with the package UTL_FILE as location where to read from and write to.
    => CREATE DIRECTORY my_dir AS '/home/oracle/my_directory';
    GRANT read , write ON DIRECTORY my_dir TO scott;
    SELECT * FROM dba_directories;
    You need CREATE ANY DIRECTORY system privilege for this.
    You can use directory objects also for external tables.
    With these you can read from flat files in teh directory on OS with a select statement as if it were a table inside the DB.
    Does this go into the direction you were thinking of?
    Hope it helps for the first.
    Regards,
    Lutz

  • ISetup new custom interface using BC4J/java class

    Hi,
    I am able to create new custom interface using the link :- How to setup an user to be Oracle iSetup Super user ? but I have not seen anything for BC4J filter set, as per oracle iSetup developer guide clearly explains step by step process how to create custom BC4J interface type, but they have not mention how to add filters, as per oracle developer guide we have to use 'iSetup Framework' for BC4J, if we select type as 'iSetup Framework' then we don't have option to add filter parameters.
    Any idea how to see existing  iSetup interface repository values, Search shows the result, but we can't go in details? any idea to see this?
    Oracle have good interface repository but most of them does not have option to filter, and  update so I want to customize them by adding new interfaces with filterable and update option
    Regards
    Anil

    First, be sure your properties file is in the root of the classpath.
    The Messages.properties or Messages_en.properties should be in the WEB-INF/classes/ directory of the war or as a root file of a jar included in the classpath (WEB-INF/lib).
    If it doesn't work, try adding a "/" before the file name. The classloader will try to find it as a root file of the classpath.
    For example:
              ResourceBundle messages = ResourceBundle.getBundle("/Messages", locale);
    If you are using sun appserver, the classloader hierarchy is configured by default from inside the war to outside, so it will search first in the WEB-INF/classes/Messages_en.properties and then it will search the file inside each jar file in WEB-INF/lib.
    If you want more information, check the classloader hierarchy of the appserver you are using.
    Hope it helps.

  • Interface Using BAPI for Uploading shipment datas

    Can any1 send me the example code for Inbound Interface using BAPI for Uploading shipment datas.please kindly send me the programs which u using with BAPI

    Hi
    Except hiring (or new joinee) for all other actions you can use below Function Module.
    HR_INFOTYPE_OPERATION.
    ~~~Ganesh Kumar K.

  • Build interface using analytic functions twice

    Hi all, tell me please is it possible to build interface using analytic functions twice, like:
    select max(tt.val) from (
    select id, sum(val) val
    from (
    select 1 id, 10 val from dual union all
    select 2 id, 10 val from dual union all
    select 2 id, 30 val from dual union all
    select 2 id, 10 val from dual union all
    select 3 id, 20 val from dual) t
    group by id) tt
    thanks in advance

    HI,
    Just a question...
    You used only dual table. That correspond to the reality or is just as example?
    I mean, won't physical table be used?
    I believe you need that at target column, is that true?

  • I'm looking for examples of accessing shared libraries

    I want to look at some examples of accessing vi's in my shared library.

    Mikey,
    In posting your questions, please be as specific as possible. Your questions are confusing.
    I don't understand what you are asking. It sounds to me like you want to access a labVIEW DLL from your DLL. I don't think you will find any examples of that here. If this is what you are looking for, then you already have the answer. DLLs are a standard. Calling them is not dependent upon the compiler you use. You call a LabVIEW DLL like you would call a DLL written in VB, C/C++, Java, or whatever.
    Of course, in order to access LabVIEW code from C, it must be built into a DLL. Do a search on the NI website for DLL, shared library, etc, and you should find some application notes, and other documentation that will answer your questions.
    Als
    o, I strongly suggest that you take the following courses from National Instruments:
    LabVIEW Basics (I and II)
    LabVIEW Advanced (all three days)

  • Cascaded routers: no internet access when second router not use NAT

    Cascaded routers: no internet access when second router not use NAT
    Here is my setup:
    [pre]
    WAN
    |
    | 74.96.170.x (WAN IP)         |
    | Router1(Verizon FiOS Router) |
    | Model: MI424WR-GEN2 (Rev F)  |
    | Firmware: 20.21.0.2          |
    | Def router: 74.96.170.1      |
    | 192.168.1.1 (Local IP)       |
    |
    |  192.168.1.22 (WAN IP)   |
    |  Router2(Linksys)        |
    |  Model: WRT54GL v1.1     |
    |  Firmware: v4.30.16      |
    |  Def Router: 192.168.1.1 |
    |  192.168.2.1 (Local IP)  |
    |
    | Computer 192.168.2.160   |
    | Def Router: 192.168.2.1  |
    "q.route" 120L, 4441C written
    [m.wang@m-wang-ltm2:/Users/m.wang/m/Network]
    $ more q.route 
    Cascaded routers: no internet access when second router not use NAT
    Here is my setup:
    [pre]
    WAN 

    | 74.96.170.x (WAN IP)         | 
    | Router1(Verizon FiOS Router) | 
    | Model: MI424WR-GEN2 (Rev F)  | 
    | Firmware: 20.21.0.2          |
    | Def router: 74.96.170.1      |
    | 192.168.1.1 (Local IP)       | 
    |
    |  192.168.1.22 (WAN IP)   | 
    |  Router2(Linksys)        | 
    |  Model: WRT54GL v1.1     |
    |  Firmware: v4.30.16      |
    |  Def Router: 192.168.1.1 |
    |  192.168.2.1 (Local IP)  |
    |
    | Computer 192.168.2.160   | 
    | Def Router: 192.168.2.1  | 
    | NO iptables, basic setup |
    [/pre]
    On computer, I have:
    [pre]
    # route
    Kernel IP routing table
    Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
    default         192.168.2.1     0.0.0.0         UG    2      0        0 enp2s0
    loopback        localhost       255.0.0.0       UG    0      0        0 lo
    192.168.2.0     *               255.255.255.0   U     0      0        0 enp2s0
    [/pre]
    On Router2, I have:
    [pre]
    Routing Table Entry List
    Destination LAN IP | Subnet Mask   | Gateway   | Hop Count | Interface
    192.168.2.0          255.255.255.0   0.0.0.0     1           LAN & Wireless
    192.168.1.0          255.255.255.0   0.0.0.0     1           WAN (Internet)
    0.0.0.0              0.0.0.0         192.168.1.1 1           WAN (Internet)
    [/pre]
    Router2's Operating Mode is Gateway. On Router1, I have: 
    [pre]
    [Router1] Routing Table
    Name                  Destination Gateway      Netmask       Metric   Status
    Network (Home/Office) 192.168.2.0 192.168.1.22 255.255.255.0 0        Applied 
    Network (Home/Office) 192.168.1.0 192.168.1.1  255.255.255.0 0        Applied 
    Routing Protocol: Internet Group Management Protocol (IGMP)
    Default Gateway: 74.96.170.1
    [/pre]
    On computer, I can run tcptraceroute to yahoo.com OK:
    [pre]
    # tcptraceroute yahoo.com
    Selected device enp2s0, address 192.168.2.160, port 46596 for outgoing packets
    Tracing the path to yahoo.com (206.190.36.45) on TCP port 80 (http), 30 hops max
     1  192.168.2.1  0.610 ms  0.729 ms  0.735 ms
     2  192.168.1.1  1.843 ms  1.378 ms  1.363 ms
     3  l100.washdc-vfttp-107.verizon-gni.net (96.241.146.1)  13.620 ms * *
    ... /* It reached the destination. */
    [/pre]
    I want to change Router2's Operating Mode from "Gateway" to "Router" because I
    want to turn off NAT on Router2 so that I can access all computers attached to
    Router2 by their individual IP instead of using port forwarding at Router2.
    The problem is after the mode change from "Gateway" to "Router", and regardless
    whether I disable RIP or enable RIP, and on what interfaces it is enabled, computer
    192.168.2.160 does not have internet connection. 
    Observations:
    [0] INTRAnet works as I can reach computer 192.168.2.160 from computer behind Router1
    192.168.1.x and vice versa.
    [1] ping and traceroute *work* on Router2 itself using the built-in dianostic tool.
    [2] nslookup on computer 192.168.2.160 always works on new lookup. It uses
    192.168.2.1 as the resolver.
    [3] tcptraceroute stops after step 2:
    [pre]
    # tcptraceroute yahoo.com
    Selected device enp2s0, address 192.168.2.160, port 45999 for outgoing packets
    Tracing the path to yahoo.com (98.139.183.24) on TCP port 80 (http), 30 hops max
     1  192.168.2.1  2.553 ms  0.534 ms  0.638 ms
     2  192.168.1.1  1.342 ms  0.964 ms  0.867 ms
     3  * * *
    [/pre]
    [4] tcpdump shows that computer 192.168.2.160 tries to reach out and nothing is returned:
    [pre]
    13:34:03.172828 IP 192.168.2.160.45999 > 98.139.183.24.http: Flags [S], seq 1122548929, win 0, length 0
    13:34:06.175786 IP 192.168.2.160.45999 > 98.139.183.24.http: Flags [S], seq 1122548929, win 0, length 0
    13:34:09.178804 IP 192.168.2.160.45999 > 98.139.183.24.http: Flags [S], seq 1122548929, win 0, length 0
    [/pre]
    This is not expected because NAT to internet should still be done by Router1, no? Computer
    behind Router1 with IP 192.168.1.x has internet connection.
    [5] It looks like I cannot change the Routing Table Entry on Router2. I do not think I need to change anything,
    just an observation.
    [6] If I use LAN to LAN connection, then both intranet and internet works. [The internet IP of Router2 can be
    anything not in the same subnet of the Router1, and DHCP on the local side should be disabled to avoid conflict
    with the the DHCP on Router1].

    I have a question. Unfortunately in order to ask my question, I have to have a lengthy description of my setup. Basically, I have a second Linksys router in "router" operating mode with NAT disabled connected to the Verizon router, and I have a computer which is in a different subnet (192.168.2.x) behind the Linksys router. This computer can communicate with computers behind Verizon router in subnet (192.168.1.x), but cannot reach internet. This is a simplified version of my question, full details are in the original post.
    If I setup the Linksys router in "gateway" operating mode, which means with NAT enabled, then both intranet and internet works, but there is no easy way to setup port forwarding for 10 compueters in 192.168.2.x network to communicate with 10 computers in 192.168.1.x network.
    If I setup the Linksys router in a LAN to LAN configuration with Verizon routers, but this way all computers are in the same subnet, I want them to be in different subnet for access control and things like that.
    I hope this makes things a little clear.
    Thanks.

  • Accessing Weblogi JNDI

    i'm trying to access weblogic JNDI from my code and it gaves me this Error:
    Caused by: javax.naming.CommunicationException [Root exception is java.net.ConnectException: t3://localhost:7001: Destination unreachable; nested exception is:
         java.net.ConnectException: Connection refused: connect; No available router to destination]
         at weblogic.jndi.internal.ExceptionTranslator.toNamingException(ExceptionTranslator.java:40)
         at weblogic.jndi.WLInitialContextFactoryDelegate.toNamingException(WLInitialContextFactoryDelegate.java:783)
         at weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialContextFactoryDelegate.java:365)
         at weblogic.jndi.Environment.getContext(Environment.java:315)
         at weblogic.jndi.Environment.getContext(Environment.java:285)
         at weblogic.jndi.WLInitialContextFactory.getInitialContext(WLInitialContextFactory.java:117)
         at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:667)
         at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:288)
         at javax.naming.InitialContext.init(InitialContext.java:223)
         at javax.naming.ldap.InitialLdapContext.<init>(InitialLdapContext.java:134)
         at com.etech.common.ldap.ad.UserLdapHandler.initLdapContext(UserLdapHandler.java:141)
         ... 42 more
    Caused by: java.net.ConnectException: t3://localhost:7001: Destination unreachable; nested exception is:
         java.net.ConnectException: Connection refused: connect; No available router to destination
         at weblogic.rjvm.RJVMFinder.findOrCreateInternal(RJVMFinder.java:216)
         at weblogic.rjvm.RJVMFinder.findOrCreate(RJVMFinder.java:170)
         at weblogic.rjvm.ServerURL.findOrCreateRJVM(ServerURL.java:153)
         at weblogic.jndi.WLInitialContextFactoryDelegate$1.run(WLInitialContextFactoryDelegate.java:344)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:147)
         at weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialContextFactoryDelegate.java:339)
         ... 50 more
    the enviroment i use is like this :
    environment.put(Context.INITIAL_CONTEXT_FACTORY, "weblogic.jndi.WLInitialContextFactory");
    environment.put(Context.PROVIDER_URL, "t3://localhost:7001");
    environment.put(Context.REFERRAL, "follow");
    Any help will be great.

    i'm trying to access weblogic JNDI from my code and it gaves me this Error:
    Caused by: javax.naming.CommunicationException [Root exception is java.net.ConnectException: t3://localhost:7001: Destination unreachable; nested exception is:
         java.net.ConnectException: Connection refused: connect; No available router to destination]
         at weblogic.jndi.internal.ExceptionTranslator.toNamingException(ExceptionTranslator.java:40)
         at weblogic.jndi.WLInitialContextFactoryDelegate.toNamingException(WLInitialContextFactoryDelegate.java:783)
         at weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialContextFactoryDelegate.java:365)
         at weblogic.jndi.Environment.getContext(Environment.java:315)
         at weblogic.jndi.Environment.getContext(Environment.java:285)
         at weblogic.jndi.WLInitialContextFactory.getInitialContext(WLInitialContextFactory.java:117)
         at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:667)
         at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:288)
         at javax.naming.InitialContext.init(InitialContext.java:223)
         at javax.naming.ldap.InitialLdapContext.<init>(InitialLdapContext.java:134)
         at com.etech.common.ldap.ad.UserLdapHandler.initLdapContext(UserLdapHandler.java:141)
         ... 42 more
    Caused by: java.net.ConnectException: t3://localhost:7001: Destination unreachable; nested exception is:
         java.net.ConnectException: Connection refused: connect; No available router to destination
         at weblogic.rjvm.RJVMFinder.findOrCreateInternal(RJVMFinder.java:216)
         at weblogic.rjvm.RJVMFinder.findOrCreate(RJVMFinder.java:170)
         at weblogic.rjvm.ServerURL.findOrCreateRJVM(ServerURL.java:153)
         at weblogic.jndi.WLInitialContextFactoryDelegate$1.run(WLInitialContextFactoryDelegate.java:344)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:147)
         at weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialContextFactoryDelegate.java:339)
         ... 50 more
    the enviroment i use is like this :
    environment.put(Context.INITIAL_CONTEXT_FACTORY, "weblogic.jndi.WLInitialContextFactory");
    environment.put(Context.PROVIDER_URL, "t3://localhost:7001");
    environment.put(Context.REFERRAL, "follow");
    Any help will be great.

  • How to Access Weblogic's Console Login? ( /console/LoginForm.jsp)

    Hi all,
    I am working with Weblogic Server 8.1. I would like to take weblogic's current
    administration console and make some modifications. Mostly, I would like to access
    LoginForm.jsp. Where exactly is this file located? I can find the console.war
    file, but the LoginForm.jsp is not there. I can't find the files I need to modify.
    Where can I find files to modify the administration console/login?
    You help is appreciated, thanks!

    Hi KirandeepKaur
    I have integrated the AD successfully and I can see all the AD users from my admin console (Weblogic).
    We are using IPM (Webcenter content imaging) as our front end system and now i can't log in to the ipm system with previous admin login.
    I can log in to other urls without any issue. (Em, console, cs)
    what will be the problem ??
    And how can i add ipm groups to the AD users ????
    Thanks,
    Nir

Maybe you are looking for

  • Cannot connect to other computers on network. HELP!

    Using a G-5 dual 2.0 with 10.4.10 and I am having issues with networking and connecting to other computers on my network. This is an intermittent problem. When I try to connect <go> <connect to server><browse> the computers on the network do not show

  • Can we install OBIEE 10G and 11G on Same Machine

    Hi Experts, I want to install OBIEE 11 G on the same machine(Windows) which already have OBIEE 10.1.3.4. So is it possible. I dont want to upgrade at this stage. Thanks

  • Exception and Condition

    Hi All, Can you tell me what is the difference between Bex Exception and Condition in BW/BI. I have gone through so many forums but still not clear with. Thanks, Sheron

  • CrossTab Questions

    I have a crosstab that looks something like this:      Jan-08     Feb-08     Mar-08     Apr-08     May-08     Jun-08 Jan-08     A     B     C     D     E     F Feb-08          G     H     I     J     K Mar-08               L     M     N     O Apr-08 

  • Software Update permissions problem

    Ok, I'm trying to do the latest software update, but it's telling me: The update... could not be verified and expanded correctly. Make sure you have permission to write to /tmp/501/TemporaryItems/com.apple.SoftwareUpdate, then try again. I've done al