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

carnby
Champ in-the-making
Champ in-the-making
kevinr: I did like you said and I'm still getting the same errors in the console, but the alfresco page is working…

CarnbY,
Is the system usable for you? Do you have the same issues as me (above in this thread)? Can you navigate through the Alfresco?

Thanks,
Andrey.
I've logged in as admin and browsed around a little and have not gotten any javascript errors…  I use JBoss portal 2.4.1 bundled with AS.


I'm outta here for today… thanks for the help guys!

naumand
Champ in-the-making
Champ in-the-making
I've logged in as admin and browsed around a little and have not gotten any javascript errors…  I use JBoss portal 2.4.1 bundled with AS.

That's it! "JBoss portal 2.4.1 bundled with AS". In this configuration Alfresco works for me. BTW, application server in this bundle is 4.0.4, not 4.0.5 as in JEMS installer.
(It is consistent with 'deas0815' - thread author - problems. He uses also 4.0.5 app server).

Kevin, please, please try JEMS installer - that is enterprise solution, so Alfresco is…

I use it because that's the way to enable EJB3 by installer. I need them for JBoss Wiki (!). I'm building collaboration portal, I need it. Make it 'just work' please.

Thank you,
Andrey.

naumand
Champ in-the-making
Champ in-the-making
BUG:
Invironment:
OS - Win XP SP2
JDK - jdk1.5.0_09
AS - 4.0.4.GA (a part of Portal 2.4.1 bundle)
Portal - 2.4.1 (bundled with app server above. jboss-portal-2.4.1-bundled.zip)
Alfresco - 2.0 revision 574
Browser - IE6, FF2 (reproduceable on both).

Steps to reproduce:
1. Go to http://localhost:8080/portal/portal/default/Alfresco
2. Login as admin. Success.
3. Maximize Alfresco portlet window
Effect: see login screen. Expected: just maximized window.

webworks2000
Champ in-the-making
Champ in-the-making
I ran into this same problem.  Here's what happened for me:

I had both Java 1.5 and 1.6 installed on my computer…and although I set eclipse to use 1.5 as compiler, the JRE was set to the 1.6, causing an error since I think Normalizer.compose was taken out in 1.6

In any case, make sure you're using 1.5 JRE and JDK not 1.6 and it might help!

gressho
Champ in-the-making
Champ in-the-making
I have the JavaScript problems, too. My environment is

Red Hat Enterprise Linux 4
JDK 1.5.0_10
JBoss AS 4.0.5 (replaced MyFaces 1.1.4 by 1.1.5)
JBossPortal 2.4.1
Alfresco 2.0 revision 574
FF 2.0

The only thing that works is the Alfresco Tutorial (and the external
links).

Best wishes

Werner

naumand
Champ in-the-making
Champ in-the-making
I have the JavaScript problems, too…
That's what I'm talking about.
Moving back to app server 4.0.4 will probably solve the issue. But Alfresco team have definitely address that I think.

millerj
Champ in-the-making
Champ in-the-making
We are also having a very similar problem.
  Environment:
  JBoss AS - 4.0.5
  JBoss Portal - 2.4.1
  Alfresco revision - 574
  OS Win XP SP2
  browsers - IE and FF

After deploying the Alfresco.war on JBoss, the  JBoss AS reports the following error whenever I open the Alfresco Portlet Page.
ERROR [JspStateManagerImpl] Exiting serializeView - Could not serialize state: org.alfresco.web.ui.common.component.UIListItem java.io.NotSerializableException: org.alfresco.web.ui.common.component.UIListItem
        at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1075)
        at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:291)
        at java.util.ArrayList.writeObject(ArrayList.java:570)
        at sun.reflect.GeneratedMethodAccessor957.invoke(Unknown Source) ….
       
The Alfresco portlet page loads however ALL internal navigation links within the portlet generate a javascipt error when selected.  Navigation is 100% disabled by this error. 
 Error: 'document.forms.dashboard.dashboard.act' is null or not an object
Has this issue been entered as a bug?  If so I would like to know the bug number so I can keep an eye on the issue.  For us, using JBoss AS 4.0.5 is necessary to run other components. We would like to use Alfresco but will not be able to if it can't be run on that version of JBoss AS.

