Web Server 6.1 and too large war files.

By | September 15, 2005

We found out that the Sun Java Enterprise System WebServer 6.1 has a upload limit of 10 MByte for web applications. Apparently we were very close to that limit for some time without knowing about it. But when you add a WebService or EJB client to a Creator application, all the support jar files will bring the size over that limit.

The solution is to reconfigure the WebServer’s admin application to allow bigger uploads. Simply do the following when you see the problem:

  • Stop the WebServer admin server.

  • Back the <WS_HOME>/bin/https/webapps/admin-app/WEB-INF/web.xml up!

  • Add the following init-param to the webappdeploy servlet.

    $ diff -uwb web.xml.orig web.xml
    --- web.xml.orig        2003-08-05 01:47:00.000000000 -0700
    +++ web.xml     2005-09-14 11:40:46.000000000 -0700
    @@ -151,6 +151,10 @@
    <servlet-name> webappdeploy </servlet-name>
    <servlet-class> com.sun.web.admin.servlets.DeployServlet </servlet-class>
    +    <init-param>
    +      <param-name>maxUploadSize</param-name>
    +      <param-value>20000000</param-value>
    +    </init-param>
  • Start the WebServer admin server and all the target servers.

Thanks to M. Kapur for this information.

I hope this helps a couple of people.

One thought on “Web Server 6.1 and too large war files.

  1. shantanu

    thanks but i need to work on it alitle ..its not wrkng on the first go..lemee c

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.