It's all about the answers!

Ask a question

Customizing Email Templates Problem


Dan Duce (2534645) | asked Dec 21 '11, 12:50 p.m.
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

10 answers



permanent link
Gili Mendel (1.8k56) | answered Dec 26 '11, 4:24 p.m.
JAZZ DEVELOPER
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.

permanent link
Marco Valerio Way (5089) | answered Dec 30 '11, 6:23 a.m.
JAZZ DEVELOPER
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

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.

permanent link
Peter Walker (168136) | answered Jan 04 '12, 5:23 p.m.
FORUM MODERATOR / JAZZ DEVELOPER
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

permanent link
Dan Duce (2534645) | answered Jan 05 '12, 6:51 a.m.
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

permanent link
Rich Kulp (3.6k38) | answered Jan 05 '12, 10:38 a.m.
FORUM MODERATOR / JAZZ DEVELOPER
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

permanent link
Marco Valerio Way (5089) | answered Jan 05 '12, 12:19 p.m.
JAZZ 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


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

permanent link
Dan Duce (2534645) | answered Jan 06 '12, 8:29 a.m.
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

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

permanent link
Rich Kulp (3.6k38) | answered Jan 06 '12, 1:08 p.m.
FORUM MODERATOR / JAZZ 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

permanent link
Dan Duce (2534645) | answered Jan 06 '12, 1:16 p.m.
Is there a jar file tool available in IBM that I should be using?

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

permanent link
Rich Kulp (3.6k38) | answered Feb 13 '12, 4:24 p.m.
FORUM MODERATOR / JAZZ 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

Your answer


Register or to post your answer.


Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.