Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [m2e-users] problems with m2eclipse & wtp

Ok, I did as suggested, starting from a new Indigo installation, installed:
	- m2e - Maven Integration for Eclipse, version 1.0.100...
	- Maven Integration for WTP, version 0.14.0...
	- JBoss Tools 3.3...

I created a new project, TestWar2, from the maven artifact.  I had to do this external from Eclipse as it did not know about the archtype and was unable to add it (it said the location was empty):

mvn archetype:generate -DarchetypeArtifactId=jboss-javaee6-webapp -DarchetypeGroupId=org.jboss.spec.archetypes -DarchetypeVersion=7.0.0.Final -DarchetypeRepository=http://repository.jboss.org/nexus/content/groups/public

I then created a new Eclipse Project in the location where the new project was created.  The project did not build by default, I had to configure the project facets as a JBoss Maven Integratation, at which point it built.  I then made the project deployable.

Upon starting JBoss 7.0.1 I get the same error:

15:26:36,532 ERROR [org.jboss.as.deployment] (DeploymentScanner-threads - 1) The deployment scanner found a directory named META-INF that was not inside a directory whose name ends with .ear, .jar, .rar, .sar or .war. This is likely the result of unzipping an archive directly inside the C:\java\jboss\jboss-as-7.0.1.Final\standalone\deployments directory, which is a user error. The META-INF directory will not be scanned for deployments, but it is possible that the scanner mayfind other files from the unzipped archive and attempt to deploy them, leading to errors.

15:26:36,533 ERROR [org.jboss.as.deployment] (DeploymentScanner-threads - 1) The deployment scanner found a directory named WEB-INF that was not inside a directory whose name ends with .ear, .jar, .rar, .sar or .war. This is likely the result of unzipping an archive directly inside the C:\java\jboss\jboss-as-7.0.1.Final\standalone\deployments directory, which is a user error. The WEB-INF directory will not be scanned for deployments, but it is possible that the scanner mayfind other files from the unzipped archive and attempt to deploy them, leading to errors.

15:26:36,565 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-4) Starting deployment of "TestWar2"
15:26:36,657 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-2) MSC00001: Failed to start service jboss.deployment.unit.TestWar2.PARSE: org.jboss.msc.service.StartException in service jboss.deployment.unit.TestWar2.PARSE: Failed to process phase PARSE of deployment "TestWar2"

-----Original Message-----
From: m2e-users-bounces@xxxxxxxxxxx [mailto:m2e-users-bounces@xxxxxxxxxxx] On Behalf Of m2e-users-request@xxxxxxxxxxx
Sent: Thursday, October 13, 2011 11:35 AM
To: m2e-users@xxxxxxxxxxx
Subject: m2e-users Digest, Vol 33, Issue 25

Send m2e-users mailing list submissions to
	m2e-users@xxxxxxxxxxx

To subscribe or unsubscribe via the World Wide Web, visit
	https://dev.eclipse.org/mailman/listinfo/m2e-users
or, via email, send a message with subject or body 'help' to
	m2e-users-request@xxxxxxxxxxx

You can reach the person managing the list at
	m2e-users-owner@xxxxxxxxxxx

When replying, please edit your Subject line so it is more specific than "Re: Contents of m2e-users digest..."


Today's Topics:

   1. Re: problems with m2eclipse & wtp (Ackerman, Mitchell)
   2. Re: problems with m2eclipse & wtp (Fred Bricon)


----------------------------------------------------------------------

Message: 1
Date: Thu, 13 Oct 2011 17:18:59 +0000
From: "Ackerman, Mitchell" <Mitchell.Ackerman@xxxxxxx>
To: "m2e-users@xxxxxxxxxxx" <m2e-users@xxxxxxxxxxx>
Subject: Re: [m2e-users] problems with m2eclipse & wtp
Message-ID:
	<F4056758733A4647AE8E6E17CCA9C4A00C8D399A@xxxxxxxxxxxxxxxxxxxxxxxxxx>
Content-Type: text/plain; charset="us-ascii"

Try as I might, I can't get a maven project deployed to my app server - Jboss 7 - successfully using m2eclipse and WTP.

My environment is

-          Eclipse Indigo,

-          Maven Integration for WTP 0.13.1...

-          Maven integration for eclipse 1.0.1...

-          M2e connector for mavenarchiver pom properties 0.14.0...

