Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [java]

Programming language and runtime environment that allows compiled Java programs to run unchanged on most hardware and software platforms

-1
votes
0answers
9 views

Docker: bash_profile doesn't executes on startup

I was trying to upgrade spark from v1 to v2 on Cloudera's quick start docker image, and I did that with pretty much success. The only issue I am facing currently is that whenever I am restarting ...
0
votes
0answers
15 views

How do you decide the number of servers needed for an application? [duplicate]

If a Java application needs 24 GB of Heap size, will you run 6 servers with 4 GB heap each or will it be 4 servers with 6 GB each? What are the pros of running a more powerful server vs running higher ...
1
vote
1answer
9 views

Tomcat returning 400 error to some hosts

I recently upgraded from Tomcat 8.0 to 8.5 Since the upgrade, hosts from other subnets get a 400 response to requests, but on the same subnet the application runs without errors (!) 127.0.0.1 - - [...
1
vote
0answers
18 views

What is the recommended way of deploying a Java EE application in IIS?

I was given the task of deploying a Java EJB application in Windows Server 2012 with IIS 8. The application was previously deployed to Glassfish 4 on Jelastic. After checking the requirements, I ...
0
votes
0answers
10 views

How to serve a TomEE application via domain name without directory name with IIS?

I'm trying to host an EJB application with IIS, backed by TomEE Plus 7.1.0. I followed the steps outlined at https://tomcat.apache.org/connectors-doc/webserver_howto/iis.html. The application can be ...
0
votes
2answers
58 views

AWS MTurk Command Line Tools - A JNI error has occurred

I'm trying to install and use Amazon Mechanical Turk Command Line Tools, which I just downloaded from https://requester.mturk.com/developer/tools/clt I'm trying to run them from a Administrator ...
-1
votes
0answers
11 views

Centos7, Minecraft server (java edition), crontab at reboot and unexpected stops [duplicate]

I researched many topics about minecraft server crontab and I tried to do it on many ways but every attempt has same result. My crontab looks like: @reboot screen -dm -S mc /path/to/run.sh I tried ...
0
votes
0answers
13 views

servlet application behind nginx

We are currently hosting a critical application behind a nginx based reverse proxy. The reverse proxy doesn't have a current WAF policy or something like that running. But we have noticed that when ...
1
vote
0answers
79 views

Java application gets killed in kubernetes while the resource limits and heap size are specified

Background A spring boot Java application is deployed in a kubernetes cluster and gets killed several times per day. I'm using openjdk:8u181-jre for my Java apps. Kubernetes version: v1.11.5 Node ...
1
vote
2answers
40 views

are following assertions about linux load and tomcat right?

I am looking to understand precisely how to use the load average and cpu usage on a Red hat machine that hosts a Tomcat 8 only. After looking on the net, I concluded the following assertions. Are the ...
1
vote
0answers
38 views

Apache buffers tomcat responses, and closes connection to tomcat when request size exceeds 10397232 bytes

I've deployed a web-service application as a Docker container based on tomee:8-jre-7.0.4-plume which is sitting behind a apache httpd:2.4 instance running in another Docker container running on the ...
0
votes
0answers
47 views

Set a specific port for javaw.exe and java.exe

I understood the differences between java.exe and javaw.exe by this link. I know that javaw.exe and java.exe belongs to Java from Sun Microsystems (Run time library), they have some dynamic ports in ...
0
votes
0answers
24 views

org.springframework.amqp.AmqpTimeoutException

My spring boot application throws connection timeout error, and it is never able to connect. The other interesting problem I see is, it is never picking up the connection timeout property defined in ...
0
votes
1answer
39 views

How to keep an Amazon ElastiCahe Memcached/Redis before a RDS MySQL database and use ElastiCache to cache the content?

I created one cluster in ElastiCache and connected that cluster with EC2 instance. And I want to include ElastiCache in front of my RDS(MySQL database). I have two questions which are as below. 1)Is ...
1
vote
1answer
46 views

AWS file strategy when reading large files that don't change often

We have a web (Rails) application where a small number of somewhat large (1 - 10MB) business logic files can be uploaded by administrators. The content files will not change frequently, maybe once a ...
1
vote
1answer
36 views

Properly redirect traffic with nginx for java client-server apps that use their own certificates

I have a server and a client app, that communicate with each other using Https connection and their own certificates (.jks file). The server listens on port 443 and the client connects to it using the ...
0
votes
0answers
40 views

unable to find valid certification path to requested target on oVirt

