You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Angelo Chen <an...@yahoo.com.hk> on 2007/08/19 19:24:36 UTC
using Intellij with Tapestry
Hi,
I follow the following tutorial to learn Tapestry:
http://www.devshed.com/c/a/Apache/Creating-Your-First-Tapestry-Project/3/
the above sample is based on NetBeans, it works. I tried exactly the same
steps in Intellij IDEA, but got an error when run:
HTTP Status 404 - Servlet FirstTapestry is not available
I have this web.xml:
<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
<servlet>
<servlet-name>FirstTapestry</servlet-name>
<servlet-class>org.apache.tapestry.ApplicationServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>FirstTapestry</servlet-name>
<url-pattern>/app</url-pattern>
</servlet-mapping>
<session-config>
<session-timeout>
30
</session-timeout>
</session-config>
<welcome-file-list>
<welcome-file>app</welcome-file>
</welcome-file-list>
</web-app>
could not figure out what's wrong, it works with Netbeans, but not IDEA. any
help will be appreciated.
--
View this message in context: http://www.nabble.com/using-Intellij-with-Tapestry-tf4294216.html#a12224231
Sent from the Tapestry - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: using Intellij with Tapestry
Posted by Hugo Palma <hu...@gmail.com>.
Are you sure you have Tapestry jar in you web module classpath ?
In the web.xml does "org.apache.tapestry.ApplicationServlet" show up in
red ?
Angelo Chen wrote:
> Hi,
>
> I follow the following tutorial to learn Tapestry:
> http://www.devshed.com/c/a/Apache/Creating-Your-First-Tapestry-Project/3/
> the above sample is based on NetBeans, it works. I tried exactly the same
> steps in Intellij IDEA, but got an error when run:
>
> HTTP Status 404 - Servlet FirstTapestry is not available
>
> I have this web.xml:
> <?xml version="1.0" encoding="UTF-8"?>
> <web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
> http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
> <servlet>
> <servlet-name>FirstTapestry</servlet-name>
>
> <servlet-class>org.apache.tapestry.ApplicationServlet</servlet-class>
> <load-on-startup>1</load-on-startup>
> </servlet>
>
> <servlet-mapping>
> <servlet-name>FirstTapestry</servlet-name>
> <url-pattern>/app</url-pattern>
> </servlet-mapping>
>
>
>
> <session-config>
> <session-timeout>
> 30
> </session-timeout>
> </session-config>
> <welcome-file-list>
> <welcome-file>app</welcome-file>
> </welcome-file-list>
> </web-app>
>
> could not figure out what's wrong, it works with Netbeans, but not IDEA. any
> help will be appreciated.
>
>