[Messaging, JMS & JBossMQ] - Re: Problem with ClassNotFoundException while trying to add
by blipsman
jaikiran,
thanks a lot man for the help! I really appreciate it.
it does work if I use Logger from log4j ( as you have suggested !! ).
but if I used wrapper around Logger, it did not work.
Really strange, but anyway, thanks a lot for your help!!
I am struggling with last problem regarding SMTPAppender.
This is the code I am trying to run directlly inside my init method.
| Handler eHandler = new Handler("test");
| SMTPAppender smtpAppender = new SMTPAppender();
|
| smtpAppender.setLayout(new SimpleLayout());
| smtpAppender.setThreshold(ExtraLevel.toExtraLevel(props.getProperty(EMAIL_THRESHOLD)));
| smtpAppender.setSMTPHost(props.getProperty(SMTP_SERVER));
| smtpAppender.setTo(props.getProperty(EMAIL_RECIPIENT));
| smtpAppender.setFrom(props.getProperty(EMAIL_FROM));
| smtpAppender.setSubject(props.getProperty(EMAIL_SUBJECT));
| smtpAppender.activateOptions();
| eHandler.addAppender(smtpAppender);
| handlers.add(eHandler);
|
|
Unfortunatelly, I get the error
| java.lang.NoClassDefFoundError: javax/mail/internet/AddressException
|
when I try to execute the line
| SMTPAppender smtpAppender = new SMTPAppender();
|
I put into the JBOSS_HOME/server/default/lib 2 jars
mail.jar and activation.jar, but I still get this error.
Any idea ...?
Really strange, if I try to execute the same code outside of jboss all works just fine.
Cheers jaikiran, and thanks again for sharing experience!!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3957938#3957938
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3957938
19 years, 9 months
[Installation, Configuration & Deployment] - Deploying with JBoss rules
by mauhawk
I am trying to deploy an EAR which contains two WARs and some utility JARs containing drools specific classes. These utility jars are included in the classpath for the WARs through the manifest file. However, during execution, the server throws an error saying : java.lang.NoSuchMethodError: org.eclipse.jdt.internal.compiler.CompilationResult.getProblems().
The funny thing is that this error does not arise when the utility jars containing drools are placed within the WEB-INF/lib folder of the WARs.
Another way to avoid the error is to add -Ddrools.compiler=JANINO as a command line switch for JBoss server.
Though I have a way of making my application work, I just wanted to know the reason behind this peculiar behavior. I do realize that this may be occuring due to mismatch in the JDT compiler that JBoss and Drools. I just want to be sure.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3957937#3957937
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3957937
19 years, 9 months
[JBossCache] - Re: Problem using FileCacheLoader
by bruce_zhang
genman:
Thank you for the information.
Below is the log I got when the cache start up, it seems found all the objects under the node "/loanet" but not loaded in memory:
main org.jboss.cache.PropertyConfigurator - Found existing property editor for org.w3c.dom.Element: org.jboss.util.propertyeditor.ElementEditor@21f46a
| main org.jboss.cache.PropertyConfigurator - attribute size: 10
| main org.jboss.cache.PropertyConfigurator - setting attribute TransactionManagerLookupClass to org.jboss.cache.DummyTransactionManagerLookup
| main org.jboss.cache.PropertyConfigurator - setting attribute NodeLockingScheme to OPTIMISTIC
| main org.jboss.cache.PropertyConfigurator - setting attribute IsolationLevel to REPEATABLE_READ
| main org.jboss.cache.PropertyConfigurator - setting attribute CacheMode to LOCAL
| main org.jboss.cache.PropertyConfigurator - setting attribute ClusterName to TreeCache-Cluster
| main org.jboss.cache.PropertyConfigurator - Invoking setter method: public void org.jboss.cache.TreeCache.setClusterConfig(org.w3c.dom.Element) with parameter "[config: null]" of type class weblogic.apache.xerces.dom.DeferredElementImpl
| main org.jboss.cache.TreeCache - setting cluster properties from xml to: UDP(ip_mcast=true;ip_ttl=64;loopback=false;mcast_addr=228.1.2.3;mcast_port=45566;mcast_recv_buf_size=80000;mcast_send_buf_size=150000;ucast_recv_buf_size=80000;ucast_send_buf_size=150000):PING(down_thread=false;num_initial_members=3;timeout=2000;up_thread=false):MERGE2(max_interval=20000;min_interval=10000):FD(down_thread=true;shun=true;up_thread=true):VERIFY_SUSPECT(down_thread=false;timeout=1500;up_thread=false):pbcast.NAKACK(down_thread=false;gc_lag=50;max_xmit_size=8192;retransmit_timeout=600,1200,2400,4800;up_thread=false):UNICAST(down_thread=false;min_threshold=10;timeout=600,1200,2400;window_size=100):pbcast.STABLE(desired_avg_gossip=20000;down_thread=false;up_thread=false):FRAG(down_thread=false;frag_size=8192;up_thread=false):pbcast.GMS(join_retry_timeout=2000;join_timeout=5000;print_local_addr=true;shun=true):pbcast.STATE_TRANSFER(down_thread=false;up_thread=false)
| main org.jboss.cache.PropertyConfigurator - Invoking setter method: public void org.jboss.cache.TreeCache.setSyncReplTimeout(long) with parameter "10000" of type class java.lang.Long
| main org.jboss.cache.PropertyConfigurator - Invoking setter method: public void org.jboss.cache.TreeCache.setLockAcquisitionTimeout(long) with parameter "15000" of type class java.lang.Long
| main org.jboss.cache.PropertyConfigurator - getSubElementObject(): element object. Does not exist for config
| main org.jboss.cache.PropertyConfigurator - setting attribute EvictionPolicyClass to
| main org.jboss.cache.PropertyConfigurator - Invoking setter method: public void org.jboss.cache.TreeCache.setCacheLoaderConfiguration(org.w3c.dom.Element) with parameter "[config: null]" of type class weblogic.apache.xerces.dom.DeferredElementImpl
| main org.jboss.cache.transaction.DummyTransactionManager - binding of DummyTransactionManager failed
| javax.naming.OperationNotSupportedException: bind not allowed in a ReadOnlyContext; remaining name '/TransactionManager'
| at weblogic.jndi.factories.java.ReadOnlyContextWrapper.newOperationNotSupportedException(ReadOnlyContextWrapper.java:145)
| at weblogic.jndi.factories.java.ReadOnlyContextWrapper.newOperationNotSupportedException(ReadOnlyContextWrapper.java:161)
| at weblogic.jndi.factories.java.ReadOnlyContextWrapper.bind(ReadOnlyContextWrapper.java:57)
| at weblogic.jndi.internal.AbstractURLContext.bind(AbstractURLContext.java:45)
| at javax.naming.InitialContext.bind(InitialContext.java:355)
| at org.jboss.cache.transaction.DummyTransactionManager.getInstance(DummyTransactionManager.java:33)
| at org.jboss.cache.DummyTransactionManagerLookup.getTransactionManager(DummyTransactionManagerLookup.java:17)
| at org.jboss.cache.TreeCache._createService(TreeCache.java:1311)
| at org.jboss.cache.TreeCache.createService(TreeCache.java:1297)
| at com.citigroup.posmgmt.biz.JBossCacheImpl.startService(JBossCacheImpl.java:54)
| at com.citigroup.posmgmt.biz.JBossCacheImpl.startup(JBossCacheImpl.java:91)
| at weblogic.t3.srvr.StartupClassService.invokeStartup(StartupClassService.java:177)
| at weblogic.t3.srvr.StartupClassService.invokeClass(StartupClassService.java:158)
| at weblogic.t3.srvr.StartupClassService.access$000(StartupClassService.java:36)
| at weblogic.t3.srvr.StartupClassService$1.run(StartupClassService.java:121)
| at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
| at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
| at weblogic.t3.srvr.StartupClassService.invokeStartupClass(StartupClassService.java:116)
| at weblogic.t3.srvr.PostDeploymentStartupService.resume(PostDeploymentStartupService.java:63)
| at weblogic.t3.srvr.SubsystemManager.resume(SubsystemManager.java:136)
| at weblogic.t3.srvr.T3Srvr.resume(T3Srvr.java:965)
| at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:360)
| at weblogic.Server.main(Server.java:32)
| main org.jboss.cache.loader.AsyncCacheLoader - setConfig {location=/tmp/cacheStore}
| main org.jboss.cache.loader.jdbm.JdbmCacheLoader - Configuring cache loader with location = /tmp/cacheStore
| main org.jboss.cache.TreeCache - Not using an EvictionPolicy
| main org.jboss.cache.factories.InterceptorChainFactory - interceptor chain is:
| class org.jboss.cache.interceptors.CallInterceptor
| class org.jboss.cache.interceptors.OptimisticNodeInterceptor
| class org.jboss.cache.interceptors.OptimisticCreateIfNotExistsInterceptor
| class org.jboss.cache.interceptors.OptimisticValidatorInterceptor
| class org.jboss.cache.interceptors.OptimisticLockingInterceptor
| class org.jboss.cache.interceptors.CacheStoreInterceptor
| class org.jboss.cache.interceptors.CacheLoaderInterceptor
| class org.jboss.cache.interceptors.TxInterceptor
| class org.jboss.cache.interceptors.CacheMgmtInterceptor
| main org.jboss.cache.TreeCache - cache mode is local, will not create the channel
| main org.jboss.cache.loader.AsyncCacheLoader - Async cache loader starting: org.jboss.cache.loader.AsyncExtendedCacheLoader@5e25f3 delegate=[JdbmCacheLoader locationStr=/tmp/cacheStore size=-1] processor=null stopped=true batchSize=100 pollWait=100 returnOld=true asyncPut=true queue.capacity()=10000 queue.peek()=null
| main org.jboss.cache.loader.jdbm.JdbmCacheLoader - Starting JdbmCacheLoader instance.
| main org.jboss.cache.loader.jdbm.JdbmCacheLoader - JdbmCacheLoader located as 131100
| main org.jboss.cache.loader.jdbm.JdbmCacheLoader - JDBM database /tmp/cacheStore/TreeCache-Cluster opened with 11134 entries
| AsyncCacheLoader-1 org.jboss.cache.loader.AsyncCacheLoader - run0
| main org.jboss.cache.loader.CacheLoaderManager - preloading transient state from cache loader org.jboss.cache.loader.AsyncExtendedCacheLoader@5e25f3 delegate=[JdbmCacheLoader locationStr=/tmp/cacheStore size=11134] processor=TQ t=Thread[AsyncCacheLoader-1,5,main] stopped=false batchSize=100 pollWait=100 returnOld=true asyncPut=true queue.capacity()=10000 queue.peek()=null
| main org.jboss.cache.loader.CacheLoaderManager - preloading /loanet
| main org.jboss.cache.interceptors.TxInterceptor - (null) call on method [_get(/loanet, bla, true)]
| main org.jboss.cache.interceptors.TxInterceptor - Creating transaction for thread Thread[main,5,main]
| main org.jboss.cache.interceptors.TxInterceptor - local transaction exists - registering global tx if not present for Thread[main,5,main]
| main org.jboss.cache.interceptors.TxInterceptor - Associated gtx in txTable is null
| main org.jboss.cache.TreeCache - created new GTX: GlobalTransaction:<null>:1, local TX=org.jboss.cache.transaction.DummyTransaction@562791
| main org.jboss.cache.interceptors.TxInterceptor - Registering sync handler for tx org.jboss.cache.transaction.DummyTransaction@562791, gtx GlobalTransaction:<null>:1
| main org.jboss.cache.transaction.DummyTransaction - registering synchronization handler tx=org.jboss.cache.transaction.DummyTransaction@562791, handlers=[]
| main org.jboss.cache.interceptors.TxInterceptor - registering for TX completion: SynchronizationHandler(TxInterceptor.LocalSynchronizationHandler(gtx=GlobalTransaction:<null>:1, tx=org.jboss.cache.transaction.DummyTransaction@562791))
| main org.jboss.cache.interceptors.CacheLoaderInterceptor - invoke _get(/loanet, bla, true)
| main org.jboss.cache.interceptors.CacheLoaderInterceptor - load element /loanet mustLoad=true
| main org.jboss.cache.interceptors.CacheLoaderInterceptor - loadNode /loanet
| main org.jboss.cache.loader.jdbm.JdbmCacheLoader - get /loanet map={600001466=com.citigroup.posmgmt.vo.LoaNetActivityTbEx@4a1bda, 600003106=com.citigroup.posmgmt.vo.LoaNetActivityTbEx@16a93b8, 600007439=com.citigroup.posmgmt.vo.LoaNetActivityTbEx@838a2, 600010984=com.citigroup.posmgmt.vo.LoaNetActivityTbEx@1be40d5, 600007195=com.citigroup.posmgmt.vo.LoaNetActivityTbEx@19261de, 600006550=com.citigroup.posmgmt.vo.LoaNetActivityTbEx@157566d, 600003453=com.citigroup.posmgmt.vo.LoaNetActivityTbEx@eb203b, 600005005=com.citigroup.posmgmt.vo.LoaNetActivityTbEx@911fb5, 600006685=com.citigroup.posmgmt.vo.LoaNetActivityTbEx@1b8b5cd, 600006145=com.citigroup.posmgmt.vo.LoaNetActivityTbEx@1a7d9e7, 600004544=com.citigroup.posmgmt.vo.LoaNetActivityTbEx@d2ee5d, 600004711=com.citigroup.posmgmt.vo.LoaNetActivityTbEx@1f568f, 600002342=com.citigroup.posmgmt.vo.LoaNetActivityTbEx@16c02df, 600002640=com.citigroup.posmgmt.vo.LoaNetActivityTbEx@30803a, 600
| .......
| [-- More data info for the node --]
|
| main org.jboss.cache.interceptors.CacheLoaderInterceptor - nodeExists true
| main org.jboss.cache.Node - created child: fqn=/loanet
| main org.jboss.cache.interceptors.CacheStoreInterceptor - CacheStoreInterceptor called with meth _get(/loanet, bla, true)
| main org.jboss.cache.interceptors.CacheStoreInterceptor - transactional so don't put stuff in the cloader yet.
| main org.jboss.cache.transaction.DummyTransaction - processing beforeCompletion for tx=org.jboss.cache.transaction.DummyTransaction@562791, handlers=[TxInterceptor.LocalSynchronizationHandler(gtx=GlobalTransaction:<null>:1, tx=org.jboss.cache.transaction.DummyTransaction@562791)]
| main org.jboss.cache.interceptors.TxInterceptor - Running beforeCompletion on gtx GlobalTransaction:<null>:1
| main org.jboss.cache.interceptors.TxInterceptor - No modifications in this tx. Skipping beforeCompletion()
| main org.jboss.cache.transaction.DummyTransaction - processing afterCompletion for tx=org.jboss.cache.transaction.DummyTransaction@562791, handlers=[TxInterceptor.LocalSynchronizationHandler(gtx=GlobalTransaction:<null>:1, tx=org.jboss.cache.transaction.DummyTransaction@562791)]
| main org.jboss.cache.interceptors.TxInterceptor - calling aftercompletion for GlobalTransaction:<null>:1
| main org.jboss.cache.interceptors.TxInterceptor - Running commit phase. One phase? false
| main org.jboss.cache.interceptors.TxInterceptor - running commit for GlobalTransaction:<null>:1
| main org.jboss.cache.interceptors.CacheLoaderInterceptor - invoke commit(GlobalTransaction:<null>:1)
| main org.jboss.cache.interceptors.CacheStoreInterceptor - CacheStoreInterceptor called with meth commit(GlobalTransaction:<null>:1)
| main org.jboss.cache.interceptors.CacheStoreInterceptor - transactional so don't put stuff in the cloader yet.
| main org.jboss.cache.interceptors.CacheStoreInterceptor - Commit called with no modifications; ignoring.
| main org.jboss.cache.interceptors.OptimisticValidatorInterceptor - commiting validated changes
| main org.jboss.cache.interceptors.OptimisticValidatorInterceptor - Merging node /loanet not necessary since the node is not dirty
| main org.jboss.cache.interceptors.TxInterceptor - Finished local commit/rollback method for GlobalTransaction:<null>:1
| main org.jboss.cache.interceptors.TxInterceptor - Finished commit phase
| main org.jboss.cache.loader.jdbm.JdbmCacheLoader - getChildrenNames /loanet
| main org.jboss.cache.loader.CacheLoaderManager - preloading transient state from cache loader was successful (in 7169 milliseconds)
| main org.jboss.cache.interceptors.TxInterceptor - (null) call on method [_get(/loanet, bla, true)]
| main org.jboss.cache.interceptors.TxInterceptor - Creating transaction for thread Thread[main,5,main]
| main org.jboss.cache.interceptors.TxInterceptor - local transaction exists - registering global tx if not present for Thread[main,5,main]
| main org.jboss.cache.interceptors.TxInterceptor - Associated gtx in txTable is null
| main org.jboss.cache.TreeCache - created new GTX: GlobalTransaction:<null>:2, local TX=org.jboss.cache.transaction.DummyTransaction@58ba4b
| main org.jboss.cache.interceptors.TxInterceptor - Registering sync handler for tx org.jboss.cache.transaction.DummyTransaction@58ba4b, gtx GlobalTransaction:<null>:2
| main org.jboss.cache.transaction.DummyTransaction - registering synchronization handler tx=org.jboss.cache.transaction.DummyTransaction@58ba4b, handlers=[]
| main org.jboss.cache.interceptors.TxInterceptor - registering for TX completion: SynchronizationHandler(TxInterceptor.LocalSynchronizationHandler(gtx=GlobalTransaction:<null>:2, tx=org.jboss.cache.transaction.DummyTransaction@58ba4b))
| main org.jboss.cache.interceptors.CacheLoaderInterceptor - invoke _get(/loanet, bla, true)
| main org.jboss.cache.interceptors.CacheLoaderInterceptor - load element /loanet mustLoad=false
| main org.jboss.cache.interceptors.CacheStoreInterceptor - CacheStoreInterceptor called with meth _get(/loanet, bla, true)
| main org.jboss.cache.interceptors.CacheStoreInterceptor - transactional so don't put stuff in the cloader yet.
| main org.jboss.cache.transaction.DummyTransaction - processing beforeCompletion for tx=org.jboss.cache.transaction.DummyTransaction@58ba4b, handlers=[TxInterceptor.LocalSynchronizationHandler(gtx=GlobalTransaction:<null>:2, tx=org.jboss.cache.transaction.DummyTransaction@58ba4b)]
| main org.jboss.cache.interceptors.TxInterceptor - Running beforeCompletion on gtx GlobalTransaction:<null>:2
| main org.jboss.cache.interceptors.TxInterceptor - No modifications in this tx. Skipping beforeCompletion()
| main org.jboss.cache.transaction.DummyTransaction - processing afterCompletion for tx=org.jboss.cache.transaction.DummyTransaction@58ba4b, handlers=[TxInterceptor.LocalSynchronizationHandler(gtx=GlobalTransaction:<null>:2, tx=org.jboss.cache.transaction.DummyTransaction@58ba4b)]
| main org.jboss.cache.interceptors.TxInterceptor - calling aftercompletion for GlobalTransaction:<null>:2
| main org.jboss.cache.interceptors.TxInterceptor - Running commit phase. One phase? false
| main org.jboss.cache.interceptors.TxInterceptor - running commit for GlobalTransaction:<null>:2
| main org.jboss.cache.interceptors.CacheLoaderInterceptor - invoke commit(GlobalTransaction:<null>:2)
| main org.jboss.cache.interceptors.CacheStoreInterceptor - CacheStoreInterceptor called with meth commit(GlobalTransaction:<null>:2)
| main org.jboss.cache.interceptors.CacheStoreInterceptor - transactional so don't put stuff in the cloader yet.
| main org.jboss.cache.interceptors.CacheStoreInterceptor - Commit called with no modifications; ignoring.
| main org.jboss.cache.interceptors.OptimisticValidatorInterceptor - commiting validated changes
| main org.jboss.cache.interceptors.OptimisticValidatorInterceptor - Merging node /loanet not necessary since the node is not dirty
| main org.jboss.cache.interceptors.TxInterceptor - Finished local commit/rollback method for GlobalTransaction:<null>:2
| main org.jboss.cache.interceptors.TxInterceptor - Finished commit phase
| main org.jboss.cache.loader.jdbm.JdbmCacheLoader - getChildrenNames /loanet
I have also tried to change to JBossTransactionManagerLookup but it totally not working (I am using Weblogic 8.1 AS). Did I miss anything in the configuration ??
Thanks a lot !
-Bruce
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3957930#3957930
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3957930
19 years, 9 months