LCES server caches the custom component classes

I found that sometime during the (patching) deploy/undeploy install/uninstall phase of custom component LCES start 'caching the custom component or its helper classes' and any changes made to them does not get reflected.
But after the server restarted every thing work as expected.
i.e. If server is restarted the latest changes to component deployed previously to server restart get reflected.
Pl. help.
Any one had simillar issue?
Thanks
Yog

Hi Paul,
I have tried both of these frequently (many times)
1) Component > STOP > PATCH > START
2) Component > STOP > UNINSTALL > INSTALL > START
but no effect after some point when server keeps the cache. (it works some time but not all the time I thought 2nd approach should always work)
But if I restart the server it seems to show the expected result always.
Does any Adobe teche knows how to gaurrentee 100% that chnges will reflect after new version of the component is installed without restart of the server.
Also I seen some inside the service impl at the begining of the service method code store the classloader:
ClassLoader originalClassloader = Thread.currentThread().getContextClassLoader();
and restore it at the end of service method:
if (originalClassloader != null) {
Thread.currentThread().setContextClassLoader(originalClassloader);
How does this affect?
and also if one component depends on another how does that affect?
Thanks
Yog

Similar Messages

  • Error  "expected a myfaces custom component class in package"

    Can anybody help me on this?
    just copied the sandbox code on selectmanypicklist and tried in a separate package of mine.
    created a jsp page and used the selectmanypicklist component and im getting the component on my browser.
    But whn i added the javascript resource calling by "encodeJavascript(facesContext, uiComponent);" im geting an error saying tht "expected a myfaces custom component class in package org.apache.myfaces.custom". i placed the java script file in "mypackage/list/resource/pikscript.js".
    should i add anything on faces-config.xml file or anywhr else?
    Anybody can help on this?
    Thanx in Advance.

    The problem is that it calls a method validateCustomComponent in MyFacesResourceHandler to see if it can load the js file. This method controlls if the path of the js file begins with org.apache.myfaces.custom. If not throws an exception and doesn't load the file. I changed the package of the class that's trying to load the file in org.apache.myfaces.custom.xx and the package of the file js in org.apache.myfaces.custom.xx.resource. Now it's working.

  • Getting port no of UCM server in which custom component is installed

    Hi All,
    I have an requirement to get an port no of UCM server in which custom component is installed.
    Is there any way to get the port information using intradocBinder ?

    Try the following:
    SharedObjects.getEnvironmentValue("IntradocServerPort");
    http://jonathanhult.com/intradoc-api/intradoc/shared/SharedObjects.html
    Jonathan
    http://jonathanhult.com

  • Stellent  UCM :: calling javascript inside the custom component

    Hi Experts,
    I am new to the stellent content server (Oracle content server). Currently we are working on the project which needs to be integrated with the content server for the content selection. I did some prototype to pass back the selection value to the parent window using the javascript window.opener.<parent java script> from a dummy page. Now i am customizing the content server custom component. Unfortunately i cannot be able to call back the parent javascript from the custom component. Seems the window.opener is null.
    I have tried with windowUtils.getOpener() method which is available in the content server weblayout. Still i could not be able to call back.
    Guys i am looking forward your idea ? If anyone knows the way to resolve this issue or any other best suitable way to handle this please ping me back.
    Regards Thiva

    Hi Experts,
    I am new to the stellent content server (Oracle content server). Currently we are working on the project which needs to be integrated with the content server for the content selection. I did some prototype to pass back the selection value to the parent window using the javascript window.opener.<parent java script> from a dummy page. Now i am customizing the content server custom component. Unfortunately i cannot be able to call back the parent javascript from the custom component. Seems the window.opener is null.
    I have tried with windowUtils.getOpener() method which is available in the content server weblayout. Still i could not be able to call back.
    Guys i am looking forward your idea ? If anyone knows the way to resolve this issue or any other best suitable way to handle this please ping me back.
    Regards Thiva

  • Custom Component Classes

    Hi all
    I have been learning flex for a few months now and absolutely
    loving it!
    But there is one thing I can't get my head round. I use to be
    a Flash user mostly which is probably why I am getting confused....
    I want to be able to make custom components that all use one
    custom class.
    For example, I have custom canvas components that are 'pages'
    which I am loading dynamically as and when needed. When they load I
    want them to fade in using the fade effect. Up until now I have
    written the code to do this on each component, which is quite
    annoying considering I have many pages.
    I would like a custom class with the code in it for the fade
    which every 'page' component uses, so each will fade in when
    loaded.
    I could this really easily using MovieClips in flash, but
    flex seems different. Maybe I am getting confused with regards
    Canvases and MovieClips.
    Please can someone help me? :)

    "gamedesign1000" <[email protected]> wrote
    in message
    news:gn17i4$eha$[email protected]..
    > Hi all
    >
    > I have been learning flex for a few months now and
    absolutely loving it!
    > But there is one thing I can't get my head round. I use
    to be a Flash user
    > mostly which is probably why I am getting confused....
    > I want to be able to make custom components that all use
    one custom class.
    > For example, I have custom canvas components that are
    'pages' which I am
    > loading dynamically as and when needed. When they load I
    want them to
    > fade in
    > using the fade effect. Up until now I have written the
    code to do this on
    > each
    > component, which is quite annoying considering I have
    many pages.
    > I would like a custom class with the code in it for the
    fade which every
    > 'page' component uses, so each will fade in when loaded.
    > I could this really easily using MovieClips in flash,
    but flex seems
    > different. Maybe I am getting confused with regards
    Canvases and
    > MovieClips.
    >
    > Please can someone help me? :)
    >
    >
    Why not just define the effect in the main file and then
    apply it from the
    outside, rather than locking your component into one effect:
    <yourNameSpace:YourCanvas width="200" height="200"
    creationCompleteEffect="{someEffectYouMade}" />

  • I have problem with the BPEL server caching the jar file of Instance

    Is there any way to undeploy and redeploy a process where you have changes to the underlying DA, without the BEPL server being restarted. This always works in my Local BPEL server in my Laptop. But when deploying in the hosted BPEL enviroment it becomes a big problem in getting it restarted when ever I MAKE changes.
    Is there any other way to disable the Cache of the instance and make it use the newer version uploaded. One more thing if the connection to a database is severed, then the DA will not work until the server is restarted. All the instances using the said connection is failing with either "Invalid Datatype" or "Socket Read exception". Can someone help!!
    Thanks,
    Prabhakar

    Hi,
    have you tried to kill the session of the DA in the database?

  • Custom component class is not detecting url parameter

    I have a hcsp page, on which i have a link something like this :
    "<$HttpCgiPath$>?IdcService=CUSTOM_SERVICE&var1=value1"
    m appending one more parameter in this url through java script.
    so one is the var1 which is directly here in the url and one m appending through java script so my final url would be:
    "<$HttpCgiPath$>?IdcService=CUSTOM_SERVICE&var1=value1&var2=value2"
    M calling a java function which fetches these variable.
    my code is
    String value1=m_binder.getlocal("var1");
    This is working fine .
    But when i do it for var2, this gives an error " variable var2 is not found" in the logs.
    Please guide
    Thanks,
    Chely
    Edited by: Chely on Jan 17, 2013 3:08 AM
    Edited by: Chely on Jan 17, 2013 3:09 AM

    Thanks Jonathan. i have executed m_binder.toString() and in the logs:
    m_binderString
    *** LocalData ***
    (9 keys + 0 defaults)
    IdcService=SUNRISE_DEL_TAX_USER
    XmlEncodingMode=Full
    dUser=UCMDev_Idc
    idcToken=1358675908923:318447AB701D7A6E92FDDAFA9DEBCC3D
    var1=1
    tax_type=N
    uname=cbohra001c
    *** RESULT SETS ***
    var1 is here but var2 is not here in the result set, Now what should i do to make it available in my binder,because in my hcsp java script i have an alert of url and in this alert i am able to see the complete url including var1 and var2.
    Thanks,
    Chely
    Edited by: Chely on Jan 18, 2013 2:06 AM

  • How to construct the component tree in my custom component?Help!

    Hi, i am writing a custom component like this:
    public class HtmlCategory extends HtmlPanelGrid
         public void processRestoreState(javax.faces.context.FacesContext context,
                java.lang.Object state)
              setColumns(1);
              HtmlCommandLink link=new HtmlCommandLink();
              link.setValue("Let's Bingo");
              MyUtil.setActionListener(context,link,"#{temp.mytest}");
              UIParameter param=new UIParameter();
              param.setName("name");
              param.setValue("Robin!");
              link.getChildren().add(param);
              param.setParent(link);
              getChildren().add(link);
              link.setParent(this);
              super.processRestoreState(context,state);
    }         you see, i want to construct the compont tree at Restore View phase this way,because the structure of the component tree will always be the same, so i don't the user to write extra code.
    But the children of the component are not rendered,the renderer of the HtmlCategory component just extends the HtmlGridRenderer(myfaces) directly,and always calls the "super" methods in the encode methods of the renderer.
    I got a message from the console:
    Wrong columns attribute for PanelGrid id0:id4: -2147483648
    but i have set the columns attribute in the code above, so what's happening? or please give some advice about how to render the component tree by myself in Restore View with the tree constructing code in the custom component class code,just lke the code above.
    Best Regards:)
    Robin

    Well, i don't know if i have got my question clear.
    usually, according to the tags you use in the jsf page, a component tree will be created at the Restore View phase,for example:
    <f:form>
      <h:panelGrid ...........>                         
              <h:dataTable ................>
              </h:dataTable>
       </h:panelGrid>
    </f:form>but because i am writing a component for my web app, all the child components and their attributes are not likely to change. so i want to reduce the tags into one custom tag, and construct the component tree internally by myself.But it is not the case of backing bean.So i wrote the the code in the method:
    public void processRestoreState(javax.faces.context.FacesContext context,java.lang.Object state)as it is shown in my orginal message.But it seems that it is not right way to construct my component tree.So where should i put the code that construct the component tree?Overriding the method :
    public void processRestoreState(javax.faces.context.FacesContext context,java.lang.Object state)is not the right way?
    Best Regards:)
    Robin

  • PPR on custom component

    I have a custom component for calendar. When invoking PPR on the component it refreshes the entire contents of the page and the custom component doesn't work properly after that.
    If I manually do full a page refresh then the component works properly.
    There is a thread with a similar problem was resolved Re: PPR on custom component?
    In above thread the solution was to add below in the custom component class.
    @Override
    protected FacesBean.Type getBeanType()
    return TYPE;
    I do have this code in my custom component class but may be I am missing something else. Does anyone have a suggestion of how to make this work? I'd appreciate your help a lot.

    Yes, I've seen that page on Trinidad. It was helpful, but it seems it was mostly about using PPR, not about building it into a custom component. The one part that did talk about custom components was this, near the end:
    "Finally, if you're implementing a custom component, you aren't extending the Trinidad UIXComponentBase base class or one of its subclasses, and you want to support partialTriggers, you'll need to use addPartialTriggerListeners(). If you deliver events, and you want to support being the target of partialTriggers, you'll need to use partialUpdateNotify(). "
    Then it gives code snippets for each of those. In my case, I am extending UIXComponentBase, and I am including this code, and I know addPartialTriggerListeners gets called, but my component still doesn't get the updated data. If I right-click the page and select Refresh, it redraws correctly, and other components that have partial-triggers on the same component I do, do get the update properly. So I must be missing something.
    Also, where can I get the open source of the components from? I haven't found anywhere to download them from. Can you point me at them?

  • How to create custom java class in Content Server

    Hi All,
    I want to develop a custom java class (.class) file and upload in the UCM(Stellent Content Server). The problem is that I have to use some objects like DataResultSet, SharedObjects etc in my java class file. Since these class files resides in the Content Server I am not able to create a custom java class with these objects.
    Can any one help me to solve the above issue
    With thanks and regards
    Mohan

    Hey there,
    All of the core content server class files are included in a single jar file. This jar is in one of 2 places in the 10gr3 version of UCM:
    1. If you have an unpatched content server include $IntradocDir/shared/classes/server.zip in your classpath
    2. If you have a patched content server include $IntradocDir/custom/CS10gR35CoreUpdate/classes.jar in your classpath.
    In UCM 11g the jar file is located in %MIDDLEWARE_HOME%/Oracle_ECM1/ucm/idc/jlib/idcserver.jar
    P.S. Venkat is correct, post UCM specific questions in the ECM forum.
    Hope that helps,
    Andy Weaver - Senior Software Consultant
    Fishbowl Solutions < http://www.fishbowlsolutions.com?WT.mc_id=L_Oracle_Consulting_amw_OTN_WCS >

  • Passing arguments to a custom component in the constructor

    I would like to know if it is possible to pass arguments to a
    custom component in the constructor when I'm instantiating it
    within Actionscript. I've not seen anyone do this, so at the moment
    I have a couple of public properties defined on the custom
    component and then do the following:
    var myComponent:TestComponent = new TestComponent();
    myComponent.propertyOne = true;
    myComponent.propertyTwo = 12;
    etc.
    Whereas I'd like to do something like:
    var myComponent:TestComponent = new TestComponent( true, 12
    Any ideas if this is possible?

    Another approach as opposed to creating init function is to link symbol with autogenerated class (just assign it a class but do not create *.as file for it) and use it just as graphical view with no functionality (well only MovieClip's functionality).
    ViewClip.as
    public class ViewClip extends MovieClip {
        public var view:MovieClip;
        public function ViewClip(){
            this.view = instantiateView();
            this.addChild(view);
        protected function instantiateView():MovieClip {
            return new MovieClip();
    Circle.as
    public class Circle extends ViewClip {
        public function Circle(scaleX:Number, scaleY:Number) {
            super();
        override protected function instantiateView():MovieClip {
            return new ClassView();

  • Can I use Partial class to enhance a typed dataset without losing the custom code?

    Hi All,
    I wanted to see if I could use a Partial class for one of the datatable classes to add custom code so that when the dataset is regenerated I don't lose my code.
    Partial public
    Class
    WA_MMTP_TrackerDataSet1
     'Code for dataset
     Partial Public Class PATIENTSTableAdapter
            <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
             Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"),  _
             Global.System.ComponentModel.DataObjectMethodAttribute(Global.System.ComponentModel.DataObjectMethodType.Fill, true)>  _
            Public Overloads Overridable Function FillbyClinicianId(ByVal dataTable As WA_MMTP_TrackerDataSet1.PATIENTSDataTable, ClinicianId As Integer, sql As string) As Integer
                 Dim dd As System.Data.SqlClient.SqlCommand
                dd = new System.Data.SqlClient.SqlCommand
                dd.CommandText = Sql
                dd.Connection = OpenConnection() '  UsersTableAdapter1.Connection
                Me.Adapter.SelectCommand = dd 'Me.CommandCollection(0)
                If (Me.ClearBeforeFill = true) Then
                    dataTable.Clear
                End If
                Dim returnValue As Integer = Me.Adapter.Fill(dataTable)
                Return returnValue
            End Function
    'Other code for datatable
    end class
    end class
    I'd like to take the function FillbyClinicianId and put it in a separate partial class like so and remove the function by the same name from the original file (dataset file):
    Partial Public Class PATIENTSTableAdapter
            <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
             Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"),  _
             Global.System.ComponentModel.DataObjectMethodAttribute(Global.System.ComponentModel.DataObjectMethodType.Fill, true)>  _
            Public Overloads Overridable Function FillbyClinicianId(ByVal dataTable As WA_MMTP_TrackerDataSet1.PATIENTSDataTable, ClinicianId As Integer, sql As string) As Integer
                 Dim dd As System.Data.SqlClient.SqlCommand
                dd = new System.Data.SqlClient.SqlCommand
                dd.CommandText = Sql
                dd.Connection = OpenConnection() '  UsersTableAdapter1.Connection
                Me.Adapter.SelectCommand = dd 'Me.CommandCollection(0)
                If (Me.ClearBeforeFill = true) Then
                    dataTable.Clear
                End If
                Dim returnValue As Integer = Me.Adapter.Fill(dataTable)
                Return returnValue
            End Function
    end class
    But when I try this, the compiler gives the following errors:
    Error 91 'Adapter' is not a member of 'AttendTrackerFull.WA_MMTP_TrackerDataSet1.PATIENTSTableAdapter'. 
    Error 92 'ClearBeforeFill' is not a member of 'AttendTrackerFull.WA_MMTP_TrackerDataSet1.PATIENTSTableAdapter'. 
    I guess I'm a little confused. once code is moved into the custom partial class it seems to lose any knowledge of the main class file and any references in the class. Am I doing it wrong? or is it a restriction of the .Net since it is in another
    file. If its because its in another file, my next question would it be better to take the partial class I created to contain my custom code, should I just move my partial class to the bottom of the dataset.designer.vb file? But if I do this, wont it still
    erase my custom code. Any suggestions?
    Thanks
    Michael

    Thanks for the reply.
    They are compile time errors, but the error shows up even before compiling, so I guess it would be designer time exception also.
    What I did the other day was to create a new class file (didn't add a namespace statement to class) then added the code in prev message. This morning I added a new module and added the prev code in it incased in the namespace
    namespace ADO.NET.DataSet1TableAdapters statement. But I still have the same errors messages. I tried
    to set the Custom tool.namespace property of the dataset to WA_MMTPDataset and then did the following in a module:
    namespace WA_MMTPDataset
    Module Module4
    Partial Public Class PATIENTSTableAdapter
    <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
    Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"), _
    Global.System.ComponentModel.DataObjectMethodAttribute(Global.System.ComponentModel.DataObjectMethodType.Fill, true)> _
    Public Overloads Overridable Function FillbyClinicianId(ByVal dataTable As WA_MMTP_TrackerDataSet1.PATIENTSDataTable, ClinicianId As Integer, sql As string) As Integer
    Dim dd As System.Data.SqlClient.SqlCommand
    dd = new System.Data.SqlClient.SqlCommand
    dd.CommandText = Sql
    dd.Connection = OpenConnection() ' UsersTableAdapter1.Connection
    Me.Adapter.SelectCommand = dd 'Me.CommandCollection(0)
    If (Me.ClearBeforeFill = true) Then
    dataTable.Clear
    End If
    Dim returnValue As Integer = Me.Adapter.Fill(dataTable)
    Return returnValue
    End Function
    End Class
    Partial Public Class UsersTableAdapter
    <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
    Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"), _
    Global.System.ComponentModel.DataObjectMethodAttribute(Global.System.ComponentModel.DataObjectMethodType.Fill, true)> _
    Public Overloads Overridable Function FillbyClinicianId(ByVal dataTable As WA_MMTP_TrackerDataSet1.UsersDataTable, ClinicianId As Integer, sql As string) As Integer
    Dim dd3 As System.Data.SqlClient.SqlCommand
    dd3 = new System.Data.SqlClient.SqlCommand
    dd3.CommandText = Sql
    dd3.Connection = OpenConnection()
    Me.Adapter.SelectCommand = dd3 'Me.CommandCollection(0)
    If (Me.ClearBeforeFill = true) Then
    dataTable.Clear
    End If
    Dim returnValue As Integer = Me.Adapter.Fill(dataTable)
    Return returnValue
    End Function
    End Class
    End Module
    End Namespace
    But I'm still getting the same errors.

  • How to call Party Validation in the Custom EDI Pipeline component

    Hi ,
    There are two business divisions in our organizations. We have one party. Now we have to enable the ISA13 duplicate functionality for one business divisions. But the sender will send the same ISA06 and ISA08. Inorder to enable it may followed
    the below approach,
    Receive the File -> Change the ISA08 value -> Publish -> Validate with the party (Check ISA13 enabled) .
    For the above process, created a pipeline component to change the ISA08 value. Now how do we can enable the message to get validated for "Validate with the party (Check ISA13 enabled)".
    Thanks,
    Sathish

    Thank you boatseller for the swift response.
    Yes I have created a new agreement with Check ISA13 enabled.
    Yes i have placed the custom component(replace ISA08) in the Decode stage, then i used the builtin EDIDisassembler in the Disassembler stage, It is working fine. But i don't want to disassemble the message. Just required to validate the Party with its agreement.
    And let it get streamed to next stage.
    Please advice.

  • Creating a button that leads back into the main Pages/States from a custom component

    Hello Y'all! isnt F.C. awesome!
    BUT... just cant get a button that leads from a custom component ive made back into the main bulk of pages and states ive created to work.
    it runs a bit like this:
    Main title page...
                            Photography...
                                                 Nature (on which theres a Custom Component which when clicked leads to...)
                                                            20 different custom component states each with different pics, linked via buttons
    from each of which id love a button that led back to Photography, exiting the custom component
    ive tried the basics:      Add interaction.. when clicked.. play transition to.. state: Photography
    but to no avail
    any ideas? im at a loss!
    thanks in advance,
    Tom

    Cross component communications are an issue in Flash Catalyst 1.0. Thankfully, in Flash Catalyst 5.5 the team addressed some of those issues.
    The only idea I have for remove the 'return' button from within the component, then it should be able to get you back to the home state.
    Or, you might be able to wait a few weeks for the new version of Flash Catalyst to ship (or you can play with the older preview release on labs.adobe.com)
    Chris

  • Flex Print Job not working with custom component

    Hi All,
    I have to print pages with header, body and footer. So the thought process was to create a custom component fro header, footer and body. Header component is based on Box, Body is a renderer (which will have fix value of items - and will decide the number of possible pages) and footer is again based on Box.
    But when i created a simple Custom component like this for header
    <?xml version="1.0" encoding="utf-8"?>
      <mx:VBox  xmlns:fx=http://ns.adobe.com/mxml/2009
      xmlns:s="library://ns.adobe.com/flex/spark"
      xmlns:mx="library://ns.adobe.com/flex/mx">
    <fx:Declarations>
    <!-- Place non-visual elements (e.g., services, value objects) here -->
    </fx:Declarations>
    <mx:HBox>      <mx:Label id="testLabel" text="Test Container"/>
    </mx:HBox> 
    </mx:VBox>
    Then when i try to add this to FlexPrintJob, and save it as 'xps' to see the print output, i get error message that this file is in use or damaged.
        var myPrintJob:FlexPrintJob = new FlexPrintJob();
      if(!myPrintJob.start()){
          return;
    var header:Header = new Header();
    header.width = myPrintJob.pageWidth;
    header.visible = false;
    FlexGlobals.topLevelApplication.addChild(panierPrintHeader);
    myPrintJob.addObject(header);
    myPrintJob.send();
    FlexGlobals.topLevelApplication.removeChild(panierPrintHeader);
     But this does not work and i get the above mentioned exception. Now when i not use the custom component and just have a label or HBox or anything on stage before the print functionality is invoked, it works fine. And this too haapens only if you have a mxml component, i tried by creating a new Label component using actionscript and then provide the same to the printJob, which did not work either. I need help on this, else i will have to take print functionality to server side(Java) which has some business implications, the reason why i am spending time on flex for printing. 
    Thanks and Regards,
    Jigar
    Looks like custom component print is not working fine with flex or i am doing something terribly wrong.
    Looking forward for help.

    Is there nobody in flex community who can help on this....
    Looks like a toothless class that adobe actionscript team has provided, which is not liked across much

Maybe you are looking for