Closed bibhuduttaGitHub closed 4 years ago
@bibhuduttaGitHub The rt.jar
is JRE library. Did you try without adding it as POM dependency?
@vpawar-ai : if we don't add rt.jar, then mvn build is getting failed due to compilation error.
@bibhuduttaGitHub Please remove rt.jar
and other additional dependencies and add javax.mail
dependency. example -
<dependency>
<groupId>javax.mail</groupId>
<artifactId>mail</artifactId>
<version>1.4</version>
</dependency>
Attaching logs. maven_logs_510.txt
@vpawar-ai : Did you do any code change also apart from abobe POM changes? After removing the existing dependency from POM and adding the javax.mail dependency. The code is failing with compilation error.
@bibhuduttaGitHub No code was changed except the pom file changes suggested in earlier response. Please check your JAVA_HOME
environment variable. It should point to <tibco-home>\tibcojre64\1.8.0
@vpawar-ai : Are you talking about JAVA_HOME environment variable on the machine where studio runs? TIBCO BWCE comes packaged with JRE only. ideally we should not point to tibco-home/tibcojre64. We should be pointing to a jdk installed version , which i am pointing currently to a standalone jdk installation.
Let me know your input.
@vpawar-ai : Appreciate, if you can respond to this thread today. Please note, we are building the ear on a jenkins server where maven plugin is installed.JAVA_HOME is set to "11.0.7" version of a standalone openjdk installation on the jenkins server.
@bibhuduttaGitHub Sorry, I was on sick leave. Did you try pointing JAVA_HOME
to JDK\JRE 1.8.0? It is about compatibility between JDK\JRE version and javax.mail
lib used in custom Java Code. With reference to attached logs earlier, it worked fine with 1.8.0.
@vpawar-ai : you mean on jenkin server?
@vpawar-ai : I tried and encountered the same error as above. Attached the log to the case #01900075
@vpawar-ai : Did you get a chance to check the build logs?
@bibhuduttaGitHub I couldn't reproduce the issue when using Java 1.8. Did you try running it outside jenkins? Please check JAVA_HOME
environment variable before you run it.
Maven Plugin version: 2.72.4
Maven version:.3.6.4
Product : TIBCO Businessworks Container edition
Product version: 2.5.4
Component: Either of Maven Eclipse Plugin or Maven build plugin
Steps to reproduce the issue:
Describe the results you received: startup has class cast exceptions.
Describe the results you expected: Clean startup logs when deployed to container.
Additional information you deem important (e.g. issue happens only occasionally): If we export the ear out of studio and use the ear to build the image and deploy to container, it works fine.