[Microcontainer] - Problem parsing jboss-beans.xml
by ahalley
Hi
I'm getting parser errors when trying to read jboss-beans.xml
DEBUG [main] (KernelFactory.java:86) - Starting JBoss Kernel construction...
DEBUG [main] (KernelFactory.java:112) - Completed JBoss Kernel construction. Duration: 671 milliseconds
WARN [main] (SaxJBossXBParser.java:316) - Valid documents must have a <!DOCTYPE declaration. @ jar:file:/C:/jboss-4.0.5.GA/server/xxx/deploy/MyApp.war/xxx/MyApp.jar!/jboss-beans.xml[3,-1]
org.jboss.xb.binding.JBossXBException: Failed to parse source: null@-1,-1
at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBParser.java:128)
at org.jboss.xb.binding.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:134)
at org.jboss.kernel.plugins.deployment.xml.BasicXMLDeployer.deploy(BasicXMLDeployer.java:147)
at com.mgt.microcontainer.EmbeddedBootstrap.deploy(EmbeddedBootstrap.java:36)
at com.mgt.gui.AgentApplication.run(AgentApplication.java:272)
at com.mgt.gui.AgentApplication.main(AgentApplication.java:837)
Caused by: org.xml.sax.SAXException: Element type "deployment" is not declared. @ jar:file:/C:/jboss-4.0.5.GA/server/xxx/deploy/MyApp.war/xxx/MyApp.jar!/jboss-beans.xml[3,-1]
at org.jboss.xb.binding.parser.sax.SaxJBossXBParser$MetaDataErrorHandler.error(SaxJBossXBParser.java:322)
at org.apache.crimson.parser.Parser2.error(Parser2.java:3165)
at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1322)
at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:500)
at org.apache.crimson.parser.Parser2.parse(Parser2.java:305)
at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:442)
at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:396)
at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBParser.java:124)
... 5 more
I've tried using the jboss-beans..xml supplied with the examples but still get the smae errror
jboss-beans.xml is
<?xml version="1.0" encoding="UTF-8"?>
<deployment xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="urn:jboss:bean-deployer:2.0 bean-deployer_2_0.xsd"
xmlns="urn:jboss:bean-deployer:2.0">
file:C:\examples\User_Guide\gettingStarted\commandLineClient\target/client-cl.dir/otherLib/humanResourcesService-1.0.0.jar
<!-- true
-->
<!--
1000
80000
2000
90000
-->
Any help would be greatly appreciated.
Alan
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4201078#4201078
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4201078
17 years, 6 months
[JBoss Portal] - Portlet expiration cache + Multiple instances
by MaDrense
Hi,
I'm setting the portlet expiration cache to -1. I have an instance of this portlet in every page of the portlet. The portlet is a simple form that set a value in the session.
If i submit the form in a page the value is correctly put in the session and the forms value is correct. The cache is being invalidated and the htm fragment is correct.
The problem is if I go to another page with the same portlet and enter a new value. Then, altough the session's value is correct, if I navigate again to previous page it still has the old value in the form thus it did not invalidate this instance's cache!
If seems to me that the view cache is instance based although all the instances have the same windowId and are using the same portlet!.
Is this normal or am I doing something wrong ?
Regards,
MaDrense
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4201077#4201077
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4201077
17 years, 6 months
[JBoss jBPM] - Re: Can't get Generate Form to work at all?
by jbwiv
And here's the generated code. Note my task name has no spaces:
<?xml version="1.0" encoding="UTF-8"?>
|
| <process-definition
| xmlns="urn:jbpm.org:jpdl-3.2"
| name="simple">
|
|
| <swimlane name="Submitter">
| <assignment expression="group(pr_submitter)"></assignment>
| </swimlane>
|
| <swimlane name="PR Approver">
| <assignment expression="group(pr_approver)"></assignment>
| </swimlane>
|
| <swimlane name="Vice President">
| <assignment expression="group(vice_president)"></assignment>
| </swimlane>
|
| <swimlane name="Accounting">
| <assignment expression="group(accounting)"></assignment>
| </swimlane>
|
| <swimlane name="Purchasing">
| <assignment expression="group(purchasing)"></assignment>
| </swimlane>
|
|
| <start-state name="Start">
| <task name="Submit_PR" swimlane="Submitter">
| <controller>
| <variable access="read,write,required" name="Location" mapped-name="location"></variable>
| <variable access="read,write,required" name="PR Number" mapped-name="prNumber"></variable>
| <variable access="read,write,required" name="Contact Info" mapped-name="contactInfo"></variable>
| <variable access="read,write,required" name="Date Needed" mapped-name="dateNeeded"></variable>
| <variable access="read,write,required" name="GL Account" mapped-name="glAccount"></variable>
| <variable access="read,write,required" name="GL Department" mapped-name="glDept"></variable>
| <variable access="read,write,required" name="Purchase Type" mapped-name="purchaseType"></variable>
| <variable access="read,write,required" name="Manager" mapped-name="manager"></variable>
| <variable access="read,write,required" name="PO Assigned" mapped-name="poAssigned"></variable>
| <variable access="read,write,required" name="Buyer" mapped-name="buyer"></variable>
| <variable access="read,write,required" name="Supplier" mapped-name="supplier"></variable>
| <variable access="read,write,required" name="Remarks" mapped-name="remarks"></variable>
| </controller>
| </task>
| <transition to="Manager Approval"></transition>
| </start-state>
|
|
| <task-node name="VP Approval">
| <transition to="Accounting Approval" name="Yes"></transition>
| <transition to="Send Rejection Notice" name="No"></transition>
| </task-node>
|
| <task-node name="Accounting Approval">
| <transition to="Route to purchasing" name="Yes"></transition>
| <transition to="Send Rejection Notice" name="No"></transition>
| </task-node>
|
| <decision name="Is Amount greater than 500?">
| <transition to="VP Approval" name="Yes"></transition>
| <transition to="Accounting Approval" name="No"></transition>
| </decision>
|
| <task-node name="Route to purchasing">
| <transition to="Completed"></transition>
| </task-node>
|
| <decision name="Manager Approval">
| <transition to="Is Amount greater than 500?" name="Yes"></transition>
| </decision>
|
| <task-node name="Send Rejection Notice">
| <transition to="Start"></transition>
| </task-node>
|
|
| <end-state name="Completed"></end-state>
|
|
| </process-definition>
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4201067#4201067
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4201067
17 years, 6 months