geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paolo Denti <paolo.de...@gmail.com>
Subject Re: Problem at geronimo boot
Date Mon, 27 Aug 2007 22:47:14 GMT
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
<font size="-1"><font face="Helvetica, Arial, sans-serif">Yes, it is a
file. anyway the application is working on jboss<br>
this is the web.xml<br>
========================<br>
&lt;?xml version="1.0" encoding="UTF-8"?&gt;<br>
&lt;web-app version="2.4" <br>
&nbsp;&nbsp;&nbsp; xmlns=<a class="moz-txt-link-rfc2396E" href="http://java.sun.com/xml/ns/j2ee">"http://java.sun.com/xml/ns/j2ee"</a>
<br>
&nbsp;&nbsp;&nbsp; xmlns:xsi=<a class="moz-txt-link-rfc2396E" href="http://www.w3.org/2001/XMLSchema-instance">"http://www.w3.org/2001/XMLSchema-instance"</a>
<br>
&nbsp;&nbsp;&nbsp; xsi:schemaLocation="<a class="moz-txt-link-freetext" href="http://java.sun.com/xml/ns/j2ee">http://java.sun.com/xml/ns/j2ee</a>
<br>
&nbsp;&nbsp;&nbsp; <a class="moz-txt-link-freetext" href="http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd</a>"&gt;<br>
<br>
&nbsp;&nbsp;&nbsp; &lt;context-param&gt;<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;param-name&gt;contextConfigLocation&lt;/param-name&gt;<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
&lt;param-value&gt;/WEB-INF/applicationContext*.xml&lt;/param-value&gt;<br>
&nbsp;&nbsp;&nbsp; &lt;/context-param&gt;<br>
<br>
&nbsp;&nbsp;&nbsp; &lt;servlet&gt;<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;servlet-name&gt;MyAppweb&lt;/servlet-name&gt;<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
&lt;servlet-class&gt;org.springframework.web.servlet.DispatcherServlet&lt;/servlet-class&gt;<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;load-on-startup&gt;1&lt;/load-on-startup&gt;<br>
&nbsp;&nbsp;&nbsp; &lt;/servlet&gt;<br>
<br>
&nbsp;&nbsp;&nbsp; &lt;listener&gt;<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
&lt;listener-class&gt;org.springframework.web.context.ContextLoaderListener&lt;/listener-class&gt;<br>
&nbsp;&nbsp;&nbsp; &lt;/listener&gt;<br>
&nbsp;&nbsp;&nbsp; &lt;listener&gt;<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
&lt;listener-class&gt;org.springframework.web.context.request.RequestContextListener&lt;/listener-class&gt;<br>
&nbsp;&nbsp;&nbsp; &lt;/listener&gt;<br>
<br>
&nbsp;&nbsp;&nbsp; &lt;servlet-mapping&gt;<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;servlet-name&gt;MyAppweb&lt;/servlet-name&gt;<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;url-pattern&gt;*.htm&lt;/url-pattern&gt;<br>
&nbsp;&nbsp;&nbsp; &lt;/servlet-mapping&gt;<br>
<br>
&nbsp;&nbsp;&nbsp; &lt;filter&gt;<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;filter-name&gt;Acegi
Filter Chain Proxy&lt;/filter-name&gt;<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
&lt;filter-class&gt;org.acegisecurity.util.FilterToBeanProxy&lt;/filter-class&gt;<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;init-param&gt;<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
&lt;param-name&gt;targetClass&lt;/param-name&gt;<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
&lt;param-value&gt;org.acegisecurity.util.FilterChainProxy&lt;/param-value&gt;<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;/init-param&gt;<br>
&nbsp;&nbsp;&nbsp; &lt;/filter&gt;<br>
<br>
&nbsp;&nbsp;&nbsp; &lt;filter&gt;<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;filter-name&gt;sitemesh&lt;/filter-name&gt;<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
&lt;filter-class&gt;com.opensymphony.module.sitemesh.filter.PageFilter&lt;/filter-class&gt;<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;init-param&gt;<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
&lt;param-name&gt;debug.pagewriter&lt;/param-name&gt;<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
&lt;param-value&gt;true&lt;/param-value&gt;<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;/init-param&gt;<br>
&nbsp;&nbsp;&nbsp; &lt;/filter&gt;<br>
<br>
&nbsp;&nbsp;&nbsp; &lt;filter-mapping&gt;<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;filter-name&gt;Acegi
Filter Chain Proxy&lt;/filter-name&gt;<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;url-pattern&gt;/*&lt;/url-pattern&gt;<br>
&nbsp;&nbsp;&nbsp; &lt;/filter-mapping&gt;<br>
<br>
&nbsp;&nbsp;&nbsp; &lt;filter-mapping&gt;<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;filter-name&gt;sitemesh&lt;/filter-name&gt;<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;url-pattern&gt;/*&lt;/url-pattern&gt;<br>
&nbsp;&nbsp;&nbsp; &lt;/filter-mapping&gt;<br>
&nbsp;&nbsp;&nbsp; <br>
&nbsp;&nbsp;&nbsp; &lt;resource-ref&gt;<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;description&gt;datasource&lt;/description&gt;<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;res-ref-name&gt;jdbc/MyAppDS&lt;/res-ref-name&gt;<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;res-type&gt;javax.sql.DataSource&lt;/res-type&gt;<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;res-auth&gt;Container&lt;/res-auth&gt;<br>
&nbsp;&nbsp;&nbsp; &lt;/resource-ref&gt;<br>
<br>
&nbsp;&nbsp;&nbsp; &lt;resource-ref&gt;<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;description&gt;datasource&lt;/description&gt;<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;res-ref-name&gt;mail/DefaultMail&lt;/res-ref-name&gt;<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;res-type&gt;javax.mail.Session&lt;/res-type&gt;<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;res-auth&gt;Container&lt;/res-auth&gt;<br>
&nbsp;&nbsp;&nbsp; &lt;/resource-ref&gt;<br>
<br>
&lt;/web-app&gt;<br>
<br>
</font></font><br>
David Jencks wrote:
<blockquote cite="mid:2EA72A21-475B-4AA4-9FA8-FB7305E355FB@yahoo.com"
 type="cite"><br>
  <div>
  <div>On Aug 27, 2007, at 2:47 PM, Paolo Denti wrote:</div>
  <br class="Apple-interchange-newline">
  <blockquote type="cite"> <font size="-1"><font
 face="Helvetica, Arial, sans-serif">Hi, i am a brand new geronimo user
(or at least i am trying to be)<br>
I am trying to deploy already existing applications (EARs), already
working on jboss, without any particular deployment descriptior, on
geronimo.<br>
I always get NPEs at geronimo startup. below you can find the
stacktrace.<br>
it happens if i deploy with geronimo running or if i deploy with
geronimo stopped and then start geronimo.<br>
    <br>
environment is<br>
- geronimo 2.0.1 with jetty<br>
- os x 10.4.10<br>
- jdk 1.5.0_07<br>
-
JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK/Home<br>
    <br>
thanks<br>
Paolo<br>
    <br>
Geronimo Application Server started<br>
23:16:07,293 ERROR [Deployer] Deployment failed due to <br>
java.lang.NullPointerException<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at
org.apache.geronimo.deployment.CopyResourceContext.addFile(CopyResourceContext.java:144)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at
org.apache.geronimo.deployment.DeploymentContext.addFile(DeploymentContext.java:461)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at
org.apache.geronimo.web25.deployment.AbstractWebModuleBuilder.installModule(AbstractWebModuleBuilder.java:288)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at
org.apache.geronimo.web25.deployment.AbstractWebModuleBuilder$$FastClassByCGLIB$$8523248f.invoke(&lt;generated&gt;)<br>
    </font></font></blockquote>
  <div><br class="khtml-block-placeholder">
  </div>
Poking around in the code a little bit it looks to me as if the only
way this could happen is if there is a WEB-INF/<a moz-do-not-send="true"
 href="http://web.xml">web.xml</a> in the war but it can't be read into
a string.&nbsp; Could you check the structure of your war files and make
sure the WEB-INF/<a moz-do-not-send="true" href="http://web.xml">web.xml</a>
are really files and not directories and they can be accessed properly
(e.g. by unjarring them and looking at them in an editor, or looking at
them in emacs)</div>
  <div><br class="khtml-block-placeholder">
  </div>
  <div>thanks</div>
  <div>david jencks</div>
  <div><br class="khtml-block-placeholder">
  </div>
  <br>
</blockquote>
</body>
</html>

Mime
View raw message