Re: [JBoss-user] developing with JBoss on MacOS X

2003-09-11 Thread Joachim Van der Auwera
It seems that either your servlets are not redeployed, or are redeployed before EJB components. The home objects become invalid when redeploying. Joachim - Original Message - From: "Matthew Hixson" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, September 12, 2003 12:14 AM Subje

[JBoss-user] Application deadlock detected retrying

2003-09-11 Thread Matthew Hixson
I'm wondering what the message "Application deadlock detected retrying" means. I have file information stored in the database and represented by a FileBean. The file data lives on disk. When serving a web page that has 50 or so images displayed (represented by FileBeans) I'll see the TxI

AW: AW: [JBoss-user] WG: JAAS not bound

2003-09-11 Thread Oliver Refle
The only files i have in the lib directory of my webapp are jstl.jar struts.jar standard.jar jstl.jar No jboss files in my WEB-INF/lib. I saw this warning in my log, can this be the reason ? 09:21:27,156 ERROR [STDERR] Sep 11, 2003 9:21:27 AM java.util.jar.Attributes read WARNING: Duplicate name

AW: AW: [JBoss-user] WG: JAAS not bound

2003-09-11 Thread Oliver Refle
09:28:44,599 INFO [STDOUT] invokers: org.jnp.interfaces.NamingContext 09:28:44,599 INFO [STDOUT] UserTransaction: org.jboss.tm.usertx.client.ClientUserTransaction 09:28:44,599 INFO [STDOUT] UserTransactionSessionFactory: org.jboss.tm.usertx.server.UserTransactionSessionFactoryImpl is the output

Re: [JBoss-user] TX deadlock and value object

2003-09-11 Thread Stephane Nicoll
I kindly remind you that one, in plain/text format this time, as suggested by Adrian. Regards, Stéphane > Hi, > > Got maybe a weird question but I am currently busy investigatin why we > have so much Tx deadlock; What is the behavior when manipulating the > value object of an entity bean. > >

[JBoss-user] RE: NoClassDefFoundException: apache/xerces/framework/XMLParser

2003-09-11 Thread Rod Macpherson
Title: Message Problem solved: recompiled against xercesImpl.jar rather than the old xerces.jar in our build directory. We had no direct reference to the now-missing package so how that reference ended up in our compiled jar is still unclear.

Re: [JBoss-user] re: more on my problem with

2003-09-11 Thread Adrian Brock
On Thu, 2003-09-11 at 19:14, James Black wrote: > Adrian Brock wrote: > > >Your ejbCreate should return the primary key for BMP > > > Inside the abstract class that the BMP class will extend I have class > I have the following function: > public NamsPersonServerPK ejbCreate() throws javax.e

[JBoss-user] NoClassDefFoundException: apache/xerces/framework/XMLParser

2003-09-11 Thread Rod Macpherson
Title: Message Trying to clean out redundant jars and note that JBoss already has xercesImpl.jar and xalan.jar. Ditched my xerces.jar and xalan.jar then got NoClassDefFoundException on apache/xerces/framework/XMLParser. Sure enough there is no apache.xerces.framework package in the xercesImp

Re: [JBoss-user] re: more on my problem with

