Questions tagged [java]

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

Filter by
Sorted by
Tagged with
0 votes
1 answer
23 views

Docker compose - flyway not connecting to mysql

I'm trying to dockerize a microservice built with Spring Boot that uses the MySQL database and Flyway. When I run the microservice through the IDE, the flyway manages to connect with MYSQL, but when I ...
Gustavo Cruz's user avatar
0 votes
0 answers
13 views

How can I get node18 on amazonlinux2?

I'm currently trying to install node18 on a amazoncorretto:11 base image. I'm getting the error #6 11.04 Error: Package: 2:nodejs-18.16.0-1nodesource.x86_64 (nodesource) #6 11.04 Requires: ...
kilseic's user avatar
0 votes
0 answers
16 views

Tomcat 11 error compiled by a more recent version of the Java Runtime (class file version 61.0)

I have installed Tomcat 11.0.0-M6 and I get this error message every time I want to start it for the first time: Error: LinkageError occurred while loading main class org.apache.catalina.startup....
JBD's user avatar
  • 101
1 vote
2 answers
43 views

Apache httpd cannot connect to Tomcat over Unix Domain Socket - SELinux denied

I have an Apache httpd v2.4.57 configured on Rocky9 to connect to Tomcat9 / Java17 over a unix domain socket. SELinux kicks in and says denied, as follows: type=AVC msg=audit(1685376249.480:134): avc: ...
Graham Leggett's user avatar
0 votes
0 answers
26 views

Lenovo ThinkServer RD440 Remote KVM not working

I've got two ThinkServer RD440 servers and equipped them with the extension to use KVM via BMC Web interface. But it's not completely working: When starting the server I can send the F1 key to enter ...
Callya's user avatar
  • 11
1 vote
1 answer
32 views

Saltstack set java alternative using command instead of path

I am trying to apply a salt.states.alternatives to set my default java to java 11. However, I need to put in the full path for the openjdk, which includes the version number that changes every time ...
nothingistrue's user avatar
0 votes
0 answers
176 views

Tomcat 404 error after calling the web services

For the first time, I want to deploy a java web application in tomcat9 (On the Linux OS). I have successfully deployed it and tomcat is running. Also, on the browser, the index.jsp page is shown ...
Mona Kouhi's user avatar
0 votes
1 answer
63 views

Fix Zabbix Java Gateway with a custom Java version (error "compiled by a more recent version of the Java Runtime")

In a production environment we have a simple Zabbix monitoring system that works very well to collect metrics from various Tomcat instances and other Java applications. In short, this is our current ...
Valerio Bozzolan's user avatar
0 votes
0 answers
23 views

Hosting a Java website using tomcat on a Google Domain

First off I would like to apologize as I am a noob to this. I have have been trying to figure out how to get a website to be able to be accessed publicly with Google Domain. I made the website with ...
sal42's user avatar
  • 1
0 votes
0 answers
29 views

Why the /var/log/maillog reports mail_max_userip_connections=10 if set for mail_max_userip_connections = 1000 in dovecot?

I have a Java web application which interacts with dovecot 2.2.36 and postfix 3.3.1 and I see errors from application log as keeps: Java application Log: 04-06-2023 10:18:40 ERROR http-nio-8080-exec-...
user3637971's user avatar
0 votes
0 answers
16 views

How to force Hadoop Daemon or JVM to use given hostname instead of nodes actual hostname

0 I have 5 nodes hadoop cluster with different fqdns with domain xyz.com like node1.xyz.com, node2.xyz.com ... node5.xyz.com, its hostnames are configured with this domains, so if we write hostname ...
Uddhav Savani's user avatar
1 vote
1 answer
114 views

Yum dependencies and metadata for java-headless

I'm trying to install Java 8 and Tomcat 9 on a RockyLinux 9 server. Installing tomcat (from EPEL) requires java-headless >= 1:1.8.0 which is resolved to java-11-openjdk-headless. So Java 11 gets ...
nathou's user avatar
  • 163
0 votes
1 answer
227 views

Configure WildFly to use HTTPS

I am using WildFly25, and have it running with default settings. Server console WildFly Full 25.0.0.Final (WildFly Core 17.0.1.Final) started in 3938ms - Started 308 of 547 services (338 services are ...
Richard's user avatar
  • 125
0 votes
0 answers
16 views

apache tomcat server local field to start

apache tomcat server local field to start on the old version 2018 and newer version 2022 I changed or mostly blocked the active pid ports in command windows so tom cat can run efficiently but after ...
MOHAMED LAAGUILI's user avatar
0 votes
0 answers
70 views

The POM for org.apache.maven.plugins:maven-resources-plugin:jar:2.6 is missing

I created a jenkins free style job I inserted my github repo, Installed maven on the server, When I run the job I get error: The POM for org.apache.maven.plugins:maven-resources-plugin:jar:2.6 is ...
Samson's user avatar
  • 103
0 votes
0 answers
13 views

New Java licensing on servers - JDK or Java SE? [duplicate]

I'm evaluating whether I should code a new (possibly commercial) Linux server software in Java 19. I just noticed that beside of the major Oracle license disaster a few years ago, there is a new ...
CodeShark's user avatar
  • 103
2 votes
2 answers
572 views

Redhat phantom out of memory issues

We have a server that runs various headless applications, such as Java. It processes to stream data, daily python scripts, etc. From time to time some of our applications get out of memory errors. The ...
MikeKulls's user avatar
  • 336
0 votes
1 answer
172 views

Liferay 7.4 doesn't start as windows service

i already asked in Liferay forum but i didn't get an answer, i was trying to configure a clean Liferay 7.4 portal to start as a service on Windows Server 2022, i followed the same steps used to ...
Tinfo's user avatar
  • 1
0 votes
1 answer
2k views

Elasticsearch: java.security.cert.CertPathValidatorException: Path does not chain with any of the trust anchors (ca.crt matches on all nodes)

Note that this entire cluster was working fine up 'til I updated certificates. I'm on Elasticsearch 7.5. I updated my certificates using the certificate-util - created a server.yml with all my servers ...
Epsilon's user avatar
  • 11
0 votes
1 answer
249 views

how and why container and its image is getting deleted automatically?

I have a zeppelin container running on centos7 and on every couple of days the container and its image is getting deleted automatically, and every time i have to to docker compose up -d. here is the ...
Rajsekar Reddy's user avatar
0 votes
0 answers
90 views

The java program reports an error to elasticsearch?

Just started es report: [2022-12-21T02:15:32,549][WARN ][o.e.c.r.a.DiskThresholdMonitor] [es-node0] flood stage disk watermark [10gb] exceeded on [NV7q65SBQBWdsgLjTxbQOw][es-node0][/usr /share/...
鸿钧老祖's user avatar
0 votes
1 answer
187 views

Application slows down (SOMETIMES) at peak times, running on tomcat with a reverse proxy from apache server, deployed on AWS

Just for preface: I'm a software developer and at first no one knew what's going on, so I did some testing and reading, and would like to help my colleagues fix this problem. The issue: The issue is ...
Stefan Horvath's user avatar
0 votes
0 answers
111 views

Understanding GCP AppEngine dispatch.yaml 20 rule limit

Background I am working on a GCP project where apps are deployed in AppEngine Standard Environment for Java8 and routing is done by dispatch.yaml. Also, we are using custom domain. We have around 30 ...
raidensan's user avatar
  • 131
0 votes
0 answers
38 views

Solr Search query is hitting only one node resulting heap issue on that node

We have multiple instance SOLR Cloud running, SOLR performs well but if we have spike in search request then only one node report heap issue and other node are working normal. if this happens then we ...
user avatar
0 votes
0 answers
10 views

SANBOX 5602 - Having diffculty changing control from XP64 to Win10

We use a Sanbox 5602 to route fiber data from several Xyratek Raids to several PC workstations. Had used XP64 workstations in the past, now migrating to Win10. Cannot get any version of Java to work ...
Dannykman's user avatar
1 vote
1 answer
359 views

Java unable to start as service on Centos/Rocky/Fedora "Failed to mark memory page as executable"

A bit of a strange issue here that google doesn't turn up any results for except the JVM source code of this error message. I have a simple Spring Boot fat jar, myapp.jar and I am trying to run this ...
william00179's user avatar
0 votes
0 answers
24 views

unable to start java using shell script from /etc/rc.loal file

i have a java based web application and using Apache server. once centos reboots java process not running again even existing java process killing and for that i created a script to start apache, ...
Harish Mahi's user avatar
0 votes
0 answers
161 views

Java, how does the PATH work with 32-bit and 64-bit Java installs?

I have installed the Chocolatey Java package choco install jre8 -y which installs both the 32-bit and 64-bit packages. When I type java.exe on the console, I see that it is the 32-bit version and that ...
YorSubs's user avatar
  • 135
0 votes
0 answers
255 views

Native memory allocation failed to map bytes for committing reserved memory

I have multi spring boot applications running on the same server, each one in a separate Tomcat. One of those services crasher because of insufficient memory. # There is insufficient memory for the ...
M-BNCH's user avatar
  • 101
0 votes
0 answers
15 views

Make JVM honor the TTL from a dns reply [duplicate]

I read the many articles that JVM has its own DNS caching and TTL. Like https://stackoverflow.com/questions/1256556/how-to-make-java-honor-the-dns-caching-timeout But is it possible for JVM to honor ...
nimdrak's user avatar
  • 29
0 votes
1 answer
220 views

Is it possible to use OS level DNS Cache like nscd, dnsmasq at JVM/JAVA?

Is it possible to use OS level DNS Cache like nscd, dnsmasq at JVM/JAVA? I read many letters saying JVM has their own DNS caching. https://www.ibm.com/support/pages/understanding-tuning-and-testing-...
nimdrak's user avatar
  • 29
0 votes
0 answers
131 views

400 Bad Request - Virtual Host

I'm receiving "400 Bad Request Your browser sent a request that this server could not understand. Size of a request header field exceeds server limit." I am trying to load a page that is ...
Cezar Apulchro.'s user avatar
0 votes
0 answers
78 views

400 Bad Request using Tomcat for Virtual Host

I'm trying to load my java web project in the browser but I'm receiving "400 Bad Request", I have in my Tomcat server.xml: <Host name="localhost" appBase="webapps" ...
Cezar Apulchro.'s user avatar
0 votes
0 answers
16 views

linode nexus server timeout on browser

I installed nexus on a centos07 server but it is not showing on the browser. Linode ports are open by default I checked the status and nexus is runing I also checked the port and everything is working ...
Samson's user avatar
  • 103
0 votes
0 answers
384 views

nginx: How to mapping /.* to /swagger-ui/.*

I am using Ubuntu 22.04.1 LTS , nginx 1.18.0 , Spring Boot 2.7.4 , Swagger . In context of this task https://stackoverflow.com/a/73837422/3728901 , in nginx: How to mapping /.* to /swagger-ui/.* A ...
Raphaël Colantonio's user avatar
0 votes
0 answers
41 views

Running BIRT Viewer on Apache Tomcat on Azure

I have been running BIRT Viewer in an Apache Tomcat application (Java 11, Tomcat 9.0) on Azure for a little shy of a year. It has been chugging along just fine without any issues, but abruptly my ...
Brandon Barkley's user avatar
0 votes
0 answers
192 views

When migrating from RHEL 7.x to RHEL 8.x (or RHEL-like) how does one resolve Java enterprise application dependencies on apache-commons packages?

With the move from RHEL 7 to RHEL 8, RedHat dropped tomcat from the distribution, refocusing their efforts on JBoss as a separate project and dropping tomcat. I have a legacy application to support ...
Justin Haynes's user avatar
1 vote
0 answers
31 views

I am trying to run my WAS server from Eclipse and It seems I don't have permission to use my WAS profile. How can I solve it?

ERROR MESSAGE IN HERE I am trying to send my first message to a queue in WAS that I created. So, I need to run my WAS server from Eclipse. Is there any way to give permission to myself to use "...
yigibm's user avatar
  • 11
1 vote
1 answer
42 views

Convert JRE to JDK centos7

Hi, I am very new to this but I have a centos7 server with a tomcat9 server running some applications. I have only JRE installed on that server based on the command below: [root@ppappih02 ~]# readlink ...
user1999453's user avatar
1 vote
0 answers
88 views

Very slow net communicate with Modbus-slave via TCP

I have a problem when communicate with MODBUS-slave device via MODBUS-TCP protocol on Linux. My Linux host and remote MODBUS-slave device linked directly by wire in one LAN. I have't access to MODBUS-...
Vitaly Vlasov's user avatar
1 vote
0 answers
124 views

How to configure more than one version TLS is used for JMX over SSL?

I want to configure JMX communication for TLSv1.2 and TLSv1.3. I added the java vm argument Dcom.sun.management.jmxremote.ssl.enabled.protocols=TLSv1.2 and checked whether it would work for version ...
Abhishek Dasgupta's user avatar
0 votes
1 answer
376 views

Permission denied when using kill as root

I'm starting a java program as a non-privileged user that I sudo'd into, then exit the shell. Being root again I try to kill -9 the java process. This causes a "permission denied" error. ...
Dino's user avatar
  • 3
0 votes
0 answers
74 views

Update Oracle java 8 cacerts in ubuntu

I have an old ubuntu ec2-classic machine (v. 14.04) on which a critical application (under migration process) is running. I need to update the certs at /usr/lib/jvm/java-8-oracle/jre/lib/security ...
somya's user avatar
  • 3
0 votes
0 answers
600 views

How is setting the system-wide cryptographic policy for Java supposed to work?

When migrating a proprietary Java (and Jetty) based application from RHEL7 to RHEL8 I learned something new: At least with OpenJDK 11 the JVM still defaults to a 1024 bit Diffie-Hellman group unless ...
mss's user avatar
  • 435
0 votes
0 answers
53 views

How to increase the Xmx property without restarting the Wildfly server?

How to increase the Xmx property without restarting the Wildfly server? I was checking the way on Internet how to do it but I just see that I have to change Xmx in the standalone file and then ...
user3637971's user avatar
0 votes
0 answers
114 views

How can I connect to jmx service with ssl authentication using Java Visual VM?

I have Widlfly 10 server and I tried to enable jmx with ssl and authentication. This is the configuration for Java Opts from standalone.conf: JAVA_OPTS="-Xms64m -Xmx512m -XX:MetaspaceSize=96M -XX:...
user3637971's user avatar
0 votes
0 answers
116 views

Java Generic Service in Windows Failover Cluster

I created a JAVA-backend in spring boot and configured it as Windows Service. The purpose of the service is to serve REST API. For instance, to list users, we need to call: localhost:8090/users I want ...
Guan's user avatar
  • 1
0 votes
0 answers
265 views

Wildfly 10 deployment not working very well by replacing war file

I have a java web application that is in charge to execute: log.info("Welcome New York") Then I build the war file and it's deployed to Wildfly 10. After that, I check it out the log file ...
user3637971's user avatar
0 votes
2 answers
835 views

K8S limit number of starting pods at the same time

I have problem with K8S, I have about 30 microservices (java running on spring boot). Microservices needs a lot of CPUs only for startup because there are a lot of libraries. When I deploy all ...
marek's user avatar
  • 3
0 votes
0 answers
118 views

How to install JDK 1.4 on MAC

I need install jdk 1.4 on mac os (Macintosh HD) I tried downloading update packages but it gives following message Does anyone have any solution for this i need that jdk version for testing 1 ...
kirti's user avatar
  • 111

1
2 3 4 5
37