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

0
votes
0answers
3 views

Maven local repo in a common global directory for multiple parallel execution

I have a machine in which multiple parallel maven execution happen. Each execution executes the below command in a separate workspace directory mvn -f main/pom.xml clean package -DskipTests -T 6 Can ...
1
vote
1answer
22 views

Choosing RAM size for a Linux machine running several Tomcats

We have production servers running under Debian Linux which host several busy Tomcat instances, database and support services. The systems ran stable for a couple of years, but lately we seem to ...
0
votes
1answer
36 views

Setup Postfix to catch emails received to a Java program

I would like to configure my PostFix server to forward every emails received to a Java instance, I found some virtual domain config but I don't know how to plug it to my Java instance. Thanks for ...
1
vote
1answer
1k views

Monitor java application memory inside Cloud Foundry

I have a Java application that I'm deploying inside a Cloud Foundry environment. I want to monitor the application's memory usage. Cloud Foundry provides the cf app command that produces output ...
0
votes
0answers
19 views

Elasticsearch does not start on Ubuntu 14.04, possible error with lucene dependency

I have tried installing the elasticsearch package using apt on Ubuntu 14.04, but when I run sudo service elasticsearch status, I get the following output: * elasticsearch is not running I tried ...
3
votes
1answer
45 views

Intermediate certificate not in keystore even though I added it

I was tasked to set up an ssl in a server, this server uses wildfly, so I have to make a keystore that contains all of the certificates that I got, the server certificate, the intermediate and the ...
2
votes
1answer
2k views

TOMCAT Disable org.apache.http.wire logging

I need to shut up the org.apache.http.wire logging level because its logging every single HTTP request and it produces Gigabytes of logging, I'm using the default logging of tomcat6 which I think it ...
2
votes
1answer
2k views

Connecting jconsole using SOCKS to Amazon EC2

I'm trying to use jconsole to view stats on an EC2 instance by using a socks proxy created by SSH. I've tried the various scripts mentioned in the links below but to no avail: http://simplygenius.com/...
0
votes
1answer
2k views

Why is my java process using much more heap space than specified?

I'm running a Java application on Solaris using the -Xmx256M switch. When I connect via JMX, the JVM tells me the application is using about 50Mb of heap, and correctly states the maximum heap size is ...
0
votes
0answers
13 views

Why is the website having 2 instances while deploying on apache2 and tomcat7?

I'm deploying my Java Web Application on VPS which has apache2. The application is being deployed in tomcat7. I've added entries to forward the request from apache to tomcat in httpd.conf. The war ...
1
vote
1answer
19 views

Apache karaf out of memory error

I am working on a virtual server from a local online hosting service where I would like to run an apache karaf instance. During start-up of the server, I get out-of-memory exceptions: Exception in ...
0
votes
0answers
16 views

OpenOffice Can't detect JRE

I'm trying to run the latest version of open office as a service on CentOS 7.4. I downloaded the 64 bit rpm package directly from open office using wget and I'm running a 64 bit version of amazon ...
1
vote
1answer
2k views

Reasons for a TCP Timeout scenario

I am actually currently investigating long running connections of a Java/Tomcat based Web application. After ruling out any internal or application based reasons, I am now down to the network layer. ...
3
votes
1answer
2k 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 ...
8
votes
1answer
3k views

Testing NTLM/Kerberos against a public URL

I am creating a Java open source package that makes it easy to connect with HttpClient 3.1 to resources that are protected by NTLm v1/v2 and Kerberos. I need to test this tool against real world ...
2
votes
2answers
9k views

IIS 7 + Tomcat 7 - how to reach http://localhost:8080/my_app under e.g. http://my_app.local

In brief: IIS 7 + Apache Tomcat 7 + isapi_redirect.dll: I have a deployed and working Tomcat-application available under http://localhost:8080/my_app. I would like to see the same content under http:...
0
votes
1answer
19 views

What Java -Xmx setting can I reasonably expect to work on an AWS EC2 Ubuntu server?

What is your experience? Can you confirm my experimental findings? Can I generally use total RAM - 600 MB, or 0.4 * total RAM? Or is it always trial and error, and hoping that it is low enough? ...
2
votes
1answer
5k views

Tomcat 8.5.4 SSL configuration troubles

