Problem doing lookup

Hi,
I used pramati studio 3.0 and JBoss 3.0.4
PROBLEM: i am not able to do a look up on the beans running on the server.
SITUATION:: I have written a session bean which communicates with an entity bean. I deployed them on JBoss 3.0.4 and they were succesfully deployed.
Here is the server console
14:30:45,015 INFO [EARDeployer] Init J2EE application: file:/C:/jboss-3.0.4/ser
ver/default/deploy/Meka.ear
14:30:45,171 INFO [EjbModule] Creating
14:30:45,171 INFO [EjbModule] Deploying Entity
14:30:45,328 INFO [EjbModule] Deploying Session
14:30:45,390 INFO [EjbModule] Created
14:30:45,390 INFO [EjbModule] Starting
14:30:46,765 INFO [Entity] Created table 'ENTITY' successfully.
14:30:46,781 INFO [EjbModule] Started
14:30:46,859 INFO [jbossweb] Registered jboss.web:Jetty=0,JBossWebApplicationCo
ntext=2,context=/MekaWeb
14:30:46,906 INFO [jbossweb] Extract jar:file:/C:/jboss-3.0.4/server/default/tm
p/deploy/server/default/deploy/Meka.ear/58.Meka.ear-contents/MekaWeb.war!/ to C:
\DOCUME~1\ADMINI~1\LOCALS~1\Temp\Jetty_0_0_0_0_8080__MekaWeb\webapp
14:30:47,187 INFO [jbossweb] Started WebApplicationContext[MekaWeb,MekaWeb]
14:30:47,203 INFO [jbossweb] successfully deployed file:/C:/jboss-3.0.4/server/
default/tmp/deploy/server/default/deploy/Meka.ear/58.Meka.ear-contents/MekaWeb.w
ar to /MekaWeb
14:30:47,203 INFO [MainDeployer] Deployed package: file:/C:/jboss-3.0.4/server/
default/deploy/Meka.ear
14:30:47,218 INFO [URLDeploymentScanner] Started
14:30:47,218 INFO [MainDeployer] Deployed package: file:/C:/jboss-3.0.4/server/
default/conf/jboss-service.xml
14:30:47,218 INFO [Server] JBoss (MX MicroKernel) [3.0.4 Date:200211021607] Sta
rted in 0m:18s:906ms
Now i have written a client which looks up the session bean as below
Hashtable env = new Hashtable();
env.put(Context.INITIAL_CONTEXT_FACTORY,
"org.jnp.interfaces.NamingContextFactory");
env.put(Context.PROVIDER_URL, "localhost:1099");
env.put("java.naming.factory.url.pkgs",
"org.jboss.naming:org.jnp.interfaces");
try {
Context ctx = new InitialContext(env);
Session_LocalHome session_lh = (Session_LocalHome) ctx.lookup("java:comp/env/Session_LocalHome");
Session_Local session_local = session_lh.create();
I am getting the following error
javax.naming.NameNotFoundException: comp not bound
at org.jnp.server.NamingServer.getBinding(NamingServer.java:495)
at org.jnp.server.NamingServer.getBinding(NamingServer.java:503)
at org.jnp.server.NamingServer.getObject(NamingServer.java:509)
at org.jnp.server.NamingServer.lookup(NamingServer.java:253)
at sun.reflect.GeneratedMethodAccessor14.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:261)
at sun.rmi.transport.Transport$1.run(Transport.java:148)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Transport.java:144)
at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:4
60)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport
.java:701)
at java.lang.Thread.run(Thread.java:536)
at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(Stream
RemoteCall.java:247)
at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:
223)
at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:133)
at org.jnp.server.NamingServer_Stub.lookup(Unknown Source)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:456)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:440)
at javax.naming.InitialContext.lookup(InitialContext.java:347)
at Client.<init>(Client.java:39)
at Client.main(Client.java:87)
I have tried to look in the internet for a long time but could not get enough help. I have even looked a couple of books but i havent been able to get proper help.
And yeah i am trying to look up beans on LocalHome interfaces because client and beans are on same JVM (same machine).
Thank You
Meka Toka

