[JBoss-user] [Beginners Corner] - Re: JBoss 4.0 EJB depending on external libraries
I have the same problem. With JBoss 3.2, I placed my libraries jars in MyEJB.jar/META-INF/lib/ and it worked. But with JBoss 4.0.1RC2, the trick doesn't work anymore :-( View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3858356#3858356 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3858356 --- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Installation & Configuration] - Re: How do JBoss TimerService handle system failures?
anonymous wrote : 1. If a timer expires once while the system goes down, will it go off when the system starts up again? | It depends on how your JBoss is stopped: - Normal stop: all the timers are removed automatically (what a pity!) so they won't be restored on startup - Anormal (kill/crash) stop: all timers are restored provided that they were made persistent (see ejb-deployer.xml config file) anonymous wrote : 2. If a single timer expires multiple times while the system is down, what happens to the timer when the system starts up again? | If it wasn't removed on shutdown, il will be executed once on startup and then the normal behaviour will occur. anonymous wrote : 3. Does JBoss provide a way to specify an end date for a timer? | You can stop a timer using the cancel method on it. You can use a time-out style timer to stop periodical style timer. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3858830#3858830 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3858830 --- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [EJB/JBoss] - Unable to persist timer in Oracle XA data source
Hello, I have create a Timer table in by Oracle 9i database: create table TIMERS( | TIMERID varchar2(80) not null , | TARGETID varchar2(80) not null , | INITIALDATE timestamp not null , | TIMERINTERVAL number(20) , | INSTANCEPK raw(2000) , | INFO raw(2000) , | constraint TIMERS_PK primary key (TIMERID,TARGETID) | ) | I have changed in the ejb-deployer.xml the data source for Timers persistence to my Oracle XA data source, but I get the following exception: anonymous wrote : 2004-12-22 16:25:11,427 ERROR [org.jboss.ejb.txtimer.TimerServiceImpl] Cannot create txtimer | java.lang.IllegalStateException: Unable to persist timer | at org.jboss.ejb.txtimer.DatabasePersistencePolicy.insertTimer(DatabasePersistencePolicy.java:124) | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) | at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) | at java.lang.reflect.Method.invoke(Method.java:324) | at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:144) | at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80) | at org.jboss.mx.server.Invocation.invoke(Invocation.java:72) | at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249) | at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642) | at org.jboss.mx.util.JMXInvocationHandler.invoke(JMXInvocationHandler.java:272) | at $Proxy409.insertTimer(Unknown Source) | at org.jboss.ejb.txtimer.TimerServiceImpl.createTimer(TimerServiceImpl.java:206) | at org.jboss.ejb.StatelessSessionEnterpriseContext$TimerServiceWrapper.createTimer(StatelessSessionEnterpriseContext.java:273) | at fr.monentreprise.monprojet.monpaquetage.MonTimerBean.creerTimer(MonTimerBean.java:73) | (...) | Caused by: java.sql.SQLException: ORA-02049: Temporisation : transaction distribuÃe attend un verrou | | at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134) | at oracle.jdbc.oci8.OCIDBAccess.check_error(OCIDBAccess.java:2355) | at oracle.jdbc.oci8.OCIDBAccess.executeFetch(OCIDBAccess.java:1760) | at oracle.jdbc.oci8.OCIDBAccess.parseExecuteFetch(OCIDBAccess.java:1921) | at oracle.jdbc.driver.OracleStatement.executeNonQuery(OracleStatement.java:2152) | at oracle.jdbc.driver.OracleStatement.doExecuteOther(OracleStatement.java:2035) | at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:2876) | at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:609) | at org.jboss.resource.adapter.jdbc.WrappedPreparedStatement.executeUpdate(WrappedPreparedStatement.java:316) | at org.jboss.ejb.txtimer.GeneralPurposeDatabasePersistencePlugin.insertTimer(GeneralPurposeDatabasePersistencePlugin.java:156) | at org.jboss.ejb.txtimer.DatabasePersistencePolicy.insertTimer(DatabasePersistencePolicy.java:120) | ... 55 more The Oracle error code means: anonymous wrote : ORA-02049:timeout: distributed transaction waiting for lock | Cause: Exceeded INIT.ORA DISTRIBUTED_LOCK_TIMEOUT seconds waiting for lock. | Action: Treat as a deadlock. | I already noticed that - Timer persistence over a non-XA Oracle data source worked, so the database schema is right. - I use the same Oracle XA data source from my EJBs and it works so it's properly configured! Is it possible to use Timers persistence through an Oracle XA data source? Thanks for your help, GÃrald View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3859633#3859633 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3859633 --- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/ ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Persistence & CMP/JBoss] - Re: Problem with timer persistence
This table schema works for me with Oracle 9.2: create table TIMERS( | TIMERID varchar2(80) not null , | TARGETID varchar2(80) not null , | INITIALDATE timestamp not null , | TIMERINTERVAL number(20) , | INSTANCEPK raw(2000) , | INFO raw(2000) , | constraint TIMERS_PK primary key (TIMERID,TARGETID) | ) | It can be improved! View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3859716#3859716 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3859716 --- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/ ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [EJB/JBoss] - Timer interval duration not respected
Dear JBoss 4.0 users, I have created 2 Timer session beans. They should be executed every minute (inteval duration = 6). But when I look at the logs, these timers are executed twice per minute! Here are the logs: anonymous wrote : 09:57:37,156 INFO [UtilisateursOnlineTimerBean] Traitement utilisateurs online | 09:58:33,328 INFO [UtilisateursOnlineTimerBean] Traitement utilisateurs online | 09:58:33,390 INFO [EvenementsPrevTimerBean] Traitement ÃvÃnements prÃvisionnels | 09:58:37,109 INFO [EvenementsPrevTimerBean] Traitement ÃvÃnements prÃvisionnels | 09:58:37,156 INFO [UtilisateursOnlineTimerBean] Traitement utilisateurs online | 09:59:33,328 INFO [UtilisateursOnlineTimerBean] Traitement utilisateurs online | 09:59:33,421 INFO [EvenementsPrevTimerBean] Traitement ÃvÃnements prÃvisionnels | 09:59:37,109 INFO [EvenementsPrevTimerBean] Traitement ÃvÃnements prÃvisionnels | 09:59:37,156 INFO [UtilisateursOnlineTimerBean] Traitement utilisateurs online | 10:00:33,328 INFO [UtilisateursOnlineTimerBean] Traitement utilisateurs online | 10:00:36,015 INFO [EvenementsPrevTimerBean] Traitement ÃvÃnements prÃvisionnels | 10:00:37,109 INFO [EvenementsPrevTimerBean] Traitement ÃvÃnements prÃvisionnels | 10:00:37,203 INFO [UtilisateursOnlineTimerBean] Traitement utilisateurs online | I have checked the Timers table in the HSQL database, there are 2 rows anonymous wrote : 1 [target=jboss.j2ee:jndiName=ejb/evenements/EvenementsPrevTimer,service=EJB] 2004-12-01 00:00:00.0 6 [EMAIL PROTECTED] | 1 [target=jboss.j2ee:jndiName=ejb/gestionUtilisateurs/UtilisateursOnlineTimer,service=EJB] 2004-12-01 00:00:00.0 6 [EMAIL PROTECTED] You can see that interval is properly set to 6. They have both the same ID set to 1, is it normal? I noticed that when I stopped JBoss, I got the following warning: anonymous wrote : 10:19:17,546 WARN [GeneralPurposeDatabasePersistencePlugin] Unable to remove timer for: 1 | What is this? Can you explain me what's happening please? Thanks for your help, Gerald View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3859719#3859719 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3859719 --- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/ ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [EJB/JBoss] - Re: Timer interval duration not respected
I forgot to tell I was using JBoss 4.0.1RC2 View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3859721#3859721 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3859721 --- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/ ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [EJB/JBoss] - Re: Timer interval duration not respected
Well this is a known bug in JBoss 4.0 see: http://jira.jboss.com/jira/browse/JBAS-30 Sorry I didn't see it before. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3859739#3859739 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3859739 --- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/ ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Messaging, JMS & JBossMQ] - Deploying 2 MDB with same EJB Name into different EJB Jars f
Hello, In my JBoss 4.0.1RC2, I have set up 2 applications (2 EARs). Both of them have their own EJBs. Both of them contains an MDB which is differently implemented and located in a different packages but has the same ejb-name ExempleMessage in the ejb-jar.xml. On deploy time, I get the following error:anonymous wrote : Initialization failed jboss.j2ee:module=MyrabelCommunication.jar,service=EjbModule | javax.management.InstanceAlreadyExistsException: jboss.j2ee:jndiName=local/ExempleMessage,service=EJB already registered. JBoss wants to bind both MDBs with a default JNDI name local/ExempleMessage and this is bad. I had to change the EJB name in one of the EARs. I this a bug or feature? Gerald View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3859754#3859754 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3859754 --- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/ ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Messaging, JMS & JBossMQ] - Re: Deploying 2 MDB with same EJB Name into different EJB Ja
Thanks for your help Scott, But why should I give these EJBs a local JNDI name: since they are message-driven they shouldn't be bound to the JNDI registry at all, should they? I think I am missing something... GÃrald View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3859881#3859881 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3859881 --- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/ ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [EJB/JBoss] - Re: Timer interval duration not respected
This bug is corrected in JBoss 4.0.1final! View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3860862#3860862 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3860862 --- The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almosthttp://www.thinkgeek.com/sfshirt ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Messaging, JMS & JBossMQ] - ClassCastException on SpyXAConnection.createSession
Hello, Here is what I wrote in a MDB Bean for JBoss 4.0: InitialContext jndiContext=new InitialContext(); XAConnectionFactory xaConnectionFactory=(XAConnectionFactory) jndiContext.lookup("java:comp/env/jms/XAConnectionFactory"); Queue queue=(Queue)jndiContext.lookup("java:comp/env/jms/Queue"); XAConnection xaConnection=xaConnectionFactory.createXAConnection(); Session session= xaConnection.createSession(true,Session.AUTO_ACKNOWLEDGE); With java:comp/env/jms/XAConnectionFactory => XAConnectionFactory java:comp/env/jms/Queue => queue/MyQueue Simple no? But I get a ClassCastException: java.lang.ClassCastException at org.jboss.mq.SpyXAConnection.createSession(SpyXAConnection.java:72) at MyBean.onMessage(MyBean.java:xx) Who can tell me what's wrong? Gerald View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3850361#3850361 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3850361 --- This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more http://productguide.itmanagersjournal.com/guidepromo.tmpl ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Messaging, JMS & JBossMQ] - Sending message from JBoss to Joram
Dear JBoss users, I am willing to send JMS messages from an EJB deployed in JBoss to a remote Joram queue. I followed the explanation http://www.jboss.org/wiki/Wiki.jsp?page=HowDoIConfigureTheJMSResourceAdapterToUseARemoteConnectionFactory and I wrote this XML file: | | | | JoramJMSProvider | org.jboss.jms.jndi.JNDIProviderAdapter | JoramXAQueueConnectionFactory | JoramXATopicConnectionFactory | | java.naming.factory.initial=fr.dyade.aaa.jndi2.client.NamingContextFactory | java.naming.factory.host=localhost | java.naming.factory.port=16400 | | | | JoramJmsXA | | JMS Adapter | javax.jms.Topic | java:/JoramJMSProvider | 20 | JoramJmsXARealm | | | Then, in by EJB, I use the the JoramJmsXA as a XAQueueConnectionFactory and send a message with it. This message arrives properly in Joram, but I get the following error message repeated many times: | 2004-10-05 18:24:54,571 WARN [org.jboss.tm.TransactionImpl] XAException: tx=TransactionImpl:XidImpl [FormatId=257, GlobalId=TRANS-sta-47//603, BranchQual=] errorCode=XA_UNKNOWN(0) | javax.transaction.xa.XAException: Resource is not enlisted in specified transaction. | at org.objectweb.joram.client.jms.XAResource.end(XAResource.java:98) | at org.jboss.tm.TransactionImpl.endResource(TransactionImpl.java:1253) | at org.jboss.tm.TransactionImpl.endResources(TransactionImpl.java:1331) | at org.jboss.tm.TransactionImpl.commit(TransactionImpl.java:355) | at org.jboss.tm.TxManager.commit(TxManager.java:142) | at org.jboss.jms.asf.StdServerSession.onMessage(StdServerSession.java:361) | at org.jboss.mq.SpyMessageConsumer.sessionConsumerProcessMessage(SpyMessageConsumer.java:871) | at org.jboss.mq.SpyMessageConsumer.addMessage(SpyMessageConsumer.java:159) | at org.jboss.mq.SpySession.run(SpySession.java:347) | at org.jboss.jms.asf.StdServerSession.run0(StdServerSession.java:200) | at org.jboss.jms.asf.StdServerSession.run(StdServerSession.java:180) | at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:743) | at java.lang.Thread.run(Thread.java:534) | (...) | 2004-10-05 18:24:54,712 ERROR [org.jboss.jms.asf.StdServerSession] failed to commit/rollback | org.jboss.tm.JBossRollbackException: Unable to commit, tx=TransactionImpl:XidImpl [FormatId=257, GlobalId=TRANS-sta-47//603, BranchQual=] status=STATUS_NO_TRANSACTION; - nested throwable: (javax.transaction.xa.XAException: Resource is not enlisted in specified transaction.) | at org.jboss.tm.TransactionImpl.commit(TransactionImpl.java:415) | at org.jboss.tm.TxManager.commit(TxManager.java:142) | at org.jboss.jms.asf.StdServerSession.onMessage(StdServerSession.java:361) | at org.jboss.mq.SpyMessageConsumer.sessionConsumerProcessMessage(SpyMessageConsumer.java:871) | at org.jboss.mq.SpyMessageConsumer.addMessage(SpyMessageConsumer.java:159) | at org.jboss.mq.SpySession.run(SpySession.java:347) | at org.jboss.jms.asf.StdServerSession.run0(StdServerSession.java:200) | at org.jboss.jms.asf.StdServerSession.run(StdServerSession.java:180) | at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:743) | at java.lang.Thread.run(Thread.java:534) | Caused by: javax.transaction.xa.XAException: Resource is not enlisted in specified transaction. | at org.objectweb.joram.client.jms.XAResource.end(XAResource.java:98) | at org.jboss.tm.TransactionImpl.endResource(TransactionImpl.java:1253) | at org.jboss.tm.TransactionImpl.endResources(TransactionImpl.java:1331) | at org.jboss.tm.TransactionImpl.commit(TransactionImpl.java:355) | ... 9 more | Could you tell what's wrong? Thanks for your help, Gerald View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3850416#3850416 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3850416 --- This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more http://productguide.itmanagersjournal.com/guidepromo.tmpl ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Messaging, JMS & JBossMQ] - Re: Integrating JBossMQ with a foreign JMS provider
I don't known anything about Tibco, but integrating JBossMQ with Joram I found a lot of answers in these Wiki pages: - http://www.jboss.org/wiki/Wiki.jsp?page=FAQJBossMQ - http://www.jboss.org/wiki/Wiki.jsp?page=HowDoIConfigureTheJMSResourceAdapterToUseARemoteConnectionFactory Finally, having a look to the default JMS config files can help as well (located in JBoss/server/default/deploy/jms ) Good luck, Gerald View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3850486#3850486 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3850486 --- This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more http://productguide.itmanagersjournal.com/guidepromo.tmpl ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Tomcat, HTTPD, Servlets & JSP] - Log4JLogger does not implement Log
Hello, * Alone, MyEjbs.jar is deploying properly. | * Alone, MyWeb.war is deploying properly. | But when I place them together in MyApp.ear, I get the following exception: anonymous wrote : 2005-08-08 15:33:17,047 ERROR [org.apache.commons.digester.Digester] End event threw exception | java.lang.reflect.InvocationTargetException | at sun.reflect.GeneratedMethodAccessor38.invoke(Unknown Source) | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) | at java.lang.reflect.Method.invoke(Method.java:324) | at org.apache.tomcat.util.IntrospectionUtils.callMethod1(IntrospectionUtils.java:890) | (...) | Caused by: org.apache.commons.logging.LogConfigurationException: org.apache.commons.logging.LogConfigurationException: org.apache.commons.logging.LogConfigurationException: Class org.apache.commons.logging.impl.Log4JLogger does not implement Log | at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:532) | at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:272) | at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:414) | at org.apache.catalina.core.ContainerBase.getLogger(ContainerBase.java:380) | at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:996) | at org.apache.catalina.core.StandardWrapper.start(StandardWrapper.java:1610) | at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759) | at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739) | at org.apache.catalina.core.StandardContext.addChild(StandardContext.java:1894) | ... 137 more | Caused by: org.apache.commons.logging.LogConfigurationException: org.apache.commons.logging.LogConfigurationException: Class org.apache.commons.logging.impl.Log4JLogger does not implement Log | at org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryImpl.java:416) | at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:525) | ... 145 more | Caused by: org.apache.commons.logging.LogConfigurationException: Class org.apache.commons.logging.impl.Log4JLogger does not implement Log | at org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryImpl.java:412) | ... 146 more | It looks like a class loading problem. I have turned on the CallByValue and Isolated options to true in ear-deployer.xml. Is it related ? What can I do to make MyEjb.jar and MyWeb.war play together? Thanks for your help. Gérald View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3888901#3888901 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3888901 --- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Tomcat, HTTPD, Servlets & JSP] - Re: Log4JLogger does not implement Log
I found the solution by myself. The problem didn't occur when CallByValue and Isolated options were turned off ear-deployer.xml. The solution: | * Switched Java2ClassLoadingCompliance and UseJBossWebLoader options off in deploy\jbossweb-tomcat5?.sar\META-INF\jboss-service.xml | * Removed commons-logging*.jar and log4j*.jar from all MyApp*.ear | The document that saved me: http://docs.jboss.com/jbossas/whatsnew40/pdf/whatsnew40.pdf at §2.1 View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3888930#3888930 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3888930 --- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [J2EE Design Patterns] - Class with Singleton design pattern shared by 2 applications
Hello, I have a singleton class which looks like public class MySingleton [ |private MySingleton() { | System.out.println("Init MySingleton"); |} |private static MySingleton singleton; |public static synchronized MySingleton getSingleton() { |if (singleton == null) { |singleton = new MySingleton(); |} |} | } This class is deployed twice in the same JBoss 4.0.1 server - once in MyApp1.ear/MyEJB1.jar - another time in MyApp2.ear/MyEJB2.jar I noticed there was only one instance of these classes for both MyApp1 and MyApp2 (as a result MyApp2 can access data from MyApp1!). I would I like each application to have its own instance, how can I do that? Thanks for your help, Gerald View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3863112#3863112 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3863112 --- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [J2EE Design Patterns] - Re: Class with Singleton design pattern shared by 2 applicat
After several days spent looking for a solution I finally understood I should isolate EAR class loaders. All I had to do was turn "Isolated" to true in the ear-deployer.xml! View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3864631#3864631 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3864631 --- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [EJB/JBoss] - Re: ejbTimeout and executing principle
I have the same problem, I am in interested in the solution as well. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3866220#3866220 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3866220 --- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Messaging, JMS & JBossMQ] - Remote ConnectionFactory/Queue reconnection
Hello, I am sending message from JBoss EJB Session to a remote JBoss Queue. I have declared the remote JBossMQ like this: | | | java:external/RemoteJBoss | true | | java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory | java.naming.provider.url=jnp://remoteserver:1099 | java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces | javax.naming.InitialContext | | true | | | JMSExploitationProvider | org.jboss.jms.jndi.JNDIProviderAdapter | XAConnectionFactory | XAConnectionFactory | XAConnectionFactory | | java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory | java.naming.provider.url=jnp://remoteserver:1099 | java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces | | | | JMSExploitationXA | | jms-ra.rar | org.jboss.resource.adapter.jms.JmsConnectionFactory | javax.jms.Topic | java:/JMSExploitationProvider | 20 | | Sending a message from the local JBoss to the remote one basically works perfectly. Nonetheless, when I stop and restart the remote JBoss, the local JBoss doesn't find the new remote ConnectionFactory/Queue because they are not refreshed: is there a cache somewhere?. Then if use the local JBoss web console to invoke JNDIView.list, the external context is refreshed (is the cache refreshed by this operation?) and everything works back again. What can I do avoid this trick on the local JBoss each the remote JBoss is restarted and make the reconnection automatic? Thanks for your help, GÃrald View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3869528#3869528 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3869528 --- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Messaging, JMS & JBossMQ] - Re: Remote ConnectionFactory/Queue reconnection
Thanks for your post razor_harm! I get my ConnectionFactory and my Queue from the JNDI. Should I do an initialContext.lookup(...) twice ? In theory, given that I declare a , JBoss should build a pool of JMS connections. I wonder whether JBoss keeps old Connections in his pool and how he replaces them with new ones once the remote server has restarted? GÃrald View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3869565#3869565 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3869565 --- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Messaging, JMS & JBossMQ] - Re: Not able to receive JMS Messages.
If you execute your queue sender from an external "main" program then you should commit your JMS session: associateSession.queue(); If you execute your queue sender from an EJB with transaction Required then the JMS connection is automatically commited at the end of the treatment. Hope it helps. GÃrald View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3869570#3869570 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3869570 --- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Messaging, JMS & JBossMQ] - Re: Remote ConnectionFactory/Queue reconnection
I can not call connection.setExceptionListener() because the problem occurs before I get the connection. This what I do: Context context = new InitialContext(); | ConnectionFactory connectionFactory = context.lookup("java:/JMSExploitationXA"); | Queue queue = context.lookup("java:/external/RemoteJBoss/queue/MyQueue"); | Connection connection = connectionFactory.createConnection(); | I don't know exactly where an exception is raised (I will look at this ASAP): * In the context.lookup("...") | * In the connectionFactory.createConnection() The ExceptionListener is useful when you want watch what's happening when you send/receive a message but it is not my case. By the way, I thank you very much, GÃrald View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3869754#3869754 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3869754 --- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Messaging, JMS & JBossMQ] - Re: Remote ConnectionFactory/Queue reconnection
Thank you for you Adrian, I don't understand your answer in detail but I am going to have a look at this ExceptionListener. Nonetheless, here is the scenario: | * Local JBoss and Remote JBoss are started | * Remote JBoss is stopped and then restarted | * Local JBoss try to send JMS message to a Queue located on the Remote JBoss. This Queue is accessed through an ExternalContext MBean (see my first post) | And now here is the stack trace. The problem doesn't come from the ConnectionFactory but from the Queue I got from JNDI registry through the ExternalContext : 2005-03-14 08:23:08,898 ERROR [org.jboss.ejb.plugins.LogInterceptor] TransactionRolledbackLocalException in method: public abstract void com.mycompany.myproject.bean.MyServiceLocal.sendMessage(int,java.lang.String,java.lang.String) throws javax.jms.JMSException, causedBy: | com.mycompany.myproject.ServiceLocatorException: Objet not found in the JNDI registry: java:comp/env/jms/Queue | at com.mycompany.myproject.ServiceLocator.lookup(ServiceLocator.java:38) | at com.mycompany.myproject.ServiceLocator.getObject(ServiceLocator.java:26) | at com.mycompany.myproject.bean.MyServiceBean.getQueue(MyServiceBean.java:84) | at com.mycompany.myproject.bean.MyServiceBean.sendMessage(MyServiceBean.java:105) | (... cut here ...) | Caused by: javax.naming.NamingException: Could not dereference object [Root exception is javax.naming.CommunicationException [Root exception is java.rmi.NoSuchObjectException: no such object in table]] | at org.jnp.interfaces.NamingContext.resolveLink(NamingContext.java:999) | at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:629) | at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:658) | at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:520) | at javax.naming.InitialContext.lookup(InitialContext.java:347) | at com.mycompany.myproject.ServiceLocator.lookup(ServiceLocator.java:36) | ... 66 more | Caused by: javax.naming.CommunicationException [Root exception is java.rmi.NoSuchObjectException: no such object in table] | at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:663) | at javax.naming.InitialContext.lookup(InitialContext.java:351) | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) | at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) | at java.lang.reflect.Method.invoke(Method.java:324) | at org.jboss.naming.ExternalContext$CachedContext.invoke(ExternalContext.java:528) | at $Proxy41.lookup(Unknown Source) | at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:610) | at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:520) | at javax.naming.InitialContext.lookup(InitialContext.java:347) | at org.jnp.interfaces.NamingContext.resolveLink(NamingContext.java:993) | ... 71 more | Caused by: java.rmi.NoSuchObjectException: no such object in table | at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:247) | at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:223) | at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:133) | at org.jnp.server.NamingServer_Stub.lookup(Unknown Source) | at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:544) | ... 82 more | Why do I get a NamingException given that the remote JBoss with the referenced Queue has restarted? Again thanks for your help, it is very appreciated! GÃrald View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3869968#3869968 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3869968 --- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Messaging, JMS & JBossMQ] - Re: Remote ConnectionFactory/Queue reconnection
Ah alright, I apologize for having polluted this forum. Where can I post this question? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3870153#3870153 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3870153 --- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Installation & Configuration] - SMTP Authentication
Hello, Which properties should I put the mail-service.xml to tell JavaMail to use a specific login/password to access my SMTP server? It must be a simple question, but I can not find the solution by myself, Thanks for your help, GÃrald View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3874895#3874895 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3874895 --- This SF.Net email is sponsored by: New Crystal Reports XI. Version 11 adds new functionality designed to reduce time involved in creating, integrating, and deploying reporting solutions. Free runtime info, new features, or free trial, at: http://www.businessobjects.com/devxi/728 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Installation & Configuration] - Re: SMTP Authentication
I found the solution by myself in http://java.sun.com/products/javamail/javadocs/com/sun/mail/smtp/package-summary.html Properties to set in mail-service.xml: mail.smtp.host=smtp.mydomain.com | mail.smtp.user=mylogin | mail.smtp.password=mypassword | mail.smtp.auth=true View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3875024#3875024 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3875024 --- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [EJB/JBoss] - EAR and Class loading
Hello everybody, I have 2 session beans: - Session1Bean in Ejb1.jar in App1.ear - Session2Bean in Ejb2.jar in App2.ear Each EAR has its own class loader because there is App1Loader:loader=unique-archive-name App1.ear\META-INF\jboss-app.xml and App2Loader:loader=unique-archive-name App2.ear\META-INF\jboss-app.xml. The Session2 EJB can not access to the Session1 EJB using the remote interface. I get a ClassCastException in Session2 when I try to cast the home object of Session1 found in the JNDI registry into Session1Home interface. Session1Home.class of Ejb1.jar is also present in Ejb2.jar, the files are identical. Why do I get this ClassCastException since this home should fit in the interface? What can I do to solve this? Thanks for your help Gérald View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3880098#3880098 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3880098 --- This SF.Net email is sponsored by Yahoo. Introducing Yahoo! Search Developer Network - Create apps using Yahoo! Search APIs Find out how you can build Yahoo! directly into your own Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [EJB/JBoss] - Re: EAR and Class loading
Since then I have tried many things: | * Add a true in the jboss.xml of both EJB jars | * Set naming service attribute CallByValue to true in jboss-service.xml | * Specify JNDI properties when instantiating the InitialiContext | Despite all my trials and my forum searches, nothing worked. Does some have an idea? I forgot to tell I was using JBoss 4.0 View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3880420#3880420 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3880420 --- This SF.Net email is sponsored by: NEC IT Guy Games. How far can you shotput a projector? How fast can you ride your desk chair down the office luge track? If you want to score the big prize, get to know the little guy. Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Installation, Configuration & Deployment] - Stopping/disabling a deployed application
Hello, Is it possible to stop/disable an application without undeploying it? To stop/disable a J2EE application means to me: | * EJBs do not talk through RMI | * MDBs do not to consumme JMS messages | * JSPs/Servlets do not answer HTTP requests | * EJB Timers do not execute anymore | * Etc... | Can someone tell me | * Where I can find this feature in the JBoss Web console? | * How I can do this from Java code? | Thanks for your help, Gérald View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3910700#3910700 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3910700 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_idv37&alloc_id865&op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Messaging, JMS & JBossMQ] - Destination bridge
Hello, Is it possible to create "destination bridges" in JBoss MQ: every JMS message sent to the bridge is forwarded to another Queue or Topic on another JMS server as soon as it is available. Other J2EE servers already do this | * Bea Weblogic: http://edocs.beasys.com/wls/docs70/adminguide/msgbridge.html | * Joram (Jonas): http://joram.objectweb.org/current/doc/Joram-4.3-en.pdf , chapter 10 | Does JBoss have a similar feature? Thanks for your help, Gérald View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3913399#3913399 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3913399 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_idv37&alloc_id865&op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Messaging, JMS & JBossMQ] - Re: Destination bridge
Fairly easy? * Handle all message types: Text, Map, Object, Bytes... | * Handle header properties | * Handle sending options: priority, time to live, delivery mode | I guess I am not the only one who needs such a behaviour. JBoss can not do this in generic way? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3913499#3913499 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3913499 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Messaging, JMS & JBossMQ] - Re: Destination bridge
I followed your advice and wrote a MDB: | public void onMessage(Message sourceMessage) { | Connection connection = null; | try { | connection = getTargetConnectionFactory().createConnection(); | Session session = connection.createSession(true, Session.AUTO_ACKNOWLEDGE); | | // Body | Message targetMessage; | if (sourceMessage instanceof TextMessage) { | // Text | TextMessage sourceTextMessage = (TextMessage) sourceMessage; | targetMessage = session.createTextMessage(sourceTextMessage.getText()); | } else if (sourceMessage instanceof BytesMessage) { | // Bytes | BytesMessage sourceBytesMessage = (BytesMessage) sourceMessage; | BytesMessage targetBytesMessage = session.createBytesMessage(); | byte[] bytes = new byte[getByteBufferSize()]; | int byteCount; | while((byteCount=sourceBytesMessage.readBytes(bytes))>0) { | targetBytesMessage.writeBytes(bytes, 0, byteCount); | } | targetMessage = targetBytesMessage; | } else if (sourceMessage instanceof MapMessage) { | // Map | MapMessage sourceMapMessage = (MapMessage) sourceMessage; | MapMessage targetMapMessage = session.createMapMessage(); | Enumeration mapNameEnum = sourceMapMessage.getMapNames(); | while (mapNameEnum.hasMoreElements()) { | String mapName = (String) mapNameEnum.nextElement(); | targetMapMessage.setObjectProperty(mapName, sourceMapMessage.getObject(mapName)); | } | targetMessage = targetMapMessage; | } else if (sourceMessage instanceof ObjectMessage) { | // Object | ObjectMessage sourceObjectMessage = (ObjectMessage) sourceMessage; | targetMessage = session.createObjectMessage(sourceObjectMessage.getObject()); | } else if (sourceMessage instanceof StreamMessage) { | // Stream | StreamMessage sourceStreamMessage = (StreamMessage) sourceMessage; | StreamMessage targetStreamMessage = session.createStreamMessage(); | byte[] bytes = new byte[getByteBufferSize()]; | int byteCount; | while((byteCount=sourceStreamMessage.readBytes(bytes))>0) { | targetStreamMessage.writeBytes(bytes, 0, byteCount); | } | targetMessage = targetStreamMessage; | } else { | targetMessage = null; | } | | if (targetMessage == null) { | log.error("Message couldn't be copied"); | } else { | // Header | Enumeration propertyNameEnum = sourceMessage.getPropertyNames(); | while (propertyNameEnum.hasMoreElements()) { | String propertyName = (String) propertyNameEnum.nextElement(); | targetMessage.setObjectProperty(propertyName, sourceMessage.getObjectProperty(propertyName)); | } | | // Message producer | MessageProducer messageProducer = session.createProducer(getTargetDestination()); | messageProducer.setDeliveryMode(sourceMessage.getJMSDeliveryMode()); | messageProducer.setPriority(sourceMessage.getJMSPriority()); | final long timestamp = sourceMessage.getJMSTimestamp(); | if (timestamp>0) { | final long expiration = sourceMessage.getJMSExpiration(); | if ((expiration>0)&&(expiration>timestamp)) { | messageProducer.setTimeToLive(timestamp); | } | } else { | messageProducer.setDisableMessageTimestamp(true); | } | messageProducer.send(targetMessage); | } | } catch(JMSException jmsExc) { | log.error("Bridge message", jmsExc); | } finally { | if (connection != null) { | try { | connection.close(); | } catch (JMSException e) { | } | } | } | } | I couldn't find an easier way to do it, could you? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3913512#3913512 Reply to the post : http://www.jboss.com/index.html?module=bb&
[JBoss-user] [JBoss Eclipse IDE (users)] - Lost JBoss Eclipse console
Hello everybody, I lost the Eclipse Console view which displayed JBoss logs when I launched JBoss with the Server navigator view. I don't know what I did (did I close the Console view?). How can I bring back? The only Console view types I have are CVS and Java Stack Trace... The only way to display JBoss logs now is using the Log file file and I don't find as practical as the Console view. Thanks for your help, Gérald View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3921425#3921425 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3921425 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid3432&bid#0486&dat1642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Installation, Configuration & Deployment] - OutOfMemoryError: unable to create new native thread
Hello, I get an exception java.lang.OutOfMemoryError: unable to create new native thread under heavy conditions. I tried to increase Java memory size with -Xmx1024M option but it didn't help. Here is the stack trace: 2006-02-21 10:22:34,272 INFO [STDOUT] java.lang.OutOfMemoryError: unable | to create new native thread | 2006-02-21 10:22:34,273 INFO [STDOUT]at java.lang.Thread.start(Native | Method) | 2006-02-21 10:22:34,273 INFO [STDOUT]at | sun.rmi.transport.tcp.TCPChannel.free(TCPChannel.java:322) | 2006-02-21 10:22:34,273 INFO [STDOUT]at | sun.rmi.server.UnicastRef.free(UnicastRef.java:402) | 2006-02-21 10:22:34,273 INFO [STDOUT]at | sun.rmi.server.UnicastRef.done(UnicastRef.java:419) | 2006-02-21 10:22:34,273 INFO [STDOUT]at | sun.rmi.transport.DGCImpl_Stub.dirty(Unknown Source) | 2006-02-21 10:22:34,273 INFO [STDOUT]at | sun.rmi.transport.DGCClient$EndpointEntry.makeDirtyCall(DGCClient.java:328) | 2006-02-21 10:22:34,273 INFO [STDOUT]at | sun.rmi.transport.DGCClient$EndpointEntry.access$1600(DGCClient.java:144) | 2006-02-21 10:22:34,273 INFO [STDOUT]at | sun.rmi.transport.DGCClient$EndpointEntry$RenewCleanThread.run(DGCClient.java:539) | 2006-02-21 10:22:34,273 INFO [STDOUT]at | java.lang.Thread.run(Thread.java:534) | 2006-02-21 10:22:37,097 ERROR [org.jboss.ejb.plugins.LogInterceptor] | Unexpected Error in method: public abstract void | fr.gtietransport.myrabel.serveur.gestionUtilisateurs.bean.UtilisateursFacade.signalerPresence(fr.gtietransport.myrabel.serveur.gestionUtilisateurs.bo.UtilisateurBo) | throws | fr.gtietransport.lugdunum.serveur.biz.BusinessException,java.rmi.RemoteException | java.lang.OutOfMemoryError: unable to create new native thread | at java.lang.Thread.start(Native Method) | at java.util.Timer.(Timer.java:95) | at org.jboss.ejb.txtimer.TimerImpl.startInTx(TimerImpl.java:328) | at org.jboss.ejb.txtimer.TimerImpl.startTimer(TimerImpl.java:108) | at | org.jboss.ejb.txtimer.TimerServiceImpl.createTimer(TimerServiceImpl.java:207) | at | org.jboss.ejb.txtimer.TimerServiceImpl.createTimer(TimerServiceImpl.java:121) | at | org.jboss.ejb.StatelessSessionEnterpriseContext$TimerServiceWrapper.createTimer(StatelessSessionEnterpriseContext.java:255) | at | fr.gtietransport.myrabel.serveur.gestionUtilisateurs.bean.UtilisateursFacadeBean.signalerPresence(UtilisateursFacadeBean.java:168) | at sun.reflect.GeneratedMethodAccessor464.invoke(Unknown Source) | at | sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) | at java.lang.reflect.Method.invoke(Method.java:324) | at org.jboss.invocation.Invocation.performCall(Invocation.java:345) | at | org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:214) | I am using: | * JBoss 4.0.1SP1 | * Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_08-b03) | * Red Hat Enterprise Linux 3 (Kernel 2.4.21-32.ELsmp) | Is it the bug JBAS-1369 described in Jira (http://www.jboss.com/index.html?module=bb&op=viewtopic&t=65857)? I didn't do the LD_ASSUME_KERNEL thing described in http://wiki.jboss.org/wiki/Wiki.jsp?page=LinuxThreadingModel, can it be related to my problem? Thanks for your help, Cheers, Gérald View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3925347#3925347 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3925347 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid3432&bid#0486&dat1642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Installation, Configuration & Deployment] - Re: OutOfMemoryError: unable to create new native thread
I am experimenting the LD_ASSUME_KERNEL thing since yesterday, by now I didn't get an OutOfMemoryException. However, after one day in production, I see in the jboss.system:type=ServerInfo bean that the ActiveThreadCount over 1400! Is it normal? Is it related to the TimerService.createTimer call? I will try the -XX:MaxPermSize=128m thing as soon as I can. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3925535#3925535 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3925535 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Installation, Configuration & Deployment] - Re: OutOfMemoryError: unable to create new native thread
With the listThreadDump operation I see that the majority of threads are under the Thread Group called RMI Runtime. As you can see it in the stack trace, it is an RMI call that triggers timer creation. Is it related? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3925572#3925572 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3925572 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Installation, Configuration & Deployment] - Re: OutOfMemoryError: unable to create new native thread
After 2 days in production, the ActiveThreadCount is over 3300! OutOfMemoryException is getting closer! How can I determine what (which RMI call) is creating so many threads? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3925760#3925760 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3925760 --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Installation, Configuration & Deployment] - Re: Migrating a webapp on Tomcat to JBoss
For an application called MyApp deployed in Tomcat, copy C:\tomcat\webapps\MyApp\* into a folder called C:\jboss\server\default\deploy\MyApp.war Then you can add a jboss-web.xml under MyApp.war\WEB-INF to customize the deployment in JBoss. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3925782#3925782 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3925782 --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Installation, Configuration & Deployment] - Re: login issues
Did you declare your security domain java:/jaas/Psc400 in the login-config.xml file? With something like: | | | | anonymous | users.properties | roles.properties | | | | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3925785#3925785 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3925785 --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Installation, Configuration & Deployment] - Re: OutOfMemoryError: unable to create new native thread
I tried to -Xss128k in the Java VM options as explained in http://wiki.jboss.org/wiki/Wiki.jsp?page=OutOfMemoryExceptionWhenCannotCreateThread but it doesn't help. I have run JBoss with JProfiler (profiling tool by EJ-Technology) and I saw 100 threads created in an hour. Threads appear then stay in a "Waiting" state and never end nor disappear. I have the feeling (I don't have any proof) that starting a Timer creates a new thread, but canceling the timer doesn't destroy this thread. What can I do? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3926053#3926053 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3926053 --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Installation, Configuration & Deployment] - Re: OutOfMemoryError: unable to create new native thread
I have identified the portion of code which is creating lots of threads, my application calls it frequently, when I comment it my problem disappears...: TimerService timerService = getSessionContext().getTimerService(); | Iterator timerIter = timerService.getTimers().iterator(); | while(timerIter.hasNext()) { | Timer timer = (Timer) timerIter.next(); | if (timer.getInfo().equals(timerInfo)) { | timer.cancel(); | } | } | timerService.createTimer(12l, timerInfo); | The aim of this piece of code is to re-schedule a timer. What's wrong with it? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3926069#3926069 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3926069 --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Installation, Configuration & Deployment] - Re: OutOfMemoryError: unable to create new native thread
"[EMAIL PROTECTED]" wrote : How many tasks do you schedule/cancle? About 5 timers per minute "[EMAIL PROTECTED]" wrote : What is the timerInfo Serializable you use? A simple String measuring about 20 characters. "[EMAIL PROTECTED]" wrote : Do you keep somewhere a reference to the Timer? No, that's why I am searching the timer I want to cancel with that loop. Is my problem related to the bug http://jira.jboss.com/jira/browse/JBAS-1690? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3926089#3926089 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3926089 --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Installation, Configuration & Deployment] - Re: OutOfMemoryError: unable to create new native thread
"[EMAIL PROTECTED]" wrote : I'd say you need to profile your application to see why the cancelled Timers are not garbage collected. I think it's not a problem of "Timers not being garbage collected", I think it's rather a problem of "Threads not ending" (see previous post threads are stuck in "Waiting" state). View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3926093#3926093 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3926093 --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Installation, Configuration & Deployment] - Re: Log4j config issues
Here is what, I would personnally do: | | | | | | | | | | | | | | | | | | One console seems enough because there is only one standard output By default additivity=true View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3926100#3926100 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3926100 --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Installation, Configuration & Deployment] - Re: OutOfMemoryError: unable to create new native thread
I am going to test whether this problem occurs with release 4.0.4RC1 in order to be sure it is the same. By the way, I can not use a release candidate for production. Was this bug present in releases earlier that 4.0.1SP1? Is it worth testing release 4.0.1? Is there a workaround? Is 4.0.4final scheduled? Thanks for your help and advice Dimitris View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3926334#3926334 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3926334 --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Installation, Configuration & Deployment] - Re: OutOfMemoryError: unable to create new native thread
After having tested, the problem occurs on release 4.0.1 (not SP1) but not on 4.0.4RC1. So I guess it was the bug JBAS-1690. Again thank you very much Dimitris: you helped me! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3926482#3926482 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3926482 --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user