cancel
Showing results for 
Search instead for 
Did you mean: 

Integrating Alfresco in Web Application

pramodkhare
Champ in-the-making
Champ in-the-making
Hi,
I have web-application into which I want to integrate Alfresco. I will be using Alfresco for Doc management and want to embed the Alfresco into my war file.
I have gone through Alfresco Foundation API examples, it works fine if I use/call alfresco (spring beans) services from standalone (Alfresco Foundation Client example) java example.
But when I try to include this into my web project, it gives a lot of errors.
I checked over net about loading spring context from web application, I had included listener for ContextLoader, and alfresco application-context.xml in WEB-INF of my web project, but still not able to work it out.

If any one of you have an idea about embedding Alfresco in Web-Application (i mean consider as is I am building new UI for Alfresco in jsp-servlet and struts), can anyone guide me with this , I am really stuck in here.
1 REPLY 1

pramodkhare
Champ in-the-making
Champ in-the-making
Hi, i forgot to mention what i did

I tried to embed Alfresco into my web application war, I did this,

in my web.xml, I have put —>

<context-param>
      <param-name>contextConfigLocation</param-name>
      <param-value>/WEB-INF/web-application-context.xml</param-value>
   </context-param>
 
   <listener>
     <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
  </listener>

And in my WEB-INF, this is my directory structure –>

WEB-INF
   |
   |—- classes
   |         |—-alfresco
   |         |          |—- (all config xml files (the same config folder from Alfresco Embedded Sample Project))
   |         |—-alfresco-global.properties
   |         |—- log4j.properties
   |—- lib
            |— all dependency jars (same jars from from Alfresco Embedded Sample Project's dependencies folder))
   |—- web.xml
   |—- struts-config.xml
   |—- web-application-context.xml

But still I am not able to start my server it gives me  a lot different errors,
So I want to know, if I am doing right or is there anything missing or wrong here….. Please need help with this.