WebLogic RMI vs. Sun's RMI

Hi,
Does anyone have any idea on how to get WebLogic to use Sun's RMI
library instead of the WebLogic one. We have existing Java bytecode (no
source) which uses RMI and will not run on WebLogic (it does however run
fine from Apache Tomcat).
Thanks,
Efraim

WebLogic will only internally utilize its own RMI implementation, however
you should be able to cohabitate with Sun's RMI fine, the VM that WLS runs
on still has the Sun RMI runtime. Can you provide more details?
cheers
mbg
"jessica" <[email protected]> wrote in message
news:3ea66683$[email protected]..
>
I also have this problem,could anyone help answer?
Does that mean i have to convert source code to use weblogic rmi?Or I haveto
define binding name in weblogic propertie file?If it is true and how to?
efraim <[email protected]> wrote:
Hi,
Does anyone have any idea on how to get WebLogic to use Sun's RMI
library instead of the WebLogic one. We have existing Java bytecode (no
source) which uses RMI and will not run on WebLogic (it does however
run
fine from Apache Tomcat).
Thanks,
Efraim

Similar Messages

  • Distributed transactions across RMI-IIOP client to RMI-IIOP server do not work

    Hi,
              Based on the links below:
              http://e-docs.bea.com/wls/docs61/jta/trxrmi.html#1018506
              http://e-docs.bea.com/wls/docs61/jta/gstrx.html#1067532
              It appears that is possible to have distributed transactions across RMI-IIOP
              clients and RMI-IIOP applications (servers).
              I followed up the "Transactions Sample RMI Code" section but it appears that
              the transaction context is not propagated from client to server. I am also
              surprised by the note:
              Note: These code fragments do not derive from any of the sample applications
              that ship with WebLogic Server. They merely illustrate the use of the
              UserTransaction object within an RMI application.
              The above note suggests that there is no sample code available.
              Is there anyone who successfully had RMI-IIOP applications (servers)
              participating in distributed transactions?
              Is there any sample code that illustrates RMI-IIOP applications (servers)
              participating in distributed transactions?
              If anyone thinks that this should work I will post my code that does not
              work.
              Regards,
              Dan Cimpoesu
              

    But if you look to the diagram:
    http://e-docs.bea.com/wls/docs61/jta/gstrx.html#1040200
    it suggests that transactional context is passed from clients to RMI-IIOP
    servers.
    Am I wrong?
    Dan
    "Andy Piper" <[email protected]> wrote in message
    news:[email protected]..
    "Dan Cimpoesu" <[email protected]> writes:
    Transactions over IIOP are not supported or implemented in WLS 6.1 or
    previous. This is a feature of WLS 7.0. In 7.0 we implement OTS.
    andy
    Hi,
    Based on the links below:
    http://e-docs.bea.com/wls/docs61/jta/trxrmi.html#1018506
    http://e-docs.bea.com/wls/docs61/jta/gstrx.html#1067532
    It appears that is possible to have distributed transactions across
    RMI-IIOP
    clients and RMI-IIOP applications (servers).
    I followed up the "Transactions Sample RMI Code" section but it appearsthat
    the transaction context is not propagated from client to server. I amalso
    surprised by the note:
    Note: These code fragments do not derive from any of the sampleapplications
    that ship with WebLogic Server. They merely illustrate the use of the
    UserTransaction object within an RMI application.
    The above note suggests that there is no sample code available.
    Is there anyone who successfully had RMI-IIOP applications (servers)
    participating in distributed transactions?
    Is there any sample code that illustrates RMI-IIOP applications(servers)
    participating in distributed transactions?
    If anyone thinks that this should work I will post my code that does not
    work.
    Regards,
    Dan Cimpoesu

  • How RMI handle exception in RMI kernel ?

    hi everyone.
    How RMI handle exception in RMI kernel ?
    That is , when RMI catch an exception ,
    what RMI should do to handle the exception?
    best regards.

    it throws an exception (some derived class of RemoteException) which is transmitted to, rethrown at, and must be caught at, the client.

  • One RMI client and mutliple RMI server implementation

    Hi,
    We are planning to implement a RMI. In the design approach we are planning to have 1 client and mutiple RMI server and each RMI server register to a system. All the RMI server will have the same functionality. The decision to call particualr RMI server is done at runtime based on some parameter. I am not clear on how to implement the same as I am new to RMI technology, so it would be great if you can suggest some good approach for doing the same.
    Thanks,
    Ramreddy

    greetings,
    your client and server are in the same class?
    i.e. server object (interface implementation instance)
    and lookup are within the same execution thread
    i believe this defeats the purpose of RMI
    the objective is to utilize object methods on different machines
    otherwise, you can just use a local method within your server/client mainline (of course, it ceases to become "remote" at that point)
    logistically, there is also the problem of the runtime not being able to resolve the skeleton/proxy components correctly (since it's probably searching for a client stub which doesn't exist...); maybe you could fake it out by compiling a phony client class - again, this won't provide any advantage but it might run
    perhaps if you shared your system/network setup and a bit more about your design objectives someone in this forum could provide some assistance
    good luck,
    D

  • RMI-IIOP vs WL RMI performance

    Hi,
    We did some performance test of WebLogic RMI and under high load (500-1000
    users), it is rather slow. It is even slower with an EJB interface. If we
    were to used IIOP as the underlying transport protocol, will it improve?
    Would you have any other suggestions for improving performance?
    Thanks
    MC

    Hi,
    Thanks for your reply.
    What I am interested in is the performance of RMI where multiple clients
    e.g. JSPs, all make requests to the same object, as that is what will happen
    in real life. Benchmarking with a single multi-threaded JVM client was not
    recommended - but it seems that JSP may be executed on a single
    multi-threaded JVM client anyway, depending on the Web Server of course.
    Currently, I don't understand how the server-server benchmarking that you
    proposed would work so if you could elaborate on it, that would be great.
    Thanks again,
    MC
    "Don Ferguson" <[email protected]> wrote in message
    news:[email protected]..
    Yes, increasing the thread count will definately help. And note also thata
    WebLogic server has different default configuration values than a WebLogic
    client, so if you want to benchmark server-server performance, you reallyneed
    to use a server.
    mcn wrote:
    Hi Andy,
    Indeed, I was testing using a single multi-threaded JVM client. However,
    isn't that the case if I were to use a web server and have 500-1000
    JSP's
    invoking methods on the same object? What is the work around?
    Also, I had the executeThreadCount at the default value of 15. Willdoubling
    it help?
    Thanks
    MC
    "Andy Piper" <[email protected]> wrote in message
    news:[email protected]..
    "mcn" <[email protected]> writes:
    We did some performance test of WebLogic RMI and under high load
    (500-1000
    users), it is rather slow. It is even slower with an EJB interface.
    If
    we
    were to used IIOP as the underlying transport protocol, will it
    improve?
    Would you have any other suggestions for improving performance?It is likely that you have some config issue (heap size, number of
    threads etc) since RMI is known to scale pretty well. Using IIOP will
    not improve things. Also make sure you are not making the classic
    mistake of invoking from a single multi-threaded JVM client since this
    will multiplex all calls over the same connection.
    andy

  • Weblogic 8.1 & Sun Java Studio Creator

    I'm in a new position where I need to deploy web apps created in Sun's Java Studio Creator to Weblogic 8.1, that hits an Oracle 8i back end.
    I'm curious to see if anyone on this board is using a similar mix of technologies. If so, what drivers are you using in your Studio Creator data sources?
    Thanks!

    Check it out. You will see, there is a problem.
    Error message from Sun Java Studio Creator:
    Start file:///C:\Documents and Settings\computer user\.Creator\EA\websvc\TFormat.wsdl 06/25/2004 12:23:22:�Parsing WSDL. Please wait ..WSDL - file:/C:/Documents and Settings/computer user/.Creator/EA/websvc/TFormat.wsdl 06/25/2004 12:23:49:�Error Parsing WSDL. Please see the log file for details. Exception = modeler error: failed to parse document at "file:/C:/Documents and Settings/computer user/.Creator/EA/websvc/TFormat.wsdl": org.xml.sax.SAXParseException: Content is not allowed in prolog.
    }}

  • Using BEA Weblogic Portal with Sun Access Manager

    Hello all,
    I am wondering if anyone has had experience with using Weblogic Portal (versions 8.1 or 9.2) with Sun's Access Manager tool (part of the Identity Management suite).
    In particular, I would like to know what access control tasks were performed through access manager, and which were performed portal-side.
    Any information would be appreciated.
    Thanks!

    Hi
    Has any one explored the below question.
    Is WLP 9.2 compatible with Sun Access Manager?
    If yes, please let know the details.
    Thanks

  • Weblogic Producer and Sun Portal as Consumer

    Hi,
    I am trying to have Weblogic 8.1SP4 as a producer and Sun Portal 2005Q1 as consumer.
    I have deployed my JSR 168 compliant portlet application on Weblogic. When i try 2 register a WSRP consumer in Sun Portal using the WSDL URL generated by Weblogic it throws a
    java.io.FileNotFoundException: http://hostip:port/TestPortalProject/wlp_wsrp_v1_bindings.wsdl.
    Any suggestions on why such an exception is thrown?
    Regards,
    Mukta

    This is a known issue. The work-around is to deploy copy the imported
    files from wsrp-common.jar's schema/src dir to the root of your webapp.
    Subbu
    Mukta Shetye wrote:
    Hi,
    I am trying to have Weblogic 8.1SP4 as a producer and Sun Portal 2005Q1 as consumer.
    I have deployed my JSR 168 compliant portlet application on Weblogic. When i try 2 register a WSRP consumer in Sun Portal using the WSDL URL generated by Weblogic it throws a
    java.io.FileNotFoundException: http://hostip:port/TestPortalProject/wlp_wsrp_v1_bindings.wsdl.
    Any suggestions on why such an exception is thrown?
    Regards,
    Mukta

  • Weblogic MBeanMaker and Sun JDK 1.4.2

    I just upgraded the JVM in my development environment to 1.4.2_04 and
    the Weblogic MBeanMaker no longer works.
    Has anyone seen this?
    The configuration is as follows:
    WLS 8.1 SP2
    JDK 1.4.2_04
    Windows 2000
    The build script is Ant driven and I verified that if I return to
    1.4.1_06 it works fine and the MBean jar file is created.
    Here is the relevant xml file from the Ant script and the error that I get:
    <target name="build.mjf" depends="init">
    <echo message="Generating MJF file: ${mjf}"/>
    <java classname="weblogic.management.commo.WebLogicMBeanMaker"
    fork="true" failonerror="true">
    <jvmarg line="-Dfiles=${mfiles} -DMJF=${mjf} -DcreateStubs=true"/>
    <classpath>
    <pathelement path="${classpath}"/>
    <pathelement location="${build_dir}"/>
    <pathelement location="${WEBLOGIC}"/>
    </classpath>
    <arg value="-g"/>
    <arg value="-verbose"/>
    </java>
    </target>
    build.mjf:
    [echo] Generating MJF file: X:/release/CustomWeblogicProviders.jar
    [java] Compiling the files...
    [java] About to compile with arguments:
    [java] -g -d X:/release/lib/build_mb
    [java] javac: no source files
    [java] Usage: javac <options> <source files>
    [java] where possible options include:
    [java] -g Generate all debugging info
    [java] -g:none Generate no debugging info
    [java] -g:{lines,vars,source} Generate only some debugging info
    [java] -nowarn Generate no warnings
    [java] -verbose Output messages about what the
    compiler is doing
    [java] -deprecation Output source locations where
    deprecated APIs are used
    [java] -classpath <path> Specify where to find user class
    files
    [java] -sourcepath <path> Specify where to find input
    source files
    [java] -bootclasspath <path> Override location of bootstrap
    class files
    [java] -extdirs <dirs> Override location of installed
    extensions
    [java] -d <directory> Specify where to place generated
    class files
    [java] -encoding <encoding> Specify character encoding used
    by source files
    [java] Compiling these files (debug)Exec failed .. exiting
    [java] -source <release> Provide source compatibility
    with specified release
    [java] -target <release> Generate class files for
    specific VM version
    [java] -help Print a synopsis of standard options
    --dejan

    I think, this is a bug between the jvm from Sun and the Ant Task because I have
    tried without the Server, and I have not this problem.
    I have tried with a lot of values, for exemple :
    -Xms32m -Xmx200m
    -Xms64m -Xmx200m
    -Xms128m -Xmx200m
    -Xms128m -Xmx128m
    -Xms256m -Xmx256m
    -Xms512m -Xmx512m
    If the virtual machine need up than 512, there is a problem somewhere !!!
    And I have not this problem with the previous version 1.4.1_05.
    I have also tried with just the max value, -Xmx200m, I have no problem. And with
    just the min value, I have the following message Too small initial heap, else
    with 512.
    This is impossible to have not enough memory with 512 MB.
    How has you resolved your problem ???
    Thanks for your help.
    "Deyan D. Bektchiev" <[email protected]> wrote:
    Sebastian,
    Your problem might be much simpler than you think. Just set your minimum
    heap size to be equal to the maximum and then try it again.
    It could be that the minimum heap size allowed values was changed.
    Regards,
    Dejan
    Seb wrote:
    Hi Deyan,
    We have almost the same problem with an ant task to start a WeblogicServer.
    Our Ant Task starts any problem with the java version 1.4.1_05 but wehave the
    same error message "Invalid initial heap size: -Xms32m -Xmx200m Couldnot create
    the Java virtual machine." when we uses the java version 1.4.2.
    Thanks help us to find a solution.
    "Deyan D. Bektchiev" <[email protected]> wrote:
    I just upgraded the JVM in my development environment to 1.4.2_04 and
    the Weblogic MBeanMaker no longer works.
    Has anyone seen this?
    The configuration is as follows:
    WLS 8.1 SP2
    JDK 1.4.2_04
    Windows 2000
    The build script is Ant driven and I verified that if I return to
    1.4.1_06 it works fine and the MBean jar file is created.
    Here is the relevant xml file from the Ant script and the error that
    I get:
    <target name="build.mjf" depends="init">
    <echo message="Generating MJF file: ${mjf}"/>
    <java classname="weblogic.management.commo.WebLogicMBeanMaker"
    fork="true" failonerror="true">
    <jvmarg line="-Dfiles=${mfiles} -DMJF=${mjf} -DcreateStubs=true"/>
    <classpath>
    <pathelement path="${classpath}"/>
    <pathelement location="${build_dir}"/>
    <pathelement location="${WEBLOGIC}"/>
    </classpath>
    <arg value="-g"/>
    <arg value="-verbose"/>
    </java>
    </target>
    build.mjf:
    [echo] Generating MJF file: X:/release/CustomWeblogicProviders.jar
    [java] Compiling the files...
    [java] About to compile with arguments:
    [java] -g -d X:/release/lib/build_mb
    [java] javac: no source files
    [java] Usage: javac <options> <source files>
    [java] where possible options include:
    [java] -g Generate all debugging info
    [java] -g:none Generate no debugging info
    [java] -g:{lines,vars,source} Generate only some debugging
    info
    [java] -nowarn Generate no warnings
    [java] -verbose Output messages about what the
    compiler is doing
    [java] -deprecation Output source locations where
    deprecated APIs are used
    [java] -classpath <path> Specify where to find user class
    files
    [java] -sourcepath <path> Specify where to find input
    source files
    [java] -bootclasspath <path> Override location of bootstrap
    class files
    [java] -extdirs <dirs> Override location of installed
    extensions
    [java] -d <directory> Specify where to place generated
    class files
    [java] -encoding <encoding> Specify character encoding used
    by source files
    [java] Compiling these files (debug)Exec failed .. exiting
    [java] -source <release> Provide source compatibility
    with specified release
    [java] -target <release> Generate class files for
    specific VM version
    [java] -help Print a synopsis of standard
    options
    --dejan

  • WebLogic hangs on Sun IDM Upgrade

    Hi,
    We recently upgraded our SIM set up from 5.0 SP4 - 6.0 - 7.1. Now we are facing a strange issue that weblogic application server on startup hangs indefinitely.
    But if we remove the SIM deployment from config.xml then WebLogic starts instantaneously. Also adding the SIM deployment post weblogic startup works abosolutely fine.
    Now the issue this needs to be done every time we start WebLogic app server.
    We are using
    WebLogic: 8.1.4 on SuSE Linux 9.
    Please suggest how can we resolve this issue

    Hello,
    Could you take a thread dump at that state?
    kill -3 <pid of WLS>
    Whats the state of the client application
    - Exception (PeerGone, No Router)
    - or just hangs
    Also, you could run WLS using the JRE that ships with it. AFAIK, its v1.3.1_06.
    rgds
    MS

  • How tom invoke an EJB from another EJB using the sun rmi protocl in Weblogi

    Hi,
    I am particularly new to EJB.
    My scenario is
    client invoking-->EJB-----invoking ----(Either a webService or an EJB)
    in WEBLOGIC
    Is it possible that a call from EJB to another EJB or WebService use Sun's RMI as underlying protocol instead of t3 or IIOP which are used in Weblogic ?
    Would be really a great help if you could provide me some sample on it on weblogic.

    Hi Stefan,
    You don't need to provide the InitialContextFactory for running a standalone client. The following should work just fine:
    Context initial = new InitialContext();
    System.out.println("Looking up ...");
    Object objref = initial.lookup(EJB);  //the lookup name should be a global JNDI name      //and not from the java:comp namespace
    System.out.println("Looked up EJB");The JNDI implementation looks for the jndi.properties file in your classpath. So make sure that you have the appserv-rt.jar from your <server_installation>/lib directory in your classpath.
    HTH,
    Sheetal

  • RMI Clustering in Weblogic 7.0

    Hi !
    I am trying to use RMI Clustering in Weblogic 7.0. I followed the samples in the
    documentation and it doesnt work for me. I could successfully bing my RMi Server
    object to the JNDI tree and could view it via the weblogic JNDI tree. Even the
    lookup is fine, but when I invoke a method on the remote object via the client,
    I get the following error. Clearly there is something wrong with the Dynamic stub
    downloaded from the JNDI tree.
    Any Clues please...
    Thanks
    Sanjay
    class examples.rmi.hello.HelloImpl_WLStub
    java.rmi.ConnectException: Couldn't connect to weblogic.rjvm.RJVMImpl@3a0ab1 -
    id: '6003776402499002017C:15.10.45.93R:12
    46860412257523095S:15.10.45.93:[7001,7001,7002,7002,7001,7002,-1]:examples:examplesServer'
    connect time: 'Fri Sep 06 08:
    42:01 IST 2002'
    at weblogic.rjvm.ConnectionManager.getOutputStream(ConnectionManager.java:1559)
    at weblogic.rjvm.RJVMImpl.getRequestStream(RJVMImpl.java:363)
    at weblogic.rmi.internal.BasicRemoteRef.getOutboundRequest(BasicRemoteRef.java:88)
    at weblogic.rmi.internal.BasicRemoteRef.invoke(BasicRemoteRef.java:116)
    at examples.rmi.hello.HelloImpl_WLStub.sayHello(Unknown Source)
    at examples.rmi.hello.HelloClient.main(HelloClient.java:42)

    Hi !
    I am trying to use RMI Clustering in Weblogic 7.0. I followed the samples in the
    documentation and it doesnt work for me. I could successfully bing my RMi Server
    object to the JNDI tree and could view it via the weblogic JNDI tree. Even the
    lookup is fine, but when I invoke a method on the remote object via the client,
    I get the following error. Clearly there is something wrong with the Dynamic stub
    downloaded from the JNDI tree.
    Any Clues please...
    Thanks
    Sanjay
    class examples.rmi.hello.HelloImpl_WLStub
    java.rmi.ConnectException: Couldn't connect to weblogic.rjvm.RJVMImpl@3a0ab1 -
    id: '6003776402499002017C:15.10.45.93R:12
    46860412257523095S:15.10.45.93:[7001,7001,7002,7002,7001,7002,-1]:examples:examplesServer'
    connect time: 'Fri Sep 06 08:
    42:01 IST 2002'
    at weblogic.rjvm.ConnectionManager.getOutputStream(ConnectionManager.java:1559)
    at weblogic.rjvm.RJVMImpl.getRequestStream(RJVMImpl.java:363)
    at weblogic.rmi.internal.BasicRemoteRef.getOutboundRequest(BasicRemoteRef.java:88)
    at weblogic.rmi.internal.BasicRemoteRef.invoke(BasicRemoteRef.java:116)
    at examples.rmi.hello.HelloImpl_WLStub.sayHello(Unknown Source)
    at examples.rmi.hello.HelloClient.main(HelloClient.java:42)

  • Regular RMI server object with WebLogic JNDI

    Is that possible to register a regular RMI object with WebLogic JNDI
    tree? I was building a simple program (using javac and rmic only) based
    on the java.rmi.* (without changing the import statements to
    weblogic.rmi.*) and using the weblogic.jndi to register the server
    object. Below is some piece of code,
    Context ctx = null;
    Hashtable ht = new Hashtable();
    ht.put(Context.INITIAL_CONTEXT_FACTORY,
    "weblogic.jndi.WLInitialContextFactory");
    ht.put(Context.PROVIDER_URL, "t3://172.20.20.20:7001");
    ctx = new InitialContext(ht);
    ctx.bind("HelloServer", obj);
    The code failed for the following reason,
    javax.naming.NamingException. Root exception is
    java.rmi.MarshalException: failed to marshal public abstract void
    weblogic.jndi.internal.NamingNode.bind(java.lang.String,java.lang.Object,java.util.Hashtable)
    throws javax.naming.NamingException,java.rmi.RemoteException; nested
    exception is:
    java.rmi.server.ExportException: A description for
    examples.rmi.hello.HelloImpl was found but it could not be read due to:
    [Failed to find examples.rmi.hello.HelloImpl_WLStub or
    examples.rmi.hello.Hello_WLStub for class examples.rmi.hello.HelloImpl]
    java.rmi.StubNotFoundException: Failed to find
    examples.rmi.hello.HelloImpl_WLStub or examples.rmi.hello.Hello_WLStub
    for class examples.rmi.hello.HelloImpl
    at
    weblogic.rmi.internal.BasicDescriptor.<init>(BasicDescriptor.java:101)
    at
    weblogic.rmi.internal.BasicRuntimeDescriptor.<init>(BasicRuntimeDescriptor.java:50)
    at
    weblogic.rmi.internal.DescriptorManager.resolveClass(DescriptorManager.java:55)
    at
    weblogic.rmi.internal.DescriptorManager.getDescriptor(DescriptorManager.java:39)
    at
    weblogic.rmi.internal.DescriptorManager.getDescriptor(DescriptorManager.java:30)
    at
    weblogic.rmi.internal.OIDManager.getRequestDispatcher(OIDManager.java:281)
    at
    weblogic.rmi.internal.OIDManager.getReplacement(OIDManager.java:270)
    at
    weblogic.rmi.internal.OIDManager.replaceObject(OIDManager.java:98)
    at
    weblogic.common.internal.ChunkedObjectOutputStream.replaceObject(ChunkedObjectOutputStream.java:55)
    at
    weblogic.common.internal.ChunkedObjectOutputStream$NestedObjectOutputStream.replaceObject(ChunkedObjectOutputStream.java:239)
    Any idea?
    - SteveC

    "Pyung Yoon" <[email protected]> writes:
    MediatorInterface mediator = (MediatorInterface) java.rmi.Naming.lookup("rmi://localhost:7001/TestMediator);This implies JRMP which the server does not support. You need to use t3 or iiop.
    andy

  • Servlet under Weblogic talking to external daemon via RMI

    Hi,
    We are trying to deploy our servlet-based application to Weblogic 8.1 and have
    hit problems with RMI. This application has worked for years under Tomcat.
    The servlet attempts to make some RMI calls to an external process which is running
    it's own RMI registry. The RMI connection to that external process is being refused
    though.
    From the Weblogic doc, I've seen information about building RMI stubs using the
    Weblogic rmic. But are application needs to support non-Weblogic servlet engines
    too so we do not want to have to change our RMI classes around if at all possible.
    Does anyone know if it is possible to use standard Java RMI classes inside of
    Weblogic to talk to standard RMI classes outside of Weblogic?
    Thank you,
    Tom

    Hi, Tom
    Yes, it is possible. I have an application that uses standard Java RMI classes
    inside Weblogic. There is a Java Control doing lookup to a remote component.
    I had to take care with the permissions in the policy file. If the connection
    is being refused, probably you have to review permissions, specially socket permissions.
    Bye,
    Diana
    "Tom H" <[email protected]> wrote:
    >
    Hi,
    We are trying to deploy our servlet-based application to Weblogic 8.1
    and have
    hit problems with RMI. This application has worked for years under Tomcat.
    The servlet attempts to make some RMI calls to an external process which
    is running
    it's own RMI registry. The RMI connection to that external process is
    being refused
    though.
    From the Weblogic doc, I've seen information about building RMI stubs
    using the
    Weblogic rmic. But are application needs to support non-Weblogic servlet
    engines
    too so we do not want to have to change our RMI classes around if at
    all possible.
    Does anyone know if it is possible to use standard Java RMI classes inside
    of
    Weblogic to talk to standard RMI classes outside of Weblogic?
    Thank you,
    Tom

  • Attempting to use SSL over RMI from a web application to a RMI server

    Hi,
    I am attempting to use SSL over RMI to a server. The client is the web
    application that is hosted on WebLogic and that attempts to connect to the
    server. There is no client or server verification at either the client or
    the server end. The code works outside of WebLogic 7/8 but has the following
    issues when running the web application inside weblogic:
    java.rmi.ConnectException: Connection refused to host: gkhanna1; nested
    exception is:
    java.net.ConnectException: Connection refused: connect
    java.net.ConnectException: Connection refused: connect
    at java.net.PlainSocketImpl.socketConnect(Native Method)
    at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:350)
    at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:137)
    at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:124)
    at java.net.Socket.<init>(Socket.java:268)
    at java.net.Socket.<init>(Socket.java:95)
    at
    sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(RMIDirectSocketF
    actory.java:20)
    at
    sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(RMIMasterSocketF
    actory.java:115)
    at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:494)
    at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:185)
    at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:169)
    at sun.rmi.server.UnicastRef.newCall(UnicastRef.java:313)
    at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source)
    at java.rmi.Naming.lookup(Naming.java:79)
    at
    com.hyperion.css.spi.impl.ntlm.NTLMConnectionClient.initConnection(NTLMConne
    ctionClient.java:59)
    at
    com.hyperion.css.spi.impl.ntlm.NTLMConnectionClient.getUsers(NTLMConnectionC
    lient.java:197)
    at com.hyperion.css.CSSAPIImpl.getUsers(Unknown Source)
    at com.hyperion.css.CSSAPIImpl.initialize(Unknown Source)
    at com.hyperion.css.CSSAPIImpl.initialize(Unknown Source)
    at jsp_servlet._jsp._app1.__app1signin._jspService(__app1signin.java:133)
    at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
    at
    weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(Servle
    tStubImpl.java:1058)
    at
    weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
    :401)
    at
    weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
    :445)
    at
    weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
    :306)
    at
    weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(W
    ebAppServletContext.java:5445)
    at
    weblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManage
    r.java:780)
    at
    weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletCo
    ntext.java:3105)
    at
    weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java
    :2588)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:213)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:189)
    The code at the client that initiates the connection:
    socketFactory = (SSLSocketFactory) SSLSocketFactory.getDefault();
    SSLSocket socket = (SSLSocket) socketFactory.createSocket(host, port);
    socket.setEnabledCipherSuites(CIPHERS);
    socket.setEnableSessionCreation(true);
    Any ideas?
    Thanks

    I don't see anything that indicates SSL was directly a factor in the
    failure.
    From the exception stack it looks like a more basic connectivity issue,
    maybe the URL for the
    RMI server is incorrect for some reason or the server was down.
    It looks like you are doing something like this:
    SSL client -> WLS server with servletA, servletA RMI client
    (com.hyperion.css) -> RMI server
    The connection failure appears to be the connection from servletA RMI client
    to the RMI server.
    Is that a correct picture?
    Tony
    "Gaurav Khanna" <[email protected]> wrote in message
    news:[email protected]...
    Hi,
    I am attempting to use SSL over RMI to a server. The client is the web
    application that is hosted on WebLogic and that attempts to connect to the
    server. There is no client or server verification at either the client or
    the server end. The code works outside of WebLogic 7/8 but has thefollowing
    issues when running the web application inside weblogic:
    java.rmi.ConnectException: Connection refused to host: gkhanna1; nested
    exception is:
    java.net.ConnectException: Connection refused: connect
    java.net.ConnectException: Connection refused: connect
    at java.net.PlainSocketImpl.socketConnect(Native Method)
    at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:350)
    at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:137)
    at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:124)
    at java.net.Socket.<init>(Socket.java:268)
    at java.net.Socket.<init>(Socket.java:95)
    at
    sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(RMIDirectSocketF
    actory.java:20)
    at
    sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(RMIMasterSocketF
    actory.java:115)
    at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:494)
    at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:185)
    at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:169)
    at sun.rmi.server.UnicastRef.newCall(UnicastRef.java:313)
    at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source)
    at java.rmi.Naming.lookup(Naming.java:79)
    at
    com.hyperion.css.spi.impl.ntlm.NTLMConnectionClient.initConnection(NTLMConne
    ctionClient.java:59)
    at
    com.hyperion.css.spi.impl.ntlm.NTLMConnectionClient.getUsers(NTLMConnectionC
    lient.java:197)
    at com.hyperion.css.CSSAPIImpl.getUsers(Unknown Source)
    at com.hyperion.css.CSSAPIImpl.initialize(Unknown Source)
    at com.hyperion.css.CSSAPIImpl.initialize(Unknown Source)
    at jsp_servlet._jsp._app1.__app1signin._jspService(__app1signin.java:133)
    at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
    at
    weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(Servle
    tStubImpl.java:1058)
    at
    weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
    :401)
    at
    weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
    :445)
    at
    weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
    :306)
    at
    weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(W
    ebAppServletContext.java:5445)
    at
    weblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManage
    r.java:780)
    at
    weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletCo
    ntext.java:3105)
    at
    weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java
    :2588)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:213)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:189)
    The code at the client that initiates the connection:
    socketFactory = (SSLSocketFactory) SSLSocketFactory.getDefault();
    SSLSocket socket = (SSLSocket) socketFactory.createSocket(host, port);
    socket.setEnabledCipherSuites(CIPHERS);
    socket.setEnableSessionCreation(true);
    Any ideas?
    Thanks

Maybe you are looking for