Link to home
Create AccountLog in
Avatar of raghugowda
raghugowdaFlag for India

asked on

Installing application in websphere

Hi,

I have deployed few applications in websphere Iseries V5.1. Now while installing one more application, I'm getting error as "install failed".
I checked the logs, it says example.war file compiled successfully with some exceptions.

I created the new instance and deployed the same application, it is deployed and running successfully.
Please let me know what would be the issue.
Below are the logs found during installation of application which failed:

   
File View
/QIBM/UserData/WebASE51/ASE/WAS51ProductionServer/logs/WAS51ProductionServer/example_INSTALL_1157080938777.log

Command ran /QIBM/ProdData/WebASE51/ASE/bin/wsadmin -instance WAS51ProductionServer -conntype NONE -c $AdminApp install "/QIBM/UserData/WebASE51/ASE/WAS51ProductionServer/installableApps/example.war" {-usedefaultbindings -server "WAS51ProductionServer" -contextroot /Myexample -preCompileJSPs -MapWebModToVH {{"example" "example.war,WEB-INF/web.xml" "default_host"} } -appname "example"}
Standard output:
WASX7357I: By request, this scripting client is not connected to any server process. Certain configuration and application operations will be available in local mode.
ADMA0071W: Unable to perform security policy filtering:
   unexpected exception caught: com.ibm.ws.sm.workspace.WorkSpaceException: WKSP0012E Exception when while extracting cells/SG400I_WAS51ProductionServer/filter.policy from Config Repository--com.ibm.websphere.management.exception.DocumentIOException: Unable to create temp file for document: cells/SG400I_WAS51ProductionServer/filter.policy
WASX7327I: Contents of was.policy file:
 //
// Template policy file for enterprise application.
// Extra permissions can be added if required by the enterprise application.
//
// NOTE: Syntax errors in the policy files will cause the enterprise application FAIL to start.
//       Extreme care should be taken when editing these policy files. It is advised to use
//       the policytool provided by the JDK for editing the policy files
//       (WAS_HOME/java/jre/bin/policytool).
//

grant codeBase "file:${application}" {
};

grant codeBase "file:${jars}" {
};

grant codeBase "file:${connectorComponent}" {
};

grant codeBase "file:${webComponent}" {
};

grant codeBase "file:${ejbComponent}" {
};

 
================== SG400I_WAS51ProductionServer
ADMA6010I: The tasks are [com.ibm.ws.webservices.deploy.WSDeployTask, com.ibm.ws.management.application.task.ExtractionTask, com.ibm.ws.management.application.task.CompileJspTask, com.ibm.ws.management.application.task.ConfigureTask, com.ibm.ws.management.application.task.BackupAppTask]
ADMA5016I: Installation of example started.
ADMA6013I: Extract application binaries at /tmp/app_10d6760fc3e/ear
ADMA5009I: Application archive extracted at /tmp/app_10d6760fc3e/ear
Compiling jsps in example.war
Invoking compilation ..
ADMA5003I: Jsps in wars example.war compiled successfully
ADMA6018I: Node-server relation for this app is {cells/SG400I_WAS51ProductionServer/nodes/SG400I_WAS51ProductionServer=[cells/SG400I_WAS51ProductionServer/nodes/SG400I_WAS51ProductionServer/servers/WAS51ProductionServer]}
ADMA5006E: Error in configuring example in WebSphere repository: java.io.IOException: WKSP0012E Exception when while extracting cells/SG400I_WAS51ProductionServer/nodes/SG400I_WAS51ProductionServer/serverindex.xml from Config Repository--com.ibm.websphere.management.exception.DocumentIOException: Unable to create temp file for document: cells/SG400I_WAS51ProductionServer/nodes/SG400I_WAS51ProductionServer/serverindex.xml
ADMA6012I: Exception in run com.ibm.websphere.management.exception.AdminException: ADMA0066E: Error creating config documents in the repository.
Exception: java.io.IOException: WKSP0012E Exception when while extracting cells/SG400I_WAS51ProductionServer/nodes/SG400I_WAS51ProductionServer/serverindex.xml from Config Repository--com.ibm.websphere.management.exception.DocumentIOException: Unable to create temp file for document: cells/SG400I_WAS51ProductionServer/nodes/SG400I_WAS51ProductionServer/serverindex.xml
ADMA6011I: Deleting directory tree /tmp/app_10d6760fc3e
ADMA6018I: Node-server relation for this app is {cells/SG400I_WAS51ProductionServer/nodes/SG400I_WAS51ProductionServer=[cells/SG400I_WAS51ProductionServer/nodes/SG400I_WAS51ProductionServer/servers/WAS51ProductionServer]}
ADMA5011I: Cleanup of temp dir for app example done.
ADMA5014E: Installation of application example failed.
WASX7022E: Problem running command "$AdminApp install "/QIBM/UserData/WebASE51/ASE/WAS51ProductionServer/installableApps/example.war" {-usedefaultbindings -server "WAS51ProductionServer" -contextroot /Myexample -preCompileJSPs -MapWebModToVH {{"example" "example.war,WEB-INF/web.xml" "default_host"} } -appname "example"}" -- exception information: com.ibm.ws.scripting.ScriptingException: WASX7132E: Application install for /QIBM/UserData/WebASE51/ASE/WAS51ProductionServer/installableApps/example.war failed: see previous messages for details.


