struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Niall Pemberton" <niall.pember...@blueyonder.co.uk>
Subject Re: Error upgrading from 1.1 to 1.2.4
Date Thu, 09 Dec 2004 05:02:47 GMT
Mick,

When you say "I did still have all the correct 1.2.4 libs in place though" -
this doesn't look true to me. The ''acceptCharset" setter was introduced in
Struts 1.2.4 - so when you get the following error:

The Tag class 'org.apache.struts.taglib.html.FormTag' has no setter method
corresponding to TLD declared attribute 'acceptCharset', (JSP 1.1 spec,
5.4.1)

It looks like you've deployed the TLD files for 1.2.4 - but not the
struts.jar for 1.2.4

Niall

----- Original Message ----- 
From: <Mick.Knutson@wellsfargo.com>
To: <user@struts.apache.org>
Sent: Thursday, December 09, 2004 1:10 AM
Subject: RE: Error upgrading from 1.1 to 1.2.4


Now I reverted all my xml files back to the original ones in cvs and then
deployed and I get this error:

Parsing of JSP File '/WEB-INF/default/default.jsp' failed:
----------------------------------------------------------------------------
----
 /WEB-INF/default/default.jsp(5): Error in using tag library
uri='/WEB-INF/struts-html.tld' prefix='html': The Tag class
'org.apache.struts.taglib.html.FormTag' has no setter method corresponding
to TLD declared attribute 'acceptCharset', (JSP 1.1 spec, 5.4.1)
probably occurred due to an error in /WEB-INF/default/default.jsp line 5:
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
----------------------------------------------------------------------------
----


I did still have all the correct 1.2.4 libs in place though.
Then, I added just the updated header for the struts-config.xml file to 1.2
and I get the same error as before....

> > <Dec 8, 2004 2:12:50 PM PST> <Error> <HTTP> <BEA-101216>
<Servlet:
> > "action" failed to preload on startup in Web application: "/".
> > javax.servlet.UnavailableException: Parsing error processing
> > resource path


--------------------
Mick Knutson
Wells Fargo Business Direct
(415) 222-1020

"This message may contain confidential and/or privileged information. If you
are not the addressee or authorized to receive this for the addressee, you
must not use, copy, disclose, or take any action based on this message or
any information herein. If you have received this message in error, please
advise the sender immediately by reply e-mail and delete this message. Thank
you for your cooperation."
--------------------



-----Original Message-----
From: Knutson, Mick
Sent: Wednesday, December 08, 2004 4:22 PM
To: 'Struts Users Mailing List'
Subject: RE: Error upgrading from 1.1 to 1.2.4


No luck. I commented out all my actions, and the error did not change.

--------------------
Mick Knutson
Wells Fargo Business Direct
(415) 222-1020

"This message may contain confidential and/or privileged information. If you
are not the addressee or authorized to receive this for the addressee, you
must not use, copy, disclose, or take any action based on this message or
any information herein. If you have received this message in error, please
advise the sender immediately by reply e-mail and delete this message. Thank
you for your cooperation."
--------------------



-----Original Message-----
From: David G. Friedman [mailto:humble@ix.netcom.com]
Sent: Wednesday, December 08, 2004 3:57 PM
To: Struts Users Mailing List
Subject: RE: Error upgrading from 1.1 to 1.2.4


Mick,

Have you tried commenting out all actions from your action-mappings segment
to see if it is specific to that section or if it is something else in the
config file?  When all else fails, the process of elimination helps.

Regards,
David

-----Original Message-----
From: Mick.Knutson@wellsfargo.com [mailto:Mick.Knutson@wellsfargo.com]
Sent: Wednesday, December 08, 2004 6:51 PM
To: user@struts.apache.org
Subject: RE: Error upgrading from 1.1 to 1.2.4


So how to fix it? :-) just so you don't get bored. I am definitely not bored
right now, and actually wish this would end as I would prefer bored over
this... ;-)


--------------------
Mick Knutson
Wells Fargo Business Direct
(415) 222-1020

"This message may contain confidential and/or privileged information. If you
are not the addressee or authorized to receive this for the addressee, you
must not use, copy, disclose, or take any action based on this message or
any information herein. If you have received this message in error, please
advise the sender immediately by reply e-mail and delete this message. Thank
you for your cooperation."
--------------------



-----Original Message-----
From: Jim Barrows [mailto:jbarrows@sssc.com]
Sent: Wednesday, December 08, 2004 3:46 PM
To: Struts Users Mailing List
Subject: RE: Error upgrading from 1.1 to 1.2.4




> -----Original Message-----
> From: Mick.Knutson@wellsfargo.com [mailto:Mick.Knutson@wellsfargo.com]
> Sent: Wednesday, December 08, 2004 4:42 PM
> To: user@struts.apache.org
> Subject: RE: Error upgrading from 1.1 to 1.2.4
>
>
> The failure is actually when deploying the ear into web
> logic. So there is nothing that was called to get this error
> except starting up the action Servlet itself.
>
> BTW, Sorry for posting so much.

Hey, keeps me from being bored.

Right... I think the error is being thrown as the servlet reads the
struts-config.xml file.

>
>
> --------------------
> Mick Knutson
> Wells Fargo Business Direct
> (415) 222-1020
>
> "This message may contain confidential and/or privileged
> information. If you are not the addressee or authorized to
> receive this for the addressee, you must not use, copy,
> disclose, or take any action based on this message or any
> information herein. If you have received this message in
> error, please advise the sender immediately by reply e-mail
> and delete this message. Thank you for your cooperation."
> --------------------
>
>
>
> -----Original Message-----
> From: David G. Friedman [mailto:humble@ix.netcom.com]
> Sent: Wednesday, December 08, 2004 3:12 PM
> To: Struts Users Mailing List
> Subject: RE: Error upgrading from 1.1 to 1.2.4
>
>
> Mick,
>
> I think the point wasn't for you to post everything but to
> examine the path
> attribute of your action-mappings and see if you listed any
> as empty ("") or
> ONLY a slash "/", i.e. not "/SOMETHING".  If you do have ""
> or "/", you
> shouldn't do that.  Instead, we recommend you set the attribute
> unknown="true" for that particular action mapping to be used
> for anything
> which fails to match any other action mapping.  Think of it
> as a "default"
> action for unmatched struts invocations.
>
> Regards,
> David
> > -----Original Message-----
> > From: Mick.Knutson@wellsfargo.com
> [mailto:Mick.Knutson@wellsfargo.com]
> > Sent: Wednesday, December 08, 2004 3:23 PM
> > To: user@struts.apache.org
> > Subject: RE: Error upgrading from 1.1 to 1.2.4
> > Importance: High
> >
> >
> > Ok, I have removed the xml comments I made and I still get an error:
> > <BEA-101216> <Servlet: "action" failed to preload on startup
> > in Web application: "/".
> > (full error below)...
>
> It looks like your xml is now being parsed with no dtd problems.
>
> This looks like you have an action mapped to /.  Which is odd.... and
> probably is not the case.
> What does the rest of your struts-config look like?
>
>
>
>
>
> >
> > Here are my various xml descriptors:
> > ------------------------------------
> >
> > web.xml:
> > =========
> > <?xml version="1.0" encoding="iso-8859-1"?>
> > <!DOCTYPE web-app PUBLIC
> >           "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
> >           "http://java.sun.com/dtds/web-app_2_3.dtd">
> >
> >
> > <web-app>
> >
> >     <!--
> > ==============================================================
> > ===== -->
> >     <!-- Define the filters within the Web Application
> >
> >    -->
> >     <!--
> > ==============================================================
> > ===== -->
> >
> >     <!--<filter>
> >         <filter-name>SecurityFilter</filter-name>
> >
> > <filter-class>com.baselogic.yoursos.security.SecurityContextFi
> > lter</filter-class>
> >         <init-param>
> >             <param-name>yoursos-application</param-name>
> >             <param-value>yoursos-policy</param-value>
> >         </init-param>
> >     </filter>-->
> >
> >     <!--<filter-mapping>
> >         <filter-name>SecurityFilter</filter-name>
> >         <url-pattern>/*</url-pattern>
> >     </filter-mapping>-->
> >
> >     <!--
> > ==============================================================
> > ===== -->
> >     <!-- Standard Action Servlet Configuration (with
> > debugging)
> >    -->
> >     <!--
> > ==============================================================
> > ===== -->
> >
> >     <servlet>
> >         <servlet-name>action</servlet-name>
> >
> > <servlet-class>com.wf.bd.ice.struts.ExtendedActionServlet</ser
> > vlet-class>
> >         <init-param>
> >             <param-name>config</param-name>
> >             <param-value>/WEB-INF/struts-config.xml</param-value>
> >         </init-param>
> >         <init-param>
> >             <param-name>detail</param-name>
> >             <param-value>1</param-value>
> >         </init-param>
> >         <load-on-startup>1</load-on-startup>
> >     </servlet>
> >
> >
> >
> >
> >
> >
> > struts-config.xml:
> > ======================
> > <?xml version="1.0" encoding="iso-8859-1"?>
> > <!DOCTYPE struts-config PUBLIC
> >           "-//Apache Software Foundation//DTD Struts Configuration
> > 1.2//EN"
> >           "http://struts.apache.org/dtds/struts-config_1_2.dtd">
> >
> >
> > <!--
> >      NOTE: If you have a generator tool to create the
> > corresponding Java
> > classes
> >      for you, you could include the details in the "form-bean"
> > declarations.
> >      Otherwise, you would only define the "form-bean"
> element itself,
> > with the
> >      corresponding "name" and "type" attributes, as shown here.
> > -->
> >
> > <struts-config>
> >
> >
> >
> >
> >
> >
> > validation-nbbc.xml:
> > =====================
> > <?xml version="1.0" encoding="iso-8859-1"?>
> > <!DOCTYPE form-validation PUBLIC
> >           "-//Apache Software Foundation//DTD Commons
> Validator Rules
> > Configuration 1.1.3//EN"
> >
> > "http://jakarta.apache.org/commons/dtds/validator_1_1_3.dtd">
> >
> > <form-validation>
> > .......more........
> >
> >
> >
> >
> >
> >
> >
> > validation-rules.xml:
> > ========================
> > <!DOCTYPE form-validation PUBLIC
> >           "-//Apache Software Foundation//DTD Commons
> Validator Rules
> > Configuration 1.1.3//EN"
> >
> > "http://jakarta.apache.org/commons/dtds/validator_1_1_3.dtd">
> >
> >
> >
> >
> >
> >
> >
> >
> > tiles-defs.xml:
> > =================
> > <?xml version="1.0" encoding="ISO-8859-1" ?>
> >
> >  <!DOCTYPE tiles-definitions PUBLIC
> >        "-//Apache Software Foundation//DTD Tiles
> > Configuration 1.1//EN"
> >        "http://struts.apache.org/dtds/tiles-config_1_1.dtd">
> >
> > <tiles-definitions>
> >
> >
> >
> >
> >
> >
> >
> >
> > The ERROR I get:
> > =============================================
> > <Dec 8, 2004 2:12:50 PM PST> <Error> <HTTP> <BEA-101216>
<Servlet:
> > "action" failed to preload on startup in Web application: "/".
> > javax.servlet.UnavailableException: Parsing error processing
> > resource path
> >         at
> > org.apache.struts.action.ActionServlet.handleConfigException(A
> > ctionServlet.java:1035)
> >         at
> > org.apache.struts.action.ActionServlet.parseModuleConfigFile(A
> > ctionServlet.java:1012)
> >         at
> > org.apache.struts.action.ActionServlet.initModuleConfig(Action
> > Servlet.java:955)
> >         at
> > org.apache.struts.action.ActionServlet.init(ActionServlet.java:470)
> >         at
> > com.wf.bd.ice.struts.ExtendedActionServlet.init(ExtendedAction
> > Servlet.java:38)
> >         at
> javax.servlet.GenericServlet.init(GenericServlet.java:258)
> >         at
> > weblogic.servlet.internal.ServletStubImpl$ServletInitAction.ru
> > n(ServletStubImpl.java:993)
> >         at
> > weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authe
> > nticatedSubject.java:317)
> >         at
> > weblogic.security.service.SecurityManager.runAs(SecurityManage
> > r.java:118)
> >         at
> > weblogic.servlet.internal.ServletStubImpl.createServlet(Servle
> > tStubImpl.java:869)
> >         at
> > weblogic.servlet.internal.ServletStubImpl.createInstances(Serv
> > letStubImpl.java:848)
> >         at
> > weblogic.servlet.internal.ServletStubImpl.prepareServlet(Servl
> > etStubImpl.java:787)
> >         at
> > weblogic.servlet.internal.WebAppServletContext.preloadServlet(
> > WebAppServletContext.java:3252)
> >         at
> > weblogic.servlet.internal.WebAppServletContext.preloadServlets
> > (WebAppServletContext.java:3209)
> >         at
> > weblogic.servlet.internal.WebAppServletContext.preloadServlets
> > (WebAppServletContext.java:3195)
> >         at
> > weblogic.servlet.internal.WebAppServletContext.preloadResource
> > s(WebAppServletContext.java:3174)
> >         at
> > weblogic.servlet.internal.WebAppServletContext.setStarted(WebA
> > ppServletContext.java:5647)
> >         at
> > weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:869)
> >         at
> > weblogic.j2ee.J2EEApplicationContainer.start(J2EEApplicationCo
> > ntainer.java:2022)
> >         at
> > weblogic.j2ee.J2EEApplicationContainer.activate(J2EEApplicatio
> > nContainer.java:2063)
> >         at
> > weblogic.management.deploy.slave.SlaveDeployer$ComponentActiva
> > teTask.activateContainer(SlaveDeployer.java:2592)
> >         at
> > weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.do
> > Commit(SlaveDeployer.java:2515)
> >         at
> > weblogic.management.deploy.slave.SlaveDeployer$Task.commit(Sla
> > veDeployer.java:2317)
> >         at
> > weblogic.management.deploy.slave.SlaveDeployer$Task.checkAutoC
> > ommit(SlaveDeployer.java:2399)
> >         at
> > weblogic.management.deploy.slave.SlaveDeployer$Task.prepare(Sl
> > aveDeployer.java:2311)
> >         at
> > weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.pr
> > epare(SlaveDeployer.java:2479)
> >         at
> > weblogic.management.deploy.slave.SlaveDeployer.processPrepareT
> > ask(SlaveDeployer.java:798)
> >         at
> > weblogic.management.deploy.slave.SlaveDeployer.prepareDelta(Sl
> > aveDeployer.java:507)
> >         at
> > weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(S
> > laveDeployer.java:465)
> >         at
> > weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCall
> > backHandler.java:25)
> >         at
> > weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
> >         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
> > >

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org





---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message