2 Replies Latest reply on Sep 1, 2015 2:33 AM by Francois REGNAUT

    Strange Warning when hot deploying a .war

    Francois REGNAUT Newbie

      Hello, I'm just trying to migrate old webapps from Jboss 4.0.5 to wildfly.

       

      At first I tried to deploy a simple war, and I get the following warning when the de^ployment occurs :

       

      WARNING [javax.enterprise.resource.webcontainer.jsf.config] (ServerService Thread Pool -- 74) javax.naming.NamingException: WFLYNAM0027: Failed instantiate InitialContextFactory org.jnp.interfaces.NamingContextFactory from classloader ModuleClassLoader for Module "deployment.isis_common_web.war:main" from Service Module Loader [Root exception is java.lang.ClassNotFoundException: org.jnp.interfaces.NamingContextFactory from [Module "deployment.isis_common_web.war:main" from Service Module Loader]]: javax.naming.NamingException: WFLYNAM0027: Failed instantiate InitialContextFactory org.jnp.interfaces.NamingContextFactory from classloader ModuleClassLoader for Module "deployment.isis_common_web.war:main" from Service Module Loader [Root exception is java.lang.ClassNotFoundException: org.jnp.interfaces.NamingContextFactory from [Module "deployment.isis_common_web.war:main" from Service Module Loader]]

        at org.jboss.as.naming.InitialContext.getDefaultInitCtx(InitialContext.java:118)

        at org.jboss.as.naming.InitialContext.init(InitialContext.java:99)

        at javax.naming.ldap.InitialLdapContext.<init>(Unknown Source)

        at org.jboss.as.naming.InitialContext.<init>(InitialContext.java:89)

        at org.jboss.as.naming.InitialContextFactory.getInitialContext(InitialContextFactory.java:43)

        at javax.naming.spi.NamingManager.getInitialContext(Unknown Source)

        at javax.naming.InitialContext.getDefaultInitCtx(Unknown Source)

        at javax.naming.InitialContext.init(Unknown Source)

        at javax.naming.InitialContext.<init>(Unknown Source)

        at com.sun.faces.config.WebConfiguration.processJndiEntries(WebConfiguration.java:818)

        at com.sun.faces.config.WebConfiguration.<init>(WebConfiguration.java:154)

        at com.sun.faces.config.WebConfiguration.getInstance(WebConfiguration.java:214)

        at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:166)

        at io.undertow.servlet.core.ApplicationListeners.contextInitialized(ApplicationListeners.java:173)

        at io.undertow.servlet.core.DeploymentManagerImpl.deploy(DeploymentManagerImpl.java:195)

        at org.wildfly.extension.undertow.deployment.UndertowDeploymentService.startContext(UndertowDeploymentService.java:100)

        at org.wildfly.extension.undertow.deployment.UndertowDeploymentService$1.run(UndertowDeploymentService.java:82)

        at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)

        at java.util.concurrent.FutureTask.run(Unknown Source)

        at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)

        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)

        at java.lang.Thread.run(Unknown Source)

        at org.jboss.threads.JBossThread.run(JBossThread.java:320)

      Caused by: java.lang.ClassNotFoundException: org.jnp.interfaces.NamingContextFactory from [Module "deployment.isis_common_web.war:main" from Service Module Loader]

        at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:205)

        at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:455)

        at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:404)

        at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:385)

        at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:130)

        at java.lang.Class.forName0(Native Method)

        at java.lang.Class.forName(Unknown Source)

        at org.jboss.as.naming.InitialContext.getDefaultInitCtx(InitialContext.java:113)

        ... 22 more

       

      My webapp is then  deployed, but I'd like to get rid of this warning...

       

      I know that the initialContext properties has changed since jboss 4.., but I can find out where this Warning fires from ? I have almost nothing in my jboss-web.xml (see below)

       

      <?xml version='1.0' encoding='UTF-8' ?>

      <!DOCTYPE jboss-web PUBLIC "-//JBoss//DTD Web Application 2.4//EN" "http://www.jboss.org/j2ee/dtd/jboss-web_4_0.dtd">

      <jboss-web>

        <context-root>isis</context-root>

      </jboss-web>

       

      Is there another setting somewhere that can set this wrong context properties ?

       

      Thanks !