This is a common problem when configuring struts on weblogic. Reason is that
the parser could not fetch the
file(http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd) from the
web.
The easiest way is to alter the request to your local file.
For example:
    FROM:
    <!DOCTYPE struts-config PUBLIC
          "-//Apache Software Foundation//DTD Struts Configuration 1.0//EN"
          "http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd>

    TO:
    <!DOCTYPE struts-config PUBLIC
          "-//Apache Software Foundation//DTD Struts Configuration 1.0//EN"

"file:///c:/bea/wlserver6.0/config/Wcom/applications/mydomain/WEB-INF/struts
-config_1_0.dtd>

-Zhao



----- 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)
>

Reply via email to