Websphere - How to switch JSF implementation to DEFAULT on admin console? - jsf

As part of my application setup i have mistakenly changed the JSF implementation on WAS admin console from DEFAULT to SunRI1.2 which is causing issues while running the application. I get Caused by: java.lang.NoClassDefFoundError: com/ibm/ws/webcontainer/srt/SRTServletResponse and i assume it's due to the change i made. I need to change it back to DEFAULT but couldn't do it.
These are steps i've followed to set it to SunRI1.2
set server [$AdminConfig list ApplicationServer *server1*]
$AdminConfig modify $server {{jsfProvider SunRI1.2}}
$AdminConfig save
Doing the following doesn't set it back to DEFAULT.
set server [$AdminConfig list ApplicationServer *server1*]
$AdminConfig modify $server {{jsfProvider DEFAULT}
$AdminConfig save
Appreciate your help on this, many thanks

If you're on a WAS 8 or higher, MyFaces is the default value - setting that value will get you the equivalent of DEFAULT
$AdminConfig modify $server {{jsfProvider MyFaces}}
$AdminConfig save

Related

WKWebsiteDataStore.default() vs webView.configuration.websiteDataStore

What is the difference between the WKWebsiteDataStore.DefaultDataStore and the one present in webview configuration instance - Configuration.WebsiteDataStore?
If i delete a specific cookie from HttpCookieStore by accessing the default websitedatastore, would that be in sync with HttpCookieStore present in Configuration.WebsiteDataStore when webview loads?
Unless you pass a WKWebsiteDataStore.nonPersistent() (which is new every time) dataStore to your webview's configuration it will already have the default in there (which is shared and it's always the same).
You can check that yourself by running
webview.configuration.websiteDataStore == WKWebsiteDataStore.default()
And it will return true.
So everything is definitely in sync since they are the same instance.

CanonicalDocFlowSegment is blank or null

I am facing this Issue, when the order is placed in hybris and sent to crm in backend (i checked the businessprocess flow in backoffice the status is OK).
2020-12-11 14:30:08,669 [DEBUG] [c.h.d.c.i.CompositionChainRunnerStrategy] Integration Key generation for canonical item CanonicalItem{status=ERROR, dataPool=DataHubPoolEntity{id=9306, name=SAPORDER_OUTBOUND_POOL}, fields={precedingDocumentId=null, orderId=0006200128}} failed.
com.hybris.datahub.composition.key.IncompleteKeyException: Value for attribute precedingDocumentId of canonical item CanonicalDocFlowSegment is blank or null.
In tomcat server, after this IncompleteKeyException, i could see Idoc's are generated in console for the above (0006200128)orderId.
So Question is, what exactly "canonical item CanonicalDocFlowSegment is blank or null" mean and how can i resolve it?
Issue related to precedingDocumentId of canonical item CanonicalDocFlowSegment is blank or null: resolved by removing the sapreturnorders related jars in the library.
These jars is mainly required in case of return order.
i.e., all three jars for sapreturnorder (raw, canonical and target) from tomcat library.
After removing jars follow the below steps:
1.restart the catalina server(tomcat).
2.do InitialLoad from backoffice.
For more details refer:https://help.sap.com/viewer/search?q=precedingDocumentID&state=PRODUCTION&language=en-US&format=standard,html,pdf,others

Hybris Transaction Timeout

How to set Hybris db transaction timeout using oracle database?
I have tried the following code but no effect, thanks in advance.
TransactionTemplate template = new TransactionTemplate(manager);
template.setTimeout(1);
You can set in local.properties db.connectionparam.oracle.jdbc.ReadTimeout or db.connectionparam.oracle.net.READ_TIMEOUT (both in millisecond).
Check this post for the difference : https://stackoverflow.com/a/18513472/1140748
To explain a bit, in the platform, in AbstractTenant you have a method extractCustomDBParams that checks for key starting with db.connectionparam .

iisdirinfo failing on iis7?

When running iisdirinfo on iis7 I'm seeing an error
.dll,1,GET,HEAD,POST,DEBUG
BUILD FAILED
C:\iisinfo.build(9,2):
Error retrieving info for virtual directory 'WebServices' on 'localhost:80' (wesite: Webservice).
Object reference not set to an instance of an object.
Total time: 0.5 seconds.
This is after displaying a number of the properties correctly. So I guess it's being tripped up by another property later on.
Anyone seen this or have any ideas on what could be causing the issue?
So I forked the repo and put some extra debug in and it seems like the failure was down to a null value for a property.
Using appcmd it looks like
<redirectHeaders>
</redirectHeaders>
I've put a check for null into the code and will be submitting a pull request later today

kohana 3.0 delete_all() failure

I have a kohana 3 based application, and I want to delete all entries based on some conditions. The problem is that the delete_all() method doesn't delete anything at all.
The code:
$user_preferences = Model::factory('userpreferences')->get_user($user)->delete_all();
Though if I put :
$user_preferences = Model::factory('userpreferences')->get_user($user)->find_all();
there are retrieved some registries.
Any ideas?
Is the database connection set to autocommit? You might need to manually begin/commit a transaction to make your changes persist.

Resources