cancel
Showing results for 
Search instead for 
Did you mean: 

alfresco is not designed for girls?

wangting
Champ in-the-making
Champ in-the-making
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:

http://wiki.alfresco.com/wiki/Build_and_Deploy_WAR_JBossPortal
1.You need an SVN client, then checkout the Alfresco HEAD code revision number 574 from our public SVN http://wiki.alfresco.com/wiki/Alfresco_SVN_Development_Environment#Subversion_Repository_Access - 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 run.sh) 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
http://wiki.alfresco.com/wiki/Deploying_WAR_JBoss
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

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

and

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

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:
<context-param>
  <param-name>org.jboss.jbossfaces.WAR_BUNDLES_JSF_IMPL</param-name>
  <param-value>true</param-value>
</context-param>

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\persistence.properties and change the line:

hibernate.bytecode.provider=javassist
to:

hibernate.bytecode.provider=cglib

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
wangting990330@hotmail.com
1 REPLY 1

bgl
Champ on-the-rise
Champ on-the-rise
Hi,

why did you use svn instead of 2.1 already packaged ? is there a good reason for this ?
First try the installation with the packaged war and check if you get it work. You will find a lot of information on the wiki about standard installation.

Using the svn is not a good idea for a beginner I would say.

Try first the official release and post back your results.