geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From siss...@insession.com
Subject Problems running DebugConsole on Tomcat, with Jetty removed from plans in M4
Date Mon, 25 Jul 2005 14:10:05 GMT
Unfortunately JIRA is down, so I'm sending this email for now.  Does 
anyone have any ideas regarding the problem described below.. 

In an attempt to test modifying the M4 plan files so that Geronimo only 
uses Tomcat in M4, I ran into some problems.

My changes were:

1. I added the following line to 
geronimo\modules\assembly\src\var\config\config.list

        org/apache/geronimo/Tomcat

2. Removed all references to Jetty from the plans ( an M4 patch to the 
plans directory is shown below to aid reproducing the problem).

When I attempted to start org/apache/geronimo/DebugConsole, I got the 
following error:

java.lang.NullPointerException
        at 
org.apache.geronimo.kernel.config.Configuration.shutdown(Configuration.java:383)
        at 
org.apache.geronimo.kernel.config.Configuration.doFail(Configuration.java:403)
        at 
org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:869)

(see bottom of mail for details and log output)..

 
Index: j2ee-server-plan.xml
===================================================================
--- j2ee-server-plan.xml        (revision 224720)
+++ j2ee-server-plan.xml        (working copy)
@@ -75,9 +75,6 @@
         <uri>openejb/jars/openejb-core-${openejb_version}.jar</uri>
     </dependency>
     <dependency>
-        <uri>geronimo/jars/geronimo-jetty-${geronimo_version}.jar</uri>
-    </dependency>
-    <dependency>
 <uri>geronimo/jars/geronimo-jmxremoting-${geronimo_version}.jar</uri>
     </dependency>
     <dependency>
@@ -224,38 +221,6 @@
         <reference 
name="XidImporter"><name>TransactionManager</name></reference>
     </gbean>
 
-
-    <!-- default WAR container using Jetty -->
-    <gbean name="JettyWebContainer" 
class="org.apache.geronimo.jetty.JettyContainerImpl">
-    </gbean>
-
-    <gbean name="JettyRequestLog" 
class="org.apache.geronimo.jetty.requestlog.NCSARequestLog">
-        <reference 
name="JettyContainer"><name>JettyWebContainer</name></reference>
-        <reference 
name="ServerInfo"><module>org/apache/geronimo/System</module><name>ServerInfo</name></reference>
-        <attribute 
name="filename">var/log/jetty_yyyy_mm_dd.log</attribute>
-        <attribute name="logDateFormat">dd/MMM/yyyy:HH:mm:ss 
ZZZ</attribute>
-        <attribute name="logTimeZone">GMT</attribute>
-    </gbean>
-
-    <gbean name="JettyWebConnector" 
class="org.apache.geronimo.jetty.connector.HTTPConnector">
-        <attribute name="port">${PlanJettyHTTPPort}</attribute>
-        <reference 
name="JettyContainer"><name>JettyWebContainer</name></reference>
-        <!--        <attribute name="MaxConnections">10</attribute>-->
-        <!--        <attribute name="MaxIdleTime">10</attribute>-->
-    </gbean>
-
-    <gbean name="JettySSLConnector" 
class="org.apache.geronimo.jetty.connector.HTTPSConnector">
-        <attribute name="port">${PlanJettyHTTPSPort}</attribute>
-        <attribute name="keystore">var/security/keystore</attribute>
-        <attribute name="keystoreType">JKS</attribute>
-        <attribute name="password">secret</attribute>
-        <attribute name="keyPassword">secret</attribute>
-        <attribute name="needClientAuth">false</attribute>
-        <attribute name="protocol">TLS</attribute>
-        <reference 
name="JettyContainer"><name>JettyWebContainer</name></reference>
-        <reference 
name="ServerInfo"><module>org/apache/geronimo/System</module><name>ServerInfo</name></reference>
-    </gbean>
-
     <!-- EJB Protocol -->
     <gbean gbeanName="openejb:type=NetworkService,name=EJB" 
class="org.openejb.server.StandardServiceStackGBean">
         <attribute name="name">EJB</attribute>
Index: j2ee-deployer-plan.xml
===================================================================
--- j2ee-deployer-plan.xml      (revision 224720)
+++ j2ee-deployer-plan.xml      (working copy)
@@ -52,9 +52,6 @@
 <uri>geronimo/jars/geronimo-naming-builder-${geronimo_version}.jar</uri>
     </dependency>
     <dependency>
- <uri>geronimo/jars/geronimo-jetty-builder-${geronimo_version}.jar</uri>
-    </dependency>
-    <dependency>
 <uri>geronimo/jars/geronimo-web-builder-${geronimo_version}.jar</uri>
     </dependency>
     <dependency>
@@ -93,9 +90,6 @@
 <uri>geronimo/jars/geronimo-security-${geronimo_version}.jar</uri>
     </dependency>
     <dependency>
-        <uri>geronimo/jars/geronimo-jetty-${geronimo_version}.jar</uri>
-    </dependency>
-    <dependency>
         <uri>geronimo/jars/geronimo-naming-${geronimo_version}.jar</uri>
     </dependency>
     <dependency>
@@ -152,10 +146,6 @@
 
<uri>geronimo/jars/geronimo-servicemix-builder-${geronimo_version}.jar</uri>
     </dependency>
 
-
-    <!--
-   - Uncomment this to deploy webapps to Apache Tomcat
-   -
     <dependency>
 <uri>geronimo/jars/geronimo-tomcat-builder-${geronimo_version}.jar</uri>
     </dependency>
@@ -174,9 +164,7 @@
     <dependency>
         <uri>tomcat/jars/tomcat-util-${tomcat_version}.jar</uri>
     </dependency>
--->
 
-
     <gbean name="Deployer" 
class="org.apache.geronimo.deployment.Deployer">
         <reference name="Builders"><name>*</name></reference>
         <reference 
name="Store"><module>org/apache/geronimo/DeployerSystem</module><name>*</name></reference>
@@ -219,92 +207,18 @@
         <attribute 
name="policyProvider">org.apache.geronimo.security.jacc.GeronimoPolicy</attribute>
     </gbean>
 
-   <!--
-   - Comment this section to deploy webapps to Apache Tomcat
-   -
-   -->
-    <gbean name="WebBuilder" 
class="org.apache.geronimo.jetty.deployment.JettyModuleBuilder">
-        <attribute 
name="defaultParentId">org/apache/geronimo/Server</attribute>
-        <attribute name="defaultSessionTimeoutSeconds">1800</attribute>
-        <attribute 
name="defaultWelcomeFiles">index.html,index.htm,index.jsp</attribute>
-        <attribute 
name="jettyContainerObjectName">geronimo.server:name=JettyWebContainer,*</attribute>
-        <attribute 
name="defaultServlets">geronimo.deployer:j2eeType=DefaultServlet,J2EEModule=org/apache/geronimo/J2EEDeployer,*</attribute>
-        <attribute 
name="pojoWebServiceTemplate">geronimo.deployer:J2EEApplication=null,J2EEModule=org/apache/geronimo/RuntimeDeployer,J2EEServer=deployer,j2eeType=ServletWebServiceTemplate,name=POJOTemplate</attribute>
-        <reference 
name="WebServiceBuilder"><name>WebServiceBuilder</name></reference>
-        <reference 
name="Repository"><gbean-name>*:name=Repository,*</gbean-name></reference>
-    </gbean>
-
-<!--
-   - Uncomment this to deploy webapps to Apache Tomcat
-   -
     <gbean name="WebBuilder" 
class="org.apache.geronimo.tomcat.deployment.TomcatModuleBuilder">
         <attribute 
name="defaultParentId">org/apache/geronimo/Tomcat</attribute>
         <attribute 
name="tomcatContainerObjectName">geronimo.server:name=TomcatWebContainer,*</attribute>
         <reference 
name="WebServiceBuilder"><name>WebServiceBuilder</name></reference>
         <reference 
name="Repository"><gbean-name>*:name=Repository,*</gbean-name></reference>
     </gbean>
-   -->
 
-   <!--
-   - Comment this section to deploy webapps to Apache Tomcat
-   -
-   -->
-    <gbean name="StaticContent" 
class="org.apache.geronimo.jetty.JettyServletHolder">
-        <attribute name="servletName">default</attribute>
-        <attribute 
name="servletClass">org.mortbay.jetty.servlet.Default</attribute>
-        <attribute name="loadOnStartup">0</attribute>
-        <attribute name="initParams">
- acceptRanges=true
- dirAllowed=true
- putAllowed=false
- delAllowed=false
- redirectWelcome=false
- minGzipLength=8192</attribute>
-        <attribute name="servletMappings">/</attribute>
-    </gbean>
-
-   <!--
-   - Comment this section to deploy webapps to Apache Tomcat
-   -
-   -->
-    <gbean name="JSPServlet" 
class="org.apache.geronimo.jetty.JettyServletHolder">
-        <attribute name="servletName">jsp</attribute>
-        <attribute 
name="servletClass">org.apache.jasper.servlet.JspServlet</attribute>
-        <attribute name="loadOnStartup">0</attribute>
-        <attribute name="initParams">
- logVerbosityLevel=DEBUG
- fork=false
- xpoweredBy=false</attribute>
-        <attribute 
name="servletMappings">*.jsp,*.jspf,*.jspx,*.xsp</attribute>
-    </gbean>
-
-    <!--
-    - Comment this section to deploy webapps to Apache Tomcat
-    -
-    -->
-    <gbean name="POJOTemplate" 
class="org.apache.geronimo.jetty.JettyPOJOWebServiceHolder">
-        <attribute name="servletName">dummy</attribute>
-    </gbean>
-
-   <!--
-   - Comment this section to deploy webapps to Apache Tomcat
-   -
-   -->
     <gbean name="EJBBuilder" 
class="org.openejb.deployment.OpenEJBModuleBuilder">
         <attribute 
name="defaultParentId">org/apache/geronimo/Server</attribute>
-        <attribute 
name="listener">geronimo.server:J2EEApplication=null,J2EEModule=org/apache/geronimo/Server,J2EEServer=geronimo,j2eeType=GBean,name=JettyWebContainer</attribute>
-        <reference 
name="Repository"><gbean-name>*:name=Repository,*</gbean-name></reference>
-    </gbean>
-
-<!--
-   - Uncomment this to deploy webapps to Apache Tomcat
-   -
-    <gbean name="EJBBuilder" 
class="org.openejb.deployment.OpenEJBModuleBuilder">
-        <attribute 
name="defaultParentId">org/apache/geronimo/Server</attribute>
         <attribute 
name="listener">geronimo.server:J2EEApplication=null,J2EEModule=org/apache/geronimo/Server,J2EEServer=geronimo,j2eeType=GBean,name=TomcatWebContainer</attribute>
         <reference 
name="Repository"><gbean-name>*:name=Repository,*</gbean-name></reference>
     </gbean>
-    -->
 
     <gbean name="ClientEJBReferenceBuilder" 
class="org.openejb.deployment.RemoteEJBReferenceBuilder">
     </gbean>
Index: j2ee-runtime-deployer-plan.xml
===================================================================
--- j2ee-runtime-deployer-plan.xml      (revision 224720)
+++ j2ee-runtime-deployer-plan.xml      (working copy)
@@ -49,9 +49,6 @@
 <uri>geronimo/jars/geronimo-naming-builder-${geronimo_version}.jar</uri>
     </dependency>
     <dependency>
- <uri>geronimo/jars/geronimo-jetty-builder-${geronimo_version}.jar</uri>
-    </dependency>
-    <dependency>
 <uri>geronimo/jars/geronimo-web-builder-${geronimo_version}.jar</uri>
     </dependency>
     <dependency>
@@ -84,9 +81,6 @@
 
<uri>geronimo/jars/geronimo-servicemix-builder-${geronimo_version}.jar</uri>
     </dependency>
 
-    <!--
-    - Uncomment this section to deploy webapps to Apache Tomcat
-    -
     <dependency>
 <uri>geronimo/jars/geronimo-tomcat-builder-${geronimo_version}.jar</uri>
     </dependency>
@@ -105,7 +99,6 @@
     <dependency>
         <uri>tomcat/jars/tomcat-util-${tomcat_version}.jar</uri>
     </dependency>
-    -->
 
     <!-- deployer gbeans -->
     <gbean name="Deployer" 
class="org.apache.geronimo.deployment.Deployer">
@@ -143,94 +136,18 @@
         <reference 
name="ServiceReferenceBuilder"><name>WebServiceBuilder</name></reference>
     </gbean>
 
-    <!--
-    - Uncomment this section to deploy webapps to Apache Tomcat
-    -
-
     <gbean name="WebBuilder" 
class="org.apache.geronimo.tomcat.deployment.TomcatModuleBuilder">
         <attribute 
name="defaultParentId">org/apache/geronimo/Tomcat</attribute>
         <attribute 
name="tomcatContainerObjectName">geronimo.server:name=TomcatWebContainer,*</attribute>
         <reference 
name="WebServiceBuilder"><name>WebServiceBuilder</name></reference>
         <reference 
name="Repository"><gbean-name>*:name=Repository,*</gbean-name></reference>
     </gbean>
-    -->
 
-    <!--
-    - Comment this section to deploy webapps to Apache Tomcat
-    -
-    -->
-    <gbean name="WebBuilder" 
class="org.apache.geronimo.jetty.deployment.JettyModuleBuilder">
-        <attribute 
name="defaultParentId">org/apache/geronimo/Server</attribute>
-        <attribute name="defaultSessionTimeoutSeconds">1800</attribute>
-        <attribute 
name="defaultWelcomeFiles">index.html,index.htm,index.jsp</attribute>
-        <attribute 
name="jettyContainerObjectName">geronimo.server:name=JettyWebContainer,*</attribute>
-        <attribute 
name="defaultServlets">geronimo.server:j2eeType=DefaultServlet,J2EEModule=org/apache/geronimo/RuntimeDeployer,*</attribute>
-        <attribute 
name="pojoWebServiceTemplate">geronimo.server:J2EEApplication=null,J2EEModule=org/apache/geronimo/RuntimeDeployer,J2EEServer=geronimo,j2eeType=ServletWebServiceTemplate,name=POJOTemplate</attribute>
-        <reference 
name="WebServiceBuilder"><name>WebServiceBuilder</name></reference>
-        <reference 
name="Repository"><gbean-name>*:name=Repository,*</gbean-name></reference>
-    </gbean>
-
-    <!--
-    - Comment this section to deploy webapps to Apache Tomcat
-    -
-    -->
-    <gbean name="StaticContent" 
class="org.apache.geronimo.jetty.JettyServletHolder">
-        <attribute name="servletName">default</attribute>
-        <attribute 
name="servletClass">org.mortbay.jetty.servlet.Default</attribute>
-        <attribute name="loadOnStartup">0</attribute>
-        <attribute name="initParams">
-            acceptRanges=true
-            dirAllowed=true
-            putAllowed=false
-            delAllowed=false
-            redirectWelcome=false
-            minGzipLength=8192</attribute>
-        <attribute name="servletMappings">/</attribute>
-    </gbean>
-
-    <!--
-    - Comment this section to deploy webapps to Apache Tomcat
-    -
-    -->
-    <gbean name="JSPServlet" 
class="org.apache.geronimo.jetty.JettyServletHolder">
-        <attribute name="servletName">jsp</attribute>
-        <attribute 
name="servletClass">org.apache.jasper.servlet.JspServlet</attribute>
-        <attribute name="loadOnStartup">0</attribute>
-        <attribute name="initParams">
-            logVerbosityLevel=DEBUG
-            fork=false
-            xpoweredBy=false</attribute>
-        <attribute 
name="servletMappings">*.jsp,*.jspf,*.jspx,*.xsp</attribute>
-    </gbean>
-
-    <!--
-    - Comment this section to deploy webapps to Apache Tomcat
-    -
-    -->
-    <gbean name="POJOTemplate" 
class="org.apache.geronimo.jetty.JettyPOJOWebServiceHolder">
-        <attribute name="servletName">dummy</attribute>
-    </gbean>
-
-    <!--
-    - Comment this section to deploy webapps to Apache Tomcat
-    -
-    -->
     <gbean name="EJBBuilder" 
class="org.openejb.deployment.OpenEJBModuleBuilder">
         <attribute 
name="defaultParentId">org/apache/geronimo/Server</attribute>
-        <attribute 
name="listener">geronimo.server:J2EEApplication=null,J2EEModule=org/apache/geronimo/Server,J2EEServer=geronimo,j2eeType=GBean,name=JettyWebContainer</attribute>
-        <reference 
name="Repository"><gbean-name>*:name=Repository,*</gbean-name></reference>
-    </gbean>
-
-    <!--
-    - Uncomment this section to deploy webapps to Apache Tomcat
-    -
-
-    <gbean name="EJBBuilder" 
class="org.openejb.deployment.OpenEJBModuleBuilder">
-        <attribute 
name="defaultParentId">org/apache/geronimo/Server</attribute>
         <attribute 
name="listener">geronimo.server:J2EEApplication=null,J2EEModule=org/apache/geronimo/Server,J2EEServer=geronimo,j2eeType=GBean,name=TomcatWebContainer</attribute>
         <reference 
name="Repository"><gbean-name>*:name=Repository,*</gbean-name></reference>
     </gbean>
-    -->
 
     <gbean name="ClientEJBReferenceBuilder" 
class="org.openejb.deployment.RemoteEJBReferenceBuilder"/>


XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Booting Geronimo Kernel (in Java 1.4.2_06)...
22:49:35,080 WARN  [ToolsJarFinder] Could not find java compiler: 
lib\tools.jar file not found in C:\Program Files\Java\j2re1.4.2_06
 or C:\Program Files\Java
