[JBoss-user] [Persistence & CMP/JBoss] - Re: 4.0.2 + Hibernate Startup Problem

2005-07-15 Thread darranl
The Hibernate 3 migration guide can be found at: - http://www.hibernate.org/250.html View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3885020#3885020 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3885020 ---

[JBoss-user] [Persistence & CMP/JBoss] - Re: 4.0.2 + Hibernate Startup Problem

2005-07-15 Thread viking75
Hi. I guess you've probably sorted this for now, but for other viewers: I was having a similar problem, and found that changing this: net.sf.hibernate.dialect.MySQLDialect to this: org.hibernate.dialect.MySQLDialect --> worked. took me 3 damn days... View the original post : http://www

[JBoss-user] [Persistence & CMP/JBoss] - Re: NullPointerException thrown on cmp bean deployment

2005-07-13 Thread Crusadah
can you show me an example? i have the same problem, but i can't solve it View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3884788#3884788 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3884788 ---

[JBoss-user] [Persistence & CMP/JBoss] - Re: ORACLE BLOBS

2005-07-12 Thread pallotjk
Answer to this is as follows: 1. ensure that the 10g version of ojdbc14.jar is deployed to server/default/lib (if using default) 2. write method to obtain BLOB from table and write it to an OutputStream (in this example has been placed in a class called ProductBO - see 3 below) public vo

[JBoss-user] [Persistence & CMP/JBoss] - Re: How to deploy same EJBs to several DBs?

2005-07-12 Thread donniedarko
See http://www.jboss.org/index.html?module=bb&op=viewtopic&t=65869 View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3884494#3884494 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3884494 --

[JBoss-user] [Persistence & CMP/JBoss] - Re: retrieving byte array from sybase ASA