Standard error:
java.io.IOException: WKSP0012E Exception when while extracting cells/SG400I_WAS51ProductionServer/nodes/SG400I_WAS51ProductionServer/serverindex.xml from Config Repository--com.ibm.websphere.management.exception.DocumentIOException: Unable to create temp file for document: cells/SG400I_WAS51ProductionServer/nodes/SG400I_WAS51ProductionServer/serverindex.xml
      at java.lang.Throwable.<init>(Throwable.java:195)
      at java.io.IOException.<init>(IOException.java:40)
      at com.ibm.ws.sm.workspace.migration.WSURIConverter.checkExtracted(WSURIConverter.java:83)
      at com.ibm.ws.sm.workspace.migration.WSURIConverter.createInputStream(WSURIConverter.java:71)
      at org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(ResourceImpl.java:749)
      at com.ibm.ws.management.application.task.ConfigRepoHelper.getServerIndexDocs(ConfigRepoHelper.java:790)
      at com.ibm.ws.management.application.task.ConfigRepoHelper.updateServerIndexDocs(ConfigRepoHelper.java:695)
      at com.ibm.ws.management.application.task.ConfigureTask.performTask(ConfigureTask.java:98)
      at com.ibm.ws.management.application.SchedulerImpl.run(SchedulerImpl.java:186)
      at java.lang.Thread.run(Thread.java:534)





Avatar of HonorGod
HonorGod
Flag of United States of America image

 Start by making note of the message identifiers. which are of the form: PPPP####S
  Where "PPPP" == Product identifier
    and "####" == Unique message number
    and "S"        == Severity indication.

  The Severity indication will be a single letter:
     I == Informational
    W == Warning
    E == Error

  Look for the first "E" (i.e., "Error") message number, which in your example above, is: ADMA5006E
  Reading the remainder of that line, we find:

java.io.IOException: WKSP0012E Exception when while extracting cells/SG400I_WAS51ProductionServer/nodes/SG400I_WAS51ProductionServer/serverindex.xml from Config Repository--com.ibm.websphere.management.exception.DocumentIOException: Unable to create temp file for document: cells/SG400I_WAS51ProductionServer/nodes/SG400I_WAS51ProductionServer/serverindex.xml

The last part of your log (shown above), is the stack trace associated with this message.

  So, for some reason, your deployment was "unable to create temp file" for the specified document.
Going to http://IBM.com, and entering this message identifier in the "search" input field, and pressing
ENTER, we find 15 documents that refer to this message.

  I would start by checking these references.
Avatar of raghugowda

ASKER

I checked references as you directed me but still unable to know the root cause of the above issue.
 Does the username being used to deploy the application have the authority to write to the specified directory?
Yeah, User is Admin and is having all the permissions/authority. Same User is able to deploy the same application in different instance of websphere.
ASKER CERTIFIED SOLUTION
Avatar of HonorGod
HonorGod
Flag of United States of America image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
No objections from my end.
Since the solution provided didn't help to resolve the issue, how it is considered as an Accepted Answer?
Then why did you posted "No objections from my end" to the proposal to accept this answer?
"No Objections from my end" doesn't mean the solution provided resolved the issue. Since it took a longtime and I didn't get any solution, I thought it would be better to close the question.
If solution helped in resolving the issue, I would have commented as Accepted.
I request you to reopen the question.

Thanks
Raghu