I installed latest CentOS 7 yesterday. Clean install. And I follow this tutorial: https://www.ovirt.org/documentation/install-guide/chap-Installing_oVirt.html The only different is I configured httpd ...
4
votes
0answers
46 views

Why does the same Java service use up to 4x the RAM when running 1 core vs 2 cores

I have an Ubuntu 18.04 VM image that runs a Java 8-based server process. When running on a single core EC2 t2.small instance (2GB RAM) it starts with an RSS of 432M. Running the exact same server ...
3
votes
2answers
666 views

Please help interpret OOM-Killer

We were testing our java application and it was killed by the OOM Killer, logs below. A couple of points: this is a java web application. It runs with a 190G heap. The server is a 240G total memory ...
0
votes
0answers
36 views

Spring boot app still getting OOM in Kubernetes

I have a gray hair from this. I have a Spring Boot application running in Kubernetes, and I cannot find some reasonable value for memory limit, very often I am getting OOM on values lower than 512MB. ...
1
vote
2answers
40 views

How to install OpenJDK8

I am having a hard time download OpenJDK for Linux (RedHat). I do not see any links to download the latest version of jdk8 on site https://openjdk.java.net/projects/jdk8/ There is a link for Early ...
0
votes
1answer
312 views

OpenJDK 11 can't run Java 11 JARs

I have been trying to figure out why my OpenJDK 11 installation can't run JAR files compiled at class level 55. I even went so far as to completely remove Java from my system and reinstall. I am ...
0
votes
0answers
19 views

Tomcat Java error (Java/Tomcat noob)

Have an old java site archive that I'm trying to spin up to see what could be done to "convert" it to php, but I'm terrible when it comes to Java and Tomcat. Dropped the .jsp files in to the webroot ...
1
vote
1answer
106 views

Enabling SSLv2Hello causes SSL handshake failure against AWS endpoints

We are hosting on AWS, and all our endpoints use predefined security policies that do not allow TLS below 1.2 (that is, TLS-1-2-2017-01 for ELB or TLSv1.2_2018 for CloudFront). One of our customers ...
3
votes
1answer
502 views

Install Java 9, 10, 11, or 12 on FreeBSD 11.1

When I look to my up-to-date Ports collection: cd /usr/ports/java && ls -d openjdk* … I see only versions 6, 7, and 8 of Java in the OpenJDK releases: openjdk6 openjdk6-jre openjdk7 ...
0
votes
0answers
28 views

JVM is crashing in a call of RUNJVA from a CL program on AS400 machine

