Message9428
Good day good sires.
I'm new to jython(experienced only with cpython), and am trying to launch simple django project.
At the moment I'm having trouble with mentioned error
"ImportError: No module named site"
when I try to set up application to tomcat.
Here is my info:
Apache Tomcat/7.0.52 (Ubuntu)
JVM: SUN 1.8.0_25-b17
Sys arch: 3.13.0-24-generic amd64
Jython v2.7b4+ (compiled by DHELIO step-by-step instruction(thanks for instructions, mate) from latest version - 7542:88209128cde8)
At the end i have next app structure:
.
├── WEB-INF
│ ├── lib
│ │ ├── jruby-extras-fileservlet.jar
│ │ ├── jython.jar
│ │ ├── mysql-connector-java-5.1.34-bin.jar
│ │ └── README
│ ├── lib-python
│ │ ├── _abcoll.py
│ │ ├── _abcoll$py.class
│ │ ├── abc.py
│ │ ├── abc$py.class
│ │ ├── aifc.py
│ │ ├── aifc$py.class
│ │ ├── anydbm.py
│ │ ├── anydbm$py.class
│ │ ├── application_settings.py
│ │ └── <here more Lib/ contents, site-packages, my app, etc.>
│ └── web.xml
└── wsgi.py
Inside web.xml I've default contents made by
jython manage.py buildwar --include-java-libs=<jdbc>:<jython> --base-dir=<app_dir>
except lines you've mentioned:
<init-param>
<param-name>python.home</param-name>
<param-value>/usr/share/tomcat7/jython</param-value>
</init-param>
and inside that dir jython is installed with it's installer.
I'll keep trying debug it myself, but I'm not strong at it with such environment(java, tomcat, etc.), so I ask for your help. What I could've done wrong? Any suggestions will be appreciated. |
|
Date |
User |
Action |
Args |
2015-01-20 14:09:21 | strider | set | messageid: <1421762961.07.0.367030454191.issue2225@psf.upfronthosting.co.za> |
2015-01-20 14:09:21 | strider | set | recipients:
+ strider, amak, alex.gronholm, valtron, DHELIO |
2015-01-20 14:09:20 | strider | link | issue2225 messages |
2015-01-20 14:09:19 | strider | create | |
|