• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Urgent help needed

 
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello Friends,

We have a requirement to deploy a web application in IBM's WAS 5.1; this web app is developed using Struts 2.0.8, Hibernat3.2 and Spring 2.0.6. The JDK version is of course 5. Now we have to deploy this in WAS 5.1.

The problem is: WAS 5.1 does not support JDK 5. So the obvious choice is to convert it to JDK 4. We used backport to convert and make this war JDK 1.4 compatible.

[Source:
http://cwiki.apache.org/S2WIKI/sample-applications-with-java-14x.html, http://people.apache.org/builds/struts/nightlies/2.0.x/java-1.4/backport/]

The converted war works fine with Sun WS 6.1 but this does not work with WAS 5.1; I tried with the struts2-blank.war that comes with the bundled struts2 but this does not work either. I tried with the followings:
-Extracted struts2-blank war
-Updated the web.xml in the struts-blank.war (e.g. DOCTYPE inclusion, webapp attributes modify etc)
-Converted the library jars into jdk 4 compatible (using backport)
-Recreated the war (with jar command)
-Converted the war into jdk 4 compatible (using backport)
-Deployed the war into WAS 5.1
-But a error message shows up �Error 404: File not found: example/HelloWorld.action�

So for now, I just simply want to know: how can we deploy a simple struts 2 based war in WAS 5.1? [Please keep in mind that Struts 2 does not support JDK1.4).

Can you please provide me some suggestion? I need this solution very urgently.

With Thanks,
... M Chisty
 
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by M M Islam Chisty:
Please keep in mind that Struts 2 does not support JDK1.4


Actually, that's something that you should keep in mind. Sorry, but I just don't see a way for this to work. Not only do you have the issue of using J2SE version 1.4 instead of 5, but you also have the issue that WebSphere 5.1 does not support Servlet version 2.4, and Struts 2 requires it.
 
Ranch Hand
Posts: 83
Spring Tomcat Server Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
For benefit of others who need to convert Struts 2 Application to JDK 1.4.
Here are detailed steps for converting Struts 2 core and dependency jars to JDK 1.4 compatible.

Backporting Struts 2 to JDK 1.4
reply
    Bookmark Topic Watch Topic
  • New Topic