You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Michael Marrotte <ma...@nicusa.com> on 2003/04/02 15:56:14 UTC
struts-config parse error from crimson?
I only get the below stack trace when crimson is rolled into the JRE -- the
struts-config.xml file is well formed. Administrating the JRE is out of my
hands. Any help is greatly appreciated.
root 20030317 183520.344 ERROR Parse Error at line 13 column -1: Element
"struts-config" does not allow "form-beans" here.
org.xml.sax.SAXParseException: Element "struts-config" does not allow
"form-beans" here.
at org.apache.crimson.parser.Parser2.error(Parser2.java:3013)
at
org.apache.crimson.parser.ValidatingParser$ChildrenValidator.consume(Validat
ingParser.java:349)
at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1303)
at org.apache.crimson.parser.Parser2.content(Parser2.java:1700)
at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1468)
at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:499)
at org.apache.crimson.parser.Parser2.parse(Parser2.java:304)
at
org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:433)
at org.apache.commons.digester.Digester.parse(Digester.java:1543)
at
org.apache.struts.action.ActionServlet.initModuleConfig(ActionServlet.java:9
44)
at
org.apache.struts.action.ActionServlet.init(ActionServlet.java:468)
at app.ActionServletTtpayAdmin.init(ActionServletTtpayAdmin.java:15)
at javax.servlet.GenericServlet.init(GenericServlet.java:82)
at
com.caucho.server.http.Application.createServlet(Application.java:3109)
at
com.caucho.server.http.Application.loadServlet(Application.java:3060)
at
com.caucho.server.http.Application.initServlets(Application.java:1921)
at com.caucho.server.http.Application.init(Application.java:1847)
at com.caucho.server.http.VirtualHost.initWars(VirtualHost.java:837)
at
com.caucho.server.http.VirtualHost.restartWarDir(VirtualHost.java:744)
at
com.caucho.server.http.ServletServer.getInvocation(ServletServer.java:1215)
at
com.caucho.server.http.RunnerRequest.handleRequest(RunnerRequest.java:341)
at
com.caucho.server.http.RunnerRequest.handleConnection(RunnerRequest.java:274
)
at com.caucho.server.TcpConnection.run(TcpConnection.java:139)
at java.lang.Thread.run(Thread.java:479)
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
bean:write / HashMap
Posted by Rob King <ro...@xanboo.com>.
Hi,
I have checked struts documentation, including the index properties page,
and cannot find the answer to this.
I simply want to output some values stored in a hashmap without using
scriptlets - ideally with the bean:write tag.
Instead of doing this:
<%=myHash.get("NAME")%>
I would like to do something like this, but it doesn't work:
<bean:write name="myHash" property="[NAME]"/>
( but hopefully it serves to demonstrate what I'm trying to do )
I also tried this, but I'm just clutching at straws now:
<bean:write name="myHash[NAME]"/>
Using bean:write would be nice becuase it html encodes stuff without me
needing to do anything.
Using a bean instead of the HashMap would be a nice solution, but time
constraints mean that the HashMaps need to stay for now...
And, I thought I was about to find an answer here, but alas no:
http://jakarta.apache.org/struts/faqs/indexedprops.html
Apologies if I missed an obvious piece of documentation....
thanks,
rob.
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
PLEASE HELP...STRUTS JAXP Properties?
Posted by Michael Marrotte <ma...@nicusa.com>.
I see how I can set these properties in <web-app>, but struts seems to
ignore that.
Is there a way to configure the action servlet to use specific JAXP
properties to parse struts-config.xml?
For example is there a way to set the following for struts-config parsing:
javax.xml.parsers.DocumentBuilderFactory="com.caucho.xml.parsers.XmlDocument
BuilderFactory"
javax.xml.parsers.SAXParserFactory="com.caucho.xml.parsers.XmlSAXParserFacto
ry"
javax.xml.transform.TransformerFactory="com.caucho.xsl.Xsl"
Any help is greatly appreciated.
Thanks,
--Mike
-----Original Message-----
From: Michael Marrotte [mailto:marrotte@nicusa.com]
Sent: Thursday, April 03, 2003 7:37 AM
To: Struts Users Mailing List
Subject: Struts and Crimson
I only get the below stack trace when crimson is rolled into the JRE
ext/lib -- the
struts-config.xml file is well formed. Administrating the JRE is out of my
hands. Is there a way to tell the container to use it's own XML parser? Any
help is greatly appreciated.
root 20030317 183520.344 ERROR Parse Error at line 13 column -1: Element
"struts-config" does not allow "form-beans" here.
org.xml.sax.SAXParseException: Element "struts-config" does not allow
"form-beans" here.
at org.apache.crimson.parser.Parser2.error(Parser2.java:3013)
at
org.apache.crimson.parser.ValidatingParser$ChildrenValidator.consume(Validat
ingParser.java:349)
at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1303)
at org.apache.crimson.parser.Parser2.content(Parser2.java:1700)
at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1468)
at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:499)
at org.apache.crimson.parser.Parser2.parse(Parser2.java:304)
at
org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:433)
at org.apache.commons.digester.Digester.parse(Digester.java:1543)
at
org.apache.struts.action.ActionServlet.initModuleConfig(ActionServlet.java:9
44)
at
org.apache.struts.action.ActionServlet.init(ActionServlet.java:468)
at app.ActionServletTtpayAdmin.init(ActionServletTtpayAdmin.java:15)
at javax.servlet.GenericServlet.init(GenericServlet.java:82)
at
com.caucho.server.http.Application.createServlet(Application.java:3109)
at
com.caucho.server.http.Application.loadServlet(Application.java:3060)
at
com.caucho.server.http.Application.initServlets(Application.java:1921)
at com.caucho.server.http.Application.init(Application.java:1847)
at com.caucho.server.http.VirtualHost.initWars(VirtualHost.java:837)
at
com.caucho.server.http.VirtualHost.restartWarDir(VirtualHost.java:744)
at
com.caucho.server.http.ServletServer.getInvocation(ServletServer.java:1215)
at
com.caucho.server.http.RunnerRequest.handleRequest(RunnerRequest.java:341)
at
com.caucho.server.http.RunnerRequest.handleConnection(RunnerRequest.java:274
)
at com.caucho.server.TcpConnection.run(TcpConnection.java:139)
at java.lang.Thread.run(Thread.java:479)
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
PLEASE HELP...STRUTS JAXP Properties?
Posted by Michael Marrotte <ma...@nicusa.com>.
I see how I can set these properties in <web-app>, but struts seems to
ignore that.
Is there a way to configure the action servlet to use specific JAXP
properties to parse struts-config.xml?
For example is there a way to set the following for struts-config parsing:
javax.xml.parsers.DocumentBuilderFactory="com.caucho.xml.parsers.XmlDocument
BuilderFactory"
javax.xml.parsers.SAXParserFactory="com.caucho.xml.parsers.XmlSAXParserFacto
ry"
javax.xml.transform.TransformerFactory="com.caucho.xsl.Xsl"
Any help is greatly appreciated.
Thanks,
--Mike
-----Original Message-----
From: Michael Marrotte [mailto:marrotte@nicusa.com]
Sent: Thursday, April 03, 2003 7:37 AM
To: Struts Users Mailing List
Subject: Struts and Crimson
I only get the below stack trace when crimson is rolled into the JRE
ext/lib -- the
struts-config.xml file is well formed. Administrating the JRE is out of my
hands. Is there a way to tell the container to use it's own XML parser? Any
help is greatly appreciated.
root 20030317 183520.344 ERROR Parse Error at line 13 column -1: Element
"struts-config" does not allow "form-beans" here.
org.xml.sax.SAXParseException: Element "struts-config" does not allow
"form-beans" here.
at org.apache.crimson.parser.Parser2.error(Parser2.java:3013)
at
org.apache.crimson.parser.ValidatingParser$ChildrenValidator.consume(Validat
ingParser.java:349)
at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1303)
at org.apache.crimson.parser.Parser2.content(Parser2.java:1700)
at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1468)
at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:499)
at org.apache.crimson.parser.Parser2.parse(Parser2.java:304)
at
org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:433)
at org.apache.commons.digester.Digester.parse(Digester.java:1543)
at
org.apache.struts.action.ActionServlet.initModuleConfig(ActionServlet.java:9
44)
at
org.apache.struts.action.ActionServlet.init(ActionServlet.java:468)
at app.ActionServletTtpayAdmin.init(ActionServletTtpayAdmin.java:15)
at javax.servlet.GenericServlet.init(GenericServlet.java:82)
at
com.caucho.server.http.Application.createServlet(Application.java:3109)
at
com.caucho.server.http.Application.loadServlet(Application.java:3060)
at
com.caucho.server.http.Application.initServlets(Application.java:1921)
at com.caucho.server.http.Application.init(Application.java:1847)
at com.caucho.server.http.VirtualHost.initWars(VirtualHost.java:837)
at
com.caucho.server.http.VirtualHost.restartWarDir(VirtualHost.java:744)
at
com.caucho.server.http.ServletServer.getInvocation(ServletServer.java:1215)
at
com.caucho.server.http.RunnerRequest.handleRequest(RunnerRequest.java:341)
at
com.caucho.server.http.RunnerRequest.handleConnection(RunnerRequest.java:274
)
at com.caucho.server.TcpConnection.run(TcpConnection.java:139)
at java.lang.Thread.run(Thread.java:479)
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
STRUTS JAXP Properties?
Posted by Michael Marrotte <ma...@nicusa.com>.
Is there a way to configure the action servlet to use specific JAXP
properties to parse struts-config.xml?
For example is there a way to set the following for struts-config parsing:
javax.xml.parsers.DocumentBuilderFactory="com.caucho.xml.parsers.XmlDocument
BuilderFactory"
javax.xml.parsers.SAXParserFactory="com.caucho.xml.parsers.XmlSAXParserFacto
ry"
javax.xml.transform.TransformerFactory="com.caucho.xsl.Xsl"
Any help is greatly appreciated.
Thanks,
--Mike
-----Original Message-----
From: Michael Marrotte [mailto:marrotte@nicusa.com]
Sent: Thursday, April 03, 2003 7:37 AM
To: Struts Users Mailing List
Subject: Struts and Crimson
I only get the below stack trace when crimson is rolled into the JRE
ext/lib -- the
struts-config.xml file is well formed. Administrating the JRE is out of my
hands. Is there a way to tell the container to use it's own XML parser? Any
help is greatly appreciated.
root 20030317 183520.344 ERROR Parse Error at line 13 column -1: Element
"struts-config" does not allow "form-beans" here.
org.xml.sax.SAXParseException: Element "struts-config" does not allow
"form-beans" here.
at org.apache.crimson.parser.Parser2.error(Parser2.java:3013)
at
org.apache.crimson.parser.ValidatingParser$ChildrenValidator.consume(Validat
ingParser.java:349)
at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1303)
at org.apache.crimson.parser.Parser2.content(Parser2.java:1700)
at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1468)
at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:499)
at org.apache.crimson.parser.Parser2.parse(Parser2.java:304)
at
org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:433)
at org.apache.commons.digester.Digester.parse(Digester.java:1543)
at
org.apache.struts.action.ActionServlet.initModuleConfig(ActionServlet.java:9
44)
at
org.apache.struts.action.ActionServlet.init(ActionServlet.java:468)
at app.ActionServletTtpayAdmin.init(ActionServletTtpayAdmin.java:15)
at javax.servlet.GenericServlet.init(GenericServlet.java:82)
at
com.caucho.server.http.Application.createServlet(Application.java:3109)
at
com.caucho.server.http.Application.loadServlet(Application.java:3060)
at
com.caucho.server.http.Application.initServlets(Application.java:1921)
at com.caucho.server.http.Application.init(Application.java:1847)
at com.caucho.server.http.VirtualHost.initWars(VirtualHost.java:837)
at
com.caucho.server.http.VirtualHost.restartWarDir(VirtualHost.java:744)
at
com.caucho.server.http.ServletServer.getInvocation(ServletServer.java:1215)
at
com.caucho.server.http.RunnerRequest.handleRequest(RunnerRequest.java:341)
at
com.caucho.server.http.RunnerRequest.handleConnection(RunnerRequest.java:274
)
at com.caucho.server.TcpConnection.run(TcpConnection.java:139)
at java.lang.Thread.run(Thread.java:479)
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
STRUTS JAXP Properties?
Posted by Michael Marrotte <ma...@nicusa.com>.
Is there a way to configure the action servlet to use specific JAXP
properties to parse struts-config.xml?
For example is there a way to set the following for struts-config parsing:
javax.xml.parsers.DocumentBuilderFactory="com.caucho.xml.parsers.XmlDocument
BuilderFactory"
javax.xml.parsers.SAXParserFactory="com.caucho.xml.parsers.XmlSAXParserFacto
ry"
javax.xml.transform.TransformerFactory="com.caucho.xsl.Xsl"
Any help is greatly appreciated.
Thanks,
--Mike
-----Original Message-----
From: Michael Marrotte [mailto:marrotte@nicusa.com]
Sent: Thursday, April 03, 2003 7:37 AM
To: Struts Users Mailing List
Subject: Struts and Crimson
I only get the below stack trace when crimson is rolled into the JRE
ext/lib -- the
struts-config.xml file is well formed. Administrating the JRE is out of my
hands. Is there a way to tell the container to use it's own XML parser? Any
help is greatly appreciated.
root 20030317 183520.344 ERROR Parse Error at line 13 column -1: Element
"struts-config" does not allow "form-beans" here.
org.xml.sax.SAXParseException: Element "struts-config" does not allow
"form-beans" here.
at org.apache.crimson.parser.Parser2.error(Parser2.java:3013)
at
org.apache.crimson.parser.ValidatingParser$ChildrenValidator.consume(Validat
ingParser.java:349)
at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1303)
at org.apache.crimson.parser.Parser2.content(Parser2.java:1700)
at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1468)
at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:499)
at org.apache.crimson.parser.Parser2.parse(Parser2.java:304)
at
org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:433)
at org.apache.commons.digester.Digester.parse(Digester.java:1543)
at
org.apache.struts.action.ActionServlet.initModuleConfig(ActionServlet.java:9
44)
at
org.apache.struts.action.ActionServlet.init(ActionServlet.java:468)
at app.ActionServletTtpayAdmin.init(ActionServletTtpayAdmin.java:15)
at javax.servlet.GenericServlet.init(GenericServlet.java:82)
at
com.caucho.server.http.Application.createServlet(Application.java:3109)
at
com.caucho.server.http.Application.loadServlet(Application.java:3060)
at
com.caucho.server.http.Application.initServlets(Application.java:1921)
at com.caucho.server.http.Application.init(Application.java:1847)
at com.caucho.server.http.VirtualHost.initWars(VirtualHost.java:837)
at
com.caucho.server.http.VirtualHost.restartWarDir(VirtualHost.java:744)
at
com.caucho.server.http.ServletServer.getInvocation(ServletServer.java:1215)
at
com.caucho.server.http.RunnerRequest.handleRequest(RunnerRequest.java:341)
at
com.caucho.server.http.RunnerRequest.handleConnection(RunnerRequest.java:274
)
at com.caucho.server.TcpConnection.run(TcpConnection.java:139)
at java.lang.Thread.run(Thread.java:479)
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
Struts and Crimson
Posted by Michael Marrotte <ma...@nicusa.com>.
I only get the below stack trace when crimson is rolled into the JRE
ext/lib -- the
struts-config.xml file is well formed. Administrating the JRE is out of my
hands. Is there a way to tell the container to use it's own XML parser? Any
help is greatly appreciated.
root 20030317 183520.344 ERROR Parse Error at line 13 column -1: Element
"struts-config" does not allow "form-beans" here.
org.xml.sax.SAXParseException: Element "struts-config" does not allow
"form-beans" here.
at org.apache.crimson.parser.Parser2.error(Parser2.java:3013)
at
org.apache.crimson.parser.ValidatingParser$ChildrenValidator.consume(Validat
ingParser.java:349)
at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1303)
at org.apache.crimson.parser.Parser2.content(Parser2.java:1700)
at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1468)
at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:499)
at org.apache.crimson.parser.Parser2.parse(Parser2.java:304)
at
org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:433)
at org.apache.commons.digester.Digester.parse(Digester.java:1543)
at
org.apache.struts.action.ActionServlet.initModuleConfig(ActionServlet.java:9
44)
at
org.apache.struts.action.ActionServlet.init(ActionServlet.java:468)
at app.ActionServletTtpayAdmin.init(ActionServletTtpayAdmin.java:15)
at javax.servlet.GenericServlet.init(GenericServlet.java:82)
at
com.caucho.server.http.Application.createServlet(Application.java:3109)
at
com.caucho.server.http.Application.loadServlet(Application.java:3060)
at
com.caucho.server.http.Application.initServlets(Application.java:1921)
at com.caucho.server.http.Application.init(Application.java:1847)
at com.caucho.server.http.VirtualHost.initWars(VirtualHost.java:837)
at
com.caucho.server.http.VirtualHost.restartWarDir(VirtualHost.java:744)
at
com.caucho.server.http.ServletServer.getInvocation(ServletServer.java:1215)
at
com.caucho.server.http.RunnerRequest.handleRequest(RunnerRequest.java:341)
at
com.caucho.server.http.RunnerRequest.handleConnection(RunnerRequest.java:274
)
at com.caucho.server.TcpConnection.run(TcpConnection.java:139)
at java.lang.Thread.run(Thread.java:479)
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org