Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Eclipse generates my classes three times in wtpwebapps
Eclipse generates my classes three times in wtpwebapps [message #739392] Mon, 17 October 2011 12:27 Go to next message
Mahmoud Saleh is currently offline Mahmoud SalehFriend
Messages: 23
Registered: September 2011
Junior Member
i had an issue with PrettyFaces framework that a class is found more than once when using eclipse to run application on server (tomcat 6)

what i found is that eclipse generates the class more than once in wtpwebapps:

    \WEB-INF\classes\com\myapp\sample\beans\myclass.class
    WEB-INF\classes\target\classes\com\myapp\sample\beans\myclass.class
    \WEB-INF\classes\target\app-name\WEB-INF\classes\com\myapp\sample\beans\myclass.class




i am using m2eclipse plugin, and using maven as my build tool, maybe there's a configuration wrong with them, or something needed to be configured.



here's the pom file build, maybe i have something wrong with it:

<build>
    		
    	    <finalName>appName</finalName> 

    	    <resources>
    			
    			<resource>
    				<directory>src/main/resources</directory>
    				<filtering>true</filtering>
    			</resource>
    
    		</resources>
    		
    		<plugins>
    			<plugin>
    				<groupId>org.apache.maven.plugins</groupId>
    				<artifactId>maven-compiler-plugin</artifactId>
    				<configuration>
    					<source>1.6</source>
    					<target>1.6</target>
    				</configuration>
    			</plugin>
    			<plugin>
    				<groupId>org.apache.maven.plugins</groupId>
    				<artifactId>maven-dependency-plugin</artifactId>
    				<executions>
    					<execution>
    						<id>install</id>
    						<phase>install</phase>
    						<goals>
    							<goal>sources</goal>
    						</goals>
    					</execution>
    				</executions>
    			</plugin>
    			
    			<plugin>
                   <groupId>org.apache.maven.plugins</groupId>
                   <artifactId>maven-resources-plugin</artifactId>
                   <version>2.5</version>
                   <configuration>
                   <encoding>UTF-8</encoding>
                   </configuration>
                </plugin>
    		</plugins>
    	</build>


any ideas how to fix this issue ?
Re: Eclipse generates my classes three times in wtpwebapps [message #739613 is a reply to message #739392] Mon, 17 October 2011 16:51 Go to previous messageGo to next message
Eric Rizzo is currently offline Eric RizzoFriend
Messages: 3070
Registered: July 2009
Senior Member
There are forum groups dedicated to WTP and m2e - try asking there.


On 10/17/11 8:27 AM, Mahmoud Saleh wrote:
> i had an issue with PrettyFaces framework that a class is found more
> than once when using eclipse to run application on server (tomcat 6)
>
> what i found is that eclipse generates the class more than once in
> wtpwebapps:
>
> \WEB-INF\classes\com\myapp\sample\beans\myclass.class
> WEB-INF\classes\target\classes\com\myapp\sample\beans\myclass.class
> \WEB-INF\classes\target\app-name\WEB-INF\classes\com\myapp\sample\beans\myclass.class
>
>
>
>
> i am using m2eclipse plugin, and using maven as my build tool, maybe
> there's a configuration wrong with them, or something needed to be
> configured.
>
>
>
> here's the pom file build, maybe i have something wrong with it:
>
> <build>
>
> <finalName>appName</finalName>
> <resources>
>
> <resource>
> <directory>src/main/resources</directory>
> <filtering>true</filtering>
> </resource>
> </resources>
>
> <plugins>
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-compiler-plugin</artifactId>
> <configuration>
> <source>1.6</source>
> <target>1.6</target>
> </configuration>
> </plugin>
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-dependency-plugin</artifactId>
> <executions>
> <execution>
> <id>install</id>
> <phase>install</phase>
> <goals>
> <goal>sources</goal>
> </goals>
> </execution>
> </executions>
> </plugin>
>
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-resources-plugin</artifactId>
> <version>2.5</version>
> <configuration>
> <encoding>UTF-8</encoding>
> </configuration>
> </plugin>
> </plugins>
> </build>
>
> any ideas how to fix this issue ?
Re: Eclipse generates my classes three times in wtpwebapps [message #741239 is a reply to message #739613] Wed, 19 October 2011 10:24 Go to previous messageGo to next message
Mahmoud Saleh is currently offline Mahmoud SalehFriend
Messages: 23
Registered: September 2011
Junior Member
@Eric Rizzo where is it ?
Re: Eclipse generates my classes three times in wtpwebapps [message #741268 is a reply to message #741239] Wed, 19 October 2011 11:00 Go to previous messageGo to next message
Russell Bateman is currently offline Russell BatemanFriend
Messages: 3798
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

On 2011.10.19 4:24, Mahmoud Saleh wrote:
> @Eric Rizzo where is it ?

On NNTP, it's news://news.eclipse.org/eclipse.webtools.

In your browser, it's http://www.eclipse.org/forums/, scroll down to
Eclipse Projects, then to Web Tools Project (WTP).

Best of luck.
Re: Eclipse generates my classes three times in wtpwebapps [message #741753 is a reply to message #741268] Wed, 19 October 2011 21:38 Go to previous message
Mahmoud Saleh is currently offline Mahmoud SalehFriend
Messages: 23
Registered: September 2011
Junior Member
ah sorry, didn't see it, thanks
Previous Topic:Can't download older version from archive.eclipse.org
Next Topic:Looking for Papyrus for EAST-ADL version 2.1.8
Goto Forum:
  


Current Time: Tue Mar 19 13:59:22 GMT 2024

Powered by FUDForum. Page generated in 0.03314 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top