# Problems running with build from master branch

**URL:** <https://community.gatling.io/t/problems-running-with-build-from-master-branch/24>\
**Category:** Gatling (Open-Source)\
**Created:** [January 30, 2012, 8:31pm UTC](https://community.gatling.io/t/problems-running-with-build-from-master-branch/24 "2012-01-30T20:31:51Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Luke\_Taylor](https://avatars.discourse-cdn.com/v4/letter/l/49beb7/32.png) [@Luke\_Taylor](https://community.gatling.io/u/Luke_Taylor)\
**Post date:** [January 30, 2012, 8:31pm UTC](https://community.gatling.io/t/problems-running-with-build-from-master-branch/24/1 "2012-01-30T20:31:51Z")

</div>

Hi,

I’ve built Gatling from the lastest master branch but keep running into a NoClassDefFoundError:

Simulation basic-script-exampleATdefault.txt started…  
Simulation Finished.  
Generating reports…  
Exception in thread “main” java.lang.NoClassDefFoundError: com/excilys/ebi/gatling/charts/component/impl/ComponentLibraryImpl  
at com.excilys.ebi.gatling.charts.report.ReportsGenerator$.(ReportsGenerator.scala:60)  
at com.excilys.ebi.gatling.charts.report.ReportsGenerator$.(ReportsGenerator.scala)

I get the same problem even if I checkout a commit from two weeks back (fa96d20608e).

Is it expected that report generation is broken on master at the moment, or is this likely to be something weird with my local setup?

I’m using OSX, java 1.6.0\_29

Cheers,

Luke

---

<div class="post-metadata">

**Author:** ![Excilys](https://avatars.discourse-cdn.com/v4/letter/e/8797f3/32.png) [@Excilys](https://community.gatling.io/u/Excilys)\
**Post date:** [January 30, 2012, 9:07pm UTC](https://community.gatling.io/t/problems-running-with-build-from-master-branch/24/2 "2012-01-30T21:07:25Z")

</div>

Hi Luke,

We have to add a section in the Wiki describing how to build Gatling from sources and a link in the FAQ…

Here’s the problem :

- Gatling is not “completely” open-source: the reports depend on javascript libraries (highcharts and highstocks) that are not open source (we couldn’t find a good Apache 2 licenced replacement yet)
- As we wanted to keep as much code as possible under Apache 2, we built a reports generation API and moved the implementation into a separate project : [https://github.com/excilys/gatling-highcharts](https://github.com/excilys/gatling-highcharts)
- So if you want to build from source, the procedure is similar to running from the IDE: [https://github.com/excilys/gatling/wiki/Development-Environment](https://github.com/excilys/gatling/wiki/Development-Environment), you have to build gatling-highcharts too. The bundle you’re looking for is gatling-charts-highcharts-bundle.  
Let me know if you’re still stuck.

Sincerely,

Stephane

2012/1/30 Luke Taylor \<[munkymisheen@gmail.com](mailto:munkymisheen@gmail.com)\>

---

<div class="post-metadata">

**Author:** ![Luke\_Taylor](https://avatars.discourse-cdn.com/v4/letter/l/49beb7/32.png) [@Luke\_Taylor](https://community.gatling.io/u/Luke_Taylor)\
**Post date:** [January 31, 2012, 3:50pm UTC](https://community.gatling.io/t/problems-running-with-build-from-master-branch/24/3 "2012-01-31T15:50:04Z")

</div>

Great, thanks!

I get it now, and it seems to be working fine. I did notice a small problem with looping. If I use a “times(n)” loop, it works ok, but changing it to “during(n)” causes an exception:

[ERROR] [1/31/12 3:41 PM] [akka:event-driven:dispatcher:global-10] [LocalActorRef] You must call startCounter before this method is called  
java.lang.IllegalAccessError: You must call startCounter before this method is called  
at com.excilys.ebi.gatling.core.session.handler.CounterBasedIterationHandler$$anonfun$3.apply(CounterBasedterationHandler.scala:65)  
at com.excilys.ebi.gatling.core.session.handler.CounterBasedIterationHandler$$anonfun$3.apply(CounterBasedterationHandler.scala:65)

Script:

val urlBase = “[http://localhost:8080/](http://localhost:8080/)”

val httpConf = httpConfig.baseURL(urlBase)

val blah = scenario(“VMC Login”)  
.loop(  
chain.exec(  
http(“request\_1”)  
.get("/")  
.check(status.eq(200))  
)  
.pause(50, 500, MILLISECONDS)  
).during(20)

val scnConf = blah.configure users 2 protocolConfig httpConf

runSimulation(scnConf)

---

<div class="post-metadata">

**Author:** ![Excilys](https://avatars.discourse-cdn.com/v4/letter/e/8797f3/32.png) [@Excilys](https://community.gatling.io/u/Excilys)\
**Post date:** [January 31, 2012, 4:03pm UTC](https://community.gatling.io/t/problems-running-with-build-from-master-branch/24/4 "2012-01-31T16:03:09Z")

</div>

I probably missed something when I made the Sessions properly immutable last week.  
I’ll fix this ASAP.

2012/1/31 Luke Taylor \<[munkymisheen@gmail.com](mailto:munkymisheen@gmail.com)\>

---

<div class="post-metadata">

**Author:** ![Excilys](https://avatars.discourse-cdn.com/v4/letter/e/8797f3/32.png) [@Excilys](https://community.gatling.io/u/Excilys)\
**Post date:** [January 31, 2012, 4:07pm UTC](https://community.gatling.io/t/problems-running-with-build-from-master-branch/24/5 "2012-01-31T16:07:28Z")

</div>

Pushed!  
Can you give it a try, please?

2012/1/31 Stéphane Landelle \<[slandelle@excilys.com](mailto:slandelle@excilys.com)\>

---

<div class="post-metadata">

**Author:** ![Luke\_Taylor](https://avatars.discourse-cdn.com/v4/letter/l/49beb7/32.png) [@Luke\_Taylor](https://community.gatling.io/u/Luke_Taylor)\
**Post date:** [January 31, 2012, 5:37pm UTC](https://community.gatling.io/t/problems-running-with-build-from-master-branch/24/6 "2012-01-31T17:37:24Z")

</div>

Thanks! That seems to be working now. Looks nice :).

One other thing I’ve not been able to get working is specifying a custom simluations folder on the command line:

$GATLING\_HOME/bin/gatling.sh -sf /Users/luke/blah/gatling/simulations  
GATLING\_HOME already set to: /Users/luke/Work/tools/gatling-charts-highcharts-1.1.0-SNAPSHOT

---

<div class="post-metadata">

**Author:** ![Excilys](https://avatars.discourse-cdn.com/v4/letter/e/8797f3/32.png) [@Excilys](https://community.gatling.io/u/Excilys)\
**Post date:** [January 31, 2012, 6:20pm UTC](https://community.gatling.io/t/problems-running-with-build-from-master-branch/24/7 "2012-01-31T18:20:13Z")

</div>

@Romain, can you have a look at this?

2012/1/31 Luke Taylor \<[munkymisheen@gmail.com](mailto:munkymisheen@gmail.com)\>

---

<div class="post-metadata">

**Author:** ![Romain\_Sertelon](https://avatars.discourse-cdn.com/v4/letter/r/48db29/32.png) [@Romain\_Sertelon](https://community.gatling.io/u/Romain_Sertelon)\
**Post date:** [January 31, 2012, 6:51pm UTC](https://community.gatling.io/t/problems-running-with-build-from-master-branch/24/8 "2012-01-31T18:51:12Z")

</div>

Hi Luke,

What is the content of the /Users/luke/blah/gatling/simulations please ?

Issue #374 may be related to yours. I’m checking on that!

Cheers,  
Romain

---

<div class="post-metadata">

**Author:** ![Romain\_Sertelon](https://avatars.discourse-cdn.com/v4/letter/r/48db29/32.png) [@Romain\_Sertelon](https://community.gatling.io/u/Romain_Sertelon)\
**Post date:** [January 31, 2012, 6:56pm UTC](https://community.gatling.io/t/problems-running-with-build-from-master-branch/24/9 "2012-01-31T18:56:08Z")

</div>

Hi,

What is very strange is that this exception shouldn’t even happen… Still searching!

Cheers,  
Romain

---

<div class="post-metadata">

**Author:** ![Luke\_Taylor](https://avatars.discourse-cdn.com/v4/letter/l/49beb7/32.png) [@Luke\_Taylor](https://community.gatling.io/u/Luke_Taylor)\
**Post date:** [January 31, 2012, 10:10pm UTC](https://community.gatling.io/t/problems-running-with-build-from-master-branch/24/10 "2012-01-31T22:10:39Z")

</div>

Hi,

Yes, you’re right. It seems to happen when there is only one script file. It differs from 374 in that it happens at startup even before the menu is presented.

Cheers,

Luke.

---

<div class="post-metadata">

**Author:** ![Excilys](https://avatars.discourse-cdn.com/v4/letter/e/8797f3/32.png) [@Excilys](https://community.gatling.io/u/Excilys)\
**Post date:** [January 31, 2012, 10:49pm UTC](https://community.gatling.io/t/problems-running-with-build-from-master-branch/24/11 "2012-01-31T22:49:56Z")

</div>

Hi Luke,

I’ve pushed the fix.

Thanks for reporting!

Bye,

Stephane

2012/1/31 Luke Taylor \<[munkymisheen@gmail.com](mailto:munkymisheen@gmail.com)\>
