weblogic12c - How to deploy Clojure/Luminus uberwar in Weblogic 12.c -


i have created microservice poc using clojure & luminus web framework , packaged war via lein uberwar.

it has been tested , deployed , run in immutant , tomcat servers. our production environment oracle weblogic 12c. in order avoid errors i've created weblogic.xml file inside war content:

<?xml version='1.0' encoding='utf-8'?> <weblogic-web-app     xmlns="http://www.bea.com/ns/weblogic/90"     xmlns:xsi="http://www.w3.org/2001/xmlschema-instance"     xsi:schemalocation="http://www.bea.com/ns/weblogic/90 http://www.bea.com/ns/weblogic/90/weblogic-web-app.xsd"> <container-descriptor>   <filter-dispatched-requests-enabled>false</filter-dispatched-requests-enabled>   <prefer-web-inf-classes>true</prefer-web-inf-classes>       </container-descriptor> 

however internal error if server not detect entry point of application.

<nov 10, 2016 9:25:57 utc> <warning> <http> <bea-101162> <user defined listener mu_publisher.listener failed: java.lang.runtimeexception: not start [#'mu-publisher.handler/init-app] due to. java.lang.runtimeexception: not start [#'mu-publisher.handler/init-app] due @ mount.core$up$fn__4349.invoke(core.cljc:92) @ mount.core$up.invokestatic(core.cljc:92) @ mount.core$up.invoke(core.cljc:90) @ mount.core$bring.invokestatic(core.cljc:206) @ mount.core$bring.invoke(core.cljc:198) truncated. see log file complete stacktrace caused by: java.lang.illegalargumentexception: no implementation of method: :enabled? of protocol: #'clojure.tools.logging.impl/logger found class: org.slf4j.impl.jdk14loggeradapter @ clojure.core$_cache_protocol_fn.invokestatic(core_deftype.clj:568) @ clojure.core$_cache_protocol_fn.invoke(core_deftype.clj:560) @ clojure.tools.logging.impl$fn__51$g__44__58.invoke(impl.clj:16) @ mu_publisher.env$fn__225.invokestatic(env.clj:7) @ mu_publisher.env$fn__225.invoke(env.clj:6) truncated. see log file complete stacktrace 

as update. modified weblogic.xml as:

<?xml version='1.0' encoding='utf-8'?> <weblogic-web-app     xmlns="http://www.bea.com/ns/weblogic/90"     xmlns:xsi="http://www.w3.org/2001/xmlschema-instance"     xsi:schemalocation="http://www.bea.com/ns/weblogic/90 http://www.bea.com/ns/weblogic/90/weblogic-web-app.xsd"> <container-descriptor>   <filter-dispatched-requests-enabled>false</filter-dispatched-requests-enabled>   <prefer-application-packages>       <package-name>org.slf4j</package-name>       <package-name>org.joda.*</package-name>   </prefer-application-packages>    </container-descriptor> 

so no longer error message. when try access webapp via http://localhost:8001/mu-publisher, error 500: bad happened, , in console log's no errors reflected or printed.


Comments

Popular posts from this blog

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -