ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> zope-List
zope-List
[Zope] XML-RPC problems after upgrade
by Paulo Eduardo Neves other posts by this author
Dec 17 2002 1:15PM messages near this date
Re: [Zope] Considerations using Zope | Re: [Zope] XML-RPC problems after upgrade
I've just upgrade from 2.4.3 to 2.6. In the process, I've also changed 
some things (e.g., changed from SiteRoot/SiteAccess to VHM). My problem 
now is that XML-RPC calls aren't working any more. I always get a /RPC2 
NotFound error.  Here is the output of calling a simple python script:

################################333
python
Python 2.1.3 (#4, May 23 2002, 15:13:21)
[GCC 2.96 20000731 (Red Hat Linux 7.3 2.96-110)] on linux2
Type "copyright", "credits" or "license" for more information.
Welcome to Lazy Python.  Type "help LazyPython" for help.
> >> import xmlrpclib
> >> s = xmlrpclib.Server('http://www.samba-choro.com.br')
> >> s.testXMLRPC()
------------------------------------------------------------
Traceback (most recent call last):
  File "<stdin> ", line 1, in ?
  File "/usr/local/lib/python2.1/site-packages/xmlrpclib.py", line 986, 
in __call__
    return self.__send(self.__name, args)
  File "/usr/local/lib/python2.1/site-packages/xmlrpclib.py", line 1239, 
in __request
    verbose=self.__verbose
  File "/usr/local/lib/python2.1/site-packages/xmlrpclib.py", line 1037, 
in request
    return self._parse_response(h.getfile(), sock)
  File "/usr/local/lib/python2.1/site-packages/xmlrpclib.py", line 1138, 
in _parse_response
    return u.close()
  File "/usr/local/lib/python2.1/site-packages/xmlrpclib.py", line 703, 
in close
    raise apply(Fault, (), self._stack[0])
Fault: <Fault -2: 'Unexpected Zope error value: NotFound -  \n \n\n \n 
\n \n\n \n   Site Error \n   An error was encountered while publishing 
this resource.\n   \n    Resource not found  \n\n  Sorry, the requested 
resource does not exist. Check the URL and try again.   Resource:  
http://www.samba-choro.com.br/RPC2 \n   \n\n   Troubleshooting 
Suggestions \n\n   \n   The URL may be incorrect. \n   The parameters 
passed to this resource may be incorrect. \n   A resource that this 
resource relies on may be\n      encountering an error. \n   \n\n   For 
more detailed information about the error, please\n  refer to the HTML 
source for this page.\n   \n\n   If the error persists please contact 
the site maintainer.\n  Thank you for your patience.\n   \n  \n '> 

###########################

If I try to call other sites with Zope 2.6.0 (e.g. Zope.org) I also get 
the same XMLRPC error (/RPC2 NotFound). Does anybody knows how can I 
fix it?

I'm running Zope behind Apache, using Virtual Host Monster.

regards,
-- 
Paulo Eduardo Neves
Agenda do Samba & Choro, o boteco virtual do samba e choro
http://www.samba-choro.com.br 



_______________________________________________
Zope maillist  -  Zope@[...].org
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )
Thread:
Paulo Eduardo Neves
Martijn Pieters
Dieter Maurer
Paulo Eduardo Neves
Kevin Carlson
Paulo Eduardo Neves
Martijn Pieters

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved