• Post Reply Bookmark Topic Watch Topic
  • New Topic

JVM won't start  RSS feed

 
Joe Wolf
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've been running an Apache web server with JServ (altough I haven't been getting servlets to work) and I have it set up so I have to start the Java Virtual Machine manually. To do that, I use the shell script listed below. This worked for a while but now I execute the script and nothing happens...the terminal freezes and I have to Ctrl-C to get out. I'm a newbie to linux so I don't know what the problem is. Does anyone know how this could happen? It even happens after a reboot and executing the script for the first time.
Thanks.
-Joe
-----------------------------------------
#!/bin/sh
# Launch JServ in manual mode
jsdk=/usr/local/apache/jsdk/lib/jsdk.jar
jserv=/usr/local/apache/libexec/ApacheJServ.jar
props=/usr/local/jserv/conf/jserv.properties
log=/usr/local/apache/logs/jserv.log
classes=$CLASSPATH:$jsdk:$jserv:/usr/local/java/jdk1.1.8/lib/classes.zip
java -classpath $classes org.apache.jserv.Jserv $props &> $log
 
Joe Wolf
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've gotten it to start again by adjusting my PATH variable...now I have to figure out why it can't load libjava.so.
 
Tim Holloway
Saloon Keeper
Posts: 18789
74
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Joe,
JServ was good in its day, but you might want to consider using Tomcat instead. For one thing, you get JSP support. Plus it's organized according to Sun's recommended layout for J2EE.
http://jakarta.apache.org/tomcat
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!