cancel
Showing results for 
Search instead for 
Did you mean: 

previewing dinamic pages

tonizz
Champ in-the-making
Champ in-the-making
Hi,

The welcome page of my site is a jsp file. I dont know why if this welcome page is html i do can preview it but if it is jsp file I cant. I think that it could be because the work forder, stored in alfresco, is always empty.

I don´t know which is the problem.

Has somebody had this kind of problem??

Thanks.
5 REPLIES 5

kvc
Champ in-the-making
Champ in-the-making
Can you provide a listing of the directories you have in your web project sandbox?  Also any major files.

The comment around the work directory being in Alfresco seems suspicious.  The normal Tomcat work directory sits outside the webapps directory, which means it definately should not be in Alfresco.  Your web project should only contains the web apps under the web apps directory - so, if you uploaded your entire app for example into the ROOT directory, you should be fine.

Another thing to look at it just that:  by default, we have you manage your web apps in the ROOT directory.  Is your web app named something else?  If so, you can at the top level of the web project under the Create menu create new web apps.  Then, when you are in a sandbox, you can root your view of which set of files and folders you are looking at (for the ROOT web app or some other web app) using a sandbox-level toggle.

Any more details you can provide on the above question?

tonizz
Champ in-the-making
Champ in-the-making
Hello kevin,

I have an usual web application that works perfect in the "virtual tomcat" when I define a "context" entry in the server.xml file of the virtual tomcat. Separately, I upload this application to alfresco and when I click on "preview website" I can debug, or show messages in the console, and i can see that the application is running: All the controller servlets are running and working ok but when the servlet makes a RequestDispacher.forward() to the jsp file, this is not viewed in the navigator, I think that is reached but not showed. If I , from alfresco click on a jsp file of my web app I can see nothing! I can see every content, except jsp , I have made sure that the jsp is reachable but I think that Its is not compiled or something like that.

The directory structure is a normal structure:

WEB-INF/
             web.xml
             src/
jsp
js
images

Thanks in advance.

kvc
Champ in-the-making
Champ in-the-making
And you have a META-INF dir too with MANIFEST.MF? (i.e., the complete app?)

Kevin

tonizz
Champ in-the-making
Champ in-the-making
Yes I have it. It is created automatically with jar.exe.

When the WCM starts I have this message:

AVMWebappLoader absoluteClassesPath: v:\my web project\VERSION\v-1\DATA\www\avm_webapps\"my webapp folder"\WEB-INF\classes

AVMWebappLoader absoluteClassesPath not null, so no need to make a copy

could it be related to the error?

Thanks a lot.

tonizz
Champ in-the-making
Champ in-the-making
Hi kevin

I have fixed up the problem. It was that in the folder WEB-INF/lib/ i had imported the libraries servlet-api.jar and jsp-api.jar. Removing them from alfresco interface i can preview my portal.

Thanks for all your help.