Mantis Bugtracker
  

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0002472 [Resin] major always 03-01-08 02:16 03-25-08 15:29
Reporter stbu View Status public  
Assigned To ferg
Priority normal Resolution fixed  
Status closed   Product Version 3.1.5
Summary 0002472: An EAR file get's deployed, but contained web module not started
Description An EAR file get's deployed, but contained web module not started.


With Resin Professional 3.1.5 I've created the 'deploy' folder in $RESIN_HOME and dropped an .ear file in this folder.
Then, started Resin and the console showed a message, that the .ear file get's expanded:

[10:45:51.484] {main} INFO com.caucho.server.cluster.Server (start)
[10:45:51.796] {main} INFO com.caucho.server.deploy.DeployController (expandArchiveImpl) expanding /C:/Downloads/resin-pro-3.1.5/deploy/ttjan2004.ear to /C:/Downloads/resin-pro-3.1.5/deploy/_ear_ttjan2004
[10:45:52.203] {main} INFO com.caucho.server.webapp.WebApp (toActive) WebApp[http://localhost:8080] [^] active
[10:45:52.484] {main} /resin-admin INFO com.caucho.server.webapp.WebApp (toActive) WebApp[http://localhost:8080/resin-admin] [^] active
[10:45:53.921] {main} /resin-doc INFO com.caucho.server.webapp.WebApp (toActive) WebApp[http://localhost:8080/resin-doc] [^] active
[10:45:53.921] {main} INFO com.caucho.server.host.Host (toActive) Host[] active
[10:45:56.250] {main} /resin-jmx-service INFO com.caucho.server.webapp.WebApp (toActive) WebApp[http://admin.caucho/resin-jmx-service] [^] active
[10:45:56.250] {main} INFO com.caucho.server.host.Host (toActive) Host[admin.caucho] active
[10:45:56.281] {main} INFO com.caucho.vfs.JniServerSocketImpl (<clinit>) Loaded Socket JNI library.
[10:45:56.281] {main} INFO com.caucho.server.port.Port (bind) hmux listening to localhost:6800
[10:45:56.281] {main} INFO com.caucho.server.port.Port (bind) http listening to *:8080
[10:45:56.296] {main} INFO com.caucho.server.cluster.Server (toActive) Server[id=,cluster=app-tier] active
[10:45:56.343] {main} INFO com.caucho.server.resin.Resin (start) Resin started in 7218ms
[10:46:28.968] {resin-destroy} INFO com.caucho.server.cluster.Server (toStopping) Server[id=,cluster=app-tier] stopping


At this time, the 'deploy' folder contains the expanded .ear in it's subfolder the .war file.
However, the .war file is not expanded and the web module is not started.


I was not able to recognize, what the reason for this might be. I remeber that this worked fine in a prevois version (I think 3.1.0), so I've increased logging to finest and found:

[10:51:06.171] {main} CONFIG com.caucho.config.core.ResinImport (init) resin:import 'C:\Downloads\resin-pro-3.1.5\deploy\_ear_ttjan2004\META-INF\application.xml'
[10:51:06.171] {main} FINER com.caucho.config.core.ResinImport (init) resin:import '/C:/Downloads/resin-pro-3.1.5/deploy/_ear_ttjan2004/META-INF/resin-application.xml' is not readable.
[10:51:06.234] {main} FINEST com.caucho.naming.Jndi (lookup) javax.naming.NameNotFoundException: java:comp/env/jdbc/test
[10:51:06.234] {main} at com.caucho.naming.ContextImpl.lookupImpl(ContextImpl.java:205)
[10:51:06.234] {main} at com.caucho.naming.ContextImpl.lookup(ContextImpl.java:157)
[10:51:06.234] {main} at javax.naming.InitialContext.lookup(InitialContext.java:392)
[10:51:06.234] {main} at com.caucho.naming.Jndi.lookup(Jndi.java:224)
[10:51:06.234] {main} at com.caucho.config.type.DataSourceType.valueOf(DataSourceType.java:76)
[10:51:06.234] {main} at com.caucho.config.attribute.SetterAttribute.setText(SetterAttribute.java:68)
[10:51:06.234] {main} at com.caucho.config.ConfigContext.setText(ConfigContext.java:568)
[10:51:06.234] {main} at com.caucho.config.ConfigContext.configureChildNode(ConfigContext.java:489)
[10:51:06.234] {main} at com.caucho.config.ConfigContext.configureNode(ConfigContext.java:365)
[10:51:06.234] {main} at com.caucho.config.ConfigContext.configureChildNode(ConfigContext.java:501)
[10:51:06.234] {main} at com.caucho.config.ConfigContext.configureAttribute(ConfigContext.java:322)
[10:51:06.234] {main} at com.caucho.config.program.NodeBuilderChildProgram.inject(NodeBuilderChildProgram.java:55)
[10:51:06.234] {main} at com.caucho.config.program.ContainerProgram.inject(ContainerProgram.java:80)
[10:51:06.234] {main} at com.caucho.config.program.ConfigProgram.configure(ConfigProgram.java:60)
[10:51:06.234] {main} at com.caucho.server.deploy.EnvironmentDeployController.configureInstance(EnvironmentDeployController.java:361)
[10:51:06.234] {main} at com.caucho.server.deploy.EnvironmentDeployController.configureInstance(EnvironmentDeployController.java:55)
[10:51:06.234] {main} at com.caucho.server.deploy.DeployController.startImpl(DeployController.java:665)
[10:51:06.234] {main} at com.caucho.server.deploy.StartAutoRedeployAutoStrategy.startOnInit(StartAutoRedeployAutoStrategy.java:72)
[10:51:06.234] {main} at com.caucho.server.deploy.DeployController.startOnInit(DeployController.java:549)
[10:51:06.234] {main} at com.caucho.server.deploy.DeployContainer.start(DeployContainer.java:160)
[10:51:06.234] {main} at com.caucho.server.webapp.WebAppEarDeployGenerator.startImpl(WebAppEarDeployGenerator.java:134)
[10:51:06.234] {main} at com.caucho.server.deploy.DeployGenerator.start(DeployGenerator.java:188)
[10:51:06.234] {main} at com.caucho.server.deploy.DeployListGenerator.startImpl(DeployListGenerator.java:178)
[10:51:06.234] {main} at com.caucho.server.deploy.DeployGenerator.start(DeployGenerator.java:188)
[10:51:06.234] {main} at com.caucho.server.deploy.DeployContainer.start(DeployContainer.java:140)
[10:51:06.234] {main} at com.caucho.server.webapp.WebAppContainer.start(WebAppContainer.java:659)
[10:51:06.234] {main} at com.caucho.server.host.Host.start(Host.java:437)
[10:51:06.234] {main} at com.caucho.server.deploy.DeployController.startImpl(DeployController.java:667)
[10:51:06.234] {main} at com.caucho.server.deploy.StartAutoRedeployAutoStrategy.startOnInit(StartAutoRedeployAutoStrategy.java:72)
[10:51:06.234] {main} at com.caucho.server.deploy.DeployController.startOnInit(DeployController.java:549)
[10:51:06.234] {main} at com.caucho.server.deploy.DeployContainer.start(DeployContainer.java:160)
[10:51:06.234] {main} at com.caucho.server.host.HostContainer.start(HostContainer.java:484)
[10:51:06.234] {main} at com.caucho.server.cluster.Server.start(Server.java:1217)
[10:51:06.234] {main} at com.caucho.server.cluster.Cluster.startServer(Cluster.java:710)
[10:51:06.234] {main} at com.caucho.server.cluster.ClusterServer.startServer(ClusterServer.java:528)
[10:51:06.234] {main} at com.caucho.server.resin.Resin.start(Resin.java:695)
[10:51:06.234] {main} at com.caucho.server.resin.Resin.initMain(Resin.java:1139)
[10:51:06.234] {main} at com.caucho.server.resin.Resin.main(Resin.java:1341)
[10:51:06.234] {main}
[10:51:06.234] {main} FINEST com.caucho.server.deploy.DeployController (toFail) EarDeployController[ttjan2004] error
[10:51:06.234] {main} FINEST com.caucho.server.deploy.DeployController (lifecycleEvent) EarAdmin[resin:type=EApp,Host=default,name=ttjan2004] lifecycleEvent `failed'


So it must be related to the ear-default and ejb-server in default resin.conf:

      <!-- creates the deploy directory for .ear expansion -->
      <ear-deploy path="deploy">
        <ear-default>
          <ejb-server>
            <config-directory>WEB-INF</config-directory>
            <data-source>jdbc/test</data-source>
          </ejb-server>
        </ear-default>
      </ear-deploy>
      
      
after changing it to this:

      <!-- creates the deploy directory for .ear expansion -->
      <ear-deploy path="deploy">
        <ear-default>
        </ear-default>
      </ear-deploy>


it was working fine and the contained WAR was expanded and the webapp started as well.

[10:54:04.984] {main} FINEST com.caucho.server.deploy.DeployController (toInitializing) EarDeployController[ttjan2004] initializing
[10:54:04.984] {main} FINEST com.caucho.server.deploy.DeployController (lifecycleEvent) EarAdmin[resin:type=EApp,Host=default,name=ttjan2004] lifecycleEvent `initializing'
[10:54:04.984] {main} FINER com.caucho.jmx.MBeanContext (registerMBean) EAppMXBean[resin:type=EApp,Host=default,name=ttjan2004] registered in MBeanContext[EnvironmentClassLoader[host:http://localhost:8080]] [^]
[10:54:04.984] {main} FINEST com.caucho.jmx.MBeanContext (addMBean) EAppMXBean[resin:type=EApp,Host=default,name=ttjan2004] registered in MBeanContext[EnvironmentClassLoader[host:http://localhost:8080]] [^]
[10:54:04.984] {main} FINEST com.caucho.jmx.MBeanContext (addMBean) EAppMXBean[resin:type=EApp,Host=default,name=ttjan2004] registered in MBeanContext[SystemClassLoader[]]
[10:54:05.000] {main} FINEST com.caucho.server.deploy.DeployController (toInit) EarDeployController[ttjan2004] initialized
[10:54:05.000] {main} FINEST com.caucho.server.deploy.DeployController (lifecycleEvent) EarAdmin[resin:type=EApp,Host=default,name=ttjan2004] lifecycleEvent `init'
[10:54:05.000] {main} FINE com.caucho.server.deploy.DeployController (toStarting) EarDeployController[ttjan2004] starting
[10:54:05.000] {main} FINEST com.caucho.server.deploy.DeployController (lifecycleEvent) EarAdmin[resin:type=EApp,Host=default,name=ttjan2004] lifecycleEvent `starting'
[10:54:05.000] {main} INFO com.caucho.server.deploy.DeployController (expandArchiveImpl) expanding /C:/Downloads/resin-pro-3.1.5/deploy/ttjan2004.ear to /C:/Downloads/resin-pro-3.1.5/deploy/_ear_ttjan2004
[10:54:05.000] {main} FINEST com.caucho.db.store.Block (allocate) ReadBlock[Table[log_name_:2],2] allocate
[10:54:05.000] {main} FINEST com.caucho.db.store.Lock (lockRead) Lock[block:log_name_:131074] lockRead (read:0 write:false try-write:0)
[10:54:05.000] {main} FINEST com.caucho.db.store.Lock (unlockRead) Lock[block:log_name_:131074] unlockRead (read:0 write:false try-write:0)
[10:54:05.000] {main} FINEST com.caucho.db.store.Block (free) ReadBlock[Table[log_name_:2],2] free
[10:54:05.015] {main} FINEST com.caucho.db.table.Table (insert) db table log_ insert row xa:com.caucho.db.store.Transaction@18ed77a
[10:54:05.015] {main} FINEST com.caucho.db.store.Block (allocate) ReadBlock[Table[log_:1],2] allocate
[10:54:05.015] {main} FINEST com.caucho.db.store.Lock (lockReadAndWriteNoWait) Lock[block:log_:131073] lockReadAndWriteNoWait (read:0 write:false try-write:0)
[10:54:05.015] {main} FINEST com.caucho.db.store.Lock (unlockReadAndWrite) Lock[block:log_:131073] unlockReadAndWrite (read:0 write:false try-write:0)
[10:54:05.015] {main} FINEST com.caucho.db.store.Block (write) write db-block ReadBlock[Table[log_:1],2] [39038, 39187]
[10:54:05.015] {main} FINEST com.caucho.db.store.Block (free) ReadBlock[Table[log_:1],2] free
[10:54:05.015] {main} FINEST com.caucho.db.store.Block (free) ReadBlock[Table[log_:1],2] free
[10:54:05.031] {main} FINE com.caucho.server.deploy.EnvironmentDeployController (configureInstance) EnterpriseApplication[ttjan2004] initializing
[10:54:05.031] {main} FINE com.caucho.server.deploy.EnvironmentDeployController (configureInstanceVariables) EnterpriseApplication[ttjan2004] root-directory=/C:/Downloads/resin-pro-3.1.5/deploy/_ear_ttjan2004
[10:54:05.031] {main} FINEST com.caucho.jmx.MBeanContext (addMBean) MBeanServerDelegateMBean[JMImplementation:type=MBeanServerDelegate] registered in MBeanContext[EnvironmentClassLoader[eapp:ttjan2004]]
[10:54:05.031] {main} FINEST com.caucho.jmx.MBeanContext (addMBean) MBeanServerDelegateMBean[JMImplementation:type=MBeanServerDelegate] registered in MBeanContext[SystemClassLoader[]]
[10:54:05.046] {main} CONFIG com.caucho.config.core.ResinImport (init) resin:import 'C:\Downloads\resin-pro-3.1.5\deploy\_ear_ttjan2004\META-INF\application.xml'
[10:54:05.046] {main} FINER com.caucho.config.core.ResinImport (init) resin:import '/C:/Downloads/resin-pro-3.1.5/deploy/_ear_ttjan2004/META-INF/resin-application.xml' is not readable.
[10:54:05.046] {main} FINER com.caucho.server.e_app.EnterpriseApplication (toInit) EnterpriseApplication[ttjan2004] initialized
[10:54:05.046] {main} FINEST com.caucho.server.cluster.Server (clearCache) ServletServer clearCache
[10:54:05.046] {main} FINE com.caucho.server.e_app.EnterpriseApplication (toStarting) EnterpriseApplication[ttjan2004] starting
[10:54:05.046] {main} FINEST com.caucho.server.webapp.WebAppController (toInitializing) WebAppController$21209219[/ttjan2004] initializing
[10:54:05.046] {main} FINEST com.caucho.server.webapp.WebAppController (lifecycleEvent) WebAppAdmin[resin:type=WebApp,Host=default,name=/ttjan2004] lifecycleEvent `initializing'
[10:54:05.062] {main} FINER com.caucho.jmx.MBeanContext (registerMBean) WebAppMXBean[resin:type=WebApp,Host=default,name=/ttjan2004] registered in MBeanContext[EnvironmentClassLoader[eapp:ttjan2004]]
[10:54:05.062] {main} FINEST com.caucho.jmx.MBeanContext (addMBean) WebAppMXBean[resin:type=WebApp,Host=default,name=/ttjan2004] registered in MBeanContext[EnvironmentClassLoader[eapp:ttjan2004]]
[10:54:05.062] {main} FINEST com.caucho.jmx.MBeanContext (addMBean) WebAppMXBean[resin:type=WebApp,Host=default,name=/ttjan2004] registered in MBeanContext[SystemClassLoader[]]
[10:54:05.062] {main} FINEST com.caucho.server.webapp.WebAppController (toInit) WebAppController$21209219[/ttjan2004] initialized
[10:54:05.062] {main} FINEST com.caucho.server.webapp.WebAppController (lifecycleEvent) WebAppAdmin[resin:type=WebApp,Host=default,name=/ttjan2004] lifecycleEvent `init'
[10:54:05.078] {main} FINE com.caucho.server.webapp.WebAppController (toStarting) WebAppController$21209219[/ttjan2004] starting
[10:54:05.078] {main} FINEST com.caucho.server.webapp.WebAppController (lifecycleEvent) WebAppAdmin[resin:type=WebApp,Host=default,name=/ttjan2004] lifecycleEvent `starting'
[10:54:05.078] {main} INFO com.caucho.server.webapp.WebAppController (expandArchiveImpl) expanding /C:/Downloads/resin-pro-3.1.5/deploy/_ear_ttjan2004/jan2004.war to /C:/Downloads/resin-pro-3.1.5/deploy/_ear_ttjan2004/webapps/jan2004



So it was a little bit tricky to figure that out. I think it would be better, if you log such a failure at a logging level of at least Warning or Error so that it's visible why an Enterprise Application isn't started ...

And maybe the default resin.conf should comment the default <ejb-server> tag, so that simple .ear are started by default.

Additional Information Resin-Professional 3.1.5
Windows XP Professional
Java 1.6.0_02-b06
Attached Files

- Relationships

There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
03-01-08 02:16 stbu New Issue
03-01-08 02:18 stbu Issue Monitored: stbu
03-25-08 15:29 ferg Assigned To  => ferg
03-25-08 15:29 ferg Status new => closed
03-25-08 15:29 ferg Resolution open => fixed
03-25-08 15:29 ferg Fixed in Version  => 3.1.6


Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
28 total queries executed.
25 unique queries executed.
Powered by Mantis Bugtracker