08:09:43,395 INFO [main] Main - javax.xml.transform.TransformerFactory=null08:09:43,398 INFO [main] Main - java.endorsed.dirs=/Library/Java/JavaVirtualMachines/jdk1.7.0_10.jdk/Contents/Home/jre/lib/endorsed08:09:43,407 INFO [main] Main - launchFile: /Users/lishupeng/spaces/eclipsespaces/.metadata/.plugins/org.eclipse.wst.xsl.jaxp.launching/launch/launch.xml08:09:44,618 FATAL [main] Main - No embedded stylesheet instruction for file: file:/Users/lishupeng/spaces/eclipsespaces/.../dao/User.xmlorg.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运行时是根据当前所在文件的类型来寻找入口点的~