Calling a runnbale jar from a CL program by using RUNJVA command two times with different parameters as,      RUNJVA     CLASS('/MYFOLDER/JAVA/project.jar') +                PARM('INIT' '129.186.121....
0
votes
0answers
65 views

Can I set or override web.xml filter on a per-app basis in Tomcat like the Context Container?

I have a Java web app running on Tomcat 8.5. The app uses the SpnegoHttpFilter configured in the app's web.xml. This configuration includes some site-specific values like spnego.preauth.username and ...
0
votes
1answer
56 views

DigitalOcean VPS Tomcat server: can't configure port 80 and multiple domain names

I have a VPS (droplet) on DigitalOceanI'm trying to configure 80 port and several domain names for my server. After reading some questions and answers I edited my server.xml file like this: <?xml ...
0
votes
0answers
13 views

How to upgrade from Java 7 to Java 8 on Amazon Linux [duplicate]

I found another thread on this that is outdated and doesn't give a non-interactive way to do this. If you need to upgrade from Java 7 to Java 8 to run Jenkins, or whatever other Java application, you ...
0
votes
1answer
58 views

Update tzdata on RHEL4 with no RPM from RedHat

I have an RHEL4 server with no connectivity to Internet. (Of course, I can scp files into that server from my network). RHEL4 is out of support and RedHat no longer releases tzdata update RPMs for it. ...
0
votes
0answers
14 views

WildFly common.sh script is missing

When I try to run WildFly version 13.x I get this message: ./standalone.sh: 43: .: Can't open ./common.sh I checked and indeed the file is missing from the WildFly bin directory, however in version ...
1
vote
1answer
237 views

Connection refused for Java HTTP Server running on localhost

How would you investigate the following issue? On a specific server; any HTTP-Requests sent to a Java Server running on localhost fails with "Connection refused". (See the Java code here) In the ...
1
vote
0answers
34 views

Hyper-v dynamic memory issue with java spring boot

I have a developer who wrote several applications in Java spring boot and I have a VM configured with dynamic memory. His application stops working intermittently and he's pointing the finger at the ...
0
votes
0answers
63 views

Google Appengine unable to look up SRV record

I have an instance of mongodb running on Atlas and a Spring Boot application running on GAE trying to access this database. I have no problem running it locally but when running on GAE I see this ...
1
vote
0answers
68 views

Disable Java in LibreOffice

I am working on deploying LibreOffice to RHEL7 workstations, and I need a way to disable LibreOffice's Java settings globally. I refer to Tools -> Options -> LibreOffice/Advanced -> "Use a ...
0
votes
0answers
38 views

Bundling multiple WAR files for in Elastic Beanstalk

Our application has multiple WAR files. I've been following the documentation here to try and bundle them, however I'm using the pre-configured Docker + Glassfish template rather than Tomcat: https://...
0
votes
1answer
74 views

How do I get a thread dump of my Wildfly process on Amazon Linux?

We're using Wildfly 11 with JDK 8 on Amazon Linux. How do I get a thread dump of our Wildfly process? We're trying to troubleshoot why we're seeing high CPU utilization for that process. We do NOT ...
0
votes
1answer
169 views

Multiple Java Keystores

I created a Keypair using the following command: "%JAVA_HOME%\bin\keytool" -genkeypair -keysize 2048 -alias tomcat -keyalg RSA -sigalg SHA256withRSA I noticed there is a key store in jdk/lib/...
0
votes
0answers
79 views

App no longer deploys to google app engine after java8 upgrade

While working on the journey of upgrading my multi-module maven java application to java 8 from java 7 i am getting an exception at the very end. Was able to work through most of the issues but i am ...
1
vote
1answer
663 views

Active Directory LDAPS and Java 181 LDAPS Verification

Java 8u181 (Java 8 Update 181) enhances security around LDAPS connections: Change: Improve LDAP support Endpoint identification has been enabled on LDAPS connections. To improve the robustness ...
0
votes
1answer
298 views

How to configure Wildfly to read environment variables

When porting an application from the Java application server GlassFish to Wildfly I noticed that applications in Wildfly report environment variables as empty, whereas GlassFish reports a value. The ...
0
votes
1answer
32 views

Java daemon keeps failing due to FileInputStreamException for config files outside its jar package

I want to implement a Java application as a daemon / service that runs on my Raspberry Pi with standard Debian Stretch (Kernel version 4.9). The java application starts but then throws an exeption ...
0
votes
0answers
593 views

browser says my server uses an unsupported protocol

I am making my site into https site. Got a Comodo certificate. Browser says: "This site can’t provide a secure connection" abs-appsupport.hhs.int.state.dp.us uses an unsupported protocol. ...
0
votes
0answers
163 views

Systemctl start embeded Tomcat fail

I have a java project with embedded Tomcat 8.5. I have add a new service to sytemd to run it as a service in CentOS 7.2. When I use "systemctl start app.service" to start the server, the program will ...
0
votes
0answers
33 views

SOLR: Installed on a new server and not able to create cores: simply stuck

I have an Ubuntu 18.04 LTS server and willing to install SOLR on it, note it is a development server with many other software on it. The installation works well: java -version java version "1.8....
0
votes
0answers
28 views

“Install New Application” tab not visible in websphere application server base

Recently I installed websphere application server base 64bit on centos os and dmgr and node agent working fine but In the console there are not options visible for create server, New application etc ...
0
votes
0answers
400 views

Where should I set context path for Tomcat?

My regular question about Tomcat. Tomcat docs about <Context>. It is NOT recommended to place elements directly in the server.xml file. But This attribute must only be used when ...
1
vote
2answers
70 views

How can I find disk space usage?

I have a Ubuntu docker run on CentOS host in Google Cloud. The docker runs a spring-boot application used for image uploading to S3. I do not save anything on local disk. Every 2 weeks or so, I have ...
0
votes
1answer
110 views

Why Nginx is so much faster than Apache in this environment?

We have a web application with a java backend and a tomcat frontend server. Before the tomcat there is an Apache. Both of them are on one host. The backend is on another host. Web browsers communicate ...
0
votes
1answer
87 views

Auto-unpacking WARs doesn't work

I have trouble with auto-unpacking WAR-files in Tomcat. My Host descriptor at server.xml (defaultHost="mp.org"): <Host name="mp.org" appBase="/var/www/mp/target/web/" unpackWARs="true" ...