cancel
Showing results for 
Search instead for 
Did you mean: 

Install on WebSphere 6.1 express

majori
Champ in-the-making
Champ in-the-making
I was able to successfully deploy Alfresco (v2) on WebSphere 6.1 after a few mods on a web.xml:

WEB-INF/faces-config-custom.xml to ,/WEB-INF/faces-config-custom.xml

Now I have any error or warning message into log file, but the first home page present only static information (image, logo, link, …) and any button or menu.
9 REPLIES 9

jperez
Champ in-the-making
Champ in-the-making
Hi

I’m trying to deploy to WebSphere Application Server base V6.1, can you please give a little more detail on you installation process?

I’m having the following exception

[5/25/07 14:47:30:953 COT] 00000021 SystemOut     O 14:47:30,843 ERROR [web.context.ContextLoader] Context initialization failed
java.lang.NullPointerException
        at org.alfresco.util.RuntimeSystemPropertiesSetter.postProcessBeanFactory(RuntimeSystemPropertiesSetter.java:68)
        at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:38
0)
        at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:302)
        at org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.refresh(AbstractRefreshableWebApplicationContext
.java:134)
        at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:246)
        at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:184)
        at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:49)
        at com.ibm.ws.wswebcontainer.webapp.WebApp.notifyServletContextCreated(WebApp.java:635)
        at com.ibm.ws.webcontainer.webapp.WebApp.commonInitializationFinish(WebApp.java:279)
        at com.ibm.ws.wswebcontainer.webapp.WebApp.initialize(WebApp.java:283)
        at com.ibm.ws.wswebcontainer.webapp.WebGroup.addWebApplication(WebGroup.java:88)
…..

And another one

[5/25/07 14:47:34:312 COT] 00000021 SystemOut     O 14:47:34,312 ERROR [commons.modeler.Registry] Error registering axis:type=server
javax.management.InstanceAlreadyExistsException: axis:cell=antaresNode01Cell,type=server,node=antaresNode01,process=server1
        at com.sun.jmx.mbeanserver.RepositorySupport.addMBean(RepositorySupport.java:470)
        at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.internal_addObject(DefaultMBeanServerInterceptor.java:1428)
        at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerObject(DefaultMBeanServerInterceptor.java:954)
        at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerMBean(DefaultMBeanServerInterceptor.java:355)
        at com.sun.jmx.mbeanserver.JmxMBeanServer.registerMBean(JmxMBeanServer.java:515)
        at com.ibm.ws.management.PlatformMBeanServer.registerMBean(PlatformMBeanServer.java:472)
        at org.apache.commons.modeler.Registry.registerComponent(Registry.java:871)
        at org.apache.commons.modeler.Registry.registerComponent(Registry.java:346)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:615)
        at org.apache.axis.management.Registrar$ModelerBinding.register(Registrar.java:131)
        at org.apache.axis.management.Registrar.register(Registrar.java:52)
        at org.apache.axis.management.ServiceAdmin.setEngine(ServiceAdmin.java:142)
        at org.apache.axis.transport.http.AxisServlet.init(AxisServlet.java:204)
        at javax.servlet.GenericServlet.init(GenericServlet.java:256)
        at com.ibm.ws.webcontainer.servlet.ServletWrapper.init(ServletWrapper.java:190)
        at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.init(ServletWrapper.java:317)
        at com.ibm.ws.webcontainer.servlet.ServletWrapper.initialize(ServletWrapper.java:1142)
        at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.initialize(ServletWrapper.java:150)
        at com.ibm.wsspi.webcontainer.extension.WebExtensionProcessor.createServletWrapper(WebExtensionProcessor.java:99)
        at com.ibm.ws.webcontainer.webapp.WebApp.getServletWrapper(WebApp.java:771)
        at com.ibm.ws.webcontainer.webapp.WebApp.initializeTargetMappings(WebApp.java:451)
        at com.ibm.ws.webcontainer.webapp.WebApp.commonInitializationFinish(WebApp.java:288)
        at com.ibm.ws.wswebcontainer.webapp.WebApp.initialize(WebApp.java:283)
        at com.ibm.ws.wswebcontainer.webapp.WebGroup.addWebApplication(WebGroup.java:88)
        at com.ibm.ws.wswebcontainer.VirtualHost.addWebApplication(VirtualHost.java:157)
        at com.ibm.ws.wswebcontainer.WebContainer.addWebApp(WebContainer.java:655)
        at com.ibm.ws.wswebcontainer.WebContainer.addWebApplication(WebContainer.java:608)
        at com.ibm.ws.webcontainer.component.WebContainerImpl.install(WebContainerImpl.java:335)
        at com.ibm.ws.webcontainer.component.WebContainerImpl.start(WebContainerImpl.java:551)
        at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:1312)

Thanks in advance

majori
Champ in-the-making
Champ in-the-making
Hi

I’m trying to deploy to WebSphere Application Server base V6.1, can you please give a little more detail on you installation process?

I’m having the following exception

[5/25/07 14:47:30:953 COT] 00000021 SystemOut     O 14:47:30,843 ERROR [web.context.ContextLoader] Context initialization failed
java.lang.NullPointerException
        at org.alfresco.util.RuntimeSystemPropertiesSetter.postProcessBeanFactory(RuntimeSystemPropertiesSetter.java:68)
        at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:38
0)
        at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:302)
        at org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.refresh(AbstractRefreshableWebApplicationContext
.java:134)
        at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:246)
        at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:184)
        at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:49)
        at com.ibm.ws.wswebcontainer.webapp.WebApp.notifyServletContextCreated(WebApp.java:635)
        at com.ibm.ws.webcontainer.webapp.WebApp.commonInitializationFinish(WebApp.java:279)
        at com.ibm.ws.wswebcontainer.webapp.WebApp.initialize(WebApp.java:283)
        at com.ibm.ws.wswebcontainer.webapp.WebGroup.addWebApplication(WebGroup.java:88)
…..

And another one

[5/25/07 14:47:34:312 COT] 00000021 SystemOut     O 14:47:34,312 ERROR [commons.modeler.Registry] Error registering axis:type=server
javax.management.InstanceAlreadyExistsException: axis:cell=antaresNode01Cell,type=server,node=antaresNode01,process=server1
        at com.sun.jmx.mbeanserver.RepositorySupport.addMBean(RepositorySupport.java:470)
        at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.internal_addObject(DefaultMBeanServerInterceptor.java:1428)
        at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerObject(DefaultMBeanServerInterceptor.java:954)
        at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerMBean(DefaultMBeanServerInterceptor.java:355)
        at com.sun.jmx.mbeanserver.JmxMBeanServer.registerMBean(JmxMBeanServer.java:515)
        at com.ibm.ws.management.PlatformMBeanServer.registerMBean(PlatformMBeanServer.java:472)
        at org.apache.commons.modeler.Registry.registerComponent(Registry.java:871)
        at org.apache.commons.modeler.Registry.registerComponent(Registry.java:346)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:615)
        at org.apache.axis.management.Registrar$ModelerBinding.register(Registrar.java:131)
        at org.apache.axis.management.Registrar.register(Registrar.java:52)
        at org.apache.axis.management.ServiceAdmin.setEngine(ServiceAdmin.java:142)
        at org.apache.axis.transport.http.AxisServlet.init(AxisServlet.java:204)
        at javax.servlet.GenericServlet.init(GenericServlet.java:256)
        at com.ibm.ws.webcontainer.servlet.ServletWrapper.init(ServletWrapper.java:190)
        at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.init(ServletWrapper.java:317)
        at com.ibm.ws.webcontainer.servlet.ServletWrapper.initialize(ServletWrapper.java:1142)
        at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.initialize(ServletWrapper.java:150)
        at com.ibm.wsspi.webcontainer.extension.WebExtensionProcessor.createServletWrapper(WebExtensionProcessor.java:99)
        at com.ibm.ws.webcontainer.webapp.WebApp.getServletWrapper(WebApp.java:771)
        at com.ibm.ws.webcontainer.webapp.WebApp.initializeTargetMappings(WebApp.java:451)
        at com.ibm.ws.webcontainer.webapp.WebApp.commonInitializationFinish(WebApp.java:288)
        at com.ibm.ws.wswebcontainer.webapp.WebApp.initialize(WebApp.java:283)
        at com.ibm.ws.wswebcontainer.webapp.WebGroup.addWebApplication(WebGroup.java:88)
        at com.ibm.ws.wswebcontainer.VirtualHost.addWebApplication(VirtualHost.java:157)
        at com.ibm.ws.wswebcontainer.WebContainer.addWebApp(WebContainer.java:655)
        at com.ibm.ws.wswebcontainer.WebContainer.addWebApplication(WebContainer.java:608)
        at com.ibm.ws.webcontainer.component.WebContainerImpl.install(WebContainerImpl.java:335)
        at com.ibm.ws.webcontainer.component.WebContainerImpl.start(WebContainerImpl.java:551)
        at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:1312)

