from jboss wiki
OutOfMemoryExceptions
This section attempts to cover some of the most common reasons why you may see an OutOfMemoryError from your JBoss application server. Interestingly, there are several cases where the JVM may report an OutOfMemoryError even if it is not really out of [...]
from http://www.andypemberton.com/jboss/compress-your-jboss-portal-theme-with-packtag/
The goal of this article is to show you how to use pack:tag to optimize the performance of your JBoss Portal theme. I’ve used this approach on a production JBoss Portal 2.6 implementation and tested the approach out in version 2.7.
JBoss Portal has a feature-rich theme framework [...]
from JBoss Wiki
JBoss Properties
There are a number of properties used by the micro-kernel during the bootstrap.
This documentation is heavily plagiarized from
org.jboss.system.server.ServerConfig
.
Bootstrap Configuration jboss.boot.library.list – The basic jars used to bootstrap the kernel, [...]
refer to: http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4968789
Another rule for developing Java: DO NOT put you project in a folder whose absolute path contains any space…
This story tells us, if an issue exists, it persists.
Please refer to http://www.jboss.org/community/docs/DOC-12185
1. Configure the web application for security by adding constraints to the web deployment descriptor.
<security-constraint> <web-resource-collection> <web-resource-name>All resources</web-resource-name> <description>Protects all resources</description> <url-pattern>/*</url-pattern> </web-resource-collection> <auth-constraint> <role-name>WebAppUser</role-name> </auth-constraint> </security-constraint> <security-role> <role-name>WebAppUser</role-name> </security-role> <login-config> <auth-method>BASIC</auth-method> <realm-name>Test Realm</realm-name> </login-config>
2. Configure the jboss-web.xml file to point to the “my-web” application.
<security-domain>java:/jaas/my-web</security-domain> [...]
Problem:
After configuring messageSource with ResourceBundleMessageSource, messages output by webApplicationContext.getMessage are in wrong language version. But this issue doesn’t appear in spring message tag.
Solution:
Replace ResourceBundleMessageSource with ReloadableResourceBundleMessageSource, add property fallbackToSystemLocale and set to false.
<bean id=”messageSource” class=”org.springframework.context.support.ReloadableResourceBundleMessageSource”> <property name=”fallbackToSystemLocale” value=”false”/> <property name=”basenames”> <list> <value>classpath:messages</value> </list> </property> </bean>
Refer to: http://day-to-day-stuff.blogspot.com/2008/07/spring-message-resource-weirdness.html
Remember NOT TO PACKAGE the portlet api into the war file! It will fail the deployment!
Problem description as follow:
17:21:51,982 ERROR [PortletWebApp] An error occured when the portlet started
org.jboss.portal.portlet.PortletInitializationException: The portlet … threw a runtime exception during init
at org.jboss.portal.portlet.PortletContainer.start(PortletContainer.java:228)
at org.jboss.portal.portlet.PortletWebApp.startService(PortletWebApp.java:100)
at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:274)
at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:181)
at [...]
Just a note to remind me not to repeat the same mistakes again.
1. Never let View layer throw out any exceptions, ‘cuz they will display on the screen immediately. It’s really bad to show others errors, since people will just reckon that your application is not reliable and secure at all.
So keep in [...]
org.apache.commons.beanutils.DynaBean And Expression Language
Referred to BeanUtils API Document, DynaBean has ‘get’ method which can not be used as the output in expression language. Since ‘get’ method in DynaBean is neither a correct Java Bean property method, nor java.util.Map ‘get’ method. And according to Expression Language, it could not be rendered properly.
-
Articles
- May 2012
- April 2012
- March 2012
- February 2012
- December 2011
- November 2011
- October 2011
- September 2011
- August 2011
- June 2011
- May 2011
- April 2011
- March 2011
- February 2011
- January 2011
- December 2010
- November 2010
- October 2010
- September 2010
- August 2010
- July 2010
- June 2010
- April 2010
- March 2010
- February 2010
- January 2010
- December 2009
- November 2009
- October 2009
- September 2009
- August 2009
- June 2009
- May 2009
- April 2009
- March 2009
- February 2009
- January 2009
- December 2008
- November 2008
- October 2008
- September 2008
-
Meta