JNDI lookup couldn't find any objects in MBean class and -userThreads issue

Hi,
We had used some MBean classes in a jboss j2ee project. Now we need to migrate it to oc4j. We also need to use Thread class and jndi looking up in these MBean classes.
I encountered two problems when I migrate these MBeans.
1. The first problem is:
If I create a InitialContext object just like the following:
InitialContext result = new InitialContext();
Then I lookup an ejb,I can't find anything from this InitialContext.
However,If I create a InitialContext object just like below:
Properties props = new Properties();
props.put( Context.PROVIDER_URL, "***" );
props.put( Context.INITIAL_CONTEXT_FACTORY, "***");
//props.put( Context.URL_PKG_PREFIXES, "***" );
props.put( Context.SECURITY_PRINCIPAL, "***");
props.put( Context.SECURITY_CREDENTIALS, "***" );
InitialContext result = new InitialContext(props);
I can find that ejb. Why?
Is it possible to get InitialContext just like InitialContext result = new InitialContext()?
2. The second problem is:
I had used a thread class to do the above mentioned jndi looking up in one MBean method. This method is not be invoked by oc4j EM. It is invoked by another class. There is an exception throws just like below:
javax.naming.NamingException: Not in an application scope - start OC4J with the -userThreads switch if using user-created threads
I had add -userThreads argument in the startup command just like below:
java -Xdebug -Xnoagent -Djava.compiler=NONE -Doc4j.jmx.security.proxy.off=true -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=4000 -Dnl=en_US %JAVA_OPTS% %JAVA_SYSPROP% -jar %ORACLE_HOME%/j2ee/home/oc4j.jar
-userThreads
Does anyone know why there is an jndi problem in MBean class?
Thanks,
Eternal

Hi,
We had used some MBean classes in a jboss j2ee project. Now we need to migrate it to oc4j. We also need to use Thread class and jndi looking up in these MBean classes.
I encountered two problems when I migrate these MBeans.
1. The first problem is:
If I create a InitialContext object just like the following:
InitialContext result = new InitialContext();
Then I lookup an ejb,I can't find anything from this InitialContext.
However,If I create a InitialContext object just like below:
Properties props = new Properties();
props.put( Context.PROVIDER_URL, "***" );
props.put( Context.INITIAL_CONTEXT_FACTORY, "***");
//props.put( Context.URL_PKG_PREFIXES, "***" );
props.put( Context.SECURITY_PRINCIPAL, "***");
props.put( Context.SECURITY_CREDENTIALS, "***" );
InitialContext result = new InitialContext(props);
I can find that ejb. Why?
Is it possible to get InitialContext just like InitialContext result = new InitialContext()?
2. The second problem is:
I had used a thread class to do the above mentioned jndi looking up in one MBean method. This method is not be invoked by oc4j EM. It is invoked by another class. There is an exception throws just like below:
javax.naming.NamingException: Not in an application scope - start OC4J with the -userThreads switch if using user-created threads
I had add -userThreads argument in the startup command just like below:
java -Xdebug -Xnoagent -Djava.compiler=NONE -Doc4j.jmx.security.proxy.off=true -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=4000 -Dnl=en_US %JAVA_OPTS% %JAVA_SYSPROP% -jar %ORACLE_HOME%/j2ee/home/oc4j.jar
-userThreads
Does anyone know why there is an jndi problem in MBean class?
Thanks,
Eternal

