Web Rest API Problem

1
0
-1

Hi, I am referring http://documentation.bonitasoft.com/create-your-first-project-web-rest-a... link for creating my web-rest-api. I download rest-api-example and running tomcat and web-rest-api example but I am getting following exception:-

SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder". SLF4J: Defaulting to no-operation (NOP) logger implementation SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details. [INFO] Scanning for projects... [WARNING] The POM for org.eclipse.m2e:lifecycle-mapping:jar:1.0.0 is missing, no dependency information available [WARNING] Failed to retrieve plugin descriptor for org.eclipse.m2e:lifecycle-mapping:1.0.0: Plugin org.eclipse.m2e:lifecycle-mapping:1.0.0 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.eclipse.m2e:lifecycle-mapping:jar:1.0.0 [INFO]
[INFO] ------------------------------------------------------------------------ [INFO] Building rest-api-example 1.0.0-SNAPSHOT [INFO] ------------------------------------------------------------------------ [WARNING] The POM for org.eclipse.m2e:lifecycle-mapping:jar:1.0.0 is missing, no dependency information available [WARNING] Failed to retrieve plugin descriptor for org.eclipse.m2e:lifecycle-mapping:1.0.0: Plugin org.eclipse.m2e:lifecycle-mapping:1.0.0 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.eclipse.m2e:lifecycle-mapping:jar:1.0.0 [INFO] [INFO] --- exec-maven-plugin:1.3.2:java (default-cli) @ rest-api-example --- [WARNING] Warning: killAfter is now deprecated. Do you need it ? Please comment on MEXEC-6.

response.getStatusLine().getStatusCode():-200 response.getStatusLine().getStatusCode():-200 Deploying organization ... [WARNING] java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.codehaus.mojo.exec.ExecJavaMojo$1.run(ExecJavaMojo.java:293) at java.lang.Thread.run(Thread.java:662) Caused by: java.lang.RuntimeException: java.lang.RuntimeException: Failed : HTTP error code : 500 : Internal Server Error at org.bonitasoft.example.App.importOrganizationFromFile(App.java:298) at org.bonitasoft.example.App.importOrganization(App.java:271) at org.bonitasoft.example.App.start(App.java:134) at org.bonitasoft.example.App.main(App.java:114) ... 6 more Caused by: java.lang.RuntimeException: Failed : HTTP error code : 500 : Internal Server Error at org.bonitasoft.example.App.ensureStatusOk(App.java:261) at org.bonitasoft.example.App.consumeResponse(App.java:221) at org.bonitasoft.example.App.importOrganizationFromFile(App.java:292) ... 9 more [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 6.430s [INFO] Finished at: Thu Sep 25 19:17:17 IST 2014 [INFO] Final Memory: 7M/58M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.3.2:java (default-cli) on project rest-api-example: An exception occured while executing the Java class. null: InvocationTargetException: java.lang.RuntimeException: Failed : HTTP error code : 500 : Internal Server Error -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

Please help me on this issue. Thanks,

No answers yet.
Notifications