You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by majid kamal <yn...@onebox.com> on 2001/02/02 16:47:14 UTC
Re: Error: 500 from ????????????
I made thange the Mr Richard told me to do in the web.xml file, but still
have the same problem, the same problem even with struts example.
Always got this :
Error: 500
Location: /hellostruts/hello.jsp
Internal Servlet Error:
javax.servlet.ServletException
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:399)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
at org.apache.tomcat.core.Handler.service(Handler.java:286)
at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:210)
at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
at java.lang.Thread.run(Thread.java:484)
Root cause:
java.lang.NoSuchMethodError
at org.apache.jasper.compiler.TagLibraryInfoImpl.createAttribute(TagLibraryInfoImpl.java:524)
at org.apache.jasper.compiler.TagLibraryInfoImpl.createTagInfo(TagLibraryInfoImpl.java:432)
at org.apache.jasper.compiler.TagLibraryInfoImpl.parseTLD(TagLibraryInfoImpl.java:385)
at org.apache.jasper.compiler.TagLibraryInfoImpl.(TagLibraryInfoImpl.java:233)
at org.apache.jasper.compiler.JspParseEventListener.handleDirective(JspParseEventListener.java:706)
at org.apache.jasper.compiler.DelegatingListener.handleDirective(DelegatingListener.java:116)
at org.apache.jasper.compiler.Parser$Directive.accept(Parser.java:215)
at org.apache.jasper.compiler.Parser.parse(Parser.java:1077)
at org.apache.jasper.compiler.Parser.parse(Parser.java:1042)
at org.apache.jasper.compiler.Parser.parse(Parser.java:1038)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:182)
at org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:462)
at org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java:146)
at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:433)
at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:152)
at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:164)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
at org.apache.tomcat.core.Handler.service(Handler.java:286)
at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:210)
at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
at java.lang.Thread.run(Thread.java:484)
--
majid kamal
yna544@onebox.com - email
(781) 685-1450 x2371 - voicemail/fax
---- "Steven D. Wilkinson" <st...@acm.org> wrote:
> As Richard mentioned your xml is wrong. Try this...
> I assume you have the header information or else it would be a different
> error.;-)
>
> <?xml version="1.0" encoding="ISO-8859-1"?>
> <!DOCTYPE web-app
> PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
> "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
> <web-app>
> <servlet>
> <servlet-name>action</servlet-name>
> <servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
> <!--Below is the init-param-->
> <!--This defines where your application resources are located.-->
> <!--It uses the classloader to find the file.-->
> <!--The ".properties" extension isn�t used to locate resources.-->
> <init-param>
> <param-name>application</param-name>
> <param-value>helloworld.HelloWorldResources</param-value>
> </init-param>
> <load-on-startup>1</load-on-startup>
> </servlet>
>
> <!--This section defines what file to open first if none is specified
> -->
> <welcome-file-list>
> <welcome-file>hello.jsp</welcome-file>
> </welcome-file-list>
>
> <!--The following section defines a URI to use to retrieve the struts
> taglib -->
> <taglib>
> <taglib-uri>/WEB-INF/struts-bean.tld</taglib-uri>
> <taglib-location>/WEB-INF/struts-bean.tld</taglib-location>
> </taglib>
>
> </web-app>
>
> Notice, that <welcome-file-list></welcome-file-list> comes before the
> <taglib></taglib>.
> Richard was saying that XMLSpy would inform you of your error as it
> did. Now
> you have to fix it. Move your welcome-file-list above the taglib.
> Here is what Richard referred to in the DTD...
> <!- LEMENT web-app (icon?, display-name?, description?, distributable?,
> context-param*, servlet*, servlet-mapping*, session-config?,
> mime-mapping*, welcome-file-list?, error-page*, taglib*,
> resource-ref*, security-constraint*, login-config?, security-role*,
> env-entry*, ejb-ref*)>
>
> This means that welcome-file-list comes before a taglib. Hope that's
> more
> clear.
>
> Steve
>
>
> majid kamal wrote:
> >
> > Hi, I still have the error: 500, I just tryied to open web.xml in
> spyxml
> > and I got this error :
> > The file is not valid
> > Unexpected child element wilcome-file-list
> >
> > And here is again web.xml
> > <?xml version="1.0" encoding="ISO-8859-1"?>
> >
> > <!DOCTYPE web-app
> > PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
> > "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
> >
> > <web-app>
> > <servlet>
> > <servlet-name>action</servlet-name>
> > <servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
> > <!--Below is the init-param-->
> > <!--This defines where your application resources are located.-->
> > <!--It uses the classloader to find the file.-->
> > <!--The ".properties" extension isn�t used to locate resources.-->
> > <init-param>
> > <param-name>application</param-name>
> > <param-value>helloworld.HelloWorldResources</param-value>
> > </init-param>
> > <load-on-startup>1</load-on-startup>
> > </servlet>
> >
> > <!--The following section defines a URI to use to retrieve the
> struts
> > taglib -->
> > <taglib>
> > <taglib-uri>/WEB-INF/struts-bean.tld</taglib-uri>
> > <taglib-location>/WEB-INF/struts-bean.tld</taglib-location>
> > </taglib>
> >
> > <!--This section defines what file to open first if none is specified
> > -->
> > <welcome-file-list>
> > <welcome-file>hello.jsp</welcome-file>
> > </welcome-file-list>
> > </web-app>
> >
> > Please help, thanks
> > --
> > majid kamal
> > yna544@onebox.com - email
> > (781) 685-1450 x2371 - voicemail/fax
> >
> > __________________________________________________
> > FREE voicemail, email, and fax...all in one place.
> > Sign Up Now! http://www.onebox.com
>
> --
> -----------------------------------------------------------------
> Steven D. Wilkinson, stevendwilkinson@acm.org
>
__________________________________________________
FREE voicemail, email, and fax...all in one place.
Sign Up Now! http://www.onebox.com