You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Ken Miller <Ke...@huskyenergy.ca> on 2007/05/28 17:27:20 UTC

Struts 2 and JDK 1.4.2

To those folks out there who are restricted to JDK 1.4.2, are you running the Struts 2 back port, and if so, how successful have you been?
 
I'm trying to get the back port to work in a 1.4.2 engine, but I haven't had much success as of yet.  I'm following the tutorial from the Struts website (the simple Hello World tutorial), and I get this message:
 
    The requested file /HelloWorld.action does not exist.
 
Apparently, the struts.xml file (which is on the class path)  isn't being parsed, since I can introduce a syntax error into the file, and there is no parsing error message in the logs.  In fact, the only log message I get is this:
 
    28-May-2007 9:09:42 AM com.opensymphony.xwork2.config.providers.XmlConfigurationProvider register  INFO: Parsing configuration file [struts-default.xml]
 
Also, the only runtime dependency indicated for Struts 2 is the velocity-dep jar (along with commons logging, I'll assume).  Is this correct, or are there other dependencies?
 
Suggestions?
 
 
 
 
 
 
Cheers!

      -klm.

-----------------------------------------------------------------------------
Kenneth (Ken) L. Miller
Technical Specialist, Enterprise Web Portals
    Cell: 403.680.3785
Office: 403.750.1790


Re: Struts 2 and JDK 1.4.2

Posted by Ken Miller <Ke...@huskyenergy.ca>.
>>> On 5/28/2007 at 1:15 PM, in message <f3...@sea.gmane.org>, Laurie Harper
<la...@holoweb.net> wrote:
> Ken Miller wrote:
>> Also, the only runtime dependency indicated for Struts 2 is the velocity-dep 
> jar (along with commons logging, I'll assume).  Is this correct, or are there 
> other dependencies?
> 
> Indicated where? See here for minimum requirements:
> 
> http://struts.apache.org/2.x/docs/simple-setup.html 

Indicated here, in the Project Transitive Dependencies section:

http://struts.apache.org/2.x/struts2-core/dependencies.html 

I was using the back-port library for 1.4.2, which from the description contained everything you needed.

It's all moot anyway, since the container I'm using only supports Servlet 2.3/Jsp 1.2.
-- 

Cheers!

      -klm.

-----------------------------------------------------------------------------
Kenneth (Ken) L. Miller
Technical Specialist, Enterprise Web Portals
    Cell: 403.680.3785
Office: 403.750.1790



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


Re: Struts 2 and JDK 1.4.2

Posted by Laurie Harper <la...@holoweb.net>.
Ken Miller wrote:
> Also, the only runtime dependency indicated for Struts 2 is the velocity-dep jar (along with commons logging, I'll assume).  Is this correct, or are there other dependencies?

Indicated where? See here for minimum requirements:

http://struts.apache.org/2.x/docs/simple-setup.html

L.


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


Re: Struts 2 and JDK 1.4.2

Posted by Zoran Avtarovski <zo...@sparecreative.com>.
We tried deploying to jrun4 which is Servlet 2.3/JSp 1.2 compliant with the
same result as Ken. We tried for a day to get any struts2 app (blank,
showcase, mailreader) to work without success. We had the same issue of not
being able to read the struts.xml file. In the end we went to Tomcat6
without issue.

Z.


> Ken Miller <Ke...@huskyenergy.ca> wrote:
>> Dave Newton <ne...@yahoo.com> wrote:
>>> --- Ken Miller <Ke...@huskyenergy.ca> wrote:
>>>> I think I found my issue - while we're running JDK
>>>> 1.4.2, we're also running J2EE 1.3, which as you
>>>> know comprises Servlet 2.3 and JSP 1.2, which
> don't
>>>> match the requirements for Struts 2.
>>>> Bummer, that.  I was toast before I even started
>>> That's not your issue; I was deploying on Weblogic
>>> 8.1.
>>> 
>>> Your issue is likely along the lines of what I
>>> suggested to you it might be.
>> Ok, but that said, if Servlet 2.4/JSP 2.0 is
>> required for S2, would it (should it?) even work in
>> a 2.3/1.2 environment?
> 
> I've been telling you it does, at least to the point I
> got to in my development cycle; I don't know how else
> to put it.
> 
> I don't know what 2.4-specific feature it uses, if
> any; they weren't an issue with my app, anyway. Maybe
> someone w/ more knowledge will chime in, or you can
> dig in the source a little bit.
> 
> d.
> 
> 
> 
>        
> ______________________________________________________________________________
> ______Take the Internet to Go: Yahoo!Go puts the Internet in your pocket:
> mail, news, photos & more.
> http://mobile.yahoo.com/go?refer=1GNXIC
> 
> ---------------------------------------------------------------------
> 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


Re: Struts 2 and JDK 1.4.2

Posted by Dave Newton <ne...@yahoo.com>.
Ken Miller <Ke...@huskyenergy.ca> wrote:
> Dave Newton <ne...@yahoo.com> wrote:
> > --- Ken Miller <Ke...@huskyenergy.ca> wrote:
>>> I think I found my issue - while we're running JDK
>>> 1.4.2, we're also running J2EE 1.3, which as you
>>> know comprises Servlet 2.3 and JSP 1.2, which
don't
>>> match the requirements for Struts 2.  
>>> Bummer, that.  I was toast before I even started
> > That's not your issue; I was deploying on Weblogic
> > 8.1.
> > 
> > Your issue is likely along the lines of what I
> > suggested to you it might be.
> Ok, but that said, if Servlet 2.4/JSP 2.0 is
> required for S2, would it (should it?) even work in
> a 2.3/1.2 environment?

I've been telling you it does, at least to the point I
got to in my development cycle; I don't know how else
to put it.

I don't know what 2.4-specific feature it uses, if
any; they weren't an issue with my app, anyway. Maybe
someone w/ more knowledge will chime in, or you can
dig in the source a little bit.

d.



       
____________________________________________________________________________________Take the Internet to Go: Yahoo!Go puts the Internet in your pocket: mail, news, photos & more. 
http://mobile.yahoo.com/go?refer=1GNXIC

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


Re: Struts 2 and JDK 1.4.2

Posted by Ken Miller <Ke...@huskyenergy.ca>.

>>> On 5/28/2007 at 2:16 PM, in message
<58...@web56702.mail.re3.yahoo.com>, Dave Newton
<ne...@yahoo.com> wrote:
> --- Ken Miller <Ke...@huskyenergy.ca> wrote:
>> I think I found my issue - while we're running JDK
>> 1.4.2, we're also running J2EE 1.3, which as you
>> know comprises Servlet 2.3 and JSP 1.2, which don't
>> match the requirements for Struts 2.  
>> 
>> Bummer, that.  I was toast before I even started :-)
> 
> That's not your issue; I was deploying on Weblogic
> 8.1.
> 
> Your issue is likely along the lines of what I
> suggested to you it might be.

Ok, but that said, if Servlet 2.4/JSP 2.0 is required for S2, would it (should it?) even work in a 2.3/1.2 environment?


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


Re: Struts 2 and JDK 1.4.2

Posted by Dave Newton <ne...@yahoo.com>.
--- Ken Miller <Ke...@huskyenergy.ca> wrote:
> I think I found my issue - while we're running JDK
> 1.4.2, we're also running J2EE 1.3, which as you
> know comprises Servlet 2.3 and JSP 1.2, which don't
> match the requirements for Struts 2.  
> 
> Bummer, that.  I was toast before I even started :-)

That's not your issue; I was deploying on Weblogic
8.1.

Your issue is likely along the lines of what I
suggested to you it might be.

d.



       
____________________________________________________________________________________Luggage? GPS? Comic books? 
Check out fitting gifts for grads at Yahoo! Search
http://search.yahoo.com/search?fr=oni_on_mail&p=graduation+gifts&cs=bz

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


Re: Struts 2 and JDK 1.4.2

Posted by Ken Miller <Ke...@huskyenergy.ca>.
>>> On 5/28/2007 at 10:23 AM, in message
<69...@web56705.mail.re3.yahoo.com>, Dave Newton
<ne...@yahoo.com> wrote:
> --- Ken Miller <Ke...@huskyenergy.ca> wrote:
>> To those folks out there who are restricted to JDK
>> 1.4.2, are you running the Struts 2 back port, and
>> if so, how successful have you been?
> 
> I had no issues fairly far into a small-ish app using
> S2, Tiles 2, and Hibernate 3.

I think I found my issue - while we're running JDK 1.4.2, we're also running J2EE 1.3, which as you know comprises Servlet 2.3 and JSP 1.2, which don't match the requirements for Struts 2.  

Bummer, that.  I was toast before I even started :-)


-- 

Cheers!

      -klm.

-----------------------------------------------------------------------------
Kenneth (Ken) L. Miller
Technical Specialist, Enterprise Web Portals
    Cell: 403.680.3785
Office: 403.750.1790



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


Re: Struts 2 and JDK 1.4.2

Posted by Dave Newton <ne...@yahoo.com>.
--- Ken Miller <Ke...@huskyenergy.ca> wrote:
> To those folks out there who are restricted to JDK
> 1.4.2, are you running the Struts 2 back port, and
> if so, how successful have you been?

I had no issues fairly far into a small-ish app using
S2, Tiles 2, and Hibernate 3.

> The requested file /HelloWorld.action does not
> exist.

That sounds more like a hosed-up web.xml file; if you
were getting into Struts you'd get a different type of
error for an action that wasn't found.

> Suggestions?

Yeah, use all the distro jars.

You'll have to provide a lot more info in order to be
helped effectively. 

My first guess is that you are not properly
configuring S2 at all, so the first place to start for
me would be to check my web.xml, then my struts.xml,
then make sure everything is being deployed like I
think it is.

d.



       
____________________________________________________________________________________Ready for the edge of your seat? 
Check out tonight's top picks on Yahoo! TV. 
http://tv.yahoo.com/

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