Re: Issue with "Hello World Using Struts 2"

2023-12-08 Thread Dale Newfield
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  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 
> 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 *
> >
> >
> >
> >
> >
> > *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 *
> >
> >
> >
> >
> >
> > *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,
> >
> >
> >
>

Re: Issue with "Hello World Using Struts 2"

2023-12-08 Thread Dave Newton
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 
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 *
>
>
>
>
>
> *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 *
>
>
>
>
>
> *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 * | 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>


Re: Issue with "Hello World Using Struts 2"

2023-12-08 Thread Dave Newton
Please subscribe to the list to receive emails (and save us from approving
all the messages manually).

On Fri, Dec 8, 2023 at 11:08 AM Dave Newton  wrote:

> I can't see the log4j.xml file so it's difficult to say why it might be
> failing parsing.
>
> On Fri, Dec 8, 2023 at 11:06 AM Ruffin, Ronald 
> wrote:
>
>> 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 * | 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 
> so: Dave Newton 
> bl: Maker's End Blog 
>
>

-- 
em: davelnew...@gmail.com
mo: 908-380-8699
gh: davelnewton 
so: Dave Newton 
bl: Maker's End Blog 


RE: Issue with "Hello World Using Struts 2"

2023-12-08 Thread Ruffin, Ronald
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<mailto: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<mailto:rruf...@empower.ai>


From: Ruffin, Ronald
Sent: Friday, December 8, 2023 09:28
To: user@struts.apache.org<mailto: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<mailto:rruf...@empower.ai> | 
www.empower.ai<http://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

Re: Issue with "Hello World Using Struts 2"

2023-12-08 Thread Dave Newton
I can't see the log4j.xml file so it's difficult to say why it might be
failing parsing.

On Fri, Dec 8, 2023 at 11:06 AM Ruffin, Ronald 
wrote:

> 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 * | 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 
so: Dave Newton 
bl: Maker's End Blog 


RE: Issue with "Hello World Using Struts 2"

2023-12-08 Thread Ruffin, Ronald
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<mailto: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<mailto:rruf...@empower.ai> | 
www.empower.ai<http://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

Issue with "Hello World Using Struts 2"

2023-12-08 Thread Ruffin, Ronald
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 | 
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
C:\frameworks\struts\basic_struts>mvn jetty:run
[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for 
com.empowerai:basic_struts:war:1.0-SNAPSHOT
[WARNING] The expression ${build.finalName} is deprecated. Please use 
${project.build.finalName} instead.
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten 
the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support 
building such malformed projects.
[WARNING]
[INFO]
[INFO] -< com.empowerai:basic_struts >-
[INFO] Building basic_struts-1.0-SNAPSHOT 1.0-SNAPSHOT
[INFO]   from pom.xml
[INFO] [ war ]-
[INFO]
[INFO] >>> jetty:9.4.7.v20170914:run (default-cli) > test-compile @ 
basic_struts >>>
[INFO]
[INFO] --- dependency:2.6:copy (default) @ basic_struts ---
[INFO]
[INFO] --- resources:3.3.1:resources (default-resources) @ basic_struts ---
[INFO] Copying 3 resources from src\main\resources to target\classes
[INFO]
[INFO] --- compiler:3.1:compile (default-compile) @ basic_struts ---
[WARNING]  Parameter 'compilerArguments' is deprecated: use {@link 
#compilerArgs} instead.
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 4 source files to 
C:\frameworks\struts\basic_struts\target\classes
[INFO]
[INFO] --- resources:3.3.1:testResources (default-testResources) @ basic_struts 
---
[INFO] skip non existing resourceDirectory 
C:\frameworks\struts\basic_struts\src\test\resources
[INFO]
[INFO] --- compiler:3.1:testCompile (default-testCompile) @ basic_struts ---
[WARNING]  Parameter 'compilerArguments' is deprecated: use {@link 
#compilerArgs} instead.
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] <<< jetty:9.4.7.v20170914:run (default-cli) < test-compile @ 
basic_struts <<<
[INFO]
[INFO]
[INFO] --- jetty:9.4.7.v20170914:run (default-cli) @ basic_struts ---
[INFO] Logging initialized @2981ms to org.eclipse.jetty.util.log.Slf4jLog
[INFO] Configuring Jetty for project: basic_struts-1.0-SNAPSHOT
[INFO] webAppSourceDirectory not set. Trying src\main\webapp
[INFO] Reload Mechanic: automatic
[INFO] nonBlocking:false
[INFO] Classes = C:\frameworks\struts\basic_struts\target\classes
[INFO] Context path = /basic-struts
[INFO] Tmp directory = C:\frameworks\struts\basic_struts\target\tmp
[INFO] Web defaults = org/eclipse/jetty/webapp/webdefault.xml
[INFO] Web overrides =  none
[INFO] web.xml file = 
file:///C:/frameworks/struts/basic_struts/src/main/webapp/WEB-INF/web.xml
[INFO] Webapp directory = C:\frameworks\struts\basic_struts\src\main\webapp
[INFO] jetty-9.4.7.v20170914
[INFO] Scanning elapsed time=343ms
[INFO] DefaultSessionIdManager workerName=node0
[INFO] No SessionScavenger set, using defaults
[INFO] Scavenging every 60ms
[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.
at 
com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:262)
at 
com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:339)
at 
org.apache.logging.log4j.core.config.xml.XmlConfiguration.(XmlConfiguration.java:95)
at 
org.apache.logging.log4j.core.config.xml.XmlConfigurationFactory.getConfiguration(XmlConfigurationFactory.java:46)
at