cancel
Showing results for 
Search instead for 
Did you mean: 

alfresco with JBoss or Tomcat?

seraphon
Champ in-the-making
Champ in-the-making
Hi

I  downloaded alfresco v2.0 and i ve been discovering it for 2 days.
It seems to work perfectly and I was confident about using it for my project which to make it short is about managing photos.
But suddenly my boss speaks about alfresco being a good solution because it has JBoss. So here is my problem: v2.0 comes with only Tomcat.
Is there a difference between using alfresco with JBoss or tomcat?

Regards Seraphon
14 REPLIES 14

seraphon
Champ in-the-making
Champ in-the-making
well I have just tried what I mentioned above…
So the problem doesnt come from having a previous alfresco with tomcat.

But I have another guess.
By default alfresco (the app server to be exact) launch on the port 8080.
But for a reason that I ignore it is already used by something. With tomcat it was easy to change the port
alfresco\tomcat\conf\server.xml

but with JBoss I have more doubts
I have changed the port in the files
C:\Alfresco\jboss-4.0.5.GA\server\default\deploy\jbossweb-tomcat55.sar\server.xml
and
C:\AlfrescoJBoss\jboss-4.0.5.GA\server\all\deploy\jbossweb-tomcat55.sar\server.xml
But maybe I have to change it somewhere else to?
Can someone please help me with this matter?

regards
seraphon

kevinr
Star Contributor
Star Contributor
I am running into the same problem of trying to deploy Alfresco 2.0 on JBoss 4.2.GA. I had previously installed Alfresco 2.0 with Tomcat and HSQL and that seems to work fine. I am trying to get it work under JBoss 4.2.GA with its own HSQL database and running into deployment issues. This is what I did:

'C:\jboss-4.2.0.GA\server\default\.\tmp\deploy\tmp42468alfresco-exp.war\' initialized.
2007-06-07 10:18:20,555 WARN  [org.jboss.web.jsf.integration.config.JBossJSFConfigureListener] MyFaces JSF implementation found!  This version of JBoss AS ships with the java.net implementation of JSF.  There are known issues when mixing JSF implementations.  This warning does not apply to MyFaces component libraries such as Tomahawk.  However, myfaces-impl.jar and myfaces-api.jar should not be used without disabling the built-in JSF implementation.  See the JBoss wiki for more details.

This is a different problem specific to JBossAS4.2.0 - you'll need to read the JBoss wiki as MyFaces is used in Alfresco.

Thanks,

Kevin

slickshow
Champ in-the-making
Champ in-the-making
Alright, I fixed the problem with MyFaces on JBoss 4.2.0.GA. This is what I did:

On the JBoss Wiki http://wiki.jboss.org/wiki/Wiki.jsp?page=JBoss5AndMyFaces, I found the following information:

Using MyFaces Core with JBoss 4.2 and JBoss 5.x
There is no technical reason to use MyFaces Core on JBoss 4.2 or JBoss 5.x. But there are other reasons you might want to bundle it with your WAR. For instance, you might have an old JSF application that already uses MyFaces and you don't want to retest your app on a new JSF implementation. In that case, you can bundle the JSF implementation with your WAR and add this to your web.xml:

<context-param>
     <param-name>org.jboss.jbossfaces.WAR_BUNDLES_JSF_IMPL</param-name>
     <param-value>true</param-value>
</context-param>

This will cause JBoss to ignore the built-in JSF implementation as long as you use the default classloader settings.

Thanks for pointing me in the right direction… Smiley Happy

juan_montesinos
Champ in-the-making
Champ in-the-making
Hello everybody,

I found this post and have the same problem. slickshow, could you be more specific about which file did you modified to solve the issue? there is a lot of "web.xml" on my system (I'm using linux opensuse 10.2, jboss 4.2 and JDK 6).

slickshow
Champ in-the-making
Champ in-the-making
I was referring to the web.xml inside alfresco.war. You need to extract this war file to a temp directory, make the modifications in web.xml, and repackage it. You can use the jar command to unpack and repack it. BTW, as in my previous post, this is a problem only with JBoss 4.2.0GA.