[JBoss-user] [EJB 3.0] - Re: Problem with Lazy attributes - 4.0.3SP1-EJB3.0RC4

2006-03-16 Thread trofimov
This bug fixed or not?
Thanx.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3930630#3930630

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3930630


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB 3.0] - Re: Inheritance and Index. How?

2006-01-12 Thread trofimov
Use
@org.hibernate.annotations.Table(name = "TANLE_NAME, indexes = {
  | @Index(name = "idx_name", columnNames = { "name" }) 
  | ...
  | })
  | 

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3917281#3917281

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3917281


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB 3.0] - Entity and permission

2006-01-12 Thread trofimov
How I can set permission on Entity bean?
It's possible?

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3917279#3917279

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3917279


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB 3.0] - @OneToOne and constraint

2006-01-10 Thread trofimov
I have Entity1 and Entity2.
Entity1 have ref (@OneToOne) on Entity2.
If i remove Enity2, i recive exception "ConstraintViolationException".
How i can remove Entity2 without:

...
  | Entity1.setEntity2(null);
  | em.merge(Entity1.);
  | em.remove(Entity2);
  | ...
Thanx.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3916810#3916810

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3916810


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB 3.0] - Embeddable EJB 3.0 and warning "WARN 10-01 15:28:50,890 (Xs

2006-01-10 Thread trofimov
I recive from Embeddable EJB 3.0 warning "WARN  10-01 15:28:50,890 
(XsdBinder.java:bindGlobalGroup:1097)  -NOT HANDLED WILDCARD IN GLOBAL MODEL 
GROUP" and how this message hide?
Thanx.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3916802#3916802

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3916802


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB 3.0] - Inheritance and Index. How?

2006-01-10 Thread trofimov
I have 3 entity objects, for example: Pet, Cat, Dog.
I use @Inheritance(strategy = InheritanceType.TABLE_PER_CLASS).
Pes is base class for Cat, Dog.
Pet have column "Name" with @Index(name="xxx").
But, when table is create, i recive error:
ERROR 10-01 11:05:39,890 (SchemaExport.java:create:258)  -Unsuccessful: create 
index xxx on Cat (Name)
ERROR 10-01 11:05:39,890 (SchemaExport.java:create:259)  -ERROR: relation "xxx" 
already exists
ERROR 10-01 11:05:39,921 (SchemaExport.java:create:258)  -Unsuccessful: create 
index xxx on Dog (Name)
ERROR 10-01 11:05:39,921 (SchemaExport.java:create:259)  -ERROR: relation "xxx" 
already exists

How i can use index in Inheritance?
Thanx.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3916614#3916614

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3916614


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB 3.0] - Re: JBoss 4.0.3 - EJB 3.0 - Exception caused by UNIQUE const

2005-12-15 Thread trofimov
I have a similar problem.
My Slsb have method:

  | public void addUser(User user) throws Exception {
  | try {
  | em.persist(user);
  | em.flush();
  |} catch (ConstraintViolationException e) {
  | throw new UserAlreadyExistsException(
  | "User already exist!", e);
  | } catch (PropertyValueException e) {
  | throw new PropertyInvalidException(e.getEntityName(), 
e.getPropertyName());
  | }
  | }
  | 

UserAlreadyExistsException it is caught, but if i catch PropertyValueException, 
PropertyInvalidException not rise!
Client recive:


  | java.lang.RuntimeException: org.jboss.tm.JBossRollbackException: Unable to 
commit, tx=TransactionImpl:XidImpl[FormatId=257, GlobalId=lserver/68, 
BranchQual=, localId=68] status=STATUS_NO_TRANSACTION; - nested throwable: 
(org.hibernate.PropertyValueException: not-null property references a null or 
transient value: ru.migusoft.ent.persist.security.User.accountName)

Where I should catch PropertyValueException exception?

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3913040#3913040

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3913040


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB 3.0] - java.lang.RuntimeException: org.jboss.tm.JBossRollbackExcept

2005-12-14 Thread trofimov
I have Stateles bean with method:

  | ...
  | @TransactionAttribute(TransactionAttributeType.REQUIRES_NEW)
  | public void addUser(User user) throws Exception {
  | try {
  | em.persist(user);
  | } catch (Exception e) {
  | throw e;
  | }
  | }
  | ...
  | 
When i call this method from client i recive:

  | java.lang.RuntimeException: org.jboss.tm.JBossRollbackException: Unable to 
commit, tx=TransactionImpl:XidImpl[FormatId=257, GlobalId=lserver/662, 
BranchQual=, localId=662] status=STATUS_NO_TRANSACTION; - nested throwable: 
(org.hibernate.exception.ConstraintViolationException: Could not execute JDBC 
batch update)
  | 
Why transaction can't rollback?

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3912558#3912558

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3912558


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB 3.0] - Error "Timer already cancelled"

2005-11-29 Thread trofimov
Sometimes when i deploy ejb3 i get error:

--- MBeans waiting for other MBeans ---
  | ObjectName: jboss.j2ee:service=EJB3,name=org.test.ejb.dao.RoleDAOBean
  |   State: FAILED
  |   Reason: java.lang.IllegalStateException: Timer already cancelled.
  | 

What is mean?

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3909492#3909492

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3909492


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Security & JAAS/JBoss] - Re: Security Proxy in JBoss 4.0.1

2005-11-09 Thread trofimov
Who have solution for this problem?

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3906498#3906498

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3906498


---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Persistence,JBoss/CMP, Hibernate, Database] - Re: How deploy several HAR files?

2005-09-27 Thread trofimov
Sorry:

  | 
  | 
  | java:/DefaultDS
  | org.hibernate.dialect.PostgreSQLDialect
  | java:/hibernate/SessionFactory
  | org.hibernate.cache.HashtableCacheProvide
  | 
  | r
  | create-drop
  | true
  | 
  |  

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3897534#3897534

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3897534


---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Persistence,JBoss/CMP, Hibernate, Database] - Re: How deploy several HAR files?

2005-09-27 Thread trofimov
hibernate-service.xml:


java:/DefaultDS
org.hibernate.dialect.PostgreSQLDialect
java:/hibernate/SessionFactory
org.hibernate.cache.HashtableCacheProvide

r
create-drop
true

 


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3897533#3897533

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3897533


---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Persistence,JBoss/CMP, Hibernate, Database] - How deploy several HAR files?

2005-09-27 Thread trofimov
I have deployed HAR file with hibernate-service.xml (use hibernate 

3 and JBOSS 4.x)



java:/DefaultDS
org.hibernate.dialect.PostgreSQLDialect
java:/hibernate/SessionFactory
org.hibernate.cache.HashtableCacheProvide

r
create-drop
true

 

And i want deploy new HAR file. Jboss print error in log:

org.jboss.deployment.DeploymentException: Trying to install an 

already registered mbean: jboss.har:service=Hibernate

How i can deploy new har file and use existing SessionFactoryName?
Thank you.


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3897532#3897532

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3897532


---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user