Programming language and runtime environment that allows compiled Java programs to run unchanged on most hardware and software platforms

learn more… | top users | synonyms

0
votes
1answer
79 views

Restricting access from the internet to a website in beta conflicting with the website's own authentication

I have a java website that runs on Apache Tomcat. As the website is in Beta, I don't want it to be publicly accessible to anyone on the internet and I want a restricted group of beta testers to ...
0
votes
1answer
31 views

Block access to specific URL

I have several java war applications hosted in a glassfish, some of then exposing web services. I need a way to block access to an specific application without blocking the entire access to server by ...
1
vote
1answer
1k views

Warning: Unavailable Version of Java Requested

We are updating client computers to JRE 1.7 but a partner Web application has a mention of the older java version in its applet HTML tags (java_version=1.6*). Because of this mention, the applet ...
1
vote
1answer
119 views

Running JVM 1.4.2 on a modern PC/Mac

I need to access an old IBM blade center's KVM. It uses Java and asks for 1.4.02_08 and above. I tried with a Mac (JM 7) and two PCs (win7, JM6) to no avail. I installed the old java but it won't run ...
1
vote
1answer
314 views

SSL Connect timing out during handshake (client exchange re-transmission)

We have a Java LDAP client making SSL connection to AD. Some times the connect hangs with client and server re-transmitting Client Key Exchange and ACK packets continuously as shown below and ...
1
vote
1answer
4k views

permission denied to start tomcat as root

I just started using CentOS. I install Java yum install java-1.7.0-openjdk-devel Added a user: $useradd supersite Downloaded tomcat: $wget ...
0
votes
1answer
2k views

Provisioning Oracle's JDK into VirtualBox using Puppet and Vagrant

I am trying to install Oracle's jdk with Vagrant/Puppet. Here is the relevant portion of my Vagrant file: config.vm.provision :puppet, :module_path => "puppet/modules" do |puppet| ...
1
vote
1answer
608 views

Getting JMX working under Tomcat 7 with SSL and a self-signed cert

I'm trying to get JMX working under Tomcat 7.0.23 with SSL. The servers are located in AWS, which means all the hosts are NATed, and I need to use JmxRemoteLifecycleListener to explicitly set the two ...
3
votes
1answer
9k views

how do i detect which version 32 or 64 bit Java is installed in Centos?

I am trying to detect which version of the java is running in my system (i mean i want to find out whether my java installation is 32 bit or 64 bit) I have tried $java -version which outputs ...
0
votes
1answer
292 views

Apache2 and tomcat 7 on ubuntu server running error

I install apache 2.2.22 and tomcat 7 on ubuntu and deploy ROOT.war In catalina.log file I get this error: Failed to initialize end point associated with ProtocolHandler ["http-bio-80"] ...
1
vote
1answer
522 views

Why I can't execute SQL query on Amazon Redshift from VPC private instance?

I have an instance in a private subnet in an Amazon VPC. This instance uses a NAT to access the Internet. I use the Redshift JDBC driver to connect to a cluster hosted in the same region as my VPC ...
1
vote
1answer
2k views

Install Java 7 with Chef using Opscode Java Community Cookbook

I am trying to install Java 7 on Ubuntu with the opscode java community cookbook. Java 6 seems to be the option no matter what incantation I make: [2013-09-24T00:24:32+00:00] INFO: Processing ...
0
votes
1answer
156 views

Open screen process in terminal from script [closed]

I have a minecraft server running in screen, and right now, it is just a script that starts java like so: screen -dmS mc java -Xincgc -Xms1024M -jar craftbukkit-1.6.4-b2882.jar Basically this just ...
0
votes
1answer
398 views

Error installing Oracle-Java6

I'm attempting to install Oracle-Java6 on my VPS, running ubuntu-10.04 for the purpose of running Openmeetings. I installed the ppa webupd8team/java, updated and ran sudo apt-get install ...
1
vote
0answers
455 views

How to connect Java Flight Recorder (from JDK 7 U 40) to a remote JBoss 7

I have a remote Ubuntu server with Jboss 7 and a local Ubuntu desktop machine and I can already monitor JBoss using jconsole and visualvm scripts that come with it. After the release of Java 7 Update ...
0
votes
4answers
202 views

Upgrade to latest tomcat/ JRE or stick with what's provided by LTS?

