JSP taglib Error
hi
I am using IPlanet 4.1 web Server
Here is the error i get ..
[02/Jul/2001:16:39:20] info (11201): JSP: JSP1x compiler threw exception
org.apache.jasper.JasperException: Unable to open taglibrary /mylib.tld : Could not locate TLD
META-INF/taglib.tld
at
org.apache.jasper.compiler.JspParseEventListener.handleDirective(JspParseEventListener.java,
Compiled Code)
at org.apache.jasper.compiler.DelegatingListener.(DelegatingListener.java, Compiled Code)
at org.apache.jasper.compiler.Parser$Directive.accept(Parser.java, Compiled Code)
at org.apache.jasper.compiler.Parser.parse(Parser.java, Compiled Code)
at org.apache.jasper.compiler.Parser.parse(Parser.java, Compiled Code)
at org.apache.jasper.compiler.Parser.parse(Parser.java, Compiled Code)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java, Compiled Code)
at com.netscape.server.http.servlet.NSServletEntity.load(NSServletEntity.java, Compiled
Code)
at com.netscape.server.http.servlet.NSServletEntity.update(NSServletEntity.java, Compiled
Code)
at com.netscape.server.http.servlet.NSServletRunner.Service(NSServletRunner.java, Compiled
Code)
Can anyone please help me on this .
My JSP file looks like :
<%@ taglib uri="/mylib.tld" prefix="test" %>
<html>
<body>
<test:hello name="Hans">
</body>
</html>
And The mylib.tld is :
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE taglib
PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.1//EN"
"http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_1.dtd">
<taglib>
<tlibversion>1.0</tlibversion>
<jspversion>1.1</jspversion>
<shortname>test</shortname>
<tag>
<name>hello</name>
<tagclass>classes.HelloTag</tagclass>
<bodycontent>empty</bodycontent>
<attribute>
<name>name</name>
</attribute>
</tag>
</taglib>
Thanks,
vikas
Does your web server have an internet connection, or is it just a localhost on a development machine? If it can't see the internet, it can't find the DTD:
<!DOCTYPE taglib
PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.1//EN"
"http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_1.dtd">
...which may be your problem. A workaround is to download the above file, put it on your webserver somewhere, and change this url to point to the new location.
Similar Messages
-
Jsp taglibs in include files not detected, throws errors, no code insight
I have a jsp which is included in all the other jsp. it looks something like this
taglibs.jsp
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%@ taglib uri="http://www.springframework.org/tags" prefix="spring" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
test.jsp
<%@ include file="/jsp/menu/taglibs.jsp"%>
<html>
<head>
<title>Tours</title>
</head>
<body>
<form:form commandName="testCommand">
<form:hidden path="tour.firstname" id="tour.firstname" />
and so on.
I am having 2 problems
1. the jsp editor show errors all over the place saying
element path not expected
element commandName not expected etc.
2. no code insights.
but if i include the taglib def in test.jsp it dosn't show any error and also provides code insights. but seldom do people include all taglibs in all jsps.
is there a way for Jdeveloper to show code insights in jsp pages which includes a jsp or like xml schemas could be added at some place(tools-pref-xml schemas) and when used anywhere, would provide code insights.am not sure, try with this
<jsp:include .../> -
JSP parse error "No URI for taglib" when using tagdir attribute
Hi,
I'm trying to use Jakarta JSTL 1.0 with BEA WebLogic 8.1 so I can work with tag files. I've put the jars (jstl.jar & standard.jar) in my webapp's WEB-INF/lib, added the following to my web.xml:
<taglib>
<taglib-uri>http://java.sun.com/jstl/core</taglib-uri>
<taglib-location>/WEB-INF/c.tld</taglib-location>
</taglib>
and put the follwing two lines at the top of my JSP:
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
<%@ taglib prefix="h" tagdir="/WEB-INF/tags/mytags" %>
When I browser to my JSP, I get:
Parsing of JSP File '<...>.jsp' failed:
<...>.jsp(5): No URI for taglib
probably occurred due to an error in <...>.jsp line 5:
<%@ taglib prefix="h" tagdir="/WEB-INF/tags/mytags" %>
My setup is pretty much straight out of the textbook, so what's wrong? Are tag files, and therefore this form of the taglib directive, not supported by WebLogic?
AndrewAndrew Bickerton wrote:
> Hi,
>
> I'm trying to use Jakarta JSTL 1.0 with BEA WebLogic 8.1 so I can work with tag files. I've put the jars (jstl.jar & standard.jar) in my webapp's WEB-INF/lib, added the following to my web.xml:
>
> <taglib>
> <taglib-uri>http://java.sun.com/jstl/core</taglib-uri>
> <taglib-location>/WEB-INF/c.tld</taglib-location>
> </taglib>
>
> and put the follwing two lines at the top of my JSP:
>
> <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
> <%@ taglib prefix="h" tagdir="/WEB-INF/tags/mytags" %>
>
> When I browser to my JSP, I get:
>
> Parsing of JSP File '<...>.jsp' failed:
> ----------------------------------------
> <...>.jsp(5): No URI for taglib
> probably occurred due to an error in <...>.jsp line 5:
> <%@ taglib prefix="h" tagdir="/WEB-INF/tags/mytags" %>
>
> My setup is pretty much straight out of the textbook, so what's wrong? Are tag files, and therefore this form of the taglib directive, not supported by WebLogic?
>
> Andrew
81 doesn't support/implement the JSP 2.0 spec (which adds tag files)
-- Nagesh
-
JSP : Tiles Error �tag.getAsString� : component context is not defined
JSP : Tiles Error �tag.getAsString� : component context is not defined
I�m working with Struts 1.1 and Tiles, under Tomcat 5.0.16
My application works fine using Struts 1.1 alone, however, when attempting to run the application in a �Tiles� environment, I get an error:
�
javax.servlet.jsp.JspException: Error - tag.getAsString : component context is not defined. Check tag syntax
�
I have �defined� this in my �tiles-defs.xml� file, and as far as I can tell, everything else is configured properly (I have looked over the included Struts document examples, and others on the web, and I seem to have everything configured identically).
What am I missing???
I have created a series of �mostly� empty JSP files, for simplicity sake.
JSP FILES:
- header.jsp
- footer.jsp
- menu.jsp
- rootLayout.jsp
- user.jsp
- show_user.jsp
- error.jsp
- defaultContentPage.jsp
All JSP files contain:
<%@ taglib uri="/WEB-INF/lib/struts-tiles.tld" prefix="tiles" %>
and
�
<title>
<tiles:getAsString name="title"/>
</title>
�
My �tiles-defs.xml�: =================================================
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE tiles-definitions PUBLIC
"-//Apache Software Foundation//DTD Tiles Configuration 1.1//EN"
"http://jakarta.apache.org/struts/dtds/tiles-config_1_1.dtd">
<tiles-definitions>
<!-- ================ RootLayout ======================= -->
<definition name=".root.layout" path="/jsp/rootLayout.jsp" >
<put name="title" value="Default title"/>
<put name="header" value="/jsp/header.jsp"/>
<put name="menu" value="/jsp/menu.jsp"/>
<put name="content" value="/jsp/defaultContentPage.jsp"/>
<put name="footer" value="/jsp/footer.jsp"/>
</definition>
<!-- ================ Extentions ======================= -->
<!-- User -->
<definition name=".view.user" extends=".root.layout">
<put name="title" value="Welcome to the User Form."/>
<put name="content" value="/jsp/user.jsp"/>
</definition >
<!-- Save -->
<definition name=".view.save" extends=".root.layout">
<put name="title" value="Welcome to the Show User Form."/>
<put name="content" value="/jsp/show_user.jsp"/>
</definition >
<!-- Error -->
<definition name=".view.error" extends=".root.layout">
<put name="title" value="Error Message."/>
<put name="content" value="/jsp/error.jsp"/>
</definition >
</tiles-definitions>
My �struts-config.xml�: ==============================================
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE struts-config PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 1.1//EN"
"http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd">
<struts-config>
<!-- ========== FormBeans =================================== -->
<form-beans>
<form-bean name="userForm" type="biz.seamrog.strutstest.model.state.UserForm"/>
</form-beans>
<!-- ========== Action Mapping Definitions=================== -->
<action-mappings>
<!-- Action using normal forward syntax...
<action path="/user"
forward="/jsp/user.jsp">
</action>
-->
<!-- Action using a "Tiles" forward syntax...
The "forward" path mappings are defined in a file named
"../WEB-INF/tiles-defs.xml
-->
<action path="/user"
forward=".view.user">
</action>
<!-- Action using normal forward syntax...
<action path="/save"
type="biz.seamrog.strutstest.model.logic.SaveAction"
name="userForm" scope="request"
input="/jsp/user.jsp">
<forward name="success" path="/jsp/show_user.jsp"/>
<forward name="failure" path="/jsp/error.jsp"/>
</action>
-->
<!-- Tiles syntax -->
<action path="/save"
type="biz.seamrog.strutstest.model.logic.SaveAction"
name="userForm" scope="request"
input="/jsp/user.jsp">
<forward name="success" path=".view.show_user"/>
<forward name="failure" path=".view.error"/>
</action>
</action-mappings>
<!-- ============== Global Forwards ======================== -->
<global-forwards>
<!-- NOTE: paths with "." syntax are Tiles defined paths,
all other paths follow conventional "/path/to/file.jsp syntax
-->
<forward name="user" path=".view.user"/>
<forward name="show_user" path=".view.show_user"/>
<forward name="error" path=".view.error"/>
<forward name="cssBase" path="/stylesheets/common.css"/>
</global-forwards>
<!-- ============= Plug-ins =============== -->
<!-- Tiles Plug-in -->
<plug-in className="org.apache.struts.tiles.TilesPlugin" >
<set-property property="definitions-config" value="/WEB-INF/tiles-defs.xml"/>
<set-property property="definitions-parser-validate" value="true" />
<set-property property="moduleAware" value="true" />
</plug-in>
</struts-config>
My �web.xml�: =====================================================
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE web-app PUBLIC '-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN' 'http://java.sun.com/dtd/web-app_2_3.dtd'>
<web-app>
<servlet>
<!--
MyController extends org.apache.struts.action.ActionServlet
NOTE: The servlet could also be specified specifying the
default Struts ActonServlet...
<servlet-name>controller</servlet-name>
<servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
...I have chosen to extend here just for practice sake.
-->
<!--
<servlet-name>MyController</servlet-name>
<servlet-class>biz.seamrog.strutstest.controller.MyController</servlet-class>
-->
<servlet-name>MyController</servlet-name>
<servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
<!--
Point to Struts configuration file(s)
-->
<init-param>
<param-name>config</param-name>
<param-value>/WEB-INF/struts-config.xml</param-value>
</init-param>
<!-- Tiles config -->
<init-param>
<param-name>definitions-config</param-name>
<param-value>/WEB-INF/tiles-defs.xml</param-value>
</init-param>
<!-- This is the added Application parameter: -->
<init-param>
<param-name>application</param-name>
<param-value>ApplicationResource</param-value>
</init-param>
<!-- end -->
<load-on-startup>5</load-on-startup>
</servlet>
<!--
All incoming requests that end in .do, send to MyController.
-->
<servlet-mapping>
<servlet-name>MyController</servlet-name>
<url-pattern>*.do</url-pattern>
</servlet-mapping>
<!--
Send initial requests to the login page for this application
-->
<welcome-file-list>
<welcome-file>/jsp/user.jsp</welcome-file>
</welcome-file-list>
<!--
Make all of the necessary related Struts JSP custom tag libraries
available and define where to find them.
-->
<taglib>
<taglib-uri>/WEB-INF/lib/struts-bean.tld</taglib-uri>
<taglib-location>/WEB-INF/lib/struts-bean.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>/WEB-INF/lib/struts-html.tld</taglib-uri>
<taglib-location>/WEB-INF/lib/struts-html.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>/WEB-INF/lib/struts-logic.tld</taglib-uri>
<taglib-location>/WEB-INF/lib/struts-logic.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>/WEB-INF/lib/struts-tiles.tld</taglib-uri>
<taglib-location>/WEB-INF/lib/struts-tiles.tld</taglib-location>
</taglib>
</web-app>
My �rootLayout.jsp�: ================================================
<%@page contentType="text/html"%>
<%@ taglib uri="/WEB-INF/lib/struts-tiles.tld" prefix="tiles" %>
<html>
<header>
<title>
<tiles:getAsString name="title" />
</title>
<body>
<tiles:get name="header"/>
<tiles:get name="menu"/> <tiles:get name="content"/>
<tiles:get name="footer"/>
</body>
</html>I found an entry in the Mail Archive for Struts. I got it working. My working code is below. You need to in the base JSP import the header and put the 'title' out to it.
tiles:def file:
<!DOCTYPE tiles-definitions PUBLIC
"-//Apache Software Foundation//DTD Tiles Configuration 1.1//EN"
"http://jakarta.apache.org/struts/dtds/tiles-config_1_1.dtd">
<tiles-definitions>
<definition name=".petstore.Base" path="/common/petstorecommon.jsp">
<put name="title" value ="${title}"/>
<put name="header" value="/common/header.jsp"/>
<put name="message" value="/common/message.jsp"/>
<put name="content" value="${content}"/>
<put name="navbar" value="/common/navbar.jsp"/>
</definition>
<definition name="petstore.Login" extends=".petstore.Base" >
<put name="title" value="Login Page" />
<put name="content" value="/Logon.jsp"/>
<put name="test1" value="test1value"/>
</definition>
base tile def:
<%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles"%>
<%@ page contentType="text/html;charset=windows-1252"%>
<html:html>
<head>
<html:base/>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>pet store common (jsp)</title>
</head>
<body>
<tiles:insert attribute="header">
<%-- both of these attributes are accessible from header.jsp It works!!! --%>
<tiles:put name="title" beanName="title" beanScope="tile" />
<tiles:put name="test1" beanName="test1" beanScope="tile" />
</tiles:insert>
<%-- <tiles:get name="header" /> --%>
<tiles:get name="message" />
<tiles:get name="content" />
<tiles:get name="navbar" />
</body>
</html:html>
Getting access to the title value in the header.jsp file:
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%>
<%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles"%>
<html>
<head>
<tiles:getAsString name="title" />
<tiles:getAsString name="test1" />
</head>
<body>
</body>
</html> -
JSP - prefix error - need resolution
Hi all (Charles, Todd, Mike & others),
@ the ND4 to iPlanet migration project, we have failed to get the JSP
loaded in iPlanet. The exception displayed in the KJS follows below.
We are not sure what this implys and how to resolve it (Does it
require a setting in the deployment tool? or maybe something
completely different). So, if you could help us better interprete it..
Thanks,
Ali..
Consultant,
iRise Inc.
[25/Oct/2000 20:06:52:0] error: Exception: SERVLET-compile_failed:
Failed in compiling template:
/aria/ariaTest/CreditCard/pgGWPayFeeCustomer.jsp, JSP Error:
Descriptor not found for prefix : {0}
Exception Stack Trace:
java.lang.Exception: JSP Error: Descriptor not found for prefix : {0}
at com.netscape.jsp.JSP.addTagprefix(Unknown Source)
at com.netscape.jsp.JSP.parseAt(Unknown Source)
at com.netscape.jsp.JSP.parseNext(Unknown Source)
at com.netscape.jsp.JSP.parseBlock(Unknown Source)
at com.netscape.jsp.JSP.parse(Unknown Source)
at com.netscape.jsp.JSP.compile(Unknown Source)
at com.netscape.server.servlet.jsp.JSPCompiler.JSPtoJava
(Unknown Source)Thanks for the info.
I made necessary modifications and it worked!
Ali..
P.S: I'd confused between /WEB-INF.. & WEB-INF...
--- In [email protected], "Charles Beckham"
<charles.beckham@s...> wrote:
Ali,
I have seen this error before, it means that it can not resolve the taglibs,
make sure you
are not including the jato package (which also includes the taglib
classes)..the jato package
should be copied to the APPS directory...also make sure you specified the
taglib info in the
war descriptor....the description should be uri : /WEB-INF/jato.tld and
Loacation: /WEB-INF/jato.tld..
and finally make sure when you added the jato.tld to the war file it is in
the root of WEB-INF or in
other words it should resolve to WEB-INF/...
If you have any more questions I could have a look at you war file and give
you some ideas...let me know
and I'll give you an upload ftp site...
Cheers
Charles Beckham
-----Original Message-----
[Charles Beckham]
From: Todd Fast [mailto:<a href="/group/SunONE-JATO/post?protectID=101233080150035167169232031248066208071048">Todd.Fast@S...</a>]
Sent: Wednesday, October 25, 2000 9:10 PM
Subject: Re: [iPlanet-JATO] JSP - prefix error - need resolution
Ali--
@ the ND4 to iPlanet migration project, we have failed to get
the JSP
loaded in iPlanet. The exception displayed in the KJS follows below.
We are not sure what this implys and how to resolve it (Does it
require a setting in the deployment tool? or maybe something
completely different). So, if you could help us better interprete it..
>>
[25/Oct/2000 20:06:52:0] error: Exception: SERVLET-compile_failed:
Failed in compiling template:
/aria/ariaTest/CreditCard/pgGWPayFeeCustomer.jsp, JSP Error:
Descriptor not found for prefix : {0}
Exception Stack Trace:
java.lang.Exception: JSP Error: Descriptor not found for prefix : {0}
at com.netscape.jsp.JSP.addTagprefix(Unknown Source)
at com.netscape.jsp.JSP.parseAt(Unknown Source)
at com.netscape.jsp.JSP.parseNext(Unknown Source)
at com.netscape.jsp.JSP.parseBlock(Unknown Source)
at com.netscape.jsp.JSP.parse(Unknown Source)
at com.netscape.jsp.JSP.compile(Unknown Source)
at com.netscape.server.servlet.jsp.JSPCompiler.JSPtoJavaI don't have any significant application deployment experience in iAS, but
it looks like the taglib descriptor declared in the JSP isn't being found.
I believe the error message should be "Descriptor not found for prefix:
jato".
I can't offer any specific help other than to refer you to Appendix B of
the
Migration Survival Guide, which has a walkthrough of deployment of an app
in
iAS.
Todd
Todd Fast
Senior Engineer
Sun/Netscape Alliance
todd.fast@e...
eGroups Sponsor
[email protected]
[Non-text portions of this message have been removed] -
JSP page error: JSPtranslate: attribute | has no value.
Hi again,
I've written the JAVA class, the TLD and the JSP but when I try to provide the parameters to the TLD file in the JSP I get this error: JSPTranslate: attribute | has no value. /**** My TLD file is in a WEB_INF/tags/ directory. ***/
I've included my JAVA class, JSP and TLD files below.
package com.ibm.samples.TEMP;
import javax.servlet.jsp.*;
import javax.servlet.jsp.tagext.*;
public class TEMP extends TagSupport
private int mandatory = 0;
//Set method base upon info from .tld file
public void setMandatory(int mandatory)
this.mandatory = mandatory;
//Init tag called from .JSP page that used the custom tag.
public int doStartTag() {
try
JspWriter out = pageContext.getOut();
out.println("<table border=1>");
if (mandatory == 1)
out.println("<tr><td> <input type=\"text\"" +
"style=\"background-color:yellow\" size=\"25\" name=\"user\">");
else
out.println("<tr><td> <input type=\"text\"" +
"style=\"background-color:white\" size=\"25\" name=\"user\">");
catch (Exception ex)
throw new Error("Failure");
// Must return SKIP_BODY because there isn't a body for this tag.
return SKIP_BODY;
//End tag ends table and exits, along with error / exception catching
public int doEndTag(){
try {
JspWriter out = pageContext.getOut()
out.println("</table>");
catch (Exception ex)
throw new Error("Failure.");
return EVAL_PAGE;
--------------END OF CLASS--------------
----------------------JSP----------------------
<%@ taglib [tagdir="/WEB-INF/tags/" | uri="/WEB-INF/tags/inputTAGS.tld"] prefix="I" %>
<HTML>
<HEAD>
<TITLE>Custom Tags</TITLE>
</HEAD>
<BODY BGCOLOR = "WHITE">
<H3>Custom Tags!</H3>
<FORM METHOD="GET" ACTION="customTags.jsp">
<P>
Enter First Name:<br>:
<P>
<I:inputTags mandatory="1"/>
<P>
Enter Last Name:<br>:
<P>
<I:inputTags mandatory="1"/>
<P>
Enter Phone Number:<br>:
<P>
<I:inputTags mandatory="0"/>
<P>
<INPUT TYPE="SUBMIT" VALUE="Submit">
<INPUT TYPE="RESET" VALUE="Reset">
</FORM>
</BODY>
</HTML>
--------------END OF JSP--------------
--------------------TLD--------------------
<?xml version = "1.0" encoding = "ISO-8859-1"?>
<!DOCTYPE taglib PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2//EN"
"http://java.sun.com/dtd/Web-jsptaglibrary_1_2.dtd">
<taglib xmlns = "http://java.sun.com/JSP/TagLibraryDescriptor">
<tlib-version>1.0</tlib-version>
<jsp-version>1.2</jsp-version>
<short-name>Input tags library</short-name>
<description>Custom tags test</description>
<tag>
<name>inputTags</name>
<tag-class>com.ibm.samples.temp.TEMP</tag-class>
<description>
Formatted text box:
</description>
<attribute>
<name>mandatory</name>
<required>true</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
</tag>
</taglib>
- LS6VI made a new web project and the TLD link is fine. But I have a new error:JspTranslate: unable to load class null I'm recieving the error in my JSP page editor.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<%@ taglib uri = "/WEB-INF/lib/tag.tld" prefix="I" %>
<HTML>
<HEAD>
<TITLE>Custom Tags</TITLE>
</HEAD>
<BODY BGCOLOR = "WHITE">
<H3>Custom Tags!</H3>
<FORM METHOD="GET" ACTION="JSPTAG.jsp">
<P>
Enter First Name:<br>:
<P>
ERROR FOUND HERE ----------->>> <I:inputTag mandatory="1"/>
<P>
Enter Last Name:<br>:
<P>
<I:inputTag mandatory="1"/>
<P>
Enter Phone Number:<br>:
<P>
<I:inputTag mandatory="0"/>
<P>
<INPUT TYPE="SUBMIT" VALUE="Submit">
</FORM>
</BODY>
</HTML>---------------------------JAVA CLASS-------------------------
import javax.servlet.jsp.*;
import javax.servlet.jsp.tagext.*;
public class TAG extends TagSupport
private String mandatory="";
private int iMandatory = 0;
//Set method base upon info from .tld file
public void setMandatory(String hold)
mandatory = hold;
iMandatory = Integer.parseInt(mandatory);
public String getMandatory()
return(mandatory);
//Init tag called from .JSP page that used the custom tag.
public int doStartTag() {
try
JspWriter out = pageContext.getOut();
out.println("<table border=1>");
if ( iMandatory == 1)
out.println("<tr><td> <input type=\"text\"" +
"style=\"background-color:yellow\" size=\"25\" name=\"user\">");
else
out.println("<tr><td> <input type=\"text\"" +
"style=\"background-color:white\" size=\"25\" name=\"user\">");
catch (Exception ex)
throw new Error("Failed in doStartTag");
// Must return SKIP_BODY because there isn't a body for this tag.
return SKIP_BODY;
//End tag ends table and exits, along with error / exception catching
public int doEndTag(){
try {
JspWriter out = pageContext.getOut();
out.println("</table>");
} catch (Exception ex){
throw new Error("Failed in doEndTag");
return EVAL_PAGE;
}---------------------------TLD------------------------
<?xml version ="1.0" encoding = "UTF-8"?>
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN" "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
<taglib xmlns ="http://java.sun.com/JSP/TagLibraryDescriptor">
<tlib-version>1.0</tlib-version>
<jsp-version>1.2</jsp-version>
<short-name>Input tags library</short-name>
<description>Custom tags test</description>
<tag>
<name>inputTag</name>
<tag-class>source.TAG</tag-class>
<description>
Formatted text box:
</description>
<attribute>
<name>mandatory</name>
<required>true</required>
<rtexprvalue>true</rtexprvalue>
<type>String</type>
</attribute>
</tag>
</taglib> -
Custom tag and JSP = getOutputStream error
Hi guys. I have a custom authorization tag as follows:
package tags;
import stuff;
public class AuthenticatedTag extends TagSupport {
public int doStartTag() throws JspException {
try {
pageContext.forward("login.htm");
} catch (Exception e) {
e.printStackTrace();
return EVAL_PAGE;
public int doEndTag() throws JspException {
return EVAL_PAGE;
}and a jsp page using this tag:
<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1" errorPage="error.jsp" %>
<%@ taglib uri="/WEB-INF/tags.tld" prefix="tags" %>
<tags:myauth />
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>stuff
</body>
</html>When I point my browser to this jsp I get:
org.apache.jasper.JasperException: getOutputStream() has already been called for this response
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:476) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:383)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:315)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
Any ideas of what could be wrong? thxIf you forward to the login.htm page, you should stop the rest of the current page evaluating. Just because you forwarded it, doesn't stop the flow of control in this page. It is trying to evaluate both the current page and the one that you forwarded to. You can only send one response
Returning SKIP_PAGE from the doEndTag function should do the trick.
I'm not sure that returning EVAL_PAGE or SKIP_PAGE from the doStartTag is legal. It should return SKIP_BODY or one of the EVAL_BODY options.
In fact I think the whole thing should probably be done in the doEndTag for that reason.
package tags;
import stuff;
public class AuthenticatedTag extends TagSupport {
public int doEndTag() throws JspException {
try {
pageContext.forward("login.htm");
return SKIP_PAGE
} catch (Exception e) {
e.printStackTrace();
return EVAL_PAGE;
}I presume you will be putting in some sort of check to see if you should forward to login.html instead of evaluating the current page?
Just as an alternative suggestion, a better way IMO is to implement this sort of logic as a filter, rather than putting a tag on a JSP page.
Cheers,
evnafets -
I took my taglib's and tried to move them
over to get them working on 6.0.
I now get an error:
Parsing of JSP File '/showdate.jsp' failed:
/showdate.jsp(1): Error in using tag library uri='date' prefix='/date.tld':
There is no setter method for property 'datestring', for Tag class
'com.almaer.taglib.date.ShowDateTag'
probably occurred due to an error in /showdate.jsp line 1:
<%@ taglib uri="/date.tld" prefix="date" %>
However I do have a setDatestring() method. I have tried various taglibs
that are in production working fine.
Is this a known bug? Has anyone else run into this?
I also find that precompile=true in weblogic.xml doesn't seem to do anything
Who does the QA for this? ;)
Dion
Dion Almaer | [email protected]
CustomWare | http://www.customware.com
Thank you. I changed my setter to be setFoo() and have the attribute foo in
my tag and it worked. For some reason some values don't work in there. I
haven't worked out
if the problem is a) having a variable x and then having a setX() or whether
it has something to do with the properties of the name that you call it.
Crazy.
Dion
"newsgroups.bea.com" <[email protected]> wrote in message
news:[email protected]...
> I encountered this problem several times. I don't know why. The setter
> method is exactly there. Finally I changed the spelling of the properties
> and setter method to solve this problem. It worked. I think there are some
> words cannot be used as names of properties. It should be a bug of WL 6.0
>
> "Dion Almaer" <[email protected]> ¼¶¼g©ó¶l¥ó
> news:[email protected]...
> > I took my taglib's and tried to move them
> > over to get them working on 6.0.
> >
> > I now get an error:
> >
> > Parsing of JSP File '/showdate.jsp' failed:
> >
>
> --------------------------------------------------------------------------
> --
> > ----
> >
> > /showdate.jsp(1): Error in using tag library uri='date'
> prefix='/date.tld':
> > There is no setter method for property 'datestring', for Tag class
> > 'com.almaer.taglib.date.ShowDateTag'
> > probably occurred due to an error in /showdate.jsp line 1:
> > <%@ taglib uri="/date.tld" prefix="date" %>
> >
>
> --------------------------------------------------------------------------
> --
> > ----
> >
> >
> > However I do have a setDatestring() method. I have tried various
> taglibs
> > that are in production working fine.
> > Is this a known bug? Has anyone else run into this?
> >
> > I also find that precompile=true in weblogic.xml doesn't seem to do
> anything
> > :)
> > Who does the QA for this? ;)
> >
> > Dion
> > -------------------------------------------------------------
> > Dion Almaer | [email protected]
> > CustomWare | http://www.customware.com
> >
> >
> >
> >
> >
>
>
-
Just wondering if anyone else is having better luck - been working thru:
http://developer.java.sun.com/developer/technicalArticles/javaserverpages/rss_utilities/
Each time I try and parse an RSS file I get the following trace:
<rss>
<channel>
<title>
</title>
<link>
</link>
<description>
</description>
</channel>
<item>
INFO: items does not exist or method signature is incorrect
java.lang.NoSuchMethodException
at java.lang.Class.getMethod0(Native Method)
at java.lang.Class.getMethod(Class.java:888)
at com.sun.cnpi.rss.handlers.DefaultElementHandler.startElement DefaultElementHandler.java:91)
at com.sun.cnpi.rss.handlers.DocumentHandler.startElement(DocumentHandler.java:98)
at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1477)
... rest of stack trace.
This is tried with 5 or 6 different RSS feeds (0.91 and 2.0) and with both crimson and the latest xerces parsers (stacktrace is the same apart from the parser specific parts - it's always in com.sun.cnpi.rss.handlers.DocumentHandler.startElement(DocumentHandler.java:98)
It appears to be trying to call a method based on the fact that it has seen an items tag (which it hasn't - it's an item tag).
The JSP:
<%@ taglib uri="/rssutils.tld" prefix="rss" %>
<rss:feed
url="path-to-feed"
feedId="intranetRT"/>
<h2>"><rss:channelTitle feedId="intranetRT"/></a></h2>
<rss:forEachItem feedId="intranetRT">
<h3><a href="<rss:itemLink feedId="intranetRT"/>"><rss:itemTitle feedId="intranetRT"/></a></h3>
<div class="item">
<p><rss:itemDescription feedId="intranetRT"/></p>
</div>
</rss:forEachItem>
Maybe of interest - all tried RSS streams work fine for various other RSS readers and return valid from 2 different validators.
Hints anyone?I try using this tag library, and I get the following on my page:
java.lang.ClassNotFoundException: com.cj.rss.objVariable
as the root cause for this excemption:
org.apache.jasper.JasperException: Failed to load or instantiate TagExtraInfo class: com.cj.rss.objVariable
Do I have a bad "path" set up somewhere? Here's my code:
<%@ taglib uri="/WEB-INF/lib/taglib.tld" prefix="c" %>
<html>
<head><title>Java Feed</title></head>
<body>
<%-- <jsp:useBean id="beanInstanceName" scope="session" class="beanPackage.BeanClassName" /> --%>
<%-- <jsp:getProperty name="beanInstanceName" property="propertyName" /> --%>
<c:setFeed url="http://www2.theserverside.com/rss/theserverside-1.0.rdf" id="A"/>
<p>Title:<c:getChannelTitle feedId="A"/>
<p>Description:<c:getChannelDescription feedId="A"/>
<c:forEachItem feedId="A">
Link:<%=itemLink%>
Title:<%=itemTitle%>
Description:<%=itemDescription%>
</c:forEachItem>
</body>
</html>
It's pretty simple code, and I made sure that the library file (jar) and .tld file were in the /WEB-INF/lib directory, off of the "context" directory or "docroot". I guess I would have gotten a different error if they weren't there.
Any thoughts as to why my server is having problems loading the object:
com.cj.rss.objVariable
It is in my rsstag.jar file. I confirmed it by opening it with WinZip. Here's the reference to it in the rssrag.tld file:
<tag>
<name>setFeed</name>
<tagclass>com.cj.rss.setFeedTag</tagclass>
<teiclass>com.cj.rss.objVariable</teiclass>
<bodycontent>JSP</bodycontent>
<info>parses rss feed</info>
Any information would be greatly appreciated. -
Hi,
I try to use a taglib and get this Exception:
org.apache.jasper.JasperException: Unable to compile class for JSP
An error occurred at line: 4 in the jsp file: /Login.jsp
Generated servlet error:
C:\Programme\Apache Tomcat 4.0\work\localhost\testdemo\Login$jsp.java:59: Class org.apache.jsp.testTL not found.
testTL jspxth_mytag_test_0 = new testTL();
^
An error occurred at line: 4 in the jsp file: /Login.jsp
Generated servlet error:
C:\Programme\Apache Tomcat 4.0\work\localhost\testdemo\Login$jsp.java:59: Class org.apache.jsp.testTL not found.
testTL jspxth_mytag_test_0 = new testTL();
^
2 errors
My taglibs looks like this:
<?xml version="1.0"?>
<!DOCTYPE taglib
PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.1//EN"
"http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_1.dtd">
<taglib>
<tlibversion>1.0</tlibversion>
<jspversion>1.1</jspversion>
<shortname>shorttest</shortname>
<uri></uri>
<info>abc</info>
<tag>
<name>test</name>
<tagclass>testTL</tagclass>
</tag>
</taglib>
And web.xml:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN" "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
<web-app>
<display-name>Tag Demo</display-name>
<description>bla</description>
<taglib>
<taglib-uri>/shorttest</taglib-uri>
<taglib-location>/WEB-INF/tld/test1.tld</taglib-location>
</taglib>
</web-app>
the jsp:
<%@ taglib uri="/shorttest" prefix="mytag" %>
<html>
<body>
<mytag:test/>
</body>
</html>
I can`t find the failure.
Thanks
HayriYes, change
<tagclass>testTL</tagclass>
to
<tagclass>yourPackage.testTL</tagclass> and of course recompile class with package declaration and put into package. -
How Do I Specify uri in JSP taglib Directive to Point to the Jar File
I put the trail-taglib-0.2.jar file in the MyApplication/WEB-INF/lib directory.
Because the .tld is included in the trail-taglib-0.2.jar, I added the following In the MyApplication/WEB-INF/web.xml file:
< filter >
< filter-name > trailFilter < /filter-name >
< filter-class > org.osjava.taglib.trail.OriginalRequestFilter < /filter-class >
< /filter >
< filter-mapping >
< filter-name > trailFilter < /filter-name >
< url-pattern > *.do < url-pattern >
< filter-mapping > How do I specify the uri in my JSP @taglib to point to the jar file? I think I did not get the path right:
< %@ taglib prefix="trail" uri="trail-taglib-0.2" % >Your advices have been very good. Problems get solved one at a time.
1. Now, the taglib.tld in the WEB-INF directory can be found; however, another problem occurred: XML parsing error on file /WEB-INF/taglib.tld: (line 11, col 17): Element type "display-name" must be declared.
2. no matter where I insert the filter and its mapping in the web.xml file,
<filter>
<filter-name>trailFilter</filter-name>
<filter-class>org.osjava.taglib.trail.OriginalRequestFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>trailFilter</filter-name>
<url-pattern>*.do</url-pattern>
</filter-mapping>The server cannot find the Struts tag libraries. If I remove the filter tag and its mapping, the server does not complain anymore. I checked the DTD, the filter tag and its mapping tag should be before the servlet tag and servlet mapping tag. But, it does not work.
Here is the taglib.tld:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE taglib PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.1//EN" "http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_1.dtd">
<taglib>
<tlibversion>1.0</tlibversion>
<jspversion>2.0</jspversion>
<shortname>trail</shortname>
<uri>http://www.osjava.org/taglibs/trail-1.0</uri>
<info>Breadcrumbs in a taglib. </info>
<display-name>Trail Taglib</display-name>
<description>The Trail taglib maintains a dynamic trail of pages that the user has hit and allows a normalized version of that trail to be shown as a breadcrumbs list. </description>
<tag>
<name>list</name>
<tagclass>org.osjava.taglib.trail.ListTag</tagclass>
<bodycontent>JSP</bodycontent>
<display-name>Trail List</display-name>
<description>ListTag is used to display the trail, either the whole trail or more likely the normalized version. </description>
<attribute>
<name>var</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
<description>Store the trail text in a variable. This will probably change to store the actual trail list and not the text. </description>
</attribute>
<attribute>
<name>delimiter</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
<description>The delimiter to use between trail items. It defaults to -> and at some point an image will be useable instead. </description>
</attribute>
<attribute>
<name>type</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
<description>The type of list to show. The default is 'normalized', while any other type specified will result in 'full'. </description>
</attribute>
</tag>
<tag>
<name>push</name>
<tagclass>org.osjava.taglib.trail.PushTag</tagclass>
<bodycontent>JSP</bodycontent>
<display-name>Trail Formation</display-name>
<description>Place a page on the trail. </description>
<attribute>
<name>label</name>
<required>true</required>
<rtexprvalue>true</rtexprvalue>
<description>The text to use when placing the page on the trail. This is what will be displayed to the user in the List tag. </description>
</attribute>
<attribute>
<name>url</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
<description>Usually the url in question will be figured out by the taglib, however you may override it with this attribute. </description>
</attribute>
</tag>
</taglib> -
JSP compilation errors in weblogic 6.1
I'm getting these JSP compilation errors in weblogic 6.1 on Solaris. Please help.
Full compiler error(s):
error: Invalid class file format:
^
/opt/projects/redherring/beahome/wlserver6.1/config/mydomain/applica
tions/.wlnotdelete/WEB-INF/_tmp_war_myserver_myserver_redherring/jsp_servlet/_w
eb/_jsp/_event/__eventForm.java:34: Class
com.ford.redherring.model.PropertiesAttributesModel not found in import.
import com.ford.redherring.model.PropertiesAttributesModel; <file://[>
/web/jsp/event/eventForm.jsp; Line: 64]
^
/opt/projects/redherring/beahome/wlserver6.1/config/mydomain/applica
tions/.wlnotdelete/WEB-INF/_tmp_war_myserver_myserver_redherring/jsp_servlet/_w
eb/_jsp/_event/__eventForm.java:38: Class com.ford.redherring.util.DialogHeader
not found in import.
import com.ford.redherring.util.DialogHeader; <file://[> /web/jsp/event/eventForm.jsp;
Line: 68]
^
/opt/projects/redherring/beahome/wlserver6.1/config/mydomain/applica
tions/.wlnotdelete/WEB-INF/_tmp_war_myserver_myserver_redherring/jsp_servlet/_w
eb/_jsp/_event/__eventForm.java:39: Class com.ford.redherring.util.DialogFooter
not found in import.
import com.ford.redherring.util.DialogFooter; <file://[> /web/jsp/event/eventForm.jsp;
Line: 69]
^
/opt/projects/redherring/beahome/wlserver6.1/config/mydomain/applica
tions/.wlnotdelete/WEB-INF/_tmp_war_myserver_myserver_redherring/jsp_servlet/_w
eb/_jsp/_event/__eventForm.java:40: Class com.ford.redherring.model.DDContainer
not found in import.
import com.ford.redherring.model.DDContainer; <file://[> /web/jsp/event/eventForm.jsp;
Line: 70]
^
/opt/projects/redherring/beahome/wlserver6.1/config/mydomain/applica
tions/.wlnotdelete/WEB-INF/_tmp_war_myserver_myserver_redherring/jsp_servlet/_w
eb/_jsp/_event/__eventForm.java:41: Class
com.ford.redherring.model.DDValidationModel not found in import.
import com.ford.redherring.model.DDValidationModel; <file://[>
/web/jsp/event/eventForm.jsp; Line: 71]
This appears to be a CLASSPATH problem (you are missing references to
'com.ford.redherring.model.*' and 'com.ford.redherring.util.*'). The
CLASSPATH may be set in the server startup script. Hope this helps.
Wade.
"Katri Alur" <[email protected]> wrote in message news:<[email protected]>...
> I'm getting these JSP compilation errors in weblogic 6.1 on Solaris. Please help.
>
> ----------------------------------------------------------------------------
> ----
> Full compiler error(s):
> error: Invalid class file format:
>
>
> ^
> /opt/projects/redherring/beahome/wlserver6.1/config/mydomain/applica
> tions/.wlnotdelete/WEB-INF/_tmp_war_myserver_myserver_redherring/jsp_servlet/_w
> eb/_jsp/_event/__eventForm.java:34: Class
> com.ford.redherring.model.PropertiesAttributesModel not found in import.
> import com.ford.redherring.model.PropertiesAttributesModel; <file://[>
> /web/jsp/event/eventForm.jsp; Line: 64]
> ^
> /opt/projects/redherring/beahome/wlserver6.1/config/mydomain/applica
> tions/.wlnotdelete/WEB-INF/_tmp_war_myserver_myserver_redherring/jsp_servlet/_w
> eb/_jsp/_event/__eventForm.java:38: Class com.ford.redherring.util.DialogHeader
> not found in import.
> import com.ford.redherring.util.DialogHeader; <file://[> /web/jsp/event/eventForm.jsp;
> Line: 68]
> ^
> /opt/projects/redherring/beahome/wlserver6.1/config/mydomain/applica
> tions/.wlnotdelete/WEB-INF/_tmp_war_myserver_myserver_redherring/jsp_servlet/_w
> eb/_jsp/_event/__eventForm.java:39: Class com.ford.redherring.util.DialogFooter
> not found in import.
> import com.ford.redherring.util.DialogFooter; <file://[> /web/jsp/event/eventForm.jsp;
> Line: 69]
> ^
> /opt/projects/redherring/beahome/wlserver6.1/config/mydomain/applica
> tions/.wlnotdelete/WEB-INF/_tmp_war_myserver_myserver_redherring/jsp_servlet/_w
> eb/_jsp/_event/__eventForm.java:40: Class com.ford.redherring.model.DDContainer
> not found in import.
> import com.ford.redherring.model.DDContainer; <file://[> /web/jsp/event/eventForm.jsp;
> Line: 70]
> ^
> /opt/projects/redherring/beahome/wlserver6.1/config/mydomain/applica
> tions/.wlnotdelete/WEB-INF/_tmp_war_myserver_myserver_redherring/jsp_servlet/_w
> eb/_jsp/_event/__eventForm.java:41: Class
> com.ford.redherring.model.DDValidationModel not found in import.
> import com.ford.redherring.model.DDValidationModel; <file://[>
> /web/jsp/event/eventForm.jsp; Line: 71]
-
How to see JSP compilation errors - Tomcat 4.1.18- JDK 1.4
Hi There,
I'm kind of new to JSP world, so once in while I forget to put a ; or I put a variable name wrong (I usualy use Eclipse to do my coding in JAVA, but the existing plugins for JSP development are still in their early stages, so there's isn't any plugin that indicates errors on JSP before deploying them).
When I try to see a JSP, if it has an error (compilation-time error), I get this message:
<--->
org.apache.jasper.JasperException: Unable to compile class for JSP
An error occurred at line: -1 in the jsp file: null
Generated servlet error:
[javac] Compiling 1 source file
<--->
This doesn't help me a lot to fix the problem, I would like to, at least, see from what line the error came from.
Help anyone?
Thank You
PinhoThis kind of errors often come from syntax error in
the jsp page.
Tomcat is not very friendly with this kind of errors.
A trick is to open the java file under the 'work'
directory and checkIsn't there any way to show the error on a page, just like a run-time error?
Maybe changing some log setting? -
JSP Debbuging -Error: 'class' or 'interface' expected-
Hi,
Does anybody know why am I getting the following error when trying to either debug or run a JSP?
Error: 'class' or 'interface' expected
This happens with JDeveloper 9.0.2.829
It was running just OK, when running from the Navigator Panel (Right click -> Run test.jsp)
But, when I tried to run the JSP from the Debug Icon -that debugs the whole project-, I got the error I already mentioned.
Thanks in advance for your help
AgutinHi,
Does anybody know why am I getting the following error when trying to either debug or run a JSP?
Error: 'class' or 'interface' expected
This happens with JDeveloper 9.0.2.829
It was running just OK, when running from the Navigator Panel (Right click -> Run test.jsp)
But, when I tried to run the JSP from the Debug Icon -that debugs the whole project-, I got the error I already mentioned.
Thanks in advance for your help
Agutin -
Hello Everyone,
I've a some JSP's that work some times and fail sometime with
<head>
<title>Javelin JSP compilation error</title>
</head>
<body>
<b>Compilation of JSP File '/jsp/temp/Index.jsp' <font color=#FF0000>failed</font>:</b><HR>
<pre>
I tried restarting the server, removing .wlnotdelete and couple of other things.
Why the JSP is compiled everytime(even if the server is not restarted) and Why a good looking no error JSP failis loading everytime.
Can anyone please help.
~ALAPATII'm using bea weblogic 8.1 SP5.
Java - jrockit81sp5_142_08
<head>
<title>Javelin JSP compilation error</title>
</head>
<body>
<b>Compilation of JSP File '/jsp/output/Index.jsp' <font color=#FF0000>failed</font>:</b><HR>
<pre>
Errors found in <PATH TO THE FILE>/Index.jsp:
Error at line 397 column 55:
Description: Type <MyClass> contains no field with this name.
Error at line 399 column 13:
Description: Type <Another Class> contains no methods with this name.
Found 2 error(s) and 0 warning(s).
</pre>
</body></html>
>
weblogic.servlet.jsp.CompilationException: Failed to compile JSP /jsp/output/Index.jsp<html>
<head>
<title>Javelin JSP compilation error</title>
</head>
<body>
<b>Compilation of JSP File '/jsp/output/Index.jsp' <font color=#FF0000>failed</font>:</b><HR>
<pre>
Errors found in <PATH TO FILE>/Index.jsp:
Error at line 397 column 55:
Description: Type <MyClass> contains no field with this name.
Error at line 399 column 13:
Description: Type <Another Class> contains no methods with this name.
Found 2 error(s) and 0 warning(s).
</pre>
</body></html>
at weblogic.servlet.jsp.WlwJspStub.compilePage(WlwJspStub.java:208)
at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:246)
at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:196)
at weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java:598)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:406)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:526)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
at com.bea.p13n.servlets.PortalServletFilter.doFilter(PortalServletFilter.java:293)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
at com.bea.wlw.netui.pageflow.PageFlowJspFilter.doFilter(PageFlowJspFilter.java:265)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6987)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3892)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2766)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:224)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:183)
2 errors javelin complaining is because of this.
1) I'm trying to access MyClass.SHOW_ME_TEXT
2) I'm trying to create an object of AnotherClass by new AnotherClass();
Please let me know if you want more details.
Maybe you are looking for
-
Lose airport connection after using boot camp and windows XP
After using windows XP on boot camp and shutting down windows and booting to Mac OS 10.5.7 I lose the airport connection and have to restart or reset my airport extreme base station. My imac 2.8 is connected to airport via ethernet. Air port is opera
-
SOAP Sender Adapter converting Ukranian Characters to Unrecognizable Characters
Hello All, The scenario i am talking about here is SOAP - XI - R/3. And IDoc is posted to R/3 system via XI and hence we are using SOAP Adapter as Sender Adapter and IDoc Adapter as receiver Adapter. The third party which is sending the data to XI is
-
** Not able to create Value Mapping Table in Integration Directory
Hi friends, I am not able to create value mapping entries like below in ID. Agency : Computer1 Agency : Computer2 Scheme: Country Scheme: CountryCode Value for Computer1 Value for Compute
-
Hi! I have some general questions about jsp and servlets. I develop an internetbased portfoliosystem which uses ejb to extract data from an oracle database. q1: How can I create a controlling servlet for page direction? q2: How can my jsp file connec
-
I recently bought a new macbook pro and needed to transfer music over from my iphone 4. I had to update my iphone and sync but I lost all my music that wasn't previously "purchased from my iphone". For example, music bought on my old computer, CD's,