You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Travis Reeder <tr...@ecommstats.com> on 2004/03/03 19:17:59 UTC

Newbie: i get this Servlet Welcome is not available when trying to run

I get a 404 error report when trying to access my app, and I just can't 
see what I'm doing wrong.  All I am trying to do is show a static page 
called Home.  I've tried to copy what the workbench is using, but it's 
just not getting the org.apache.tapestry.ApplicationServlet rolling.  
Has anyone else had this problem?

Info below:

*type* Status report

*message* _Servlet Welcome is not available_

*description* _The requested resource (Servlet Welcome is not available) 
is not available._


-----------------------------------------

web.xml
<?xml version="1.0"?>
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 
2.3//EN"
"http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app>
    <display-name>Tapestry Workbench Example</display-name>

    <filter>
        <filter-name>redirect</filter-name>
        <filter-class>org.apache.tapestry.RedirectFilter</filter-class>
    </filter>

    <filter-mapping>
        <filter-name>redirect</filter-name>
        <url-pattern>/</url-pattern>
    </filter-mapping>

    <servlet>
        <servlet-name>Welcome</servlet-name>
        
<servlet-class>org.apache.tapestry.ApplicationServlet</servlet-class>
        <load-on-startup>0</load-on-startup>
    </servlet>

    <servlet-mapping>
        <servlet-name>Welcome</servlet-name>
        <url-pattern>/app</url-pattern>
    </servlet-mapping>

    <session-config>
        <session-timeout>15</session-timeout>
    </session-config>

    <!--taglib>
        
<taglib-uri>http://jakarta.apache.org/tapestry/tld/tapestry_1_0.tld</taglib-uri>
        
<taglib-location>/WEB-INF/lib/tapestry-3.0-beta-4.jar</taglib-location>
    </taglib-->
</web-app>

--------------------------------------------------------
<?xml version="1.0"?>
<!--$Id: workbench.application,v 1.4 2003/06/29 18:11:13 mindbridge Exp $-->
<!DOCTYPE application PUBLIC
  "-//Apache Software Foundation//Tapestry Specification 3.0//EN"
  "http://jakarta.apache.org/tapestry/dtd/Tapestry_3_0.dtd">

<application name="Tapestry Component Workbench">
  <!--property name="org.apache.tapestry.visit-class" 
value="org.apache.tapestry.workbench.Visit"/>
  <property name="org.apache.tapestry.template-encoding" 
value="ISO-8859-1"/>

  <extension name="org.apache.tapestry.request-decoder" 
class="org.apache.tapestry.workbench.RequestDecoder"/-->

  <service name="home" 
class="com.alinion.governance.tapestry.WelcomeHomeService"/>
  <!--service name="chart" 
class="org.apache.tapestry.workbench.chart.ChartService"/-->

  <library id="contrib" 
specification-path="/org/apache/tapestry/contrib/Contrib.library"/>

</application>



Re: Newbie: i get this Servlet Welcome is not available when trying to run

Posted by Travis Reeder <tr...@ecommstats.com>.
Disregard, my didn't put the libs/ext/ jars in place.  doh!

Travis

Travis Reeder wrote:

> I get a 404 error report when trying to access my app, and I just 
> can't see what I'm doing wrong.  All I am trying to do is show a 
> static page called Home.  I've tried to copy what the workbench is 
> using, but it's just not getting the 
> org.apache.tapestry.ApplicationServlet rolling.  Has anyone else had 
> this problem?
>
> Info below:
>
> *type* Status report
>
> *message* _Servlet Welcome is not available_
>
> *description* _The requested resource (Servlet Welcome is not 
> available) is not available._
>
>
> -----------------------------------------
>
> web.xml
> <?xml version="1.0"?>
> <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web 
> Application 2.3//EN"
> "http://java.sun.com/dtd/web-app_2_3.dtd">
> <web-app>
>    <display-name>Tapestry Workbench Example</display-name>
>
>    <filter>
>        <filter-name>redirect</filter-name>
>        <filter-class>org.apache.tapestry.RedirectFilter</filter-class>
>    </filter>
>
>    <filter-mapping>
>        <filter-name>redirect</filter-name>
>        <url-pattern>/</url-pattern>
>    </filter-mapping>
>
>    <servlet>
>        <servlet-name>Welcome</servlet-name>
>        
> <servlet-class>org.apache.tapestry.ApplicationServlet</servlet-class>
>        <load-on-startup>0</load-on-startup>
>    </servlet>
>
>    <servlet-mapping>
>        <servlet-name>Welcome</servlet-name>
>        <url-pattern>/app</url-pattern>
>    </servlet-mapping>
>
>    <session-config>
>        <session-timeout>15</session-timeout>
>    </session-config>
>
>    <!--taglib>
>        
> <taglib-uri>http://jakarta.apache.org/tapestry/tld/tapestry_1_0.tld</taglib-uri> 
>
>        
> <taglib-location>/WEB-INF/lib/tapestry-3.0-beta-4.jar</taglib-location>
>    </taglib-->
> </web-app>
>
> --------------------------------------------------------
> <?xml version="1.0"?>
> <!--$Id: workbench.application,v 1.4 2003/06/29 18:11:13 mindbridge 
> Exp $-->
> <!DOCTYPE application PUBLIC
>  "-//Apache Software Foundation//Tapestry Specification 3.0//EN"
>  "http://jakarta.apache.org/tapestry/dtd/Tapestry_3_0.dtd">
>
> <application name="Tapestry Component Workbench">
>  <!--property name="org.apache.tapestry.visit-class" 
> value="org.apache.tapestry.workbench.Visit"/>
>  <property name="org.apache.tapestry.template-encoding" 
> value="ISO-8859-1"/>
>
>  <extension name="org.apache.tapestry.request-decoder" 
> class="org.apache.tapestry.workbench.RequestDecoder"/-->
>
>  <service name="home" 
> class="com.alinion.governance.tapestry.WelcomeHomeService"/>
>  <!--service name="chart" 
> class="org.apache.tapestry.workbench.chart.ChartService"/-->
>
>  <library id="contrib" 
> specification-path="/org/apache/tapestry/contrib/Contrib.library"/>
>
> </application>
>
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org