Cannot connect a Java GUI client to an EJB

I am having problems trying to make a Java GUI client connect to an EJB. I am using JRun4.
At first, I tried making the Java GUI client a part of the enterprise application that I am building (of which the EJB is a part of). I included the client as a Java module in the application.xml of the enterprise application.
However, when I try to start the server, containing this application, I get an error saying:
Application authentication required. Incorrect method call.
Now when I try to execute the application from the console, it works fine except when it comes to the part when it has to connect to the EJB. At this point I get an java.lang.reflect.UndeclaredThrowableException. Here's the stack trace:
java.lang.reflect.UndeclaredThrowableException
at $Proxy1.create(Unknown Source)
at mds.Caller.actionPerformed(Caller.java:135)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
Caused by: jrun.ejb.invocation.ContainerNotFoundException: The EJB container for boss-ejb#Boss could not be found.
at jrun.ejb.invocation.AbstractInvocationProxy.findContainer(AbstractInvocationProxy.java:58)
at jrun.ejb.invocation.LocalInvocationProxyImpl.invoke(LocalInvocationProxyImpl.java:53)
at jrun.ejb.invocation.ClientInvocationHandlerImpl.invoke(ClientInvocationHandlerImpl.java:198)
... 25 more
Since the bean is local, I am using a local reference to the bean in the lookup in the code of the client:
Object o = context.lookup("local/BeanTest")
I tried to use:
Object o = context.lookup("java:comp/env/ejb/BeanTest")
and added an ejb-local-ref in the application-client.xml file of the client. But when I try executing the client in this case, I get an error saying:
No such binding: ejb
I wish someone can help me out with this. My main aim is to get the app client talk to the EJB. Thanks a lot in advance.
Soham

I am not sure of a tool to view the JNDI tree. I have one in Weblogic console. But you can check the JNDI names with a small sample code.
import java.util.*;
import javax.naming.*;
import javax.rmi.PortableRemoteObject;
public class TestEnvironment {
    public static void main(String[] args) {
        Context context   = null;
        Object object     = null;
        // Hashtable for environment properties.
        Hashtable env = new Hashtable();
        env.put(Context.INITIAL_CONTEXT_FACTORY, "weblogic.jndi.WLInitialContextFactory");
        env.put(Context.PROVIDER_URL, "t3://localhost:7001");
        try {
            context   = new InitialContext(env);
            NamingEnumeration enum = context.listBindings("");
            while (enum.hasMore()) {
                Binding binding = (Binding) enum.next();
                System.out.println("Name: " + binding.getName());
                System.out.println("Type: " + binding.getClassName());
                System.out.println("Value: " + binding.getObject());
        } catch (Exception exception) {
            exception.printStackTrace();
}Hope this helps.

Similar Messages

  • Windows 8.1 cannot connect to group policy client service

    Windows 8.1 laptop under administrator account has this "cannot connect to group policy client service" error.Found the following instructions on internet but I don't see this "Replace owner on subcontainers and objects" box on Permissions/Advanced
    popup windows ???
    Could anyone help ?
    Change the permissions on the relevant keys configuring the Group Policy Client service to allow Full Control to Administrators
    Open regedit (Start > type regedit in the search box) and navigate to:
    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\gpsvc
    Right-click the registry key and choose Permissions.
    Click Advanced, then click Owner.
    Choose Administrators and check the Replace owner on subcontainers and objects box.
    Exit the permissions dialog and then open it again.
    Click Advanced, then choose Administrators and click
    Edit…
    Check Replace all child object permissions with inheritable permissions from this object.  
    Click OK and confirm; exit.
    Thank you,

    Hello CarLover,
    Based on my test, the option Replace owner on subcontainers and objects exists in Windows 7, but doesn’t exist in Windows 8.1.
    Please take a look at the screenshot about the option in Windows 7.
    Please take a look at the following thread similar to this issue.
    http://answers.microsoft.com/en-us/windows/forum/windows_7-performance/why-wont-windows-connect-to-the-group-policy/b73107f8-8447-4599-87a5-65ecc6a63aa0
    Best regards,
    Fangzhou CHEN
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • Cannot connect to any IM clients since updating to snow leopard.

    Hey Guys
    I'm having a problem with my IM clients since updating to 10.6. I use Adium primarily and have Microsoft messenger through Office 2008 installed. Every time I try and connect to the servers I get a message in Adium telling me it has a connection error and Microsoft Messenger tells me I am not connected to the internet. I have tried other clients such as Pidgin and have the same issues and my MSN still works on my windows desktop. I am absolutely stuck with what to do. Adium support says that as it doesnt work on Microsoft messenger its nothing to do with them and its a issue on my side :S.
    Any help is appreciated.

    Thanks for responding guys. I looked to see if their was a firewall option somewhere I could disable or make a exemption for but came up with nothing. Today I reinstalled snow leopard again and every thing seems ok now. I really am not sure what the problem was.
    Thanks for your help anyway. this could help others in a similar situation.

  • Cannot connect to XMPP Service ("client tried unknown domain")

    Has anyone managed to get the XMPP Service to work ? Even though I believe to have configured the correct valid domain name in the Service config I cannot seem to get in using either Pidgin or Oracle Messenger. The XMPP Service log keeps complaining that the client tried an unknown domain.
    Error message: Client tried unknown domain 'bla bla' in session: oracle.ocs.protocols.xmpp.service.ClientSession@blabla
    Frank

    I have unfortunately not been able to get the BEECORE-container running with secure communcations. It appears as if either Oracle wallet or Ajps is giving me problems (disabling those made BEECORE working again). Was unaware that the XMPP functionality required TLS (have tried to get it running plain with port 5222 but that did not work).
    Will try to create another instance and test with that to see if I can get it working okay there.

  • Final Cut Server: Cannot connect to Java Web Start with a web browser

    I get this exact error http://support.apple.com/kb/TS1610, but their steps do not fix it.
    sudo cp /etc/apache2/sites/0000any_80.conf.default /etc/apache2/sites/0000any_80.conf
    has me validate and then goes back to the prompt the other:
    Xserve:~ admin$ sudo /Library/Application\ Support/Final\ Cut\ Server/Final\ Cut\ Server.bundle/Contents/Resources/sbin/post-install.sh
    Stopping Final Cut Server services ...
    launchctl: Error unloading: com.apple.FinalCutServer.fcsvr_ldsd
    launchctl: Error unloading: com.apple.FinalCutServer.fcsvr_stored
    Starting postgresql ...
    Initializing database ...
    could not connect to server: No such file or directory
    Is the server running locally and accepting
    connections on Unix domain socket "/tmp/.s.PGSQL.8820"?
    connection failed, retrying (1) ...
    -- updating: pxtraitclass
    -- updating: pxperm
    -- updating: pxgroup
    -- updating: pxschema
    -- updating: pxentitylinktype
    -- updating: pxenum
    -- updating: pxenumentry
    -- updating: pxmdfield
    -- updating: pxtrait
    -- updating: pxmdgroup
    -- updating: pxmdgrouphasfield
    -- updating: pxeventstatus
    -- initializing config package: base
    -- updating: enum
    -- updating: enumentry
    -- updating: mdfield
    -- updating: mdgroup
    -- updating: mdgrouphasfield
    -- updating: mdmap
    Settings plist already present, not overwriting.
    Starting Final Cut Server services ...
    Configuring webstart for OS X Server on default site ...
    web:Modules:array_id:php5module:enabled = yes
    web:Modules:array_id:userdirmodule:enabled = yes
    web:Modules:array_id:apple_userdirmodule:enabled = yes
    web:Sites:array_id:*:80_:IfModule:_array_id:mod_rewrite.c:RewriteCond:_arrayindex:0 = "%{REQUEST_METHOD} ^TRACE"
    web:Sites:array_id:*:80_:IfModule:_array_id:modrewrite.c:RewriteEngine = yes
    web:Sites:array_id:*:80_:IfModule:_array_id:mod_rewrite.c:RewriteRule:_arrayindex:0 = ".* - [F]"
    web:Sites:array_id:*:80_:IfModule:_array_id:mod_rewrite.c:RewriteRule:_arrayindex:1 = "^/FinalCutServer$ /~fcsvr/Sites/webstart/index.php [NC,L]"
    service: This command still works, but it is deprecated. Please use launchctl(8) instead.
    service: This command still works, but it is deprecated. Please use launchctl(8) instead.
    Xserve:~ admin$
    Help? I should point out this is my first experience with OSXserver and I am not exactly an advanced user.
    Message was edited by: otterholt

    Hi, this dind't help.
    I can resolve host name, so it looks like DNS works:
    If I typed: <IP address> or localhost or localhostname.local or hostname I stiil get the default OS X web page with services, but no service is available not I can't connect to FCS web start page.
    I didn't change DNS records - it is default as it was after installation of system and FCs.

  • Cannot connect license manager in client PC

    1. Select any company then press ‘OK’ (client PC)
    2. A window will prompt up, and request input the license server address. However, even I type the hostname and IP error message also occur (client PC) - License error: -2147024891
    3. I checked in server manager, the license server already run (SAP server)
    P.S. only one client PC reported this problem, what can I do to solve the problem? Uninstall the client program and run again. Or, change the license server from 127.0.0.1 to 192.168.0.50 (the server IP address)

    Hello Dannis.
    To access a license server correctly, you need to specify its ip address and port number. The port number used to be 30000, and you wrote that the ip address is 192.168.0.50.
    If it doesn't work by writing 192.168.0.50:30000 as license server, check if your firewall is blocking the traffic on port 30000. You can also try to disable your firewall, in order to make sure whether your firewall is the culprit.
    HTH,
    Martin

  • Cannot connect a vnc viewer client to a linux vnc server

    I am trying to remotely connect my iMac running OSX (10.4) to a Linux machine 800 miles away.
    I've tried Chicken of the VNC and JollyFast with no luck.
    I've also tried to connect with "Connect to Server" with my iMac and still not working.
    I've gone into Internet Utility and tried to PING the host computer and not getting a response.
    Is there something in System Preferences that I haven't done correctly which is blocking me from making a connection ?

    I was finally able to make a connection using Chicken of the VNC.
    Apparently the address given to the Windows people using TightVNC could access the remote computer by using the site name. Using a Mac I needed the actual IP address for the same remote computer.

  • Update to 3.1- Cannot connect to any email client

    I use Microsoft Exchange and Gmail... neither will connect after updating to 3.1. I have tried restarting the phone. I really do not want to restore unless absolutely necessary.
    Any thoughts?

    Update: None of my apps would connect. I'm doing a restore. This is ********.

  • Cannot connect to direct access clients from management servers

    I have direct access setup on a Server 2012 machine and I have successfully added clients to it.  Clients can reach internal resources and everything seems to be working great inbound.  However, I am having some trouble with outbound management.
     From the Direct Access server I can ping, RDP, browse files, etc... From the management server I have defined in the DA setup I can only ping the machines and nothing else.
    I had worked with some MS tech support to get to this point, and they had me configure my DA server and the few management server with status IPv6 addresses.  I'm not sure if this is necessary or if outbound managment should work using ISATAP?
    My DA server is Server 2012, and the clients are Windows 8 and Windows 8.1.

    You should be able to make outbound management work using either ISATAP or native IPv6. If you have configured native IPv6 and it's not working, there may be some kind of routing issue with the way that IPv6 is setup in your environment, or even a piece
    of networking equipment that is not IPv6 capable.
    If you're interested in trying the ISATAP route to see if you can get it working that way, Chapter 3 in this is dedicated to the setting up of ISATAP: http://www.packtpub.com/microsoft-directaccess-best-practices-and-troubleshooting/book
    (sorry, not trying to be self-serving, but these kinds of questions are exactly the reason why I put the book together)

  • Re: Cannot connect Java client to T3S

    Timothy Lee wrote:
    This should be in one of the FAQs for WLS7. I think this is the message you
    get when you do not have a valid certificate, or you forgot to disable cert
    validity/hostname checking via
    -Dweblogic.security.SSL.IgnoreHostnameVerification=true
    The WLS 6.1sp2 message might have been something like:
    Failed to connect to t3s://localhost:7002 due to: [t3s://localhost:7002:
    Destination unreachable; nested exception is:
            java.io.IOException: Server Certificate SubjectDN CommonName
    received does not match Server hostname; No available router to destination]
    However, I've verified that the -D option (above) fails in 7.0, and using
    the console to disable hostname verification also fails in 6.1sp2. This is
    exactly what fails for me:
    java -cp ~/weblogic6/wlserver6.1/lib/weblogic.jar weblogic.Admin -url
    t3s://localhost:7002 PING
    (with the error above).
    I get the original poster's error (below) with 7.0 even if I disable
    hostname verification. In 7.0, SSL isn't enabled by default and you have to
    generate your own certs with utils.CertGen password...
    I notice that the release notes for 6.1sp3 contain several t3s fixes.
    Perhaps it is fixed there. I'm still waiting to be "approved" for the silly
    new system bea has in place so I can download patches to test sp3.
    (as a software developer, I want to download and test the software I am
    thinking of purchasing and running in production. If I can not do that then
    the system is broken.)
    Hi
    The same command works with Weblogic 6.0. Is it a bug of Weblogic
    7.0?
    Or it is a configuration issue (I use default value for everything for a
    newly created domain).
    Tim
    Timothy Lee wrote:
    Hi
    I am trying to connect a Java JMS client to Weblogic 7.0 over SSL.
    However, I am not able to connect any Java client using t3s (e.g. java
    weblogic.Admin PING). The SSLClient from the example works fine in both
    Weblogic and JSSE. Is anyone have idea what is wrong with my Weblogic
    setting or anything? Here is the error message:
    Failed to connect to t3s://localhost:7002 due to: [t3s://localhost:7002:
    Destination unreachable; nested exception is:
    java.io.IOException: Write Channel Closed, possible SSL handshaking or
    trust failure; No available router to destination]
    Regards,
    Tim

