[JBoss jBPM] - deploy jbpm-enterprise.ear on jboss 4.2.2 ga
by AJanz
i got a jboss 4.2.2 ga server using seam.
i deployed jbpm-enterprise.ear on it.
in the server.log i see
| 2008-09-17 23:19:48,582 DEBUG [org.jboss.proxy.ejb.ProxyFactory] Proxy Factory for ejb/CommandServiceBean initialized
| 2008-09-17 23:19:48,629 DEBUG [org.jboss.system.ServiceController] Creating service jboss.j2ee:service=EJB,plugin=pool,jndiName=ejb/CommandServiceBean
| 2008-09-17 23:19:48,629 DEBUG [org.jboss.ejb.plugins.StatelessSessionInstancePool] Creating jboss.j2ee:service=EJB,plugin=pool,jndiName=ejb/CommandServiceBean
| 2008-09-17 23:19:48,629 DEBUG [org.jboss.ejb.plugins.StatelessSessionInstancePool] Created jboss.j2ee:service=EJB,plugin=pool,jndiName=ejb/CommandServiceBean
| 2008-09-17 23:19:48,629 DEBUG [org.jboss.system.ServiceController] Creating dependent components for: jboss.j2ee:service=EJB,plugin=pool,jndiName=ejb/CommandServiceBean dependents are: []
| 2008-09-17 23:19:48,629 DEBUG [org.jboss.ejb.StatelessSessionContainer] Created jboss.j2ee:jndiName=ejb/CommandServiceBean,service=EJB
but when i try to get the commandservice bean i got error.
my function is
|
| Hashtable p = new Hashtable();
| p.put(InitialContext.INITIAL_CONTEXT_FACTORY,
| "org.jnp.interfaces.NamingContextFactory");
| p.put(InitialContext.PROVIDER_URL, "jnp://localhost:1099");
| p.put(InitialContext.URL_PKG_PREFIXES,
| "org.jboss.naming:org.jnp.interfaces");
| jndiContext = new InitialContext(p);
| RemoteCommandServiceHome remoteCommandServiceHome = (RemoteCommandServiceHome) jndiContext
| .lookup("ejb/CommandServiceBean");
| remoteCMDService = remoteCommandServiceHome.create();
|
i got the error
23:35:17,660 ERROR [Manager] User:NoneError creating remotecmdservice
javax.transaction.TransactionRolledbackException: Invalid invocation, check your
deployment packaging, method=public abstract org.jbpm.ejb.RemoteCommandService
org.jbpm.ejb.RemoteCommandServiceHome.create() throws javax.ejb.CreateException,
java.rmi.RemoteException; nested exception is:
javax.ejb.EJBException: Invalid invocation, check your deployment packag
ing, method=public abstract org.jbpm.ejb.RemoteCommandService org.jbpm.ejb.Remot
eCommandServiceHome.create() throws javax.ejb.CreateException,java.rmi.RemoteExc
eption
please help
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4177255#4177255
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4177255
17 years, 6 months
[JBoss jBPM] - JAXB in jBPM
by hauch
I'm trying to use JAXB in jBPM, which produces the error mentioned in https://jira.jboss.org/jira/browse/JBPM-1404.
I have downloaded the source code and tried to apply the patch described in the jira by replacing only the class and the inner classes.
Unfortunately I am not able to get it to work.
I am using the jBPM bundled with JBoss ESB 4.4, and I have downloaded and patched jpdl-3.2.2-SOA-4.2 from subversion.
The findClass in ProcessClassLoader now looks like:
public Class findClass(String name) throws ClassNotFoundException {
| Class clazz = null;
|
| FileDefinition fileDefinition = processDefinition.getFileDefinition();
| if (fileDefinition!=null) {
| String fileName = "classes/" + name.replace( '.', '/' ) + ".class";
| byte[] classBytes;
| try {
| classBytes = fileDefinition.getBytes(fileName);
| clazz = defineClass(name, classBytes, 0, classBytes.length);
| } catch (JbpmException e) {
| clazz = null;
| }
| // Add the package information
| final int packageIndex = name.lastIndexOf('.') ;
| if (packageIndex != -1) {
| final String packageName = name.substring(0, packageIndex) ;
| final Package classPackage = getPackage(packageName) ;
| if (classPackage == null) {
| definePackage(packageName, null, null, null, null, null, null, null) ;
| }
| System.out.println("package is: "+packageName);
| }
| }
|
| if (clazz==null) {
| throw new ClassNotFoundException("class '"+name+"' could not be found by the process classloader");
| }
|
| return clazz;
| }
|
- and the output is:
20:14:04,030 INFO [STDOUT] package is: dk.lenio.em.smile.jbpm.vo
20:14:04,063 ERROR [GraphElement] action threw exception: "dk.lenio.em.smile.jbpm.vo" doesnt contain ObjectFactory.class or jaxb.index
javax.xml.bind.JAXBException: "dk.lenio.em.smile.jbpm.vo" doesnt contain ObjectFactory.class or jaxb.index
I have a class named ObjectFactory in the package dk.lenio.em.smile.jbpm.vo.
Any suggestions?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4177235#4177235
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4177235
17 years, 6 months