tomcat-maven web启动服务器是出现错误error creating fake context.xml

问题描述

maven web启动服务器是出现错误error creating fake context.xml

Creating Tomcat server configuration at D:Program FilesdpapDPAP-2.0.1.RC1-DEMOsourcedpap-demodpap-demo-webtargettomcat
[ERROR] error creating fake context.xml : only whitespace content allowed before start tag and not u9518 (position: START_DOCUMENT seen u9518... @1:1)
org.codehaus.plexus.util.xml.pull.XmlPullParserException: only whitespace content allowed before start tag and not u9518 (position: START_DOCUMENT seen u9518... @1:1)
at org.codehaus.plexus.util.xml.pull.MXParser.parseProlog(MXParser.java:1528)
at org.codehaus.plexus.util.xml.pull.MXParser.nextImpl(MXParser.java:1407)
at org.codehaus.plexus.util.xml.pull.MXParser.next(MXParser.java:1105)
at org.codehaus.plexus.util.xml.Xpp3DomBuilder.build(Xpp3DomBuilder.java:179)
at org.codehaus.plexus.util.xml.Xpp3DomBuilder.build(Xpp3DomBuilder.java:75)
at org.codehaus.plexus.util.xml.Xpp3DomBuilder.build(Xpp3DomBuilder.java:40)
at org.apache.tomcat.maven.plugin.tomcat6.RunMojo.getContextFile(RunMojo.java:254)
at org.apache.tomcat.maven.plugin.tomcat6.AbstractRunMojo.createContext(AbstractRunMojo.java:533)
at org.apache.tomcat.maven.plugin.tomcat6.RunMojo.createContext(RunMojo.java:134)
at org.apache.tomcat.maven.plugin.tomcat6.AbstractRunMojo.startContainer(AbstractRunMojo.java:825)
at org.apache.tomcat.maven.plugin.tomcat6.AbstractRunMojo.execute(AbstractRunMojo.java:463)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE

解决方案

外部的tomcat还是用的是maven tomcat的插件?pom.xml和context.xml配置文件发出来看看

时间: 2024-10-31 15:14:41

tomcat-maven web启动服务器是出现错误error creating fake context.xml的相关文章

spring 错误 error creating bean with name

问题描述 spring 错误 error creating bean with name org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userService' defined in class path resource [beans.xml]: Instantiation of bean failed; nested exception is org.spring

初学者开发的第一个Hibernate,如下错误%%%% Error Creating SessionFactory %%%%,求解

问题描述 %%%% Error Creating SessionFactory %%%%org.hibernate.MappingException: component class not found: vo.UserIdat org.hibernate.mapping.Component.getComponentClass(Component.java:105)at org.hibernate.tuple.PojoComponentTuplizer.buildGetter(PojoCompo

开发过程使用Tomcat Maven插件持续快捷部署Web项目

我在平时工作中部署Web项目到测试服务器上的Tomcat时用的是Hudson.Hudson本身已经跟SVN.Git.Maven集成并且支持添加各种插件.但如果使用Hudson,我需要配置两个任务:一个任务负责打包项目成WAR,另外一个任务负责部署打包好的WAR包到目标服务器的Tomcat上.虽然任务只需要配置一次,但每次修改代码提交后,都得切换到浏览器点Hudson构建任务页面上的Build Now按钮,然后还得跳转到另一个页面观察是否有报错,然后再点击执行相应的部署任务.烦不胜烦,偶然发现To

spring-在用eclipse启动maven项目的时候报的错误 这是什么情况

问题描述 在用eclipse启动maven项目的时候报的错误 这是什么情况 在用eclipse启动maven项目的时候报的错误,如果我用eclipse插件启用项目就报下面的错误,但是我用server的方式启动就不会报这个错,这是怎么回事啊?求大神们指教 14:51:31.297 [main] DEBUG o.s.v.b.OptionalValidatorFactoryBean - Failed to set up a Bean Validation provider javax.validati

拦截器-tomcat启动时出现这种错误

问题描述 tomcat启动时出现这种错误 严重: Dispatcher initialization failed Unable to load configuration. - bean - jar:file:/D:/Program%20Files/apache-tomcat-6.0.29/webapps/struts2.myeclipse.bak/WEB-INF/lib/struts2-spring-plugin-2.3.20.jar!/struts-plugin.xml:29:132 at

myeclipse svn导入maven项目启动时报下面错误,求大神回答

问题描述 myeclipse svn导入maven项目启动时报下面错误,求大神回答 17:23:40 WARN [main] XmlWebApplicationContext - Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean w

java-非典型SSH项目,启动服务器,出现如下错误,求大神支招

问题描述 非典型SSH项目,启动服务器,出现如下错误,求大神支招 10:19:56.250 WARN org.hibernate.ejb.Ejb3Configuration[1132] - HHH000144: hibernate.connection.autocommit = false breaks the EJB3 specification 10:19:56.745 WARN o.h.e.jdbc.internal.JdbcServicesImpl[169] - HHH000342: C

spring mvc-springMVC+maven,启动报报JNDI的错误,但我没有用到JNDI

问题描述 springMVC+maven,启动报报JNDI的错误,但我没有用到JNDI 要修改一个项目,用的技术有springMVC,maven等,部署到tomcat下,启动时报错.项目中使用的连接池连接数据库,没有使用JNDI,为什么启动时老是去查找JNDI? applicationContext.xml中定义了项目的环境: location="classpath*:/application.properties" /> <!-- Tomcat JDBC连接池 -->

maven整合ssh3启动出现LogManager NoClassDefFoundError错误

问题描述 maven整合ssh3启动出现错误java.lang.NoClassDefFoundError: Could not initialize class org.apache.log4j.LogManager上网搜了一下,都说没加入log4j的包,但我明明加入进去了啊slf4j-api, slf4j-log4j12, commons-logging, log4j 都加了,还是报错下面是我的错误信息和pom.xmlCaused by: java.lang.NoClassDefFoundEr