    "Kiran" <[email protected]> wrote in message
    news:3fafdf60$[email protected]..
    I am also getting the same problem. Is there any solution for this?What is the exact error message that you are getting?

  • Win XP Client Cannot Connect to Mac OS X 10.4.4 Server but Win 2000 Can

    Anyone run into this problem? Just basic Apple/Windows stand alone, no domain or interaction with other Windows Servers. User can log on fine with Windows 2000 client, but same user cannot connect with Windows XP client on same network.
    Any workarounds out there?
    Mac G4 MDD, 1GB RAM, 80MB main drive, 400GB data Mac OS X (10.4.4)

    I had trouble with a WinXP client a while back, and
    only vaguely rememeber things I did to fix it. I'm
    thinking it's the Win system, not the Mac. On the win
    machine, try deselecting the box "Enable IEEE 802.1x
    authen. for this network" in the Properties >
    Authentication tab for your network
    interface.
    Thank you for the suggestion. It worked!

  • Connot connect to 3.4 client since ARD 3.7 update

    Since ARD 3.7 update, I cannot connect to 3.4 client.
    The 3.4 client is a MacOS X 10.5.8. I can see the client in the list but the status is «no username or password». And I cannot connect.
    I have not seen any ARD client update for MacOS X 10.5.8.

    10.5.8 is no longer supported by Apple, so there will be no more forthcoming updates for that version of OS X. I'm in the same boat with my 10.8.5 clients. After installing the latest round of updates, ARD client 3.6.2 to 3.7, I too can no longer access my 10.8.5 desktops from my 10.7.5 server, running ARD 3.7.
    Disabling the firewall fixes the problem, but I cannot run with the firewall disabled as I am on an open network.

