OC4J 9.0.3: ctx.listBindungs causes NameNotFoundException

Hello,
this is a repost of a message allready posted a couple of days before, see Re: JDeveloper 10.1.3.0.4 and JSTL Core 1.1 . But I can't find that posting in the list anymore, so here it' once again...
Hello,
I've got a problem with Context.listBindings, using OC4J 9.0.3 build 020725.1695 with JDK 1.3.1_04 on W2K with SP2. From within a bean I do something like this:
try
javax.naming.Context ctx = new javax.naming.InitialContext();
javax.naming.NamingEnumeration enum = ctx.listBindings("java:comp/env");
Object each = null;
while (enum.hasMoreElements()) {
each = enum.next();
System.out.println(each.toString());
} catch (Exception ex) {
ex.printStackTrace();
And get this list:
jms/EJBTopic: com.evermind.server.jms.EvermindTopic:[Topic: Demo Topic]
jms/EJBQueue: com.evermind.server.jms.EvermindQueue:[Queue Demo Queue]
jdbc/EJBDataSource: com.evermind.sql.OrionCMTDataSource:com.evermind.sql.OrionCMTDataSource/default/jdbc/OracleDS
ejb/dependencies/entityBeans_Account: com.evermind.server.ejb.DelayedHomeBinding:com.evermind.server.ejb.DelayedHomeBinding@2aa1ce
ejb/dependencies/entityBeans_AccountLocal: com.evermind.server.ejb.DelayedHomeBinding:com.evermind.server.ejb.DelayedHomeBinding@64dbfb
ejb/references/TheAddress/AddressLocal: com.evermind.server.ejb.DelayedHomeBinding:com.evermind.server.ejb.DelayedHomeBinding@2646f7
ejb/associations/TheAddress/Address: com.evermind.server.ejb.DelayedHomeBinding:com.evermind.server.ejb.DelayedHomeBinding@7d357f
jms/EJBTopicConnectionFactory: com.evermind.server.jms.EvermindXATopicConnectionFactory:com.evermind.server.jms.EvermindXATopicConnectionFactory@1ac263
jms/EJBQueueConnectionFactory: com.evermind.server.jms.EvermindXAQueueConnectionFactory:com.evermind.server.jms.EvermindXAQueueConnectionFactory@670dfb
But if I try to list the bindings for the jndi path "java:comp/env/ejb" I get a NameNotFoundException:
javax.naming.NameNotFoundException: ejb not found in Customer
at com.evermind.naming.MapContext.lookup(MapContext.java:61)
at com.evermind.server.ApplicationContext.lookup(ApplicationContext.java:124)
at com.evermind.server.ApplicationContext.lookup(ApplicationContext.java:66)
at com.evermind.server.ApplicationContext.listBindings(ApplicationContext.java:390)
at javax.naming.InitialContext.listBindings(InitialContext.java:394)
at entityBeans.CustomerBean.getAccountCount(CustomerBean.java:68)
at Customer_EntityBeanWrapper20.getAccountCount(Customer_EntityBeanWrapper20.java:2182)
at java.lang.reflect.Method.invoke(Native Method)
at com.evermind.server.rmi.RMICallHandler.run(RMICallHandler.java:103)
at com.evermind.util.ThreadPoolThread.run(ThreadPoolThread.java:
Can anyone help us with this issue?
Here are some parts of ejb-jar.xml and orion-ejb-jar.xml:
<entity >
<display-name>Customer</display-name>
<ejb-name>Customer</ejb-name>
<home>entityBeans.CustomerHome</home>
<remote>entityBeans.Customer</remote>
<local-home>entityBeans.CustomerLocalHome</local-home>
<local>entityBeans.CustomerLocal</local>
<ejb-class>entityBeans.CustomerBean</ejb-class>
<ejb-ref >
<ejb-ref-name>ejb/associations/TheAddress/Address</ejb-ref-name>
<ejb-ref-type>Entity</ejb-ref-type>
<home>entityBeans.AddressHome</home>
<remote>entityBeans.Address</remote>
</ejb-ref>
<ejb-ref >
<description>ejb-ref for dependency (entityBeans_Account)</description>
<ejb-ref-name>ejb/dependencies/entityBeans_Account</ejb-ref-name>
<ejb-ref-type>Entity</ejb-ref-type>
<home>entityBeans.AccountHome</home>
<remote>entityBeans.Account</remote>
</ejb-ref>
<ejb-local-ref >
<ejb-ref-name>ejb/references/TheAddress/AddressLocal</ejb-ref-name>
<ejb-ref-type>Entity</ejb-ref-type>
<local-home>entityBeans.AddressLocalHome</local-home>
<local>entityBeans.AddressLocal</local>
</ejb-local-ref>
<ejb-local-ref >
<description>ejb-local-ref for dependency (entityBeans_Account)</description>
<ejb-ref-name>ejb/dependencies/entityBeans_AccountLocal</ejb-ref-name>
<ejb-ref-type>Entity</ejb-ref-type>
<local-home>entityBeans.AccountLocalHome</local-home>
<local>entityBeans.AccountLocal</local>
</ejb-local-ref>
<resource-ref >
<description>resource reference to the test data source</description>
<res-ref-name>jdbc/EJBDataSource</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>
<resource-ref >
<description />
<res-ref-name>jms/EJBQueueConnectionFactory</res-ref-name>
<res-type>javax.jms.QueueConnectionFactory</res-type>
<res-auth>Container</res-auth>
</resource-ref>
<resource-ref >
<description />
<res-ref-name>jms/EJBTopicConnectionFactory</res-ref-name>
<res-type>javax.jms.TopicConnectionFactory</res-type>
<res-auth>Container</res-auth>
</resource-ref>
<resource-env-ref >
<description />
<resource-env-ref-name>jms/EJBQueue</resource-env-ref-name>
<resource-env-ref-type>javax.jms.Queue</resource-env-ref-type>
</resource-env-ref>
<resource-env-ref >
<description />
<resource-env-ref-name>jms/EJBTopic</resource-env-ref-name>
<resource-env-ref-type>javax.jms.Topic</resource-env-ref-type>
</resource-env-ref>
</entity>
<entity-deployment
name="Customer"
location="Customer"
call-timeout="90"
copy-by-value="True"
max-tx-retries="3"
data-source="jdbc/OracleDS"
disable-wrapper-cache="False"
do-select-before-insert="False"
exclusive-write-access="False"
force-update="False"
instance-cache-timeout="60"
isolation="serializable"
locking-mode="optimistic"
max-instances="10"
min-instances="0"
max-instances-per-pk="50"
min-instances-per-pk="0"
pool-cache-timeout="60"
table="T_CUSTOMER"
update-changed-fields-only="True"
>
<ejb-ref-mapping location="Account" name="ejb/dependencies/entityBeans_Account"/>
<ejb-ref-mapping location="Address" name="ejb/associations/TheAddress/Address" />
<resource-ref-mapping location="jdbc/OracleDS" name="jdbc/EJBDataSource" />
</entity-deployment>
Hope anyone can help...
Regards
Stefan

Hello,
this is a repost of a message allready posted a couple of days before, see Re: JDeveloper 10.1.3.0.4 and JSTL Core 1.1 . But I can't find that posting in the list anymore, so here it' once again...Hi,
The reason the post not showing up, is likely due to one or several bugs in this Forums software. Please read these and "join the club" :)
Re: Plz Urgent SQL problem
Re: Moving / Coping processes flows between process packages
Cheers,
Fredrik

Similar Messages

  • OC4J - coredump

    Good day!
    Here's hoping someone would be able to help. I'm desperate!!
    I've developed a Java Web application (JSP's, Servlets) on my local machine using OC4J Standalone version 10.1.2.0.0
    I now need to deploy the app to the dev server which has OC4J standalone version 9.0.3. I'm testing the application within a a folder. I get to see the index.jsp page, it reaches the controller Servlet, but when the servlet tries to forward the request (via RequestDispatcher) it does a coredump (text that I cannot understand) and shuts down OC4J.
    What can be the cause!!!

    Have you found the cause or a solution? A coredump usually signals some kind of bad native code, buggy OS system, low memory setting and etc instead of bad java programming. As far as I check, I can only find only one method in the general oc4j server code that uses native code, which is setUser in class come.evermind.server.NativeSupport. Does that ring a bell?
    What is your java version, machine and os, available memory? Try using a later version of jdk. You may search for "core dump java" and the like on the web, or on this forum. What is most helpful is certainly to find someone that understand a coredump and java so as to find the offending piece of stack. Or you can learn from the manual by yourself!
    Good luck!

  • Override JDBC driver in 9.0.4 only for a specific application

    Hi,
    on of our customers runs an OAS 10g (9.0.4.0.0) that originally ships with the very old classes12dms.jar as the Oracle JDBC Driver. Now for various reasons we cannot use this driver for our newly developed application but expect an up2date JDBC driver to be used instead.
    I've found a couple of references in the forums pointing to this metalink article:
    "JDBC Driver Upgrade Notes in OC4J/OracleAS"
    http://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=275645.1
    However, we cannot use the process described in there because it describes how to update the driver globally but we are not able to globally update the driver in order to ensure that existing applications on the server are not influenced by our driver update.
    So is there a way to make this application specific? I do have some weblogic experience and I know that it is doable there, so I guess there should be a way in OAS as well ... hopefully :-)
    tia
    Udo Rader

    Thanks. I got this patch # from MetaLink and applied the same. Now I get the following error:
    Error encountered initializing
    users and groups using the specified user manager. com.evermind.sql.DataSourceUserManager does not support the operations needed to populate
    this page.. getGroupCount() is not supported by this UserManager
    Trace
    =====================
    2004-03-26 16:39:57,481 [HttpRequestHandler-18670253] ERROR ias.ErrorData errHandler.62 - error during page render Error encountered initializing
    users and groups using the specified user manager. com.evermind.sql.DataSourceUserManager does not support the operations needed to populate
    this page.. getGroupCount() is not supported by this UserManager
    oracle.sysman.emSDK.admObj.AdminObjectException: Unsupported operation exception encountered
    at oracle.sysman.ias.sta.oc4j.UserMgrAdmin.initGroups(UserMgrAdmin.java:742)
    at oracle.sysman.ias.sta.oc4j.UserMgrAdmin.getGroupsFromUserMgr(UserMgrAdmin.java:138)
    at oracle.sysman.ias.sta.oc4j.AppSecurity.getGroupsData(AppSecurity.java:664)
    Caused by: java.lang.UnsupportedOperationException: getGroupCount() is not supported by this UserManager
    at com.evermind.security.AbstractUserManager.getGroupCount(AbstractUserManager.java:222)
    at oracle.sysman.ias.sta.oc4j.UserMgrAdmin.initGroups(UserMgrAdmin.java:730)
    ... 207 more
    java.lang.UnsupportedOperationException: getGroupCount() is not supported by this UserManager
    at com.evermind.security.AbstractUserManager.getGroupCount(AbstractUserManager.java:222)
    at oracle.sysman.ias.sta.oc4j.UserMgrAdmin.initGroups(UserMgrAdmin.java:730)
    at oracle.sysman.ias.sta.oc4j.UserMgrAdmin.getGroupsFromUserMgr(UserMgrAdmin.java:138)
    at oracle.sysman.ias.sta.oc4j.AppSecurity.getGroupsData(AppSecurity.java:664)
    ====================================
    Where do I go from here?

  • Error when using DataSourceUserManager

    Hello,
    I have been able to use form-based authentication with the principals.xml file, but I would like to use the DataSourceUserManager for user authentication. However, I get the following error:
    Error initializing server: Error instantiating default application at file:/C:/oc4j/j2ee/home/config/application.xml: Error initializing userManager 'com.evermind.sql.DataSourceUserManager': NamingException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial
    Does anyone know what could be causing my problem.
    Thanks,
    Rick

    Thanks much. I got the patch # from MetaLink and applied the same. Now I have the follg. error:
    Error encountered initializing
    users and groups using the specified user manager. com.evermind.sql.DataSourceUserManager does not support the operations needed to populate
    this page.. getGroupCount() is not supported by this UserManager
    Trace
    ========================================================
    2004-03-26 16:39:57,481 [HttpRequestHandler-18670253] ERROR ias.ErrorData errHandler.62 - error during page render Error encountered initializing
    users and groups using the specified user manager. com.evermind.sql.DataSourceUserManager does not support the operations needed to populate
    this page.. getGroupCount() is not supported by this UserManager
    oracle.sysman.emSDK.admObj.AdminObjectException: Unsupported operation exception encountered
    at oracle.sysman.ias.sta.oc4j.UserMgrAdmin.initGroups(UserMgrAdmin.java:742)
    at oracle.sysman.ias.sta.oc4j.UserMgrAdmin.getGroupsFromUserMgr(UserMgrAdmin.java:138)
    at oracle.sysman.ias.sta.oc4j.AppSecurity.getGroupsData(AppSecurity.java:664)
    Caused by: java.lang.UnsupportedOperationException: getGroupCount() is not supported by this UserManager
    at com.evermind.security.AbstractUserManager.getGroupCount(AbstractUserManager.java:222)
    at oracle.sysman.ias.sta.oc4j.UserMgrAdmin.initGroups(UserMgrAdmin.java:730)
    ... 207 more
    java.lang.UnsupportedOperationException: getGroupCount() is not supported by this UserManager
    at com.evermind.security.AbstractUserManager.getGroupCount(AbstractUserManager.java:222)
    at oracle.sysman.ias.sta.oc4j.UserMgrAdmin.initGroups(UserMgrAdmin.java:730)
    at oracle.sysman.ias.sta.oc4j.UserMgrAdmin.getGroupsFromUserMgr(UserMgrAdmin.java:138)
    at oracle.sysman.ias.sta.oc4j.AppSecurity.getGroupsData(AppSecurity.java:664)
    ==========================================================
    Where do I go from here?

  • GetString issue

    Hi,
    We are experiencing some strange behaviour with the JDBC getString method on Jdeveloper 10g (I'll also post in the Jdeveloper forum).
    getString is returning the hex representation of the string when it is executing in the OC4J container, but returns the correct data when it executes in the internal Jdeveloper java machine ie when we run the class without startinbg the Web App in the oc4j container.
    Anyone experienced this?
    Thanks,
    Tom

    Thanks for the reply.
    I am still encountering the issue after checking the classpath both in the IDE debugger and the oc4j container via a java call: System.getProperty("java.class.path").
    This returns a classpath that contains:
    C:\Jdev905\j2ee\home\../../jdbc/lib/nls_charset12.jar;
    What is interesting however is that the JDBC doc states:
    The Thin driver obtains language and territory settings (NLS_LANGUAGE and NLS_TERRITORY) from the Java locale in the JVM user.language property.
    When I probe the properties:
    Properties properties = System.getProperties();
    I see a user.language property (set to "en") in the IDE BUT NOT in the oc4j container.
    Is this the cause of the conversion to (or lack of conversion from) hex in the OC4J container?
    By the way my JDBC version is 9.0.1.4.0 using:
    DatabaseMetaData meta = con.getMetaData();
    System.out.println("JDBC driver version is " + meta.getDriverVersion());
    .. and I'm running on Windows 2000.
    Any help is appreciated!
    Tom

  • SRTutorialADFBC-UserInterface-webapp: Servlet error: JAZNRuntimeException

    Trying to run SRList.jspx from SRTutorialADFBC, I get the following exception:
    oracle.security.jazn.JAZNRuntimeException
         at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:480)
    Caused by: java.lang.NullPointerException
         at      at oracle.adf.model.binding.DCIteratorBinding.getDeferredEstimatedRowCount(DCIteratorBinding.java:3455)
         at oracle.adfinternal.view.faces.model.binding.RowDataManager.getRowCount(RowDataManager.java:217)
         at oracle.adfinternal.view.faces.model.binding.FacesCtrlHierBinding$FacesModel.getRowCount(FacesCtrlHierBinding.java:414)
         at org.apache.myfaces.trinidad.component.UIXCollection.getRowCount(UIXCollection.java:337)
         at org.apache.myfaces.trinidad.model.ModelUtils.findLastIndex(ModelUtils.java:130)
         at org.apache.myfaces.trinidad.component.TableUtils.getLast(TableUtils.java:83)
         at org.apache.myfaces.trinidad.component.TableUtils.getLast(TableUtils.java:57)
    ...

    Hi Frank
    I get the same error in the "Build a Fusion Web Application" cue cards tutorial that comes with JDeveloper 11 tech preview 3. I have had the error in other applications before and had to make them all over again because I couldn´t figure out how to correct this error. But to spend time on making thing all over is not funny. So I was hoping you had a solution on how to get rid of this error in a less timedemanding way. What can I do to get rid of this error without having to make my entire application over again?

  • Rerendering issue for download operation

    I have the following requirement
    1. User clicks on a commandButton(Implemented using h:commandButton)
    2. User is presented with Save Dialog box to save an xml in the desired location.
    This works fine as expected in IE and Firefox.
    But I'm facing following issues:
    1. After this operation when i click any button to open a modal panel, it is not opening(Problem only in IE7 not Firefox)
    2. Also I want to display a success message after download operation. Due to page rendering it is not displayed.(Problem both in IE7 and Firefox)
    3. I have attached a status processing image with the h:commandButton but I think the h:commandButton does not have oncomplete
    event so even after Save Dialog Box is closed the status processing image is not closing (Problem both in IE7 and Firefox)
    Note:
    1) I tried using a4j:commandButton instead of h:commandButton, but the Save Dialog box was not displayed.
    2)I'm using tomcat 6.0.14 and richfaces 3.2.1
    3)The xhtml is actually embedded within frames. If i try accessing the xhtml directly without frames then the modal opening issue is not reproduced.
    Code:
    ManagedBean:
    FacesContext ctx = FacesContext.getCurrentInstance();
    if (!ctx.getResponseComplete()) {
        try{       
         String strMIME = "application/xml";
         HttpServletResponse response = (HttpServletResponse) ctx.getExternalContext().getResponse();
         response.setContentType( strMIME );
         response.setHeader( "Content-Disposition", "attachment;filename=\"" + "TestDAta.xml" + "\"" );
         ServletOutputStream out = response.getOutputStream();
         out.write("<xmlfile></xmlfile>".getBytes());
         out.flush();
         out.close();
         ctx.responseComplete();
        }catch(Exception e){  
         System.err.println("Finish read end of file...");  
    }xhtml:
    <h:form id="details">
         <h:panelGrid columns="1" >
              <h:commandButton  value="Open Save Dialog" action="#{saveDialog.openSaveDialog}" onclick="javascript: Richfaces.showModalPanel('downloadModalPanel',{left:'auto', top:'auto',height:'50px',width:'130px'});" oncomplete="javascript: Richfaces.hideModalPanel('downloadModalPanel');" />
         </h:panelGrid>
         <h:panelGrid columns="1">
              <a4j:commandButton  value="Open Modal" reRender="moviesModal" limitToList="true" onclick="Richfaces.showModalPanel('moviesPanel',{left:'auto', top:'auto',height:'100px',width:'100px'});" />
         </h:panelGrid>
    </h:form>Edited by: Leela.C on Apr 20, 2009 5:04 AM

    I think ctx.responseComplete() causes HTTP response for a request to complete
    without rendering the component tree.
    Note: Without ctx.responseComplete() I'm getting following exception on the page
    SEVERE: Error Rendering View[index.xhtml]
    java.lang.IllegalStateException: Servlet response already use stream, Writer not possible
         at org.ajax4jsf.webapp.FilterServletResponseWrapper.getWriter(FilterServletResponseWrapper.java:226)
         at com.sun.facelets.FaceletViewHandler.createResponseWriter(FaceletViewHandler.java:399)
         at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:556)
         at org.ajax4jsf.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:108)
         at org.ajax4jsf.application.AjaxViewHandler.renderView(AjaxViewHandler.java:189)
         at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:110)
         at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
         at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:266)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
         at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:154)
         at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:260)
         at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:366)
         at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:493)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:263)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:584)
         at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
         at java.lang.Thread.run(Thread.java:595)

  • JNDI lookup from OC4J to weblogic throws javax.naming.NameNotFoundException

    Hi All,
    We have the below setup in our production environment.
    EJB application is deployed in the Weblogic 10.3.4.0 Server on Sun Solaris. The EJB version is 3.0
    OC4J 10.2.0 is running on another Sun Solaris machine.
    There are 2 webservice applications WEBSERV1 & TestSoapEJB running on this OC4J container.
    We need to do lookup the EJBs deployed on the Weblogic server. For this we used the below logic in the web service's Stateless session bean:
    String weblogicURL = "";
    Properties props = new Properties();
    try
    props.load(Thread.currentThread().getContextClassLoader().getResourceAsStream("wl.properties"));
    weblogicURL     = props.getProperty("weblogicURL");     
    catch (FileNotFoundException e)
    e.printStackTrace();
    catch (IOException e)
    e.printStackTrace();
    Context ctx = null;
    Hashtable ht = new Hashtable();
    ht.put(Context.INITIAL_CONTEXT_FACTORY, "weblogic.jndi.WLInitialContextFactory");
    ht.put(Context.SECURITY_PRINCIPAL,"weblogic");
    ht.put(Context.SECURITY_CREDENTIALS,"weblogic654");
    ht.put(Context.PROVIDER_URL, weblogicURL);
    ctx = NamingManager.getInitialContext(ht) ;
    // tried using //ctx = new InitialContext(ht); same behavior.
    TestEJB.AdministratorEJB ejb = (TestEJB.AdministratorEJB) ctx.lookup("TestEJB#TestEJB.AdministratorEJB");
    ctx.close();
    When we first test first WEBSER1, the lookup is fine.
    But when we test the second webservice WEBSER2, the webservice name itself not able to lookup: It gives the below error:
    javax.naming.NameNotFoundException: remaining name: env/TestSoapEJB
    Below is the stack throws thrown on browser:
    500 Internal Server Error
    javax.naming.NameNotFoundException: remaining name: env/TestSoapEJB     
    at weblogic.j2eeclient.SimpleContext.resolve(SimpleContext.java:35)     
    at weblogic.j2eeclient.SimpleContext.resolve(SimpleContext.java:39)     
    at weblogic.j2eeclient.SimpleContext.lookup(SimpleContext.java:59)     
    at weblogic.j2eeclient.SimpleContext.lookup(SimpleContext.java:59)     
    at weblogic.j2eeclient.SimpleContext.lookup(SimpleContext.java:64)     
    at weblogic.jndi.factories.java.ReadOnlyContextWrapper.lookup(ReadOnlyContextWrapper.java:45)     
    at weblogic.jndi.internal.AbstractURLContext.lookup(AbstractURLContext.java:130)     
    at javax.naming.InitialContext.lookup(InitialContext.java:392)     
    at oracle.j2ee.ws.SessionBeanRpcWebService.init(SessionBeanRpcWebService.java:65)     
    at javax.servlet.GenericServlet.init(GenericServlet.java:258)     
    at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.HttpApplication.loadServlet(HttpApplication.java:2354)     
    at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.HttpApplication.findServlet(HttpApplication.java:4795)     
    at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.HttpApplication.getRequestDispatcher(HttpApplication.java:2821)     
    at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:680)     
    at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:285)     
    at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:126)     
    at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:186)     
    at java.lang.Thread.run(Thread.java:662)
    It seems that, the OC4J is looking in Weblogic context. But it should be looking in its own context. How to resolve this issue.
    The same case happens if i restart the OC4J and first test the TestSoapEJB the lookup is fine . But if i test the WEBSERV1 , it throws the same error as above. In short, if one of the webservices lookup is working fine, the other webservice is not working. At the same time only one webservice's lookup is working.
    Kindly help me to resolve this issue.
    regards,
    Zia
    Edited by: PT Expert on Sep 9, 2012 3:16 AM

    I work now more that two days on this error!!!
    -> I remade my complete jdev project, it did not work!
    -> I deleted the jdev/system/j2ee/oc4j/workspace dir
    -> I search for some .lock files
    -> and many more tries!!! But without success...
    Is there a way to reset the Embedded OC4J?

  • JNDI NameNotFoundException on ctx.lookup in WLS 6.1

    Hi dear all
    When deploying several entity beans in WLS 6.1 we always get a
    NameNotFoundException on the ctx.lookup for each bean. The JNDI name is
    defined (for every bean) in the IDE and also available in the WLS console
    (i.e. also in the deployment descriptor).
    Calling the ctx.lookup on the JNDI name for a DataSource defined in WLS does
    not raise an NameNotFoundException but a ClassCastException on the following
    "narrow" method (a DataSource object is not a bean --> so the WLS/VM runtime
    environment works right).
    Obviously, the JNDI names for the beans can not be determined/found
    correctly because of a deployment/version problem?!
    We're using JBuilder 5.0 and WLS 6.1SP1 on NT 4.0 (might be a/the problem?).
    Thx in advance
    Markus

    The java:comp/env namespace is specific to each individual component (i.e.,
    every component can potentially see a different set of objects with different
    names and/or the same objects with different names). For an EJB reference
    lookup, I believe that we automatically bind it under java:comp/env/ejb so if
    you specify the name of the ejb-ref as MyBeanHome in the ejb-jar.xml file, then
    the EJB whose deployment descriptor contains this ejb-ref entry can look up that
    referenced bean's home at java:comp/env/ejb/MyBeanHome. When you specify the
    JNDI name under which a bean will be deployed, we do not automatically make that
    bean home available to other beans in their respective java:comp/env/ejb
    namespaces (though they are accessible via the global JNDI name used to register
    the bean). To get this, you must create the ejb-ref entries and their
    corresponding ejb-reference-description entries in the deployment descriptors.
    Hope this helps,
    Robert
    Programit wrote:
    Ditto. I'm experiencing the same problem.
    I've spent a great deal of time working with this stuff. I believe Weblogic
    is lacking in their support here. It's obvious that something isn't working
    correctly, because everything was working fine before I installed WLS6.1
    with SP1. In fact, I have two systems running right now: The code and
    deployment descriptors are exactly the same. The System works fine in
    WLS6.1. The System does NOT work in WLS6.1 SP1 becuase of these damn Naming
    issues.
    We've deployed with the BEA RDBMS Security Realm -- without modification.
    Other than that, everything else is pretty standard. The JNDI tree on the
    Weblogic console doesn't work either. It says it can resolve "comp"!!!!
    "kefah Seyed" <[email protected]> wrote in message
    news:[email protected]...> Hi Markus
    I send this message because I have the same
    problem with JNDI. My envirronment is the
    same : I'm under nt 4.0 with weblogic 6.1
    but I use Together 5.5 and I tried to deploy manually the EJB.
    But it's always the same error.
    I tried under WebSphere and with a name
    like "java:comp/env/ejb-name" it work.
    So I tried all I could if you have a solution now please send me amessage.

  • NameNotFOundException in OC4J Connection Pool

    Hi,
    I am trying to implement connection pooling in OC4J.I modified the data-sources.xml file as follows:
    <!-- DataSource for Connection Pooling for MD Database -->
    <managed-data-source name="MDDS"
    connection-pool-name="SampleConnectionPool"
    jndi-name="jdbc/MDDS"/>
    <connection-pool name="SampleConnectionPool"
         min-connections="10"
         max-connections="100"
         inactivity-timeout="30">
    <connection-factory factory-class="oracle.jdbc.pool.OracleDataSource"
    user="xxx"
    password="xxx"
    url="jdbc:oracle:thin:@//localhost:1521/zzz">
    </connection-factory>
    </connection-pool>
    My Java Coding is as follows:
    javax.naming.InitialContext ic = new javax.naming.InitialContext();
         javax.sql.DataSource dataSource = (javax.sql.DataSource)ic.lookup("jdbc/MDDS");
         con = dataSource.getConnection();
    While executing the above code,I am getting "javax.naming.NameNotFoundException : jdbc/MDDS not found..
    Am I missing any step?.Thanks.

    Have you restarted the container?

  • OC4J Configuration - javax.naming.NameNotFoundException

    Here is a description of the problem we are having:
    The Problem
         We have a remote client that wishes to invoke services
    that we are
    going to provide. These services will be accessible via a JNDI
    lookup from
    the client's JVM. The client, is operating in a JRE, version
    1.2.2, but is
    an in-house Java Server Engine (developed before the Servlet API
    specification) and not a command line client application. It is
    desirable to
    do a simple JNDI lookup from the RMIInitialContext and gain
    access to the
    services (Home Interface). Attached is a demonstration of a
    client
    application doing a lookup against the deployment shown below
    (orion-ejb-jar.xml ). Notice the name of the service in the
    lookup on the
    client application are exactly the same as the location
    declaration of the
    session deployment element of the orion-ejb-jar.xml. The service
    (EJB, not
    attached) was deployed without any errors. The exception we are
    getting is:
    Exception in thread "main" javax.naming.NameNotFoundException:
    DAServicesDemo not found
    at com.evermind.server.rmi.RMIContext.lookup
    (RMIContext.java:121)
    at javax.naming.InitialContext.lookup
    (InitialContext.java:350)
    at test.RemoteServiceClient.main
    (RemoteServiceClient.java:26)
         The RMI server has been configured with the default
    settings, and is
    listening on port 8474
    The Source
    package test;
    import ORG.oclc.da.beans.*;
    import javax.naming.*;
    import java.util.*;
    import java.rmi.*;
    import javax.ejb.*;
    public class RemoteServiceClient
         public static void main(String[] args)
         throws NamingException, CreateException,
    RemoteException,
    Exception{
    Properties h = new Properties();
    h.put(Context.INITIAL_CONTEXT_FACTORY,
    "com.evermind.server.rmi.RMIInitialContextFactory");
    h.put
    (Context.PROVIDER_URL, "ormi://risc14.dev.oclc.org:8474");
    InitialContext context = new InitialContext(h);
    DAServicesDemoHome remoteServiceHome =
    (DAServicesDemoHome) (new
    InitialContext(h)).lookup("DAServicesDemo");
    DAServicesDemo remoteService =
    (DAServicesDemo)remoteServiceHome.create();
    System.out.println("Here it is: " +
    remoteService.getContentGroup());
    C_DemoServices remoteService = new C_DemoServices();
    String result = remoteService.getContentGroup();
    System.out.println("This is the result form the remote
    service: " +
    result);
    EJB-jar.xml
    <ejb-jar>
    <description>
    Proof of concept application for the integration of DA to
    CORC
    </description>
    <display-name>Digital Archive Remote Services</display-name>
    <enterprise-beans>
    <session>
    <ejb-name>DAServicesDemo</ejb-name>
    <home>ORG.oclc.da.beans.DAServicesDemoHome</home>
    <remote>ORG.oclc.da.beans.DAServicesDemo</remote>
    <ejb-class>ORG.oclc.da.beans.DAServicesDemoBean</ejb-class>
    <session-type>Stateless</session-type>
    <transaction-type>Container</transaction-type>
    </session>
    </enterprise-beans>
    <assembly-descriptor>
    <container-transaction>
    <method>
    <ejb-name>DAServicesDemo</ejb-name>
    <method-name>*</method-name>
    </method>
    <trans-attribute>NotSupported</trans-attribute>
    </container-transaction>
    </assembly-descriptor>
    </ejb-jar>
    Orion-ejb.jar
    <orion-ejb-jar deployment-version="1.0.2.2" deployment-
    time="ea2215b915">
         <enterprise-beans>
              <session-deployment name="DAServicesDemo"
    location="DAServicesDemo"
    wrapper="DAServicesDemoHome_StatelessSessionHomeWrapper1"
    timeout="1800"
    persistence-filename="DAServicesDemo" />
         </enterprise-beans>
         <assembly-descriptor>
              <default-method-access>
                   <security-role-mapping
    name="&lt;default-ejb-caller-role&gt;" impliesAll="true" />
              </default-method-access>
         </assembly-descriptor>
    </orion-ejb-jar>
    Any help would be greatly appreciated, thanks in advanced...

    Hi Jonathan,
    If I understand you correctly, you are trying to access an EJB in
    OC4J from a separate, external JVM. If that is correct, then, in
    order to achieve that, the (EJB) home interface "stub" class must
    be located in the client's JVM. Unfortunately, I haven't figured
    out how to do that, and therefore, as far as I can see, the only
    two client options available are:
    1. Web-based client -- servlet or JSP
    2. Application client -- standalone java application.
    However, for both options, the client must also be deployed to
    OC4J. I don't know how to obtain "stub" classes generated by OC4J
    so that I can give external clients access to them.
    According to the J2EE spec, application clients need to be run
    within containers, too -- albeit thin containers. I presume that
    means you need 2 instances of OC4J running -- one for the server
    and one for the client. Seems a bit "heavy" to me, so for now I'm
    going with the web-based (servlet) client and having external
    java classes communicate with the servlet.
    Hope this has been of assistance to you,
    Avi.

  • Javax.nameing.NameNotFoundException when connection to Standalone OC4J

    I have installed a standalone OC4J 10.1.3 for a testing purposes.
    It is an out-of-the-zip-file installation, so I have not configured anything except for the administrator password.
    I can start/stop the serveren and access the Oracle Enterprise Manager from both the local server and remote PC's. I can browse the instance as expected and everything seems to work.
    When creating a testing a connection from JDeveloper on a remote PC I receive the following exception:
    Error while getting remote MBeanServer for url: ormi://<the correct server name>:23791/default
    Error reading application-client descriptor: Error communication with server oc4j:internal/ResourceFinder not found; nested exception is:
    javax.nameing.NameNotFoundException: oc4j:internal/ResourceFinder not found
    -- Regards Flemming

    I have installed a standalone OC4J 10.1.3 for a testing purposes.
    It is an out-of-the-zip-file installation, so I have not configured anything except for the administrator password.
    I can start/stop the serveren and access the Oracle Enterprise Manager from both the local server and remote PC's. I can browse the instance as expected and everything seems to work.
    When creating a testing a connection from JDeveloper on a remote PC I receive the following exception:
    Error while getting remote MBeanServer for url: ormi://<the correct server name>:23791/default
    Error reading application-client descriptor: Error communication with server oc4j:internal/ResourceFinder not found; nested exception is:
    javax.nameing.NameNotFoundException: oc4j:internal/ResourceFinder not found
    -- Regards Flemming

  • Static inner class causes deployment  on OC4J 10.1.2 to fail

    Hi,
    this issue has already been raised on OC4J 9.0.4 with J2SDK 1.4.2 (see EJB fails to compile - static inner class problem
    Recap: When referencing static inner classes in an EJB, the deployment fails. During the generation of the wrapper classes, a signature <package>.<outer class>.<inner class> gets converted to <package>.<outer class>$<inner class>, which is syntactically wrong. While the Java 1.4.1 compiler kindly ignores this syntax error, its 1.4.2 counterpart complains - and fails.
    @Oracle: When will this bug be fixed for OC4J 10.1.2?
    Best regards,
    Holger

    Holger,
    Don't static inner classes contradict the EJB specification?
    In any case, in answer to Andy's question: If you wish to file this as a bug, you can do so via the MetaLink Web site.
    [In fact, [i]MetaLink is your only option for submitting bugs for Oracle products -- as far as I know.]
    Good Luck,
    Avi.

  • OC4J and Oracle forms causes ie or firefox to not respond when running form

    When I run a form in Oracle Forms 10g, I have OC4J running, and have the following displayed:
    E:\Windows\system32>E:\DevSuiteHome_5\jdk\bin\java -Doracle.security.jazn.confi
    g=E:\DevSuiteHome_5\j2ee\DevSuite\config\jazn.xml -Doracle.home=E:\DevSuiteHome_
    5 -DORACLE_HOME=E:\DevSuiteHome_5 -jar E:\DevSuiteHome_5\j2ee\home\oc4j.jar -use
    rThreads -config E:\DevSuiteHome_5\j2ee\DevSuite\config\server.xml
    07/11/20 23:11:44 Warning: Error reading transaction-log file (/E:/DevSuiteHome_
    5/j2ee/DevSuite/persistence/transaction.state) for recovery: premature end of fi
    le
    07/11/20 23:11:44 Forced or abrupt (crash etc) server shutdown detected, startin
    g recovery process...
    07/11/20 23:11:44 Recovery completed, 0 connections committed and 0 rolled back.
    07/11/20 23:11:44 Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)
    initialized
    07/11/20 23:18:10 FormsServlet init():
    configFileName: E:\DevSuiteHome_5/forms/server/formsweb.cfg
    testMode: false
    I am running vista, and have the latest version of the dev suite. Does anybody know how I can fix this problem?

    You cannot use Internet Explorer on Windows Vista to run Web Forms.
    <p>But you CAN run web forms through Netscape or Firefox. But you first need to disable Java in the browser.
    <p>And to run OC4J on Vista, you need to set its compatibility mode to Windows XP.
    <p>See my notes on OC4J and "Browser Settings" in this thread:<br>   
    Forms 10g installed and running on Windows Vista

  • Oc4j generated finders in orion-ejb-jar.xml file causing errors

    Any information or assistance would be greatly appreciated.
    I have encountered a problem with the generated orion-ejb-jar.xml file.
    It looks like the additional finder methods that are generated when the application
    is deployed are incorrect from the 9.0.3 version to the new 10.1.2.0.2 version.
    The original content of orion-ejb-jar.xml before additional finder syntax is added:
    <finder-method query=
    "NO_SYS_USER_OBJECT_HISTORY.USER_ID=UPPER($1) and
      NO_SYS_USER_OBJECT_HISTORY.AUTOID NOT IN(
      SELECT H1.AUTOID                             
      FROM   NO_SYS_USER_OBJECT_HISTORY H1,                                
             (SELECT AUTOID                                     
              FROM   NO_SYS_USER_OBJECT_HISTORY                                    
              WHERE  USER_ID=UPPER($1)                                    
              ORDER BY DATE_TIME DESC) H2                            
      WHERE  ROWNUM &lt;= $2
        AND  H1.AUTOID = H2.AUTOID)">
    <method>
      <ejb-name>NoUserHistoryEntry</ejb-name>
      <method-name>findOldest</method-name>
      <method-params>
       <method-param>java.lang.String</method-param>
       <method-param>java.lang.Integer</method-param>
      </method-params>
    </method>
    </finder-method>
    After deploying in 9.0.3 the following information is added to the orion-ejb-jar.xml file:
    <finder-method query=
    "NO_SYS_USER_OBJECT_HISTORY.USER_ID=UPPER($1) and
      NO_SYS_USER_OBJECT_HISTORY.AUTOID NOT IN(
      SELECT H1.AUTOID
      FROM   NO_SYS_USER_OBJECT_HISTORY H1,
             (SELECT AUTOID                                     
              FROM   NO_SYS_USER_OBJECT_HISTORY
              WHERE  USER_ID=$1   
              ORDER BY DATE_TIME DESC) H2
      WHERE  ROWNUM &lt;= $2
        AND  H1.AUTOID = H2.AUTOID)">
    <!-- Generated SQL:
      "select NO_SYS_USER_OBJECT_HISTORY.autoid
       from   NO_SYS_USER_OBJECT_HISTORY
       where  NO_SYS_USER_OBJECT_HISTORY.USER_ID=UPPER(?)
         and  NO_SYS_USER_OBJECT_HISTORY.AUTOID NOT IN(
              SELECT H1.AUTOID                             
              FROM   NO_SYS_USER_OBJECT_HISTORY H1,
                     (SELECT AUTOID
                      FROM   NO_SYS_USER_OBJECT_HISTORY
                      WHERE  USER_ID=?
                      ORDER BY DATE_TIME DESC) H2
              WHERE ROWNUM <= ?
                AND H1.AUTOID = H2.AUTOID) -->
    <method>
      <ejb-name>NoUserHistoryEntry</ejb-name>
      <method-name>findOldest</method-name>
      <method-params>
       <method-param>java.lang.String</method-param>
       <method-param>java.lang.Integer</method-param>
      </method-params>
    </method>
    </finder-method>
    After deploying in 10.1.2.0.2 the following information is added to the
    orion-ejb-jar.xml file:
    <finder-method query=
    "NO_SYS_USER_OBJECT_HISTORY.USER_ID=UPPER($1) and
      NO_SYS_USER_OBJECT_HISTORY.AUTOID NOT IN(
      SELECT H1.AUTOID
      FROM   NO_SYS_USER_OBJECT_HISTORY H1,
             (SELECT AUTOID
              FROM   NO_SYS_USER_OBJECT_HISTORY
              WHERE  USER_ID=UPPER($1)
              ORDER BY DATE_TIME DESC) H2
      WHERE  ROWNUM &lt;= $2
        AND  H1.AUTOID = H2.AUTOID)">
    <!-- Generated SQL (pk only):
      "select H1.autoid
       from   NO_SYS_USER_OBJECT_HISTORY
       where  NO_SYS_USER_OBJECT_HISTORY.USER_ID=UPPER(?)
         and  NO_SYS_USER_OBJECT_HISTORY.AUTOID NOT IN(
              SELECT H1.AUTOID
              FROM   NO_SYS_USER_OBJECT_HISTORY H1,
                     (SELECT AUTOID
                      FROM   NO_SYS_USER_OBJECT_HISTORY
                      WHERE  USER_ID=UPPER(?)
                      ORDER BY DATE_TIME DESC) H2
              WHERE  ROWNUM <= ?
                AND  H1.AUTOID = H2.AUTOID) -->
    <!-- Generated SQL (all columns):
      "select H1.autoid, H1.USER_ID, H1.OBJECT_CLASS_ID,
                 H1.DATE_TIME, H1.COMMENT_TEXT, H1.ACTION,
                 H1.ACTION_DATA, H1.SITE_DESCRIPTION
       from   NO_SYS_USER_OBJECT_HISTORY
       where  NO_SYS_USER_OBJECT_HISTORY.USER_ID=UPPER(?)
         and  NO_SYS_USER_OBJECT_HISTORY.AUTOID NOT IN(
              SELECT H1.AUTOID
              FROM   NO_SYS_USER_OBJECT_HISTORY H1,
                     (SELECT AUTOID
                      FROM   NO_SYS_USER_OBJECT_HISTORY
                      WHERE  USER_ID=UPPER(?)
                      ORDER BY DATE_TIME DESC) H2
              WHERE  ROWNUM <= ?
                AND  H1.AUTOID = H2.AUTOID) -->
    <method>
      <ejb-name>NoUserHistoryEntry</ejb-name>
      <method-name>findOldest</method-name>
      <method-params>
       <method-param>java.lang.String</method-param>
       <method-param>java.lang.Integer</method-param>
      </method-params>
    </method>
    </finder-method>
    The problem with the 10.1.2.0.2 generated finders is that it is prepending H1 when
    it should be NO_SYS_USER_OBJECT_HISTORY which results in the following error:
    Exception in thread "main" com.cdtelecom.vygroe.configuration.ConfigurationException:
    com.evermind.server.rmi.OrionRemoteException:
    Transaction was rolled back: Database error: java.sql.SQLException:
    ORA-00904: "H1"."SITE_DESCRIPTION": invalid identifier
    ; nested exception is:
            java.sql.SQLException: ORA-00904: "H1"."SITE_DESCRIPTION": invalid identifier
            at com.cdtelecom.vygroe.configuration.ConfigurationSession.internalRecordAction(ConfigurationSession.java:869)
            at com.cdtelecom.vygroe.configuration.ConfigurationSession.recordAction(ConfigurationSession.java:401)
            at com.cdtelecom.vygroe.configuration.Configuration.recordActionSaveOrder(Configuration.java:886)
            at com.cdtelecom.vygroe.configuration.Configuration.getOrder(Configuration.java:239)
            at test10g.main(test10g.java:47)
    I tried to manually edit the file but when I shutdown and restart oc4j it regenerates the file again.

    Jingzhi -- If you define the correct EJB-QL you should get the correct SQL generated for the finder. If that's not happening can you verify it against the OC4J v903 production release and see if it is still happening. I don't know if this helps with the JDeveloper problem specifically but if you don't need to create your own finders then that I hope should help.
    Thanks -- Jeff

Maybe you are looking for

  • Blue screen of death - 5.0.1. solve this?

    I keep getting the blue screen of death everytime I load my computer (Thanks Apple!). Seems either going back to 4.9 or up to 5.0.1. are my options. So my questions are: 1. Does 5.0.1. solve the blue screen of death problem (which I believe is someth

  • Setting up HP Color Laserjet 5550n with Mac

    I just bought a Laserjet 5550 N. Printer works well when set up through USB. When I try to set up with ethernet: 1. Green light on printer's ethernet port glows green, and port on router is green as well. 2. In the Printer Pane of System prefs, I can

  • Query: Sender JMS Adapter configuration

    Hi All,     I'm trying out a scenario which sends data from a Message Queue to SAP.     For this I need to configure JMS adapter in the sender side. I would like to know whether <b>should I specify any content conversion parameters like "fieldLength"

  • DVI / VA Switches and Splitters

    Hello. Can anyone recommend an DVI / AV switch to split a source taken from a PM G5 and a standard AV signal (such as Sky Box / VHS Player etc.). The DVI / AV switch also has to support audio not just on the AV channel but the DVI channel in order to

  • Console TDM - A CDM-like login manager

    Inspired by CDM, I wrote a login manager called TDM. TDM is also written in pure bash, and it has a config tool tdmctl, whose usage is similar to systemctl. TDM has the following features:   Use links or scripts to set up the X sessions   Use tdminit