cancel
Showing results for 
Search instead for 
Did you mean: 

Alfresco with JBoss from scratch

rsfeir
Champ in-the-making
Champ in-the-making
I have a bizarre error with alfresco setup from scratch.  What I mean is that I downloaded JBoss Portal bundle with the server for version 2.1 RC 1, started that and all was OK.  I dropped in the alfresco.war and I got the first time the missing mysql driver, so I fixed that by dropping it into the deploy/lib dir.  Then I started again and got the error below, and can't for the life of me figure out why this is.  If I download the alfresco jboss package from alfresco and run everything is OK.



org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'descriptorComponent' defined in class path resource [alfresco/application-context.xml]: Can't resolve reference to bean 'systemBootstrap' while setting property 'systemBootstrap'; nested exc
eption is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'systemBootstrap' defined in class path resource [alfresco/application-context.xml]: Initialization of bean failed; nested exception is org.alfresco.error.AlfrescoRuntimeException:
Bootstrap failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'systemBootstrap' defined in class path resource [alfresco/application-context.xml]: Initialization of bean failed; nested exception is org.alfresco.error.AlfrescoRuntimeException: Bootstrap
failed
org.alfresco.error.AlfrescoRuntimeException: Bootstrap failed
        at org.alfresco.repo.importer.ImporterBootstrap.bootstrap(ImporterBootstrap.java:344)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:971)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:941)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:334)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:222)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:146)
        at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:176)
        at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:105)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:891)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:707)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:316)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:222)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:146)
        at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeansOfType(DefaultListableBeanFactory.java:205)
        at org.springframework.context.support.AbstractApplicationContext.getBeansOfType(AbstractApplicationContext.java:583)
        at org.springframework.context.support.AbstractApplicationContext.registerListeners(AbstractApplicationContext.java:466)
        at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:307)
        at org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.refresh(AbstractRefreshableWebApplicationContext.java:133)
        at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:230)
        at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:156)
        at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:48)
43 REPLIES 43

hsp
Champ in-the-making
Champ in-the-making
Glad by your attention kevinr,
Actually, it doesn't work yet….
I did what you said, and set up the JBOSS_HOME variable to /usr/lib/jobss4. Ran "ant build-jboss" into the /alfresco-src/common. Took the alfresco.war (27.9Mb) and placed it in …/deploy, besides the others instructions in the messages above.
(I have the same /opt/alfresco/jboss/server/default/conf/alfresco structure files in /usr/lib/jboss4/server/default/conf/alfresco)
(…linux debian, and postgresql, I placed the postgre driver into the lib directory and did other hibernate configurations, it is working on jboss portal 2…)
(I am starting jboss with "./alfresco.sh start" in the  /usr/lib/jboss4/server/default/conf/alfresco. It is the content of it:

#!/bin/sh
# Start or stop Alfresco server
# Set the following to where JBoss is installed
APPSERVER=/usr/lib/jboss4
#
if [ "$1" = "start" ]; then
  "$APPSERVER"/bin/run.sh
  if [ -r ./start_oo.sh ]; then
    sh ./start_oo.sh
  fi
elif [ "$1" = "stop" ]; then
  "$APPSERVER"/bin/shutdown.sh -S
  if [ -r ./start_oo.sh ]; then
    killall soffice.bin
  fi
fi

.

Follow the erros encountered in the final of log:

— Incompletely deployed packages —
org.jboss.deployment.DeploymentInfo@5ddae252 { url=file:/usr/lib/jboss4/server/default/deploy/alfresco.war }
  deployer: org.jboss.web.tomcat.tc5.Tomcat5@1bbbafc
  status: Deployment FAILED reason: URL file:/usr/lib/jboss4/server/default/tmp/deploy/tmp11972alfresco.war/ deployment failed
  state: FAILED
  watch: file:/usr/lib/jboss4/server/default/deploy/alfresco.war
  altDD: null
  lastDeployed: 1137609061598
  lastModified: 1137609061000
  mbeans:

org.jboss.deployment.DeploymentInfo@27fda955 { url=file:/usr/lib/jboss4/server/default/deploy/sentinela.xml }
  deployer: null
  status: null
  state: INIT_WAITING_DEPLOYER
  watch: file:/usr/lib/jboss4/server/default/deploy/sentinela.xml
  altDD: null
  lastDeployed: 1137609094314
  lastModified: 1137609094000
  mbeans:

— MBeans waiting for other MBeans —
ObjectName: jboss.web.deployment:war=alfresco.war,id=1574625874
  State: FAILED
  Reason: org.jboss.deployment.DeploymentException: URL file:/usr/lib/jboss4/server/default/tmp/deploy/tmp11972alfresco.war/ deployment failed

— MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM —
ObjectName: jboss.web.deployment:war=alfresco.war,id=1574625874
  State: FAILED
  Reason: org.jboss.deployment.DeploymentException: URL file:/usr/lib/jboss4/server/default/tmp/deploy/tmp11972alfresco.war/ deployment failed


16:31:34,899 INFO  [Http11Protocol] Starting Coyote HTTP/1.1 on http-0.0.0.0-8080
16:31:35,016 INFO  [ChannelSocket] JK: ajp13 listening on /0.0.0.0:8009
16:31:35,160 INFO  [JkMain] Jk running ID=0 time=1/167  config=null
16:31:35,195 INFO  [Server] JBoss (MX MicroKernel) [4.0.2 (build: CVSTag=JBoss_4_0_2 date=200505022023)] Started in 1m:22s:300ms

hsp
Champ in-the-making
Champ in-the-making
Here one error, may be relevant, I encountered in the log before the piece I sent previously:

16:31:33,666 INFO  [ValidatorPlugIn] Loading validation rules file from '/WEB-INF/validation.xml'
16:31:33,917 ERROR [Digester] Parse Error at line 45 column 15: The content of element type "formset" is incomplete, it must match "(constant*,form+)".
org.xml.sax.SAXParseException: The content of element type "formset" is incomplete, it must match "(constant*,form+)".

Don't know if it reffers to the alfresco.war, I didn't find the validation.xml file.

kevinr
Star Contributor
Star Contributor
Here one error, may be relevant, I encountered in the log before the piece I sent previously:

16:31:33,666 INFO  [ValidatorPlugIn] Loading validation rules file from '/WEB-INF/validation.xml'
16:31:33,917 ERROR [Digester] Parse Error at line 45 column 15: The content of element type "formset" is incomplete, it must match "(constant*,form+)".
org.xml.sax.SAXParseException: The content of element type "formset" is incomplete, it must match "(constant*,form+)".

Don't know if it reffers to the alfresco.war, I didn't find the validation.xml file.

We don't have a validation.xml file, so as a test can you remove any other deployed packages to make sure they are not causing any conflicts with Alfresco (i wouldn't have thought that would be the problem, but I'm not 100% sure). Otherwise I'm not sure why it doesn't work, as I tested the instructions I sent and it was ok on a fresh install of Jboss4.0.2 on Windows, but I haven't tested it as a fresh install on a Linux box, i'll see if i can do that tommorow.

Thanks,

Kevin

hsp
Champ in-the-making
Champ in-the-making
I took off the other deployed packages, it still not working, thanks. I am waiting for your help tomorrow.
Cheers

hsp
Champ in-the-making
Champ in-the-making
Kevinr, have you already managed the solution?
Regards
Helio.

kevinr
Star Contributor
Star Contributor
My appologies unfortuntely i did not have any time to look at this on a Linux box today, I will do so when I get some time and let you know.

Are there any other users of Alfresco who can try the instructions and let us know if they work for them…?

Thanks!

Kevin

hsp
Champ in-the-making
Champ in-the-making
I'm afraid the solution will not appear in time for my decision.
Guess there is not user with Alfresco working in this configuration, what a shame…. I hope I'm wrong.
I'm still waiting for some help more.
Thanks in advance for the contributors.

hsp
Champ in-the-making
Champ in-the-making
Kevinr;
May be it was my fault.

I reinstalled the ant tool and rebuid the war.

so, now it is ok.
TKS
Helio.

kevinr
Star Contributor
Star Contributor
No problem, glad to hear it's working! Smiley Happy

Kev

hsp
Champ in-the-making
Champ in-the-making
Sounds weird, but, after I made it to run in jboss4 (ok) I tried to build the nightly release, then I replaced the war and errors occurred. So I placed the war that have been worked again, but it didn't.
I rebuild it with ant at least three times more, then it ran.
I think it is unstable, I don't know if it's ant fault or whatever.
In the last sucessfull load of Alfresco with nightly source, happened an error when I tryed to login (some times work, some times get error) different from admin:
javax.faces.FacesException: Cannot get value for expression '#{!NavigationBean.currentNodeHasTemplate}'

caused by:
org.apache.jasper.JasperException: Cannot get value for expression '#{!NavigationBean.currentNodeHasTemplate}'
caused by:
javax.faces.el.EvaluationException: Cannot get value for expression '#{!NavigationBean.currentNodeHasTemplate}'
caused by:
javax.faces.el.EvaluationException: org.alfresco.web.bean.NavigationBean
caused by:
javax.faces.el.EvaluationException: Bean: org.alfresco.web.bean.NavigationBean, property: currentNodeHasTemplate
caused by:
java.lang.reflect.InvocationTargetException
caused by:
org.alfresco.repo.security.permissions.AccessDeniedException: Acesso Negado. Você nao tem permissão para executar esta operação.
caused by:
net.sf.acegisecurity.AccessDeniedException: Access is denied.
Esconder Detalhes
javax.faces.FacesException: Cannot get value for expression '#{!NavigationBean.currentNodeHasTemplate}' at org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:421) at org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspViewHandlerImpl.java:234) at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:352) at javax.faces.webapp.FacesServlet.service(FacesServlet.java:107) at org.alfresco.web.app.servlet.AlfrescoFacesServlet.service(AlfrescoFacesServlet.java:49) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.alfresco.web.app.servlet.AuthenticationFilter.doFilter(AuthenticationFilter.java:81) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:39) at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:153) at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:59) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112) at java.lang.Thread.run(Thread.java:595) Caused by: org.apache.jasper.JasperException: Cannot get value for expression '#{!NavigationBean.currentNodeHasTemplate}' at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:370) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264) at javax.servlet.http.HttpServlet.service(HttpServlet.java:810) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672) at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:463) at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398) at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301) at org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:415) … 26 more 

Login only works with admin user in nightly release (20060118).
I don't know why the source stable is not working now.
What could it be happening?