All Questions

Tagged with
Filter by
Sorted by
Tagged with
378 votes
10 answers
794k views

Using env variable in Spring Boot's application.properties

We are working on a Spring Boot web application, and the database we are using is MySQL; the setup we have is we first test it locally (means we need to install MySQL on our PC); then we push to ...
Eazy's user avatar
  • 3,809
16 votes
6 answers
15k views

Could not complete schema update: org.h2.jdbc.JdbcSQLException: Table "PG_CLASS" not found; SQL statement

I have next problem when deploy application on openshift. I use a wildfly application server and PostgreSQL cartrige. In persistence.xml i set property "hibernate.hbm2ddl.auto" value="update". In ...
Klimov Peter's user avatar
16 votes
6 answers
14k views

Spring boot cold start

I have a spring boot application which I'm running inside docker containers in an openshift cluster. In steady state, there are N instances of the application (say N=5) and requests are load balanced ...
Vikk's user avatar
  • 3,363
15 votes
2 answers
12k views

Deploy WAR file to Openshift without using GIT?

I want to upload a WAR file to my Openshift account , but it forces me to use GIT ot GITHUB (here). Please forgive me for saying this , but this is very very annoying . Is there any way upload a WAR ...
JAN's user avatar
  • 21.6k
14 votes
2 answers
13k views

Openshift java.net.SocketException: Permission denied

I am using Java8 and have a Chat Server that works perfectly on my localhost, but when I deploy it to an OpenShift server, I get the following error: java.net.SocketException: Permission denied ...
Richard's user avatar
  • 8,543
14 votes
1 answer
1k views

Openshift service is not available after short inactivity

We have our project hosted in OpenShift (OKD to be precise. We host it ourselves). The setup is as follows: Routing server (Spring Boot 1.5.8 with Zuul): This one takes all the incoming traffic and ...
Nexonus's user avatar
  • 746
13 votes
3 answers
26k views

ERROR: column "id" is of type uuid but expression is of type bytea

