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
15 views

connecting to MySQL over ssh in javafx android [on hold]

I want to connect mysql database located at hosting server using ssh technique in android javafx (using javafxmobile-plugin) project. I scussfully connected to mysql database using javafx android ...
0
votes
0answers
5 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
votes
0answers
28 views

appropriately remove Java on Mac

I would like to remove Java from a Mac. In the terminal, I have done $sudo rm -rf "/Library/Internet Plug-Ins/JavaAppletPlugin.plugin" $sudo rm -rf "/Library/PreferencePanes/JavaControlPanel....
1
vote
1answer
43 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 ...
2
votes
1answer
44 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
18 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
46 views

Run Oracle Java Web Start Client (javaws) by SOCKS Proxy

In OpenJDK, you could set like this cat ~/.config/icedtea-web/deployment.properties: deployment.proxy.socks.port=10443 deployment.proxy.same=true deployment.proxy.socks.host=localhost deployment....
0
votes
0answers
37 views

HTTPS fails when doing self consuming rest call to web proxy

I have a java web application which exposes an Rest API on the local network. The api is also exposed to the internet trough an NGINX proxy running on a separate server with an url like https://api....
0
votes
0answers
20 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
35 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
11 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
53 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
13 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
89 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
21 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
35 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 ...
0
votes
0answers
62 views

java ldap query across domain

My active directory have structur as below: AD server URL = ldap://ldap.abc.com:389 having domain controller as below: dc=xyz,dc=abc,dc=com dc=pqr,dc=abc,dc=com Now, dc=xyz,dc=abc,dc=com has a group ...
0
votes
0answers
52 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
67 views

Upload Generic error java.io.IOException: Permission denied

I'm seeing the blow error in my Java application which tries to upload and download files to an NFS storage. The NFS share is mounted on my server successfully and I'm able to manually write (touch ...
0
votes
0answers
22 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
31 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
74 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
48 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
356 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
89 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
208 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
64 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
26 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
26 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
263 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
64 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
94 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
51 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
17 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
10 views

Configure HTTPS Link for JavaEE app Tomcat

I am in a bit of a situation. I need to configure a webapp to be accessible via a secure link. I am a developer and there is a different person for system admin and servers but said person is MIA and ...
0
votes
0answers
29 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
36 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
2k 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
445 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
323 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
68 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
131 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
266 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
271 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
19 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
714 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
293 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'...