Problem with running sessionBean Client

Hi,
I deployed SessionBean(stateless) bean on Weblogib8.1 succesfully..
But when i run my client i am getting the fallowing exception...
any body plz help me out....
My Client:
import javax.naming.*;
import javax.naming.spi.*;
import java.util.*;
import javax.rmi.PortableRemoteObject;
import java.rmi.*;
public class MyClient
     public static void main(String[] args)
     try
          Hashtable h = new Hashtable();
                                        h.put(Context.INITIAL_CONTEXT_FACTORY,"weblogic.jndi.WLInitialContextFactory");
          h.put(Context.PROVIDER_URL,"t3://localhost:7001");
          Context ctx = new InitialContext(h);
          Object objref = ctx.lookup("java:comp/env/ejb/myjndi2");
          MyHome home = (MyHome)PortableRemoteObject.narrow(objref,MyHome.class);
          MyRemote rm = home.create();
          rm.getName();
     }catch(Exception e)
          System.out.println(e);
exception:
C:\test>java MyClient
Exception in thread "main" java.lang.NoClassDefFoundError: java/lang/AssertionEr
ror
at weblogic.security.subject.DelegatingSubjectStack.<clinit>(DelegatingS
ubjectStack.java:18)
at weblogic.security.service.SubjectManagerImpl.<init>(SubjectManagerImp
l.java:40)
at weblogic.security.service.SubjectManagerImpl.ensureInitialized(Subjec
tManagerImpl.java:286)
at weblogic.jndi.WLInitialContextFactoryDelegate.<clinit>(WLInitialConte
xtFactoryDelegate.java:144)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at weblogic.jndi.WLInitialContextFactory.getInitialContext(WLInitialCont
extFactory.java:131)
at javax.naming.spi.NamingManager.getInitialContext(Unknown Source)
at javax.naming.InitialContext.getDefaultInitCtx(Unknown Source)
at javax.naming.InitialContext.init(Unknown Source)
at javax.naming.InitialContext.<init>(Unknown Source)
at MyClient.m(MyClient.java:21)
at MyClient.main(MyClient.java:46)

Since you are receiving a NoClassDefFoundError, you would need to check your classpath for the client application. Make sure that you have the Weblogic JAR and the EJBClient JAR (containing the home and remote interfaces) set in the classpath.
I am not sure if your JNDI name "java:comp/env/ejb/myjndi2" would work in this case, since your application is not a part of the application container. You would need to use the global JNDI name for the EJB (which is set in weblogic-ejb-jar.xml)

Similar Messages

  • Problem with runas command. Elevation error

    Running on Win 8.1 Pro I'm facing a problem with runas.
    What I'm trying to do is launch an mmc as my domain admin account.
    Therefore I type this command from an elevated cmd (Right-click "Run as Administrator"):
    runas /user:Contoso\MyDomainAdmin /noprofile mmc
    This worked like a charm in Windows 7, and on my Win81Pro client it yields:
    RUNAS ERROR: Unable to run - mmc
    740: The requested operation requires elevation.
    The account I'm logged in with, is local admin, and the UAC slider is set in the bottom.
    In the eventviewer, I only see some special logons where my normal account is trying to impersonate my domain admin account, and the next event, the domain admin's session is destroyed.
    If this is by design, how would I then run mmc as my domain admin and at the same time avoid its credentials being stored on the local machine?
    Thanks in advance!

    yes, you need to be local admin to be able to elevate!
    I've tested this on a system here and I reproduce the issue you encountered. Some investigation showed running a program that requires elevation using runas is not  possible http://msdn.microsoft.com/en-us/library/bb756922.aspx
    MCP/MCSA/MCTS/MCITP

  • [SOLVED] Problem with running GUI apps as root

    Hi,
    I have a serious problem with running any kind of software having GUI as root, which is indispensable for editing system files. For example I want to edit /etc/pacman.conf file with KWrite, and here's what I get
    [zbyszek@barca ~]$ xhost +
    access control disabled, clients can connect from any host
    [root@barca zbyszek]# kwrite /etc/pacman.conf
    kwrite(11282): Session bus not found
    KCrash: Application 'kwrite' crashing...
    KCrash: Attempting to start /usr/lib/kde4/libexec/drkonqi from kdeinit
    sock_file=/root/.kde4/socket-barca/kdeinit4__0
    Warning: connect() failed: : Nie ma takiego pliku ani katalogu
    KCrash: Attempting to start /usr/lib/kde4/libexec/drkonqi directly
    drkonqi(11284): Session bus not found
    Can anyone help me with this? Can anyone tell me how to login as root?
    Thank you in advance.
    Last edited by Zibi1981 (2010-10-05 19:30:20)

    O.K., but how to run KWrite as root on my account??? That was my main question
    karol wrote:
    Try running 'xhost +' as root.
    https://bbs.archlinux.org/viewtopic.php?pid=817674
    Maybe vim is in edit mode when you press 'i' but it doesn't show '-- INSERT --' at the bottom of the screen.
    Here you are
    [root@barca zbyszek]# xhost +
    access control disabled, clients can connect from any host
    [root@barca zbyszek]# kwrite /etc/pacman.conf
    kwrite(12941): Session bus not found
    KCrash: Application 'kwrite' crashing...
    KCrash: Attempting to start /usr/lib/kde4/libexec/drkonqi from kdeinit
    sock_file=/root/.kde4/socket-barca/kdeinit4__0
    Warning: connect() failed: : Nie ma takiego pliku ani katalogu
    KCrash: Attempting to start /usr/lib/kde4/libexec/drkonqi directly
    drkonqi(12942): Session bus not found
    Last edited by Zibi1981 (2010-09-25 10:19:50)

  • I have a problem with running an EXE file on win2000, the Lab View is 5.1 and I do not know if it is 16 bit...

    I have a problem with running an EXE file on win2000, the Lab View is 5.1 and I do not know if it is 16 bit...what should I do?

    Hi Arika,
    The drivers that you need to install to make your executable work depends on what your executable is doing. To get started, you need to have the LabVIEW Run-Time Engine installed on your target machine (the Win2000 machine you are planning to use) in order to run your executable. Next, you need to determine what drivers your executable uses, if any. For example, if you are using GPIB instrument control, you will need to install the NI-488 drivers on your target machine. If you are performing data acquisition, you will need to install NI-DAQ drivers. If you are doing image acquistion, you will need to install NI-IMAQ drivers.
    All these drivers are available for downloading on ni.com. To get the drivers, go to ht
    tp://www.ni.com/support , click on the link that takes you to Drivers and Updates (under Option 3), and click on the links to get to the driver(s) you need. For example, if you need the LabVIEW 5.1.1 Run-Time engine, click on the All Drivers and Updates by Application link on the main page (http://www.ni.com/softlib.nsf/). Then click on the LabVIEW link, Windows 2000, Run Time Engine, and then you will see the link to get to the page to download the LabVIEW 5.1.1 Run-Time Engine.
    I hope this information helps.
    Best Regards,
    Wilbur Shen
    National Instruments

  • Problem with running the midlet class (Error with Installation suite )

    hi everyone...
    i have problem with running the midlet class(BluetoothChatMIDlet.java)
    it keep showing me the same kind of error in the output pane of netbeans...
    which is:
    Installing suite from: http://127.0.0.1:49296/Chat.jad
    [WARN] [rms     ] javacall_file_open: wopen failed for: C:\Users\user\javame-sdk\3.0\work\0\appdb\delete_notify.dat
    i also did some research on this but due to lack of forum that discussing about this,im end up no where..
    from my research i also find out that some of the developer make a changes in class properties..
    where they check the SIGN DISTRIBUTION...and also change the ALIAS to UNTRUSTED..after that,click the EXPORT KEY INTO JAVA ME SDK,PLATFORM,EMULATOR...
    i did that but also didnt work out..
    could any1 teach me how to fix it...
    thanx in advance... :)

    actually, i do my FYP on bluetooth chatting...
    and there will be more than two emulators running at the same time..
    one of my frens said that if u want to run more than one emulator u just simply click on run button..
    and it will appear on the screen..

  • I ve a problem with running the javabeans

    dear all
    i ve a problem with running javabean in forms 9i all codes, program units are correct. i think there is something with classpath which i dont where to put the path of bean jar files. however the simple code for the Colorpicker and keyFilter dont work when clicking the button to fire the trigger to bring the bean up.
    thank you
    Walaa eddien

    Walaa,
    Make sure you've entered the implementation class (do not append the class extension). For example, if you have a class example.class in the package otn.oracle.forum, the implementation class should be: otn.oracle.forum.example
    Make sure you place the containing java archive in <OH>/forms90/java and do not forget to update the configuration section (default or app specific) parameter archive_jini accordingly.
    Jeroen van Schaijk

  • Problem with update SCCM client to Sp1 CU3 on Windows 2008 server

    Hi all,
    I have problem with update SCCM client on Windows 2008 Server to 2012 Sp1 CU3. I have sent to deployment package with update (SP1 Cumulative Update 3 - server update) on four servers and after few minutes I have got in Monitoring\Deployment details four
    this same errors in "Asset Details":
    USER Message ID
    Status type Description
    NT\AUTHORITY\SYSTEM  1006
    Error 3003
    I love that types of error... which is har to find answer on google :-( I have tried but I haven't find any constructive :-( Did you met with something similar? Which log I should check (sorry - I'm still noob in SCCM2012) to update actual SCCM Client SP1
    (5.00.7804.1000) to SP1 CU3 (5.00.7804.1400)? 
    Thank you.

    I see in fodler with CU3 updates, are four packages:
    - SP1 Cumulative update 3 - x64 client update
    - SP1 Cumulative update 3 - x86 client update
    - SP1 Cumulative update 3 - server update 
    - SP1 Cumulative update 3 - console update
    It will be stupid but... maybe I should deploy x64 client update package? 

  • Problems with running Applet through HTML

    I am currently having problems with running my file through the HTML. For some reason when I open it in the browser it keeps saying Error. I am programming in NetBeans.
    The code I am using is:
    <html>
    <head>
    <title></title>
    </head>
    <body>
    <applet code=”CarApplet.class” codebase="RedCarApplet.jar" width=690 height=300></applet>
    </body>
    </html>

    Heres the error message, I see that it cannot find the class I have stated above. Any solutions?
    My class is in the 'build' folder but, the HTML file is in the 'src' folder. Now my applet contains a 'jar' file, do I need to add that to the HTML code?
    load: class ‚Ä?TunerApplet.class‚Ä? not found.
    java.lang.ClassNotFoundException: ‚Ä?TunerApplet.class‚Ä?
         at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
         at sun.plugin2.applet.Plugin2ClassLoader.loadClass0(Unknown Source)
         at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
         at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unknown Source)
         at sun.plugin2.applet.Plugin2Manager.createApplet(Unknown Source)
         at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    Caused by: java.io.FileNotFoundException: C:\Users\*****\*******\NetBeansProjects\RadioApplet\src\‚Ä?TunerApplet\class‚Ä?.class (The system cannot find the path specified)
         at java.io.FileInputStream.open(Native Method)
         at java.io.FileInputStream.<init>(Unknown Source)
         at java.io.FileInputStream.<init>(Unknown Source)
         at sun.net.www.protocol.file.FileURLConnection.connect(Unknown Source)
         at sun.net.www.protocol.file.FileURLConnection.getInputStream(Unknown Source)
         at sun.plugin2.applet.Applet2ClassLoader.getBytes(Unknown Source)
         at sun.plugin2.applet.Applet2ClassLoader.access$000(Unknown Source)
         at sun.plugin2.applet.Applet2ClassLoader$1.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         ... 9 more
    Exception: java.lang.ClassNotFoundException: ”TunerApplet.class”

  • A problem with WAAS mobile client

    The customer has a problem with WAAS mobile client. When he disabled WAAS mobile client - all is working, but http is not working.:-( On the server the accelerated networks are configured.The browser send the http request, but the response is not received:-( For other clients it is working. Thank you for help.

    I have WAAS mobile server version 3.4.0.1460 on the Windows2003 server with SP1. Client OS is Windows XP. All clients who use WAAS mobile client have WinXP on their notebooks. All clients are on the same network. This client sees this problem when the waas client is active, disabled, and for now when the waas mobile client is uninstalled - it seems like waas mobile client changed registers for IE or FireFox - so all http answers are redirected to nonexisting waas mobile client:-(
    Thank you
    Roman

  • Problem in run remote client with appclient

    I am having problems to execute remote clients (remote machines) using script of client conteiner: appclient. Local it functions perfectly, however when executed in a remote machine, the application not run wheel.
    Thanks!

    Have you looked at the Developer's Guide?
    http://docs.sun.com/app/docs?q=clients&p=doc%2F819-0079
    Specifically the section on creating clients with and without the app client container?
    http://docs.sun.com/source/819-0079/dgacc.html

  • Problem with clob_write under client 9.2.0.6: UnsatisfiedLinkError

    Hi all,
    I'm running Oracle client 9.2.0.4 on Windows XP and Java 1.4.1_3.
    Writing or reading clob's works pretty well.
    As i tried to update to Oracle client 9.2.0.6, i got the error
    Communication failed: java.lang.UnsatisfiedLinkError: clob_write when i tried to write a clob. The same error appears when i tried to read a clob.
    Is there a specific problem with clobs under this client?
    All other JDBC operations work as good as before.
    Thanks.

    Here is another hint.
    In your classpath, use the jdbc driver that's under your oracle installation to which you are trying to connect to (ie, <ORACLE_HOME>\ora92\jdbc\lib\ojdbc14.jar).
    I had the same problem in 9.2.0.6 and its gone when I replaced the ojdbc14.jar. I copied the ..\ora92\jdbc\lib\ojdbc14.jar to my java client program's classpath, and ran the java client without getting the UnsatisfiedLinkError.
    It looks like the ocijdbc9.dll under ora92\bin has to match correctly with the jdbc drivers you would be using. I got this idea from this link:
    http://episteme.arstechnica.com/groupee/forums/a/tpc/f/6330927813/m/705001068631/inc/-1
    Hope this helps.

  • Problem with running StageVideo

    Hi.
    I've got a problem with displaying a video in a stagevideo layer. I recently finished a project which involved a video background. Because the video is quite large (1400x572) and takes a lot of memory/CPU, I decided to run it in a StageVideo layer. After a series of testing, me and my animator, decided to use a FLV format. All was fine, until the last update. Client has came to me, that the video in a background in extremly bright.
    1. The problem exists in all browsers, running regular flash player 11,2,202,229 or 11,2,202,228.
    2. When I use a debugger version of flash player all works great - although I might have not used the latest version (uninstalled and didn't note it).
    3. When I reverted to 11,2,102,63, the problem disapeared - it looks like it came with the latest update.
    4. The problem occurs only if i use video in .flv format. f4v or mp4 version of the same video displays regular.
    Below is a screen of the problem. Mind, that the saxophone gay on the right is also a video in FLV format, but embedded not in a stage video, but as regular video in a container on the stage. And it displays normal. Problem occurs only in a stagevideo.
    I've found some comments on other bugs related to video in latest updates, but they seem to be different - green screens or strips or strage colors. Nothing related to brightness or gamma.
    Note: I need to use the FLV format. If I use F4V or MP4 format, I've got problems with looping a part of the video. It has an intro (0-14 sec), then loop part (14-15 sec) and ending (15-18 sec). In f4v or mp4 despite that I jump from 15 to 14 sec (in a loop), somehow it jumps from 14 to 13 or even from and to another moments in the video. And, in addition, it stops for like 2-3 frames.
    That's for your help.
    Lucjan Michałowski.

    Me again...
    I forgot to mention few things:
    1. The problem occurs on all computers and all browsers. I had access only to PCs running Windows 7, so ATM can't tell if it occurs on ealier versions of Windows. On MAC, as my friend reported, the problem is not only with FLV, but with F4V as well. However it's doesn't seem to be hardware related.
    2. When I switch to regular video (in a container on a stage) it works well, but it slows the site too much to use it as a reliable solution.
    Can anyone comment on it please? Is it a bug... or feature? Is there any way to fix this, or work around (make other movie formats work)?

  • Problem while running EJB client

    my TaxClient program caught an exception when i issued this command:
    java -classpath %J2EE_HOME%\lib\system\cloudutil.jar;%J2EE_HOME%\lib\cloudscape\RmiJdbc.jar;%J2EE_HOME%\lib\system\cloudscape.jar;%J2EE_HOME%\lib\j2ee.jar;TaxClient.jar;. TaxClient
    the exception look like this:
    java.lang.ClassCastException
    at com.sun.corba.se.internal.javax.rmi.PortableRemoteObject.narrow(Porta
    bleRemoteObject.java:296)
    at javax.rmi.PortableRemoteObject.narrow(PortableRemoteObject.java:137)
    at TaxClient.main(TaxClient.java:13)
    and this is my client code:
    import bmp.*;
    import java.util.*;
    import javax.naming.Context;
    import javax.naming.InitialContext;
    import javax.rmi.PortableRemoteObject;
    public class TaxClient {
    public static void main(String[] args) {
    try {
    Context initial = new InitialContext();
    Object objRef = initial.lookup("MyTaxBean");
    TaxHome home = (TaxHome) PortableRemoteObject.narrow(objRef, TaxHome.class);
    Tax tax = null;
    tax = home.create("IL", 5.00f);
    tax = home.create("CA", 6.25f);
    tax = home.create("FL", 8.50f);
    tax = home.create("CO", 6.75f);
    tax = home.findByPrimaryKey("CA");
    System.out.println("CA tax rate: " + tax.getTaxRate());
    System.out.println("Changing tax rate for CA state");
    tax.setTaxRate(8.25f);
    System.out.println("New CA tax rate: " + tax.getTaxRate());
    Collection taxArray = home.findInRange(5.0f, 7.0f);
    Iterator it = taxArray.iterator();
    while (it.hasNext()) {
    Object objRef2 = it.next();
    tax = (Tax)PortableRemoteObject.narrow(objRef2, Tax.class);
    System.out.println("Tax Rate in " + tax.getPrimaryKey() + ": "
    + tax.getTaxRate());
    tax.remove();
    } catch (Exception ex) {
    System.err.println("Caught an exception.");
    ex.printStackTrace();
    anyone who know what is problem pls help. i'm using win2k, j2sdk 1.3.1_02 and j2ee1.3.1. thanks

    yeah its run. some problem with the deployer descriptor. but problem occured again when i try to run the client for the second time it throws exception:
    java.rmi.ServerException: RemoteException occurred in server thread; nested exce
    ption is:
    java.rmi.RemoteException: nested exception is: javax.ejb.EJBException: O
    bject state could not be saved; nested exception is:
    javax.ejb.EJBException: Object state could not be saved
    java.rmi.RemoteException: nested exception is: javax.ejb.EJBException: Object st
    ate could not be saved; nested exception is:
    javax.ejb.EJBException: Object state could not be saved
    javax.ejb.EJBException: Object state could not be saved
    <<no stack trace available>>
    why it runs for the first time but not for the second?

  • AdbeRdr710_it_IT.exe problem with RUNAS

    Hi,
    I'm trying to update Acrobat Reader 7.0.9 to version 7.1.0 on Windows XP SP2.
    For deploying reason i need to impersonate Administrator before launching AdbeRdr710_it_IT.exe, but i get the error code -529697949.
    If I log on client with Administrator i don't have the problem, so the problem only happens with "runas" (i tried runas with other domain admin users and the problem is the same).
    Any ideas?
    Best Regards,
    Gianluca

    yes, you need to be local admin to be able to elevate!
    I've tested this on a system here and I reproduce the issue you encountered. Some investigation showed running a program that requires elevation using runas is not  possible http://msdn.microsoft.com/en-us/library/bb756922.aspx
    MCP/MCSA/MCTS/MCITP

  • Problems with the sessionBean

    Hello all
    First: Is anyone here working with Visual java server faces?
    Second: What happens when u do drag and drop on a table, everything is working fine.. but later on, someone adds 2 more fields to the table.. and now when i run the web app, it looks incomplete because the session bean did not refresh.
    How can i accomplish the refresh part there??
    Thanks in advance

    Hi,
    I have the same problem with bc4j deployed on Oracle 8.1.7 as session EJB.
    I'm testing the deployed bc with a client code. I have the following problem on the lookup method:
    avax.naming.NamingException: Unknown reasons. Root exception is
    java.lang.ClassNotFoundException: vebs.jbo.common.ejb.VeAppModuleHomeHelper
    void oracle.jbo.client.remote.ejb.aurora.AuroraEJBAmHomeImpl.initRemoteHome()
    void oracle.jbo.client.remote.ejb.aurora.AuroraEJBAmHomeImpl.<init>(oracle.jbo.JboContext, java.lang.String)
    oracle.jbo.common.JboHome oracle.jbo.client.remote.ejb.aurora.AuroraEJBInitialContext.createJboHome(java.lang.String)
    java.lang.Object oracle.jbo.common.JboInitialContext.lookup(java.lang.String)
    java.lang.Object javax.naming.InitialContext.lookup(java.lang.String)
    void bctest.main(java.lang.String[])
    but if I see in the Oracle db, the class is exported.
    Help me!!

Maybe you are looking for