RMI Client on Web browsers

Hello All,
I have a basic question about RMI. Usually we run RMI client like:
java -dcodebase=http://mysite.com -djava.securit.policy=mypolicy.policy client
Is it possible to run RMI client on web browsers, say, through Java servlet, Tomcat is installed?
If possible, how to configure Tomcat and the client, may be servlet? I don't think RMI server need change.
Thanks
Chen

Tomcat is for servers. Why would that change the
client?Thanks for the reply. I want to put RMI client in Tomcat, the RMI client connect to RMI server (not in the Web server, some other place). The questionis :
Every RMI client need start like this:
java -Djava.rmi.security=my.policy myclient
But in Tomcat, we only have classes. The servlet call the class(es) to finish the request and return response. In fact my question is how to provide security policy to these classes?
Merry Xmas!
CL

Similar Messages

  • 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

  • Help!  JAVA is closing my web browsers

    I recently had to reinstall everything when my C: drive crashed and now, after installing the latest version of JAVA, whenever I go to a site that uses JAVA applets (such as pogo.com) when the web browser tries to open java the entire browser is closed. How do I get JAVA to stop closing my web browsers? This is getting very frustrating!
    The following is the error message that appears on my desktop after this happens:
    An unexpected exception has been detected in native code outside the VM.
    Unexpected Signal : EXCEPTION_ACCESS_VIOLATION occurred at PC=0x6D1B45ED
    Function=[Unknown.]
    Library=C:\Program Files\Java\j2re1.4.1\bin\fontmanager.dll
    NOTE: We are unable to locate the function name symbol for the error
    just occurred. Please refer to release documentation for possible
    reason and solutions.
    Current Java thread:
         at sun.awt.font.NativeFontWrapper.registerFonts(Native Method)
         - locked <0B6E98C0> (a java.lang.Class)
         at sun.java2d.SunGraphicsEnvironment.addPathFonts(Unknown Source)
         at sun.java2d.SunGraphicsEnvironment.registerFonts(Unknown Source)
         at sun.java2d.SunGraphicsEnvironment.access$100(Unknown Source)
         at sun.java2d.SunGraphicsEnvironment$2.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         at sun.java2d.SunGraphicsEnvironment.loadFonts(Unknown Source)
         - locked <05D09B40> (a sun.awt.Win32GraphicsEnvironment)
         at sun.java2d.SunGraphicsEnvironment.mapFontName(Unknown Source)
         at java.awt.Font.initializeFont(Unknown Source)
         at java.awt.Font.<init>(Unknown Source)
         at g.ac.FG(Unknown Source)
         at g.ClientApplet.JE(Unknown Source)
         at T.vb.rE(Unknown Source)
         - locked <05D6DA48> (a java.util.Hashtable)
         at g.ClientApplet.start(Unknown Source)
         at sun.applet.AppletPanel.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    Dynamic libraries:
    0x00400000 - 0x00419000      C:\Program Files\Internet Explorer\IEXPLORE.EXE
    0x77F50000 - 0x77FF9000      C:\WINDOWS\System32\ntdll.dll
    0x77E60000 - 0x77F45000      C:\WINDOWS\system32\kernel32.dll
    0x77C10000 - 0x77C63000      C:\WINDOWS\system32\msvcrt.dll
    0x77D40000 - 0x77DC6000      C:\WINDOWS\system32\USER32.dll
    0x77C70000 - 0x77CB0000      C:\WINDOWS\system32\GDI32.dll
    0x77DD0000 - 0x77E5B000      C:\WINDOWS\system32\ADVAPI32.dll
    0x77CC0000 - 0x77D35000      C:\WINDOWS\system32\RPCRT4.dll
    0x70BD0000 - 0x70C35000      C:\WINDOWS\system32\SHLWAPI.dll
    0x71700000 - 0x71849000      C:\WINDOWS\System32\SHDOCVW.dll
    0x71950000 - 0x71A34000      C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.0.0_x-ww_1382d70a\comctl32.dll
    0x773D0000 - 0x77BC4000      C:\WINDOWS\system32\SHELL32.dll
    0x77340000 - 0x773CB000      C:\WINDOWS\system32\comctl32.dll
    0x771B0000 - 0x772CA000      C:\WINDOWS\system32\ole32.dll
    0x5AD70000 - 0x5ADA4000      C:\WINDOWS\system32\uxtheme.dll
    0x60000000 - 0x6004C000      C:\WINDOWS\System32\MSCTF.dll
    0x71160000 - 0x7125D000      C:\WINDOWS\System32\BROWSEUI.dll
    0x00960000 - 0x00972000      C:\WINDOWS\System32\browselc.dll
    0x75F40000 - 0x75F5D000      C:\WINDOWS\system32\appHelp.dll
    0x76FD0000 - 0x77048000      C:\WINDOWS\System32\CLBCATQ.DLL
    0x77120000 - 0x771AB000      C:\WINDOWS\system32\OLEAUT32.dll
    0x77050000 - 0x77115000      C:\WINDOWS\System32\COMRes.dll
    0x77C00000 - 0x77C07000      C:\WINDOWS\system32\VERSION.dll
    0x70200000 - 0x70295000      C:\WINDOWS\system32\WININET.dll
    0x762C0000 - 0x76348000      C:\WINDOWS\system32\CRYPT32.dll
    0x762A0000 - 0x762AF000      C:\WINDOWS\system32\MSASN1.dll
    0x76F90000 - 0x76FA0000      C:\WINDOWS\System32\Secur32.dll
    0x76620000 - 0x7666E000      C:\WINDOWS\System32\cscui.dll
    0x76600000 - 0x7661B000      C:\WINDOWS\System32\CSCDLL.dll
    0x76670000 - 0x76754000      C:\WINDOWS\System32\SETUPAPI.dll
    0x10000000 - 0x10008000      C:\Program Files\Adobe\Acrobat 5.0\Reader\ActiveX\AcroIEHelper.ocx
    0x75E90000 - 0x75F31000      C:\WINDOWS\System32\SXS.DLL
    0x1A400000 - 0x1A47A000      C:\WINDOWS\system32\urlmon.dll
    0x718C0000 - 0x71944000      C:\WINDOWS\System32\shdoclc.dll
    0x70440000 - 0x704CF000      C:\WINDOWS\System32\mlang.dll
    0x71AD0000 - 0x71AD8000      C:\WINDOWS\System32\wsock32.dll
    0x71AB0000 - 0x71AC5000      C:\WINDOWS\System32\WS2_32.dll
    0x71AA0000 - 0x71AA8000      C:\WINDOWS\System32\WS2HELP.dll
    0x71A50000 - 0x71A8B000      C:\WINDOWS\system32\mswsock.dll
    0x71A90000 - 0x71A98000      C:\WINDOWS\System32\wshtcpip.dll
    0x01000000 - 0x01039000      C:\WINDOWS\System32\RASAPI32.DLL
    0x76E90000 - 0x76EA1000      C:\WINDOWS\System32\rasman.dll
    0x71C20000 - 0x71C6F000      C:\WINDOWS\System32\NETAPI32.dll
    0x76EB0000 - 0x76EDA000      C:\WINDOWS\System32\TAPI32.dll
    0x76E80000 - 0x76E8D000      C:\WINDOWS\System32\rtutils.dll
    0x76B40000 - 0x76B6C000      C:\WINDOWS\System32\WINMM.dll
    0x722B0000 - 0x722B5000      C:\WINDOWS\System32\sensapi.dll
    0x30000000 - 0x30047000      C:\Program Files\Iomega\DriveIcons\IMGHOOK.DLL
    0x605D0000 - 0x605DF000      C:\WINDOWS\System32\mslbui.dll
    0x61040000 - 0x6104E000      C:\Program Files\Netscape\Netscape 6\idlemojo.dll
    0x015F0000 - 0x015F7000      C:\Program Files\Yahoo!\Messenger\idle.dll
    0x75A70000 - 0x75B13000      C:\WINDOWS\system32\USERENV.dll
    0x76F20000 - 0x76F45000      C:\WINDOWS\System32\DNSAPI.dll
    0x76FB0000 - 0x76FB7000      C:\WINDOWS\System32\winrnr.dll
    0x76F60000 - 0x76F8C000      C:\WINDOWS\system32\WLDAP32.dll
    0x76FC0000 - 0x76FC5000      C:\WINDOWS\System32\rasadhlp.dll
    0x63580000 - 0x6382C000      C:\WINDOWS\System32\mshtml.dll
    0x746F0000 - 0x74719000      C:\WINDOWS\System32\msimtf.dll
    0x5C2C0000 - 0x5C303000      C:\WINDOWS\ime\sptip.dll
    0x75C50000 - 0x75CE1000      C:\WINDOWS\System32\jscript.dll
    0x746C0000 - 0x746E7000      C:\WINDOWS\System32\MSLS31.DLL
    0x70FB0000 - 0x70FEB000      C:\WINDOWS\System32\iepeers.dll
    0x73000000 - 0x73023000      C:\WINDOWS\System32\WINSPOOL.DRV
    0x71B20000 - 0x71B31000      C:\WINDOWS\system32\MPR.dll
    0x75F60000 - 0x75F66000      C:\WINDOWS\System32\drprov.dll
    0x71C10000 - 0x71C1D000      C:\WINDOWS\System32\ntlanman.dll
    0x71CD0000 - 0x71CE6000      C:\WINDOWS\System32\NETUI0.dll
    0x71C90000 - 0x71CCC000      C:\WINDOWS\System32\NETUI1.dll
    0x71C80000 - 0x71C86000      C:\WINDOWS\System32\NETRAP.dll
    0x71BF0000 - 0x71C01000      C:\WINDOWS\System32\SAMLIB.dll
    0x75F70000 - 0x75F79000      C:\WINDOWS\System32\davclnt.dll
    0x73D70000 - 0x73D82000      C:\WINDOWS\System32\shgina.dll
    0x75970000 - 0x75A61000      C:\WINDOWS\System32\MSGINA.dll
    0x76360000 - 0x7636F000      C:\WINDOWS\System32\WINSTA.dll
    0x1F7B0000 - 0x1F7E1000      C:\WINDOWS\System32\ODBC32.dll
    0x763B0000 - 0x763F5000      C:\WINDOWS\system32\comdlg32.dll
    0x1F850000 - 0x1F866000      C:\WINDOWS\System32\odbcint.dll
    0x72D20000 - 0x72D29000      C:\WINDOWS\System32\wdmaud.drv
    0x72D10000 - 0x72D18000      C:\WINDOWS\System32\msacm32.drv
    0x77BE0000 - 0x77BF4000      C:\WINDOWS\System32\MSACM32.dll
    0x77BD0000 - 0x77BD7000      C:\WINDOWS\System32\midimap.dll
    0x70F30000 - 0x70F9E000      C:\WINDOWS\System32\mshtmled.dll
    0x703D0000 - 0x703EB000      C:\WINDOWS\System32\actxprxy.dll
    0x6D7F0000 - 0x6D7FF000      C:\Program Files\Java\j2re1.4.1\bin\npjpi141.dll
    0x6D750000 - 0x6D762000      C:\Program Files\Java\j2re1.4.1\bin\jpiexp32.dll
    0x6D790000 - 0x6D7A4000      C:\Program Files\Java\j2re1.4.1\bin\jpishare.dll
    0x6D330000 - 0x6D45C000      C:\PROGRA~1\Java\J2RE14~1.1\bin\client\jvm.dll
    0x6D1D0000 - 0x6D1D7000      C:\PROGRA~1\Java\J2RE14~1.1\bin\hpi.dll
    0x6D300000 - 0x6D30D000      C:\PROGRA~1\Java\J2RE14~1.1\bin\verify.dll
    0x6D210000 - 0x6D229000      C:\PROGRA~1\Java\J2RE14~1.1\bin\java.dll
    0x6D320000 - 0x6D32D000      C:\PROGRA~1\Java\J2RE14~1.1\bin\zip.dll
    0x6D000000 - 0x6D0FA000      C:\Program Files\Java\j2re1.4.1\bin\awt.dll
    0x76390000 - 0x763AA000      C:\WINDOWS\System32\IMM32.dll
    0x6D180000 - 0x6D1D0000      C:\Program Files\Java\j2re1.4.1\bin\fontmanager.dll
    0x73760000 - 0x737A5000      C:\WINDOWS\System32\ddraw.dll
    0x73BC0000 - 0x73BC6000      C:\WINDOWS\System32\DCIMAN32.dll
    0x6D910000 - 0x6D981000      C:\WINDOWS\System32\D3DIM.DLL
    0x6D6F0000 - 0x6D701000      C:\Program Files\Java\j2re1.4.1\bin\jpicom32.dll
    0x6D2D0000 - 0x6D2DE000      C:\Program Files\Java\j2re1.4.1\bin\net.dll
    0x6D130000 - 0x6D152000      C:\Program Files\Java\j2re1.4.1\bin\dcpr.dll
    0x6D2A0000 - 0x6D2C1000      C:\Program Files\Java\j2re1.4.1\bin\jsound.dll
    0x76C90000 - 0x76CB2000      C:\WINDOWS\system32\imagehlp.dll
    0x6D510000 - 0x6D58C000      C:\WINDOWS\system32\DBGHELP.dll
    0x76BF0000 - 0x76BFB000      C:\WINDOWS\System32\PSAPI.DLL
    Local Time = Fri Mar 14 01:32:04 2003
    Elapsed Time = 18
    # The exception above was detected in native code outside the VM
    # Java VM: Java HotSpot(TM) Client VM (1.4.1-b21 mixed mode)

    THE SOLUTION for all EXCEPTION_ACCESS_VIOLATION caused by fontmanger:
    OS: every MS Windows
    java_version: occures in all versions
    None suggested workaround helped: not the Environment-Variable JAVA_FONTS
    nore moving Fonts and so on
    The Problem: one single damaged Font causes the JVM to crash
    THE SOLUTION: suggested by "rsimms" in bug-thread 4762039
         remove all Fonts out of the %WINDIR%\Fonts directory for ex.
         in a tmp-dir and reinstall them. By reinstalling them
         Windows detects any corrupt/damaged fonts!

  • Viewing PDF forms created with LiveCycle in web browsers

    Hi,
    We created a form in LiveCycle.  But this form is not viewable in any of our web browsers (i.e. Safari and Firefox), when using Google docs and Foxit Reader and it also does not open in Mac Preview.  I have to download it to my computer and then open it with Adobe Reader to view it. I want to make sure it has all the viewing capabilities available when I send it out to people, please let me know if there is a solution out there.
    Note:
    I have updated the Adobe Reader to the latest version
    I have removed all the previous versions of Adobe Reader
    I have also tested it with different computers and continue to encounter the same issues.
    Any assistance would be greatly appreciated.
    Lisette

    Sending PDFs without an Email Client Software installed needs to be handled at the server. Using a Microsoft .net web server, and SMTP host, you can send e-mail with PDFEmail.net. PDFEmail.net doesn't require Adobe Acrobat or Reader installed on the server, and works on remote and local web servers with access to a local or remote SMTP user account. PDFEmail.net doesn't require programming knowledge, just upload the scripts and the libraries to your webserver application root, and point the Submit URL action to the script.
    For more information, and online demonstrations, please visit:
    http://www.pdfemail.net/
    Hope this helps!
    Kind Regards,
    Nick K.
    http://www.nk-inc.com/

  • Running applet as RMI client from remote computer

    Hi,
    I am doing this project that requires that i run an applet (which is an RMI client) from a computer different than the one that has the RMI server running.
    Right now, i can run my server and applet on the same computer and it all works fine. But i don't know how to make the applet communicate with an RMI server that resides on another computer. Does this has anything to do with TOMCAT.
    I was wondering if this is possible.
    Thank you in advance.

    Do This
    RemoteInterfaceName server = (RemoteInterfaceName) Namin.lookup("rmi://yourserver/server/YourServerName");
    server.methodName(args);
    suppose you have your server in the dir path
    c:\prj\server
    then set your webserver's root dir to c:\prj\server how this is done will be in the web server's documentation
    Try It otherwise we'll see it again
    Bye !!!

  • 10.1.3.1 and standalone RMI client

    I'm migrating our J2EE applications from 10.1.2.0.1 to 10.1.3.1.0. I also have a custom JAAS login module that is used by our applications. I have the login module working successfully and web applications that can call EJBs.
    But I am unable to get a simple RMI client to call the EJBs. I can see from the server logs that the JAAS module executes successfully, but then I get a ClassNotFoundException (seems to be from the server) when the client tries to access the JNDI tree (see stack below on the client; I can't find any log relating to this event on the server).
    I had real problems with RMI access in 10.1.2, seems that Oracle AS isn't really thought through with respect to simple RMI client access. In the system-jazn-data.xml file I have granted my custom principals the RMI login permission. I tried to raise a TAR but it's been rejected because 10.1.3.1.0 is a "preview" version. (Don't you guys want to know about bugs before a release goes into production?)
    Any ideas?
    27-Sep-2006 14:50:46 oracle.j2ee.rmi.RMIMessages EXCEPTION_ORIGINATES_FROM_THE_R
    EMOTE_SERVER
    WARNING: Exception returned by remote server: {0}
    java.lang.ClassNotFoundException: com/evermind/server/ejb/EJBHomeObjectInfo
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:242)
    at com.evermind.io.ClassLoaderObjectInputStream.resolveClass(ClassLoader
    ObjectInputStream.java:33)
    at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:153
    8)
    at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1460)
    at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1
    693)
    at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299)
    at java.io.ObjectInputStream.readArray(ObjectInputStream.java:1628)
    at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1293)
    at java.io.ObjectInputStream.readObject(ObjectInputStream.java:339)
    at java.util.HashMap.readObject(HashMap.java:1013)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
    java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:919
    at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1813)
    at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1
    713)
    at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299)
    at java.io.ObjectInputStream.readObject(ObjectInputStream.java:339)
    at com.evermind.server.rmi.RMIClientConnection.handleListContextResponse
    (RMIClientConnection.java:768)
    at com.evermind.server.rmi.RMIClientConnection.handleOrmiCommandResponse
    (RMIClientConnection.java:242)
    at com.evermind.server.rmi.RMIClientConnection.dispatchResponse(RMIClien
    tConnection.java:205)
    at com.evermind.server.rmi.RMIClientConnection.processReceivedCommand(RM
    IClientConnection.java:187)
    at com.evermind.server.rmi.RMIConnection.handleCommand(RMIConnection.jav
    a:152)
    at com.evermind.server.rmi.RMIConnection.listenForOrmiCommands(RMIConnec
    tion.java:127)
    at com.evermind.server.rmi.RMIConnection.run(RMIConnection.java:107)
    at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExec
    utor.java:814)
    at java.lang.Thread.run(Thread.java:595)
    javax.naming.NamingException: com/evermind/server/ejb/EJBHomeObjectInfo [Root ex
    ception is java.lang.ClassNotFoundException: com/evermind/server/ejb/EJBHomeObje
    ctInfo]
    at com.evermind.server.rmi.RMICall.throwRecordedException(RMICall.java:1
    00)
    at com.evermind.server.rmi.RMIClientConnection.waitForJndiResponse(RMICl
    ientConnection.java:334)
    at com.evermind.server.rmi.RMIClientConnection.list(RMIClientConnection.
    java:293)
    at com.evermind.server.rmi.RMIClient.list(RMIClient.java:392)
    at com.evermind.server.rmi.RMIClientContext.getListValues(RMIClientConte
    xt.java:95)
    at com.evermind.server.rmi.RMIContext.listBindings(RMIContext.java:444)
    at com.evermind.naming.FilterContext.listBindings(FilterContext.java:91)
    at com.evermind.server.ApplicationClientContext.listBindings(Application
    ClientContext.java:127)
    at javax.naming.InitialContext.listBindings(InitialContext.java:406)
    at com.axiomsystems.common.tools.test.APITester.getEJBs(APITester.java:2
    06)
    at com.axiomsystems.common.tools.test.APITester.<init>(APITester.java:17
    3)
    at com.axiomsystems.common.tools.test.APITester.main(APITester.java:68)
    Caused by: java.lang.ClassNotFoundException: com/evermind/server/ejb/EJBHomeObje
    ctInfo
    at com.evermind.server.rmi.RMICall.EXCEPTION_ORIGINATES_FROM_THE_REMOTE_
    SERVER(RMICall.java:109)
    at com.evermind.server.rmi.RMICall.throwRecordedException(RMICall.java:9
    1)
    ... 11 more

    Hi Debu,
    I have found the problem and a workaround in my code.
    I obtained the initial context ctx with the following properties set:
    Context.INITIAL_CONTEXT_FACTORY (= oracle.j2ee.naming.ApplicationClientInitialContextFactory)
    Context.PROVIDER_URL (= opmn:ormi://myHost:myPort:myOC4J/myApp)
    Context.SECURITY_PRINCIPAL (= my username)
    Context.SECURITY_CREDENTIAL (= my password)
    then I did
    NamingEnumeration en = ctx.listBindings("ejb/myJndiName")
    which resulted in the exception.
    Changing this to
    Context ctx2 = (Context)ctx.lookup("ejb/myJndiName");
    NamingEnumeration en = ctx2.listBindings("");
    has resolved the problem. I'm not sure why this behaves differently, I suppose it may have something to do with the fact that ctx2 is not an InitialContext object. It is an adequate workaround for my application.
    Once I have an EJB reference, invoking methods over RMI works as expected.
    Thanks,
    Keith

  • Skype: Stop Hijacking Web Browsers!

    Installed update 6.6.0.106 on 07/15/2013 and noticed during the installation process that the installer wanted to hijack the search engine and home pages of (4) web browsers including MSIE, Chrome, Mozilla and Safari. Skype (Microsoft), what on EARTH, makes you think that a person who is installing an update to Skype would want to change their default search engines or homepages on MULTIPLE different web browsers on their machine? It's rude, it's an attack on a person's computer, and it shines a light on what dispicable behavior and malicious software occurs within the Skype software. Want to hijack someone's browser like a common malware?  Fine, stick to your own God awful MSIE browser, but don't you DARE try to touch my superior Chrome and Firefox browsers. Shame on you! Luckily for you, I caught your lame attempt in advance...  Otherwise, I'd be REALLY angry.  But others here need to know that shameful companies like Microsoft do this everyday in an attempt to harvest your personal information.  Be careful whenever you install software and read every checkbox!

    Yes. Yes. Yes.  My browser was hijacked too. It IS hijacking.  I can't believe Microsoft would be such idiots that they've decided they're willing to piss off so many people just to steal some eyeballs. MICROSOFT: wake up and stop doing stupid and easily avoidable dumb things.  Now I'm going to be getting calls from countless clients, friends, and family asking, "How come my Google looks different." and "What happened to that nice Comcast news screen I used to see when I started the internet?"  And I get to tell them that Microsoft tricked them and stole their time and my time to fix the problem. Great way to establish a good reputation, Microsoft... NOT. Please, have some respect for your customers' time. Don't try to trick us.  This is either a slimy marketing decision on Microsoft's part, or a total rookie mistake.  THERE'S NO EXCUSE FOR THIS RUDE BEHAVIOR BY MICROSOFT.  

  • Web browsers fail intermittently with fast user switching

    I have a Core2Duo iMac (the first ones, so its the White case) that my wife and kids share. They leave all three accounts logged in most of the time.
    Frequently Safari will stop being able to connect on one or more accounts. The internet connection is good as Mail, iChat and pinging apple.com from Terminal still work fine. But Safari and FF both throw errors about being unable to reach xxxx server.
    Many times I can just change users and it will work on the other account. Most times if I log out the troubled account and then back in, it will be fine as well.
    I am fairly network savvy and unable to determine what is failing. There doesn't seem to be anything of interest in the console logs. Seems to be somehow specific to web browsers.
    Also, until we added the account for my 7 year old a couple months back, this hadn't happened that I am aware of, since there was a third account in use all the time, it has become a regular occurrence. Initially it seemed to only happen on his account, so I created a new one for him and deleted the old one, but it now has happened on his and my daughters' accounts. They both have parental controls enabled, though we aren't blocking web sites at all.
    Thanks in advance for any help or suggestions,
    jack

    Thanks for the info, nice to know its not just me
    Have tried EVO67 suggestion and its still the same, any suggestion on which plist files to remove?
    And yes I mean accounts not profiles, sorry!
    If I turn off FUS then it doesnt happen but that is the same as logging out of one account, same result.

  • Quick Time Hijacks Windows File Associations Only From Web Browsers

    It took me 6 hours this morning to conclusively prove that Quick Time (latest version) isn’t playing well with web browsers on my Windows XP Pro (SP3) machine (nothing new here I guess).
    I develop web sites which get their content from local hard or DVD/CD drives (as opposed to from the internet). All my Windows file associations for audio/video file types point to Windows Media Player (WMP) so that when one of my web pages looks for a file type of say .mpg or .mp3, WMP is opened and the file is played. Pretty straight forward and has worked fine for years.
    Some time in the last few months (and I now strongly suspect after a Quick Time update) my browsers (all of them….. IE, Firefox, and Chrome) started opening Quick Time instead of WMP when my HTML goes to open any media file type. I’ve checked my Windows file associations which all still point to WMP. I also note that when I open one of my media files from a file utility such as Windows Explorer or my aftermarket file utility (as opposed to from a browser), they correctly open in WMP. So…….. its only from browsers that QT hijacks my intended media player.
    In Internet Explorer I’ve gone to “Manage Add-Ons” and “disabled” Quick Time. This in fact causes QT not to be opened but instead a blank web page appears containing only the browser’s little error box with a big red X in it which usually means a picture file is missing…… WMP is not launched even though it is enabled in Manage Add-Ons and QT is disabled.
    The only way I’ve found to fix this problem is to uninstall Quick Time in which case everything works fine. (My objection to Quick Time as my default media player is that even the latest version doesn’t reliably play video created for Windows file types.)
    Can anyone tell me how to make Quick Time co-exist on my computer without hijacking my attempts to get at WMP from browsers?
    The only reason Quick Time has existed on my computer in recent years is so I have access to iTunes. I’ve uninstalled both Quick Time and iTunes till I find a solution to this problem which means iTunes isn’t selling me anything in the mean time.

    I'm having the same issue that Quicktime hijacks file associations.
    I recently reinstalled my copy of Windows 7 64-bit and have installed basically hardly anything on it. I have however installed iTunes (+Quicktime) for my iPhone and Winamp (and not even loaded Windows Media Player).
    Basically when I uninstall Quicktime, I can just type an url in the IE8 address bar with the .mp3 extension and download and save the file there and then. Only after installing Quicktime the browser will open the .mp3 in the window and play it embedded with the Quicktime player.
    This is something I do NOT want, and I am really ****** off that Quicktime just takes over this feature without asking me first!!
    That being besides the point really because I also cannot find the option in Quicktime's settings to undo this!!
    When I go to Quicktime's settings -> Browser -> MIME types
    It just shows that .mp3 is linked to Winamp (like I want it to be), but it still opens as a Quicktime Control Object.
    Reinstalling IE8, resetting its settings, disabling the iTunes & Quicktime addons, even removing the Quicktime Control Object class from the registry... Nothing worked!
    http://www.archive.org/details/testmp3testfile
    Here you can find an mp3 file to use for testing.

  • RMI client-side - how to encrypt,decrypt  in client-side

    I write javacard RMI style. My problem is...
    Source code below is work when it write in applet (card - side)
    but in client-side (reader -side) I copy it to client - side code and test to run, if fail --> throw exception 0x3 - javacard.security.CryptoException.NO_SUCH_ALGORITHM
    It seem to be "javacardx.crypto" and "javacard.security" is make for use in applet in card only. Did I misunderstand?
    if it make for use in applet only, how is possible to do like this " card use privatekey to sign message and send to reader , reader use card's publickey to verify that card sign this signature or not."
    or
    "card use reader's publickey to encrypt message and send to reader, then reader use privatekey to decrypt message (reader authencate itself) "
    because I can't do any of cipher , keybuilder in RMI-client side(reader)
    Cipher.getInstance(Cipher.ALG_RSA_PKCS1,false);
    it will throw nullPointerException
    and if (change false to true)
    Cipher.getInstance(Cipher.ALG_RSA_PKCS1,true);
    throw exception 0x3 - javacard.security.CryptoException.NO_SUCH_ALGORITHM
    after that I swap this line with
    pri_key = (RSAPrivateKey) KeyBuilder.buildKey(KeyBuilder.TYPE_RSA_PRIVATE,KeyBuilder.LENGTH_RSA_512, false);
    since it will do this first (i swap the line already) it also throw exception 0x3 - javacard.security.CryptoException.NO_SUCH_ALGORITHM
    also be the same result with swap
    kp = new KeyPair(KeyPair.ALG_RSA,(short)KeyBuilder.LENGTH_RSA_512 );
    to a first line
    it throw exception 0x3 - javacard.security.CryptoException.NO_SUCH_ALGORITHM
    Please help me
    RSAPrivateKey pri_key;
    RSAPublicKey pub_key;
    KeyPair kp;
    Cipher RSAcipher;
    RSAcipher = Cipher.getInstance(Cipher.ALG_RSA_PKCS1,false);
    pri_key = (RSAPrivateKey) KeyBuilder.buildKey(KeyBuilder.TYPE_RSA_PRIVATE,KeyBuilder.LENGTH_RSA_512, false);
    pub_key =(RSAPublicKey) KeyBuilder.buildKey(KeyBuilder.TYPE_RSA_PUBLIC,KeyBuilder.LENGTH_RSA_512, false);
    kp = new KeyPair(KeyPair.ALG_RSA,(short)KeyBuilder.LENGTH_RSA_512 );
    kp.genKeyPair();
              pri_key = (RSAPrivateKey) kp.getPrivate();
              pub_key = (RSAPublicKey) kp.getPublic();
    //ENCRYPT
    RSAcipher.init(pri_key, Cipher.MODE_ENCRYPT);
    t_cipherLengthRSA = RSAcipher.doFinal(plaintxt,(short)0, (short)plaintxt.length, t_cipherText, (short)0);
    //DECRYPT
    RSAcipher.init(pub_key, Cipher.MODE_DECRYPT);
    RSAcipher.doFinal(ciphertxt,(short)0,(short) t_cipherLengthRSA, temp1, (short)0);

    I write javacard RMI style. My problem is...
    Source code below is work when it write in applet (card - side)
    but in client-side (reader -side) I copy it to client - side code and test to run, if fail --> throw
    exception 0x3 - javacard.security.CryptoException.NO_SUCH_ALGORITHMYou can not share code between card and client. On the card use the classes of javacardx.crypto and on the client side those of javax.crypto and java.security.
    It seem to be "javacardx.crypto" and "javacard.security" is make for use in applet in card only. That is right.
    if it make for use in applet only, how is possible to
    do like this " card use privatekey to sign message
    and send to reader , reader use card's publickey to
    verify that card sign this signature or not." or
    "card use reader's publickey to encrypt message and
    send to reader, then reader use privatekey to decrypt
    message (reader authencate itself) "On each platform you have classes that provide the same cryptographic operations but the interface of these classes is different (because of the limitations of the java card platform).
    because I can't do any of cipher , keybuilder in
    RMI-client side(reader)Use the java.security.KeyFactory instead.
    Cipher.getInstance(Cipher.ALG_RSA_PKCS1,false);
    it will throw nullPointerException
    and if (change false to true)
    Cipher.getInstance(Cipher.ALG_RSA_PKCS1,true);
    throw exception 0x3 -
    javacard.security.CryptoException.NO_SUCH_ALGORITHMCryptographic support on java cards is optional. Not every card supports every algorithm. Try to use another algo.
    Jan

  • File attachment in yahoo mail does not appeare in Firefox 4, but IE & other web browsers show correctly.

    Before I install Firefox 4, I have been use Firefox 3.6 and when I was checking my yahoo mail, there was not any problem to view or download file attachment.
    After installing Firefox 4, when I receive a new mail with file attachment, like as video, or document, I can not see the attachment to download it. but with other web browsers like IE, I can see the attachment of the email.

    Hi!
    People using a Trend Micro virus scanner should disable some webmail function. You can find the solution [http://en.kioskea.net/forum/affich-33677-can-t-download-attachments-on-my-yahoo-email here]
    I do not use Trend Micro, but have the same issues. I just found my "AdBlock Plus" add-on was stopping the attachment download. What you should do to see if this is your problem too: disable AdBlock Plus, restart firefox and see if your problem is solved. Now enable AdBlock Plus again and restart Firefox.
    To fix this problem: In Firefox, click on Add-ons, go to AdBlock Plus, go to Options, click on Filters--> reset statistics. Go to your attachment, click on the attachment (it will fail to download of course). Go back to AdBlock Plus and sort the statistics for "Hits". Now you can see which filter is blocking your attachment download. Disable this filter and you problem is solved!
    Regards!

  • Using Color profiles and exporting for web browsers

    I've been trying to figure out the answer to this question. As I'm sure you're aware Safari supports color profiles while other web browsers like Firefox do not. I would like to setup Aperture so that it displays and exports images for the widest audience possible. Unfortunately it embeds a color profile and my images on the web only display correctly in Safari. I've tried changing the proofing profiles and export settings to no avail. I didn't seem to have this problem in iPhoto, a picture there looked the same on screen as it did in Safari and Firefox but I can't achieve the same with Aperture...

    Thanks for that information, unfortunately I'm not really any closer to solving the issue since I've already tried that. 1) by default, doesn't Aperture automatically embed the sRGB color profile? 2) if I set view>proofing mode to sRGB shouldn't what I see on screen match what a "dumb" application such as Firefox does when it ignores the embedded profile and display sRGB? I've tried going into the preferences>export settings and changed everything to sRGB IEC61966-2.1 but I see no difference in the final image between that and the default setting.
    I guess my question is more specific to Aperture since I don't have this problem with other applications. For example, in photoshop if I do Export for Web it strips out any embedded profile and when I open that image in Firefox and Safari side-by-side they are exactly the same. But not so when I export an image from Aperture, when opened in Firefox it is desaturated and flat and of course in Safari it honors the embedded profile and looks fine.

  • Font is italicized, but only in web browsers

    Hi everyone,
    I have a strange problem.  I've started work with a new inherited workstation, and my font is italicized, but only in web browsers.  And I *think* only on text that has default styling.  E.g., forms, textareas, Google search results, and other unstyled text.
    Is there a system-wide setting that changes web browser text styling, or have I inherited a bizarre workstation?

    One thing to check if it's only in the Browser, like Safari>Preferences>Advanced, does it have a custom css set there...

  • Flash not working in web browsers

    Hello,
    I'm working on an Intel Mac, 10.4.7 and recently the Flash
    plugin for my web browsers -- Firefox, Safari, Opera -- stopped
    providing audio: video works fine, but no audio coming through. I
    am getting audio in other applications, so I know the sound
    settings are not muted somewhere on my computer.
    I can't trace this problem to anything specific, except
    around the time I noticed this problem I had installed the latest
    version of iTunes. But, after working with Apple tech support, and
    doing what they called an 'archival reinstall of the Apple OS, I'm
    still having this problem with not getting Flash audio in the
    browers.
    Any suggestions?
    Thanks.

    have you tried re-installing flash

  • How do I make a RMI client running in Bea find a remote, non Bea, RMI server?

    On my stand alone test system I run a RMI server in one JVM,
    registry.exe and a RMI client in its own JVM. The client uses
    java.rmi.Naming.lookup() to find the RMI server, and this works fine.
    If I run the same RMI client class within Bea the naming lookup fails! I
    guess this is due to Bea using it own RMI registry rather than the
    registry.exe I started separately(?)
    QUESTION: How do I make a RMI client running in Bea find a remote,
    non-Bea, RMI server?
    Of course, in the final environment the server will run on a system
    remote from Bea.
    The RMI client calls are done from a servlet, not from a EJB.
    The doumentation about using RMI with Bea is focused on running the RMI
    server within Bea. This might be the "normal" thing to do, but in our
    case Bea is the client, not the server. Do I still need to use
    weblogic.rmi.*....? If so, where?
    Grateful for any tip.
    Göran Hagnell

    On my stand alone test system I run a RMI server in one JVM,
    registry.exe and a RMI client in its own JVM. The client uses
    java.rmi.Naming.lookup() to find the RMI server, and this works fine.
    If I run the same RMI client class within Bea the naming lookup fails! I
    guess this is due to Bea using it own RMI registry rather than the
    registry.exe I started separately(?)
    QUESTION: How do I make a RMI client running in Bea find a remote,
    non-Bea, RMI server?
    Of course, in the final environment the server will run on a system
    remote from Bea.
    The RMI client calls are done from a servlet, not from a EJB.
    The doumentation about using RMI with Bea is focused on running the RMI
    server within Bea. This might be the "normal" thing to do, but in our
    case Bea is the client, not the server. Do I still need to use
    weblogic.rmi.*....? If so, where?
    Grateful for any tip.
    Göran Hagnell

Maybe you are looking for

  • Multiple Libraries - Authorization Question - For NON-iTune purchased music

    Please help! The questions come at the end. I have an extensive classical music iTunes library in AAC format that I ripped from CDs I've purchased over the past 20 years. NON of these were purchased from iTunes. (I have another library on my PC with

  • Referance Billing Plan

    Hi all, how to create referance Billing plan in milestone billing ????? as i want to reflect % of down payment automatic for each transaction on vao1????

  • Search help for field in Standard Transaction

    Hi Experts,       We have a requirement to have an F4 search help for a standard field . ( Plant, werks, Tx AS01 ). This field is not associated with any standard search help, but it throws F4 values programmatically .    We need to associate a stand

  • OS4 not letting me change wallpaper

    Hey guys I had the same problem as most It took too long to back up so I did a restore and update and that worked but when I go to settings and then wallpaper all I see are my photo albums. When I select a pic the only time I can see it is when I am

  • NullPointerException at oracle.adf.model.binding.DCIteratorBinding.executeQ

    We got the INTERMITTENT NullPointer exception, When creating new Seasonality Group in QuotaManagement. Below is the complete Stack trace from server log, [ERROR] [] [oracle.adfinternal.view.faces.config.rich.RegistrationConfigurator] [tid: [ACTIVE].E