This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 169986 - org.apache.jasper.JasperException: The absolute uri: [...] cannot be resolved in either web.xml or the jar files deployed with this application
Summary: org.apache.jasper.JasperException: The absolute uri: [...] cannot be resolve...
Status: RESOLVED WORKSFORME
Alias: None
Product: javaee
Classification: Unclassified
Component: Struts (show other bugs)
Version: 6.x
Hardware: Macintosh Mac OS X
: P3 blocker (vote)
Assignee: Petr Cyhelsky
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-08-06 14:30 UTC by caschoff
Modified: 2009-08-12 09:38 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description caschoff 2009-08-06 14:30:02 UTC
My webproject compiles fine under NetBeans 6.5.1, but under 6.7 it won't compile, stopping with:

[...]
compile:
compile-jsps:
org.apache.jasper.JasperException:  The absolute uri: http://jakarta.apache.org/struts/tags-bean cannot be resolved in either web.xml or the jar files 
deployed with this application
/Users/caschoff/Documents/Projekte/NextGeneration/Universitaet/CoronaNG/build/web/changelog.jsp(3,0)
/Users/caschoff/Documents/Projekte/NextGeneration/Universitaet/CoronaNG/nbproject/build-impl.xml:455: Java returned: 1
BUILD FAILED (total time: 2 seconds)

Struts is included as a framework and as a library.
Comment 1 Petr Cyhelsky 2009-08-11 16:26:36 UTC
Reproduced, it indeed doesn't compile - the reason is that NB 6.5.1 uses Struts 1.2.9 and NB 6.7 Uses Struts 1.3.8.
The workaround is relatively easy - just replace 1.3.8 libraries with 1.2.9 and it will work again.

The alternative may be to use the 1.3.8 library but than your .jsp must be changed to accomodate the change which might
be complicated - try replacing at least

<%@ taglib uri="http://jakarta.apache.org/struts/tags-bean" prefix="bean" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-html" prefix="html" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-logic" prefix="logic" %>

<html:html locale="true">

in your .jsp with

<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>

<html:html lang="true">

does this work for you?
Comment 2 caschoff 2009-08-12 09:38:37 UTC
I changed the taglib-uris, now the project compiles and runs fine, thank you very much.