kevinr
Star Contributor
Star Contributor
We are also having a very similar problem.
  Environment:
  JBoss AS - 4.0.5
  JBoss Portal - 2.4.1
  Alfresco revision - 574
  OS Win XP SP2
  browsers - IE and FF

After deploying the Alfresco.war on JBoss, the  JBoss AS reports the following error whenever I open the Alfresco Portlet Page.

The problem above, and also the problem here:


I have the JavaScript problems, too. My environment is

Red Hat Enterprise Linux 4
JDK 1.5.0_10
JBoss AS 4.0.5 (replaced MyFaces 1.1.4 by 1.1.5)

Is that the version of JBossAS you are using packages the MyFaces1.1.4 as the jsflibs inside the tomcat webserver module.

The version of Alfresco you are trying to use is expecting MyFaces1.1.1. This is why you currently need to use the JbossPortal2.4.1+JBoss bundle (which still uses MyFaces1.1.1) or wait for a future release of Alfresco.

It is hard for us to know which way to go with MyFaces library versions as for the various portals we work against, we need to make sure we are compatible with all of them if possible. Unfortuntely in the portal environment (i.e. shared web context) there is no isolation from the version of MyFaces bundled with JBossAS and the version of MyFaces we want to use in the Alfresco WAR bundle…

Thanks,

Kevin

mosi_123
Champ in-the-making
Champ in-the-making
The following are instructions that I used to get Alfresco 2.0 working with JBoss Portal 2.4.1 and MySQL Server 5.

Installation Instructions
1. Install JBoss 4.0.5
2. Set JBOSS_HOME environment variable to root directory
3. Set JAVA_HOME environment variable to JDK 5.0 or JDK 6.0
4. Install jboss-portal.sar (2.4.1) to JBOSS_HOME/server/default/deploy
5. Copy portal-mysql-ds.xml to JBOSS_HOME/server/default/deploy
    Ensure/Verify the following: <connection-url>jdbc:mysql://localhost:3306/jbossportal?useServerPrepStmts=false&amp;jdbcCompliantTruncation=false</connection-url>

6. Copy mysql-connector-java-5.0.3-bin.jar to JBOSS_HOME/server/default/lib

7. Clear Cached folders if exists:
   JBOSS_HOME/bin/alf_data
   JBOSS_HOME/server/default/data/portal
   JBOSS_HOME/server/default/tmp
   JBOSS_HOME/server/default/work


8. DROP alfresco & jbossportal databases from MySQL if exists
9. Run <alfresco install dir>/extras/databases/mysql/db_setup.bat
10. Verify that the alfresco database was created.
11. Install myfaces (1.1.5) *.jar files to JBOSS_HOME/server/default/deploy/jbossweb-tomcat55.sar/jsf-libs

12. SVN Alfresco 2.0 (HEAD revision) - run Ant - "build-jboss" section - make sure you compile against JDK 5.0.

13. Modify JBOSS_HOME\server\default\deploy\jboss-portal.sar\conf\hibernate\instance\domain.hbm.xml – change everywhere it says length=”5000000” to type=”text”

14. Edit <drive letter>\Program Files\MySQL\MySQL Server <vernum>\my.ini  Modify line to say sql-mode="NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION" – remove any reference to “STRICT_TRANS…”

15. Add the following to JAVA_OPTS var in JBOSS_HOME/bin/run.bat     “-server -XX:MaxPermSize=128m”

16. Add/Replace the following to JBOSS_HOME/server/default/conf/log4j.xml
<root>
     <priority value="INFO" />
     <appender-ref ref="CONSOLE"/>
     <appender-ref ref="FILE"/>
  </root>

kevinr
Star Contributor
Star Contributor
The instructions above are pretty much correct for the latest HEAD code (but you don't need all the steps unless you want to use MySQL for the portal itself). As I mentioned earlier, we have upgraded Alfresco to MyFaces1.1.5 in the latest code.

If you take HEAD, use the ANT build-jboss target and then 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 server\default\deploy\jbossweb-tomcat55.sar\jsf-libs in your jboss portal installation with the ones extracted from the alfresco WAR then it will work.

I have just tried this with a vanilla JBossAS4.0.5+JBossPortal2.4.1 deployed into it and with the JBossPortal2.4.1 bundle and the JBossPortal2.6beta bundle.

Thanks,

Kevin