Similar Messages

  • IPod classic displays 'No music' after sync, HDD problem? Geschiedenis • Verwijder  So recently I synced my iPod Classic 160 GB like I did so many times and when I wanted to play some music afterwards it couldn't find any files on the iPod anymore. H

    So recently I synced my iPod Classic 160 GB like I did so many times and when I wanted to play some music afterwards it couldn’t find any files on the iPod anymore. However when you look in the settings it displays that ~roughly 90 GB free space is available. Seen the fact that I had about 60 gigs of music this doesn’t seem like a coincidence and I think my music is still somewhere on the ipod but the HDD isn’t recognizing it anymore.
    I’ve tried resetting it, and resetting it to factory settings, which didn’t work. When connected to a desktop it won’t be recognized by iTunes, it displays an error message that the iPod cannot be read and that I have to reset it to factory settings.
    I’ve spent some time researching this problem yesterday and I ran into a myriad of vaguely similar problems didn’t really offer any help. Currently I’m thinking that formatting the iPod might work, and restoring the software afterwards. However this is a rather bold strategy so I’d like to consult you here first.
    Thanks in advance!

    Hi turingtest2,
    Thank you for the info, with formatting my iPod I managed to connect it to iTunes again.
    However..in the page you linked to there is a section about how transferring large amounts of data can dump your library. That seems to be the problem in this case. It won't even allow me to transfer more than 2 gigabytes of music per sync, if I go higher it will dump everything again. Having over >60 GB of music in my library, this is disastrous to say the least.
    Do you think that there is any other solution besides the method you mentioned involving Smart Playlists?

  • Hey. I want to install windows 8 32bit on my mac pro (mid 2012). I upgraded the windows 7 I already had, but now I dont have drivers at all... I searched drivers for the windows 8 32 bit but couldn't find any... Any solutions guys?

    Hey everyone, 
    I want to install windows 8 32bit on my mac pro (mid 2012). I upgraded the windows 7 I already had, but now I dont have drivers at all...
    I searched drivers for the windows 8 32 bit but couldn't find any...
    Any solutions guys?
    Thanks a lot.
    Sincerely,
    Chiponn

    There's been an update for OSX ML which addresses the issue for installing Windows 8 on bootcamp.
    It's NOT recommended that you Upgrade.. However, the way to get the drivers is:
    You'll need an external USB drive formatted as FAT for this.
    1) In OSX, start the Bootcamp Assistant
    2) Press Next
    3) UNTICK 'Remove WIndows 7 or Later Version'
    4) TICK Download the Latest Windows Support Software from Apple
    5) Insert USB drive
    6) Press CONTINUE
    The drivers should download, and copy a WIndowsSupport folder onto the USB drive.
    I did notice that Windows 8 still requires beta drivers for some aspects such as VGA (the Radio HD Card), which you can get on the AMD website.
    Futhermore, why are you using Windows 8 "32" bit when you blatently have a powerful 64bit?
    Anyway, hope this post helps ;-)

  • Aperture 3: After sending my book for printing to Apple the Apple Store told me that my text and the background have the same color and they couldn't print the book. But I couldn't find any problem in the preview. How could I find the problem pages?

    Aperture 3: After sending my book for printing to Apple the Apple Store told me that my text and the background have the same color and they couldn't print the book. But I couldn't find any problem in the preview. How could I find the pages where the problems are? Or otherwise, why doesn't print Apple the book how it is. Idon't need the text which couldn'be seen.

    The forum is for Logic Pro users.. I will ask the moderators to move it to a more appropriate forum for your question/subject
    Cheers..

  • My Iphone 5 is locked to Africa flex couldn't find any company with this name I'm stuck help me out.

    My Iphone 5 is locked to Africa flex according to some online carrier check service, i did some search but couldn't find any company in south africa or any where else, don't know how i will Unlock my phone as i got it as a gift from my friend who lives in South Africa, If some body know anything please let me know.
    regards.

    Ignore internet "sites "
    Ask you "friend " who they are or call Applecare in your country and they may tell you the status and carrier if locked

  • HT201302 my iphone din't appear in iphoto. I couldn't find any devices inside as well.

    my iphone din't appear in iphoto. I couldn't find any devices inside as well.

    Ignore internet "sites "
    Ask you "friend " who they are or call Applecare in your country and they may tell you the status and carrier if locked

  • Active-x on Macs ? I couldn't find any info on that even if I don't think it is supported !

    Active-X can be great when it works ! I couldn't find any piece of info to check whether or not OCX control are supported on Macs. I don't think they are due to the fact they are windows-based...
    Any confirmation is welcome
    Thank you,
    Elie

    Hi
    You're right. Activex works only on Windows OS.
    Regards,
    Luca

  • After having to reinstall my drive with applications I get a message with Premiere Pro CS5 that it can't find any "capable video play modules" and asks me to "update" my "video display modules". How do I do this? I am using a mid-2010 iMac 27" with 10.7.3

    After having to re-install my start-up drive recently I am getting a message with Adobe Premiere Pro CS5 that it can't find any "capable video play modules" and asks me to "update" my "video display modules". I am using a mid-2010 iMac 27" with OSX 10.7.3. How do I do this?

    Premiere is an Adobe application and is supported in their forums.
    Good luck.
    x

  • [svn] 1433: adding 'console' security constraint to MBeanServerGateway remote object for MBean tests and ds-console , used when running on Websphere with administrative security enabled.

    Revision: 1433
    Author: [email protected]
    Date: 2008-04-28 13:13:12 -0700 (Mon, 28 Apr 2008)
    Log Message:
    adding 'console' security constraint to MBeanServerGateway remote object for MBean tests and ds-console, used when running on Websphere with administrative security enabled. Should call setCredentials("bob","bob1") to use this RO.
    Modified Paths:
    blazeds/branches/3.0.x/qa/apps/qa-regress/WEB-INF/flex/remoting-config.mods.xml
    blazeds/branches/3.0.x/qa/apps/qa-regress/WEB-INF/flex/services-config.mods.xml

    Hi,
    It seems that you were using Hyper-V Remote Management Configuration Utility from the link
    http://code.msdn.microsoft.com/HVRemote, if so, you can refer to the following link.
    Configure Hyper-V Remote Management in seconds
    http://blogs.technet.com/jhoward/archive/2008/11/14/configure-hyper-v-remote-management-in-seconds.aspx
    By the way, if you want to perform the further research about Hyper-V Remote Management Configuration Utility, it is recommend that you to get further
    support in the corresponding community so that you can get the most qualified pool of respondents. Thanks for your understanding.
    For your convenience, I have list the related link as followed.
    Discussions for Hyper-V Remote Management Configuration Utility
    http://code.msdn.microsoft.com/HVRemote/Thread/List.aspx
    Best Regards,
    Vincent Hu

  • Mac OSX, Startup Error with CC 2014 (CC works): Couldn't find any capable video play modules

    I'm getting this on two different machines running different OSX versions with different graphics cards:
    Adobe Premiere Pro Startup Error
    Adobe Premiere Pro could not find any capable video play modules. Please update your video display drivers and start again.
    My computers are:
    iMAC / OS X 10.9.5 / AMD Radeon HD 6970M 2048 MB
    MacBook Pro / OS X 10.10 / AMD Radeon HD 6750M 1024MB
    Was in a chat with an Adobe tech person and they even remotely got on my computer and changed permissions on two Adobe folders and sub folders and it still didn't work. Adobe Premiere CC seems to work. But clients are all using CC 2004.

    Hi ufoclub,
    Try this:
    Go to the following locations:
    Location 1: When in Finder, click on Go > Go to Folder > ~/Library/Application Support/Adobe
    Location 2: Go > Go to Folder > ~/Library/Preferences/Adobe
    Location 3: Documents > Adobe 
    In all the locations, rename the 'Adobe' folders to 'OldAdobe'
    Launch Premiere, accept the License Agreement and see if it works.
    Note: You will lose your customized workspaces and keyboard shortcuts.
    Thanks,
    Rameez

  • Everythiing disappeared from my Itunes on my PC. No playlists and no music. Found some music in my files and reloaded but only 3 3G out of over 7G that I had on my Ipod. Carbonite checked and they couldnot find any more. What happened and how to get misic

    Everything disappeared from  my Itunes on my PC. No playlists and no music. Have carbonite and they could only find in the files 3.3G and I ahd over 7 G in there.
    What happened and how do I get it back?  Also if I attached my I pod will I lose the music that is in there and not in I tunes?
    Would going to system prestore help?
    Dave
    [email protected]

    This explains how to do what you want to do. It was written for an iPhone or an iPod Touch, but the process is the same for an iPad.
    Syncing to a "New" Computer or replacing a "crashed" Hard Drive
    https://discussions.apple.com/docs/DOC-3141

  • How to make an object of inner class and use it ?

    Hi tecs,
    In my JSF application i have a need to make an inner member class in one of my bean class.
    How can i make the object of this class?(what should be the entry in faces-config)
    And there are text box and check box (in the JSP) associated with the elements of this inner class. What should be the coding in JSP so that elements in the JSP can be linked with the corresponding members of the inner class ?
    Plz help.
    Thnx in advance.

    Hi
    I am havin 10 text boxes in my application.
    But out of 10 , 3 will be always together(existence of one is not possible without the other two.)
    Now i want to create a vector of objects ( here object will consist of the value corresponding to these three boxes),there can be many elements in this vector.
    So i m thinking to make an inner class which have three String variables corresponding to these text boxes that exists together.
    What can b done ?

  • Error in adapter module - jndi lookup can't find the class

    Hi gurus,
    I have a problem with my adapter module, the error from the RWB is:
    Error: com.sap.engine.services.jndi.persistent.exceptions.NameNotFoundException: Object not found in lookup of KFCProc.
    My EJB-JAR looks like this:
      <?xml version="1.0" encoding="UTF-8" ?>
      <!DOCTYPE ejb-jar (View Source for full doctype...)>
    <ejb-jar>
      <description>EJB JAR description</description>
      <display-name>EJB JAR</display-name>
    <enterprise-beans>
    <session>
      <ejb-name>KFCProc</ejb-name>
      <home>com.sap.aii.af.mp.module.ModuleHome</home>
      <remote>com.sap.aii.af.mp.module.ModuleRemote</remote>
      <local-home>com.sap.aii.af.mp.module.ModuleLocalHome</local-home>
      <local>com.sap.aii.af.mp.module.ModuleLocal</local>
      <ejb-class>com.sap.adapter.KFCProc</ejb-class>
      <session-type>Stateless</session-type>
      <transaction-type>Container</transaction-type>
      </session>
      </enterprise-beans>
      </ejb-jar>
    I think it should be all right, but it isn't.
    Can be the problem, that I use for "com.sap.adapter.KFCProc"package "com.sap..."?
    Thank you,
    Olian

    Hi Stefan,
    I developed it using your document
    This is my ejb-j2ee-engine.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE ejb-j2ee-engine SYSTEM "ejb-j2ee-engine.dtd">
    <ejb-j2ee-engine>
         <enterprise-beans>
              <enterprise-bean>
                   <ejb-name>KFCProc</ejb-name>
                   <jndi-name>KFCProc</jndi-name>
                   <session-props/>
              </enterprise-bean>
         </enterprise-beans>
    </ejb-j2ee-engine>
    My entry in Modules tab of CC config is
    localejbs/KFCProc
    I think this all should be ok...
    Thanks,
    Olian

  • TS1559 My wife's iPhone 4s worked fine. She syncd last week and then it couldn't find any wi-fi networks. Tried all the steps above except that after upgrading to ios 6, the wi-fi is toggled off and is greyed out, unable to turn on. NOT AN AT&T ISSUE

    Nothing posted on any of the threads has worked. I am reluctant to revert back to 5.1.1 which some say worked for them. Posting this solely so Apple will know there is one more continuing to have this issue and it is a major inconvenience.

    I have been having the same issue for the last two weeks. No real indication as to why it ever began other than I had turned off my router and Airport Extreme Base Station off for a weekend while I was away from my place.
    iPad, iPhone, iPod Touch, all have no issues at all with my Airport Extreme Base Station. Can stay connected throughout my living room, bathroom, bedroom, no issues whatsoever.
    My 5 month old MacBook Pro 2.66 GHz Core i7 Airport is sometimes perfect, able to connect, DHCP, and browse without issue. Then, for no reason, I won't be able to join my wireless network, or when I can join, I can't pick up an IP address. And then it will connect, pick up and IP, and then it won't browse. No real rhyme or reason to when this will happen, or when it works.
    I thought that it was an issue with my MacBook Pro, but then my sister visited with her brand new MacBook Pro 2.26 Intel Core 2 Duo, and while a month ago she was able to connect, DHCP, and browse without issue, this weekend she had all of the same issues I was having.
    My XBOX 360 and MacBook Pro have absolutely no issues with the wired connection. Only my WAN seems to have this issue.
    Did you ever find anything more to this?

  • 'Adobe Premiere Pro CS6 couldn't find any capable video to play modules' What should i do?

    Hi
    I've been having some troubleshooting with adobe premiere pro cs6.
    I've tried everything from reinstalling it, to changing the bios properties, and i don't know what else should i do.
    I have a Dell Vostro with an intel core i7 and a amd radeon 7600M graphics card.
    What Should i do?

    Do you have dual graphics adapters?
    Go to the Windows Control Panel and select Hardware and Sound and then select Device Manager... In Device manager you click the + sign to the left of Display Adapters... and see if 2 are listed
    IF YES, read below
    -http://forums.adobe.com/thread/1001579
    -Use BIOS http://forums.adobe.com/thread/1019004?tstart=0
    -link to why http://forums.adobe.com/message/4685328
    -http://www.anandtech.com/show/4839/mobile-gpu-faceoff-amd-dynamic-switchable-graphics-vs-n vidia-optimus-technology/2

Maybe you are looking for

  • Pixel-polly in CS 5.5

    What has happened to pixel-polly in CS5.5? This may be well trodden ground but searches of this forum do not turn up hits on pixel polly. Google searchs seem to revolve around lots of non-english hits for the nefarious download sites that offer stuff

  • Reformatting a large document in Pages '09

    I need to completely reformat a large manuscript. I'm lost when it comes to changing the indent of paragraphs (the first in a section must be flush left, but all others slightly indented and right now mine are very wide) and I need to include page &

  • System Center 2012 - client installation error 0x80070057

    Product: System Center 2012, client installation problem Hello, I've problem with installation client on WinSrv 2008 SP2 (firewall disabled) Logs:CcmExec.log <![LOG[Error processing notification query for endpoint 'ExternalEventAgent'. QueryType='',

  • How to use urdu characters in forms6i

    I use forms6i as frontend and oracle 8i and 9i as database.I want to input URDU characters in text item using form6i and want to store the same in databse.Here majority of bussiness and oranizational data is stored in files using software inpage whic

  • Grab images using IMAQ without sending frame request

    Hello, When a camera is externally triggered, is it possible to design a *.vi that makes use of IMAQ and grabs images via Camera Link frame grabber without sending frame request signals AND without knowing the external trigger? Just to grab images wh