Custom Tag Problem With iPlanet
Hi,
I've followed the instructions for creating Custom Tags located at: http://docs.iplanet.com/docs/manuals/enterprise/41/rn41sp9.html#18776. I'm using the examples provided and am still getting the:
org.apache.jasper.JasperException: Unable to open taglibrary /jsps/test-tags.jar : com.sun.xml.tree.TextNode
error. I've followed the instructions "Make sure you have the DOCTYPE in your taglib.tld..." but I still get the error.
iPlanet 4.1 Enterprise on Windows 2000
Any ideas?
Thanks in advance.
Hey i am also getting the same error, please let me know if u had solved this problem. i have copied the error message below
[25/Feb/2002:15:00:46] info ( 260): JSP: JSP1x compiler threw exception
org.apache.jasper.JasperException: Unable to open taglibrary /jsps/test-tags1.jar : in is null
at org.apache.jasper.compiler.JspParseEventListener.handleDirective(JspParseEventListener.java:708)
at org.apache.jasper.compiler.DelegatingListener.handleDirective(DelegatingListener.java:119)
at org.apache.jasper.compiler.Parser$Directive.accept(Parser.java:190)
at org.apache.jasper.compiler.Parser.parse(Parser.java:1048)
at org.apache.jasper.compiler.Parser.parse(Parser.java:1022)
at org.apache.jasper.compiler.Parser.parse(Parser.java:1018)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:173)
at com.netscape.server.http.servlet.NSServletEntity.load(NSServletEntity.java:230)
at com.netscape.server.http.servlet.NSServletEntity.update(NSServletEntity.java:149)
at com.netscape.server.http.servlet.NSServletRunner.Service(NSServletRunner.java:453)
[25/Feb/2002:15:00:46] warning ( 260): Internal error: Failed to get GenericServlet. (uri=/web/jsps/test-tags.jsp,SCRIPT_NAME=/web/jsps/test-tags.jsp)
Similar Messages
-
Custom Tags starting with $: lots of problems
I'm building an extension for MovableType template tags.
Those tags can be delimited in several ways: <MTNameOfTheTag>
or <$MTNameOfTheTag> or even <$MTNameOfTheTag$>. Since
the dollar sign is not allowed as tag name, i put a
prefix="<$" in tag definition, but now i have some problems:
1. even if in tag chooser i can see the dollar-prefixed tags,
i cannot see them in code hints (I mean "automatic" code hints,
those floating menus automatically made for every tag/every
attribute/every enumerated attriboption in library).
2. I tried to manually code tags in codehints.xml file with
the "<$ pattern (so i can change the icon associated to my
custom tags, too. That's will be very elegant) but I loose "child"
codehints menus: the first codehints menu (the one i manually made)
comes up, but those for attributes and attributes values don't.
3. With the solution in point 2 not only i loose "automatic"
codehints, but i have to write THREE files for every tag
(taglibrary, codehins, third party tags file). Lot of time :/
4. Dollar signs, in both start and end, are NOT part of the
name, but part of the tag, like a prefix or a suffix. With an
attribute i should have:
<$MTBlogName donald="goofie"$>
and not:
<$NTBlogName$ donald="goofie">
as actually i have
so, as i said...a lot of problems! i hope someone can help
me...its really an hard sunday, today! :/
tnx in advanceI think you might be moving into creating your own server
model.
Just a thought. -
Custom Tag -- Custom Component problems with iframes
I have a "project" component that originally iterated over a list of models and created/renderered the corresponding (and fairly complex) interactive UI components for those models. On the client-side, the output from these were then organized neatly into "tabs" via CSS ... all on one page. Since these UI Components are so hefty, when any iteraction was done on one of them, the whole page had to re-render and things got just plain slow. To get around this limitation, I decided to have my "project" component no longer create the UI components himself, but instead generate an IFRAME that points to a page that will generate a single component. This way, any iteraction will just cause that single IFRAME to refresh.
Due to the fact that an IFRAME can only be populated by using the src attribute, I have created a page that contains a JSF View (<faces:view>) and inside is a single custom tag of mine (<mine:displayView>). Let's call this page singleDisplayView.jsf. I create iframes that point to singleDisplayView.jsf with different request params for each (singleDisplayView.jsf?modelName=Foo, singleDisplayView.jsf?modelName=Bar, etc.)
The displayView tag has one attribute called requestQueryString and I use the tag like so:
<t:displayView requestQueryString="<%=request.getQueryString()%>" />The displayView tag's class is DisplayViewTag. In DisplayViewTag::setProperties(UIComponent uiComponent) method, I get the model name out of the request map and set this property on the UIComponent.
The problem is that I'm noticing that as the main page (that contains these frames) loads, setProperties() is only being called twice. After that, the components created by subsequent iframes just seem to be using the modelName from the second frame.
Is there a syncronization issue I don't understand?
Any ideas?
Any help would be much appreciated.
Thanks in advance,
MarkOn a possibly related note, I read this in an article of the JSF application lifecycle:
In the first phase of the JSF lifecycle -- restore view -- a request comes
through the FacesServlet controller. The controller examines the request and
extracts the view ID, which is determined by the name of the JSP page.Could it be that the lifecycle is trying to reuse components from a single view, since all these iframes are pointing to the same page? -
Hello Everyone,
I am using iPlanet 4.1 as my web server and am having some problems with using custom tags. I try to access a jsp that uses my custom tags and I get a 500 Internal Server error. Then when I check the web server logs all it has is this one very esoteric message: "[26/Sep/2002:08:35:51] warning ( 8042): Internal error: Failed to get GenericServlet. uri=/BUYS/sep_accts.jsp,SCRIPT_NAME=/BUYS/sep_accts.jsp)" Usually I get this message when I make changes to a servlet and do not restart the web server, but that is not the problem this time.
I am trying to use a very simple tag called SayHelloTag which just prints hello to the browser. I have a foundation tag which extends tag support and then SayHelloTag extends the foundation tag. Then I have it all JARd up and in the classpath like I'm supposed to. If anyone could take a look at my code and tell me if you see anything wrong I would be most appriciative!
BuysFoundationTag
package com.nf.buys.tags;
import javax.servlet.jsp.*;
import javax.servlet.jsp.tagext.*;
import java.io.*;
import com.nf.buys.lists.*;
public class BuysFoundationTag extends TagSupport
SayHelloTag
package com.nf.buys.tags;
import javax.servlet.jsp.*;
import javax.servlet.jsp.tagext.*;
import java.io.*;
import com.nf.buys.lists.*;
public class SayHelloTag extends BuysFoundationTag
public int doStartTag()
{ System.out.println("Starting do Start tag");
try
System.out.println("start the try statement");
JspWriter out = pageContext.getOut();
System.out.println("output the hello message");
out.println("Say Hello");
catch(Exception e)
e.printStackTrace();
finally
return SKIP_BODY;
TLD File
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE taglib
PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.1//EN"
"http://cheerios2.nfs.nwie.net:5050/BUYS/web-jsptaglibrary_1_1.dtd">
<taglib>
<!-- after this the default space is "jsptaglibrary_1_2.dtd" -->
<tlibversion>1.0</tlibversion>
<jspversion>1.1</jspversion>
<shortname>buyslib</shortname>
<info>
A custom tag library for use by the Nationwide Financial,
Financial Systems, Automated Buy/Sell System.
</info>
<tag>
<name>SayHello</name>
<tagclass>com.nf.buys.tags.SayHelloTag</tagclass>
<bodycontent>JSP</bodycontent>
<info>A test tag</info>
</tag>
</taglib>
finally, my JSP page
<html>
<head>
<title>Automated BUY/SELL System</title>
<link rel=stylesheet href="buys_styles.css" type="text/css">
<%@ taglib uri="/BUYS/buys-tags.jar" prefix="buystag" %>
</head>
<body bgcolor='#FFFFF'>
<div id='heading'>
This is the heading information
</div>
<div id='navigation'>
<table width='100%'>
<tr>Nav Option 1</tr>
<tr>Nav Option 2</tr>
<tr>...</tr>
<tr>Nav Option n</tr>
</table>
</div>
<div id='optionalMessage'>
This is the optional message
</div>
<div id='listArea'>
<buystag:SayHelloTag>
</div>
</body>
</html>I get no compilation errors when I compile any of the tag handler classes. But when the web server can't compile the jsp page. Am I doing something obviously wrong? Please help!!
ChrisOMG I am a moron. I just have the name of the tag wrong.
-
Custom tag lib with output parameter
Hi,
I need a tag libray that gives me a specific element of a Vector.
Here there is the line I have in my jsp.
<ct:partizione tronco="${contenitoreCentralineTronco}" indice="index" partizione="tmpPartizione"/>
...-contenitoreCentralineTronco is an Object that contains a Vector of other specif objects.
-indice is the vector index of the specif instance I need.
-partizione should be the output instance.
This is part of my tld file:
<tag>
<name>partizione</name>
<tagclass>ss.aspi.classi.centraline.grafica.tagSupport.Partizione</tagclass>
<bodycontent>empty</bodycontent>
<info>Estrae una partizione da un vettore di partizioni dato l'indice</info>
<attribute>
<name>tronco</name>
<required>true</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>indice</name>
<required>true</required>
</attribute>
<attribute>
<name>partizione</name>
<required>false</required>
</attribute>
</tag>
...this is part of the class called by the tag:
private ContenitoreTroncoBean tronco;
private Integer indice;
private ContenitorePartizioneBean partizione;
public int doStartTag() throws JspException {
try {
Vector<ContenitorePartizioneBean> partizioni = tronco.getPartizioniBean();
partizione = partizioni.get(indice);
}catch (Exception e) {
log.error("Errore nell'estrazione della Partizione "+indice);
e.printStackTrace();
return TagSupport.SKIP_BODY;
//All getter and setter functionsWhen I run the application I get this exception:
jsp.error.beans.property.conversion
looking deeper in the class code jenerated from the jsp, I noted that the problem refers to the third attribute of the tag <ct:partizione>.
It seems It trys to set the attribute "partizione" with the value "tmpPartizione", but partizioni should be an output attribut non input. The varible tmpPartizione doesn't exist... the tag should create it.
I realized I didn't get how I should create a tag with output parameters.
Anyone can explane me it?
Thanks.One suggestion: Take a closer look at the EL (expression language)
It has an excellent syntax for accessing collections/maps
${contenitoreCentralineTronco[index]} would exactly what you want, without having to write a custom tag for it.
If you REALLY want to do this as a custom tag, then you need to treat the input attribute as a String (the name of the variable you are going to create?) Right now your tag declares the attribute partizione as being of type ContenitorePartizioneBean which is probably the cause of the problem - you are passing it a String.
Cheers,
evnafets -
Custom Tag Error with Weblogic SP9
Hi
I seem to be having a problem with a custom tag that I wrote. When I run the JSP
on WLS (without a service pack), the generated java code uses the weblogic.utils.StringUtils
class to interprete jsp expressions that are passed into the custom tag's attribute
(on the JSP). The method called on this StringUtils class is valueOf(). This method
in essence makes sure that the result of the expression is not null and then subsequently
calls a toString() on the value. Note that if the value is null it simply returns
an empty string.
The problem is that when we go to service pack 9, this method is not called (StringUtils.valueOf()).
Now the problem arises if first of all the result of the expression statement
in the custom tag definintion (on the JSP) is null. Secondly, it will also error
out when the setter method is called within the custom tag, if the object returned
from the expression does not match the one that is expected by the tag... in our
case a String.
Here's a sample usage of the tag:
<wescombop:selectTag
selectName="buildingNumber"
selectedItem="<%= buildingJB.getBuildingNumber()%>"
trimSelectedItem="true"
selectTagDataName="buildingNumberDataAttribute" />
Note: buildingJB.getBuildingNumber() returns BigDecimal
Here's a snipett of the line generated java:
* Without the service pack
comwestfieldgrp_wescom_bop_view_tag_SelectTag_1.setSelectedItem(weblogic.utils.StringUtils.valueOf(buildingJB.getBuildingNumber()));
*With Service Pack 9
comwestfieldgrp_wescom_bop_view_tag_SelectTag_1.setSelectedItem(buildingJB.getBuildingNumber());
Note: The setSelectedItem() method expects a String object as a parameter, so
the code with service pack 9 will result in a compilation error, since buildingJB.getBuildingNumber()
returns a BigDecimal.
Let me know if you need more explanation.
Has anyone experience this problem before... Any help would be deeply appreciated.
Thanks all.
Niran
Modify the <cewolf:param> tag.
<cewolf:chart id="confchart" title="Reports" type="bar3d" yaxislabel="Time"> <cewolf:data>
<cewolf:producer id="report"> <cewolf:param name="type" value="all" > </cewolf:param>
</cewolf:producer> </cewolf:data> </cewolf:chart>
"Balakrishnan" <[email protected]> wrote:
>
>We are using cewolf charting library in weblogic 7.0. The charting library
>is implemented
>as custom jsp tag library module.
>
>However, when the use the tag for displaying the chart, weblogic is producing
>this compiler error.
>
>/reports/reportsView.jsp(108): no corresponding open tag for tag extension
>close:
>//[ null; Line: 108]
>
>Here's the corresponding source of the jsp file:
>
> <cewolf:chart id="confchart" title="Reports" type="bar3d" yaxislabel="Time">
> <cewolf:data>
> <cewolf:producer id="report">
> <cewolf:param name="type" value="all" /> (<-- Error occurs
>here.
>Line no: 108)
> </cewolf:producer>
> </cewolf:data>
> </cewolf:chart>
>
>I've also checked the corresponding tld file and it is in place.
>
>The same code without any modifications is working fine in tomcat. Can
>you please
>let me know what needs to be corrected to make this work?
-
I have implemented what I thought was a simple custom tag to handle if
conditions. In the page that I am using to test this new tag, I have
two instances of this tag - one right after another - the second of
which is giving me an error in parsing the page saying that there is a
close tag for which there is no start. The page looks like this:
<prefix:if expr="<%=expr here%>" >
<p>some text</p>
</prefix:if>
<prefix:if expr="<%=expr here%>" >
<p>some more text</p>
</prefix:if>
Where prefix is really the prefix I identified in my taglib directive
and "expr here" are two different boolean expressions.
I have search the page for an errant closing tag - but they are all
matched up just fine. At first I had these tags nested - and thinking
that was the problem - I unrolled the nesting so that the start and
end pairs were always matched up - i.e. an end for this tag always
came after the start without an intervening start for the same tag.
But doing that unrolling had no effect - and I always seem to get the
error on the second close tag being encountered by the parser.
My tld file specifies the body content for this tab as JSP and the
expr attribute as a run-time evaluated attribute which is required. My
tag class file extends TagSupport and implements the doStartTag and
setExpr() methods.
This problem occurrs for me running both WLS 5.1 SP5 and SP6.
Is there something simple that I am missing here? Note also that I
have two other custom tags which work just fine in the same page -
however both of those tags specify an empty bodycontent.
I found my problem - as I had thought I had a typo - I was missing the
'=' between expr and the quoted expression in the second tag. I sure
wish my eyes would quit filling in those missing pieces! :)
On Wed, 08 Nov 2000 13:21:47 GMT, [email protected] (Scott Jacobs)
wrote:
>I have implemented what I thought was a simple custom tag to handle if
>conditions. In the page that I am using to test this new tag, I have
>two instances of this tag - one right after another - the second of
>which is giving me an error in parsing the page saying that there is a
>close tag for which there is no start. The page looks like this:
>
><prefix:if expr="<%=expr here%>" >
> <p>some text</p>
></prefix:if>
><prefix:if expr="<%=expr here%>" >
> <p>some more text</p>
></prefix:if>
>
>Where prefix is really the prefix I identified in my taglib directive
>and "expr here" are two different boolean expressions.
>
>I have search the page for an errant closing tag - but they are all
>matched up just fine. At first I had these tags nested - and thinking
>that was the problem - I unrolled the nesting so that the start and
>end pairs were always matched up - i.e. an end for this tag always
>came after the start without an intervening start for the same tag.
>But doing that unrolling had no effect - and I always seem to get the
>error on the second close tag being encountered by the parser.
>
>My tld file specifies the body content for this tab as JSP and the
>expr attribute as a run-time evaluated attribute which is required. My
>tag class file extends TagSupport and implements the doStartTag and
>setExpr() methods.
>
>This problem occurrs for me running both WLS 5.1 SP5 and SP6.
>
>Is there something simple that I am missing here? Note also that I
>have two other custom tags which work just fine in the same page -
>however both of those tags specify an empty bodycontent.
-
Custom tag problem (parent/child tag)
I have a table tag and a column tag that I'm using in my application to display records.
The first time through it sets up headers and keeps a coun't of the columns.
The second time through it starts putting data in the fields. The problem I'm having is that I set a counter in the column tag. When it hits the first column it increments it from 0 to 1. When it hits the second column the counter has lost its value and is back to 0.
This only occurs if I have the align="Left". Or more precisely when some of the columns have align and some don't.... To fix this I can add align="right" to all the columns... but I have it defaulting to right and don't think I should have to include it.. can someone explain to me why this is occuring?
<xxx:table name="columnData" scope="request" scrollable="Yes">
<xxx:column key="selectorColumn:FILEID" title="Select" />
<xxx:column key="50" title="VTFHBRForm.de50" align="Left"/>
<xxx:column key="110" title="VTFHBRForm.de110" />
<xxx:column key="330" title="VTFHBRForm.de330" />
<xxx:column key="320" title="VTFHBRForm.de320" />
<xxx:column key="160" title="VTFHBRForm.de160" />
<xxx:column key="5" title="VTFHBRForm.de5" />
<xxx:column key="500" title="VTFHBRForm.de500" />
<xxx:column key="510" title="VTFHBRForm.de510" />
<xxx:column key="240" title="VTFHBRForm.de240" />
<xxx:column key="150" title="VTFHBRForm.de150" />
<xxx:column key="170" title="VTFHBRForm.de170" />
<xxx:column key="140" title="VTFHBRForm.de140" />
<xxx:column key="480" title="VTFHBRForm.de480" />
<xxx:column key="172" title="VTFHBRForm.de172" />
<xxx:column key="270" title="VTFHBRForm.de270" />
</xxx:table>u have not define what child tad retrieves (null?) or u mean to say EL is not evaluated...
because in my tag i had faced the problem for not evaluating the EL.
(although i had done rexp...=true).
could u put ur custom tag code then perhaps, i could say the solutiong -
Creating first custom tag, problems importing in WebSphere studio...
I'm trying to write a tag handler for my .tld file, but WebSphere won't recognize the following import statements:
import javax.servlet.jsp.*;
import javax.servlet.jsp.tagext.*;
TLD file:
<?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>Custom Tags Library</short-name>
<description>
Custom tags test.
</description>
<tag>
<name>customTags</name>
<tag-class>source.com.tags</tag-class>
<description>
formatted text box:
</description>
<attribute>
<name>mandatory</name>
<required>true</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>optional</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
</tag>
</taglib>
- ls6vYou have to find the JAR(s) that contain the J2EE API (found in your Server download) and include them in the WebSphere classpath.
-
Replication problem with iPlanet directory server 5.1 SP2 HF1
If I make a apply a change to either of consumer servers for an entry that belongs to the large database, that change does get applied to the consumer targated but it can not refer the change to teh master. Neither the master, nor the other consumers get updated consequently. I did not have this problem with directory server 5.1 SP1. I only see this problem after I apply directory server 5.1 SP2 HF1.
From the error log file, I see the following message:
NSMMReplicationPlugin - repl_set_mtn_referrals: could not set referrals for replicaI have a suggestion - try another means for administering your directory - use the console only for maintenance and tuning purposes. There are several products out there that are much better for day to day operations ...
Otherwise - I think with 5.1 the view is based on the rdn of the entries - and I am not sure it is customizable. Additionally I know 5.2 solved your second issue - maybe the latest SP of 5.1 has solved it as well - though I don't really know ...
-Chris Larivee -
Custom Tag problem - NoSuchMethodError at MyAttInfo
I am having the following problem when trying to use a taglibrary in my web
application. Does anybody know why I am having this problem?
Thanks,
Ozzie Gurkan
Mon Jan 08 16:55:30 GMT+05:00 2001:<I> <WebAppServletContext-mims> resolving
taglib uri '/mims/taglib' to taglib-location /WEB-INF/tlds/taglib.tld:
Mon Jan 08 16:55:30 GMT+05:00 2001:<E> <WebAppServletContext-mims> Servlet
failed with Exception
java.lang.NoSuchMethodError
at weblogic.servlet.jsp.MyAttInfo.<init>(StandardTagLib.java:34)
at
weblogic.servlet.jsp.StandardTagLib.processTag(StandardTagLib.java:280)
at
weblogic.servlet.jsp.StandardTagLib.processTagElements(StandardTagLib.java:1
46)
at
weblogic.servlet.jsp.StandardTagLib.<init>(StandardTagLib.java:125)
at weblogic.servlet.jsp.JspLexer.loadTagLib(JspLexer.java:87)
at
weblogic.servlet.jsp.JspLexer.mTAGLIB_DIRECTIVE_BODY(JspLexer.java:3739)
at
weblogic.servlet.jsp.JspLexer.mTAGLIB_DIRECTIVE(JspLexer.java:3495)
at weblogic.servlet.jsp.JspLexer.mDIRECTIVE(JspLexer.java:3356)
at weblogic.servlet.jsp.JspLexer.mSTANDARD_THING(JspLexer.java:1694)
at weblogic.servlet.jsp.JspLexer.mTOKEN(JspLexer.java:1535)
at weblogic.servlet.jsp.JspLexer.nextToken(JspLexer.java:1425)
at weblogic.servlet.jsp.JspLexer.parse(JspLexer.java:825)
at weblogic.servlet.jsp.JspParser.doit(JspParser.java:69)
at weblogic.servlet.jsp.JspParser.parse(JspParser.java:116)
at weblogic.servlet.jsp.Jsp2Java.outputs(Jsp2Java.java:97)
at
weblogic.utils.compiler.CodeGenerator.generate(CodeGenerator.java:242)
at weblogic.servlet.jsp.JspStub.compilePage(JspStub.java:265)
at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:180)
at
weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java:18
1)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:118)
at
weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImp
l.java:154)
at
com.manheim.mims.core.control.web.MainServlet.doGet(MainServlet.java:67)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:123)
at
weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
l.java:761)
at
weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
l.java:708)
at
weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContext
Manager.java:252)
at
weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:346)
at
weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:246)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:135)
My entire application works great on my Win2000 machine, so I don't think I
am having problems with my setup of the taglib/JSP referencing. I have this
same application running now on Jboss, Orion, and Weblogic on Win2000.
Any other ideas?
Thanks,
Ozzie Gurkan
"MKH" <[email protected]> wrote in message
news:[email protected]...
> It is likely that the method name is a bit screwey
>
> How is it defined as in your TLD file and how are you calling it in your
> JSP?
>
> Is there a corresponding set<TLDMethodName> in your Java class?
>
>
> "Ozzie Gurkan" <[email protected]> wrote in message
> news:[email protected]...
> > I am having the following problem when trying to use a taglibrary in my
> web
> > application. Does anybody know why I am having this problem?
> >
> > Thanks,
> > Ozzie Gurkan
> > Mon Jan 08 16:55:30 GMT+05:00 2001:<I> <WebAppServletContext-mims>
> resolving
> > taglib uri '/mims/taglib' to taglib-location /WEB-INF/tlds/taglib.tld:
> >
> > Mon Jan 08 16:55:30 GMT+05:00 2001:<E> <WebAppServletContext-mims>
Servlet
> > failed with Exception
> >
> > java.lang.NoSuchMethodError
> >
> > at weblogic.servlet.jsp.MyAttInfo.<init>(StandardTagLib.java:34)
> >
> > at
> > weblogic.servlet.jsp.StandardTagLib.processTag(StandardTagLib.java:280)
> >
> > at
> >
>
weblogic.servlet.jsp.StandardTagLib.processTagElements(StandardTagLib.java:1
> > 46)
> >
> > at
> > weblogic.servlet.jsp.StandardTagLib.<init>(StandardTagLib.java:125)
> >
> > at weblogic.servlet.jsp.JspLexer.loadTagLib(JspLexer.java:87)
> >
> > at
> > weblogic.servlet.jsp.JspLexer.mTAGLIB_DIRECTIVE_BODY(JspLexer.java:3739)
> >
> > at
> > weblogic.servlet.jsp.JspLexer.mTAGLIB_DIRECTIVE(JspLexer.java:3495)
> >
> > at weblogic.servlet.jsp.JspLexer.mDIRECTIVE(JspLexer.java:3356)
> >
> > at
> weblogic.servlet.jsp.JspLexer.mSTANDARD_THING(JspLexer.java:1694)
> >
> > at weblogic.servlet.jsp.JspLexer.mTOKEN(JspLexer.java:1535)
> >
> > at weblogic.servlet.jsp.JspLexer.nextToken(JspLexer.java:1425)
> >
> > at weblogic.servlet.jsp.JspLexer.parse(JspLexer.java:825)
> >
> > at weblogic.servlet.jsp.JspParser.doit(JspParser.java:69)
> >
> > at weblogic.servlet.jsp.JspParser.parse(JspParser.java:116)
> >
> > at weblogic.servlet.jsp.Jsp2Java.outputs(Jsp2Java.java:97)
> >
> > at
> > weblogic.utils.compiler.CodeGenerator.generate(CodeGenerator.java:242)
> >
> > at weblogic.servlet.jsp.JspStub.compilePage(JspStub.java:265)
> >
> > at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:180)
> >
> > at
> >
>
weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java:18
> > 1)
> >
> > at
> >
>
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
> > :118)
> >
> > at
> >
>
weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImp
> > l.java:154)
> >
> > at
> > com.manheim.mims.core.control.web.MainServlet.doGet(MainServlet.java:67)
> >
> > at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
> >
> > at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> >
> > at
> >
>
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
> > :123)
> >
> > at
> >
>
weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
> > l.java:761)
> >
> > at
> >
>
weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
> > l.java:708)
> >
> > at
> >
>
weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContext
> > Manager.java:252)
> >
> > at
> >
>
weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:346)
> >
> > at
> > weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:246)
> >
> > at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:135)
> >
> >
> >
>
>
-
How to use the JRun Custom tag library with Weblogic 5.1?
Hello,
is it possible to use the JRUN Tag Library with Bea Weblogic 5.1? We
got an error message like:
weblogic.servlet.jsp.JspException: (line -1): Error in tag library at:
'jrun': T
here is no setter method for property 'code', for Tag class
'allaire.taglib.Serv
letTag'
Thank you for any info!
Stefan
Hi Joe,
I don't know, however someone that follows the JSP newsgroup [1] may be
able to help. Could you try your post there.
Thanks,
Bruce
[1]
http://newsgroups.bea.com/cgi-bin/dnewsweb?cmd=xover&group=weblogic.developer.interest.jsp
Joe Kamenar wrote:
>
I have a question. I need to do a sort on news articles in our database, sorting
by the date they were posted. I then want to take only the top 6 articles. We
are using Weblogic 5.1. When I use the following statement, 6 articles are taken
from the database, then sorted, which ends up leaving out the most recent articles:
<cm:select contentHome="com.beasys.commerce.axiom.document.Document" query="<%=contentQuery%>"
sortby = "creationDate DESC, headlineDate DESC" max="6" id="contentList" />
I need to get ALL the articles for the sort, then just take the most recent 6.
So, I know that I can use the following code and monitor the counter variable,
"i". But, how do i do this to only display the top 6 items?
<es:foreachinarray id="content" array="contentList" type="com.beasys.commerce.axiom.content.Content"
counterId="i">
<% myStr=content.getIdentifier(); %>
<% if (i<6) {
%>
<div class="marginText">
<cm:printproperty id="content" name="title" encode="html" />
<a href="<%=new String(news_display.jsp?id="+myStr)%">">more</a>
</div>
<% } %>
</es:foreachinarray>
However, when I run this, no results show up. What is the correct way to do this?
- Joe</a> -
Custom exception problems with ADF framework
Hi,
I have problems with the exception handling in an web service Java class (POJO).
In this class I throw my own exception WsException-class which extends the normal Exception-class.
The class WebservicesAppModule extends the oracle.jbo.ApplicationModule.
In the following I first describe the web service class and then the three tests a)-c).
In test b) you can find my main problem.
Web service Java class (POJO):
public Element check(Element element) throws WsException{
WebservicesAppModule am = null;
try {
// 1) system error
// if I comment the next line out, then am = null and a NullPointerException is thrown which appear as NullPointerException in the SOAP response
am = (WebservicesAppModule)Configuration.createRootApplicationModule(_am,_cf);
if(value == null){
// 2) application error
WsException wsex = new WsException();
wsex.addErrorCode(WsException.C_INVALID_BANK_CONNECTION);
throw wsex;
} else if (value2 == null){
// 3) explicit system error
throw new NullPointerException();
}catch(WsException wsex){
// 4) application error
throw wsex;
}catch(Throwable ex){
// 5) system error
log.debug("Technischer Fehler", ex);
WsException wsex = new WsException("system error");
wsex.addErrorCode(WsException.C_NOK);
throw wsex;
} finally {
if (_am != null) {
Configuration.releaseRootApplicationModule(am, false);
Test a):
- The WebservicesAppModule is initialized (1)
- value = null, so the process run in the "application error" if-block (2)
- The WsException is thrown and catched in the "application error" catch-block (4)
The SOAP repsonse is okay:
--- Response ---
HTTP/1.1 100 Continue
Server: Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)
Date: Thu, 20 Jul 2006 09:43:39 GMT
HTTP/1.1 500 Internal Server Error
Date: Thu, 20 Jul 2006 09:43:55 GMT
Server: Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)
Content-Length: 520
Connection: Close
Content-Type: text/xml; charset=utf-8
<?xml version = '1.0' encoding = 'UTF-8'?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<SOAP-ENV:Body>
<SOAP-ENV:Fault>
<faultcode>SOAP-ENV:Server.Exception:</faultcode>
<faultstring>[11000, 10001] [de.test.webservices.WsException]</faultstring>
<faultactor>/app-Webservices-context-root/WebServices</faultactor>
</SOAP-ENV:Fault>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
Test b):
- The WebservicesAppModule is NOT initialized (the line is comment out) (1)
- The process run in system error catch-block (5)
In the SOAP repsonse I expected the following <faultstring> (like in test c) )
<faultstring>system error: [10000] [de.test.webservices.WsException]</faultstring>
and not
<faultstring> [java.lang.NullPointerException]</faultstring>
What´s the problem?
--- Response ---
HTTP/1.1 100 Continue
Server: Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)
Date: Thu, 20 Jul 2006 08:59:12 GMT
HTTP/1.1 500 Internal Server Error
Date: Thu, 20 Jul 2006 09:01:02 GMT
Server: Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)
Content-Length: 506
Connection: Close
Content-Type: text/xml; charset=utf-8
<?xml version = '1.0' encoding = 'UTF-8'?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<SOAP-ENV:Body>
<SOAP-ENV:Fault>
<faultcode>SOAP-ENV:Server.Exception:</faultcode>
<faultstring> [java.lang.NullPointerException]</faultstring>
<faultactor>/app-Webservices-context-root/WebServices</faultactor>
</SOAP-ENV:Fault>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
Test c):
- The WebservicesAppModule is initialized (1)
- value != null, so the process run to the next if-block (2)
- value2 == null, so the process run in the "explicit system error" (3)
- The WsException is thrown and catched in the "system error" catch-block (5)
This test shows that not the NullPointerException of Test b) is the problem.
This response is expected in Test b).
--- Response ---
HTTP/1.1 100 Continue
Server: Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)
Date: Thu, 20 Jul 2006 13:53:46 GMT
HTTP/1.1 500 Internal Server Error
Date: Thu, 20 Jul 2006 13:54:19 GMT
Server: Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)
Content-Length: 533
Connection: Close
Content-Type: text/xml; charset=utf-8
<?xml version = '1.0' encoding = 'UTF-8'?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<SOAP-ENV:Body>
<SOAP-ENV:Fault>
<faultcode>SOAP-ENV:Server.Exception:</faultcode>
<faultstring>system error: [10000] [de.test.webservices.WsException]</faultstring>
<faultactor>/app-Webservices-context-root/WebServices</faultactor>
</SOAP-ENV:Fault>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
What is the cause for the false <faultstring> in test b)? Where set the the ADF framework the NullPointerException and how can I avoid that?
Thanks and best regards,
TobiasHi,
I have problems with the exception handling in an web service Java class (POJO).
In this class I throw my own exception WsException-class which extends the normal Exception-class.
The class WebservicesAppModule extends the oracle.jbo.ApplicationModule.
In the following I first describe the web service class and then the three tests a)-c).
In test b) you can find my main problem.
Web service Java class (POJO):
public Element check(Element element) throws WsException{
WebservicesAppModule am = null;
try {
// 1) system error
// if I comment the next line out, then am = null and a NullPointerException is thrown which appear as NullPointerException in the SOAP response
am = (WebservicesAppModule)Configuration.createRootApplicationModule(_am,_cf);
if(value == null){
// 2) application error
WsException wsex = new WsException();
wsex.addErrorCode(WsException.C_INVALID_BANK_CONNECTION);
throw wsex;
} else if (value2 == null){
// 3) explicit system error
throw new NullPointerException();
}catch(WsException wsex){
// 4) application error
throw wsex;
}catch(Throwable ex){
// 5) system error
log.debug("Technischer Fehler", ex);
WsException wsex = new WsException("system error");
wsex.addErrorCode(WsException.C_NOK);
throw wsex;
} finally {
if (_am != null) {
Configuration.releaseRootApplicationModule(am, false);
Test a):
- The WebservicesAppModule is initialized (1)
- value = null, so the process run in the "application error" if-block (2)
- The WsException is thrown and catched in the "application error" catch-block (4)
The SOAP repsonse is okay:
--- Response ---
HTTP/1.1 100 Continue
Server: Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)
Date: Thu, 20 Jul 2006 09:43:39 GMT
HTTP/1.1 500 Internal Server Error
Date: Thu, 20 Jul 2006 09:43:55 GMT
Server: Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)
Content-Length: 520
Connection: Close
Content-Type: text/xml; charset=utf-8
<?xml version = '1.0' encoding = 'UTF-8'?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<SOAP-ENV:Body>
<SOAP-ENV:Fault>
<faultcode>SOAP-ENV:Server.Exception:</faultcode>
<faultstring>[11000, 10001] [de.test.webservices.WsException]</faultstring>
<faultactor>/app-Webservices-context-root/WebServices</faultactor>
</SOAP-ENV:Fault>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
Test b):
- The WebservicesAppModule is NOT initialized (the line is comment out) (1)
- The process run in system error catch-block (5)
In the SOAP repsonse I expected the following <faultstring> (like in test c) )
<faultstring>system error: [10000] [de.test.webservices.WsException]</faultstring>
and not
<faultstring> [java.lang.NullPointerException]</faultstring>
What´s the problem?
--- Response ---
HTTP/1.1 100 Continue
Server: Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)
Date: Thu, 20 Jul 2006 08:59:12 GMT
HTTP/1.1 500 Internal Server Error
Date: Thu, 20 Jul 2006 09:01:02 GMT
Server: Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)
Content-Length: 506
Connection: Close
Content-Type: text/xml; charset=utf-8
<?xml version = '1.0' encoding = 'UTF-8'?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<SOAP-ENV:Body>
<SOAP-ENV:Fault>
<faultcode>SOAP-ENV:Server.Exception:</faultcode>
<faultstring> [java.lang.NullPointerException]</faultstring>
<faultactor>/app-Webservices-context-root/WebServices</faultactor>
</SOAP-ENV:Fault>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
Test c):
- The WebservicesAppModule is initialized (1)
- value != null, so the process run to the next if-block (2)
- value2 == null, so the process run in the "explicit system error" (3)
- The WsException is thrown and catched in the "system error" catch-block (5)
This test shows that not the NullPointerException of Test b) is the problem.
This response is expected in Test b).
--- Response ---
HTTP/1.1 100 Continue
Server: Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)
Date: Thu, 20 Jul 2006 13:53:46 GMT
HTTP/1.1 500 Internal Server Error
Date: Thu, 20 Jul 2006 13:54:19 GMT
Server: Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)
Content-Length: 533
Connection: Close
Content-Type: text/xml; charset=utf-8
<?xml version = '1.0' encoding = 'UTF-8'?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<SOAP-ENV:Body>
<SOAP-ENV:Fault>
<faultcode>SOAP-ENV:Server.Exception:</faultcode>
<faultstring>system error: [10000] [de.test.webservices.WsException]</faultstring>
<faultactor>/app-Webservices-context-root/WebServices</faultactor>
</SOAP-ENV:Fault>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
What is the cause for the false <faultstring> in test b)? Where set the the ADF framework the NullPointerException and how can I avoid that?
Thanks and best regards,
Tobias -
i was trying to run asample code that is using custom tag
that code is provided at
http://www.stardeveloper.com/articles/display.html?article=2001081801&page=1
after goin through steps when i executed the code i got this error
HTTP Status 500 -
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
org.apache.jasper.JasperException
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:373)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:245)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
root cause
java.lang.NullPointerException
MyPackage.DataAccessTag.doAfterBody(DataAccessTag.java:73)
org.apache.jsp.DataAccessTag_jsp._jspService(org.apache.jsp.DataAccessTag_jsp:111)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:99)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:325)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:245)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)java.lang.NullPointerException
MyPackage.DataAccessTag.doAfterBody(DataAccessTag.java:73)
Go to line 73 of DataAccessTag (it will be in the doAfterBody method) and find what is null, why it is null, and either how to prevent it from being null or what to do in case it is null. -
Problem with iPlanet Web Server 6
We are getting an intermittent problem with our web server, the users start to get problems connecting to the web site.
I have found the following message in the error log -
failure ( 2390): Error accepting connection -5928, oserr=130 (Connect aborted)
can anybody help???Check out the below.
Problem 4680491. CSS causes oserr=130 in iWS 6.0 logs.
Workaround
If you are using the Cisco Content Services Switch (CSS) with Sun ONE Web Server and have set the value of the sticky bit setting in CSS to on, the following error is logged periodically in the error logs:
failure ( 2210): Error accepting connection -5928, oserr=130 (Connect aborted)
This is caused not by a defect in Sun ONE Web Server but by the setting of the sticky bit in CSS. To avoid the error logging, set the value of the sticky bit in CSS to off.
Which as been fixed in iWS 6.0 SP5.
For more info check the below link.
http://docs.sun.com/source/816-6434-10/rn60sp5.html
Dakshin.
Maybe you are looking for
-
Error while printing.
-
Graphic design for the web with ID
If I use ID to create web graphics can I export them without the page background? and if so can I change the page background colour so that I can see white when I am designing?
-
SQL Servers White in SQL 2012 SP2 Management Studio Object Explorer
I had a similar issue before and thought I had resolved it but no, so.... I have a lot of servers on different versions registered in SQL2012 MS 2012 SP2 (tools only). They are all green and I have the option to stop/start in service control (I am an
-
Hi all! I guess this is a simple problem for most of you guys... How to change color of the lines in JTree that connect opened nodes? I guess there must be some property like "JTree.lineColor" because this color changes with changing LookAndFeel. I h
-
I'm having a problem deleting pages in CS3 using the Pages Palette. When I try to delete multiple pages, it only deleted the last page of the selected range. I have also had the problem of it deleting a different page than the one I have selected in