Customizing Email Templates Problem
I've been trying to customize the email templates by downloading the jar file and editing the mailMessages.properties file.
It looks like I'm doing everything correctly, but when I repackage the files and upload them to RAM the emails aren't coming out right.
Instead of the message I edited, I am getting a message that just shows the variable names for the strings.
For the test message I get an email with this subject:
!email_test_subject!
and this body:
!email_test_message!
I edited the file using Notepad and saved it as text. I tried using different encoding including ANSI and Unicode but it made no difference.
What should I be using to edit this file? Is there something else I have to do besides edit it, jar it and upload it? I'm not getting any error messages.
Thanks
It looks like I'm doing everything correctly, but when I repackage the files and upload them to RAM the emails aren't coming out right.
Instead of the message I edited, I am getting a message that just shows the variable names for the strings.
For the test message I get an email with this subject:
!email_test_subject!
and this body:
!email_test_message!
I edited the file using Notepad and saved it as text. I tried using different encoding including ANSI and Unicode but it made no difference.
What should I be using to edit this file? Is there something else I have to do besides edit it, jar it and upload it? I'm not getting any error messages.
Thanks
10 answers
Hello,
I have a similar problem with the email customization.
After the update to the property file, nothing happens, RAM says that the file was loaded successfully, but after a server restart, the messages are the same before the update.
Thanks
I have a similar problem with the email customization.
After the update to the property file, nothing happens, RAM says that the file was loaded successfully, but after a server restart, the messages are the same before the update.
Thanks
This is since the server can not find the property files.
If you restore the default email msgs, and it works fine, make sure that the properties are in a valid .jar. I believe thatyou need to zip it before you upload it.
Dan,
I tried recreating your problem on RAM v7.5.0.2 but didn't get the same
results or problem. But I did have the same problem that Marco ran into
which is it didn't have any affect on the email settings even though I
got the message that it was successfully updated.
I opened defect 60231 to track this... refer
https://jazz.net/jazz02/resource/itemName/com.ibm.team.workitem.WorkItem/60231
Dan and Marco... what version of RAM are you having this problem with?
Regards...
Peter Walker
RAM Development
I tried recreating your problem on RAM v7.5.0.2 but didn't get the same
results or problem. But I did have the same problem that Marco ran into
which is it didn't have any affect on the email settings even though I
got the message that it was successfully updated.
I opened defect 60231 to track this... refer
https://jazz.net/jazz02/resource/itemName/com.ibm.team.workitem.WorkItem/60231
Dan and Marco... what version of RAM are you having this problem with?
Regards...
Peter Walker
RAM Development
I ran into the problem using version 7.5.1.
I did zip the jar file up before uploading it and I got the message that it uploaded successfully.
Do you have to restart the server after the upload for it to take affect? I did not do that.
However, after the error became apparent I restored the defaults and this fixed the problem without restarting the server.
Thanks........Dan
I did zip the jar file up before uploading it and I got the message that it uploaded successfully.
Do you have to restart the server after the upload for it to take affect? I did not do that.
However, after the error became apparent I restored the defaults and this fixed the problem without restarting the server.
Thanks........Dan
On 1/5/2012 6:53 AM, danduce wrote:
Do not zip the jar file. It must be uploaded AS a jar file. If you zip
the jar then the jar will not be found because it is inside the zip. RAM
doesn't expect that.
--
Rich Kulp
Rational Asset Manager developer
I ran into the problem using version 7.5.1.
I did zip the jar file up before uploading it and I got the message
that it uploaded successfully.
Do not zip the jar file. It must be uploaded AS a jar file. If you zip
the jar then the jar will not be found because it is inside the zip. RAM
doesn't expect that.
--
Rich Kulp
Rational Asset Manager developer
Hello,
I'm using RAM v 7.5.2.
I did the upload of the jar file after the modification and I did the restart of the Server.
The upload of the jar file was successful, but if you perform a new download of the current e-mail configuration, into the new downloaded file there isn't the new modified file.
Thanks
Marco
Do not zip the jar file. It must be uploaded AS a jar file. If you zip
the jar then the jar will not be found because it is inside the zip. RAM
doesn't expect that.
--
Rich Kulp
Rational Asset Manager developer
I'm using RAM v 7.5.2.
I did the upload of the jar file after the modification and I did the restart of the Server.
The upload of the jar file was successful, but if you perform a new download of the current e-mail configuration, into the new downloaded file there isn't the new modified file.
Thanks
Marco
On 1/5/2012 6:53 AM, danduce wrote:
I ran into the problem using version 7.5.1.
I did zip the jar file up before uploading it and I got the message
that it uploaded successfully.
Do not zip the jar file. It must be uploaded AS a jar file. If you zip
the jar then the jar will not be found because it is inside the zip. RAM
doesn't expect that.
--
Rich Kulp
Rational Asset Manager developer
I'm confused. The jar file is essentially a zip file. I have to uncompress it to access the various files within the jar file. After I edited the properties file, I compressed all of the files and the folder structure using the "Send To" option in Windows to create a compressed file. I then uploaded the newly compressed file, successfully according to the message I received.
If that isn't the process to follow, what should I do after editing the mailMessages.properties file?
Thanks.....Dan
Do not zip the jar file. It must be uploaded AS a jar file. If you zip
the jar then the jar will not be found because it is inside the zip. RAM
doesn't expect that.
--
Rich Kulp
Rational Asset Manager developer
If that isn't the process to follow, what should I do after editing the mailMessages.properties file?
Thanks.....Dan
On 1/5/2012 6:53 AM, danduce wrote:
I ran into the problem using version 7.5.1.
I did zip the jar file up before uploading it and I got the message
that it uploaded successfully.
Do not zip the jar file. It must be uploaded AS a jar file. If you zip
the jar then the jar will not be found because it is inside the zip. RAM
doesn't expect that.
--
Rich Kulp
Rational Asset Manager developer
Hi,
A jar is more than just a zip. It has internal control files such as the
manifest.
I think if you unzip the default one that you can download from RAM and
just change what you want to change and rezip it up back into a jar
(must be a jar, not a zip, nor can it be a jar within a zip) that should
work.
But as Peter stated, he is already reproduced problems with this and is
trying to track them down.
--
Rich Kulp
Rational Asset Manager developer
A jar is more than just a zip. It has internal control files such as the
manifest.
I think if you unzip the default one that you can download from RAM and
just change what you want to change and rezip it up back into a jar
(must be a jar, not a zip, nor can it be a jar within a zip) that should
work.
But as Peter stated, he is already reproduced problems with this and is
trying to track them down.
--
Rich Kulp
Rational Asset Manager developer
Is there a jar file tool available in IBM that I should be using?
Thanks.....Dan
Thanks.....Dan
Hi,
A jar is more than just a zip. It has internal control files such as the
manifest.
I think if you unzip the default one that you can download from RAM and
just change what you want to change and rezip it up back into a jar
(must be a jar, not a zip, nor can it be a jar within a zip) that should
work.
But as Peter stated, he is already reproduced problems with this and is
trying to track them down.
--
Rich Kulp
Rational Asset Manager developer
I was able to reproduce your problem where it said !email_test_message!
.
The way I did it was I used Windows Send To Compressed, BUT I didn't rename it from zip to jar. It must be jar extension. zip extensions are ignored. The second important point is to be careful and verify that the first folder in the jar is the "com" folder. If you're not careful on the Send To compressed you may not start at the right folder in the jar.
--
Rich Kulp
Rational Asset Manager developer
.
The way I did it was I used Windows Send To Compressed, BUT I didn't rename it from zip to jar. It must be jar extension. zip extensions are ignored. The second important point is to be careful and verify that the first folder in the jar is the "com" folder. If you're not careful on the Send To compressed you may not start at the right folder in the jar.
--
Rich Kulp
Rational Asset Manager developer