Hi,
Thank you for the help.
I have gone through the document that you mentioned and have identified the problem.
I am looking up a bean on a particular name and that name is not existing at that location.
Now, the document in jboss website said that by default the JBoss binds the display name as the jndi name for the bean and we can override that in the jboss.xml file. And so i had written the jboss.xml as below
<?xml version="1.0" encoding="UTF-8"?>
<jboss>
<enterprise-beans>
<session>
<ejb-name>Session</ejb-name>
<jndi-name>session/Session_LocalHome</jndi-name>
</session>
</enterprise-beans>
</jboss>
so that i can be doing a lookup using
Session_LocalHome session_lh = (Session_LocalHome) ctx.lookup("session/Session_LocalHome");
Session_Local session_local = session_lh.create();
If you look at http://www.jboss.org/online-manual/HTML/ch05.html if at all we happen to use a jboss.xml to override the jndi names, then it must be placed in the META-INF directory of the 'ear'.
But even after all this i am getting an error
javax.naming.NameNotFoundException: session not bound
Please let me know what am i missing there.
Regards
Meka Toka
NOTE: In http://www.jboss.org/online-manual/HTML/ch05.html it said that jboss.xml should be added in META-INF directory but it didnt say if was in ear or in jar.
I tried both, when i added in jar i got error while deploying the ear, but when i added jboss.xml in ear , the ear deployed succesfully.