  • Java GUI instead Browser GUI for OEM10gR2?

    Hi,
    Is there any possibility to use the standalone Java Gui 10gR2 against the EM10gR2 Repository?
    Like once with OEM9, when there was the possibility to logon to the Management Service or open in standalone Mode.
    Greetings
    Armin

    Yes, i'm familiar with this standalone version. I'm looking for a possibility to connect this java gui to my EM10g Repository. So i don't have to add every database again in my standalone version.

  • J2EE GUI client login

    Hi:
    I wrote a GUI client for a EJB running on SJSAS7. It works fine. Now I would like to put some security on it. How do I let users login? Do I create a JAAS module or just set up the security restrictions on the EJB's methods?
    Sam

    Thanks. This is important piece of the puzzle. I got some more question about this. On the server development guide says:
    custom realms must extend com.sun.enterprise.security.auth.login.PasswordLoginModule class. This class extends javax.security.auth.spi.LoginModule. Custom realms must not extend the JAAS loginModule directly
    Now here comes the question. The JAAS login module suppose to obtain the user's password and user name in login() Since you don't extend login module, how do you obtain user name and password? Does that mean the only way to pass user name and password to login module is by appclient script? Thanks
    Sam

  • ODI Client cannot connect the datebase after the datebase IP changed

    ODI Client cannot connect the datebase after the datebase IP changed.
    1,the datebase on mac A,the mac changed ip
    2,on the client, tnsping db is ok.
    3,use pl/sql ,can connect on the db
    4,with odi,changed the repostry URL to the new db IP,throw the exception below
    java.sql.SQLException: Io Exception: The Network Adapter could not establish the connection
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:125)
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:162)
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:274)
         at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:328)
         at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:361)
         at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:151)
         at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:32)
         at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:595)
         at com.sunopsis.sql.SnpsConnection.u(SnpsConnection.java)
         at com.sunopsis.sql.SnpsConnection.c(SnpsConnection.java)
         at com.sunopsis.sql.h.run(h.java)
    Is anything we need to config after change db machine IP?

    yeah,I got it.Everything is ok now.
    After change IP,we must open TopologyManager:change the JDBC connection of workrepository which must chose in Designer.
    when we open the Designer ,it will connect to db.then coonect to workrepository with original IP.So,we must rechange workrepository's JDBC first!

Maybe you are looking for

  • Poor comms and lack of customer service

    Hi everyone have some serious issues with BT at the moment regarding my Infinity services. The Royal Mail landline on which the infinity is installed went down on the 19-07-12. My Infinity connection went down on the 20-07-12. I contacted Bt and enqu

  • Imessage waiting for activation for hours

    hi.. i have iphone 4, my sim card is working in my country, recieving at my Apple ID email and my phone number.. working finee then i traveled to another country and now there is no service.. and no carrier is allowed.. donno why.. so im using my ime

  • Best Workflow for HD content onto a DVD

    Hello to you all out there! Here's what I'd like to do...I want to be able to burn HD footage onto a DVD, but still watch it as HD footage. I know that DVD resolution is MUCH lower, and am looking for a workaround for that. So what I need help with i

  • Disable resizing of columns in ALV grid after layout is fixed

    Hello Experts! I needed to decrease size of some of my columns so I used set_fixed_table_layout( abap_true ). This worked fine, but when I scroll on the column header , I get a possibility to resize columns by changing the width of culumns at run-tim

  • OWB 11.2.0.1 – Repository Browser?

    OWB 11.2.0.1 – Repository Browser? ================================== We are using OWB 11gR2 and Oracle 11gR2. We find design center reports and control center reports on main page. It look same for both options. What are the design center specific r