The version details : Using CATALINA_BASE: /apps/TOMCAT/tomcat Using CATALINA_HOME: /apps/TOMCAT/tomcat Using CATALINA_TMPDIR: /apps/TOMCAT/tomcat/temp Using JRE_HOME: /usr Using CLASSPATH:...
6
votes
5answers
5k views

Is there a way to change the java JRE a linux Jenkins server uses?

A Jenkins server is running under Java 1.7 on a linux machine and I need to change it to 1.8 so that I can run a specific plugin. The Linux machine has a Java 1.8 JDK/JRE installed, but I cant find a ...
0
votes
1answer
8k views

Error deploying Spring with JAX-WS application in Jboss 6 server

I'm getting the following error when deploying a Spring+JAX-WS application on JBoss server 6.1.0: 09:14:38,175 ERROR [org.springframework.web.context.ContextLoader] Context initialization failed: org....
1
vote
1answer
8k views

Could not find or load main class org.apache.catalina.util.ServerInfo

I am about to install OpenEMM on Ubuntu 16.04 and have installed previously successfully on Ubuntu 14.04. Now I am facing the problem, that somehow OpenEMM can not see tomcat running. I followed the ...
2
votes
2answers
440 views

Does chpst honour ulimit settings?

We are currently experiencing issues with a JBoss-based server on a linux platform - effectively, we are running out of available file-handles within the process, and the server croaks. We have set ...
3
votes
2answers
17k views

Java error Unsigned application requesting unrestricted access to system

I want to reboot a server, so I opened its Integreted Dell Remote Access Controller in Chrome, and clicked on "start virtual console", which caused Chrome to download a file with a strange name. The ...
0
votes
2answers
2k views

Deploying play! 2.0 application on an apache server with a reverse proxy

I'm trying to deploy my play! 2.0 application on an Ubuntu 11.10 server and I have been running into error after error and hope someone can help me here. I am try to deploy my Play! application using ...
0
votes
1answer
65 views

Oracle JDK is no longer available/downloading from the webupd8team

I had been depending on ppa:webupd8team/java to provide the apt package oracle-java8-installer. The packages are no longer present: http://ppa.launchpad.net/webupd8team/java/ubuntu/dists/ What ...
0
votes
2answers
21 views

Tomcat profiler to diagnose problems only evident on production site

I'm working on a Struts site on a Windows server implementing new features and fixes to the JSPs, Actions, Servlets, underlyings JARs, pretty much most of it. Everything was going smoothly until a JAR ...
36
votes
8answers
172k views

What is the value of JAVA_HOME for CentOS?

I have install java through yum on CentOS, however another java programme needs to know what the JAVA_HOME environmental variable is. I know all about setting environmental variables, but what do I ...
1
vote
1answer
2k views

Unable to convert JKS keystore to Oracle Wallet using orapki

