-->
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.  [ 2 posts ] 
Author Message
 Post subject: DTDEntityResolver:64 - trying to resolve system-id
PostPosted: Tue Jan 25, 2011 5:17 pm 
Newbie

Joined: Tue Jan 25, 2011 3:31 pm
Posts: 2
Hello, I am trying to run a backend application (using spring and hibernate 3.0) from another application written in (Struts/Hibernate 3.0 deployed on JBOSS).
Both JBOSS and the backend application reside on the same Linux box.
When i run the backend application by itself through linux bash script it runs fine but when i call from struts using java.lang.Runtime it hangs...
I found this in the log of the backend application...
I am posting this here because i am suspecting a possible conflict between hibernate thats with the backend application and the hibernate with the struts application.

please note this is just a partial log... there were 10 -15 other table mappings that were successfully mapped by the HbmBinder not sure why it would wait infinitely for this particular table mapping.

another thing i would like to point out is that...
when i run in backend it does this successfully

Any pointers will be greately appreciated... thanks

INFO [main] (Configuration.java:586) - Reading mappings from resource : org/jobcorps/cobra/db/orm/map/PayrollSchedule.hbm.xml
DEBUG [main] (DTDEntityResolver.java:64) - trying to resolve system-id [http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd]
DEBUG [main] (DTDEntityResolver.java:66) - recognized hibernate namespace; attempting to resolve on classpath under org/hibernate/
DEBUG [main] (DTDEntityResolver.java:76) - located [http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd] in classpath



....
[b]
14:10:33,735 INFO Configuration:586 - Reading mappings from resource : org/jobcorps/cobra/db/orm/map/StudentGroup.hbm.xml
14:10:33,736 DEBUG DTDEntityResolver:64 - trying to resolve system-id [http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd]
14:10:33,736 DEBUG DTDEntityResolver:66 - recognized hibernate namespace; attempting to resolve on classpath under org/hibernate/
14:10:33,737 DEBUG DTDEntityResolver:76 - located [http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd] in classpath
14:10:33,747 INFO HbmBinder:322 - Mapping class: org.jobcorps.cobra.db.bean.StudentGroup -> student_group
14:10:33,747 DEBUG HbmBinder:1289 - Mapped property: studGroupId -> stud_group_id
14:10:33,747 DEBUG HbmBinder:1289 - Mapped property: enrollmentDetail -> enrtype_id
14:10:33,748 DEBUG HbmBinder:1289 - Mapped property: grp -> group_id
14:10:33,748 DEBUG Configuration:1620 - null<-org.dom4j.tree.DefaultAttribute@6f1f23e5 [Attribute: name resource value "org/jobcorps/cobra/db/orm/map/PayrollSchedule.hbm.xml"]
14:10:33,748 INFO Configuration:586 - Reading mappings from resource : org/jobcorps/cobra/db/orm/map/PayrollSchedule.hbm.xml
14:10:33,749 DEBUG DTDEntityResolver:64 - trying to resolve system-id [http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd]
14:10:33,750 DEBUG DTDEntityResolver:66 - recognized hibernate namespace; attempting to resolve on classpath under org/hibernate/[/b]


Top
 Profile  
 
 Post subject: Re: DTDEntityResolver:64 - trying to resolve system-id
PostPosted: Wed Jan 26, 2011 3:26 pm 
Newbie

Joined: Tue Jan 25, 2011 3:31 pm
Posts: 2
This turned out to be a java's "Runtime.exec()" issue

Lesson learned is:
You must immediately handle the input, output, and error streams from your spawned external process.

more info here for anybody interested...
http://www.javaworld.com/javaworld/jw-1 ... tml?page=1

thanks


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 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.