Hi Hayden,
Yes, like helix84 said, I can get a .war output that way which unpacks ok under
Tomcat. But I'm new to REST and need some pointers on how to test it.
What I started with was issuing URIs to a browser (just manually entering them):
http://$dev-server/rest/
This results in a "describe" page being displayed. Promising, I thought. Let's
try one of the entities. When I clicked on communities or communities (xml),
once again I get describe pages displaying in the browser. Great.
Now if I try something like:
http://$dev-server/rest/communities
I get a blank page. The catalina log is attached. Would you have any idea
what's going on here?
I even tried a simple curl script in PHP and didn't get any errors, but also
produced a blank page output.
Thanks a lot,
Gary
> -----Original Message-----
> From: Hayden Young [mailto:[email protected]]
> Sent: Wednesday, 11 July 2012 4:17 PM
> To: [email protected]
> Subject: Re: [Dspace-tech] DSpace REST API
>
> Hi Gary
>
> Please try changing the following line in your pom.xml from:
>
> <version>1.8.1</version>
>
> to:
>
> <version>1.8.2</version>
>
> and see if that solves your issue.
>
> Cheers
>
>
> Hayden
>
> On 10/07/12 09:55, Gary Browne wrote:
> > Hi Hayden,
> >
> > I'm keen to try this out, however I am unable to install it - should it run
> > ok
> on 1.8.2?
> >
> > On building (mvn package), I get the following error:
> >
> > [INFO] Unable to find resource 'org.dspace:dspace-rest:war:1.0' in
> > repository central (http://repo1.maven.org/maven2) [INFO]
> > ----------------------------------------------------------------------
> > --
> > [ERROR] BUILD ERROR
> > [INFO]
> > ----------------------------------------------------------------------
> > --
> > [INFO] Failed to resolve artifact.
> >
> > Missing:
> > ----------
> > 1) org.dspace:dspace-rest:war:1.0
> >
> > Try downloading the file manually from the project website.
> >
> > Then, install it using the command:
> > mvn install:install-file -DgroupId=org.dspace
> > -DartifactId=dspace-rest -Dversion=1.0 -Dpackaging=war
> > -Dfile=/path/to/file
> >
> > Alternatively, if you host your own repository you can deploy the file
> there:
> > mvn deploy:deploy-file -DgroupId=org.dspace
> > -DartifactId=dspace-rest -Dversion=1.0 -Dpackaging=war
> > -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
> >
> > Path to dependency:
> > 1) org.dspace.modules:rest:war:1.8.1
> > 2) org.dspace:dspace-rest:war:1.0
> >
> > ----------
> > 1 required artifact is missing.
> >
> > for artifact:
> > org.dspace.modules:rest:war:1.8.1
> >
> > from the specified remote repositories:
> > central (http://repo1.maven.org/maven2),
> > sonatype-nexus-snapshots
> > (https://oss.sonatype.org/content/repositories/snapshots)
> >
> > I'm not clear on what I should do next, are you able to help please?
> >
> > Thanks a lot,
> > Gary
> >
> >> -----Original Message-----
> >> From: Hayden Young [mailto:[email protected]]
> >> Sent: Tuesday, 10 July 2012 5:32 AM
> >> To: [email protected]; DSpace Developer List
> >> Subject: [Dspace-tech] DSpace REST API
> >>
> >> After several months of development, Wijiti is pleased to contribute
> >> this reworked version of the REST API for DSpace 1.8.x.
> >>
> >> Details and documentation are available at
> >> https://jspace.atlassian.net/ and all code is freely available via
> >> Github, the link of which is in the documentation.
> >>
> >> Enjoy.
> >>
> >> --
> >> Hayden Young
> >> Managing Director
> >> Wijiti Pty Ltd
> >> p. +61 (0) 8 6398 5010
> >> e. [email protected]
> >> w. www.wijiti.com
> >> vcard. www.wijiti.com/vcard/haydenyoung.vcf
> >>
> >> NOTICE
> >> This e-mail and any attachments are intended for the addressee(s)
> >> only and may be confidential. They may contain legally privileged or
> >> copyright material. You should not read, copy, use or disclose them
> >> without authorization. If you are not the intended recipient please
> >> contact the sender as soon as possible by return e-mail and then
> >> please delete both messages. This notice should not be removed.
> >>
> >>
> >> ---------------------------------------------------------------------
> >> ---------
> >> Live Security Virtual Conference
> >> Exclusive live event will cover all the ways today's security and
> >> threat landscape has changed and how IT managers can respond.
> >> Discussions will include endpoint security, mobile security and the latest
> >> in
> malware threats.
> >> http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> >> _______________________________________________
> >> DSpace-tech mailing list
> >> [email protected]
> >> https://lists.sourceforge.net/lists/listinfo/dspace-tech
> > ----------------------------------------------------------------------
> > --------
> > Live Security Virtual Conference
> > Exclusive live event will cover all the ways today's security and
> > threat landscape has changed and how IT managers can respond.
> > Discussions will include endpoint security, mobile security and the
> > latest in malware threats.
> > http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> > _______________________________________________
> > DSpace-tech mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/dspace-tech
>
> --
> Hayden Young
> Managing Director
> Wijiti Pty Ltd
> p. +61 (0) 8 6398 5010
> e. [email protected]
> w. www.wijiti.com
> vcard. www.wijiti.com/vcard/haydenyoung.vcf
>
> NOTICE
> This e-mail and any attachments are intended for the addressee(s) only and
> may be confidential. They may contain legally privileged or copyright
> material. You should not read, copy, use or disclose them without
> authorization. If you are not the intended recipient please contact the
> sender as soon as possible by return e-mail and then please delete both
> messages. This notice should not be removed.
>
>
>
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and threat
> landscape has changed and how IT managers can respond. Discussions will
> include endpoint security, mobile security and the latest in malware threats.
> http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> DSpace-tech mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/dspace-tech
WARN Could not process entity: SQL error (500)[null]: Internal server error
INFO user:null:ip_addr=129.78.73.64:starting to write for collection adding
[2012-07-16 14:24:55,019] (AbstractBaseProvider.java:168)
INFO user:null:ip_addr=129.78.73.64:list_communities [2012-07-16 14:24:55,021]
(CommunitiesProvider.java:105)
WARN Exception initializing DB pool [2012-07-16 14:24:55,021]
(DataSourceInit.java:148)
java.lang.NullPointerException
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:186)
at
org.dspace.storage.rdbms.DataSourceInit.getDatasource(DataSourceInit.java:38)
at
org.dspace.storage.rdbms.DatabaseManager.initialize(DatabaseManager.java:1513)
at
org.dspace.storage.rdbms.DatabaseManager.getConnection(DatabaseManager.java:585)
at org.dspace.core.Context.<init>(Context.java:95)
at
org.dspace.rest.providers.CommunitiesProvider.getEntities(CommunitiesProvider.java:109)
at
org.sakaiproject.entitybus.impl.EntityBrokerManagerImpl.internalGetEntities(EntityBrokerManagerImpl.java:550)
at
org.sakaiproject.entitybus.impl.EntityBrokerManagerImpl.getEntitiesData(EntityBrokerManagerImpl.java:402)
at
org.sakaiproject.entitybus.rest.EntityHandlerImpl.handleEntityAccess(EntityHandlerImpl.java:563)
at
org.sakaiproject.entitybus.util.servlet.DirectServlet.dispatch(DirectServlet.java:186)
at
org.sakaiproject.entitybus.util.servlet.DirectServlet.handleRequest(DirectServlet.java:157)
at
org.sakaiproject.entitybus.util.servlet.DirectServlet.service(DirectServlet.java:130)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:172)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)
at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:200)
at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:291)
at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:775)
at
org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:704)
at
org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:897)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:685)
at java.lang.Thread.run(Thread.java:679)
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech