tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sudhir Movva <SMo...@acninc.com>
Subject RE: Pl can anybody give me the solution
Date Thu, 17 Jul 2003 22:11:34 GMT
What do you have in your Login.jsp?

-----Original Message-----
From: Amit Khedkar [mailto:akhedkar@vertex.co.in] 
Sent: Thursday, July 17, 2003 8:42 AM
To: tomcat-user@jakarta.apache.org
Cc: Amit Khedkar
Subject: Pl can anybody give me the solution

Hello Sir/Madam

I am using Tomcat 4.1

I have created a web application having context as "gm".
All classes are placed at appropriate places, and jsps are at approprate

places.
In this application we are using struts frame work.

I copied
a) struts.jar
b) commons-beanutils.jar
c) commons-collections.jar
d) commons-digester.jar
e) commons-validator.jar
in my web application's "WEB-INF/lib"

And placed *.tld files related to struts in my application's "WEB-INF"
folder.

placed web.xml and struts-config.xml in "WEB-INF" folder.

and when i run the application and click the Login.jsp i get following
exception


description The server encountered an internal error () that prevented
it from fulfilling this request.

exception

javax.servlet.ServletException: Cannot inherit from final class
 at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)

 at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)

 at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:260)

 at

org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)

 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)

 at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
 at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:191)

 at

org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)

 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)

 at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
 at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2396)

 at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)

 at

org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)

 at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)

 at

org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)

 at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172
)

 at

org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)

 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)

 at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
 at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:174)

 at

org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)

 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)

 at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
 at
org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
 at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:405)

 at

org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne
ction(Http11Protocol.java:380)

 at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:508)

 at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:533)

 at java.lang.Thread.run(Thread.java:536)


root cause

java.lang.VerifyError: Cannot inherit from final class
 at java.lang.ClassLoader.defineClass0(Native Method)
 at java.lang.ClassLoader.defineClass(ClassLoader.java:502)
 at
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
 at
org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLo
ader.java:1664)

 at
org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.jav
a:953)

 at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.jav
a:1394)

 at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.jav
a:1274)

 at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315)
 at
org.apache.xerces.impl.XMLNSDocumentScannerImpl.createContentDispatcher(Unkn
own

Source)
 at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.(XMLDocumentFragmentSc
annerImpl.java:248)

 at
org.apache.xerces.impl.XMLDocumentScannerImpl.(XMLDocumentScannerImpl.java:2
45)

 at org.apache.xerces.impl.XMLNSDocumentScannerImpl.(Unknown Source)
 at
org.apache.xerces.parsers.IntegratedParserConfiguration.createDocumentScanne
r(Unknown

Source)
 at
org.apache.xerces.parsers.DTDConfiguration.(DTDConfiguration.java:366)
 at
org.apache.xerces.parsers.StandardParserConfiguration.(StandardParserConfigu
ration.java:197)

 at org.apache.xerces.parsers.IntegratedParserConfiguration.(Unknown
Source)
 at org.apache.xerces.parsers.IntegratedParserConfiguration.(Unknown
Source)
 at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)
 at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAcces
sorImpl.java:39)

 at

sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstruc
torAccessorImpl.java:27)

 at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
 at java.lang.Class.newInstance0(Class.java:306)
 at java.lang.Class.newInstance(Class.java:259)
 at
org.apache.xerces.util.ObjectFactory.newInstance(ObjectFactory.java:293)

 at
org.apache.xerces.util.ObjectFactory.createObject(ObjectFactory.java:224)

 at
org.apache.xerces.util.ObjectFactory.createObject(ObjectFactory.java:119)

 at org.apache.xerces.parsers.DOMParser.(DOMParser.java:153)
 at org.apache.xerces.parsers.DOMParser.(DOMParser.java:137)
 at
org.apache.xerces.jaxp.DocumentBuilderImpl.(DocumentBuilderImpl.java:102)

 at

org.apache.xerces.jaxp.DocumentBuilderFactoryImpl.newDocumentBuilder(Documen
tBuilderFactoryImpl.java:88)

 at
org.apache.jasper.xmlparser.ParserUtils.parseXMLDocument(ParserUtils.java:16
7)

 at
org.apache.jasper.compiler.TldLocationsCache.processWebDotXml(TldLocationsCa
che.java:175)

 at
org.apache.jasper.compiler.TldLocationsCache.init(TldLocationsCache.java:147
)

 at
org.apache.jasper.compiler.TldLocationsCache.getLocation(TldLocationsCache.j
ava:318)

 at
org.apache.jasper.JspCompilationContext.getTldLocation(JspCompilationContext
.java:437)

 at
org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:353)
 at org.apache.jasper.compiler.Parser.parseDirective(Parser.java:381)
 at org.apache.jasper.compiler.Parser.parseElements(Parser.java:799)
 at org.apache.jasper.compiler.Parser.parse(Parser.java:122)
 at
org.apache.jasper.compiler.ParserController.parse(ParserController.java:199)

 at
org.apache.jasper.compiler.ParserController.parse(ParserController.java:153)

 at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:219)
 at org.apache.jasper.compiler.Compiler.compile(Compiler.java:323)
 at
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:4
74)

 at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:1
84)

 at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:289)

 at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)

 at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)

 at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:260)

 at

org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)

 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)

 at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
 at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:191)

 at

org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)

 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)

 at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
 at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2396)

 at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)

 at

org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)

 at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)

 at

org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)

 at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172
)

 at

org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)

 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)

 at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
 at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:174)

 at

org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)

 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)

 at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
 at
org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
 at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:405)

 at

org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne
ction(Http11Protocol.java:380)

 at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:508)

 at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:533)

 at java.lang.Thread.run(Thread.java:536)

Note:- Normal jsps(one which is not using struts framework) runs without
any problem

I searched  google for the solution, but still didn't get can u pl tell
me the work around

regards
Amit.





---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message