jsp page in Apache not working..

B

buu

I'm a newbie in making java web apps, so I need a help :)

I have a app. in JDeveloper 11 & apache 6.0.13.
I got an error:
org.apache.jasper.JasperException: The absolute uri:
http://java.sun.com/jsf/core cannot be resolved in either web.xml or the jar
files deployed with this application
org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:51)
org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:409)
org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:116)
org.apache.jasper.compiler.TagLibraryInfoImpl.generateTLDLocation(TagLibraryInfoImpl.java:315)
org.apache.jasper.compiler.TagLibraryInfoImpl.<init>(TagLibraryInfoImpl.java:148)
org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:420)
I created an app. using <c:forEach items='${lista}' var='mem'> tag.
I copied jdbc drivers and tld. files.

my web.xml is starting with:
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
version="2.5" xmlns="http://java.sun.com/xml/ns/javaee">


and I also put (like I saw on one site):
<taglib>
<taglib-uri>http://java.sun.com/jstl/fmt</taglib-uri>
<taglib-location>/WEB-INF/fmt.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>http://java.sun.com/jstl/core</taglib-uri>
<taglib-location>/WEB-INF/c.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>http://java.sun.com/jstl/sql</taglib-uri>
<taglib-location>/WEB-INF/sql.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>http://java.sun.com/jstl/x</taglib-uri>
<taglib-location>/WEB-INF/x.tld</taglib-location>
</taglib>



what is missing??
 
L

Lew

buu said:
I'm a newbie in making java web apps, so I need a help :)

I have a app. in JDeveloper 11 & apache 6.0.13.
I got an error:
org.apache.jasper.JasperException: The absolute uri:
http://java.sun.com/jsf/core cannot be resolved in either web.xml or the jar
files deployed with this application
org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:51)
org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:409)
org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:116)
org.apache.jasper.compiler.TagLibraryInfoImpl.generateTLDLocation(TagLibraryInfoImpl.java:315)
org.apache.jasper.compiler.TagLibraryInfoImpl.<init>(TagLibraryInfoImpl.java:148)
org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:420)
I created an app. using <c:forEach items='${lista}' var='mem'> tag.
I copied jdbc drivers and tld. files.

my web.xml is starting with:
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
version="2.5" xmlns="http://java.sun.com/xml/ns/javaee">


and I also put (like I saw on one site):
<taglib>
<taglib-uri>http://java.sun.com/jstl/fmt</taglib-uri>
<taglib-location>/WEB-INF/fmt.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>http://java.sun.com/jstl/core</taglib-uri>
<taglib-location>/WEB-INF/c.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>http://java.sun.com/jstl/sql</taglib-uri>
<taglib-location>/WEB-INF/sql.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>http://java.sun.com/jstl/x</taglib-uri>
<taglib-location>/WEB-INF/x.tld</taglib-location>
</taglib>



what is missing??

Most likely the JSF Jar file in your classpath.
 
B

buu

Most likely the JSF Jar file in your classpath.

I added jar's to WEB-INF/lib (I have them in my classpath), but I got an
tomcat error:

Jul 21, 2007 7:35:16 PM org.apache.catalina.core.StandardContext
listenerStart
SEVERE: Error configuring application listener of class
com.sun.faces.config.ConfigureListener
java.lang.NoClassDefFoundError: com/sun/org/apache/commons/digester/RuleSet
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Class.java:2389)
at java.lang.Class.getConstructor0(Class.java:2699)
at java.lang.Class.newInstance0(Class.java:326)
at java.lang.Class.newInstance(Class.java:308)
at
org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3771)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4334)
at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:825)
at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:714)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:490)
at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1206)
at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:293)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
at
org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1337)
at
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1601)
at
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1610)
at
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1590)
at java.lang.Thread.run(Thread.java:619)
Jul 21, 2007 7:35:16 PM org.apache.catalina.core.StandardContext
listenerStart
SEVERE: Skipped installing application listeners due to previous error(s)
 
L

Lew

Lew said:
Most likely the JSF Jar file in your classpath [is missing].
I added jar's to WEB-INF/lib (I have them in my classpath), but I got an
tomcat error:

Jul 21, 2007 7:35:16 PM org.apache.catalina.core.StandardContext
listenerStart
SEVERE: Error configuring application listener of class
com.sun.faces.config.ConfigureListener
java.lang.NoClassDefFoundError: com/sun/org/apache/commons/digester/RuleSet

Which JARs, specifically, are in the application WEB-INF/lib/? This error
seems to indicate that commons-digester is not in there.

Or perhaps the message is not coming from your application. Are there other
applications mounted in the same application server?
 
M

milan.behera

Lew said:
Most likely the JSF Jar file in your classpath [is missing].
buu said:
I added jar's to WEB-INF/lib (I have them in my classpath), but I got an
tomcat error:
Jul 21, 2007 7:35:16 PM org.apache.catalina.core.StandardContext
listenerStart
SEVERE: Error configuring application listener of class
com.sun.faces.config.ConfigureListener
java.lang.NoClassDefFoundError: com/sun/org/apache/commons/digester/RuleSet

Which JARs, specifically, are in the application WEB-INF/lib/? This error
seems to indicate that commons-digester is not in there.

Or perhaps the message is not coming from your application. Are there other
applications mounted in the same application server?

Hi,

I am also getting the same error message:
org.apache.jasper.JasperException: The absolute uri: http://java.sun.com/jsf/core
cannot be resolved in either web.xml or the jar files deployed with
this application

I have the myfaces-api.jar and the myfaces-impl.jar in my WEB-INF\lib
folder.

Milan
 
Joined
Jul 21, 2009
Messages
1
Reaction score
0
This is an old problem, but I've encountered the same issue recently and figured I'd post the solution in case someone else encounters this problem. The solution for me was to place the jsf-impl.jar file in my classpath.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,968
Messages
2,570,149
Members
46,695
Latest member
StanleyDri

Latest Threads

Top