Re: [JBoss-user] JBOSS 2.4.6 primkey Error message
Hello Sundaram, have you tried changing itemid type from int to Integer. Though, I am not sure that is the problem. Good luck, alex Thursday, May 23, 2002, 11:03:12 PM, you wrote: SR> Hi SR> I am getting following error in JBoss-2.4.6_Tomcat-4.0.3. I don't know what I am doing wrong. SR> Error SR> SR> [ERROR,ContainerFactory] SR> Bean : RoomService SR> Section: 9.4.7.1 SR> Warning: The type of the field named in the primkey-field element must match the SR> class in the prim-key-class element. SR> ejb-jar.xml SR> --- SR> SR> RoomService SR> RoomService SR> com.percipia.ptce.xmlapps.RoomServiceHome SR> com.percipia.ptce.xmlapps.RoomService SR> com.percipia.ptce.xmlapps.RoomServiceBean SR> Container SR> java.lang.Integer SR> False SR> itemid SR> itemname SR> itemdesc SR> price SR> itemid SR> SR> jaws.xml SR> SR> SR> DefaultDS SR> mySQL SR> SR> false SR> false SR> true SR> false SR> 300 SR> SR> SR> SR> RoomService SR> roomservice SR> false SR> false SR> true SR> false SR> 300 SR> false SR> SR> itemid SR> itemid SR> int SR> INTEGER SR> SR> SR> itemname SR> itemname SR> varchar(50) SR> VARCHAR SR> SR> SR> itemdesc SR> itemdesc SR> varchar(200) SR> VARCHAR SR> SR> SR> price SR> price SR> float SR> FLOAT SR> SR> SR> SR> SR> my MySQL table SR> CREATE TABLE roomservice( SR> itemid INT NOT NULL AUTO_INCREMENT, SR> itemname VARCHAR(50), SR> itemdesc VARCHAR(200), SR> price float DEFAULT 0 , SR> PRIMARY KEY (itemid)); SR> my Bean Class SR> /** SR> * Implementation of Business Methods for RoomService objects. SR> */ SR> public class RoomServiceBean implements EntityBean { SR> /* CMP FIELDS AND ACCESSORS */ SR> public int itemid; SR> public int getItemid() { return itemid; } SR> public void setItemid(int value) { itemid = value; } SR> public java.lang.String itemname; SR> public java.lang.String getItemname() { return itemname; } SR> public void setItemname(java.lang.String value) { itemname = value; } SR> public java.lang.String itemdesc; SR> public java.lang.String getItemdesc() { return itemdesc; } SR> public void setItemdesc(java.lang.String value) { itemdesc = value; } SR> public float price; SR> public float getPrice() { return price; } SR> public void setPrice(float value) { price = value; } SR> /* SR> * EJB Create Methods SR> */ SR> public java.lang.Integer ejbCreate(java.lang.Integer id) SR> throws CreateException { SR> /** SR> * @todo You must set the properties of this bean SR> * based on what was passed to this create method. SR> */ SR> return null; SR> } SR> public void ejbPostCreate(java.lang.Integer id) { SR> } SR> my Home Interface SR> public interface RoomServiceHome extends EJBHome { SR> /* EJB CREATE METHODS */ SR> public RoomService create(java.lang.Integer id) SR> throws RemoteException, CreateException; SR> /* EJB FINDER METHODS */ SR> public RoomService findByPrimaryKey(java.lang.Integer id) SR> throws RemoteException, FinderException; SR> public Collection findAll() throws java.rmi.RemoteException, javax.ejb.FinderException; SR> } SR> any help? SR> Sundaram Ramasamy -- Best regards, Alex Loubyansky ___ Don't miss the 2002 Sprint PCS Application Developer's Conference August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Ryan Kannegiesser is out of the office.
I will be out of the office starting May 24, 2002 and will not return until May 28, 2002. I will reply to your message when I return. Ryan ___ Don't miss the 2002 Sprint PCS Application Developer's Conference August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: AW: [JBoss-user] HELP : Stable JVM for running JBoss on Redhat 7.2(smp) ??
I dont think using SUN's supplied jdk rpms, or using redhat's postgresql rpm is the way to go. 1) USE BLACKDOWN jdk. 2) COMPILE and TUNE postgresql by your own. Thats why you are using *NIX and opensource isnt it?? Cause you can fine tune any piece of it. Although you can install packages from source rpms, if you really need full configurability, and decent SW management then the ports collection of FreeBSD is the answer. ___ Don't miss the 2002 Sprint PCS Application Developer's Conference August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] ÊÖ»ú¼Û×îµÍ£¬·þÎñÕæÂúÒâ¡£
ÄúºÃ£º ÎÒ·¢ÏÖÁËÒ»¸öÂôÊÖ»úµÄÍøÕ¾£¬¼Û¸ñ¾ªÈ˵ıãÒË£¬ºóÀ´Á˽⵽´ËÍøÕ¾ÊǹúÄÚÒ»¼Ò±È½Ï´óµÄÊÖ»úÅú·¢É̽¨ÉèµÄÍøÕ¾£¬ºÜ¶àÍøÓÑͨ¹ý´ËÍøÕ¾Âòµ½Á˳ÆÐÄÈçÒâµÄÊÖ»ú£¬È«²¿ÊÖ»ú¶¼ÊÇÕýÆ·Ðлõ£¬ÊÛºó·þÎñºÜºÃ¡£ÍøÕ¾ÄÚÈÝÒ²ºÜ·á¸»£¬¼¸ºõ°üÀ¨ÁËÊÖ»úµÄ·½·½ÃæÃ棬¶ÔÄú¿Ï¶¨ÓаïÖú£¬ÌرðÍƼö¸øÄã¡£ÍøַΪ£º http://www.139shop.com/asp/mem-from.asp?uid=waynetan ÎҾͲ»¶à˵ÁË£¬Äã¿´Á˾ÍÖªµÀÁË¡£ ÄãµÄºÃÅóÓÑ£ºwaynetan ʹÓü«ÐÇÓʼþȺ·¢£¬ÎÞÐëͨ¹ýÓʼþ·þÎñÆ÷£¬Ö±´ï¶Ô·½ÓÊÏ䣬ËٶȾø¶ÔÒ»Á÷£¡ ÏÂÔØÍøÖ·£ºhttp://www.lovexin.com£¬¸ü¶àÃâ·ÑµÄ³¬¿áÈí¼þµÈÄãÀ´Ï¡¡ INFORMATION This message has been sent using a trial-run version of the TSmtpRelayServer Delphi Component. ___ Don't miss the 2002 Sprint PCS Application Developer's Conference August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: tangent: Re: [JBoss-user] Is it possible to use a Local Interface to an EJB from an MBean t hread in the same VM?
> There may be some problems with serialized datasources, at the moment you > might need to look up the ds from its name if you don't bind using an > object factory. I was going to use the org.jboss.naming.NonSerializableFactory to bind, so there shouldn't be any issues there afaics. thanks dim > > david jencks > > On 2002.05.23 19:44:02 -0400 Dmitri Colebatch wrote: > > Hi, > > > > This is something I was going to ask anyway, and kinda ties in here. > > > > If I develop a module, and bind it locally in JNDI, and this module > > requires database access. Can I have something like what JD > > drew below, and maintain tx context... eg: > > > > 1. client calls EJB with required tx > > 2. EJB calls my module > > 3. my module accesses db through DataSource > > 4. my module returns > > 5. EJB call completes, and tx commits > > > > make sense? I'm not introducing any new threads, so afaik it should be > > ok - but wanted to check? COuld someone confirm for me > > please? > > > > cheers > > dim > > > > - Original Message - > > From: "David Jencks" <[EMAIL PROTECTED]> > > To: <[EMAIL PROTECTED]> > > Sent: Friday, May 24, 2002 7:15 AM > > Subject: Re: [JBoss-user] Is it possible to use a Local Interface to an > > EJB from an MBean t hread in the same VM? > > > > > > > If you start a new thread, you've lost your transaction context. The > > error > > > looks a bit as if a transaction is missing. How about trying with a > > > current jboss 3 version and telling us what the transaction settings on > > > your ejb's are? > > > > > > david jencks > > > > > > On 2002.05.23 16:35:00 -0400 JD Brennan wrote: > > > > I've got > > > > > > > > client -> EJB -> MBean -> EJB > > > > 12 3 4 > > > > > > > > this works fine when 2, 3 and 4 are all in the same > > > > thread, but when I have the MBean create a new thread > > > > I get NullPointerException (stack trace is below) trying > > > > to call my EJB through a local interface. > > > > > > > > I'm using an MBean so I can create a thread to have > > > > things run asynchronously in JBoss. Is this not > > > > the right way to design this? Should it work? > > > > > > > > JBoss 3.0 Beta > > > > Linux > > > > JDK 1.4 > > > > > > > > Thanks! > > > > JD > > > > > > > > Stack trace: > > > > 13:22:08,797 ERROR [LogInterceptor] TransactionRolledbackException, > > > > causedBy: > > > > java.lang.NullPointerException > > > > at > > > > org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.getApplicationTxDataMap(JDBC > > > > StoreManager.java:196) > > > > at > > > > org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.getApplicationTxData(JDBCSto > > > > reManager.java:212) > > > > at > > > > org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.getEntityTxDataMap(JDBCStore > > > > Manager.java:224) > > > > at > > > > org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.getEntityTxData(JDBCStoreMan > > > > ager.java:233) > > > > at > > > > org.jboss.ejb.plugins.cmp.jdbc.ReadAheadCache.getPreloadDataMap(ReadAheadCac > > > > he.java:368) > > > > at > > > > org.jboss.ejb.plugins.cmp.jdbc.ReadAheadCache.load(ReadAheadCache.java:204) > > > > at > > > > org.jboss.ejb.plugins.cmp.jdbc.JDBCLoadEntityCommand.execute(JDBCLoadEntityC > > > > ommand.java:76) > > > > at > > > > org.jboss.ejb.plugins.cmp.jdbc.JDBCLoadEntityCommand.execute(JDBCLoadEntityC > > > > ommand.java:62) > > > > at > > > > org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.loadEntity(JDBCStoreManager. > > > > java:415) > > > > at > > > > org.jboss.ejb.plugins.CMPPersistenceManager.loadEntity(CMPPersistenceManager > > > > .java:388) > > > > at > > > > org.jboss.resource.connectionmanager.CachedConnectionInterceptor.loadEntity( > > > > CachedConnectionInterceptor.java:304) > > > > at > > > > org.jboss.ejb.plugins.EntitySynchronizationInterceptor.invoke(EntitySynchron > > > > izationInterceptor.java:283) > > > > at > > > > org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(Cach > > > > edConnectionInterceptor.java:147) > > > > at > > > > org.jboss.ejb.plugins.EntityInstanceInterceptor.invoke(EntityInstanceInterce > > > > ptor.java:187) > > > > at > > > > org.jboss.ejb.plugins.EntityLockInterceptor.invoke(EntityLockInterceptor.jav > > > > a:107) > > > > at > > > > org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor > > > > .java:96) > > > > at > > > > org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT. > > > > java:219) > > > > at > > > > org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:61) > > > > at > > > > org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:12 > > > > 7) > > > > at > > > > org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:166) > > > > at org.jboss.ejb.EntityContainer.invoke(EntityContainer.java:474)
Re: tangent: Re: [JBoss-user] Is it possible to use a Local Interface to an EJB from an MBean t hread in the same VM?
Sure, unless the call starts a new thread or goes through an interceptor stack, as far as jboss is concerned its the same context/object/whatever. There may be some problems with serialized datasources, at the moment you might need to look up the ds from its name if you don't bind using an object factory. david jencks On 2002.05.23 19:44:02 -0400 Dmitri Colebatch wrote: > Hi, > > This is something I was going to ask anyway, and kinda ties in here. > > If I develop a module, and bind it locally in JNDI, and this module > requires database access. Can I have something like what JD > drew below, and maintain tx context... eg: > > 1. client calls EJB with required tx > 2. EJB calls my module > 3. my module accesses db through DataSource > 4. my module returns > 5. EJB call completes, and tx commits > > make sense? I'm not introducing any new threads, so afaik it should be > ok - but wanted to check? COuld someone confirm for me > please? > > cheers > dim > > - Original Message - > From: "David Jencks" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Friday, May 24, 2002 7:15 AM > Subject: Re: [JBoss-user] Is it possible to use a Local Interface to an > EJB from an MBean t hread in the same VM? > > > > If you start a new thread, you've lost your transaction context. The > error > > looks a bit as if a transaction is missing. How about trying with a > > current jboss 3 version and telling us what the transaction settings on > > your ejb's are? > > > > david jencks > > > > On 2002.05.23 16:35:00 -0400 JD Brennan wrote: > > > I've got > > > > > > client -> EJB -> MBean -> EJB > > > 12 3 4 > > > > > > this works fine when 2, 3 and 4 are all in the same > > > thread, but when I have the MBean create a new thread > > > I get NullPointerException (stack trace is below) trying > > > to call my EJB through a local interface. > > > > > > I'm using an MBean so I can create a thread to have > > > things run asynchronously in JBoss. Is this not > > > the right way to design this? Should it work? > > > > > > JBoss 3.0 Beta > > > Linux > > > JDK 1.4 > > > > > > Thanks! > > > JD > > > > > > Stack trace: > > > 13:22:08,797 ERROR [LogInterceptor] TransactionRolledbackException, > > > causedBy: > > > java.lang.NullPointerException > > > at > > > org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.getApplicationTxDataMap(JDBC > > > StoreManager.java:196) > > > at > > > org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.getApplicationTxData(JDBCSto > > > reManager.java:212) > > > at > > > org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.getEntityTxDataMap(JDBCStore > > > Manager.java:224) > > > at > > > org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.getEntityTxData(JDBCStoreMan > > > ager.java:233) > > > at > > > org.jboss.ejb.plugins.cmp.jdbc.ReadAheadCache.getPreloadDataMap(ReadAheadCac > > > he.java:368) > > > at > > > org.jboss.ejb.plugins.cmp.jdbc.ReadAheadCache.load(ReadAheadCache.java:204) > > > at > > > org.jboss.ejb.plugins.cmp.jdbc.JDBCLoadEntityCommand.execute(JDBCLoadEntityC > > > ommand.java:76) > > > at > > > org.jboss.ejb.plugins.cmp.jdbc.JDBCLoadEntityCommand.execute(JDBCLoadEntityC > > > ommand.java:62) > > > at > > > org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.loadEntity(JDBCStoreManager. > > > java:415) > > > at > > > org.jboss.ejb.plugins.CMPPersistenceManager.loadEntity(CMPPersistenceManager > > > .java:388) > > > at > > > org.jboss.resource.connectionmanager.CachedConnectionInterceptor.loadEntity( > > > CachedConnectionInterceptor.java:304) > > > at > > > org.jboss.ejb.plugins.EntitySynchronizationInterceptor.invoke(EntitySynchron > > > izationInterceptor.java:283) > > > at > > > org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(Cach > > > edConnectionInterceptor.java:147) > > > at > > > org.jboss.ejb.plugins.EntityInstanceInterceptor.invoke(EntityInstanceInterce > > > ptor.java:187) > > > at > > > org.jboss.ejb.plugins.EntityLockInterceptor.invoke(EntityLockInterceptor.jav > > > a:107) > > > at > > > org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor > > > .java:96) > > > at > > > org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT. > > > java:219) > > > at > > > org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:61) > > > at > > > org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:12 > > > 7) > > > at > > > org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:166) > > > at org.jboss.ejb.EntityContainer.invoke(EntityContainer.java:474) > > > at > > > org.jboss.ejb.plugins.local.BaseLocalContainerInvoker.invoke(BaseLocalContai > > > nerInvoker.java:307) > > > at > > > org.jboss.ejb.plugins.local.BaseLocalContainerInvoker$EntityProxy.invoke(Bas > > >
tangent: Re: [JBoss-user] Is it possible to use a Local Interface to an EJB from an MBean t hread in the same VM?
Hi, This is something I was going to ask anyway, and kinda ties in here. If I develop a module, and bind it locally in JNDI, and this module requires database access. Can I have something like what JD drew below, and maintain tx context... eg: 1. client calls EJB with required tx 2. EJB calls my module 3. my module accesses db through DataSource 4. my module returns 5. EJB call completes, and tx commits make sense? I'm not introducing any new threads, so afaik it should be ok - but wanted to check? COuld someone confirm for me please? cheers dim - Original Message - From: "David Jencks" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, May 24, 2002 7:15 AM Subject: Re: [JBoss-user] Is it possible to use a Local Interface to an EJB from an MBean t hread in the same VM? > If you start a new thread, you've lost your transaction context. The error > looks a bit as if a transaction is missing. How about trying with a > current jboss 3 version and telling us what the transaction settings on > your ejb's are? > > david jencks > > On 2002.05.23 16:35:00 -0400 JD Brennan wrote: > > I've got > > > > client -> EJB -> MBean -> EJB > > 12 3 4 > > > > this works fine when 2, 3 and 4 are all in the same > > thread, but when I have the MBean create a new thread > > I get NullPointerException (stack trace is below) trying > > to call my EJB through a local interface. > > > > I'm using an MBean so I can create a thread to have > > things run asynchronously in JBoss. Is this not > > the right way to design this? Should it work? > > > > JBoss 3.0 Beta > > Linux > > JDK 1.4 > > > > Thanks! > > JD > > > > Stack trace: > > 13:22:08,797 ERROR [LogInterceptor] TransactionRolledbackException, > > causedBy: > > java.lang.NullPointerException > > at > > org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.getApplicationTxDataMap(JDBC > > StoreManager.java:196) > > at > > org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.getApplicationTxData(JDBCSto > > reManager.java:212) > > at > > org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.getEntityTxDataMap(JDBCStore > > Manager.java:224) > > at > > org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.getEntityTxData(JDBCStoreMan > > ager.java:233) > > at > > org.jboss.ejb.plugins.cmp.jdbc.ReadAheadCache.getPreloadDataMap(ReadAheadCac > > he.java:368) > > at > > org.jboss.ejb.plugins.cmp.jdbc.ReadAheadCache.load(ReadAheadCache.java:204) > > at > > org.jboss.ejb.plugins.cmp.jdbc.JDBCLoadEntityCommand.execute(JDBCLoadEntityC > > ommand.java:76) > > at > > org.jboss.ejb.plugins.cmp.jdbc.JDBCLoadEntityCommand.execute(JDBCLoadEntityC > > ommand.java:62) > > at > > org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.loadEntity(JDBCStoreManager. > > java:415) > > at > > org.jboss.ejb.plugins.CMPPersistenceManager.loadEntity(CMPPersistenceManager > > .java:388) > > at > > org.jboss.resource.connectionmanager.CachedConnectionInterceptor.loadEntity( > > CachedConnectionInterceptor.java:304) > > at > > org.jboss.ejb.plugins.EntitySynchronizationInterceptor.invoke(EntitySynchron > > izationInterceptor.java:283) > > at > > org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(Cach > > edConnectionInterceptor.java:147) > > at > > org.jboss.ejb.plugins.EntityInstanceInterceptor.invoke(EntityInstanceInterce > > ptor.java:187) > > at > > org.jboss.ejb.plugins.EntityLockInterceptor.invoke(EntityLockInterceptor.jav > > a:107) > > at > > org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor > > .java:96) > > at > > org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT. > > java:219) > > at > > org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:61) > > at > > org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:12 > > 7) > > at > > org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:166) > > at org.jboss.ejb.EntityContainer.invoke(EntityContainer.java:474) > > at > > org.jboss.ejb.plugins.local.BaseLocalContainerInvoker.invoke(BaseLocalContai > > nerInvoker.java:307) > > at > > org.jboss.ejb.plugins.local.BaseLocalContainerInvoker$EntityProxy.invoke(Bas > > eLocalContainerInvoker.java:407) > > at $Proxy531.getTaskType(Unknown Source) > > at > > com.rendition.service.TaskDaemon$TaskRunner.run(TaskDaemon.java:420) > > at java.lang.Thread.run(Thread.java:536) > > 13:22:08,802 ERROR [STDERR] javax.ejb.TransactionRolledbackLocalException: > > Error getting application tx data map. > > Embedded Exception > > null; nested exception is: > > javax.ejb.EJBException: Error getting application tx data map. > > Embedded Exception > > null > > Embedded Exception > > Error getting application tx data map. > > Embedded Exception > > null; nested exception
Re: [JBoss-user] unsubscribing
use the "edit options" button at the bottom of the page. - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, May 23, 2002 11:34 PM Subject: Re: [JBoss-user] unsubscribing > Hi Tim, > > thank you, but I've already tried that and it doesn't point me to a way for >unsubscribinj, but only for subscribing. If I try to insert my email address and password again it tells me I0'm already subscribed! > > What should I do? > > Thanks again > > __ > > > Fai i tuoi acquisti su www.kwshopping.it > > > ___ > > Don't miss the 2002 Sprint PCS Application Developer's Conference > August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm > > ___ > JBoss-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/jboss-user ___ Don't miss the 2002 Sprint PCS Application Developer's Conference August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] locking in initializing cluster
It's trying to do multicast is the problem I believe. Normally that isn't set up under windows (is my shady understanding - I ran into this on my windows laptap, moved the cluster-service.xml file, and became happy). -danch Emerson Cargnin - MSA wrote: > I didn't get your point. > it tries to open a connection to where? I'm connected to a network, if you > think this could be the problem. And sometimes it didn't happen... > > - Original Message - > From: "Dain Sundstrom" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Wednesday, May 22, 2002 1:56 PM > Subject: Re: [JBoss-user] locking in initializing cluster > > > >>Because it tries to open a network connection, and there is no way to >>put a timeout in JDK 1.3, which causes it to wait forever. You can fix >>this by adding multicast to the loopback device. I don't know how you >>do this, but it is what I have been told. >> >>-dain >> >>Emerson Cargnin - MSA wrote: >> >> >>>Why does cluster initialization locks jboss (3.0 any RC*)? >>> >>>I made the workaround removing cluster-service.xml, but i think there >>>must be another solution. >>> >>> >>> >>>Emerson Cargnin - MSA >>>SICREDI - Ramal 3358-4860 >>> >>> >> >> >>___ >> >>Don't miss the 2002 Sprint PCS Application Developer's Conference >>August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm >> >>___ >>JBoss-user mailing list >>[EMAIL PROTECTED] >>https://lists.sourceforge.net/lists/listinfo/jboss-user >> > > > ___ > > Don't miss the 2002 Sprint PCS Application Developer's Conference > August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm > > ___ > JBoss-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/jboss-user > -- = Disclaimer: All statements are my own, personal opinions and have nothing to do with the opinions of employer, wife, or cat. They may not have anything to do with objective reality, as a matter of fact. Your Milage May Vary, Excludes Delivery Charges, etc. = ___ Don't miss the 2002 Sprint PCS Application Developer's Conference August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] locking in initializing cluster
I didn't get your point. it tries to open a connection to where? I'm connected to a network, if you think this could be the problem. And sometimes it didn't happen... - Original Message - From: "Dain Sundstrom" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, May 22, 2002 1:56 PM Subject: Re: [JBoss-user] locking in initializing cluster > Because it tries to open a network connection, and there is no way to > put a timeout in JDK 1.3, which causes it to wait forever. You can fix > this by adding multicast to the loopback device. I don't know how you > do this, but it is what I have been told. > > -dain > > Emerson Cargnin - MSA wrote: > > > Why does cluster initialization locks jboss (3.0 any RC*)? > > > > I made the workaround removing cluster-service.xml, but i think there > > must be another solution. > > > > > > > > Emerson Cargnin - MSA > > SICREDI - Ramal 3358-4860 > > > > > > ___ > > Don't miss the 2002 Sprint PCS Application Developer's Conference > August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm > > ___ > JBoss-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/jboss-user ___ Don't miss the 2002 Sprint PCS Application Developer's Conference August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Is it possible to use a Local Interface to an EJB from an MBean t hread in the same VM?
If you start a new thread, you've lost your transaction context. The error looks a bit as if a transaction is missing. How about trying with a current jboss 3 version and telling us what the transaction settings on your ejb's are? david jencks On 2002.05.23 16:35:00 -0400 JD Brennan wrote: > I've got > > client -> EJB -> MBean -> EJB > 12 3 4 > > this works fine when 2, 3 and 4 are all in the same > thread, but when I have the MBean create a new thread > I get NullPointerException (stack trace is below) trying > to call my EJB through a local interface. > > I'm using an MBean so I can create a thread to have > things run asynchronously in JBoss. Is this not > the right way to design this? Should it work? > > JBoss 3.0 Beta > Linux > JDK 1.4 > > Thanks! > JD > > Stack trace: > 13:22:08,797 ERROR [LogInterceptor] TransactionRolledbackException, > causedBy: > java.lang.NullPointerException > at > org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.getApplicationTxDataMap(JDBC > StoreManager.java:196) > at > org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.getApplicationTxData(JDBCSto > reManager.java:212) > at > org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.getEntityTxDataMap(JDBCStore > Manager.java:224) > at > org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.getEntityTxData(JDBCStoreMan > ager.java:233) > at > org.jboss.ejb.plugins.cmp.jdbc.ReadAheadCache.getPreloadDataMap(ReadAheadCac > he.java:368) > at > org.jboss.ejb.plugins.cmp.jdbc.ReadAheadCache.load(ReadAheadCache.java:204) > at > org.jboss.ejb.plugins.cmp.jdbc.JDBCLoadEntityCommand.execute(JDBCLoadEntityC > ommand.java:76) > at > org.jboss.ejb.plugins.cmp.jdbc.JDBCLoadEntityCommand.execute(JDBCLoadEntityC > ommand.java:62) > at > org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.loadEntity(JDBCStoreManager. > java:415) > at > org.jboss.ejb.plugins.CMPPersistenceManager.loadEntity(CMPPersistenceManager > .java:388) > at > org.jboss.resource.connectionmanager.CachedConnectionInterceptor.loadEntity( > CachedConnectionInterceptor.java:304) > at > org.jboss.ejb.plugins.EntitySynchronizationInterceptor.invoke(EntitySynchron > izationInterceptor.java:283) > at > org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(Cach > edConnectionInterceptor.java:147) > at > org.jboss.ejb.plugins.EntityInstanceInterceptor.invoke(EntityInstanceInterce > ptor.java:187) > at > org.jboss.ejb.plugins.EntityLockInterceptor.invoke(EntityLockInterceptor.jav > a:107) > at > org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor > .java:96) > at > org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT. > java:219) > at > org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:61) > at > org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:12 > 7) > at > org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:166) > at org.jboss.ejb.EntityContainer.invoke(EntityContainer.java:474) > at > org.jboss.ejb.plugins.local.BaseLocalContainerInvoker.invoke(BaseLocalContai > nerInvoker.java:307) > at > org.jboss.ejb.plugins.local.BaseLocalContainerInvoker$EntityProxy.invoke(Bas > eLocalContainerInvoker.java:407) > at $Proxy531.getTaskType(Unknown Source) > at > com.rendition.service.TaskDaemon$TaskRunner.run(TaskDaemon.java:420) > at java.lang.Thread.run(Thread.java:536) > 13:22:08,802 ERROR [STDERR] javax.ejb.TransactionRolledbackLocalException: > Error getting application tx data map. > Embedded Exception > null; nested exception is: > javax.ejb.EJBException: Error getting application tx data map. > Embedded Exception > null > Embedded Exception > Error getting application tx data map. > Embedded Exception > null; nested exception is: > javax.ejb.EJBException: Error getting application tx data map. > Embedded Exception > null > -- > > > > > > > Is it possible to use a Local Interface to an EJB from an MBean > thread in the same VM? > > > > I've got > > > client -> EJB -> MBean -> EJB > 1 > 2 > 3 4 > > > this works fine when 2, 3 and 4 are all in the > same > thread, but when I have the MBean create a new > thread > I get NullPointerException (stack trace is below) > trying > to call my EJB through a local interface. > > > I'm using an MBean so I can create a thread to > have > things run asynchronously in JBoss. Is this > not > the right way to design this? Should it > work? > > > JBoss 3.0 Beta > Linux > JDK 1.4 > > > Thanks! > JD > > > Stack trace: > 13:22:08,797 ERROR [LogInterceptor] > TransactionRolledbackException, causedBy: > java.lang.NullPointerException > at > >org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.getApplicationTxDataMap(JDBCStoreManager.java:196) > at >
[JBoss-user] Is it possible to use a Local Interface to an EJB from an MBean thread in the same VM?
Title: Is it possible to use a Local Interface to an EJB from an MBean thread in the same VM? I've got client -> EJB -> MBean -> EJB 1 2 3 4 this works fine when 2, 3 and 4 are all in the same thread, but when I have the MBean create a new thread I get NullPointerException (stack trace is below) trying to call my EJB through a local interface. I'm using an MBean so I can create a thread to have things run asynchronously in JBoss. Is this not the right way to design this? Should it work? JBoss 3.0 Beta Linux JDK 1.4 Thanks! JD Stack trace: 13:22:08,797 ERROR [LogInterceptor] TransactionRolledbackException, causedBy: java.lang.NullPointerException at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.getApplicationTxDataMap(JDBCStoreManager.java:196) at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.getApplicationTxData(JDBCStoreManager.java:212) at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.getEntityTxDataMap(JDBCStoreManager.java:224) at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.getEntityTxData(JDBCStoreManager.java:233) at org.jboss.ejb.plugins.cmp.jdbc.ReadAheadCache.getPreloadDataMap(ReadAheadCache.java:368) at org.jboss.ejb.plugins.cmp.jdbc.ReadAheadCache.load(ReadAheadCache.java:204) at org.jboss.ejb.plugins.cmp.jdbc.JDBCLoadEntityCommand.execute(JDBCLoadEntityCommand.java:76) at org.jboss.ejb.plugins.cmp.jdbc.JDBCLoadEntityCommand.execute(JDBCLoadEntityCommand.java:62) at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.loadEntity(JDBCStoreManager.java:415) at org.jboss.ejb.plugins.CMPPersistenceManager.loadEntity(CMPPersistenceManager.java:388) at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.loadEntity(CachedConnectionInterceptor.java:304) at org.jboss.ejb.plugins.EntitySynchronizationInterceptor.invoke(EntitySynchronizationInterceptor.java:283) at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:147) at org.jboss.ejb.plugins.EntityInstanceInterceptor.invoke(EntityInstanceInterceptor.java:187) at org.jboss.ejb.plugins.EntityLockInterceptor.invoke(EntityLockInterceptor.java:107) at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:96) at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:219) at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:61) at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:127) at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:166) at org.jboss.ejb.EntityContainer.invoke(EntityContainer.java:474) at org.jboss.ejb.plugins.local.BaseLocalContainerInvoker.invoke(BaseLocalContainerInvoker.java:307) at org.jboss.ejb.plugins.local.BaseLocalContainerInvoker$EntityProxy.invoke(BaseLocalContainerInvoker.java:407) at $Proxy531.getTaskType(Unknown Source) at com.rendition.service.TaskDaemon$TaskRunner.run(TaskDaemon.java:420) at java.lang.Thread.run(Thread.java:536) 13:22:08,802 ERROR [STDERR] javax.ejb.TransactionRolledbackLocalException: Error getting application tx data map. Embedded Exception null; nested exception is: javax.ejb.EJBException: Error getting application tx data map. Embedded Exception null Embedded Exception Error getting application tx data map. Embedded Exception null; nested exception is: javax.ejb.EJBException: Error getting application tx data map. Embedded Exception null --
[JBoss-user] LDap example
ANyone can help me with that? I need to make use of JAAS using ldap as subjects storages, but i need to use tomcat standalone as the web container. What's the better way to accomplish this? 1- Using tomcat own ldap LoginModule to make the authentication? and afterwards use the subject gotten by tomcat in ejb invocations? 2- Using jboss ldap LoginModule to make the authentication and autorization ? if there's any other approaches to do this, i'd be pleased to know. And if someone has any working example of any of this or other approaches, please send me a link to it : ) Thanks in advance Emerson Cargnin - MSASICREDI - Ramal 3358-4860
[JBoss-user] JBOSS 2.4.6 primkey Error message
HiI am getting following error in JBoss-2.4.6_Tomcat-4.0.3. I don't know what I am doing wrong.Error[ERROR,ContainerFactory]Bean : RoomServiceSection: 9.4.7.1Warning: The type of the field named in the primkey-field element must match theclass in the prim-key-class element.ejb-jar.xml---RoomServiceRoomServicecom.percipia.ptce.xmlapps.RoomServiceHomecom.percipia.ptce.xmlapps.RoomServicecom.percipia.ptce.xmlapps.RoomServiceBeanContainerjava.lang.IntegerFalse itemid itemname itemdesc price itemidjaws.xmlDefaultDSmySQLfalsefalsetruefalse300RoomServiceroomservicefalsefalsetruefalse300falseitemiditemidintINTEGERitemnameitemnamevarchar(50)VARCHARitemdescitemdescvarchar(200)VARCHARpricepricefloatFLOATmy MySQL tableCREATE TABLE roomservice(itemid INT NOT NULL AUTO_INCREMENT,itemname VARCHAR(50),itemdesc VARCHAR(200),price float DEFAULT 0 ,PRIMARY KEY (itemid));my Bean Class/*** Implementation of Business Methods for RoomService objects.*/public class RoomServiceBean implements EntityBean {/* CMP FIELDS AND ACCESSORS */public int itemid;public int getItemid() { return itemid; }public void setItemid(int value) { itemid = value; }public java.lang.String itemname;public java.lang.String getItemname() { return itemname; }public void setItemname(java.lang.String value) { itemname = value; }public java.lang.String itemdesc;public java.lang.String getItemdesc() { return itemdesc; }public void setItemdesc(java.lang.String value) { itemdesc = value; }public float price;public float getPrice() { return price; }public void setPrice(float value) { price = value; }/** EJB Create Methods*/public java.lang.Integer ejbCreate(java.lang.Integer id)throws CreateException {/*** @todo You must set the properties of this bean* based on what was passed to this create method.*/return null;}public void ejbPostCreate(java.lang.Integer id) {}my Home Interfacepublic interface RoomServiceHome extends EJBHome {/* EJB CREATE METHODS */public RoomService create(java.lang.Integer id)throws RemoteException, CreateException;/* EJB FINDER METHODS */public RoomService findByPrimaryKey(java.lang.Integer id)throws RemoteException, FinderException;public Collection findAll() throws java.rmi.RemoteException, javax.ejb.FinderException;}any help?Sundaram Ramasamy
[JBoss-user] Unsubscibing from this mailing list
Can anyone tell me how can I unsubscribe me? At the URL https://lists.sourceforge.net/lists/listinfo/jboss-user I can only find how to subscribe, and if I try to insert my password again it tells me I'm already subscribed. So what's the standard procedure to do so? Thanx Andrea __ Fai i tuoi acquisti su www.kwshopping.it ___ Don't miss the 2002 Sprint PCS Application Developer's Conference August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Re: RE: [JBoss-dev] Open-Source Fight Flares At Pentagon
I suppose they must be using data from that new study that shows that security through obscurity actually works...ha ha > > From: "Mike Finn" <[EMAIL PROTECTED]> > Date: 2002/05/23 Thu PM 02:14:21 EDT > To: <[EMAIL PROTECTED]>, ><[EMAIL PROTECTED]> > Subject: RE: [JBoss-dev] Open-Source Fight Flares At Pentagon > > They are so cute when they try to convince the world their platforms are > more secure > > I thought I'd share my favorites: > > "I've never seen a systematic study that showed open source to be more > secure," said Dorothy Denning, a professor of computer science at Georgetown > University who specializes in information warfare. > --- Is there a systematic study that says they were less secure??? What a > bozo statement. > > "Microsoft's push is a new front in a long-running company assault on the > open-source movement, which company officials have called "a cancer" and > un-American." > un-American? In the sense that "American" means anything MS profits from, I > guess. > a Cancer? No wonder I feel dirty. I liken those f&%^#ing macro viruses more > to a cancer than anything else. > > "Microsoft also said open-source software is inherently less secure because > the code is available for the world to examine for flaws, making it possible > for hackers or criminals to exploit them. Proprietary software, the company > argued, is more secure because of its closed nature." > > Hmm. If they say it, it must be true. Just more FUD-rhetoric. Nevermind > that there are (I would argue) FAR more well-meaning folks testing OSS > software than ill-meaning ones. > > #mike > > > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]]On Behalf Of Scott > M Stark > Sent: Thursday, May 23, 2002 1:45 PM > To: [EMAIL PROTECTED]; > [EMAIL PROTECTED] > Subject: [JBoss-dev] Open-Source Fight Flares At Pentagon > > > Microsoft tries to squelch Open Source at the pentagon, but apparently many > at the pentagon are seeing the light. > > http://www.washingtonpost.com/wp-dyn/articles/A60050-2002May22.html > > > > > ___ > > Don't miss the 2002 Sprint PCS Application Developer's Conference > August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm > > ___ > Jboss-development mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/jboss-development > > > ___ > > Don't miss the 2002 Sprint PCS Application Developer's Conference > August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm > > ___ > Jboss-development mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/jboss-development > ___ Don't miss the 2002 Sprint PCS Application Developer's Conference August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] RE: [JBoss-dev] Open-Source Fight Flares At Pentagon
Mike Finn wrote: > > "Microsoft also said open-source software is inherently less secure because > the code is available for the world to examine for flaws, making it possible > for hackers or criminals to exploit them. Proprietary software, the company > argued, is more secure because of its closed nature." > Umm, yah, that's why it took until NT4 for them to fix that neat little LanManager hash issue - where the password hash sent over the LAN was cleartext equivalent. I wonder if Microsoft's developers really believe that it's that hard to reverse engineer weak algorythms. Apparently 'more secure' is equivalent to "I can't tell if there are any backdoors because I don't have the source." Maybe, "It must be more secure: I can't verify that it's mathematically correct!" The same principal is why science done by hermits in mountain hideaways has been so much more influential to modern technology than science done openly in an environment where peer review and reproduction of experimental results is critical to acceptance. pfah! First they take bad engineering ("Windows won't run without Internet Explorer") and use it as an excuse for monopolistic practices, and then they take bad security practices ("If we tell them how it works, they'll break it") and try to make it a virtue! Hrm... Here's the loaded question for Microsoft's talking heads: "If open source security is so bad, why did you use kerberos under Windows 2000?" OK, back to work. -danch ___ Don't miss the 2002 Sprint PCS Application Developer's Conference August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] RE: [JBoss-dev] Open-Source Fight Flares At Pentagon
They are so cute when they try to convince the world their platforms are more secure I thought I'd share my favorites: "I've never seen a systematic study that showed open source to be more secure," said Dorothy Denning, a professor of computer science at Georgetown University who specializes in information warfare. --- Is there a systematic study that says they were less secure??? What a bozo statement. "Microsoft's push is a new front in a long-running company assault on the open-source movement, which company officials have called "a cancer" and un-American." un-American? In the sense that "American" means anything MS profits from, I guess. a Cancer? No wonder I feel dirty. I liken those f&%^#ing macro viruses more to a cancer than anything else. "Microsoft also said open-source software is inherently less secure because the code is available for the world to examine for flaws, making it possible for hackers or criminals to exploit them. Proprietary software, the company argued, is more secure because of its closed nature." Hmm. If they say it, it must be true. Just more FUD-rhetoric. Nevermind that there are (I would argue) FAR more well-meaning folks testing OSS software than ill-meaning ones. #mike -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Scott M Stark Sent: Thursday, May 23, 2002 1:45 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: [JBoss-dev] Open-Source Fight Flares At Pentagon Microsoft tries to squelch Open Source at the pentagon, but apparently many at the pentagon are seeing the light. http://www.washingtonpost.com/wp-dyn/articles/A60050-2002May22.html ___ Don't miss the 2002 Sprint PCS Application Developer's Conference August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm ___ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development ___ Don't miss the 2002 Sprint PCS Application Developer's Conference August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-dev] Re: [JBoss-user] Open-Source Fight Flares At Pentagon
Hi Geeks I funny to see that the more M$ is bitching about open-source the more people notice open-source and at starting to evaluate it. Most people, I think, realized that M$ with its history of buggy and un- secure software is not reliable or at least giving the impression of the need for a backup if M$ application fails. M$ started a trend (killing competitors with free software) which is going to hurt, maybe kill themself because open-source is not only free but also increase trust by providing the code. So, hopefully, M$ is going on with this smear campain and we can take advantage out of it. Have fun - Andy ___ Don't miss the 2002 Sprint PCS Application Developer's Conference August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Open-Source Fight Flares At Pentagon
Don't the DOD and State Department already use JBoss? -dain Scott M Stark wrote: > Microsoft tries to squelch Open Source at the pentagon, but apparently many > at the pentagon are seeing the light. > > http://www.washingtonpost.com/wp-dyn/articles/A60050-2002May22.html > > > > > ___ > > Don't miss the 2002 Sprint PCS Application Developer's Conference > August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm > > ___ > JBoss-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/jboss-user > ___ Don't miss the 2002 Sprint PCS Application Developer's Conference August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Open-Source Fight Flares At Pentagon
Microsoft tries to squelch Open Source at the pentagon, but apparently many at the pentagon are seeing the light. http://www.washingtonpost.com/wp-dyn/articles/A60050-2002May22.html ___ Don't miss the 2002 Sprint PCS Application Developer's Conference August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] Access InitialContext of Tomcat 4.0.2
Dirk, If you are trying to access the Tomcat JNDI from an external program then you are most likely out of luck since it doesn't look as if Tomcat is exposing it via a port like JBoss does. "Tomcat 4 provides a JNDI InitialContext implementation instance to web applications running under it" Key words being "under it". You can read for yourself at: http://jakarta.apache.org/tomcat/tomcat-4.0-doc/jndi-resources-howto.html If you want to access the JNDI from _within_ a Servlet then simply use: Context jndiContext = new InitialContext() ; If we have all misunderstood you and you are trying to access the JBoss JNDI from a standalone Tomcat then use this in your Servlet code: Properties props = new Properties(); props.setProperty(Context.INITIAL_CONTEXT_FACTORY,"org.jnp.interfaces.NamingContextFactory"); props.setProperty(Context.URL_PKG_PREFIXES,"org.jnp.interfaces"); props.setProperty(Context.PROVIDER_URL,"localhost:1099"); InitialContext jndiContext = new InitialContext(props); Obviously change localhost if JBoss is running on a different machine. You would also need to add a link to (linux) or copy the following files from $JBOSS_DIST/client to $CATALINA_HOME/lib : jboss-client.jar jboss-common-client.jar jboss-j2ee.jar jbosssx-client.jar jnet.jar jnp-client.jar log4j.jar Good luck. > Message: 11 > From: "Dirk Storck" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Subject: AW: [JBoss-user] Access InitialContext of Tomcat 4.0.2 > Date: Thu, 23 May 2002 15:39:08 +0200 > Reply-To: [EMAIL PROTECTED] > > No from a stand alone Tomcat > Thanks ! > > > How can I access the InitialContext of Tomcat from whithin an > > external java > > programm? ___ Don't miss the 2002 Sprint PCS Application Developer's Conference August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
AW: [JBoss-user] HELP : Stable JVM for running JBoss on Redhat 7.2(smp) ??
>ps. SuSE is way better than RedHat :-) Really? Why? (in context to using jboss with it? ) I'm using Suse, but want to switch to red hat, because we had some trouble to get the newest rpm versions for suse. Eg. Postgres. bye Stefan ___ Don't miss the 2002 Sprint PCS Application Developer's Conference August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] HELP : Stable JVM for running JBoss on Redhat 7.2(smp) ??
We're using SuSE linux now but before, when we had red-hat, I remember it was extermely important to install the jvm via rpm from sun. You can download a tar.gz jvm or you can get the red-hat rpm. If we used the tar.gz version it failed miserably all the time. When we installed their rpm things worked. Hope this helps. ps. SuSE is way better than RedHat :-) -Dennis On Thu, 2002-05-23 at 02:29, Craig O'Shannessy wrote: > Hi, > > I am desperately trying to keep JBoss running without the JVM crashing on > Redhat 7.2. I have spent days trying to track down the problems, but to > no avail. I cannot find a stable JVM to run with JBoss (both 2.4.5 or > 3.0.0_RC2). We need to import large amounts of legacy data, and I can't > get more than 10% of the way through before the JVM crashes. > > Does anyone have a stable PRODUCTION JBoss environment running on Redhat > 7.2 SMP??, if so, please let me know what JDK you are using, and any > patches you have had to apply. > > I have tried the following JDK's > > Sun JDK 1.4.0 > Sun JDK 1.3.1 > Sun JDK 1.3.1_03 > IBM JDK 1.3.1_01 (had to use "LD_ASSUME_KERNEL=2.2.5" for smp machine) > Blackdown JDK 1.3.1_01 (both native and green threads, both give sig 11) > > ALL of them crash (with Signal 11, SEGV) (both the smp (dual athlon) > machine and uni processor machines). I have been researching this with a > colleague for days, and no one seems to have a solution to this issue. If > you have faced this issue and solved it, PLEASE let me know! > > I upgraded glibc*rpm which helped with a SMP specific (pthreads) sig. 11 > crash, but I am still don't have a production qualitiy environment. > > HELP!! I *REALLY* don't want to have to run this server on windoze, and > we have to deploy soon. > > Please CC me in any reply. > > Thanks, > > Craig O'Shannessy > > > > > ___ > > Don't miss the 2002 Sprint PCS Application Developer's Conference > August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm > > ___ > JBoss-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/jboss-user > ___ Don't miss the 2002 Sprint PCS Application Developer's Conference August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Success with JBoss
Hi, very quick note to day I've had JBoss with Oracle and MySQL running on a win2K server for the last 2 months now. And its ace. Using version 2.4.4 and have zero problems. Hurrah! Its a small site - about 300 registered users logging on a day. But I am still very pleased with JBoss. Jonathan -- This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. ___ Don't miss the 2002 Sprint PCS Application Developer's Conference August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] HELP : Stable JVM for running JBoss on Redhat 7.2 (smp) ??
Let us know if JRockit solves your problems. I'm personally interested in what you find out. Thanks > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]]On Behalf Of Craig > O'Shannessy > Sent: Thursday, May 23, 2002 4:30 AM > To: [EMAIL PROTECTED] > Subject: [JBoss-user] HELP : Stable JVM for running JBoss on Redhat 7.2 > (smp) ?? > > > Hi, > > I am desperately trying to keep JBoss running without the JVM crashing on > Redhat 7.2. I have spent days trying to track down the problems, but to > no avail. I cannot find a stable JVM to run with JBoss (both 2.4.5 or > 3.0.0_RC2). We need to import large amounts of legacy data, and I can't > get more than 10% of the way through before the JVM crashes. > > Does anyone have a stable PRODUCTION JBoss environment running on Redhat > 7.2 SMP??, if so, please let me know what JDK you are using, and any > patches you have had to apply. > > I have tried the following JDK's > > Sun JDK 1.4.0 > Sun JDK 1.3.1 > Sun JDK 1.3.1_03 > IBM JDK 1.3.1_01 (had to use "LD_ASSUME_KERNEL=2.2.5" for smp machine) > Blackdown JDK 1.3.1_01 (both native and green threads, both give sig 11) > > ALL of them crash (with Signal 11, SEGV) (both the smp (dual athlon) > machine and uni processor machines). I have been researching this with a > colleague for days, and no one seems to have a solution to this issue. If > you have faced this issue and solved it, PLEASE let me know! > > I upgraded glibc*rpm which helped with a SMP specific (pthreads) sig. 11 > crash, but I am still don't have a production qualitiy environment. > > HELP!! I *REALLY* don't want to have to run this server on windoze, and > we have to deploy soon. > > Please CC me in any reply. > > Thanks, > > Craig O'Shannessy > > > > > ___ > > Don't miss the 2002 Sprint PCS Application Developer's Conference > August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm > > ___ > JBoss-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/jboss-user ___ Don't miss the 2002 Sprint PCS Application Developer's Conference August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
AW: [JBoss-user] Access InitialContext of Tomcat 4.0.2
No from a stand alone Tomcat Thanks ! -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]Im Auftrag von Coetmeur, Alain Gesendet: Donnerstag, 23. Mai 2002 15:10 An: '[EMAIL PROTECTED]'; Tomcat User (E-Mail) Betreff: RE: [JBoss-user] Access InitialContext of Tomcat 4.0.2 > -Message d'origine- > De: Dirk Storck [mailto:[EMAIL PROTECTED]] > Date: jeudi 23 mai 2002 01:51 > À: Jboss User (E-Mail); Tomcat User (E-Mail) > Objet: [JBoss-user] Access InitialContext of Tomcat 4.0.2 > > > > Hi, > > I know it doesnt belongs to this mailing list but maybe > someone can help. > > How can I access the InitialContext of Tomcat from whithin an > external java > programm? from the embedded catalina ? there are no tomcat InitialContext, since jboss propose it's own InitialContext... to contact EJB and MBeans resources, just include the jboss\client\jnp-client.jar, the jndi.properties and alike as explained in jboss doc http://www.jboss.org/online-manual/HTML/ch01s15.html if you want to use a separate Tomcat, in order to contact Jboss resources you need to add the same jnp-client.jar, jndi.properties to the server classpath (I think you can simply put it in the common/lib ) ___ Don't miss the 2002 Sprint PCS Application Developer's Conference August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user ___ Don't miss the 2002 Sprint PCS Application Developer's Conference August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] unsubscribing
Hi Tim, thank you, but I've already tried that and it doesn't point me to a way for unsubscribinj, but only for subscribing. If I try to insert my email address and password again it tells me I0'm already subscribed! What should I do? Thanks again __ Fai i tuoi acquisti su www.kwshopping.it ___ Don't miss the 2002 Sprint PCS Application Developer's Conference August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] JBoss 2.4.4 NameAlreadyBoundException
Hi, I eventually found the problem, the entity bean was trying to initialise the datasource from the JNDI in the constructor of the bean, when, according to the EJB spec, the constrcutor when it is called by the container does not yet have access to the JNDI environment for that bean. Moving the call to this method to outside the constructor solved the problem. Many thanks anyway for your prompt reply and apologies for wasting your time. Thanks Graham -Original Message- From: Scott M Stark [mailto:[EMAIL PROTECTED]] Sent: 22 May 2002 19:16 To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] JBoss 2.4.4 NameAlreadyBoundException Show the full log of the jar deployment. If the jar is something you can post to SourceForge open a bug and attach the jar. Scott Stark Chief Technology Officer JBoss Group, LLC - Original Message - From: "Graham French" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, May 22, 2002 10:28 AM Subject: [JBoss-user] JBoss 2.4.4 NameAlreadyBoundException > Hi, > > I have an jar that contains two ejbs: one stateless session > (AuthenticationManager) and one BMP entity (ToolUser) > When I deploy it under JBoss 2.4.4, I get the stack trace below. If I > comment out one > of the ejbs in the deployment descriptors, it deploys fine. > When I put back just the minimal stuff to declare the second ejb, it > gives me the error below. I've also supplied my deployment descriptors to > see if this sheds anly light on the problem. The datasources described in > the descriptors are loaded by JBoss OK. > > I would be grateful for any clues/help as I can't see where I've gone > wrong. > > Thanks > Graham > > > Prior to this stack trace, JBoss had successfully bound the environment > entries for AuthenticationManager. > > 2002-05-22 18:17:06,011 DEBUG (Logger.java:106) Begin java:comp/env for > EJB: ToolUser > 2002-05-22 18:17:06,021 DEBUG (Logger.java:106) TCL: > java.net.URLClassLoader@199939 > 2002-05-22 18:17:06,021 ERROR (Logger.java:170) Could not set up > environment > javax.naming.NameAlreadyBoundException; remaining name 'env' > at > org.jnp.server.NamingServer.createSubcontext(NamingServer.java:451) > at > org.jnp.interfaces.NamingContext.createSubcontext(NamingContext.java:648) > at > org.jnp.interfaces.NamingContext.createSubcontext(NamingContext.java:634) > at org.jboss.ejb.Container.setupEnvironment(Container.java:447) > at org.jboss.ejb.Container.init(Container.java:359) > at org.jboss.ejb.EntityContainer.init(EntityContainer.java:273) > at org.jboss.ejb.Application.init(Application.java:202) > at org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:372) > at org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:306) > > > > JavaBeans 1.1//EN" "http://java.sun.com/j2ee/dtds/ejb-jar_1_1.dtd";> > > pufferfish/Maitai bean components > pufferfish-Maitai-beans > > > ToolUser > > com.digitalrum.maitai.entity.tools.user.ToolUserHome > > com.digitalrum.maitai.entity.tools.user.ToolUser > > com.digitalrum.maitai.entity.tools.user.ToolUserBean > Bean > > com.digitalrum.maitai.entity.StringPK > False > > > deployment-id > > java.lang.String > > pufferfish > > > jndi-name > > java.lang.String > > pufferfish/Maitai/ToolUser > > > > DBConnectionPoolName > > java.lang.String > > tools_env_pool > > > > DataSourceName > > java.lang.String > > tools_env_src > > > > jdbc/tools_env_src > javax.sql.DataSource > Container > > > > AuthenticationManager > > com.digitalrum.maitai.session.tools.authentication.AuthenticationManag > erHome > > com.digitalrum.maitai.session.tools.authentication.AuthenticationMan > ager > > com.digitalrum.maitai.session.tools.authentication.Authentication > ManagerBean > Stateless > Container > > > ejbref/ToolUser > > java.lang.String > > Maitai/ToolUser > > > > deployment-id > > java.lang.String > > pufferfish > > > jndi-name > > java.lang.String > > pufferfish/Maitai/AuthenticationManager > > > > DBConnectionPoolName > > java.lang.String > > tools_env_pool > > > > DataSourceName > > java.lang.String > > tools_env_src > > > > jdbc/tools_env_src > javax.sql.DataSource > Container > > > > > > > ToolUser > * > > Required > > > > AuthenticationManager > * > > NotSupported > > > > > > > "http://www.jboss.org/j2ee/dtd/jboss.dtd";> > > > > > ToolUser > pufferfish/Maitai/ToolUser > > > jdbc/tools_env_src > tools_env_src > > > > AuthenticationManager > > pufferfish/Maitai/AuthenticationManager > > > jdbc/tools_env_src > tools_env_src > > > > > > tools_env_src > java:/tools_env_src > > > > > > ___ > > Don't miss the 2002 Sprint PCS Application Developer's Conference > August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm > > ___ > JBos
RE: [JBoss-user] Access InitialContext of Tomcat 4.0.2
> -Message d'origine- > De: Dirk Storck [mailto:[EMAIL PROTECTED]] > Date: jeudi 23 mai 2002 01:51 > À: Jboss User (E-Mail); Tomcat User (E-Mail) > Objet: [JBoss-user] Access InitialContext of Tomcat 4.0.2 > > > > Hi, > > I know it doesnt belongs to this mailing list but maybe > someone can help. > > How can I access the InitialContext of Tomcat from whithin an > external java > programm? from the embedded catalina ? there are no tomcat InitialContext, since jboss propose it's own InitialContext... to contact EJB and MBeans resources, just include the jboss\client\jnp-client.jar, the jndi.properties and alike as explained in jboss doc http://www.jboss.org/online-manual/HTML/ch01s15.html if you want to use a separate Tomcat, in order to contact Jboss resources you need to add the same jnp-client.jar, jndi.properties to the server classpath (I think you can simply put it in the common/lib ) ___ Don't miss the 2002 Sprint PCS Application Developer's Conference August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] unsubscribing
> Hi, Hi, > how can I unsubscribe me from this mailing list? Follow the link at the bottom of the email: > JBoss-user mailing list > ... > https://lists.sourceforge.net/lists/listinfo/jboss-user It is at the bottom of the page that links to? I think you enter your email address, and change options... Thought that worked... Good luck Tim. ___ Don't miss the 2002 Sprint PCS Application Developer's Conference August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] unsubscribing
Hi, how can I unsubscribe me from this mailing list? Bye __ Fai i tuoi acquisti su www.kwshopping.it ___ Don't miss the 2002 Sprint PCS Application Developer's Conference August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] HELP : Stable JVM for running JBoss on Redhat 7.2 (smp) ??
We are running redhat 7.2 with 2.4.9-31 kernel, with BlackDown 1.3.1_02b FCS, no problems. Achilleas ___ Don't miss the 2002 Sprint PCS Application Developer's Conference August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Re: [Jzjkit-user] (no subject)
Dear Now I get succes to run the test client without problem. But I can 't have any results from Z3950 targets(http://www.indexdata.dk/links/). I don't know if the failed come from to the Z3950 target or in my set of parameters to get informations. Must I change evrytime the "Default" database name to the Z3950Origin class ? Set of parameters: p.put("service_host","195.83.156.50"); p.put("service_port","21210"); p.put("service_short_name","riutec"); p.put("service_long_name","Test sur la base de riutec"); p.put("default_record_syntax","unimarc"); the output is : __ Searching CONNECTING... Listening for incoming PDU's Fragment source reset RootNode, attrset = bib-1 6240509 Single Term : zola attrs : [null:1:1003] Z3950SearchTask::setFragmentCount(0) Available number of fragments has changed to 0 Private task status: Search complete Test2 Ensure start:1 count:10 fragment_count:0 size:0 java.lang.IndexOutOfBoundsException: Index: 0, Size: 0 at java.util.ArrayList.RangeCheck(ArrayList.java:491) at java.util.ArrayList.get(ArrayList.java:307) at com.k_int.z3950.IRClient.Z3950SearchTask.getFragment(Z3950SearchTask.java:122) at com.k_int.z3950.IRClient.TestClient.main(TestClient.java:157) can I have some help .. _ Téléchargez MSN Explorer gratuitement à l'adresse http://explorer.msn.fr/intl.asp. ___ Don't miss the 2002 Sprint PCS Application Developer's Conference August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] HELP : Stable JVM for running JBoss on Redhat 7.2 (smp) ??
Hi, I am desperately trying to keep JBoss running without the JVM crashing on Redhat 7.2. I have spent days trying to track down the problems, but to no avail. I cannot find a stable JVM to run with JBoss (both 2.4.5 or 3.0.0_RC2). We need to import large amounts of legacy data, and I can't get more than 10% of the way through before the JVM crashes. Does anyone have a stable PRODUCTION JBoss environment running on Redhat 7.2 SMP??, if so, please let me know what JDK you are using, and any patches you have had to apply. I have tried the following JDK's Sun JDK 1.4.0 Sun JDK 1.3.1 Sun JDK 1.3.1_03 IBM JDK 1.3.1_01 (had to use "LD_ASSUME_KERNEL=2.2.5" for smp machine) Blackdown JDK 1.3.1_01 (both native and green threads, both give sig 11) ALL of them crash (with Signal 11, SEGV) (both the smp (dual athlon) machine and uni processor machines). I have been researching this with a colleague for days, and no one seems to have a solution to this issue. If you have faced this issue and solved it, PLEASE let me know! I upgraded glibc*rpm which helped with a SMP specific (pthreads) sig. 11 crash, but I am still don't have a production qualitiy environment. HELP!! I *REALLY* don't want to have to run this server on windoze, and we have to deploy soon. Please CC me in any reply. Thanks, Craig O'Shannessy ___ Don't miss the 2002 Sprint PCS Application Developer's Conference August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user