File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JSP page not displayed - javax.servlet.jsp.PageContext could not be resolved

 
Fathima Mohammedh
Greenhorn
Posts: 8
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
my problem is this.

i have installed a jboss application sever which is working well in another machine,in my local host.i can access the all pages and data contents before i build my jar and war files.but,if i change the codings and built it through ant tool i couldn't get web pages and some of them are appeared as blank pages. the error messages are like this..

ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/sos].[jsp]] Servlet.service() for servlet jsp threw exception
java.lang.Error: Unresolved compilation problems:
The type javax.servlet.jsp.PageContext cannot be resolved. It is indirectly referenced from required .class files
The import javax.servlet.jsp.PageContext cannot be resolved
PageContext cannot be resolved to a type
PageContext cannot be resolved to a type
PageContext cannot be resolved to a type
PageContext cannot be resolved to a type
PageContext cannot be resolved to a type
PageContext cannot be resolved to a type
PageContext cannot be resolved to a type

at com.atlinkcom.bestcarelab.form.ViewFormatter.<init>(ViewFormatter.java:1)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:494)


Unresolved compilation problems:
The type javax.servlet.jsp.PageContext cannot be resolved. It is indirectly referenced from required .class files
The import javax.servlet.jsp.PageContext cannot be resolved
PageContext cannot be resolved to a type
PageContext cannot be resolved to a type
PageContext cannot be resolved to a type
PageContext cannot be resolved to a type
PageContext cannot be resolved to a type
PageContext cannot be resolved to a type
PageContext cannot be resolved to a type

at com.atlinkcom.bestcarelab.form.ViewFormatter.<init>(ViewFormatter.java:1)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
at java.lang.Class.newInstance0(Class.java:350)
at java.lang.Class.newInstance(Class.java:303)
at fr.improve.struts.taglib.layout.skin.Skin.<init>(Skin.java:133)
please help me to avoid this error..........

[Edited by Jaikiran: Changed the subject line from "jBoss" to something better]
[ December 02, 2008: Message edited by: Jaikiran Pai ]
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Fathima, please change the topic title to something more descriptive than "jBoss" - this entire forum is dedicated to JBoss questions and the current title does nothing to distinguish your topic from other topics.

As regards your question, how are you packaging your app? As a WAR? Could you post the full contents of the WAR? Use "jar -tf xxx.war" to get a listing.

You did not, by any chance, package the servlet jar file within your war?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic