You've already got three breadcrumbs to follow:

First, make sure this is a valid path, that the file permissions allow
the file to be opened, and look at what's on line 7 (maybe
specifically column 6)?
> [Fatal Error] log4j2.xml:7:6: The processing instruction target matching 
> "[xX][mM][lL]" is not allowed.
> ERROR StatusLogger Error parsing 
> C:\frameworks\struts\basic_struts\target\classes\log4j2.xml
> > org.xml.sax.SAXParseException; systemId: 
> > file:///C:/frameworks/struts/basic_struts/target/classes/log4j2.xml; 
> > lineNumber: 7; columnNumber: 6; The processing instruction target matching 
> > "[xX][mM][lL]" is not allowed.

Second make sure the class names are correct:
> Caused by: com.opensymphony.xwork2.config.ConfigurationException: Action 
> class [org.apache.struts.helloworld.action.HelloWorldAction] not found
Is org.apache.struts.helloworld.action.HelloWorldAction the fully
qualified class name of your class?  Is it in the classpath?  Are all
of its dependencies (superclasses, interfaces, imports) in the
classpath?  Are they there but a static block in one of them failed,
so loading the class failed?

Third
> Something else I saw strikes me as odd.  I’m getting an issue with
> HelloWorldAction extending ActionSupport, where Netbeans isn’t seeing where
> ActionSupport is defined, even though I’ve placed all the dependencies into
> the app per the instructions.
This also suggests class loader/class path issues to me.  It sounds
like there are different dependencies available depending on how it is
launched, or multiple versions of those dependencies (but your code
isn't compatible with all of them).  Double check the package names --
it could be as simple as a typo or a deprecated package name.
Sometimes the code can all be exactly right, but because cruft has
accumulated in a build or dest tree, the runtime doesn't match your
expectations (and a clean build can fix it).

-Dale

On Fri, Dec 8, 2023 at 8:27 AM Dave Newton <davelnew...@gmail.com> wrote:
>
> There's nothing attached. Please include relevant information in the email
> body.
>
> Please subscribe to the user list so we don't have to approve each message
> manually.
>
> On Fri, Dec 8, 2023 at 11:24 AM Ruffin, Ronald <rruf...@empower.ai.invalid>
> wrote:
>
> > Hi again folks!!
> >
> >
> >
> > Sorry for my multiple emails, but I’m trying to get this example working
> > so I can move onto further Struts training.  After clicking a link to find
> > the correct library in Maven, I’m now getting the attached “Dispatcher
> > Init” issue.
> >
> >
> >
> > Btw, I’m running on Java JDK 8.  What’s a good fix for this?
> >
> >
> >
> > Thanks,
> >
> >
> >
> > Ron
> >
> >
> >
> > Ron Ruffin
> >
> > *Web Software Developer V, SSDA*
> >
> > *Empower AI **(Formerly NCI)*
> >
> > Office: TBD | Mobile: 937.490.9754
> >
> > *rruf...@empower.ai <rruf...@empower.ai>*
> >
> >
> >
> >
> >
> > *From:* Ruffin, Ronald
> > *Sent:* Friday, December 8, 2023 11:03
> > *To:* user@struts.apache.org
> > *Subject:* RE: Issue with "Hello World Using Struts 2"
> >
> >
> >
> > Hi Struts folks!!
> >
> >
> >
> > Something else I saw strikes me as odd.  I’m getting an issue with
> > HelloWorldAction extending ActionSupport, where Netbeans isn’t seeing where
> > ActionSupport is defined, even though I’ve placed all the dependencies into
> > the app per the instructions.
> >
> >
> >
> > Is there a way to address this?
> >
> >
> >
> > Thanks,
> >
> >
> >
> > Ron
> >
> >
> >
> > Ron Ruffin
> >
> > *Web Software Developer V, SSDA*
> >
> > *Empower AI **(Formerly NCI)*
> >
> > Office: TBD | Mobile: 937.490.9754
> >
> > *rruf...@empower.ai <rruf...@empower.ai>*
> >
> >
> >
> >
> >
> > *From:* Ruffin, Ronald
> > *Sent:* Friday, December 8, 2023 09:28
> > *To:* user@struts.apache.org
> > *Subject:* Issue with "Hello World Using Struts 2"
> >
> >
> >
> > Hi folks!
> >
> >
> >
> > I’m working my way through the basic Struts 2 tutorials, including “Hello
> > World using Struts 2”, and although I think I have everything set up as the
> > tutorial recommends, when I run the app in Jetty, I get the attached stack
> > trace, and when I try to open it my browser, I get the attached 404 error
> > from Jetty.
> >
> >
> >
> > Is there a fix for this, or am I missing something?
> >
> >
> >
> > Thanks,
> >
> >
> >
> > Ron
> >
> >
> >
> > Ron Ruffin
> >
> > *Web Software Developer V, SSDA*
> >
> > *Empower AI **(Formerly NCI)*
> >
> > Wright-Patterson Air Force Base
> >
> > Office: TBD | Mobile: 937.490.9754
> >
> > *rruf...@empower.ai <rruf...@empower.ai>* | www.empower.ai
> >
> > Elevate the Mission
> >
> >
> > If you have received this message in error, please contact the sender
> > immediately and be aware that the use, copying, or dissemination of this
> > information is prohibited. This email transmission contains information
> > from Empower AI, Inc. that may be considered privileged or confidential and
> > is intended solely for the named recipient. Please note: NCI Information
> > Systems, Inc is now Empower AI, Inc, request that you update the contact
> > information you may have for me, instead of @nciinc.com it will now be @
> > empower.ai
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> > For additional commands, e-mail: user-h...@struts.apache.org
> >
>
>
> --
> em: davelnew...@gmail.com
> mo: 908-380-8699
> gh: davelnewton <https://github.com/davelnewton>
> so: Dave Newton <http://stackoverflow.com/users/438992/dave-newton>
> bl: Maker's End Blog <https://blog.makersend.com>

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

Reply via email to