Newest java Questions

Q&A for system and network administrators

WAS not processing request hence web are not available

I'm newbie for supporting WAS(Websphere Application Server), currently I'm having issue with my WAS, my WAS was installed under AIX under 2 servers/nodes. While investigating it, I found in our ...

Use Java APIs + AWS KMS to sign URLs for CloudFront? [migrated]

Using Java APIs, is it possible to use Amazon KMS to sign URLs for Amazon CloudFront?

TOMCAT : SPNEGO CONFIGURATION ERROR

I have troubles with SPNEGO TOMCAT 7 configuration: I follow this guide for setup: spnego-tomcat-config Here is my krb5.conf [libdefaults] default_realm=lctr.corp default_keytab_name="C:/tomcat/...

how to configure windows login to get OTP as password

I searched a little and understand that its possible,But i couldn't find any clue of how to do it.Also can i use any server that works or it must be something like SafeNet's blackShield server? What i'...

How do I setup a Letsencrypt ssl on Xeams mail server?

First, I was able to successfully setup a letsencrypt certificate on an Ubuntu 14.0.4 server for my domain, and I confirmed everything was okay, by verifying I could access my domain via https and ...

Conection Issue with Postgres(pgadmin) with Greenplum db

I am using Greenplum Db virtual machine where my configurations are as follows : hostname : gpdb-sandbox.localdomain ip : 10.0.2.15 remote ssh : ssh gpadmin@localhost username : root password : ...

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 ...

How best to secure a Java web service via Jetty that we are now making public-facing?

We have a web service that currently runs only internally within a network and there is no access outside the network. This web service is written in Java and runs through a Jetty servlet engine. It ...

Session issue on Load balancing URL Apache Web Server + Tomcat 7.0.54

I'm facing the session issue on the load balancing URL, the session is not getting created but it works fine when I use the Tomcat URL directly. Controller: @RequestMapping(value = "/...

how to create Mib file in java.I googled for it but cant find anything helpful. I am using snm4j and snmp4j-agent libarraies

I googled for it but can't find anything helpful. I am using snm4j and snmp4j-agent libararies. //here is my sample oid final OID oid1 = new OID(".1.3.6.1.2.1.6666.2.2.2.1"); //while quering ...

Hudson has stopped adding build number to directory

I'm Can anyone tell me where Hudson adds the build number to the directory? All builds are being set as dist_-1 where they used to have a build number on them! There is this error after a ...

Unable to connect to MySQL Cluster with ClusterJ

Database server machine MySQL cluster is installed on single machine. On database server I have created user: mysqlcluster. This user does not have admin privileges. I have downloaded generic Linux ...

Clustered Tomcat 7 warning on startup: “..StandardManager[]] does not implement ClusterManager”

I'm trying to set up Tomcat 7 multicast clustering, but I'm getting this error on startup: WARNING: Manager [ org.apache.catalina.session.StandardManager[]] does not implement ClusterManager, ...

Setup Multiple User Webdav with database authentication

I have setup a Webdav Server in my Local Tomcat Server. I am looking to setup authentication using MySQL. The database will contain the user login credentials as well as the folders the user has ...

Weblogic doesn't close files (but does close connections)

Dears, we're running into a 'too many open files' issue. We've made some progress but the issue is still there... We use cxf on weblogic on aix. relevant cxf configuration: <http-conf:conduit ...

java.security.KeyStoreException: TrustedCertEntry not supported

I am trying to secure my private docker registry using SSL encryption. According to this, I need to copy a .crt and .key to a /certs directory and it will work. What I have now is a .csr, .keystore ...

IPMI:ProLiant DL320e Gen8 Server, ILO4 IPMI Over lan testing Verax System's IPMI Java Library

I'm testing IPMI Using Verax System's IPMI Java Library. Server model is ProLiant DL320e Gen8 Server and ILO4 in lib, there is a method which name is getAvailableCipherSuites and this do not work, ...

Correct directory for my own jar applications, and their configuration

I coded a Java application (in this case an Apache Camel application) that I package as a jar file. It's an executable program (not a library). I am wondering where is the appropriate place for such ...

Mongo Replica Set behind Firewall

Given you run a current version (3.2) of MongoDB as a replica set in your network consisting of 3 nodes: mongo1.local mongo2.local mongoarbiter.local Now those nodes should be available via public ...

How to block IP by interacting with Firewall in JAVA?

I have built an Intrusion Detection System in JAVA. I have a web interface which shows a black listed IP. IP's are categorized as Web attcks, SIP attacks, SSH attacks, Probing and Malware. Now I am ...

How to fix java.lang.ClassNotFoundException: solr.VelocityResponseWriter?

I am trying to get Solr 3.6.2 example to work but there seem to be an issue with velocity library not found FROM java:7-alpine ENV SOLR_VERSION=3.6.2 ENV SOLR=apache-solr-$SOLR_VERSION RUN mkdir /opt ...

Protect my database password from developers

We have an application that uses a database at my workplace. Currently, it's using a username password to authenticate (though we could use trusted IPs connections). We don't want to use trust because ...

Jetty Crashes After Let's Encrypt Certificate Import

I'm using an application that comes bundled with Java 1.8.0_77-b03 and Jetty 9.3.3.v20150827. Everything works great until I import my Let's Encrypt certificate into the Jetty JKS. Once I do that, ...

WebLogic T3 protocol in OSI model and it's relation to HTTP?

I'd like to figure out which level of osi model is represented by WebLogic Server T3 protocol and it's relationship to http protocol (one is build over another; one is used instead of another...) ...

Authorization required to install jzos batch launcher

We are trying to install the JZOS Batch Launcher. The function consists of three pieces: a load module that must be put into a z/OS PDSE, a sample start proc that can be tailored and put into an ...

How to restart java app managed by systemd on OutOfMemory errors

I have the java app (on top of Spring Boot framework) installed as systemd service. [Unit] Description=${module_name}-service Requires=network.target After=syslog.target [Service] User=${user_name} ...

Which type of server do I need for my Java application to run a couple of thousand times daily? [duplicate]

I'm very new to this so please keep that in mind. :) I have a Java application (a simulator) that uses almost 50% of my CPU. This is when I run the program in the most efficient way. It takes about ...

Tomcat 8.5 can't load @WebServlet annotations

I want to transfer my web application from tomcat7 / java7 to tomcat 8.5 / java8. My application consists of a directory with some JSP files & WEB-INF folder which contains my application's web....

How can I check if my ElasticSearch process is using compressed oops?

I'd like to figure out if I need to tune my currently-running ElasticSearch cluster. How do I check if a running HotSpot process is using compressed oops or not?

Why multiple instances on single server is better than single intance on single server?

Want to understand why cluster with multiple instances on single server is better than single instance on single server. Assuming linux server with 16GB RAM and for java application.

Glassfish 4.1 How to change URL for webservice WSDL and Tester

I am using GlassFish 4.1 as my development Java EE server for a simple webservice. Everything works fine except GlassFish is using server name in links on the "Web Service Test Links" and "View WSDL" ...

ERR_CONNECTION_TIMED_OUT after setting up a load balancer on Amazon Web Services

I have a site set up on AWS using Spring Boot on port 5000. I was able to connect to the site fine using HTTP only. I want to set up HTTPS using Amazon's Certificate Manager to deploy an SSL ...

Can't start tomcat as service in redhat

I'm new to Linux but having spent a whole day I Installed Java and Tomcat. My goal is to host an App with this Linux box. I know it all works fine from my windows based machine, but it is my laptop so ...

Shibboleth Could not locate Java.exe Please check the value for JAVA_HOME [closed]

I am trying to install Shibboleth for development on my local copy of windows 10. I am on the first step and stuck. After downloading the shibboleth identity provider I am not able to install as I ...

