title: Weblogic 10.3.4 & Spring 3.0.6 & web.xml
body: <p>currently working on developing a rest service that needs to be deployed on Weblogic 10.3.4. Using Spring 3.0.6 examples online but the basic loading of the DispatcherServlet seems to be causing problems with Weblogic. </p>
  
  <pre><code>&lt;servlet&gt;
     &lt;servlet-name&gt;mvc-dispatcher&lt;/servlet-name&gt;
     &lt;servlet-class&gt;org.springframework.web.servlet.DispatcherServlet&lt;/servlet-class&gt;
     &lt;load-on-startup&gt;1&lt;/load-on-startup&gt;
  &lt;/servlet&gt;
  </code></pre>
  
  <p>The exception shown in the weblogic console window was:</p>
  
  <pre><code>&lt;07-Nov-2011 20:29:33 o'clock GMT&gt; &lt;Notice&gt; &lt;WebLogicServer&gt; &lt;BEA-000365&gt; &lt;Server state changed to STARTING&gt;
  log4j:WARN No appenders could be found for logger (org.springframework.web.servlet.DispatcherServlet).
  log4j:WARN Please initialize the log4j system properly.
  log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
  =============== DEBUG MESSAGE: unimplemented bytecode ================
  
  #
  # A fatal error has been detected by the Java Runtime Environment:
  #
  #  EXCEPTION_PRIV_INSTRUCTION (0xc0000096) at pc=0x026b26d0, pid=7200, tid=7924
  #
  # JRE version: 6.0_21-b51
  # Java VM: Java HotSpot(TM) Client VM (17.0-b17 mixed mode windows-x86 )
  # Problematic frame:
  # j  javax.validation.Validation.byDefaultProvider()Ljavax/validation/bootstrap/GenericBootstrap;+0
  #
  # An error report file with more information is saved as:
  # C:\bea\user_projects\domains\saw_ca_wl10\hs_err_pid7200.log
  #
  # If you would like to submit a bug report, please visit:
  #   http://java.sun.com/webapps/bugreport/crash.jsp
  #
  </code></pre>
  
  <p>The exception shown in the target AdminServer log was</p>
  
  <pre><code>####&lt;07-Nov-2011 20:29:54 o'clock GMT&gt; &lt;Info&gt; &lt;EJB&gt; &lt;JGOGGINS212&gt; &lt;AdminServer&gt; &lt;[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'&gt; &lt;&lt;WLS Kernel&gt;&gt; &lt;&gt; &lt;&gt; &lt;1320697794074&gt; &lt;BEA-010008&gt; &lt;EJB Deploying file: KCS-ejb-0.0.1-SNAPSHOT.jar&gt; 
  ####&lt;07-Nov-2011 20:29:54 o'clock GMT&gt; &lt;Info&gt; &lt;Deployer&gt; &lt;JGOGGINS212&gt; &lt;AdminServer&gt; &lt;[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'&gt; &lt;&lt;WLS Kernel&gt;&gt; &lt;&gt; &lt;&gt; &lt;1320697794499&gt; &lt;BEA-149060&gt; &lt;Module KCS-ejb-0.0.1-SNAPSHOT.jar of application KCS-ear-0 successfully transitioned from STATE_NEW to STATE_PREPARED on server AdminServer.&gt; 
  ####&lt;07-Nov-2011 20:29:54 o'clock GMT&gt; &lt;Info&gt; &lt;Deployer&gt; &lt;JGOGGINS212&gt; &lt;AdminServer&gt; &lt;[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'&gt; &lt;&lt;WLS Kernel&gt;&gt; &lt;&gt; &lt;&gt; &lt;1320697794499&gt; &lt;BEA-149059&gt; &lt;Module /KCS-webApp of application KCS-ear-0 is transitioning from STATE_NEW to STATE_PREPARED on server AdminServer.&gt; 
  ####&lt;07-Nov-2011 20:29:55 o'clock GMT&gt; &lt;Info&gt; &lt;Deployer&gt; &lt;JGOGGINS212&gt; &lt;AdminServer&gt; &lt;[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'&gt; &lt;&lt;WLS Kernel&gt;&gt; &lt;&gt; &lt;&gt; &lt;1320697795146&gt; &lt;BEA-149060&gt; &lt;Module /KCS-webApp of application KCS-ear-0 successfully transitioned from STATE_NEW to STATE_PREPARED on server AdminServer.&gt; 
  ####&lt;07-Nov-2011 20:29:55 o'clock GMT&gt; &lt;Info&gt; &lt;Deployer&gt; &lt;JGOGGINS212&gt; &lt;AdminServer&gt; &lt;[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'&gt; &lt;&lt;WLS Kernel&gt;&gt; &lt;&gt; &lt;&gt; &lt;1320697795270&gt; &lt;BEA-149059&gt; &lt;Module KCS-ejb-0.0.1-SNAPSHOT.jar of application KCS-ear-0 is transitioning from STATE_PREPARED to STATE_ADMIN on server AdminServer.&gt; 
  ####&lt;07-Nov-2011 20:29:55 o'clock GMT&gt; &lt;Info&gt; &lt;Deployer&gt; &lt;JGOGGINS212&gt; &lt;AdminServer&gt; &lt;[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'&gt; &lt;&lt;WLS Kernel&gt;&gt; &lt;&gt; &lt;&gt; &lt;1320697795301&gt; &lt;BEA-149060&gt; &lt;Module KCS-ejb-0.0.1-SNAPSHOT.jar of application KCS-ear-0 successfully transitioned from STATE_PREPARED to STATE_ADMIN on server AdminServer.&gt; 
  ####&lt;07-Nov-2011 20:29:55 o'clock GMT&gt; &lt;Info&gt; &lt;Deployer&gt; &lt;JGOGGINS212&gt; &lt;AdminServer&gt; &lt;[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'&gt; &lt;&lt;WLS Kernel&gt;&gt; &lt;&gt; &lt;&gt; &lt;1320697795301&gt; &lt;BEA-149059&gt; &lt;Module /KCS-webApp of application KCS-ear-0 is transitioning from STATE_PREPARED to STATE_ADMIN on server AdminServer.&gt; 
  ####&lt;07-Nov-2011 20:29:55 o'clock GMT&gt; &lt;Info&gt; &lt;Deployer&gt; &lt;JGOGGINS212&gt; &lt;AdminServer&gt; &lt;[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'&gt; &lt;&lt;WLS Kernel&gt;&gt; &lt;&gt; &lt;&gt; &lt;1320697795302&gt; &lt;BEA-149060&gt; &lt;Module /KCS-webApp of application KCS-ear-0 successfully transitioned from STATE_PREPARED to STATE_ADMIN on server AdminServer.&gt; 
  ####&lt;07-Nov-2011 20:29:55 o'clock GMT&gt; &lt;Info&gt; &lt;ServletContext-/KCS-webApp&gt; &lt;JGOGGINS212&gt; &lt;AdminServer&gt; &lt;[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'&gt; &lt;&lt;anonymous&gt;&gt; &lt;&gt; &lt;&gt; &lt;1320697795498&gt; &lt;BEA-000000&gt; &lt;Initializing Spring FrameworkServlet 'mvc-dispatcher'&gt; 
  </code></pre>
  
  <p>Building using Maven and have all the spring-core/web/webmvc/context all defined as runtime dependent.</p>
  
  <p>Also tried to copy the "org.springframework.web.servlet-3.0.5.RELEASE,jar" file to the bea\modules folder in an attempt to resolve runtime issues within weblogic. </p>
  
  <p>Tried the weblogic-application.xml, </p>
  
  <pre><code>&lt;prefer-application-packages&gt;
  &lt;package-name&gt;org.springframework.*&lt;/package-name&gt;
  &lt;package-name&gt;org.springframework.web.*&lt;/package-name&gt;
  &lt;package-name&gt;org.springframework.web.servlet.*&lt;/package-name&gt;  
  &lt;prefer-application-packages&gt;
  </code></pre>
  
  <p>All that, same problem.</p>
  
  <p>I noted that the release notes have stated that "This version of WebLogic Server supports Spring 3.0.", <a href="http://download.oracle.com/docs/cd/E17904_01/web.1111/e13852/toc.htm#BGGEAIJJ" rel="nofollow">http://download.oracle.com/docs/cd/E17904_01/web.1111/e13852/toc.htm#BGGEAIJJ</a></p>