<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[JForum Community - Latest posts for "doingit"]]></title>
		<link>https://community.jforum.net/posts/listByUser/1369</link>
		<description><![CDATA[Latest posts for "doingit"]]></description>
		<generator>JForum - http://www.jforum.net</generator>
			<item>
				<title>[User Forum] Re:Deployment in Weblogic exception log4j template not found and jersey servlet due to ApplicationPath no being set</title>
				<description><![CDATA[ Please find attached the stack trace. That's all I could find. I tried to increase the logging to debug level.]]></description>
				<guid isPermaLink="true">https://community.jforum.net/posts/preList/199/876</guid>
				<link>https://community.jforum.net/posts/preList/199/876</link>
				<pubDate><![CDATA[Thu, 3 Oct 2019 06:35:28]]> GMT</pubDate>
				<author><![CDATA[ doingit]]></author>
			</item>
			<item>
				<title>[User Forum] Re:Deployment in Weblogic exception log4j template not found and jersey servlet due to ApplicationPath no being set</title>
				<description><![CDATA[ I just downloaded the jforum-2.6.2.war, unzipped it and changed the driver to com.mysql.cj.jdbc.Driver in jforum-2.6.2/WEB-INF/config/database/mysql/mysql.properties.
<br>
I am just deploying jforum, no other application code was added.
<br>
I realized that there was no <b>weblogic-application.xml</b> so I added a simple one at the META-INF folder (see below).
<br>
<pre class="line-numbers"><code class="language-java match-braces"><br>&lt;?xml version="1.0" encoding="ISO-8859-1"?&gt;<br>&lt;weblogic-application<br>        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"<br>        xmlns="http://www.bea.com/ns/weblogic/weblogic-application"<br>        xsi:schemaLocation="http://www.bea.com/ns/weblogic/weblogic-application<br>        http://www.bea.com/ns/weblogic/weblogic-application/1.1/weblogic-application.xsd"&gt;<br>    &lt;application-param&gt;<br>        &lt;param-name&gt;webapp.encoding.default&lt;/param-name&gt;<br>        &lt;param-value&gt;UTF-8&lt;/param-value&gt;<br>    &lt;/application-param&gt; <br>&lt;/weblogic-application&gt;<br></code></pre>
<br>
The deployment is still throwing an exception.
<br>
<pre class="line-numbers"><code class="language-java match-braces"><br>&lt;02-Oct-2019 00:21:15,639 o'clock CEST&gt; &lt;Error&gt; &lt;Deployer&gt; &lt;BEA-149265&gt; &lt;Failure occurred in the execution of deployment request with ID "5345721252939" for task "8" on [partition-name: DOMAIN]. Error is: "weblogic.application.ModuleException: java.lang.ClassNotFoundException: "<br>weblogic.application.ModuleException: java.lang.ClassNotFoundException: <br>	at weblogic.j2eeclient.AppClientModule.loadDescriptors(AppClientModule.java:300)<br>	at weblogic.j2eeclient.AppClientModule.init(AppClientModule.java:244)<br>	at weblogic.j2eeclient.AppClientModule.init(AppClientModule.java:128)<br>	at weblogic.application.internal.ExtensibleModuleWrapper.init(ExtensibleModuleWrapper.java:98)<br>	at weblogic.application.internal.flow.ModuleListenerInvoker.init(ModuleListenerInvoker.java:84)<br>	Truncated. see log file for complete stacktrace<br>Caused By: java.lang.ClassNotFoundException: <br>	at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:1029)<br>	at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:990)<br>	at weblogic.utils.classloaders.GenericClassLoader.doFindClass(GenericClassLoader.java:611)<br>	at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:543)<br>	at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:496)<br>	Truncated. see log file for complete stacktrace<br>&gt; <br>&lt;02-Oct-2019 00:21:15,644 o'clock CEST&gt; &lt;Warning&gt; &lt;Deployer&gt; &lt;BEA-149004&gt; &lt;Failures were detected while initiating deploy task for application "jforum".&gt; <br>&lt;02-Oct-2019 00:21:15,644 o'clock CEST&gt; &lt;Warning&gt; &lt;Deployer&gt; &lt;BEA-149078&gt; &lt;Stack trace for message 149004<br>weblogic.application.ModuleException: java.lang.ClassNotFoundException: <br>	at weblogic.j2eeclient.AppClientModule.loadDescriptors(AppClientModule.java:300)<br>	at weblogic.j2eeclient.AppClientModule.init(AppClientModule.java:244)<br>	at weblogic.j2eeclient.AppClientModule.init(AppClientModule.java:128)<br>	at weblogic.application.internal.ExtensibleModuleWrapper.init(ExtensibleModuleWrapper.java:98)<br>	at weblogic.application.internal.flow.ModuleListenerInvoker.init(ModuleListenerInvoker.java:84)<br>	Truncated. see log file for complete stacktrace<br>Caused By: java.lang.ClassNotFoundException: <br>	at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:1029)<br>	at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:990)<br>	at weblogic.utils.classloaders.GenericClassLoader.doFindClass(GenericClassLoader.java:611)<br>	at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:543)<br>	at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:496)<br></code></pre>]]></description>
				<guid isPermaLink="true">https://community.jforum.net/posts/preList/199/874</guid>
				<link>https://community.jforum.net/posts/preList/199/874</link>
				<pubDate><![CDATA[Wed, 2 Oct 2019 05:12:12]]> GMT</pubDate>
				<author><![CDATA[ doingit]]></author>
			</item>
			<item>
				<title>[User Forum] Re:Deployment in Weblogic exception log4j template not found and jersey servlet due to ApplicationPath no being set</title>
				<description><![CDATA[ Hi udittmer,
<br>
<br>
I was actually deploying the war file. But I did as you recommended, thanks. I unzipped the war and deployed the container folder. There was following issue
<br>
<pre class="line-numbers"><code class="language-java match-braces"><br>Loading class `com.mysql.jdbc.Driver'. This is deprecated. The new driver class is `com.mysql.cj.jdbc.Driver'. The driver is automatically registered via the SPI and manual loading of the driver class is generally unnecessary.<br></code></pre>
<br>
I changed the driver to <b>com.mysql.cj.jdbc.Driver</b> in <i>jforum-2.6.2/WEB-INF/config/database/mysql/mysql.properties</i>
<br>
<br>
However I am facing following issue now after last deployment. See full stack trace attached. I don't know how to tackle this one, thanks.
<br>
<pre class="line-numbers"><code class="language-java match-braces"><br>&lt;30-Sep-2019 22:21:32,094 o'clock CEST&gt; &lt;Warning&gt; &lt;JAXRSIntegration&gt; &lt;BEA-2192510&gt; &lt;Cannot add Jersey servlet for application class org.apache.cxf.jaxrs.servlet.CXFNonSpringJaxrsServlet$ApplicationImpl because ApplicationPath annotation is not set on it.&gt; <br>&lt;30-Sep-2019 22:21:37,637 o'clock CEST&gt; &lt;Error&gt; &lt;HTTP&gt; &lt;BEA-101216&gt; &lt;Servlet: "JAX-RS/Jersey#1" failed to preload on startup in Web application: "jforum-2.6.2".<br>A MultiException has 1 exceptions.  They are:<br>1. java.lang.NoClassDefFoundError: javax/cache/configuration/Configuration<br><br>	at org.jvnet.hk2.internal.Collector.throwIfErrors(Collector.java:89)<br>	at org.jvnet.hk2.internal.Utilities.justCreate(Utilities.java:1068)<br>	at org.jvnet.hk2.internal.ServiceLocatorImpl.create(ServiceLocatorImpl.java:978)<br>	at org.jvnet.hk2.internal.ServiceLocatorImpl.createAndInitialize(ServiceLocatorImpl.java:1082)<br>	at org.jvnet.hk2.internal.ServiceLocatorImpl.createAndInitialize(ServiceLocatorImpl.java:1074)<br>	Truncated. see log file for complete stacktrace<br>Caused By: java.lang.NoClassDefFoundError: javax/cache/configuration/Configuration<br>	at java.lang.Class.getDeclaredConstructors0(Native Method)<br>	at java.lang.Class.privateGetDeclaredConstructors(Class.java:2671)<br>	at java.lang.Class.getDeclaredConstructors(Class.java:2020)<br>	at org.jvnet.hk2.internal.Utilities$3.run(Utilities.java:1378)<br>	at org.jvnet.hk2.internal.Utilities$3.run(Utilities.java:1374)<br>	Truncated. see log file for complete stacktrace<br>Caused By: java.lang.ClassNotFoundException: javax.cache.configuration.Configuration<br>	at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:1029)<br>	at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:990)<br>	at weblogic.utils.classloaders.ChangeAwareClassLoader.findClass(ChangeAwareClassLoader.java:101)<br>	at weblogic.utils.classloaders.GenericClassLoader.doFindClass(GenericClassLoader.java:611)<br>	at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:543)<br>	Truncated. see log file for complete stacktrace<br></code></pre>]]></description>
				<guid isPermaLink="true">https://community.jforum.net/posts/preList/199/871</guid>
				<link>https://community.jforum.net/posts/preList/199/871</link>
				<pubDate><![CDATA[Tue, 1 Oct 2019 04:07:28]]> GMT</pubDate>
				<author><![CDATA[ doingit]]></author>
			</item>
			<item>
				<title>[User Forum] Deployment in Weblogic exception log4j template not found and jersey servlet due to ApplicationPath no being set</title>
				<description><![CDATA[ Dear All,
<br>
<br>
I am trying to deploy jforum-2.6.2.war in Weblogic 12.2.1 but I bump into following exception. I have also attached a file with the full stack trace.
<br>
<br>
Many thanks in advance for any help.
<br>
<br>
<pre class="line-numbers"><code class="language-java match-braces"><br>&lt;29-Sep-2019 18:08:02,872 o'clock CEST&gt; &lt;Warning&gt; &lt;JAXRSIntegration&gt; &lt;BEA-2192510&gt; &lt;Cannot add Jersey servlet for application class org.apache.cxf.jaxrs.servlet.CXFNonSpringJaxrsServlet$ApplicationImpl because ApplicationPath annotation is not set on it.&gt; <br>&lt;29-Sep-2019 18:08:22,727 o'clock CEST&gt; &lt;Warning&gt; &lt;JAXRSIntegration&gt; &lt;BEA-2192510&gt; &lt;Cannot add Jersey servlet for application class org.apache.cxf.jaxrs.servlet.CXFNonSpringJaxrsServlet$ApplicationImpl because ApplicationPath annotation is not set on it.&gt; <br>JForum: problems initializing the logger: template not found: "null/WEB-INF/log4j_template.xml"<br>java.lang.Exception: template not found: "null/WEB-INF/log4j_template.xml"<br>	at net.jforum.util.log.LoggerHelper.checkTemplate(LoggerHelper.java:161)<br>	at net.jforum.util.log.LoggerHelper.provideJForumLogConfig(LoggerHelper.java:119)<br>	at net.jforum.util.log.LoggerHelper.checkLoggerInitialization(LoggerHelper.java:94)<br>	at net.jforum.ContextListener.contextInitialized(ContextListener.java:77)<br>	at weblogic.servlet.internal.EventsManager$FireContextListenerAction.run(EventsManager.java:719)<br>	at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:344)<br>	at weblogic.security.service.SecurityManager.runAsForUserCode(SecurityManager.java:197)<br>	at weblogic.servlet.provider.WlsSecurityProvider.runAsForUserCode(WlsSecurityProvider.java:203)<br></code></pre>
<br>]]></description>
				<guid isPermaLink="true">https://community.jforum.net/posts/preList/199/869</guid>
				<link>https://community.jforum.net/posts/preList/199/869</link>
				<pubDate><![CDATA[Mon, 30 Sep 2019 00:16:13]]> GMT</pubDate>
				<author><![CDATA[ doingit]]></author>
			</item>
	</channel>
</rss>