Announcement Announcement Module
Collapse
No announcement yet.
Problems with deployment in Weblogic - Spring based web application Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Problems with deployment in Weblogic - Spring based web application

    Hi all, i have a problem in the deployment of my Spring based web application. I use Spring 1.2.7, Hibernate 3, Xfire 1.2.1 and Quartz 1.5.2. The problems occurs in the moment of the deployment in weblogic, the log for the error is the next:


    [Deployer:149033]preparing application variables-web on myserver
    [Deployer:149033]prepared application variables-web on myserver
    [Deployer:149033]activating application variables-web on myserver
    [Deployer:149033]failed application variables-web on myserver
    [Deployer:149034]An exception occurred for task [Deployer:149026]Deploy application variables-web on myserver.:
    Exception:weblogic.management.ApplicationException : start() failed.
    Module: variables-web Error: weblogic.management.DeploymentException: Cannot set web app root system property when WAR file is not expanded - with nested exception:
    [java.lang.IllegalStateException: Cannot set web app root system property when WAR file is not expanded]



    But, when deploy in exploded mode in WL, the problem donīt appear. The deployment with a WAR file is required in the client.

    I donīt understand what happens, any suggestions.

    Thanx a lot

    Jorge

  • #2
    Hello,

    do you have a Log4JConfigListener or Log4JConfigServlet defined in your web.xml ?

    If the packed war is a must, then you should configure your logging subsystem without a Log4JConfigListener or Servlet.

    best grds
    agim

    Comment


    • #3
      Here is the web.xml file

      Code:
      <?xml version="1.0" encoding="ISO-8859-1"?>
      <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
      
      <web-app>
      	<display-name>Variables</display-name>
      	<context-param>
      		<param-name>contextConfigLocation</param-name>
      		<param-value>WEB-INF/spring/applicationContext.xml</param-value>
      	</context-param>
      	<filter>
      		<filter-name>hibernateFilter</filter-name>
      		<filter-class>
      			org.springframework.orm.hibernate3.support.OpenSessionInViewFilter
      		</filter-class>
      	</filter>
      	<filter-mapping>
      		<filter-name>hibernateFilter</filter-name>
      		<url-pattern>*.do</url-pattern>
      	</filter-mapping>
      	<filter-mapping>
      		<filter-name>hibernateFilter</filter-name>
      		<url-pattern>*.jsp</url-pattern>
      	</filter-mapping>
      	<filter-mapping>
      		<filter-name>hibernateFilter</filter-name>
      		<url-pattern>/services/*</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>action</servlet-name>
      		<servlet-class>
      			org.apache.struts.action.ActionServlet
      		</servlet-class>
      		<init-param>
      			<param-name>config</param-name>
      		  <param-value>/WEB-INF/struts/struts-config.xml</param-value>
      		</init-param>
      		<init-param>
      			<param-name>config/administracion</param-name>
      			<param-value>
      				/WEB-INF/struts/struts-config-administracion.xml
      			</param-value>
      		</init-param>
      		<load-on-startup>1</load-on-startup>
      	</servlet>
      	<servlet>
      		<servlet-name>xfire</servlet-name>
      		<servlet-class>
      			org.springframework.web.servlet.DispatcherServlet
      		</servlet-class>
      	</servlet>
      	<servlet-mapping>
      		<servlet-name>xfire</servlet-name>
      		<url-pattern>/services/*</url-pattern>
      	</servlet-mapping>
      	<servlet-mapping>
      		<servlet-name>action</servlet-name>
      		<url-pattern>*.do</url-pattern>
      	</servlet-mapping>
      
      	<welcome-file-list>
      		<welcome-file>welcome.jsp</welcome-file>
      	</welcome-file-list>
      	<error-page>
      		<exception-type>java.lang.Exception</exception-type>
      		<location>/jsp/errors/errorException.jsp</location>
      	</error-page>
      	<taglib>
      		<taglib-uri>/WEB-INF/struts-bean.tld</taglib-uri>
      		<taglib-location>/WEB-INF/struts-bean.tld</taglib-location>
      	</taglib>
      	<taglib>
      		<taglib-uri>/WEB-INF/struts-html.tld</taglib-uri>
      		<taglib-location>/WEB-INF/struts-html.tld</taglib-location>
      	</taglib>
      	<taglib>
      		<taglib-uri>/WEB-INF/struts-logic.tld</taglib-uri>
      		<taglib-location>/WEB-INF/struts-logic.tld</taglib-location>
      	</taglib>
      </web-app>

      Comment


      • #4
        Log4jConfigListener only works if the WAR file is exploded - read the Javadocs

        Comment


        • #5
          works fine, thanxs a lot for your help.

          Jorge

          Comment

          Working...
          X