ERROR IN THE ARTIFACT

Asked

Viewed 16 times

0

I’m trying to run a little Java project of a course of Servlets that I’m doing at Alur@Intellij and I’m having problems with Artifact. The instructor had just created a common Java project and used Tomcat. However, when I went to do the same, first that no Artifact appeared for me to select, so I had to create and even then is giving the following error:

Artifact war_exploded: Error during artifact deployment. See server log for details.
Artifact war_exploded: com.intellij.javaee.oss.admin.jmx.JmxAdminException: com.intellij.execution.ExecutionException: /home/joaopedro/Documentos/cliente-webservice/out/artifacts/war_exploded not found for the web module.

Second that I think the mistake may involve me not having done a Java EE project. The Instructor did a common project. Earlier when I did a Java EE project Tomcat worked properly with Artifact appearing normally, this only happened when I created a common java project. When I do a new project being Java EE Artifact works correctly.

I’m new to programming and Java, I don’t understand anything about Artifact. If anyone can help me with this problem and understand one about Artifact would be very grateful.

Follow the code I’m trying to execute:

Empresasservice

package br.com.alura.cliente;

import org.apache.http.client.fluent.Request;

public class ClienteWebService {

    public static void main(String[] args) throws Exception {

        String conteudo = Request
                .Post("http://localhost:8080/gerenciador/empresas")
                .execute()
                .returnContent()
                .asString();

        System.out.println(conteudo);
    }
}
No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.