Starting Geronimo Application Server
[********] 100%   9s Startup complete
  Listening on Ports:
    1099 0.0.0.0   RMI Naming
    1527 127.0.0.1 Derby Connector
    4201 127.0.0.1 OpenEJB Connector EJB
    8009 0.0.0.0   Tomcat Connector AJP
    8090 0.0.0.0   Tomcat Connector HTTP
   61616 0.0.0.0   ActiveMQ Message Broker Connector
Geronimo Application Server started (version 1.0-M4-SNAPSHOT)

C:\TESTM4>java -jar geronimo\bin\deployer.jar --user system --password 
manager list-modules --stopped
Found 7 modules
    org/apache/geronimo/DeployerSystem
    org/apache/geronimo/DebugConsole
    org/apache/geronimo/ClientSystem
    org/apache/geronimo/J2EEDeployer
    org/apache/geronimo/Client
    org/apache/geronimo/Secure
    org/apache/geronimo/Demo

C:\TESTM4>java -jar geronimo\bin\deployer.jar --user system --password 
manager start org/apache/geronimo/DebugConsole
    Error: Operation failed: Cannot transition to running state from
    failed

C:\TESTM4>java -jar geronimo\bin\deployer.jar --user system --password 
manager list-modules --started
Found 7 modules
    org/apache/geronimo/System
    org/apache/geronimo/SystemJMS
    org/apache/geronimo/Tomcat
    org/apache/geronimo/Server
    org/apache/geronimo/SystemDatabase
    org/apache/geronimo/RuntimeDeployer
    org/apache/geronimo/ActiveMQServer

Here is some of the log..

22:53:56,480 INFO  [LocalConfigStore:config-store] Loaded Configuration 
geronimo.config:name="org/apache/geronimo/DebugConsole"
22:53:56,480 DEBUG [GBeanInstanceState] GBeanInstanceState for: 
geronimo.config:name="org/apache/geronimo/DebugConsole" State changed from 
stopped to starting
22:53:56,495 DEBUG [Configuration] ClassPath for 
org/apache/geronimo/DebugConsole resolved to 
[file:/C:/TESTM4/geronimo/repository/commons-collections/jars/commons-collections-3.1.jar]
22:53:56,511 ERROR [GBeanInstance] Problem in doFail of 
geronimo.config:name="org/apache/geronimo/DebugConsole"
java.lang.NullPointerException
        at 
org.apache.geronimo.kernel.config.Configuration.shutdown(Configuration.java:383)
        at 
org.apache.geronimo.kernel.config.Configuration.doFail(Configuration.java:403)
        at 
org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:869)
        at 
org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:328)
        at 
org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:111)
        at 
org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java:133)
        at 
org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:503)
        at 
org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean(BasicKernel.java:207)
        at 
org.apache.geronimo.kernel.KernelGBean.startRecursiveGBean(KernelGBean.java:72)
        at 
org.apache.geronimo.kernel.KernelGBean$$FastClassByCGLIB$$1cccefc9.invoke(<generated>)
               <SNIP>
        at sun.rmi.transport.tcp.TCPTransport.handleMessages(Unknown 
Source)
        at 
sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(Unknown Source)
        at java.lang.Thread.run(Unknown Source)
22:53:56,542 ERROR [GBeanInstanceState] Error while starting; GBean is now 
in the FAILED state: 
objectName="geronimo.config:name="org/apache/geronimo/DebugConsole""
org.apache.geronimo.gbean.InvalidConfigurationException: Could not load 
GBeanInfo class from classloader: 
className=org.apache.geronimo.tomcat.TomcatWebAppContext
        at 
org.apache.geronimo.gbean.runtime.GBeanInstance.<init>(GBeanInstance.java:208)
        at 
org.apache.geronimo.kernel.basic.BasicKernel.loadGBean(BasicKernel.java:196)
        at 
org.apache.geronimo.kernel.config.Configuration.doStart(Configuration.java:283)
        at 
org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:850)
        at 
org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:328)
        at 
org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:111)
        at 
org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java:133)
        at 
org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:503)
        at 
org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean(BasicKernel.java:207)
        at 
org.apache.geronimo.kernel.KernelGBean.startRecursiveGBean(KernelGBean.java:72)
        at 
org.apache.geronimo.kernel.KernelGBean$$FastClassByCGLIB$$1cccefc9.invoke(<generated>)
                <SNIP>
        at 
sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(Unknown Source)
        at java.lang.Thread.run(Unknown Source)
22:53:56,542 DEBUG [GBeanInstanceState] GBeanInstanceState for: 
geronimo.config:name="org/apache/geronimo/DebugConsole" State changed from 
starting to failed

Mime
View raw message