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
0answers
13 views

Hibernate Validator specification [closed]

Hibernate Validator spec says that Constraints declared on a superclass getter will be validated along with any constraints defined on an overridden version of the getter according to the Java ...
0
votes
0answers
18 views

Java large heap in container environment

I'm trying to run a Jetty webserver on kubernetes, it needs an extremely huge amount of heap ~ 250 GB in our production environment, ~ 50 GB in our test environment. I'm using jetty:9.4-jdk11, I'm ...
-1
votes
0answers
22 views

JMSCustomException: JNDI lookup no found. Caused by: javax.naming.InvalidNameException: WFNAM00007: Invalid URL scheme name "tcp" [closed]

WARNING [org.apache.myfaces.renderkit.html.HtmlLabelRenderer] (default task-10) Attribute 'for' of label component with id issueOrderFormId:j_id_p is not defined ERROR [stderr] (default task-12) com....
0
votes
0answers
15 views

application establishes LDAP bind with version 2, when its hardcoded in code to only call version 3

we have a java based application that connects to customer´s LDAP lookup server. Customer wants to get rid of any bind requests to version 2. So our R&D updated the option in the code as per ...
0
votes
1answer
15 views

How to get patches for Java SE?

I have been struggling with this all day. Going on day 2. I created a support.oracle.com account and can login, however I am redirected a page asking for a Support Identifier. I do not have one, ...
0
votes
0answers
30 views

Configuring VirtualHost in Spring Boot application embedded Tomcat server in Windows

