cancel
Showing results for 
Search instead for 
Did you mean: 

WCM Web Project Publishing

winsenthil
Champ in-the-making
Champ in-the-making
Hi friends…
I am using alfresco community edition 3.3g…
I created a web project and previewed it successfully.
previewed site URL (http://sample.www--sandbox.127-0-0-1.ip.alfrescodemo.net:8180/)

I deployed my web project and since the deployment status is LIVE (successful), I need to see the published site.

Where can i view the published site. Can anyone say me the URL???
My Deployment Servers Configurations are:
Type: Live server
Display name: sample-application
Transport name: default
host: localhost
port: 44100
username: admin
password: admin
I am running both alfresco community edition and deployment receiver(3.3) in windows environment (same machine).

I have another question. My web project deployment status is successful.. But there is no files in
Company Home > Web Deployed >
Why it is so? Do I missed any configurations?
Kindly reply….thanks in advance….
4 REPLIES 4

mrogers
Star Contributor
Star Contributor
Using the above you have deployed your assets to a filesystem.    So for a static web site consisting of html files and images you need a web server to serve up those files on your filesystem, you could use Apache or IIS or some other web server.    Or you could be deploying into an application server for example you could be deploying JSP, PHP or ASP files.    It is your web application so you need to work out what goes where.

The "Web Deployed" folder is written to by a different target (50500/alfresco).     In that case the assets are written into an Alfresco DM environment where they can be used to support a dynamic web site, in particular one that uses CMIS.

winsenthil
Champ in-the-making
Champ in-the-making
Thanks for your information mrogers…

I planned to have apache tomcat as my web server to publish mysite….

My Deployment Servers Configurations are:
Type: Live server
Display name: sample
Transport name: default
host: localhost
port: 44100
username: admin
password: admin
Source path: ROOT
Target Name: default
I am running both alfresco community edition and deployment receiver(3.3) in windows environment (same machine).

I changed my deployment filesystem target in deployment.property file as:
; filesystem receiver configuration
deployment.filesystem.datadir=depdata
deployment.filesystem.logdir=deplog
deployment.filesystem.metadatadir=depmetadata
deployment.filesystem.autofix=true
deployment.filesystem.errorOnOverwrite=false

; default filesystem target configuration
deployment.filesystem.default.metadatadir=${deployment.filesystem.metadatadir}/default
deployment.filesystem.default.rootdir=C:\\Alfresco\\tomcat\\webapps\\sample
deployment.filesystem.default.name=default
deployment.filesystem.default.user=admin
deployment.filesystem.default.password=admin


So after deploying my project successfully, as the target configured, I am getting a folder named as sample with all my web project files inside in C:\Alfresco\tomcat\webapps\ {sample}

Now when I tried to access these file by
                                                       http://localhost:8080/sample/index.jsp
It shows the requested resource is not available..
I checked whether all file exists inside C:\Alfresco\tomcat\webapps\sample\
All files are correctly deployed to this target… index.jsp file is also exists inside sample folder..

There is no errors in tomcat console and deployment server console.. 
Only information I got in deployment console is INFO [impl.fsr.FileSystemDeploymentTarget] Prepare ticket: {with series of numbers}

My doubt is, I am getting all the metadata files in C:\Alfresco\Deployment\depmetadata\default\ {inside deployment folder. whether it must be inside the tomcat\webapps\sample folder???}

Whats the problem I have? Why its showing the error that requested resource is not available..

winsenthil
Champ in-the-making
Champ in-the-making
Hi…
As I said I am trying to build a sample website with the alfresco-sample-website.war…
I found and manage to view the published site somewhat by setting
deployment.filesystem.default.rootdir=C:\\Alfresco\\tomcat\\webapps

setted context path in server.xml (C:\Alfresco\tomcat\conf\server.xml)
<Context path="/sample" docBase="C:\Alfresco\tomcat\webapps" antiResourceLocking="false" privileged="true" />


Which means I am setting the target files to webapps folder and all my web project files are in that folder..
When I access http://localhost:8080/sample/
I can view the website..  I can view all the pages…

My problem is:
when I click About Us > News.. Its showing an error like
org.apache.jasper.JasperException: File "/assets/include_in_head.html" not found
Actually this example was to add new news… There was no such problem in previewing the site… Whats the reason for this problem in publishing?

(In creating the project, I had given Default Webapp: ROOT and Source Path: ROOT during Adding the Deployment Receiver..Any relative path problem?)

jainkumar11
Champ in-the-making
Champ in-the-making
Hi
In case you want to deploy content on Alfresco DM repository i.e. web deployed you'll have to mention 55100 or default RMI port for alfresco.
And in your target field specify alfresco.
After making changes deploy your contents they should be reflected in web deployed.

Thanks KJ