-->
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.  [ 6 posts ] 
Author Message
 Post subject: two webapps+ hibernate + tomcat5.0
PostPosted: Fri Mar 18, 2005 4:28 pm 
Beginner
Beginner

Joined: Tue Jan 18, 2005 6:44 pm
Posts: 39
Hi,
I am trying to get my webapp to run under an installation of tomcat that already has a webapp that uses hibernate2.2. When I start up tomcat it spits out the mappings for the webapp.
When I attempted to run my webservice which I installed under axis it throws a java.lang.reflect.InvocationTargetException.
Is it possible because two webapps are using different versions of hibernate? Any ideas?

Thanks,
Jeevak


Top
 Profile  
 
 Post subject:
PostPosted: Fri Mar 18, 2005 5:34 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
as long as their classes is isolated from each other you shouldnt have a problem.

you could also start by showing the stacktrace ?

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Fri Mar 18, 2005 8:14 pm 
Beginner
Beginner

Joined: Tue Jan 18, 2005 6:44 pm
Posts: 39
I have pasted the stack trace as seen below. It doesnt say much.I have this webservice working on a different instance of a tomcat installation and I made the same changes to this instance too but I get this error.

AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
faultSubcode:
faultString: java.lang.reflect.InvocationTargetException
faultActor:
faultNode:
faultDetail:
{http://xml.apache.org/axis/}hostname:ENG-LAB-01

java.lang.reflect.InvocationTargetException
at org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:221)
at org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:128)
at org.apache.axis.encoding.DeserializationContext.endElement(DeserializationContext.java:1083)
at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at javax.xml.parsers.SAXParser.parse(Unknown Source)
at org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:226)
at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:645)
at org.apache.axis.Message.getSOAPEnvelope(Message.java:424)
at org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62)
at org.apache.axis.client.AxisClient.invoke(AxisClient.java:173)
at org.apache.axis.client.Call.invokeEngine(Call.java:2719)
at org.apache.axis.client.Call.invoke(Call.java:2702)
at org.apache.axis.client.Call.invoke(Call.java:2378)
at org.apache.axis.client.Call.invoke(Call.java:2301)
at org.apache.axis.client.Call.invoke(Call.java:1758)
at com.sivault.www.SAS_wsdl.SASBindingStub.query(SASBindingStub.java:371)
at com.sivault.www.SAS_wsdl.SASTester.main(SASTester.java:111)


Top
 Profile  
 
 Post subject:
PostPosted: Fri Mar 18, 2005 10:02 pm 
Beginner
Beginner

Joined: Tue Jan 18, 2005 6:44 pm
Posts: 39
During tomcat startup I see the following messages that are related to the webapp using hibernate 2.

125 [main] INFO cfg.Environment - Hibernate 2.1.2
125 [main] INFO cfg.Environment - hibernate.properties not found
125 [main] INFO cfg.Environment - using CGLIB reflection optimizer
484 [main] INFO cfg.Binder - Mapping class: com.technoetic.xplanner.domain.Attribute -> attribute
1078 [main] INFO cfg.Binder - Mapping class: com.technoetic.xplanner.security.auth.Permission -> permission
1125 [main] INFO cfg.Binder - Mapping class: com.technoetic.xplanner.domain.RoleAssociation -> person_role
1172 [main] INFO cfg.Binder - Mapping class: com.technoetic.xplanner.charts.DataSample -> datasample
1219 [main] INFO cfg.Binder - Mapping class: com.technoetic.xplanner.domain.Project -> project
1250 [main] INFO cfg.Binder - Mapping collection: com.technoetic.xplanner.domain.Project.attributes -> attribute
1297 [main] INFO cfg.Binder - Mapping class: com.technoetic.xplanner.domain.Iteration -> iteration
1297 [main] INFO cfg.Binder - Mapping collection: com.technoetic.xplanner.domain.Iteration.attributes -> attribute
1344 [main] INFO cfg.Binder - Mapping class: com.technoetic.xplanner.domain.UserStory -> story
1359 [main] INFO cfg.Binder - Mapping collection: com.technoetic.xplanner.domain.UserStory.attributes -> attribute
1391 [main] INFO cfg.Binder - Mapping class: com.technoetic.xplanner.domain.Task -> task
1391 [main] INFO cfg.Binder - Mapping collection: com.technoetic.xplanner.domain.Task.attributes -> attribute
1422 [main] INFO cfg.Binder - Mapping class: com.technoetic.xplanner.domain.TimeEntry -> time_entry
1453 [main] INFO cfg.Binder - Mapping class: com.technoetic.xplanner.domain.Integration -> integration
1453 [main] INFO cfg.Binder - Mapping collection: com.technoetic.xplanner.domain.Integration.attributes -> attribute
1484 [main] INFO cfg.Binder - Mapping class: com.technoetic.xplanner.domain.Note -> note
1500 [main] INFO cfg.Binder - Mapping collection: com.technoetic.xplanner.domain.Note.attributes -> attribute
1531 [main] INFO cfg.Binder - Mapping class: com.technoetic.xplanner.domain.Role -> role
1578 [main] INFO cfg.Binder - Mapping class: com.technoetic.xplanner.domain.Person -> person
1578 [main] INFO cfg.Binder - Mapping collection: com.technoetic.xplanner.domain.Person.attributes -> attribute
1609 [main] INFO cfg.Binder - Mapping class: com.technoetic.xplanner.history.HistoricalEvent -> history
1641 [main] INFO cfg.Binder - Mapping class: com.technoetic.xplanner.file.File -> xfile
1656 [main] INFO cfg.Binder - Mapping class: com.technoetic.xplanner.file.Directory -> xdir
1750 [main] INFO cfg.Configuration - processing one-to-many association mappings
1750 [main] INFO cfg.Binder - Mapping collection: com.technoetic.xplanner.domain.Project.iterations -> iteration
1750 [main] INFO cfg.Binder - Mapping collection: com.technoetic.xplanner.domain.Iteration.userStories -> story
1750 [main] INFO cfg.Binder - Mapping collection: com.technoetic.xplanner.domain.UserStory.tasks -> task
1750 [main] INFO cfg.Binder - Mapping collection: com.technoetic.xplanner.domain.Task.timeEntries -> time_entry
1750 [main] INFO cfg.Binder - Mapping collection: com.technoetic.xplanner.file.Directory.subdirectories -> xdir
1750 [main] INFO cfg.Binder - Mapping collection: com.technoetic.xplanner.file.Directory.files -> xfile
1750 [main] INFO cfg.Configuration - processing one-to-one association property references
1750 [main] INFO cfg.Configuration - processing foreign key constraints
1953 [main] INFO dialect.Dialect - Using dialect: com.technoetic.xplanner.db.hibernate.XPlannerMySQLDialect
1953 [main] INFO cfg.SettingsFactory - Use outer join fetching: true
2094 [main] INFO transaction.TransactionManagerLookupFactory - No TransactionManagerLookup configured (in JTA environment, use of process level read-write cache is not recommended)
2281 [main] INFO cfg.SettingsFactory - Use scrollable result sets: true
2281 [main] INFO cfg.SettingsFactory - Use JDBC3 getGeneratedKeys(): true
2281 [main] INFO cfg.SettingsFactory - Optimize cache for minimal puts: false
2281 [main] INFO cfg.SettingsFactory - Query language substitutions: {true='1', false='0'}
2281 [main] INFO cfg.SettingsFactory - cache provider: net.sf.ehcache.hibernate.Provider
2281 [main] INFO cfg.Configuration - instantiating and configuring caches
2344 [main] INFO impl.SessionFactoryImpl - building session factory
2969 [main] INFO impl.SessionFactoryObjectFactory - no JNDI name configured
2969 [main] INFO cache.UpdateTimestampsCache - starting update timestamps cache at region: net.sf.hibernate.cache.UpdateTimestampsCache
2969 [main] INFO cache.QueryCache - starting query cache at region: net.sf.hibernate.cache.QueryCache


Top
 Profile  
 
 Post subject:
PostPosted: Sat Mar 19, 2005 4:57 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
i dont see any hibernate related issue.

only some axis issues and some hidden exception that occurs. That exception can be anything. If you are worried if its the two apps that "collides" then test if it happens when they just run alone...if it doesnt then you might be "mingling" classloaders/deployments - but that is again nothing do with hibernate ,)

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Sat Mar 19, 2005 3:31 pm 
Beginner
Beginner

Joined: Tue Jan 18, 2005 6:44 pm
Posts: 39
I had a similar issue a week ago. It threw the same exception but the problem was that I hadnt set the properties for the database correctly and there were a couple of hibernate libraries missing.
The webservice wraps every exception into a SOAPException and it is difficult to debug based on the excpetion it spits out. I have all the libraries in place and I have recreated the same environment as on my development machine where the web service performs as expected.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 6 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:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.