Return-Path: Delivered-To: apmail-db-torque-dev-archive@www.apache.org Received: (qmail 12045 invoked from network); 18 Jul 2008 05:53:48 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 18 Jul 2008 05:53:48 -0000 Received: (qmail 59309 invoked by uid 500); 18 Jul 2008 05:53:47 -0000 Delivered-To: apmail-db-torque-dev-archive@db.apache.org Received: (qmail 59297 invoked by uid 500); 18 Jul 2008 05:53:47 -0000 Mailing-List: contact torque-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Apache Torque Developers List" Reply-To: "Apache Torque Developers List" Delivered-To: mailing list torque-dev@db.apache.org Received: (qmail 59286 invoked by uid 99); 18 Jul 2008 05:53:47 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 17 Jul 2008 22:53:47 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [203.199.18.82] (HELO mail1.impetus.co.in) (203.199.18.82) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 18 Jul 2008 05:52:54 +0000 Received: from mail1.impetus.co.in ([192.168.100.28]) by mail1.impetus.co.in ([192.168.100.28]) with mapi; Fri, 18 Jul 2008 11:22:55 +0530 From: Renu Gupta To: Maven Users List , Apache Torque Developers List Date: Fri, 18 Jul 2008 11:22:52 +0530 Subject: Java API to work with containers problem.......... Thread-Topic: Java API to work with containers problem.......... Thread-Index: AcjomoSKsAPrhvgRRail1eHfRoVtUQ== Message-ID: <3733A9C3AB40C64A8E0A141E0768A505171717D974@mail1.impetus.co.in> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US Content-Type: multipart/alternative; boundary="_000_3733A9C3AB40C64A8E0A141E0768A505171717D974mail1impetusc_" MIME-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org --_000_3733A9C3AB40C64A8E0A141E0768A505171717D974mail1impetusc_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi, In my mojo I have written following code to start the container: package sample.plugin; import org.apache.maven.plugin.AbstractMojo; import org.apache.maven.plugin.MojoExecutionException; import org.codehaus.cargo.container.Container; /** * Says "Hi" to the user. * @goal sayhi */ public class MyMojo extends AbstractMojo { public void execute() throws MojoExecutionException { System.out.println("hi"); getLog().info("Hello, world."); Container container =3D new Jboss4xContainer(); container.setHomeDir("E:/Softwares/jboss-4.0.5.GA")= ; container.setWorkingDir("target/jboss4x"); container.start(); } } Now I get following error when I run the application by executing following= command: mvn install or mvn package [ERROR] BUILD FAILURE [INFO] --------------------------------------------------------------------= ---- [INFO] Compilation failure F:\Documents and Settings\rvgupta\MavenProjects\maven-hello-plugin(for carg= o java api)\src\main\java\sample\plugin\MyMojo.java:[5,36] package org.code= haus.cargo.container does not exist F:\Documents and Settings\rvgupta\MavenProjects\maven-hello-plugin(for carg= o java api)\src\main\java\sample\plugin\MyMojo.java:[18,16] cannot find sym= bol symbol : class Container location: class sample.plugin.MyMojo F:\Documents and Settings\rvgupta\MavenProjects\maven-hello-plugin(for carg= o java api)\src\main\java\sample\plugin\MyMojo.java:[18,42] cannot find sym= bol symbol : class Jboss4xContainer location: class sample.plugin.MyMojo And I have checked the repository it contains the Container class in the sa= me package I have imported. What can be the reason for this failure??????? Regards, Renu Gupta --_000_3733A9C3AB40C64A8E0A141E0768A505171717D974mail1impetusc_--