2003-09-11 Thread James Black
Adrian Brock wrote: Your ejbCreate should return the primary key for BMP Inside the abstract class that the BMP class will extend I have class I have the following function: public NamsPersonServerPK ejbCreate() throws javax.ejb.CreateException { try { if (namsPersonServer

[JBoss-user] Frustrated with CMR on Jboss

2003-09-11 Thread Darren Hartford
Hey all, been banging my head on CMR for couple of weeks now, and since my desk broke it's about time to ask the mailing list for some help ;-) If you have a 1-N relationship between, say, an Organization bean that has many Gangsters. And, let's say you want to return a collection of value-objec

[JBoss-user] developing with JBoss on MacOS X

2003-09-11 Thread Matthew Hixson
I've gotten my app working pretty well with JBoss. The only thing that is bothering me is that it seems that changes to entity and session beans do not get reloaded after they've been compiled. Tomcat seems to be noticing my changes to servlets and JSPs, but I cannot change EJBs on the fl

Re: [JBoss-user] Re: Out of Memory error

2003-09-11 Thread devlists
Does this mean that we are stuck with it? Doesn't look like anyone is trying to fix it. >> After redeploying several times in Jboss (3.0.7) Jboss gives an >> OutOFMemory error. Seems to only happen during development when >> redeploying several times. Does this happen to anyone else? > > See >

Re: [JBoss-user] lazy loading CMR collections

2003-09-11 Thread Matthew Hixson
Thanks Thomas, that looks interesting. I actually found that the behavior I was seeing was not JBoss' fault at all. We had code that was asking the backend for data that was unneeded. A bit of hack-and-slashing of that code fixed the problem. -M@ On Thursday, September 11, 2003, at 02:25

Re: [JBoss-user] exception handling advice

2003-09-11 Thread Matthew Hixson
I don't think it would be a good idea to catch FinderExceptions and CreateExceptions and then re-throw EJBExceptions. The client would be just as confused as to what to do with any of them. Instead, say you are creating a customer and you get a CreateException. It might make sense in this ca

Re: [JBoss-user] session bean overwriting other session bean values

2003-09-11 Thread Mark Lassau
Butt, Dudley wrote: > Hi, > > Ok, somewhere in my implementation I've screwed up... > I have a session bean (stateless) that gets created then starts a process of database writes via some business logic and entity beans. > When I start another process, the new session bean is created, but it do

Re: [JBoss-user] MBean Dependencies of an entity problem

2003-09-11 Thread Stephane Nicoll
I assume this enity bean is included into a JAR file, right? Put the dependency on the JAR file in a package level rather than EJB. I assume the dependency you have currently is the availablity of the bean in the JNDI tree, which is not enough. If you put package (yourapp.jar) I think it shou

Re: [JBoss-user] re: more on my problem with

2003-09-11 Thread Adrian Brock
Your ejbCreate should return the primary key for BMP Regards, Adrian On Thu, 2003-09-11 at 15:08, James Black wrote: > Hello, > I forgot to give more info. I am using JBoss-4DR2, running under > JDK1.4.2, on Win2k. > > I get the Home interface, by using the JNDI lookup, then I call my > fu

[JBoss-user] re: more on my problem with

2003-09-11 Thread James Black
Hello, I forgot to give more info. I am using JBoss-4DR2, running under JDK1.4.2, on Win2k. I get the Home interface, by using the JNDI lookup, then I call my function in my BMP, so there is some Proxy class that appears to be used. It calls org.jboss.proxy.ClientContainer.invoke(Object, Met

[JBoss-user] MBean Dependencies of an entity problem

2003-09-11 Thread George Icriverzi
Hi all, I have an mbean which must use in the startService() an entity. I set up the coresponding dependency in the jboss-service.xml with tag like this : jboss.j2ee:jndiName=ca/CAEJB,service=EJB . Until now this situation was working fine, because all I needed to do with the entity was

RE: [JBoss-user] exception handling advice

2003-09-11 Thread John Moore
Brian, We do the same as Harm described. One thing we have found to be useful is to send a e-mail to an account dedicated to the application. We send exceptions as well as output from cron jobs. Personally, I find it much easier to browse through a set of e-mails than scan the log.

Re: [JBoss-user] Attempt to get lock ref with a null object

2003-09-11 Thread Adrian Brock
You need to tell jboss you are using db generated keys. This is an FAQ. Regards, Adrian On Thu, 2003-09-11 at 13:33, James Black wrote: > I am learning to use jboss, and write ejbs. I am getting an error I > don't understand how to solve. > > My unit tests passed before I added in the Data Ac

[JBoss-user] War Client calling EJB's in remote server

2003-09-11 Thread rickmacc
I've been having trouble calling EJB's in a remote JBoss server from a War client. Here's my environment Client War deployed in JBoss 2.4.4 using Tomcat EJB ear deployed in remote JBoss 3.2 I can call the EJB's from a standalone client no problem, when I look at the output from the following co

[JBoss-user] findByPrimaryKey question

2003-09-11 Thread Rafal Kedziorski
Hi, small question to findByPrimaryKey method. We use JBoss 3.2.2RC2 and 3.2.RC3. In server.log we find this: 2003-09-11 16:04:53,046 DEBUG [org.jboss.ejb.plugins.cmp.jdbc.JDBCFindByPrimaryKeyQuery.LanguageBean.findByPrimaryKey] SQL: SELECT language_id, lang_short, lang_long, locale FROM langu

Re: [JBoss-user] Attempt to get lock ref with a null object

2003-09-11 Thread James Black
I am learning to use jboss, and write ejbs. I am getting an error I don't understand how to solve. My unit tests passed before I added in the Data Access Object, I was using a different java bean for accessing the database. I have now written a DAO, and added it to the system. I am using Lomboz

[JBoss-user] DataSource Query Timeout

2003-09-11 Thread Meyer-Willner, Bernhard
Hi, does JBoss impose, and/or can one specify a query timeout for SQL queries sent via JDBC over a connection obtained from a datasource deployed in JBoss? I mean something default or configurable and NOT using the standard setQueryTimeout() method of the Statement interface? Thanks, Bernie This

RE: [JBoss-user] exception handling advice

2003-09-11 Thread harm
Glad I could help... Cheers, Harm. "Brian McSweeney" <[EMAIL PROTECTED]> Sent by: [EMAIL PROTECTED] 09/11/2003 02:08 PM Please respond to [EMAIL PROTECTED] To <[EMAIL PROTECTED]> cc Subject RE: [JBoss-user] exception handling advice Hi Harm, Yes, your answer is very clear and is wha

RE: [JBoss-user] forums versus mailing list

2003-09-11 Thread Jonathan . O'Connor
Sacha, Could you not do it in your Blog if you have any? And add a smiley to your jokes for those who left their sense of humour at home! Ciao, Jonathan O'Connor "Sacha Labourey" <[EMAIL PROTECTED]> Sent by: [EMAIL PROTECTED] 11.09.2003 07:43 Please respond to jboss-user To: <[E

RE: [JBoss-user] exception handling advice

2003-09-11 Thread Brian McSweeney
Hi Harm, Yes, your answer is very clear and is what I was thinking of doing myself. I found it strange that the ibm doc said you should throw new EJBExceptions whenever a finder or create exception occurs. I appreciate your help, Cheers, Brian -Original Message- From: [EMAIL PROTECTED

Re: AW: [JBoss-user] WG: JAAS not bound

2003-09-11 Thread Adrian Brock
On Thu, 2003-09-11 at 11:29, Oliver Refle wrote: > 12:28:11,936 INFO [STDOUT] SybaseDS: > org.jboss.resource.adapter.jdbc.local.LocalDataSource > 12:28:11,936 INFO [STDOUT] comp: javax.naming.Context > 12:28:11,936 INFO [STDOUT] TransactionPropagationContextImporter: > org.jboss.tm.TransactionPr

[JBoss-user] WG: JAAS not bound

2003-09-11 Thread Oliver Refle
12:28:11,936 INFO [STDOUT] SybaseDS: org.jboss.resource.adapter.jdbc.local.LocalDataSource 12:28:11,936 INFO [STDOUT] comp: javax.naming.Context 12:28:11,936 INFO [STDOUT] TransactionPropagationContextImporter: org.jboss.tm.TransactionPropagationContextImporter 12:28:11,936 INFO [STDOUT] Transac

Re: [JBoss-user] Unique CMR fields

2003-09-11 Thread Milen Dyankov
Mykola A. Nickishov wrote: * Milen Dyankov <[EMAIL PROTECTED]> [030819 13:50]: Relationship works just fine and JBoss creates "customer" and "product" fields in "Sales" table. Now what I would like to do is PRIMARY KEY ('custommer', 'product') or at least UNIQUE ('custommer', 'product') Milen,

AW: [JBoss-user] WG: JAAS not bound

2003-09-11 Thread Oliver Refle
12:28:11,936 INFO [STDOUT] SybaseDS: org.jboss.resource.adapter.jdbc.local.LocalDataSource 12:28:11,936 INFO [STDOUT] comp: javax.naming.Context 12:28:11,936 INFO [STDOUT] TransactionPropagationContextImporter: org.jboss.tm.TransactionPropagationContextImporter 12:28:11,936 INFO [STDOUT] Transa

RE: [JBoss-user] forums versus mailing list

2003-09-11 Thread Sacha Labourey
> Rod Macpherson wrote: > > > That would definitely be more appropriate. > > The most appropriate approach is to answer the question where > it had been asked, > IMHO. Please, let me address that very specific point on the wiki. --- This

Re: [JBoss-user] WG: JAAS not bound

2003-09-11 Thread Adrian Brock
Now change list("") to list("java:") Regards, Adrian On Thu, 2003-09-11 at 10:27, Oliver Refle wrote: > 09:28:44,599 INFO [STDOUT] invokers: org.jnp.interfaces.NamingContext > 09:28:44,599 INFO [STDOUT] UserTransaction: > org.jboss.tm.usertx.client.ClientUserTransaction > 09:28:44,599 INFO [ST

RE: [JBoss-user] exception handling advice

2003-09-11 Thread harm
Hi Brian, I always do the following. I have one 'baseexception' class. Which all my application specific exceptions extend. (I call this Application Exception). This means that If I catch a ApplicationException it means it has to be some exception generated by my own application. And not some

RE: [JBoss-user] exception handling advice

2003-09-11 Thread Brian McSweeney
Stop hijacking my thread :-) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Vijaya Sent: 11 September 2003 08:47 To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] exception handling advice Hai, I followed your step-by-step instructions given to configure

[JBoss-user] WG: JAAS not bound

2003-09-11 Thread Oliver Refle
The only files i have in the lib directory of my webapp are jstl.jar struts.jar standard.jar jstl.jar No jboss files in my WEB-INF/lib. I saw this warning in my log, can this be the reason ? 09:21:27,156 ERROR [STDERR] Sep 11, 2003 9:21:27 AM java.util.jar.Attributes read WARNING: Duplicate nam

[JBoss-user] WG: JAAS not bound

2003-09-11 Thread Oliver Refle
09:28:44,599 INFO [STDOUT] invokers: org.jnp.interfaces.NamingContext 09:28:44,599 INFO [STDOUT] UserTransaction: org.jboss.tm.usertx.client.ClientUserTransaction 09:28:44,599 INFO [STDOUT] UserTransactionSessionFactory: org.jboss.tm.usertx.server.UserTransactionSessionFactoryImpl is the outp

[JBoss-user] WG: JAAS not bound

2003-09-11 Thread Oliver Refle
This is what is defined in my jndi.properties. java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces is this enough or do i need something additional ??? Thx Oliver -Ursprüngliche Nachricht- Von: [EMAIL PROTEC

Re: [JBoss-user] lazy loading CMR collections

2003-09-11 Thread Thomas Hentschel Lund
You should look into the value object pattern. It allows you to retrieve only specified fields from beans. If you are using xdoclet to generate your beans, then putting this into your code is trivial. Check out http://xdoclet.sourceforge.net/valueobjects.html for more info /Thomas Matthew Hi

Re: [JBoss-user] exception handling advice

2003-09-11 Thread Vijaya
Hai, I followed your step-by-step instructions given to configure 2 instances on the same machine. While I'm trying to access the jsps, some warning messages are getting printed like No Tx support for findByPrimaryKey, setSession and all.Can we ignore these warnings? Then I tried to pass a String

RE: [JBoss-user] exception handling advice

2003-09-11 Thread Brian McSweeney
Thanks for the response Mathew, I'll look into the business delegate pattern, however I'm still confused as to what I should do with finder and Create exceptions from the session facades. Should these be: a) Thrown on to the clients b) caught and EJBExceptions thrown on if b) is true, how

Re: [JBoss-user] Postgres + JBoss 3.2.1 + CMP

2003-09-11 Thread Mykola A. Nickishov
* Alexey Loubyansky <[EMAIL PROTECTED]> [030908 09:41]: > /** > * > * @jboss:entity-command name="postgresql-fetch-seq" > */ I use pk-sql command: /** * @jboss.entity-command *name="pk-sql" * @jboss.entity-command-attribute *name="pk-sql" *value="SELECT nextval('