Stack Exchange Network

Stack Exchange network consists of 175 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
vote
1answer
937 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
451 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
700 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
183 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
38 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
29 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
466 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
77 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
134 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
124 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" ...
1
vote
0answers
29 views

Can't find jetty config file on Fedora 28

I installed jetty8 on fedora 28, but I do not know where is the configuration file for the server. In Ubuntu the jetty8 configuration file is /etc/default/jetty8. To install jetty I've used: dnf ...
0
votes
0answers
85 views

Multiple Java installations on the same Jenkins slave

I need to have 2 version of Java on the same Docker image: Java 7 for the developers Java 8 for running a Jenkins-slave Because we're running quiet old software, the solution was: RUN echo deb http:...
0
votes
0answers
58 views

Glassfish crashes due too many open files

I am having a backend deployment running on a glassfish server, the frontend of my application sends REST request when it needs some data. Also the backend is connected to a mongo database: ...
1
vote
1answer
6k views

What does “GC (Allocation Failure)” mean in my ElasticSearch 5.6 logs?

I see these constantly in my Elasticsearch 5.6.3 logs. Is this a signal that I should scale up and add more RAM? Or is this just normal operations for ElasticSearch? [GC (Allocation Failure) [...
-1
votes
1answer
37 views

Force a specific user or application to user a specific java version

Bear with me, I'm new to sysadmin stuff. We have a server running RHEL 6 (2.6.32). We have a Pentaho application that interacts with the server as a pentaho user, and we have a team user under whose ...
0
votes
2answers
688 views

Unable to connect to oracle for java8

I've been working with setting up a few servers over the past week using Ansible. Everything has been humming along fine until today a couple of hours ago the java8 playbook I had been using quit ...
1
vote
1answer
505 views

Tomcat Tomcat/9.0.8 error java.lang.NoClassDefFoundError: javax/management/MBeanServerNotification

i am getting the following error when starting my java spring application > `16-Jul-2018 12:00:02.108 WARNING [http-nio-8080-exec-4] org.apache.catalina.loader.WebappClassLoaderBase....
0
votes
0answers
92 views

Opennms warns about Out of memory: unable to create new native thread

We have a problem where our OpenNMS instance is sending false alarms at certain times and the logs shows this: Caused by: java.lang.OutOfMemoryError: unable to create new native thread at ...
0
votes
1answer
1k views

Java Flight Recorder Docker Container

I want to profile a Java app inside a Docker container with JFR. How do I do so? The application I want to profile is not mine, so I can't alter the Dockerfile or any of the source code. Docker run ...
0
votes
1answer
466 views

Is it possible to run Java web application using Nginx server only without tomcat server ?

I am having Java web application (with RESTful webservices). Currently it is running on tomcat server. Is it possible to run Java web application using Nginx server only without tomcat server ??  ...
0
votes
2answers
469 views

known_host for SSH connection

I program an application in Java. This application make a connection between two PC (One Windows and One Linux). My application must make a connection and make few commands. Among commands, I want ...
0
votes
1answer
513 views

SELinux blocks tomcat web application to load Java native library (JNI) - how to configure SELinux on Centos 7?

I have a Centos 7 with Tomcat installed and tomcat user ls -l /var/lib/tomcat total 0 drwxrwxrwx. 5 root tomcat 84 Jul 3 13:18 webapps SELinux is enforcing and a Java web application which tries ...
0
votes
1answer
20 views

Automatic update the file in cloud whenever database of java standalone application is changed

I have created a java standalone application for windows and used SQLite as database and now i want to connect this application with azure so that database can be saved on cloud an anyone help me how ...
0
votes
2answers
1k views

why tomcat7 is using so much RAM?

My Server has only .5GB free memory out of 65GB. total used free shared buffers cached Mem: 64375 63788 587 0 70 11503 -/+...
0
votes
0answers
560 views

Katalon Studio Console Mode fails when started by cron on Linux

I'm using Katalon Studio (https://www.katalon.com/) in Console Mode (https://docs.katalon.com/pages/viewpage.action?pageId=13697253) on Linux (Red Hat Enterprise Linux 7.4) to automate web tests. I'...
0
votes
1answer
184 views

Is it possible to get Apache Kafka to present an SSL intermediate certificate?

After reading this documentation: http://kafka.apache.org/documentation.html#security_ssl I was able to set up Kafka using SSL with a self-signed certificate. I tried setting it up with a Digicert ...
0
votes
0answers
1k views

Jenkins windows slave unable to connect

Trying to start Jenkins slave on Windows with Java Web start gives me this: >java -jar agent.jar -jnlpUrl https://jenkins.example.com/computer/slave-office/slave-agent.jnlp -secret ...
0
votes
0answers
80 views

Java web app runs slow only on production server

I have a web app I built that has 1 page that loads very slowly only on my production server (RHEL). My local dev (Windows) and test server (Ubuntu) are no where near as powerful but this particular ...
0
votes
1answer
217 views

tomcat8: 'free(): corrupted unsorted chunks'

We upgraded from Ubuntu 16LTS to Ubuntu 18LTS a couple of days ago and since then have had Apache Tomcat crash completely twice (once per day, about 25 hrs apart). The java process stops running. One ...
0
votes
2answers
511 views

Bind a tcp socket below 1000 with a non root user using Systemd, java and Ubuntu 16.04

I wanted to try socket activation with Systemd and Java on my ubuntu server 16.04. My idea is to make my program able to open directly a standard socket number with a user that is not root. I ...
0
votes
1answer
56 views

How to deliberately fail DNS resolution in Linux to crash-test a Java app?

The situation is rather simple: to reproduce failures which had happened in a recent outage, I'd like to deliberately fail DNS resolution in JVM's in: Caused by: java.net.UnknownHostException: ......
0
votes
2answers
29 views

How to make a Windows Service startup dependent on Java startup?

I have a Windows Service running that is dependent on Java booted up. When I reboot the computer, sometimes Java will take a while to boot up. The Windows Service will attempt to start, but fail since ...
3
votes
1answer
809 views

How do you tell WHY Windows Firewall is blocking a program?

I have an environment that is running Windows Server 2012 R2 and runs a variety of Java based IBM applications. There is a group policy in place that blocks local Windows Firewall rules from being ...
1
vote
0answers
95 views

Root cause for having a number of zero bytes in regular files

We have corrupt files that contain a number of zero bytes. I wonder what the root cause could be. What I know is: All kinds of files that were recently written are affected, they contain a number of ...
0
votes
0answers
107 views

Tomcat 7 server experiencing a sudden (order of magnitude) increase of the Young GC frequency after upgrade of Ubuntu and OpenJDK

What is the issue? After upgrading instances to Ubuntu 16.04 LTS and OpenJDK 8 the GC frequency can, after hours of normal operation, suddenly increase by orders of magnitude ending up using less ...
0
votes
0answers
250 views

metrics collector + Failed to invoke 'unbuffer' + socket connection left open in CLOSE_WAIT state

we have hadoop cluster on redhat machines , while metrics collector installed and running on one of the master machines we see strange warning from the logs , and we cant understand what the meaning ...
0
votes
0answers
246 views

signin issue with AADSTS90002

I am encountering the signin issue with below error. I had created Azure Active Directory insightstest01 and configured as specified in https://azure.microsoft.com/en-in/blog/spring-security-azure-...
1
vote
0answers
442 views

Forcing TLS 1.2 in Tomcat; catching non-compliant requests and redirecting

I'm using Tomcat (v 7 and v 8 depending on the project) with Java. I want to force Tomcat to use only TLS 1.2 (more specifically, prohibit TLS v1.0 or v1.1). In development in Eclipse I've added -...
0
votes
0answers
33 views

Freshly installed caucho resin does not start

I installed resin 4.0.56 deb under ubuntu with java 9 and it doesn't seem to be starting. Here are the logs: /usr/local/share/resin/bin/resinctl start java.lang.NoClassDefFoundError: javax/...
0
votes
1answer
331 views

First REST call slow on Apache server

I'm facing this issue on some of the requests. All the first calls of a user (or when some time has passed) take up to 60 seconds to be completed. After that it takes milliseconds. It doesn't matter ...
1
vote
1answer
1k views

Why does the Java KVM client for my Dell BMC no longer work?

After upgrading Java to version 8u171 the Java KVM client provided by my Dell BMC's web interface stopped working. The only error message is "Connection failed." I'm using the BMC on a PowerEdge ...
0
votes
0answers
294 views

Spring wont start due to port not available

I am trying to launch a spring application in an Amazon EC2- Amazon Linux 2 AMI instance. I am able to successfully compile my code but when I try to launch the application using the command - java -...
0
votes
1answer
144 views

Appending deployment.properties to enable TLS

I need to be able to append everyone's deployment.properties file to add additional lines to enable all versions of TLS. Big enterprise uses multiple different versions of Java and also multiple ...
1
vote
1answer
362 views

What are “System32\config\systemprofile\javaXX.log” files in Windows Server?

I have Windows server whose c:\ drive is almost full. Only 2 GB is free instead of 60 GB, on which size of folder C:\Windows\System32\config\systemprofile is 24.1 GB. Folder is showing me two kind of ...
1
vote
0answers
109 views

Solr Spark indexing failure due to an error accessing the collection

I am using Solr with Spark in Java to index documents. (Ubuntu 16.0.4) I have set Zookeeper running on port 2181 and my collection test has two shards When I launch my code I have a java.lang....
0
votes
1answer
357 views

Java Multicast Socket doesn't receive anything on Windows

I need to send and receive in multicast. I posted the question on StackOverflow Forum for checking my code: https://stackoverflow.com/questions/50131973/java-multicast-socket-doesnt-receive-anything-...
-3
votes
1answer
49 views

Apollo broker run error

I have been trying to create a broker on my activemq apache-apollo 1.7.1 installation. I get the following error: $ apollo-broker run Startupfailed:java.lang.NoClassDefFoundError:javax/xml/bind/...
0
votes
1answer
190 views

Unable to start Cassandra cluster after configure SSL configuration

I configured client-node encryption using reference http://cloudurable.com/blog/cassandra-ssl-cluster-setup/index.html cassandra version 2.1.16 java version jdk1.8.0_131 JCE version JAVA 8 netty-all-...
0
votes
0answers
82 views

Basic scaling instances of GAE don't shutdown even when idle-timeout is far exceeded

I have configured a version of my default service on Google App Engine Standard (Java, though that shouldn't make any difference) to use basic scaling and run a single B2 instance: <appengine-web-...