Trying to write a basic EJB app w/ JPA and remote client

I'm trying to put together a simple sample app that shows a simple stateless session bean that grabs a Java EE 5 entity from the DB and sends it to the remote caller. I have an entity class called Person that simply has getId() and getName() methods.
I'm trying to get a reference to the session bean (using InitialContext.lookup()), which works. Then I try to call a method on that bean, which works as long as the type being returned is not a Person object. I've had the bean always return "Hello" and it works just fine.
Here's the bean code.
@Stateless(mappedName="RolodexSession")
public class RolodexSessionBean implements RolodexSessionRemote {
    @PersistenceContext
    private EntityManager em;
    /** Creates a new instance of RolodexSessionBean */
    public RolodexSessionBean() {
    public Object getPersonByName(String name)
        Query q = em.createQuery("select object(o) from Person o where o.name=:n");
        q.setParameter("n",name);
        List results = q.getResultList();
        if (results.isEmpty())
            return "emtpy";
        // this would work just fine...
        // return "Some string";
        // but this doesn't work at all
        return results.get(0);
}Here's the client code...
public class Main {
    @EJB
    protected RolodexSessionRemote rolodexSession;
    /** Creates a new instance of Main */
    public Main() throws NamingException {
        Context ctx = new InitialContext();
        rolodexSession = (RolodexSessionRemote)ctx.lookup("RolodexSession");
        Object result = rolodexSession.getPersonByName("John Smith");
        System.out.println(result);
     * @param args the command line arguments
    public static void main(String[] args) throws NamingException {
        Main m = new Main();
}I made sure to put a Person object into my database with the name "John Smith".
The error I keep getting is...
Dec 7, 2006 4:40:29 PM com.sun.corba.ee.impl.encoding.CDRInputStream_1_0 read_value
WARNING: "IOP00810257: (MARSHAL) Could not find class"
org.omg.CORBA.MARSHAL:   vmcid: SUN  minor code: 257 completed: Maybe
        at com.sun.corba.ee.impl.logging.ORBUtilSystemException.couldNotFindClass(ORBUtilSystemException.java:8309)
        at com.sun.corba.ee.impl.encoding.CDRInputStream_1_0.read_value(CDRInputStream_1_0.java:984)
        at com.sun.corba.ee.impl.encoding.CDRInputStream.read_value(CDRInputStream.java:259)
        at com.sun.corba.ee.impl.io.IIOPInputStream.inputObjectField(IIOPInputStream.java:1987)
        at com.sun.corba.ee.impl.io.IIOPInputStream.inputClassFields(IIOPInputStream.java:2211)
        at com.sun.corba.ee.impl.io.IIOPInputStream.inputObject(IIOPInputStream.java:1219)
        at com.sun.corba.ee.impl.io.IIOPInputStream.simpleReadObject(IIOPInputStream.java:398)
        at com.sun.corba.ee.impl.io.ValueHandlerImpl.readValueInternal(ValueHandlerImpl.java:329)
        at com.sun.corba.ee.impl.io.ValueHandlerImpl.readValue(ValueHandlerImpl.java:295)
        at com.sun.corba.ee.impl.encoding.CDRInputStream_1_0.read_value(CDRInputStream_1_0.java:1005)
        at com.sun.corba.ee.impl.encoding.CDRInputStream_1_0.read_value(CDRInputStream_1_0.java:850)
        at com.sun.corba.ee.impl.encoding.CDRInputStream.read_value(CDRInputStream.java:255)
        at com.sun.corba.ee.impl.corba.TCUtility.unmarshalIn(TCUtility.java:269)
        at com.sun.corba.ee.impl.corba.AnyImpl.read_value(AnyImpl.java:558)
        at com.sun.corba.ee.impl.encoding.CDRInputStream_1_0.read_any(CDRInputStream_1_0.java:710)
        at com.sun.corba.ee.impl.encoding.CDRInputStream.read_any(CDRInputStream.java:225)
        at com.sun.corba.ee.impl.javax.rmi.CORBA.Util.readAny(Util.java:449)
        at com.sun.corba.ee.impl.presentation.rmi.DynamicMethodMarshallerImpl$10.read(DynamicMethodMarshallerImpl.java:251)
        at com.sun.corba.ee.impl.presentation.rmi.DynamicMethodMarshallerImpl.readResult(DynamicMethodMarshallerImpl.java:424)
        at com.sun.corba.ee.impl.presentation.rmi.StubInvocationHandlerImpl.privateInvoke(StubInvocationHandlerImpl.java:162)
        at com.sun.corba.ee.impl.presentation.rmi.StubInvocationHandlerImpl.invoke(StubInvocationHandlerImpl.java:119)
        at com.sun.corba.ee.impl.presentation.rmi.bcel.BCELStubBase.invoke(BCELStubBase.java:197)
        at session.__RolodexSessionRemote_Remote_DynamicStub.getPersonByName(__RolodexSessionRemote_Remote_DynamicStub.java)
        at session._RolodexSessionRemote_Wrapper.getPersonByName(session._RolodexSessionRemote_Wrapper.java)
        at clientapp.Main.<init>(Main.java:33)
        at clientapp.Main.main(Main.java:41)I'm running this on the Sun Java System App Server 9.0.
Any ideas?

I've narrowed down the issue. The Person object that I'm trying to send back has a one-to-many relationship with Address objects. I have this all setup correctly, I think. Here's the code from Person.java that establishes that relationship.
     * Holds value of property addresses.
    @OneToMany(mappedBy = "person")
    private List<Address> addresses;
     * Getter for property addresses.
     * @return Value of property addresses.
    public List<Address> getAddresses() {
        return this.addresses;
     * Setter for property addresses.
     * @param addresses New value of property addresses.
    public void setAddresses(List<Address> addresses) {
        this.addresses = addresses;
    }In Address.java I have the other side of the relationship defined (again, correctly, I think).
IF I COMMENT OUT THIS RELATIONSHIP EVERYTHING WORKS! So, the problem seems to be related to using foreign key associations. Is there something I'm missing here? Perhaps it's related to lazy-loading of foreign keys?

Similar Messages

  • Problems running a particular app via ssh and remote X

    Got a few apps (including things like Matlab etc.) running off one of our Linux application servers.
    Am now trying to run Stata (using xstata-se) via SGD and it will simply not work.
    It works perfectly if you manually log in to the application server from a terminal with ssh -X and run the executable, but when using SGD, it connects, finds the application, says it's starting it, but then the connection to the Linux server is simply closed. The application session (with pause/play/X buttons etc.) remains even though an X window never appears.
    I've duplicated the Matlab application that works perfectly and simply changed the executable name, so nothing is configured differently but it still refuses to work, instead simply closing the connection.
    The /opt/tarantella/var/log/webtop.log on the specific SGD server shows that the app starts correctly, yet no X window ever appears - all other X apps work fine...
    I've found that there are errors logged in /opt/tarantella/var/log/wm_error.log with:
    X connection to unix:11.0 broken (explicit kill or server shutdown).
    Any ideas?
    Edited by: Hutch on 23-Feb-2011 07:28

    I was having the same issue with Eclipse. If I launched an xterm and then ran eclipse it worked fine but as a published application, it would die after showing the Eclipse splash screen for a second. Adding the ampersand to the end of the launch command fixed it. Strange.
    Thanks for following up your post with the fix. I don't think backgrounding the process from the SGD launcher would have ever occurred to me.

  • What does it mean "Will Install" when I tried to install/sync an iOS app in iTunes and how long is the wait until the app is installed/Sync on my iOS device

    I am testing an iOS app developed by my team.  When I tried to update the new version, I kept receiving the "Will Install" status.  What do I have to do to get it installed as soon as I sync the device?  If I have to wait for whatever reasons, how long do I have to wait for the status to change.  I am using iTunes 11.0.1 (12).  Thanks

    I found that I had "restrictions" turned on under general settings. Turned them off, rebooted the iPad and it was able to install apps from iTunes.
    Hope this helps you.

  • I just made my apple account today and when i tried hen i to install a app my email and my password didn't work it just said like '' this apple id has not yet been used before in itunes store''

    i just made my apple id today abut when i tried to install a app from my iphone it didn't work it just said  '' this apple id has not yet been used before in itunes store'' i hope u can help me ...thx

    If you haven't already created an account in the app store:
    Scroll down to the bottom of the FEATURED page touch APPLE ID and CREATE ACCOUNT
    If you have already created an account in the app store:
    First of all, double check you're spelling the password right.
    If you're sure it's not the password, scroll down to the bottom of the FEATURED page in the App Store on your iPhone, touch APPLE ID: and then VIEW ACCOUNT and make sure you have the correct card details and billing address on your account.
    Also, connect your iPhone to your computer, then log in to the iTunes store in iTunes on your computer and check all your details. After you've updated your details sync your iPhone.
    If you still can't get it to work, book an appointment with a genius at your nearest Apple Store. They should be able to solve whatever the problem is.

  • I'm trying to. It something on app world. And I just got a new iPhone and I'm using the same Apple ID and I put In the right answers for security questions and I KNOW they r right. What do I do?!?

    Please help!

    You must contact iTunes Store Support for that problem.
    Do that by starting here: http://www.apple.com/support/
    Navigate the pages as follows:
    Under "Contact Us" click the blue "Contact Support" link
    Click the blue "Get Started" button
    Click "More Products & Services"
    Click "Apple ID"
    Click "iTunes Store, App Store or Mac App Store"
    Click "Forgotten Apple ID security questions"
    Click "Continue"
    Choose one of the support options that appear.

  • I just bought 15 GB of storage on my iPhone 4. It says I have 11.5 GB left. I tried to download pandora on the app store. And it said I didn't have enough storage. I just bought more storage. I only have 6 apps on my phone because of storage.

    I am very upset about this. I have spent forever trying to figure this out. I can't even take anymore pictures.

    You didn't buy more storage for your iPhone.  You bought more iCloud backup storage.
    Delete some content from your device (such as photos or videos) to make room.

  • Speed Dial continously tries to load in Firefox Home App for iPhone and what should I do?

    Trying to sync desktop (laptop) to Firefox Home on my iPhone. Bookmarks and history have synced rather quickly. I have Speed Dial on my desktop and it is trying to sync up to Firefox Home and it has been trying to do so for about 45 min to an hour. Please HELP ME!!!!!!!

    Wow.  Anymore it's just a conversation with myself in this forum.  Not sure what the problem is.
    Pretty simple symptom.  Playing a video in a view.  If I pop the view the video should stop playing because the view should be destroyed.  But it keeps playing.  How do I not have that happen?

  • EJB 3.0 Session Bean Remote Client

    Hi,
    I am planning to migrate my EJB 2.1 to EJB 3.0. My old session bean is accessed by a remote java client. I just have to include this piece of code:
    Hashtable props = new  Hashtable();
    props.put("java.naming.factory.initial", com.sun.jndi.cosnaming.CNCtxFactory");
    props.put("java.naming.provider.url", "iiop://" + host_ + ":" + port_);I also have to generate rmistubs for the ejb. I have deployed my EJB 3.0 in a Sun Appserver, checking the "Generate RMIStubs" box but I couldn't find the client jar file. In EJB 3.0, should I use the same approach as the 2.1? Or should I use the @EJB annotation? How will I access a remote EJB 3.0 using the @EJB annotation? Thanks in advance.
    Regards,
    Andrew
    Message was edited by:
    bashdrew

    EJB 3.0 remote business interfaces are do not have the same interoperability requirements as the EJB 2.x Home/Remote view. If you need access to your EJB 3.0 bean from a legacy client, you can add a 2.x-style Home/Remote view to your bean by either using the <home>/<remote> elements in ejb-jar.xml or the @RemoteHome annotation. Note that the 2.x-style Home/Remote interfaces are completely separate from the 3.0 Remote Business interface.
    Also, in SUN's implementation if your EJB 3.0 bean has both a 3.0 Remote business and a 2.x Home/Remote interface there is no default global JNDI name for the bean. You'll need to assign it explicitly using the @Stateless/@Stateful mappedName() attribute or sun-ejb-jar.xml.
    --ken                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Newbie trying to write toplink hello world program

    I am trying to write my first toplink app using POJOs, and I'm having a hard time finding a sample toplink application. In this case, I'd like to run outside of a J2EE container with a stand-alone java application to do some basic CRUD operations. I've already run the mapping workbench on my Java classes and generated the deployment file and sessions.xml file. Where (Oracle docs) can I find source code for a simple stand-alone java main() app that uses the toplink API?
    Thanks in advance.

    TopLink ships with many examples - complete with runtime and workbench componants - in 9.0.4.X Find them here: <TopLink_install_dir>\examples\
    For non app server simple CRUD examples, I suggest you look here first:
    <TopLink_install_dir>\examples\foundation\threetier

  • Trying to write an Automator program to find files with same time created and change file names to matching source folder names

    I am failrly green when it comes to automator.
    I am trying to write an Automator program:
    Not sure where to post this
    trying to write an Automator program to find files and alter their names
    I have a source folder with correct named master files in it.
    eg. A0001_1234.mpeg
    time created 14:02:03
    date 07/07/2012
    Another folder where there will be copies of the master files in a different format with different names but created at the same time as a file in the source directory.
    they are created with a seperate device but they are
    A0000001.mp4
    time created 14:02:03
    date 07/07/2012
    I need it to then take the name from the source fies and apply the correct name to the matching file based on the time it was created.
    I can't seem to find actions in automator that reference time crated.
    Is this something I will be able to Do in automator?
    Any help would be great
    Thanks
    R

    Hi,
    It's impossible to do this without any script in Automator.
    Use this AppleScript script :
    set source to choose folder with prompt "Select the source folder"
    set anotherfolder to choose folder with prompt "Choose the another folder"
    tell application "Finder"
        repeat with tfile in (get files of source)
            set cDate to creation date of tfile
            set findFiles to (files of anotherfolder whose creation date is cDate)
            if findFiles is not {} then
                set tName to name of tfile
                set name of item 1 of findFiles to tName
            end if
        end repeat
    end tell

  • App Server 8.1  remote acess

    Hi,
    I am trying to connect to a Sun App Server from the JMS client application: SimpleProducer from chapter 33 of http://java.sun.com/j2ee/1.4/docs/tutorial/doc/index.html
    It works fine when run on the same machine where the server is running. But when I try it from a remote machine, I get an infinite chain of error messages beginning with:
    Destination name is jms/Queue
    May 15, 2003 6:42:02 PM com.sun.corba.ee.spi.logging.LogWrapperBase doLog
    INFO: "IOP00710299: (INTERNAL) Successfully created IIOP listener on
    the specified host/port: all interfaces/34705"
    May 15, 2003 6:42:03 PM
    com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl <init>
    WARNING: "IOP00410201: (COMM_FAILURE) Connection failure: socketType:
    IIOP_CLEAR_TEXT; hostname: 127.0.0.1; port: 3700"
    org.omg.CORBA.COMM_FAILURE: vmcid: SUN minor code: 201 completed: No
    at com.sun.corba.ee.impl.logging.ORBUtilSystemException.connectFailure(ORBUtilSystemException.java:2257)
    When the server is local I run this command from the simple/build directory:
    #java SimpleProducer jms/Queue
    and it works successfully.
    From a remote machine I run the below command from the simple/build
    directory:
    #java -Dorg.omg.CORBA.ORBInitialHost=myservername SimpleProducer
    jms/Queue
    Sounds that at some point the application is trying to connect to the localhost. Specifying a properties file as below does not help either.
    --- jndi.properties ---
    java.naming.factory.initial=com.sun.enterprise.naming.SerialInitContextFactory
    java.naming.provider.url=iiop://myservername:3700java.naming.factory.state=com.sun.corba.ee.impl.presentation.rmi.JNDIStateFactoryImpl
    Running those applications to access a local server works fine on both machines. I want to have a client accessing the server remotely. Do I need to edit/compile source code of those applications in some other way? Isn't specifying a remote server from command line enough? I have tried any suggestions found on the Internet or anything coming to my mind but no success so far. I appreciate any clues.
    thanks,
    Farshad

    Apparently, the system tries to connect to the localhost at some point! I changed the jndi.properties to:
    java.naming.factory.initial=com.sun.enterprise.naming.SerialInitContextFactory
    org.omg.CORBA.ORBInitialHost=myservername
    org.omg.CORBA.ORBInitialPort=3700
    java.naming.provider.url=iiop://myservername:3700
    Now, executing
    #java -Djms.properties=jndi.properties SimpleProducer jms/Queue
    gives the below message while if I change "myservername" to "localhost" and run an App Server locally it works quite fine. What am I missing?! Isn't it enough to have a remote server name in that jndi.properties to make the same application work with a remote server? I appreciate any help.
    - Farshad
    ERROR MESSAGE:
    Destination name is jms/Queue
    May 15, 2003 7:56:10 PM com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl <init>
    WARNING: "IOP00410201: (COMM_FAILURE) Connection failure: socketType: IIOP_CLEAR_TEXT; hostname: localhost; port: 3700"
    org.omg.CORBA.COMM_FAILURE: vmcid: SUN minor code: 201 completed: No
    at com.sun.corba.ee.impl.logging.ORBUtilSystemException.connectFailure(ORBUtilSystemException.java:2257)
    at com.sun.corba.ee.impl.logging.ORBUtilSystemException.connectFailure(ORBUtilSystemException.java:2278)
    at com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.<init>(SocketOrChannelConnectionImpl.java:208)
    at com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.<init>(SocketOrChannelConnectionImpl.java:221)
    at com.sun.corba.ee.impl.transport.SocketOrChannelContactInfoImpl.createConnection(SocketOrChannelContactInfoImpl.java:104)
    at com.sun.corba.ee.impl.protocol.CorbaClientRequestDispatcherImpl.beginRequest(CorbaClientRequestDispatcherImpl.java:153)
    at com.sun.corba.ee.impl.protocol.CorbaClientDelegateImpl.request(CorbaClientDelegateImpl.java:127)
    at com.sun.corba.ee.impl.protocol.CorbaClientDelegateImpl.is_a(CorbaClientDelegateImpl.java:244)
    at org.omg.CORBA.portable.ObjectImpl._is_a(ObjectImpl.java:112)
    at org.omg.CosNaming.NamingContextHelper.narrow(NamingContextHelper.java:69)
    at com.sun.enterprise.naming.SerialContext.narrowProvider(SerialContext.java:89)
    at com.sun.enterprise.naming.SerialContext.getProvider(SerialContext.java:128)
    at com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:290)
    at javax.naming.InitialContext.lookup(InitialContext.java:347)
    at SimpleProducer.main(Unknown Source)
    Caused by: java.lang.RuntimeException: java.net.ConnectException: Connection refused
    at com.sun.enterprise.iiop.IIOPSSLSocketFactory.createSocket(IIOPSSLSocketFactory.java:336)
    at com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.<init>(SocketOrChannelConnectionImpl.java:191)
    ... 12 more
    Caused by: java.net.ConnectException: Connection refused
    at sun.nio.ch.Net.connect(Native Method)
    at sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:460)
    at java.nio.channels.SocketChannel.open(SocketChannel.java:146)
    at com.sun.enterprise.iiop.IIOPSSLSocketFactory.createSocket(IIOPSSLSocketFactory.java:320)
    ... 13 more
    JNDI API lookup failed: javax.naming.CommunicationException: Can't find SerialContextProvider [Root exception is org.omg.CORBA.COMM_FAILURE:   vmcid: SUN  minor code: 201  completed: No]
    javax.naming.CommunicationException: Can't find SerialContextProvider [Root exception is org.omg.CORBA.COMM_FAILURE:   vmcid: SUN  minor code: 201  completed: No] at com.sun.enterprise.naming.SerialContext.getProvider(SerialContext.java:133)
    at com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:290)
    at javax.naming.InitialContext.lookup(InitialContext.java:347)
    at SimpleProducer.main(Unknown Source)
    Caused by: org.omg.CORBA.COMM_FAILURE: vmcid: SUN minor code: 201 completed: No
    at com.sun.corba.ee.impl.logging.ORBUtilSystemException.connectFailure(ORBUtilSystemException.java:2257)
    at com.sun.corba.ee.impl.logging.ORBUtilSystemException.connectFailure(ORBUtilSystemException.java:2278)
    at com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.<init>(SocketOrChannelConnectionImpl.java:208)
    at com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.<init>(SocketOrChannelConnectionImpl.java:221)
    at com.sun.corba.ee.impl.transport.SocketOrChannelContactInfoImpl.createConnection(SocketOrChannelContactInfoImpl.java:104)
    at com.sun.corba.ee.impl.protocol.CorbaClientRequestDispatcherImpl.beginRequest(CorbaClientRequestDispatcherImpl.java:153)
    at com.sun.corba.ee.impl.protocol.CorbaClientDelegateImpl.request(CorbaClientDelegateImpl.java:127)
    at com.sun.corba.ee.impl.protocol.CorbaClientDelegateImpl.is_a(CorbaClientDelegateImpl.java:244)
    at org.omg.CORBA.portable.ObjectImpl._is_a(ObjectImpl.java:112)
    at org.omg.CosNaming.NamingContextHelper.narrow(NamingContextHelper.java:69)
    at com.sun.enterprise.naming.SerialContext.narrowProvider(SerialContext.java:89)
    at com.sun.enterprise.naming.SerialContext.getProvider(SerialContext.java:128)
    ... 3 more
    Caused by: java.lang.RuntimeException: java.net.ConnectException: Connection refused
    at com.sun.enterprise.iiop.IIOPSSLSocketFactory.createSocket(IIOPSSLSocketFactory.java:336)
    at com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.<init>(SocketOrChannelConnectionImpl.java:191)
    ... 12 more
    Caused by: java.net.ConnectException: Connection refused
    at sun.nio.ch.Net.connect(Native Method)
    at sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:460)
    at java.nio.channels.SocketChannel.open(SocketChannel.java:146)
    at com.sun.enterprise.iiop.IIOPSSLSocketFactory.createSocket(IIOPSSLSocketFactory.java:320)
    ... 13 more
    ---