Similar Messages

  • HT5429 How long after you report a problem does it take for the fix to be picked up in maps?

    How long after you report a problem does it take for the fix to be picked up in maps? The street I live on is misspelled. It's shown as one word, but it should be two words. Maps cannot find the address when it is spelled correctly, so I have it purposely misspelled it as one word in my contacts, which helps for the most part, however it still tries to place my home on an entirely different street all together. Fortunately this new random street is at least close to where I live. When I used to spell my street correctly with two words, maps would try to send me to the next town over. So it kind of works, as long as I misspell my street, and ignore the fact that it is showing where I live to be a couple of streets down from where I actually live. I live in Connecticut - not in the most populated of areas, but not in the middle of nowhere either. Amazingly enough Google Maps will correctly find my address whether it's spelled with one words or two words. Google Maps also shows my apartment complex, which Apple Maps does not. I really wish Apple would just do a quick pass of the area to fix these issues. I’ve reported the problem several times, months ago. How long will it take for there to be a fix? I keep trying to use the Apple ecosystem, but Google is clearly the better solution for me.

    Apple does not do the GIS data for maps. That comes from 3rd party vendors like Tom Tom. I have read it takes some time to update map data. The only thing you can do is report it.
    Not to belittle your complaint, but on my end it is Apple that is clearly better. When looking at my house in Google, the satellite photo is more than 4 years old, and the Apple one is much newer. I can tell because of the condition of my home and the neighbor's. They had an above ground pool which was removed 4 years ago and it shows on the Google Map. I had remodeling and roof work done to my home that started 3 years ago and Apple's satellite view showed this work done, which took over a year to complete. I live in the middle of a block in a rural town. Both Apple and Google split the block into 100 parts and put my home close to the beginning of the block instead of where it actually sits. I've reported it to both Google and Apple and no one has changed. Just one of those things. But, keep your chin up, it will get corrected eventually.

  • How does one update Flash? I currently cannot watch videos on You Tube, it says I need to upgrade, I have no problem doing this on a PC.

    How does one update Flash? I currently cannot watch videos on You Tube, it says I need to upgrade, I have no problem doing this on a PC.

    If you're not using chrome you can just go to adobe's website (http://get.adobe.com/flashplayer/) and download the newest flash player.  You run the .dmg and then open the application, which updates flash.  With the latest version of flash there should be a preference pane within system preferences to allow you to change settings and check for updates.

  • When I enable imatch on my iPhone 4s it takes approximately 30 minutes before other data fills 13.2gb of usable data. This problem does not occur when I manually sync music to my phone. Is this a common bug, and if so; is there a fix?

    When I enable imatch on my iPhone 4s it takes approximately 30 minutes before other data fills 13.2gb of usable data on the phone. This problem does not occur when I manually sync music to my phone only when I access imatch. Is this a common bug, and if so; is there a fix?

    yes it is. you can sign out of itunes account then sign back in. use http://support.apple.com/kb/ht1311 to sign out.

  • I have a 17" Macbook pro with flickering red and cyan(blue) lines across the screen. The issue disappears temporarily when I tap on the computer, and the problem does not occur when I use external display or try to screen capture the problem.

    I purchased my Macbook (17") through a certified apple tecnition in August 2012, it was refurbished and the motherboard was completely replaced. I do a lot of photo editing, but I have been unable to do so because of the red vibrating lines that interrupt my screen. The issue disappears temporarily when I tap on the computer, and the problem does not occur when I use external display or try to screen capture the problem. I brought the computer back to the technition I purchased it from and he said that it was a problem with my fan, so I have two new fans but the issue is still occuring. He says he doesnt know whats wrong. Does anyone have any information on this issue?
    Here is an image of the issue
    http://www.flickr.com/photos/67839707@N08/8884847081/

    I recommend having your Mac serviced by someone competent. A force sufficient to "blow apart" the fans was clearly excessive and may have damaged the display cable, as well as any number of other problems.
    Dust is properly cleaned with a vacuum, preferably one designed for computer service, and they are not cheap.
    Compressed air should never be used. It just blows dust everywhere, often into places where it can no longer be removed.

  • On my new iMac, mail has no sound after waking from sleep.  If I select do not wake for network access in general preferences, the problem does not occur.  Anyone have an idea on how to fix this?

    On my new iMac, mail has no sound after waking from sleep.  If I select do not wake for network access in general preferences, the problem does not occur.  Anyone have an idea on how to fix this? Thanks --

    Same here on an older iMac since Lion. Thanks for the uncheck wake for network access tip though, it doesn't do it either in that case, I will leave it that way.

  • Problem doing a chart

    hi!
    I have a problem doing a chart, I have three columns: I have dimension department in X Axis and I have two measure columns.
    I have a view selector with each measure so...I have two charts. My problem is that I have to apply a filter and I need to show only departments that has a value more than 0. How can I apply this filter?
    If I apply a filter in answers two charts has the same departments and isn't true because each measure has different departments...
    Can you help me??
    Thanks!!!

    Hello!
    I know this type of filter.
    In my fx formula I have this code:
    FILTER(IFNULL("- Actual".Value, 0) USING ("Dim Concept".Concept = 'Number of Ships'))
    Then I have another column (Department) and I have to do a chart.
    I want to see only departments that has my first column > 0, but I have to apply this filter inside of my column because I have another columns with another concept...
    I mean, If I choose on my view selector Measure 1 I can see for example: 10 departments on X AXIS of my chart and If I choose Measure 2 in my view selector...I should see for example only 7 because another has 0 value...
    Is possible to get this???
    Thanks!!

  • I just downloaded the new itunes update, now I can't copying TV shows purchased from the library to my backup computer, it says the files are invisible. Never had any problem doing it until the update.

    I just downloaded the new itunes update, now I can't copying TV shows purchased from the library to my backup computer, it says the files are invisible. Never had any problem doing it until the update. I have a Mac Pro G5 OS 10.6.8. The desktop hidden files app doesn't reveal the TV shows.

    found a solution in a different discussion.. thank god.

  • Problem doing SFTP through ISDN

    Hi,
    I have a problem doing SFTP through ISDN, ISDN connection is not staying active throughout the duration of the file transfer, it drops after its timeout value even if data transfer is in progress and file transfer break at that point, this happens with sftp transfer only, other type of connection like telnet, rdp works fine. Intresting traffic list I have define is,
    access-list 112 permit ip host 10.10.10.9 any. All the traffic is orignating from IP address 10.10.10.9
    Any suggestion on that.
    Thank you
    Yamin

    This is a fairly common issue with ISDN dialers. The disconnect may be initiated by either side of the connection.
    If you are certain that all is OK on your end, it may be the remote side that initiates the disconnect.
    regards,
    Leo

  • My mouse is unable to access the top toolbar in websites and email with Firefox - this problem does not present in Windows XP or Internet Explorer

    My mouse is unable to connect with the top toolbar of my hotmail account and any other websites I visit using Mozilla as a browser. This problem does not occur when I use Internet Explorer

    The answer was perfect! I fixed the problem following the link. When I posted the question yesterday, I was not very optomistic that anyone would reply and/or help - but, I was wrong. The solution was quick and simple.
    Thanks very much!!

  • Having problems doing an iCloud backup it keeps showing the estimated time thing but the blue load bar hasn't budged in over a half hour is there a way to correct this

    Having problems doing an iCloud backup it keeps showing the estimated time thing but the blue load bar hasn't budged in over a half hour is there a way to correct this

    You might try a forced shutdown to begin with, hold down the top and home buttons together until the device shuts down, then restart it.
    First check that your device is correctly connected to the wifi/internet (settings > wifi)
    If your back up continually fails, you might try turning off back up on your mobile device (settings > iCloud > storage & backup) and then deleting the backup file from iCloud by swiping the backup file on the mobile device (settings > iCloud > storage & backup > manage…) and then turning back up on again.
    If this doesn't help, try turning off some items for back up in a pattern to try to establish if your problem is being caused by specific data on your device.
    Being able to back up to the cloud can be very useful, especially if you don't have access to a computer or have infrequent access to one, however unless you specifically need to use iCloud for back up, you will find backing up to iTunes significantly more convenient and possibly more reliable.
    More about iCloud v iTunes Back Up

  • I purchased an iPhone 5S using my EDGE upgrade on September 5, but would like to exchange it for an iPhone 6 within the 14 day period. Other than having to pay the $35 restocking fee, will I have any problems doing so? Thanks

    I purchased an iPhone 5S using my EDGE upgrade on September 5, but would like to exchange it for an iPhone 6 within the 14 day period. Other than having to pay the $35 restocking fee, will I have any problems doing so? Thanks

        Good evening udflyers! You should not have any problem returning/exchanging your current within 14 days http://bit.ly/IeiJI of purchase. However, you may have to preorder the device you want as it is not currently available and preorder start on 9/12/14 at 12:01am, PST. Please process your return/exchange thru the same channel as your original purchase.
    AntonioC_VZW Follow us on Twitter at www.twitter.com/VZWSupport

  • What problems does one encounter when one attempts to download e-Books which are printed in German and purchased through German web sites onto an iPad purchased in the USA?

    What problems does one encounter when one attempts to download e-Books, which are printed in German and purchased through German web sites,
    onto an iPad purchased in the USA?

    No problem whatsoever so long as you have a German store account which can only be registered using a German credit card which is registered to a German street address

  • TS1717 When I attempt to upload from a CD I get a box with a red X that says new itunes library.  What do I have to do to correct this.  I have never had a problem doing this.

    When I attempt to upload from a CD I get a box with a red X that says new itunes library.  What do I have to do to correct this?  I have never had a problem doing this.

    Hey the1stpotada,
    I would take a look at the recommended steps in this article and run through them to see if they help resolve the issue. Some of the steps may be slightly different depending on what operating system you're using:
    iTunes for Windows XP: "Disk is locked" or "iTunes folder cannot be found" when installing or opening iTunes
    http://support.apple.com/kb/HT1866
    Best,
    Delgadoh

  • I cannot access my linkedin profile anymore; it does not recognize that I have an account while in Explorer this problem does not occur.

    When I tried to open my LinkedIn-profile it does not connect me anymore to my profile. I cannot login with my e-mailaddress and password. LinkedIn does not recognize that I have an account. When I try the same with Explorer this problem does not occur and I can access my profile without any problem.

    GO to appleid.apple.com, click on manage my account and click on security. Answer your security questions to be able to edit your rescue email. If you forget the answers to your security questions, call apple support and request to be connected to a senior adviser or security who can reset your rescue email

Maybe you are looking for

  • Action Class

    My doubt is regarding the Action Class, now sun realesed the JSF1.0, and still do we have to return the Action class with the invoke() method (as in your example) from the action class?? or can we write a simple method in the bean class as follows pu

  • Crystal Report - multiple sales document types

    In XLR, I can easily drag 'DocNum', 'DocDate', 'Sales Doc Type' fields and specify the filter to show sales doc type equal to A/R invoice and A/R credit memo. It neatly shows various types of sales documents and display them in rows. In crystal, I ha

  • How to configure ADF application to use OAM Identity Assertion ? web.xml

    We have a web application developed using ADF (application development framework) and deployed on WebCenter 11.1.1.2 (weblogic 10.3.2) OID Authentication and OAM identity assertion is configured in WebLogic 10.3.2 . How to configure security in ADF a

  • Jquery accordion where we can open more than one region at the same time

    Hi, I am trying to create a jquery accordion where we can open more than one region at the same time. I saw a post from patrick to do accordion where we can select only one region at a time.I am using Apex 4.0 Using jQueryUI Accordion with APEX 4.0 A

  • Vim/gvim vs. self compiled vim

    I have set up a colorscheme in my vimrc and it worked in vim, but not in gvim... I also wanted to use python in vim so I build my own PKGBUILD and compiled vim by myself. Now the colorscheme is used in vim and gvim... is there a bug in the packages o