You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by JEFF EMMINGER <je...@thig.com> on 2003/10/10 22:10:18 UTC
RE: [newbie] HTTP Status 503 - Servlet Welcome is currently unava
ilable
thanks all for your replies
sorry...the "apps" is a typo: really is http://localhost:8080/Welcome/app
and "home.html" really is "Home.html"
my tomcat logs suggest this is the problem: "javax.servlet.ServletException:
Wrapper cannot find servlet class org.apache.tapestry.ApplicationServlet or
a class it depends on"
here are the files:
[Home.html]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>my first tapestry app</title>
<script type="text/javascript">
</script>
<style type="text/css">
</style>
<meta http-equiv="content-type" content="text/html;
charset=ISO-8859-1">
<meta http-equiv="Pragma" content="no-cache">
</head>
<body>
Hello <span jwcid="user">Username</span>!
</body>
</html>
[Home.java]
package demo;
import org.apache.tapestry.html.BasePage;
public class Home extends BasePage {
private String userName = "Jeff";
public String getUserName() {
return this.userName;
}
}
[Home.page]
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE page-specification PUBLIC
"-//Apache Software Foundation//Tapestry Specification 3.0//EN"
"http://jakarta.apache.org/tapestry/dtd/Tapestry_3_0.dtd">
<page-specification class="demo.Home">
<component id="user" type="Insert">
<binding name="value" expression="userName"/>
</component>
<context-asset name="$template" path="Home.html"/>
</page-specification>
[Welcome.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="Tapestry attempt 1">
<page name="Home" specification-path="Home.page"/>
</application>
[web.xml]
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE web-app PUBLIC
"-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
"http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
<web-app>
<display-name>Tapestry Welcome Application</display-name>
<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>
<welcome-file-list>
<welcome-file>index.html</welcome-file>
</welcome-file-list>
</web-app>
> -----Original Message-----
> From: Jamie Orchard-Hays [SMTP:jamie@dang.com]
> Sent: Friday, October 10, 2003 04:02 PM
> To: Tapestry users
> Subject: Re: [newbie] HTTP Status 503 - Servlet Welcome is currently
> unavailable
>
> remove the s on "apps"....?
>
> http://localhost:8080/Welcome/app
>
>
>
> ----- Original Message -----
> From: "JEFF EMMINGER" <je...@thig.com>
> To: "'Tapestry User List'" <ta...@jakarta.apache.org>
> Sent: Friday, October 10, 2003 3:48 PM
> Subject: [newbie] HTTP Status 503 - Servlet Welcome is currently
> unavailable
>
>
> > ok...I've created Illustration 1 from Harish's "Illustrating
> > Tapestry"...I've placed it in tomcat as such:
> >
> > tomcat/
> > webapps/
> > welcome/
> > home.html
> > web-inf/
> > Home.page
> > web.xml
> > Welcome.application
> > classes/
> > Home.class
> >
> > when i go to http://localhost:8080/Welcome/apps i get the error "HTTP
> Status
> > 503 - Servlet Welcome is currently unavailable"
> >
> > anyone know what i'm doing wrong?
> > -jeff
> >
> >
>
>
>
>
CONFIDENTIAL NOTICE: This email including any attachments, contains
confidential information belonging to the sender. It may also be
privileged or otherwise protected by work product immunity or other
legal rules. This information is intended only for the use of the
individual or entity named above. If you are not the intended
recipient, you are hereby notified that any disclosure, copying,
distribution or the taking of any action in reliance on the contents
of this emailed information is strictly prohibited. If you have
received this email in error, please immediately notify us by
reply email of the error and then delete this email immediately.
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
Re: [newbie] HTTP Status 503 - Servlet Welcome is currently unava
ilable
Posted by Harish Krishnaswamy <hk...@comcast.net>.
Here are the things you might want to check.
1. Check if Home.class is under WEB-INF/classes/demo/Home.class
2. Check if the the Tapestry jars and its dependencies are under WEB-INF/lib
-Harish
JEFF EMMINGER wrote:
>thanks all for your replies
>
>sorry...the "apps" is a typo: really is http://localhost:8080/Welcome/app
>and "home.html" really is "Home.html"
>
>my tomcat logs suggest this is the problem: "javax.servlet.ServletException:
>Wrapper cannot find servlet class org.apache.tapestry.ApplicationServlet or
>a class it depends on"
>
>here are the files:
>
>[Home.html]
><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
><html>
> <head>
> <title>my first tapestry app</title>
> <script type="text/javascript">
>
> </script>
>
> <style type="text/css">
>
> </style>
>
> <meta http-equiv="content-type" content="text/html;
>charset=ISO-8859-1">
> <meta http-equiv="Pragma" content="no-cache">
> </head>
>
> <body>
> Hello <span jwcid="user">Username</span>!
> </body>
></html>
>
>[Home.java]
>package demo;
>
>import org.apache.tapestry.html.BasePage;
>
>public class Home extends BasePage {
> private String userName = "Jeff";
>
> public String getUserName() {
> return this.userName;
> }
>}
>
>[Home.page]
><?xml version="1.0" encoding="UTF-8"?>
><!DOCTYPE page-specification PUBLIC
> "-//Apache Software Foundation//Tapestry Specification 3.0//EN"
> "http://jakarta.apache.org/tapestry/dtd/Tapestry_3_0.dtd">
>
><page-specification class="demo.Home">
> <component id="user" type="Insert">
> <binding name="value" expression="userName"/>
> </component>
> <context-asset name="$template" path="Home.html"/>
></page-specification>
>
>[Welcome.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="Tapestry attempt 1">
> <page name="Home" specification-path="Home.page"/>
></application>
>
>[web.xml]
><?xml version="1.0" encoding="ISO-8859-1"?>
><!DOCTYPE web-app PUBLIC
> "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
> "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
>
><web-app>
> <display-name>Tapestry Welcome Application</display-name>
>
> <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>
>
> <welcome-file-list>
> <welcome-file>index.html</welcome-file>
> </welcome-file-list>
></web-app>
>
>
>
>
>>-----Original Message-----
>>From: Jamie Orchard-Hays [SMTP:jamie@dang.com]
>>Sent: Friday, October 10, 2003 04:02 PM
>>To: Tapestry users
>>Subject: Re: [newbie] HTTP Status 503 - Servlet Welcome is currently
>>unavailable
>>
>>remove the s on "apps"....?
>>
>>http://localhost:8080/Welcome/app
>>
>>
>>
>>----- Original Message -----
>>From: "JEFF EMMINGER" <je...@thig.com>
>>To: "'Tapestry User List'" <ta...@jakarta.apache.org>
>>Sent: Friday, October 10, 2003 3:48 PM
>>Subject: [newbie] HTTP Status 503 - Servlet Welcome is currently
>>unavailable
>>
>>
>>
>>
>>>ok...I've created Illustration 1 from Harish's "Illustrating
>>>Tapestry"...I've placed it in tomcat as such:
>>>
>>>tomcat/
>>> webapps/
>>> welcome/
>>> home.html
>>> web-inf/
>>> Home.page
>>> web.xml
>>> Welcome.application
>>> classes/
>>> Home.class
>>>
>>>when i go to http://localhost:8080/Welcome/apps i get the error "HTTP
>>>
>>>
>>Status
>>
>>
>>>503 - Servlet Welcome is currently unavailable"
>>>
>>>anyone know what i'm doing wrong?
>>>-jeff
>>>
>>>
>>>
>>>
>>
>>
>>
>>
>CONFIDENTIAL NOTICE: This email including any attachments, contains
>confidential information belonging to the sender. It may also be
>privileged or otherwise protected by work product immunity or other
>legal rules. This information is intended only for the use of the
>individual or entity named above. If you are not the intended
>recipient, you are hereby notified that any disclosure, copying,
>distribution or the taking of any action in reliance on the contents
>of this emailed information is strictly prohibited. If you have
>received this email in error, please immediately notify us by
>reply email of the error and then delete this email immediately.
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>
>
>
>