Query on adfc-config.xml

Hi,
I have multiple[ex:more than 50] java classes to be registered as managed beans in adfc-config.xml.
Is there way to mention all these java classes as managedbeans in one xml [ex:department-config.xml] and refer the same in adfc-config.xml.
Please suggest.
Thanks,
Praveen

Yes, this is possible in case of unbounded task flow.
As per ADF, although the user can create multiple unbounded taskflow files, but there is only one unbounded task flow (All Unbounded Taskflows are merged into single unbounded task flow).
By Default, in ViewController Project, a default unbounded task flow named adfc-config.xml is created. If the user creates multiple unbounded task flow definitions, a reference to newly created unbounded task flow is added in the adfc-config file. At runtime, all these files are merged into single unbounded task flow.
<adfc-config xmlns="http://xmlns.oracle.com/adf/controller" version="1.2">
<metadata-resource>/WEB-INF/adfc-config1.xml</metadata-resource>
<metadata-resource>/WEB-INF/department-config.xml</metadata-resource>
</adfc-config>As per your case, you could register all the beans in one unbounded task flow definition file and use it in another - as all the files will be merged into a single file.
Thanks,
Navaneeth

Similar Messages

  • ADF:How to use NavigationHandler in Phase-Listener with adfc-config.xml

    Hi,
    in our application a user should be navigated to the login-page, when he tries to navigate directly to a page where he has no right for or if the session is expired.
    Our navigation is complete in the adfc-config.xml. So I created a phase-listener, which is called by the adf-settings.xml.
    Inside the phase-listener I'm checking the rights. If the user doesn't have the needed rights, he should be linked to the login page. But how can I do that?
    Some days ago our navigation has been complete in the faces-config.xml. But now we moved the navigation to the adfc-config.xml, because we are sure that it's better. E.g. for using the dialog framework.
    In the face-config.xml we had also the call of the phase-listener. There we did the forwarding like this and it worked:
    FacesContext facesContext = FacesContext.getCurrentInstance();
    facesContext.getApplication().getNavigationHandler().handleNavigation(facesContext, null, "login_page");But now I think I have to use the ADFContext somehow, or?
    So how can I do that with the adfc-config.xml?
    Thanks a lot for your help,
    Bastian
    I'm using JDeveloper 11g Release 1 (11.1.1.3.0)

    Hello Frank,
    thanks for your answer, but it doesn't really help me, because I'm a newbie, sorry.
    Does your answer mean, that I should leave the call of the phase-listener in the faces-config and then I would also have access to the login-page, which is in the adfc-config?
    Or does it mean, that I call now my phase-listener by adf-settings but don't have to change the phase-listener itself and can still use my code (FacesContext...)? But that's not working. I get no error but he is also not redirecting.
    Maybe my problem starts on an earlier point.
    Is it better to create all pages in the adfc-config or faces-config? (Maybe you have a good reference for reading about such a basic discussion)
    I thought adfc-config would be the better one. But there I'm not able to redirect to another page (login) if somebody calls a special page without rights for example.
    So my second basic question would be about the relation of adfc-config, faces-config and ADFContext and FacesContext.
    Because I think it's not a short answer I hope you could give me also for this a reference so that I can read these basics myself.
    Thanks a lot for helping a newbie becoming better :-)
    Bastian

  • PageFlow in adfc-config.xml or in task-flow defination not working.

    I want to share the data across multiple pages for a given taskflow. Hence kept the bean in taskFlow scope in adfc-config.xml. But bean is not getting instantiated when i try to print its value in one of page in taskflow.
    <af:outputText value="#{pageFlowScope.PricingProfileSelector}"/>
    I tried to put the bean defination in task flow defination and removed from adfc-config.xml. but still not able to instantiate it.
    If the change the scope to session or request, the bean gets instantiated.
    Any suggestion.!!

    I am using any variable at all for now. This is my scenario.
    <managed-bean id="__34">
    <managed-bean-name id="__31">profileSelector</managed-bean-name>
    <managed-bean-class id="__33">oracle.communications.brm.pdc.ui.view.selector.PricingProfileSelector</managed-bean-class>
    <managed-bean-scope id="__32">pageFlow</managed-bean-scope>
    </managed-bean>
    <managed-bean id="__73">
    <managed-bean-name id="__74">profileSelector1</managed-bean-name>
    <managed-bean-class id="__72">oracle.communications.brm.pdc.ui.view.selector.PricingProfileSelector</managed-bean-class>
    <managed-bean-scope id="__75">session</managed-bean-scope>
    </managed-bean>
    I am trying to print the beanclass.
    <af:outputText value="#{pageFlowScope.PricingProfileSelector}"/> ----------// no output.
    <af:outputText value="#{PricingProfileSelector}"/> --------value comes for this. oracle.communications.brm.pdc.ui.view.selector.PricingProfileSelector@1b6915d
    I an wondering why PricingProfileSelector class does not get instantiated for pageflowscope when i try to print the class.

  • Managed bean in both adfc-config.xml and faces-config.xml file

    hi,
    i can see that it's possible to declare managed bean in both adfc-config.xml and faces-config.xml file.
    is there any difference? which one is recommended?
    read here - http://www.jaypillai.com/tag/adf/
    but still not clear.
    thanks.

    Hi.
    As you know ADF is a framework based on JSF.
    In faces-config.xml you define general application manage beans. It offers you define manage beans for all application using JSF default scopes (application, session, request).
    In adfc-config.xml you define general application manage beans using ADF Scopes. It means that you can use JSF default ones including "view, pageFlow and backing".
    My recommendation is use only one point entry for your general manage beans. Use adfc-config.xml because allow you to use more scopes.
    Regards.

  • Adfc-config.xml

    I'm trying to set backingBean scope for a declarative component...however get the following error:
    Target Unreachable, identifier 'backingBeanScope' resolved to null
    adfc-config.xml was not originally created in my project so I added a TaskFlow and Jdev created it. Is there something I need to do either in the main project or the declarative component project to make this work?
    Thanks,
    Kris

    Hi,
    I think the adfc-config.xml isn't the solution to your problem its only the visible part of the it. Backing bean scope is an ADFc functionality and until you add ADF Page Flows to your project (in which case adfc-config gets created) this scope is available.
    Frank

  • Can not redirect to other page when using adfc-config.xml in standalone WL

    Hi all,
    I created a very simple fusion app, only have two jspx pages(view1 view2). I drag these two pages to adfc-config file and created a control flow(adfcView2) between these two pages.
    +<?xml version="1.0" encoding="UTF-8" ?>+
    +<adfc-config xmlns="http://xmlns.oracle.com/adf/controller" version="1.2">+
    +<view id="view1">+
    +<page>/view1.jspx</page>+
    +</view>+
    +<view id="view2">+
    +<page>/view2.jspx</page>+
    +</view>+
    +<control-flow-rule>+
    +<from-activity-id>view1</from-activity-id>+
    +<control-flow-case>+
    +<from-outcome>adfcView2</from-outcome>+
    +<to-activity-id>view2</to-activity-id>+
    +</control-flow-case>+
    +</control-flow-rule>+
    +</adfc-config>+
    When I run the view1.jspx in the embeded WL, all go well, can navigate from view1 to view2.
    But when I created an ear and deployed this ear to a standalone WL, view1 can be displayed successfully, but when I clicked one commandbutton in view1, want to navigator to view2, the page can not be redirected to view2(still show view1.jspx). there is no any error msg in WL Console.
    Did I miss anything for deploying a taskflow app? If I change the view controller to faces-config.xml not adfc-config.xml, all work fine.
    Any info is appreciated.
    Edited by: harth on Oct 25, 2009 7:21 PM

    Hi Harth,
    I guess you are running the jspx page not view activity, check if your url contains .jspx page at the end. If so, run the url without .jspx page at end(which is view id name)
    Eg:
    Give http://<Host_Name>:<Port>/<ContextRoot>/faces/view1 instead of http://<Host_Name>:<Port>/<ContextRoot>/faces/view1.jspxSireesha
    Edited by: Sireesha Pinninti on Oct 25, 2009 8:00 PM

  • How to use a managed bean in a bounded task flow without definig it in adfc-config

    Dear all
    I create a bounded task flow without page fragments (the pages are jspx), i created a jspx page with a button that its action has bounded to a managed bean function.
    i defined the managed bean on the corresponding bounded task flow, but it does not work.
    But there is no problem when i define the managed bean in adfc-config.xml.
    can anybody help me with this problem.
    is it possible to use jspx page with backing bean in bounded task flows, without defining the beans on adfc-config?
    Thank you very much

    Dear Timo
    I use jDev 11.1.1.6 and the scope is Request.Although when i use task flow page fragment and create jsff pages, there is no problem.

  • XMLMenuModel: Can we have a taskflow other than adfc-config as root_menu

    I am using ADF 11 Release 1.
    When using XMLMenuModel, is this possible to define an unbounded taskflow other than adfc-config as a root_menu.
    I do not want to create any views on adfc-config.xml.
    When I use a task flow other than adfc-config to create the root_menu, I do not see level 1 menus.

    I am using ADF 11 Release 1.
    When using XMLMenuModel, is this possible to define an unbounded taskflow other than adfc-config as a root_menu.
    I do not want to create any views on adfc-config.xml.
    When I use a task flow other than adfc-config to create the root_menu, I do not see level 1 menus.

  • @EJB not working for managed beans in adfc-config

    using adf 11.1.1.3
    We have an application that uses EJB (deployed on the same WLS as our application). We notice that when we create managed beans in the adfc-config and use the @EJB annotation to get an instance of the sessionbean, it is not working.
    The error we get is a simple nullPointerexception pointing to the EJB.
    When we register the bean in faces-config.xml instead of adfc-config.xml, we do get an instance of the EJB.
    I also get a nullpointerException when i add the managed bean to a taskflow instead of the adfc-config.
    This is an example of the bean:
    public class HomeTest {
        @EJB
        MyService service;
        public HomeTest() {
        public List getData(){
          return service.getSomedata();
    }When i register this bean in adfc-config i get a nullpointer on service.
    When i register the same bean in the faces-config, it is working.

    Frank,
    Thanks! I think i managed to implement the workaround:
    This is my bean that has been registered in the faces-config:
    public class BeanHelper {
        @EJB
        private MyEJB myEjB;
        public BeanHelper() {
            super();
        public MyEJB getMyEJB()
              return myEJB;
    }In my adfc managed bean i use
    MyEJB myEJB = (MyEJB)JSFUtils.get("#{BeanHelper.myEJB}");This is working fine.
    This way i no longer need to use a direct lookup and i don't need to know the exact path and so on for the EJB.
    Thanks Frank!
    Is there a way to let Oracle update the bug with this workaround so if other people find the bug, they know how to implement a workaround?

  • Adfc-config navigation not working

    Hello,
    I have created the following navigation in the adfc-config.xml:
      <view id="partError">
        <page>/partError.jspx</page>
      </view>
      <view id="estimation-home">
        <page>/estimation-home.jspx</page>
      </view>
      <view id="estimation-chart">
        <page>/estimation-chart.jspx</page>
      </view>
      <control-flow-rule id="__9">
        <from-activity-id id="__10">estimation-home</from-activity-id>
        <control-flow-case id="__13">
          <from-outcome id="__14">fill-estimation</from-outcome>
          <to-activity-id id="__12">estimation-chart</to-activity-id>
        </control-flow-case>
      </control-flow-rule>And I am calling the outcome as:
    <af:commandLink id="cl1" action="fill-estimation" partialSubmit="true" text="Test"/>But it is not working.
    If I define the navigation in the faces-config.xml:
      <navigation-rule>
        <from-view-id>/estimation-home.jspx</from-view-id>
        <navigation-case>
          <from-outcome>fill-estimation</from-outcome>
          <to-view-id>/estimation-chart.jspx</to-view-id>
          <redirect/>
        </navigation-case>
      </navigation-rule>It works. I am unable to find what I am doing wrong. Any suggestion would be very helpful to me.

    Hello Frank,
    Before I was launching the first page as:
    1. Defined index.jsp and added jsp:redirect to the estimation-home.jspx.
    2. Added index.jsp as the welcome page in web.xml.
    After the point you asked me, form that, I came to know I am doing this in wrong way, that's why the navigation is not working.
    Now
    1. I have changed my index.jsp to add
    <meta http-equiv="refresh" content="0;url=./pages/estimation-home" />2. Removed the navigation from faces-config.xml and defined it in adfc-config.xml.
    It is working now.
    Thank you very much.
    Best regards,
    Tapas

  • ADF faces-config.xml file

    Hi ADF gurus,
    I am new to this technology and i have found in oracle developer's guide that "Registering managed beans within the faces-config.xml file is not recommended in a Fusion web application".
    URL : http://docs.oracle.com/cd/E28271_01/web.1111/e28164/web_getstarted.htm#CACCFIII
    Section: Using a Managed Bean in a Fusion Web Application
    My question is why this?
    Thanks & Regards,
    Sharmistha

    If you plan to use the ADF stack there are some enhancements added to the normal faces lifecycle like bounded task flows, pageFlowScope and some additional phases the normal faces lifecaycle doesn't have. This additions are handled in the adcf-config.xml. If you register your beans in the facces-config file they are not managed by the adf stack and therefore can't use the additions.
    So Oracle encourage you to use the adfc-config.xml instead of the faces-config.xml. There are a few special entries which still needed to be made in the faces-config file (e.g. skinning), butin general you use the adfc-config file is you use adf rich faces.
    Timo

  • Do we need to register adfc-config?

    Hi guys,
    I have a JEE project with adf faces as view tier. I want to use the view scope of adf so converted my faces config to adfc-config.xml.
    a very basic one.
    The moment i run the project I am getting the error
    Caused by: javax.el.PropertyNotFoundException: Target Unreachable, identifier 'createOpportunity' resolved to null
    I have declared the bean in adfc-config.xml . I was wondering if i need to declare the adfc-config some where so that the beans is available.
    adfc-config.xml content
    <?xml version="1.0" encoding="windows-1252" ?>
    <adfc-config xmlns="http://xmlns.oracle.com/adf/controller" version="1.2">
      <view id="menu">
        <page>/common/menu.jsp</page>
      </view>
      <view id="createActivity">
        <page>/pages/createActivity.jsp</page>
      </view>
      <view id="createOpportunity">
        <page>/pages/createOpportunity.jsp</page>
      </view>
      <view id="opportunityManagement">
        <page>/pages/opportunityManagement.jsp</page>
      </view>
      <control-flow-rule id="__14">
        <from-activity-id id="__15">menu</from-activity-id>
        <control-flow-case id="__16">
          <from-outcome id="__17">createOpportunity</from-outcome>
          <to-activity-id id="__18">createOpportunity</to-activity-id>
        </control-flow-case>
      </control-flow-rule>
      <managed-bean id="__20">
        <managed-bean-name id="__19">createOpportunity</managed-bean-name>
        <managed-bean-class id="__22">com.awrostamani.bean.CreateOpportunity</managed-bean-class>
        <managed-bean-scope id="__21">view</managed-bean-scope>
      </managed-bean>
    </adfc-config>Full errror stack::
    <LifecycleImpl> <_handleException> ADF_FACES-60098:Faces lifecycle receives unhandled exceptions in phase RENDER_RESPONSE 6
    javax.faces.FacesException: javax.el.PropertyNotFoundException: Target Unreachable, identifier 'createOpportunity' resolved to null
         at com.sun.faces.application.ApplicationImpl.createComponent(ApplicationImpl.java:261)
         at javax.faces.webapp.UIComponentELTag.createComponent(UIComponentELTag.java:222)
         at javax.faces.webapp.UIComponentClassicTagBase.createChild(UIComponentClassicTagBase.java:513)
         at javax.faces.webapp.UIComponentClassicTagBase.findComponent(UIComponentClassicTagBase.java:782)
         at javax.faces.webapp.UIComponentClassicTagBase.doStartTag(UIComponentClassicTagBase.java:1354)
         at org.apache.myfaces.trinidad.webapp.UIXComponentELTag.doStartTag(UIXComponentELTag.java:71)
         at oracle.adfinternal.view.faces.unified.taglib.UnifiedDocumentTag.doStartTag(UnifiedDocumentTag.java:50)
         at jsp_servlet._pages.__createopportunity._jspService(__createopportunity.java:202)
         at weblogic.servlet.jsp.JspBase.service(JspBase.java:35)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
         at weblogic.servlet.internal.ServletStubImpl.onAddToMapException(ServletStubImpl.java:417)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:326)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:184)
         at weblogic.servlet.internal.RequestDispatcherImpl.invokeServlet(RequestDispatcherImpl.java:523)
         at weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:253)
         at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:410)
         at org.apache.myfaces.trinidad.context.ExternalContextDecorator.dispatch(ExternalContextDecorator.java:45)
         at org.apache.myfaces.trinidad.context.ExternalContextDecorator.dispatch(ExternalContextDecorator.java:45)
         at oracle.adfinternal.view.faces.config.rich.RecordRequestAttributesDuringDispatch.dispatch(RecordRequestAttributesDuringDispatch.java:45)
         at org.apache.myfaces.trinidad.context.ExternalContextDecorator.dispatch(ExternalContextDecorator.java:45)
         at org.apache.myfaces.trinidad.context.ExternalContextDecorator.dispatch(ExternalContextDecorator.java:45)
         at org.apache.myfaces.trinidad.context.ExternalContextDecorator.dispatch(ExternalContextDecorator.java:45)
         at org.apache.myfaces.trinidadinternal.context.FacesContextFactoryImpl$OverrideDispatch.dispatch(FacesContextFactoryImpl.java:268)
         at com.sun.faces.application.ViewHandlerImpl.executePageToBuildView(ViewHandlerImpl.java:471)
         at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:140)
         at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:191)
         at org.apache.myfaces.trinidadinternal.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:193)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._renderResponse(LifecycleImpl.java:777)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:293)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:213)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:266)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:27)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
         at oracle.adf.share.http.ServletADFFilter.doFilter(ServletADFFilter.java:62)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
         at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:106)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:447)
         at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:447)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:271)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:177)
         at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
         at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:111)
         at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
         at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:413)
         at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:94)
         at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:161)
         at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
         at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:136)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
         at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:207)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:176)
    Caused by: javax.el.PropertyNotFoundException: Target Unreachable, identifier 'createOpportunity' resolved to null
         at com.sun.el.parser.AstValue.getTarget(Unknown Source)
         at com.sun.el.parser.AstValue.setValue(Unknown Source)
         at com.sun.el.ValueExpressionImpl.setValue(Unknown Source)
         at com.sun.faces.application.ApplicationImpl.createComponent(ApplicationImpl.java:258)
         at javax.faces.webapp.UIComponentELTag.createComponent(UIComponentELTag.java:222)
         at javax.faces.webapp.UIComponentClassicTagBase.createChild(UIComponentClassicTagBase.java:513)
         at javax.faces.webapp.UIComponentClassicTagBase.findComponent(UIComponentClassicTagBase.java:782)
         at javax.faces.webapp.UIComponentClassicTagBase.doStartTag(UIComponentClassicTagBase.java:1354)
         at org.apache.myfaces.trinidad.webapp.UIXComponentELTag.doStartTag(UIXComponentELTag.java:75)
         ... 62 more
    thnkks..
    Edited by: Kamaal on Mar 20, 2011 9:19 AM

    i don't understand why you are using
    viewScope.backingbean.propertyAs you have the following registration in adfc-config.xml,
    <managed-bean id="__20">
    <managed-bean-name id="__19">createOpportunity</managed-bean-name>
    <managed-bean-class id="__22">com.awrostamani.bean.CreateOpportunity</managed-bean-class>
    <managed-bean-scope id="__21">view</managed-bean-scope>
    </managed-bean>
    you should use
    viewScope.createOpportunity.<PROPERTY>Thanks,
    Navaneeth

  • UCM-VCR Adapter in WLP error while publishing content-config.xml changes

    Hi,
    I am getting this error when i publish my changes to server for UCM-VCR Adapter in WLP 10.3.2.
    weblogic.application.ModuleException: Error reading descriptor: META-INF/content
    -config.xml for app module ucmEAR
    at weblogic.application.config.DefaultModule.parseDescriptorBean(Default
    Module.java:483)
    at weblogic.application.config.DefaultModule.prepare(DefaultModule.java:
    282)
    at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(Modu
    leListenerInvoker.java:199)
    at weblogic.application.internal.flow.DeploymentCallbackFlow$1.next(Depl
    oymentCallbackFlow.java:391)
    at weblogic.application.utils.StateMachineDriver.nextState(StateMachineD
    river.java:83)
    Truncated. see log file for complete stacktrace
    Caused By: weblogic.descriptor.BeanAlreadyExistsException: Bean already exists:
    "com.bea.content.config.RepositoryPropertyBeanImpl@d0b61789(/[UCMRepository]/Rep
    ositoryProperties[ContentServerAdminUser])"
    at weblogic.descriptor.internal.ReferenceManager.registerBean(ReferenceM
    anager.java:227)
    at com.bea.content.config.ContentStoreBeanImpl.setRepositoryProperties(U
    nknown Source)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
    java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:25)
    Truncated. see log file for complete stacktrace
    >
    i also add oracle-ucm-spi-app-lib.ear in weblogic-application.xml's WebLogic Shared Library.
    please find the related files.
    content-config.xml:
    <?xml version="1.0" encoding="UTF-8"?>
    <content-config xmlns="http://www.bea.com/ns/portal/90/content-config">
    <!-- This is a default content repository applications can use.
    The IDE should copy this to META-INF/content-config.xml of the
    application.
    This repository is not required for WLP services, so you can remove
    it or change it as needed. -->
    <content-store>
              <name>UCMRepository</name>
              <class-name>com.oracle.content.spi.ucm.RepositoryImpl
              </class-name>
              <username>wlpApp</username>
              <repository-property>
                   <description>Hostname on which the UCM Content Server is running
              </description>
                   <name>ContentServerHostname</name>
                   <value>172.23.210.16</value>
              </repository-property>
              <repository-property>
                   <description>Port on which the UCM Content Server is running (on host named above)
                   </description>
                   <name>ContentServerPort</name>
                   <value>4444</value>
              </repository-property>
              <repository-property>
                   <description>Content Server uname in Admin role, for
                   security checks
                   </description>
                   <name>ContentServerAdminUser</name>
                   <value>sysadmin</value>
              </repository-property>
              <repository-property>
                   <description>List of folder ObjectClasses</description>
                   <name>folder_badge_objectClasses</name>
                   <value>IDC:Folder</value>
              </repository-property>
              <repository-property>
                   <description>Single user for all type related interactions
                   </description>
                   <name>TypeRetrievalShapeUser</name>
                   <value>typeShapeUser</value>
              </repository-property>
              <repository-property>
                   <name>useNativeSecurity</name>
                   <value>false</value>
              </repository-property>
              <repository-property>
                   <description>Protocol used to connect with the UCM Server.
                                  Valid
                                  options are INTRADOC or INTRADOC_SSL. INTRADOC is the
                                  default.
                   </description>
                   <name>ContentServerServiceType</name>
                   <value>INTRADOC</value>
              </repository-property>
              <repository-property>
                   <description>Content Server Username in Admin role, used
                   for security
                   checks
                   </description>
                   <name>ContentServerAdminUser</name>
                   <value>sysadmin</value>
              </repository-property>
              <repository-property>
                   <description>Polling interval for the
                   CacheInvalidator IntervalJob
                   (must be equal to or greater than 2 min)
                   </description>
                   <name>CacheInvalidationInterval</name>
                   <value>2</value>
              </repository-property>
              <repository-property>
                   <description>Location on the filesystem of the
                   client SSL keystore
                   file. Only used when ContentServerServiceType
                   is INTRADOC_SSL
                   </description>
                   <name>ContentServerSSLKeystoreFile</name>
                   <value>c:/client_keystore</value>
              </repository-property>
              <repository-property>
                   <description>SSL keystore password. Only used when
                   ContentServerServiceType is INTRADOC_SSL
                   </description>
                   <name>ContentServerSSLKeystorePassword</name>
                   <value>idcidc</value>
              </repository-property>
              <repository-property>
                   <description>SSL keystore alias name. Only used when
                   ContentServerServiceType is INTRADOC_SSL
                   </description>
                   <name>ContentServerSSLKeystoreAlias</name>
                   <value>SecureClient</value>
              </repository-property>
              <repository-property>
                   <description>SSL keystore alias password. Only used when
                   ContentServerServiceType is INTRADOC_SSL
                   </description>
                   <name>ContentServerSSLKeystoreAliasPassword</name>
                   <value>idcidc</value>
              </repository-property>
              <read-only>true</read-only>
              <binary-cache-max-entry-size>102400</binary-cache-max-entry-size>
              <!-- metadata search -->
              <search-is-enabled>true</search-is-enabled>
              <!-- full text search -->
              <fulltext-search-is-enabled>true</fulltext-search-is-enabled>
              <search-indexing-is-enabled>false</search-indexing-is-enabled>
         </content-store>
    </content-config>
    p13n-cache-config.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <p13n-cache-config xmlns="http://www.bea.com/ns/p13n/90/p13n-cache-config">
         <!--
              This is the caches for the default content repository. The IDE should
              copy this to META-INF/p13n-cache-config.xml of the application. These
              caches are for the default WLP Repository. You can modify these to fit
              your needs. If you remove the WLP Repository, you can remove these
              entries.
         -->
         <cache>
              <name>nodeCache.UCMRepository</name>
              <description>Caches node id to node instance for UCMRepository</description>
              <time-to-live>60000</time-to-live>
              <max-entries>50</max-entries>
         </cache>
         <cache>
              <name>nodePathCache.UCMRepository</name>
              <description>Caches node path to node instance for UCMRepository</description>
              <time-to-live>60000</time-to-live>
              <max-entries>50</max-entries>
         </cache>
         <cache>
              <name>typeCache.UCMRepository</name>
              <description>Caches binary property values for UCMRepository</description>
              <time-to-live>300000</time-to-live>
              <max-entries>200</max-entries>
         </cache>
         <cache>
              <name>typeNameCache.UCMRepository</name>
              <description>Caches type id to content type for UCMRepository</description>
              <time-to-live>300000</time-to-live>
              <max-entries>200</max-entries>
         </cache>
         <cache>
              <name>binaryCache.UCMRepository</name>
              <description>Caches type name to content type for UCMRepository</description>
              <time-to-live>60000</time-to-live>
              <max-entries>10</max-entries>
         </cache>
         <cache>
              <name>searchCache.UCMRepository</name>
              <description>Caches node id to node for UCMRepository</description>
              <time-to-live>300000</time-to-live>
              <max-entries>200</max-entries>
         </cache>
         <cache>
              <name>nativeAuthCacheUCMRepository</name>
              <description>Caches node path to node for UCMRepository</description>
              <time-to-live>5000</time-to-live>
              <max-entries>5000</max-entries>
         </cache>
         <cache>
              <name>repo.ucm.typeNameCache.UCMRepository</name>
              <description>Caches node id to node instance for UCMRepository</description>
              <time-to-live>1800000</time-to-live>
              <max-entries>5000</max-entries>
         </cache>
         <cache>
              <name>repo.ucm.nodePathToUidCache.UCMRepository</name>
              <description>Caches node id to node instance for UCMRepository</description>
              <time-to-live>1800000</time-to-live>
              <max-entries>5000</max-entries>
         </cache>
         <cache>
              <name>repo.ucm.nodeUidCache.UCMRepository</name>
              <description>Caches node id to node instance for UCMRepository</description>
              <time-to-live>1800000</time-to-live>
              <max-entries>5000</max-entries>
         </cache>
         <cache>
              <name>repo.ucm.securityInfoCache.UCMRepository</name>
              <description>Caches node id to node instance for UCMRepository</description>
              <time-to-live>1800000</time-to-live>
              <max-entries>5000</max-entries>
         </cache>
         <cache>
              <name>repo.ucm.typeNamesCache.UCMRepository</name>
              <description>Caches node id to node instance for UCMRepository</description>
              <time-to-live>1800000</time-to-live>
              <max-entries>5000</max-entries>
         </cache>
         <cache>
              <name>repo.ucm.indexedFieldsCache.UCMRepository</name>
              <description>Caches node id to node instance for UCMRepository</description>
              <time-to-live>1800000</time-to-live>
              <max-entries>5000</max-entries>
         </cache>
    </p13n-cache-config>

    Hi Venu,
    Normally if you can see the UCM content in the admin console, it means the adapter is configured correctly and the placeholder should work. There's a couple of things I can suggest:
    1. Did you include the oracle-ucm-spi-app-lib.ear file in your project as documented under the heading Add a Reference to the UCM VCR Adapter Shared Library in the UCM VCR adapter installation docs ( [http://download.oracle.com/docs/cd/E13155_01/wlp/docs103/ucm_adapter/install.html|http://download.oracle.com/docs/cd/E13155_01/wlp/docs103/ucm_adapter/install.html] )?
    2. Browse to a document in the repository in the admin console. Pick one of the fields there (e.g. IDC:Folder.dDocId), grab the value and run a query using the placeholder. Do you get a single result?
    3. The original poster (user8867138) mentions a query along the lines of returning all folders that has dDocAuthor = sysadmin. If your UCM system had 10,000 folders all created by sysadmin, the adapter might be timing out? IIRC, you can adjust the timeout in UCM.
    4. Did you try a similar query using Content Selector instead?
    5. If the WLP server domain is running on a separate machine, is UCM configured to accept connections from the WLP server but not your machine?
    I would suggest getting the latest patches for WLP too as some of them are related to the UCM VCR adapter.
    Cheers,
    Cappa

  • Sun-faces-config.xml question

    Hello all,
    maybe this question is a bit silly, but i�m a newbie to this. I�m developing a complib file with a custom component; and I want to add custom properties to it. As far as I�ve done, i�m able to add custom string properties via the "StringPropertyEditor"
    All this is done in the sun-faces-config.xml file, and when I declare a property which can be set via a combo-box, this is, with a "SelectOneDomainEditor" in the sun-faces-config.xml, I don�t know how to populate this combo with data to be shown so it can be selected in the properties window.
    I�d be truly grateful to anyone who can help me out, maybe a short sample or fraction of a sun-faces-config would be fine.
    Thanks everyone in advance, and sorry for the long read,
    MANUEL ANS�N.

    Hi ,
    The follwing link may probably answer your query.
    http://swforum.sun.com/jive/thread.jspa?threadID=50215&tstart=15
    Regards.,

  • Query on bpel.config.OneWayDelivery Property

    Hello,
    I have a query on bpel.config.OneWayDelivery Property.
    Scenario : In case of any error in BpelProcess A , it will call BpelProcess B .So BpelProcessB will be called in the catchAll branch of Process A. After calling Process B, i am throwing a fault in Process A to rollback process A (as there is a DB adpater in it which i want to roll back). To invoke Process B in a separate transaction i set the bpel.config.transaction to requires new in the component section of composite.xml of process B. Please not Process B is ASynchronous process. Now :
    Case 1: By setting only bpel.config.transaction property to 'requiresnew'.
    Process A gets error, it calls Process B and it itself get rolledback (because of throw activity after a call to Process B). Now in the instance of Process A i am not able to see the trace of Process B. Only Process B name is appearing, also Process B didn't get executed at all or might be rolledback along with process A (not sure on this).
    Case 2: By setting only bpel.config.transaction property to 'requiresnew' and  bpel.config.OneWayDelivery property to 'sync'.
    In this case everything works fine like Process A call Process B in case of Error. Process A get rolledback successfully and i am able to see the trace of Process B as it get executed successfully.
    Questions :
    In case1 though i have set the transaction=requiresnew, why Process B is not getting executed and i am not able to see the trace of it.Ideally Process B should get executed in a seperate transaction. While in Case2, everything works fine. So what exactly happening after placing 'OnewayDelivery' Property, that it started working.
    I have went through the documents on 'OnewayDelivery', but i didn't get the clear idea corresponding to my scenarios explained above.
    Can anyone please explain on how exactly 'OnewayDelivery' property works.
    Thanks.

    So,
    For Case 1 : When Process B is getting executed in a separate Thread and Transaction , then when process A is getting rolled back why B is also getting rolled back as it's in different thread althgether.
    3) For Case2 : Please clear my following understanding :
    When we set the value to 'sync' for process B, then B will act like a synchronous process(ideally it Async), and will get committed after the it's execution. Because of this, even if A is getting rolled back, B will not get rolledback because it is already committed. For case 1:
    By calling process B, an invocation message is being insert into the dehydration store. That causes process B to be created as a new thread/transaction.
    When you perform rollback->the new transaction that was made following the new thread, is being rollback among the rest of your process transaction(the rollback causes the message not to be save and for that you can't see new instance).
    For case 2:
    By calling process B, only a new transaction is being creating, and invocation message is not being insert into the dehydration store.
    So actualy, you have 1 thread and 2 transactions, and you are telling your process(thread) to rollback only the current transaction and not the new one (process A not owns the new transaction).
    2) You mentioned if we are calling Process B with No Rollback. How to call B with No Rollback? Is there any property like that? It was just an example. Forget about it.
    I hope it answered you questions...
    Arik

Maybe you are looking for

  • DB Adapter Hangs from time to time ? ... anyone else noticed this ?

    I have noticed [ SOA Suite 10.1.3.3 with patches ] that a simple DB-Adapter - > 1:1RS -> DB-Adapter deleting rows as it goes - i.e. just moving rows can become hung Matching Primary Keys are on both tables and they are all simple types [ string, int

  • Need Help figuring out security sandbox issue after changing webhost

    I'm in the process of switching my webhost from 1&1 shared hosting to a dedicated IP address with a smaller company that specializes in Drupal sites and doesn't know much about flash.  1&1 is still the Registrar for my domain, but I've 'parked' YourG

  • Retrieve DBID when Primary DB is not available

    Oracle 10g R2 on AIX For restore/recover DB, I need to set the DBID at the beginning of the RMAN process. From what I read till now, the easy way is to 1. copy down the DBID when I use the RMAN for backup first time and save it some where. 2. in the

  • Yosemite Bootable Disk mounts but will not boot

    My iMac is running slow and often gets the spinning wheel, but I haven't been able to use Creative Cloud at all since we moved house. I've tried reinstalling creative cloud, reinstalling Yosemite from recovery disk, nothing is working. So I want to d

  • Can I use my iMac (Flat Panel) as a monitor for my laptops?

    Hi. I've got a MacBook, MacBook Pro, and a iMac Flat Panel. I'd like to use the Flat Panel as monitor for the two laptops (not simultaneously, of course.) Is this possible? If so, what's the best way to set it up?