This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallAnywhere
- :
- InstallAnywhere Forum
- :
- XSL transformation on archive fails
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jan 31, 2008
05:15 AM
XSL transformation on archive fails
Hi,
I try to apply a xsl-file to a web.xml-file in a war-archive.
Action: Perform XSL Transform - In Archive: test.war
Installed Archive: $INSTALL_TEMP_DIR$$/$test.war
Archive Path: WEB-INF$/$web.xml
Target in installer: $INSTALL_TEMP_DIR$$/$web.xsl
New file: test.xml
The result:
Thank you for your help,
Walter
I try to apply a xsl-file to a web.xml-file in a war-archive.
Action: Perform XSL Transform - In Archive: test.war
Installed Archive: $INSTALL_TEMP_DIR$$/$test.war
Archive Path: WEB-INF$/$web.xml
Target in installer: $INSTALL_TEMP_DIR$$/$web.xsl
New file: test.xml
The result:
XMLScriptWriter: No Installation Objects were skipped
PerformXSLT: FAILED java.io.IOException: Archive doesn't contain entry: WEB-INF\web.xml
java.io.IOException: Archive doesn't contain entry: WEB-INF\web.xml
at com.zerog.ia.installer.actions.PerformXSLTZip.i(DashoA10*..)
at com.zerog.ia.installer.actions.PerformXSLT.m(DashoA10*..)
at com.zerog.ia.installer.actions.PerformXSLT.installSelf(DashoA10*..)
at com.zerog.ia.installer.InstallablePiece.install(DashoA10*..)
at com.zerog.ia.installer.InstallablePiece.install(DashoA10*..)
at com.zerog.ia.installer.GhostDirectory.install(DashoA10*..)
at com.zerog.ia.installer.InstallablePiece.install(DashoA10*..)
at com.zerog.ia.installer.Installer.install(DashoA10*..)
at com.zerog.ia.installer.actions.InstallProgressAction.n(DashoA10*..)
at com.zerog.ia.installer.actions.ProgressPanelAction$1.run(DashoA10*..)
Thank you for your help,
Walter
(5) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jan 31, 2008
02:28 PM
I haven't tried the XSL transform, but I have used the modify text in archive. For your Archive Path:. Just use WEB-INF/web.xml
this command is case sensitive so make sure that the case for your archive path matches what is really in your archive. (Don't necessarily trust what Winzip may say).
this command is case sensitive so make sure that the case for your archive path matches what is really in your archive. (Don't necessarily trust what Winzip may say).
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jan 31, 2008
04:51 PM
Dear purcellk24,
yes, I'm aware of this text-modification action on archives and I use it for web.xml too. It works perfect. Unfortunately, I must use the XSL-transformation and finally always receive this error.
Applying the action 'Perform XSL Transform' xsl-file to the extracted web.xml-file, every works fine.
Has so tried this?
Thank you for any help,
Walter
yes, I'm aware of this text-modification action on archives and I use it for web.xml too. It works perfect. Unfortunately, I must use the XSL-transformation and finally always receive this error.
Applying the action 'Perform XSL Transform' xsl-file to the extracted web.xml-file, every works fine.
Has so tried this?
Thank you for any help,
Walter
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Feb 01, 2008
11:04 AM
ok. thanks. What I meant to say, is use WEB-INF/web.xml instead of WEB-INF$/$web.xml.
And again, make sure of the case in your archive for WEB-INF or web-inf.
And again, make sure of the case in your archive for WEB-INF or web-inf.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Feb 01, 2008
05:17 PM
Thank you purcellk24, indeed the backslash was the problem. Cool, it works now.
Last thing; is it possible to write the modified web.xml-file back to the archive (like Modify Text File - In Archive) ?
Thank you,
Walter
Last thing; is it possible to write the modified web.xml-file back to the archive (like Modify Text File - In Archive) ?
Thank you,
Walter
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Feb 01, 2008
10:20 PM
I'm not exactly sure. I actually created and call an ant build.xml file that basically just calls the jar/war command with update=true. I think it is a little slow sometimes, but it works for me.