You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by "Brooks, Aiyana [CIB-IT]" <ai...@citigroup.com> on 2006/11/03 19:54:40 UTC

Need help getting started

Hi,

I am new to Tapestry and am having some trouble getting the basic
(nothing dynamic) "Hello World" application to run. Whenever I run the
application I get the following error:

Unable to process client request: Failure enhancing class
org.apache.tapestry.html.BasePage: java.lang.StringBuffer: method
append(Ljava/lang/StringBuffer;)Ljava/lang/StringBuffer; not found

I am using WSAD 5.1 and I have the latest jdk and Tapestry versions
installed. Is there a configuration file that I might be missing? Can
anyone suggest how to fix this error? Below are the main files created
for this application.

Thanks and regards,

======
web.xml
======

<?xml version="1.0" encoding="UTF-8"?>
<!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 id="WebApp">
	<display-name>HelloWorld</display-name>
	<servlet>
		<servlet-name>HelloWorld</servlet-name>
		<display-name>ApplicationServlet</display-name>
	
<servlet-class>org.apache.tapestry.ApplicationServlet</servlet-class>
		<load-on-startup>1</load-on-startup>
	</servlet>
	<servlet-mapping>
		<servlet-name>HelloWorld</servlet-name>
		<url-pattern>/app</url-pattern>
	</servlet-mapping>
</web-app>

=====
Home.page
=====

<?xml version="1.0"?>
<!DOCTYPE page-specification PUBLIC 
	"-//Apache Software Foundation//Tapestry Specification 4.0//EN"
	"http://jakarta.apache.org/tapestry/dtd/Tapestry_4_0.dtd" >

	<page-specification>
	</page-specification>
	
=====
application.xml
=====

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE application PUBLIC "-//Sun Microsystems, Inc.//DTD J2EE
Application 1.3//EN" "http://java.sun.com/dtd/application_1_3.dtd">
<application id="Application_ID" >
	<display-name>HelloWorldEAR</display-name>
	<module id="WebModule_1162501725198">
		<web>
			<web-uri>HelloWorld.war</web-uri>
			<context-root>HelloWorld</context-root>
		</web> 
	</module>
</application>
	<page-specification>
	</page-specification>

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


Re: Need help getting started

Posted by andyhot <an...@di.uoa.gr>.
Brooks, Aiyana [CIB-IT] wrote:
> Hi,
>
> I am new to Tapestry and am having some trouble getting the basic
> (nothing dynamic) "Hello World" application to run. Whenever I run the
> application I get the following error:
>
> Unable to process client request: Failure enhancing class
> org.apache.tapestry.html.BasePage: java.lang.StringBuffer: method
> append(Ljava/lang/StringBuffer;)Ljava/lang/StringBuffer; not found
>   


Check the app-servers configured jdk...
The method missing was introduced in jdk 1.4

> I am using WSAD 5.1 and I have the latest jdk and Tapestry versions
> installed. Is there a configuration file that I might be missing? Can
> anyone suggest how to fix this error? Below are the main files created
> for this application.
>
> Thanks and regards,
>
> ======
> web.xml
> ======
>
> <?xml version="1.0" encoding="UTF-8"?>
> <!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 id="WebApp">
> 	<display-name>HelloWorld</display-name>
> 	<servlet>
> 		<servlet-name>HelloWorld</servlet-name>
> 		<display-name>ApplicationServlet</display-name>
> 	
> <servlet-class>org.apache.tapestry.ApplicationServlet</servlet-class>
> 		<load-on-startup>1</load-on-startup>
> 	</servlet>
> 	<servlet-mapping>
> 		<servlet-name>HelloWorld</servlet-name>
> 		<url-pattern>/app</url-pattern>
> 	</servlet-mapping>
> </web-app>
>
> =====
> Home.page
> =====
>
> <?xml version="1.0"?>
> <!DOCTYPE page-specification PUBLIC 
> 	"-//Apache Software Foundation//Tapestry Specification 4.0//EN"
> 	"http://jakarta.apache.org/tapestry/dtd/Tapestry_4_0.dtd" >
>
> 	<page-specification>
> 	</page-specification>
> 	
> =====
> application.xml
> =====
>
> <?xml version="1.0" encoding="UTF-8"?>
> <!DOCTYPE application PUBLIC "-//Sun Microsystems, Inc.//DTD J2EE
> Application 1.3//EN" "http://java.sun.com/dtd/application_1_3.dtd">
> <application id="Application_ID" >
> 	<display-name>HelloWorldEAR</display-name>
> 	<module id="WebModule_1162501725198">
> 		<web>
> 			<web-uri>HelloWorld.war</web-uri>
> 			<context-root>HelloWorld</context-root>
> 		</web> 
> 	</module>
> </application>
> 	<page-specification>
> 	</page-specification>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>
>
>   


-- 
Andreas Andreou - andyhot@apache.org - http://andyhot.di.uoa.gr
Tapestry / Tacos developer
Open Source / J2EE Consulting 


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