Question

I have tomcat 6.0.18 running on one server without a problem. With the exact same settings it fails to launch on my colleague's machine. He's even running from the same folder as me (I've stopped my copy while he tries to make it work)

All we get when we fire off tomcat using bin/startup.sh is this:

CATALINA_OPTS=-server -Xms768m -XX:+UseParallelGC -Xmx768m -XX:MaxPermSize=256m -XX:PermSize=128m -Djava.awt.headless=true: is not an identifier

I had that definition in setenv.sh and moved it into startup.sh - same problem.

Any suggestions? My brief look on google seem to indicate multiple IP address issues, but my server has two ethernet cards, and two IP addresses.

Thanks.

Was it helpful?

Solution

This is a shell script and not a Tomcat problem. The correct way to do it is:

export CATALINA_OPTS="....."

Your colleague is probably using a different shell than you.

OTHER TIPS

Not much to go on there. Shouldn't the value of CATALINA_OPTS be quoted?:

CATALINA_OPTS="-server -Xms768m -XX:+UseParallelGC -Xmx768m -XX:MaxPermSize=256m -XX:PermSize=128m -Djava.awt.headless=true"

Other than that

  • Does it start up with out any options and/or any applications installed?
  • Is it even getting as fair as launching the actual java process?
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top