You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Ed...@marsh.com on 2003/06/04 17:09:28 UTC
Trouble deploying workbench app
Hi all,
Has anyone tried to deploy the workbench app to Weblogic? I am running
Weblogic 6, service pack 1 on Windows 2000. I have extracted the files
from workbench.war into my default app and updated the web.xml file.
During startup the following exception is thrown on the console:
java.lang.AbstractMethodError
at weblogic.servlet.internal.WebAppServletContext.registerFilter(WebAppServletContext.java:1927)
at weblogic.servlet.internal.WebAppServletContext.initFromDescriptors(WebAppServletContext.java:1289)
at weblogic.servlet.internal.WebAppServletContext.init(WebAppServletContext.java:872)
at weblogic.servlet.internal.WebAppServletContext.<init>(WebAppServletContext.java:807)
at weblogic.servlet.internal.HttpServer.loadWebApp(HttpServer.java:421)
at weblogic.j2ee.WebAppComponent.deploy(WebAppComponent.java:74)
(remainder of stack trace omitted)
When I examine the log, I find the following entry:
####<Jun 4, 2003 10:25:40 AM EDT> <Info> <HTTP> <etrembic> <myserver>
<main> <system> <> <101160> <Deployment descriptor is malformed, check
against the DTD: org.xml.sax.SAXParseException: The content of element type
"web-app" must match
"(icon?,display-name?,description?,distributable?,context-param*,filter*,filter-mapping*,listener*,servlet*,servlet-mapping*,session-config?,mime-mapping*,welcome-file-list?,error-page*,taglib*,resource-env-ref*,resource-ref*,security-constraint*,login-config?,security-role*,env-entry*,ejb-ref*)"..>
The web.xml file looked ok, so I loaded it in XMLSpy to double-check. It
displayed the following error: "This file is not valid: Unexpected child
elementer 'filter'".
I double-checked the web-app_2_2.dtd at Sun, and sure enough, neither
"filter" nor "filter-mapping" is listed as a child element of "web-app":
<!ELEMENT web-app (icon?, display-name?, description?, distributable?,
context-param*, servlet*, servlet-mapping*, session-config?, mime-mapping*,
welcome-file-list?, error-page*, taglib*, resource-ref*,
security-constraint*, login-config?, security-role*, env-entry*, ejb-ref*)>
Does anyone know if something is out of synch here? The part that's really
weird is that the Weblogic log entry lists both "filter" and
"filter-mapping" in the list of valid child elements for "web-app".
Regards,
Ed
p.s. The same error occurs if I deploy the war file directly, instead of
extracting it to the default app.
RE: Trouble deploying workbench app
Posted by "Howard M. Lewis Ship" <hl...@attbi.com>.
Workbench now uses one 2.3 feature: a servlet filter. Wl6.1 doesn't support it. It isn't
essential for the workbench app, it just redirect http://localhost/workbench to
http://localhost/workbench/app so that Tapestry can start running with a known base URL.
--
Howard M. Lewis Ship
Creator, Tapestry: Java Web Components
http://jakarta.apache.org/tapestry
> -----Original Message-----
> From: Ed.Trembicki-Guy@marsh.com [mailto:Ed.Trembicki-Guy@marsh.com]
> Sent: Wednesday, June 04, 2003 11:09 AM
> To: tapestry-user@jakarta.apache.org
> Subject: Trouble deploying workbench app
>
>
>
> Hi all,
>
> Has anyone tried to deploy the workbench app to Weblogic? I
> am running Weblogic 6, service pack 1 on Windows 2000. I
> have extracted the files from workbench.war into my default
> app and updated the web.xml file. During startup the
> following exception is thrown on the console:
>
> java.lang.AbstractMethodError
> at
> weblogic.servlet.internal.WebAppServletContext.registerFilter(
> WebAppServletContext.java:1927)
> at
> weblogic.servlet.internal.WebAppServletContext.initFromDescrip
> tors(WebAppServletContext.java:1289)
> at
> weblogic.servlet.internal.WebAppServletContext.init(WebAppServ
> letContext.java:872)
> at
> weblogic.servlet.internal.WebAppServletContext.<init>(WebAppSe
> rvletContext.java:807)
> at
> weblogic.servlet.internal.HttpServer.loadWebApp(HttpServer.java:421)
> at
> weblogic.j2ee.WebAppComponent.deploy(WebAppComponent.java:74)
> (remainder of stack trace omitted)
>
> When I examine the log, I find the following entry:
>
> ####<Jun 4, 2003 10:25:40 AM EDT> <Info> <HTTP> <etrembic>
> <myserver> <main> <system> <> <101160> <Deployment descriptor
> is malformed, check against the DTD:
> org.xml.sax.SAXParseException: The content of element type
> "web-app" must match
> "(icon?,display-name?,description?,distributable?,context-para
m*,filter*,filter-> mapping*,listener*,servlet*,servlet-mapping*,session-config?,m
> ime-mapping*,welcome-file-list?,error-page*,taglib*,resource-e
> nv-ref*,resource-ref*,security-constraint*,login-config?,secur
> ity-role*,env-entry*,ejb-ref*)"..>
>
>
>
> The web.xml file looked ok, so I loaded it in XMLSpy to
> double-check. It displayed the following error: "This file
> is not valid: Unexpected child elementer 'filter'". I
> double-checked the web-app_2_2.dtd at Sun, and sure enough,
> neither "filter" nor "filter-mapping" is listed as a child
> element of "web-app":
>
> <!ELEMENT web-app (icon?, display-name?, description?,
> distributable?, context-param*, servlet*, servlet-mapping*,
> session-config?, mime-mapping*, welcome-file-list?,
> error-page*, taglib*, resource-ref*, security-constraint*,
> login-config?, security-role*, env-entry*, ejb-ref*)>
>
> Does anyone know if something is out of synch here? The part
> that's really weird is that the Weblogic log entry lists both
> "filter" and "filter-mapping" in the list of valid child
> elements for "web-app".
>
> Regards,
> Ed
>
> p.s. The same error occurs if I deploy the war file directly,
> instead of extracting it to the default app.
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>
Re: Trouble deploying workbench app
Posted by Sanjeev Hiremath <sc...@yahoo.com>.
Ed,
I have succesfully deployed WorkBench in both
WSL6.1 & WLS8.1 without any error.
I think filter part is added in servlet 2.3.
There are 2 things you can do:
1. remove filter part in web.xml
This mean you have manually type
http://host:7001/workbench/app to execute workbench
application once u deployed onto WLS6.1
2. Try installing on WLS8.1 which supports servlet
2.3.In this case u don't have to modify web.xml.
Hope this helps.
Regards
It looks that
--- Ed.Trembicki-Guy@marsh.com wrote: >
> Hi all,
>
> Has anyone tried to deploy the workbench app to
> Weblogic? I am running
> Weblogic 6, service pack 1 on Windows 2000. I have
> extracted the files
> from workbench.war into my default app and updated
> the web.xml file.
> During startup the following exception is thrown on
> the console:
>
> java.lang.AbstractMethodError
> at
>
weblogic.servlet.internal.WebAppServletContext.registerFilter(WebAppServletContext.java:1927)
> at
>
weblogic.servlet.internal.WebAppServletContext.initFromDescriptors(WebAppServletContext.java:1289)
> at
>
weblogic.servlet.internal.WebAppServletContext.init(WebAppServletContext.java:872)
> at
>
weblogic.servlet.internal.WebAppServletContext.<init>(WebAppServletContext.java:807)
> at
>
weblogic.servlet.internal.HttpServer.loadWebApp(HttpServer.java:421)
> at
>
weblogic.j2ee.WebAppComponent.deploy(WebAppComponent.java:74)
> (remainder of stack trace omitted)
>
> When I examine the log, I find the following entry:
>
> ####<Jun 4, 2003 10:25:40 AM EDT> <Info> <HTTP>
> <etrembic> <myserver>
> <main> <system> <> <101160> <Deployment descriptor
> is malformed, check
> against the DTD: org.xml.sax.SAXParseException: The
> content of element type
> "web-app" must match
>
"(icon?,display-name?,description?,distributable?,context-param*,filter*,filter-mapping*,listener*,servlet*,servlet-mapping*,session-config?,mime-mapping*,welcome-file-list?,error-page*,taglib*,resource-env-ref*,resource-ref*,security-constraint*,login-config?,security-role*,env-entry*,ejb-ref*)"..>
>
>
>
> The web.xml file looked ok, so I loaded it in XMLSpy
> to double-check. It
> displayed the following error: "This file is not
> valid: Unexpected child
> elementer 'filter'".
> I double-checked the web-app_2_2.dtd at Sun, and
> sure enough, neither
> "filter" nor "filter-mapping" is listed as a child
> element of "web-app":
>
> <!ELEMENT web-app (icon?, display-name?,
> description?, distributable?,
> context-param*, servlet*, servlet-mapping*,
> session-config?, mime-mapping*,
> welcome-file-list?, error-page*, taglib*,
> resource-ref*,
> security-constraint*, login-config?, security-role*,
> env-entry*, ejb-ref*)>
>
> Does anyone know if something is out of synch here?
> The part that's really
> weird is that the Weblogic log entry lists both
> "filter" and
> "filter-mapping" in the list of valid child elements
> for "web-app".
>
> Regards,
> Ed
>
> p.s. The same error occurs if I deploy the war file
> directly, instead of
> extracting it to the default app.
>
>
>
>
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail:
> tapestry-user-help@jakarta.apache.org
>
__________________________________________________
Yahoo! Plus - For a better Internet experience
http://uk.promotions.yahoo.com/yplus/yoffer.html