Marcus, many thanks for your kind reply.

Your link helped me to get started and I think I see the way. Unfortunately, I've run into a (Alfresco specific?) problem. But maybe one of you has run
into a similar one and can help?

The problem is this: Alfresco and my Tapestry webapp run as follows in Tomcat:

  tomcat
    webapps
      alfresco.war      <-- Alfresco webapp
    wtpwebapps
      ROOT          <-- don't know, probably not important
      mywebapp      <-- my Tapestry app
    shared
      lib           <-- empty
      classes       <-- empty

Unfortunately, all Alfresco code is in alfresco.war (inside: alfresco/
WEB-INF/lib/) including Spring 2.0.2 itself. So if my webapp mywebapp
wants to use this code, the Alfresco/Spring jars should be in shared/ lib/,
right? Otherwise I get java.lang.ClassNotFoundException:
org.springframework.web.context.ContextLoaderListener.

But it seems I cannot move/copy the jars as I get strange warnings about
logging being disabled. So what is the best way to share Alfresco's jars
with another webapp?

Could it be that changing "shared.loader" in tomcat/conf/ catalina.properties
to include webapps/alfresco/WEB-INF/lib helps? I am very reluctant to do
something drastic like this.

I'd be very glad to receive some more help as I am rather lost here.

Many thanks,
Kaspar

P.S. The jars in question (in alfresco.war:WEB-INF/lib/) are:

acegi-security-0.8.2_patched.jar
activation.jar
addressing-1.0.jar
alfresco-core.jar
alfresco-deployment.jar
alfresco-external-content.jar
alfresco-linkvalidation.jar
alfresco-mbeans.jar
alfresco-php.jar
alfresco-remote-api.jar
alfresco-repository.jar
alfresco-web-client.jar
alfresco-web-framework.jar
ant.jar
antlr-2.7.5H3.jar
aopalliance.jar
avalon-framework-4.2.0.jar
axis-1.4.jar
bcel.jar
bcmail-jdk15-137.jar
bcprov-jdk15-137.jar
bsf-2.4.0.jar
bsh-1.3.0.jar
catalina.jar
cglib-nodep-2.2_beta1.jar
chiba-1.3.0.jar
commons-beanutils-1.7.0.jar
commons-codec-1.3.jar
commons-collections-3.1.jar
commons-dbcp-1.2.1.jar
commons-digester-1.6.jar
commons-discovery-0.2.jar
commons-el.jar
commons-fileupload-1.1.1.jar
commons-httpclient-3.0.jar
commons-io-1.1.jar
commons-jxpath-1.2.jar
commons-lang-2.1.jar
commons-logging-1.1.jar
commons-modeler.jar
commons-pool-1.3.jar
commons-validator.jar
cpool.jar
derivatives.jar
dom4j-1.6.1.jar
ehcache-1.3.0-patched.jar
facebook_070716.jar
fontbox-0.1.0.jar
fop-0.92beta.jar
freemarker-2.3.10.jar
guessencoding-1.0.jar
hibernate-3.2.1.jar
hrtlib.jar
hsqldb.jar
htmlparser-1.6.jar
icar-knowlege-center.jar
icu4j_3_6_1.jar
jakarta-oro-2.0.8.jar
jaxen-1.1-beta-8.jar
jaxrpc.jar
jbpm-identity-3.2.jar
jbpm-jpdl-3.2-patched.jar
jcr-1.0.jar
jgroups-2.2.8.jar
jibx-bind.jar
jibx-run.jar
jid3lib-0.5.jar
JMagick.jar
joda-time-1.2.1.jar
jooconverter-2.1.0.jar
json.jar
jstl-1.1.0.jar
jta.jar
jug.jar
jut.jar
log4j-1.2.15.jar
lucene-analyzers-2.1.0.jar
lucene-core-2.1.0.jar
lucene-snowball-2.1.0.jar
mail.jar
myfaces-api-1.1.5.jar
myfaces-impl-1.1.5.jar
naming-factory.jar
naming-resources.jar
odf_utils.jar
odmg-3.0.jar
openoffice-juh-2.0.3.jar
openoffice-jurt-2.0.3.jar
openoffice-ridl-2.0.3.jar
openoffice-sandbox-2.0.3.jar
openoffice-unoil-2.0.3.jar
opensaml-1.0.1.jar
pdfbox-0.7.3.jar
poi-2.5.1_patched.jar
portlet-api-lib.jar
quartz-1.6.0.jar
quercus.jar
resin-util.jar
resolver.jar
rhino-js-1.6R7.jar
saaj.jar
saxpath.jar
shale-test-1.0.4.jar
spring-2.0.2.jar
springmodules-jbpm31.jar
standard.jar
subetha-smtp.jar
tlc124.jar
tm-extractors-0.4_patched.jar
tomcat-coyote.jar
tomcat-util.jar
truezip.jar
webclientassoclinkssupport.jar
webclienttinymcesupport.jar
wsdl4j-1.5.1.jar
wss4j.jar
xercesImpl-2.8.0.jar
xml-apis.jar
xmlgraphics-commons-1.0.jar
xmlsec-1.4.1.jar
xpp3-1.1.3_8.jar
xstream-1.1.3.jar

On 18.11.2007, at 19:13, Marcus Schulte wrote:

Have a look at
http://hivemind.apache.org/hivemind1/hivemind-lib/ SpringLookupFactory.html

I'm not familiar with Alfresco, but this should get you started with using
any kind of Spring bean from HiveMind (and Tapestry).

You'll probably need to add a couple of hooks to your Tapestry app's
web.xmlto make sure, that the Spring BeanFactory is properly
initialized.

2007/11/18, Kaspar Fischer <[EMAIL PROTECTED]>:

Hi there!

I am completely new to Tapestry and would like to use it in order
to display content from an Alfresco data repository. More precisely,
I have a folder ("space", in Alfresco's terminology) in Alfresco
and I want to create a dynamic webpage for each file in this folder.
The webpage shows some properties of the file and I want to obtain
these properties by calling Alfresco's Node Service API.

I have tried to find some information on how to start here. I have
the book "Enjoying Web Development with Tapestry" but need a hint
on how to get an Alfresco session from within Tapestry.

Alfresco and Tapestry will run on the same installation of Tomcat.
Can I then just load Alfresco's Node Service bean from within
Tapestry and use it?!

Could anybody help me with a pointer or a very high-level list of
the necessary steps?

Many thanks,
Kaspar

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to