แสดงบทความที่มีป้ายกำกับ websphere แสดงบทความทั้งหมด
แสดงบทความที่มีป้ายกำกับ websphere แสดงบทความทั้งหมด

How to create WebSphere share library

Prepare library
  1. Export library class to Jar file
  2. Ftp library file to server
Login to WebSphere console
  1. From Environment menu, choose Share Library
  2. Choose scope
  3. WebSphere will Shared Libraries Screen, then click New
  4. Input Name, Description and Class Path of jar file and click OK
  5. Save configure to server
Set Shared Library to Application
  1. Form Application Menu, choose Enterprise Applications
  2. Select Application for assign Share Library
  3. In Application Configuration at References topic, click Shared library references 
  4. Select Application and click Reference shared libraries
  5. WebSphere will show Library Reference, then click Add
  6. Select Library and click OK
  7. Save configure to server and Restart Application or Restart Server 
  8. Application will include share library, finish

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

Websphere interview questions

Method 1

As suggested by another developerWorks page, I was able to fix it by:

1) Close the project (Right-click the project, Close Project)
2) Open the project (Right-click, Open Project)
3) Force a full rebuild

And, no, skipping straight to #3 didn’t fix the problem for me. But, these three steps did.

Method 2[Haven't tried this methos
This snippit that was posted to the IBM developer works forum :

I had the same problem, and resolved it by opening the .settings folder of the EAR project and editing the org.eclipse.wst.common.component file. The war module listed in the error message is missing as a dependent module, so I added it:
http://www.blogger.com/img/blank.gif

WebModule_
uses


where
is the generated WebModule value from META-INF/.modulemaps file for the war
is the name of the war project in the workspace


ref : link
เจอ Error ตอนเรียก datasource ประมาณนี้

FreePool E J2CA0045E: Connection not available while invoking method createOrWaitForConnection for resource jdbc/xxx

ibm บอกวิธีแก้ไว้ http://www-01.ibm.com/support/docview.wss?rs=180&uid=swg21217062

ส่วนวิธีที่ใ้ช้แก้คือไปเพิ่ม max connetion ของ datasource ใน websphere (default = 10)
top