AnsweredAssumed Answered

alfresco is not designed for girls?

Question asked by wangting on Oct 23, 2007
Latest reply on Nov 2, 2007 by bgl
Hello firends,
I am a girl and i have a project which need alfresco and jboss portal
but i am new in this field, but this project have to be done, friends here can help me?

the problem is
I download the new version of alfresco-alfrsco 2.1.0
also, the jboss portal(2.6.1) bundled with jboss as 4.2.1
but how can i deploy alfresco in jbossporta, i learn from wiki that alfresco no longer bundled with jboss portal :cry:
1.You need an SVN client, then checkout the Alfresco HEAD code revision number 574 from our public SVN - you need to do this as the fixes to allow Alfresco 2.0 to deploy on JBossPortal 2.4 were committed as of revision number 574. Note that you may prefer to checkout the most current revision, but there may have been other potentially (unstable) changes since then.

i checkout the reversion 1199 not 574

2.Set an environment variable called JBOSS_HOME to point to the root of your JBossPortal2.4.1 installation.

yes i do

3.Build the Alfresco source using the "build-jboss" ANT build target from inside the root\common directory. This creates a WAR which is basically the same as the usual TomCat WAR with the JSR-168 portal deployment files included in WEB-INF. Once complete the build target will have deployed the WAR to your JBossPortal installation and copied over the MySQL driver also.

i use the .war file from the alfresco-community-war-2.1.0 directly, and i copy it to the server/default/deploy

4.This step is needed for JBossAS4.0.5+JBossPortal2.4.1 or JBossPortal2.6 or if you have a later revision of HEAD code than 574: Open the jboss/server/default/deploy/alfresco.war file in an archival tool and remove (and extract for later) the two jsf*.jar files from the WEB-INF/lib folder inside the WAR. Then update the jsf jar files in jboss/server/default/deploy/jbossweb-tomcat55.sar/jsf-libs with the ones extracted from the alfresco WAR.

i copy the file myfaces-impl-1.1.5.jar and myfaces-api-1.1.5.jar from alfresco.war/WEB-INF/lib and copy to \server\default\deploy\jboss-web.deployer\jsf-libs, but in this folder, there are two files jsf-api.jar and jsf-impl.jar, what should i do? it is not exactly described as step 4?

5.Edit the file jboss/bin/run.bat (or and add the following flags to the JAVA_OPTS line:
-server -XX:MaxPermSize=128m

i added -server -XX:MaxPermSize=256m, is that ok?

and in this wiki
it said
#If using JBoss4.0.X, open alfresco.war in an archival tool (such as 7-Zip, WinZIP or WinRAR) and remove the file /WEB-INF/lib/log4j-1.2.8.jar.

should i delete it?

#Also remove /WEB-INF/lib/jta.jar if you plan on using JTA.
i do

and i also add

     <priority value="INFO" />
     <appender-ref ref="CONSOLE"/>
     <appender-ref ref="FILE"/>


  <category name="org.jboss.logging.Log4jService$URLWatchTimerTask">
     <priority value="INFO"/>
<category name="org.jbpm.jpdl.xml.JpdlXmlReader">
     <priority value="ERROR"/>

to \server\default\conf\jboss-log4j.xml

#Because Jboss 4.2.0GA uses the new JSF 1.2, you need to add the following to the web.xml in the alfresco.war file in the first position:

yes, i did

#In addition, when deploying Alfresco 2.1 WAR you will need to edit the following file: \jboss\server\default\deploy\ejb3.deployer\META-INF\ and change the line:



i did

but but, still not work, i cannot see alfresco at localhost:8080/portal/portal/default/alfresco, is alfresco only design for men? difficult for me, sigh.
thanks for anyhelp

i have msn