You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Matt Koidin <mk...@smartixs.com> on 2001/12/14 15:53:35 UTC

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(XMLDocumentScanner.java:640)
 at weblogic.apache.xerces.framework.XMLDocumentScanner.abortMarkup(XMLDocumentScanner.java:694)
 at weblogic.apache.xerces.framework.XMLDocumentScanner$TrailingMiscDispatcher.dispatch(XMLDocumentScanner.java:1520)
 at weblogic.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.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(XMLDocumentScanner.java:640)
 at weblogic.apache.xerces.framework.XMLDocumentScanner.abortMarkup(XMLDocumentScanner.java:694)
 at weblogic.apache.xerces.framework.XMLDocumentScanner$TrailingMiscDispatcher.dispatch(XMLDocumentScanner.java:1520)
 at weblogic.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.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

RE: which IDE

Posted by Nathan Anderson <na...@sum-ware.com>.
That's good to know...

Thanks for the update.

Nathan

-----Original Message-----
From: James Holmes [mailto:jholmes612@yahoo.com]
Sent: Friday, December 14, 2001 9:51 AM
To: Struts Users Mailing List
Subject: RE: which IDE


I'm planning to have a plugin for Eclipse eventually.
The only problem is that their whole IDE is written
with proprietary SWT libraries which don't lend
themselves to easily pluggin in existing applications.

The Struts console would basically have to be
re-written in SWT to work with Eclipse unless they
come up with a better way to integrate Swing code with
SWT.

So anyway, yes it's on the todo list, but I don't know
when it will be ready.

-james
james@jamesholmes.com
http://www.jamesholmes.com/struts/


--- Nathan Anderson <na...@sum-ware.com> wrote:
> James,
>
> Have you taken a look at Eclipse [www.eclipse.org]?
> It's a new IDE that is
> entirely plug-in based.  I was just wondering if you
> had thought of making a
> Struts Console plug-in for it as well...
>
> Nathan Anderson
>
> -----Original Message-----
> From: James Holmes [mailto:jholmes612@yahoo.com]
> Sent: Friday, December 14, 2001 7:47 AM
> To: Struts Users Mailing List;
> samuele.brignoli@darpha.com
> Subject: Re: which IDE
>
>
> JBuilder is great and so are NetBeans/Forte
> (www.netbeans.org).  There is also a Struts Console
> plugin for both :)
>
> http://www.jamesholmes.com/struts/
>
> -james
> james@jamesholmes.com
>
>
> --- Samuele Brignoli <sa...@darpha.com>
> wrote:
> > Which is the best IDE to develop struts framework
> ?
> > I 've got JBuilder
> > Enterprise, is that suited for struts?
> >
> >     --kako
> >
>
>
> __________________________________________________
> Do You Yahoo!?
> Check out Yahoo! Shopping and Yahoo! Auctions for
> all of
> your unique holiday gifts! Buy at
> http://shopping.yahoo.com
> or bid at http://auctions.yahoo.com
>
> --
> To unsubscribe, e-mail:
> <ma...@jakarta.apache.org>
> For additional commands, e-mail:
> <ma...@jakarta.apache.org>
>
>
>
> --
> To unsubscribe, e-mail:
> <ma...@jakarta.apache.org>
> For additional commands, e-mail:
> <ma...@jakarta.apache.org>
>


__________________________________________________
Do You Yahoo!?
Check out Yahoo! Shopping and Yahoo! Auctions for all of
your unique holiday gifts! Buy at http://shopping.yahoo.com
or bid at http://auctions.yahoo.com

--
To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
For additional commands, e-mail:
<ma...@jakarta.apache.org>



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


RE: which IDE

Posted by James Holmes <jh...@yahoo.com>.
I'm planning to have a plugin for Eclipse eventually. 
The only problem is that their whole IDE is written
with proprietary SWT libraries which don't lend
themselves to easily pluggin in existing applications.

The Struts console would basically have to be
re-written in SWT to work with Eclipse unless they
come up with a better way to integrate Swing code with
SWT.

So anyway, yes it's on the todo list, but I don't know
when it will be ready.

-james
james@jamesholmes.com
http://www.jamesholmes.com/struts/


--- Nathan Anderson <na...@sum-ware.com> wrote:
> James,
> 
> Have you taken a look at Eclipse [www.eclipse.org]? 
> It's a new IDE that is
> entirely plug-in based.  I was just wondering if you
> had thought of making a
> Struts Console plug-in for it as well...
> 
> Nathan Anderson
> 
> -----Original Message-----
> From: James Holmes [mailto:jholmes612@yahoo.com]
> Sent: Friday, December 14, 2001 7:47 AM
> To: Struts Users Mailing List;
> samuele.brignoli@darpha.com
> Subject: Re: which IDE
> 
> 
> JBuilder is great and so are NetBeans/Forte
> (www.netbeans.org).  There is also a Struts Console
> plugin for both :)
> 
> http://www.jamesholmes.com/struts/
> 
> -james
> james@jamesholmes.com
> 
> 
> --- Samuele Brignoli <sa...@darpha.com>
> wrote:
> > Which is the best IDE to develop struts framework
> ?
> > I 've got JBuilder
> > Enterprise, is that suited for struts?
> >
> >     --kako
> >
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Check out Yahoo! Shopping and Yahoo! Auctions for
> all of
> your unique holiday gifts! Buy at
> http://shopping.yahoo.com
> or bid at http://auctions.yahoo.com
> 
> --
> To unsubscribe, e-mail:
> <ma...@jakarta.apache.org>
> For additional commands, e-mail:
> <ma...@jakarta.apache.org>
> 
> 
> 
> --
> To unsubscribe, e-mail:  
> <ma...@jakarta.apache.org>
> For additional commands, e-mail:
> <ma...@jakarta.apache.org>
> 


__________________________________________________
Do You Yahoo!?
Check out Yahoo! Shopping and Yahoo! Auctions for all of
your unique holiday gifts! Buy at http://shopping.yahoo.com
or bid at http://auctions.yahoo.com

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


RE: which IDE

Posted by Nathan Anderson <na...@sum-ware.com>.
James,

Have you taken a look at Eclipse [www.eclipse.org]?  It's a new IDE that is
entirely plug-in based.  I was just wondering if you had thought of making a
Struts Console plug-in for it as well...

Nathan Anderson

-----Original Message-----
From: James Holmes [mailto:jholmes612@yahoo.com]
Sent: Friday, December 14, 2001 7:47 AM
To: Struts Users Mailing List; samuele.brignoli@darpha.com
Subject: Re: which IDE


JBuilder is great and so are NetBeans/Forte
(www.netbeans.org).  There is also a Struts Console
plugin for both :)

http://www.jamesholmes.com/struts/

-james
james@jamesholmes.com


--- Samuele Brignoli <sa...@darpha.com>
wrote:
> Which is the best IDE to develop struts framework ?
> I 've got JBuilder
> Enterprise, is that suited for struts?
>
>     --kako
>


__________________________________________________
Do You Yahoo!?
Check out Yahoo! Shopping and Yahoo! Auctions for all of
your unique holiday gifts! Buy at http://shopping.yahoo.com
or bid at http://auctions.yahoo.com

--
To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
For additional commands, e-mail:
<ma...@jakarta.apache.org>



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: which IDE

Posted by James Holmes <jh...@yahoo.com>.
JBuilder is great and so are NetBeans/Forte
(www.netbeans.org).  There is also a Struts Console
plugin for both :)

http://www.jamesholmes.com/struts/

-james
james@jamesholmes.com


--- Samuele Brignoli <sa...@darpha.com>
wrote:
> Which is the best IDE to develop struts framework ?
> I 've got JBuilder
> Enterprise, is that suited for struts?
> 
>     --kako
> 


__________________________________________________
Do You Yahoo!?
Check out Yahoo! Shopping and Yahoo! Auctions for all of
your unique holiday gifts! Buy at http://shopping.yahoo.com
or bid at http://auctions.yahoo.com

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


RE: which IDE

Posted by "Juan Alvarado (Struts List)" <ju...@manduca.com>.
I've got Visual Age for Java 4.0 working with struts and it works great. 

It will save you tons of time in debugging and solving problems. 

An good IDE is definetely a must have tool.

Take care

**********************************************
Juan Alvarado
Internet Developer -- Manduca Management
(786)552-0504
jalvarado@manduca.com
AOL Instant Messenger: juan2000@aol.com

-----Original Message-----
From: Samuele Brignoli [mailto:samuele.brignoli@darpha.com]
Sent: Friday, December 14, 2001 10:49 AM
To: Struts Users Mailing List
Subject: which IDE


Which is the best IDE to develop struts framework ? I 've got JBuilder
Enterprise, is that suited for struts?

    --kako


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


which IDE

Posted by Samuele Brignoli <sa...@darpha.com>.
Which is the best IDE to develop struts framework ? I 've got JBuilder
Enterprise, is that suited for struts?

    --kako