aspose file tools*
The moose likes Struts and the fly likes Java Version for Struts2 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Java Version for Struts2" Watch "Java Version for Struts2" New topic
Author

Java Version for Struts2

Ashutosh Arya
Ranch Hand

Joined: Oct 07, 2008
Posts: 69
Hi,

Can I Implement Struts 2 in my application if I have Java 1.2 in production environment?

Thanks,

Aashu
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

I seriously, seriously doubt it.

Java 1.2?! In *production*? How much are you guys paying for support?!
Ashutosh Arya
Ranch Hand

Joined: Oct 07, 2008
Posts: 69
Yes David,

The problem is that this application is very old and I am new to the team.

The server they are using in production (iPlanet 6) comes packaged with Java 1.2 thats why I as a developer feels crippled sometimes.

Can you suggest any workaround for this? How can i implement Struts2!

If you suggest any workaround for the server upgradation also I will be more than happy to work over it. As its very difficult to get a descent step by step documentation to upgrade a server.

Waiting for your reply.

Thanks in advance,

Aashu
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

I seriously doubt there's any viable workaround. Struts 2 lists its requirements as Java 5, Servlet spec 2.4. You can use retroweaver (or similar tool) to take the jars down to 1.4 compatibility, and I know Struts 2 used to work with servlets 2.3, but I seriously doubt you'll get it to work under Java 1.2/Servlet 2.2--there are just too many differences. You could *try* it, but if something goes wrong, the chances of a fix on the Struts 2-side are zero.
Ashutosh Arya
Ranch Hand

Joined: Oct 07, 2008
Posts: 69
Ok David!

So first I will try to solve the root cause...But its quite a bigger task...Upgrading the server so that it can support JDK 6.
Do you have any advice ?

Anywhere where I can find ways to upgrade iPlanet version.I hope the upgraded version will support the latest JDK.

Please help me out as I am really in a fix this time.

Regards,

Aashu
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Even if it supports Java 6, it's still a Servlet 2.3 engine.

http://struts.apache.org/2.1.8.1/docs/requirements.html#Requirements-Technology

It *may* work, assuming you can get the server to run on a real Java. If it *doesn't*, however, you are unlikely to get much, if any, support.

I'd consider encouraging a server upgrade.
Ashutosh Arya
Ranch Hand

Joined: Oct 07, 2008
Posts: 69
Ok Thanks David,

Even I am looking for the same.

But installing a new server and deploying the application is not that easy on Solaris if you don't have a proper documentation and Idea how to do it. That too the monitoring team is familiar with iPlanet and not any other server so it will be a costly affair to learn the new server functionality.

I was thinking that whether I can get iPlanet latest version and get it installed (I suppose the better option) or I should go for some other server like JBOSS.

I will appreciate if you can guide in this regard otherwise thanks a lot for your time up to now.

Thanks a ton again,

Aashu.

David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

*I* wouldn't attempt to try to get iPlanet to work when there are so many other great alternatives--but your operations crew might have a different opinion ;)
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Java Version for Struts2