[jboss-user] [EJB/JBoss] - Simple question about packaging

2008-01-06 Thread fla83tn
Hi to all, I've a simple question about the packaging of an EAR archive. Suppose that I have something like: EAR |--ejbjar.jar |--war.war |--client.war why is there the need of writing in the application.xml file descriptor that I have a client that use the classes of the ejbjar module? wi

[jboss-user] [EJB 3.0] - Re: Unable to call Stateful Session bean

2008-01-04 Thread fla83tn
I just change server to jboss-4.2.2.GA and now everything is fine..! All 1 day throwed away for nothing!! :( UserStatefulBean (class: org.jnp.interfaces.NamingContext) | | +- remote (proxy: $Proxy121 implements interface nc.session.stateful.UserStateful,interface org.jboss.ejb3.JBossProxy

[jboss-user] [EJB 3.0] - Re: Unable to call Stateful Session bean

2008-01-04 Thread fla83tn
Yes..I do the following: | try { | InitialContext ctx=new InitialContext(); | stateful=(UserStateful)ctx.lookup("NewsCrawler/UserStatefulBean/remote"); | } catch (ServiceLocatorException e) { | e.printStackTr

[jboss-user] [EJB 3.0] - Re: One PersistenceUnit, multiple DataSources

2008-01-04 Thread fla83tn
I tried to do as you adviced but I get the following error on jboss4.2.2-GA [Configuration] Reading mappings from resource : persistence-mapping-file.xml 10:02:10,488 ERROR [AbstractKernelController] Error installing to Start: name=persistence.units:unitName=NewsCrawlerPu state=Create javax.persi

[jboss-user] [EJB 3.0] - Unable to call Stateful Session bean

2008-01-03 Thread fla83tn
Hi to all, I've lost all the day trying to figure out why I'm not able to use a Stateful bean: I'm really disperated! In my project I am able to call everything, except this Stateful bean! I've Stateless session, resources and so on! I lookup correctly to the object, but I cannot cat it to the i

[jboss-user] [Installation, Configuration & DEPLOYMENT] - EAR structure: jndi.properties and logging

2007-11-25 Thread fla83tn
Hi to all! I would like to know how to package correctly a Java EE (EJB3) application. My EAR has 3 archives inside: - WAR module(warmodule.war) - EJB-JAR module (ejbmodule.jar) - SWING application client module (swing-client.jar) All of them perform logging and use a ServiceLocator to perfo

[jboss-user] [EJB 3.0] - Re: ManyToMany relationship do not work properly

2007-11-23 Thread fla83tn
Now I'm able to see the Exception..the problem occurs when I try to register a user to a source that does not exist yet. The Exception throwed is: | javax.ejb.EJBTransactionRolledbackException: org.hibernate.HibernateException: this instance does not yet exist as a row in the database |

[jboss-user] [EJB 3.0] - Re: ManyToMany relationship do not work properly

2007-11-22 Thread fla83tn
I'm working with Google Web Toolkit so Exception are not serialized..However I told hibernate to print sql queries and no insert was performed..however now I'll try to see the Exception and I'll report it on the forum! For the moment, do you see something wrong of declaration of relationships?

[jboss-user] [EJB 3.0] - ManyToMany relationship do not work properly

2007-11-20 Thread fla83tn
Hi to all, I'm working on jboss 4.2.1GA and I'm stuck with a simple ManyToMany relationship.. I have this relation between Users and Sources (of rss feeds - URLs in practice). I followed all tutorial about how to do it and I tried a lot of solutions but I can't figure out why it doesn't work!

[jboss-user] [EJB/JBoss] - Re: Calling EJB session bean from Web tier problem

2006-08-31 Thread fla83tn
Thanks for the reply! Fortunately I solved the problem myself but the solution wasn't so easy to find...You must set the attibute use UseJBossWebLoader to true in file deploy/jbossweb-tomcat55.sar/META-INF/jboss-service.xml! I didn't get deeper and investigate why this make the things work...doe

[jboss-user] [EJB/JBoss] - Calling EJB session bean from Web tier problem

2006-08-16 Thread fla83tn
Hi to all! I've a strange problem that I'm not able to solve! My application has to call in remote a session bean, so create it and use its methods. The problem is that everything goes fine if I instantiate it outside the web tier, it fails if I try to create if from a servlet for instrance! An

[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - java.io.NotSerializableException: org.jboss.ejb.plugins.cmp.

2006-08-06 Thread fla83tn
Hi, I'm trying to learn to manage relationship between two entity beans and the situation is the following: I have a Customer that purchase orders, so an order have its own table Orders that is composed by 3 fields: id, customer and product purchased. Thus, given some Customer I want to know

[jboss-user] [JNDI/Naming/Network] - Re: HELP: Looking up to java:comp namespace problem!!

2006-08-06 Thread fla83tn
Thanks for the reply, but I solved the problem myself! The problem was that I was trying to access the java: namespace from outside a bean and my descriptor file was wrong! With the following all goes right: For example, in my entity bean I want to refer at java:/Mail so I must declare in the e

[jboss-user] [JNDI/Naming/Network] - HELP: Looking up to java:comp namespace problem!!

2006-07-26 Thread fla83tn
Hi to all! I hope someone can help me! I've read a lot of threads similar to mine, but none solved my question.. In my project, as specified by socumentation, only Global JNDI Namespaces are visible from remote client., whereas java: are not. But now, I would try to access from my Message-driven

[jboss-user] [Javassist user questions] - JNDI and java: context problem

2006-07-23 Thread fla83tn
Hi, In my project I'd like to send an e-mail from my message-driven bean but I have 2 problem. First of all this is my problematic code: | | private void send(Context c,String to){ | javax.mail.Session session = null; | | try { | | session = -