What’s internal resource views?

In Spring MVC or any web application, for good practice, it’s always recommended to put the entire views or JSP files under “WEB-INF” folder, to protect it from direct access via manual entered URL. Those views under “WEB-INF” folder are named as internal resource views, as it’s only accessible by the servlet or Spring’s controllers class. In Spring MVC, InternalResourceViewResolver is used to resolve “internal resource view” (in simple, it’s final output, jsp or htmp page) based on a predefined URL pattern. In additional, it allow you to add some predefined prefix or suffix to the view name (prefix + view name + suffix), and generate the final view page URL.

ADMR0104E- Unable to read document

ไม่สามารถ start Dmgr ได้เพราะมีการเปลี่ยนจาก root ที่ start เป็น user อื่น

ปัญหาที่เจอในระบบงานเพราะมีบาง directory ที่อ้างอิงยังเป็น root อยู่
เช่น 1. /appserver/config/temp
       2. /appserver/logs/ffdc

วิธีแก้ คือเปลี่ยน ภายใต้ directory นั้น ให้เป็นของ user ก็พอ (chown)


While we were trying to deploy an application on WAS 6.0.2.19 .. we had the following errors:
0000002e FileDocument  E   ADMR0104E: The system is unable to read document cells/server/nodes/nodename/perftuners.xml: java.io.IOException: The file access permissions do not allow the specified action.
0000002e WorkSpaceMast E   Unable to create temp file for document: cells/server/nodes/nodename/perftuners.xml
0000002e ServerRuleDri E  perfalert.Exception.errorjava.security.PrivilegedActionException: com.ibm.ws.sm.workspace.WorkSpaceException: WKSP0012E Exception when while extracting cells/server/nodes/nodename/perftuners.xml from Config Repository–com.ibm.websphere.management.exception.DocumentIOException: Unable to create temp file for document: cells/CU01-tx8aiuci00230/nodes/NU01-tx8aiuci00230/perftuners.xml
[7/14/09 13:40:47:586 CDT] 0000002e ServerRuleDri E   perfalert.Exception.error
We figured out the error is mainly beacuse of the permissions issue.
Some files are owned by root user which is preventing the was user to write the files to tmp directory which are created while deploying the application .


Work Around:
1. check who owns:  /appserver/config/temp
2. check who owns: /appserver/logs/ffdc
3. If possible try to chown everything under /Appserver and  /DMGR to wasuser. If any files are not owned by wasuser they will be displayed.



Ref: 1 , 2 , 3

top