  • Not showing image in basic copy gif image icon and place on html page

    Trying to do a basic copy gif image icon and place it on a basic html page.
    The image shows up in my local page and shows on remote side but when I go to view in browser it does not show as a image. It shows the border but no image.
    The directions were (working with windows xp and IE8)
    Download the image to your C:\temp folder.
    4. Copy the gif file from your C:\temp folder and paste it in the same folder where your .html or .asp file is.
    I copied the image with right click save as in many different areas of computer. I even put on desktop.
    I add image and it shows on the site I am working in but when putting to remote side it does not view as an image on the browser.
    I have cleared cashe as well as pressed cntrl/refresh and still nothing.
    Other images work and show.
    on-line-vacations.com
    Thanks!

    Basic assumptions:
    You have Defined a site.
    All files reside within the defined site (including image files)
    All files use the appropriate file extensions, for example, image.gif
    You have saved and uploaded all site files to your server.
    You are EXACTLY naming the source image (no errant capital letters) in the link.
    If your other images are linking properly and showing, delete this image and insert it again (or re-link it to the image file within your site structure).
    Z

  • Looking up Identical EJB both locally and remotely

    prior to posting this request, i have read and
    attempted multiple solutions to this problem
    suggested in the forums to no avail.
    if i have the same EAR, which contains both
    an EJB Component and a WAR, deployed to multiple
    servers, is it possible to look up an EJB both
    locally and remotely?
    for instance, on the server performing the lookup,
    EJB A is deployed. i successfully look it up
    via the following call:
    InitialContext context = new InitialContext();
    Object ref = context.lookup(name);
    return javax.rmi.PortableRemoteObject.narrow("EJBA", EJBAClass.class);
    subsequently, i try to lookup the same ejb
    on a remote server by performing the following
    calls:
    Properties environment = new Properties();
    environment.put("java.naming.factory.initial", "com.evermind.server.rmi.RMIInitialContextFactory");
    environment.put("java.naming.provider.url",
         "ormi://remoteserver:23791/application");
    environment.put( "java.naming.security.principal", "user");
    environment.put( "java.naming.security.credential", "password");
    jndiContext = new InitialContext(environment);
    Object ref = context.lookup(name);
    return javax.rmi.PortableRemoteObject.narrow("EJBA", EJBAClass.class);
    however, i either receive an authentican exception, saying "user"
    doesnt have access to allication "application", or a null pointer
    exception int the RMIInitialContext.
    on my local application, i have defined my ejbs in the web.xml
    as defined by the spec. the ejb component is marked as remote="false"
    in my orion-application.xml as well.
    the version of oc4j is 1.0.2.2.1.
    any directinon on this would be greatly appreciated.
    thanks,
    ted rice

