Problem Component rendering

From: André Koppany (koppan..ackoy.de)
Date: Mon Jun 05 2006 - 10:46:01 EDT

  • Next message: Anjo Krank: "Re: Problem Component rendering"

    Hi,

    when I try to render a localized component without a session, I get
    an exception in my wolips converted WO Project.

    This does not happen in the original XCode Project.

    It seems to be that there is a problem to find the component.
    Rendering of non localized components using this way is working fine.

    Any ideas how to solve this problem?

    Thanks for you help in advance,

    André

    Environment:
    MacOSX 10.4.x
    eclipse 3.2.0
    WOLips 2.0.0.134
    WO 5.3.1

    ###### Here is the code I used:
    WORequest myRequest = new WORequest("GET", "http://localhost", "HTTP/
    1.1", null, null, null);
    myRequest.setHeader("de-de", "accept-language");
    WOContext myContext = new WOContext(myRequest);
    CPDFInvoice myPDFInvoice = (CPDFInvoice)pageWithName
    ("app.component.CPDFInvoice", myContext);
    WOResponse r = myPDFInvoice.generateResponse();
    NSData myPDFInvoiceData = r.content();

    ######## This are the logging statements:
    2006-06-05 15:47:27,959 DEBUG NSLog (ERXNSLogLog4jBridge.java:44) -
    <com.webobjects.appserver._private.WOComponentDefinition> No template
    found for component CPDFInvoice at "file:/Users/akoppany/Documents/
    workspace/CShop/build/CShop.woa/".
      2006-06-05 15:47:27,960 WARN NSLog (ERXNSLogLog4jBridge.java:41)
    - A fatal exception occurred: Unable to find framework named "CShop".
      [2006-06-05 15:47:27 CEST] <main> java.lang.IllegalStateException:
    Unable to find framework named "CShop".
            at com.webobjects.appserver._private.WOComponentDefinition.<init>
    (WOComponentDefinition.java:179)
            at
    com.webobjects.appserver.WOApplication._componentDefinitionFromClassName
    d(WOApplication.java:2353)
            at com.webobjects.appserver.WOApplication._componentDefinition
    (WOApplication.java:2448)
            at com.webobjects.appserver.WOApplication.pageWithName
    (WOApplication.java:1943)
            at com.celemony.celemonyshop.app.Application.pageWithName
    (Application.java:105)
            at com.celemony.celemonyshop.app.Application.<init>(Application.java:
    71)
            at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
    Method)
            at sun.reflect.NativeConstructorAccessorImpl.newInstance
    (NativeConstructorAccessorImpl.java:39)
            at sun.reflect.DelegatingConstructorAccessorImpl.newInstance
    (DelegatingConstructorAccessorImpl.java:27)
            at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
            at java.lang.Class.newInstance0(Class.java:308)
            at java.lang.Class.newInstance(Class.java:261)
            at com.webobjects.appserver.WOApplication.main(WOApplication.java:323)
            at er.extensions.ERXApplication.main(ERXApplication.java:46)
            at app.Application.main(Application.java:41)



    This archive was generated by hypermail 2.0.0 : Mon Jun 05 2006 - 10:46:10 EDT