• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
reply
    Bookmark Topic Watch Topic
  • New Topic