-->
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.  [ 7 posts ] 
Author Message
 Post subject: hibernate config error
PostPosted: Fri Jul 03, 2009 7:43 am 
Newbie

Joined: Fri Jul 03, 2009 7:39 am
Posts: 2
Hello People,
I'm new to hibernate and trying out an online example.

When I run the code from eclipse, I get the following error,

12:18:34,501 INFO [main] Main - javax.xml.transform.TransformerFactory=null
12:18:34,503 INFO [main] Main - java.endorsed.dirs=/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home/lib/endorsed
12:18:34,506 INFO [main] Main - launchFile: /Users/SachieChan/Projects/.metadata/.plugins/org.eclipse.wst.xsl.jaxp.launching/launch/launch.xml
12:18:34,842 FATAL [main] Main - No embedded stylesheet instruction for file: file:/Users/SachieChan/Projects/PoolInJava/config/hibernate.cfg.xml
org.eclipse.wst.xsl.jaxp.debug.invoker.TransformationException: No embedded stylesheet instruction for file: file:/Users/SachieChan/Projects/PoolInJava/config/hibernate.cfg.xml
at org.eclipse.wst.xsl.jaxp.debug.invoker.internal.JAXPSAXProcessorInvoker.transform(JAXPSAXProcessorInvoker.java:225)
at org.eclipse.wst.xsl.jaxp.debug.invoker.internal.JAXPSAXProcessorInvoker.transform(JAXPSAXProcessorInvoker.java:186)
at org.eclipse.wst.xsl.jaxp.debug.invoker.internal.Main.main(Main.java:73)
Caused by: org.eclipse.wst.xsl.jaxp.debug.invoker.TransformationException: No embedded stylesheet instruction for file: file:/Users/SachieChan/Projects/PoolInJava/config/hibernate.cfg.xml
at org.eclipse.wst.xsl.jaxp.debug.invoker.internal.JAXPSAXProcessorInvoker.transform(JAXPSAXProcessorInvoker.java:214)
... 2 more

Not sure how can this be resolved.
Any help is highly appreciated.
cheers
S


Top
 Profile  
 
 Post subject: Re: hibernate config error
PostPosted: Sun Sep 20, 2009 6:34 am 
Newbie

Joined: Wed Dec 10, 2008 5:10 am
Posts: 4
Location: India
Even i got the same problem. I fixed this one by the following way

- go to the Project properties
- click validation (don't open the tree, just click the "validation" item)
- on the right pane, uncheck all "XML" & "XSL" validations
NOTE: If the items are disabled in the right pane, check "Enable Project specific settings"
- Apply and select ok.

Although I haven't enabled the "Project specific settings" it was validating which is something weird!!! So I had to enable and disable the xml and xsl validations.

Cheers,
siva


Top
 Profile  
 
 Post subject: Re: hibernate config error
PostPosted: Wed Jan 13, 2010 11:57 pm 
Newbie

Joined: Tue Jun 17, 2008 7:25 pm
Posts: 1
Hello, sivalsk.

I got the same problem too.

For eclipse, it think because you focus at hibernate.cfg.xml file when you run program.
So you must focus at Main function when you run it. ^^

Mr. Donut

_________________
Donut, Thailand


Top
 Profile  
 
 Post subject: Re: hibernate config error
PostPosted: Thu Mar 25, 2010 5:06 pm 
Newbie

Joined: Thu Mar 25, 2010 3:47 pm
Posts: 1
I fixed the similar problem in Eclipse by appending my xml files to the build path:

Package Explorer -> Right click on xml file -> Build Path -> Add to Build Path


Top
 Profile  
 
 Post subject: Re: hibernate config error
PostPosted: Sun May 30, 2010 10:39 pm 
Newbie

Joined: Sun May 30, 2010 10:35 pm
Posts: 1
d_n, thanks for your experienced reply. else it would have never come to my mind.
kudos!


Top
 Profile  
 
 Post subject: Re: hibernate config error
PostPosted: Sat Mar 26, 2011 12:34 am 
Newbie

Joined: Sat Mar 26, 2011 12:25 am
Posts: 2
Thank you, sivalsk. It's been 2 years since you posted the solution but it solved my XML issue today.


Top
 Profile  
 
 Post subject: Re: hibernate config error
PostPosted: Sat Mar 26, 2011 12:39 am 
Newbie

Joined: Sat Mar 26, 2011 12:25 am
Posts: 2
donut_nakin, you are right. I also made the mistake of leaving the focus on the XML file.


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