My entity looks like @Entity public class Member { @Id private UUID id; @Column(name = "member_external_id", unique = true, nullable = false) private String memberExternalId; @...
daydreamer's user avatar
  • 89.5k
12 votes
2 answers
4k views

Can't connect through WiFi, but possible through Mobile Data

I've a php file named test.php stored in my Openshift server (http://phpgear-shifz.rhcloud.com/v1/test.php) with the below code. <?php echo "Hello"; Task I am trying to download the text from an ...
theapache64's user avatar
  • 11.4k
12 votes
2 answers
802 views

Openshift, a web Service that invoke another web Service

I created a Tomcat 7 app in Openshift, and I deployed my web services there. the problem is that my web service is supposed to call another service. No results are displayed. I tested the service in ...
Lola Loulita's user avatar
11 votes
2 answers
50k views

Does Tomcat 7 support Java 8?

In offcial page of Tomcat it says that Tomcat 7 supports Java 8. If I download this and run with Java 8 it works. But, on Openshift is Tomcat 7 (JBoss EWS 2.0). In this webpage it says that EWS 2.0 ...
mkczyk's user avatar
  • 2,612
11 votes
0 answers
32k views

'java.security.cert.CertificateExpiredException: NotAfter' upon connecting secure web socket

I am trying to connect to a secured web socket to consume a API. Below is the source code. Hosting environment configuration is JRE 1.7 and Tomcat 7. import java.net.URI; import javax.websocket....
Ravi Jain's user avatar
  • 1,472
8 votes
1 answer
2k views

Openshift Spring MVC Tomcat application's deployed path returns 404

I am running a Tomcat7 application using Spring MVC on OpenShift under the domain: financial-datasite.rhcloud.com. I run and test the application locally using a Tomcat server and later push it to the ...
Computer Scientist's user avatar
8 votes
2 answers
7k views

Docker: Insert certificate into ketstore

I'm trying to add a certificate into $JAVA_HOME/jre/lib/security/cacerts truststore on my Dockerfile: FROM frolvlad/alpine-oraclejdk8:slim VOLUME /tmp RUN keytool -import -alias vault -storepass ...
user10063942's user avatar
8 votes
2 answers
24k views

CORS : Response to preflight request doesn't pass access control check: Redirect is not allowed for a preflight request [duplicate]

I am trying to integrate the angualar js app with the backend spring boot , in which i am facing the redirection is not allowed for a preflight request This is deployed on openshift , i have ...
KaMaL's user avatar
  • 91
7 votes
10 answers
48k views

How to get the logs of a POD in openshift to local file

I have my spring boot application running on Openshift as container built using docker Image. I have enabled the logging in my application and prints all the logs. Now i want to examine the log files ...
Lucia's user avatar
  • 810
7 votes
1 answer
9k views

Making an Oracle JDK docker image

I'm trying to create docker image for oracle JDK but the only image I can find is the open JDK. Our applications uses oracle JDK so it is mandatory to build oracle JDK docker images. My question is if ...
Islam's user avatar
  • 1,677
6 votes
4 answers
30k views

Java SSL DH Keypair Generation - Prime Size Error

I'm currently implementing Reddit OAuth2 login into my web app. The handshake and token exchange work fine when testing locally but when running on the server (hosted on 'OpenShift' DIY cartridge) I ...
ALP_Squid's user avatar
6 votes
3 answers
2k views

Cant deploy simple Spring Boot web app to OpenShift

I have a .war file which when I copy to webapps folder in my local instance of Tomcat 9 then it deploys successfully. Somehow when I try to run it on Openshift gear(Tomcat 7) it doesnt get deployed. ...
Tomasz Mularczyk's user avatar
6 votes
3 answers
5k views

HTTP Status 500 - java.lang.NoClassDefFoundError: java/time/temporal/TemporalField when run app on OpenShift

I'm learning about RESTFUL Webservice, i'm building a simply app on free host of OpenShift my server and db on OpenShift : jbossews-2.0 (Tomcat 7); postgresql-9.2 This is my Java build path This is ...
TearsRiver's user avatar
6 votes
3 answers
2k views

Testing spring openshift application locally

I have an application running on Openshift. It works fine, but testing is difficult because i have to push every little thing to openshift and wait for all the building and restarting to see the ...
lunr's user avatar
  • 5,229
6 votes
1 answer
1k views

Jersey JAX-RS REST 404 in Openshift, working well in local Tomcat

I am pretty new to Jersey REST. I follow the tutorial http://javapapers.com/java/restful-web-services-with-java-jax-rs-using-jersey/. It works well locally on Tomcat 7. But when I deploy it into ...
He Zhang's user avatar
  • 137
5 votes
1 answer
8k views

Where to see console log in Openshift?

Recently, I've deployed my JSP project into Openshift server. Now my wish is to see the Console log. Suppose, if I print System.out.println("Message"); into my JSP project, how do I see that message ...
Robot's user avatar
  • 101
5 votes
3 answers
1k views

Deploy JSP Webapplication on Tomcat7 (via OpenShift with GIT)

I have build a web appliation containing a Spring MVC project with a mysql database and a tomcat7 server. This is now published to GIT of OpenShift. But starting the server takes only 160ms and I can ...
DonMarco's user avatar
  • 415
5 votes
1 answer
3k views

Openshift war successfully deployed but I still see the default welcome page

I pushed my skeleton app with spring mvc to openshift git repo. I saw success logs but actually when I go to my app url I see only default welcome page with instructions.. What I could miss? Here is ...
Kirill Reznikov's user avatar
5 votes
4 answers
1k views

OpenShift Java - Use image out of Data dir

I'm trying to create an upload-image button and afterward showing the image on a different jsp page. I want to do this by uploading into the app-root/data/images folder. This works with the below ...
Ivar Reukers's user avatar
  • 7,670
5 votes
2 answers
2k views

how to deploy Spring MVC project on openshift.com

I wanted to Deploy a simple Spring MVC APP to open shift I googled for this and found spring-mvc-3-on-jboss but there project structure is different I have basic Spring MVC project structure is ...
Arshad Ali's user avatar
  • 3,142
5 votes
2 answers
1k views

Openshift update java 7 to 8 in Tomcat 7 (JBoss EWS 2.0) Cartridge

I am new to Openshift and i have created a server instance using Tomcat 7 (JBoss EWS 2.0) cartridge for my spring boot web application. Initially, web application was using JDK7 and was working fine ...
Hardik Vadodariya's user avatar
5 votes
1 answer
599 views

Spring batch JDBCPagingItemReader, ThreadPoolTaskExecutor and multiple pods in OpenShift

We have a Spring batch application with chunk processing which reads records from DB, processes them and calls a service/performs a few inserts/updates a few tables in the DB as part of writer. ...
Kalyan Chavali's user avatar
5 votes
1 answer
4k views

Unable to bind to a port on Openshift

I am running an embedded activemq message server in my application on openshift. According to this, you can only bind on 15000 - 35530. I've tried doing the following, but it's throwing a serious ...
Uchenna Nwanyanwu's user avatar
4 votes
6 answers
12k views

OpenShift Tomcat Processing Annotations Error Deploying War

I updated a java war on open shift and after the update the app won't start. When I looked at the jbossews log file I found the issue but I can't duplicate it outside OpenShift. It's woking fine on ...
Zoran's user avatar
  • 383
4 votes
2 answers
5k views

SpringBoot disable Actuator root

I'm using Spring Boot and exposing metrics with actuator and prometheus. I want to expose info, health, metrics, prometheus, shutdown, and nothing more. But even if I specify into the application ...
osharko's user avatar
  • 214
4 votes
3 answers
2k views

Spark: StreamCorruptedException when deploying to OpenShift in cluster mode

I'm trying to submit a Spark application to my Spark master. The master and several slaves are running in an OpenShift-Environment. The web UI of the Spark master shows the connected workers. The ...
Franz Wimmer's user avatar
  • 1,478
4 votes
4 answers
11k views

JDBC can't connect to mysql database on openshift

I managed to set up MySQL database on OpenShift with phpMyAdmin and all. I was told the host name and port my for my database are $OPENSHIFT_MYSQL_DB_HOST and $OPENSHIFT_MYSQL_DB_PORT respectively, ...
W.K.S's user avatar
  • 9,927
4 votes
3 answers
4k views

invalid target release 1.8

I was try to deploy my application on the OPENSHIFT, but maven can't compile it with error: invalid target release 1.8 my "build" action_hook: export JAVA_HOME="${OPENSHIFT_DATA_DIR}jdk1.8.0_05" ...
Ihor Manachin's user avatar
4 votes
2 answers
3k views

OpenShift upload jar and run it

Hi there I have a simple jar that works like a server, can I upload it to my OpenShift account and run it ? How by the way ? Thanks alot in advance.
TiagoM's user avatar
  • 3,506
4 votes
1 answer
4k views

Recommended Container/POD CPU size for a SpringBoot and Vert.X application on OpenShift

We use OpenShift 3.6 as our Cloud PaaS, I'm testing out Spring Boot and Vert.X applications that connect to Couchbase Cluster. The default POD sizes that are available are 250millicore X 1 GB, ...
Abhishek Ambatipudi's user avatar
4 votes
3 answers
2k views

Adding External JARs to Openshift

I have a pretty basic Java web application (created using Eclipse openshift plugin). The app runs fine on the OpenShift server. Now I need to use an external JAR library for JSON parsing and creation ...
Nayana Agrawal's user avatar
4 votes
3 answers
3k views

Configure MySQL connection in Openshift

I am new in Openshift, and I have one question. I was able to create the database through "phpMyAdmin", but now, I am not able to connect to it. The error I am getting, when I try to connect to the ...
Mick Morrison's user avatar
4 votes
0 answers
432 views

How do I manage session stickiness/affinity in Tomcat container in Redhat Openshift when Reverse Proxy templates are reloaded between requests?

Not looking for a code but a high level answer would suffice. I have a Spring MVC web application which is deployed on Tomcat container in Redhat Openshift cloud platform. It is deployed on 2 servers,...
apgp88's user avatar
  • 977
4 votes
1 answer
4k views

Openshift application build error: "JBAS014807: Management resource '[(\"subsystem\" => \"deployment-scanner\")]' not found"

I have had this error for a long time, but it seems OK with running the application. However, I am always concerned that there might be some hidden costs down the road if I don't fix it. This is a ...
user1693207's user avatar
3 votes
3 answers
15k views

Tomcat - How to persist a session immediately to disk using PersistentManager + FileStore

I want to persist Tomcat's HttpSessions to disk so that it can be used in a scalable cloud environment. The point is that there will be a number of Tomcat nodes up (in a cloud PaaS) and clients can be ...
codependent's user avatar
  • 23.9k
3 votes
4 answers
8k views

How to get kubernetes service account access token using fabric8 java client?

I have configured minikube in my local machine and going to use kubernetes externally. I have created a Service Account in kubernetes and using it's secret I can get the access token using below ...
Chamalee De Silva's user avatar
3 votes
3 answers
4k views

Openshift tomcat's logs: catalina.out and localhost.out contents

I have deployed my WAR application under openshift tomcat7 cartridge. In my application I use log4j. My log4j.properties looks like: log4j.rootCategory=info, A1, A2 log4j.appender.A1=org.apache....
Andremoniy's user avatar
  • 34.5k
3 votes
1 answer
3k views

Spring boot app with Apache Camel shuts down right after it has started

My application is written in Java using Spring Boot and Apache Camel. When run in my Windows development environment it starts and runs nicely. But when run inside my Open Shift test environment, the ...
simonmikkelsen's user avatar
3 votes
1 answer
4k views

Compilation error - package com.google.gson not found in Redhat "Openshift" application

I am devleoping application in openshift using Eclipse Luna which make use of gson jars. I added gson jar files in the Web-inf/lib folder and it is not showing any error in eclipse. But when I Push ...
Parth Pithadia's user avatar
3 votes
1 answer
8k views

OpenJDK on OpenShift: "NoSuchAlgorithmException: EC AlgorithmParameters not available"

I'm running into java.security.NoSuchAlgorithmException: EC AlgorithmParameters not available with Wildfly 8.2 (OpenJDK 1.8.0_31) on OpenShift (the exception is thrown by AmazonHttpClient). It looks ...
mrak's user avatar
  • 2,866
3 votes
2 answers
23k views

how to change jboss time zone IST(Asia/Calcutta) to EST(America/New_York) in jboss7.1.1 server

I am using jboss 7.1.1.I want to change time zone IST(India) to EST(New_York).I got one solution for using java_opts option.I put this below code in domain.conf file in bin folder. JAVA_OPTS="-Duser....
nmkkannan's user avatar
  • 1,291
3 votes
2 answers
4k views

Opening a resource file in a servlet on Openshift

I'm in troubles with opening file within my web-app. I tried it locally within Eclipse and it works fine but when I try to deploy it on Tomcat 6 on Openshift it doesn't find resource files for my web-...
user2534977's user avatar
3 votes
2 answers
792 views

How to deploy Play! framework app to Openshift v3

Perhaps I pop this question to early as Openshift v3 is still in preview, nevertheless there might be a solution to my problem that I don't see :). I'm taking my first steps in building a java Play ...
Erik V.'s user avatar
  • 41

1
2 3 4 5
14