These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 posts ] 
Author Message
 Post subject: Problem using hibernate with axis
PostPosted: Tue Nov 21, 2006 1:43 pm 
Newbie

Joined: Thu Jun 08, 2006 3:25 pm
Posts: 5
Location: Laureldale, PA
Hi all,
I'm trying to run a web service from axis that uses hibernate. If posted the error and log below. Any help would be greatly appericated.
Thanks,
Ron

The webservice returns the following error:
<soapenv:Envelope>
<soapenv:Body>
<soapenv:Fault>
<faultcode>soapenv:Server.userException</faultcode>
<faultstring>java.lang.reflect.InvocationTargetException</faultstring>
<detail>
<ns1:hostname>ngdserv6</ns1:hostname>
</detail>
</soapenv:Fault>
</soapenv:Body>
</soapenv:Envelope>

In my tomcat log (catilina.out) I see the following:
Tue Nov 21 12:38:38 EST 2006 : in CreateNewMessage phonePin -> 4126, phonePassword, -> 69223552, groupId -> 1, isEmergency -> N
12:38:38,701 INFO JkMain:343 - Jk running ID=0 time=0/277 config=null
12:38:38,747 INFO Catalina:544 - Server startup in 9506 ms
- Hibernate 3.0.5
- hibernate.properties not found
- using CGLIB reflection optimizer
- using JDK 1.4 java.sql.Timestamp handling
- configuring from resource: /hibernate.cfg.xml
- Configuration resource: /hibernate.cfg.xml
- Mapping resource: hibernate.cfg.xml
- Mapping resource: com/twoUnify/hibernate/Announcements.hbm.xml
- Mapping class: com.twoUnify.hibernate.Announcements -> announcements
.
. (other mappings)
.
- Mapping resource: com/twoUnify/hibernate/ProductFeatures.hbm.xml
- Mapping class: com.twoUnify.hibernate.ProductFeatures -> productFeatures
- Configured SessionFactory: null
- processing extends queue
- processing collection mappings
- processing association property references
- processing foreign key constraints
- JNDI InitialContext properties:{}
- Using datasource: java:comp/env/jdbc/mySqlDs
- RDBMS: MySQL, version: 5.0.17-standard-log
- JDBC driver: MySQL-AB JDBC Driver, version: mysql-connector-java-3.0.11-stable ( $Date: 2004/02/04 02:47:36 $, $Revision: 1.27.2.34 $ )
- Using dialect: org.hibernate.dialect.MySQLDialect
- Using default transaction strategy (direct JDBC transactions)
- No TransactionManagerLookup configured (in JTA environment, use of read-write or transactional second-level cache is not recommended)
- Automatic flush during beforeCompletion(): disabled
- Automatic session close at end of transaction: disabled
- JDBC batch size: 15
- JDBC batch updates for versioned data: disabled
- Scrollable result sets: enabled
- JDBC3 getGeneratedKeys(): enabled
- Connection release mode: after_transaction
- Maximum outer join fetch depth: 2
- Default batch fetch size: 1
- Generate SQL with comments: disabled
- Order SQL updates by primary key: disabled
- Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory
- Using ASTQueryTranslatorFactory
- Query language substitutions: {}
- Second-level cache: enabled
- Query cache: disabled
- Cache provider: org.hibernate.cache.EhCacheProvider
- Optimize cache for minimal puts: disabled
- Structured second-level cache entries: enabled
- Statistics: enabled
- Deleted entity synthetic identifier rollback: disabled
- Default entity-mode: pojo
- building session factory
- No configuration found. Configuring ehcache from ehcache-failsafe.xml found in the classpath: jar:file:/usr/local/tomcat/common/lib/ehcache-1.1.jar!/ehcache-failsafe.xml


Top
 Profile  
 
 Post subject:
PostPosted: Tue Nov 21, 2006 2:59 pm 
Beginner
Beginner

Joined: Fri Apr 15, 2005 3:30 pm
Posts: 46
Location: Fortaleza, Brazil
You don't mention what version of axis you are running and I'm assuming hibernate is running on the service side, but anyways, I fail to see anything that indicates the error is caused by hibernate. Try turning on logging to debug on the service side with axis and hibernate appenders and look for clues.

HTH,
Robert


Top
 Profile  
 
 Post subject: Re: Problem using hibernate with axis
PostPosted: Mon Mar 10, 2008 1:47 pm 
Newbie

Joined: Mon Mar 10, 2008 6:15 am
Posts: 2
ronb722 wrote:
Hi all,
I'm trying to run a web service from axis that uses hibernate. If posted the error and log below. Any help would be greatly appericated.
Thanks,
Ron

The webservice returns the following error:
<soapenv:Envelope>
<soapenv:Body>
<soapenv:Fault>
<faultcode>soapenv:Server.userException</faultcode>
<faultstring>java.lang.reflect.InvocationTargetException</faultstring>
<detail>
<ns1:hostname>ngdserv6</ns1:hostname>
</detail>
</soapenv:Fault>
</soapenv:Body>
</soapenv:Envelope>
...


Im having the same problem. Did you find a solution for this problem?

This is my first AXIS + Hibernate project, so most likely I'm missing some basic configuration parameters.
Thanks

Gonzo


Top
 Profile  
 
 Post subject: Re: Problem using hibernate with axis
PostPosted: Thu Jun 11, 2009 7:53 am 
Newbie

Joined: Thu Jun 11, 2009 7:41 am
Posts: 1
Hi,

I am a new user of hibernate and axis. i am facing the same problem.

The webservice returns the following error:
<soapenv:Envelope>
<soapenv:Body>
<soapenv:Fault>
<faultcode>soapenv:Server.userException</faultcode>
<faultstring>java.lang.reflect.InvocationTargetException</faultstring>
<detail>
<ns1:hostname>ngdserv6</ns1:hostname>
</detail>
</soapenv:Fault>
</soapenv:Body>
</soapenv:Envelope>
...

i just wanted to know if you got a solution. i am working on this since more than one week and i did not find any solution one the net
i am using hibernate2 axis 1.4 and tomcat 6

Please if you have any idea do not exited, i am a student doing an internship and i most finish this projet.

thanks for your help.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
cron
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.