• 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

PROCEDURE x does not exist...

 
Ranch Hand
Posts: 294
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Aloha ranchers,

Got a tomcat 5.5 -> mysql 5.045 -> fedora 8 problem. I'm porting a webapp from a windows tomcat -> mssql configuration to fedora. The jndi resource is happy as well as access priveleges to the database. The problem is when a stored procedure is called, an exception is thrown:
HandleError: java.sql.SQLException PROCEDURE WBR1080 does not exist.

The access code is something like this:

where connection.prepareCall returns a java.sql.Connection. This has been working for ages on the windows side, so I doubt it's the problem. I suspect it may have something to do with the WEBLIB.WBR1080 part.

I do have a stored procedure called WBR1080 created in mysql and can see it using SHOW CREATE PROCEDURE WBR1080.

Anyone have any ideas?

Aloha,
Doug

-- Nothing is impossible if I'mPossible
 
Doug Slattery
Ranch Hand
Posts: 294
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Ok, I figured it out. It was related to the WEBLIB.WBR1080 part. It turns out in mysql, WEBLIB is a database, whereas on the as400 (where production is) WEBLIB is a user, and on mssql WEBLIB is totally ignored afaik...

After I created the WEBLIB db and plopped in the sp, *voila* everything was happy (especially me) .

Aloha,
Doug

-- Nothing is impossible if I'mPossible
[ February 29, 2008: Message edited by: Doug Slattery ]
 
Poop goes in a willow feeder. Wipe with this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic