hi,
I realized that you have putted your <struts-config> tag in the xml file to
the wrong place. it should nest all the other items. test your XML by
opening it in the internet explorer.
fehmi.

-----Ursprüngliche Nachricht-----
Von: Matt Koidin [mailto:[EMAIL PROTECTED]]
Gesendet am: Friday, December 14, 2001 3:54 PM
An: [EMAIL PROTECTED]
Betreff: Resin & Struts Config Help

I am a new Struts user running Apache and Resin 2.0.4 as my servlet
container. I have successfully tested the Apache and Resin configurations.
(I am also running WebLogic 6.1 as my application server).
 
If I drop the struts sample .war files into the resin/webapps directory they
work fine. I am now trying to get Struts working in my own environment and
am running into an error.
 
My directory structure looks like this:
 
Root Folder
    classes
        -- compiled classes
    lib
        -- struts.jar, xerces.jar, jdbc2_0-stdext.jar
    web
        -- jsp
            -- jsp files
        -- templates/taglib
            -- struts .tld files
        -- WEB-INF
            -- struts-config.xml, web.xml
 
Attached is my struts-config.xml and web.xml files.
 
Finally here is the error I am seeing:
 
[2001/12/14 09:45:47] org.apache.struts.action.ActionServlet: init
[2001/12/14 09:45:47] org.apache.struts.action.ActionServlet: Initializing
configuration from resource path /WEB-INF/struts-config.xml
[2001/12/14 09:45:48] Parsing error processing resource path
/WEB-INF/struts-config.xml
org.xml.sax.SAXException: Stopping after fatal error: The markup in the
document following the root element must be well-formed.
 at
weblogic.apache.xerces.framework.XMLParser.reportError(XMLParser.java:1114)
 at
weblogic.apache.xerces.framework.XMLDocumentScanner.reportFatalXMLError(XMLD
ocumentScanner.java:640)
 at
weblogic.apache.xerces.framework.XMLDocumentScanner.abortMarkup(XMLDocumentS
canner.java:694)
 at
weblogic.apache.xerces.framework.XMLDocumentScanner$TrailingMiscDispatcher.d
ispatch(XMLDocumentScanner.java:1520)
 at
weblogic.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentSca
nner.java:381)
 at weblogic.apache.xerces.framework.XMLParser.parse(XMLParser.java:967)
 at org.xml.sax.helpers.XMLReaderAdapter.parse(XMLReaderAdapter.java:223)
 at weblogic.xml.jaxp.WebLogicParser.parse(WebLogicParser.java:67)
 at weblogic.xml.jaxp.RegistryParser.parse(RegistryParser.java:130)
 at javax.xml.parsers.SAXParser.parse(SAXParser.java:276)
 at javax.xml.parsers.SAXParser.parse(SAXParser.java:174)
 at org.apache.struts.digester.Digester.parse(Digester.java:755)
 at
org.apache.struts.action.ActionServlet.initMapping(ActionServlet.java:1332)
 at org.apache.struts.action.ActionServlet.init(ActionServlet.java:466)
 at javax.servlet.GenericServlet.init(GenericServlet.java:82)
 at com.caucho.server.http.Application.createServlet(Application.java:2755)
 at com.caucho.server.http.Application.loadServlet(Application.java:2711)
 at com.caucho.server.http.Application.initServlets(Application.java:1763)
 at com.caucho.server.http.Application.init(Application.java:1698)
 at com.caucho.server.http.VirtualHost.init(VirtualHost.java:645)
 at com.caucho.server.http.ServletServer.initHosts(ServletServer.java:641)
 at
com.caucho.server.http.ServletServer.initInternal(ServletServer.java:515)
 at com.caucho.server.http.ServletServer.init(ServletServer.java:366)
 at com.caucho.server.http.ResinServer.init(ResinServer.java:407)
 at com.caucho.server.http.ResinServer.main(ResinServer.java:959)
 at com.caucho.server.http.HttpServer.main(HttpServer.java:92)
[2001/12/14 09:45:48] can't load servlet `oreilly'
org.xml.sax.SAXException: Stopping after fatal error: The markup in the
document following the root element must be well-formed.
 at
weblogic.apache.xerces.framework.XMLParser.reportError(XMLParser.java:1114)
 at
weblogic.apache.xerces.framework.XMLDocumentScanner.reportFatalXMLError(XMLD
ocumentScanner.java:640)
 at
weblogic.apache.xerces.framework.XMLDocumentScanner.abortMarkup(XMLDocumentS
canner.java:694)
 at
weblogic.apache.xerces.framework.XMLDocumentScanner$TrailingMiscDispatcher.d
ispatch(XMLDocumentScanner.java:1520)
 at
weblogic.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentSca
nner.java:381)
 at weblogic.apache.xerces.framework.XMLParser.parse(XMLParser.java:967)
 at org.xml.sax.helpers.XMLReaderAdapter.parse(XMLReaderAdapter.java:223)
 at weblogic.xml.jaxp.WebLogicParser.parse(WebLogicParser.java:67)
 at weblogic.xml.jaxp.RegistryParser.parse(RegistryParser.java:130)
 at javax.xml.parsers.SAXParser.parse(SAXParser.java:276)
 at javax.xml.parsers.SAXParser.parse(SAXParser.java:174)
 at org.apache.struts.digester.Digester.parse(Digester.java:755)
 at
org.apache.struts.action.ActionServlet.initMapping(ActionServlet.java:1332)
 at org.apache.struts.action.ActionServlet.init(ActionServlet.java:466)
 at javax.servlet.GenericServlet.init(GenericServlet.java:82)
 at com.caucho.server.http.Application.createServlet(Application.java:2755)
 at com.caucho.server.http.Application.loadServlet(Application.java:2711)
 at com.caucho.server.http.Application.initServlets(Application.java:1763)
 at com.caucho.server.http.Application.init(Application.java:1698)
 at com.caucho.server.http.VirtualHost.init(VirtualHost.java:645)
 at com.caucho.server.http.ServletServer.initHosts(ServletServer.java:641)
 at
com.caucho.server.http.ServletServer.initInternal(ServletServer.java:515)
 at com.caucho.server.http.ServletServer.init(ServletServer.java:366)
 at com.caucho.server.http.ResinServer.init(ResinServer.java:407)
 at com.caucho.server.http.ResinServer.main(ResinServer.java:959)
 at com.caucho.server.http.HttpServer.main(HttpServer.java:92)

Can anyone help??
 
Thanks,
Matt


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to