1 Reply Latest reply on Nov 2, 2010 7:53 PM by paone

    Starting Weblogic server with eclipse.

    809780
      Hi,
      I am trying to start the web logic server through Hudson build.I have specified the goals in pom.xml and i am using cargo plugin (maven). When i build using Hudson. It builds the war file and copies to folder so when the weblogic starts it uses that war file. But in my case the the war file is copied to correct location where the server expects it when it starts but when it tries to deploy it takes from the Hudson location where it was created can anyone help me with this? i need some help with this so that when i deploy it picks the correct war file.
      I have the pom.xml that i was using.

      Thanks in advance.

      <plugin>
      <groupId>org.codehaus.cargo</groupId>
      <artifactId>cargo-maven2-plugin</artifactId>
      <version>1.0</version>
      <configuration>
      <wait>false</wait>
      <container>
      <containerId>${container.name}</containerId>
      <home>${container.home}</home>
      <log>${container.server.home}/servers/${container.server.name}/logs/${container.server.name}.log</log>
      <output>${container.server.home}/servers/${container.server.name}/logs/${container.server.name}.out</output>
      <timeout>600000</timeout>
      </container>
      </configuration>
      <executions>
      <execution>
      <id>start-container</id>
      <phase>pre-integration-test</phase>
      <goals>
      <goal>start</goal>
      <goal>deploy</goal>
      </goals>

      <configuration>
      <home>${container.server.home}</home>
      <type>existing</type>
      <properties>
      <cargo.java.home>${container.java.home}</cargo.java.home>
      <cargo.servlet.port>${container.port}</cargo.servlet.port>
      <cargo.jboss.configuration>default</cargo.jboss.configuration>
      <cargo.rmi.port>1099</cargo.rmi.port>
        • 1. Re: Starting Weblogic server with eclipse.
          paone
          Hope your pom.xml file is not suitable to WebLogic. it is for Jboss.

          Let me point you to right link here: https://docs.sonatype.org/display/M2ECLIPSE/Using+Maven+with+application+servers#UsingMavenwithapplicationservers-Weblogic

          Change your pom.xml file accordingly and let us know what is the situation for your eclipse.

          Edited by: PavanBhavanishekhar on Nov 2, 2010 12:52 PM