I have a private Windows server running a Spring Boot jar file and I can access it via the IP address. I have a few websites available which I am able to access via the IP address and filters. (Note ...
0
votes
0answers
24 views

Strange TCP sequence from a device

I'm debugging strange connection reset problem in Java and got the next Wireshark capture: What can be the cause of repeating that ACK? I'm sure that the device received data correctly as it is ...
0
votes
0answers
26 views

jcmd works in console but fails in script

I'm getting mad with what should be a simple task: a java process is running, runs out of memory and a script runs. SELinux is disabled. in setenv.sh : -XX:OnOutOfMemoryError='/opt/alfresco/scripts/...
0
votes
0answers
12 views

JVM (lucee) Metaspace increases constantly

I have a lucee (ColdFusion) server in production. At first, we encountered OS memory exhaustion. We reduced the -Xmx2048m to half available memory and set -XX:MaxMetaspaceSize=1000m. After a while ...
0
votes
0answers
8 views

Newer version of my Spring MVC application not instantiating on App engine

I am deploying a newer version of my Spring MVC Java application to the Google app engine. But it is not building application on google server and throwing Error 404. While debugging I found that the ...
0
votes
0answers
14 views

apache TomEE startup error Java.lang.noclassdefFounderror

I'm trying to run apache tomEE on a windows server but when I run startup.bat I see this error: java.lang.NoClassDefFoundError: Could not initialize class org.apache.bval.jsr....
0
votes
0answers
15 views

Wildfly 10 is clearing server.log when restarts

I'm using Wildfly 10 and the I had to restart so I killed wildfly process and I executed standalone.sh but server.log was cleared. I was checking in forums about that but I get information about jboss ...
0
votes
0answers
15 views

Wildfly Elytron container managed authentication with federated SAML2 IDP

I'm trying to set up container-managed authentication with Wildfly 24 and would like to use an existing (federated) Shibboleth IDP. I haven't found docs detailing that use case, so I opted for the ...
0
votes
1answer
24 views

How to access Jetty Server from outside LAN?

I originally posted this question on stackoveflow but was advised that it would be more suited to this site. I am trying to access a Jetty Server deployed on one machine from another machine outside ...
0
votes
2answers
57 views

Is JDK 1.6 supported in IBM POWER 9(AIX 7.1-7.2)?

I would like to check if jdk 1.6 is supported in AIX 7.2. We are planning to upgrade from AIX7.1-7.2 (POWER7-POWER9). But we are not sure if we have to upgrade java . As our development is done in JDK ...
0
votes
0answers
47 views

Apache Tomcat reject post request for more than 19KB and return 400 BAD REQUEST

Spring boot application deployed on apache tomcat 9 reject post request larger than 19kb. the bookController: @CrossOrigin(origins = "*", maxAge = 3600) @RestController @RequestMapping("...
0
votes
0answers
49 views

Let's Encrypt: SSL Certificate is valid for the Domain but not valid Specific Port (net::ERR_SSL_PROTOCOL_ERROR)

I am using VPS: Amazon EC2 and SSL Cert Provider: Let's Encrypt (through Certbot) I have seen some kind of a question but the answer is not useful for my situation. I have a domain api.example.com ...
0
votes
0answers
22 views

Tomcat Deployment Slow on Unix Server

We recently moved to Tomcat from WebSphere for our application. We are using: JDK 1.8 Build 191 and Tomcat 9.0.50. Most of the application is a mix Servlet/JSP and a few webapps with Spring MVC, it ...
1
vote
0answers
18 views

How to diagnose a quietly dying Java server application?

We run a cluster of Java Spring server apps on AWS EC2 instances running Centos 7. We have health monitors on them, and occasionally an alarm will go off and we'll find that the Java process has ...
0
votes
0answers
17 views

Google Cloud SSL connect failure between tomcat and MySQL

Suddenly started getting this issue. Both webserver and MySQL server are within same Google Cloud account. Webserver is running tomcat with jdbc connection coming in as part of context.xml which ...
1
vote
1answer
45 views

Apache Archiva backup best practices

I have a server running Apache Archiva in standalone mode built from the Apache site tarball. It has been running like a charm for already 6 years. The OS is Debian Linux. Until now all the artifacts ...
0
votes
1answer
35 views

Jenkins Linux Master + Windows Build agent?

Will a Jenkins Linux master work with a Windows build agent? Does anyone know if this set up can be achieved and is supported? Just looking for a proof of concept and that this can work so I can ...
0
votes
0answers
19 views

Tomcat 9: HTTPS doesn't work with Java 11

We run an internal Java web application with Tomcat 9 (Windows Server 2019). We have encrypted the connection with a certificate. As long as we use Java 8 for the Tomcat, everything is fine. If, on ...
1
vote
0answers
42 views

Why do (non-browser) clients sometimes not trust valid, signed certs?

This is a somewhat canonical question ... I hope that's okay. In my employ I often troubleshoot situations where a client running on a Linux server (usually a java application) doesn't trust a valid, ...
0
votes
0answers
11 views

Calling A Class Running On Tomcat JVM Externally

I will try to explain this the best I can, so here goes! I have a class that has a public static void main() method running on Tomcat JVM. Now I have another class which is basically a Thread which ...
0
votes
0answers
20 views

ProxyOverrideError Apache tomcat 9.0

I want to be able to find what is causing Apache to replace all non 2XX responses with its own error document. All I need to do is comment or set off ProxyErrorOverride. With this, Apache will proxy ...
0
votes
1answer
416 views

Azure DevOps: Maven is not installed on agent

I have an Azure Pipeline that is meant to install Java 16 and the run Maven package on my repository. The pipeline looks like this: trigger: - master pool: vmImage: ubuntu-latest steps: - task: ...
0
votes
0answers
28 views

we are performing mysql crawling on 4 different client environments which has centos7 by upgrading maven dependecy jar version from 5.1.6 to 8.0.2

we are performing crawling on our four different client environments by upgrading maven dependecy jar version from 5.1.6 to 8.0.2. As per below mysql link connection should be established to mysql ...
-1
votes
1answer
38 views

Remove subpath (context root) in nginx for a java app

The app is on a Payara server and with a context root nocodeapp-web-front-1.0 I don't want to have this context root in the url. This nginx config gives the intended result for the index page of the ...
0
votes
0answers
18 views

Thread creation randomly starts failing on Ubuntu 18.04

My company owns a few dedicated servers from OVH. We host many of our core services on them. The issue is that seemingly randomly, one of our main servers will start blocking thread creation. Most of ...
0
votes
0answers
43 views

Disable SSL Medium Strength Cipher Suites (SWEET32) in Java

I have a CVE (CVE-2016-2183) that I need to resolve. This is for disabling SSL Medium Strength Cipher Suites (SWEET32). I've disabled this explicitly on all my servers by disabling the cipher in ...
1
vote
1answer
19 views

How to find obsolete Java version users in a windows server

I deploy newer version of Java in windows server. Then I made new version the default one. But How can I find apps, programs, services, that are using older, obsolete java versions, before I unistall ...
1
vote
1answer
502 views

Oracle Cloud Control 13, Cannot connect to Weblogic admin server

Recently I have performed a fresh installation of Oracle Cloud Control 13.3. The first thing I have noticed was that the Weblogic admin server appears to be down according to Cloud Control. When ...
0
votes
1answer
140 views

Daily Apt Upgrade causing oom-killer to kill my java server

My server has died several times in the middle of the night because of this. How much memory is apt-upgrade asking for? Is it being reasonable? I'm trying to decipher the logs here. Any help or ...
1
vote
0answers
295 views

How to import a certificate into my java cacerts file as a privateKeyEntry?

I'm trying to import a CA-signed certificate into my Java cacerts. Now I've got these files: signing request.csr ca-signed certificate.crt ca-signed ceertificate.key ca.cer ca root.cer According to ...
0
votes
1answer
143 views

Is it possible to configure JMXRemote both on localhost and remote IP?

I have a java app running within Kubernetes. I sometimes need to debug it, so I used to connect to the jmx port via kubectl port-forward pods/my-java-app 9010:9010 -n my-java-app. Our monitoring team ...
0
votes
0answers
14 views

Jenkins not detecting java on ubuntu, how to fix that?

Downloaded adopt openjdk version 8 and extracted on the machine. Set the path variable and JAVA_HOME in /etc/environment and /etc/bash.rc also. JAVA_HOME="/home/adminuser/Desktop/jdk8u282-b08&...
0
votes
0answers
60 views

EC2 Amazon Linux - Tomcat starts on terminal but not on browser

PUBLIC IP: 35.175.126.174:8080 The startup of Tomcat 9 occurs successfully, I've configured security group to accept HTTP requests from anywhere on port 8080, there are no errors on catalina logs, but ...
0
votes
0answers
12 views

Killsnoop not showing any results

We are trying to trace a crash of java program in production environment. Java code crashes with the exit code 137. Many searches point to OOM error, but our logs do not prove the OOM condition. ...
0
votes
0answers
380 views

How to increase maxConnections on tomcat

We are trying to increase the number of connections on tomcat7. We are using NIO connector. Our setting on server.xml is set to 15000. But whenever we start the server, jmx export reports the value as ...
0
votes
0answers
17 views

Centos8 java application as service

Background: We are running java springboot applications on Centos8 (for now...) as service but applications take some time to startup: flyway, DAO initialization... Actualy start of service can take ...
0
votes
1answer
888 views

java.exe in "C:\Program Files (x86)\Common Files\Oracle\Java\javapath\java.exe" overridden local Java installation

Why and how come java.exe appeared in "C:\Program Files (x86)\Common Files\Oracle\Java\javapath\java.exe", on Windows 10, and even more surprisingly - overridden my OpenJDK's java.exe binary,...
0
votes
0answers
199 views

Amazon Linux Tomcat 8.5 vs Apache Tomcat 8.5 installation

I am trying to deploy a java/tomcat application to Amazon Linux 2. The app uses Hikari for connection pooling and connects to a mysql database. As part of the amazon-linux-extras packages, tomcat 8.5....
0
votes
1answer
457 views

Getting javax.naming.CommunicationException: Connection reset and AD "event ID 1216" while trying to perform LDAP search using JNDI and GSSAPI

I am trying to analyze the reason for exceptions/ failures during the Ldap search. I am performing operations using JNDI on Active directory domain controller. Here is the background for the things ...
0
votes
0answers
41 views

What is required or need to implement inside microservice which has kafka consumer( B microservice) code to avoid 401 error

I have Microservices called A, B, C, D. A contains Kafka producer code. B contains Kafka consumer code. B consume messages from Kafka consumer and process further and interact with other microservice ...
0
votes
1answer
37 views

Kerberos using JAAS and SMB protocol

We are using JAAS for Kerberos authentication. As a requirement from the customer, we want to make sure that SMB V2 or higher must be used during communication with KDC/AD. I've few basic questions ...
0
votes
1answer
44 views

Using netns to force Java application use specify IP

My VPS provider assigned 4 IPv4 to my vps. However, This assigned to single NIC, and VLAN not working(Maybe it is my configuration problem). If I try using VLAN, I can't get external network using ...
0
votes
0answers
34 views

Missing file permissions only when started with Windows Task Scheduler

I have a bat files that launched a java JVM to allow another server to run tasks on the windows box. Currently after each reboot I've had to log-in as a specific user and run the statup.bat. To make ...
0
votes
1answer
52 views

type -p java does not work in a init.d script

I am trying to modify /etc/init.d/jenkins script, in order to add my custom java path. My solutions is this: JAVAPATH=$(type -p java) PATH=/bin:/usr/bin:/sbin:/usr/sbin:$JAVAPATH However, when I ...
0
votes
0answers
33 views

Connection SQL distant remote communications link Failure gcloud

Hello at all I try to connect through a server Tomcat hosted on google cloud to my host DB (Green Geek) I have donats created two rule firewall between /out on google is one on GreenGreek for the sql ...

1
2 3 4 5
36