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

learn more… | top users | synonyms

3
votes
2answers
1k views

Is the Cloud ready for an Enterprise Java web application? Seeking a JEE hosting advice

Greetings to all the smart people around here! I'd like to ask whether it is feasible or a good idea at all to deploy a Java enterprise web application to a Cloud such as Amazon EC2. More exactly, ...
0
votes
2answers
894 views

Java service can't list files in directories

I posted this question in Stack Overflow, and someone redirected me here: Hello everyone. I'm doing a Windows Service in Java, this service list the files in a directory and write the results in a ...
0
votes
2answers
709 views

Setting multiple paths to JAVA_HOME in Ubuntu

I am trying to set the JAVA_HOME path in Ubuntu from the .bashrc file I currently have something like export JAVA_HOME=/usr/local/jdk1.6.0_24 But I want to also add the servlet libraries in the ...
1
vote
1answer
920 views

Where to set path for servlet libraries in Tomcat?

I am trying to follow some good-practice methods and not place the servlet jars into the java install. Instead what I am hoping to do is figure out the correct way to point to the servlet jars. If ...
1
vote
2answers
9k views

Which version of Java do I need for Tomcat 6?

when installing Tomcat 6 (the latest version), it asks for the Java install directory, fair enough. But it seems to want Java version 5, which Sun is apparently end-of-life'ing, so for our environment ...
1
vote
1answer
158 views

Is a new .war file uploaded to the webapps directory supposed to force tomcat restart?

I am putting together a new build environment and when I upload a new .war file, Tomcat does not seem to be unwrapping it into a directory structure, or restarting. Does there have to be some setting ...
1
vote
0answers
700 views

Only allowing certain Java apps through firewall

Using Windows Firewall and Advanced Security, I block everything outgoing by default and define outgoing rules to allow my approved apps through. For Java apps, I only allow java.exe through to ...
0
votes
1answer
295 views

How to do MAC based one to one NAT on Linux?

I have a linux machine running ubuntu server with 2NICS (WAN and LAN). I want the LAN side machines to use the linux box as a gateway to get on the internet (WAN side). The only problem is that the ...
0
votes
1answer
244 views

Hosting java/j2ee apps on apache tomcat6 server along with the database

I have a java/j2ee web application built using tomcat6 and at back endI have mysql 5.1 database, I have configured my server that an amazon ec2 instance and I have installed apache tomcat6 along with ...
0
votes
2answers
4k views

How to repair Java in Ubuntu after trying to switch to Java 6 using update-java-alternatives

I tried to switch from Java 5 to Java 6 using the "update-java-alternatives" command like explained on this page: https://help.ubuntu.com/community/Java But afterwards I get the following error when ...
6
votes
5answers
3k views

OpenJDK vs. Sun Java6 on Ubuntu

Due to past (bad) experience resulting from the GCJ stuff being provided by default on certain distributions, I've always traditionally installed the official Sun Java package on servers. On Ubuntu ...
0
votes
2answers
549 views

hard mount on solaris with java app turning off the nfs server makes the java app get stuck

I have a java app that accesses an NFS share with hard mount (soft mount does troubles i get many RPC timeout's for some reason). I'm on solaris. If i turn off (svcadm -v disable to the nfs server) ...
0
votes
5answers
6k views

Configuring Apache, Tomcat, mod_jk and mod_rewrite to serve up tomcat from top-level

I'm trying to set up my java app as the main component of a new site. I have some static resources I'd like served by Apache, so I setup Apache and Mod_jk, with the following rules, JkMount ...
1
vote
2answers
795 views

finding a linux distribution that will run on sparc cpu

We have a server that runs on Solaris using the sparc CPU. What we want to do is run linux on sparc. Is there any distribution that will allow linux to run on a sparc CPU? The reason is because we ...
2
votes
2answers
672 views

How can I avoid press “Enter” during Java Sun (Oracle) 1.6 installation on Linux (CentOS)

It is quite easy to install java sun jdk 1.6.x using xxx.rpm.bin installer from java.com, but it forces you to press "Enter" for the license agreement during installation. This is a problem for me as ...
2
votes
1answer
329 views

Recommendations for Java Web Server [closed]

I am currently using DBCP for connection pooling since it is more or less provided with tomcat and easy to setup. I am thinking about migrating to Glassfish or Jetty and haven't yet determined which ...
3
votes
1answer
1k views

Configuring a Jetty web application on a different port

I'm brand new to Jetty. I'd like to ask if its possible to have Jetty listening on port 8080, however where specified, serve a specific web application under say /var/jetty/webapps/<appname> ...
0
votes
1answer
172 views

Where do I find the Java command line tool “Gdb”?

Where do I find the Java command line tool "Gdb" ? It's not included in my Sun JDK 1.6 distribution. I need a way to take a java core dump from a live java instance.
1
vote
2answers
536 views

Monitor Processes' Memory Usage

We have an IBM P series box running AIX 5.3. This is our application server, whereby our J2EE application is running in Oracle's Applications Server (version 10g r2). At around 11pm till the next day ...
0
votes
1answer
80 views

hsqldb eats almost 1GB RAM

I run hsqldb Server in new empty folder on debian 5 by this: java -cp hsqldb-2.0.0.jar org.hsqldb.Server& and java with this process eats 908MB. Is it ok?
0
votes
2answers
2k views

What are the benefits of Weblogic over Jboss / Glassfish in production?

I'd like to ask those of you running weblogic server in production, what benefits do you see in using it compared to Jboss and Glassfish?
5
votes
5answers
1k views

What configuration changes do you make to a new Tomcat installation?

After installing Tomcat 5 what configuration changes/tweaks do you apply, and why? Be specific: name what files you edit, what settings you change and why you do it. Some areas of interest: ...
0
votes
1answer
693 views

Why does Play! not recognize JDK when I try to build with ant?

I recently built an ubuntu server that I am going to do some minor web hosting on. I have wanted to use Play Framework for a while now, so I thought this would be a good opportunity. I installed Play ...
1
vote
2answers
2k views

install java on centos vps through ssh

I'm a complete linux beginner so please keep your answer understandable for a noob :) I wrote a little java servlet and, in order to run it, acquired a VPS which runs Centos 5. now, in order to run ...
1
vote
2answers
256 views

Java program as a Windows Service

I create a Java server, which tools do you recommend to wrap java as a Windows service? Is it possible to have the service launch in sequence? Say server is start before a Java client can be run?
0
votes
1answer
1k views

Liferay and Oracle DB

I'm installing liferay community edition with an Oracle database, I managed to get it running with the user SYSTEM, but I don't like this... I want to create another user in another tablespace, the ...
1
vote
3answers
2k views

GlassFish will not start when SNMP is enabled

I have a GlassFish v3 app server running on 64-bit Debian Lenny. Everything is running fine, except I would like to monitor GF's JVM instance with SNMP. However, every time I try to enable it by ...
1
vote
2answers
862 views

Efficient way to secure tomcat database connections

Our customer has a problem with database information in plaintext within a server.xml or context.xml file on the Tomcat server. I've looked at several sites like OWASP and it seems like there's no ...
1
vote
2answers
552 views

Java 64 bit application takes more memory than 32 bit

We have an application running on Mac with java 1.5 .This is a 32 bit VM. The heap memory is within the limit. When we move this application to Linux with java 1.5.(64 bit) We see a 50% increase in ...
0
votes
1answer
1k views

How to install Sun Java JRE (or JDK) on Ubuntu 10.04?

I've followed a variety of instructions about modifying my sources.list trying to install Sun's JRE for Java 6 with no luck. The defining error I'm getting appears to be package sun-java6-jdk is ...
1
vote
1answer
2k views

How do I install the latest Sun Java JRE on Ubuntu Server 9.10?

Unfortunately, if I try to install sun-java via apt-get, it's not found in the repositories. # apt-get install sun-java6-jre Reading package lists... Done Building dependency tree Reading ...
1
vote
1answer
2k views

Is there a difference between starting a WebLogic Admin Server through the command-line or through the Node Manager?

I have WebLogic 11g installed on my machine under /srv/wls, and I start Node manager on it with /srv/wls/wlserver_10.3/server/bin/startNodeManager.sh. I create my domain with config.sh, and then I ...
2
votes
2answers
5k views

Java: Tomcat slow serving static files?

I'm running an instance of Apache Tomcat (5.5) on a Windows 2008 platform. I think I'm seeing an issue related to concurrent file access / locking. When the number of concurrent HTTP threads is ...
-1
votes
1answer
223 views

Java run time environment mac

I am trying to install an application on a MAC 10.6.4, however i get an installation error that no java runtime environment. However on the java website, the mac section indicates that MAC provides ...
1
vote
2answers
2k views

Should I use nginx exclusively, or have it as a proxy to Tomcat (performance related)?

I've planned to create a website that'll be pretty heavy on dynamic content, and want to know what would be the wisest choice for part of my webstack. Right now I'm trying to decide whether I should ...
0
votes
1answer
341 views

Installing Java on a Virtual Private Server

I have recently managed to get my employer to pay for a vps. I teach and asked the vps provider to enable Perl, Python, Ruby, Tomcat and Java. They've done the first four (really quickly) but have got ...
0
votes
1answer
837 views

How do i stop Squid proxy from corrupting jar-files?

Our internal corporate NTLM proxy (Also Squid i think) randomly returns 407 errors for some reason, and it's pointless to even try to get someone to fix that. I have on my Windows computer an ...
2
votes
1answer
2k views

Websphere 7.0 Work Manager Max Threads Ignored?

I'm trying to chase down a bug in an internal application and as part of this work I noticed an apparent discrepancy between the "Maximum number of threads" setting in WAS (BASE 7.0.0.0 r0835.03) and ...
1
vote
1answer
489 views

Is it normal for Java /Tomcat to keep checking for java_pid<nnnn>.hprof?

I was monitoring my JVM running Apache Tomcat 6, running on Windows, and I noticed that every 3 seconds or so the JVM process (C:\Tomcat\bin\tomcat6.exe) is polling to see whether or not ...
-1
votes
1answer
530 views

Options for sending data between two computers over the internet

My problem is fairly simple: I wish to send/receive simple commands between two PCs. The first PC (PC1) runs a program that controls and monitors an alarm system. The seconds PC (PC2) is any PC that ...
0
votes
1answer
123 views

Can i host multiple websites in java container in linux

I have linuc VPS server. I want to know that is it possible that i can host multiple java j2ee sites on that
0
votes
7answers
1k views

Multiple Java Apps on single Server

What is the best way to host potentially dozens of fairly trivial Java web applications on a single machine? These will be for different clients, and so having them isolated from each other is ...
2
votes
3answers
12k views

Problem with tomcat and getLocalHost exception

I'm running a Linux server named S1 in a "cloud" server, and when tomcat 6.0.24 starts, I get the exception: org.apache.catalina.connector.Connector pause SEVERE: Protocol handler pause failed ...
1
vote
1answer
2k views

Enabling JMX for proxool with tomcat

I am trying to get proxool's MBeans available so that I can see/manipulate them with jconsole. I have jconsole working, but I don't see anything related to proxool. The system is using Sun Java ...
2
votes
1answer
67 views

Which Hyperviser Solution for Java Applications?

Do you have any comment which of the available hypervisor solutions is best suited for Java applications? i.e. provides higher performance along with Java virtual machine? Our machines are mid-level ...
0
votes
1answer
431 views

Migrating to OSGi?

We're currently running server-side java apps on windows using JavaServiceWrapper and this has been a good solution for us. We have a small number of Spring-based lightweight applications. But now we ...
1
vote
5answers
2k views

High server load

A Hudson server used by developers is having some timeout issues. Whenever Java is compiling (git is checking the modules, java classes are compiled, tested and copied to Nexus), something goes wrong ...
1
vote
2answers
6k views

JBoss thrown error looking up local address when starting

Hello im installing a fresh Jboss 5.1 in a Centos 5.5 machine. I dont have Apache installed. So when I try to start jboss using the comand ./run.sh I get the following error 15:13:57,414 INFO ...
2
votes
2answers
1k views

What is your experience using Hyperic HQ to monitor a distributed/clustered systems

I've been trying to find a good solution (that can run on Windows) for monitoring/trending/alarming a distributed system comprised of primarly Java technology (Tomcat, ActiveMQ, JBossCache, etc.), but ...
3
votes
2answers
3k views

Deploy Jetty as port 80 daemon on Linux

I'm curious what techniques you Linux admin gods are using to manage your Jetty deployments. I come from a Windows Server background so I'm still getting used to all of this. I've been looking for a ...