geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From conflue...@apache.org
Subject [CONF] Apache Geronimo v2.2 > Development issues
Date Wed, 02 Sep 2009 06:16:00 GMT
<html>
<head>
    <base href="http://cwiki.apache.org/confluence">
            <link rel="stylesheet" href="/confluence/s/1519/1/1/_/styles/combined.css?spaceKey=GMOxDOC22&amp;forWysiwyg=true"
type="text/css">
    </head>
<body style="background-color: white" bgcolor="white">
<div id="pageContent">
<div id="notificationFormat">
<div class="wiki-content">
<div class="email">
     <h2><a href="http://cwiki.apache.org/confluence/display/GMOxDOC22/Development+issues">Development
issues</a></h2>
     <h4>Page <b>edited</b> by             <a href="http://cwiki.apache.org/confluence/display/~chirunhua@gmail.com">Runhua
Chi</a>
    </h4>
     
          <br/>
     <div class="notificationGreySide">
         <h1><a name="Developmentissues-TroubleshootingEclipse"></a>Troubleshooting
Eclipse</h1>

<h2><a name="Developmentissues-FindingerrorsinEclipseerrorlogview"></a>Finding
errors in Eclipse error log view</h2>
<p>If any errors is reported by Eclipse, you can see details about the error in <b>Error
Log</b> view of Eclipse. When errors occur, only Eclipse Galileo will place this view
in front of other views. In Eclipse Europa or Ganymede, you have to take these steps to find
this view:</p>
<ol>
	<li>Click <b>Window</b>, and then <b>Show View-&gt; Other</b>.</li>
	<li>Expand <b>General</b> and click <b>Error Log</b>.</li>
	<li>Click <b>OK</b>. The Error Log view displays.</li>
</ol>



<h1><a name="Developmentissues-TroubleshootingJavaEEassetdeployment"></a>Troubleshooting
Java EE asset deployment </h1>

<h2><a name="Developmentissues-Coexistenceof%3Csec%3Asecurity%3Eand%3Cdep%3Agbean%3EresultsinerrorinapplicationdeploymentplanonEclipse3.5"></a>Coexistence
of &lt;sec:security&gt; and &lt;dep:gbean&gt; results in error in application
deployment plan on Eclipse 3.5</h2>
<p>If you use both &lt;sec:security&gt; and &lt;dep:gbean&gt; elements
in this deployment plan <tt>geronimo-application.xml</tt> for your EAR, Eclipse
3.5 reports an error. This is because the XML editor in Eclipse 3.5 cannot recognize multiple
aliases in the naming space. However, this application can be deployed on the server successfully
even though Eclipse 3.5 reports an error in the plan. See <a href="https://bugs.eclipse.org/bugs/show_bug.cgi?id=284272"
rel="nofollow">Eclipse bug</a> for more information about this problem.<br/>
To prevent Eclipse from reporting this type of errors, follow these steps:</p>
<ol>
	<li>Click <b>Window-&gt;Preferences</b>.</li>
	<li>Expand <b>XML</b> and then <b>XML Files</b>.</li>
	<li>Select <b>Validation</b>. Deselect <b>Honour all XML schema locations</b>.</li>
	<li>Click <b>Apply</b>.</li>
	<li>Close the deployment plan and reopen it. Eclipse won't report this type of errors
again.</li>
</ol>


<h1><a name="Developmentissues-TroubleshootingContainerproblems"></a>Troubleshooting
Container problems</h1>

<h2><a name="Developmentissues-EnableJSP%26ServletreloadingforTomcat"></a>Enable
JSP&amp;Servlet reloading for Tomcat</h2>
<p>By default, JPS&amp;Servlet reloading is disabled for performance reasons. Refer
to the following steps to enable JSP&amp;Servlet reloading for Tomcat web container:</p>
<ol>
	<li>Stop the server if it is running;</li>
	<li>Open &lt;Geronimo_Home&gt;/var/catalina/conf/web.xml in edit mode;</li>
	<li>Locate &lt;servlet-class&gt;org.apache.jasper.servlet.JspServlet&lt;/servlet-class&gt;
in the web.xml file;</li>
	<li>Change the value of <em>development</em> from false to true. The changed
parameter will be like
<div class="code panel" style="border-width: 1px;"><div class="codeHeader panelHeader"
style="border-bottom-width: 1px;"><b>web.xml</b></div><div class="codeContent
panelContent">
<pre class="code-java">
    &lt;servlet-class&gt;org.apache.jasper.servlet.JspServlet&lt;/servlet-class&gt;
        &lt;init-param&gt;
            &lt;param-name&gt;development&lt;/param-name&gt;
            &lt;param-value&gt;<span class="code-keyword">true</span>&lt;/param-value&gt;
        &lt;/init-param&gt;
</pre>
</div></div></li>
	<li>You can add the following code snippet into the web.xml under the above mentioned
servlet class.
<div class="code panel" style="border-width: 1px;"><div class="codeHeader panelHeader"
style="border-bottom-width: 1px;"><b>web.xml</b></div><div class="codeContent
panelContent">
<pre class="code-java">    
        &lt;init-param&gt;
            &lt;param-name&gt;modificationTestInterval&lt;/param-name&gt;
            &lt;param-value&gt;10&lt;/param-value&gt;
        &lt;/init-param&gt;
</pre>
</div></div>
<p>where <em>modificationTestInterval</em> is the time in seconds. This
configures the server for JSP reloading interval. </p></li>
</ol>


<h2><a name="Developmentissues-UseOpenEJBstartupoptionsinGeronimo"></a>Use
OpenEJB startup options in Geronimo</h2>
<p>OpenEJB has lots of startup options as documented <a href="http://openejb.apache.org/3.0/startup.html"
title="OpenEJB startup Configuration" rel="nofollow">here</a>. In Geronimo, you can
use system variable GERONIMO_OPTS to pass through these options. For example, to configure
<tt>local.copy</tt> option in Geronimo, you can use the following command before
the server is started.</p>

<p> On a Windows system: <b>set GERONIMO_OPTS=-Dopenejb.localcopy=false</b><br/>
 On a Unix-like system: <b>export GERONIMO_OPTS=-Dopenejb.localcopy=false</b></p>



     </div>
     <div id="commentsSection" class="wiki-content pageSection">
       <div style="float: right;">
            <a href="http://cwiki.apache.org/confluence/users/viewnotifications.action"
class="grey">Change Notification Preferences</a>
       </div>

       <a href="http://cwiki.apache.org/confluence/display/GMOxDOC22/Development+issues">View
Online</a>
       |
       <a href="http://cwiki.apache.org/confluence/pages/diffpagesbyversion.action?pageId=2329733&revisedVersion=3&originalVersion=2">View
Change</a>
              |
       <a href="http://cwiki.apache.org/confluence/display/GMOxDOC22/Development+issues?showComments=true&amp;showCommentArea=true#addcomment">Add
Comment</a>
            </div>
</div>
</div>
</div>
</div>
</body>
</html>

Mime
View raw message