[EJB/JBoss] - Re: standardjboss.xml configuration issue
by jaikiran
"1javaloverS" wrote : And I have configured an EJB reference in my "standardjboss.xml" to refer one of my EJBs to an enternal EJB running on a different JBoss server, as follows.
|
| <enterprise-beans>
| | <session>
| | <ejb-name>MyLocalEJB</ejb-name>
| | <ejb-ref>
| | <ejb-ref-name>ejb/MyRemoteEJB</ejb-ref-name>
| | <jndi-name>jnp://192.118.18.4:1099/ejb/MyRemoteEJB</jndi-name>
| | </ejb-ref>
| | </session>
| | </enterprise-beans>
|
You will have to add that stuff to a jboss.xml file and package it in your application. The jboss.xml has to be placed at the same place as the ejb-jar.xml file. Undo the changes that you have done to the standardjboss.xml because that file is meant for the entire application server. Your jboss.xml should look like:
<?xml version="1.0" encoding="UTF-8"?>
| <!DOCTYPE jboss PUBLIC "-//JBoss//DTD JBOSS 3.0//EN" "http://www.jboss.org/j2ee/dtd/jboss_3_0.dtd">
|
| <jboss>
|
| <enterprise-beans>
| <session>
| <ejb-name>MyLocalEJB</ejb-name>
| <ejb-ref>
| <ejb-ref-name>ejb/MyRemoteEJB</ejb-ref-name>
| <jndi-name>jnp://192.118.18.4:1099/ejb/MyRemoteEJB</jndi-name>
| </ejb-ref>
| </session>
| </enterprise-beans>
|
| </jboss>
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4106384#4106384
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4106384
18 years, 8 months
[JBoss jBPM] - JBoss jBPM - BPeL - eclipse
by Pebbels
Hi,
I got the following specifications to use for creating a Web Application:
JBoss jBPM
BPeL
Eclipse
So I downloaded JBoss jBPM, eclipse 3.3 and the plugin for BPeL via the update-site http://download.eclipse.org/technology/bpel/update-site/
For JBoss jBPM I got jbpm-jpdl-3.2.2.
Starting the server via the console run.bat -c jbpm works and I am able to have a look at http://localhost:8080/jbpm-console/sa/processes.jsf
When I created a BPEL 2.0-Project (I choose BPEL-Project and not JBoss jBPM Project because a JBoss jBPM Project works with jPDL) in eclipse I am able to draw a diagram but I am not able to create a server by right clicking in the server window and selecting New, Server, JBoss v3.2.3.
When I choose the jdk and point the Application Server Directory to C:\jboss\jbpm-jpdl-3.2.2 I will get the error Missing classpath entry C:\jboss\jbpm-jpdl-3.2.2\bin\run.jar.
When I point it to C:\jboss\jbpm-jpdl-3.2.2\server\server I will get the error Missing classpath entry C:\jboss\jbpm-jpdl-3.2.2\server\server\default\lib\javax.servlet.jar.
Why does eclipse look for the default directory of JBoss?
The file javax.servlet.jar is located in C:\jboss\jbpm-jpdl-3.2.2\server\client
Does somebody know something?
Thanks, Tina
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4106374#4106374
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4106374
18 years, 8 months
[EJB 3.0] - Referencing EJB 2.1 session from EJB 3 session
by huuskart
How can I access EJB 2.1 session from EJB 3 session in JBoss 4.2.1.GA?
The EJB 3 sessions and EJB 2.1 session are deployed in separate EJB jar files, but they are in the same EAR file, so they are part of the same J2EE application.
I have tried the following methods:
Injecting EJB 2.1 home using EJB annotation, simply like this:
@EJB
private foo.bar.SomeLocalHome someHome;
results in the error:
java.lang.RuntimeException: could not resolve global JNDI name for @EJB for container WhatEver: reference class: foo.bar.SomeLocalHome ejbLink: not used by any EJBs
Which is not true, because that LocalHome class is used by a EJB 2.1 session bean.
Injecting local interface using EJB annotation:
@EJB
private foo.bar.SomeLocal some;
results in the same error.
Injections with beanName set:
@EJB(beanName = "Some")
private foo.bar.SomeLocalHome someHome;
result in error
java.lang.RuntimeException: Failed to populate ENC: env/foo.bar.WhatEver/someHome global jndi name was null
Adding local reference to ejb-jar.xml, like so:
<ejb-name>WhatEver</ejb-name>
<ejb-local-ref>
<ejb-ref-name>Some</ejb-ref-name>
<ejb-ref-type>Session</ejb-ref-type>
<local-home>foo.bar.SomeLocalHome</local-home>
<ejb-link>Some</ejb-link>
</ejb-local-ref>
and injecting like so:
@EJB(name = "Some")
private SomeLocalHome someHome;
fails because JBoss complains that "IGNORING DEPENDENCY ... too little information".
Creating the local ref like so
<ejb-name>WhatEver</ejb-name>
<ejb-local-ref>
<ejb-ref-name>Some</ejb-ref-name>
<ejb-ref-type>Session</ejb-ref-type>
<local-home>foo.bar.SomeLocalHome</local-home>
foo.bar.SomeLocalHome
<ejb-link>Some</ejb-link>
</ejb-local-ref>
fails because
15:25:51,749 WARN [EJBHandler] IGNORING DEPENDENCY: unable to find <ejb-local-ref> of interface foo.bar.SomeLocal and ejbLink of Some in ejb-jar.xml of WhatEver it might not be deployed yet
Looking at the code (I think I found the correct place), the local-ref handling code simply ignores local-home, and seems to search for EJB that implements the local interface, which is daft when I want to link to EJB 2.1.
Maybe injection without JNDI name (the first attempt above) fails for a similar reason?
I'm currently looking up the local home interface manually (new InitialContext().lookup("Some")), and it works, but this is not very nice.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4106373#4106373
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4106373
18 years, 8 months
[Persistence, JBoss/CMP, Hibernate, Database] - Caused by: java.lang.IllegalStateException: [com.arjuna.ats.
by kelangovan
Hi we are using JBoss and we are getting the below given error when we run some process. Will you please let me know the solution for this... We are struggling to fix this production issue... help me please...!!!. asap
Caused by: java.lang.IllegalStateException: [com.arjuna.ats.internal.jta.transaction.arjunacore.inactive] [com.arjuna.ats.internal.jta.transaction.arjunacore.inactive] The transaction is not active!
at com.arjuna.ats.internal.jta.transaction.arjunacore.TransactionImple.commitAndDisassociate(TransactionImple.java:1372)
at com.arjuna.ats.internal.jta.transaction.arjunacore.BaseTransaction.commit(BaseTransaction.java:135)
at com.arjuna.ats.jbossatx.BaseTransactionManagerDelegate.commit(BaseTransactionManagerDelegate.java:87)
at org.jboss.aspects.tx.TxPolicy.endTransaction(TxPolicy.java:175)
at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:87)
at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:191)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:76)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(StatelessInstanceInterceptor.java:62)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:77)
at org.jboss.ejb3.security.Ejb3AuthenticationInterceptor.invoke(Ejb3AuthenticationInterceptor.java:106)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:46)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.ejb3.stateless.StatelessContainer.localInvoke(StatelessContainer.java:214)
at org.jboss.ejb3.stateless.StatelessContainer.localInvoke(StatelessContainer.java:184)
at org.jboss.ejb3.stateless.StatelessLocalProxy.invoke(StatelessLocalProxy.java:81)
at $Proxy1807.downloadGenesysChanges(Unknown Source)
... 12 more
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4106372#4106372
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4106372
18 years, 8 months