Info |
---|
Help is available by sending an email to csf-support@mit.edu Have any suggestion on how improve this wiki? Please give us your feedback at csf-support@mit.edu |
Panel |
---|
Anchor |
---|
| h3.data resource |
---|
| h3.data resource |
---|
|
How do I add new database Resource Definition (database connection) to Tomcat? ANSWER: - The Install Tomcat 7 instructions gives an example on how to add a new Resouce Definition to Tomcat.
|
Panel |
---|
Tomcat 7 manager fails when deploying a WAR file when using the AJP connectorWhen the Tomcat 7 manager tries to deploy a war file, it fails with the following error: Code Block |
---|
Feb 28, 2013 8:20:35 AM org.apache.coyote.ajp.AjpMessage processHeader
SEVERE: Invalid message received with signature 8192
|
ANSWER: By default, the maximum packet size that can be process by the AJP connector is 8192 bytes. Do the following to change the default: - Edit the Tomcat server.xml file located in the conf directory of your Tomcat installation.
- Find the Connector entry (show below).
Code Block |
---|
<Connector port="8009" protocol="AJP/1.3" tomcatAuthentication="false" redirectPort="8443" address="127.0.0.1" maxPostSize="536870912" />
|
- Add maxHttpHeaderSize="65536" and packetSize="65536" so that the Connector is as follows:
Code Block |
---|
<Connector port="8009" protocol="AJP/1.3" tomcatAuthentication="false" redirectPort="8443" address="127.0.0.1" maxPostSize="536870912" maxHttpHeaderSize="65536" packetSize="65536" />
|
- When you are satisfied with your changes, save your changes and restart your Tomcat server.
|
Panel |
---|
Tomcat 7 manager fails when deploying a WAR file larger than 50 MB.- When the Tomcat 7 manager tries to deploy a war file that is larger that 50 MB, it fails with the following exception:
Code Block |
---|
HTTP Status 500 -
--------------------------------------------------------------------------------
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
java.lang.IllegalStateException: org.apache.tomcat.util.http.fileupload.FileUploadBase$SizeLimitExceededException: the request was rejected because its size (63475228) exceeds the configured maximum (52428800)
org.apache.catalina.connector.Request.parseParts(Request.java:2780)
org.apache.catalina.connector.Request.parseParameters(Request.java:3024)
org.apache.catalina.connector.Request.getParameter(Request.java:1139)
org.apache.catalina.connector.RequestFacade.getParameter(RequestFacade.java:382)
org.apache.catalina.filters.CsrfPreventionFilter.doFilter(CsrfPreventionFilter.java:163)
org.apache.catalina.filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:108)
root cause
org.apache.tomcat.util.http.fileupload.FileUploadBase$SizeLimitExceededException: the request was rejected because its size (63475228) exceeds the configured maximum (52428800)
org.apache.tomcat.util.http.fileupload.FileUploadBase$FileItemIteratorImpl.<init>(FileUploadBase.java:804)
org.apache.tomcat.util.http.fileupload.FileUploadBase.getItemIterator(FileUploadBase.java:284)
org.apache.tomcat.util.http.fileupload.FileUploadBase.parseRequest(FileUploadBase.java:304)
org.apache.tomcat.util.http.fileupload.servlet.ServletFileUpload.parseRequest(ServletFileUpload.java:129)
org.apache.catalina.connector.Request.parseParts(Request.java:2718)
org.apache.catalina.connector.Request.parseParameters(Request.java:3024)
org.apache.catalina.connector.Request.getParameter(Request.java:1139)
org.apache.catalina.connector.RequestFacade.getParameter(RequestFacade.java:382)
org.apache.catalina.filters.CsrfPreventionFilter.doFilter(CsrfPreventionFilter.java:163)
org.apache.catalina.filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:108)
note The full stack trace of the root cause is available in the Apache Tomcat/7.0.25 logs.
| ANSWER: - By default, the maximum file size that can be uploaded by the Tomcat 7 manager is 52428800 bytes. Do the following to change the default:
- Edit the web.xml of the Tomcat manager application. You can find the web.xml file for the Tomcat manager application in the *webapps/manager/WEB-INF directory of your Tomcat installation.
- Find the <multipart-config> tag (show below) and increase the max-file-size and max-request-size (both initially set at 52428800) to something larger than the war file size you want to deploy.
Code Block |
---|
<multipart-config>
<max-file-size>52428800</max-file-size>
<max-request-size>52428800</max-request-size>
<file-size-threshold>0</file-size-threshold>
</multipart-config>
|
- When you are satisfied with your changes, save your changes and restart your Tomcat server.
|
Panel |
---|
How do I block inbound connections on ports 8080 and 8443? - Follow this link for instructions on how to block inbound connections for any TCP port.
|
•Skip to content
•Skip to breadcrumbs
•Skip to header menu
•Skip to action menu
•Skip to quick search
Quick Search
Browse Pages
Blog
Labels
Attachments
Bookmarks
Mail
Advanced
Space Admin
People Directory
Keyboard Shortcuts
David Tanner Recently Viewed
Profile
Network
Labels
Watches
Drafts
Settings
Log Out
Dashboard
Common Services Framework
CSF Home
Software Development
Hibernate Quick Tips
Edit Page
Title
Skip to end of sidebar Help Tips
Text formatting
bold bold
italic italic
strike strike
under under
Headings
Large heading
Medium heading
Small heading
Lists
- Numbered point
Tables head1 | head2 |
---|
colA1 | colA2 |
colB1 | colB2 | Links title Link a page title In 'dev' space http://host.com Remote link phrase@shortcut Shortcut alias Custom link title Full notation guide Go to start of sidebar Key This line was removed.This word was removed. This word was added.This line was added. Remove Page This page is being edited by . |
Rich Text Wiki Markup Preview Loading…Make Rich Text Default Make Wiki Markup Default Insert/Edit Link (Ctrl+K) Insert Image (Ctrl+M) Insert/Edit Macro gliffyinfogalleryrecently-updatedtasklistwidgettoc<div class="wysiwyg-macro" macroname="info" macrohasbody="true" wikihasprecedingnewline="false" wikihastrailingnewline="true" ><div class="wysiwyg-macro-tag wysiwyg-macro-starttag">
Info |
---|
</div><br class="wysiwyg-macro-body-newline"/><div class="wysiwyg-macro-body"><p>Help is available by sending an email to<font color=""> <font color="green"></font><span class="nobr"><a href="mailto:csf-support@mit.edu" class="external-link" rel="nofollow"linktype="raw" wikidestination="mailto:csf-support@mit.edu" originalalias="csf-support@mit.edu" >csf-support@mit.edu<sup><img class="rendericon" src="/confluence/images/icons/mail_small.gif" height="12" width="13" align="absmiddle" alt="" border="0"/></sup></a></span><br/> Have any suggestion on how improve this wiki? Please give us your feedback at</font> <font color="green"></font><span class="nobr"><a href="mailto:csf-support@mit.edu" class="external-link" rel="nofollow"linktype="raw" wikidestination="mailto:csf-support@mit.edu" originalalias="csf-support@mit.edu" >csf-support@mit.edu<sup><img class="rendericon" src="/confluence/images/icons/mail_small.gif" height="12" width="13" align="absmiddle" alt="" border="0"/></sup></a></span></p></div><br class="wysiwyg-macro-body-newline"/><div class="wysiwyg-macro-tag wysiwyg-macro-endtag"> |
</div></div><p class="atl_conf_pad"> </p>
<div class="wysiwyg-macro" macroname="panel" macrostarttag="
Panel |
---|
" macrohasbody="true" wikihasnewlinebeforebody="true" wikihasnewlineafterbody="true" wikihasprecedingnewline="true" wikihastrailingnewline="true" ><div class="panel" style="border-width: 1px;"><div class="panelContent"> <p>Quick Links to:</p> <div class="wysiwyg-macro" macroname="toc" macrohasbody="false" wikihasprecedingnewline="true" wikihastrailingnewline="true" ><div class="wysiwyg-macro-tag wysiwyg-macro-starttag"> </div></div><p class="atl_conf_pad"> </p> </div></div></div><p class="atl_conf_pad"> </p> <div class="wysiwyg-macro" macroname="panel" macrostarttag=" |
" macrohasbody="true" wikihasnewlinebeforebody="true" wikihasnewlineafterbody="true" wikihasprecedingnewline="true" wikihastrailingnewline="true" ><div class="panel" style="border-width: 1px;"><div class="panelContent"> <h3><a name="HibernateQuickTips-HowdoIconfiguremyprojecttousehibernatemappings%3F"></a>How do I configure my project to use hibernate mappings?</h3> <p><b>ANSWER:</b></p> <ul> <li>The session factory's <b>mappingLocations</b> element is used to configure the hibernate mappings. Configuration instuctions can be found at: <a href="/confluence/display/CSF/How+to+configure+your+application+to+use+Hibernate+Mappings" title="How to configure your application to use Hibernate Mappings"linktype="raw" wikidestination="How to configure your application to use Hibernate Mappings" aliasspecified="true" >How to configure your application to use Hibernate Mappings </a>.</li> </ul> </div></div></div><p class="atl_conf_pad"> </p> Paragraph Insert
Hint: press Ctrl+Shift+M after a word to find and insert relevant images.
Info |
---|
Help is available by sending an email to csf-support@mit.edu Have any suggestion on how improve this wiki? Please give us your feedback at csf-support@mit.edu |
RefreshPreview Documentation This macro does not provide any parameter information. If the available information does not help, you may find its documentation on the Atlassian Extensions Wiki.{} ExamplesDescription Body Text No matches
Minor change? (no notifications will be sent) Comment:
Location: Common Services Framework > Software Development Edit
Restrictions: Edit (Unsaved changes)
Viewing: Editing:
Labels: Edit
Looking for a label? Just start typing.
Powered by Atlassian Confluence 3.4, the Enterprise WikiPrinted by Atlassian Confluence 3.4, the Enterprise Wiki. | Report a bug | Atlassian NewsLink to this PageLink to this PageLink:Tiny Link:Wiki Markup:Close
...