I have attempted to include the latest version of m2eclipse but it is incompatible with WTP, which requires 1.0.1.  I have also tried other versions, but all with the same result.

I have a Maven web project that bundles web content in the standard maven manner, i.e., structured like this:

TestWar

-          Src

-          Target

o   Classes

o   Maven-archiver

o   TestWar-0.0.1-SNAPSHOT

o   TestWar-0.0.1-SNAPSHOT.war

There is nothing else in the source, though the pom depends upon other projects, here is a simplified version:

<?xml version="1.0"?>
<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";>

                <groupId>com.pgi</groupId>
                <artifactId>TestWar</artifactId>
                <version>0.0.1-SNAPSHOT</version>
                <modelVersion>4.0.0</modelVersion>
                <packaging>war</packaging>

                <dependencies>
                .
                .
                .
                </dependencies>

                <build>
                                <plugins>
                                                <plugin>
                                                                <artifactId>maven-war-plugin</artifactId>
                                                                <version>2.1.1</version>
                                                                <configuration>
                                                                                <failOnMissingWebXml>false</failOnMissingWebXml>
                                                                </configuration>
                                                </plugin>
                                </plugins>
                </build>
</project>

If I mark the project as deployable, it attempts to do so but ends up attempting to deploy 2 war files, one for the project and one for the embedded war file.  The output includes:

11:00:33,453 ERROR [org.jboss.as.deployment] (DeploymentScanner-threads - 1) The deployment scanner found a directory named META-INF that was not inside a directory whose name ends with .ear, .jar, .rar, .sar or .war. This is likely the result of unzipping an archive directly inside the C:\java\jboss\jboss-as-7.0.1.Final\standalone\deployments directory, which is a user error. The META-INF directory will not be scanned for deployments, but it is possible that the scanner mayfind other files from the unzipped archive and attempt to deploy them, leading to errors.

11:00:33,454 ERROR [org.jboss.as.deployment] (DeploymentScanner-threads - 1) The deployment scanner found a directory named WEB-INF that was not inside a directory whose name ends with .ear, .jar, .rar, .sar or .war. This is likely the result of unzipping an archive directly inside the C:\java\jboss\jboss-as-7.0.1.Final\standalone\deployments directory, which is a user error. The WEB-INF directory will not be scanned for deployments, but it is possible that the scanner mayfind other files from the unzipped archive and attempt to deploy them, leading to errors.

11:00:33,477 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-1) Starting deployment of "TestWar-0.0.1-SNAPSHOT.war"
11:00:33,478 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-2) Starting deployment of "TestWar"

I have tried all kind of combinations and permutations of plugins and project configuration, to no avail.  My questions are:

Should this work?
If so, what am I doing wrong?

Thanks, Mitchell
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://dev.eclipse.org/mailman/private/m2e-users/attachments/20111013/4554b14f/attachment.htm>

------------------------------

Message: 2
Date: Thu, 13 Oct 2011 19:35:03 +0200
From: Fred Bricon <fbricon@xxxxxxxxx>
To: Maven Integration for Eclipse users mailing list
	<m2e-users@xxxxxxxxxxx>
Subject: Re: [m2e-users] problems with m2eclipse & wtp
Message-ID:
	<CAG2ouxQirJryPr10kp-LNp5=PynW8iARm=+vMeCL=r1YcBehcg@xxxxxxxxxxxxxx>
Content-Type: text/plain; charset="utf-8"

m2e-wtp 0.14.0 is compatible with the lastet m2e version. See https://github.com/sonatype/m2eclipse-wtp/wiki
If anything fails, try  using a fresh Eclipse install.

You can try creating a project using the org.jboss.spec.archetypes:
jboss-javaee6-webapp:7.0.0.Final archetype. It's been validated working with m2e-wtp and AS7

2011/10/13 Ackerman, Mitchell <Mitchell.Ackerman@xxxxxxx>

