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
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
Yes..I do the following:
| try {
| InitialContext ctx=new InitialContext();
|
stateful=(UserStateful)ctx.lookup("NewsCrawler/UserStatefulBean/remote");
| } catch (ServiceLocatorException e) {
| e.printStackTr
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
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
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
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
|
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?
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!
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
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
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
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
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
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 = -
15 matches
Mail list logo