java.lang.NoClassDefFoundError: while running latest openmrs snapshot version

Do you already have npm installed or not? You could install it manually.

it returns this

 C:\Users\Dell>node -v
    v8.11.3

@wyclif , i have installed npm but using the windows installer.

am not sure whether installed it “on” the project as the error log says , but any way i installed it using the installer

What does this command return? npm -v

C:\Users\Dell>node -v
v8.11.3

C:\Users\Dell>npm -v
5.6.0

Now compile the module again with this command: mvn clean install -e

ok sir, let me do that

@dkayiwa here the error

https://pastebin.com/WvMGXxfe

Are you running this from command line? Or from your IDE?

i run it from either way, previuosly i was running it from commandline, that last attempt was from ecclipse

Can i look at the log when you compile from command line?

here is the error log from comand line

https://hastebin.com/ihafefebok.rb.

wen i read about installing npm and node. there are two types of installations. 1) a global installation
2) a local installtion to a project. wen i try to read the log , itsims it recqires a local instaltion ie "(install node and npm) on project coreapps-omod:"

so how do i make a local installtion of npm and node to the coreapps-omod project. coz globallyi have installed npm and node

@dkayiwa @wyclif

Caused by: java.net.UnknownHostException: proxy.host.net

Are you behind a proxy?

well, once , i was behind a proxy. but i remeber i tried to undo it…

here is my mvn settings file

<?xml version="1.0" encoding="UTF-8"?>
<settings xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.1.0 http://maven.apache.org/xsd/settings-1.1.0.xsd" xmlns="http://maven.apache.org/SETTINGS/1.1.0"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <proxies>
    <proxy>
      <protocol></protocol>
      <username></username>
      <password></password>
      <port>80</port>
      <host>proxy.host.net</host>
    </proxy>
  </proxies>
  <servers>
    <server>
      <username>${env.BINTRAY_USER}</username>
      <password>${env.BINTRAY_API_KEY}</password>
      <id>bintray-sdk</id>
    </server>
  </servers>
  <mirrors>
    <mirror>
      <mirrorOf>central</mirrorOf>
      <url>http://mirrors.ibiblio.org/maven2</url>
      <id>ibiblio.org</id>
    </mirror>
  </mirrors>
  <profiles>
    <profile>
      <properties>
        <archetypeRepository>http://mavenrepo.openmrs.org/nexus/content/repositories/public</archetypeRepository>
        <archetypeCatalog>http://mavenrepo.openmrs.org/nexus/content/repositories/public/archetype-catalog.xml</archetypeCatalog>
      </properties>
      <repositories>
        <repository>
          <id>openmrs-repo</id>
          <name>OpenMRS Nexus Repository</name>
          <url>http://mavenrepo.openmrs.org/nexus/content/repositories/public</url>
        </repository>
        <repository>
          <id>openmrs-repo-thirdparty</id>
          <name>OpenMRS Thirdparty Nexus Repository</name>
          <url>http://mavenrepo.openmrs.org/nexus/content/repositories/thirdparty</url>
        </repository>
        <repository>
          <id>openmrs-bintray-repo</id>
          <name>OpeMRS Maven Bintray Repository</name>
          <url>https://dl.bintray.com/openmrs/maven/</url>
        </repository>
      </repositories>
      <pluginRepositories>
        <pluginRepository>
          <snapshots>
            <enabled>false</enabled>
          </snapshots>
          <id>openmrs-repo</id>
          <name>OpenMRS Nexus Repository</name>
          <url>http://mavenrepo.openmrs.org/nexus/content/repositories/public</url>
        </pluginRepository>
        <pluginRepository>
          <id>openmrs-bintray-repo</id>
          <name>OpeMRS Maven Bintray Repository</name>
          <url>https://dl.bintray.com/openmrs/maven/</url>
        </pluginRepository>
      </pluginRepositories>
      <id>openmrs</id>
    </profile>
  </profiles>
  <activeProfiles>
    <activeProfile>openmrs</activeProfile>
  </activeProfiles>
  <pluginGroups>
    <pluginGroup>org.openmrs.maven.plugins</pluginGroup>
    <pluginGroup>org.grails</pluginGroup>
  </pluginGroups>
</settings>

i think that wud be the default seetings file

Can you remove the proxies node and try again?

do u mean deleteing out the whole <proxies> element?

Yes that is what i mean.

1 Like

wen i removed the proxy element , it built succesfully

wen i installed the coreapps, now al the reff apps have started succesfully on platform 2.2 snapshot. so this issue is now solved at last. thx sir @dkayiwa