    as a follow up to my own question, using a application
    client, outisde of the web application i can
    successfully look up my ejbs locally and remotely.
    however, from within the web application, i constantly
    receive a ClassCastException.
    if no one can tell me how to resolve this, could someone
    let me know if they have in fact looked up the
    same EJB, both deployed locally and remotely, from the
    same web application.
    thanks,
    ted

  • WIN7 x64 Home Basic, 0x80070013 when trying to write or delete files. Disk is write protected.

    Hi,
    My SD card reader is not able to write or delete and format sd cards.
    WIN7 x64 Home Basic, 0x80070013 when I trying to write or delete files. When I trying to format I can see a message that disk is write protected. 
    The card is not locked, it's work in Lenovo Idea Pad s10 without any problem, It's also work in my Pentax camera.
    I'm almost sure that the problem is software, but can't find solution.
    Could Any one help me please?
    Laptop is new, 8 days in use. 

    I have network shutdown 2.0.1 installed and the pcns process normally would be abend in 1 or 2 minute's time. What could be the problem ? Consider to upgrade the network shutdown to 2.2.1 version. Could the problem be resolved in new version ? Any precaution needs to be taken when installing the new version ?
    Terence.

  • I have Snow Leopard ver.10.6.8 and I have uninstalled iwork, because I don't have the equation writer on pages. So I re install it from the iwork's disk and when I tried to open any of the Apps, the system told me "  check with the developer  to make sure

    I have Snow Leopard ver.10.6.8 and I have uninstalled iwork, because I don't have the equation writer on pages. So I re install it from the iwork's disk and when I tried to open any of the Apps, the system told me "  check with the developer  to make sure Keynote (for example) works with this version of Mac OS X "
    iwork was running in my computer just a few moment ago !
    Can anyone tell me what can I do? thanks

    So I re install it from the iwork's disk
    Did you repair permissions and restarted your computer after the installation?  Check SU? 

Maybe you are looking for

  • Unable to make microphone to work on NVIDIA MCP55 onboard sound card

    Hello. Some time ago, I bought a nice HP xw9400 Workstation (with Dual Core AMD Opteron  2216) from Germany. Despite it's starting to become old by today's standards for some stuff like gaming, it's still quite okay to use and the SAS HDD makes it bo

  • SMB networking issue in 10.5.2 - detailed analysis and cry for help

    I am a computer technician for a medium-sized company. Our setup in the company is mainly Windows-based, using Active Directory and Windows Server 2003 on our file servers, with a fully Gigabit network. We also have about a dozen Macs, mostly Mac Pro

  • Monitors going dark, then back on

    I have two Dell 24" monitors connected to my Mini. Occasionally both monitors (sometimes just one) will go dark, remain dark for 3-4 seconds, then come back on with no noticeable damage done. It happens maybe once a month on average, but has happened

  • PulseAudio crackling issue -- disregarding power_save=0? [SOLVED]

    I have an issue with my Intel HDA.  With the default ALSA install, I was getting crackling after playback.  I added "options snd-hda-intel power_save=0" to my modprobe.conf and that solved it... until I installed pulseaudio. Now, with pulseaudio runn

  • Diskimagemounter program not working. HELP!

    When I download a .dmg file, the image tries to mount until i get a window that pops up saying device not configured. So, I've tried opening it with diskimagemounter (the default), disk utility, and a program called Mount which was a .app file, and i