I was able to resolve this but not sure whether this is the best practice.

Edited the neo4j-server jar file and was able to deploy successfully.

Thanks,
Abhijit 

On Wednesday, October 5, 2016 at 5:18:58 PM UTC+5:30, Abhijit Gupta wrote:
>
> Hi All,
>
> I am using Neo4J 3.0.6 and was able to call the DB using Java API and 
> retrieve the response as JSON.
>
> The same functionality I need it in ADF application but when I add the 
> jars of neo4j and run my server is not running giving below exception.
>
>
> *Exception In log:*
>
> [[HINT] A resource model has ambiguous (sub-)resource method for HTTP 
> method GET and output mime-types as defined by @Produces annotation at Java 
> methods public javax.ws.rs.core.Response 
> *org.neo4j.server.rest.web.RestfulGraphDatabase.getRoot()* and public 
> javax.ws.rs.core.Response 
> *org.neo4j.server.rest.discovery.DiscoveryService.getDiscoveryDocument() 
> *throws java.net.URISyntaxException at matching path pattern /.; 
> source='org.glassfish.jersey.server.model.RuntimeResource@735296ac', [HINT] 
> A resource model has ambiguous (sub-)resource method for HTTP method GET 
> and output mime-types as defined by @Produces annotation at Java methods 
> public javax.ws.rs.core.Response 
> org.neo4j.server.rest.web.RestfulGraphDatabase.getRoot() and public 
> javax.ws.rs.core.Response 
> org.neo4j.server.rest.discovery.DiscoveryService.redirectToBrowser() at 
> matching path pattern /.; 
> source='org.glassfish.jersey.server.model.RuntimeResource@735296ac', 
> [FATAL] A resource model has ambiguous (sub-)resource method for HTTP 
> method GET and input mime-types as defined by"@Consumes" and "@Produces" 
> annotations at Java methods public javax.ws.rs.core.Response 
> org.neo4j.server.rest.web.RestfulGraphDatabase.getRoot() and public 
> javax.ws.rs.core.Response 
> org.neo4j.server.rest.management.RootService.getServiceDefinition(javax.ws.rs.core.UriInfo,org.neo4j.server.rest.repr.OutputFormat)
>  
> at matching regular expression /. These two methods produces and consumes 
> exactly the same mime-types and therefore their invocation as a resource 
> methods will always fail.; 
> source='org.glassfish.jersey.server.model.RuntimeResource@735296ac', [HINT] 
> A resource model has ambiguous (sub-)resource method for HTTP method GET 
> and output mime-types as defined by @Produces annotation at Java methods 
> public javax.ws.rs.core.Response 
> org.neo4j.server.rest.discovery.DiscoveryService.getDiscoveryDocument() 
> throws java.net.URISyntaxException and public javax.ws.rs.core.Response 
> org.neo4j.server.rest.management.RootService.getServiceDefinition(javax.ws.rs.core.UriInfo,org.neo4j.server.rest.repr.OutputFormat)
>  
> at matching path pattern /.; 
> source='org.glassfish.jersey.server.model.RuntimeResource@735296ac', [HINT] 
> A resource model has ambiguous (sub-)resource method for HTTP method GET 
> and output mime-types as defined by @Produces annotation at Java methods 
> public javax.ws.rs.core.Response 
> org.neo4j.server.rest.discovery.DiscoveryService.redirectToBrowser() and 
> public javax.ws.rs.core.Response 
> org.neo4j.server.rest.management.RootService.getServiceDefinition(javax.ws.rs.core.UriInfo,org.neo4j.server.rest.repr.OutputFormat)
>  
> at matching path pattern /.; 
> source='org.glassfish.jersey.server.model.RuntimeResource@735296ac']"
> weblogic.application.ModuleException: 
> org.glassfish.jersey.server.model.ModelValidationException: Validation of 
> the application resource model has failed during application initialization.
> [[HINT] A resource model has ambiguous (sub-)resource method for HTTP 
> method GET and output mime-types as defined by @Produces annotation at Java 
> methods public javax.ws.rs.core.Response 
> org.neo4j.server.rest.web.RestfulGraphDatabase.getRoot() and public 
> javax.ws.rs.core.Response 
> org.neo4j.server.rest.discovery.DiscoveryService.getDiscoveryDocument() 
> throws java.net.URISyntaxException at matching path pattern /.; 
> source='org.glassfish.jersey.server.model.RuntimeResource@735296ac', [HINT] 
> A resource model has ambiguous (sub-)resource method for HTTP method GET 
> and output mime-types as defined by @Produces annotation at Java methods 
> public javax.ws.rs.core.Response 
> org.neo4j.server.rest.web.RestfulGraphDatabase.getRoot() and public 
> javax.ws.rs.core.Response 
> org.neo4j.server.rest.discovery.DiscoveryService.redirectToBrowser() at 
> matching path pattern /.; 
> source='org.glassfish.jersey.server.model.RuntimeResource@735296ac', 
> [FATAL] A resource model has ambiguous (sub-)resource method for HTTP 
> method GET and input mime-types as defined by"@Consumes" and "@Produces" 
> annotations at Java methods public javax.ws.rs.core.Response 
> org.neo4j.server.rest.web.RestfulGraphDatabase.getRoot() and public 
> javax.ws.rs.core.Response 
> org.neo4j.server.rest.management.RootService.getServiceDefinition(javax.ws.rs.core.UriInfo,org.neo4j.server.rest.repr.OutputFormat)
>  
> at matching regular expression /. These two methods produces and consumes 
> exactly the same mime-types and therefore their invocation as a resource 
> methods will always fail.; 
> source='org.glassfish.jersey.server.model.RuntimeResource@735296ac', [HINT] 
> A resource model has ambiguous (sub-)resource method for HTTP method GET 
> and output mime-types as defined by @Produces annotation at Java methods 
> public javax.ws.rs.core.Response 
> org.neo4j.server.rest.discovery.DiscoveryService.getDiscoveryDocument() 
> throws java.net.URISyntaxException and public javax.ws.rs.core.Response 
> org.neo4j.server.rest.management.RootService.getServiceDefinition(javax.ws.rs.core.UriInfo,org.neo4j.server.rest.repr.OutputFormat)
>  
> at matching path pattern /.; 
> source='org.glassfish.jersey.server.model.RuntimeResource@735296ac', [HINT] 
> A resource model has ambiguous (sub-)resource method for HTTP method GET 
> and output mime-types as defined by @Produces annotation at Java methods 
> public javax.ws.rs.core.Response 
> org.neo4j.server.rest.discovery.DiscoveryService.redirectToBrowser() and 
> public javax.ws.rs.core.Response 
> org.neo4j.server.rest.management.RootService.getServiceDefinition(javax.ws.rs.core.UriInfo,org.neo4j.server.rest.repr.OutputFormat)
>  
> at matching path pattern /.; 
> source='org.glassfish.jersey.server.model.RuntimeResource@735296ac']
> at 
> weblogic.application.internal.ExtensibleModuleWrapper.start(ExtensibleModuleWrapper.java:140)
> at 
> weblogic.application.internal.flow.ModuleListenerInvoker.start(ModuleListenerInvoker.java:124)
> at 
> weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:237)
> at 
> weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:232)
> at 
> weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:45)
> Truncated. see log file for complete stacktrace
> Caused By: org.glassfish.jersey.server.model.ModelValidationException: 
> Validation of the application resource model has failed during application 
> initialization.
> [[HINT] A resource model has ambiguous (sub-)resource method for HTTP 
> method GET and output mime-types as defined by @Produces annotation at Java 
> methods public javax.ws.rs.core.Response 
> org.neo4j.server.rest.web.RestfulGraphDatabase.getRoot() and public 
> javax.ws.rs.core.Response 
> org.neo4j.server.rest.discovery.DiscoveryService.getDiscoveryDocument() 
> throws java.net.URISyntaxException at matching path pattern /.; 
> source='org.glassfish.jersey.server.model.RuntimeResource@735296ac', [HINT] 
> A resource model has ambiguous (sub-)resource method for HTTP method GET 
> and output mime-types as defined by @Produces annotation at Java methods 
> public javax.ws.rs.core.Response 
> org.neo4j.server.rest.web.RestfulGraphDatabase.getRoot() and public 
> javax.ws.rs.core.Response 
> org.neo4j.server.rest.discovery.DiscoveryService.redirectToBrowser() at 
> matching path pattern /.; 
> source='org.glassfish.jersey.server.model.RuntimeResource@735296ac', 
> [FATAL] A resource model has ambiguous (sub-)resource method for HTTP 
> method GET and input mime-types as defined by"@Consumes" and "@Produces" 
> annotations at Java methods public javax.ws.rs.core.Response 
> org.neo4j.server.rest.web.RestfulGraphDatabase.getRoot() and public 
> javax.ws.rs.core.Response 
> org.neo4j.server.rest.management.RootService.getServiceDefinition(javax.ws.rs.core.UriInfo,org.neo4j.server.rest.repr.OutputFormat)
>  
> at matching regular expression /. These two methods produces and consumes 
> exactly the same mime-types and therefore their invocation as a resource 
> methods will always fail.; 
> source='org.glassfish.jersey.server.model.RuntimeResource@735296ac', [HINT] 
> A resource model has ambiguous (sub-)resource method for HTTP method GET 
> and output mime-types as defined by @Produces annotation at Java methods 
> public javax.ws.rs.core.Response 
> org.neo4j.server.rest.discovery.DiscoveryService.getDiscoveryDocument() 
> throws java.net.URISyntaxException and public javax.ws.rs.core.Response 
> org.neo4j.server.rest.management.RootService.getServiceDefinition(javax.ws.rs.core.UriInfo,org.neo4j.server.rest.repr.OutputFormat)
>  
> at matching path pattern /.; 
> source='org.glassfish.jersey.server.model.RuntimeResource@735296ac', [HINT] 
> A resource model has ambiguous (sub-)resource method for HTTP method GET 
> and output mime-types as defined by @Produces annotation at Java methods 
> public javax.ws.rs.core.Response 
> org.neo4j.server.rest.discovery.DiscoveryService.redirectToBrowser() and 
> public javax.ws.rs.core.Response 
> org.neo4j.server.rest.management.RootService.getServiceDefinition(javax.ws.rs.core.UriInfo,org.neo4j.server.rest.repr.OutputFormat)
>  
> at matching path pattern /.; 
> source='org.glassfish.jersey.server.model.RuntimeResource@735296ac']
> at 
> org.glassfish.jersey.server.ApplicationHandler.initialize(ApplicationHandler.java:555)
> at 
> org.glassfish.jersey.server.ApplicationHandler.access$500(ApplicationHandler.java:184)
> at 
> org.glassfish.jersey.server.ApplicationHandler$3.call(ApplicationHandler.java:350)
> at 
> org.glassfish.jersey.server.ApplicationHandler$3.call(ApplicationHandler.java:347)
> at org.glassfish.jersey.internal.Errors.process(Errors.java:315)
> Truncated. see log file for complete stacktrace
>
>
>
> Any pointer on this as I am stuck with this issue.
>
> Regards,
> Abhijit
>

-- 
You received this message because you are subscribed to the Google Groups 
"Neo4j" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to