[JBoss-user] Transaction Timeout
Hi All I have a StatelessSession bean which is been called by a servlet. Here is my problem. I have two browsers from which I make calls to the StatlessSessionBean method at the same time. At times this call at the same time causes a Transaction Time Out and then the RemoteException is thrown. Also my transaction attributes for the session beans as well as the entity beans are Required. Since the calls come from 2 servelets I believe they will have their own Transaction contexts. But why would this consequence calls to the bean cause a Transaction time out. Would appreciate any input from any one. Btw. I also tried giving the Isolation levels. But that did not help. Cheers and TIA Imran ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Isolation Levels
Hello All I have a problem with setting the Isolation levels. I'm using Mysql with innoDB. And still I get the java.lang.RuntimeException: Unable to setTransactionIsolation: Transaction Isolation Levels are not supported. Having a look at the code I figured out that this is happening when setTransactionIsolation() method in the Connection class. But what I cant get here is if my DB is configured to handle transactions why is this exception been thrown. I saw in the MySQL docs that we can set the Isolation level. But why does it fail when I do it from my jcml file. Any replies would be very much appreciated. Cheers and TIA Imran ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Many Processes spawned by JBoss when running on Linux
Hi all I have a JBoss installation running on Red Hat 7.0. When I start my JBoss with all my beans there are over 80 processes that's been spawned and each process indicates that it uses 35.2 % of memory. Is this normal or am I missing something in my configurations. The memory usage shows 100% when JBoss is running . Can any one let me know why all these processes are spawned. And what is the necessacity for all these processes to be spawned. I really need this information a little quickly. Hoping to receive an answer. TIA Cheers Imran ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] SAX Error Handler Exception printed on console
Hi all I'm getting this message logged in my console. Its not affecting my app in running(of what i've seen so far). But I'm curious as to what the cause would be for this message to be printed on the console. The message is as follows: [ERROR,Default] Warning: validation was turned on but an org.xml.sax.ErrorHandle r was not [ERROR,Default] set, which is probably not what is desired. Parser will use a d efault [ERROR,Default] ErrorHandler to print the first 10 errors. Please call [ERROR,Default] the 'setErrorHandler' method to fix this. [ERROR,Default] Error: URI=null Line=37: Element web-app does not allow servl et here. [ERROR,Default] Warning: validation was turned on but an org.xml.sax.ErrorHandle r was not [ERROR,Default] set, which is probably not what is desired. Parser will use a d efault [ERROR,Default] ErrorHandler to print the first 10 errors. Please call [ERROR,Default] the 'setErrorHandler' method to fix this. [ERROR,Default] Error: URI=null Line=37: Element web-app does not allow servl et here. [ERROR,Default] Warning: validation was turned on but an org.xml.sax.ErrorHandle r was not [ERROR,Default] set, which is probably not what is desired. Parser will use a d efault [ERROR,Default] ErrorHandler to print the first 10 errors. Please call [ERROR,Default] the 'setErrorHandler' method to fix this. [ERROR,Default] Error: URI=null Line=37: Element web-app does not allow servl et here. [ERROR,Default] Warning: validation was turned on but an org.xml.sax.ErrorHandle r was not [ERROR,Default] set, which is probably not what is desired. Parser will use a d efault [ERROR,Default] ErrorHandler to print the first 10 errors. Please call [ERROR,Default] the 'setErrorHandler' method to fix this. [ERROR,Default] Error: URI=null Line=37: Element web-app does not allow servl et here. Appreciate if an one could point out as to what's going on here. TIA and Best Imran ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Transaction problem
Hi all I'm facing a problem which I believe many of you would be having some solution. I have a session bean which is deployed with the TRANSACTION attribute as Required and entity beans with the TRANSACTION attribute as Required for all the methods. I'm setting a value on a entity from my session bean to the entity A. soon after that I'm calling a private method which does a finder on entity A which should include the value added above. But, my finder is not returning the data that I've added. What could it be that I'm missing here.? Appreciate any quick response TIA and Cheers Imran ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] javax.naming.CommunicationException
Hi all Got a problerm which came out of the blues. My app was running fine until since lately i've been getting the error listed below. below is the part of the server.log. I'd appreciate any help. [Bean Cache] Resized cache for bean ProjectBean: old capacity = 1000, new capacity = 50 [Default] javax.naming.CommunicationException. Root exception is [Default] java.net.MalformedURLException: no protocol: Files/JBoss/jboss/conf/tomcat/ [Default] at java.net.URL.init(Unknown Source) [Default] [Default] at java.net.URL.init(Unknown Source) [Default] [Default] at java.net.URL.init(Unknown Source) [Default] [Default] at sun.rmi.server.LoaderHandler.pathToURLs(Unknown Source) [Default] [Default] at sun.rmi.server.LoaderHandler.loadClass(Unknown Source) [Default] [Default] at sun.rmi.server.MarshalInputStream.resolveClass(Unknown Source) [Default] [Default] at java.io.ObjectInputStream.inputClassDescriptor(Unknown Source) [Default] [Default] at java.io.ObjectInputStream.readObject(Unknown Source) [Default] [Default] at java.io.ObjectInputStream.readObject(Unknown Source) [Default] [Default] at java.io.ObjectInputStream.inputClassFields(Unknown Source) [Default] [Default] at java.io.ObjectInputStream.defaultReadObject(Unknown Source) [Default] [Default] at java.io.ObjectInputStream.inputObject(Unknown Source) [Default] [Default] at java.io.ObjectInputStream.readObject(Unknown Source) [Default] [Default] at java.io.ObjectInputStream.readObject(Unknown Source) [Default] [Default] at org.jboss.ejb.plugins.jrmp.interfaces.HomeProxy.readExternal(HomeProxy.java: 212) [Default] [Default] at java.io.ObjectInputStream.inputObject(Unknown Source) [Default] [Default] at java.io.ObjectInputStream.readObject(Unknown Source) [Default] [Default] at java.io.ObjectInputStream.inputClassFields(Unknown Source) [Default] [Default] at java.io.ObjectInputStream.defaultReadObject(Unknown Source) [Default] [Default] at java.io.ObjectInputStream.inputObject(Unknown Source) [Default] [Default] at java.io.ObjectInputStream.readObject(Unknown Source) [Default] [Default] at java.io.ObjectInputStream.readObject(Unknown Source) [Default] [Default] at java.rmi.MarshalledObject.get(Unknown Source) [Default] [Default] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:353) [Default] [Default] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:333) [Default] [Default] at javax.naming.InitialContext.lookup(Unknown Source) [Default] [Default] at com.zeborg.labor.util.ContextCreation.lookUp(ContextCreation.java:40) [Default] [Default] at com.zeborg.labor.util.ContextCreation.lookUp(ContextCreation.java:48) [Default] [Default] at com.zeborg.labor.action.punchoutsession.PunchOutSessionAction.initialize(Pun chOutSessionAction.java:70) [Default] [Default] at com.zeborg.labor.action.MethodDispatchAction.perform(MethodDispatchAction.ja va:124) [Default] [Default] at org.apache.struts.action.ActionServlet.processActionPerform(ActionServlet.ja va:1720) [Default] [Default] at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1519) [Default] [Default] at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:487) [Default] [Default] at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) [Default] [Default] at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) [Default] [Default] at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405) [Default] [Default] at org.apache.tomcat.core.Handler.service(Handler.java:287) [Default] [Default] at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) [Default] [Default] at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:81 2) [Default] [Default] at org.apache.tomcat.core.ContextManager.service(ContextManager.java:758) [Default] [Default] at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC onnectionHandler.java:213) [Default] [Default] at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416) [Default] [Default] at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501) [Default] [Default] at java.lang.Thread.run(Unknown Source) [Default] [Default] 17 [Bean Cache] Resized cache for bean PermissionBlockBean: old capacity = 1000, new capacity = 50 [EmbeddedTomcatServiceSX] 2001-11-30 09:08:47 - Ctx( ): 400 R( /) null [EmbeddedTomcatServiceSX] 2001-11-30 09:08:51 - Ctx( ): 400 R( /) null [EmbeddedTomcatServiceSX] 2001-11-30 09:08:53 - ContextManager: SocketException reading request, ignored - java.net.SocketException: Connection reset by peer: JVM_recv in socket input stream read at
[JBoss-user] Turning off log4j logging in JBOSS
Hello All Got a small query. how is it possible to turn off log4j in Jboss. I have several category.info() messages which i want to turn off. i went through the log4j.properties file and did notice the place where it said an example turining off logging. But did not succeed in getting it done. All i have is INFO messages that are been printed. Appreciate if any one can let me know as to what need to be done. cheers and TIA Imran ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] Finder problem
Thanx Luts and kar YEOW it worked when i passed the % with the parameter. cheers Imran -Original Message- From: Lutz Hilken [mailto:[EMAIL PROTECTED]] Sent: Monday, November 12, 2001 2:46 PM To: 'Imran Bohoran'; Jboss-User (E-mail) Subject: RE: [JBoss-user] Finder problem The % is part of the data, that is queried. So, put it to the values, that are passed to the finder when it is called. Cheers, Lutz. -Original Message- From: Imran Bohoran [mailto:[EMAIL PROTECTED]] Sent: Saturday, November 10, 2001 7:02 PM To: Jboss-User (E-mail) Subject: [JBoss-user] Finder problem Hi has any one out there used the LIKE condition when customizing the finders in JAWS. I have this finder: finder namefindByFirstNameAny/name query FIRST_NAME LIKE '%{0}%' /query order/order /finder But the SQL statement which JAWS interprets; [JAWS] findByFirstNameAny command executing: SELECT CONTRACTOR_USERS.USER_ID FROM CONTRACTOR_USERS where FIRST_NAME LIKE '%?%' [JAWS] Set parameter: idx=1, jdbcType=VARCHAR, value='dd' throws an Error which lookis like: [JAWS] java.sql.SQLException: Cannot convert class java.lang.String to SQL type requested [JAWS] at org.gjt.mm.mysql.PreparedStatement.setObject(PreparedStatement.java:930) [JAWS] at org.gjt.mm.mysql.PreparedStatement.setObject(PreparedStatement.java:936) [JAWS] at org.jboss.pool.jdbc.PreparedStatementInPool.setObject(PreparedStatementInPoo l.java:282) [JAWS] at org.jboss.ejb.plugins.jaws.jdbc.JDBCCommand.setParameter(JDBCCommand.java:33 4) [JAWS] at org.jboss.ejb.plugins.jaws.jdbc.JDBCDefinedFinderCommand.setParameters(JDBCD efinedFinderCommand.java:259) [JAWS] at org.jboss.ejb.plugins.jaws.jdbc.JDBCCommand.jdbcExecute(JDBCCommand.java:159 ) [JAWS] at org.jboss.ejb.plugins.jaws.jdbc.JDBCFinderCommand.execute(JDBCFinderCommand. java:87) [JAWS] at org.jboss.ejb.plugins.jaws.jdbc.JDBCFindEntitiesCommand.execute(JDBCFindEnti tiesCommand.java:153) [JAWS] at org.jboss.ejb.plugins.jaws.JAWSPersistenceManager.findEntities(JAWSPersisten ceManager.java:144) [JAWS] at org.jboss.ejb.plugins.CMPPersistenceManager.findEntities(CMPPersistenceManag er.java:305) [JAWS] at org.jboss.ejb.EntityContainer.find(EntityContainer.java:567) [JAWS] at java.lang.reflect.Method.invoke(Native Method) [JAWS] at org.jboss.ejb.EntityContainer$ContainerInterceptor.invokeHome(EntityContaine r.java:843) [JAWS] at org.jboss.ejb.plugins.EntitySynchronizationInterceptor.invokeHome(EntitySync hronizationInterceptor.java:231) [JAWS] at org.jboss.ejb.plugins.EntityInstanceInterceptor.invokeHome(EntityInstanceInt erceptor.java:154) [JAWS] at org.jboss.ejb.plugins.EntityLockInterceptor.invokeHome(EntityLockInterceptor .java:108) [JAWS] at org.jboss.ejb.plugins.TxInterceptorCMT.invokeNext(TxInterceptorCMT.java:135) [JAWS] at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT. java:307) [JAWS] at org.jboss.ejb.plugins.TxInterceptorCMT.invokeHome(TxInterceptorCMT.java:86) [JAWS] at org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(SecurityInterceptor.jav a:103) [JAWS] at org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:106) [JAWS] at org.jboss.ejb.EntityContainer.invokeHome(EntityContainer.java:420) [JAWS] at org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker.invokeHome(JRMPContai nerInvoker.java:437) [JAWS] at org.jboss.ejb.plugins.jrmp.interfaces.HomeProxy.invokeHome(HomeProxy.java:23 7) [JAWS] at org.jboss.ejb.plugins.jrmp.interfaces.HomeProxy.invoke(HomeProxy.java:182) [JAWS] at $Proxy195.findByFirstNameAny(Unknown Source) [JAWS] at com.zeborg.labor.ejb.session.purchaseOrderManager.PurchaseOrderManagerSB.sea rchContractorProfile(PurchaseOrderManagerSB.java:1026) [JAWS] at java.lang.reflect.Method.invoke(Native Method) [JAWS] at org.jboss.ejb.StatefulSessionContainer$ContainerInterceptor.invoke(StatefulS essionContainer.java:650) [JAWS] at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:12 8) [JAWS] at org.jboss.ejb.plugins.StatefulSessionInstanceInterceptor.invoke(StatefulSess ionInstanceInterceptor.java:243) [JAWS] at org.jboss.ejb.plugins.TxInterceptorCMT.invokeNext(TxInterceptorCMT.java:133) [JAWS] at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT. java:247) [JAWS] at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:99) [JAWS] at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:195) [JAWS] at org.jboss.ejb.StatefulSessionContainer.invoke(StatefulSessionContainer.java: 341) [JAWS] at org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker.invoke(JRMPContainerI nvoker.java:393) [JAWS] at java.lang.reflect.Method.invoke(Native Method) [JAWS] at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:241) [JAWS] at sun.rmi.transport.Transport$1.run(Transport.java:152) [JAWS] at java.security.AccessController.doPrivileged(Native Method
[JBoss-user] Finder problem
Hi has any one out there used the LIKE condition when customizing the finders in JAWS. I have this finder: finder namefindByFirstNameAny/name query FIRST_NAME LIKE '%{0}%' /query order/order /finder But the SQL statement which JAWS interprets; [JAWS] findByFirstNameAny command executing: SELECT CONTRACTOR_USERS.USER_ID FROM CONTRACTOR_USERS where FIRST_NAME LIKE '%?%' [JAWS] Set parameter: idx=1, jdbcType=VARCHAR, value='dd' throws an Error which lookis like: [JAWS] java.sql.SQLException: Cannot convert class java.lang.String to SQL type requested [JAWS] at org.gjt.mm.mysql.PreparedStatement.setObject(PreparedStatement.java:930) [JAWS] at org.gjt.mm.mysql.PreparedStatement.setObject(PreparedStatement.java:936) [JAWS] at org.jboss.pool.jdbc.PreparedStatementInPool.setObject(PreparedStatementInPoo l.java:282) [JAWS] at org.jboss.ejb.plugins.jaws.jdbc.JDBCCommand.setParameter(JDBCCommand.java:33 4) [JAWS] at org.jboss.ejb.plugins.jaws.jdbc.JDBCDefinedFinderCommand.setParameters(JDBCD efinedFinderCommand.java:259) [JAWS] at org.jboss.ejb.plugins.jaws.jdbc.JDBCCommand.jdbcExecute(JDBCCommand.java:159 ) [JAWS] at org.jboss.ejb.plugins.jaws.jdbc.JDBCFinderCommand.execute(JDBCFinderCommand. java:87) [JAWS] at org.jboss.ejb.plugins.jaws.jdbc.JDBCFindEntitiesCommand.execute(JDBCFindEnti tiesCommand.java:153) [JAWS] at org.jboss.ejb.plugins.jaws.JAWSPersistenceManager.findEntities(JAWSPersisten ceManager.java:144) [JAWS] at org.jboss.ejb.plugins.CMPPersistenceManager.findEntities(CMPPersistenceManag er.java:305) [JAWS] at org.jboss.ejb.EntityContainer.find(EntityContainer.java:567) [JAWS] at java.lang.reflect.Method.invoke(Native Method) [JAWS] at org.jboss.ejb.EntityContainer$ContainerInterceptor.invokeHome(EntityContaine r.java:843) [JAWS] at org.jboss.ejb.plugins.EntitySynchronizationInterceptor.invokeHome(EntitySync hronizationInterceptor.java:231) [JAWS] at org.jboss.ejb.plugins.EntityInstanceInterceptor.invokeHome(EntityInstanceInt erceptor.java:154) [JAWS] at org.jboss.ejb.plugins.EntityLockInterceptor.invokeHome(EntityLockInterceptor .java:108) [JAWS] at org.jboss.ejb.plugins.TxInterceptorCMT.invokeNext(TxInterceptorCMT.java:135) [JAWS] at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT. java:307) [JAWS] at org.jboss.ejb.plugins.TxInterceptorCMT.invokeHome(TxInterceptorCMT.java:86) [JAWS] at org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(SecurityInterceptor.jav a:103) [JAWS] at org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:106) [JAWS] at org.jboss.ejb.EntityContainer.invokeHome(EntityContainer.java:420) [JAWS] at org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker.invokeHome(JRMPContai nerInvoker.java:437) [JAWS] at org.jboss.ejb.plugins.jrmp.interfaces.HomeProxy.invokeHome(HomeProxy.java:23 7) [JAWS] at org.jboss.ejb.plugins.jrmp.interfaces.HomeProxy.invoke(HomeProxy.java:182) [JAWS] at $Proxy195.findByFirstNameAny(Unknown Source) [JAWS] at com.zeborg.labor.ejb.session.purchaseOrderManager.PurchaseOrderManagerSB.sea rchContractorProfile(PurchaseOrderManagerSB.java:1026) [JAWS] at java.lang.reflect.Method.invoke(Native Method) [JAWS] at org.jboss.ejb.StatefulSessionContainer$ContainerInterceptor.invoke(StatefulS essionContainer.java:650) [JAWS] at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:12 8) [JAWS] at org.jboss.ejb.plugins.StatefulSessionInstanceInterceptor.invoke(StatefulSess ionInstanceInterceptor.java:243) [JAWS] at org.jboss.ejb.plugins.TxInterceptorCMT.invokeNext(TxInterceptorCMT.java:133) [JAWS] at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT. java:247) [JAWS] at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:99) [JAWS] at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:195) [JAWS] at org.jboss.ejb.StatefulSessionContainer.invoke(StatefulSessionContainer.java: 341) [JAWS] at org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker.invoke(JRMPContainerI nvoker.java:393) [JAWS] at java.lang.reflect.Method.invoke(Native Method) [JAWS] at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:241) [JAWS] at sun.rmi.transport.Transport$1.run(Transport.java:152) [JAWS] at java.security.AccessController.doPrivileged(Native Method) [JAWS] at sun.rmi.transport.Transport.serviceCall(Transport.java:148) [JAWS] at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:465) [JAWS] at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:7 06) [JAWS] at java.lang.Thread.run(Thread.java:484) [JAWS] java.sql.SQLException: Cannot convert class java.lang.String to SQL type requested [JAWS] at org.gjt.mm.mysql.PreparedStatement.setObject(PreparedStatement.java:930) [JAWS] at org.gjt.mm.mysql.PreparedStatement.setObject(PreparedStatement.java:936) [JAWS] at
[JBoss-user] usage of BLOB in JBoss 2.4.1 using MySQL
Hello All I posted my question earlier. But did not get any response from the user mailing list as well as the JAWS mailing list. I guess last time I did not give suffice info. well here I go again I'm using JBoss, MySQL and am using struts as my MVC framework. I need to store documents in the DB using the BLOB sql type. I have an Entity bean which has a BLOB type as an attribute. I need to store and retrieve the contents to and from the DB. But How do I store BLOB types. I can get a byte[] containing the data contents using the FormFile class provided in the struts framework. My questions are How can I store this byte[] as a BLOB in the DB?. How should my configuration in jaws.xml look like?. Do I need to write some sought of a wrapper class to do this?. If so what should it provide in a functionality perspective? Any help is appreciated very much. TIA Imran ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] JBoss not picking up the latest data
Hi danch sorry for the delay in responding to your answer. your suggesstion worked. But using option B also was tripping up. so i'm using option C. thnx for the reply cheers Imran -Original Message- From: danch [mailto:[EMAIL PROTECTED]] Sent: Monday, October 29, 2001 8:30 PM To: Imran Bohoran Cc: Jboss-User (E-mail) Subject: Re: [JBoss-user] JBoss not picking up the latest data Imran Bohoran wrote: Hello All I'm having problem that is holding me up with my work. My configuration is Jboss-2.4.1_Tomcat-3.2.3 running with MySQL(with support for transactions) under Win 2k. This is the problem I'm facing. I have a stateless session bean. It has 2 methods. Method A and Method B which talks to my CMP entity beans to operations. Method A does a query on the DB thru the entity beans and displays the some data. Method B changes some data which was taken using Method A and soon afterwards calls Method A to display the changes. BUT the changes are not displayed properly. change your entity from commit-option A to option B or C. Option A aggressively caches entity data - it assumes that changes are only made through the entity beans. As an aside, if method B changes data, why isn't it using the entity beans? I'm instead getting the old data. Btw my session bean is deployed as trans-attributeNotSupported/trans-attribute. I'd reevaluate this if you're changing data. -danch ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] JBoss not picking up the latest data
Hello All I'm having problem that is holding me up with my work. My configuration is Jboss-2.4.1_Tomcat-3.2.3 running with MySQL(with support for transactions) under Win 2k. This is the problem I'm facing. I have a stateless session bean. It has 2 methods. Method A and Method B which talks to my CMP entity beans to operations. Method A does a query on the DB thru the entity beans and displays the some data. Method B changes some data which was taken using Method A and soon afterwards calls Method A to display the changes. BUT the changes are not displayed properly. I'm instead getting the old data. Btw my session bean is deployed as trans-attributeNotSupported/trans-attribute. Also the changes are shown only when I restart the JBoss server. And when I checked the DB, its also changed as expected. But the data given back is wrong. A similar problem I faced was when I was calling method and expecting some data according to some changes I did manually at the DB. (these were done to do some unit tests). But again the changes done to the DB was reflected only when I restarted the JBoss server. Can any one tell me what's going on here. I feel this is a serious issue. And its keeping me stuck. Appreciate any input on this. TIA Imran ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] JBoss MONITOR
Hi all I last used Jboss when it was version 2.0 and recently again started using it by grabbing 2.4.1 with the tomcat integration, and i see that quite a lot of things have been done since then. Anyways up until now I was under the impression that the directory structure was the same as the previous versions. but I came across this *admin* directory which got me up on my enthusiasm. But I wasn't able to find out anything about it. I ran the monitor.bat (I'm running on a Win2k box). But I dont seem to be getting any where. Also I get NoClassDefFoundErrors for some classes. Which I believe is the reason that I'm not getting any where :). The startup Error I get is Exception in thread main java.lang.NoClassDefFoundError: javax/jms/MessageListener Do I need to place a separate jar for JMS. If so where should it be? Or isn't the jars in the lib folder good enough for this? Then when I click on the option for launching the JNDI browser in the menu bars of JBoss monitor I get the following NoClassDefFound errors. java.lang.NoClassDefFoundError: org/jboss/admin/jndi/Main And this particular class that its trying to find is not available in the monitor.jar too. Can any one throw some light on this. Cos I think the tool will be an interesting thing. cheers and TIA Imran ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] ENtity bean problerm
can any pls let me know what is the problem here here is the exception My configuration is JBoss 2.4.1_Tomcat3.2.3 with MySQL on a Win2K box. [RequestBean] TRANSACTION ROLLBACK EXCEPTION:Load failed; nested exception is: java.lang.NullPointerException; nested exception is: java.rmi.ServerException: Load failed; nested exception is: java.lang.NullPointerException [RequestBean] java.rmi.ServerException: Load failed; nested exception is: [RequestBean] java.lang.NullPointerException [RequestBean] java.lang.NullPointerException [RequestBean] at java.lang.reflect.Field.set(Native Method) [RequestBean] at org.jboss.ejb.plugins.jaws.jdbc.JDBCCommand.setCMPFieldValue( JDBCCommand.java:655) [RequestBean] at org.jboss.ejb.plugins.jaws.jdbc.JDBCLoadEntityCommand.loadOne Entity(JDBCLoadEntityCommand.java:217) [RequestBean] at org.jboss.ejb.plugins.jaws.jdbc.JDBCLoadEntityCommand.handleR esult(JDBCLoadEntityCommand.java:176) [RequestBean] at org.jboss.ejb.plugins.jaws.jdbc.JDBCQueryCommand.executeState mentAndHandleResult(JDBCQueryCommand.java:59) [RequestBean] at org.jboss.ejb.plugins.jaws.jdbc.JDBCCommand.jdbcExecute(JDBCC ommand.java:160) [RequestBean] at org.jboss.ejb.plugins.jaws.jdbc.JDBCLoadEntityCommand.execute (JDBCLoadEntityCommand.java:147) [RequestBean] at org.jboss.ejb.plugins.jaws.JAWSPersistenceManager.loadEntity( JAWSPersistenceManager.java:156) [RequestBean] at org.jboss.ejb.plugins.CMPPersistenceManager.loadEntity(CMPPer sistenceManager.java:362) [RequestBean] at org.jboss.ejb.plugins.EntitySynchronizationInterceptor.invoke (EntitySynchronizationInterceptor.java:286) [RequestBean] at org.jboss.ejb.plugins.EntityInstanceInterceptor.invoke(Entity InstanceInterceptor.java:208) [RequestBean] at org.jboss.ejb.plugins.EntityLockInterceptor.invoke(EntityLock Interceptor.java:136) [RequestBean] at org.jboss.ejb.plugins.TxInterceptorCMT.invokeNext(TxIntercept orCMT.java:133) [RequestBean] at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(Tx InterceptorCMT.java:307) [RequestBean] at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCM T.java:99) [RequestBean] at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInte rceptor.java:128) [RequestBean] at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.ja va:195) [RequestBean] at org.jboss.ejb.EntityContainer.invoke(EntityContainer.java:427 ) [RequestBean] at org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker.invoke (JRMPContainerInvoker.java:483) [RequestBean] at org.jboss.ejb.plugins.jrmp.interfaces.GenericProxy.invokeCont ainer(GenericProxy.java:335) [RequestBean] at org.jboss.ejb.plugins.jrmp.interfaces.EntityProxy.invoke(Enti tyProxy.java:133) [RequestBean] at $Proxy38.getName(Unknown Source) [RequestBean] at com.zeborg.labor.ejb.session.requestmanager.RequestManagerEB. getRequestListData(RequestManagerEB.java:64) [RequestBean] at java.lang.reflect.Method.invoke(Native Method) [RequestBean] at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor. invoke(StatelessSessionContainer.java:543) [RequestBean] at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.inv oke(StatelessSessionInstanceInterceptor.java:87) [RequestBean] at org.jboss.ejb.plugins.TxInterceptorCMT.invokeNext(TxIntercept orCMT.java:133) [RequestBean] at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(Tx InterceptorCMT.java:247) [RequestBean] at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCM T.java:99) [RequestBean] at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInte rceptor.java:128) [RequestBean] at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.ja va:195) [RequestBean] at org.jboss.ejb.StatelessSessionContainer.invoke(StatelessSessi onContainer.java:286) [RequestBean] at org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker.invoke (JRMPContainerInvoker.java:393) [RequestBean] at java.lang.reflect.Method.invoke(Native Method) [RequestBean] at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.jav a:241) [RequestBean] at sun.rmi.transport.Transport$1.run(Transport.java:142) [RequestBean] at java.security.AccessController.doPrivileged(Native Method) [RequestBean] at sun.rmi.transport.Transport.serviceCall(Transport.java:139) [RequestBean] at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTranspor t.java:443) [RequestBean] at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPT ransport.java:643) [RequestBean] at java.lang.Thread.run(Thread.java:484) [RequestManagerEB] javax.transaction.TransactionRolledbackException: Load failed ; nested exception is: java.lang.NullPointerException; nested exception is: java.rmi.ServerException: Load failed; nested exception is: java.lang.NullPointerException [Default] the collection 1 is [ZLabor/ContractTagBean:1] TIA ___ JBoss-user mailing list [EMAIL
RE: [JBoss-user] Obtaining a Connection object through Session beans
yes..and this is what i was looking for. DataSource datasource; Context c = new InitialContext(); datasource = (DataSource)c.lookup(java:/myPool); Connection c = datasource.getConnection(); like i said peter earlier i dont think it would take a book to explain this. anyway thanks again to Guy for his response too. happy coding Imran -Original Message- From: Hermann RANGAMANA [mailto:[EMAIL PROTECTED]] Sent: Tuesday, October 09, 2001 1:07 PM To: Jboss-User (E-mail) Subject: Re: [JBoss-user] Obtaining a Connection object through Session beans I don't see what difference you should make between accessing a datasource from an entity or a session bean. A datasource is bind to a jndi name, and you can access this datasource within a jBoss container - should it be session or entity bean container. Hermann R A N G A M A N A Ingénieur Informaticien Primagendys SAS Tél : +(33) 1 43 58 27 83 Fax : +(33) 1 43 58 27 17 e-mail : [EMAIL PROTECTED] - Original Message - From: Peter Wone [EMAIL PROTECTED] To: Jboss-User (E-mail) [EMAIL PROTECTED] Sent: Tuesday, October 09, 2001 12:00 AM Subject: Re: [JBoss-user] Obtaining a Connection object through Session beans I need to access my data base through some of my session beans directly (With out going through the entity beans). how do I do this by using Connection object from the container pool of Connections. You won't get a useful answer to this in an email, it's too big a question. You've basically asked for a course in using EJB 1.x. Go buy a book like Java Server Programming J2EE Edition, Wrox Press. There are several chapters devoted to the subject. ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Obtaining a Connection object through Session beans
Hello all I need to access my data base through some of my session beans directly (With out going through the entity beans). how do I do this by using Connection object from the container pool of Connections. tia Imran ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] What is my JBOSS_DIST?
it should point to /opt/JBoss-2.4.0_Tomcat-3.2.3/jboss cheers Imran -Original Message- From: John LYC [mailto:[EMAIL PROTECTED]] Sent: Friday, September 28, 2001 9:34 AM To: Jboss Mailing List Subject: [JBoss-user] What is my JBOSS_DIST? Hi all, Im using jboss with tomcat. I'm just need to confirm where my JBOSS_DIST should point to. it is /opt/JBoss-2.4.0_Tomcat-3.2.3 or /opt/JBoss-2.4.0_Tomcat-3.2.3/jboss ? thanks John ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] CMP problerm in JAWS
HI all I'm using JBoss 2.4.1 with tomcat integration. my entity beans are all cmps'. The db is mysql 3.23.41nt with the 'mm.mysql-2.0.4-bin.jar' driver. i'm having a problerm in a data retreival. the container throws this error. [JAWS] java.sql.SQLException: General error: Table 'test_table' already exists [JAWS] at org.gjt.mm.mysql.MysqlIO.sendCommand(MysqlIO.java:497) [JAWS] at org.gjt.mm.mysql.MysqlIO.sqlQueryDirect(MysqlIO.java:550) [JAWS] at org.gjt.mm.mysql.Connection.execSQL(Connection.java:885) [JAWS] at org.gjt.mm.mysql.PreparedStatement.executeUpdate(PreparedStatement.java:389) [JAWS] at org.jboss.pool.jdbc.PreparedStatementInPool.executeUpdate(PreparedStatementI nPool.java:82) [JAWS] at org.jboss.ejb.plugins.jaws.jdbc.JDBCUpdateCommand.executeStatementAndHandleR esult(JDBCUpdateCommand.java:49) [JAWS] at org.jboss.ejb.plugins.jaws.jdbc.JDBCCommand.jdbcExecute(JDBCCommand.java:160 ) [JAWS] at org.jboss.ejb.plugins.jaws.jdbc.JDBCInitCommand.execute(JDBCInitCommand.java :128) [JAWS] at org.jboss.ejb.plugins.jaws.JAWSPersistenceManager.init(JAWSPersistenceManage r.java:103) [JAWS] at org.jboss.ejb.plugins.CMPPersistenceManager.init(CMPPersistenceManager.java: 110) [JAWS] at org.jboss.ejb.EntityContainer.init(EntityContainer.java:291) [JAWS] at org.jboss.ejb.Application.init(Application.java:202) [JAWS] at org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:372) [JAWS] at org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:304) [JAWS] at java.lang.reflect.Method.invoke(Native Method) [JAWS] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628) [JAWS] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523) [JAWS] at org.jboss.deployment.J2eeDeployer.startModules(J2eeDeployer.java:494) [JAWS] at org.jboss.deployment.J2eeDeployer.startApplication(J2eeDeployer.java:468) [JAWS] at org.jboss.deployment.J2eeDeployer.deploy(J2eeDeployer.java:208) [JAWS] at java.lang.reflect.Method.invoke(Native Method) [JAWS] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628) [JAWS] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523) [JAWS] at org.jboss.ejb.AutoDeployer.deploy(AutoDeployer.java:379) [JAWS] at org.jboss.ejb.AutoDeployer.run(AutoDeployer.java:217) [JAWS] at org.jboss.ejb.AutoDeployer.startService(AutoDeployer.java:353) [JAWS] at org.jboss.util.ServiceMBeanSupport.start(ServiceMBeanSupport.java:107) [JAWS] at java.lang.reflect.Method.invoke(Native Method) [JAWS] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628) [JAWS] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523) [JAWS] at org.jboss.configuration.ConfigurationService$ServiceProxy.invoke(Configurati onService.java:836) [JAWS] at $Proxy0.start(Unknown Source) [JAWS] at org.jboss.util.ServiceControl.start(ServiceControl.java:81) [JAWS] at java.lang.reflect.Method.invoke(Native Method) [JAWS] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628) [JAWS] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523) [JAWS] at org.jboss.Main.init(Main.java:210) [JAWS] at org.jboss.Main$1.run(Main.java:116) [JAWS] at java.security.AccessController.doPrivileged(Native Method) [JAWS] at org.jboss.Main.main(Main.java:112) [JAWS] Could not create table TEST_TABLE: General error: Table 'test_table already exists appreciate a quick response TIA Imran ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user