The following forum message was posted by at
http://sourceforge.net/projects/pydev/forums/forum/293649/topic/3700588:
I\'m running a Django Jython application using Run As > PyDev Django, and
can\'t find where to put the mysql connector jar *on the built-in server.*
It\'s already on the classpath of the project. Here\'s the error I\'m getting:
Traceback (most recent call last):
File
\"C:\\jython2.5.1\\Lib\\site-packages\\django\\core\\servers\\basehttp.py\",
line 279, in run
self.result = application(self.environ, self.start_response)
File
\"C:\\jython2.5.1\\Lib\\site-packages\\django\\core\\servers\\basehttp.py\",
line 651, in __call__
return self.application(environ, start_response)
File
\"C:\\jython2.5.1\\Lib\\site-packages\\django\\core\\handlers\\wsgi.py\", line
245, in __call__
response = middleware_method(request, response)
File
\"C:\\jython2.5.1\\Lib\\site-packages\\django\\contrib\\sessions\\middleware.py\",
line 36, in process_response
request.session.save()
File
\"C:\\jython2.5.1\\Lib\\site-packages\\django\\contrib\\sessions\\backends\\db.py\",
line 51, in save
obj = Session(
File
\"C:\\jython2.5.1\\Lib\\site-packages\\django\\contrib\\sessions\\backends\\base.py\",
line 152, in _get_session_key
self._session_key = self._get_new_session_key()
File
\"C:\\jython2.5.1\\Lib\\site-packages\\django\\contrib\\sessions\\backends\\base.py\",
line 144, in _get_new_session_key
if not self.exists(session_key):
File
\"C:\\jython2.5.1\\Lib\\site-packages\\django\\contrib\\sessions\\backends\\db.py\",
line 25, in exists
Session.objects.get(session_key=session_key)
File
\"C:\\jython2.5.1\\Lib\\site-packages\\django\\contrib\\sessions\\backends\\db.py\",
line 25, in exists
Session.objects.get(session_key=session_key)
File \"C:\\jython2.5.1\\Lib\\site-packages\\django\\db\\models\\manager.py\",
line 120, in get
return self.get_query_set().get(*args, **kwargs)
File \"C:\\jython2.5.1\\Lib\\site-packages\\django\\db\\models\\query.py\",
line 300, in get
num = len(clone)
File \"C:\\jython2.5.1\\Lib\\site-packages\\django\\db\\models\\query.py\",
line 81, in __len__
self._result_cache = list(self.iterator())
File \"C:\\jython2.5.1\\Lib\\site-packages\\django\\db\\models\\query.py\",
line 238, in iterator
for row in self.query.results_iter():
File
\"C:\\jython2.5.1\\Lib\\site-packages\\django\\db\\models\\sql\\query.py\",
line 287, in results_iter
for rows in self.execute_sql(MULTI):
File
\"C:\\jython2.5.1\\Lib\\site-packages\\django\\db\\models\\sql\\query.py\",
line 2368, in execute_sql
cursor = self.connection.cursor()
File
\"C:\\jython2.5.1\\Lib\\site-packages\\django\\db\\backends\\__init__.py\",
line 81, in cursor
cursor = self._cursor()
File
\"C:\\jython2.5.1\\Lib\\site-packages\\doj\\backends\\zxjdbc\\mysql\\base.py\",
line 161, in _cursor
self.connection = self.new_connection()
File
\"C:\\jython2.5.1\\Lib\\site-packages\\doj\\backends\\zxjdbc\\common.py\", line
32, in new_connection
connection = self.new_jndi_connection()
File
\"C:\\jython2.5.1\\Lib\\site-packages\\doj\\backends\\zxjdbc\\common.py\", line
66, in new_jndi_connection
return zxJDBC.lookup(name, keywords=props)
DatabaseError: Need to specify class name in environment or system property, or
as an applet parameter, or in an application resource file:
java.naming.factory.initial
Thanks.
------------------------------------------------------------------------------
_______________________________________________
Pydev-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pydev-users