请大神帮助。。。
我编写maven 代码 总启动的时候就报错[05-25 15:38:07] [INFO] [main] [com.opensymphony.xwork2.config.providers.XmlConfigurationProvider] Parsing configuration file [struts-default.xml]
2013-5-25 15:38:07 org.apache.catalina.core.StandardContext filterStart
严重: Exception starting filter struts2
java.lang.NullPointerException
at com.caucho.xml.QAttributedNode.getAttributeNodeNS(QAttributedNode.java:146)
at com.opensymphony.xwork2.util.location.LocationAttributes.getLocation(LocationAttributes.java:170)
at com.opensymphony.xwork2.util.location.LocationAttributes.getLocation(LocationAttributes.java:183)
at com.opensymphony.xwork2.util.location.LocationUtils.getLocation(LocationUtils.java:250)
at com.opensymphony.xwork2.util.location.LocationUtils.getLocation(LocationUtils.java:199)
at com.opensymphony.xwork2.XWorkException.<init>(XWorkException.java:91)
at com.opensymphony.xwork2.config.ConfigurationException.<init>(ConfigurationException.java:74)
at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register(XmlConfigurationProvider.java:222)
at org.apache.struts2.config.StrutsXmlConfigurationProvider.register(StrutsXmlConfigurationProvider.java:101)
at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:165)
at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:55)
at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:360)
at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:403)
at org.apache.struts2.dispatcher.FilterDispatcher.init(FilterDispatcher.java:190)
at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:295)
at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:422)
at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:115)
at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4001)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4651)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:785)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:445)
at org.apache.catalina.startup.Embedded.start(Embedded.java:825)
at org.codehaus.mojo.tomcat.AbstractRunMojo.startContainer(AbstractRunMojo.java:558)
at org.codehaus.mojo.tomcat.AbstractRunMojo.execute(AbstractRunMojo.java:255)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:107)
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:319)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:534)
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)
2013-5-25 15:38:07 org.apache.catalina.core.StandardContext start
严重: Error filterStart
2013-5-25 15:38:07 org.apache.catalina.core.StandardContext start
严重: Context [/csp-manage] startup failed due to previous errors
2013-5-25 15:38:07 org.apache.catalina.core.ApplicationContext log
信息: Closing Spring root WebApplicationContext
[05-25 15:38:07] [INFO] [main] [org.springframework.web.context.support.XmlWebApplicationContext] Closing Root WebApplicationContext: startup date [Sat May 25 15:38:05 CST 2013]; root of context hierarchy
[05-25 15:38:07] [INFO] [main] [org.springframework.beans.factory.support.DefaultListableBeanFactory] Destroying singlet** in org.springframework.beans.factory.support.DefaultListableBeanFactory@3b05c7e1: defining beans [dataSource,transactionManager,txAdvice,org.springframework.aop.config.internalAutoProxyCreator,allServiceMethod,org.springframework.aop.support.DefaultBeanFactoryPointcutAdvisor#0,sqlMapClient,禁止发链接ConnectionClient,易做图禁止发链接Client,userDao,permissionDao,departmentDao,roleDao,userSessionDao,channelDao,subTagDao,channelSubDao,channelTagDao,chnGroupDao,albumDao,videoDao,videoLogDao,versionDao,videoVersionDao,videoVersionF4VDao,chnLogDao,tagAlbumDao,noticeDao,cpDao,ipmSyncNoticeLogDao,userService,permissi**ervice,departmentService,roleService,channelService,channelSubService,channelTagService,userSessi**ervice,chnGroupService,albumService,videoService,chnLogService,cpService,ipmSyncNoticeService,tagAlbumService,videoVersi**ervice,videoVersionF4VService]; root of factory hierarchy
2013-5-25 15:38:07 org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc
严重: The web application [/csp-manage] registered the JBDC driver [com.mysql.jdbc.Driver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 4.755s
[INFO] Finished at: Sat May 25 15:38:08 CST 2013
[INFO] Final Memory: 21M/182M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.codehaus.mojo:tomcat-maven-plugin:1.1:run (default-cli) on project csp-manage: Could not start Tomcat: Protocol handler initialization failed: java.net.BindException: Address already in use: JVM_Bind <null>:8080 -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible soluti**, please read the following articles:
[ERROR] [Help 1] 禁止发链接://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
我将web.xml 里struts2的连接器注释掉就没事了
之前的配置
<filter>
<filter-name>struts2</filter-name>
<filter-class>org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>struts2</filter-name>
<url-pattern>*.action</url-pattern>
</filter-mapping>
我后来改成
<filter>
<filter-name>struts2</filter-name>
<filter-class>org.apache.struts2.dispatcher.FilterDispatcher</filter-class>
</filter>
<filter-mapping>
<filter-name>struts2</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
启动的时候还是报错
struts2 的核心jar文件也改动了但启动的时候还是报上面的错误。。。
请大神们指点 。。。 Maven --------------------编程问答-------------------- 求指点啊,我也遇到了同样的问题。。。 --------------------编程问答-------------------- 我也有同样的错误,求大神啊...
补充:Java , Java EE