Hibernate with apache axis

Posted on 2006-04-11
Last Modified: 2013-11-24

Hi Experts

I'm having some trouble getting axis to work with Hibernate in JBoss. I have deployed our hibernate application (Java, struts, jsp ) by simpling putting the war or the app into JBoss ...server/default/deploy directory. I deployed axis into the same directory, by renaming the axis folder axis.jar as outlined below

I've plaecd a jar of my application into the Axis lib, which worked fine without hibernate. Axis works fine but when i try to invoke one of my services i'm getting conflicts with Session factory and the likes from Hibernate. Can anyone tell how to setup axis with Hibernate?? I've looked at the jboss adminguide and at deploying a hibernate archive but its still not working. The following error is appearing

15:59:34,054 INFO  [STDOUT] org.hibernate.exception.GenericJDBCException: Cannot open connection
        at org.hibernate.exception.SQLStateConverter.handledNonSpecificException(
        at org.hibernate.exception.SQLStateConverter.convert(
        at org.hibernate.exception.JDBCExceptionHelper.convert(
        at org.hibernate.exception.JDBCExceptionHelper.convert(
        at org.hibernate.jdbc.ConnectionManager.openConnection(
        at org.hibernate.jdbc.ConnectionManager.getConnection(
        at org.hibernate.jdbc.AbstractBatcher.prepareQueryStatement(
        at org.hibernate.loader.Loader.prepareQueryStatement(
        at org.hibernate.loader.Loader.doQuery(
        at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(
        at org.hibernate.loader.Loader.doList(
        at org.hibernate.loader.Loader.listIgnoreQueryCache(
        at org.hibernate.loader.Loader.list(
        at org.hibernate.loader.hql.QueryLoader.list(
        at org.hibernate.hql.ast.QueryTranslatorImpl.list(
        at org.hibernate.engine.query.HQLQueryPlan.performList(
        at org.hibernate.impl.SessionImpl.list(
        at org.hibernate.impl.QueryImpl.list(
        at org.hibernate.impl.AbstractQueryImpl.uniqueResult(

Question by:fyness
    1 Comment
    LVL 23

    Accepted Solution

    the connection URL which you have provided in the hibernate.cfg.xml is not correct i suppose.
    just check.

    check the IP address (if not localhost) & which database is it???
    and also you need to corrcetly specify the catalog name etc.

    just put forward you configration file so that it will be easy to help.

    Thank you.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Top 6 Sources for Identifying Threat Actor TTPs

    Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

    Suggested Solutions

    This was posted to the Netbeans forum a Feb, 2010 and I also sent it to Verisign. Who didn't help much in my struggles to get my application signed. ------------------------- Start The idea here is to target your cell phones with the correct…
    Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
    Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
    The viewer will learn how to implement Singleton Design Pattern in Java.

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    20 Experts available now in Live!

    Get 1:1 Help Now