[BlueBream] Hello World Example #2 crashes

Harouff, Paul Paul.Harouff at tbe.com
Wed Mar 3 12:42:05 EST 2010


I was able to get Example 1: Hello World without page template (Section 3.8) to run.

When I tried Example 2: Hello World with page template (Section 3.9), the server crashes on startup.

Paul A. Harouff, P.E.

=====================
CONTENTS OF helloworld.pt

[code]
<html>
    <head>
         <title>Hello World!</title>
    </head>
    <body>
        <div>
            Hello World!
        </div>
    </body>
</html>
[/code]

==========================
CONTENTS OF configure.zcml

[code]
<configure
   i18n_domain="csdb.main"
   xmlns="http://namespaces.zope.org/zope"
   xmlns:browser="http://namespaces.zope.org/browser">

  <browser:resourceDirectory
     name="static"
     directory="static"
     />

  <!-- The following registration (page) is _not_ required for
       functioning your application.  This registration is given to
       provide a default page when you access root folder from web
       like: http://localhost:8080/ -->

  <browser:page
     for="zope.site.interfaces.IRootFolder"
     name="index"
     permission="zope.Public"
     class=".views.RootDefaultView"
     />

  <class class=".app.SampleApplication">
    <implements
       interface="zope.annotation.interfaces.IAttributeAnnotatable"
       />
    <implements
       interface="zope.container.interfaces.IContentContainer"
       />
    <require
       permission="zope.ManageContent"
       interface=".interfaces.ISampleApplication"
       set_schema=".interfaces.ISampleApplication"
       />
  </class>

  <browser:page
     for="zope.site.interfaces.IRootFolder"
     name="add_sample_app"
     permission="zope.ManageContent"
     class=".views.AddSampleApplication"
     />

  <browser:page
     for=".interfaces.ISampleApplication"
     name="index"
     permission="zope.Public"
     class=".views.SampleApplicationDefaultView"
     />

  <browser:page
     for="zope.site.interfaces.IRootFolder"
     name="hello"
     permission="zope.Public"
     class=".myhello.HelloView"
     />

  <browser:page
     name="hello2"
     for="*"
     template="helloworld.pt
     permission="zope.Public"
     />

</configure>
[/code]

==============================
LOG FROM bin\paster serve debug.ini >server.log 2>&1

[code]
2010-03-03 11:39:07,517 WARNING [root] Developer mode is enabled: this is a security risk and should NOT be enabled on production servers. Developer mode can usually be turned off by setting the `devmode` option to `off` or by removing it from the instance configuration file completely.
------
2010-03-03T11:39:07 WARNING root Developer mode is enabled: this is a security risk and should NOT be enabled on production servers. Developer mode can usually be turned off by setting the `devmode` option to `off` or by removing it from the instance configuration file completely.
c:\bluebream\csdb\eggs\zope.configuration-3.7.1-py2.6.egg\zope\configuration\fields.py:419: UserWarning: You did not specify an i18n translation domain for the 'label' field in c:\bluebream\csdb\eggs\zope.app.localpermission-3.7.0-py2.6.egg\zope\app\localpermission\browser.zcml
  "'%s' field in %s" % (self.getName(), context.info.file )
c:\bluebream\csdb\eggs\zope.configuration-3.7.1-py2.6.egg\zope\configuration\fields.py:419: UserWarning: You did not specify an i18n translation domain for the 'description' field in c:\bluebream\csdb\eggs\zope.app.localpermission-3.7.0-py2.6.egg\zope\app\localpermission\browser.zcml
  "'%s' field in %s" % (self.getName(), context.info.file )
c:\bluebream\csdb\eggs\zope.configuration-3.7.1-py2.6.egg\zope\configuration\fields.py:419: UserWarning: You did not specify an i18n translation domain for the 'title' field in c:\bluebream\csdb\eggs\zope.app.localpermission-3.7.0-py2.6.egg\zope\app\localpermission\browser.zcml
  "'%s' field in %s" % (self.getName(), context.info.file )
Traceback (most recent call last):
  File "C:\BlueBream\csdb\bin\paster-script.py", line 120, in <module>
    paste.script.command.run()
  File "C:\BlueBream\csdb\eggs\pastescript-1.7.3-py2.6.egg\paste\script\command.py", line 84, in run
    invoke(command, command_name, options, args[1:])
  File "C:\BlueBream\csdb\eggs\pastescript-1.7.3-py2.6.egg\paste\script\command.py", line 123, in invoke
    exit_code = runner.run(args)
  File "C:\BlueBream\csdb\eggs\pastescript-1.7.3-py2.6.egg\paste\script\command.py", line 218, in run
    result = self.command()
  File "C:\BlueBream\csdb\eggs\pastescript-1.7.3-py2.6.egg\paste\script\serve.py", line 276, in command
    relative_to=base, global_conf=vars)
  File "C:\BlueBream\csdb\eggs\pastescript-1.7.3-py2.6.egg\paste\script\serve.py", line 313, in loadapp
    **kw)
  File "C:\BlueBream\csdb\eggs\pastedeploy-1.3.3-py2.6.egg\paste\deploy\loadwsgi.py", line 204, in loadapp
    return loadobj(APP, uri, name=name, **kw)
  File "C:\BlueBream\csdb\eggs\pastedeploy-1.3.3-py2.6.egg\paste\deploy\loadwsgi.py", line 225, in loadobj
    return context.create()
  File "C:\BlueBream\csdb\eggs\pastedeploy-1.3.3-py2.6.egg\paste\deploy\loadwsgi.py", line 625, in create
    return self.object_type.invoke(self)
  File "C:\BlueBream\csdb\eggs\pastedeploy-1.3.3-py2.6.egg\paste\deploy\loadwsgi.py", line 177, in invoke
    next_app = context.next_context.create()
  File "C:\BlueBream\csdb\eggs\pastedeploy-1.3.3-py2.6.egg\paste\deploy\loadwsgi.py", line 625, in create
    return self.object_type.invoke(self)
  File "C:\BlueBream\csdb\eggs\pastedeploy-1.3.3-py2.6.egg\paste\deploy\loadwsgi.py", line 188, in invoke
    filtered = context.next_context.create()
  File "C:\BlueBream\csdb\eggs\pastedeploy-1.3.3-py2.6.egg\paste\deploy\loadwsgi.py", line 625, in create
    return self.object_type.invoke(self)
  File "C:\BlueBream\csdb\eggs\pastedeploy-1.3.3-py2.6.egg\paste\deploy\loadwsgi.py", line 110, in invoke
    return fix_call(context.object, context.global_conf, **context.local_conf)
  File "C:\BlueBream\csdb\eggs\pastedeploy-1.3.3-py2.6.egg\paste\deploy\util\fixtypeerror.py", line 57, in fix_call
    val = callable(*args, **kw)
  File "c:\bluebream\csdb\src\csdb\main\startup.py", line 5, in application_factory
    return zope.app.wsgi.getWSGIApplication(zope_conf)
  File "c:\bluebream\csdb\eggs\zope.app.wsgi-3.6.1-py2.6.egg\zope\app\wsgi\__init__.py", line 158, in getWSGIApplication
    db = config(configfile, schemafile, features)
  File "c:\bluebream\csdb\eggs\zope.app.wsgi-3.6.1-py2.6.egg\zope\app\wsgi\__init__.py", line 147, in config
    appsetup.config(options.site_definition, features=features)
  File "c:\bluebream\csdb\eggs\zope.app.appsetup-3.13.0-py2.6.egg\zope\app\appsetup\appsetup.py", line 111, in config
    context = xmlconfig.file(file, context=context, execute=execute)
  File "c:\bluebream\csdb\eggs\zope.configuration-3.7.1-py2.6.egg\zope\configuration\xmlconfig.py", line 651, in file
    include(context, name, package)
  File "c:\bluebream\csdb\eggs\zope.configuration-3.7.1-py2.6.egg\zope\configuration\xmlconfig.py", line 550, in include
    processxmlfile(f, context)
  File "c:\bluebream\csdb\eggs\zope.configuration-3.7.1-py2.6.egg\zope\configuration\xmlconfig.py", line 382, in processxmlfile
    parser.parse(src)
  File "C:\Python26\Lib\xml\sax\expatreader.py", line 107, in parse
    xmlreader.IncrementalParser.parse(self, source)
  File "C:\Python26\lib\xml\sax\xmlreader.py", line 123, in parse
    self.feed(buffer)
  File "C:\Python26\Lib\xml\sax\expatreader.py", line 207, in feed
    self._parser.Parse(data, isFinal)
  File "C:\Python26\Lib\xml\sax\expatreader.py", line 349, in end_element_ns
    self._cont_handler.endElementNS(pair, None)
  File "c:\bluebream\csdb\eggs\zope.configuration-3.7.1-py2.6.egg\zope\configuration\xmlconfig.py", line 361, in endElementNS
    self.context.end()
  File "c:\bluebream\csdb\eggs\zope.configuration-3.7.1-py2.6.egg\zope\configuration\config.py", line 538, in end
    self.stack.pop().finish()
  File "c:\bluebream\csdb\eggs\zope.configuration-3.7.1-py2.6.egg\zope\configuration\config.py", line 686, in finish
    actions = self.handler(context, **args)
  File "c:\bluebream\csdb\eggs\zope.configuration-3.7.1-py2.6.egg\zope\configuration\xmlconfig.py", line 550, in include
    processxmlfile(f, context)
  File "c:\bluebream\csdb\eggs\zope.configuration-3.7.1-py2.6.egg\zope\configuration\xmlconfig.py", line 382, in processxmlfile
    parser.parse(src)
  File "C:\Python26\Lib\xml\sax\expatreader.py", line 107, in parse
    xmlreader.IncrementalParser.parse(self, source)
  File "C:\Python26\lib\xml\sax\xmlreader.py", line 123, in parse
    self.feed(buffer)
  File "C:\Python26\Lib\xml\sax\expatreader.py", line 207, in feed
    self._parser.Parse(data, isFinal)
  File "C:\Python26\Lib\xml\sax\expatreader.py", line 349, in end_element_ns
    self._cont_handler.endElementNS(pair, None)
  File "c:\bluebream\csdb\eggs\zope.configuration-3.7.1-py2.6.egg\zope\configuration\xmlconfig.py", line 361, in endElementNS
    self.context.end()
  File "c:\bluebream\csdb\eggs\zope.configuration-3.7.1-py2.6.egg\zope\configuration\config.py", line 538, in end
    self.stack.pop().finish()
  File "c:\bluebream\csdb\eggs\zope.configuration-3.7.1-py2.6.egg\zope\configuration\config.py", line 686, in finish
    actions = self.handler(context, **args)
  File "c:\bluebream\csdb\eggs\zope.configuration-3.7.1-py2.6.egg\zope\configuration\xmlconfig.py", line 550, in include
    processxmlfile(f, context)
  File "c:\bluebream\csdb\eggs\zope.configuration-3.7.1-py2.6.egg\zope\configuration\xmlconfig.py", line 382, in processxmlfile
    parser.parse(src)
  File "C:\Python26\Lib\xml\sax\expatreader.py", line 107, in parse
    xmlreader.IncrementalParser.parse(self, source)
  File "C:\Python26\lib\xml\sax\xmlreader.py", line 123, in parse
    self.feed(buffer)
  File "C:\Python26\Lib\xml\sax\expatreader.py", line 211, in feed
    self._err_handler.fatalError(exc)
  File "C:\Python26\lib\xml\sax\handler.py", line 38, in fatalError
    raise exception
zope.configuration.xmlconfig.ZopeXMLConfigurationError: File "C:\BlueBream\csdb\etc\site.zcml", line 45.2-45.57
    ZopeXMLConfigurationError: File "c:\bluebream\csdb\src\csdb\main\application.zcml", line 18.2-18.33
    ZopeSAXParseException: c:\bluebream\csdb\src\csdb\main\configure.zcml:62:17: not well-formed (invalid token)
[/code]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.zope.org/pipermail/bluebream/attachments/20100303/79b1f3a0/attachment-0001.html 


More information about the bluebream mailing list