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
0 answers
11 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 ...
  • 151
0 votes
0 answers
16 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 ...
0 votes
0 answers
15 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 ...
0 votes
0 answers
15 views

URL Address Java security error in Android application [closed]

In android application, URL address showing error message of "java.security.cert.CertPathValidationException:". Same URL Working in all the browsers without any issue
1 vote
0 answers
15 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 "...
  • 11
1 vote
1 answer
25 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 ...
0 votes
0 answers
18 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-...
1 vote
0 answers
80 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 ...
0 votes
1 answer
57 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. ...
  • 3
0 votes
0 answers
19 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 ...
  • 3
0 votes
0 answers
48 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 ...
  • 435
0 votes
0 answers
10 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 ...
0 votes
0 answers
20 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:...
0 votes
0 answers
39 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 ...
  • 1
0 votes
0 answers
60 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 ...
0 votes
2 answers
189 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 ...
  • 3
0 votes
0 answers
32 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 ...
  • 111
0 votes
0 answers
7 views

Does springBoot Jar and React build from ubuntu server will work on CentOs server?

We have our jenkins on ubuntu server, we have 2 jobs, one is to create springboot jar's and another one to build react project. After successful completion of job we have to copy it on UAT server ...
-1 votes
1 answer
79 views

GPO policy to give write permissions to java applications in C drive

I wish to run the following instruction in a Windows cmd: java -jar app.jar. App.jar is an application in charge of creating a file in the Temp folder of the Windows user folder but it fails because ...
0 votes
0 answers
105 views

Increase timeout to avoid 504 while running Java EE application on Tomcat on PopOS

I have the following issue: I am new to this area, so kindly forgive for some of my terminology. I am running my Java EE application via Eclipse on my PopOS running on VMWare Fusion on my Mac. The ...
  • 103
0 votes
1 answer
161 views

Disable system property logging in Jmeter

I am running Jmeter using java -jar jmeter.jar ... command and passing a bunch of system properties using -D option. I see that the system properties are being printed in the jmeter log file. I want ...
0 votes
0 answers
131 views

How to list the different java versions installed in a Linux server using Ansible ? How to switch from one version to another using ansible?

I want to know whether two different Java versions are installed in a Linux machine. In my case I want to see whether Java 8 and Java 17 is installed in the machine first, and if the Java 8 is the ...
0 votes
1 answer
100 views

Centos 7 OpenJDK Upgrade Confusion

Wanted to pick someone else’s brain on an issue I’m having and getting nowhere with. We have an older Linux server in our environment and I am looking to patch our openjdk to the Latest versions but ...
0 votes
1 answer
87 views

Application cannot start, claiming "port is already in use", but it is not

Application (apache storm) cannot start throwing the below exception 2022-04-12 04:56:13.997 o.a.s.d.u.UIServer main [ERROR] Exception in UlServer java.io.I0Exception: Failed to bind to 0.0.0.0/0.0.0....
  • 1,642
0 votes
0 answers
76 views

Java App Only Displays Directory List - server misconfiguration?

The library where I work is seeking to implement a lightweight Java app. It's an open source project, available here . Our IT department gave us a basic Linux server running Jetty 10 (I then ...
  • 1
0 votes
1 answer
85 views

Why this java processes are not ending once cronjob has executed in the AIX server?

I have set a crontab for execute a java service in every 8 hours in AIX(7.1) operating system. Once the crontab has done the job, the JAVA service should be end. This cronjob is working properly. But ...
0 votes
0 answers
137 views

Error occurred during initialization of VM Could not allocate metaspace: 1073741824 bytes

When I run this... /usr/bin/pdftk '/home/someuser/public_html/form/Form.pdf' fill_form '/home/someuser/public_html/form/results/Registration.xfdf' output '/home/someuser/public_html/form/results/...
0 votes
0 answers
18 views

Where to get the proper JDBC driver for mysql 8?

I have an instance on jira and a new database mysql 8. After following the guides (https://confluence.atlassian.com/jiracore/connecting-jira-to-mysql-8-0-1018272102.html) I ended up here: https://dev....
  • 877
0 votes
2 answers
266 views

handle tls when domain points to subdomain in cname record

We are trying to point domain to sub doamins *.com --> *.zeineldin.link for example https://www.asrevo.com --> https://petman.zeineldin.link We need to support all domains, not a few domains for ...
1 vote
1 answer
148 views

Google Cloud Directory Sync java nullpointer exception

I'm trying to do some testing with Google Cloud Directory Sync and Active Directory, but whatever I do, I always get nullpointer exeptions. As far as I can find GCDS is a Java application. The GCDS ...
  • 111
0 votes
0 answers
360 views

How to disable DEBUG logs on catalina.out (Tomcat 9)?

I'm getting a lot of DEBUG related logs on catalina.out of tomcat 9. Is there any way to eliminate those DEBUG logs? Changing the log level to WARNING doesn't work for me. Thanks in advance.
0 votes
1 answer
209 views

Ignore directory in Tomcat TldScanner

I run a Java-based CMS which places cached images in the WEB-INF folder, specifically in /WEB-INF/imagecache/. Unfortunately, this directory gets extremely large with lots of nested paths, and Tomcat ...
0 votes
0 answers
174 views

Authentication to SonarQube with Azure AD

I have a taks to implement authentication to SonarQube with SAML from Azure AD We are using SonarQube 8.9.6 LTS with openjdk 11.0.14 OpenJDK Runtime Environment build 11.0.14+9 on Ubuntu 20.04. I've ...
  • 1
2 votes
2 answers
1k views

How to install xargs in container running openjdk:17-oracle

I'm trying to install xargs in a container running openjdk:17-oracle, but I'm unable to figure our what package manager is present in this image. FROM openjdk:17-oracle RUN apt-get install findutils ...
  • 145
0 votes
0 answers
18 views

JDK Mission Control vs Flight Recorder

Sorry, newb... I'm just trying to figure out if it's worth figuring out how to connect JMC remotely to a server to look at a JVM issue... If I use Flight Recorder to record the log, is that log ...
0 votes
0 answers
146 views

Issue while setuping Guacamole with Database connection

I installed a Guacamole 1.4.0 instance on a RHEL 8.5 server. Now, I need to setup the LDAP extensions, but for that I first need to setup the database connection and it's at this moment that I have an ...
1 vote
1 answer
129 views

Why does our Tomcat Java application suddenly open hundreds of connections to our database?

We have a Tomcat application running on Elastic Beanstalk and our MySQL database is hosted on AWS RDS (2 or 3 t3.medium instances). Ever since we upgraded from MySQL 5 to MySQL 8 (currently 8.0.23), ...
0 votes
1 answer
856 views

How to disable lines in java.security to avoid javax.net.ssl.SSLHandshakeException?

I need to disable the following lines in the java.security file (java 8 SE): jdk.tls.disabledAlgorithms=SSLv3, TLSv1, TLSv1.1, RC4, DES, MD5withRSA, \ DH keySize < 1024, EC keySize < 224, ...
  • 243
0 votes
0 answers
104 views

Airsonic: no connection / refused to connect error

Hello StackExchange Community, I have had this issue with the Airsonic WAR for a while now, MySQL completely broke on my server, I managed to fix all services except Airsonic. My server is running ...
0 votes
0 answers
76 views

Javascript not showing up in HTML Header page

I have a javascript code with the full address. And I have added that into the Header Section of the HTML Test Page of the Apache CentOS 7 Server. But when I restart the service and go to the test ...
0 votes
0 answers
9 views

Updating ApacheDs. Changing source code to match

I was wondering how to change the ApacheDs source code to match the updated ones. What is typically the main issue in the code that needs updating. Thank you!
0 votes
1 answer
84 views

POST requests fail after updating Apache load balancer ("empty stream")

We have an apache configured as a load balancer (mod_proxy_balancer afaik) distributing the load to several wildfly application nodes. This was working fine until we updated the operating system from ...
  • 101
0 votes
0 answers
126 views

Where to install SSL Certificate for CURL request to external API

This is a bit of a strange situation, but I'm hoping someone here can provide some assistance. I have a legacy Java application that communicates with an external 3rd party API (UPS online tools). We ...
  • 139
0 votes
0 answers
140 views

how to run .war with java to execute inside dir from desktop shortcut

This is my case. I have a .war that I execute with java and it only works inside its folder: cd /opt/myappdir/ java -jar myapp.war Note: It does not work like that: java -jar /opt/myappdir/myapp.war ...
  • 243
0 votes
0 answers
8 views

PlanLaGa 1.2 failing on fresh install under Windows 10

This program is not updated since 2011 but the authorities still make it mandatory. I've got by by using a older JRE (1.6) but now I get an error in a fresh install. This is the stack tracke I get in ...
0 votes
0 answers
730 views

How to detect log4J on windows server 2016 Datacenter machine

So I recently got a mail about updating to the latest security update to the Apache software installed on my server (vulnerability (CVE-2021-44228 & CVE-2021-45046) related to Apache Log4j), but ...
0 votes
1 answer
35 views

Installing Oracle Java in Red Hat Enterprise Linux

I am seeking advice on a solution for updating Oracle Java in a large number of hosts - We have a large number of RHEL hosts, and we would like to use yum update rather than rpm install for upgrading ...
1 vote
1 answer
167 views

Remove Apache tomcat version from the app at the container level

I am trying to send a GET request to my app as shown: Request GET /c%3a%5cboot.ini HTTP/1.1 Host: myapp.io Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8 ...
3 votes
2 answers
654 views

Kafka stores log4j logs in directory literally called ${kafka.logs.dir}

I installed a preview version of Kafka 3.0 with log4j2 support (http://home.apache.org/~dongjin/post/apache-kafka-log4j2-support/) on a RHEL 8 server. Kafka and Zookeeper are running successfully as ...
0 votes
1 answer
183 views

How to enable java agent for every new java process on the host?

I have a java agent that I want to be automatically enabled for any arbitrary java process running on the host. I cannot rely on aliases or environment variables like PATH, JVM_OPTS etc as I want any ...

1
2 3 4 5
37