Thanks in advance

Hi,
this is my installation on WAS 6.1:

1) I delete WEB-INF\lib\xml-apis.jar
2) I delete WEB-INF\lib\commons-logging.jar

3) I add jar mysql-connector-java-5.0.6-bin.jar in WEB-INF\lib

4) I modify web.xml row with parameter javax.faces.CONFIG_FILES from WEB-INF/faces-config-custom.xml to /WEB-INF/faces-config-custom.xml

5) I set the class loader to PARENT LAST and APPLICATION level.

but do not works …

majori
Champ in-the-making
Champ in-the-making
After i read this document http://wiki.apache.org/myfaces/Websphere_Installation?highlight=%28websphere%29 I make this change:

1) Copy the MyFaces JSF jars and dependencies (alfresco.war/WEB-INF/LIB) to <WAS directory>/AppServer/lib/

- commons-beanutils-1.7.0.jar
- commons-codec-1.3.jar
- commons-collections-3.1.jar
- commons-digester-1.6.jar
- commons-el.jar
- commons-lang-2.1.jar
- jstl-1.1.0.jar
- myfaces-api-1.1.5.jar
- myfaces-impl-1.1.5.jar

2) copy endorsed jar (from alfresco zip\endorsed)
- serializer.jar
- xalan.jar

3) Deploy the web application on WAS.

4) Alter the module classloader policy to application first
- Enterprise Applications > Alfresco> Manage Modules > Your war file > Change Class loader order to "Classes loaded with application class loader first"

5) Alter Java heap on WAS
Example: - Application servers > <server name> > ActivitySession service > Process Definition > Java Virtual Machine Initial Heap Size = 512  Maximum Heap Size = 1024

6) Start your application

Now it works … :lol:

andy
Champ on-the-rise
Champ on-the-rise
Hi

Which JDK are you using? If you are using the IBM JDK have you seen any nio errors?

Andy

majori
Champ in-the-making
Champ in-the-making
I use IBM JDK (1.5x installed with WAS) with no erros.

jperez
Champ in-the-making
Champ in-the-making
hi

I just reproduce all the steps you post and I keep having the same exception, maybe is a configuration missing or something.
For instance where are you setting the extensions folder on your environment?
I’m using WA 6.1 windows xp profesional

[6/12/07 17:05:31:171 COT] 00000028 WebApp        A   SRVE0180I: [alfresco_war#alfresco.war] [/alfresco] [Servlet.LOG]: Loading Spring root
WebApplicationContext
[6/12/07 17:05:36:500 COT] 00000028 SystemOut     O 17:05:36,406 ERROR [web.context.ContextLoader] Context initialization failed
java.lang.NullPointerException

at org.alfresco.util.RuntimeSystemPropertiesSetter.postProcessBeanFactory(RuntimeSystemPropertiesSetter.java:68) at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:38
0)
  at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:302)
        at org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.refresh(AbstractRefreshableWebApplicationContext
.java:134)
        at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:246)
        at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:184)
        at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:49)
        at com.ibm.ws.wswebcontainer.webapp.WebApp.notifyServletContextCreated(WebApp.java:635)
        at com.ibm.ws.webcontainer.webapp.WebApp.commonInitializationFinish(WebApp.java:279)
        at com.ibm.ws.wswebcontainer.webapp.WebApp.initialize(WebApp.java:283)
        at com.ibm.ws.wswebcontainer.webapp.WebGroup.addWebApplication(WebGroup.java:88)
        at com.ibm.ws.wswebcontainer.VirtualHost.addWebApplication(VirtualHost.java:157)
        at com.ibm.ws.wswebcontainer.WebContainer.addWebApp(WebContainer.java:655)
        at com.ibm.ws.wswebcontainer.WebContainer.addWebApplication(WebContainer.java:608)


