Thursday, December 16, 2010

create forum_openidnonce and forum_openidassociation

easy_install python-openid
Searching for python-openid
Reading http://pypi.python.org/simple/python-openid/
Reading http://www.openidenabled.com/openid/libraries/python/
Reading http://github.com/openid/python-openid
Download error: unknown url type: https -- Some packages may not be found!
Reading http://github.com/openid/python-openid/tarball/2.2.5
Download error: unknown url type: https -- Some packages may not be found!
Reading http://openidenabled.com/python-openid/
Reading http://github.com/openid/python-openid/tarball/2.2.4
Download error: unknown url type: https -- Some packages may not be found!
Best match: python-openid 2.2.5
Downloading http://pypi.python.org/packages/source/p/python-openid/python-openid-2.2.5.zip#md5=f89d9d4f4dccfd33b5ce34eb4725f751
Processing python-openid-2.2.5.zip
Running python-openid-2.2.5/setup.py -q bdist_egg --dist-dir /tmp/easy_install-8UpKN5/python-openid-2.2.5/egg-dist-tmp-GI5CT1
warning: no files found matching 'CHANGELOG'
warning: no files found matching '*.css' under directory 'doc'
warning: no files found matching '*.html' under directory 'doc'
zip_safe flag not set; analyzing archive contents...
Adding python-openid 2.2.5 to easy-install.pth file

Installed /usr/local/lib/python2.7/site-packages/python_openid-2.2.5-py2.7.egg
Processing dependencies for python-openid
Finished processing dependencies for python-openid
/home/osqa/osqa-server# python manage.py syncdb --all
Syncing...
Creating table forum_openidnonce
Creating table forum_openidassociation
No fixtures found.

Synced:
> django.contrib.auth
> django.contrib.contenttypes
> django.contrib.sessions
> django.contrib.sites
> django.contrib.admin
> django.contrib.markup
> forum
> south

Tuesday, December 14, 2010

Errors were encountered while processing: procps

There seems to be problem with installing procps.

dpkg -i --force-all /var/cache/apt/archives/procps_1%3a3.2.8-9ubuntu3_amd64.deb
(Reading database ... 30892 files and directories currently installed.)
Preparing to replace procps 1:3.2.8-9ubuntu3 (using .../procps_1%3a3.2.8-9ubuntu3_amd64.deb) ...
Unpacking replacement procps ...
Setting up procps (1:3.2.8-9ubuntu3) ...
start: Job failed to start
dpkg: error processing procps (--install):
subprocess installed post-installation script returned error exit status 1
Processing triggers for man-db ...
Errors were encountered while processing:
procps

The solution for me is to remove the package from /var/cache/apt/archives/procps_1%3a3.2.8-9ubuntu3_amd64.deb
and downloaded a newer verion from http://debomatic64.debian.net/natty/aptcache/procps_1%253a3.2.8-9ubuntu5_amd64.deb

then dpkg -i procps_1%3a3.2.8-9ubuntu3_amd64.deb installation was successful.

Friday, December 3, 2010

JNDI datasource

The following resource need to put into an context element. The default Tomcat has $CATALINA-HOME/conf/context.xml, so the resource can be put into that file.



< resource auth="Container" driverclassname="com.mysql.jdbc.Driver" maxactive="100" maxidle="30" maxwait="10000" name="jdbc/TestDB" password="testTwo" type="javax.sql.DataSource" url="jdbc:mysql://localhost:3306/testDb/testTable" username="testTwo">

And in web.xml: