We can change the logging level of a package in jBoss EAP 6 or jBoss Portal 6.1 without restarting the server using the CLI command.
A blog about my daily tech ramblings.
Thursday, 20 August 2015
Monday, 29 June 2015
Custom Error page in Gatein - jBoss Portal 6.1
Steps to add a custom error page in GateIn (jBoss Portal 6.1)
1. Create the error pages and place them in the $JPP_HOME/gatein/gatein.ear/portal.war/error/ directory.
For each error code that shall have its custom error page, add the
The sample code below ensures that the 404.html page is displayed when the 404 error code is returned.
Specify the error page locations as static resources in the controller.xml file. The code sample below demonstrates this configuration for the /404.html path. The file is located at $JBOSS_PORTAL/standalone/configuration/gatein/ folder.
Without this configuration, the portal tries to resolve /404.html as a name of a portal or another resource. It is therefore necessary to configure the error page locations as static resources.
Build the project available at - https://github.com/martinweiler/CustomPortalRequestHandler and copy the jar to $JPP_HOME/modules/system/layers/gatein/org/gatein/lib/main
Edit the $JPP_HOME/modules/system/layers/gatein/org/gatein/lib/main/module.xml, and add the following to the end of
Edit $JPP_HOME/gatein/gatein.ear/portal.war/WEB-INF/conf/portal/controller-configuration.xml, and apply the following change:
4. Browse to any invalid link in jBoss Portal - http://localhost:8080/portal/invalid-link and see the custom error page.
Note: To have a custom error page on the root (/) domain. Create a war file with the following web.xml or use the project - https://github.com/sachin-handiekar/jboss-utils/error/
Sunday, 21 June 2015
Friday, 20 March 2015
Saturday, 14 March 2015
Custom Invocation Handler for Gatein WSRP
We'll be creating a custom invocation handler for WSRP using the Gatein WSRP Extension. For this example code we'll be sending two custom attributes (CustomerID & OrderID) from our consumer to the producer.
Source code available at Github
Consumer
Producer
Utility class
Deployment
Source code available at Github
Consumer
Producer
Utility class
Deployment
Monday, 9 March 2015
OSS plans for Continuous Integration, Code coverage and many more
A list of online tools which provide free OSS plans for GitHub.