Problem with Local Interfaces (WSAD 5)

I built an Entity Bean with Local Interface and a Remote Interface (apperently they both have the same JNDI name in WSAD)
and when I look up for the name from other Session Bean (same EJB group) and I try to cast it to the local interface there is a classCastException.............
HELP ME

Nidhi
I had the same problems as you that went away. If you have both remote and local interfaces defined, and your remote inerface can be accessed via JNDI lookup using (say) "ejb/sessionbean/stateless/HelloHome", then you can access the local intercafe using "local:ejb/ejb/sessionbean/stateless/HelloHome".
The URL http://localhost:9080/UTC/initialize?port=2809 is very useful to browse the JNDI tree. Just expand "Local EJB beans" and position your mouse over the item of interest. The JNDI lookup name will echo in the bottom (solid) frame of the browser. The only problem is that the jndilookup name will appear (mistakenly) as local:/ejb/ejb/stateless......, just get rid of the first forward-slash to make it look like local:ejb/ejb/stateless....
Hope this helps
Somnath

Similar Messages

  • Problem with local interface

    Hi all,
    I have a problem with the local interface,
    after I change the Home and Local interface I get a message when compiling saying that the bean has to implement the inherited abstract method javax.ejb.EJBLocalObject.isIdentical (EJBLOcalObject) and the mothd isPrimaryKey()...why is that, do I need to implement these methods?
    Thanks,
    A.

    solved, wrong code

  • Problem with local interfaces using oc4j 9.0.4 standalone

    I am not able to get oc4j 9.0.4 standalone to use local interfaces. I belive that my configurations and code are correct. I am receiving javax.naming.NameNotFoundException
    whenever I attempt to lookup a local ejb
    lookup code
    Context context = new InitialContext();
    ApplicationBMPLocalHome appBMPLocalHome = (ApplicationBMPLocalHome)context.lookup("java:comp/env/ejb/ApplicationBMPLocalHome");
    part of ejb-jar.xml
    <ejb-local-ref>
    <ejb-ref-name>ejb/ApplicationBMPLocal</ejb-ref-name>
    <ejb-ref-type>Entity</ejb-ref-type>
    <local-home>JRun2.ApplicationBMPLocalHome</local-home>
    <local>JRun2.ApplicationBMPLocal</local>
    <ejb-link>ApplicationBMP</ejb-link>
    </ejb-local-ref>
    I know that local interfaces did not work in 9.0.3 oc4j, bu t I assume that this problem was fixed in 9.0.4. Correct me if that is not the case.

    In your code you look up ApplicationBMPLocalHome, but your <ejb-ref-name> is ApplicationBMPLocal.
    Try too change your lookup to
    (ApplicationBMPLocalHome)context.lookup("java:comp/env/ejb/ApplicationBMPLocal");
    /Fredrik

  • Deploying entity beans with Local interfaces on Jboss

    Hi, I'm trying to deploying a simple entity bean on Jboss. The EJB has been developed with Local Interfaces because then I want to access it with a session bean facade.
    I get the following error:
    <!-- ERROR BEGIN -->
    23:41:25,984 WARN [verifier] EJB spec violation:
    Bean : UsersEJB
    Section: 9.2.2
    Warning: The entity bean class must not be defined as abstract.
    23:41:25,984 WARN [verifier] EJB spec violation:
    Bean : UsersEJB
    Section: 9.4.7.1
    Warning: The primkey-field element must name a public field in the bean implemen
    tation class.
    <!-- ERROR END -->
    I'm following what is wrote in the Professional EJB editeb by wrox?
    Is it possible to deploy an entity bean alone with Local interfaces? Is there something I'm missing? It's true that I defined the implementation class as abstract, but because there are abstract getter/setter methods.
    Thanks for any help,
    Marco

    Greetings,
    Hi, I'm trying to deploying a simple entity bean on
    Jboss. The EJB has been developed with Local
    23:41:25,984 WARN [verifier] EJB spec violation:
    Bean : UsersEJB
    Section: 9.2.2
    Warning: The entity bean class must not be defined as abstract.
    23:41:25,984 WARN [verifier] EJB spec violation:
    Bean : UsersEJB
    Section: 9.4.7.1
    Warning: The primkey-field element must name a public field in
    the bean implementation class.What version of JBoss are you using? These errors indicate container compliance with EJB spec 1.1, not 2.0 to which your CMP beans are written. Download the latest JBoss release version - 3.2.1 - and you should not see this problem.
    Is it possible to deploy an entity bean alone with
    Local interfaces? Is there something I'm missing? It'sYes it is (no, you are not "missing something" ;). In fact, this is recommended practice in most cases under CMP 2.0 - CMR having been a major impetus to the development of Local interfaces in the specification. ;)
    true that I defined the implementation class as
    abstract, but because there are abstract getter/setter
    methods.No problems. You are "right on track" for CMP 2.0. :)
    Thanks for any help,
    MarcoRegards,
    Tony "Vee Schade" Cook

  • Problem accessing local interface methods

    Hi all,
    I have problems accessing local interfaces of entity beans in OC4J.
    My application consists of a session bean as a facade for two local entity beans.
    Everytime I try to execute methods on the local interfaces for the entity beans, I receive an exception: "java.lang.InternalError: Illegal removing from cache".
    When debugging the application everything seems to be fine until the method calls on the local interfaces (lookups, create methods etc OK). I can even see that the local interface method is acually executed when performing a System.out...! But the method doesn't return to the client (session bean). Instead I revieve the exception above.
    I found a similar problem on the orion mail archive (http://www.mail-archive.com/[email protected]/msg17754.html). But there they seem to have problem with removing beans. For me, removing beans works fine too.
    Any suggestions would be appreciated.
    /johan
    [email protected]

    Hi all,
    I have problems accessing local interfaces of entity beans in OC4J.
    My application consists of a session bean as a facade for two local entity beans.
    Everytime I try to execute methods on the local interfaces for the entity beans, I receive an exception: "java.lang.InternalError: Illegal removing from cache".
    When debugging the application everything seems to be fine until the method calls on the local interfaces (lookups, create methods etc OK). I can even see that the local interface method is acually executed when performing a System.out...! But the method doesn't return to the client (session bean). Instead I revieve the exception above.
    I found a similar problem on the orion mail archive (http://www.mail-archive.com/[email protected]/msg17754.html). But there they seem to have problem with removing beans. For me, removing beans works fine too.
    Any suggestions would be appreciated.
    /johan
    [email protected]

  • Problem with local editing after update to SP13

    Hallo,
    we have updated our Enterprise Portla 7.00 to SP13. Now many user have Problem with local editing. The error message is "The download of the document fail".
    I know that every PC needs the "Docservice" Active X component installed. The "Docservice" is also installed.
    At my PC theres only this problem with "html" documents.
    What could be the problem. ?
    Please help.
    Many thanks
    Ronald

    We found that there is a problem with the Docservice Active X Component.
    If we work in a deeper folder there is a problem with the length of the url. I changed the TEMP Setting
    "Setting a different TEMP directory:                                     
    In cases that it is problematic to use the standard %TEMP% directory,   
    setting the environment variable SAPKM_USER_TEMP pinpointing to a       
    corresponding directory path (e.g.                                      
    X:\SHARES\USERS\xxx\CheckedOutDocuments) will be also supported. If the 
    access to that directory fails the standard %TEMP% directory will be    
    used as fallback."
    I used "C:\TEMP" and now it works.......  but this cant be the solution....
    thans Ronald

  • Problem with Local Intranet in IE 11

    Hi
    We are experiencing a strange problem with Local Intranet in IE 11. We have a public company site which has been put into the Local Intranet site. The site contains content from 3 internal sites, which of course are part of Local Intranet per default.
    Sometimes when I refresh the public company site I receive a security warning because IE says it's between zones.
    Why? :-)
    Might this be an issue because the 3 internal sites aren't hardcoded into Local Intranet through policy?
    Lasse
    /Lasse

    Hi Lasse,
    I would like to know if this issue happened in all user's IE browser.
    Meanwhile,please post the screenshot here
    so that we can help you analyze the issue.
    Regards,
    Kelvin Xu
    TechNet Community Support

  • Problem with Local DCs View in NWDS 7.0

    Hi!
    I' ve got a problem with Local DCs view in NWDS: None of the standard-DCs (BI_MMR, BI_UDI, CAF a.s.o.) can be expanded and show their content. I already reinstalled IDE, but without success.
    Has anybody got an idea?
    Thanks a lot in advance!
    Regards,
    Thomas

    Hi,
    This is due to some files missed in Local development.
    Let me know Are you able to see <b>.confdef, .syncdb</b> and <b>buildvariant.config </b> files under Local Developement.
    If you are not able to see, UnInstall your NWDS, Remove Local developement under .dtc folder, then Re-Install NWDS.
    Hope this will help you.
    Thanks & Regards
    Vasundhara

  • Problem with Local DCs View in NWDS

    Hi!
    I' ve got a problem with Local DCs view in NWDS: None of the standard-DCs (BI_MMR, BI_UDI, CAF a.s.o.) can be expanded and show their content. I already reinstalled IDE, but without success.
    Has anybody got an idea?
    Thanks a lot in advance!
    Regards,
    Thomas

    Your setup might be incomplete: The SAR file extraction creates very long paths on your filesystem. If you do not extract to the rootfolder of disk, chances are the paths become too long and the installation exits, without any warning.
    If this is not the cause of your problem, check if the .dcdef files for the local DCs (plugin com.sap.tc.ap if I'm correct) were copied during installation.

  • Problem with mac interface

    Hi !
    I just installed Dreamweaver CS4 on my new Macbook Pro. I used to use Dreamweaver CS4 on Windows. But, I have a problem with the interface on my macbook : when dreamweaver is running, I can see my desktop : there is no background like in a MDI application (on windows). To illustrate my problem, I took two screenshots :
    on mac :
    and on windows :
    So, I would like to know how to have the same interface with Mac OS X than with Windows.
    Thanx for your help and sorry for my english but i'm french.

    Click the green zoom (+) button in the top-left corner of the window to switch between a larger and smaller window size.
    Depending on the active application it either fills the entire screen or zooms to the size of the last largest size of the window that you set yourself by dragging bottom righthand corner to desired size.
    Photoshop has various ways to hide the Desktop. Either by using the Application frame (which doesn't neccessarily hide the entire Desktop) or by pressing the key F. Wanted by PC users but usually not by Mac users. (I would personaly never use it as it obscures the Desktop so you cannot easily reach other applications and documents by just clicking them to call them into the front and get active).
    DW doesn't have an application frame but it is easy enough to fill the entire screen with the active window, particularly if you open up a few panels and dock them to each other and use Split screen view with code on one size and design on the other, then place various bars at top and bottom. When you have organized it to your liking, save it as a Workspace (Window/Workspace Layout/New Workspace) and you have it handy for future use.
    Learn how to use the windows and workspaces in an efficient way and one of these days you might get used to it...

  • Do I need to Create Primary Key Class for Entity beans with Local interface

    Do I need to Create Primary Key Class for Entity beans with Local interface?
    I have created my entity bean with the wizard in Sun One Studio and it does not create a primary key class for you.
    I thought that the primary key class was required. My key is made up of only one field.
    Anyone know the answer.
    Jim

    u dont need to create a primary key class for a entity bean.if ur table's primary key feild(int ,float) is a built in or primitive data type,then u dont need one.But if ur table has a primary key field which is non primitive (for example StudentID,ItemID etc)then u have to create a primary key class.
    hope this helps :-)

  • Problem with locale

    I have a problem with locale.
    When I put the locale command in the console.
    This is the output:
    locale: Cannot set LC_CTYPE to default locale: No such file or directory
    locale: Cannot set LC_MESSAGES to default locale: No such file or directory
    locale: Cannot set LC_ALL to default locale: No such file or directory
    LANG=en
    LC_CTYPE="en"
    LC_NUMERIC="en"
    LC_TIME="en"
    LC_COLLATE="en"
    LC_MONETARY="en"
    LC_MESSAGES="en"
    LC_PAPER="en"
    LC_NAME="en"
    LC_ADDRESS="en"
    LC_TELEPHONE="en"
    LC_MEASUREMENT="en"
    LC_IDENTIFICATION="en"
    LC_ALL=
    Whats the problem?

    Here's mine, just for comparison:
    locale.gen
    en_GB.UTF-8 UTF-8
    en_GB ISO-8859-1
    en_US.UTF-8 UTF-8
    locale.conf
    LANG=en_GB.UTF-8 UTF-8
    Output of locale:
    LANG=en_GB.UTF-8
    LC_CTYPE="en_GB.UTF-8"
    LC_NUMERIC="en_GB.UTF-8"
    LC_TIME="en_GB.UTF-8"
    LC_COLLATE="en_GB.UTF-8"
    LC_MONETARY="en_GB.UTF-8"
    LC_MESSAGES="en_GB.UTF-8"
    LC_PAPER="en_GB.UTF-8"
    LC_NAME="en_GB.UTF-8"
    LC_ADDRESS="en_GB.UTF-8"
    LC_TELEPHONE="en_GB.UTF-8"
    LC_MEASUREMENT="en_GB.UTF-8"
    LC_IDENTIFICATION="en_GB.UTF-8"
    LC_ALL=
    Have you also run the command sudo locale-gen?
    Last edited by clfarron4 (2013-09-04 00:04:26)

  • Problems deploying entity beans with local interfaces on Jboss?

    I'm trying to deploy a simple entity bean using local interfaces on Jboss 3.2.1 and I obtain the following exception:
    19:08:51,875 WARN [verifier] EJB spec violation:
    Bean : UsersEJB
    Section: 9.2.2
    Warning: The entity bean class must not be defined as abstract.
    19:08:51,875 WARN [verifier] EJB spec violation:
    Bean : UsersEJB
    Section: 9.4.7.1
    Warning: The primkey-field element must name a public field in the bean implemen
    tation class.
    Any idea?
    Thanks,
    Marco

    I guess you are missing <cmp-version>2.x</cmp-version> for your first warning and <primkey-field>primary key field </primkey-field> for you second warning in your ejb-jar.xml

  • ClassCastException with Local Interfaces

    Hi,
    My environment is
    WLS6.1SP3 (JDK131)
    DB2 7.1
    Windows 2000
    I am trying to access an entity bean through it's local interface from a stateless session bean. I can see the jndi tree contains both remote and local names. I get the correct local home object from the lookup, howevere when I cast it to LocalHome, I get ClassCastException.
    Any help would be greatly appreciated.
    Thanks.
    zahid

    Thanks for your comments. In case of clustered
    anvironment doesn't each node has it's own startup
    script which could contain these local inerfaces ?Yes, it has , but again if you deploy ear to clustered environment everything will get propagated to participating nodes.
    If you put jar with interfaces in classpath of each node you will have hard time to do hot deployment ( you can't ) and to keep things in sync.
    >
    I tried ear and it worked fine too.
    However I still got the problem as it worked on
    windows 2000 but doesn't work on aix where we want to
    deploy it.if it is same setting as win box it shouldn't have problem

  • Printing Problem with Local printer

    Hi Experts,
    My clients has installed new HP LaserJet p2015dn printer in SAP.
    I have used the  font "HELVE" in my sap script, when i take the printout with HP leser jet 1022N it gives correct printout. where as when i take the printout with local (HP LaserJet p2015dn) Printer it give the printout in unreadbale format (no spaces between each alphabet)
    I can change the font and solve this proble but i have used same font in many forms and the client wish to take the printout with newly installed printer only.
    Please help.
    Thanks
    Ganesh

    dear ganesh ,
        whn client installed new Hp lajer jet  printer , for that client dowload some text file , is is not download in computer thats y  smartforms not coming properly
    so pls contact client administrator and download all this files which is supported that new printer . thn problem will solve
    regards ,
    nikhil.

Maybe you are looking for

  • Cannot delete file error -43 file not found

    I cannot find and/or delete a file. The error is -43 file not found. It prevents me form making a backup with carbon copy. The file was in applications / illustrator / legal / strangecharacters.html (now in trash) and size 112kb. I am the admin of th

  • IPod: Can I designate specific playlists I want to play in order/shuffle?

    With either the newer or older version of the iPod, is there a way I can designate a specific playlist to play in order or shuffle? I know with iTunes you can specify what playlists you can shuffle and ones that you don't. It's the iPod that I'm inte

  • Hi i just updated to 8.3 on my 6 but i cant find carplay in settings

    I just updated the 8.3 on my iphone 6 but i cant see carplay in my settings plz help me with this

  • Setting up EWA Alert configuration in Solman for Sattelite system

    I have followed the sap tutor for setting up EWA in solman which i got from market place, I have done the configuration step by step accordingly but when i see in DSWP i see Red flagged report that it throwed some error and not able to generate repor

  • Jaxb and container elements

    Hi, Consider this XML: <container> <items> <item/> <item/> <item/> <!-- ... --> </items> </container> as of now, to get a list of items I need to make two calls: the first to get the object corresponding to the <items> element, and the second to get