Tomcat startup: Java. Lang. illegalargumentexception: Can't convert argument: NULL

Source: Internet
Author: User
Tags parse error

An error occurred when Tomcat was started today.

Severe: end event threw exception
Java. Lang. illegalargumentexception: Can't convert argument: NULL
At org. Apache. tomcat. util. introspectionutils. Convert (introspectionutils. Java: 999)
At org. Apache. tomcat. util. digester. callmethodrule. End (callmethodrule. Java: 523)
At org. Apache. tomcat. util. digester. Rule. End (rule. Java: 229)
At org. Apache. tomcat. util. digester. digester. endelement (digester. Java: 1140)
At com.sun.org. Apache. xerces. Internal. parsers. abstractsaxparser. endelement (abstractsaxparser. Java: 601)
At com.sun.org. Apache. xerces. Internal. impl. xmldocumentfragmentscannerimpl. scanendelement (xmldocumentfragmentscannerimpl. Java: 1774)
At com.sun.org. Apache. xerces. Internal. impl. xmldocumentfragmentscannerimpl $ fragmentcontentdriver. Next (xmldocumentfragmentscannerimpl. Java: 2930)
At com.sun.org. Apache. xerces. Internal. impl. xmldocumentscannerimpl. Next (xmldocumentscannerimpl. Java: 648)
At com.sun.org. Apache. xerces. Internal. impl. xmldocumentfragmentscannerimpl. scandocument (xmldocumentfragmentscannerimpl. Java: 510)
At com.sun.org. Apache. xerces. Internal. parsers. xml11configuration. parse (xml11configuration. Java: 807)
At com.sun.org. Apache. xerces. Internal. parsers. xml11configuration. parse (xml11configuration. Java: 737)
At com.sun.org. Apache. xerces. Internal. parsers. xmlparser. parse (xmlparser. Java: 107)
At com.sun.org. Apache. xerces. Internal. parsers. abstractsaxparser. parse (abstractsaxparser. Java: 1205)
At com.sun.org. Apache. xerces. Internal. JAXP. saxparserimpl $ jaxpsaxparser. parse (saxparserimpl. Java: 522)
At org. Apache. tomcat. util. digester. digester. parse (digester. Java: 1644)
At org. Apache. Catalina. startup. contextconfig. applicationwebconfig (contextconfig. Java: 369)
At org. Apache. Catalina. startup. contextconfig. Start (contextconfig. Java: 1062)
At org. Apache. Catalina. startup. contextconfig. lifecycleevent (contextconfig. Java: 261)
At org. Apache. Catalina. util. lifecyclesupport. firelifecycleevent (lifecyclesupport. Java: 117)
At org. Apache. Catalina. Core. standardcontext. Start (standardcontext. Java: 4252)
At org. Apache. Catalina. Core. containerbase. addchildinternal (containerbase. Java: 791)
At org. Apache. Catalina. Core. containerbase. addchild (containerbase. Java: 771)
At org. Apache. Catalina. Core. standardhost. addchild (standardhost. Java: 525)
At org. Apache. Catalina. startup. hostconfig. deploydirectory (hostconfig. Java: 924)
At org. Apache. Catalina. startup. hostconfig. deploydirectories (hostconfig. Java: 887)
At org. Apache. Catalina. startup. hostconfig. deployapps (hostconfig. Java: 492)
At org. Apache. Catalina. startup. hostconfig. Start (hostconfig. Java: 1147)
At org. Apache. Catalina. startup. hostconfig. lifecycleevent (hostconfig. Java: 311)
At org. Apache. Catalina. util. lifecyclesupport. firelifecycleevent (lifecyclesupport. Java: 117)
At org. Apache. Catalina. Core. containerbase. Start (containerbase. Java: 1053)
At org. Apache. Catalina. Core. standardhost. Start (standardhost. Java: 719)
At org. Apache. Catalina. Core. containerbase. Start (containerbase. Java: 1045)
At org. Apache. Catalina. Core. standardengine. Start (standardengine. Java: 443)
At org. Apache. Catalina. Core. standardservice. Start (standardservice. Java: 516)
At org. Apache. Catalina. Core. standardserver. Start (standardserver. Java: 710)
At org. Apache. Catalina. startup. Catalina. Start (Catalina. Java: 578)
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. Apache. Catalina. startup. Bootstrap. Start (Bootstrap. Java: 288)
At org. Apache. Catalina. startup. Bootstrap. Main (Bootstrap. Java: 413)
9:53:54 org. Apache. Catalina. startup. contextconfig applicationwebconfig
Severe: Parse error in Application Web. xml file at JNDI:/localhost/accept/WEB-INF/Web. xml
Java. Lang. illegalargumentexception: Can't convert argument: NULL
At org. Apache. tomcat. util. digester. digester. createsaxexception (digester. Java: 2808)
At org. Apache. tomcat. util. digester. digester. createsaxexception (digester. Java: 2834)
At org. Apache. tomcat. util. digester. digester. endelement (digester. Java: 1143)
At com.sun.org. Apache. xerces. Internal. parsers. abstractsaxparser. endelement (abstractsaxparser. Java: 601)
At com.sun.org. Apache. xerces. Internal. impl. xmldocumentfragmentscannerimpl. scanendelement (xmldocumentfragmentscannerimpl. Java: 1774)
At com.sun.org. Apache. xerces. Internal. impl. xmldocumentfragmentscannerimpl $ fragmentcontentdriver. Next (xmldocumentfragmentscannerimpl. Java: 2930)
At com.sun.org. Apache. xerces. Internal. impl. xmldocumentscannerimpl. Next (xmldocumentscannerimpl. Java: 648)
At com.sun.org. Apache. xerces. Internal. impl. xmldocumentfragmentscannerimpl. scandocument (xmldocumentfragmentscannerimpl. Java: 510)
At com.sun.org. Apache. xerces. Internal. parsers. xml11configuration. parse (xml11configuration. Java: 807)
At com.sun.org. Apache. xerces. Internal. parsers. xml11configuration. parse (xml11configuration. Java: 737)
At com.sun.org. Apache. xerces. Internal. parsers. xmlparser. parse (xmlparser. Java: 107)
At com.sun.org. Apache. xerces. Internal. parsers. abstractsaxparser. parse (abstractsaxparser. Java: 1205)
At com.sun.org. Apache. xerces. Internal. JAXP. saxparserimpl $ jaxpsaxparser. parse (saxparserimpl. Java: 522)
At org. Apache. tomcat. util. digester. digester. parse (digester. Java: 1644)
At org. Apache. Catalina. startup. contextconfig. applicationwebconfig (contextconfig. Java: 369)
At org. Apache. Catalina. startup. contextconfig. Start (contextconfig. Java: 1062)
At org. Apache. Catalina. startup. contextconfig. lifecycleevent (contextconfig. Java: 261)
At org. Apache. Catalina. util. lifecyclesupport. firelifecycleevent (lifecyclesupport. Java: 117)
At org. Apache. Catalina. Core. standardcontext. Start (standardcontext. Java: 4252)
At org. Apache. Catalina. Core. containerbase. addchildinternal (containerbase. Java: 791)
At org. Apache. Catalina. Core. containerbase. addchild (containerbase. Java: 771)
At org. Apache. Catalina. Core. standardhost. addchild (standardhost. Java: 525)
At org. Apache. Catalina. startup. hostconfig. deploydirectory (hostconfig. Java: 924)
At org. Apache. Catalina. startup. hostconfig. deploydirectories (hostconfig. Java: 887)
At org. Apache. Catalina. startup. hostconfig. deployapps (hostconfig. Java: 492)
At org. Apache. Catalina. startup. hostconfig. Start (hostconfig. Java: 1147)
At org. Apache. Catalina. startup. hostconfig. lifecycleevent (hostconfig. Java: 311)
At org. Apache. Catalina. util. lifecyclesupport. firelifecycleevent (lifecyclesupport. Java: 117)
At org. Apache. Catalina. Core. containerbase. Start (containerbase. Java: 1053)
At org. Apache. Catalina. Core. standardhost. Start (standardhost. Java: 719)
At org. Apache. Catalina. Core. containerbase. Start (containerbase. Java: 1045)
At org. Apache. Catalina. Core. standardengine. Start (standardengine. Java: 443)
At org. Apache. Catalina. Core. standardservice. Start (standardservice. Java: 516)
At org. Apache. Catalina. Core. standardserver. Start (standardserver. Java: 710)
At org. Apache. Catalina. startup. Catalina. Start (Catalina. Java: 578)
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. Apache. Catalina. startup. Bootstrap. Start (Bootstrap. Java: 288)
At org. Apache. Catalina. startup. Bootstrap. Main (Bootstrap. Java: 413)
9:53:54 org. Apache. Catalina. startup. contextconfig applicationwebconfig
Severe: occurred at line 783 Column 18
9:53:54 org. Apache. Catalina. startup. contextconfig start
Severe: marking this application unavailable due to previous error (s)
2013-7-16 9:53:54 org. Apache. Catalina. Core. standardcontext start
Severe: Error getconfigured
2013-7-16 9:53:54 org. Apache. Catalina. Core. standardcontext start
Severe: context [/accept] startup failed due to previous errors
9:53:54 org. Apache. Coyote. http11.http11protocol start
Information: Starting coyote HTTP/1.1 on http-8081
9:53:54 org. Apache. JK. Common. channelsocket init
Information: JK: ajp13 listening on/0.0.0.0: 8099
9:53:54 org. Apache. JK. server. jkmain start
Description: JK running id = 0 time = 0/25 Config = NULL
9:53:54 org. Apache. Catalina. startup. Catalina start
Information: server startup in 3342 MS

Due to the Eclipse plug-in jetty run that has been used during the test, it is normal to start normally. Today, moving it to Tomcat makes an error, and the project cannot be re-compiled several times,

Later I found that the Web. XML in it is not the same as the previous one.

The generated

<Web-app xmlns: javaee = "http://java.sun.com/xml/ns/javaee" xmlns: Web = "http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
<Javaee: Display-Name> archetype created web application </javaee: Display-Name>
<Filter>
<Filter-Name> jfinal </filter-Name>
<Filter-class> com. jfinal. Core. jfinalfilter </filter-class>
<Init-param>
<Javaee: param-Name> configclass </javaee: param-Name>
<Javaee: param-value> com. Fly. Core. initconfig </javaee: param-value>
</Init-param>
</Filter>
<Filter-mapping>
<Filter-Name> jfinal </filter-Name>
<URL-pattern>/index/* </url-pattern>
</Filter-mapping>

Previous

<Web-app version = "2.5"
Xmlns = "http://java.sun.com/xml/ns/javaee"
Xmlns: xsi = "http://www.w3.org/2001/XMLSchema-instance"
Xsi: schemalocation = "http://java.sun.com/xml/ns/javaee
Http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd>
<Filter>
<Filter-Name> jfinal </filter-Name>
<Filter-class> com. jfinal. Core. jfinalfilter </filter-class>
<Init-param>
<Param-Name> configclass </param-Name>
<Param-value> com. Fly. Core. initconfig </param-value>
</Init-param>
</Filter>
<Filter-mapping>
<Filter-Name> jfinal </filter-Name>
<URL-pattern>/index/* </url-pattern>
</Filter-mapping>

The generated header is different, and the javaee logo is added. It seems that the problem is here. After Changing Web. XML to the same as before, start Tomcat again.

I searched the internet and found that many people encountered this problem. The cause of this problem is:

When the Jee project name is restructured under eclipse, eclipse automatically updates the deployment file web. XML, re-generate the header Declaration of the XML file, add a new javaee namespace (Original: http://tchen8.iteye.com/blog/1041067 ),

The solution is to remove javaee from it:

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.