Reputation: 3
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.
Upvotes: 0
Views: 5065
Reputation: 104188
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.
Upvotes: 2
Reputation: 28059
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
Upvotes: 0