Tomcat7 argument problem

Answered

Hello,
I am trying to start a tomcat 7 server with the following arguments

-Dmysql_datasource_jdbc_url=jdbc:mysql://localhost:3306/test?characterEncoding=utf8&useUnicode=true
-Dmysql_datasource_username=test
-Dmysql_datasource_password=test

The problem is that I get this as an output

/opt/apache-tomcat-7.0.72/bin/catalina.sh: 1: eval:-Dmysql_datasource_username=test: not found`

If I remove the first argument and leave only the mysql username and password arguments tomcat starts just fine.


The same configuration on eclipse (with a minor change in the first argument, "&" instead of "&" ) runs just fine.

If you need any additional help don't hesitate to ask me.
Thanks in advance :)

1 comment
Comment actions Permalink

Check the related issue https://youtrack.jetbrains.com/issue/IDEA-152133.

For *nix you can try to use single quotes or backslash.

0

Please sign in to leave a comment.