OSWF - External Entity Resolution

Edgar González <[email protected]>
Newsgroups gmane.comp.java.open-symphony.devel
Message-ID <00b401c31bd4$95600320$46c8c8c8@PORT2000P01>
Hi,

I'm using OWSF 2.5, and got the following error when agregate an External
Entity to my workflow definition xml:

2003-05-16 12:38:18,390 [ApplicationServerThread] FATAL
com.opensymphony.workflow.loader.XMLWorkflowFactory - Error creating
workflow descriptor
org.xml.sax.SAXException: Relative URI "roles.ent"; can not be resolved
without a document URI.
(url=file:/F:/Oracle9iAS/j2ee/valhalla/sao-eventos/sao-eventos-web/WEB-INF/c
lasses/EventoUnidad.xml line:3)
 at
com.opensymphony.workflow.loader.WorkflowLoader$2.fatalError(WorkflowLoader.
java:88)
 at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3038)
 at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3029)
 at org.apache.crimson.parser.Parser2.parseSystemId(Parser2.java:2627)
 at org.apache.crimson.parser.Parser2.maybeExternalID(Parser2.java:2605)
 at org.apache.crimson.parser.Parser2.maybeEntityDecl(Parser2.java:2508)
 at org.apache.crimson.parser.Parser2.maybeMarkupDecl(Parser2.java:1196)
 at org.apache.crimson.parser.Parser2.maybeDoctypeDecl(Parser2.java:1131)
 at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:488)
 at org.apache.crimson.parser.Parser2.parse(Parser2.java:304)
 at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:433)
 at
org.apache.crimson.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:1
79)
 at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:86)
 at
com.opensymphony.workflow.loader.WorkflowLoader.load(WorkflowLoader.java:92)
 at
com.opensymphony.workflow.loader.XMLWorkflowFactory.loadWorkflow(XMLWorkflow
Factory.java:192)
 at
com.opensymphony.workflow.loader.XMLWorkflowFactory.getWorkflow(XMLWorkflowF
actory.java:67)
 at
com.opensymphony.workflow.config.ConfigLoader.getWorkflow(ConfigLoader.java:
45)
 at
com.opensymphony.workflow.AbstractWorkflow.getWorkflow(AbstractWorkflow.java
:389)
...

I guess that this error is because Crimson can't get the roles.ent file,
which one is in the same directory as the workflow definition xml file.

Following is an extract of my workflow definition file:

<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE workflow PUBLIC "-//OpenSymphony Group//DTD OSWorkflow 2.1//EN"
"http://www.opensymphony.com/osworkflow/workflow.dtd" [
<!ENTITY % roles SYSTEM "roles.ent">
%roles;
]>
<workflow>
<initial-actions>
<action id="1" name="Iniciar Workflow">
<restrict-to>
<conditions type="AND">
<condition type="class">
<arg
name="class.name">com.valhallaproject.sao.commons.workflow.UserRoleCondition
</arg>
<arg name="role">&rol_administrador;</arg>
</condition>
</conditions>
</restrict-to>
<results>
<unconditional-result old-status="Finalizado" owner="" status="En curso"
step="99"/>
</results>
</action>
</initial-actions>
....
</workflow>

Any clue?

Thanks

Edgar






-------------------------------------------------------
Enterprise Linux Forum Conference & Expo, June 4-6, 2003, Santa Clara
The only event dedicated to issues related to Linux enterprise solutions
www.enterpriselinuxforum.com
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.