Error thrown : Context must be instance of org.apache.cocoon.environment.

I am trying to load a jsp page in my application(struts application). The jsp uses jsf and is loaded from the application mentioned. My web.xml has the following entries:
<web-app>
  <listener>
    <listener-class>MyListener</listener-class>
  </listener>
  <servlet>
    <servlet-name>Cocoon</servlet-name>
    <display-name>Cocoon</display-name>
    <description>The main Cocoon servlet</description>
    <servlet-class>org.apache.cocoon.servlet.CocoonServlet</servlet-class>
    <init-param>
      <param-name>allow-reload</param-name>
      <param-value>yes</param-value>
    </init-param>
    <init-param>
      <param-name>autosave-uploads</param-name>
      <param-value>false</param-value>
    </init-param>
    <init-param>
      <param-name>cocoon-logger</param-name>
      <param-value>core</param-value>
    </init-param>
    <init-param>
      <param-name>configurations</param-name>
      <param-value>/WEB-INF/cocoon.xconf</param-value>
    </init-param>
    <init-param>
      <param-name>init-classloader</param-name>
      <param-value>false</param-value>
    </init-param>
    <init-param>
      <param-name>log-level</param-name>
      <param-value>ERROR</param-value>
    </init-param>
    <init-param>
      <param-name>logkit-config</param-name>
      <param-value>/WEB-INF/logkit.xconf</param-value>
    </init-param>
    <init-param>
      <param-name>manage-exceptions</param-name>
      <param-value>true</param-value>
    </init-param>
    <init-param>
      <param-name>overwrite-uploads</param-name>
      <param-value>rename</param-value>
    </init-param>
    <init-param>
      <param-name>request-factory</param-name>
      <param-value>org.apache.cocoon.components.request.MultipartRequestFactoryImpl</param-value>
    </init-param>
    <init-param>
      <param-name>servlet-logger</param-name>
      <param-value>access</param-value>
    </init-param>
    <load-on-startup>1</load-on-startup>
  </servlet>
  <servlet>
    <servlet-name>portal</servlet-name>
    <servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
    <init-param>
      <param-name>config</param-name>
      <param-value>/WEB-INF/struts-config.xml</param-value>
    </init-param>
    <init-param>
      <param-name>debug</param-name>
      <param-value>3</param-value>
    </init-param>
    <init-param>
      <param-name>detail</param-name>
      <param-value>3</param-value>
    </init-param>
    <load-on-startup>2</load-on-startup>
  </servlet>
  <servlet>
        <servlet-name>Faces Servlet</servlet-name>
        <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
        <load-on-startup> 1 </load-on-startup>
    </servlet>
  <!--JSPCONF-->
  <servlet-mapping>
    <servlet-name>portal</servlet-name>
    <url-pattern>*.exec</url-pattern>
  </servlet-mapping>
  <servlet-mapping>
    <servlet-name>Cocoon</servlet-name>
    <url-pattern>/cocoon</url-pattern>
  </servlet-mapping>
  <servlet-mapping>
    <servlet-name>Cocoon</servlet-name>
    <url-pattern>/cocoon/*</url-pattern>
  </servlet-mapping>
  <servlet-mapping>
        <servlet-name>Faces Servlet</servlet-name>
        <url-pattern>*.jsf</url-pattern>
  </servlet-mapping>
  <session-config>
    <session-timeout>90</session-timeout>
  </session-config>
  <mime-mapping>
    <extension>css</extension>
    <mime-type>text/css</mime-type>
  </mime-mapping>
    <mime-mapping>
        <extension>xls</extension>
        <mime-type>application/vnd.ms-excel</mime-type>
    </mime-mapping>
  <welcome-file-list>
    <welcome-file>index.jsp</welcome-file>
  </welcome-file-list>
  <error-page>
    <exception-type>java.lang.Exception</exception-type>
    <location>/jsp/runtimeerror.jsp</location>
  </error-page>
  <error-page>
    <exception-type>javax.servlet.ServletException</exception-type>
    <location>/jsp/runtimeerror.jsp</location>
  </error-page>
</web-app>When I try to load the jsp whose contents are as follows :
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<html>
<head>
  <title>enter your name page</title>
</head>
<body>
   <f:view>
     <h1>
      <h:outputText value="my text"/>
     </h1>
     <h:form id="helloForm">
      <h:outputText value="Enter your name :"/>
      <h:inputText value="#{personBean.personName}" />
      <h:commandButton action="greeting" value="Hello " />
     </h:form>
   </f:view>
</body>
</html>I get the following error -
<html><head><title>Apache Tomcat/4.1.31 - Error report</title><STYLE><!--H1{font-family : sans-serif,Arial,Tahoma;color : white;background-color : #0086b2;} H3{font-family : sans-serif,Arial,Tahoma;color : white;background-color : #0086b2;} BODY{font-family : sans-serif,Arial,Tahoma;color : black;background-color : white;} B{color : white;background-color : #0086b2;} HR{color : #0086b2;} --></STYLE> </head><body><h1>HTTP Status 500 - </h1><HR size="1" noshade="noshade"><p><b>type</b> Exception report</p><p><b>message</b> <u></u></p><p><b>description</b> <u>The server encountered an internal error () that prevented it from fulfilling this request.</u></p><p><b>exception</b> <pre>javax.faces.FacesException: Context must be instance of org.apache.cocoon.environment.Context
     at org.apache.cocoon.faces.context.FacesContextFactoryImpl.getFacesContext(FacesContextFactoryImpl.java:55)
     at javax.faces.webapp.FacesServlet.service(FacesServlet.java:192)
     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:200)
     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:146)
     at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:209)
     at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
     at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
     at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
     at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:144)
     at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
     at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
     at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
     at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2358)
     at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:133)
     at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
     at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:118)
     at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594)
     at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:116)
     at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594)
     at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
     at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
     at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:127)
     at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
     at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
     at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
     at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:152)
     at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
     at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
     at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
     at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
     at java.lang.Thread.run(Thread.java:534)
</pre></p><HR size="1" noshade="noshade"><h3>Apache Tomcat/4.1.31</h3></body></html>I have no clue as to where I should start troubleshooting for this error. Any advice on this error would help a lot. Please let me know what other details I should provide.

I was using cocoon jars which already had a factory context class. This was overriding the class provided by jsf jar. To rectify it, I added the factory tag with the appropriate class:
<factory>
<faces-context-factory>
com.sun.faces.context.FacesContextFactoryImpl
</faces-context-factory>
</factory>

Similar Messages

  • ?? can not create an instance of org.apache.axis.client.Service

    hi,
    firstly, i should introduce what i am doing now.
    I want to write a Jeanbean, which can invoke 2 web services.
    I found in tomcat, when I submitted the parameters from a web page form, there was Internal Server Error.
    The problem is I can not created an instance of org.apache.axis.client.Service, or an instance of org.apache.axis.client.AxisClient.
    But very stange, I tried to create an instance of org.apache.axis.client.Transport, which should exist in the same package with Service and AxisClien, there was no exceptions.
    can anyone give me some hints?

    Is it a "class not found" error? Have you tried viewing the jar file that you think org.apache.axis.client.Service is in to be sure that it's really in there?
    jar tvf <filename>

  • Org.apache.struts.action.ActionServlet not found in web-application

    Dear All,
    I am new to ADF environment. I tried to create a simple page to show the records from
    a table . I followed the sample application which is available in "Building Oracle ADF Applications: Workshop".
    When i run my action from Struts Page Flow. It is giving error like
    500 Internal Server Error
    Servlet error: Error instantiating servlet 'action'. Servlet class org.apache.struts.action.ActionServlet not found in web-application EmpMaintanance-ViewController-webapp
    anybody can suggest me What i missed?
    Thanks in advance...

    Hi,
    you need to register libraries with th OC4J configuration files. However, you can also deploy the Struts library with you application (see OC4J documentation which is accessible on OTN via Oracle As documentation), in which case they are available from the application classpath
    Frank

  • [ERROR] javaType customization in this context must be nested (JAXB spec

    Hi All,
    when i was trying to generate java classes from schema xjc is giving the below error.
    parsing a schema...
    [ERROR] <javaType> customization in this context must be nested (JAXB spec
    <property>
    <baseType>
    <javaType ...>
    </baseType>
    </property>
    Failed to parse a schema.
    my annotation goes like this for an attribute.
    <xs:attribute name="content_id" type="xs:string">
    <xs:annotation>
    <xs:appinfo>
         <jxb:javaType name="java.lang.Long"
    prseMethod= "javax.xml.bind.DatatypeConverter.parseLong"
    printMethod="javax.xml.bind.DatatypeConverter.printLong" />
    </xs:appinfo>
    </xs:annotation>
    </xs:attribute>
    please help me to resolve this problem
    thanks in advance
    Amar

    Hi All,
    when i was trying to generate java classes from schema xjc is giving the below error.
    parsing a schema...
    [ERROR] <javaType> customization in this context must be nested (JAXB spec
    <property>
    <baseType>
    <javaType ...>
    </baseType>
    </property>
    Failed to parse a schema.
    my annotation goes like this for an attribute.
    <xs:attribute name="content_id" type="xs:string">
    <xs:annotation>
    <xs:appinfo>
         <jxb:javaType name="java.lang.Long"
    prseMethod= "javax.xml.bind.DatatypeConverter.parseLong"
    printMethod="javax.xml.bind.DatatypeConverter.printLong" />
    </xs:appinfo>
    </xs:annotation>
    </xs:attribute>
    please help me to resolve this problem
    thanks in advance
    Amar

  • Error: 1026: Constructor functions must be instance methods.

    I am follwoing a tutorial on linda.com about creating a website in Flash
    everything was going well until i started trying to copy the action script in the online examples
    now I keep getting this error message and can't figure out how to get rid of it:
    1026: Constructor functions must be instance methods.
    any assistance wouold be much appreciated, thank you
    here is the action script I am using for my buttons:
    stop();
    tv.addEventListener(MouseEvent.CLICK, clickSection);
    function clickSection(evtObj:MouseEvent){
    gotoAndStop("tv");

    I'm sorry, I am still not following what you are saying
    here is what I have in the actions layer, frame 1
    stop();
    tv.addEventListener(MouseEvent.CLICK, clickSection);
    anim.addEventListener(MouseEvent.CLICK, clickSection);
    ads.addEventListener(MouseEvent.CLICK, clickSection);
    photo.addEventListener(MouseEvent.CLICK, clickSection);
    film.addEventListener(MouseEvent.CLICK, clickSection);
    home.addEventListener(MouseEvent.CLICK, clickSection);
    function clickSection(evtObj:MouseEvent){
    trace ("The "+evtObj.target.name+" button was clicked!")
    gotoAndStop(evtObj.target.name);
    I am trying to link markers on the actions time line: tv, anim, ads, photo, film and home
    with layers (web pages) on the time line below...

  • Error when Creating a ServiceClientFactory instance JAVA API

    When invoking Assembling a PDF document  quick start I'm having a compilation error when creating a ServiceClientFactory instance:
    //Create a ServiceClientFactory instance
    ServiceClientFactory myFactory = ServiceClientFactory.createInstance(connectionProps);
    The error is: The type com.adobe.idp.Context cannot be resolved. It is indirectly referenced from required .class files
    All the required jars are a path.
    What esle can be a problem ?
    Thanks, Yan

    Since you are using SOAP, you need to have the AXIS jars available.  They are in the LiveCycle_ES_SDK\client-libs\thirdparty directory:
    activation.jar (required for SOAP mode)
    axis.jar (required for SOAP mode)
    commons-codec-1.3.jar (required for SOAP mode)
      commons-collections-3.1.jar  (required for SOAP mode)
    commons-discovery.jar (required for SOAP mode)
    commons-logging.jar (required for SOAP mode)
    dom3-xml-apis-2.5.0.jar (required for SOAP mode)
    jaxen-1.1-beta-9.jar (required for SOAP mode)
    jaxrpc.jar (required for SOAP mode)
    log4j.jar (required for SOAP mode)
    mail.jar (required for SOAP mode)
    saaj.jar (required for SOAP mode)
    wsdl4j.jar (required for SOAP mode)
    xalan.jar (required for SOAP mode)
    xbean.jar (required for SOAP mode)
    xercesImpl.jar (required for SOAP mode)

  • Error thrown in FDKSession class...

    Hi,<br>
    <br>
    I am Getting the following exception inside the construction of oracle.ifs.examples.content.fdk.FdkSession class., at the line <b>"int statuscode = response.getStatusCode();"</b>
    <br><br>
    06/11/16 14:28:52 java.net.ProtocolException: Missing WWW-Authenticate header<br>
    06/11/16 14:28:52 at HTTPClient.AuthorizationModule.handle_auth_challenge(AuthorizationModule.java:512)<br>
    06/11/16 14:28:52 at HTTPClient.AuthorizationModule.responsePhase2Handler(AuthorizationModule.java:391)<br>
    06/11/16 14:28:52 at HTTPClient.HTTPResponse.handleResponse(HTTPResponse.java:751)<br>
    06/11/16 14:28:52 at HTTPClient.HTTPResponse.getStatusCode(HTTPResponse.java:196)<br>
    <br>
    I am getting this error, when i try to fetch the documents stored in OCS for a certain number of times. Roughtly 20 to 30 times.. Is there any restriction on the number of FDKSession objects to be created... I am disconnecting each session instance, after making use of it. Still the problem not resolved...
    Help regarding this would be appreciated.<br><br>
    Thanks,<br>
    Esh.

    In addition to above error, I am getting the following two exeptions while calling fdkSession.disconnect() :
    1). org.apache.axis.ConfigurationException: No service named is available
    at org.apache.axis.configuration.FileProvider.getService(FileProvider.java:233)
    at org.apache.axis.AxisEngine.getService(AxisEngine.java:311)
    at org.apache.axis.MessageContext.setTargetService(MessageContext.java:755)
    at org.apache.axis.transport.http.HTTPTransport.setupMessageContextImpl(HTTPTransport.java:89)
    at org.apache.axis.client.Transport.setupMessageContext(Transport.java:46)
    at org.apache.axis.client.Call.invoke(Call.java:2719)
    at org.apache.axis.client.Call.invoke(Call.java:2424)
    at org.apache.axis.client.Call.invoke(Call.java:2347)
    at org.apache.axis.client.Call.invoke(Call.java:1804)
    at oracle.ifs.fdk.RemoteLoginManagerSoapBindingStub.logout(RemoteLoginManagerSoapBindingStub.java:281)
    2). org.apache.axis.ConfigurationException: No service named RemoteLoginManager is available
    at org.apache.axis.configuration.FileProvider.getService(FileProvider.java:233)
    at org.apache.axis.AxisEngine.getService(AxisEngine.java:311)
    at org.apache.axis.MessageContext.setTargetService(MessageContext.java:755)
    at org.apache.axis.client.Call.invoke(Call.java:2671)
    at org.apache.axis.client.Call.invoke(Call.java:2424)
    at org.apache.axis.client.Call.invoke(Call.java:2347)
    at org.apache.axis.client.Call.invoke(Call.java:1804)
    at oracle.ifs.fdk.RemoteLoginManagerSoapBindingStub.logout(RemoteLoginManagerSoapBindingStub.java:281)
    Thanks,
    Eshwar

  • Org.apache.jasper.JasperException: Invalid BPM Object context key

    Hi - I get following error while submitting the page. Has anyone seen this error before?
    Tomcat error: 'ApplicationDispatcher[workspace] Servlet.service() for servlet jsp threw exception
    org.apache.jasper.JasperException: Invalid BPM Object context key
    at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:254)
    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:684)
    at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:432)
    at org.apache.catalina.core.ApplicationDispatcher.access$000(ApplicationDispatcher.java:116)
    at org.apache.catalina.core.ApplicationDispatcher$PrivilegedForward.run(ApplicationDispatcher.java:131)
    at java.security.AccessController.doPrivileged(Native Method)
    at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:348)
    at fuego.portal.servlet.WamServlet.requestForward(WamServlet.java:418)
    at fuego.portal.servlet.WamServlet.forward(WamServlet.java:299)
    at fuego.portal.servlet.Controller.doPost(Controller.java:275)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)

    I am also getting "Invalid BPM Object context key" when migrating the 5.7 application to Oracle 10.3. It works fine in 5.7. Did you get it resolved; no one replied here. I also logged it but not sure how good is this forum.

  • Error can't load Servlet org.apache.struts.action.ActionServlet

    Hi,
    I have SAP J2EE 6.20 installed on linux machine. I am trying to deploy struts framework based application and while deploying it..... I am getting error message:
    Error can't load Servlet org.apache.struts.action.ActionServlet : java.lang.NoClassDefFoundError: org/xml/sax/SAXException
    07 19:27:48 -  ***********************************************************
    08/10/07 19:27:48 -  Applying user role management mappings.
    08/10/07 19:27:48 -  Start updating EAR-file...D:\SAPJ2EE Client\deploying\sambodh\sambodh.ear
    08/10/07 19:28:26 -  Temp files deleted...
    08/10/07 19:28:26 -  Ear-file updated successfully for 37860ms.
    08/10/07 19:28:27 -  Start deploying ...
    08/10/07 19:30:35 -  Ear-file uploaded to server for 128047ms.
    08/10/07 19:30:37 -  Successfuly deployed! Deployment took 1953ms.
    08/10/07 19:30:37 -  WARNING : Deploy service return folowing WARNINGs:
                         Error can't load Servlet org.apache.struts.action.ActionServlet : java.lang.NoClassDefFoundError: org/xml/sax/SAXException
                          Deployment took 1953ms.
    08/10/07 19:30:37 -  ***********************************************************
    First time when I got this error, I added struts.jar in my server's <inst_dir>/alone/additional_libs/...... but then also error still exists... Do I have to start  SAP J2EE instance once again and then deploy my application?
    Can anyone help me out in this as this is very very very imp.
    regards

    Hi,
    As per your actions above I believe you have already found SAP Note 435363.
    Basically for a struts application there are no special requirements other than
    1. Make a reference to the inqmyxmltoolkit from the application that is going to use struts before the deployment
    2. Put the struts library into WEB-INF/lib of the application (struts can't be shared among applications)
    3. Deploy the application
    For making the reference you can:
    1. Telnet to the Engine (if you run it as a service and do not have access to its shell directly)
    If telnet port on the Engine dispatcher is 2323
    telnet localhost 2323
    2. Jump to the server node
    for example if the application node's cluster id is 4001
    jump 4001
    3. Execute the commands
    add deploy
    changeref -m  MyApplication library:inqmyxml
    So if it does not work, then I see two reasons possible:
    1. You are using a really old version of the 6.20 Engine - check if you are on PL41.
    2. You have misspelled the name of your application in the reference. The names are case sensitive so you need to be careful. MyApplication is not the same as myApplication or myapplication.
    Regards,
    Iavor

  • Error: Find criteria must contain at least one sort field value.

    Hi
    I am getting the followng error in Sort.as when I click on a column in a DataGrid that is bound to a nested property (e.g. parent.name)
    Error: Find criteria must contain at least one sort field value.
    I can see why this is failing.
    In the findItem function of Sort.as the code tests whether there is data in line (456) hasFieldName = values[fieldName] !== undefined. This fails and so an error is raised later in the function by:
         if (fieldsForCompare.length == 0)     {
         message = resourceManager.getString("collections", "findRestriction"); 
              throw new SortError(message);     }
     The code needs to traverse down the object hierarchy to get the field so that error is not thrown .
    The code needs to traverse down the object hierarchy to get the field so that error is not thrown .
    In the case of a non nested property, everything works fine.
    There is lots of discussion about nested properties in DataGrid and there is this jira:
    http://bugs.adobe.com/jira/browse/SDK-9801
    There is talk of using a labelFunction or an itemRenderer and other third party solutions (extensions of DataGridColumn).
    Is this a bug?  is there a workaround using labelFunction or itemRenderer which can stop the error in Sort.as?
    James
    Here is the code of findItem in Sort.as of SDK 3..4.0.9271
    public  
    function findItem(items:Array,values:Object,
    mode:String,
    returnInsertionIndex:Boolean =
    false,compareFunction:Function =
    null):int{
    var compareForFind:Function; 
    var fieldsForCompare:Array; 
    var message:String; 
    if (!items){
    message = resourceManager.getString(
    "collections", "noItems"); 
    throw new SortError(message);}
    else if (items.length == 0){
    return returnInsertionIndex ? 1 : -1;}
    if (compareFunction == null){
    compareForFind =
    this.compareFunction; 
    // configure the search criteria
    if (values && fieldList.length > 0){
    fieldsForCompare = [];
    //build up the fields we can compare, if we skip a field in the
    //middle throw an error. it is ok to not have all the fields
    //though
    var fieldName:String; 
    var hadPreviousFieldName:Boolean = true; 
    for (var i:int = 0; i < fieldList.length; i++){
    fieldName = fieldList[i];
    if (fieldName){
    var hasFieldName:Boolean; 
    try
    hasFieldName = values[fieldName] !==
    undefined;}
    catch(e:Error){
    hasFieldName =
    false;}
    if (hasFieldName){
    if (!hadPreviousFieldName){
    message = resourceManager.getString(
    "collections", "findCondition", [ fieldName ]); 
    throw new SortError(message);}
    else
    fieldsForCompare.push(fieldName);
    else
    hadPreviousFieldName =
    false;}
    else
    //this is ok because sometimes a sortfield might
    //have a custom comparator
    fieldsForCompare.push(
    null);}
    if (fieldsForCompare.length == 0){
    message = resourceManager.getString(
    "collections", "findRestriction"); 
    throw new SortError(message);}
    else
    try
    initSortFields(items[0]);
    catch(initSortError:SortError){
    //oh well, use the default comparators...
    else
    compareForFind = compareFunction;

    I have tried a sortCompareFunction:
    var sort:Sort = new Sort();
    sort.compareFunction = compareFunction;sort.fields = [sortField];
    data.sort = sort;
    data.refresh();
    this makes no difference.
    James

  • Org.apache.naming.java.javaURLContextFactory error

    Hi,
    I have an application which works perfectly fine in TOMCAT 5.0,.
    But when I deploy this application on JBOSS 4.0.1 and try to run the application,
    it gives following error,.
    javax.naming.NoInitialContextException: Cannot insta
    ntiate class: org.apache.naming.java.javaURLContextFactory [Root exception is ja
    va.lang.ClassNotFoundException: org.apache.naming.java.javaURLContextFactory]
    When i checked one of my source code file it had a reference
    System.setProperty(Context.INITIAL_CONTEXT, org.apache.naming.java.javaURLContextFactory)
    So is it that TOMCAT 5.0 finds the class for javaURLContextFactory in some jar file and
    JBoss does not and that is why this error is occuring? If yes does any body have a solution. If no what is the cause of the error and how can it be solved.
    Thank you in advance
    Akhila

    I have posted a reply for this here
    http://forum.java.sun.com/thread.jspa?threadID=604459&messageID=3265086#3265086

  • PRKO-2015 : Error in checking condition of instance on node:

    I am using Oracle 10.2.0.4 2 node RAC on Solaris 10 x86_86.
    I have renamed our test database using nid and have restarted the RAC instance.
    The cluster is not able to identify the database eventhough I've tried adding the database and instances manually.
    oracle@slsmtdrdbs01$srvctl add database -d SMTTSTDR -o /u01/app/oracle/product/10.2.0/db_1 -p /u02/app/oracle/smttstdr/spfilesmttstdr.ora
    oracle@slsmtdrdbs01$srvctl add instance -d smttstdr -i smttstdr1 -n slsmtdrdbs01
    oracle@slsmtdrdbs01$srvctl add instance -d smttstdr -i smttstdr2 -n slsmtdrdbs02
    oracle@slsmtdrdbs01$srvctl status database -d smttstdr
    PRKO-2015 : Error in checking condition of instance on node: slsmtdrdbs01
    PRKO-2015 : Error in checking condition of instance on node: slsmtdrdbs02I see these messages in the CRS log which confirm tht the instances have been successfully regstered .
    2009-06-24 15:47:49.823: [  CRSRES][781664] Resource Registered: ora.SMTTSTDR.db
    2009-06-24 15:48:16.256: [  CRSRES][781666] Resource Registered: ora.smttstdr.smttstdr1.inst
    2009-06-24 15:48:28.436: [  CRSRES][781672] Resource Registered: ora.smttstdr.smttstdr2.inst
    But still I get the error messages with srvctl.
    Think so this would need CRS reboot.
    Wanted to confirm if there is any other way to fix this issue as there is a production database in the same box and rebooting the CRS would require downtime.
    Any suggestions ?

    oracle@slsmtdrdbs01$crs_stat -t
    Name           Type           Target    State     Host
    ora....STDR.db application    OFFLINE   OFFLINE
    ora....01.lsnr application    ONLINE    ONLINE    slsm...bs01
    ora....s01.gsd application    OFFLINE   OFFLINE
    ora....s01.ons application    ONLINE    ONLINE    slsm...bs01
    ora....s01.vip application    ONLINE    ONLINE    slsm...bs01
    ora....02.lsnr application    ONLINE    ONLINE    slsm...bs02
    ora....s02.gsd application    OFFLINE   OFFLINE
    ora....s02.ons application    ONLINE    ONLINE    slsm...bs02
    ora....s02.vip application    ONLINE    ONLINE    slsm...bs02
    ora.smtdgsl.db application    OFFLINE   OFFLINE
    ora....l1.inst application    OFFLINE   OFFLINE
    ora....l2.inst application    ONLINE    OFFLINE
    ora....rddr.db application    ONLINE    ONLINE    slsm...bs02
    ora....1a.inst application    ONLINE    ONLINE    slsm...bs01
    ora....1b.inst application    ONLINE    ONLINE    slsm...bs02
    ora....r1.inst application    OFFLINE   OFFLINE
    ora....r2.inst application    OFFLINE   OFFLINESMTTSTDR is the test database that was created by renaming SMTDGSL. SMTPRDDR is the production database.
    I don't see imon files at all.
    I went through the thread
    Not able to start instance using srvctl
    I checked the permissions for the CRS directories
    oracle@slsmtdrdbs01$pwd
    /u01/app/oracle/product/10.2.0/crs/log
    oracle@slsmtdrdbs01$ls -l
    total 4
    drwxrwx---   2 oracle   dba          512 Nov 24  2008 crs
    drwxr-xr-t   8 root     dba          512 Nov 24  2008 slsmtdrdbs01
    oracle@slsmtdrdbs01$pwd
    /u01/app/oracle/product/10.2.0/crs/log/slsmtdrdbs01
    oracle@slsmtdrdbs01$ls -l
    total 88
    drwxr-x---   2 oracle   dba          512 Nov 24  2008 admin
    -rw-rw-r--   1 root     dba        37122 Mar  9 09:23 alertslsmtdrdbs01.log
    drwxr-x---   2 oracle   dba         2048 Apr 30 13:14 client
    drwxr-x---   2 root     dba          512 Nov 24  2008 crsd
    drwxr-x---   4 oracle   dba          512 Nov 26  2008 cssd
    drwxr-x---   2 oracle   dba          512 Nov 24  2008 evmd
    drwxrwxr-t   5 oracle   dba          512 Jun 25 10:00 racgslsmtdrdbs01 directory is owned by root. Is that an issue?
    But racg is owned by oracle.
    Output of the trace
    srvctl status database -d smttstdr
    432  [main] [10:5:53:34] [HAOperationImpl.runCommand:1223]  CRS cmd is: /u01/app/oracle/product/10.2.0/crs/bin/crs_stat -u
    ora.SMTTSTDR.smttstdr1.inst ora.SMTTSTDR.smttstdr2.inst
       433  [main] [10:5:53:36] [RuntimeExec.runCommand:74]  Calling Runtime.exec() with the command
       434  [main] [10:5:53:37] [RuntimeExec.runCommand:76]  /u01/app/oracle/product/10.2.0/crs/bin/crs_stat
       435  [main] [10:5:53:38] [RuntimeExec.runCommand:76]  -u
       436  [main] [10:5:53:39] [RuntimeExec.runCommand:76]  ora.SMTTSTDR.smttstdr1.inst
       437  [main] [10:5:53:41] [RuntimeExec.runCommand:76]  ora.SMTTSTDR.smttstdr2.inst
       438  [main] [10:5:53:47] [RuntimeExec.runCommand:131]  runCommand: Waiting for the process
       439  [Thread-1] [10:5:53:48] [StreamReader.run:61]  In StreamReader.run
       440  [Thread-0] [10:5:53:48] [StreamReader.run:61]  In StreamReader.run
       441  [Thread-0] [10:5:53:96] [StreamReader.run:65]  OUTPUT>CRS-0210: Could not find resource ora.SMTTSTDR.smttstdr1.inst.
       442  [Thread-0] [10:5:53:97] [StreamReader.run:65]  OUTPUT>
       443  [Thread-0] [10:5:53:98] [StreamReader.run:65]  OUTPUT>CRS-0210: Could not find resource ora.SMTTSTDR.smttstdr2.inst.
       444  [Thread-0] [10:5:53:100] [StreamReader.run:65]  OUTPUT>
       445  [main] [10:5:53:103] [RuntimeExec.runCommand:133]  runCommand: process returns 210
       446  [main] [10:5:53:104] [RuntimeExec.runCommand:147]  RunTimeExec: output>
       447  [main] [10:5:53:105] [RuntimeExec.runCommand:150]  CRS-0210: Could not find resource ora.SMTTSTDR.smttstdr1.inst.
       448  [main] [10:5:53:108] [RuntimeExec.runCommand:150]
       449  [main] [10:5:53:109] [RuntimeExec.runCommand:150]  CRS-0210: Could not find resource ora.SMTTSTDR.smttstdr2.inst.
       450  [main] [10:5:53:110] [RuntimeExec.runCommand:150]
       451  [main] [10:5:53:111] [RuntimeExec.runCommand:155]  RunTimeExec: error>
       452  [main] [10:5:53:113] [RuntimeExec.runCommand:175]  Returning from RunTimeExec.runCommand
       453  [main] [10:5:53:114] [HAOperationImpl.runCommand:1232]  signed exit value = 210
       454  [main] [10:5:53:115] [HAOperationImpl.runCommand:1257]  set status HA_RES_NOT_EXIST_ERR
       455  [main] [10:5:53:117] [HAStatusOperation.run:127]  Returned from executing the HA Operation
       456  [main] [10:5:53:118] [HAStatusOperation.run:132]  OUTPUT> CRS-0210: Could not find resource ora.SMTTSTDR.smttstdr1.in
    st.
       457  [main] [10:5:53:119] [HAStatusOperation.run:132]  OUTPUT>
       458  [main] [10:5:53:120] [HAStatusOperation.run:132]  OUTPUT> CRS-0210: Could not find resource ora.SMTTSTDR.smttstdr2.in
    st.
       459  [main] [10:5:53:121] [HAStatusOperation.run:132]  OUTPUT>
       460  [main] [10:5:53:122] [HAStatusOperation.run:138]  ERROR>
       461  [main] [10:5:53:124] [LocalCommand.execute:56]  LocalCommand.execute: Returned from run method
       462  [main] [10:5:53:125] [ParallelServerHA.isRunningInstances:581]  Stat operation failed. it could be a partial failure.
    no exception thrown.
       463  [main] [10:5:53:127] [StatusAction.internalDisplayInstanceStatus:708]  displaying status for instance smttstdr1
       464  [main] [10:5:53:129] [Instance.isEnabled:197]  enabled is true
       465  PRKO-2015 : Error in checking condition of instance on node: slsmtdrdbs01
       466  [main] [10:5:53:143] [StatusAction.internalDisplayInstanceStatus:708]  displaying status for instance smttstdr2
       467  [main] [10:5:53:144] [Instance.isEnabled:197]  enabled is true
       468  PRKO-2015 : Error in checking condition of instance on node: slsmtdrdbs02

  • Error initiating process in single instance mode

    We have implemented Guided Procedures and have included a visual approval step to review an employee's supporting documentation before an Admin makes changes based on the approval request, and also KM documentation steps and iViews.  Lately in the Alerts monitoring area I am seeing multiple errors. 
    I have checked the callable objects and all pass the check (including input and output parameters, results states, process exceptions and configuration parameters) however the error keeps showing up.  Within the process instatiation tab the process is set to 'single running process is permitted for each user'.
    Does anyone know what may be causing these alerts, and how do you repair them?
    The full alert is below:
    Error initiating process in single instance mode
    com.sap.caf.eu.gp.model.pfw.core.SingleInstanceProcessException: Error initiating process in single instance mode
    at com.sap.caf.eu.gp.model.pfw.core.impl.ProcessRuntime.startProcess(ProcessRuntime.java:1049)
    at com.sap.caf.eu.gp.ui.inst.CInstantiation.initiateProcess(CInstantiation.java:533)
    at com.sap.caf.eu.gp.ui.inst.wdp.InternalCInstantiation.initiateProcess(InternalCInstantiation.java:199)
    at com.sap.caf.eu.gp.ui.inst.VData.onPlugFromWizard(VData.java:174)
    at com.sap.caf.eu.gp.ui.inst.wdp.InternalVData.wdInvokeEventHandler(InternalVData.java:166)
    at com.sap.tc.webdynpro.progmodel.generation.DelegatingView.invokeEventHandler(DelegatingView.java:87)
    at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.navigate(ClientApplication.java:826)
    at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.navigate(ClientComponent.java:881)
    at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.doNavigation(WindowPhaseModel.java:498)
    at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processRequest(WindowPhaseModel.java:144)
    at com.sap.tc.webdynpro.clientserver.window.WebDynproWindow.processRequest(WebDynproWindow.java:335)
    at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:143)
    at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:333)
    at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessingPortal(ClientSession.java:761)
    at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessing(ClientSession.java:696)
    at com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:253)
    at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:149)
    at com.sap.tc.webdynpro.clientserver.session.core.ApplicationHandle.doProcessing(ApplicationHandle.java:73)
    at com.sap.tc.webdynpro.portal.pb.impl.AbstractApplicationProxy.sendDataAndProcessActionInternal(AbstractApplicationProxy.java:869)
    at com.sap.tc.webdynpro.portal.pb.impl.AbstractApplicationProxy.create(AbstractApplicationProxy.java:229)
    at com.sap.portal.pb.PageBuilder.updateApplications(PageBuilder.java:1346)
    at com.sap.portal.pb.PageBuilder.createPage(PageBuilder.java:356)
    at com.sap.portal.pb.PageBuilder.init(PageBuilder.java:549)
    at com.sap.portal.pb.PageBuilder.wdDoRefresh(PageBuilder.java:595)
    at com.sap.portal.pb.PageBuilder$1.doPhase(PageBuilder.java:867)
    at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processPhaseListener(WindowPhaseModel.java:755)
    at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.doPortalDispatch(WindowPhaseModel.java:717)
    at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processRequest(WindowPhaseModel.java:136)
    at com.sap.tc.webdynpro.clientserver.window.WebDynproWindow.processRequest(WebDynproWindow.java:335)
    at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:143)
    at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:333)
    at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessing(ClientSession.java:712)
    at com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:253)
    at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:149)
    at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:62)
    at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doPost(DispatcherServlet.java:53)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401)
    at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:386)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:364)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:1039)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:265)
    at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)
    at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:175)
    at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
    at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
    at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:104)
    at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:176)

    Hello,
    The GP SingleInstanceProcessException is normal when using
    Single instance process instances which for example ESS uses.
    If  you have single instance processes and you try to start an already
    started instance, the exception will appear but will not cause problems.
    It  notifies the UI to redirect to the previous process instance.
    It is expected behaviour.
    Thanks and best regards,
    Carl Connolly
    Senior Support Consultant - Netweaver Web Application Server
    AGS Primary Support, Global Support Centre Ireland
    Guided Procedures trouble shooting guide:
    https://
    www.sdn.sap.com/irj/scn/wiki?path=/display/jstsg/%2528gp%2529home

  • Constructor functions must be instance methods?

    Hi,
    I have this code as in the following:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
        <mx:Script>
            <![CDATA[
                import mx.controls.*;           
                import mx.events.*;
                import mx.containers.*;       
                import thematicMap.*;  
                 public var Region:Region = new Region();
                 public var Scale:Scale = new Scale();
                 public var ThematicMap:ThematicMap = new ThematicMap(); //1026:Constructor functions must be instance methods
                 public var ReadXML:ReadXML = new ReadXML();       
                 private var savedIndex:int= 99999;        
                  public function addNavigation():void{
                      var buttonTools:Array = ["Driving Distance","Education Level--College",
                                               "Education Level--High School","Median Income","Population"];
                      var navigationBar:ToggleButtonBar = new ToggleButtonBar();
                          navigationBar.dataProvider = buttonTools;
                          navigationBar.toggleOnClick = true;
                          navigationBar.selectedIndex = -1;
                          navigationBar.addEventListener(ItemClickEvent.ITEM_CLICK,clickHandler);                      
                          //pass the variables?
                          addSlider(); //add the slider control  
                          vbox.addChild(navigationBar);
                  public function addSlider():void{
                       var text_entry:HBox = new HBox();                 
                       var numColors:TextInput = new TextInput();
                           numColors.length == 3;
                           numColors.text = "5";
                           numColors.restrict = "0-9";
                       var direction:Text= new Text();
                           direction.text = "Number of Colors";
                        //recalculate the map if the listener is called
                       text_entry.addChild(direction);
                       text_entry.addChild(numColors);
                       vbox.addChild(text_entry);                    
                 public function clickHandler(event:ItemClickEvent):void{
                     if(event.index == savedIndex) {
                         //don't do a thing
                     else savedIndex = event.index;           
                     //add the thematic map                
                     ThematicMap.addRegions(OK); //This part never worked
                     //mapGrid.addChild(thematicmap);
            ]]>
        </mx:Script>
       <mx:Canvas id="map" creationComplete="addNavigation()">
               <mx:VBox id="vbox" x="20" y="10">           
               <mx:Canvas id="mapGrid"/>      
        </mx:VBox>     
       </mx:Canvas>
    </mx:Application>
    Here is what I have in my ThematicMap.as:
    package thematicMap
        import mx.core.*;
        import mx.events.*;
        public class ThematicMap {       
            public var region:Region = new Region();  
            public var readXML:ReadXML = new ReadXML();     
            public function addRegions(name:String):void {   
                 trace(name);      
    Have I done something wrong here? How come it keeps telling me that the constructor functions must be instance methods?
    Thanks for your help.
    Alice

    Yes, I put in the quotes, and that took care of that error.
    However, it still tells me I have an error that I am calling a possibly undefined method addRegions through a reference with static type ThematicMap
    Here is the complete code of my main app:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
        <mx:Script>
            <![CDATA[
                import mx.controls.*;           
                import mx.events.*;
                import mx.containers.*;       
                import thematicMap.*;   //I had imported all the classes
                 public var region:Region = new Region();
                 public var scale:Scale = new Scale();
                 public var thematicMaps:ThematicMap = new ThematicMap();
                 public var readXML:ReadXML = new ReadXML();       
                 private var savedIndex:int= 99999;        
                  public function addNavigation():void{
                      var buttonTools:Array = ["Driving Distance","Education Level--College",  "Education Level--High School","Median Income","Population"];
                      var navigationBar:ToggleButtonBar = new ToggleButtonBar();
                          navigationBar.dataProvider = buttonTools;
                          navigationBar.toggleOnClick = true;
                          navigationBar.selectedIndex = -1;
                          navigationBar.addEventListener(ItemClickEvent.ITEM_CLICK,clickHandler);                      
                          //pass the variables?
                          addSlider(); //add the slider control  
                          vbox.addChild(navigationBar);
                  public function addSlider():void{
                       var text_entry:HBox = new HBox();                 
                       var numColors:TextInput = new TextInput();
                           numColors.length == 3;
                           numColors.text = "5";
                           numColors.restrict = "0-9";
                       var direction:Text= new Text();
                           direction.text = "Number of Colors";
                        //recalculate the map if the listener is called
                       text_entry.addChild(direction);
                       text_entry.addChild(numColors);
                       vbox.addChild(text_entry);                    
                 public function clickHandler(event:ItemClickEvent):void{
                     if(event.index == savedIndex) {
                         //don't do a thing
                     else savedIndex = event.index;           
                     //add the thematic map                
                     thematicMaps.addRegions("OK");
                     //mapGrid.addChild(thematicmap);
            ]]>
        </mx:Script>
       <mx:Canvas id="map" creationComplete="addNavigation()">
               <mx:VBox id="vbox" x="20" y="10">           
               <mx:Canvas id="mapGrid"/>      
        </mx:VBox>     
       </mx:Canvas>
    </mx:Application>
    As a matter of fact, when I write import thematicMap. it looks like thematicMap.ThematicMap does show up, so that is imported, right?
    I am getting confused.
    Alice

  • Inventory Error :Transaction quantity must be =  available quantity.

    An error occurred while relieving reservations.|Transaction quantity must be less than or equal to available quantity.
    while doing material transactions in transaction open interface iam getting above error......Kindly help me as i am struck here and it is high priority issue and need to be resolved as soon as possible..

    refer -
    Pending Move Transactions FAQ [ID 1141334.1]
    WIP_MOVE_TXN_INTERFACE Common Errors In Pending Move Transactions With Possible Causes And Action Plan To Process Them [ID 457066.1]
    Outside Processing Wip Move Transaction Fails With Overcompletion Quantity [ID 427558.1]
    Pending Move Transaction Error - Allow Moves Not Enabled [ID 780732.1]
    R12 OSP Job (Also Repetitive Schedule) Do Not Support Overcompletion: Error 'Transaction quantity must be less than or equal...' [ID 563011.1]
    cheers,
    VB

Maybe you are looking for

  • Requirements for the DHCP extention

    What are the requirements to use the DHCP extension in SCVMM 2012 R2? I do not use network virtualization and in SCVMM I have one logical switch configured (no virtual network adapters) I have multiple VLAN's so I am doing tagging on the teamed NIC's

  • Can you edit an existing nested style in CS5.5?

    In a previous InDesign CS5.5 document, I created a paragraph style containing a nested style. The nested style applied a bold font to the first sentence only, with the rest of the paragraph appearing in a roman version of the same font. I'm creating

  • Composite foreign key, LOV, WSG, Designer 6i

    Hello, I have one composite foreign key that consists of 3 columns, which belongs to three different tables (there are master-detal-detail relationships between those 3 tables). Let's call those tables A, B and C. Now, I'd like to generate wsg module

  • Calendar in Today View of Notification Center

    When I swipe down in the Notification Centre, I see the Date info, the word Calendar, and some blank lines. I am not swing any events listed in my actual Calendar. How do I get the events to show, instead of blank lines?

  • Laptop died... can I rescue files from Time Machine back up and transfer to my kids iMac?

    Hi. Not sure this is the right forum, could not find a Time Machine forum. My 18 month old white Macbook has died (screen and track pad). I cannot afford a new one. I have a time machine backup. Is there a way to either 1. Take the HDD from the lapto