Win a copy of Zero to AI - A non-technical, hype-free guide to prospering in the AI era this week in the Artificial Intelligence and Machine Learning forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Paul Clapham
  • Bear Bibeault
  • Jeanne Boyarsky
Sheriffs:
  • Ron McLeod
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Jj Roberts
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • salvin francis
  • Scott Selikoff
  • fred rosenberger

Metro-iBATIS Problem while deploying web service using iBatis as mapping techonlogy.

 
Ranch Hand
Posts: 59
Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Ranchers,

I am currently stuck with a unique problem.

I need to deploy the MetroWebService on JBoss container, with iBATIS as object relational mapping tool on a remote server.

This is working perfectly fine with my local environment, but when I deployed the same on the remote server iBatis SQLMapClient object is not getting created its throwing the Initialization error.

Please have a look at the below stack trace.


Below is the code file written for reading the sqlmapconfig file and creating the sqlmapclient



Please help me to understand where the actual problem is involved.
 
Author
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you sure you're deploying all the required jars?
 
Rizwan Patel
Ranch Hand
Posts: 59
Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear David,

I have deployed below jars related to iBATIS .

Is there any other jar is missing? or my config xml are wrong? I am attaching config file as well.



And my sqlMap file is as below:


Please help me.

 
Rizwan Patel
Ranch Hand
Posts: 59
Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

Is there any updates on my problem. I had try again by putting both the config and sqlmap files in the classpath, but still not resolve.

Please help me to resolve.

 
Rizwan Patel
Ranch Hand
Posts: 59
Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Solved.

Actually the problem is having with the version of the log4j.jar and I need to take the higher version and use the iBATIS API method for setting the logging mechanism to log4j.

Thank you very much for your valueable inputs.

 
Whatever. Here's a tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
reply
    Bookmark Topic Watch Topic
  • New Topic