[JBoss jBPM] - Error Parsing XML Process Definition - JpdlXmlReader
by monkmanusa
Hi,
I have successfully deployed the jBPM starter kit, and I am using our own JAVA application to create a process definition using the
ProcessDefinition processDefinition = ProcessDefinition.parseXmlString(wfdefinitionxml); where wfdefinitionxml is obviously a string that contains the xml....
I tried to start really simply by using the "Hello World" xml example in the Getting Started Tutorial which is extremly simple.....
But I seem to be getting an error on the parseXmlString, in my console I see the following:
About to create the process definition by parsing the xml
13:15:07,140 [Thread-19] DEBUG JpdlParser$JpdlEntityResolver : resolving schema reference publicId(null) systemId(http://jbpm.org/jpdl-3.0.xsd)
13:15:07,140 [Thread-19] DEBUG JpdlParser$JpdlEntityResolver : providing input source to local 'jpdl-3.0.xsd' resource
13:15:07,171 [Thread-19] DEBUG JpdlParser$JpdlEntityResolver : resolving schema reference publicId(null) systemId(http://jbpm.org/jpdl-3.0.xsd)
13:15:07,171 [Thread-19] DEBUG JpdlParser$JpdlEntityResolver : providing input source to local 'jpdl-3.0.xsd' resource
13:15:07,203 [Thread-19] DEBUG JpdlParser$JpdlEntityResolver : resolving schema reference publicId(null) systemId(http://jbpm.org/jpdl-3.1.xsd)
13:15:07,203 [Thread-19] DEBUG JpdlParser$JpdlEntityResolver : providing input source to local 'jpdl-3.1.xsd' resource
19/Jan 13:15.07: - 133300224 - 117607696 - org.jbpm.jpdl.JpdlException: [[ERROR] line 1: TargetNamespace.1: Expecting namespace 'urn:jbpm.org:jpdl-3.
0', but the target namespace of the schema document is 'http://jbpm.org/3/jpdl'., [ERROR] line 1: cos-ct-extends.1.4.2.2.2.2.1: Error for type '#AnonT
ype_assignment'. The content type of a derived type and that of its base must both be mixed or element-only., [ERROR] line 1: st-props-correct.2: cir
cular definitions detected for type ':node-elements'.]
at org.jbpm.jpdl.xml.JpdlXmlReader.readProcessDefinition(JpdlXmlReader.java:163)
at org.jbpm.graph.def.ProcessDefinition.parseXmlString(ProcessDefinition.java:143)
at com.configsc.user.Formula_Development_JBPM1_DEPLOYWF.executeFormula(Formula_Development_JBPM1_DEPLOYWF.java:48)
at com.configsc.user.Infusion.AddInfusionResult(Infusion.java:359)
at com.configsc.user.Infusion_Development_JBPM1_GO.executeInfusion(Infusion_Development_JBPM1_GO.java:40)
at com.configsc.user.Infusion_Development_JBPM1.executeRules(Infusion_Development_JBPM1.java:80)
at com.configsc.server.InfusionPull.ExecuteInfusion(InfusionPull.java:65)
at com.configsc.server.ProductMap.ExecuteInfusion(ProductMap.java:3476)
at com.configsc.server.ProductMap.setSelected(ProductMap.java:2315)
at com.configsc.csservercontroller.ConfigServer.setDetailSelection(ConfigServer.java:799)
at com.configsc.csservercontroller.ConfigServer.processInstruction(ConfigServer.java:304)
at com.configsc.csservercontroller.MasterServer.processInstruction(MasterServer.java:90)
at com.configsc.csservercontroller.ServerThread.run(ServerThread.java:227)
The first line you see is just the output from a System.out.println that lets me know where I am in the java.
Anyone any ideas as to what may be causing this?
I'm kinda stuck until I can get this thing to do what its supposed to....
Many Thanks,
monkmanusa
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4003980#4003980
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4003980
19 years, 3 months
[Beginners Corner] - How to share objects between EJB?
by Naxo
Hi,
First of all, I am newbie in J2EE. I have a doubt about EJB. I don't know how to share objects (if possible) within EJB. I want to know if I can use any kind of ?shared memory? to store some objects to be shared and access from any EJB instance running on the same server.
I have some information stored in a database, and I want to avoid accessing the database every time an EJB need some information store on it (that information doesn?t change very often). I have some beans managing the database and some other beans that depend on some of the data stored in the database. I want the managing bean to store some data in a "shared memory", and leave it there without any modification until the data in the database will be changed (the managing beans are fully responsible for the database, so if there is any modification in the database they can modify the stored data in the "shared memory"). Then I want some other beans to have access to that "shared memory" so they don?t have to access the database directly...
I am using JBoss AS 4.0.5 (with EJB 3.0 specification), session beans, message-driven beans and entity beans for persistence (MySQL server 5). I have looked the specification and some books that I have, and I couldn?t find anything like the javax.servlet.ServletContext object that exist in the web tier. In this object I can bind an object to a given attribute name in this servlet context, and any other servlet from the same context can get access to it by using the attribute name. For example;
//Storing the object in the context
ServletConfig.getServletContext().setAttribute(name, object)
//Getting the stored object from the context
ServletConfig.getServletContext().getAttribute(name)
I hope that I have made myself clear, I am Spanish and it?s a little difficult for me to explain myself in English? as I told you I am a beginner in J2EE so I am a little confuse right now, and I might be quite wrong on anything that I have said in this post.
Thanks in advanced
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4003974#4003974
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4003974
19 years, 3 months