[JBoss-user] [JBossWS] - @WebService - Invalid byte 2 of 2-byte UTF-8 sequence

2006-06-27 Thread hlfsousa
This problem is also reported at http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3930922. I checked JIRA and it seems that the fix was done in late April, so I assume it is the code released with JBossAS 4.0.4 GA. However, I ran on this problem while defining a web service through anno

[JBoss-user] [EJB 3.0] - Re: SerializationException, not sure about the source

2006-05-23 Thread hlfsousa
I guess we posted at the same time :) I'm using JBoss 4.0.4.CR2 (can't upgrade to GA right now because of some bad collection mapping; not my fault). Thanks for the tips, they are certainly very useful. I'm using that DateFormat just for debugging and intend to remove it soon -- as soon as every

[JBoss-user] [EJB 3.0] - Re: SerializationException, not sure about the source

2006-05-23 Thread hlfsousa
Since I cannot delete this topic, let me just say that I solved the problem. The thing is, as the error suggests, that I had a SimpleDateFormat that was not serializable. I declared it in a class as '"DateFormat fmt", and assigned a value to it as DateFormat.getDateInstance(). It was used to for

[JBoss-user] [EJB 3.0] - SerializationException, not sure about the source

2006-05-23 Thread hlfsousa
Hi, guys. I'm receiving an exception, apparently with the return value of a remote call to a session bean. This is the exception stack trace: org.jboss.serial.exception.SerializationException | at org.jboss.serial.persister.PrivateWritePersister.readData(PrivateWritePersister.java:134) |

[JBoss-user] [Persistence,JBoss/CMP, Hibernate, Database] - Re: Which version of Hibernate is my JBoss running?

2006-05-11 Thread hlfsousa
It will not show up unless you deploy some EJB3 entities. Of course I only found it out when I undeployed my EJB3 application and restarted JBoss. :D View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3943008#3943008 Reply to the post : http://www.jboss.com/index

[JBoss-user] [Persistence,JBoss/CMP, Hibernate, Database] - Re: EntityListener repeatedly called

2006-05-11 Thread hlfsousa
I have solved the problem by introducing a static ThreadLocal variable to check if the listener is executing when it is called the second time. If it is, it just returns and causes no further listener calls. Now I face a second problem: the entity that I get from storage has a many-to-many asso

[JBoss-user] [Persistence,JBoss/CMP, Hibernate, Database] - Re: EntityListener repeatedly called

2006-05-10 Thread hlfsousa
I forgot to mention that one of the "caused by" traces is a ClassDefNotFoundError for org.hibernate.action.EntityUpdateAction, but I checked that class and it does exist in the shared library hibernate3.jar. I'm using JBoss 4.0.4 CR2 View the original post : http://www.jboss.com/index.html?mod

[JBoss-user] [Persistence,JBoss/CMP, Hibernate, Database] - EntityListener repeatedly called due to ClassDefNotFoundErro

2006-05-10 Thread hlfsousa
Hi guys, I am trying to attach an audit listener to my EJB 3.0 entities. All my entities already have a listener to set all string properties to upper case (which works fine). My audit listener does not modify any properties from the audited entity, just reads them and also read the current val

[JBoss-user] [Persistence,JBoss/CMP, Hibernate, Database] - Re: Which version of Hibernate is my JBoss running?

2006-05-10 Thread hlfsousa
You should get the following message from your log: INFO [org.hibernate.cfg.Environment] Hibernate 3.2 cr1 I got it from my own, which is the same version as yours (with EJB 3.0). View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3942530#3942530 Reply to the post

[JBoss-user] [EJB 3.0] - Re: Injecting an EJB from JSF Action

2006-04-20 Thread hlfsousa
Okay, I found the answer here: http://docs.jboss.org/ejb3/app-server/tutorial/ear/ear.html Man, that was a tough one to both find and to accept :P View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3938470#3938470 Reply to the post : http://www.jboss.com/index.ht

[JBoss-user] [EJB 3.0] - Injecting an EJB from JSF Action

2006-04-20 Thread hlfsousa
Hi I have asked this around and found no response. I started EJB 3 recently, and I have successfully created and deployed my EJBs and Entitys. But when it comes to accessing them from a web tier things go wrong. I have an EJB that appears in JNDI like this: (my @Stateless annotation has no name