Hi,
I managed to locally make an assembly of tomcat-minimal successfully(of
cause, disabled some modules, such as hot-deploy, remote-deploy).
But when I tried to start the server, I encounter a strange problem that I
can not figure out why. The problem is:
When boot comes to plugin
"org.apache.geronimo.configs/tomcat6/3.0-SNAPSHOT/car", an
java.util.MissingResourceException threw out. Full stack trace is:
[********************************* ] 83% 10s Starting
org.apache.ger...2009-11-20 11:13:40,920 ERROR [GBeanInstanceState] Error
while starting; GBean is now in the FAILED state:
abstractName="org.apache.geronimo.configs/tomcat6/3.0-SNAPSHOT/car?ServiceModule=org.apache.geronimo.configs/tomcat6/3.0-SNAPSHOT/car,j2eeType=GBean,name=TomcatServer"
org.apache.xbean.recipe.ConstructionException: Error invoking constructor:
public org.apache.catalina.connector.Connector(java.lang.String) throws
java.lang.Exception
at
org.apache.xbean.recipe.ReflectionUtil$ConstructorFactory.create(ReflectionUtil.java:962)
at
org.apache.xbean.recipe.ObjectRecipe.internalCreate(ObjectRecipe.java:276)
at org.apache.xbean.recipe.AbstractRecipe.create(AbstractRecipe.java:96)
at org.apache.xbean.recipe.AbstractRecipe.create(AbstractRecipe.java:61)
at
org.apache.geronimo.tomcat.model.ConnectorType.getConnector(ConnectorType.java:595)
at
org.apache.geronimo.tomcat.model.ServiceType.getService(ServiceType.java:278)
at
org.apache.geronimo.tomcat.model.ServerType.build(ServerType.java:294)
at
org.apache.geronimo.tomcat.TomcatServerGBean.<init>(TomcatServerGBean.java:132)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at
org.apache.xbean.recipe.ReflectionUtil$ConstructorFactory.create(ReflectionUtil.java:952)
at
org.apache.xbean.recipe.ObjectRecipe.internalCreate(ObjectRecipe.java:276)
at org.apache.xbean.recipe.AbstractRecipe.create(AbstractRecipe.java:96)
at org.apache.xbean.recipe.AbstractRecipe.create(AbstractRecipe.java:61)
at
org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:917)
at
org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:269)
at
org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:103)
at
org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java:125)
at
org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:544)
at
org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean(BasicKernel.java:385)
at
org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:459)
at
org.apache.geronimo.kernel.config.KernelConfigurationManager.start(KernelConfigurationManager.java:223)
at
org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:713)
at
org.apache.geronimo.system.main.EmbeddedDaemon.doStartup(EmbeddedDaemon.java:149)
at
org.apache.geronimo.system.main.EmbeddedDaemon.execute(EmbeddedDaemon.java:81)
at org.apache.geronimo.main.Bootstrapper.execute(Bootstrapper.java:88)
at org.apache.geronimo.cli.AbstractCLI.executeMain(AbstractCLI.java:65)
at org.apache.geronimo.cli.daemon.DaemonCLI.main(DaemonCLI.java:32)
Caused by: java.util.MissingResourceException: Can't find bundle for base
name org.apache.catalina.connector.LocalStrings, locale en_US
at
java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:1521)
at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:1260)
at java.util.ResourceBundle.getBundle(ResourceBundle.java:787)
at
org.apache.tomcat.util.res.StringManager.<init>(StringManager.java:77)
at
org.apache.tomcat.util.res.StringManager.<init>(StringManager.java:72)
at
org.apache.tomcat.util.res.StringManager.getManager(StringManager.java:161)
at
org.apache.catalina.connector.MapperListener.<init>(MapperListener.java:79)
at org.apache.catalina.connector.Connector.<init>(Connector.java:266)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at
org.apache.xbean.recipe.ReflectionUtil$ConstructorFactory.create(ReflectionUtil.java:952)
... 29 more
So I double check the catalina bundle(whose bundle id is 122 in my assembly)
and confirmed there are resource files for LocalStrings in the jar. Its
package is exported and imported properly in the bundle's MENIFEST file.
Just no LocalStrings_en_US.properties there. But I think, even the local
resource is not found, the default resource LocalStrings.properties should
be picked up.
>From the error msg, it does not happen as supposed to. However, I manually
add a resource file to the jar, stop osgi runtime, clear bundle cache, and
start the server again. The same problem is still there. Why? does the
caller bundle not see the resource from another bundle? I am confused.
Here I also attached an active bundle list before the error happens for
reference.
Hope someone can give me a light about it. My ideal goal is to have a
minimal tomcat assembly started without problems, so that I can try to
deploy a simple sample application to the runtime and see if it works.
Thanks for any comments.
Forrest
START LEVEL 100
ID State Blueprint Level Name
[ 0] [Active ] [ ] [ 0] System Bundle (2.1.0.SNAPSHOT)
[ 1] [Active ] [ ] [ 30] Apache Mina SSHD :: Core
(0.3.0.SNAPSHOT)
[ 2] [Active ] [Created ] [ 30] Apache Felix Karaf :: Admin Core
(1.1.0.SNAPSHOT)
[ 3] [Active ] [ ] [ 30] Apache Felix Gogo Shell Runtime
(0.3.0.SNAPSHOT)
[ 4] [Active ] [ ] [ 30] Apache MINA Core (2.0.0.M6)
[ 5] [Active ] [Created ] [ 30] Apache Felix Karaf :: Shell SSH
(1.1.0.SNAPSHOT)
[ 6] [Active ] [Created ] [ 30] Apache Felix Karaf :: JAAS Modules
(1.1.0.SNAPSHOT)
[ 7] [Active ] [Created ] [ 30] Apache Felix Karaf :: Shell
PackageAdmin Commands (1.1.0.SNAPSHOT)
[ 8] [Active ] [Created ] [ 30] Apache Felix Karaf :: Shell Various
Commands (1.1.0.SNAPSHOT)
[ 9] [Active ] [Created ] [ 30] Apache Felix Karaf :: JAAS Config
(1.1.0.SNAPSHOT)
[ 10] [Active ] [Created ] [ 30] Apache Felix Karaf :: Shell
ConfigAdmin Commands (1.1.0.SNAPSHOT)
[ 11] [Active ] [Created ] [ 30] Apache Felix Karaf :: Blueprint
Deployer (1.1.0.SNAPSHOT)
[ 12] [Active ] [Created ] [ 30] Apache Felix Karaf :: Shell Console
(1.1.0.SNAPSHOT)
[ 13] [Active ] [Created ] [ 30] Apache Felix Karaf :: Shell Log
Commands (1.1.0.SNAPSHOT)
[ 14] [Active ] [ ] [ 30] Apache Felix Karaf :: JAAS Boot
(1.1.0.SNAPSHOT)
[ 15] [Active ] [Created ] [ 30] Apache Felix Karaf :: Shell OSGi
Commands (1.1.0.SNAPSHOT)
[ 16] [Active ] [ ] [ 10] Apache Felix File Install (2.0.4)
[ 17] [Active ] [ ] [ 10] Apache Felix Prefrences Service
(1.0.2)
[ 18] [Active ] [ ] [ 40] Geronimo Framework, Modules ::
Kernel (3.0.0.SNAPSHOT)
[ 19] [Active ] [ ] [ 40] Apache Geronimo Bundles:
sxc-runtime-0.7.2 (0.7.2.SNAPSHOT)
[ 20] [Active ] [ ] [ 40] Apache ServiceMix Bundles:
commons-lang-2.4 (2.4.0.SNAPSHOT)
[ 21] [Active ] [ ] [ 40] Apache ServiceMix Bundles:
commons-jexl-1.1 (1.1.0.SNAPSHOT)
[ 22] [Active ] [ ] [ 40] Apache ServiceMix Specs :: JAXB API
2.1 (1.2.0)
[ 23] [Active ] [ ] [ 40] Apache XBean :: Reflect (3.6)
[ 24] [Active ] [ ] [ 40] Apache ServiceMix Bundles:
woodstox-3.2.8 (3.2.8.SNAPSHOT)
[ 25] [Active ] [ ] [ 40] Apache ServiceMix Specs ::
ACTIVATION API 1.4 (1.4.0.SNAPSHOT)
[ 26] [Active ] [ ] [ 40] Apache ServiceMix Specs :: STAX API
1.0 (1.3.0)
[ 27] [Active ] [ ] [ 40] Commons CLI (1.2)
[ 28] [Active ] [ ] [ 40] Geronimo Framework, Modules :: CLI
(3.0.0.SNAPSHOT)
[ 29] [Active ] [ ] [ 40] Geronimo Framework, Modules ::
Common (3.0.0.SNAPSHOT)
[ 30] [Active ] [ ] [ 40] Apache ServiceMix Bundles:
jaxb-impl-2.1.6 (2.1.6.1)
[ 31] [Active ] [ ] [ 40] Apache Geronimo Bundles: asm-3.1
(3.1.0.SNAPSHOT)
[ 32] [Active ] [ ] [ 40] Apache Geronimo Bundles:
asm-commons-3.1 (3.1.0.SNAPSHOT)
[ 33] [Active ] [ ] [ 40] Apache ServiceMix Bundles:
cglib-2.1_3 (2.1.0.3_3-SNAPSHOT)
[ 34] [Active ] [ ] [ 40] Geronimo Framework, Modules ::
System (3.0.0.SNAPSHOT)
[ 35] [Active ] [ ] [ 40] Geronimo Framework, Modules ::
Crypto (3.0.0.SNAPSHOT)
[ 36] [Active ] [ ] [ 40] Apache ServiceMix Bundles:
xstream-1.3 (1.3.0.SNAPSHOT)
[ 37] [Active ] [ ] [ 40] Apache Geronimo Bundles:
sxc-jaxb-0.7.2 (0.7.2.SNAPSHOT)
[ 38] [Active ] [ ] [ 40] Apache ServiceMix Bundles:
xpp3-1.1.4c (1.1.0.4c_2-SNAPSHOT)
[ 39] [Active ] [ ] [ 9] Geronimo Framework, Modules :: PAX
Logging (3.0.0.SNAPSHOT)
[ 40] [Active ] [ ] [ 8] Apache Felix Configuration Admin
Service (1.2.4)
[ 41] [Active ] [ ] [ 8] OPS4J Pax Logging - API (1.4)
[ 42] [Active ] [ ] [ 5] OPS4J Pax Url - wrap: (1.1.2)
[ 43] [Active ] [ ] [ 5] OPS4J Pax Url - mvn: (1.1.2)
[ 44] [Active ] [Created ] [ 20] Apache Geronimo Blueprint Bundle
(1.0.0)
[ 45] [Active ] [ ] [ 60] Geronimo Framework, Configs :: J2EE
System (3.0.0.SNAPSHOT)
[ 46] [Active ] [ ] [ 60] Geronimo Framework, Configs :: RMI
Naming (3.0.0.SNAPSHOT)
[ 47] [Active ] [ ] [ 60] Geronimo Framework, Modules ::
Management API (3.0.0.SNAPSHOT)
[ 48] [Active ] [ ] [ 60] geronimo-j2ee-management_1.1_spec
(1.0.1)
[ 49] [Active ] [ ] [ 60] Geronimo Framework, Modules :: Core
(3.0.0.SNAPSHOT)
[ 50] [Active ] [ ] [ 60] Geronimo Framework, Modules ::
Interceptor (3.0.0.SNAPSHOT)
[ 51] [Active ] [ ] [ 60] Geronimo Framework, Modules ::
Naming (3.0.0.SNAPSHOT)
[ 52] [Active ] [ ] [ 60] Apache XBean :: Naming (3.6)
[ 53] [Active ] [ ] [ 60] geronimo-jta_1.1_spec (1.1.1)
[ 54] [Active ] [ ] [ 60] Geronimo Framework, Configs ::
Plugin Management (3.0.0.SNAPSHOT)
[ 55] [Active ] [ ] [ 60] Geronimo Framework, Modules ::
Plugin (3.0.0.SNAPSHOT)
[ 56] [Active ] [ ] [ 60] Apache ServiceMix Bundles:
ant-1.7.0 (1.7.0.1)
[ 57] [Active ] [ ] [ 60] JAVAEE Deployment 1.1MR3
(1.1.0.SNAPSHOT)
[ 58] [Active ] [ ] [ 60] Geronimo Framework, Configs :: J2EE
Security (3.0.0.SNAPSHOT)
[ 59] [Active ] [ ] [ 60] Geronimo Framework, Modules ::
Security (3.0.0.SNAPSHOT)
[ 60] [Active ] [ ] [ 60] J2EE JACC 1.1 (1.0.2)
[ 61] [Active ] [ ] [ 60] EJB 3.1 (1.0.0.EA1-SNAPSHOT)
[ 62] [Active ] [ ] [ 60] Servlet 3.0 Early Access
(1.0.0.EA-SNAPSHOT)
[ 63] [Active ] [ ] [ 60] Java Authentication SPI for
Containers (1.0)
[ 64] [Active ] [ ] [ 60] Apache ServiceMix Specs :: SAAJ API
1.3 (1.3.0)
[ 65] [Active ] [ ] [ 60] Geronimo JASPI implementation
(1.1.0.SNAPSHOT)
[ 66] [Active ] [ ] [ 60] Geronimo Framework, Modules :: JMX
Remoting (3.0.0.SNAPSHOT)
[ 67] [Active ] [ ] [ 60] Geronimo Framework, Configs ::
Server Security Configuration (3.0.0.SNAPSHOT)
[ 68] [Active ] [ ] [ 60] Geronimo Framework, Configs ::
GBean Deployer (3.0.0.SNAPSHOT)
[ 69] [Active ] [ ] [ 60] Apache ServiceMix Bundles:
xmlbeans-2.4.0 (2.4.0.2)
[ 70] [Active ] [ ] [ 60] Geronimo Framework, Modules ::
Deployment (3.0.0.SNAPSHOT)
[ 71] [Active ] [ ] [ 60] Geronimo Framework, Modules :: Main
(3.0.0.SNAPSHOT)
[ 72] [Active ] [ ] [ 60] OSGi R4 Core Bundle (4.1)
[ 73] [Active ] [ ] [ 60] Apache ServiceMix Bundles:
xmlresolver-1.2 (1.2.0.SNAPSHOT)
[ 74] [Active ] [ ] [ 60] Geronimo Framework, Modules ::
Service Builder (3.0.0.SNAPSHOT)
[ 75] [Active ] [ ] [ 60] Geronimo Schema :: JEE 5
(1.2.0.SNAPSHOT)
[ 76] [Active ] [ ] [ 60] Geronimo Schema :: J2EE 1.4
(1.3.0.SNAPSHOT)
[ 77] [Active ] [ ] [ 60] Geronimo Plugins, J2EE :: Server
(3.0.0.SNAPSHOT)
[ 78] [Active ] [ ] [ 60] Geronimo Framework, Modules :: J2EE
(3.0.0.SNAPSHOT)
[ 79] [Active ] [ ] [ 60] Geronimo Plugins, J2EE :: Deployer
(3.0.0.SNAPSHOT)
[ 80] [Active ] [ ] [ 60] Geronimo Plugins, J2EE :: Schema
(3.0.0.SNAPSHOT)
[ 81] [Active ] [ ] [ 60] Geronimo Plugins, J2EE :: Naming
Builder (3.0.0.SNAPSHOT)
[ 82] [Active ] [ ] [ 60] Geronimo Plugins, J2EE :: Builder
(3.0.0.SNAPSHOT)
[ 83] [Active ] [ ] [ 60] Geronimo Framework, Modules ::
Deploy Config (3.0.0.SNAPSHOT)
[ 84] [Active ] [ ] [ 60] geronimo-annotation_1.0_spec (1.1.1)
[ 85] [Active ] [ ] [ 60] Apache Geronimo JSR-317 JPA 2.0
Spec API (1.0.0.PFD2)
[ 86] [Active ] [ ] [ 60] geronimo-jaxws_2.1_spec (1.0)
[ 87] [Active ] [ ] [ 60] geronimo-activation_1.1_spec (1.0.2)
[ 88] [Active ] [ ] [ 60] Apache XBean :: Classpath Resource
Finder (3.6)
[ 89] [Active ] [ ] [ 60] Geronimo Plugins, J2EE :: Web 2.5
Builder (3.0.0.SNAPSHOT)
[ 90] [Active ] [ ] [ 60] Geronimo Plugins, J2EE :: Security
Builder (3.0.0.SNAPSHOT)
[ 91] [Active ] [ ] [ 60] Geronimo Plugins, Connector 1.6 ::
Transaction Manager (JTA11) (3.0.0.SNAPSHOT)
[ 92] [Active ] [ ] [ 60] Geronimo Plugins, Connector 1.6 ::
Core (3.0.0.SNAPSHOT)
[ 93] [Active ] [ ] [ 60] Geronimo TxManager :: Connector
(2.2.0.SNAPSHOT)
[ 94] [Active ] [ ] [ 60] Geronimo Plugins, Connector 1.6 ::
Transaction (3.0.0.SNAPSHOT)
[ 95] [Active ] [ ] [ 60] J2EE Connector 1.6
(1.0.0.EA-SNAPSHOT)
[ 96] [Active ] [ ] [ 60] Geronimo TxManager :: Transaction
(2.2.0.SNAPSHOT)
[ 97] [Active ] [ ] [ 60] Apache ServiceMix Bundles:
howl-1.0.1-1 (1.0.1.1_1)
[ 98] [Active ] [ ] [ 60] mvn:org.objectweb.howl/howl/1.0.1-1
[ 99] [Active ] [ ] [ 60] Geronimo Plugins, Connector 1.6 ::
Deployer (3.0.0.SNAPSHOT)
[ 100] [Active ] [ ] [ 60] Geronimo Plugins, Connector 1.6 ::
Builder (3.0.0.SNAPSHOT)
[ 101] [Active ] [ ] [ 60] Geronimo Plugins, Jasper :: Jasper
(3.0.0.SNAPSHOT)
[ 102] [Active ] [ ] [ 60] Geronimo Plugins, Jasper :: Core
(3.0.0.SNAPSHOT)
[ 103] [Active ] [ ] [ 60] Apache Geronimo Tomcat fork: Jasper
(6.0.20.0)
[ 104] [Active ] [ ] [ 60] geronimo-el_1.0_spec (1.0.1)
[ 105] [Active ] [ ] [ 60] geronimo-jsp_2.1_spec (1.0.1)
[ 106] [Active ] [ ] [ 60] Apache Geronimo Tomcat fork: Shared
(6.0.20.0)
[ 107] [Active ] [ ] [ 60] mvn:org.apache.ant/ant/1.7.1
[ 108] [Active ] [ ] [ 60]
mvn:org.apache.ant/ant-launcher/1.7.1
[ 109] [Active ] [ ] [ 60] Apache Geronimo Tomcat fork:
Jasper-el (6.0.20.0)
[ 110] [Active ] [ ] [ 60] Apache ServiceMix Bundles:
core-3.2.3.v_686_R32x (3.2.3.SNAPSHOT)
[ 111] [Active ] [ ] [ 60] Geronimo Plugins, Tomcat :: Tomcat
(3.0.0.SNAPSHOT)
[ 112] [Active ] [ ] [ 60] Geronimo Plugins, Tomcat :: Core
(3.0.0.SNAPSHOT)
[ 114] [Active ] [ ] [ 60] Geronimo Plugins, Web Services ::
Core (3.0.0.SNAPSHOT)
[ 115] [Active ] [ ] [ 60] geronimo-jaxrpc_1.1_spec (2.0.0)
[ 116] [Active ] [ ] [ 60] geronimo-jaxr_1.0_spec (2.0.0)
[ 117] [Active ] [ ] [ 60] Apache Geronimo Bundles:
castor-1.0.5 (1.0.5.SNAPSHOT)
[ 118] [Active ] [ ] [ 60] Apache Geronimo Bundles:
ldapsdk-4.1 (4.1.0.SNAPSHOT)
[ 119] [Active ] [ ] [ 60] Apache ServiceMix Bundles:
wsdl4j-1.6.2 (1.6.2.SNAPSHOT)
[ 120] [Active ] [ ] [ 60] geronimo-saaj_1.3_spec (1.0.1)
[ 121] [Active ] [ ] [ 60] Geronimo JavaMail 1.4 :: Mail
(1.8.0.SNAPSHOT)
[ 122] [Active ] [ ] [ 60] Apache Geronimo Tomcat fork:
Catalina (6.0.20.0)
[ 123] [Active ] [ ] [ 60] Apache Geronimo Tomcat fork: Util
(6.0.20.0)
[ 124] [Active ] [ ] [ 60] Apache Geronimo Tomcat fork:
Catalina-ha (6.0.20.0)
[ 125] [Active ] [ ] [ 60] geronimo-javamail_1.4_spec (1.5)
[ 126] [Active ] [ ] [ 60] Apache Geronimo Tomcat fork: Tribes
(6.0.20.0)