I have generated jks keystore using keytool and using the jks keystore I have csr. The same csr I have sent to Signing authority. The Signing authority have given the trusted certificates(root,...
0
votes
2answers
166 views

Can the JVM(Oracle) run into an OutOfMemory error if the heap size is below the max?

I am running a Tomcat site(with an NGinx front end) that seems to be randomly running out of memory even though the max heap size is pretty large. My question is is it possible for the JVM to get an ...
1
vote
2answers
3k views

Can't start WebLogic admin console

I'm wondering how to fix this error. We had the wrong Java installed on my machine when I got it, so my boss installed JRocket to fix things. WebLogic has been having problems ever since. I cannot ...
0
votes
1answer
2k views

enable java app to establish http connection under network of VPN.

Some relative question https://stackoverflow.com/questions/17170980/connect-to-http-server-behind-vpn-with-java has already asked in Stack Overflow while I don't still have a solution since this ...
2
votes
1answer
3k views

How do I change Jboss' logging directory

I'm running jboss-as 7.2. I'm trying to configure all log files to go to /var/log/jboss-as but only the console log is going there. I'm using the init.d script provided with the package and it calls ...
0
votes
0answers
26 views

Unable to log machine's fqdn instead of “localhost” from java program

I am currently using log4j library in java to post logs onto syslog but those logs always show "localhost" for hostname instead of the device's actual name. This only happens when i send log from my ...
4
votes
1answer
7k views

How to install Oracle Java on Debian Wheezy with make-jpkg and fakeroot without errors?

How to install Oracle Java on Debian Wheezy with make-jpkg and fakeroot? the manual for installing oracle java on debian wheezy is quite clear and understandable: http://wiki.debian.org/JavaPackage ...
0
votes
1answer
175 views

unable to find valid certification path to requested target on oVirt

I installed latest CentOS 7 yesterday. Clean install. And I follow this tutorial: https://www.ovirt.org/documentation/install-guide/chap-Installing_oVirt.html The only different is I configured httpd ...
1
vote
2answers
17k views

Native memory allocation (mmap) failed to map bytes for committing reserved memory

I am running a download server in AWS t2.micro instance & I have configured max heap of 512 MB & min heap of 256 MB for my java process. I am performing a migration kind of process in a single ...
1
vote
1answer
3k views

Set up 'tomcat' non-root user in Tomcat 8

I've installed Tomcat 8 in Debian 8 and I need to harden the web server. I'm following the official Tomcat documentation guide and in the security considerations section recommends to create another ...
0
votes
0answers
19 views

Access issue in (Angular Java) Web Application

We are facing a strange issue in our web application (Angular + Java). Some times the application stops working on Countries other than India. Though Angular page gets loaded but it is not able to ...
0
votes
0answers
21 views

Server ignoring latest JDK version

C:\Program Files\Java contains 3 directories: jdk1.8.0_74 jdk-11.0.2 jre1.8.0_201 Yet the java.exe process I find running is that of \jdk1.8.0_74\bin Why is it not using the latest version, and ...
1
vote
1answer
96 views

Java crash due to native memory allocation map failure, despite n

A Java 11 application is crashing in a manner that from my understanding is impossible with the settings I have. The application in question runs on Amazon Linux 2, utilizing Java 11. The server is ...
-3
votes
1answer
30 views

How can I use java installed in container 1 to run a jar in container 2

I am having two docker containers. Lets call them container 1 and container 2. I can install stuff in only one of those. I have to run a jar file in container 1 in which I am not permitted to install ...
1
vote
2answers
3k views

Java MSI install error 3: -2147287037

We want to silent install Java 8 update 60 via its msi. The installation stops with a vague error which isn't very helpful at finding a solution. This is the MSI log: === Verbose logging started: 10....
3
votes
3answers
6k views

Extremely slow startup of tomcat

I have a tomcat 7 installation on a Solaris 10 server. My problem is that starting the server (or deploying a new war) is extremely slow. It usually take 30 - 60 minutes. The war application is a ...
76
votes
9answers
194k views

Can't seem to disable Java Automatic Update

I'm just tweaking out my new Windows 7 laptop and wanted to disable the automatic Java updating (and thus kill the silly jusched.exe background process), but I can't seem to get it to actually turn it ...
0
votes
1answer
30 views

Risks of running my own java code on a production server

I work as an operation engineer in a telecom company, i have several servers under my responsibility, and my main task is to perform the "daily health check" for those, part of that is to compare some ...
0
votes
1answer
41 views

Trust non-CA certificate on RHEL 7/Java

I have a Active Directory controller with LDAPS enabled. When I want Atlassian-products (Jira, Confluence etc.) to use LDAPS towards that controller, it won't trust the certificate. I have tried ...
0
votes
0answers
118 views

downgrade version 1.8.0_201 To java-1.8.0-openjdk-1.8.0.191.b12

using Centos i have an issus trying to downgrade openjdk 1.8.0_201 to java-1.8.0-openjdk-1.8.0.191.b12 and i have this error : Loaded plugins: fastestmirror Loading mirror speeds from cached ...
0
votes
0answers
27 views

How to use same SSL certificates for RabbitMQ server and for another Spring Boot App (Embedded Tomcat)?

I have following Self Signed certificates generated using tls-gen tool: ca_certificate.pem ca_key.pem server_certificate.pem server_key.pem client_certificate.pem client_key.pem I am able to ...
2
votes
1answer
383 views

Installing openjdk 11 on alpine:3.9

I'm trying to build an alpine docker image with openjdk 11. To do so, I'm starting an alpine container: docker run -it alpine:3.9 /bin/sh And running the following: export JAVA_HOME=/opt/openjdk-11 ...
4
votes
1answer
1k 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 ...