cancel
Showing results for 
Search instead for 
Did you mean: 

Problems with the WCM preview tutorial

mike
Champ in-the-making
Champ in-the-making
Hello,

I downloaded and installed the WCM v2 preview on Linux using Weblogic 9.2 and Oracle 9iR2 and all appears to work fine.

However, when following the tutorial I encounter the error below when uploading the 'company-footer.xsd' as part of creating a new web form:

Please correct the errors below then click Finish.
    * unable to parse company-footer.xsd: null

This also throws the following expection on the application server:

14:23:09,041 ERROR [org.alfresco.web.ui.common.Utils] unable to parse company-footer.xsd: null
java.lang.NullPointerException
        at org.alfresco.web.forms.xforms.SchemaUtil.parseSchema(SchemaUtil.java:219)
        at org.alfresco.web.bean.wcm.CreateFormWizard.schemaFileValueChanged(CreateFormWizard.java:612)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.apache.myfaces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:129)
        at javax.faces.component.UIInput.broadcast(UIInput.java:200)
        at javax.faces.component.UIViewRoot._broadcastForPhase(UIViewRoot.java:90)
        at javax.faces.component.UIViewRoot.processDecodes(UIViewRoot.java:132)
        at org.apache.myfaces.lifecycle.LifecycleImpl.applyRequestValues(LifecycleImpl.java:200)
        at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:71)
        at javax.faces.webapp.FacesServlet.service(FacesServlet.java:105)
        at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:223)
        at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
        at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:283)
        at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
        at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
        at org.alfresco.web.app.servlet.AuthenticationFilter.doFilter(AuthenticationFilter.java:73)
        at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
        at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3243)
        at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
        at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
        at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2003)
        at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:1909)
        at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1359)
        at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
        at weblogic.work.ExecuteThread.run(ExecuteThread.java:181)


Any ideas?

Thanks,

Mike
14 REPLIES 14

mike
Champ in-the-making
Champ in-the-making
Ok I've got the src and added some debugging.

You are correct thinking the result is null - I will continue trying to debug why this is the case.

Thanks,

Mike.

mike
Champ in-the-making
Champ in-the-making
Ok its working now Smiley Very Happy

Removed my complete weblogic install and reinstalled with the basic setup and worked first time. The previous version had WebLogic Portal, AquaLogic Service Bus and the development/sample products also running. Therefore I assume there was some sort of conflict.

Thanks very much for all your help fixing this

Mike.

arielb
Champ in-the-making
Champ in-the-making
whew… that's a relief.  i'm still really curious to know what the conflict might have been…  i'll add some better error handling to that code path so in the future others don't spend quite so much time debugging it.  thanks for your patience.

nerolauda2
Champ in-the-making
Champ in-the-making
I have mad a self made installation of alfresco in August on tomcat + mysql and now i tried to install the wcm module.
I just copied the file wcm-bootstrap-context.xml in the extension dir and everythink seemed to work fine but…
As I tried to create a new web form and i uploaded the XSD
Please correct the errors below then click Finish.

    * unable to parse company-footer.xsd: org.apache.xerces.dom.DOMXSImplementationSourceImpl

and in catalina.out:
18:19:48,621 ERROR [ui.common.Utils] unable to parse press-release.xsd: org.apache.xerces.dom.DOMXSImplementationSourceImpl
java.lang.ClassCastException: org.apache.xerces.dom.DOMXSImplementationSourceImpl
        at org.w3c.dom.bootstrap.DOMImplementationRegistry.newInstance(DOMImplementationRegistry.java:144)
        at org.alfresco.web.forms.xforms.SchemaUtil.parseSchema(SchemaUtil.java:210)
        at org.alfresco.web.bean.wcm.CreateFormWizard.schemaFileValueChanged(CreateFormWizard.java:632)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.apache.myfaces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:132)
        at javax.faces.component.UIInput.broadcast(UIInput.java:244)
        at javax.faces.component.UIViewRoot._broadcastForPhase(UIViewRoot.java:97)
        at javax.faces.component.UIViewRoot.processDecodes(UIViewRoot.java:139)
        at org.apache.myfaces.lifecycle.ApplyRequestValuesExecutor.execute(ApplyRequestValuesExecutor.java:32)
        at org.apache.myfaces.lifecycle.LifecycleImpl.executePhase(LifecycleImpl.java:95)
        at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:70)
        at javax.faces.webapp.FacesServlet.service(FacesServlet.java:139)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
        at org.alfresco.web.app.servlet.AuthenticationFilter.doFilter(AuthenticationFilter.java:81)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
        at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
        at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
        at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
        at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
        at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
        at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
        at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
        at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
        at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
        at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
        at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
        at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:162)
        at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:300)
        at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:374)
        at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:743)
        at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:675)
        at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:866)
        at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
        at java.lang.Thread.run(Thread.java:595)


What can I try?

kevinr
Star Contributor
Star Contributor
You say "self made" install - one the things in our tomcat install is that we add xalan.jar and serializer.jar to tomcat/common/endorsed. You might need to do the same.

Thanks,

Kevin