make sure struts.jar is in your classpath in kregedit.
Also, if you have any ActionClass or FormClasses that
you're calling from action, you'll need to make sure
the full path to
\iPlanet\ias6\...\APPS\...\WEB-INF\classes is in your
classpath. It's a bug in iPlanet, but this workaround
works like a charm. Let me know if you have any other
iPlanet issues, as I have spent a fair amount of time
getting struts to work on iPlanet.
If a JSP
defines a prefix with the same name as a literal
HTML-tag like html, body, head, etc.,you'll run
into this problem.
E.G:
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<html>
...
</html>
Since the code in the JSP is case sensitive, changing
the case of the literal HTML-tags (or the prefixes)
already solves the problem:
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<HTML>
...
</HTML>
I figured out the problem. For the interest of the mail archives, the
solution is to use regular expressions in obj.conf. "*.do" is not enough
for iPlanet (struts documentation should be ammended for this). I found I
needed to use "*.do;jsessionid*" in addition to "*.do". This fixed the
problem. Note: rules.properties didn't seem to work either since the
servlet is running from tomcat, not iPlanet.
----- Original Message -----
From: "Mikkel Bruun" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, July 09, 2001 6:38 AM
Subject: SV: Still struggling with my Iplanet 4.1
> thanks for your input...
>
> Im currently loading all the dtd's frm localhost...
>
> I havent checked whetether or not IWS comes with an xml parser, but
> currently i have added jaxp.jar and parser.jar from the tomcat
installation
> to my classpath...
>
> i thought that i had the taglibs running, but it seems like ive stumbled
> upon another problem...
> I get the following exception:
> ---------
> org.apache.jasper.JasperException: Unable to open taglibrary
> /jbpb/taglibs/html-
> tags.jar : com.sun.xml.tree.TextNode
> --------
>
> reading the docs for iplanet the exception should arise when a .tld doesnt
> contain a dco type tag...however, my tld already does that!
>
> Here a snippet from the tag tld
> ----
> <?xml version="1.0" encoding="ISO-8859-1" ?>
> <!DOCTYPE taglib
> PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2//EN"
> "http://localhost:81/jbpb/dtds/web-jsptaglib_1_1.dtd">
>
> <taglib>
> ----
> the url is browsable....
>
>
> Heres a snippet of the .jsp Im trying to run
> ---------------
> <%@page language="java" %>
> <%@ taglib uri="/jbpb/taglibs/html-tags.jar" prefix="html" %>
> <html:base/>
> still here!
> --------------
> the taglib uri, is a *real* url as jbpb is actually a link to
> /home/users/jbpb/webroot
>
> -------------
>
> Mikkel
>
>
>
>
>
>
>
> -----Oprindelig meddelelse-----
> Fra: Hellmann, Martin (Paragon IT)
> [mailto:[EMAIL PROTECTED]]
> Sendt: 09 July 2001 12:27
> Til: '[EMAIL PROTECTED]'
> Emne: RE: Still struggling with my Iplanet 4.1
>
>
> Although I am quite new to struts, I'd like to participate in this IPlanet
> discussion because
> we are probably going to deploy our app to the same AS.
> But actially we haven't tested anything yet under that environment, so all
> comments are warmly welcome.
>
> Concerning your xml problems:
> To my experience xml parsing problems arise usually for 2 reasons:
> - You're working behind a firewall and the parser isn't able to load the
DTD
> via internet,
> deleting the doctype -DTD definition of your xml-file or changing it to
a
> local path often solves this prob.
>
> - Or, it could be as well that IPlanet comes with its own xml jars. If so,
> you have to ensure that strut's
> conform xalan.jar, xerces.jar in version 1.2 are found in the
application
> servers classpath before any other
> xml parsers.
>
> Best regards
> Martin
>
>
>
> -----Original Message-----
> From: Mikkel Bruun [mailto:[EMAIL PROTECTED]]
> Sent: Montag, 9. Juli 2001 09:13
> To: '[EMAIL PROTECTED]'
> Subject: Still struggling with my Iplanet 4.1
>
>
> Hi guys,
>
> there hasnt been much response to my Iplanet mails, but here goes another
> one...
>
> I have finallt succeded in deploying the taglibs, getting IWS to recoqnize
> the strust.dtd and the action servlet is ALMOST running....
> However i get a SaxException when it tries to parse the config.xml from
the
> example application
>
> Any suggestions???
> ------------------------------
>
> org.xml.sax.SAXParseException: Attribute "forward" is not declared for
> element "action".
> at com.sun.xml.parser.Parser.error(Parser.java:2795)
> at com.sun.xml.parser.Parser.maybeElement(Parser.java:1357)
> at com.sun.xml.parser.Parser.content(Parser.java:1499)
> at com.sun.xml.parser.Parser.maybeElement(Parser.java:1400)
> at com.sun.xml.parser.Parser.content(Parser.java:1499)
> at com.sun.xml.parser.Parser.maybeElement(Parser.java:1400)
> at com.sun.xml.parser.Parser.parseInternal(Parser.java:492)
> at com.sun.xml.parser.Parser.parse(Parser.java:284)
> at javax.xml.parsers.SAXParser.parse(SAXParser.java:155)
> at javax.xml.parsers.SAXParser.parse(SAXParser.java:77)
> at org.apache.struts.digester.Digester.parse(Digester.java:725)
> at
>
org.apache.struts.action.ActionServlet.initMapping(ActionServlet.java:1302)
> at
> org.apache.struts.action.ActionServlet.init(ActionServlet.java:473)
> at javax.servlet.GenericServlet.init(GenericServlet.java:219)
> at
>
com.netscape.server.http.servlet.NSServletEntity.load(NSServletEntity.java:3
> 77)
> at
>
com.netscape.server.http.servlet.NSServletEntity.update(NSServletEntity.java
> :149)
> at
>
com.netscape.server.http.servlet.NSServletRunner.Service(NSServletRunner.jav
> a:461)
> Parse Error at line 127 column -1: Attribute value for "type" is
#REQUIRED.
> org.xml.sax.SAXParseException: Attribute value for "type" is #REQUIRED.
> at com.sun.xml.parser.Parser.error(Parser.java:2795)
> at com.sun.xml.parser.Parser.defaultAttributes(Parser.java:1470)
> at com.sun.xml.parser.Parser.maybeElement(Parser.java:1388)
> at com.sun.xml.parser.Parser.content(Parser.java:1499)
> at com.sun.xml.parser.Parser.maybeElement(Parser.java:1400)
> at com.sun.xml.parser.Parser.content(Parser.java:1499)
> at com.sun.xml.parser.Parser.maybeElement(Parser.java:1400)
> at com.sun.xml.parser.Parser.parseInternal(Parser.java:492)
> at com.sun.xml.parser.Parser.parse(Parser.java:284)
> at javax.xml.parsers.SAXParser.parse(SAXParser.java:155)
> at javax.xml.parsers.SAXParser.parse(SAXParser.java:77)
> at org.apache.struts.digester.Digester.parse(Digester.java:725)
> at
>
org.apache.struts.action.ActionServlet.initMapping(ActionServlet.java:1302)
> at
> org.apache.struts.action.ActionServlet.init(ActionServlet.java:473)
> at javax.servlet.GenericServlet.init(GenericServlet.java:219)
> at
>
com.netscape.server.http.servlet.NSServletEntity.load(NSServletEntity.java:3
> 77)
> at
>
com.netscape.server.http.servlet.NSServletEntity.update(NSServletEntity.java
> :149)
> at
>
com.netscape.server.http.servlet.NSServletRunner.Service(NSServletRunner.jav
> a:461)
>