[Installation, Configuration & DEPLOYMENT] - JBoss5 startup takes > 10 min.
by Annegret
Hi,
I'm deploying a war file into JBoss5.0.0Beta3 that contains an amount of libraries in WEB-INF/lib inside.
Now JBoss needs up to 14 MINUTES for startup, in the logfile I can see that the time is taken in the class AnnotatedClassFilter:
| [main] 2008-01-24 14:25:54,189 DEBUG [org.jboss.deployment.AnnotatedClassFilter] Incomplete class: org.springframework.instrument.classloading.oc4j.OC4JClassPreprocessorAdapter, NCDFE: java.lang.NoClassDefFoundError: oracle/classloader/util/ClassPreprocessor
| [main] 2008-01-24 14:26:12,613 DEBUG [org.jboss.deployment.AnnotatedClassFilter] Incomplete class: org.springframework.orm.ibatis.support.AbstractLobTypeHandler, NCDFE: java.lang.NoClassDefFoundError: com/ibatis/sqlmap/engine/type/BaseTypeHandler
| [main] 2008-01-24 14:26:12,644 DEBUG [org.jboss.deployment.AnnotatedClassFilter] Incomplete class: org.springframework.orm.ibatis.support.BlobByteArrayTypeHandler, NCDFE: java.lang.NoClassDefFoundError: com/ibatis/sqlmap/engine/type/BaseTypeHandler
| ...
| [main] 2008-01-24 14:26:46,574 DEBUG [org.jboss.deployment.AnnotatedClassFilter] Incomplete class: org.apache.activeio.journal.howl.HowlJournal$1, NCDFE: java.lang.NoClassDefFoundError: org/objectweb/howl/log/LogEventListener
| [main] 2008-01-24 14:26:47,698 DEBUG [org.jboss.deployment.AnnotatedClassFilter] Incomplete class: org.apache.activeio.xnet.StandardServiceStackGBean, NCDFE: java.lang.NoClassDefFoundError: org/apache/geronimo/gbean/GBeanLifecycle
| ...
| [main] 2008-01-24 14:35:17,294 DEBUG [org.jboss.deployment.AnnotatedClassFilter] Incomplete class: com.ctc.wstx.msv.RelaxNGSchemaFactory$MyGrammarController, NCDFE: java.lang.NoClassDefFoundError: com/sun/msv/reader/util/IgnoreController
| [main] 2008-01-24 14:36:03,424 DEBUG [org.jboss.deployment.AnnotatedClassFilter] Incomplete class: org.apache.xmlbeans.impl.tool.XMLBean, NCDFE: java.lang.NoClassDefFoundError: org/apache/tools/ant/taskdefs/MatchingTask
| ...
| ...
| [main] 2008-01-24 14:38:44,277 INFO [org.jboss.bootstrap.microcontainer.ServerImpl] JBoss (Microcontainer) [5.0.0.Beta3 (build: SVNTag=JBoss_5_0_0_Beta3 date=200712210026)] Started in 14m:32s:628ms
|
|
Look at the timestamps: 14:25 upt to 14:36, more than 10 minutes only for class annotation filtering. I've found the sourcecode of this message and could see that nothing happens, the NoClassDefFoundError is ignored.
JBoss 4.2 containing the same war file needs just 4m:54s:225ms
| 2008-01-22 13:17:29,171 INFO [org.jboss.system.server.Server] JBoss (MX MicroKernel) [4.2.2.GA (build: SVNTag=JBoss_4_2_2_GA date=200710221139)] Started in 4m:54s:225ms
|
How can I circumvent this and speed up jboss5 startup ?
14 minutes complete startup time is not usable.
Annegret
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4123048#4123048
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4123048
18 years, 5 months
[JBossCache] - Re: Config Question
by lovelyliatroim
Ok tried the Dummy Transaction manager and same story, its in the memory of the cache but not in the DB.
Log is as follows
| 2008-01-24 15:59:05,586 INFO [STDOUT] 2008-01-24 15:59:05,586 DEBUG [at.sit.cdms.web.actions.ActionFactory] - Looking for bean addItem
|
| 2008-01-24 15:59:05,586 DEBUG [at.sit.cdms.web.actions.ActionFactory] Looking for bean addItem
|
| 2008-01-24 15:59:05,586 DEBUG [org.springframework.beans.factory.support.DefaultListableBeanFactory] Returning cached instance of singleton bean 'addItem'
|
| 2008-01-24 15:59:05,586 DEBUG [org.jboss.cache.interceptors.TxInterceptor] local transaction exists - registering global tx if not present for Thread[http-127.0.0.1-8080-1,5,jboss]
|
| 2008-01-24 15:59:05,586 DEBUG [org.jboss.cache.transaction.DummyTransaction] registering synchronization handler tx=org.jboss.cache.transaction.DummyTransaction@8634933, handlers=[]
|
| 2008-01-24 15:59:05,586 DEBUG [org.jboss.cache.loader.JDBCCacheLoader] executing sql: select node from jbosscache where fqn=? (/quotes/2)
|
| 2008-01-24 15:59:05,586 DEBUG [org.jboss.cache.transaction.DummyTransaction] processing beforeCompletion for tx=org.jboss.cache.transaction.DummyTransaction@8634933, handlers=[TxInterceptor.LocalSynchronizationHandler(gtx=GlobalTransaction:<null>:2, tx=org.jboss.cache.transaction.DummyTransaction@8634933)]
|
| 2008-01-24 15:59:05,586 DEBUG [org.jboss.cache.transaction.DummyTransaction] processing afterCompletion for tx=org.jboss.cache.transaction.DummyTransaction@8634933, handlers=[TxInterceptor.LocalSynchronizationHandler(gtx=GlobalTransaction:<null>:2, tx=org.jboss.cache.transaction.DummyTransaction@8634933)]
|
| 2008-01-24 15:59:05,586 DEBUG [org.jboss.cache.interceptors.TxInterceptor] Running commit phase. One phase? false
|
| 2008-01-24 15:59:05,586 DEBUG [org.jboss.cache.interceptors.OptimisticValidatorInterceptor] Commiting successfully validated changes for GlobalTransaction GlobalTransaction:<null>:2
|
| 2008-01-24 15:59:05,586 DEBUG [org.jboss.cache.interceptors.TxInterceptor] Finished local commit/rollback method for GlobalTransaction:<null>:2
|
| 2008-01-24 15:59:05,586 DEBUG [org.jboss.cache.interceptors.TxInterceptor] Finished commit phase
|
| 2008-01-24 15:59:05,586 INFO [STDOUT] 2008-01-24 15:59:05,586 DEBUG [at.sit.cdms.web.actions.test.AddItem] - Added item with index of 2
|
| 2008-01-24 15:59:05,586 DEBUG [at.sit.cdms.web.actions.test.AddItem] Added item with index of 2
|
| 2008-01-24 15:59:06,477 INFO [STDOUT] 2008-01-24 15:59:06,477 DEBUG [at.sit.cdms.web.actions.ActionFactory] - Looking for bean addItem
|
| 2008-01-24 15:59:06,477 DEBUG [at.sit.cdms.web.actions.ActionFactory] Looking for bean addItem
|
| 2008-01-24 15:59:06,477 DEBUG [org.springframework.beans.factory.support.DefaultListableBeanFactory] Returning cached instance of singleton bean 'addItem'
|
| 2008-01-24 15:59:06,477 DEBUG [org.jboss.cache.interceptors.TxInterceptor] local transaction exists - registering global tx if not present for Thread[http-127.0.0.1-8080-1,5,jboss]
|
| 2008-01-24 15:59:06,477 DEBUG [org.jboss.cache.transaction.DummyTransaction] registering synchronization handler tx=org.jboss.cache.transaction.DummyTransaction@32573099, handlers=[]
|
| 2008-01-24 15:59:06,477 DEBUG [org.jboss.cache.loader.JDBCCacheLoader] executing sql: select node from jbosscache where fqn=? (/quotes/3)
|
| 2008-01-24 15:59:06,493 DEBUG [org.jboss.cache.transaction.DummyTransaction] processing beforeCompletion for tx=org.jboss.cache.transaction.DummyTransaction@32573099, handlers=[TxInterceptor.LocalSynchronizationHandler(gtx=GlobalTransaction:<null>:3, tx=org.jboss.cache.transaction.DummyTransaction@32573099)]
|
| 2008-01-24 15:59:06,493 DEBUG [org.jboss.cache.transaction.DummyTransaction] processing afterCompletion for tx=org.jboss.cache.transaction.DummyTransaction@32573099, handlers=[TxInterceptor.LocalSynchronizationHandler(gtx=GlobalTransaction:<null>:3, tx=org.jboss.cache.transaction.DummyTransaction@32573099)]
|
| 2008-01-24 15:59:06,493 DEBUG [org.jboss.cache.interceptors.TxInterceptor] Running commit phase. One phase? false
|
| 2008-01-24 15:59:06,493 DEBUG [org.jboss.cache.interceptors.OptimisticValidatorInterceptor] Commiting successfully validated changes for GlobalTransaction GlobalTransaction:<null>:3
|
| 2008-01-24 15:59:06,493 DEBUG [org.jboss.cache.interceptors.TxInterceptor] Finished local commit/rollback method for GlobalTransaction:<null>:3
|
| 2008-01-24 15:59:06,493 DEBUG [org.jboss.cache.interceptors.TxInterceptor] Finished commit phase
|
| 2008-01-24 15:59:06,493 INFO [STDOUT] 2008-01-24 15:59:06,493 DEBUG [at.sit.cdms.web.actions.test.AddItem] - Added item with index of 3
|
| 2008-01-24 15:59:06,493 DEBUG [at.sit.cdms.web.actions.test.AddItem] Added item with index of 3
|
| 2008-01-24 15:59:21,930 DEBUG [org.jboss.cache.interceptors.TxInterceptor] local transaction exists - registering global tx if not present for Thread[EvictionTimer-0,5,jboss]
|
| 2008-01-24 15:59:21,930 DEBUG [org.jboss.cache.transaction.DummyTransaction] registering synchronization handler tx=org.jboss.cache.transaction.DummyTransaction@16702321, handlers=[]
|
| 2008-01-24 15:59:21,930 DEBUG [org.jboss.cache.transaction.DummyTransaction] processing beforeCompletion for tx=org.jboss.cache.transaction.DummyTransaction@16702321, handlers=[TxInterceptor.LocalSynchronizationHandler(gtx=GlobalTransaction:<null>:4, tx=org.jboss.cache.transaction.DummyTransaction@16702321)]
|
| 2008-01-24 15:59:21,930 DEBUG [org.jboss.cache.transaction.DummyTransaction] processing afterCompletion for tx=org.jboss.cache.transaction.DummyTransaction@16702321, handlers=[TxInterceptor.LocalSynchronizationHandler(gtx=GlobalTransaction:<null>:4, tx=org.jboss.cache.transaction.DummyTransaction@16702321)]
|
| 2008-01-24 15:59:21,930 DEBUG [org.jboss.cache.interceptors.TxInterceptor] Running commit phase. One phase? false
|
| 2008-01-24 15:59:21,930 DEBUG [org.jboss.cache.interceptors.OptimisticValidatorInterceptor] Commiting successfully validated changes for GlobalTransaction GlobalTransaction:<null>:4
|
| 2008-01-24 15:59:21,930 DEBUG [org.jboss.cache.interceptors.TxInterceptor] Finished local commit/rollback method for GlobalTransaction:<null>:4
|
| 2008-01-24 15:59:21,930 DEBUG [org.jboss.cache.interceptors.TxInterceptor] Finished commit phase
|
| 2008-01-24 15:59:21,930 DEBUG [org.jboss.cache.interceptors.TxInterceptor] local transaction exists - registering global tx if not present for Thread[EvictionTimer-0,5,jboss]
|
| 2008-01-24 15:59:21,930 DEBUG [org.jboss.cache.transaction.DummyTransaction] registering synchronization handler tx=org.jboss.cache.transaction.DummyTransaction@33097577, handlers=[]
|
| 2008-01-24 15:59:21,930 DEBUG [org.jboss.cache.transaction.DummyTransaction] processing beforeCompletion for tx=org.jboss.cache.transaction.DummyTransaction@33097577, handlers=[TxInterceptor.LocalSynchronizationHandler(gtx=GlobalTransaction:<null>:5, tx=org.jboss.cache.transaction.DummyTransaction@33097577)]
|
| 2008-01-24 15:59:21,930 DEBUG [org.jboss.cache.transaction.DummyTransaction] processing afterCompletion for tx=org.jboss.cache.transaction.DummyTransaction@33097577, handlers=[TxInterceptor.LocalSynchronizationHandler(gtx=GlobalTransaction:<null>:5, tx=org.jboss.cache.transaction.DummyTransaction@33097577)]
|
| 2008-01-24 15:59:21,930 DEBUG [org.jboss.cache.interceptors.TxInterceptor] Running commit phase. One phase? false
|
| 2008-01-24 15:59:21,930 DEBUG [org.jboss.cache.interceptors.OptimisticValidatorInterceptor] Commiting successfully validated changes for GlobalTransaction GlobalTransaction:<null>:5
|
| 2008-01-24 15:59:21,930 DEBUG [org.jboss.cache.interceptors.TxInterceptor] Finished local commit/rollback method for GlobalTransaction:<null>:5
|
| 2008-01-24 15:59:21,930 DEBUG [org.jboss.cache.interceptors.TxInterceptor] Finished commit phase
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4123047#4123047
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4123047
18 years, 5 months
[Installation, Configuration & DEPLOYMENT] - Configuration JNDI
by benjiii
I try to get an application running under JBoss 4.2.2.
Currently I have problems to configure the web.xml and the jboss-web.xml correctly - I always get the error
DataAccessFacade found in jboss-web.xml but not in web.xml
Here the web.xml
<ejb-local-ref>
| <description>
| </description>
| <ejb-ref-name>ejb/DataAccessFacade</ejb-ref-name>
| <ejb-ref-type>Session</ejb-ref-type>
| <local-home>com.wag.debeos.DataAccessFacadeLocalHome</local-home>
| <local>com.wag.debeos.DataAccessFacadeLocal</local>
| <ejb-link>Appl.jar#DataAccessFacade</ejb-link>
| </ejb-local-ref>
and the jboss-web.xml
<jboss-web>
| <ejb-ref>
| <ejb-ref-name>ejb/DataAccessFacade</ejb-ref-name>
| <jndi-name>ejb/DataAccessFacadeLocalHome</jndi-name>
| </ejb-ref>
| </jboss-web>
|
Looks so simple, but I don't know what's wrong. Any JNDI-specialists here that could help me?
Thanks!
Benjiii
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4123042#4123042
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4123042
18 years, 5 months
[JBossWS] - org.jboss.cache.lock.TimeoutException: failure acquiring loc
by anatk
Hi
I am using pojo cache. When I try to write to the data base I get a exception. It happens while there is no one else writing or reading to the cache and it happens consistently only on 64b machines. When I do it on 32b machine it never happens.
The exception is as follows:
2008-01-23 17:32:57,560 ERROR [com.bevents.engine.engineserver.server.EngineServerImpl] org.jboss.cache.lock.TimeoutException: failure acquiring lock: fqn=/EVENTS/20/d1-0;d2-0;d3-0;d4-0;d5-1;d7-2;d10-0;d11-3;d12-2;d13-1, caller=Thread[RMI TCP Connection(37)-192.168.10.201,5,RMI Runtime], lock=write owner=GlobalTransaction::81 (org.jboss.cache.lock.LockStrategyReadCommitted@4d402172)
org.jboss.cache.lock.TimeoutException: failure acquiring lock: fqn=/EVENTS/20/d1-0;d2-0;d3-0;d4-0;d5-1;d7-2;d10-0;d11-3;d12-2;d13-1, caller=Thread[RMI TCP Connection(37)-192.168.10.201,5,RMI Runtime], lock=write owner=GlobalTransaction::81 (org.jboss.cache.lock.LockStrategyReadCommitted@4d402172)
at org.jboss.cache.lock.IdentityLock.acquire(IdentityLock.java:528)
at org.jboss.cache.interceptors.PessimisticLockInterceptor$LockManager.acquire(PessimisticLockInterceptor.java:579)
at org.jboss.cache.interceptors.PessimisticLockInterceptor.acquireNodeLock(PessimisticLockInterceptor.java:393)
at org.jboss.cache.interceptors.PessimisticLockInterceptor.lock(PessimisticLockInterceptor.java:329)
at org.jboss.cache.interceptors.PessimisticLockInterceptor.invoke(PessimisticLockInterceptor.java:187)
at org.jboss.cache.interceptors.Interceptor.invoke(Interceptor.java:76)
at org.jboss.cache.interceptors.NotificationInterceptor.invoke(NotificationInterceptor.java:32)
at org.jboss.cache.interceptors.Interceptor.invoke(Interceptor.java:76)
at org.jboss.cache.interceptors.TxInterceptor.handleNonTxMethod(TxInterceptor.java:298)
at org.jboss.cache.interceptors.TxInterceptor.invoke(TxInterceptor.java:131)
at org.jboss.cache.interceptors.Interceptor.invoke(Interceptor.java:76)
at org.jboss.cache.interceptors.CacheMgmtInterceptor.invoke(CacheMgmtInterceptor.java:81)
at org.jboss.cache.interceptors.Interceptor.invoke(Interceptor.java:76)
at org.jboss.cache.interceptors.InvocationContextInterceptor.invoke(InvocationContextInterceptor.java:62)
at org.jboss.cache.CacheImpl.invokeMethod(CacheImpl.java:3939)
at org.jboss.cache.CacheImpl.get(CacheImpl.java:1441)
at org.jboss.cache.CacheImpl.get(CacheImpl.java:1415)
Does anyone have any idea what can be the cause for this excpetion?
hanks in advance,
Anat
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4123040#4123040
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4123040
18 years, 5 months