• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

unable to run MySQL queries

 
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I m unable to excute my sql queries in Apache/Tomcat 5.0.27 this queries runs fine in JBOSS 3.2.2
I have the made the jdbc connection as jdbc:sql//localhost:8080/DBName;
is there any difference between the jdbc connection in JBOSS and Tomcat.
please help.
 
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Since JBoss uses Tomcat as it's servlet/jsp engine, no.

How are you getting the database connection?
 
Prashil Wasnik
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi, as i have told i make the mysql connection using jdbc which uses mysqlconnector.jar. please clear yourself.
 
Author
Posts: 531
Mac OS X Netbeans IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Prashil Wasnik:
I m unable to excute my sql queries in Apache/Tomcat 5.0.27 this queries runs fine in JBOSS 3.2.2
I have the made the jdbc connection as jdbc:sql//localhost:8080/DBName;
is there any difference between the jdbc connection in JBOSS and Tomcat.
please help.



in case that you post the log file entry (exceptions ) related to your problem people can help you easier.

also i noticed that you used jdbc:sql//localhost:8080/DBName which is not correct for mysql AFAIR , you should use jdbc:mysql//localhost:8080/DBName instead.
 
Marshal
Posts: 28193
95
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If it works successfully from one machine but not from another machine then there are two immediate possibilities that I can think of:

1. The second machine cannot connect to the server because of some network configuration issue.

2. MySQL's security parameters allow connecting from the first machine but not from the second machine.

It would help if you found the error messages and stack traces describing the actual problem, though. Much more practical than guessing based on "unable to execute".
 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello,

A jboss jndi looks like this as far as I know so far...

"java:/MyJndiName"

and if your running tomcat inside jboss that's what it should look like i'm pretty sure.


regards,
Hassan
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic