logo
down
shadow

Eclipse Maven web application - can not run on server anymore


Eclipse Maven web application - can not run on server anymore

By : PatsonKe
Date : January 10 2021, 01:57 PM


Share : facebook icon twitter icon
Can't compile an application using Eclipse, Maven, and the Android Plugin for Maven

Can't compile an application using Eclipse, Maven, and the Android Plugin for Maven


By : user2952661
Date : March 29 2020, 07:55 AM
seems to work fine Well, through what appears to be trial and error I seem to have fixed the problem. I had a file that looked "similar" to this:
code :
import Test.TestObserver;
import com.myself.ImportedClassThatCouldntBeFound;

class Test extends ImportedClassThatCouldntBeFound {
  public interface TestObserver {
    public void event ();
  }

  public void addObserver (TestObserver observer) {
    ...
  }
} 

public class AnotherTest {
  private Test test = new Test ();

  public void blah () {
    this.test.addObserver (new TestObserver () {
      public void event () {
        ...
      } 
    });
  }
}
public class AnotherTest {
  private Test test = new Test ();

  public void blah () {
    this.test.addObserver (new Test.TestObserver () {
      public void event () {
        ...
      } 
    });
  }
}
Cannot run server from eclipse with maven filtering application context

Cannot run server from eclipse with maven filtering application context


By : vijay
Date : March 29 2020, 07:55 AM
will be helpful for those in need After some digging through other stackoverflow questions/answers, the answer was in Web resources filtering with Maven war plugin does not work in Eclipse with m2e .
If you move root-context.xml to src/main/resources directory, it will be included in the eclipse target folder and run correctly.
code :
    <build>
    ....
    <resources>
        <resource>
            <directory>src/main/resources</directory>
            <filtering>true</filtering>
        </resource>
    </resources>
    <testResources>
        <testResource>
            <directory>src/test/resources</directory>
            <filtering>true</filtering>
        </testResource>
    </testResources>
    ....
    </build>
Eclipse Maven Spring: Server Error when I try to Run As Server (Tomcat 7)

Eclipse Maven Spring: Server Error when I try to Run As Server (Tomcat 7)


By : Pablox
Date : March 29 2020, 07:55 AM
I wish did fix the issue. I think I figured it out. There may be a bug in Eclipse's Dynamic Web Module, version 3.1. My project was being imported using this version because I am using version 3.1 of javax.servlet-api in my pom.xml. When I changed the version down to version 3.0, I am now able to run it as a server.
Basically, to do this change, I had to go into the .settings/org.eclipse.wst.common.project.facet.core.xml and change the tag to instead be .
Run a maven project in eclipse using "Run on Server" using the already configured server on eclipse

Run a maven project in eclipse using "Run on Server" using the already configured server on eclipse


By : Jahongir
Date : March 29 2020, 07:55 AM
seems to work fine You dont need to configure any additional steps to run a maven project using Tomcat. Just right click on your project folder in eclipse and choose "Run on Server" and select Tomcat in the next window. If there is no option like "Run on server" available, go to run configuration and choose Tomcat, then click on Run . This have worked for maven projects which I have generated from App-fuse..
Spring MVC project not working anymore after converting to Maven in Eclipse

Spring MVC project not working anymore after converting to Maven in Eclipse


By : Zc Oyzg
Date : March 29 2020, 07:55 AM
This might help you If you see the below error it is saying there is NoSuchMethodError. Most probably there might be conflicting jars in your classpath or wrong version of jars that don't have the specific method.
code :
root cause
java.lang.NoSuchMethodError: javax.validation.spi.ConfigurationState.getParameterNameProvider()Ljavax/validation/ParameterNameProvider;
    org.hibernate.validator.internal.engine.ValidatorFactoryImpl.<init>(ValidatorFactoryImpl.java:142)
org.hibernate.validator.HibernateValidator.buildValidatorFactory(HibernateValidator.java:35)  
<dependency>
        <groupId>org.hibernate</groupId>
        <artifactId>hibernate-validator</artifactId>
        <version>5.0.3.Final</version>
 </dependency>
shadow
Privacy Policy - Terms - Contact Us © 35dp-dentalpractice.co.uk