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

learn more… | top users | synonyms

1
vote
0answers
546 views

How to define mail from and host settings in Websphere 6.1 for Java application

Working with some older WAS 6.1 hosts (fix pack 25), and have a java app that sends mail from one host with a mail from field: nobody@nosuchhost.nosuchdomain.com [mailto:nobody@nosuchhost....
1
vote
1answer
317 views

Should I install both j2EE and J2SE

I just installed J2EE. Det version that come bundled with a JDK. Is there any reason for me to install Java SE as well? I need to run Java SE programs, but the J2EE bundled java runtime should work ...
-1
votes
1answer
273 views

How does a certificate make a server HTTPS?

I've read plenty but i'm still very confused about the server certificate concept. At what stage does it turn a glassfish server from HTTP to HTTPS and how? I know how to create a certificate with ...
0
votes
1answer
781 views

Cannot run Java from IE as Standard User

When installing Java 6 update 23 using my admin account i cannot seem to get Java applets to work on IE8 using my standard account. If i run the browser as an administrator Java applets will run in ...
0
votes
1answer
229 views

When starting Tomcat it looks like two different JAVA_HOME paths are being concatenated together

When I try to start tomcat it doesn't work. When I look in tomcat/logs/catalina.out I get the line: ./catalina.sh: 454: /usr/bin/java/bin/java: not found This makes sense since there is no /usr/...
0
votes
2answers
127 views

How do I set the PATH environment variable to point to JRE version 1.5

Hi there I have a program that requires me to set the PATH environment variable to point to JRE version 1.5 as I need to access the program via a command prompt. So any ideas on how to do that?
1
vote
1answer
3k views

IBM Websphere Application Server 7 - Why aren't threads that are hung destroyed?

If our application somehow loses connection with the memcached server all the threads are reported as hung after 10 minues or so [28.04.11 16:50:15:831 CEST] 00000025 ThreadMonitor W WSVR0605W: ...
1
vote
1answer
1k views

JBoss 6 Class Loading Issues

I am using JBoss 6 and i want to deploy my war application. I was deploying my application to JBoss5 successfully by using jboss-classloading.xml under my web-inf directory. This isolation method was ...
1
vote
2answers
531 views

Java process eating up all the “low memory” on my Xen VPS

This is on Centos 5, Linux 2.6.33.3-xenU #1 SMP Wed May 5 00:49:22 UTC 2010 i686 i686 i386 GNU/Linux I have a java server process which I normally run with the following configuration -Xmx700m -...
1
vote
2answers
347 views

How do you update your Java EE app in production?

I’ve been trying to figure out what is happening in the world of Java EE production deployment and frankly it seems pretty scary. After speaking to over a 100 people these are my hypotheses: Nobody ...
-1
votes
1answer
1k views

Download previous JDK version from Oracle site

How may I download a specific JDK version, 1.6.0_04? On the Oracle site I see only how to load the latest version. In the previous version section of the Oracle site, I don’t see this version ...
2
votes
2answers
2k views

How install Sun JRE private to my application?

I need to ship a Java product with JRE included with it but I don't want the user to tackle the installation choices. My requirements are: JRE installation in a sub-folder of my application so that ...
0
votes
2answers
4k views

Running a JAR from a bash script in a cronjob

For some reason my cronjob is not working: 4 20 * * * /home/ubuntu/db_backup/myScript.sh 1 > /home/ubuntu/db_backup/cron_log.txt And my bash script looks like this: #! /bin/bash mysqldump -h ...
0
votes
1answer
928 views

Schtask.exe, Running Java Jar as System, Program Can't See Network (Windows Server 2003)

I have an executable JAR file that runs fine under a normal user account. I am trying to schedule this JAR file to run as a System task using Schtasks.exe in Windows Server 2003. The following works ...
0
votes
1answer
270 views

Which one: Ubuntu 8.08, Fedora 8 or CentOS 5 for VPS hosting?

Which one of the following distributions are better for VPS hosting (with pro/cons): Ubuntu 8.04 Fedora 8 CentOS 5 I'm mostly looking for low resource usage (CPU & RAM) and easier management. ...
0
votes
3answers
643 views

JVM hangs with 100 IO wait on Ubuntu Maverick (AWS EC2 xlarge instance)

Asked this question on on stackoverflow, reposting: Have an xlarge instance in AWS running 9 Tomcats with heaps from 256M to 4G. With Ubuntu 10.04 the box sporadically hangs for a few hours with huge ...
0
votes
0answers
403 views

JVM hangs with 100 IO wait on Ubuntu Maverick (AWS EC2 xlarge instance)

Have an xlarge instance in AWS running 9 Tomcats with heaps from 256M to 4G. With Ubuntu 10.04 the box sporadically hangs for a few hours with huge run queue (30-40), and nothing on CPU, then recovers....
0
votes
2answers
161 views

java rmi testing application

i want to test a small app that has a centralized server and other chat clients are connectes to it... so far i tested it on my home network using "ipconfig" to find out the ip addresses of the ...
0
votes
1answer
184 views

Problem with instalation of LucidDB

I am trying to install LucidDB on Ubuntu 10.04 64Bits. In the doc they say : Set the JAVA_HOME using the correct location for your JRE (make sure it's Java 1.6 or higher), and then re-login:...
3
votes
4answers
12k views

Selenium server won't start

I'm getting the following error when trying to start selenium: C:\Temp\selenium-server-1.0.3>java -jar selenium-server.jar 22:02:07.615 INFO - Java: Sun Microsystems Inc. 16.0-b13 22:02:07.617 ...
3
votes
5answers
2k views

How to ACTUALLY install Java on Linux?

I have a Ubuntu Server. From the terminal, how should I install JDK? In this guide it says to use this command: sudo apt-get install sun-java6-bin sun-java6-jre sun-java6-jdk But on Suns website, ...
0
votes
2answers
861 views

Deploying Java Web Applications on Distributed Servers

I'm having to deploy my application to three servers and soon to be four. This is becoming a pain and I'm looking to automate it. I was going to script this, but this is such a common problem and ...
1
vote
6answers
168 views

What DB better to use for application?

I want to create program for PC in OS Windows, Mac and Linux. Program deal must use big DB with about 12 000 000 items. I need to have text search what is the best technology for that? Maybe Java + ...
0
votes
1answer
436 views

Confusion in installing mod_jk on Ubuntu

I am working from this document in trying to install mod_jk http://www.howtoforge.com/apache2_tomcat5_mod_jk_p2 I am at the step towards the bottom where they suggest to use the make command. I was ...
2
votes
1answer
2k views

Using javamail under tomcat (centos 5.5)

So this could be a fun question. I installed tomcat5 on centos 5.5 x64, and am able to get it up and running and whatnot. My issue is that one of the webapps needs to use javamail, however in the ...
1
vote
2answers
664 views
1
vote
2answers
14k views

Start Java jar as Windows Service using SC.EXE

I want to start a Minecraft Server as a Service in a Windows Server 2008 R2 machine. This command line works fine: c:\Windows\System32\java.exe -cp c:\Data\minecraft-server\minecraft-server.jar com....
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, I'...
0
votes
2answers
923 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
724 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
958 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
10k 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
159 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
714 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
302 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
246 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
564 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
820 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
680 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
331 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 ...
4
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
173 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
545 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
700 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 ...