cancel
Showing results for 
Search instead for 
Did you mean: 

Preview website failure: WCM import of war built using JSF

kapil_k
Champ on-the-rise
Champ on-the-rise
I built a simple JSF web application (war) and did a bulk import in WCM 2.1 Web Project.
On previewing the website, it displayed the first page (index.jsp) but on browsing further could not display the next link (HTTP 404 error).

Are Web Frameworks like JSF / Struts supported in WCM 2.1 Web projects?

Thanks,
Kapil
4 REPLIES 4

kvc
Champ in-the-making
Champ in-the-making
Kapil:


Unfortunately JSF is not yet supported yet via the Virtualization Server.

To enable preview, you can either mount a sandbox on a mount server and manually configure an application context for it, and direct your users to that URL.  Alternatively, you can use our new 2.1 file-system deployment service to push to second server (or multiple) to preview without going through a CIFS mount.

This is a to-do item, and any future plans will be posted on our wiki.


Kevin

joeu
Champ in-the-making
Champ in-the-making
I m also having the same problem. I have imported a struts application into web project. By clicking on Preview Website, it is showing the index page but submitting the same index page it is showing page not found as the url points to some other location.

Does Alfresco support struts applications?

Is there any solution for this?

Your help would be appreciable..

kvc
Champ in-the-making
Champ in-the-making
Joe:


Virtualization for Struts should be enabled as of our 2.1 Enterprise release.  Prior to 2.1, there were some issues with session handling,
which was fixed for 2.1. 

More generally, for JSF-based apps or any other non-virtualizeable app, in our upcoming 2.2 release, we've added support for defining a pool of remote test servers on a per Web Project basis so that publishers or reviewers can "check-out" a server from the pool, sync via deployment, and have preview requests routed through that remote server.  This enables in-context preview of any set of updates to the websites, but as it does require a fixed number of remote servers configured for preview, each sandbox isn't automatically "virtualized". 

You should not need this for a Strut-based app, but for a JSF-based app, or non-Java app (like PHP or .NET) it should be quite useful.

You can read more about this support on our wiki:

http://wiki.alfresco.com/wiki/Deployment


Kevin

joeu
Champ in-the-making
Champ in-the-making
I appreciate your valuable reply.
But u didn't answered my question in clear. Currently I am using alfresco 2.1.

1. Is there any solution to change the url?

I have another doubt:

How can I generate jsp pages by using web forms?

I saw the solution of this in another forum but couldn't understood as I m very new to Alfresco.

If there is a solution then plz elaborate the steps so that will be useful for me.


Thanks in advance..