Re: [JBoss-user] JMS Persistence Managers and Performance
http://www.postgresql.org/docs/6.5/interactive/sql-vacuum-1.htm Random link found using google, use whatever is relevent to your version. Postgres works a bit a like an Object db, you must garbage collect regularly. Regards, Adrian On Tue, 2003-10-28 at 01:17, Alwyn Schoeman wrote: > On Mon, Oct 27, 2003 at 05:42:12PM +0800, Adrian Brock wrote: > > > > When I looked at this before, I found jdbc drivers generate a large > > amount of garbage which causes some slowdown due to increased gcs. > > I also found that as time goes on the database gets slower and slower, maybe > this is just postgres due to its appending of records. > > > > > Are you using transactions? It is on my list of things to do to > > create indices over JMS_MESSAGES for the runtime queries of jdbc2 > > when jboss creates the tables. > > Chances are it is doing a full table scan. > > Not using transactions. > > > > When would a jdbc persistence manager make sense compared to a file > > based one? > > > > See below and jdbc2 let's you store the messages remotely. > > > > The file based pms don't work very well with a large number of > > persistent messages. Messages that don't fit in memory are flushed > > to a cache store on disk. > > For the file pms this means the messages are stored twice > > (the cache and pm don't know about each other). > > jdbc2 implements the cache so flushing a persistent message from memory > > is a no-op. > > So is the key with file based pms to make sure you allocate enough memory to the > cache? > > > > > > Do clustering have any impact on these considerations? > > > > > > > No, but a db should be more fault tolerant than any file based > > system the jboss developers can write. > > Anyone reading this have any kind of figures regarding performance they get > using db for jms persistence? > > In my case I'm populating the queue from a client > application with messages about 700 bytes big. Database is Postgres 7.3.4 with > 512M shared memory. Machine is dual Xeon 2.8GHz with 4Gb RAM + SCSI disks. > I'm getting about 25-30 messages/s, where filebased give me up to 500 > messages/s. > > > > > > Regards, > > Adrian > > > > > Regards, > > -- > > > > Adrian Brock > > Director of Support > > Back Office > > JBoss Group, LLC > > > > > > > > > > --- > > This SF.net email is sponsored by: The SF.net Donation Program. > > Do you like what SourceForge.net is doing for the Open > > Source Community? Make a contribution, and help us add new > > features and functionality. Click here: http://sourceforge.net/donate/ > > ___ > > JBoss-user mailing list > > [EMAIL PROTECTED] > > https://lists.sourceforge.net/lists/listinfo/jboss-user -- Adrian Brock Director of Support Back Office JBoss Group, LLC --- This SF.net email is sponsored by: The SF.net Donation Program. Do you like what SourceForge.net is doing for the Open Source Community? Make a contribution, and help us add new features and functionality. Click here: http://sourceforge.net/donate/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] JMS Persistence Managers and Performance
On Mon, Oct 27, 2003 at 05:42:12PM +0800, Adrian Brock wrote: > > When I looked at this before, I found jdbc drivers generate a large > amount of garbage which causes some slowdown due to increased gcs. I also found that as time goes on the database gets slower and slower, maybe this is just postgres due to its appending of records. > > Are you using transactions? It is on my list of things to do to > create indices over JMS_MESSAGES for the runtime queries of jdbc2 > when jboss creates the tables. > Chances are it is doing a full table scan. Not using transactions. > > When would a jdbc persistence manager make sense compared to a file > based one? > > See below and jdbc2 let's you store the messages remotely. > > The file based pms don't work very well with a large number of > persistent messages. Messages that don't fit in memory are flushed > to a cache store on disk. > For the file pms this means the messages are stored twice > (the cache and pm don't know about each other). > jdbc2 implements the cache so flushing a persistent message from memory > is a no-op. So is the key with file based pms to make sure you allocate enough memory to the cache? > > > Do clustering have any impact on these considerations? > > > > No, but a db should be more fault tolerant than any file based > system the jboss developers can write. Anyone reading this have any kind of figures regarding performance they get using db for jms persistence? In my case I'm populating the queue from a client application with messages about 700 bytes big. Database is Postgres 7.3.4 with 512M shared memory. Machine is dual Xeon 2.8GHz with 4Gb RAM + SCSI disks. I'm getting about 25-30 messages/s, where filebased give me up to 500 messages/s. > > Regards, > Adrian > > > Regards, > -- > > Adrian Brock > Director of Support > Back Office > JBoss Group, LLC > > > > > --- > This SF.net email is sponsored by: The SF.net Donation Program. > Do you like what SourceForge.net is doing for the Open > Source Community? Make a contribution, and help us add new > features and functionality. Click here: http://sourceforge.net/donate/ > ___ > JBoss-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/jboss-user -- Alwyn Schoeman SMART Money Inc. If you're a SMARTY and you're using the better DNS connections, you can access my homepage at http://nevyn.smarties.com.ph/Members/alwyn. The other unlucky ones: http://10.126.68.24/myplone --- This SF.net email is sponsored by: The SF.net Donation Program. Do you like what SourceForge.net is doing for the Open Source Community? Make a contribution, and help us add new features and functionality. Click here: http://sourceforge.net/donate/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Jboss JMS not configurable via service binding?
This is the UIL service correct? UIL was deprecated in favour of UIL2 a while ago. As of 3.2.2 UIL is just a jndi alias to UIL2 so there no real service anymore. You can find the real service in docs/examples/jca if you are interested. But the solution is to remove UIL from the binding service config. This has already been fixed in CVS. I'd recommend choosing an IL (UIL2 is recommended because it works in most circumstances) and binding that to ConnectionFactory/XAConnectionFactory. OIL is the current default because it is slightly more performant, but does not always work i.e. it only works when the server can open a socket on the client. It is very likely that UIL2 will be the default in the future. Regards, Adrian On Mon, 2003-10-27 at 22:40, Clover, James wrote: > I've been messing with port configuration via the cool service binding > stuff. Everything works great, except for JMS. I get this error > message: > > 09:35:14,860 WARN [ServiceConfigurator] Failed to apply service > binding override > javax.management.AttributeNotFoundException: Writable attribute > 'ServerBindPort' not found > at > org.jboss.mx.capability.ReflectedMBeanDispatcher.setAttribute(ReflectedMBeanDispatcher.java:190) > at > org.jboss.mx.server.MBeanServerImpl.setAttribute(MBeanServerImpl.java:500) > at > org.jboss.services.binding.AttributeMappingDelegate.applyConfig(AttributeMappingDelegate.java:77) > at > org.jboss.services.binding.ServiceBindingManager.applyServiceConfig(ServiceBindingManager.java:174) > at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:324) > > To me, this says that the JMS stuff doesn't work properly with the > service binding. Am I right, or am I missing something obvious? > > James -- Adrian Brock Director of Support Back Office JBoss Group, LLC --- This SF.net email is sponsored by: The SF.net Donation Program. Do you like what SourceForge.net is doing for the Open Source Community? Make a contribution, and help us add new features and functionality. Click here: http://sourceforge.net/donate/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Jboss JMS not configurable via service binding?
Title: Jboss JMS not configurable via service binding? I've been messing with port configuration via the cool service binding stuff. Everything works great, except for JMS. I get this error message: 09:35:14,860 WARN [ServiceConfigurator] Failed to apply service binding override javax.management.AttributeNotFoundException: Writable attribute 'ServerBindPort' not found at org.jboss.mx.capability.ReflectedMBeanDispatcher.setAttribute(ReflectedMBeanDispatcher.java:190) at org.jboss.mx.server.MBeanServerImpl.setAttribute(MBeanServerImpl.java:500) at org.jboss.services.binding.AttributeMappingDelegate.applyConfig(AttributeMappingDelegate.java:77) at org.jboss.services.binding.ServiceBindingManager.applyServiceConfig(ServiceBindingManager.java:174) at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) To me, this says that the JMS stuff doesn't work properly with the service binding. Am I right, or am I missing something obvious? James
Re: [JBoss-user] Beginner's question SORTED
> JBoss should also be creating a server logs and boot logs in > JBOSS_HOME\server\default\log. Thanks Jon, I can see my error messages in the server.log. At least I'm not fighting blindfolded now. Cheers J --- This SF.net email is sponsored by: The SF.net Donation Program. Do you like what SourceForge.net is doing for the Open Source Community? Make a contribution, and help us add new features and functionality. Click here: http://sourceforge.net/donate/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] 3.2.2 : Incorrect SQL generation
On Friday 24 October 2003 10:50, Alexey Loubyansky wrote: Hi, > as for me, 3.0.8 is wrong and 3.2.2 is correct. Interesting, especially as another app server (Borland's) generates the same SQL as 3.0.8 > Since you use OR between the terms > > > o.contact.surnameUpper = ?2 OR o.vehicle.registrationNumber = ?3 > > I think, the join should be done per the term, i.e. this way: > > (contact.SURNAME_UPPER = ? AND o.CONTACT_ID=contact.ID) > OR (vehicle.REGNUMBER = ? AND o.VEHICLE_ID=vehicle.ID) The problem with this, is the join is only done if the parameter matched, if not it would return all all records from the detail table due to short circuit evaluation. > > and not > > (contact.SURNAME_UPPER = ? OR vehicle.REGNUMBER = ?) > AND (o.VEHICLE_ID=vehicle.ID AND o.CONTACT_ID=contact.ID) This is correct, IMO, as the join is always done, regardless of whether the parameter matches or not. > If you want the SQL that was generated in 3.0.8, you should use the > following EJB-QL query: > > SELECT OBJECT(o) > FROM BaseTask AS o > WHERE > o.callID = ?1 OR > o.orderNumber = ?4 OR >(o.contact.surnameUpper = ?2 OR > o.vehicle.registrationNumber = ?3 OR > o.address.postCode = ?5) >AND o.contact IS NOT NULL >AND o.vehicle IS NOT NULL >AND o.address IS NOT NULL > > SELECT > o.CALL_ID > FROM > TASK_BASE o, > TASKS_PART_VEHICLE vehicle, > TASKS_PART_CONTACT contact, > TASKS_PART_ADDRESS address > > WHERE > (o.CALL_ID=?) OR > (o.ORDER_NUM=?) OR > ( >(contact.SURNAME_UPPER = ? OR > vehicle.REGNUMBER = ? OR > address.POSTCODE = ?) > AND > o.VEHICLE_ID=vehicle.ID > AND > o.CONTACT_ID=contact.ID > AND > o.ADDRESS_ID=address.ID > AND > o.VEHICLE_ID IS NOT NULL > AND > o.CONTACT_ID IS NOT NULL > AND > o.ADDRESS_ID IS NOT NULL) Which is still wrong as it brings back all the records from the detail tables that don't match the 'id' in the master. Phil -- 5:19pm up 48 days, 19:29, 1 user, load average: 0.20, 0.13, 0.10 ICQ: 760757 | AIM: pjshrimpton | Y!: pjshrimpton | [EMAIL PROTECTED] --- This SF.net email is sponsored by: The SF.net Donation Program. Do you like what SourceForge.net is doing for the Open Source Community? Make a contribution, and help us add new features and functionality. Click here: http://sourceforge.net/donate/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Looking for article on JBoss/Web Services/Axis
Hello All, I am looking for some write-up on developing/using web services with JBoss 3.2.x or JBoss 4.x with Axis. Thanks in advance. rgds MS --- This SF.net email is sponsored by: The SF.net Donation Program. Do you like what SourceForge.net is doing for the Open Source Community? Make a contribution, and help us add new features and functionality. Click here: http://sourceforge.net/donate/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Looking for article on JBoss/XDoclet
Hello All, I am looking for some write-up on using XDoclet for JBoss 3.2.x or JBoss 4.x. Can somebody point me to a website/URL. Thanks in advance. rgds MS --- This SF.net email is sponsored by: The SF.net Donation Program. Do you like what SourceForge.net is doing for the Open Source Community? Make a contribution, and help us add new features and functionality. Click here: http://sourceforge.net/donate/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] Problem with jbossweb-tomcat50.sar in 3.2.2
Thanks for the help. That appeared to fix it. So for future reference if anyone else is experiencing the same problem. It appears it's not good enough to have commons-logging.jar in the server/lib or in the jbossweb-tomcat50.sar. For some reason it needs to be appended onto the classpath of the server itself. Mike -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Remy Maucherat Sent: Saturday, October 25, 2003 8:29 AM To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] Problem with jbossweb-tomcat50.sar in 3.2.2 [EMAIL PROTECTED] wrote: > I dont know if jbossweb-tomcat50.sar is officially supported yet but > Ill notify you of the problem Im having anyway. > > > > I have a .war in an .ear that uses container managed FORM security. I > was originally developing in 3.2.2RC3 + jbossweb-tomcat50.sar instead of > jbossweb-tomcat41.sar. Everything worked great in 3.2.2RC3. However, > when I attempt to deploy my application in 3.2.2 I get the exception > below. It appears to be something wrong with the logging configuration > but I really have no idea what. It also appears to be localized to the > new jbossweb-tomcat50.sar because if I deploy the jbossweb-tomcat50.sar > from 3.2.2RC3 in 3.2.2 everything works fine. In addition if I convert > my web-app to a 2.3 web-app and deploy it in 3.2.2s > jbossweb-tomcat41.sar then it deploys fine. Any ideas? This happened earlier with TC standalone and Struts webapps. Basically, the fix for all cases is to put commons-logging in the main classpath. However, it is very likley that TC 5 will end up using (like 4.1) a JB provided loader for the webapp repositories. This would also solve the problem. -- x Rémy Maucherat Senior Developer & Consultant JBoss Group (Europe) SàRL x --- This SF.net email is sponsored by: The SF.net Donation Program. Do you like what SourceForge.net is doing for the Open Source Community? Make a contribution, and help us add new features and functionality. Click here: http://sourceforge.net/donate/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This SF.net email is sponsored by: The SF.net Donation Program. Do you like what SourceForge.net is doing for the Open Source Community? Make a contribution, and help us add new features and functionality. Click here: http://sourceforge.net/donate/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] weblogic -> jboss transition/translation project?
Thanks! Mensaje citado por Alexey Loubyansky <[EMAIL PROTECTED]>: > http://jboss.org/services/bea-port.jsp > > WebLogic 6.1 > > Your feedback would be highly appreciated. > > alex > > David Ward wrote: > > Hi, all - > > > > Didn't there used to be a project that given weblogic-specific deployment > > descriptors, jboss could automagically translate it to it's own needs and > use it > > (dynamically at deployment time)? > > > > I thought this was undertaken to try to ease migration from weblogic to > jboss. > > Am I smoking something or am I remembering correctly? Any pointers to > > documentation, list/form threads, etc. appreciated. > > > > Thanks, > > David > > > > Oh yeah, what version of weblogic -> jboss was this? My current project > > assignment is running weblogic 8.1, and thinking of moving to jboss > 3.2.2... > > > > > > --- > > This SF.net email is sponsored by: The SF.net Donation Program. > > Do you like what SourceForge.net is doing for the Open > > Source Community? Make a contribution, and help us add new > > features and functionality. Click here: http://sourceforge.net/donate/ > > ___ > > JBoss-user mailing list > > [EMAIL PROTECTED] > > https://lists.sourceforge.net/lists/listinfo/jboss-user > > > > > > > --- > This SF.net email is sponsored by: The SF.net Donation Program. > Do you like what SourceForge.net is doing for the Open > Source Community? Make a contribution, and help us add new > features and functionality. Click here: http://sourceforge.net/donate/ > ___ > JBoss-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/jboss-user > - David Ward [EMAIL PROTECTED] http://www.dotech.com --- This SF.net email is sponsored by: The SF.net Donation Program. Do you like what SourceForge.net is doing for the Open Source Community? Make a contribution, and help us add new features and functionality. Click here: http://sourceforge.net/donate/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] weblogic -> jboss transition/translation project?
http://jboss.org/services/bea-port.jsp WebLogic 6.1 Your feedback would be highly appreciated. alex David Ward wrote: Hi, all - Didn't there used to be a project that given weblogic-specific deployment descriptors, jboss could automagically translate it to it's own needs and use it (dynamically at deployment time)? I thought this was undertaken to try to ease migration from weblogic to jboss. Am I smoking something or am I remembering correctly? Any pointers to documentation, list/form threads, etc. appreciated. Thanks, David Oh yeah, what version of weblogic -> jboss was this? My current project assignment is running weblogic 8.1, and thinking of moving to jboss 3.2.2... --- This SF.net email is sponsored by: The SF.net Donation Program. Do you like what SourceForge.net is doing for the Open Source Community? Make a contribution, and help us add new features and functionality. Click here: http://sourceforge.net/donate/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This SF.net email is sponsored by: The SF.net Donation Program. Do you like what SourceForge.net is doing for the Open Source Community? Make a contribution, and help us add new features and functionality. Click here: http://sourceforge.net/donate/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] native JSP debugging
Hi all, I would like to make use of native JSP debugging (JSR-045) I understand that tomcat 4.x does not support native debugging. I read that Tomcat 5.x does. Is it possible to run JBoss 3.2.2 with Tomcat 5.x? Or is there an existing bundle for this? Thanks, Harm de Laat Informatiefabriek The Netherlands --- This SF.net email is sponsored by: The SF.net Donation Program. Do you like what SourceForge.net is doing for the Open Source Community? Make a contribution, and help us add new features and functionality. Click here: http://sourceforge.net/donate/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] 3.2.2 Connection Pool problem
This is the diff (fairly trivial): http://cvs.sourceforge.net/viewcvs.py/jboss/jbosscx/src/main/org/jboss/resource/adapter/jdbc/WrappedConnection.jpp?r1=1.1.2.8&r2=1.1.2.9 Thanks, that does the trick. Once again I can search obscure bibliographic databases :) -Andrew --- This SF.net email is sponsored by: The SF.net Donation Program. Do you like what SourceForge.net is doing for the Open Source Community? Make a contribution, and help us add new features and functionality. Click here: http://sourceforge.net/donate/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] weblogic -> jboss transition/translation project?
Hi, all - Didn't there used to be a project that given weblogic-specific deployment descriptors, jboss could automagically translate it to it's own needs and use it (dynamically at deployment time)? I thought this was undertaken to try to ease migration from weblogic to jboss. Am I smoking something or am I remembering correctly? Any pointers to documentation, list/form threads, etc. appreciated. Thanks, David Oh yeah, what version of weblogic -> jboss was this? My current project assignment is running weblogic 8.1, and thinking of moving to jboss 3.2.2... --- This SF.net email is sponsored by: The SF.net Donation Program. Do you like what SourceForge.net is doing for the Open Source Community? Make a contribution, and help us add new features and functionality. Click here: http://sourceforge.net/donate/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Antwort: [JBoss-user] Looking for feedback on JBoss/JAAS article.
Hi Dave, good article ! But we should should look for a better place to store it ( e.g. JBoss homepage ) or even better include it into the offical documentation. You should ask Scott ! Regards Ulf
RE: [JBoss-user] JBossNET hot deploymentproblemagain(ClassCastException
I can't see where the problem is, all the classes look to be the same instance. Out of interest, what classloader do you get if you do Class.forName() on the interface class name after the redeploy? Regards, Adrian On Mon, 2003-10-27 at 10:53, Stephane Nicoll wrote: > Adrian, > > Thanks a lot for your help. If you have some time, I would like to understand > what we are trying to find. By the way, I already opened a bug at apache > bugzilla regarding this problem. > > I updated my code as you said. Here's the output > > 2003-10-27 11:43:21,214 INFO [STDOUT] Looked up class: class $Proxy205 > 2003-10-27 11:43:21,215 INFO [STDOUT] Id: 33350386 > 2003-10-27 11:43:21,215 INFO [STDOUT] Interface: interface > com.kiala.kserver.driver.nodesynch.NodeSyncherLocalHome > 2003-10-27 11:43:21,215 INFO [STDOUT] > [EMAIL PROTECTED] > url=file:/var/jboss-3.2.2-kserver/server/default/tmp/deploy/tmp12011kserver-1 > .862.ear ,addedOrder=36} > 2003-10-27 11:43:21,218 INFO [STDOUT] > [EMAIL PROTECTED] > 2003-10-27 11:43:21,218 INFO [STDOUT] > [EMAIL PROTECTED] > 2003-10-27 11:43:21,218 INFO [STDOUT] > [EMAIL PROTECTED] > 2003-10-27 11:43:21,219 INFO [STDOUT] My classloader: > [EMAIL PROTECTED] > 2003-10-27 11:43:21,226 INFO [STDOUT] My class: class $Proxy205 > 2003-10-27 11:43:21,227 INFO [STDOUT] Id: 33350386 > 2003-10-27 11:43:21,227 INFO [STDOUT] Interface: interface > com.kiala.kserver.driver.nodesynch.NodeSyncherLocalHome > 2003-10-27 11:43:21,228 INFO [STDOUT] > [EMAIL PROTECTED] > url=file:/var/jboss-3.2.2-kserver/server/default/tmp/deploy/tmp12011kserver-1 > .862.ear ,addedOrder=36} > 2003-10-27 11:43:21,228 INFO [STDOUT] > [EMAIL PROTECTED] > 2003-10-27 11:43:21,228 INFO [STDOUT] > [EMAIL PROTECTED] > 2003-10-27 11:43:21,228 INFO [STDOUT] > [EMAIL PROTECTED] > 2003-10-27 11:43:21,228 INFO [STDOUT] Now doing narrow > 2003-10-27 11:43:21,228 INFO [STDOUT] narrow is successfull > > Then did 'touch ear' and > > 2003-10-27 11:47:58,040 INFO [STDOUT] Looked up class: class $Proxy513 > 2003-10-27 11:47:58,040 INFO [STDOUT] Id: 19487833 > 2003-10-27 11:47:58,040 INFO [STDOUT] Interface: interface > com.kiala.kserver.driver.nodesynch.NodeSyncherLocalHome > 2003-10-27 11:47:58,040 INFO [STDOUT] > [EMAIL PROTECTED] > url=file:/var/jboss-3.2.2-kserver/server/default/tmp/deploy/tmp12018kserver-1 > .862.ear ,addedOrder=39} > 2003-10-27 11:47:58,040 INFO [STDOUT] > [EMAIL PROTECTED] > 2003-10-27 11:47:58,040 INFO [STDOUT] > [EMAIL PROTECTED] > 2003-10-27 11:47:58,040 INFO [STDOUT] > [EMAIL PROTECTED] > 2003-10-27 11:47:58,040 INFO [STDOUT] My classloader: > [EMAIL PROTECTED] > 2003-10-27 11:47:58,048 INFO [STDOUT] My class: class $Proxy513 > 2003-10-27 11:47:58,048 INFO [STDOUT] Id: 19487833 > 2003-10-27 11:47:58,049 INFO [STDOUT] Interface: interface > com.kiala.kserver.driver.nodesynch.NodeSyncherLocalHome > 2003-10-27 11:47:58,050 INFO [STDOUT] > [EMAIL PROTECTED] > url=file:/var/jboss-3.2.2-kserver/server/default/tmp/deploy/tmp12018kserver-1 > .862.ear ,addedOrder=39} > 2003-10-27 11:47:58,050 INFO [STDOUT] > [EMAIL PROTECTED] > 2003-10-27 11:47:58,050 INFO [STDOUT] > [EMAIL PROTECTED] > 2003-10-27 11:47:58,050 INFO [STDOUT] > [EMAIL PROTECTED] > 2003-10-27 11:47:58,050 INFO [STDOUT] Now doing narrow > 2003-10-27 11:47:58,054 INFO [STDOUT] narrow failed > 2003-10-27 11:47:58,054 INFO [STDOUT] java.lang.ClassCastException > 2003-10-27 11:47:58,056 INFO [STDOUT] at > com.sun.corba.se.internal.javax.rmi.PortableRemoteObject.narrow(PortableRemot > eObject.java:293) > 2003-10-27 11:47:58,056 INFO [STDOUT] at > javax.rmi.PortableRemoteObject.narrow(PortableRemoteObject.java:134) > 2003-10-27 11:47:58,056 INFO [STDOUT] at > org.apache.axis.providers.java.EJBProvider.createRemoteEJB(EJBProvider.java:2 > 06) > 2003-10-27 11:47:58,056 INFO [STDOUT] at > org.apache.axis.providers.java.EJBProvider.makeNewServiceObject(EJBProvider.j > ava:145) > 2003-10-27 11:47:58,056 INFO [STDOUT] at > org.apache.axis.providers.java.JavaProvider.getNewServiceObject(JavaProvider. > java:261) > 2003-10-27 11:47:58,056 INFO [STDOUT] at > org.apache.axis.providers.java.JavaProvider.getServiceObject(JavaProvider.jav > a:138) > 2003-10-27 11:47:58,056 INFO [STDOUT] at > org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java:313) > 2003-10-27 11:47:58,056 INFO [STDOUT] at > org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:7 > 1) > 2003-10-27 11:47:58,057 INFO [STDOUT] at > org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:150) > 2003-10-27 11:47:58,057 INFO [STDOUT] at > org.apache.axis.SimpleChain.invoke(SimpleChain.java:120) > 2003-10-27 11:47:58,057 INFO [STDOUT] at > org.apache.axis.handlers.soap.SOAPService.invoke(SOAPService.java:481) > 2003-10-27 11:47:58,057 INFO [STDOUT] at > org.apache.axis.server.AxisServer.invoke(AxisServer.java:323) > 2003-10-27 11:47:58,057 INFO [STDOUT] at > org.apache.axis.transport.http.AxisServlet.doPost(AxisServle
Re: [JBoss-user] 3.2.2 Connection Pool problem
On Mon, 2003-10-27 at 09:58, Andrew May wrote: > > This has been fixed. > > > > You should also notice that this performs better in 3.2.3RC1 > > compared with 3.2.1 if you always do readonly on the connection. > > > > ReadOnly is now set lazily, so it will only pass the request to the db > > the first time. After that it will remain as readonly until you > > don't setReadOnly(true). > > > > This wasn't working outside a managed transaction. > > > > Regards, > > Adrian > > Adrian, > > Thanks for the fix. Is this a small enough change that I could patch into 3.2.2? If > so, > could you let me know which files were changed, or if I could just drop in the > latest > version of the module that was changed. > This is the diff (fairly trivial): http://cvs.sourceforge.net/viewcvs.py/jboss/jbosscx/src/main/org/jboss/resource/adapter/jdbc/WrappedConnection.jpp?r1=1.1.2.8&r2=1.1.2.9 > Or is it safe enough to go with the latest version of everything in Branch_3_2? > There have been some other changes since 3.2.2, I'm not sure what state Bill's modification is in - he had a new born baby over the weekend. :-) http://cvs.sourceforge.net/viewcvs.py/jboss/jbosscx/src/main/org/jboss/resource/adapter/jdbc/WrappedConnection.jpp?only_with_tag=Branch_3_2 Regards, Adrian > Thanks, > > Andrew > > > > --- > This SF.net email is sponsored by: The SF.net Donation Program. > Do you like what SourceForge.net is doing for the Open > Source Community? Make a contribution, and help us add new > features and functionality. Click here: http://sourceforge.net/donate/ > ___ > JBoss-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/jboss-user -- Adrian Brock Director of Support Back Office JBoss Group, LLC --- This SF.net email is sponsored by: The SF.net Donation Program. Do you like what SourceForge.net is doing for the Open Source Community? Make a contribution, and help us add new features and functionality. Click here: http://sourceforge.net/donate/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] SnmpAdaptor MIB?
Has anyone made a MIB for JBoss now when there is basic SNMP support? For now I need a MIB that covers the traps we send (heartbeat, start/stop and some custom ones). I'm looking at the Weblogic server MIB now to see if I can get some inspiration. How invented ASN.1? It makes sendmail.cf look simple. :-) Anyone else working on this? /Markus --- This SF.net email is sponsored by: The SF.net Donation Program. Do you like what SourceForge.net is doing for the Open Source Community? Make a contribution, and help us add new features and functionality. Click here: http://sourceforge.net/donate/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] 3.2.2 Connection Pool problem
This has been fixed. You should also notice that this performs better in 3.2.3RC1 compared with 3.2.1 if you always do readonly on the connection. ReadOnly is now set lazily, so it will only pass the request to the db the first time. After that it will remain as readonly until you don't setReadOnly(true). This wasn't working outside a managed transaction. Regards, Adrian Adrian, Thanks for the fix. Is this a small enough change that I could patch into 3.2.2? If so, could you let me know which files were changed, or if I could just drop in the latest version of the module that was changed. Or is it safe enough to go with the latest version of everything in Branch_3_2? Thanks, Andrew --- This SF.net email is sponsored by: The SF.net Donation Program. Do you like what SourceForge.net is doing for the Open Source Community? Make a contribution, and help us add new features and functionality. Click here: http://sourceforge.net/donate/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] JMS Persistence Managers and Performance
On Mon, 2003-10-27 at 05:05, Alwyn Schoeman wrote: > Hi, > > I've been doing some testing and found that the file persistence manager is > considerably faster than a jdbc one hosted on the same machine. > > Would it be faster to remote database due to reduced cpu utilization from local > database? > When I looked at this before, I found jdbc drivers generate a large amount of garbage which causes some slowdown due to increased gcs. Are you using transactions? It is on my list of things to do to create indices over JMS_MESSAGES for the runtime queries of jdbc2 when jboss creates the tables. Chances are it is doing a full table scan. The cpu consumed by the db will obviously slowdown jboss. Even when jboss does not need a lot of cpu, it will be getting less timeslice. > When would a jdbc persistence manager make sense compared to a file based one? See below and jdbc2 let's you store the messages remotely. The file based pms don't work very well with a large number of persistent messages. Messages that don't fit in memory are flushed to a cache store on disk. For the file pms this means the messages are stored twice (the cache and pm don't know about each other). jdbc2 implements the cache so flushing a persistent message from memory is a no-op. > Do clustering have any impact on these considerations? > No, but a db should be more fault tolerant than any file based system the jboss developers can write. Regards, Adrian > Regards, -- Adrian Brock Director of Support Back Office JBoss Group, LLC --- This SF.net email is sponsored by: The SF.net Donation Program. Do you like what SourceForge.net is doing for the Open Source Community? Make a contribution, and help us add new features and functionality. Click here: http://sourceforge.net/donate/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] JBossNET hot deployment problem again(ClassCastException
I meant you should examine the classloaders of the interfaces :-) Regards, Adrian On Mon, 2003-10-27 at 09:33, Stephane Nicoll wrote: > Adrian, > > Thanks for the fast reply. I updated the code this way: > > // Lookup > InitialContext context = new InitialContext(); // Will work only for > use as the context is available directly > Object obj = context.lookup("ejb/kiala/nodesynch/NodeSyncherLocal"); > Class clazz = obj.getClass(); > > // Dump class and classloader heirarchy > System.out.println("Looked up class: " + clazz); > System.out.println("Id: " + System.identityHashCode(clazz)); > ClassLoader cl = clazz.getClassLoader(); > while (cl != null) { > System.out.println(cl); > cl = cl.getParent(); > } > > System.out.println("Interfaces of class: " + clazz); > Class[] interfaces = clazz.getInterfaces(); > for (int i = 0; i < interfaces.length; i++) { > System.out.println(interfaces[i]); > } > > // Load the class as seen by this deployment > cl = Thread.currentThread().getContextClassLoader(); > System.out.println("My classloader: " + cl); > clazz = cl.loadClass(obj.getClass().getName()); > > // Dump class and classloader heirarchy > System.out.println("My class: " + clazz); > System.out.println("Id: " + System.identityHashCode(clazz)); > cl = clazz.getClassLoader(); > while (cl != null) { > System.out.println(cl); > cl = cl.getParent(); > } > > System.out.println("Interfaces of class: " + clazz); > interfaces = clazz.getInterfaces(); > for (int i = 0; i < interfaces.length; i++) { > System.out.println(interfaces[i]); > } > > System.out.println("Now doing narrow"); > Object ehome = null; > try { > ehome = javax.rmi.PortableRemoteObject.narrow(ejbHome, > homeClass); > System.out.println("narrow is successfull"); > } catch (ClassCastException e) { > System.out.println("narrow failed"); > e.printStackTrace(System.out); > throw e; > } > -- Adrian Brock Director of Support Back Office JBoss Group, LLC --- This SF.net email is sponsored by: The SF.net Donation Program. Do you like what SourceForge.net is doing for the Open Source Community? Make a contribution, and help us add new features and functionality. Click here: http://sourceforge.net/donate/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] JBossNET hot deployment problem again(ClassCastException
Adrian, Thanks for the fast reply. I updated the code this way: // Lookup InitialContext context = new InitialContext(); // Will work only for use as the context is available directly Object obj = context.lookup("ejb/kiala/nodesynch/NodeSyncherLocal"); Class clazz = obj.getClass(); // Dump class and classloader heirarchy System.out.println("Looked up class: " + clazz); System.out.println("Id: " + System.identityHashCode(clazz)); ClassLoader cl = clazz.getClassLoader(); while (cl != null) { System.out.println(cl); cl = cl.getParent(); } System.out.println("Interfaces of class: " + clazz); Class[] interfaces = clazz.getInterfaces(); for (int i = 0; i < interfaces.length; i++) { System.out.println(interfaces[i]); } // Load the class as seen by this deployment cl = Thread.currentThread().getContextClassLoader(); System.out.println("My classloader: " + cl); clazz = cl.loadClass(obj.getClass().getName()); // Dump class and classloader heirarchy System.out.println("My class: " + clazz); System.out.println("Id: " + System.identityHashCode(clazz)); cl = clazz.getClassLoader(); while (cl != null) { System.out.println(cl); cl = cl.getParent(); } System.out.println("Interfaces of class: " + clazz); interfaces = clazz.getInterfaces(); for (int i = 0; i < interfaces.length; i++) { System.out.println(interfaces[i]); } System.out.println("Now doing narrow"); Object ehome = null; try { ehome = javax.rmi.PortableRemoteObject.narrow(ejbHome, homeClass); System.out.println("narrow is successfull"); } catch (ClassCastException e) { System.out.println("narrow failed"); e.printStackTrace(System.out); throw e; } In the first case (fresh start of JBoss, I got this): 2003-10-27 10:19:36,289 INFO [STDOUT] Looked up class: class $Proxy196 2003-10-27 10:19:36,290 INFO [STDOUT] Id: 19375260 2003-10-27 10:19:36,290 INFO [STDOUT] [EMAIL PROTECTED] url=file:/var/jboss-3.2.2-kserver/server/default/tmp/deploy/tmp13237kserver-1 .856.ear ,addedOrder=36} 2003-10-27 10:19:36,290 INFO [STDOUT] [EMAIL PROTECTED] 2003-10-27 10:19:36,290 INFO [STDOUT] [EMAIL PROTECTED] 2003-10-27 10:19:36,290 INFO [STDOUT] [EMAIL PROTECTED] 2003-10-27 10:19:36,290 INFO [STDOUT] Interfaces of class: class $Proxy196 2003-10-27 10:19:36,294 INFO [STDOUT] interface com.kiala.kserver.driver.nodesynch.NodeSyncherLocalHome 2003-10-27 10:19:36,294 INFO [STDOUT] My classloader: [EMAIL PROTECTED] 2003-10-27 10:19:36,310 INFO [STDOUT] My class: class $Proxy196 2003-10-27 10:19:36,310 INFO [STDOUT] Id: 19375260 2003-10-27 10:19:36,310 INFO [STDOUT] [EMAIL PROTECTED] url=file:/var/jboss-3.2.2-kserver/server/default/tmp/deploy/tmp13237kserver-1 .856.ear ,addedOrder=36} 2003-10-27 10:19:36,310 INFO [STDOUT] [EMAIL PROTECTED] 2003-10-27 10:19:36,310 INFO [STDOUT] [EMAIL PROTECTED] 2003-10-27 10:19:36,310 INFO [STDOUT] [EMAIL PROTECTED] 2003-10-27 10:19:36,310 INFO [STDOUT] Interfaces of class: class $Proxy196 2003-10-27 10:19:36,311 INFO [STDOUT] interface com.kiala.kserver.driver.nodesynch.NodeSyncherLocalHome 2003-10-27 10:19:36,311 INFO [STDOUT] Now doing narrow 2003-10-27 10:19:36,311 INFO [STDOUT] narrow is successfull Then I touched my ear again, wait for redeploy and launch the same test: 2003-10-27 10:24:47,180 INFO [STDOUT] Looked up class: class $Proxy522 2003-10-27 10:24:47,180 INFO [STDOUT] Id: 95356 2003-10-27 10:24:47,181 INFO [STDOUT] [EMAIL PROTECTED] url=file:/var/jboss-3.2.2-kserver/server/default/tmp/deploy/tmp13243kserver-1 .856.ear ,addedOrder=38} 2003-10-27 10:24:47,181 INFO [STDOUT] [EMAIL PROTECTED] 2003-10-27 10:24:47,181 INFO [STDOUT] [EMAIL PROTECTED] 2003-10-27 10:24:47,181 INFO [STDOUT] [EMAIL PROTECTED] 2003-10-27 10:24:47,181 INFO [STDOUT] Interfaces of class: class $Proxy522 2003-10-27 10:24:47,181 INFO [STDOUT] interface com.kiala.kserver.driver.nodesynch.NodeSyncherLocalHome 2003-10-27 10:24:47,181 INFO [STDOUT] My classloader: [EMAIL PROTECTED] 2003-10-27 10:24:47,188 INFO [STDOUT] My class: class $Proxy522 2003-10-27 10:24:47,189 INFO [STDOUT] Id: 95356 2003-10-27 10:24:47,190 INFO [STDOUT] [EMAIL PROTECTED] url=file:/var/jboss-3.2.2-kserver/server/default/tmp/deploy/tmp13243kserver-1 .856.ear ,addedOrder=38} 2003-10-27 10:24:47,190 INFO [STDOUT] [EMAIL PROTECTED] 2003-10-27 10:24:47,191 INFO [STDOUT] [EMAIL PROTECTED] 2003-10-27 10:24:47,191 INFO [STDOUT] [EMAIL PROTECTED] 2003-10-27 10:24:47,191 INFO [STDOUT] Interfaces of class: class $Proxy522 2003-10-27 10:24:47,191 INFO [STDOUT] interface com.kiala.kserver.driver.nodesynch.NodeSyncherLocalHome 2003-10-27 10:24:47,191 INFO [STDOUT] Now doing narrow 20
RE: [JBoss-user] Beginner's question
You can make your DOS box scrollable on NT/W2K/XP. Don't know if it works on 95/98/ME. Try this: * Start your server in the normal way * Click on the window's system menu (icon at left end of title bar) * Select 'Properties' from menu, and then go to the 'Layout' tab * Under 'Screen Buffer Size', enter a big number for 'Height' * Click 'OK' * If you get a message asking you if you want to save these settings for other windows with the same title, you probably do Note that increasing the screen buffer height means that the DOS box has to maintain more history, manage memory, etc., so it can make the process a little slower. As a general note, you can speed up JBoss (and any process which generates a lot of output to a DOS box) by minimising the DOS box (so it doesn't have to deal with screen updates, etc.) Dan. -- Danny Yates -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 23 October 2003 15:31 To: [EMAIL PROTECTED] Subject: [JBoss-user] Beginner's question Hi I'm a Java programmer that's new to JBoss, J2EE and EJBs and I'm trying to get this beginner's hello world tutorial working: http://www.mastertech.net/spumer/Jboss%203%20step-by-step.pdf I've installed JBoss 3.0 on my W98 machine, and I've got the server running in a DOS box. Now whenever I drop my jar file into the deploy directory the server displays about 100 lines of stuff, some of which is error message that I need to read. Stupid thing is, I've no my DOS window doesn't scroll, so I only get to see the last 25 lines or so, so I can't debug my program. Can I get JBoss to output to a file? Or does anyone know how to get W98 to give me a scrolling DOS box? Give it to me simple now :-) Cheers J --- This SF.net email is sponsored by: The SF.net Donation Program. Do you like what SourceForge.net is doing for the Open Source Community? Make a contribution, and help us add new features and functionality. Click here: http://sourceforge.net/donate/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This SF.net email is sponsored by: The SF.net Donation Program. Do you like what SourceForge.net is doing for the Open Source Community? Make a contribution, and help us add new features and functionality. Click here: http://sourceforge.net/donate/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] JBossNET hot deployment problem again (ClassCastException
Now change the code to iterate over clazz.getInterfaces() Regards, Adrian On Mon, 2003-10-27 at 08:11, Stephane Nicoll wrote: > Guys, > > Back from vacation I finnaly ran the code submited by Adrian. I patched > Axis 1.1 final and put the jar in jboss-net. I added some more extra > info arount the narrow (the code which actually fails) with a try catch > that output the original exception > > here's what I tested: > > 1/ Start of JBoss with my ear (as a recall it contains an EJB-module > with a stateless session bean serving soap request and a wsr file > defining my web service + other stuff) > > 2/ I ran my test case which uses the Web service everyting worked fine, > here's the output of your code: > > 2003-10-24 13:28:55,173 INFO [STDOUT] Looked up class: class $Proxy201 > 2003-10-24 13:28:55,173 INFO [STDOUT] Id: 6274035 > 2003-10-24 13:28:55,173 INFO [STDOUT] > [EMAIL PROTECTED] > url=file:/var/jboss-3.2.2-kserver/server/default/tmp/deploy/tmp54590kserver-1.821.ear > ,addedOrder=36} > 2003-10-24 13:28:55,173 INFO [STDOUT] > [EMAIL PROTECTED] > 2003-10-24 13:28:55,173 INFO [STDOUT] > [EMAIL PROTECTED] > 2003-10-24 13:28:55,174 INFO [STDOUT] > [EMAIL PROTECTED] > 2003-10-24 13:28:55,174 INFO [STDOUT] My classloader: > [EMAIL PROTECTED] > 2003-10-24 13:28:55,189 INFO [STDOUT] My class: class $Proxy201 > 2003-10-24 13:28:55,189 INFO [STDOUT] Id: 6274035 > 2003-10-24 13:28:55,190 INFO [STDOUT] > [EMAIL PROTECTED] > url=file:/var/jboss-3.2.2-kserver/server/default/tmp/deploy/tmp54590kserver-1.821.ear > ,addedOrder=36} > 2003-10-24 13:28:55,190 INFO [STDOUT] > [EMAIL PROTECTED] > 2003-10-24 13:28:55,190 INFO [STDOUT] > [EMAIL PROTECTED] > 2003-10-24 13:28:55,190 INFO [STDOUT] > [EMAIL PROTECTED] > 2003-10-24 13:28:55,190 INFO [STDOUT] Now doing narrow > 2003-10-24 13:28:55,190 INFO [STDOUT] narrow is successfull > > > 3/ I did touch myear.ear which leads Jboss to do the hot deploy then I > ran the same test agains (which failed ClassCast and the rest). Here is > the output of your code: > > 2003-10-24 13:31:49,530 INFO [STDOUT] Looked up class: class $Proxy512 > 2003-10-24 13:31:49,531 INFO [STDOUT] Id: 10719598 > 2003-10-24 13:31:49,531 INFO [STDOUT] > [EMAIL PROTECTED] > url=file:/var/jboss-3.2.2-kserver/server/default/tmp/deploy/tmp54595kserver-1.821.ear > ,addedOrder=37} > 2003-10-24 13:31:49,531 INFO [STDOUT] > [EMAIL PROTECTED] > 2003-10-24 13:31:49,531 INFO [STDOUT] > [EMAIL PROTECTED] > 2003-10-24 13:31:49,531 INFO [STDOUT] > [EMAIL PROTECTED] > 2003-10-24 13:31:49,531 INFO [STDOUT] My classloader: > [EMAIL PROTECTED] > 2003-10-24 13:31:49,546 INFO [STDOUT] My class: class $Proxy512 > 2003-10-24 13:31:49,549 INFO [STDOUT] Id: 10719598 > 2003-10-24 13:31:49,549 INFO [STDOUT] > [EMAIL PROTECTED] > url=file:/var/jboss-3.2.2-kserver/server/default/tmp/deploy/tmp54595kserver-1.821.ear > ,addedOrder=37} > 2003-10-24 13:31:49,549 INFO [STDOUT] > [EMAIL PROTECTED] > 2003-10-24 13:31:49,550 INFO [STDOUT] > [EMAIL PROTECTED] > 2003-10-24 13:31:49,550 INFO [STDOUT] > [EMAIL PROTECTED] > 2003-10-24 13:31:49,550 INFO [STDOUT] Now doing narrow > 2003-10-24 13:31:49,553 INFO [STDOUT] narrow failed > 2003-10-24 13:31:51,075 INFO [STDOUT] Looked up class: class $Proxy512 > 2003-10-24 13:31:51,075 INFO [STDOUT] Id: 10719598 > 2003-10-24 13:31:51,076 INFO [STDOUT] > [EMAIL PROTECTED] > url=file:/var/jboss-3.2.2-kserver/server/default/tmp/deploy/tmp54595kserver-1.821.ear > ,addedOrder=37} > 2003-10-24 13:31:51,076 INFO [STDOUT] > [EMAIL PROTECTED] > 2003-10-24 13:31:51,076 INFO [STDOUT] > [EMAIL PROTECTED] > 2003-10-24 13:31:51,077 INFO [STDOUT] > [EMAIL PROTECTED] > 2003-10-24 13:31:51,077 INFO [STDOUT] My classloader: > [EMAIL PROTECTED] > 2003-10-24 13:31:51,077 INFO [STDOUT] My class: class $Proxy512 > 2003-10-24 13:31:51,077 INFO [STDOUT] Id: 10719598 > 2003-10-24 13:31:51,077 INFO [STDOUT] > [EMAIL PROTECTED] > url=file:/var/jboss-3.2.2-kserver/server/default/tmp/deploy/tmp54595kserver-1.821.ear > ,addedOrder=37} > 2003-10-24 13:31:51,077 INFO [STDOUT] > [EMAIL PROTECTED] > 2003-10-24 13:31:51,077 INFO [STDOUT] > [EMAIL PROTECTED] > 2003-10-24 13:31:51,077 INFO [STDOUT] > [EMAIL PROTECTED] > 2003-10-24 13:31:51,077 INFO [STDOUT] Now doing narrow > 2003-10-24 13:31:51,078 INFO [STDOUT] narrow is successfull > > -> The very first invocation after the hot deployment lead to a narrow > failed (exception is): > > 2003-10-24 13:44:06,300 INFO [STDOUT] narrow failed > 2003-10-24 13:44:06,300 INFO [STDOUT] java.lang.ClassCastException > 2003-10-24 13:44:06,301 INFO [STDOUT] at > com.sun.corba.se.internal.javax.rmi.PortableRemoteObject.narrow(PortableRemoteObject.java:293) > 2003-10-24 13:44:06,301 INFO [STDOUT] at > javax.rmi.PortableRemoteObject.narrow(PortableRemoteObject.java:134) > 2003-10-24 13:44:06,302 INFO [STDOUT] at > org.apache.axis.providers.java.EJBProvider.createRemoteEJB(EJBProvider.java:198) > 2003-10-24 13:44:06,302 INFO [STDOUT] at
[JBoss-user] JBossNET hot deployment problem again (ClassCastException
Guys, Back from vacation I finnaly ran the code submited by Adrian. I patched Axis 1.1 final and put the jar in jboss-net. I added some more extra info arount the narrow (the code which actually fails) with a try catch that output the original exception here's what I tested: 1/ Start of JBoss with my ear (as a recall it contains an EJB-module with a stateless session bean serving soap request and a wsr file defining my web service + other stuff) 2/ I ran my test case which uses the Web service everyting worked fine, here's the output of your code: 2003-10-24 13:28:55,173 INFO [STDOUT] Looked up class: class $Proxy201 2003-10-24 13:28:55,173 INFO [STDOUT] Id: 6274035 2003-10-24 13:28:55,173 INFO [STDOUT] [EMAIL PROTECTED] url=file:/var/jboss-3.2.2-kserver/server/default/tmp/deploy/tmp54590kserver-1.821.ear ,addedOrder=36} 2003-10-24 13:28:55,173 INFO [STDOUT] [EMAIL PROTECTED] 2003-10-24 13:28:55,173 INFO [STDOUT] [EMAIL PROTECTED] 2003-10-24 13:28:55,174 INFO [STDOUT] [EMAIL PROTECTED] 2003-10-24 13:28:55,174 INFO [STDOUT] My classloader: [EMAIL PROTECTED] 2003-10-24 13:28:55,189 INFO [STDOUT] My class: class $Proxy201 2003-10-24 13:28:55,189 INFO [STDOUT] Id: 6274035 2003-10-24 13:28:55,190 INFO [STDOUT] [EMAIL PROTECTED] url=file:/var/jboss-3.2.2-kserver/server/default/tmp/deploy/tmp54590kserver-1.821.ear ,addedOrder=36} 2003-10-24 13:28:55,190 INFO [STDOUT] [EMAIL PROTECTED] 2003-10-24 13:28:55,190 INFO [STDOUT] [EMAIL PROTECTED] 2003-10-24 13:28:55,190 INFO [STDOUT] [EMAIL PROTECTED] 2003-10-24 13:28:55,190 INFO [STDOUT] Now doing narrow 2003-10-24 13:28:55,190 INFO [STDOUT] narrow is successfull 3/ I did touch myear.ear which leads Jboss to do the hot deploy then I ran the same test agains (which failed ClassCast and the rest). Here is the output of your code: 2003-10-24 13:31:49,530 INFO [STDOUT] Looked up class: class $Proxy512 2003-10-24 13:31:49,531 INFO [STDOUT] Id: 10719598 2003-10-24 13:31:49,531 INFO [STDOUT] [EMAIL PROTECTED] url=file:/var/jboss-3.2.2-kserver/server/default/tmp/deploy/tmp54595kserver-1.821.ear ,addedOrder=37} 2003-10-24 13:31:49,531 INFO [STDOUT] [EMAIL PROTECTED] 2003-10-24 13:31:49,531 INFO [STDOUT] [EMAIL PROTECTED] 2003-10-24 13:31:49,531 INFO [STDOUT] [EMAIL PROTECTED] 2003-10-24 13:31:49,531 INFO [STDOUT] My classloader: [EMAIL PROTECTED] 2003-10-24 13:31:49,546 INFO [STDOUT] My class: class $Proxy512 2003-10-24 13:31:49,549 INFO [STDOUT] Id: 10719598 2003-10-24 13:31:49,549 INFO [STDOUT] [EMAIL PROTECTED] url=file:/var/jboss-3.2.2-kserver/server/default/tmp/deploy/tmp54595kserver-1.821.ear ,addedOrder=37} 2003-10-24 13:31:49,549 INFO [STDOUT] [EMAIL PROTECTED] 2003-10-24 13:31:49,550 INFO [STDOUT] [EMAIL PROTECTED] 2003-10-24 13:31:49,550 INFO [STDOUT] [EMAIL PROTECTED] 2003-10-24 13:31:49,550 INFO [STDOUT] Now doing narrow 2003-10-24 13:31:49,553 INFO [STDOUT] narrow failed 2003-10-24 13:31:51,075 INFO [STDOUT] Looked up class: class $Proxy512 2003-10-24 13:31:51,075 INFO [STDOUT] Id: 10719598 2003-10-24 13:31:51,076 INFO [STDOUT] [EMAIL PROTECTED] url=file:/var/jboss-3.2.2-kserver/server/default/tmp/deploy/tmp54595kserver-1.821.ear ,addedOrder=37} 2003-10-24 13:31:51,076 INFO [STDOUT] [EMAIL PROTECTED] 2003-10-24 13:31:51,076 INFO [STDOUT] [EMAIL PROTECTED] 2003-10-24 13:31:51,077 INFO [STDOUT] [EMAIL PROTECTED] 2003-10-24 13:31:51,077 INFO [STDOUT] My classloader: [EMAIL PROTECTED] 2003-10-24 13:31:51,077 INFO [STDOUT] My class: class $Proxy512 2003-10-24 13:31:51,077 INFO [STDOUT] Id: 10719598 2003-10-24 13:31:51,077 INFO [STDOUT] [EMAIL PROTECTED] url=file:/var/jboss-3.2.2-kserver/server/default/tmp/deploy/tmp54595kserver-1.821.ear ,addedOrder=37} 2003-10-24 13:31:51,077 INFO [STDOUT] [EMAIL PROTECTED] 2003-10-24 13:31:51,077 INFO [STDOUT] [EMAIL PROTECTED] 2003-10-24 13:31:51,077 INFO [STDOUT] [EMAIL PROTECTED] 2003-10-24 13:31:51,077 INFO [STDOUT] Now doing narrow 2003-10-24 13:31:51,078 INFO [STDOUT] narrow is successfull -> The very first invocation after the hot deployment lead to a narrow failed (exception is): 2003-10-24 13:44:06,300 INFO [STDOUT] narrow failed 2003-10-24 13:44:06,300 INFO [STDOUT] java.lang.ClassCastException 2003-10-24 13:44:06,301 INFO [STDOUT] at com.sun.corba.se.internal.javax.rmi.PortableRemoteObject.narrow(PortableRemoteObject.java:293) 2003-10-24 13:44:06,301 INFO [STDOUT] at javax.rmi.PortableRemoteObject.narrow(PortableRemoteObject.java:134) 2003-10-24 13:44:06,302 INFO [STDOUT] at org.apache.axis.providers.java.EJBProvider.createRemoteEJB(EJBProvider.java:198) 2003-10-24 13:44:06,302 INFO [STDOUT] at org.apache.axis.providers.java.EJBProvider.makeNewServiceObject(EJBProvider.java:145) 2003-10-24 13:44:06,302 INFO [STDOUT] at org.apache.axis.providers.java.JavaProvider.getNewServiceObject(JavaProvider.java:261) 2003-10-24 13:44:06,303 INFO [STDOUT] at org.apache.axis.providers.java.JavaProvider.getServiceObject(JavaProvider.java:138) 2003-10-24 13:44:06,303