Jose Saez

Greenhorn
+ Follow
since Nov 03, 2006
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Jose Saez

I found the problem but i dont how solve it.

the problem occurs when i launch ths script with root, but if i change my user to wasuser and launch the script, it work fine, I don�t understand it.

thanks
Search for within


Post new topicPost new topic Stop watching topicStop watching topic Watch listWatch listForum settingsForum settings HelpHelp

Next topic All forum topicsAll forum topics

My developerWorks
Welcome, Jose_Julian
Edit your profile
Sign out
If you are not Jose_Julian please click here


updating ejb module by scripting webpshere 6
Originally posted: 2006 Nov 03 06:47 PM
Jose_Julian
Post new reply

Hi all I�m trying this code to update an ejb module:

proc actualizaejb {app file path jar} {
global AdminApp ret AdminConfig attribs
puts "\n#**************updating ${file} of ${app}********************#"
set attribs [list -operation addupdate -contents $path -contenturi ejb/$jar -nodeployejb]
set ret [catch {$AdminApp update $app modulefile $attribs} msg ]
if { $ret > 0 } {
puts "ERROR updating application: ${app}. Mensaje de error: $msg"
exit 666
} else {
puts "################Application: ${app} updated correctly##############\n"
}
$AdminConfig save

But i get this message:

An error occurred extracting the application at {WAS_HOME}/profiles/administrador/wstemp/wstemp/app_10eaedf4e12/ext/ejb/$jar: com.ibm.websphere.management.exception.AdminException:
ADMA5011I: The cleanup of the temp directory for application $app is complete.
Update of $app has ended.
WASX7015E: Exception running command: "$AdminApp update $app modulefile $attribs"; exception information:
com.ibm.ws.scripting.ScriptingException: WASX7418E: Application update for $app failed: see previous messages for details.

i dont know what is happening, I have tried to launch in the wsadmin command line only this :
wsadmin# set attribs [list -operation addupdate -contents $path -contenturi ejb/$jar -nodeployejb]
-operation addupdate -contents $path -contenturi ejb/$jar -nodeployejb
wsadmin# $AdminApp update $app modulefile $attribs

but it fail again with the same error.
And SystemErr.log have this traces:
The jar that i want to update have the correct permissions


[11/3/06 19:13:00:079 MET] 00001ec9 SystemErr R com.ibm.etools.j2ee.commonarchivecore.exception.OpenFailureException: IWAE0037E Could not open /var/tmp/app7716.jar
!Stack_trace_of_nested_exce!
java.util.zip.ZipException: Permission denied

at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.<init>(ZipFile.java:111)
at java.util.zip.ZipFile.<init>(ZipFile.java:127)
at com.ibm.etools.j2ee.commonarchivecore.strategy.ZipFileLoadStrategyImpl.<init>(ZipFileLoadStrategyImpl.java:40)
at com.ibm.etools.j2ee.commonarchivecore.impl.CommonarchiveFactoryImpl.createLoadStrategy(CommonarchiveFactoryImpl.java:305)
at com.ibm.etools.j2ee.commonarchivecore.impl.CommonarchiveFactoryImpl.primOpenArchive(CommonarchiveFactoryImpl.java:778)
at com.ibm.etools.j2ee.commonarchivecore.impl.CommonarchiveFactoryImpl.openArchive(CommonarchiveFactoryImpl.java:529)
at com.ibm.etools.commonarchive.impl.CommonarchiveFactoryImpl.openArchive(CommonarchiveFactoryImpl.java:504)
at com.ibm.ws.management.application.client.AppInstallHelper.getArchive(AppInstallHelper.java:116)
at com.ibm.ws.management.application.ArchiveSchedulerImpl.getArchive(ArchiveSchedulerImpl.java:131)
at com.ibm.ws.management.application.ArchiveSchedulerImpl.getArchive(ArchiveSchedulerImpl.java:116)
at com.ibm.ws.management.application.UpdateSchedulerImpl.getContentAsArchive(UpdateSchedulerImpl.java:139)
at com.ibm.ws.management.application.task.ExtractionTask.performTask(ExtractionTask.java:124)
at com.ibm.ws.management.application.SchedulerImpl.run(SchedulerImpl.java:253)
at java.lang.Thread.run(Thread.java:534)

[11/3/06 19:13:00:080 MET] 00001ec9 SystemErr R !Stack_trace_of_nested_exce!
[11/3/06 19:13:00:080 MET] 00001ec9 SystemErr R java.util.zip.ZipException: Permission denied
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.<init>(ZipFile.java:111)
at java.util.zip.ZipFile.<init>(ZipFile.java:127)
at com.ibm.etools.j2ee.commonarchivecore.strategy.ZipFileLoadStrategyImpl.<init>(ZipFileLoadStrategyImpl.java:40)
at com.ibm.etools.j2ee.commonarchivecore.impl.CommonarchiveFactoryImpl.createLoadStrategy(CommonarchiveFactoryImpl.java:305)
at com.ibm.etools.j2ee.commonarchivecore.impl.CommonarchiveFactoryImpl.primOpenArchive(CommonarchiveFactoryImpl.java:778)
at com.ibm.etools.j2ee.commonarchivecore.impl.CommonarchiveFactoryImpl.openArchive(CommonarchiveFactoryImpl.java:529)
at com.ibm.etools.commonarchive.impl.CommonarchiveFactoryImpl.openArchive(CommonarchiveFactoryImpl.java:504)
at com.ibm.ws.management.application.client.AppInstallHelper.getArchive(AppInstallHelper.java:116)
at com.ibm.ws.management.application.ArchiveSchedulerImpl.getArchive(ArchiveSchedulerImpl.java:131)
at com.ibm.ws.management.application.ArchiveSchedulerImpl.getArchive(ArchiveSchedulerImpl.java:116)
at com.ibm.ws.management.application.UpdateSchedulerImpl.getContentAsArchive(UpdateSchedulerImpl.java:139)
at com.ibm.ws.management.application.task.ExtractionTask.performTask(ExtractionTask.java:124)
at com.ibm.ws.management.application.SchedulerImpl.run(SchedulerImpl.java:253)
at java.lang.Thread.run(Thread.java:534)

[11/3/06 19:13:00:081 MET] 00001ec9 SystemErr R at java.util.zip.ZipFile.open(Native Method)
[11/3/06 19:13:00:081 MET] 00001ec9 SystemErr R at java.util.zip.ZipFile.<init>(ZipFile.java:111)
[11/3/06 19:13:00:081 MET] 00001ec9 SystemErr R at java.util.zip.ZipFile.<init>(ZipFile.java:127)
[11/3/06 19:13:00:082 MET] 00001ec9 SystemErr R at com.ibm.etools.j2ee.commonarchivecore.strategy.ZipFileLoadStrategyImpl.<init>(ZipFileLoadStrategyImpl.java:40)
[11/3/06 19:13:00:082 MET] 00001ec9 SystemErr R at com.ibm.etools.j2ee.commonarchivecore.impl.CommonarchiveFactoryImpl.createLoadStrategy(CommonarchiveFactoryImpl.java:305)
[11/3/06 19:13:00:082 MET] 00001ec9 SystemErr R at com.ibm.etools.j2ee.commonarchivecore.impl.CommonarchiveFactoryImpl.primOpenArchive(CommonarchiveFactoryImpl.java:778)
[11/3/06 19:13:00:082 MET] 00001ec9 SystemErr R at com.ibm.etools.j2ee.commonarchivecore.impl.CommonarchiveFactoryImpl.openArchive(CommonarchiveFactoryImpl.java:529)
[11/3/06 19:13:00:083 MET] 00001ec9 SystemErr R at com.ibm.etools.commonarchive.impl.CommonarchiveFactoryImpl.openArchive(CommonarchiveFactoryImpl.java:504)
[11/3/06 19:13:00:083 MET] 00001ec9 SystemErr R at com.ibm.ws.management.application.client.AppInstallHelper.getArchive(AppInstallHelper.java:116)
[11/3/06 19:13:00:083 MET] 00001ec9 SystemErr R at com.ibm.ws.management.application.ArchiveSchedulerImpl.getArchive(ArchiveSchedulerImpl.java:131)
[11/3/06 19:13:00:084 MET] 00001ec9 SystemErr R at com.ibm.ws.management.application.ArchiveSchedulerImpl.getArchive(ArchiveSchedulerImpl.java:116)
[11/3/06 19:13:00:084 MET] 00001ec9 SystemErr R at com.ibm.ws.management.application.UpdateSchedulerImpl.getContentAsArchive(UpdateSchedulerImpl.java:139)
[11/3/06 19:13:00:084 MET] 00001ec9 SystemErr R at com.ibm.ws.management.application.task.ExtractionTask.performTask(ExtractionTask.java:124)
[11/3/06 19:13:00:085 MET] 00001ec9 SystemErr R at com.ibm.ws.management.application.SchedulerImpl.run(SchedulerImpl.java:253)
[11/3/06 19:13:00:086 MET] 00001ec9 SystemErr R at java.lang.Thread.run(Thread.java:534)


thanks in advance