I'd guess a firewall is blocking the database requests when you use the
full domain name.

Now it sounds like you have incorrect query syntax.

Good luck!

WILL

On Wed, Nov 23, 2011 at 10:04 PM, MiB <digital.disc...@gmail.com> wrote:

>
> 24 nov 2011 kl. 06.25 Will Glass-Husain suggested:
>
>  telnet dbserver 3306
>>
>
> I did connect via SSH and I did get a "telnet: Unable to connect to remote
> host: Connection refused" on both of my IPs.
>
> But I can connect with "mysql -uXXX p-XXX -h127.0.0.1 dbName" so I changed
> to that in "database.properties" and rebuilt my application.
> I've redeployed and I can connect now but unfortunately I get another
> error now: "org.hibernate.exception.**SQLGrammarException: could not get
> or update next value; nested exception is 
> javax.persistence.**PersistenceException".
>  This happen only on server, not on the local Tomcat.
>
> Thanks for your response, Will!
>
>
>
> /MiB
>
>
>
>
>
> ------------------------------**------------------------------**---------
> To unsubscribe, e-mail: 
> users-unsubscribe@tomcat.**apache.org<users-unsubscr...@tomcat.apache.org>
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>

Reply via email to