On Mon, Mar 29, 2010 at 10:58, Nicola Nardino
<nicola.nardino(a)credit-suisse.com> wrote:
Hi,
Thanks for replying. Though I've got a context class loader to make
Xwiki working with Weblogic I reckon jython is allowd to scan the lib
dir.
Is there any documentation in your repository describing the integration
jython/xwiki? I'm digging into the 2 jars jython-standalone-2.5.1-xwiki
&& pygments-1.0-xwiki-1.jar for the moment.
* pygments-1.0-xwiki-1.jar is just pygment packaged in a jar
* jython-standalone-2.5.1-xwiki is the jython standalone jar
(java+python standard) on our maven repository because i could not
find it in another one
Regards
Nicola
________________________________
From: tmortagne [via XWiki]
[mailto:ml-node+4816889-1739552021-433577@n2.nabble.com]
Sent: Monday, March 29, 2010 10:53 AM
To: Nardino Nicola (KSTB 52)
Subject: Re: Issue with Pygments/Python
On Mon, Mar 29, 2010 at 10:24, Nicola Nardino
<[hidden email]
<http://n2.nabble.com/user/SendEmail.jtp?type=node&node=4816889&i=0>
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
[hidden email]
<http://n2.nabble.com/user/SendEmail.jtp?type=node&node=4816889&i=1
>
http://lists.xwiki.org/mailman/listinfo/devs
--
Thomas Mortagne
_______________________________________________
devs mailing list
[hidden email]
<http://n2.nabble.com/user/SendEmail.jtp?type=node&node=4816889&i=2
http://lists.xwiki.org/mailman/listinfo/devs
________________________________
View message @
http://n2.nabble.com/Issue-with-Pygments-Python-tp4816815p4816889.html
To unsubscribe from Issue with Pygments/Python, click here
< (link removed)
pbm9AY3JlZGl0LXN1aXNzZS5jb218NDgxNjgxNXwtMTY3NzI5OTkzNg==> .
--
View this message in context:
http://n2.nabble.com/Issue-with-Pygments-Python-tp4816815p4816902.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