Wrox Home  
Search P2P Archive for: Go

  Return to Index  

pro_jsp thread: RE: Problem in acessing JSP page


Message #1 by "ramvel" <ramvelc@y...> on Tue, 11 Feb 2003 09:16:42
Hi,
i have been facing a similar problem.I'm using iPlanetWebServer6.0 SP3.
I have kept all the required commons*.jar and struts.jar under WEB-
INF/lib .I hope i dont have to set into the server's classpath.
But if i want to set , i could not set as the size of the environment 
variables excceds to the limit specified.Is there any other way to do the 
same.
The following is the error i get when i invoke index.jsp,

 Internal error: Unexpected error condition thrown 
(java.lang.NoClassDefFoundError: 
org/apache/commons/logging/LogFactory,org/apache/commons/logging/LogFactory
), stack: java.lang.NoClassDefFoundError: 
org/apache/commons/logging/LogFactory   at 
org.apache.struts.action.ActionServlet.<clinit>(ActionServlet.java:376)   
at java.lang.Class.newInstance0(Native Method)   at 
java.lang.Class.newInstance(Class.java:241)   at 
com.iplanet.server.http.servlet.WServletEntity.loadAndInitServlet
(WServletEntity.java:71)   at 
com.iplanet.server.http.servlet.WebApplication.init(WebApplication.java, 
Compiled Code)   at com.iplanet.server.http.servlet.VirtualServer.init
(VirtualServer.java, Compiled Code)   at 
com.iplanet.server.http.servlet.NSServletRunner.VSInit
(NSServletRunner.java:686 



Kindly help me out.
Thanks 
ram


> Did you copy the all of the struts*.tld files from the Struts 
distribution
into the WEB-INF directory of your web application?

Greg



-----Original Message-----
From: Kalpana Sharma [mailto:kalpanas@g...]
Sent: Wednesday, June 26, 2002 1:43 PM
To: Pro_JavaServer_Pages
Subject: [pro_jsp] RE: Problem in acessing JSP page


Hi Andrew,
Thanks for your reply.
I have the struts.jar file correctly placed in the web-inf directory of my
web application.

I have all the files stored in the following folder :-
D:\Tomcat4\webapps\project where project is my web application It has the
folders 1.Meta-inf containing file Manifest.mf
2. Web-inf containing folders classes(conatining my class files) and lib
(containing struts.jar file)

The JSP files are stored directly under the Project folder itself.

Im unable to figure out what the problem could be.
Another imp thing is that after getting the exception I had mentioned if I
refresh the page it gives a different exception which is:-
javax.servlet.ServletException
	at org.apache.jasper.runtime.PageContextImpl.handlePageException
(PageContextImpl.java:463)
	at org.apache.jsp.logon$jsp._jspService(logon$jsp.java:193)
	at org.apache.jasper.runtime.HttpJspBase.service
(HttpJspBase.java:107)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service
(JspServlet.java:202)
	at org.apache.jasper.servlet.JspServlet.serviceJspFile
(JspServlet.java:382)
	at org.apache.jasper.servlet.JspServlet.service
(JspServlet.java:474)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter
(ApplicationFilterChain.java:247)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter
(ApplicationFilterChain.java:193)
	at org.apache.catalina.core.StandardWrapperValve.invoke
(StandardWrapperValve.java:243)
	at org.apache.catalina.core.StandardPipeline.invokeNext
(StandardPipeline.java:566)
	at org.apache.catalina.core.StandardPipeline.invoke
(StandardPipeline.java:472)
	at org.apache.catalina.core.ContainerBase.invoke
(ContainerBase.java:943)
	at org.apache.catalina.core.StandardContextValve.invoke
(StandardContextValve.java:190)
	at org.apache.catalina.core.StandardPipeline.invokeNext
(StandardPipeline.java:566)
	at org.apache.catalina.core.StandardPipeline.invoke
(StandardPipeline.java:472)
	at org.apache.catalina.core.ContainerBase.invoke
(ContainerBase.java:943)
	at org.apache.catalina.core.StandardContext.invoke
(StandardContext.java:2343)
	at org.apache.catalina.core.StandardHostValve.invoke
(StandardHostValve.java:180)
	at org.apache.catalina.core.StandardPipeline.invokeNext
(StandardPipeline.java:566)
	at org.apache.catalina.valves.ErrorDispatcherValve.invoke
(ErrorDispatcherValve.java:170)
	at org.apache.catalina.core.StandardPipeline.invokeNext
(StandardPipeline.java:564)
	at org.apache.catalina.valves.ErrorReportValve.invoke
(ErrorReportValve.java:170)
	at org.apache.catalina.core.StandardPipeline.invokeNext
(StandardPipeline.java:564)
	at org.apache.catalina.valves.AccessLogValve.invoke
(AccessLogValve.java:468)
	at org.apache.catalina.core.StandardPipeline.invokeNext
(StandardPipeline.java:564)
	at org.apache.catalina.core.StandardPipeline.invoke
(StandardPipeline.java:472)
	at org.apache.catalina.core.ContainerBase.invoke
(ContainerBase.java:943)
	at org.apache.catalina.core.StandardEngineValve.invoke
(StandardEngineValve.java:174)
	at org.apache.catalina.core.StandardPipeline.invokeNext
(StandardPipeline.java:566)
	at org.apache.catalina.core.StandardPipeline.invoke
(StandardPipeline.java:472)
	at org.apache.catalina.core.ContainerBase.invoke
(ContainerBase.java:943)
	at org.apache.catalina.connector.http.HttpProcessor.process
(HttpProcessor.java:1012)
	at org.apache.catalina.connector.http.HttpProcessor.run
(HttpProcessor.java:1107)
	at java.lang.Thread.run(Thread.java:484)

Root Cause

java.lang.NoClassDefFoundError
	at org.apache.jsp.logon$jsp._jspService(logon$jsp.java:63)
	at org.apache.jasper.runtime.HttpJspBase.service
(HttpJspBase.java:107)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service
(JspServlet.java:202)
	at org.apache.jasper.servlet.JspServlet.serviceJspFile
(JspServlet.java:382)
	at org.apache.jasper.servlet.JspServlet.service
(JspServlet.java:474)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter
(ApplicationFilterChain.java:247)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter
(ApplicationFilterChain.java:193)
	at org.apache.catalina.core.StandardWrapperValve.invoke
(StandardWrapperValve.java:243)
	at org.apache.catalina.core.StandardPipeline.invokeNext
(StandardPipeline.java:566)
	at org.apache.catalina.core.StandardPipeline.invoke
(StandardPipeline.java:472)
	at org.apache.catalina.core.ContainerBase.invoke
(ContainerBase.java:943)
	at org.apache.catalina.core.StandardContextValve.invoke
(StandardContextValve.java:190)
	at org.apache.catalina.core.StandardPipeline.invokeNext
(StandardPipeline.java:566)
	at org.apache.catalina.core.StandardPipeline.invoke
(StandardPipeline.java:472)
	at org.apache.catalina.core.ContainerBase.invoke
(ContainerBase.java:943)
	at org.apache.catalina.core.StandardContext.invoke
(StandardContext.java:2343)
	at org.apache.catalina.core.StandardHostValve.invoke
(StandardHostValve.java:180)
	at org.apache.catalina.core.StandardPipeline.invokeNext
(StandardPipeline.java:566)
	at org.apache.catalina.valves.ErrorDispatcherValve.invoke
(ErrorDispatcherValve.java:170)
	at org.apache.catalina.core.StandardPipeline.invokeNext
(StandardPipeline.java:564)
	at org.apache.catalina.valves.ErrorReportValve.invoke
(ErrorReportValve.java:170)
	at org.apache.catalina.core.StandardPipeline.invokeNext
(StandardPipeline.java:564)
	at org.apache.catalina.valves.AccessLogValve.invoke
(AccessLogValve.java:468)
	at org.apache.catalina.core.StandardPipeline.invokeNext
(StandardPipeline.java:564)
	at org.apache.catalina.core.StandardPipeline.invoke
(StandardPipeline.java:472)
	at org.apache.catalina.core.ContainerBase.invoke
(ContainerBase.java:943)
	at org.apache.catalina.core.StandardEngineValve.invoke
(StandardEngineValve.java:174)
	at org.apache.catalina.core.StandardPipeline.invokeNext
(StandardPipeline.java:566)
	at org.apache.catalina.core.StandardPipeline.invoke
(StandardPipeline.java:472)
	at org.apache.catalina.core.ContainerBase.invoke
(ContainerBase.java:943)
	at org.apache.catalina.connector.http.HttpProcessor.process
(HttpProcessor.java:1012)
	at org.apache.catalina.connector.http.HttpProcessor.run
(HttpProcessor.java:1107)
	at java.lang.Thread.run(Thread.java:484)

I dont understand why I get two different types of exceptions one on
hitting the page and anopther on refreshing the same page.


Please Help!!!

Thanks and Regards,
Kalpana

---
Change your mail options at http://p2p.wrox.com/manager.asp or
to unsubscribe send a blank email to 



  Return to Index