cancel
Showing results for 
Search instead for 
Did you mean: 

Alfreco 1.2 + JBoss 4.0.3SP1 + JBoss-portal 2.2.0

hamptont
Champ in-the-making
Champ in-the-making
Is it possible to install Alfresco into an existing JBoss/JBoss-Portal distribution ?  I mean without getting the Alfresco-JBoss bundle.

I already have JBoss 4.0.3SP1 w/ JBoss-portal 2.2.0 deployed into a production system.  I would like to deploy Alfresco 1.2 into this configuration.

I have tried the following without success.

1) copy the /alfresco-jboss-1.2.0/jboss/server/default/conf/alfresco dir into my existing JBoss installation

2) copy the /alfresco-jboss-1.2.0/jboss/server/default/deploy/alfresco.war into my existing JBoss deploy dir

3) create a custom-services-context.xml file in the …/conf/alfresco/extensions directory to override the DB & Data directories

4) restart JBoss

The DB tables get created ok, so I know that I'm connecting to the DB and the content & lucene index directories get created also.

P.S. - I really think the way Alfresco/JBoss is being bundled is not a good way to distribute Alfresco.  I should be able to install Alfresco into an existing JBoss/JBoss-portal distribution with no hassles.


Then I get the following exception:

2006-03-27 14:09:51,368 ERROR [org.apache.commons.modeler.BaseModelMBean] Exception invoking method addChild
java.lang.VerifyError: Cannot inherit from final class
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
        at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
        at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1629)
        at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:850)
        at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1299)
        at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1181)
        at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1027)
        at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:925)
        at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3857)
        at org.apache.catalina.core.StandardContext.start(StandardContext.java:4118)
        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
        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.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:503)
        at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:150)
        at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
        at org.apache.catalina.core.StandardContext.init(StandardContext.java:5005)
        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.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:503)
        at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:150)
        at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
        at org.jboss.web.tomcat.tc5.TomcatDeployer.performDeployInternal(TomcatDeployer.java:280)
        at org.jboss.web.tomcat.tc5.TomcatDeployer.performDeploy(TomcatDeployer.java:88)
        at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:357)
        at org.jboss.web.WebModule.startModule(WebModule.java:68)
        at org.jboss.web.WebModule.startService(WebModule.java:46)
        at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:274)
        at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:230)
        at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
        at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
        at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
        at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
        at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
        at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:943)
        at $Proxy0.start(Unknown Source)
        at org.jboss.system.ServiceController.start(ServiceController.java:428)
        at sun.reflect.GeneratedMethodAccessor10.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
        at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
        at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
        at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
        at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
        at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
        at $Proxy100.start(Unknown Source)
        at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:400)
        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.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
        at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
        at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:118)
        at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
        at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:127)
        at org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:80)
        at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
        at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
        at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
        at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
        at $Proxy101.start(Unknown Source)
        at org.jboss.deployment.MainDeployer.start(MainDeployer.java:989)
        at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:790)
        at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:753)
        at sun.reflect.GeneratedMethodAccessor26.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
        at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
        at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:118)
        at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
        at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:127)
        at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
        at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
        at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
        at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
        at $Proxy10.deploy(Unknown Source)
        at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:319)
        at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:507)
        at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:192)
        at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:265)
        at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:274)
        at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:230)
        at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
        at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
        at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
        at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
        at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
        at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:943)
        at $Proxy0.start(Unknown Source)
        at $Proxy0.start(Unknown Source)
        at org.jboss.system.ServiceController.start(ServiceController.java:428)
        at sun.reflect.GeneratedMethodAccessor10.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
        at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
        at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
        at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
        at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
        at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
        at $Proxy4.start(Unknown Source)
        at org.jboss.deployment.SARDeployer.start(SARDeployer.java:285)
        at org.jboss.deployment.MainDeployer.start(MainDeployer.java:989)
        at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:790)
        at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:753)
        at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:737)
        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.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
        at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
        at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:118)
        at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
        at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:127)
        at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
        at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
        at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
        at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
        at $Proxy5.deploy(Unknown Source)
        at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:453)
        at org.jboss.system.server.ServerImpl.start(ServerImpl.java:330)
        at org.jboss.Main.boot(Main.java:187)
        at org.jboss.Main$1.run(Main.java:438)
        at java.lang.Thread.run(Thread.java:595)
9 REPLIES 9

kevinr
Star Contributor
Star Contributor
For our Portal bundle, we have a slightly modified version of MyFaces JAR files. You need to extract the following files:

myfaces-api.jar
myfaces-impl.jar

and overwrite the ones here:

jboss-portal-2.2.0-jboss-4.0.3SP1\server\default\deploy\jbossweb-tomcat55.sar\jsf-libs

I think it should start then.

Thanks,

Kevin

hamptont
Champ in-the-making
Champ in-the-making
Kevin, what has been changed ?  Will this cause problems with other applications that use JSF ? 

Your changing these libraries in a location where other applications will be affected by the change.

Thanks,
Tom

kevinr
Star Contributor
Star Contributor
The only change is to make a "final" class non-final. Unfortuntely we need to extend the MyFaces impl of javax.faces.webapp.FacesServlet class. I have posted this to the myfaces dev list but it has not been modified in 1.1.1. I don't know why the class was made final - annoyingly it was NOT final in 1.0.9 which is what we used to use… This is the only change from myfaces 1.1.1 core.

I think you also need to remove the myfaces-api.jar and myfaces-impl.jar from our WAR file before you deploy so there are not two copies.

If JBoss protected apps from the core libs it has decided to package in it's TomCat SAR package then we wouldn't have this problem - we did try this but couldn't get it to work. It doesn't appear to isolate the web-app as you might expect… If i'm wrong and you can force JBoss to protect the Alfresco web-app then we'll be happy to make the changes in our bundle.

Thanks,

Kevin

hamptont
Champ in-the-making
Champ in-the-making
Kevin,

I copied the myfaces files that you specified.  Now I get the following errors when I try to run alfresco.  I'm using the JBoss "All" configuration and there seems to be some sort of problem with the having the clustering turned on in JBoss.


2006-03-28 18:49:27,513 WARN  [org.jgroups.stack.DownHandler] DownHandler (UDP) exception is java.lang.OutOfMemoryError: PermGen space
2006-03-28 18:49:27,650 WARN  [org.jgroups.stack.DownHandler] DownHandler (UDP) exception is java.lang.OutOfMemoryError: PermGen space
2006-03-28 18:49:32,141 ERROR [org.jboss.portal.server.servlet.CommandServlet] Exception in command invocation
java.lang.OutOfMemoryError: PermGen space

rdanner
Champ in-the-making
Champ in-the-making
The only change is to make a "final" class non-final. Unfortuntely we need to extend the MyFaces impl of javax.faces.webapp.FacesServlet class. I have posted this to the myfaces dev list but it has not been modified in 1.1.1. I don't know why the class was made final - annoyingly it was NOT final in 1.0.9 which is what we used to use… This is the only change from myfaces 1.1.1 core.

I think you also need to remove the myfaces-api.jar and myfaces-impl.jar from our WAR file before you deploy so there are not two copies.

If JBoss protected apps from the core libs it has decided to package in it's TomCat SAR package then we wouldn't have this problem - we did try this but couldn't get it to work. It doesn't appear to isolate the web-app as you might expect… If i'm wrong and you can force JBoss to protect the Alfresco web-app then we'll be happy to make the changes in our bundle.

Thanks,

Kevin

Kevin,

Have you followed up on the decision to make this class final?

Curious… what did you extend the class for?

If you enter it as a JIRA and let us know what the bug number is we can go vote for it to be fixed provided we understand the problem.  Community is great huh?

kevinr
Star Contributor
Star Contributor
You are correct, I haven't followed it up - and i should. I will get a JIRA task raised for it.

Thanks for reminding me,

Kevin

ps
Champ in-the-making
Champ in-the-making
You are correct, I haven't followed it up - and i should. I will get a JIRA task raised for it.

Thanks for reminding me,

Kevin

Kevin,

Do we have bug number for this? I have been integrating Alfresco 1.3.0 with JBoss Portal 2.2.1 and ran into this same issue. It would be nice to know what the status of this issue is.

Thanks,

Panna

kevinr
Star Contributor
Star Contributor
The final class issue has been fixed for 1.4 - we no longer rely on extending that class.

Thanks,

Kevin

ps
Champ in-the-making
Champ in-the-making
ok, Thanks!