Running a server with Ubuntu 12.04 which ships Tomcat 7.0.26. Should I care about updating the tomcat installation to latest 7.0.42 version or should I stick with what's provided? If I stick then am I ...
1
vote
1answer
110 views

How does it harm if I install JDK on my ubuntu server when JRE is just enough for me?

I just need JRE for my programs. But how does it harm if I use JDK when JRE is enough for my webserver? Does it only mean more harddisk space for JDK & except for that, no other waste? I use ...
1
vote
1answer
637 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. ...
1
vote
2answers
6k views

Does kill -3 actually terminate a java process? Or just generate a thread dump?

CentOS 5.9 If I run kill -3 <java process pid> what actually happens? As per this red hat article, I understand that a Java Thread Dump is generated but is the process terminated? It doesn't ...
0
votes
1answer
63 views

Tomcat 6 path issue on Linux Debian

I'm facing an anoying issue on Linux/Debian Tomcat configuration: I've set up path variables, but when I try to start or shutdown Tomcat nothing happens. Log is empty and the following appears: ...
0
votes
1answer
851 views

Openfire Java Out of Memory Error - Any solutions?

I have huge problem with openfire crashing every now and then because of the lack of memory. In java log i have following error log. however problems are Openfire is 32 bit and i cant run it as 64 ...
1
vote
0answers
154 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 ...
0
votes
1answer
36 views

Discrepancy in java Garabage Collection between jconsole and log files

I'm having an odd problem: my garbage collection log file (as defined by -Xloggc) will show n number of garbage collections have taken place, but jconsole will show n+6 garbage collections have taken ...
0
votes
0answers
281 views

Proxy Server for my Tomcat7 Websocket Application?

I have a Java Servlet application running on a Tomcat server. My app uses Websockets. I want to use a proxy server which should root to my Tomcat running on pert 8080. What proxy should I use for ...
0
votes
3answers
6k views

Tomcat 7 Throwing Unsupported Class Version Error

I'm setting up a Tomcat server to host JSP sites. I have created a test application in Eclipse to make sure everything is working. All it does is print text in JSP, then call a function in a custom ...
0
votes
1answer
202 views

Cannot make Java Package on an OpenVZ container

I'm trying to install Sun's Java SDK 7 by following the Debian Wiki instructions using java-package. But it won't work on an OpenVZ proxmox container. I'm running Debian Wheezy 7.0-2 64bit on all my ...
0
votes
2answers
710 views

JVM/Tomcat crashes when to many uploads occur in parallel (Heap Space)?

I have a Servlet application running on Tomcat 7. I set the following in setenv.sh CATALINA_OPTS=" -server -Xms1G -Xmx5G -XX:MaxPermSize=512m -Dfile.encoding=UTF-8"; The server runs on Ubuntu ...
0
votes
1answer
121 views

How to set multiple paths with update-alternatives

For example, the following command install java to /usr/bin/java update-alternatives --install /usr/bin/java java /opt/java7/bin/java 1 && update-alternatives --set java /opt/java7/bin/java ...
2
votes
1answer
2k views

Use chef-solo to install Oracle JDK 7

Assume I have the java cookbook and its dependencies downloaded from http://community.opscode.com/cookbooks and can run chef-solo successfully. Is there a command that I can run to install the latest ...
1
vote
1answer
599 views

Java 7 Server SE JRE installation

I want to install Java 7 Server SE JRE on a Windows server box. Reading through the instructions here: ...
0
votes
1answer
207 views

Tomcat 7.0.42 crashes many times a day

I have a Tomcat7 server running and it crashes and shows sometimes a memory warning that there is not enough Heap Space. What do I have to do here? My server has 4GB RAM, 4CPU and runs on ubuntu ...
0
votes
1answer
2k views

How do the clients register at openfire server?

I have installed openfire. How can the clients register themselves on the server ? Do I have to write separate code for that ? I mean, do I have to write some kind of action handler for that ?
0
votes
1answer
540 views

-XX:MaxNewSize and other JVM parameter setting in AIX

All, I am trying to adjust our application's memory settings: JVM and Heap adjustments. I also came across -XX:MaxNewSize parameter. Our application runs on a AIX machine which has ample RAM (100+ ...
1
vote
0answers
408 views

Most efficient way to pipe web beacon logs to Apache Flume?

The Setup I've setup a simple Nginx server that logs (in a JSON) format, which is then piped to an S3 bucket with Apache Flume. All the Nginx server does is respond with a web beacon tracking pixel ...
0
votes
2answers
85 views

java http service on mac server with Apple server admin

I've written a simple com.sun.net.httpserver.HttpServer program that runs on a non-server mac. When I visit http://localhost:39600/test in a web browser, it gives me the correct response: "Here's my ...
-1
votes
1answer
892 views

Cassandra - Ubuntu Server Connect locally but no when connect remotely [closed]

I have a problem when I want to connect to Cassandra remotely I run it on ubuntu server and can connect to it through cassandra-cli connect localhost/9160 But when I connect remotely I have an ...
5
votes
2answers
837 views

Linux (non-transparent) per-process hugepage accounting

I've recently converted some java apps to run with linux manually-configured hugepages, as described here. I point out "manually-configured" because they are not transparent hugepages, which gave us ...
-1
votes
1answer
856 views

Tomcat - How to stop, start, restart

I installed Tomcat7 from source on a debain. However, based on the information online I should be able to start and stop the service using the following command: service tomcat7 stop/start However ...
2
votes
1answer
794 views

Chef Java Cookbook - JDK Upgrades

I am testing the Chef Java Cookbook to bring our JDK installations under Chef management and I am wondering how to upgrade the JDK, once installed, using the Chef Java cookbook. Background In order ...
-1
votes
1answer
56 views

Tomcat can't start on CentsOS

Tomcat 6 installed via yum. When i try to start it, catalina.out contain: Error occurred during initialization of VM Could not reserve enough space for object heap Could not create the Java virtual ...
0
votes
0answers
70 views

bash redirections stalling when used with jstack

I have this command that is not working and I have no idea how to debug. The command it never returns and I have to press CTRL+C. diff <(jstack 13928) <(sleep 10;jstack 13928) I want to make ...
0
votes
3answers
543 views

Proper acting when a process is consuming 100% time of CPU

On several machines I have a problem with a process that is using 100% time of a CPU. USER PID %CPU %MEM VSZ RSS TT STAT STARTED TIME COMMAND root 85740 100.0 0.2 34668 ...
1
vote
1answer
310 views

Copy sparcv9 directory contents? JDK 7 install on Solaris 10

I have installed JDK 7 from archive on a Solaris 10 machine. /usr/jdk/instances/jdk1.7.0_25 Executing ./bin/sparcv9/java executes well. I've attempted to copy ./bin/sparcv9/* to ./bin. That is how ...
0
votes
0answers
202 views

Java applications getting squeezed via remote desktop with 16bit color depth

I am managing some virtual desktops running Windows 7 Enterprise SP1 x64. When running any Java applications (tested on 7u13, 7u21 and 7u25) the windows are getting squeezed to the left. The black ...
0
votes
3answers
577 views

2 x Dual Core vs 1 x Quad Core Performance

A license restriction limits us to 2 x dual core servers, or one 1 x quad core server. Should we see better performance running 2 x Dual Core servers or 1 x Quad Core? Dual Core processors are ...
2
votes
1answer
194 views

Specify a different location to install Java - RHEL6

Is there a way to specify the location where all the installed files would go when installing Java JDK on red hat linux 6? Currently when I follow the steps mentioned in Installation Guide, it ...
0
votes
1answer
99 views

Tomcat access logs - are failed requests included?

We have a RESTful web service (Java, hosted in Tomcat on Ubuntu on Amazon EC2). From time to time it fails (not every week). When it fails, Java CPU consumption goes to 100% and it takes all available ...
0
votes
1answer
690 views

Rundesk cannot execute local command

I'm trying to interact with the nodejs Azure sdk from a CentOS installation of Rundeck. If I try from the "run" adhoc virtual shell, I am able to after running azure account import <mykey> and ...
0
votes
1answer
184 views

Imap subfolders not shown in list command - perhaps acls misconfiguration

My goal is to copy the whole folder structure with all mails from one imap account to another. The tool I am using for this is imapcopy (the java based version from code.google.com since the ...
0
votes
3answers
1k views

Why are Full GCs not running on my gcInterval I set?

ColdFusion 10 Update 10 Windows Server 2008 R2 Java 1.7.0_21 I am trying to figure Full GCs to run every 10 minutes. I have used the gcInterval JVM arg in the past on earlier versions of ...