2005-07-07 Thread [EMAIL PROTECTED]
I have a similar problem with Ingres. I use byte[] without a @LOB annotation. public setMasterMac(byte[] masterMac) { this.masterMac = masterMac; } When I try to insert a value into the databese (the column is of type "long binary") I got error Caused by: java.lang.ClassCastException: [B

[JBoss-user] [Persistence & CMP/JBoss] - Re: Multiple Datasources

2005-07-07 Thread darranl
Just post the full descriptor and let me look at it. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3883991#3883991 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3883991

[JBoss-user] [Persistence & CMP/JBoss] - Re: Multiple Datasources

2005-07-06 Thread Pablogra
I didn't add any special descriptor. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3883933#3883933 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3883933 --- SF.Net e

[JBoss-user] [Persistence & CMP/JBoss] - Re: Column XXXX cannot be null. why not Default value?

2005-07-06 Thread schrouf
NOT JBoss is complaining about a NULL value, it's your underlying database. Have you specified a default for your column within your table SQL DDL statement ? Regards Ulf View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3883865#3883865 Reply to the post : ht

[JBoss-user] [Persistence & CMP/JBoss] - Re: MySQL Primary Key Problem

2005-07-05 Thread spiffer
I have updated jbosscmp-jdbc.xml to be as follows, and I get the same behavior: Subject Subject id id name name description description Thanks in advance View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3883789#3883789 Reply to th

[JBoss-user] [Persistence & CMP/JBoss] - Re: XAPoolDataSource

2005-07-05 Thread dhansen1969
Hello, I'm not 100% certain, but you might try using the XA DataSource that ships with Pointbase (com.pointbase.xa.xaDataSource). Also, the following is cut and pasted directly from the Pointbase Developer documentation: Important Note To successfully run your XA application with PointBase, y

[JBoss-user] [Persistence & CMP/JBoss] - Re: Multiple Datasources

2005-07-05 Thread darranl
Can you post the contents of your ejb-jar.xml and wrap it in [ code ][ / code ] tags without the spaces so that it displays correctly. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3883753#3883753 Reply to the post : http://www.jboss.org/index.html?module=b

[JBoss-user] [Persistence & CMP/JBoss] - Re: Multiple Datasources

2005-07-05 Thread Pablogra
I checked my descriptors and there is nothing about the hypersonic DB... Can somebody give tell me the steps to perform? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3883749#3883749 Reply to the post : http://www.jboss.org/index.html?module=bb&op=postin

[JBoss-user] [Persistence & CMP/JBoss] - Re: could not instantiate CacheProvider: net.sf.hibernate.ca

2005-07-05 Thread wendy.sue
I'm having the same problem and when I look in the ehcache-1.1.jar the ehcache-failsafe.xml file is there. Would someone please tell me how to fix this WARN! SPECIFIC LOG MESSAGE: WARN [Configurator] No configuration found. Configuring ehcache from ehcache-failsafe.xml faound in the classpat

[JBoss-user] [Persistence & CMP/JBoss] - Re: eager-load-group for CMR doesn't work

2005-07-05 Thread tbech
I've checked 3.2.7 - the same situation. I think it is time to issue bug. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3883621#3883621 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3883621 ---

[JBoss-user] [Persistence & CMP/JBoss] - Re: newbie with Hibernate...

2005-07-04 Thread pady
It turned out to be a MySQL driver issue with 3.1. I went back to 3.0 and it works fine. Thanks -- pady View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3883590#3883590 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=38

[JBoss-user] [Persistence & CMP/JBoss] - Re: Multiple Datasources

2005-07-04 Thread darranl
The code within the session bean is looking up the datasource in the java:comp/env namespace that is specific to the session bean. Had you tried writing your session bean against the Hypersonic datasource first? Have you added any entries to the deployment descriptor of your session bean that l

[JBoss-user] [Persistence & CMP/JBoss] - Re: Column XXXX cannot be null. why not Default value?

2005-07-04 Thread svewap
Ok, my last post was stupid and a case for the beginner's corner. a jbuilder 2005 problem. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3883585#3883585 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3883585 -

[JBoss-user] [Persistence & CMP/JBoss] - Re: Multiple Datasources

2005-07-04 Thread wmaidub
Supongo que hablarás Español, así que voy a contestarte así, sino no hablas Español, avisame y te lo escribo en ingles. Para agregar otro datasource, tenés que simplemente agregar otra rama de tu local-tx-datasource... entiendes?? View the original post : http://www.jboss.org/index.html?module

[JBoss-user] [Persistence & CMP/JBoss] - Re: Multiple Datasources

2005-07-04 Thread Pablogra
I alse added the Microsofts sql server drivers in the lib folder, sp4 I think. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3883582#3883582 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3883582 --

[JBoss-user] [Persistence & CMP/JBoss] - Re: Column XXXX cannot be null. why not Default value?

2005-07-04 Thread svewap
i have generally problems to insert datas into my mysql-table at ejbCreate or ejbPostCreate. For example: | public Integer ejbCreate(Integer idcompanyuser, Integer companyid, |String username) throws CreateException { | setIdcompany(companyid); // -> work

[JBoss-user] [Persistence & CMP/JBoss] - Re: eager-load-group for CMR doesn't work

2005-07-04 Thread tbech
anonymous wrote : make sure you are in a transaction with "Required" attribute setting i've checked and it is 'required'. anonymous wrote : Also dont use the EJBQLToSQL92DCompiler in deploy desc. Not used As triathlon98 says, it is similar in 4.0.2 so probably 3.2.7 also. And I have 100+ beans,

[JBoss-user] [Persistence & CMP/JBoss] - Re: MySQL Primary Key Problem

2005-07-03 Thread [EMAIL PROTECTED]
Do not use unknown-pk and move auto-increment to id column. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3883486#3883486 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3883486 -

[JBoss-user] [Persistence & CMP/JBoss] - Re: eager-load-group for CMR doesn't work

2005-07-01 Thread alt_amit
make sure you are in a transaction with "Required" attribute setting. Also dont use the EJBQLToSQL92DCompiler in deploy desc. If that doesnt work, try CMR left join read ahead feature. that definitely works. basically get your B attrs when you get your A's into the global cache. use 3.2.7, not

[JBoss-user] [Persistence & CMP/JBoss] - Re: problem using BLOB datatype with CMP2.0

2005-07-01 Thread Balaji_SDT
no yaar i am still struck with that... and i badly need it. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3883378#3883378 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3883378 -

[JBoss-user] [Persistence & CMP/JBoss] - Re: problem using BLOB datatype with CMP2.0

2005-07-01 Thread pallotjk
Have you had any success with this? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3883376#3883376 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3883376 --- SF.Net e

[JBoss-user] [Persistence & CMP/JBoss] - Re: eager-load-group for CMR doesn't work

2005-07-01 Thread triathlon98
I am having the same problematic behaviour in JBoss 4.0.2. In fact, I have the impression that it worked in earlier versions. If only I knew for sure when it worked... Joachim View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3883355#3883355 Reply to the post :

[JBoss-user] [Persistence & CMP/JBoss] - Re: eager-load-group for CMR doesn't work

2005-07-01 Thread tbech
Could someone confirm if it is normal behaviour or bug or my wrong configuration?!? It really kills performance. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3883344#3883344 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=repl

[JBoss-user] [Persistence & CMP/JBoss] - Re: SQL statements logging

2005-07-01 Thread fbiaggi
Hello, you may try p6spy View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3883319#3883319 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3883319 --- SF.Net email is spon

[JBoss-user] [Persistence & CMP/JBoss] - Re: Jboss 4.02 CMP EntityBean. JBoss creates TABLES in MySQL

2005-06-29 Thread darranl
Yes, sorry it was late when I was replying to your posts, the full DOCTYPE should be: - | http://www.jboss.org/j2ee/dtd/jbosscmp-jdbc_4_0.dtd";> View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3883138#3883138 Reply to the post : http://www.jboss.org/inde

[JBoss-user] [Persistence & CMP/JBoss] - Re: Jboss 4.02 CMP EntityBean. JBoss creates TABLES in MySQL

2005-06-29 Thread natgross
Darranal, It's working! I just had to change the DOCTYPE in your post from 'jboss' to 'jbosscmp-jdbc'. Thanks again; -nat View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3883123#3883123 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting

[JBoss-user] [Persistence & CMP/JBoss] - Re: A CMR collection may only be used within the transction

2005-06-29 Thread thepriz
I am using CMP. I use ant to create the descriptors. I found that * @ejb.transaction *type="Required" * this is in the declaration. I believe this is like this because we are using a Oracle database. How can I get this to work? View the original post : http://www.jboss.org/index.html?mo

[JBoss-user] [Persistence & CMP/JBoss] - Re: How to integrate a sar of Hibernate in a JBoss EAR

2005-06-29 Thread darranl
Because the spec says the folder is to be called 'META-INF', if you use lower case that is effectively a different folder name. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3883110#3883110 Reply to the post : http://www.jboss.org/index.html?module=bb&op=po

[JBoss-user] [Persistence & CMP/JBoss] - Re: How to integrate a sar of Hibernate in a JBoss EAR

2005-06-29 Thread Dynapen
How on earth could renaming the META-INF directory follow the spec? I am having the same problem with the EAR not deploying the SAR's it contains on 4.0.2. Tried everything, and if I have to go to the point of renaming the META-INF directory everytime I would rather switch app servers. View

[JBoss-user] [Persistence & CMP/JBoss] - Re: Query SQL af ter CMP set method can´t read the updated va

2005-06-29 Thread javabr
Please, Does anybody help me with this problem ? I'm in trouble... :) View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3883088#3883088 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3883088

[JBoss-user] [Persistence & CMP/JBoss] - Re: CMP, MYSQL & Blob

2005-06-29 Thread gaferrero
Thanks again for your reply tomerbd2, the method in the entity bean is public abstract byte[] getImagen(); public abstract void setImagen(byte[] imagen); In the SessionBean i call getImagen() and pass its return value to the ImagenMamo constructor, this class is serializable. View the original

[JBoss-user] [Persistence & CMP/JBoss] - Re: CMP, MYSQL & Blob

2005-06-29 Thread tomerbd2
what the method signature of the image in your entity bean View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3883067#3883067 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3883067 --

[JBoss-user] [Persistence & CMP/JBoss] - Re: Jboss 4.02 CMP EntityBean. JBoss creates TABLES in MySQL

2005-06-28 Thread natgross
Maybe it was pickin up the old jbosscmp-jdbc.xml because I just did a 'clean' rebuild, redploy and now its complaining about the jbosscmp-jdbc.xml (I lifted it out of your post.) | Error message: Document root element "jbosscmp-jdbc", must match DOCTYPE root "jboss". Seems like I need to stu

[JBoss-user] [Persistence & CMP/JBoss] - Re: Jboss 4.02 CMP EntityBean. JBoss creates TABLES in MySQL

2005-06-28 Thread natgross
Maybe it was pickin up the old jbosscmp-jdbc.xml because I just did a 'clean' rebuild, redploy and now its complaining about the jbosscmp-jdbc.xml (I lifted it out of your post.) | Error message: Document root element "jbosscmp-jdbc", must match DOCTYPE root "jboss". Seems like I need to stu

[JBoss-user] [Persistence & CMP/JBoss] - Re: Jboss 4.02 CMP EntityBean. JBoss creates TABLES in MySQL

2005-06-28 Thread darranl
Sorry, I have just double checked and I made a mistake regarding the name to use within the query. The is the value to use in the query not the bean name, this value is just used within the queries. Some people reccomend that you keep this the same as your bean name, that is where I had the t

[JBoss-user] [Persistence & CMP/JBoss] - Re: CMP, MYSQL & Blob

2005-06-28 Thread gaferrero
Thanks for replie, i still have the problem, when i retrieve the image in the client application and exception happens Caused by: java.io.NotSerializableException: sun.awt.windows.WImage at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1054) at java.io.ObjectOut

[JBoss-user] [Persistence & CMP/JBoss] - Re: Jboss 4.02 CMP EntityBean. JBoss creates TABLES in MySQL

2005-06-28 Thread natgross
. alas... no go. Please, here is a copy of my ejb-jar.xml. (The name of the sql table is `TypeG`.) | | http://java.sun.com/xml/ns/j2ee"; | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; | xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee | http://java.sun.com/xml/ns/j2ee/e

[JBoss-user] [Persistence & CMP/JBoss] - Re: Jboss 4.02 CMP EntityBean. JBoss creates TABLES in MySQL

2005-06-28 Thread natgross
Thank you very much! Hope to report with success soon. -nat View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3882998#3882998 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3882998 -

[JBoss-user] [Persistence & CMP/JBoss] - Re: Jboss 4.02 CMP EntityBean. JBoss creates TABLES in MySQL

2005-06-28 Thread darranl
If you have a look in the docs folder of your JBoss installation you will find a dtd and schema folder, these two folders contain the dtd's and schemas that describe the layouts of the various deployment descriptors. This is the best place to start when trying to work out the structure of the f

[JBoss-user] [Persistence & CMP/JBoss] - Re: Jboss 4.02 CMP EntityBean. JBoss creates TABLES in MySQL

2005-06-28 Thread natgross
"darranl" wrote : Have you got a jbosscmp-jdbc.xml deployment descriptor being deployed with your entity bean? | Yes. I copied the standardjbosscmp-jdbc.xml over and modified the datasource, leaving all other settings the same. (It is using the correct datasource per this file.) anonymous

[JBoss-user] [Persistence & CMP/JBoss] - Re: Jboss 4.02 CMP EntityBean. JBoss creates TABLES in MySQL

2005-06-28 Thread darranl
Have you got a jbosscmp-jdbc.xml deployment descriptor being deployed with your entity bean? Inside that deployment descriptor you can specify the name that should be used for the table in a element within the element. The name within the EJB-QL is the name of the EJB which is not allways the

[JBoss-user] [Persistence & CMP/JBoss] - Re: Query SQL af ter CMP set method can´t read the updated va

2005-06-28 Thread javabr
To complete.. I using sync-on-commit-only==false and it did not work too. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3882942#3882942 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3882942 --

[JBoss-user] [Persistence & CMP/JBoss] - Re: delay-updates-until-end-of-tx (BEA) and sync-on-commit-o

2005-06-28 Thread javabr
PChandra, I realy think this is true... sync-on-commit-only == delay-updates-until-end-of-tx But, I tried use sync-on-commit-only==false and it did not work. See http://www.jboss.org/index.html?module=bb&op=viewtopic&t=65698 View the original post : http://www.jboss.org/index.html?module=bb&

[JBoss-user] [Persistence & CMP/JBoss] - Re: errors with alter-table <- true in jbosscmp-jdbc.xml Dup

2005-06-27 Thread svewap
hi! You are not alone. I tried today to create my MySQL-tables by my ejbs. if they already exist and the alter-table - value is true, jbossas wants to duplicate the primary-column in my table. i can understand my mysql-db, why it says: "Stupid boy! Why do you want to duplicate a column?". Sounds

[JBoss-user] [Persistence & CMP/JBoss] - Re: CMP, MYSQL & Blob

2005-06-27 Thread tomerbd2
for a start just use byte[] as your method type it would be converted automatically to corresponding default data type in the database View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3882844#3882844 Reply to the post : http://www.jboss.org/index.html?module=bb

[JBoss-user] [Persistence & CMP/JBoss] - Re: Oracle and Ms Sql Server datasources simultaneouly

2005-06-27 Thread darranl
"rogermori" wrote : | Since the file /server/defatul/conf/standardjbosscmp-jdbc.xml | allows only one entry for a datasource element, | How can I configure both datasources ? | What are you trying to achieve? An entity can only be associated with a single datasource, if you want dif

[JBoss-user] [Persistence & CMP/JBoss] - Re: Unknown pk works but a CreateException is thrown

2005-06-26 Thread darranl
If you are letting the database generate your primary keys for you there is some JBoss specific configuration required: - You did not say which JBoss version you are using so I am assuming that you are using JBoss 4. The application server guide contains a chapter for the CMP container, secion

[JBoss-user] [Persistence & CMP/JBoss] - Re: jboss-4.0.1 startup slow (Entitybean SQL generation prob

2005-06-22 Thread nicolas
Concerning this issue, a bug report has just been posted, please see: http://jira.jboss.com/jira/browse/JBAS-1941 Nicolas View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3882448#3882448 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&m

[JBoss-user] [Persistence & CMP/JBoss] - Re: How store a big file in postgresql without breaking the

2005-06-22 Thread tbech
SQL in SessionBean is spagethi code (or at least anti-pattern). Use Entity Bean for it. Mapping for PostgreSQL is: java.lang.Object VARBINARY BYTEA Did you try such field in entity? (I use String and TEXT for very long texts and works perfec

[JBoss-user] [Persistence & CMP/JBoss] - Re: Jboss4.0.2 and Hibernate3 problem

2005-06-21 Thread rjkimme
What does your configuration file look like in order to use the JTA with hib3 in Jboss4 with JNDI? We can't get our's figured right. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3882283#3882283 Reply to the post : http://www.jboss.org/index.html?module=bb&

[JBoss-user] [Persistence & CMP/JBoss] - Re: 4.0.2 + Hibernate Startup Problem

2005-06-20 Thread cortesr
I solved this by using the org.hibernate Dialects. Guess the classes moved packages in Hibernate 3. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3882196#3882196 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3882196

[JBoss-user] [Persistence & CMP/JBoss] - Re: postgres and foreign key relation problems

2005-06-20 Thread tbech
IMHO the method of setting fk field as nullable is the best and easiest solution. See page before how to achieve it in XDoclet. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3882089#3882089 Reply to the post : http://www.jboss.org/index.html?module=bb&op=pos

[JBoss-user] [Persistence & CMP/JBoss] - Re: configuring CMP to use Oracle8i

2005-06-16 Thread raviupasi
Hi Anupama, I have not configred Jboss with Oracle , but I had got a good link which explains on how to configure Jboss with different DB's check it out... http://www.onjava.com/pub/a/onjava/2004/02/25/jbossjdbc.html#ejbs Hope this is of some help regards, Ravi View the original post : http:/

[JBoss-user] [Persistence & CMP/JBoss] - Re: Ways to tune Jboss CMP

2005-06-16 Thread raviupasi
Hi Stefan, thanks for your response . I had tried with Read-ahead but did not give any change and later tired with lazy-loadgroup I was able to reduce the total number of query which was reapeating more than 200 times to 50times by using the Loadgroup and lazy load group tag in jbosjdbc-cmp.

[JBoss-user] [Persistence & CMP/JBoss] - Re: JBoss and DB2 error

2005-06-16 Thread [EMAIL PROTECTED]
Look at the type mapping configuration section of the cmp2 engine in the admin/devel guide. http://www.jboss.org/docs/index View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3881798#3881798 Reply to the post : http://www.jboss.org/index.html?module=bb&op=postin

[JBoss-user] [Persistence & CMP/JBoss] - Re: Ways to tune Jboss CMP

2005-06-16 Thread smeier
Hi Ravi, one possibility of tuning CMP permormance is the definition of load groups read-ahead strategies. Example from the docs (it's from jboss 3.2 so I don't know if it is exactly the same in jboss 4) Define load group for the entity bean: | | | basic | name | nickName | badne

[JBoss-user] [Persistence & CMP/JBoss] - Re: DeploymentException: Mappings were not provided

2005-06-15 Thread rpa_rio
A lot! Thanks! View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3881634#3881634 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3881634 --- SF.Net email is sponsored by:

[JBoss-user] [Persistence & CMP/JBoss] - Re: Hibernate3

2005-06-15 Thread jrayburn
sblezard - I'm getting the same class cast exception - was this ever bugged and if so, was it fixed? Or did you figure out a work around? Thanks! John View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3881606#3881606 Reply to the post : http://www.jboss.org/i

[JBoss-user] [Persistence & CMP/JBoss] - Re: DeploymentException: Mappings were not provided

2005-06-15 Thread redBeard15
Yes, I did find a solution. The details: 1) For the data model, I specify a single (auto_increment) field for primary key and single field for a 'parent' key. Then I create a 'unique index' on the logical key (e.g., productID) and parentKey. My 'product' table follows: | create table if

[JBoss-user] [Persistence & CMP/JBoss] - Re: ejbStore() is not called when a new instance is created,

2005-06-15 Thread smeier
Hi, I solved the problem by adding the line true to my entity bean container configuration (which is included in the "Standard CMP 2.x EntityBean" configuration by default in jboss 3.2.7, but I used my old standardjboss.xml in which it was missing). Best Regards, Stefan View the ori

[JBoss-user] [Persistence & CMP/JBoss] - Re: CMR question

2005-06-15 Thread rpa_rio
"[EMAIL PROTECTED]" wrote : Hi guys ! | | I had this problem. It 's that you must understand the way to think when you describe your relations. | | Here is something that will help you : | | = | | | Company-Division |

[JBoss-user] [Persistence & CMP/JBoss] - Re: DeploymentException: Mappings were not provided

2005-06-15 Thread rpa_rio
"[EMAIL PROTECTED]" wrote : I'm running: | - JBoss 3.2.3 | - Xdoclet 1.2.1 | - MySQL 4.0.21 | - Linux RedHat 9 | | I have what seems to be a rather classic data model: | | Items: | - itemId | - price | - cost | - size | - productId | | Products:

[JBoss-user] [Persistence & CMP/JBoss] - Re: DuplicateKeyExecption and primary key generation

2005-06-15 Thread tomerbd2
found the solution: 1. updated database isolation level to read commited 2. the selects from this table are select for update 3. commit option C for this table now everything is fine :) View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3881531#3881531 Reply to th

[JBoss-user] [Persistence & CMP/JBoss] - Re: Jboss4.0.2 and Hibernate3 problem

2005-06-13 Thread qiuwg
"qiuwg" wrote : "d-rock" wrote : Removing all of the hibernate classes + dependencies solved this. | | | Apparently, I didn't have any hibernate jars in my war file, but I still have the same problem. I am using the Struts. And also I did one testing, once I directly use servlet or JSP p

[JBoss-user] [Persistence & CMP/JBoss] - Re: Jboss4.0.2 and Hibernate3 problem

2005-06-13 Thread qiuwg
"d-rock" wrote : Removing all of the hibernate classes + dependencies solved this. Apparently, I didn't have any hibernate jars in my war file, but I still have the same problem. I am using the Struts. And also I did one testing, once I directly use servlet or JSP page, it works fine, ... Any

[JBoss-user] [Persistence & CMP/JBoss] - Re: How store a big file in postgresql without breaking the

2005-06-11 Thread rpa_rio
I found the solution, i created a SessionBean and put all PostgreSQL specific code there to store the file. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3881186#3881186 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=38

[JBoss-user] [Persistence & CMP/JBoss] - Re: EJB Relationsship for remote and local interfaces

2005-06-10 Thread schmidts
CMR can only be used with local interfaces. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3881095#3881095 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3881095 ---

[JBoss-user] [Persistence & CMP/JBoss] - Re: Changing database structure

2005-06-10 Thread jim168
OS: Windows 2000 JBoss:4.0.2 EJB3.0:Preview 5 hibernate.hbm2ddl.auto=update no matter alter-table is set or not: when there is a property added in entity bean, there is a field added. :) when there is a property deleted in entity bean, nothing changed in db table. :( Is that a issue not implement

[JBoss-user] [Persistence & CMP/JBoss] - Re: HAR deployment problem in JBoss 4.0.2

2005-06-09 Thread d-rock
Make sure your ear does not contain the hibernate jar or dependency libs (cglib, dom4j, etc). It appears to be a classloader issue that ends up generating more than one singleton to map the SessionFactory. Derek View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=

[JBoss-user] [Persistence & CMP/JBoss] - Re: Jboss4.0.2 and Hibernate3 problem

2005-06-09 Thread d-rock
Removing all of the hibernate classes + dependencies solved this. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3881014#3881014 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3881014 ---

[JBoss-user] [Persistence & CMP/JBoss] - Re: Does Sybase DB support

2005-06-09 Thread tgprivate
"adellechiaie" wrote : Which version of Sybase ASE (I suppose) are you using??? | Until ASE 11.9.2 only TransactSQL left outer join syntax is supported (t1*=t2), from 12.0 and after (12.5.x) also the ANSI syntax is supported (left outer join t1 on t2.id=t1.id). | Ciao | Thank you very muc

[JBoss-user] [Persistence & CMP/JBoss] - Re: Does Sybase DB support

2005-06-09 Thread adellechiaie
Which version of Sybase ASE (I suppose) are you using??? Until ASE 11.9.2 only TransactSQL left outer join syntax is supported (t1*=t2), from 12.0 and after (12.5.x) also the ANSI syntax is supported (left outer join t1 on t2.id=t1.id). Ciao View the original post : http://www.jboss.org/index.

[JBoss-user] [Persistence & CMP/JBoss] - Re: Sequence Access Problem when upgrading from 3.2.2 to 3.2

2005-06-09 Thread Roger01
Hi, Thanks for the response. Yes we did download the driver that was specified for our versions of PostgreSQL and JRE. We are currently using a JDBC 3.0 driver and I am wondering if this could be causing any problems. Cheers Roger View the original post : http://www.jboss.org/index.html?mo

[JBoss-user] [Persistence & CMP/JBoss] - Re: Sequence Access Problem when upgrading from 3.2.2 to 3.2

2005-06-08 Thread schmidts
Might be a driver issue. Did you update the JDBC driver, too? (http://jdbc.postgresql.org/download.html) View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3880856#3880856 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=38808

[JBoss-user] [Persistence & CMP/JBoss] - Re: HARDeployer in hibernate3-deployer.zip compatible with J

2005-06-07 Thread shuddleston
I ended up deploying Hibernate3 on JBoss 4.0.0 as a SAR using the org.hibernate.jmx.HibernateService mbean instead of as a HAR. This seems to work well. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3880701#3880701 Reply to the post : http://www.jboss.org/

[JBoss-user] [Persistence & CMP/JBoss] - Re: DataSource problem in Jboss 4.0

2005-06-07 Thread yangju
I got similar problem, although it happened to my own mbeans. The mbean is loaded before the datasource is bound. Therefore the mbean keeps compaining about the datasource. Anybody has any idea? I use jboss 4.0.2 but found the same thing on 4.0.1. View the original post : http://www.jboss.org/

[JBoss-user] [Persistence & CMP/JBoss] - Re: Hibernate 2.1.x on Jboss 4.0.2 - what's changed since 4.

2005-06-06 Thread [EMAIL PROTECTED]
Moved to user forum. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3880415#3880415 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3880415 --- This SF.Net email is spo

[JBoss-user] [Persistence & CMP/JBoss] - Re: A CMR collection may only be used within the transction

2005-06-03 Thread schmidts
In the deployment-descriptor of your SessionBean you either declare wether to use container managed or bean managed transaction demarcation. In case of container managed transaction, check if the trans-attribute is e.g. "Required". In case of bean managed TX, programmatically obtain the UserTra

[JBoss-user] [Persistence & CMP/JBoss] - Re: oracle Date type and EJBs

2005-06-03 Thread schmidts
When speaking of the Oracle DATE type: You are going to loose precision when mapping java.util.Date to DATE. The former has a resolution of milliseconds, the latter only keeps full seconds. You might better want to map java.util.Date to Oracle's TIMESTAMP(3) type. http://www.oracle.com/technolo

[JBoss-user] [Persistence & CMP/JBoss] - Re: oracle Date type and EJBs

2005-06-03 Thread schmidts
The invocation of OracleResultSetImpl.getLong() that is shown in the stacktrace puzzles me. It seems that it's not JBoss' CMP engine that is calling this method. Instead the stacktrace tells that KingPackageGeneratorProcess is calling this directly. Anyway, using java.util.Date with Oracle work

[JBoss-user] [Persistence & CMP/JBoss] - Re: jboss4.0.2 and hibernate3.0.2 deployer exception

2005-06-03 Thread KaiB
Yes, it works. But mind to copy common-collections.jar to jboss-4.0.2\server\default\lib and not to jboss-4.0.2\lib (where it was located in JBoss 4.0.1). View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3880185#3880185 Reply to the post : http://www.jboss.org/

[JBoss-user] [Persistence & CMP/JBoss] - Re: read only beans contention

2005-06-03 Thread krishna505
I think I found root cause for my issue. Though the read-only beans do not get locked into transactions, invocation lock still exists. In other words, only one thread can access a bean instance at a time. But, does this still cause transaction dead-locks? If it does, what's the purpose of conf

[JBoss-user] [Persistence & CMP/JBoss] - Re: Problem with Postgresql boolen type with Jboss

2005-06-02 Thread crmwind
I had the same error as Ramarao (also using Postgres 8.0). I tried the suggestion by Peter, but still the same message (which I repeat below without typos) java.sql.SQLException: ERROR: column "xyz" is of type boolean but expression is of type character After experimenting, I got it to work b

[JBoss-user] [Persistence & CMP/JBoss] - Re: adding jbosscmp-jdbc.xml causes NullPointerException

2005-06-02 Thread jaybossy
The older JBoss versions do not have this particular file. So anyone who encounters this problem use JBoss 3.2.5 or newer. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3880044#3880044 Reply to the post : http://www.jboss.org/index.html?module=bb&op=postin

[JBoss-user] [Persistence & CMP/JBoss] - Re: ResultSetInPool

2005-06-02 Thread hotcoffee66
You can find it in ofbiz.org. But I have tried it, it still doesn't work. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3879915#3879915 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3879915 ---

[JBoss-user] [Persistence & CMP/JBoss] - Re: Jboss4.0.2 and Hibernate3 problem

2005-06-01 Thread d-rock
See http://www.jboss.com/index.html?module=bb&op=viewtopic&t=64652 Derek View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3879776#3879776 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3879776 ---

[JBoss-user] [Persistence & CMP/JBoss] - Re: Jboss4.0.2 and Hibernate3 problem

2005-05-31 Thread d-rock
A lot of people are posting about this issue. I've opened a JIRA case: http://jira.jboss.com/jira/browse/JBAS-1858 Derek View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3879558#3879558 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&m

[JBoss-user] [Persistence & CMP/JBoss] - Re: Sql not generating properly

2005-05-29 Thread asdesai
My mistake in earlier post, I was little confused as all other CMPs in my project does not have getter and those still works!! Anyway I tried putting getter methods in PK class but still getting same error. The query jboss is generating is missing FROM a expression before FROM. It is generating

[JBoss-user] [Persistence & CMP/JBoss] - Re: Sql not generating properly

2005-05-29 Thread asdesai
Hi, can you please tell me what did you mean by getters on PK class? I'm getting the same problem and not able to find what is wrong in my query or PK class. Thanks. PK class is as follow: public class SMPPAgentProfileParmsPK implements Serializable { | //

[JBoss-user] [Persistence & CMP/JBoss] - Re: Jboss 4.0.2 Hibernate3, null JNDI session factory

2005-05-27 Thread d-rock
I've been working on this one in: http://www.jboss.com/index.html?module=bb&op=viewtopic&t=64290 See if you get similar results in your server.log please. Derek View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3879328#3879328 Reply to the post : http://www.jb

[JBoss-user] [Persistence & CMP/JBoss] - Re: Jboss4.0.2 and Hibernate3 problem

2005-05-27 Thread d-rock
OK, I think I'm on the right track. I've traced the error messages: 2005-05-27 18:59:57,104 DEBUG [org.hibernate.impl.SessionFactoryObjectFactory] JNDI lookup: hibernate/LocMasterFactory 2005-05-27 18:59:57,104 DEBUG [org.hibernate.impl.SessionFactoryObjectFactory] lookup: uid=ff808081042091fb01

[JBoss-user] [Persistence & CMP/JBoss] - Re: Jboss4.0.2 and Hibernate3 problem (closer)

2005-05-27 Thread d-rock
OK, this is starting to look like a stupid configuration issue. Please, someone with more experience step in. Here's what I've done so far: 1. I made a single JSP called "test.jsp" that I placed in a directory called "test.war" in my deployment dir. When I run it, I get this: Context = [EMAIL P

[JBoss-user] [Persistence & CMP/JBoss] - Re: Jboss4.0.2 and Hibernate3 problem

2005-05-27 Thread d-rock
I've been looking at the code for the JBoss Hibernate MBean and I don't see anything glaring. I'm wondering if maybe for some reason the Tomcat InitialContext is different from the JBoss InitialContext. If that were the case then you wouldn't be able to look up things in Tomcat that had been re

[JBoss-user] [Persistence & CMP/JBoss] - Re: Jboss4.0.2 and Hibernate3 problem

2005-05-27 Thread d-rock
If you look higher up in your logs, you'll probably find the line: [SessionFactoryObjectFactory] Not binding factory to JNDI, no JNDI name configured This seems to be something new to 4.0.2/Hib3, but JIRA's down at the moment so I can't look to see if there are any bug reports out. Derek View

[JBoss-user] [Persistence & CMP/JBoss] - Re: throws javax.ejb.CreateException, causedBy:java.lang.Ill

2005-05-26 Thread paarsar
sure can i send to your email or just post it View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3879187#3879187 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3879187 ---

  1   2   3   4   5   6   7   8   9   10   >