You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Vince Marco <vm...@mac.com> on 2003/11/18 22:27:39 UTC
Tapestry problem in WLS 8.1
I'm getting an error when deploying Tapestry webapps to Weblogic 8.1.
The error is:
org.apache.tapestry.util.xml.DocumentParseException: Resource at classpath:WEB-INF/web.application does not exist.
This worked fully in JBoss/Tomcat and I've checked my deployment and the
web.application file is there. Anybody else run into this?
Vince
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
Re: Tapestry problem in WLS 8.1
Posted by Harish Krishnaswamy <hk...@comcast.net>.
I am not sure if this would cause a problem, but if your app spec is in WEB-INF, you don't need to
declare it as an init-param. Even if you do, all you have specify is the filename.
<init-param>
<param-name>org.apache.tapestry.application-specification</param-name>
<param-value>web.application</param-value>
</init-param>
-Harish
Vince Marco wrote:
> Changed the <servlet-name>, still no dice. Here is my web.xml and
> web.application:
> ...............................................web.xml:
> <?xml version="1.0"?>
> <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application
> 2.3//EN" "http://java.sun.com/j2ee/dtds/web-app_2_3.dtd">
> <web-app>
> <display-name>ncap</display-name>
> <servlet>
> <servlet-name>web</servlet-name>
>
> <servlet-class>org.apache.tapestry.ApplicationServlet</servlet-class>
> <init-param>
>
> <param-name>org.apache.tapestry.application-specification</param-name>
> <param-value>/WEB-INF/web.application</param-value>
> </init-param>
> <load-on-startup>0</load-on-startup>
> </servlet>
>
> <servlet> <!-- CISCO IE2100 system queries -->
> <servlet-name>UpdateRouterServlet</servlet-name>
>
> <servlet-class>gov.usda.oip.webapp.ncap2.IE2100.UpdateRouterServlet</servlet-class>
>
> <load-on-startup>3</load-on-startup>
> </servlet>
>
> <servlet-mapping>
> <servlet-name>web</servlet-name>
> <url-pattern>/app</url-pattern>
> </servlet-mapping>
>
> <servlet-mapping> <!-- CISCO IE2100 system queries -->
> <servlet-name>UpdateRouterServlet</servlet-name>
> <url-pattern>/router</url-pattern>
> </servlet-mapping>
>
> <session-config>
> <session-timeout>30</session-timeout>
> </session-config>
> <welcome-file-list>
> <welcome-file>index.html</welcome-file>
> </welcome-file-list>
>
> </web-app>
>
> ...............................web.application:
> <?xml version="1.0" encoding="UTF-8"?>
> <!DOCTYPE application PUBLIC
> "-//Apache Software Foundation//Tapestry Specification 3.0//EN"
> "http://jakarta.apache.org/tapestry/dtd/Tapestry_3_0.dtd">
>
> <application name="ncap"
> engine-class="org.apache.tapestry.engine.BaseEngine">
> <property
> name="org.apache.tapestry.visit-class">gov.usda.oip.webapp.ncap2.Visit</property>
>
> <property
> name="org.apache.tapestry.global-class">gov.usda.oip.webapp.ncap2.Global</property>
>
> <library id="contrib"
> specification-path="/org/apache/tapestry/contrib/Contrib.library"/>
> <component-type type="TabBar"
> specification-path="/WEB-INF/components/TabBar.jwc"/>
> <component-type type="Site"
> specification-path="/WEB-INF/components/Site.jwc"/>
> <page name="Home" specification-path="/WEB-INF/content/Home.page"/>
> <page name="ChangePassword"
> specification-path="/WEB-INF/content/ChangePassword.page"/>
> <page name="ChangeContact"
> specification-path="/WEB-INF/content/ChangeContactInfo.page"/>
> <page name="RouterMenu"
> specification-path="/WEB-INF/content/routermenu.page"/>
> <page name="RouterAdd"
> specification-path="/WEB-INF/content/routerAdd.page"/>
> <page name="RouterList"
> specification-path="/WEB-INF/content/RouterList.page"/>
> <page name="Router" specification-path="/WEB-INF/content/router.page"/>
> <page name="EthernetPort"
> specification-path="/WEB-INF/content/ethernetport.page"/>
> <page name="SerialPort"
> specification-path="/WEB-INF/content/serialport.page"/>
> <page name="PortInterface"
> specification-path="/WEB-INF/content/interface.page"/>
> <page name="NetLink"
> specification-path="/WEB-INF/content/netlink.page"/>
> <page name="IpLookup"
> specification-path="/WEB-INF/content/iplookup.page"/>
> <page name="Message"
> specification-path="/WEB-INF/content/MessagePage.page"/>
> <page name="Error"
> specification-path="/WEB-INF/content/ErrorPage.page"/>
> <page name="NetworkMenu"
> specification-path="/WEB-INF/content/NetworkMenu.page"/>
> <page name="Network"
> specification-path="/WEB-INF/content/Network.page"/>
> <page name="ReportMenu"
> specification-path="/WEB-INF/content/ReportMenu.page"/>
> <page name="SiteImagesReport"
> specification-path="/WEB-INF/content/SiteImagesReport.page"/>
> <page name="AdminMenu"
> specification-path="/WEB-INF/content/AdminMenu.page"/>
> <page name="SiteImagesAdmin"
> specification-path="/WEB-INF/content/SiteImagesAdmin.page"/>
> <page name="TestError"
> specification-path="/WEB-INF/content/testError.page"/>
>
> <page name="Login" specification-path="/WEB-INF/content/Login.page"/>
> <page name="LoginError"
> specification-path="/WEB-INF/content/LoginFailed.page"/>
> </application>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
Re: Tapestry problem in WLS 8.1
Posted by Vince Marco <vm...@mac.com>.
Changed the <servlet-name>, still no dice. Here is my web.xml and
web.application:
...............................................web.xml:
<?xml version="1.0"?>
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application
2.3//EN" "http://java.sun.com/j2ee/dtds/web-app_2_3.dtd">
<web-app>
<display-name>ncap</display-name>
<servlet>
<servlet-name>web</servlet-name>
<servlet-class>org.apache.tapestry.ApplicationServlet</servlet-class>
<init-param>
<param-name>org.apache.tapestry.application-specification</param-name>
<param-value>/WEB-INF/web.application</param-value>
</init-param>
<load-on-startup>0</load-on-startup>
</servlet>
<servlet> <!-- CISCO IE2100 system queries -->
<servlet-name>UpdateRouterServlet</servlet-name>
<servlet-class>gov.usda.oip.webapp.ncap2.IE2100.UpdateRouterServlet</servlet-class>
<load-on-startup>3</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>web</servlet-name>
<url-pattern>/app</url-pattern>
</servlet-mapping>
<servlet-mapping> <!-- CISCO IE2100 system queries -->
<servlet-name>UpdateRouterServlet</servlet-name>
<url-pattern>/router</url-pattern>
</servlet-mapping>
<session-config>
<session-timeout>30</session-timeout>
</session-config>
<welcome-file-list>
<welcome-file>index.html</welcome-file>
</welcome-file-list>
</web-app>
...............................web.application:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE application PUBLIC
"-//Apache Software Foundation//Tapestry Specification 3.0//EN"
"http://jakarta.apache.org/tapestry/dtd/Tapestry_3_0.dtd">
<application name="ncap"
engine-class="org.apache.tapestry.engine.BaseEngine">
<property
name="org.apache.tapestry.visit-class">gov.usda.oip.webapp.ncap2.Visit</property>
<property
name="org.apache.tapestry.global-class">gov.usda.oip.webapp.ncap2.Global</property>
<library id="contrib"
specification-path="/org/apache/tapestry/contrib/Contrib.library"/>
<component-type type="TabBar"
specification-path="/WEB-INF/components/TabBar.jwc"/>
<component-type type="Site"
specification-path="/WEB-INF/components/Site.jwc"/>
<page name="Home" specification-path="/WEB-INF/content/Home.page"/>
<page name="ChangePassword"
specification-path="/WEB-INF/content/ChangePassword.page"/>
<page name="ChangeContact"
specification-path="/WEB-INF/content/ChangeContactInfo.page"/>
<page name="RouterMenu"
specification-path="/WEB-INF/content/routermenu.page"/>
<page name="RouterAdd"
specification-path="/WEB-INF/content/routerAdd.page"/>
<page name="RouterList"
specification-path="/WEB-INF/content/RouterList.page"/>
<page name="Router" specification-path="/WEB-INF/content/router.page"/>
<page name="EthernetPort"
specification-path="/WEB-INF/content/ethernetport.page"/>
<page name="SerialPort"
specification-path="/WEB-INF/content/serialport.page"/>
<page name="PortInterface"
specification-path="/WEB-INF/content/interface.page"/>
<page name="NetLink"
specification-path="/WEB-INF/content/netlink.page"/>
<page name="IpLookup"
specification-path="/WEB-INF/content/iplookup.page"/>
<page name="Message"
specification-path="/WEB-INF/content/MessagePage.page"/>
<page name="Error"
specification-path="/WEB-INF/content/ErrorPage.page"/>
<page name="NetworkMenu"
specification-path="/WEB-INF/content/NetworkMenu.page"/>
<page name="Network"
specification-path="/WEB-INF/content/Network.page"/>
<page name="ReportMenu"
specification-path="/WEB-INF/content/ReportMenu.page"/>
<page name="SiteImagesReport"
specification-path="/WEB-INF/content/SiteImagesReport.page"/>
<page name="AdminMenu"
specification-path="/WEB-INF/content/AdminMenu.page"/>
<page name="SiteImagesAdmin"
specification-path="/WEB-INF/content/SiteImagesAdmin.page"/>
<page name="TestError"
specification-path="/WEB-INF/content/testError.page"/>
<page name="Login" specification-path="/WEB-INF/content/Login.page"/>
<page name="LoginError"
specification-path="/WEB-INF/content/LoginFailed.page"/>
</application>
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
Re: Tapestry problem in WLS 8.1
Posted by Jim Frederic <ji...@isogen.com>.
Verify that the <servlet-name> of the tapestry ApplicationServlet is
"web" in web.xml. That's where tapestry gets the root name of the
.application file.
-Jim
Vince Marco wrote:
> I'm getting an error when deploying Tapestry webapps to Weblogic 8.1.
> The error is:
>
> org.apache.tapestry.util.xml.DocumentParseException: Resource at
> classpath:WEB-INF/web.application does not exist.
>
> This worked fully in JBoss/Tomcat and I've checked my deployment and
> the web.application file is there. Anybody else run into this?
>
> Vince
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
RE: Tapestry problem in WLS 8.1
Posted by "Howard M. Lewis Ship" <hl...@comcast.net>.
Notice the classpath: prefix. When you specify the location of the web.application file, it is
always on the classpath.
Remove the <init-param> from your web.xml and it'll work fine.
--
Howard M. Lewis Ship
Creator, Tapestry: Java Web Components
http://jakarta.apache.org/tapestry
http://jakarta.apache.org/commons/sandbox/hivemind/
http://javatapestry.blogspot.com
> -----Original Message-----
> From: Vince Marco [mailto:vmarco@mac.com]
> Sent: Tuesday, November 18, 2003 1:28 PM
> To: Tapestry users
> Subject: Tapestry problem in WLS 8.1
>
>
> I'm getting an error when deploying Tapestry webapps to
> Weblogic 8.1.
> The error is:
>
> org.apache.tapestry.util.xml.DocumentParseException: Resource
> at classpath:WEB-INF/web.application does not exist.
>
> This worked fully in JBoss/Tomcat and I've checked my
> deployment and the
> web.application file is there. Anybody else run into this?
>
> Vince
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org