当前位置: 代码迷 >> 应用服务器 >> Not binding factory to JNDI, no JNDI name configured(按解决先后顺序,First50分,逐次递减),该如何解决
  详细解决方案

Not binding factory to JNDI, no JNDI name configured(按解决先后顺序,First50分,逐次递减),该如何解决

热度:5576   发布时间:2013-02-26 00:00:00.0
Not binding factory to JNDI, no JNDI name configured(按解决先后顺序,First50分,逐次递减)
WebApp配置问题
部署到Linux服务器上
最后卡到 Not binding factory to JNDI, no JNDI name configured,没有任何信息提示了
似乎启动一半就停了
可以访问webapp
配置文件见下(已去敏感信息)

web.xml
<?xml version="1.0" encoding="ISO-8859-1"?>
<web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">

<display-name>******</display-name>

<description>whtxm</description>
<context-param>
<param-name>webAppRootKey</param-name>
<param-value>webApp.root</param-value>
</context-param>

<context-param>
<param-name>log4jConfigLocation</param-name>
<param-value>/WEB-INF/log4j.properties</param-value>
</context-param>

<context-param>
<param-name>log4jRefreshInterval</param-name>
<param-value>60000</param-value>
</context-param>
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>/WEB-INF/applicationContext_hibernate.xml /WEB-INF/applicationContext_service.xml</param-value>
</context-param>

<filter>
<filter-name>encodingFilter</filter-name>
<filter-class>org.springframework.web.filter.CharacterEncodingFilter</filter-class>
<init-param>
<param-name>encoding</param-name>
<param-value>GBK</param-value>
</init-param>
<init-param>
<param-name>forceEncoding</param-name>
<param-value>true</param-value>
</init-param>
</filter>
<filter-mapping>
<filter-name>encodingFilter</filter-name>
<url-pattern>*.jsp</url-pattern>
</filter-mapping>

<filter-mapping>
<filter-name>encodingFilter</filter-name>
<url-pattern>*</url-pattern>
</filter-mapping>

<listener>
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>

<listener>  
     <listener-class>org.springframework.web.util.Log4jConfigListener</listener-class>  
</listener> 

<servlet>
<servlet-name>SpringLog4jConfigServlet</servlet-name>
<servlet-class>org.springframework.web.util.Log4jConfigServlet</servlet-class>
</servlet>
<servlet>
<servlet-name>web</servlet-name>
<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
</servlet>

<servlet>
<servlet-name>whtxm</servlet-name>
<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
<load-on-startup>2</load-on-startup>
</servlet>

<servlet>
<servlet-name>axis</servlet-name>
<servlet-class>org.apache.axis.transport.http.AxisServlet</servlet-class>
<load-on-startup>5</load-on-startup>
</servlet>

<servlet-mapping>
<servlet-name>whtxm</servlet-name>
<url-pattern>*</url-pattern>
</servlet-mapping>

<servlet-mapping>
<servlet-name>whtxm</servlet-name>
<url-pattern>*.xml</url-pattern>
  相关解决方案