Hello I am having an issue using the following setup:

IDEA 9.03
JDK 6.0.24
Maven 2
Tomcat 7.05

Basically I create a pom project for the sole purpose as a plugin dependency 
for my faces 2 (I plan on having 2 different such projects for JEE and plain 
servlet containers respectively.
I am running a sample project successfully using the following pom from the CLI 
(command: mvn package tomcat:deploy) with my project configured to use a local 
tomcat instance.
At this point everything works, but removing/refactoring the following:

========================================================
<dependency>
                <groupId>com.sun.faces</groupId>
                <artifactId>jsf-api</artifactId>
                <version>2.0.3</version>
                <scope>compile</scope>
            </dependency>
            <dependency>
                <groupId>com.sun.faces</groupId>
                <artifactId>jsf-impl</artifactId>
                <version>2.0.3</version>
                <scope>compile</scope>
            </dependency>
=======================================================

From:
========================================================
<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/maven-v4_0_0.xsd";>
    <modelVersion>4.0.0</modelVersion>
    <groupId>org.jarbar.the</groupId>
    <artifactId>Jerel-Baker</artifactId>
    <packaging>war</packaging>
    <version>1.0-SNAPSHOT</version>
    <name>Jerel-Baker</name>
    <url>http://thejarbar.org/JerelBaker</url>
    <dependencies>
        <dependency>
            <groupId>junit</groupId>
            <artifactId>junit</artifactId>
            <version>3.8.1</version>
            <scope>test</scope>
        </dependency>
        
        <dependency>
                <groupId>com.sun.faces</groupId>
                <artifactId>jsf-api</artifactId>
                <version>2.0.3</version>
                <scope>compile</scope>
            </dependency>
            <dependency>
                <groupId>com.sun.faces</groupId>
                <artifactId>jsf-impl</artifactId>
                <version>2.0.3</version>
                <scope>compile</scope>
            </dependency>
    </dependencies>
    <build>
        <finalName>Jerel-Baker</finalName>
        <pluginManagement>
            <plugins>
                <plugin>
                    <groupId>org.codehaus.mojo</groupId>
                    <artifactId>tomcat-maven-plugin</artifactId>
                    <configuration>
                        <url>http://localhost:8080/manager/text</url>
                        <server>local_tomcat</server>
                        <path>/${project.build.finalName}</path>
                    </configuration>                   
                </plugin>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-compiler-plugin</artifactId>
                    <version>2.3.1</version>
                    <configuration>
                        <source>1.6</source>
                        <target>1.6</target>
                    </configuration>
                </plugin>
            </plugins>
        </pluginManagement>
    </build>
</project>
===========================================================
Into it’s own pom project and then installing it to local repo and then 
including that pom project as a depandancy,
causes failure when accessing the project in browser.

Something along the lines of duplicate TLD, but this tomcat it seems!

I look at my WEB-INF/lib and I see duplicate jsf-api and jsf-impl jars which I 
suspect is causing this. 
Is there a reason why I am getting these duplicate jars that don’t 
match(versions)?

Another thing that is worth noting is that the FacesServlet is not found in 
classpath as is evident in IDEA but I am using exact same dependencies and only 
putting them into own pom project!
Is it IDEA or maven?

I can do a youtube video if this is not clear....

Reply via email to