Re: [jboss-user] [EJB 3.0] - Problem running ejb3 tutorial examples
by eivind hognestad
eivind hognestad [http://community.jboss.org/people/ehognestad] replied to the discussion
"Problem running ejb3 tutorial examples"
To view the discussion, visit: http://community.jboss.org/message/553834#553834
--------------------------------------------------------------
Hi guys, sorry for the late response, and THANKS for the interest in my issue.
First of all, my JBOSS AS is installed in D:/development/jboss so no problems with spaces in filenames, I also checked my java installations etc and I have no installations with whitespace in the path.
I also think the java.naming.provider.url=localhost MIGHT be the problem, but what do I put there then? I tried to put http://localhost:1099 http://localhost:1099 and the problem still remains. I saw another guy with the same problem in another forum, but without an answer.
I just tried to run the examples with maven again now with:
mvn clean install -PRunSingleTutorial
but like I said the problem still remains and I'm not able to find anywhere a URL could be missing...
Are there any other config files that I could have overseen?
I downloaded JBOSS 5 (latest version), and then the EJB3 tutorial files, installed maven and set the PATHS the way it says in the tutorial and in the respective websites.
Best regards,
Eivind
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/553834#553834]
Start a new discussion in EJB 3.0 at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 11 months
Re: [jboss-user] [EJB 3.0] - Problem with NotEligibleForDirectInvocationException
by Manu Osten
Manu Osten [http://community.jboss.org/people/argonist] replied to the discussion
"Problem with NotEligibleForDirectInvocationException"
To view the discussion, visit: http://community.jboss.org/message/553832#553832
--------------------------------------------------------------
I tried to use another way to test. I started a normal client-application to get the data via EJB from DB. Same problem...
Client-application:
package de.kirchedlau.ponte.ejb.clients;
import java.util.Collection;
import javax.naming.InitialContext;
import javax.naming.NameClassPair;
import javax.naming.NamingEnumeration;
import javax.naming.NamingException;
import de.kirchedlau.ponte.utils.sessions.EJBHandler;
import de.kirchedlau.ponteseam.entities.InstitutionType;
import de.kirchedlau.ponteseam.sessions.AccountingInterface;
public class MeinJndiContext {
public static void main(String[] args) throws NamingException {
InitialContext ctx = new InitialContext();
System.out.println("Liste der Namen im JNDI-Context:");
showJndiContext(ctx, "", "");
ctx.close();
EJBHandler ejbHandler = new EJBHandler();
AccountingInterface session = ejbHandler.accoutingsession;
Collection<InstitutionType> list = session.getInstitutionTypeList();
for(InstitutionType i : list) {
System.out.println(i.getInstitutionType());
}
}
@SuppressWarnings("unchecked")
public static void showJndiContext(InitialContext ctx, String name, String space) {
if (null == name)
name = "";
if (null == space)
space = "";
try {
NamingEnumeration en = ctx.list(name);
while (en != null && en.hasMoreElements()) {
String delim = (null != name && 0 < name.length()) ? "/" : "";
NameClassPair nc = (NameClassPair) en.next();
System.out.println(space + name + delim + nc);
if (40 > space.length())
showJndiContext(ctx, nc.getName(), " " + space);
}
} catch (javax.naming.NamingException ex) {
// System.out.println("Exception "+ ex);
}
}
}
Error message:
Liste der Namen im JNDI-Context:
UserTransactionSessionFactory: $Proxy340
UUIDKeyGeneratorFactory: org.jboss.ejb.plugins.keygenerator.uuid.UUIDKeyGeneratorFactory
SecureManagementView: org.jnp.interfaces.NamingContext
SecureManagementView/remote-org.jboss.deployers.spi.management.ManagementView: Proxy for: org.jboss.deployers.spi.management.ManagementView
SecureManagementView/remote: Proxy for: org.jboss.deployers.spi.management.ManagementView
SecureDeploymentManager: org.jnp.interfaces.NamingContext
SecureDeploymentManager/remote-org.jboss.deployers.spi.management.deploy.DeploymentManager: Proxy for: org.jboss.deployers.spi.management.deploy.DeploymentManager
SecureDeploymentManager/remote: Proxy for: org.jboss.deployers.spi.management.deploy.DeploymentManager
HiLoKeyGeneratorFactory: org.jboss.ejb.plugins.keygenerator.hilo.HiLoKeyGeneratorFactory
persistence.unit:unitName=PonteSeam-ear.ear: org.jnp.interfaces.NamingContext
persistence.unit:unitName=PonteSeam-ear.ear/PonteSeam-ejb.jar#PonteSeam: org.hibernate.impl.SessionFactoryImpl
XAConnectionFactory: org.jboss.jms.client.JBossConnectionFactory
topic: org.jnp.interfaces.NamingContext
ClusteredConnectionFactory: org.jboss.jms.client.JBossConnectionFactory
ProfileService: org.jboss.aop.generatedproxies.AOPProxy$2
SecureProfileService: org.jnp.interfaces.NamingContext
SecureProfileService/remote: Proxy for: org.jboss.profileservice.spi.ProfileService
SecureProfileService/remote-org.jboss.profileservice.spi.ProfileService: Proxy for: org.jboss.profileservice.spi.ProfileService
PonteSeam-ear: org.jnp.interfaces.NamingContext
PonteSeam-ear/RequestBean: org.jnp.interfaces.NamingContext
PonteSeam-ear/TimerServiceDispatcher: org.jnp.interfaces.NamingContext
PonteSeam-ear/AuthBean: org.jnp.interfaces.NamingContext
PonteSeam-ear/MailBean: org.jnp.interfaces.NamingContext
PonteSeam-ear/AccountingBean: org.jnp.interfaces.NamingContext
PonteSeam-ear/ContentBean: org.jnp.interfaces.NamingContext
PonteSeam-ear/EjbSynchronizations: org.jnp.interfaces.NamingContext
queue: org.jnp.interfaces.NamingContext
queue/DLQ: org.jboss.jms.destination.JBossQueue
queue/ExpiryQueue: org.jboss.jms.destination.JBossQueue
ClusteredXAConnectionFactory: org.jboss.jms.client.JBossConnectionFactory
UserTransaction: org.jboss.tm.usertx.client.ClientUserTransaction
ConnectionFactory: org.jboss.jms.client.JBossConnectionFactory
jmx: org.jnp.interfaces.NamingContext
jmx/invoker: org.jnp.interfaces.NamingContext
jmx/rmi: org.jnp.interfaces.NamingContext
TomcatAuthenticators: java.util.Properties
console: org.jnp.interfaces.NamingContext
console/PluginManager: $Proxy335
{jnp.parsedName=, java.naming.provider.url=localhost:1099, java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces, jnp.socket.Factory=org.jnp.interfaces.TimedSocketFactory}
Exception in thread "main" java.lang.NullPointerException
at org.jboss.ejb3.stateless.StatelessContainer.dynamicInvoke(StatelessContainer.java:379)
at org.jboss.ejb3.session.InvokableContextClassProxyHack._dynamicInvoke(InvokableContextClassProxyHack.java:53)
at org.jboss.aop.Dispatcher.invoke(Dispatcher.java:91)
at org.jboss.aspects.remoting.AOPRemotingInvocationHandler.invoke(AOPRemotingInvocationHandler.java:82)
at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:891)
at org.jboss.remoting.transport.socket.ServerThread.completeInvocation(ServerThread.java:744)
at org.jboss.remoting.transport.socket.ServerThread.processInvocation(ServerThread.java:697)
at org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:524)
at org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:232)
at org.jboss.remoting.MicroRemoteClientInvoker.invoke(MicroRemoteClientInvoker.java:163)
at org.jboss.remoting.Client.invoke(Client.java:1634)
at org.jboss.remoting.Client.invoke(Client.java:548)
at org.jboss.aspects.remoting.InvokeRemoteInterceptor.invoke(InvokeRemoteInterceptor.java:62)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.aspects.tx.ClientTxPropagationInterceptor.invoke(ClientTxPropagationInterceptor.java:67)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.ejb3.security.client.SecurityClientInterceptor.invoke(SecurityClientInterceptor.java:65)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.ejb3.remoting.IsLocalInterceptor.invoke(IsLocalInterceptor.java:74)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.aspects.remoting.PojiProxy.invoke(PojiProxy.java:61)
at $Proxy11.invoke(Unknown Source)
at org.jboss.ejb3.proxy.impl.handler.session.SessionProxyInvocationHandlerBase.invoke(SessionProxyInvocationHandlerBase.java:207)
at org.jboss.ejb3.proxy.impl.handler.session.SessionProxyInvocationHandlerBase.invoke(SessionProxyInvocationHandlerBase.java:164)
at $Proxy10.getInstitutionTypeList(Unknown Source)
at de.kirchedlau.ponte.ejb.clients.MeinJndiContext.main(MeinJndiContext.java:23)
at org.jboss.aspects.remoting.InvokeRemoteInterceptor.invoke(InvokeRemoteInterceptor.java:74)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.aspects.tx.ClientTxPropagationInterceptor.invoke(ClientTxPropagationInterceptor.java:67)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.ejb3.security.client.SecurityClientInterceptor.invoke(SecurityClientInterceptor.java:65)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.ejb3.remoting.IsLocalInterceptor.invoke(IsLocalInterceptor.java:74)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.aspects.remoting.PojiProxy.invoke(PojiProxy.java:61)
at $Proxy11.invoke(Unknown Source)
at org.jboss.ejb3.proxy.impl.handler.session.SessionProxyInvocationHandlerBase.invoke(SessionProxyInvocationHandlerBase.java:207)
at org.jboss.ejb3.proxy.impl.handler.session.SessionProxyInvocationHandlerBase.invoke(SessionProxyInvocationHandlerBase.java:164)
at $Proxy10.getInstitutionTypeList(Unknown Source)
at de.kirchedlau.ponte.ejb.clients.MeinJndiContext.main(MeinJndiContext.java:23)
hmmm....
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/553832#553832]
Start a new discussion in EJB 3.0 at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 11 months
Re: [jboss-user] [jBPM] - How to start/spawn 'n' subprocesses for 'n' users using JBPM-4.3.
by Al Nadein
Al Nadein [http://community.jboss.org/people/matrixpooh] replied to the discussion
"How to start/spawn 'n' subprocesses for 'n' users using JBPM-4.3."
To view the discussion, visit: http://community.jboss.org/message/553831#553831
--------------------------------------------------------------
http://community.jboss.org/people/swiderski.maciej swiderski.maciejMaciej,
Thanks for a prompt reply. I was able to achieve what i wanted.
Here's my sample process:
{code:xml}
<?xml version="1.0" encoding="UTF-8"?>
<process key="main" name="main" xmlns=" http://jbpm.org/4.4/jpdl http://jbpm.org/4.4/jpdl">
<start g="-7,25,48,48" name="start">
<transition g="-28,-16" name="to-open-case" to="Open Case"/>
</start>
<foreach g="254,18,48,48" in="#{events}" name="foreach" var="event">
<transition to="Create a sub-process"/>
</foreach>
<custom g="96,16,126,52" name="Open Process">
<transition g="-30,-34" name="to-create-subprocesses" to="foreach"/>
</custom>
<join g="490,18,48,48" multiplicity="#{quorum}" name="join">
<transition g="-11,-14" name="to-end" to="end"/>
</join>
<end g="570,18,48,48" name="end"/>
<sub-process g="334,16,124,52" name="Create a sub-process" sub-process-key="#{event}">
<transition g="-12,-17" name="to-join" to="join"/>
</sub-process>
</process>
{code}
Here's a client:
{code}
Map<String, Object> variables = new HashMap<String, Object>();
String[] events = new String[] { "sub1", "sub2", "sub3" };
variables.put("events", events);
variables.put("quorum", new Integer(events.length)); // join cardinality
ProcessInstance processInstance = executionService.startProcessInstanceByKey("main", variables, "123");
{code}
The problem is - I don't seem to be able cascade delete after that - weather i start from main or any of its children, i'm falling into integrity constrains. The below fails:
{code}
List<ProcessDefinition> deployments = repositoryService
.createProcessDefinitionQuery().processDefinitionKey("main").list();
for (int i = 0; i < deployments.size(); i++) {
ProcessDefinition pd = deployments.get(i);
repositoryService.deleteDeploymentCascade(pd.getDeploymentId());
}
{code}
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/553831#553831]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 11 months