• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Urgent help needed

 
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • 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
  • 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
  • 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
 
snakes are really good at eating slugs. And you wouldn't think it, but so are tiny ads:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic