`
jiangshuiy
  • 浏览: 335980 次
  • 性别: Icon_minigender_1
  • 来自: 杭州
社区版块
存档分类
最新评论

No embedded stylesheet instruction for file:奇怪的错误

 
阅读更多

08:09:43,395 INFO  [main] Main  - javax.xml.transform.TransformerFactory=null
08:09:43,398 INFO  [main] Main  - java.endorsed.dirs=/Library/Java/JavaVirtualMachines/jdk1.7.0_10.jdk/Contents/Home/jre/lib/endorsed
08:09:43,407 INFO  [main] Main  - launchFile: /Users/lishupeng/spaces/eclipsespaces/.metadata/.plugins/org.eclipse.wst.xsl.jaxp.launching/launch/launch.xml
08:09:44,618 FATAL [main] Main  - No embedded stylesheet instruction for file: file:/Users/lishupeng/spaces/eclipsespaces/.../dao/User.xml
org.eclipse.wst.xsl.jaxp.debug.invoker.TransformationException: No embedded stylesheet instruction for file: file:/Users/lishupeng/spaces/eclipsespaces/.../dao/User.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/lishupeng/spaces/eclipsespaces/.../dao/User.xml
	at org.eclipse.wst.xsl.jaxp.debug.invoker.internal.JAXPSAXProcessorInvoker.transform(JAXPSAXProcessorInvoker.java:214)
	... 2 more

 百思不得其解,分析了下发现main的提示入口竟然是xml文件,原来是我为了图快捷,直接在xml里面点了运行,没有切换到源代码去~解决

 

看来eclipse运行时是根据当前所在文件的类型来寻找入口点的~

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics