Skip to Main Content

Oracle Forms

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Oracle Forms RGB color looks differently in Java

Forms_Canvas_props.JPGRGB color preview.JPGHello everybody

We are currently migrating Oracle Forms 11g application to Java.
When I open the form in Forms Builder the background color used for a Canvas is R100G88b75 however when I am entering this color code here https://www.rapidtables.com/convert/color/rgb-to-hsv.html the color preview looks completely different. The same color as on this page I can see in the Java application ( RGB hex code #64584b)
CSS file
. Clock {
font-family: "MS Sans Serif" ;
font-size: 8pt;
color: #000000 ;
background-color: #64584B;
}
Just wondeering why the colors look differently.
I would appreciate if anybody can help with this.
Thank you in advance

This post has been answered by Michael Ferrante-Oracle on Jun 4 2021
Jump to Answer

Comments

jariola

Hi,

I'm not sure what could be problem.

Check that tomcat user do have read/write privileges to war file and folder where is configuration files.

If you run Tomcat under Java Security Manager, try turn it off.

Also you could try disable Selinux if it is enabled.

BTW, I think it is not good idea store ords config files under folder where is APEX images

/var/opt/tomcat-7.0.54/webapps/i/ords/config/ords

Regards,

Jari

Joseph Upshaw

Jari,

Can you tell me, in some detail, what users you have employed yourself to get through this installation (assuming you've done it and hopefully on linux)? I suspect there are further prerequisites that are not noted in the install documentation.

What user owned the TomCat installation?

What user owned the APEX files, i.e. images and odrs.war?

Did you create the /i directory under the webapps folder? If so, as what user and with what permissions?

Where did you locate your config files?

Thanks for Replying, BTW. I agree it is probably some silly permissions issue.

-Joe

jariola

Hi,

I have previously made Tomcat 6 install to REHL 6.5 and Oracle Linux 6.5 using yum from standard repositories.

Standard install from repository do not apply Java Security Manager for Tomcat 6 and I have not turn Selinux off.

Also I did install OpenJDK from repository.

ords.war is located in /var/lib/tomcat/webapps. Owner and group is tomcat. Both tomcat user and group was created when install Tomcat from repository.

I did create folder /etc/tomcat6/apex and set owner and group to tomcat. Then I did run java -jar ords.war configdir /etc/tomcat6.

Config files are created using SQL deleloper and then placed to /etc/tomcat6/apex folder.

I have also Install HTTPD to serve APEX static files and connect tomcat using mod_jk.

I don't think your problem relates to APEX files.

Regards,

Jari

D.Vega

Hi,

Maybe is user permissions within .war and config dir issue?

These are the steps I've made to make it work:

  1. I have an isolated user for tomcat, so I've downloaded and unzipped ORDS with this tomcat user, into his home folder.
  2. As suggested by @"jariola" , make a different folder for the config. I made it in the user home
    $ mkdir /home/tomcateva/apex/config
    $ /usr/tomcat/jdk1.6.0_27/bin/java -jar ords.war configdir /home/tomcateva/apex/config/

    18-mar-2014 12:35:08 oracle.dbtools.common.config.cmds.ConfigDir execute
    INFO: Defina config.dir en /home/tomcateva/apex/config/ en: /home/tomcateva/apex/ords.war
  3. Then, configure the ords
    $ /usr/tomcat/jdk1.6.0_27/bin/java -jar ords.war setup
  4. Copy the ords.war to the webapps folder
  5. Magic (it should work)



GhanaApexDeveloper

Hi Joe,

Caused by: java.lang.IllegalArgumentException: Environment home /var/opt/tomcat-7.0.54/webapps/i/ords/config/ords/bdb/ael-oWBBrd0gwqyoQpIUG_Z6Rw doesn't exist

From your Catalina log file, there seems to be a problem with your ords config files,It seems it might be corrupted,  I suggest you deploy a valid ORDS  war flie check and grant it the appropriate privileges(read/write).

Regards,

Benjamin.

1 - 5

Post Details

Added on Jun 4 2021
2 comments
1,036 views