Re: [rest-assured] class not found exception when running maven project using restassured

509 views
Skip to first unread message

Johan Haleby

unread,
May 23, 2013, 2:24:16 AM5/23/13
to rest-a...@googlegroups.com
Hi,

What classes does it say that you're missing?

Regards,
/Johan


On Thu, May 23, 2013 at 4:05 AM, Rodrigo Berto <rodrigo...@gmail.com> wrote:
Hi team, how are you doing?

Today I run thorught an issue I could not figured out how to solve yet. Im  using rest assured for testing matters and I have added the dependencies in the pom file of my maven project as the "usage" section of the web indicates. I have also imported the needed libraries in my project and no issues in my java files and even the project configuration looks fine.
However, when I execute my maven package I get some errors saying that the restAssured classes where not found. The, I doubled checked all my imports, dependencies and any other possible mistake I could have done but everything seems to be good. My team is already using other jayway dependencies in the pom. 

Do you have any idea regarding what is going on or can you give any step to troubleshoot this?

Thanks,
Rodrigo

--
You received this message because you are subscribed to the Google Groups "REST assured" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rest-assured...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Rodrigo Berto

unread,
May 23, 2013, 9:11:32 AM5/23/13
to rest-a...@googlegroups.com
Let me publish part of the exception:

Caused by: java.lang.ClassNotFoundException: com.jayway.restassured.RestAssured
at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
... 4 more

Johan Haleby

unread,
May 23, 2013, 2:16:06 PM5/23/13
to rest-a...@googlegroups.com
Ok I don't have a good idea why this would happen, never seen it. I've using RA on a day to day basis with Maven and I've never experience this problem. If you manage to find the cause please share how you solved it or what was wrong.

/Johan


--
Reply all
Reply to author
Forward
0 new messages