0 Replies Latest reply on Feb 2, 2011 5:53 AM by rishi321

    Error in Deployment

    rishi321

      hi guys,

      i am trying to deploy my war (Maven Project) on jboss 6 but i keep on getting this error, what seems to be the problem.

       

      Failed to create Resource Messaging-0.0.1-SNAPSHOT.war - cause: org.rhq.core.pc.inventory.TimeoutException: Call to [org.rhq.plugins.jbossas5.ApplicationServerComponent.createResource()] with args [[CreateResourceReport: ResourceType=[ResourceType[id=0, category=Service, name=Web Application (WAR), plugin=JBossAS5]], ResourceKey=[null]]] timed out. Invocation thread will be interrupted at org.rhq.core.pc.inventory.ResourceContainer$ResourceComponentInvocationHandler.invokeInNewThreadWithLock(ResourceContainer.java:465) at org.rhq.core.pc.inventory.ResourceContainer$ResourceComponentInvocationHandler.invoke(ResourceContainer.java:434) at $Proxy172.createResource(Unknown Source) at org.rhq.core.pc.inventory.CreateResourceRunner.call(CreateResourceRunner.java:114) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:636)

       

      my maven script is :

       

      <?xml version="1.0"?>

      <project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"

          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

        <modelVersion>4.0.0</modelVersion>

        <groupId>Messaging</groupId>

        <artifactId>Messaging</artifactId>

        <version>0.0.1-SNAPSHOT</version>

        <packaging>war</packaging>

        <issueManagement />

        <dependencies>

          <dependency>

            <groupId>javax.jms</groupId>

            <artifactId>jms</artifactId>

            <version>1.1</version>

            <scope>compile</scope>

          </dependency>

          <dependency>

            <groupId>postgresql</groupId>

            <artifactId>postgresql</artifactId>

            <version>9.0-801.jdbc4</version>

            <scope>compile</scope>

          </dependency>

          <dependency>

            <groupId>org.testng</groupId>

            <artifactId>testng</artifactId>

            <version>5.14.6</version>

            <scope>compile</scope>

          </dependency>

          <dependency>

            <groupId>javax.servlet</groupId>

            <artifactId>servlet-api</artifactId>

            <version>2.5</version>

            <scope>compile</scope>

          </dependency>

          <dependency>

            <groupId>javax</groupId>

            <artifactId>javaee-api</artifactId>

            <version>6.0</version>

            <scope>compile</scope>

          </dependency>

          <dependency>

            <groupId>org.hornetq</groupId>

            <artifactId>hornetq-jms</artifactId>

            <version>2.0.0.GA</version>

            <scope>compile</scope>

          </dependency>

          <dependency>

            <groupId>commons-fileupload</groupId>

            <artifactId>commons-fileupload</artifactId>

            <version>1.2.2</version>

            <scope>compile</scope>

          </dependency>

        </dependencies>

        <repositories>

          <repository>

            <snapshots>

              <enabled>false</enabled>

            </snapshots>

            <id>central</id>

            <name>Maven Repository Switchboard</name>

            <url>http://repo1.maven.org/maven2</url>

          </repository>

        </repositories>

        <pluginRepositories>

          <pluginRepository>

            <releases>

              <updatePolicy>never</updatePolicy>

            </releases>

            <snapshots>

              <enabled>false</enabled>

            </snapshots>

            <id>central</id>

            <name>Maven Plugin Repository</name>

            <url>http://repo1.maven.org/maven2</url>

          </pluginRepository>

        </pluginRepositories>

        <build>

          <sourceDirectory>/home/programmer72/workspace/Eclispe/Messaging/src/main/java</sourceDirectory>

          <scriptSourceDirectory>/home/programmer72/workspace/Eclispe/Messaging/src/main/scripts</scriptSourceDirectory>

          <testSourceDirectory>/home/programmer72/workspace/Eclispe/Messaging/src/test/java</testSourceDirectory>

          <outputDirectory>/home/programmer72/workspace/Eclispe/Messaging/target/classes</outputDirectory>

          <testOutputDirectory>/home/programmer72/workspace/Eclispe/Messaging/target/test-classes</testOutputDirectory>

          <resources>

            <resource>

              <directory>/home/programmer72/workspace/Eclispe/Messaging/src/main/resources</directory>

            </resource>

          </resources>

          <testResources>

            <testResource>

              <directory>/home/programmer72/workspace/Eclispe/Messaging/src/test/resources</directory>

            </testResource>

          </testResources>

          <directory>/home/programmer72/workspace/Eclispe/Messaging/target</directory>

          <finalName>Messaging-0.0.1-SNAPSHOT</finalName>

          <pluginManagement>

            <plugins>

              <plugin>

                <artifactId>maven-antrun-plugin</artifactId>

                <version>1.3</version>

              </plugin>

              <plugin>

                <artifactId>maven-assembly-plugin</artifactId>

                <version>2.2-beta-5</version>

              </plugin>

              <plugin>

                <artifactId>maven-dependency-plugin</artifactId>

                <version>2.1</version>

              </plugin>

              <plugin>

                <artifactId>maven-release-plugin</artifactId>

                <version>2.0</version>

              </plugin>

            </plugins>

          </pluginManagement>

          <plugins>

            <plugin>

              <artifactId>maven-war-plugin</artifactId>

              <version>2.1.1</version>

              <executions>

                <execution>

                  <id>default-war</id>

                  <phase>package</phase>

                  <goals>

                    <goal>war</goal>

                  </goals>

                  <configuration>

                    <webXml>/home/programmer72/workspace/Eclispe/Messaging/WebContent/WEB-INF/web.xml</webXml>

                    <warSourceDirectory>/home/programmer72/workspace/Eclispe/Messaging/WebContent</warSourceDirectory>

                  </configuration>

                </execution>

              </executions>

              <configuration>

                <webXml>/home/programmer72/workspace/Eclispe/Messaging/WebContent/WEB-INF/web.xml</webXml>

                <warSourceDirectory>/home/programmer72/workspace/Eclispe/Messaging/WebContent</warSourceDirectory>

              </configuration>

            </plugin>

            <plugin>

              <artifactId>maven-compiler-plugin</artifactId>

              <version>2.3.2</version>

              <executions>

                <execution>

                  <id>default-testCompile</id>

                  <phase>test-compile</phase>

                  <goals>

                    <goal>testCompile</goal>

                  </goals>

                </execution>

                <execution>

                  <id>default-compile</id>

                  <phase>compile</phase>

                  <goals>

                    <goal>compile</goal>

                  </goals>

                </execution>

              </executions>

            </plugin>

            <plugin>

              <artifactId>maven-clean-plugin</artifactId>

              <version>2.4.1</version>

              <executions>

                <execution>

                  <id>default-clean</id>

                  <phase>clean</phase>

                  <goals>

                    <goal>clean</goal>

                  </goals>

                </execution>

              </executions>

            </plugin>

            <plugin>

              <artifactId>maven-install-plugin</artifactId>

              <version>2.3.1</version>

              <executions>

                <execution>

                  <id>default-install</id>

                  <phase>install</phase>

                  <goals>

                    <goal>install</goal>

                  </goals>

                </execution>

              </executions>

            </plugin>

            <plugin>

              <artifactId>maven-resources-plugin</artifactId>

              <version>2.4.3</version>

              <executions>

                <execution>

                  <id>default-resources</id>

                  <phase>process-resources</phase>

                  <goals>

                    <goal>resources</goal>

                  </goals>

                </execution>

                <execution>

                  <id>default-testResources</id>

                  <phase>process-test-resources</phase>

                  <goals>

                    <goal>testResources</goal>

                  </goals>

                </execution>

              </executions>

            </plugin>

            <plugin>

              <artifactId>maven-surefire-plugin</artifactId>

              <version>2.7.1</version>

              <executions>

                <execution>

                  <id>default-test</id>

                  <phase>test</phase>

                  <goals>

                    <goal>test</goal>

                  </goals>

                </execution>

              </executions>

            </plugin>

            <plugin>

              <artifactId>maven-deploy-plugin</artifactId>

              <version>2.5</version>

              <executions>

                <execution>

                  <id>default-deploy</id>

                  <phase>deploy</phase>

                  <goals>

                    <goal>deploy</goal>

                  </goals>

                </execution>

              </executions>

            </plugin>

            <plugin>

              <artifactId>maven-site-plugin</artifactId>

              <version>2.0.1</version>

              <executions>

                <execution>

                  <id>default-site</id>

                  <phase>site</phase>

                  <goals>

                    <goal>site</goal>

                  </goals>

                  <configuration>

                    <outputDirectory>/home/programmer72/workspace/Eclispe/Messaging/target/site</outputDirectory>

                    <reportPlugins>

                      <reportPlugin>

                        <groupId>org.apache.maven.plugins</groupId>

                        <artifactId>maven-project-info-reports-plugin</artifactId>

                      </reportPlugin>

                    </reportPlugins>

                  </configuration>

                </execution>

                <execution>

                  <id>default-deploy</id>

                  <phase>site-deploy</phase>

                  <goals>

                    <goal>deploy</goal>

                  </goals>

                  <configuration>

                    <outputDirectory>/home/programmer72/workspace/Eclispe/Messaging/target/site</outputDirectory>

                    <reportPlugins>

                      <reportPlugin>

                        <groupId>org.apache.maven.plugins</groupId>

                        <artifactId>maven-project-info-reports-plugin</artifactId>

                      </reportPlugin>

                    </reportPlugins>

                  </configuration>

                </execution>

              </executions>

              <configuration>

                <outputDirectory>/home/programmer72/workspace/Eclispe/Messaging/target/site</outputDirectory>

                <reportPlugins>

                  <reportPlugin>

                    <groupId>org.apache.maven.plugins</groupId>

                    <artifactId>maven-project-info-reports-plugin</artifactId>

                  </reportPlugin>

                </reportPlugins>

              </configuration>

            </plugin>

          </plugins>

        </build>

        <reporting>

          <outputDirectory>/home/programmer72/workspace/Eclispe/Messaging/target/site</outputDirectory>

        </reporting>

      </project>