Setting JAVA path in Appian

Hi,

In my Linux server with appian 20.4 installed, 

the following are the details in the "profile" file in /etc folder --
export JAVA_HOME=/data-01/appian/203/appian/java ---- actually this path does not exist in the server
export PATH=$JAVA_HOME/bin:$PATH:

But when I run the command 

echo $JAVA_HOME, I find this --

/usr/lib/jvm/jdk1.8.0_191

I tried removing the  java folder, in the above path(/usr/lib/jvm/jdk1.8.0_191) and stopping my Appian services, (firstly the Tomcat) but the jsp commands are unrecognisable. As soon as I restored the Java at the above path, everything resumed fine.

The JAVA_HOME in the profile file refers to a different path while the actual JAVA location used by my services seems to be different.

Can any one guide me to change the JAVA_HOME path?

Can I point my Appian services to use the the Java in this path (/data-01/appian/204/appian/java)? If so where should I set the path for my Appian services to point to this path?

Thanks,

Chetana

  Discussion posts and replies are publicly visible

Parents Reply Children
  • Hi Mathieu,

    I have executed the above commands, restarted my services. and when I check echo $JAVA_HOME

    it is pointing to the new path(/data-01/appian/204/appian/java). And my envi is up and running.

    But during the restart when I checked the logs , I found this

    2022-04-04 08:24:02 Beginning to start Appian in Tomcat
    2022-04-04 08:24:03 WARNING [main] org.apache.catalina.startup.SetAllPropertiesRule.begin [SetAllPropertiesRule]{Server/Service/Connector} Setting property 'maxHttpHeaderSize' to '' did not find a matching property.
    2022-04-04 08:24:03 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server version name: Apache Tomcat/8.5.75
    2022-04-04 08:24:03 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server built: Jan 17 2022 22:07:47 UTC
    2022-04-04 08:24:03 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server version number: 8.5.75.0
    2022-04-04 08:24:03 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Name: Linux
    2022-04-04 08:24:03 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Version: 3.10.0-1160.59.1.el7.x86_64
    2022-04-04 08:24:03 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Architecture: amd64
    2022-04-04 08:24:03 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Java Home: /usr/lib/jvm/jdk1.8.0_191/jre

    Do I need to change the path elsewhere too?

    Regards,

    Chetana

  • Hi Mathieu,

    i have tried the above steps and restared my services and the envi is up and running.

    During the tomcat restart , observed the follwing logs --

    2022-04-04 08:24:02 Beginning to start Appian in Tomcat
    2022-04-04 08:24:03 WARNING [main] org.apache.catalina.startup.SetAllPropertiesRule.begin [SetAllPropertiesRule]{Server/Service/Connector} Setting property 'maxHttpHeaderSize' to '' did not find a matching property.
    2022-04-04 08:24:03 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server version name: Apache Tomcat/8.5.75
    2022-04-04 08:24:03 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server built: Jan 17 2022 22:07:47 UTC
    2022-04-04 08:24:03 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server version number: 8.5.75.0
    2022-04-04 08:24:03 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Name: Linux
    2022-04-04 08:24:03 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Version: 3.10.0-1160.59.1.el7.x86_64
    2022-04-04 08:24:03 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Architecture: amd64
    2022-04-04 08:24:03 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Java Home: /usr/lib/jvm/jdk1.8.0_191/jre

    Do you think I need to change the path elsewhere too?

    Regards,

    chetana

  • Hi Mathieu,

    i have tried the above steps and restared my services and the envi is up and running.

    During the tomcat restart , observed the follwing logs --


    2022-04-04 08:24:03 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Version: 3.10.0-1160.59.1.el7.x86_64
    2022-04-04 08:24:03 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Architecture: amd64
    2022-04-04 08:24:03 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Java Home: /usr/lib/jvm/jdk1.8.0_191/jre

    Do you think I need to change the path elsewhere too?

    Regards,

    chetana

  • 0
    Certified Lead Developer
    in reply to saichetanam

    What do you get when you run

    java -version

    from the terminal?

  • 0
    Certified Lead Developer
    in reply to saichetanam

    Looks good to me.

    I would suggest you log a ticket with Appian support to investigate why Tomcat displayed that message in the logs.