- Weblogic 10.3.6
- Enterprise Manager 11.1.1.6.0
- Custom ADF Fusion Web Application (EAR file)
In a nutshell, the default upload limit size for Enterprise Manager 11.1.1.x is 40Mb, but it can be changed.
So I was trying to deploy one of our larger custom ADF applications to our Test environment the other day. I was minding my own business when all of a sudden, from behind the bushes, just kidding. No scary animals or nefarious characters here, just an uncooperative Enterprise Manager. In this case, it is Weblogic 10.3.6 and EM version 11.1.1.6.0.
Error when trying to upload the application archive - "The file could not be uploaded because it is too large" |
org.apache.myfaces.trinidad.UPLOAD_MAX_DISK_SPACE
You only need to extract the war file from the em.ear file, then modify the web.xml and assemble it all back together.
Here are the steps that worked for our particular install (linux):
- Go to where the em.ear file is located, under .../user_projects/applications/<domain>
cd /u01/app/oracle/product/fmw/user_projects/applications/MyDomain
- Backup the em.ear file somewhere, just in case you mess up.
- Copy the em.ear file to a temp folder:
mkdir ~/em_tmp
cp em.ear ~/em_tmp
- Extract the war file only:
cd ~/em_tmp
jar -xvf em.ear em.war
- Extract the web.xml from the war file:
jar -xvf em.war WEB-INF/web.xml
- Modify parameter in WEB-INF/web.xml as follows:
- Update the war file
jar -uvf em.war WEB-INF/web.xml
- Update the ear file with the new war file
jar -uvf em.ear em.war
- Copy the ear file back again, and bounce the admin server
old: <context-param> <param-name>org.apache.myfaces.trinidad.UPLOAD_MAX_DISK_SPACE</param-name> <param-value>40960000</param-value> </context-param> new: set some larger value, e.g. 75mb = 1024 x 1024 x 75 = 78643200 <context-param> <param-name>org.apache.myfaces.trinidad.UPLOAD_MAX_DISK_SPACE</param-name> <param-value>78643200</param-value> </context-param>
Trinidad Configuration:
https://myfaces.apache.org/trinidad/devguide/configuration.html
Upload File Portlet Does NOT Warn File Size Limit (Doc ID 1530144.1)
https://support.oracle.com/epmos/faces/DocContentDisplay?id=1530144.1
Bug 16079700 : [WCP11164]UPLOAD FILE PORTLET DOES NOT WARN FILE SIZE LIMIT
https://support.oracle.com/epmos/faces/BugDisplay?id=16079700
Lucky Club Casino Site | Free Bets for new players
ReplyDeleteLucky Club Casino is an amazing online casino that is offering a fantastic gambling experience that is fun to play. You'll enjoy an array of live games luckyclub.live