Deploying a Django Application for Weblogic: Cannot Find Modjy

I am trying to deploy a django application for Weblogic and cannot find modjy. I looked in jython.jar, which is included in the generated war file, and indeed, sergeant modjy. The following is the error that the server receives when deploying the application.

<Feb 18, 2010 11:18:49 AM EST> <Error> <HTTP> <BEA-101216> <Servlet: "modjy" failed to preload on startup in Web application: "myApp.war". Traceback (innermost last): File "<string>", line 1, in ? ImportError: no module named modjy at org.python.core.Py.ImportError(Unknown Source) at org.python.core.imp.import_first(Unknown Source) at org.python.core.imp.import_name(Unknown Source) at org.python.core.imp.importName(Unknown Source) at org.python.core.ImportFunction.load(Unknown Source) Truncated. see log file for complete stacktrace > <Feb 18, 2010 11:18:49 AM EST> <Error> <Deployer> <BEA-149231> <Unable to set the activation state to true for the application 'myApp'. weblogic.application.ModuleException: [HTTP:101216]Servlet: "modjy" failed to preload on startup in Web application: "myApp.war". Traceback (innermost last): File "<string>", line 1, in ? ImportError: no module named modjy at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:1399) at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:460) at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:425) at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:83) at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:119) Truncated. see log file for complete stacktrace Caused By: Traceback (innermost last): File "<string>", line 1, in ? ImportError: no module named modjy at org.python.core.Py.ImportError(Unknown Source) at org.python.core.imp.import_first(Unknown Source) at org.python.core.imp.import_name(Unknown Source) at org.python.core.imp.importName(Unknown Source) at org.python.core.ImportFunction.load(Unknown Source) Truncated. see log file for complete stacktrace > 
+4
source share
2 answers

Sorry to get to this problem so late: I just noticed the url in my referencing logs.

The problem is that modjy cannot import the module "modjy.py", which is located in the lib / modjy jython directory.

I created the Modjy Troubleshooting page and described this problem.

http://opensource.xhaus.com/projects/modjy/wiki/ModjyTroubleShooting

If this does not solve the problem, send an email to the jython user list.

+2
source

Have you tried the instructions in the modjy wiki ?

It seems that WebLogic cannot find this library, so it looks like something was missing in the setup steps. You never gave any information about how you made your setup, so it's hard to say.

+1
source

Source: https://habr.com/ru/post/1301719/


All Articles