org.eclipse.wst.xsl.jaxp.debug.invoker.TransformationException: No embedded stylesheet instruction f

在使用MyEclipse进行Mybatis代码自动生成时遇到错误:未找到内嵌样式表指令。解决方法为下载并安装特定版本的MyBatis Generator插件。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

1、错误描述

14:14:41,779 INFO  [main] Main  - javax.xml.transform.TransformerFactory=null
14:14:41,783 INFO  [main] Main  - java.endorsed.dirs=D:\Java\jdk1.7.0_67\jre\lib\endorsed
14:14:41,798 INFO  [main] Main  - launchFile: D:\MyEclipse10\workspace\.metadata\.plugins\org.eclipse.wst.xsl.jaxp.launching\launch\launch.xml
14:14:41,912 FATAL [main] Main  - No embedded stylesheet instruction for file: file:/D:/MyEclipse10/workspace/weixin/src/main/resources/generatorConfig.xml
org.eclipse.wst.xsl.jaxp.debug.invoker.TransformationException: No embedded stylesheet instruction for file: file:/D:/MyEclipse10/workspace/weixin/src/main/resources/generatorConfig.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:/D:/MyEclipse10/workspace/weixin/src/main/resources/generatorConfig.xml
	at org.eclipse.wst.xsl.jaxp.debug.invoker.internal.JAXPSAXProcessorInvoker.transform(JAXPSAXProcessorInvoker.java:214)
	... 2 more

2、错误原因

在MyEclipse中,利用Mybatis创建了自动生成文件,但是在运行中出现问题;运行Mybatis生成文件时,没有配置Mybatis插件


3、解决办法

下载MyBatis_Generator_1.3.1,将其复制到MyEclipse安装插件的目录下MyEclipse 10\dropins;然后重启MyEclipse

[INFO] Main - javax.xml.transform.TransformerFactory=null [INFO] Main - java.endorsed.dirs=null [INFO] Main - launchFile: C:\Users\34366\work\.metadata\.plugins\org.eclipse.wst.xsl.jaxp.launching\launch\launch.xml [Fatal Error] mybatis.out.xml:1:1: 文件提前结束。 [FATAL] Main - getAssociatedStylesheets failed <org.eclipse.wst.xsl.jaxp.debug.invoker.TransformationException: getAssociatedStylesheets failed>org.eclipse.wst.xsl.jaxp.debug.invoker.TransformationException: getAssociatedStylesheets failed 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:189) at org.eclipse.wst.xsl.jaxp.debug.invoker.internal.Main.main(Main.java:75) Caused by: javax.xml.transform.TransformerConfigurationException: getAssociatedStylesheets failed at java.xml/com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl.getAssociatedStylesheet(TransformerFactoryImpl.java:786) at org.eclipse.wst.xsl.jaxp.debug.invoker.internal.JAXPSAXProcessorInvoker.transform(JAXPSAXProcessorInvoker.java:208) ... 2 more Caused by: org.xml.sax.SAXParseException; systemId: file:/C:/Users/34366/work/lianxi1/src/mybatis.out.xml; lineNumber: 1; columnNumber: 1; 文件提前结束。 at java.xml/com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1251) at java.xml/com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:637) at java.xml/com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl.getAssociatedStylesheet(TransformerFactoryImpl.java:774) ... 3 more
最新发布
06-12
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值