On Mon, Mar 29, 2010 at 10:24, Nicola Nardino
<nicola.nardino(a)credit-suisse.com> wrote:
Hi all,
I've come across this issue today while using the code 20 macro. It seems
that there's an issue with the class loader that is unable to locate one of
the packaged python modules (os). It might explain the cause given the fact
that with Tomcat I've no issues (now using Weblogic as company wide app
server). Have you ever experienced something line this:
Caused by: Traceback (most recent call last):
File "<string>", line 1, in <module>
File "__pyclasspath__/pygments/__init__.py", line 36, in <module>
ImportError: No module named os
at org.python.core.PyException.fillInStackTrace(PyException.java:70)
at java.lang.Throwable.<init>(Throwable.java:181)
at java.lang.Exception.<init>(Exception.java:29)
at java.lang.RuntimeException.<init>(RuntimeException.java:32)
at org.python.core.PyException.<init>(PyException.java:46)
at org.python.core.PyException.<init>(PyException.java:43)
at org.python.core.PyException.<init>(PyException.java:61)
at org.python.core.Py.ImportError(Py.java:264)
at org.python.core.imp.import_first(imp.java:672)
at org.python.core.imp.import_name(imp.java:756)
at org.python.core.imp.importName(imp.java:806)
at org.python.core.ImportFunction.__call__(__builtin__.java:1232)
at org.python.core.PyObject.__call__(PyObject.java:367)
at org.python.core.__builtin__.__import__(__builtin__.java:1202)
At startup Jython scans all jars in the classpath to find python code.
Maybe Weblogic configuration you have does not allow it to do that ?
--
View this message in context:
http://n2.nabble.com/Issue-with-Pygments-Python-tp4816815p4816815.html
Sent from the XWiki- Dev mailing list archive at
Nabble.com.
_______________________________________________
devs mailing list
devs(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/devs
--
Thomas Mortagne