Log4j MDC with Liferay DXP - liferay

We would like to implement Log4j MDC to log user related info in Liferay DXP. So I was trying use Log4j with MDC however there are still dependency issues and I am not sure whether MDC works well with Liferay DXP.
Any help is appreciated.
Regards,
Suyash Bhalekar

Related

Broadleaf Admin Panel Extend Spring Boot in ReactStarter

I want to extend Admin Panel to see order received. i tried folowing Tutorial ,But could not find applicationContext-servlet-admin.xml. Is the tutorials still relevent with spring boot ? Can you please help ?
That tutorial is slightly out of date. Step 2 in that tutorial looks to be the only issue. Instead of updating an XML file, you would now load servlet beans in AdminServletConfig.java

Reuse of Java Security settings (policy file) in OSGi

We migrated our application to an OSGi based application. We are now running on Felix 4.2.1.
Previously we managed our security using the standard Java Security Model using a policy file. This comes down to providing security manager settings as start up parameters to our Java start up process:
-Djava.security.policy==.policy -Djava.security.manager
Previously, before the migration to OSGi, these exact same security settings were picked up by our application.
Now these security settings don't seem to be applied any more and basically we lost all our Java Security settings.
I have searched here, the internet, consulted some books and all suggest solutions similar to as described here, basically granting all permissions to OSGi and enable OSGi security.
However I could not find any confirmation this is absolutely needed to have Security enabled. For now I would like to avoid changing our security configuration too much for OSGi and reuse what we have.
So, is there a way to reuse an existing Java Security policy file in an OSGi environment? Or am I missing something trivial here?
For Felix you'll need to also add the felix security bundle.
A description of it can be found here.
With that enabled you should be safe on re-using your security policies.
We have never found any 'official' confirmation whether this was needed so in the end we decided to bite the bullet and implement OSGi security.

resource-optimization-with-maven-resources in rich faces 4.3.1.Final

I have read a blog from jboss community https://community.jboss.org/people/michpetrov/blog/2012/11/27/resource-optimization-with-maven-resources-plugin but is there anyway I can redirect the path richfaces is looking for the skinning.css and Packed.css to look for my custom files. Please help thanks

Migrating from Java Page Flow to JSF

I am currently working on a project that uses WebLogic Portal and Apache Beehive Page Flow Controller.
The team would like to remove WebLogic Portal and the Page Flow Controllers with JSF. Currently we have not found a way to manage the workflow with JSF as with PFC.
With Spring MVC it would be easy because we only remove Beehive annotations using Spring MVC Annotations but we would like to go directly with JSF so later we can start using icefaces.
Any suggestions of where I can find information about what we want to do?
Thank you very much in advance.

Does Liferay 6.0.5 serviceBuider work?

I am trying to develop a portlet that has a domain class and database mapping for it done with ServiceBuider. Classes and numerous config files get generated fine, but deploying fails to exception (don't have them available right now).
Is ServiceBuilder supposed to work in liferay sdk 6.0.5 for ordinary Liferay portlets, or is it usable only for ext-plugins/hook-plugins/ liferay Internals? Am I missing some other undocumented restrictions/dependencies.
yup, ServiceBuilder is supposed to work from portlet plugins (and it definitely does). It's deprecated (but works) in ext plugin. See the KnowledgeBase Portlet from the plugins (svn-username: "guest", password is empty)
To find a solution for your problems it would really help to get the exact steps you do as well as the exact exception.

Resources