Newest java Questions

Q&A for system and network administrators

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

Print Server - Webinterface - Java certificate - Algorithm constraints check failed: MD2withRSA

I got an old MarkNet Pro 3 Print Server, where I can't access the webinterface anymore, because it is based on a Java applet and its certificate is expired. No matter what I do in the Java Settings, ...

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

Validate that the CName on the server certificate is abc.com

I am trying to POST request using HTTPS protocol to a web service which use x509 certificates signed using their CA. I have a simple java program and trying to connect to their domain and POST some ...

Started task in z/OS lacks RACF privileges

I wish to test a JDBC server implementation running under z/OS. The usual approach would be to define a JCL procedure and run this as a started task. The started task requires a user ID under which it ...

Enabling javax.net.debug=all on Tomcat 8 breaks HTTPS with “EC AlgorithmParameters not available”

In troubleshooting an issue with my Tomcat servlet I decided to enable network debugging by editing /var/apache-tomcat-8.5.5/bin/setenv.sh and changing the line export JAVA_OPTS="-Xms512m -Xmx1536m -...

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

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

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

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

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

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

run a jarfile in a different machine from an sqlserver

I have a series of stored procedures(i.e. SP1, SP2, SP3) consecutively running on an sqlserver(i.e. serverA). After SP3 finishes execution, I want to run a jar file in some machine (say, computerA). ...

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

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

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

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

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

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

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

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

Running multiple website domains on Wildfly

Suppose I have many websites with different domain names, domain1.com, domain2.com, etc. I have setup the correct virtualhosts configuration for these sites in wildfly. The correct DNS entries are ...

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

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

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

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

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

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

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

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

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

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

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 error “One or more listeners failed to start” - How can i get more details logged?

I have deployed a web app to a Tomcat service running on Windows, and there seems to be an error when creating the Guice injector, but as I understand, the logging of the details fails as the ...

Hunting for performance-reducing issues on a high-usage server

I host a server through the Google Compute Engine for various purposes, most notably a Minecraft server, and it receives a lot of traffic and usage. We're talking fairly constant CPU usage at 150%, 50 ...

Tomcat session replication issue

TL;DR - The node name in the sessionId is not being updated to the current node name in the backup when the primary goes down. Tomcat version - apache-tomcat-7.0.50 I have two nodes (2 instances of ...

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

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

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 find fingerprint files in Android phone, Android lollipop [on hold]

I've an android phone / xiaomi brand I tried so much to find a file for my saved fingerprint on wiki how , youtu.be but I didn't find it any good informations.. I found some guys here who ...

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.

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

how to configure SSL on apache tomcat 9 version?

Tomcat 9 is having different configuration from the previous versions of Tomcat 7. I am successful in enabling the manager using the manager.xml file in the localhost directory. But as a part of ...

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

How to deploy war from jenkins to second tomcat service

I was wondering how to deploy war archive from jenkins on a tomcat server with multiple services. E.g. I've had a vm with two tomcat services (on ports 8080 and 8081) and i want to deploy war only at ...

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

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 = "/...

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

WAS not processing request hence web are not available

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

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, ...
Translating... 0%