java.lang.ClassNotFoundException: org.picocontainer.PicoBuilder Exception

143 views
Skip to first unread message

Saurav Anand

unread,
Mar 11, 2020, 3:54:16 PM3/11/20
to seleniu...@googlegroups.com
Hello Everyone , 

I have successfully implemented the BDD framework using TestNG with Page Object Model Design. My code was running fine but now it's getting this error :- 

java.lang.ClassNotFoundException: org.picocontainer.PicoBuilder Exception

I have the used the code from the Automation Architect Tutorial . Section 8 Live Project 5 . 

It is not able to read the AbstractTestNGCucumberTests which is present in this package 
cucumber.api.testng;

If the pom.xml file need to be modified please do let me know.

@Raman Sir Please suggest

This is the dependency I have used 

<dependencies>

<!-- http://mvnrepository.com/artifact/info.cukes/cucumber-core -->
<dependency>
<groupId>info.cukes</groupId>
<artifactId>cucumber-core</artifactId>
<version>1.2.5</version>
</dependency>
<!-- http://mvnrepository.com/artifact/info.cukes/cucumber-java -->
<dependency>
<groupId>info.cukes</groupId>
<artifactId>cucumber-java</artifactId>
<version>1.2.5</version>
</dependency>


<dependency>
<groupId>com.vimalselvam</groupId>
<artifactId>cucumber-extentsreport</artifactId>
<version>1.1.0</version>
</dependency>


<!-- http://mvnrepository.com/artifact/info.cukes/cucumber-picocontainer -->
<dependency>
<groupId>info.cukes</groupId>
<artifactId>cucumber-picocontainer</artifactId>
<version>1.2.5</version>
</dependency>


<!-- http://mvnrepository.com/artifact/org.seleniumhq.selenium/selenium-server -->
<dependency>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-server</artifactId>
<version>3.8.1</version>
</dependency>


<!-- https://mvnrepository.com/artifact/info.cukes/cucumber-testng -->
<dependency>
<groupId>info.cukes</groupId>
<artifactId>cucumber-testng</artifactId>
<version>1.2.5</version>
</dependency>

</dependencies>

<build>
<plugins>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.19.1</version>
<configuration>
<testFailureIgnore> false </testFailureIgnore>
<suiteXmlFiles>
<suiteXmlFile>src/test/resources/runner/testng.xml</suiteXmlFile>

</suiteXmlFiles>
</configuration>
</plugin>
</plugins>

</build>


Thanks,
Saurav



Kogul S

unread,
Mar 12, 2020, 12:46:19 AM3/12/20
to seleniu...@googlegroups.com
Hi Saurav, 

As the exception suggests, org.picocontainer class is missing in your project, try to search individual maven dependency or jar file for pico container & add  the class in your project. Hope it works

Thanks
Kogul

--
You received this message because you are subscribed to the Google Groups "Selenium Experts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to seleniumexper...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/seleniumexperts/CACcwGebjBOtQhn7ZcJRF2HaLLBTTLnqKNYkAc%2BrHXG%2B30GXZ9w%40mail.gmail.com.

Saurav Anand

unread,
Mar 12, 2020, 4:23:54 AM3/12/20
to seleniu...@googlegroups.com
Thanks Kogul.. added the necessary dependency it's working fine now .. !!

Reply all
Reply to author
Forward
0 new messages