9.1.2010 16:12, Francis Pieraut kirjoitti:
Hi Alex,

Company server do not support jython version 2.5.1. The jython webapp that I developed have to use a modified jython-2.2.1.jar that is shipped with the server and is available under a shared-libraries folder. It is an Akamai customized jython jar. The customizations have been done so as to make sure that it doesn’t violate catalina security policies that are enforced by their company.

While using a standard (and latest) jython 2.5.1 jar, these security violation exceptions will crop up and the application might not get deployed on their network.

The only think I can't think about is that they've remove Dynamic string evaluation (http://en.wikipedia.org/wiki/Eval) which I don't do. I haven't been able to get more information about their security policies and changes yet.

So I have to think about alternatives and sending them directly java code sounds ideal because I won't get any jython2.5.1 security complains because they support fully java. But their security policies are also applied on java code so jython2.5.1 shouldn't be an issue because it is 100% java but they don't want to go that way.

You should know that jython 2.5.x will never get a jythonc like command that compiles to .java because some new language features are impossible to translate into java. What is in the works is a new proxy creation mechanism that allows you to expose Python classes to Java. It still requires jython.jar at runtime though.

Thanks,

--

Francis Piéraut, eng. M.A.Sc.
Senior Software engineer/Machine Learning Consultant
http://francispieraut.com/

2010/1/9 Alex Grönholm <alex.gronholm@nextday.fi>
9.1.2010 8:38, Francis Pieraut kirjoitti:
Hi guys,

Is it possible to get info about your ongoing replacement of jythonc?
I am currently working on a jython contract and I just heard that I can't use jython2.5.1 and I can't make my code working with jython2.2.1 (too many incompatible libs).
I was wondering if I could try your ongoing replacement of jythonrc so I will sent them directly java code.
I saw that jython2.5.1 is generating XXX$py.class, is there a way to us it directly with java? I have try many things but haven't been able to use it.

java -cp ascii85$py.class

There are only a few cases where jythonc would be necessary. Can I ask what yours might be? If you tell more about the circumstances, maybe we can help. The jythonc replacement (proxy generation hooks + clamp) is stalled atm, and from what I've heard it'll probably take a few more months to be finished.
Exception in thread "main" java.lang.NoClassDefFoundError: ascii85/class
Caused by: java.lang.ClassNotFoundException: ascii85.class
    at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:319)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:264)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:332)
Could not find the main class: ascii85.class. Program will exit.


Thanks for your great work, I am impressed.
PS: I have posted some python/jython performance evaluation here: http://fraka6.blogspot.com/2010/01/jython-pypdf-reportlab-experimentation.html

--
Francis Piéraut, eng. M.A.Sc.
Senior Software engineer/Machine Learning Consultant
http://francispieraut.com/
http://fraka6.blogspot.com
------------------------------------------------------------------------------ This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers http://p.sf.net/sfu/verizon-dev2dev
_______________________________________________ Jython-users mailing list Jython-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jython-users


------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev
_______________________________________________
Jython-users mailing list
Jython-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jython-users