A couple things:
1. I think you got the sql wrong. Should read select c1, c2 from t1 where c1=${v1}
2. The test button in this dialog will not work when the query contains variables because this variable only exists at runtime. You should make sure the following query tests ok in your GUI [select c1, c2 from t1 where c1='user1']. Then set it back to [select c1, c2 from t1 where c1=${v1}], then test it by calling the service at /ws1