This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes JBoss/WildFly and the fly likes JSP page not displayed - javax.servlet.jsp.PageContext could not be resolved Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "JSP page not displayed - javax.servlet.jsp.PageContext could not be resolved" Watch "JSP page not displayed - javax.servlet.jsp.PageContext could not be resolved" New topic
Author

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

Fathima Mohammedh
Greenhorn

Joined: Nov 20, 2008
Posts: 8
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

Joined: May 14, 2008
Posts: 5811
    
    7

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?


JBoss In Action
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JSP page not displayed - javax.servlet.jsp.PageContext could not be resolved
 
Similar Threads
Tomcat deployement Problem SEVERE: Error listenerStart
no db2jdbc in java.library.path on suse10.2
tictactoe help
The type javax.servlet.http.HttpServletRequest cannot be resolved. iIt is ndirectly referenced...
Cant convert from accessType to XmlAccessType + JAXWS