cancel
Showing results for 
Search instead for 
Did you mean: 

2.0.0 preview on jboss 4.0.5 w/ jboss-portal 2.4.1 - almost

deas0815
Star Contributor
Star Contributor
Hallo everybody,

I'm trying to get 2.0.0 preview running on jboss 4.0.5 w/ jboss portal 2.4.1 using the
alfresco.war bundled with alfresco-community-jboss-2.0.0Preview.

It almost seems working.

The only "real" problem left I've encountered (so far) is that the form(s) is/are missing
some hidden fields so I'm running into javascript errors like the following and cannot
really navigate very far:

Error: document.forms.dashboard['dashboard:act'] has no properties
Source File: http://localhost:8080/portal/portal/default/Alfresco
Line: 1

Error: document.forms.dashboard['dashboard:modelist'] has no properties
Source File: http://localhost:8080/portal/portal/default/Alfresco
Line: 1

Any help how to get this fixed is appreciated.

regards
Andreas
33 REPLIES 33

naumand
Champ in-the-making
Champ in-the-making
I got the same javascript issue with JEMS Installer 1.2.0.GA set (AS 4.0.5.GA, EJB3 1.0.0.CR9-patch1-jboss4.0.5, Portal 2.4.1.SP1, JBossWS 1.0.3.SP1) + Alfresco 1.4 Community. Navigation within portlet does not work at all because of the error.

Error: document.forms.dashboard['dashboard:modelist'] has no properties
Line: 1

paulhh
Champ in-the-making
Champ in-the-making
Does this work ok for you if you use the JBoss Portal 2.2 from the JBoss Bundle?

Cheers
Paul.

naumand
Champ in-the-making
Champ in-the-making
Does this work ok for you if you use the JBoss Portal 2.2 from the JBoss Bundle?

Cheers
Paul.

Hi Paul,
Your JBoss bundle for Alfresco 1.4 works just fine.
But I have never succeded to run Alfresco v1.4 neigher v2.0 on JBoss 2.4 Portal.

If you ever tested Alfresco 2.0 (or 1.4) against JBoss Portal 2.4 - what build it was?

alfresco-community-jboss-2.0.0Preview.zip works good itself. It's based on JBossPortal 2.2.
Evet though if replace alfresco.war with the 2.0 release version from alfresco-community-war-2.0.0.zip one (adding missed jboss and portal discriptors from alfresco-community-jboss-2.0.0Preview.zip's war) I've failed to run Alfresco portlet within portal. Alfresco Portlet throws exception so got not started in portal at all.

It'd be really helpful if you test Alfresco work within 2.4 JBoss portal. In case of success, information on how to run Alfresco 2.0 in JBoss Portal 2.4 (latest stable release) would be really helpful to all your users. In the moment there is absolutely NO such information on your site, as I can see.

Thank you,
Andrey

kevinr
Star Contributor
Star Contributor
FYI I have successfully tweaked Alfresco 2.0 to work with the latest JBossPortal 2.4.1 release. It required a couple of minor code changes which are not present in the current 2.0 release however. I will commit the changes to our SVN HEAD repo probably tommorow and provide instructions on how to deploy (easy enough).

Thanks,

Kevin

naumand
Champ in-the-making
Champ in-the-making
FYI I have successfully tweaked Alfresco 2.0 to work with the latest JBossPortal 2.4.1 release. It required a couple of minor code changes which are not present in the current 2.0 release however. I will commit the changes to our SVN HEAD repo probably tommorow and provide instructions on how to deploy (easy enough).

Thanks,

Kevin

Thank you very much, Kevin
for attention you guys put to running Alfresco 2.0 in JBoss Portal 2.4!
This is a really great news.
Wait for the instructions.

Thank you,
Andrey

kevinr
Star Contributor
Star Contributor
The instructions can be found here:
http://wiki.alfresco.com/wiki/Build_and_Deploy_WAR_JBossPortal

Hope this helps,

Kevin

carnby
Champ in-the-making
Champ in-the-making
I tried building the 574 revision with "ant build-jboss" and got the following compile errors:

init:
     [echo] Starting build for repository at 12:52

common.compile-java:
    [mkdir] Created dir: C:\kam\root\projects\repository\build\classes
    [javac] Compiling 1725 source files to C:\kam\root\projects\repository\build\classes
    [javac] C:\kam\root\projects\repository\source\java\org\alfresco\repo\search\impl\lucene\LuceneT
est2.java:294: warning: unmappable character for encoding Cp1252
    [javac]         mlText.addValue(new Locale("ja"), "πâ?πâèπâè");
    [javac]                                              ^
    [javac] C:\kam\root\projects\repository\source\java\org\alfresco\repo\search\impl\lucene\LuceneT
est2.java:2956: warning: unmappable character for encoding Cp1252
    [javac]         sp.setQuery("@" + LuceneQueryParser.escape(mlQName.toString()) + ":πâ?πâèπâè");
    [javac]                                                                              ^
    [javac] C:\kam\root\projects\repository\source\java\org\alfresco\repo\search\impl\lucene\QueryPa
rser.java:16: warning: [deprecation] org.apache.lucene.document.DateField in org.apache.lucene.docum
ent has been deprecated
    [javac] import org.apache.lucene.document.DateField;
    [javac]                                  ^
    [javac] C:\kam\root\projects\repository\source\java\org\alfresco\filesys\ftp\FTPSrvSession.java:
4174: warning: sun.text.Normalizer is Sun proprietary API and may be removed in a future release
    [javac]                             cmd = sun.text.Normalizer.compose( new String(m_inbuf, 0, rd
len, "UTF-8"), false, 0);
    [javac]                                           ^
    [javac] C:\kam\root\projects\repository\source\java\org\alfresco\filesys\ftp\FTPSrvSession.java:
4174: cannot find symbol
    [javac] symbol  : method compose(java.lang.String,boolean,int)
    [javac] location: class sun.text.Normalizer
    [javac]                             cmd = sun.text.Normalizer.compose( new String(m_inbuf, 0, rd
len, "UTF-8"), false, 0);
    [javac]                                                      ^
    [javac] C:\kam\root\projects\repository\source\java\org\alfresco\repo\search\impl\lucene\QueryPa
rser.java:448: warning: [deprecation] org.apache.lucene.document.DateField in org.apache.lucene.docu
ment has been deprecated
    [javac]       part1 = DateField.dateToString(d1);
    [javac]               ^
    [javac] C:\kam\root\projects\repository\source\java\org\alfresco\repo\search\impl\lucene\QueryPa
rser.java:449: warning: [deprecation] org.apache.lucene.document.DateField in org.apache.lucene.docu
ment has been deprecated
    [javac]       part2 = DateField.dateToString(d2);
    [javac]               ^
    [javac] Note: Some input files use unchecked or unsafe operations.
    [javac] Note: Recompile with -Xlint:unchecked for details.
    [javac] 1 error
    [javac] 6 warnings

BUILD FAILED
C:\kam\root\common\build.xml:53: The following error occurred while executing this line:
C:\kam\root\common\common.xml:24: Compile failed; see the compiler error output for details.

Total time: 23 seconds

Did anyone succeed in running this?

naumand
Champ in-the-making
Champ in-the-making
I tried building the 574 revision with "ant build-jboss" and got the following compile errors:

Did anyone succeed in running this?

Yep, just compiled as per instructions.

svn co -r 574 https://svn.alfresco.com/repos/alfresco-open-mirror/alfresco/HEAD/

set JBOSS_HOME

\home\java\apache-ant-1.6.5\bin\ant.bat build-jboss

PS. Portal is from jems-installer-1.2.0.GA.jar - portal option.
java version "1.5.0_09" (check if yours 1.5)

kevinr
Star Contributor
Star Contributor
I tried building the 574 revision with "ant build-jboss" and got the following compile errors:

….

Did anyone succeed in running this?

Which JDK are you using?