>  Try as I might, I can?t get a maven project deployed to my app server ?
> Jboss 7 ? successfully using m2eclipse and WTP.****
>
> ** **
>
> My environment is ****
>
> **-          **Eclipse Indigo, ****
>
> **-          **Maven Integration for WTP 0.13.1?****
>
> **-          **Maven integration for eclipse 1.0.1?****
>
> **-          **M2e connector for mavenarchiver pom properties 0.14.0?****
>
> ** **
>
> I have attempted to include the latest version of m2eclipse but it is 
> incompatible with WTP, which requires 1.0.1.  I have also tried other 
> versions, but all with the same result.****
>
> ** **
>
> I have a Maven web project that bundles web content in the standard 
> maven manner, i.e., structured like this:****
>
> ** **
>
> TestWar****
>
> **-          **Src ****
>
> **-          **Target****
>
> **o   **Classes****
>
> **o   **Maven-archiver****
>
> **o   **TestWar-0.0.1-SNAPSHOT****
>
> **o   **TestWar-0.0.1-SNAPSHOT.war****
>
> ** **
>
> There is nothing else in the source, though the pom depends upon other 
> projects, here is a simplified version:****
>
> ** **
>
> <?xml version="1.0"?>****
>
> <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";>****
>
> ** **
>
>                 <groupId>com.pgi</groupId>****
>
>                 <artifactId>TestWar</artifactId>****
>
>                 <version>0.0.1-SNAPSHOT</version>****
>
>                 <modelVersion>4.0.0</modelVersion>****
>
>                 <packaging>war</packaging>****
>
> ** **
>
>                 <dependencies>****
>
>                 .****
>
>                 .****
>
>                 .****
>
>                 </dependencies>****
>
> ** **
>
>                 <build>****
>
>                                 <plugins>****
>
>                                                 <plugin>****
>
>
> <artifactId>maven-war-plugin</artifactId>****
>
>
> <version>2.1.1</version>****
>
>
> <configuration>****
>
>
> <failOnMissingWebXml>false</failOnMissingWebXml>****
>
>
> </configuration>****
>
>                                                 </plugin>****
>
>                                 </plugins>****
>
>                 </build>****
>
> </project>****
>
> ** **
>
> If I mark the project as deployable, it attempts to do so but ends up 
> attempting to deploy 2 war files, one for the project and one for the 
> embedded war file.  The output includes:****
>
> ** **
>
> 11:00:33,453 ERROR [org.jboss.as.deployment] 
> (DeploymentScanner-threads -
> 1) The deployment scanner found a directory named META-INF that was 
> not inside a directory whose name ends with .ear, .jar, .rar, .sar or 
> .war. This is likely the result of unzipping an archive directly 
> inside the C:\java\jboss\jboss-as-7.0.1.Final\standalone\deployments 
> directory, which is a user error. The META-INF directory will not be 
> scanned for deployments, but it is possible that the scanner mayfind 
> other files from the unzipped archive and attempt to deploy them, 
> leading to errors.****
>
> ** **
>
> 11:00:33,454 ERROR [org.jboss.as.deployment] 
> (DeploymentScanner-threads -
> 1) The deployment scanner found a directory named WEB-INF that was not 
> inside a directory whose name ends with .ear, .jar, .rar, .sar or 
> .war. This is likely the result of unzipping an archive directly 
> inside the C:\java\jboss\jboss-as-7.0.1.Final\standalone\deployments 
> directory, which is a user error. The WEB-INF directory will not be 
> scanned for deployments, but it is possible that the scanner mayfind 
> other files from the unzipped archive and attempt to deploy them, 
> leading to errors.****
>
> ** **
>
> 11:00:33,477 INFO  [org.jboss.as.server.deployment] (MSC service 
> thread
> 1-1) Starting deployment of "TestWar-0.0.1-SNAPSHOT.war"****
>
> 11:00:33,478 INFO  [org.jboss.as.server.deployment] (MSC service 
> thread
> 1-2) Starting deployment of "TestWar"****
>
> ** **
>
> I have tried all kind of combinations and permutations of plugins and 
> project configuration, to no avail.  My questions are:****
>
> ** **
>
> Should this work?****
>
> If so, what am I doing wrong?****
>
> ** **
>
> Thanks, Mitchell****
>
> _______________________________________________
> m2e-users mailing list
> m2e-users@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/m2e-users
>
>


--
"Have you tried turning it off and on again" - The IT Crowd
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://dev.eclipse.org/mailman/private/m2e-users/attachments/20111013/e1804c05/attachment.htm>

------------------------------

_______________________________________________
m2e-users mailing list
m2e-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/m2e-users


End of m2e-users Digest, Vol 33, Issue 25
*****************************************


Back to the top