Execute JSP files in IIS7 and Tomcat6

I want to execute JSP files in on Windows Server having IIS7, Tomcat6 and Java 1.6 installed. Already Installed: Java 1.6 IIS7 Tomcat6 BonCode Apache Tomcat AJP 1.3 Connector Current scenario: I am ...

Cannot install openjdk-8-jre-headless on Debian Jessie

This Friday I saw that I had 2 held back packages for some reason when I ran apt-get upgrade, so naturally I did what any inexperienced sysadmin would do and uninstalled the packages in the hopes that ...

nginx proxy pass removing header SM_USER from java spring rest client request

We are using nginx as a proxy for a java application (both in docker containers, but that's probably not relevant). When we try to reach the java application via a rest client a specific header, ...

Mobicents Tomcat Servlet - /bin/java: No such file or directory /usr/java/jdk1.8.0_60/jre

I'm trying to run an instance of Mobicents with Tomcat embedded (on a Redhat 7 64bit machine) but I'm running into a startup issue. Whenever I run the /bin/startup.sh file of mobicents it fails to ...

Can't access jboss remotely despite of proper binding of IP address in standalone.xml file

I am using JBOSS EAP 7. I start it using the command sh standalone.sh -b 0.0.0.0 Following is my IP config when not binding explicitly from command line. <interfaces> <interface ...

Is it a good practice to clear `work` and `temp` directory when deploying applications to Tomcat?

I wonder if work and temp should generally left to mange by Tomcat or should I manually clear it from time to time? In our specific case new versions of the applications are always enumerated with ## ...

Can I host multiple root-level web services from one Wildfly instance?

Wildfly works great when I am sticking a bunch of my applications in, as such: app.com/first app.com/second However, I would like to obtain the following: first.com second.com Where each app ...

Can swapped memory be read directly by java?

When the kernel swaps stuff to disk, can this data be subsequently read by the process directly from swap? or it must absolutely be put back into physical ram (thus generating si so activity in vmstat)...

Set JDK 8 as the default Java on Debian 8

I'm trying to set the Java SDK 8 tools (installed from the debian backports repo) as the defaults. # update-java-alternatives --list java-1.7.0-openjdk-amd64 1071 /usr/lib/jvm/java-1.7.0-openjdk-...

Linux root certificates auto-update

I have a CentOS release 6.8 (Final) server and a Java Web application deployed on Tomcat on that server. The Java application apparently uses the certificates under /etc/pki/java/cacerts. At some ...

How to start java application on boot

I have a server with Centos 6. I've installed an configured everything so my server application runs smoothly, however if there is any unexpected reboots I have to manually start an SSH session and ...

Why won't my keystore type change?

I created a PKCS12 keystore with the command below: openssl pkcs12 -export -in fullchain.pem -inkey privkey.pem -out example.cert -name test I was getting certificate_unknown errors since I renewed ...

ambari-server sync-ldap fails with “paged results cookie is invalid”

I have Ambari configured with LDAP authentication. It used to work, but now when I run "ambari-server sync-ldap" it throws this error: $ /usr/sbin/ambari-server sync-ldap --all Using python /usr/bin/...

Cassandra tmpdir change location

Cassandra is failing to start if /tmp is set as noexec, which is pretty much default these days: java.lang.NoClassDefFoundError: Could not initialize class com.sun.jna.Native at org.apache....

Keytool frequently uses up all server resources

On our RHEL servers, keytool now and then eats up all available resources. This seems independent on the Java version. PID USER PRI NI VIRT RES SHR S CPU% MEM% TIME+ Command 14103 root 20 ...

How to fix java (in javafx) out-of-control memory consumtion besides Xmx, MaxPermSize?

-Xmx, -XX:MaxPermSize not helping, OS is Ubuntu 16.10 First I ran my javafx experiment loading some pics and showing them in cycle using canvas node. Now I run javafx demo apps (different) ver. jdk1....
Translating... 0%