NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

Regd. org.apache.jasper.JasperException
Goto page 1, 2  Next
 
Post new topic   Reply to topic    NetBeans Forums -> Java EE Users
View previous topic :: View next topic  
Author Message
Frame



Joined: 18 Jun 2010
Posts: 1

PostPosted: Fri Jun 18, 2010 10:37 am    Post subject: Regd. org.apache.jasper.JasperException Reply with quote

Hi,

I am using NetBeans IDE 6.9 and working through the tutorial, 'Creating a Simple Web Application Using a MySQL Database' (http://netbeans.org/kb/docs/web/mysql-webapp.html), written by Troy Giunipero. Eveything worked as detailed in the tutorial till the step "Adding Dynamic Logic", then when I add "DB Report item" to 'index.jsp' page, I am getting the following error during JSP compilation:

org.apache.jasper.JasperException: PWC6188: The absolute uri: http://java.sun.com/jsp/jstl/core cannot be resolved in either web.xml or the jar files deployed with this application

I checked for the presence 'jstl-impl.jar' under the project's Libraries > the GlassFish server node, but am clueless about the cause of this error.

For reference, here are the relevant portions of 'index.jsp' and 'web.xml':

index.jsp:

Code:
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@taglib prefix="sql" uri="http://java.sun.com/jsp/jstl/sql"%>

<sql:query var="subjects" dataSource="jdbc/JavaEEMySQL">
    SELECT subject_id, name FROM Subject
</sql:query>

<table border="1">
    <!-- column headers -->
    <tr>
        <c:forEach var="columnName" items="${subjects.columnNames}">
            <th><c:out value="${columnName}"/></th>
        </c:forEach>
    </tr>
    <!-- column data -->
    <c:forEach var="row" items="${subjects.rowsByIndex}">
        <tr>
            <c:forEach var="column" items="${row}">
                <td><c:out value="${column}"/></td>
            </c:forEach>
        </tr>
    </c:forEach>
</table>
...


web.xml:

Code:

<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee" 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">
    <session-config>
        <session-timeout>
            30
        </session-timeout>
    </session-config>
    <welcome-file-list>
        <welcome-file>index.jsp</welcome-file>
    </welcome-file-list>
...


Any help is appreciated. Thanks!
Back to top
weltok



Joined: 18 Jun 2010
Posts: 3

PostPosted: Fri Jun 18, 2010 8:54 pm    Post subject: Reply with quote

Hi,

i´m working through the tutorial, too.
I have the same Problem!

org.apache.jasper.JasperException: file:c:/xxxxxxx/Documents/NetBeansProjects/AffableBean/build/web/test/testDataSource.jsp(1,62) PWC6188: The absolute uri: http://java.sun.com/jsp/jstl/sql cannot be resolved in either web.xml or the jar files deployed with this application

i tried http://forums.sun.com/thread.jspa?threadID=486791

nothing worked Sad
Back to top
weltok



Joined: 18 Jun 2010
Posts: 3

PostPosted: Sat Jun 19, 2010 8:39 pm    Post subject: Reply with quote

push...

if no one answers-> eclipse is better than netbeans Very Happy
Back to top
tsand



Joined: 19 Jun 2010
Posts: 2

PostPosted: Sat Jun 19, 2010 10:17 pm    Post subject: Same Problem Reply with quote

I have been working on the new Netbeans Ecommerce Tutorial in the Java EE & Java Web Learning Trail. The problem occurs in the "Connecting the Application to the Database" module. The problem occurs at:

<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@taglib prefix="sql" uri="http://java.sun.com/jsp/jstl/sql"%>


My guess is that these URIs are bad.
Back to top
tsand



Joined: 19 Jun 2010
Posts: 2

PostPosted: Sat Jun 19, 2010 11:47 pm    Post subject: Found solution! Reply with quote

Ok all you need to do is download the JSTL Standard Taglib and install them for it to work.

Go here: http://jakarta.apache.org/site/downloads/downloads_taglibs-standard.cgi

Then download the binary in either the zip or tar format.

Then unzip to your desktop and go into the lib folder. You will find the standard.jar and jstl.jar files.

Go back to your netbeans project and under WEB-INF folder create a new lib folder if you haven't done so already. Then copy the 2 JAR files above to that location and it will compile and run without errors.
Back to top
troy giunipero
Posted via mailing list.





PostPosted: Sat Jun 19, 2010 11:47 pm    Post subject: Re: Regd. org.apache.jasper.JasperException Reply with quote

Hi,

I'm unable to reproduce this error using the NetBeans 6.9 installation
with GlassFish 3.0.1 (nor with any other version, for that matter). Can
you please tell me what OS you are running on? I've received similar
feedback from someone using Ubuntu.

As a workaround, try adding the NetBeans JSTL libraries to the project:
Choose Tools > Libraries > JSTL 1.1 (This is a previous version of JSTL,
but is fine for the tutorial project.)

In the future, please use the Feedback link provided in the tutorial for
comments or help specifically on the tutorial.

thanks,
troy


On 6/18/10 12:38 PM, Frame wrote:
Quote:
Hi,

I am using NetBeans IDE 6.9 and working through the tutorial, 'Creating a Simple Web Application Using a MySQL Database' (http://netbeans.org/kb/docs/web/mysql-webapp.html), written by Troy Giunipero. Eveything worked as detailed in the tutorial till the step "Adding Dynamic Logic", then when I add "DB Report item" to 'index.jsp' page, I am getting the following error during JSP compilation:

org.apache.jasper.JasperException: PWC6188: The absolute uri: http://java.sun.com/jsp/jstl/core cannot be resolved in either web.xml or the jar files deployed with this application

I checked for the presence 'jstl-impl.jar' under the project's Libraries> the GlassFish server node, but am clueless about the cause of this error.

For reference, here are the relevant portions of 'index.jsp' and 'web.xml':

index.jsp:


Code:
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@taglib prefix="sql" uri="http://java.sun.com/jsp/jstl/sql"%>

<sql:query var="subjects" dataSource="jdbc/JavaEEMySQL">
SELECT subject_id, name FROM Subject
</sql:query>

<table border="1">
<!-- column headers -->
<tr>
<c:forEach var="columnName" items="${subjects.columnNames}">
<th><c:out value="${columnName}"/></th>
</c:forEach>
</tr>
<!-- column data -->
<c:forEach var="row" items="${subjects.rowsByIndex}">
<tr>
<c:forEach var="column" items="${row}">
<td><c:out value="${column}"/></td>
</c:forEach>
</tr>
</c:forEach>
</table>
...




web.xml:


Code:

<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee" 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">
<session-config>
<session-timeout>
30
</session-timeout>
</session-config>
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
...



Any help is appreciated. Thanks!




Back to top
weltok



Joined: 18 Jun 2010
Posts: 3

PostPosted: Sun Jun 20, 2010 3:54 pm    Post subject: Reply with quote

the workaroung of tsand is working fine!!!

my system: windows 7 64bit with jdk 32/64bit installed.


Quote:
As a workaround, try adding the NetBeans JSTL libraries to the project:
Choose Tools > Libraries > JSTL 1.1 (This is a previous version of JSTL,
but is fine for the tutorial project.)
-> dont know how to add it to the project....
Back to top
troy giunipero
Posted via mailing list.





PostPosted: Sun Jun 20, 2010 7:42 pm    Post subject: Re: Regd. org.apache.jasper.JasperException Reply with quote

Quote:
Quote:
As a workaround, try adding the NetBeans JSTL libraries to the project:
Choose Tools> Libraries> JSTL 1.1 (This is a previous version of JSTL,
but is fine for the tutorial project.)

-> dont know how to add it to the project....

Apologies... in the Projects window, right-click the Library node for
the project and choose Add Library. You can then select the JSTL 1.1
library (includes the standard.jar and jstl.jar).

In other words, Tools > Libraries opens the Library Manager, where you
can view, modify, add and remove libraries maintained by the IDE. To
add one of these libraries to your project, right-click your project's
Libraries node and choose Add Library.

Adding the JSTL library in this manner saves you the trouble of
downloading it from elsewhere.
Back to top
flafora



Joined: 15 Feb 2010
Posts: 2

PostPosted: Tue Jul 06, 2010 8:25 am    Post subject: Re: Regd. org.apache.jasper.JasperException Reply with quote

I am having the same problem with NetBeans 6.9 and glassfish-3.0.1. I have a MacBook Pro with Snow Leopard 10.6.4 and Java 1.6.0_20.

I have a tag file that uses the core library. If a deploy the project everything works. That is, by means of the browser I request de JSP that uses the tag file and I get it without problem.

However, if I select the JSP in NetBeans, right click, and select "Run File" I get the PWC6188 error associated to the tag file.

In the GlassFish library there is a file jstl-impl.jar with the JSTL implementation and the correct TLD.

Regards,






troy giunipero wrote:
Hi,

I'm unable to reproduce this error using the NetBeans 6.9 installation
with GlassFish 3.0.1 (nor with any other version, for that matter). Can
you please tell me what OS you are running on? I've received similar
feedback from someone using Ubuntu.

As a workaround, try adding the NetBeans JSTL libraries to the project:
Choose Tools > Libraries > JSTL 1.1 (This is a previous version of JSTL,
but is fine for the tutorial project.)

In the future, please use the Feedback link provided in the tutorial for
comments or help specifically on the tutorial.

thanks,
troy


On 6/18/10 12:38 PM, Frame wrote:
Quote:
Hi,

I am using NetBeans IDE 6.9 and working through the tutorial, 'Creating a Simple Web Application Using a MySQL Database' (http://netbeans.org/kb/docs/web/mysql-webapp.html), written by Troy Giunipero. Eveything worked as detailed in the tutorial till the step "Adding Dynamic Logic", then when I add "DB Report item" to 'index.jsp' page, I am getting the following error during JSP compilation:

org.apache.jasper.JasperException: PWC6188: The absolute uri: http://java.sun.com/jsp/jstl/core cannot be resolved in either web.xml or the jar files deployed with this application

I checked for the presence 'jstl-impl.jar' under the project's Libraries> the GlassFish server node, but am clueless about the cause of this error.

For reference, here are the relevant portions of 'index.jsp' and 'web.xml':

index.jsp:


Code:
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@taglib prefix="sql" uri="http://java.sun.com/jsp/jstl/sql"%>

<sql:query var="subjects" dataSource="jdbc/JavaEEMySQL">
SELECT subject_id, name FROM Subject
</sql:query>

<table border="1">
<!-- column headers -->
<tr>
<c:forEach var="columnName" items="${subjects.columnNames}">
<th><c:out value="${columnName}"/></th>
</c:forEach>
</tr>
<!-- column data -->
<c:forEach var="row" items="${subjects.rowsByIndex}">
<tr>
<c:forEach var="column" items="${row}">
<td><c:out value="${column}"/></td>
</c:forEach>
</tr>
</c:forEach>
</table>
...




web.xml:


Code:

<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee" 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">
<session-config>
<session-timeout>
30
</session-timeout>
</session-config>
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
...



Any help is appreciated. Thanks!




Back to top
troy giunipero
Posted via mailing list.





PostPosted: Tue Jul 06, 2010 4:45 pm    Post subject: Re: Regd. org.apache.jasper.JasperException Reply with quote

Hi,

I filed an issue: http://netbeans.org/bugzilla/show_bug.cgi?id=188406

As a workaround, add the IDE's JSTL 1.1 libraries to your project: In
the Projects window, right-click the Libraries node in your project and
choose Add Library...


On 7/6/10 9:26 AM, flafora wrote:
Quote:
I am having the same problem with NetBeans 6.9 and glassfish-3.0.1. I have a MacBook Pro with Snow Leopard 10.6.4 and Java 1.6.0_20.

I have a tag file that uses the core library. If a deploy the project everything works. That is, by means of the browser I request de JSP that uses the tag file and I get it without problem.

However, if I select the JSP in NetBeans, right click, and select "Run File" I get the PWC6188 error associated to the tag file.

In the GlassFish library there is a file jstl-impl.jar with the JSTL implementation and the correct TLD.

Regards,







troy giunipero wrote:

Quote:
Hi,

I'm unable to reproduce this error using the NetBeans 6.9 installation
with GlassFish 3.0.1 (nor with any other version, for that matter). Can
you please tell me what OS you are running on? I've received similar
feedback from someone using Ubuntu.

As a workaround, try adding the NetBeans JSTL libraries to the project:
Choose Tools> Libraries> JSTL 1.1 (This is a previous version of JSTL,
but is fine for the tutorial project.)

In the future, please use the Feedback link provided in the tutorial for
comments or help specifically on the tutorial.

thanks,
troy


On 6/18/10 12:38 PM, Frame wrote:


Quote:
Hi,

I am using NetBeans IDE 6.9 and working through the tutorial, 'Creating a Simple Web Application Using a MySQL Database' (http://netbeans.org/kb/docs/web/mysql-webapp.html), written by Troy Giunipero. Eveything worked as detailed in the tutorial till the step "Adding Dynamic Logic", then when I add "DB Report item" to 'index.jsp' page, I am getting the following error during JSP compilation:

org.apache.jasper.JasperException: PWC6188: The absolute uri: http://java.sun.com/jsp/jstl/core cannot be resolved in either web.xml or the jar files deployed with this application

I checked for the presence 'jstl-impl.jar' under the project's Libraries> the GlassFish server node, but am clueless about the cause of this error.

For reference, here are the relevant portions of 'index.jsp' and 'web.xml':

index.jsp:


Code:
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@taglib prefix="sql" uri="http://java.sun.com/jsp/jstl/sql"%>

<sql:query var="subjects" dataSource="jdbc/JavaEEMySQL">
SELECT subject_id, name FROM Subject
</sql:query>

<table border="1">
<!-- column headers -->
<tr>
<c:forEach var="columnName" items="${subjects.columnNames}">
<th><c:out value="${columnName}"/></th>
</c:forEach>
</tr>
<!-- column data -->
<c:forEach var="row" items="${subjects.rowsByIndex}">
<tr>
<c:forEach var="column" items="${row}">
<td><c:out value="${column}"/></td>
</c:forEach>
</tr>
</c:forEach>
</table>
...




web.xml:


Code:

<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee" 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">
<session-config>
<session-timeout>
30
</session-timeout>
</session-config>
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
...



Any help is appreciated. Thanks!











Back to top
kwrobel



Joined: 07 Jul 2010
Posts: 54

PostPosted: Wed Jul 07, 2010 2:18 pm    Post subject: Success Reply with quote

Hi. I'm following the "The NetBeans E-commerce Tutorial - Connecting the Application to the Database" as well, using Ubuntu 9.10 and Netbeans 6.9 for Linux. troy giunipero's suggestion is right on the mark. I added the JSTL 1.1 Library Reference to the project. This is also mentioned at the bottom of the page in the "Troubleshooting" section. Not sure when this was added. However, I feel this should be mentioned way earlier in the text as a note where you create the testDataSource.jsp file to make the user immediately aware of this problem in Netbeans, if it is indeed a problem. I feel that the context dialog for the DB Report should automatically check for reference to the JSTL library and add it to the project if it's not there.

Thanks troy for pointing out the issue.

Kay
Back to top
shaijee



Joined: 23 Jun 2009
Posts: 2

PostPosted: Sun Jul 11, 2010 6:39 pm    Post subject: Re: Found solution! Reply with quote

Thanks a lot!
Its really works.
tsand wrote:
Ok all you need to do is download the JSTL Standard Taglib and install them for it to work.

Go here: http://jakarta.apache.org/site/downloads/downloads_taglibs-standard.cgi

Then download the binary in either the zip or tar format.

Then unzip to your desktop and go into the lib folder. You will find the standard.jar and jstl.jar files.

Go back to your netbeans project and under WEB-INF folder create a new lib folder if you haven't done so already. Then copy the 2 JAR files above to that location and it will compile and run without errors.
Back to top
shaijee



Joined: 23 Jun 2009
Posts: 2

PostPosted: Sun Jul 11, 2010 6:41 pm    Post subject: Re: Regd. org.apache.jasper.JasperException Reply with quote

thanks.
Its really help me.
troy giunipero wrote:
Quote:
Quote:
As a workaround, try adding the NetBeans JSTL libraries to the project:
Choose Tools> Libraries> JSTL 1.1 (This is a previous version of JSTL,
but is fine for the tutorial project.)

-> dont know how to add it to the project....

Apologies... in the Projects window, right-click the Library node for
the project and choose Add Library. You can then select the JSTL 1.1
library (includes the standard.jar and jstl.jar).

In other words, Tools > Libraries opens the Library Manager, where you
can view, modify, add and remove libraries maintained by the IDE. To
add one of these libraries to your project, right-click your project's
Libraries node and choose Add Library.

Adding the JSTL library in this manner saves you the trouble of
downloading it from elsewhere.
Back to top
warisaK



Joined: 11 Aug 2010
Posts: 1
Location: London, UK

PostPosted: Wed Aug 11, 2010 4:29 pm    Post subject: Re: Found solution! Reply with quote

It is really works! yay! Thank you soo much! x

tsand wrote:
Ok all you need to do is download the JSTL Standard Taglib and install them for it to work.

Go here: http://jakarta.apache.org/site/downloads/downloads_taglibs-standard.cgi

Then download the binary in either the zip or tar format.

Then unzip to your desktop and go into the lib folder. You will find the standard.jar and jstl.jar files.

Go back to your netbeans project and under WEB-INF folder create a new lib folder if you haven't done so already. Then copy the 2 JAR files above to that location and it will compile and run without errors.


It is really works! Thank you so much! x
Back to top
Pedro Rodriguez



Joined: 27 Dec 2010
Posts: 1

PostPosted: Mon Dec 27, 2010 6:21 am    Post subject: Reply with quote

I am working on a web app and am having the same problem as the original poster. My code for taglib and web.xml is identical to OP as well. I tried adding the jstl libraries by right click and adding and also downloading the file given by tsand and it still doesn't work. At the top of the page it tells me the error that the OP has and when I right click and compile it gives Exception in thread "main" java.lang.NoSuchMethodError: javax.el.ExpressionFactory.newInstance()Ljavax/el/ExpressionFactory;

Any help would be great. I have been scouring the internet and trying suggestions for the better part of two hours and this thread seems to be the only one that was finding success with methods.

EDIT: Important to mention I am developing on Mac OS X Snow Leopard, latest JDK, using Tomcat 6.0

EDIT2: I was looking at forum after posting and apparrently you need to reboot Netbeans for it to recognize a new taglib entry. http://forums.netbeans.org/viewtopic.php?t=34659

That is solved, but now I am getting
java.lang.NoSuchMethodError: javax.el.ExpressionFactory.newInstance()Ljavax/el/ExpressionFactory;
at org.apache.jasper.compiler.JspUtil.getExpressionFactory(JspUtil.java:1166)
at org.apache.jasper.compiler.JspUtil.validateExpressions(JspUtil.java:628)
at org.apache.jasper.compiler.Validator$ValidateVisitor.getJspAttribute(Validator.java:1341)
at org.apache.jasper.compiler.Validator$ValidateVisitor.checkXmlAttributes(Validator.java:1117)
at org.apache.jasper.compiler.Validator$ValidateVisitor.visit(Validator.java:834)
at org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1482)
at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2257)
at org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2307)
at org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2313)
at org.apache.jasper.compiler.Node$Root.accept(Node.java:481)
at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2257)
at org.apache.jasper.compiler.NbValidator.validate(NbValidator.java:131)
at org.apache.jasper.compiler.GetParseData.parse(GetParseData.java:182)
at org.netbeans.modules.web.jspparser_ext.WebAppParseSupport$1.run(WebAppParseSupport.java:552)
Back to top
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> Java EE Users All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo