Client doesn't find EJB

Hi,
i tried to deploy an EJB with JDev3.
Everything seems to be fine, no error occured.
Trying to connect with an client class the following
exception is raised:
[Root exception is java.lang.ClassNotFoundException:
test.MyEJBHomeHelper]javax.naming.NamingException:
Unknown reasons
I connected with sess_sh an used the ls command.
Only a single class "MyEJB" is there in the directory "test"
Should i see the "MyEJBHomeHelper" class too?
Any hint is highly appreciated.
Thanks a lot
peter
null

Hello Laura,
thanks it worked.
But why must i include the jar files, which the
deployment wizard generates for me?
Bug or feature?
So the way to use a new EJB is:
- compile the EJB-Files
- call the deployment-wizard which generates the helper classes
and the jar files
- add the new jar files to the library list
- rebuild
- deploy again
is this right or is there an other way?
JDev Team (guest) wrote:
: Peter,
: Here's my list of things to check for with EJB problems:
: 1. Make sure you have added the source and generated jars to
your
: project in the form of a library
: a. Choose Project|Project Properties from the menu
: b. Click the Libraries button on the Paths tab
: c. Click New to create a new library
: d. Name the library 'MyEJB' or something distinctive
: e. Click the '...' button to the right of the ClassPath field
: f. Click 'Add Zip/Jar' and navigate to the location of your
: generated and source jars for this EJB. Choose both jars and
add
: them.
: g. Click OK until you're back in Project Properties
: h. Click Add and select the library you just created.
: i. Save and rebuild your project.
: 2. Try using the EJBClient snippet from the New Gallery for
your
: client code.
: 3. You can see what was deployed using the Database browser.
: a. double-click on the connection you used to deploy
: b. expand the nodes and you should be able to see what is
: availabe in the test directory (or wherever else you deployed).
: Hopefully one of the above will help.
: Laura
: peter (guest) wrote:
: : Hi,
: : i tried to deploy an EJB with JDev3.
: : Everything seems to be fine, no error occured.
: : Trying to connect with an client class the following
: : exception is raised:
: : [Root exception is java.lang.ClassNotFoundException:
: : test.MyEJBHomeHelper]javax.naming.NamingException:
: : Unknown reasons
: : I connected with sess_sh an used the ls command.
: : Only a single class "MyEJB" is there in the directory "test"
: : Should i see the "MyEJBHomeHelper" class too?
: : Any hint is highly appreciated.
: : Thanks a lot
: : peter
null

Similar Messages

  • Pls help : How to get the client ip address in EJB

    Hi experts,
    I need to find the ip addr of the client which makes the remote call.
    I tried using
    java.rmi.server.RemoteServer.getClientHost()
    But it throws ServerNotActiveException .
    When I tried this in RMI it works fine perfectly.
    If i am right EJB is just similar to RME and it should work in it too..
    Can you please help me in finding out the ip address of the client which makes the ejb call.
    Thanks & Regards,
    Mukunt

    Hi Mukunt,
    There is no portable way to do this in the Remote EJB programming model. The bean class
    is written in a way that is agnostic to those kind of plumbing-related details of the caller.
    --ken                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Indesign CC doesn't find and highlight links when trying to relink!!

    I was so excited to see all the customizable options in my new InDesign CC, until I tried to relink a file from the links palette and CC doesn't find and highlight the file anymore like it used to do with 4 and 5!!
    As a prepress operator dealing with hundreds of clients and manipulating files all day long, this feature was a great blessing.
    Hope it's just a glitch and somebody is fixing it or I'll have to go back to 5

    I have been using InDesign 2, 3, 4, 5 and 5.5 with all OSX up to 10.6.8 and always had that feature. Some say the problem is Lion, some say is InDesign 6 and up. I'm back to 5.5 anyway because CC is way too slow with my old Mac G5.

  • Determine if a client of  a stateful EJB dies...

    We are trying to remove stateful EJB instances when the client accessing the stateful
    EJB dies abruptly. We do not want to rely on the timeout feature.
    Let us say that we have a client that creates a stateful session bean and dies
    abruptly.
    Is there any way of determining, from the Weblogic server by inspecting the Stateful
    Bean, if the client is dead?

    Hi Laurent,
    thank you very much for you replay. As you indicated
    JDOHelper.isDirty(Object) returns true when the content of Object has
    changed in the current transaction. But I need more specific information
    about the object state : which are the changed fields?
    With kodo3 I was able to know which fields was changed through
    KodoStateManager:
    KodoStateManager sm = ((KodoPersistenceManager) pm).
    getStateManager(obj);
    int fieldIdx = sm.getMetaData().getField("myFieldName").getIndex();
    boolean dirty = sm.getDirty().get(fieldIdx);
    now, in kodo 4 I don't find an equivalent class.
    Any idea? Thank you a lot.
    Kind Regards,
    Daniela
    Laurent Goldsztejn wrote:
    JDOHelper.isDirty(Object) returns true if the content of Object has changed in the current transaction.
    Laurent

  • Admin utility doesn't find airport

    Here's my setup. I'm using the Airport as a wireless client to connect to my stereo so I can stream music from iTunes. I have one PC connected to the network by Ethernet to the router. I have another PC connected to the network by wireless. On the Ethernet PC the Airport admin utility doesn't find the Airport automatically. But I can enter the IP address and password for the Airport and it is found and I can change the settings. But iTunes on the Ethernet PC does not find the remote speakers. I have the option turned on to look for remote speakers in iTunes. And the Airport is working because iTunes on the wireless PC finds the remote speakers and streams music just fine. I've also opened up ports 5353, 5298, and 5009 on the PC's firewall. Why can't iTunes find the remote speakers on the Ethernet PC?
      Windows XP  

    Thanks for the reply. I should have explained my network setup better. I have a Linksys BEFSR41 router that the Ethernet PC is plugged into. There is a Linksys WAP54G access point plugged into the router. I have two PCs connected to the network through the wireless access point. iTunes on both of those PCs can find the Airport and share their libraries. iTunes on the PC connected directly to the router cannot find the Airport or the other libraries. Although the network connection to the Airport works because I can enter the IP address of the Airport in the admin utility and the config utility works.
    I also tried connecting a laptop that normally connects wirelessly directly to the router. And iTunes could not find the Airport. So I'm guessing it is something with the router or that the Airport doesn't work with wired clients. I don't think it is the firewall because I have the same firewall with the same settings on all 3 PCs.

  • Can an EJB client application access to EJBs on two domains concurrently?

    It is well-known that there can be multiple domains in a SUN application server. If two domains are started up, can the same EJB client application call different EJB methods from the two domains? If can, how to implement? Please kindly give a snippet of sample codes.
    Another question: can EJBs among multiple domains communicate with each other? If can, tell me how to implement and had better provide some sample codes as well.

    I have my client working now!
    I was looking around on other forums and found a guy who said that javax.comm has problems with security. here is the address
    http://lists.dalsemi.com/maillists/java-powered-ibutton/2002-February/002168.html
    He said,
    "This is an error generated by the javax.comm packages when initializing
    the
    serial ports. It's basically a security related bug. Officially, all
    packages stored in your lib/ext folder should be considered trusted
    code,
    running with the same permissions as your trusted main application. But
    it
    seems that isn't the case with comm.jar.
    I've heard that signing the comm.jar file might fix it, but I wasn't
    able to
    verify that myself (but I didn't test with Netscape's java plugin). I
    found
    a workaround that should take care of it (as long as your main
    application
    has "all-permissions"). Try adding this line to the top of your main
    method:
    System.setSecurityManager(null);
    So I did that and it worked except for one thing. at the end of my program the client tells me
    The system cannot find the path specified.
    Do you think this is a major problem? What is it trying to find??
    Michael B

  • My ipad doesn't find my printer....

    How do I make my hp 3510 discoverable to my ipad? The wireless printing works from my laptop which has the same wifi settings, but the ipad cannot find the printer????

    Hi Kiwisteve77,
    I understand the Ipad doesn't find the printer.
    Thank you for your reply.
    I will be happy to help you with this.
    Try turning the wi-fi off and on again on the Ipad.
    If that doesn't work turn the Ipad off and on again.
    Check to make sure it is connected to the proper network.
    Power cycle the router, Ipad and the printer and try it again if you are still having issues.
    I have provided a document for How to Use Apple's AirPrint Over a Wireless Network. Go to the section What if a 'No AirPrint Printers Found' message displays on my Apple device?
    Hope this helps.
    Thank you for posting on the HP Forums. Have a great day!
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos Thumbs Up" on the right to say “Thanks” for helping!
    Gemini02
    I work on behalf of HP

  • When I launch I photo it wants me to choose a library but it doesn't find one which is impossible, because i still have no storage. before i can clean up i want to back up them. how can i find my library?

    When I launch I photo it wants me to choose a library but it doesn't find one which is impossible, because i still have no storage. before i can clean up i want to back up them. how can i find my library?

    You may very well have damaged your library - or even your system by not having adaquate storage available
    And never select all of the pitcture and move them - that will destroy your library - the iPhotolibrary is a SQLite database and must always be kept intact as a single entity -
    Moving the iPhoto library is safe and simple - quit iPhoto and drag the iPhoto library intact as a single entity to the external drive - depress the option key and launch iPhoto using the "select library" option to point to the new location on the external drive - fully test it and then trash the old library on the internal drive (test one more time prior to emptying the trash)
    And be sure that the External drive is formatted Mac OS extended (journaled) (iPhoto does not work with drives with other formats) and that it is always available prior to launching iPhoto
    And backup soon and often - having your iPhoto library on an external drive is not a backup and if you are using Time Machine you need to check and be sure that TM is backing up your external drive
    LN

  • What files do I need to download iPhone photos to a thin client (HP)? Apple Mobile Support gives 4 dll files to enable the iPhone to be detected and charged but the thin client doesn't see the camera or hard drive.

    The iTunes Installation files include 4 driver dlls that I can install on a Windows thin client to enable the iPhone to be charged.
    The iPhone hard drive or photos are not detected.  I guess I need scanner driver support to cope with the camera.
    Can anyone tell me which files from the iTune installation set are needed.
    It is not practical (or even possible?) to install the whole iTunes package.
    I've seen this question asked by a lot of people but never seen an answer. 
    Please, can someone help... 

    Thanks for the reply. 
    A thin client is used to connect to a Terminal Server, or in my customer's case, a Citrix Server.  I need the thin client to see the iPhone as a camera and pass it to the Citrix Client so the photos can THEN be either stored on a network storage device, or e-mailed.
    Because the thin client doesn't even SEE a camera (i.e. the iPhone) it won't be able to connect to iCloud to do anything useful. 
    I think the question I should be asking, is how do I give the thin client Camera Support.
    I've just seen a 2008 forum comment that said the iPhone DOESN'T handle photos through iTunes, but the PC (Scanner support) or MAC (iPhoto) handles them directly.  I should be putting the question to HP.
    This is still a good place for THIS question, because I've seen so many iPhone users asking it...
    If I get a satisfactory answer I'll post it back here.

  • ICal search doesn't find anything

    when I test this by creating a future event with a particular word in it, then return to today and search for that word in the little "search" box at top right, it doesn't find that word.
    Why not?

    I have also had long standing problems of not being able to search for calendar events, either from within iCal or Spotlight or using mdfind.
    None of the suggested solutions worked for me (removing Calendar Cache file, adding and removing folders or drives to the privacy section of Spotlight to re-index, or running mdimport ~/Library/Calendars.
    One clue was that mdimport -d2 ~/Library/Calendars would not even look at the individual .ics files within any .calendar/Events directory (no output). I suspected that this was due to LaunchServices not associating these files properly with iCal. My system had previously been upgraded all the way from 10.0 through 10.6.
    What finally worked for me was the following, using the Terminal, rebuilding completely the LaunchServices database:
    rm /Library/Caches/com.apple.LaunchServices*.csstore
    *defaults delete com.apple.LaunchServices*
    *sudo /System/Library/Frameworks/ApplicationServices.framework/Frameworks/LaunchServi ces.framework/Support/lsregister -kill*
    *sudo /System/Library/Frameworks/ApplicationServices.framework/Frameworks/LaunchServi ces.framework/Support/lsregister -R -domain local -domain system -domain user*
    (note the capital -R in the previous line.)
    This step will take a few minutes to complete, with a message about I/O throttleing
    reboot (not sure if that is necessary)
    *mdimport -d2 ~/Library/Calendars*
    This last command should now show the successful indexing of all calendar events.
    After this search finally worked again for me!
    Regards,
    Heiko

  • Search engine doesn't find vcards

    The search engine in Address book doesn't find cards that exist in my ALL. They were cards imported via Time Machine. Any way I can get AB to index it's content ?

    One week later, I'm still hoping (praying ?) for a solution...

  • Find palette doesn't find the IPCT category  field

    I have all my pictures by categories and suplemental categories. The "find" tool doesn't find anything if for example I type ARC (architecture), no matter if I select containing, containing all, starting or all metadata, all, etc... It seems that it doesn't search in some IPCT fields, at least in the category and suplemental category.

    You are right. "find" will find IPTC entries in caption, say, but not in category. I guess it's like EXIF, where it's only make, model, serial number, artist, and software.
    - Pierre

  • The "Search" function box doesn't find things that are there! Why?!

    The "Search" function box doesn't find things that are there! Why? Eg: It doesnt show all my Sent and Received emails, but it will find an email that I half wrote and deleted. Unsure why or how to explain more fully.
    I also don't understand if I type in "James email" or "J" into the search box and all the J / James stuff appears but it doesn't show the emails I know have been sent and I know are somewhere because I rang "James" up to check, but the search box shows random thing I am NOT looking for, even if I type in fully what I am looking for and test it by typing in full titles of things.
    It also doesn't store all my sent emails in "Sent" box. Confused! I'm not sure if the "Search" box just isn't up to the job or if it is broken / i'm doing something wrong? Maybe the email address I use isn't set up properly?

    This can happen sometimes if the cache is not cleared correctly when items are not deleted from your device.
    The only solution to this is to do a restore to clean out the cache file.

  • Satellite L855D doesn't find my CD/DVD drive

    Hello!
    I don't know what has happened to my computer but it doesn't find CD/DVD drive anymore.
    I guess I may have deleted some necessary drive but not on purpose anyway.
    Is there any way to recover it?
    I have tried RmvFltrs which I found from some Toshiba's tech support site via Google search but it didn't help.
    It stated that it worked but my computer tells me the installation couldn't be done.
    I'm not in a desperate need of the drive to work, I'm just wondering whether it is possible to make it work somehow. So if someone could help me with this I'd be more than glad.
    Sincerely,
    Joonas

    I mean that it isn't shown in "My Computer" anymore or if I try to install something from a CD it doesn't work since the drive doesn't work.
    I can find it from device manager yes but it gives me this "code 52" and says the digital signature cannot be verified. There's this yellow triangle with an exclamation point in it too. Does this help at all?

  • TS3276 The Finder doesn't find ~/Library/Mail, or even "library". I need to do some experimenting to get my mail back and want to back up but can't even find a file with my messages in it.

    Trying to save my email prior to a wave of experimentation to get email working again but finder doesn't find "library". Has the library been omitted from Mountain Lion?

    Go to your Finder "Go" menu hold the option key to choose "Library".
    After that you can drag it to your sidebar for easy access.

Maybe you are looking for

  • New Mac/APE 12 user Used to have Cyberlink Powerdirector 9 for video/slideshow editing.  HELP!

    I have recently purchased APE 12 to help with editing a slideshow.  Previously I used Cyberlink Powerdirector 9 on my PC.  At this point I am very disappointed in the money I spent.  There is so much less I can do with the structure of the slideshow.

  • Transfer Upgrade from one line to another on the same plan.

    Is it possible to transfer an upgrade from one line to a second line, and then have the phone that was used on the second line, be switched to the first line? If so, how would I go about doing this online?

  • Amount into Words in PE51

    Hi, Using PE51, net salary amount can display in words as, pe51--> form name-->Betrg(double click)--->select RT Table field : Betrg Identifier: /560 Output length: 30 Convertion: 23 Eg:17,714.44 (Net Salary) While i was doing like this i am getting t

  • How do I change the default notifications?

    When I make an event on a day in iCal I get a default notification of an audio alert. How can I change it to a default email alert?

  • Processing Customer IDoc

    I am processing inbound customer Idoc. When I am testing from we19 with  some values in E1KNB1M and E1KNKKM , it is processed successfully. If the initial Idoc doesn't have those segments I am populating it in the program with the same value and that