Does this exception say anything to you?

Thanks in advance

jperez
Champ in-the-making
Champ in-the-making
I would like to explain the alfresco installation process on WebSphere Application Server so nobody has to bother about this any more.

Alfresco 2.0 (available release when I stared to deploy)
WebSphere Application Server 6.1 Windows / AIX

  • Use WAS 6.1 do not try with 6.0
  • Patch WAS and the IBM JVM
  • Download alfresco-community-war-2.0.0
  • We need to delete some jar files from WEB-INF/lib
    o  myfaces-api.jar
    o  myfaces-impl.jar
    o  commons-logging.jar
  • We need to modify web.xml
    o  Replace WEB-INF/faces-config-custom.xml with  /WEB-INF/faces-config-custom.xml
  • Set up your extension directory on WebSphereInsatallDir/lib (remember to set up the database and the hibernate dialect)
  • You can add the jdbc library for your DB to WebSphereInsatallDir/lib but I would recommend creating a WebSphere Datasource using the admin console and configure alfresco to use it.
  • To support my faces you can follow the steps described in http://www-1.ibm.com/support/docview.wss?uid=swg21243668 any way I describe them for each platform. The supported version is myfaces-1.1.1
  • Deploy the war using the administrative console: Application – Install New Application – Select the location of the war file – write alfresco on Context root field. Keep default all the following steps.


Windows specific
  •  MyFaces: (This procedure should work in all OS but I had some problems on AIX because of the alfresco implementation so the procedure on AIX was different)

    o Select a path in the filesystem to store the myFaces libs like c:/lib and copy the following jars: commons-beanutils-1.6.1.jar, commons-codec-1.3.jar, commons-collections-3.0.jar, commons-digester-1.5.jar, commons-el.jar, myfaces-api.jar, myfaces-impl.jar

    o Create a shared library: Admin console – Environment – Shared Libraries - NEW
        Select any name (myFacesLib)
        Classpath:
        C:\lib\myfaces-1.1.1\commons-beanutils-1.6.1.jar
        C:\lib\myfaces-1.1.1\commons-codec-1.3.jar
        C:\lib\myfaces-1.1.1\commons-collections-3.0.jar
        C:\lib\myfaces-1.1.1\commons-digester-1.5.jar
        C:\lib\myfaces-1.1.1\commons-el.jar
        C:\lib\myfaces-1.1.1\myfaces-api.jar
        C:\lib\myfaces-1.1.1\myfaces-impl.jar
   OK
   Save

     o   Associate de library to the web project: Admin Console – Applications - Enterprise Applications – click on the application name (if you leave all as default it should be alfrescoEAR) click on Shared library references – select Alfresco Web Client - Shared library references – select the library you created – OK – Save

     o   Classloader: Change the Classloader policy of both the Application and Web Module to Parent_Last this can be done in the Admin console in the paths below: Enterprise Applications > APP_NAME (alfrescoEAR) > Class loader Enterprise Applications > APP_NAME > Class loader > Manage Modules > MODULE_NAME (alfresco web client)

  •  At this point we should start the application but I got the following problem: the attribute acceptCharset is not defined for the h:form tag in the standard jsf implementation (acceptcharset), it is defined on my faces tld. Checking the classloader the WEB-INF/lib libraries are loaded before than the shared library so it may be loaded before from any of the jar file. We found 2 work around for this problem one is explained here the other one on the AIX specific installation, you may find a better way to solve this (let me know).

     o Open my faces jar and get the tld files: myfaces_core.tld and myfaces_html.tld – create a new jar containing this files a name it a.jar – add it to WEB-INF/lib – restart the application and voila it works (if you check the classloader you can see that a.jar will be at the top of the class loading )

AIX Specific
The same procedure was tested on AIX and we face the same acceptCharset issue and the a.jar work around did not work because the order of the WEB-INF/lib jar is class loaded in a different order (It may be related to the OS).

To solve this we try a different approach:
  • Import the war file in any ide
  • Replace acceptCharset for acceptcharset in all JSP (if you have the source code you may find that word in a java class but that should not be replaced, there are over 100 occurrences to replace) — not sure if there are another dependencies to my faces to be replaced, as long as I tested it works fine.
  • Export and deploy again  – it should work
  • If you still have problems you may copy the myfaces jars with all the dependencies to WebSphereInsatallDir/lib – this is not ideal because many applications may need different versions of the same jars.
  • Document Transformation: You may need to use transformations; Open Office does not run on AIX so you can run it in separate server and follow the issue http://issues.alfresco.com/browse/AR-1540 to make it work remotely. Thanks to JDZ
Alfresco 2.1 Release Candidate

Well after all this effort to deploy Alfresco the 2.1 version was released and it seems to avoid the myFaces dependencies simplifying the deployment process to WebSphere.

  • There is not need to Replace WEB-INF/faces-config-custom.xml for /WEB-INF/faces-config-custom.xml (fixed)
  • There is not need to remove commons-logging.jar
  • Do the steps in the windows installation for my faces (shared library and class loaders; now myfaces-core-1.1.5 is required – fix your shared library).
  • It should just work not work around or anything


My recommendation if you need to run alfresco in a not supported application server is to use this new release

—-windows environment
WebSphere Platform 6.1 [BASE 6.1.0.0 b0620.14] 
Host Operating System is Windows XP, version 5.1 build 2600 Service Pack 2
Java version = J2RE 1.5.0 IBM J9 2.3 Windows XP x86-32 j9vmwi3223-20060504 (JIT enabled)
GC   - 20060501_AA, Java Compiler = j9jit23, Java VM name = IBM J9 VM

—-AIX environment
WebSphere Platform 6.1 [ND 6.1.0.9 cf90722.41] 
Host Operating System is AIX, version 5.3
Java version = J2RE 1.5.0 IBM J9 2.3 AIX ppc64-64 j9vmap6423-20070426 (JIT enabled)
GC   - 200704_19, Java Compiler = j9jit23, Java VM name = IBM J9 VM

Hope this helps.

___________________
Juan David Pérez
ARKIMIA S.A.
http://www.arkimia.com.co

vipul
Champ in-the-making
Champ in-the-making
Thanks very much for the excellent reply Joun David.

I am following all the steps mentioned in your post on Windows-xp, Alfresco 2.1, MySQL 5 WebSphere 7  and getting below error.

[7/10/09 9:16:02:937 CAT] 00000009 WebXmlParser  E org.apache.myfaces.shared_impl.webapp.webxml.WebXmlParser parse Unable to parse web.xml
                                 java.net.ConnectException: Connection refused: connect
   at java.net.PlainSocketImpl.socketConnect(Native Method)
   at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:352)
   at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:214)
   at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:201)
   at java.net.Socket.connect(Socket.java:530)
   at java.net.Socket.connect(Socket.java:480)
   at sun.net.NetworkClient.doConnect(NetworkClient.java:169)
   at sun.net.www.http.HttpClient.openServer(HttpClient.java:406)
   at sun.net.www.http.HttpClient.openServer(HttpClient.java:541)
   at sun.net.www.http.HttpClient.<init>(HttpClient.java:245)
   at sun.net.www.http.HttpClient.New(HttpClient.java:318)
   at sun.net.www.http.HttpClient.New(HttpClient.java:335)

It will great if anyone can help me in resolving this.

viswamy2k
Champ in-the-making
Champ in-the-making
Im facing the below erro can some one help me

00000019 WebXmlParser  E org.apache.myfaces.shared_impl.webapp.webxml.WebXmlParser parse Unable to parse web.xml
                                 java.net.ConnectException: A remote host did not respond within the timeout period.