You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Jim Anderon <ji...@jjajava.com> on 2014/07/08 21:47:48 UTC
hello world is giving me a stack trace.
Hi,
I'm trying to learn about struts and I have been trying to run the
tutorials. The example, 'basic struts', runs ok in my
environment. But when I run 'hello_world', I get a stack trace, which I
will attach to this email.
I'm running on Crunchbang linux, a Debian deriviative, and I'm using
tomcat6 as my server, with Struts 2.3.16.3.
I was having trouble getting the example to run on my machine. I finally
got it to run successfully once. Every run
after that has given me a stacktrace. I figured that I might have messed
up the code in my work space, so I removed
everything, re-installed the hello_world directory and then rebuilt
using 'mvn clean package', which ran
successfully. I tried installing the war file both manually and using
the tomcat manager and got the same results
in either case.
I am searching the internet for a similar stacktrace, but have not found
it yet. Has anyone on the mailing list
seen a similar problem before?
Regards,
Jim Anderson
Re: hello world is giving me a stack trace.
Posted by Jim Anderson <ji...@jjajava.com>.
To all those who helped on this problem, my sincere thanks. It is now
resolved.
Resolution: Upgrade to tomcat7.
Jim A.
On 07/09/2014 07:26 AM, Martin Gainty wrote:
> MG>can you repost the Stacktrace in a followup email
> MG>thanks
>
> > Date: Tue, 8 Jul 2014 20:52:24 -0700
> > Subject: Re: hello world is giving me a stack trace.
> > From: haoniukun@gmail.com
> > To: jim_anderson@jjajava.com
> > CC: user@struts.apache.org
> >
> > Don't know why. I suspect you have a class name conflict somewhere
> in your
> > environment.
> >
> >
> > On Tue, Jul 8, 2014 at 6:15 PM, Jim Anderon <ji...@jjajava.com>
> > wrote:
> >
> > >
> > > I am attaching the struts.xml file. This is the struts.xml file
> that came
> > > with the tutorial example. I have not
> > > edited it at all.
> > >
> > > I realize the stack track indicates the program failed in the
> struts.xml
> > > file, but I assume that
> > > for most people running the example, this example works. I suspect
> that
> > > the this code makes assumptions
> > > about the environment and that my environment does not meet all of the
> > > assumptions. I have no idea where
> > > to look for the root cause at this point.
> > >
> > > Jim
> > >
> > >
> > > On 07/08/2014 05:12 PM, Kun Niu wrote:
> > >
> > > The backtrace already told you. There's a classcast exception in your
> > > struts.xml file.
> > > You need to at least add your struts.xml file.
> > >
> > >
> > > On Tue, Jul 8, 2014 at 12:47 PM, Jim Anderon
> <ji...@jjajava.com>
> > > wrote:
> > >
> > >>
> > >> Hi,
> > >>
> > >> I'm trying to learn about struts and I have been trying to run the
> > >> tutorials. The example, 'basic struts', runs ok in my
> > >> environment. But when I run 'hello_world', I get a stack trace,
> which I
> > >> will attach to this email.
> > >>
> > >> I'm running on Crunchbang linux, a Debian deriviative, and I'm using
> > >> tomcat6 as my server, with Struts 2.3.16.3.
> > >>
> > >> I was having trouble getting the example to run on my machine. I
> finally
> > >> got it to run successfully once. Every run
> > >> after that has given me a stacktrace. I figured that I might have
> messed
> > >> up the code in my work space, so I removed
> > >> everything, re-installed the hello_world directory and then
> rebuilt using
> > >> 'mvn clean package', which ran
> > >> successfully. I tried installing the war file both manually and
> using the
> > >> tomcat manager and got the same results
> > >> in either case.
> > >>
> > >> I am searching the internet for a similar stacktrace, but have
> not found
> > >> it yet. Has anyone on the mailing list
> > >> seen a similar problem before?
> > >>
> > >> Regards,
> > >> Jim Anderson
> > >>
> > >>
> > >> ---------------------------------------------------------------------
> > >> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> > >> For additional commands, e-mail: user-help@struts.apache.org
> > >>
> > >
> > >
> > >
> > > --
> > > 牛坤
> > > MSN:haoniukun@hotmail.com
> > >
> > >
> > >
> >
> >
> > --
> > 牛坤
> > MSN:haoniukun@hotmail.com
RE: hello world is giving me a stack trace.
Posted by Martin Gainty <mg...@hotmail.com>.
MG>can you repost the Stacktrace in a followup email
MG>thanks
> Date: Tue, 8 Jul 2014 20:52:24 -0700
> Subject: Re: hello world is giving me a stack trace.
> From: haoniukun@gmail.com
> To: jim_anderson@jjajava.com
> CC: user@struts.apache.org
>
> Don't know why. I suspect you have a class name conflict somewhere in your
> environment.
>
>
> On Tue, Jul 8, 2014 at 6:15 PM, Jim Anderon <ji...@jjajava.com>
> wrote:
>
> >
> > I am attaching the struts.xml file. This is the struts.xml file that came
> > with the tutorial example. I have not
> > edited it at all.
> >
> > I realize the stack track indicates the program failed in the struts.xml
> > file, but I assume that
> > for most people running the example, this example works. I suspect that
> > the this code makes assumptions
> > about the environment and that my environment does not meet all of the
> > assumptions. I have no idea where
> > to look for the root cause at this point.
> >
> > Jim
> >
> >
> > On 07/08/2014 05:12 PM, Kun Niu wrote:
> >
> > The backtrace already told you. There's a classcast exception in your
> > struts.xml file.
> > You need to at least add your struts.xml file.
> >
> >
> > On Tue, Jul 8, 2014 at 12:47 PM, Jim Anderon <ji...@jjajava.com>
> > wrote:
> >
> >>
> >> Hi,
> >>
> >> I'm trying to learn about struts and I have been trying to run the
> >> tutorials. The example, 'basic struts', runs ok in my
> >> environment. But when I run 'hello_world', I get a stack trace, which I
> >> will attach to this email.
> >>
> >> I'm running on Crunchbang linux, a Debian deriviative, and I'm using
> >> tomcat6 as my server, with Struts 2.3.16.3.
> >>
> >> I was having trouble getting the example to run on my machine. I finally
> >> got it to run successfully once. Every run
> >> after that has given me a stacktrace. I figured that I might have messed
> >> up the code in my work space, so I removed
> >> everything, re-installed the hello_world directory and then rebuilt using
> >> 'mvn clean package', which ran
> >> successfully. I tried installing the war file both manually and using the
> >> tomcat manager and got the same results
> >> in either case.
> >>
> >> I am searching the internet for a similar stacktrace, but have not found
> >> it yet. Has anyone on the mailing list
> >> seen a similar problem before?
> >>
> >> Regards,
> >> Jim Anderson
> >>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> >> For additional commands, e-mail: user-help@struts.apache.org
> >>
> >
> >
> >
> > --
> > 牛坤
> > MSN:haoniukun@hotmail.com
> >
> >
> >
>
>
> --
> 牛坤
> MSN:haoniukun@hotmail.com
Re: hello world is giving me a stack trace.
Posted by Kun Niu <ha...@gmail.com>.
Don't know why. I suspect you have a class name conflict somewhere in your
environment.
On Tue, Jul 8, 2014 at 6:15 PM, Jim Anderon <ji...@jjajava.com>
wrote:
>
> I am attaching the struts.xml file. This is the struts.xml file that came
> with the tutorial example. I have not
> edited it at all.
>
> I realize the stack track indicates the program failed in the struts.xml
> file, but I assume that
> for most people running the example, this example works. I suspect that
> the this code makes assumptions
> about the environment and that my environment does not meet all of the
> assumptions. I have no idea where
> to look for the root cause at this point.
>
> Jim
>
>
> On 07/08/2014 05:12 PM, Kun Niu wrote:
>
> The backtrace already told you. There's a classcast exception in your
> struts.xml file.
> You need to at least add your struts.xml file.
>
>
> On Tue, Jul 8, 2014 at 12:47 PM, Jim Anderon <ji...@jjajava.com>
> wrote:
>
>>
>> Hi,
>>
>> I'm trying to learn about struts and I have been trying to run the
>> tutorials. The example, 'basic struts', runs ok in my
>> environment. But when I run 'hello_world', I get a stack trace, which I
>> will attach to this email.
>>
>> I'm running on Crunchbang linux, a Debian deriviative, and I'm using
>> tomcat6 as my server, with Struts 2.3.16.3.
>>
>> I was having trouble getting the example to run on my machine. I finally
>> got it to run successfully once. Every run
>> after that has given me a stacktrace. I figured that I might have messed
>> up the code in my work space, so I removed
>> everything, re-installed the hello_world directory and then rebuilt using
>> 'mvn clean package', which ran
>> successfully. I tried installing the war file both manually and using the
>> tomcat manager and got the same results
>> in either case.
>>
>> I am searching the internet for a similar stacktrace, but have not found
>> it yet. Has anyone on the mailing list
>> seen a similar problem before?
>>
>> Regards,
>> Jim Anderson
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> For additional commands, e-mail: user-help@struts.apache.org
>>
>
>
>
> --
> 牛坤
> MSN:haoniukun@hotmail.com
>
>
>
--
牛坤
MSN:haoniukun@hotmail.com
Re: hello world is giving me a stack trace.
Posted by Jim Anderon <ji...@jjajava.com>.
I am attaching the struts.xml file. This is the struts.xml file that
came with the tutorial example. I have not
edited it at all.
I realize the stack track indicates the program failed in the struts.xml
file, but I assume that
for most people running the example, this example works. I suspect that
the this code makes assumptions
about the environment and that my environment does not meet all of the
assumptions. I have no idea where
to look for the root cause at this point.
Jim
On 07/08/2014 05:12 PM, Kun Niu wrote:
> The backtrace already told you. There's a classcast exception in your
> struts.xml file.
> You need to at least add your struts.xml file.
>
>
> On Tue, Jul 8, 2014 at 12:47 PM, Jim Anderon <jim_anderson@jjajava.com
> <ma...@jjajava.com>> wrote:
>
>
> Hi,
>
> I'm trying to learn about struts and I have been trying to run the
> tutorials. The example, 'basic struts', runs ok in my
> environment. But when I run 'hello_world', I get a stack trace,
> which I will attach to this email.
>
> I'm running on Crunchbang linux, a Debian deriviative, and I'm
> using tomcat6 as my server, with Struts 2.3.16.3.
>
> I was having trouble getting the example to run on my machine. I
> finally got it to run successfully once. Every run
> after that has given me a stacktrace. I figured that I might have
> messed up the code in my work space, so I removed
> everything, re-installed the hello_world directory and then
> rebuilt using 'mvn clean package', which ran
> successfully. I tried installing the war file both manually and
> using the tomcat manager and got the same results
> in either case.
>
> I am searching the internet for a similar stacktrace, but have not
> found it yet. Has anyone on the mailing list
> seen a similar problem before?
>
> Regards,
> Jim Anderson
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> <ma...@struts.apache.org>
> For additional commands, e-mail: user-help@struts.apache.org
> <ma...@struts.apache.org>
>
>
>
>
> --
> 牛坤
> MSN:haoniukun@hotmail.com <ma...@hotmail.com>
Re: hello world is giving me a stack trace.
Posted by Kun Niu <ha...@gmail.com>.
The backtrace already told you. There's a classcast exception in your
struts.xml file.
You need to at least add your struts.xml file.
On Tue, Jul 8, 2014 at 12:47 PM, Jim Anderon <ji...@jjajava.com>
wrote:
>
> Hi,
>
> I'm trying to learn about struts and I have been trying to run the
> tutorials. The example, 'basic struts', runs ok in my
> environment. But when I run 'hello_world', I get a stack trace, which I
> will attach to this email.
>
> I'm running on Crunchbang linux, a Debian deriviative, and I'm using
> tomcat6 as my server, with Struts 2.3.16.3.
>
> I was having trouble getting the example to run on my machine. I finally
> got it to run successfully once. Every run
> after that has given me a stacktrace. I figured that I might have messed
> up the code in my work space, so I removed
> everything, re-installed the hello_world directory and then rebuilt using
> 'mvn clean package', which ran
> successfully. I tried installing the war file both manually and using the
> tomcat manager and got the same results
> in either case.
>
> I am searching the internet for a similar stacktrace, but have not found
> it yet. Has anyone on the mailing list
> seen a similar problem before?
>
> Regards,
> Jim Anderson
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
--
牛坤
MSN:haoniukun@hotmail.com
Re: hello world is giving me a stack trace.
Posted by Jim Anderon <ji...@jjajava.com>.
The structs config files and the lib files all came with the example and
I have not touched them. Do you want to
see these? Or do you want to see the tomcat6 config files?
Jim A.
On 07/08/2014 05:01 PM, Dave Newton wrote:
> Without seeing the config file or the libs you're deploying it's
> difficult to help. I haven't seen that stacktrace before, though.
>
>
> On Tue, Jul 8, 2014 at 3:47 PM, Jim Anderon <jim_anderson@jjajava.com
> <ma...@jjajava.com>> wrote:
>
>
> Hi,
>
> I'm trying to learn about struts and I have been trying to run the
> tutorials. The example, 'basic struts', runs ok in my
> environment. But when I run 'hello_world', I get a stack trace,
> which I will attach to this email.
>
> I'm running on Crunchbang linux, a Debian deriviative, and I'm
> using tomcat6 as my server, with Struts 2.3.16.3.
>
> I was having trouble getting the example to run on my machine. I
> finally got it to run successfully once. Every run
> after that has given me a stacktrace. I figured that I might have
> messed up the code in my work space, so I removed
> everything, re-installed the hello_world directory and then
> rebuilt using 'mvn clean package', which ran
> successfully. I tried installing the war file both manually and
> using the tomcat manager and got the same results
> in either case.
>
> I am searching the internet for a similar stacktrace, but have not
> found it yet. Has anyone on the mailing list
> seen a similar problem before?
>
> Regards,
> Jim Anderson
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> <ma...@struts.apache.org>
> For additional commands, e-mail: user-help@struts.apache.org
> <ma...@struts.apache.org>
>
>
>
>
> --
> e: davelnewton@gmail.com <ma...@gmail.com>
> m: 908-380-8699
> s: davelnewton_skype
> t: @dave_newton <https://twitter.com/dave_newton>
> b: Bucky Bits <http://buckybits.blogspot.com/>
> g: davelnewton <https://github.com/davelnewton>
> so: Dave Newton <http://stackoverflow.com/users/438992/dave-newton>
>
Re: hello world is giving me a stack trace.
Posted by Dave Newton <da...@gmail.com>.
Without seeing the config file or the libs you're deploying it's difficult
to help. I haven't seen that stacktrace before, though.
On Tue, Jul 8, 2014 at 3:47 PM, Jim Anderon <ji...@jjajava.com>
wrote:
>
> Hi,
>
> I'm trying to learn about struts and I have been trying to run the
> tutorials. The example, 'basic struts', runs ok in my
> environment. But when I run 'hello_world', I get a stack trace, which I
> will attach to this email.
>
> I'm running on Crunchbang linux, a Debian deriviative, and I'm using
> tomcat6 as my server, with Struts 2.3.16.3.
>
> I was having trouble getting the example to run on my machine. I finally
> got it to run successfully once. Every run
> after that has given me a stacktrace. I figured that I might have messed
> up the code in my work space, so I removed
> everything, re-installed the hello_world directory and then rebuilt using
> 'mvn clean package', which ran
> successfully. I tried installing the war file both manually and using the
> tomcat manager and got the same results
> in either case.
>
> I am searching the internet for a similar stacktrace, but have not found
> it yet. Has anyone on the mailing list
> seen a similar problem before?
>
> Regards,
> Jim Anderson
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
--
e: davelnewton@gmail.com
m: 908-380-8699
s: davelnewton_skype
t: @dave_newton <https://twitter.com/dave_newton>
b: Bucky Bits <http://buckybits.blogspot.com/>
g: davelnewton <https://github.com/davelnewton>
so: Dave Newton <http://stackoverflow.com/users/438992/dave-newton>