struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From José Antonio Delgado Trujillo <jadt...@gmail.com>
Subject Re: Annotation example
Date Mon, 09 Nov 2015 17:50:03 GMT
OK,
In the example annotations of Getting started tutorial the POM set the default

All the jsp are into /WEB-INF/content



> On 08 Nov 2015, at 23:47, Martin Gainty <mgainty@hotmail.com> wrote:
> 
> <webAppSourceDirectory> – By default, this is set to ${basedir}/src/main/webapp.
If your static sources are in a different location, set this parameter accordingly.https://wiki.eclipse.org/Jetty/Feature/Jetty_Maven_Plugin#Multiple_webapp_root_directories
> 
> ?
> Saludos
> Martín                                                                             
                       
> 
> 
> 
>> From: jadtmat@gmail.com
>> Subject: Annotation example
>> Date: Sun, 8 Nov 2015 21:03:13 +0000
>> To: user@struts.apache.org
>> 
>> I’ve problem with the annotation example.
>> 
>> I’ve added the convention-plugin dependency in my POM.
>> But when i put localhost:8080/annotations/index tsp the result is NOT FOUND PAGE
>> 
>> However when i copy the index.jsp in /src/main/webapp all is correct.
>> 
>> I’m using wildly 9 as server.
>> My POM is:
>> <?xml version="1.0" encoding="UTF-8"?>
>> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>>         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
>>    <modelVersion>4.0.0</modelVersion>
>>    <groupId>pfc.struts2</groupId>
>>    <artifactId>annotations</artifactId>
>>    <version>0.0.1-SNAPSHOT</version>
>>    <packaging>war</packaging>
>> 
>>    <properties>
>>        <struts2.version>2.5-BETA2</struts2.version>
>>        <log4j2.version>2.3</log4j2.version>
>>        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
>>    </properties>
>> 
>>    <dependencies>
>> 
>> 
>> 
>> 
>>        <dependency>
>>        	<groupId>org.apache.struts</groupId>
>>        	<artifactId>struts2-convention-plugin</artifactId>
>>        	<version>2.5-BETA2</version>
>>        </dependency>
>>        <dependency>
>>        	<groupId>javax.servlet</groupId>
>>        	<artifactId>javax.servlet-api</artifactId>
>>        	<version>3.1.0</version>
>>        </dependency>
>>        <dependency>
>>        	<groupId>org.apache.struts</groupId>
>>        	<artifactId>struts2-core</artifactId>
>>        	<version>2.5-BETA2</version>
>>        </dependency>
>>        <dependency>
>>        	<groupId>org.apache.logging.log4j</groupId>
>>        	<artifactId>log4j-core</artifactId>
>>        	<version>2.3</version>
>>        </dependency>
>>    </dependencies>
>> 
>>    <build>
>>        <plugins>
>>            <plugin>
>>                <artifactId>maven-compiler-plugin</artifactId>
>>                <version>3.3</version>
>>                <configuration>
>>                    <encoding>UTF-8</encoding>
>>                    <source>1.8</source>
>>                    <target>1.8</target>
>>                </configuration>
>>            </plugin>
>>            <plugin>
>>                <groupId>org.mortbay.jetty</groupId>
>>                <artifactId>jetty-maven-plugin</artifactId>
>>                <version>8.1.16.v20140903</version>
>>                <configuration>
>>                    <stopKey>CTRL+C</stopKey>
>>                    <stopPort>8999</stopPort>
>>                    <systemProperties>
>>                        <systemProperty>
>>                            <name>xwork.loggerFactory</name>
>>                            <value>com.opensymphony.xwork2.util.logging.log4j2.Log4j2LoggerFactory</value>
>>                        </systemProperty>
>>                    </systemProperties>
>>                    <scanIntervalSeconds>10</scanIntervalSeconds>
>>                    <webAppSourceDirectory>${basedir}/src/main/webapp/</webAppSourceDirectory>
>>                    <webAppConfig>
>>                        <descriptor>${basedir}/src/main/webapp/WEB-INF/web.xml</descriptor>
>>                    </webAppConfig>
>>                </configuration>
>>            </plugin>
>>        </plugins>
>>    </build>
>>    <name>Annotations</name>
>>    <description>Example Struts2 Application using annotationsand convention
plugin.</description>
>> </project>
>> 
>> What is happening?
> 		 	   		  


Mime
View raw message