[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, 10 months
[Clustering/JBoss] - it's a member, but it's not a member
by shulok
14:09:16,178 WARN [NAKACK] 158.185.143.28:33738] discarded message from non-member 158.185.143.26:34114, my view is [158.185.143.27:42340|3] [158.185.143.27:42340, 158.185.143.28:33738, 158.185.143.25:33577, 158.185.143.26:34114]
14:09:16,429 WARN [NAKACK] 158.185.143.28:33738] discarded message from non-member 158.185.143.25:33577, my view is [158.185.143.27:42340|3] [158.185.143.27:42340, 158.185.143.28:33738, 158.185.143.25:33577, 158.185.143.26:34114]
As near as I can tell, this happens when I shotgun start some of the nodes in the cluster. If I let them come up sequentially, this doesn't seem to happen. Any ideas?
(4.2.2GA)
Thanks,
Thom
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4177222#4177222
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4177222
17 years, 10 months
[Installation, Configuration & DEPLOYMENT] - Re: Need suggestion about how to proceed.
by rks_86
No, I dont think JBoss ignoring those MSM.HOME and MSM.CONFIG properties. As I'm able to login to my application it seems that its taking the DB details from my application property file config.xml(Am not sure)
as its showing up in the login page the username and password field and I'm able to login into my application whose all data are inside a oracle schema. But its not able to take the css files present may be thats why GUI looks odd.
And the Resource folder is not from JBoss its my applications Resouce folder which contains all css and templates for my application.
I have made my app work in windows system long time back with JBoss4.0.5 but there i made big changes in Jboss config files to make it work which i dont want for linux system.
I need to figureit out how JBoss will cache my css and templates.
Yours suggestions are worthful. Thanks a lot.
I think I will make it work very soon.
and will post the results how i made it work .please keep this thread in watch list.
Thanks a lot.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4177220#4177220
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4177220
17 years, 10 months