You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by luca remi <fr...@gmail.com> on 2012/07/16 23:02:40 UTC
info
Hello,
sorry for my bad english.
I tryed to install Tapestry on jetty but even if jetty work as well, i
can't access to main page of my project because errors 404 are always
returned.
In Tapestry home page is explained to use
"http://localhost:8080/newapp", so according with my project, i use
http://localhost:8080/game . perhaps after running "mvn jetty:run" i
can read this line: application 'app' <version 1.0-SNAPSHOT-DEV>
startup time ....
this is my porn.xml
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://maven.apache.org/POM/4.0.0">
<modelVersion>4.0.0</modelVersion>
<groupId>com.libretitan</groupId>
<artifactId>game</artifactId>
<version>1.0-SNAPSHOT</version>
<packaging>war</packaging>
<name>game Tapestry 5 Application</name>
<dependencies>
<!-- Too set up an application with a database, change the
artifactId below to
tapestry-hibernate, and add a dependency on your JDBC
driver. You'll also
need to add Hibernate configuration files, such as
hibernate.cfg.xml. -->
<dependency>
<groupId>org.apache.tapestry</groupId>
<artifactId>tapestry-core</artifactId>
<version>${tapestry-release-version}</version>
</dependency>
<!-- This adds automatic compression of JavaScript and CSS
when in production mode. -->
<dependency>
<groupId>org.apache.tapestry</groupId>
<artifactId>tapestry-yuicompressor</artifactId>
<version>${tapestry-release-version}</version>
</dependency>
<!-- Uncomment this to add support for file uploads:
<dependency>
<groupId>org.apache.tapestry</groupId>
<artifactId>tapestry-upload</artifactId>
<version>${tapestry-release-version}</version>
</dependency>
-->
<!-- A dependency on either JUnit or TestNG is required, or
the surefire plugin (which runs the tests)
will fail, preventing Maven from packaging the WAR. Tapestry includes
a large number
of testing facilities designed for use with TestNG
(http://testng.org/), so it's recommended. -->
<dependency>
<groupId>org.testng</groupId>
<artifactId>testng</artifactId>
<version>${testng-release-version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.easymock</groupId>
<artifactId>easymock</artifactId>
<version>${easymock-release-version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.apache.tapestry</groupId>
<artifactId>tapestry-test</artifactId>
<version>${tapestry-release-version}</version>
<scope>test</scope>
</dependency>
<!-- Provided by the servlet container, but sometimes
referenced in the application
code. -->
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>servlet-api</artifactId>
<version>${servlet-api-release-version}</version>
<scope>provided</scope>
</dependency>
<!-- Provide dependency to the Tapestry javadoc taglet which
replaces the Maven component report -->
<dependency>
<groupId>org.apache.tapestry</groupId>
<artifactId>tapestry-javadoc</artifactId>
<version>${tapestry-release-version}</version>
<scope>provided</scope>
</dependency>
</dependencies>
<build>
<finalName>game</finalName>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.3.2</version>
<configuration>
<source>1.5</source>
<target>1.5</target>
<optimize>true</optimize>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.7.2</version>
<configuration>
<systemPropertyVariables>
<tapestry.execution-mode>Qa</tapestry.execution-mode>
</systemPropertyVariables>
</configuration>
</plugin>
<!-- Run the application using "mvn jetty:run" -->
<plugin>
<groupId>org.mortbay.jetty</groupId>
<artifactId>maven-jetty-plugin</artifactId>
<version>6.1.16</version>
<configuration>
<!-- Log to the console. -->
<requestLog
implementation="org.mortbay.jetty.NCSARequestLog">
<!-- This doesn't do anything for Jetty, but
is a workaround for a Maven bug
that prevents the requestLog from being set. -->
<append>true</append>
</requestLog>
<systemProperties>
<systemProperty>
<name>tapestry.execution-mode</name>
<value>development</value>
</systemProperty>
</systemProperties>
</configuration>
</plugin>
</plugins>
</build>
<reporting/>
<repositories>
<!-- This repository is only needed when the Tapestry version
is a preview release, rather
than a final release. -->
<repository>
<id>apache-staging</id>
<url>https://repository.apache.org/content/groups/staging/</url>
</repository>
</repositories>
<properties>
<tapestry-release-version>5.3.3</tapestry-release-version>
<servlet-api-release-version>2.5</servlet-api-release-version>
<testng-release-version>5.14.9</testng-release-version>
<easymock-release-version>3.0</easymock-release-version>
</properties>
</project>
regards, Nicola
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: info
Posted by françois facon <fr...@gmail.com>.
Hello
check your <param-name>tapestry.app-package</param-name> in you web.xml
see http://tapestry.apache.org/configuration.html for more details.
I suggest you also to follow http://tapestry.apache.org/getting-started.html
and after to have a look at http://jumpstart.doublenegative.com.au/jumpstart/
regards
2012/7/16 luca remi <fr...@gmail.com>:
> Hello,
> sorry for my bad english.
> I tryed to install Tapestry on jetty but even if jetty work as well, i
> can't access to main page of my project because errors 404 are always
> returned.
> In Tapestry home page is explained to use
> "http://localhost:8080/newapp", so according with my project, i use
> http://localhost:8080/game . perhaps after running "mvn jetty:run" i
> can read this line: application 'app' <version 1.0-SNAPSHOT-DEV>
> startup time ....
> this is my porn.xml
> <project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
> http://maven.apache.org/maven-v4_0_0.xsd"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xmlns="http://maven.apache.org/POM/4.0.0">
> <modelVersion>4.0.0</modelVersion>
> <groupId>com.libretitan</groupId>
> <artifactId>game</artifactId>
> <version>1.0-SNAPSHOT</version>
> <packaging>war</packaging>
> <name>game Tapestry 5 Application</name>
> <dependencies>
> <!-- Too set up an application with a database, change the
> artifactId below to
> tapestry-hibernate, and add a dependency on your JDBC
> driver. You'll also
> need to add Hibernate configuration files, such as
> hibernate.cfg.xml. -->
> <dependency>
> <groupId>org.apache.tapestry</groupId>
> <artifactId>tapestry-core</artifactId>
> <version>${tapestry-release-version}</version>
> </dependency>
>
> <!-- This adds automatic compression of JavaScript and CSS
> when in production mode. -->
> <dependency>
> <groupId>org.apache.tapestry</groupId>
> <artifactId>tapestry-yuicompressor</artifactId>
> <version>${tapestry-release-version}</version>
> </dependency>
>
> <!-- Uncomment this to add support for file uploads:
>
> <dependency>
> <groupId>org.apache.tapestry</groupId>
> <artifactId>tapestry-upload</artifactId>
> <version>${tapestry-release-version}</version>
> </dependency>
>
> -->
>
> <!-- A dependency on either JUnit or TestNG is required, or
> the surefire plugin (which runs the tests)
> will fail, preventing Maven from packaging the WAR. Tapestry includes
> a large number
> of testing facilities designed for use with TestNG
> (http://testng.org/), so it's recommended. -->
> <dependency>
> <groupId>org.testng</groupId>
> <artifactId>testng</artifactId>
> <version>${testng-release-version}</version>
> <scope>test</scope>
> </dependency>
>
> <dependency>
> <groupId>org.easymock</groupId>
> <artifactId>easymock</artifactId>
> <version>${easymock-release-version}</version>
> <scope>test</scope>
> </dependency>
>
> <dependency>
> <groupId>org.apache.tapestry</groupId>
> <artifactId>tapestry-test</artifactId>
> <version>${tapestry-release-version}</version>
> <scope>test</scope>
> </dependency>
>
> <!-- Provided by the servlet container, but sometimes
> referenced in the application
> code. -->
> <dependency>
> <groupId>javax.servlet</groupId>
> <artifactId>servlet-api</artifactId>
> <version>${servlet-api-release-version}</version>
> <scope>provided</scope>
> </dependency>
>
> <!-- Provide dependency to the Tapestry javadoc taglet which
> replaces the Maven component report -->
> <dependency>
> <groupId>org.apache.tapestry</groupId>
> <artifactId>tapestry-javadoc</artifactId>
> <version>${tapestry-release-version}</version>
> <scope>provided</scope>
> </dependency>
>
> </dependencies>
> <build>
> <finalName>game</finalName>
> <plugins>
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-compiler-plugin</artifactId>
> <version>2.3.2</version>
> <configuration>
> <source>1.5</source>
> <target>1.5</target>
> <optimize>true</optimize>
> </configuration>
> </plugin>
>
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-surefire-plugin</artifactId>
> <version>2.7.2</version>
> <configuration>
> <systemPropertyVariables>
> <tapestry.execution-mode>Qa</tapestry.execution-mode>
> </systemPropertyVariables>
> </configuration>
> </plugin>
>
> <!-- Run the application using "mvn jetty:run" -->
> <plugin>
> <groupId>org.mortbay.jetty</groupId>
> <artifactId>maven-jetty-plugin</artifactId>
> <version>6.1.16</version>
> <configuration>
> <!-- Log to the console. -->
> <requestLog
> implementation="org.mortbay.jetty.NCSARequestLog">
> <!-- This doesn't do anything for Jetty, but
> is a workaround for a Maven bug
> that prevents the requestLog from being set. -->
> <append>true</append>
> </requestLog>
> <systemProperties>
> <systemProperty>
> <name>tapestry.execution-mode</name>
> <value>development</value>
> </systemProperty>
> </systemProperties>
> </configuration>
> </plugin>
> </plugins>
> </build>
>
> <reporting/>
>
> <repositories>
>
> <!-- This repository is only needed when the Tapestry version
> is a preview release, rather
> than a final release. -->
> <repository>
> <id>apache-staging</id>
> <url>https://repository.apache.org/content/groups/staging/</url>
> </repository>
> </repositories>
>
> <properties>
> <tapestry-release-version>5.3.3</tapestry-release-version>
> <servlet-api-release-version>2.5</servlet-api-release-version>
> <testng-release-version>5.14.9</testng-release-version>
> <easymock-release-version>3.0</easymock-release-version>
> </properties>
> </project>
> regards, Nicola
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org