Bill Thanks for the feedback, but I have been using POST - I should have given the line from the script in my original desc:
curl --user fedoraAdmin:fedoraAdmin -i --output ingest_log.txt -s -H "Content-type: text/xml" -XPOST "http://${FEDORA_HOST}: ${FEDORA_PORT}/fedora/objects/nextPID" Worked fine on the last box w/3.0 - trying it on the Prod box to see if it'll break the tie P On Thu, 2008-09-04 at 16:12 -0400, Bill Branan wrote: > Hi Phil, > > > For the 3.0 final release the getNextPid method of the REST API was > changed from a GET to a POST due to the fact that the method is not > idempotent. Your calls are probably still trying to perform a GET, > leading to the error. > > > Bill > > On Thu, Sep 4, 2008 at 3:31 PM, Phil Cryer <[EMAIL PROTECTED]> > wrote: > My dev box that I was having problems on yesterday has a bad > drive, so I > had to recreate most of my work on my desktop box today. I've > gotten > everything installed, gotten 3.0 working with Tomcat and MySQL > no > problem, the only issue is I can't use the REST calls I had > come to > depend on in my ingest script. > http://localhost:8180/fedora/objects/nextPID > > When this is issued in a browser I get the error: > HTTP Status 405 - > > > ________________________________________________________________________ > > type Status report > > message > > description The specified HTTP method is not allowed for the > requested > resource (). > > The error logs seem to say something isn't found, however I > don't > remember doing anything to get this running during the last > install, I > just said 'true' during install and it worked. Below see my > install.properties for full details. Ideas? > > ==> /var/log/syslog <== > Sep 4 14:22:13 s2ua8140gyb modprobe: WARNING: Not loading > blacklisted > module ipv6 > Sep 4 14:22:31 s2ua8140gyb jsvc.exec[6397]: Sep 4, 2008 > 2:22:31 PM > com.sun.ws.rest.api.core.ClasspathResourceConfig init INFO: > Scanning for > root resource and provider classes in the > paths: /var/lib/tomcat5.5/webapps/fedora/WEB-INF/lib > /var/lib/tomcat5.5/webapps/fedora/WEB-INF/classes > > ==> /var/log/tomcat5.5/catalina.2008-09-04.log <== > Sep 4, 2008 2:22:31 PM > com.sun.ws.rest.api.core.ClasspathResourceConfig > init > INFO: Scanning for root resource and provider classes in the > paths: > /var/lib/tomcat5.5/webapps/fedora/WEB-INF/lib > /var/lib/tomcat5.5/webapps/fedora/WEB-INF/classes > > ==> /var/log/syslog <== > Sep 4 14:22:33 s2ua8140gyb jsvc.exec[6397]: Sep 4, 2008 > 2:22:33 PM > com.sun.ws.rest.api.core.ClasspathResourceConfig init INFO: > Root > resource classes found: class > fedora.server.rest.DatastreamResource > class fedora.server.rest.FedoraObjectSearchResource class > fedora.server.rest.FedoraObjectResource > Sep 4 14:22:33 s2ua8140gyb jsvc.exec[6397]: Sep 4, 2008 > 2:22:33 PM > com.sun.ws.rest.api.core.ClasspathResourceConfig init INFO: > Provider > classes found: > > ==> /var/log/tomcat5.5/catalina.2008-09-04.log <== > Sep 4, 2008 2:22:33 PM > com.sun.ws.rest.api.core.ClasspathResourceConfig > init > INFO: Root resource classes found: > class fedora.server.rest.DatastreamResource > class fedora.server.rest.FedoraObjectSearchResource > class fedora.server.rest.FedoraObjectResource > Sep 4, 2008 2:22:33 PM > com.sun.ws.rest.api.core.ClasspathResourceConfig > init > INFO: Provider classes found: > > > my installer.properties file: > fedora.serverHost=localhost > tomcat.http.port=8180 > apia.auth.required=false > tomcat.ssl.port=8443 > ssl.available=false > deploy.local.services=true > tomcat.shutdown.port=8009 > messaging.enabled=true > ri.enabled=true > xacml.enabled=false > database.driver=included > database=mysql > database.mysql.jdbcDriverClass=com.mysql.jdbc.Driver > database.jdbcDriverClass=com.mysql.jdbc.Driver > database.mysql.jdbcURL=jdbc\:mysql > \://localhost/fedora?useUnicode > \=true&characterEncoding\=UTF-8&autoReconnect\=true > database.jdbcURL=jdbc\:mysql\://localhost/fedora?useUnicode > \=true&characterEncoding\=UTF-8&autoReconnect\=true > database.password=******* > database.mysql.driver=included > database.username=root > rest.enabled=true > install.type=custom > fedora.home=/var/lib/fedora > tomcat.home=/var/lib/tomcat > servlet.engine=included > fedora.admin.pass=fedoraAdmin > apim.ssl.required=false > apia.ssl.required=false > > > P > -- > Phil Cryer | Open Source Development | Missouri Botanical > Garden > www: http://mobot.org | latitude, longitude: 38.613877, > -90.257943 > email: phildotcryeratmobotdotorg | im googletalk/skype: > phil.cryer > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move > Developer's challenge > Build the coolest Linux based applications with Moblin SDK & > win great prizes > Grand prize is a trip for two to an Open Source event anywhere > in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Fedora-commons-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/fedora-commons-users > > -- Phil Cryer | Open Source Development | Missouri Botanical Garden www: http://mobot.org | latitude, longitude: 38.613877, -90.257943 email: phildotcryeratmobotdotorg | im googletalk/skype: phil.cryer ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Fedora-commons-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/fedora-commons-users
