Hi,
I have problems to understand when doInitialization() Method in a JSPDynPage is called:
If I upload my .par file and start my application, it seems as the doInitialization() Method
is not called every FIRST time after uploading the .par file.
I inserted a
System.out.println("INIT!!!!");
in the doInit which only appears sometimes in LOG file.
The problem is that my application only works fine if the doInit is executed and my "INIT!!!!" appears in the LOG. Can anybody help me with this?!?
Thanks, and warm regards,
Christian
Hi again,
even if I:
1. remove the .par file from the server
2. restart the server
3. deploy the .par
it seems like the doInitialization() Method is NOT executed...
at least the System.out does not appear in the log.
Any Help??
Regards, Christian
Hello!
Thanks for your answer!
The path is:
D:\...\sap\J2E\JC00\j2ee\cluster\server0\log\
Usually I get all my System.outs there in defaultTrace.xx.trc
Sometimes I can see the statement (then my app works fine) sometimes not... then it doesn't work.
Best Regards,
Christian
Hello,
It's not the first Line and I'm not using SP2... here is a snippet:
public DynPage getPage(){ System.out.println("CFR: constructing DynPage!!!"); return new DynDynPage(); } public static class DynDynPage extends JSPDynPage{ ... public void doInitialization(){ IPortalComponentRequest componentRequest = ((IPortalComponentRequest)this.getRequest()); IPortalComponentSession componentSession = componentRequest.getComponentSession(); IPortalComponentProfile componentProfile = componentRequest.getComponentContext().getProfile(); IPortalComponentContext context = componentRequest.getComponentContext(); System.out.println("CFR: INIT!!!!!!!!"); setLang(); sessionBean = new SessionBean(); componentSession.putValue("sessionBean", sessionBean); check=false; } ...
Even that
System.out.println("CFR: constructing DynPage!!!");
doesn't appear everytime I start the application.
Why?!?
Best Regards,
Christian
Message was edited by: Christian Frölich
Add a comment