nelsonmp19 / alfresco-form-model-management

Automatically exported from code.google.com/p/alfresco-form-model-management
0 stars 0 forks source link

I followed your instruction to the t but keep getting error on loading url: serverIPAddres:8080/alfresco/wcs/form-builder/ome/ #12

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. copy alf_forms_management_1_2_4.amp into c:\alfresco\amp
2. run c:\alfresco\bin\apply_amps
3. make the following directories in alfresco installation Company Home > Data 
Dictionary > Models > Constraints  and Company Home > Data Dictionary > Models 
> JsonModels 

Instead of showing the module I see the error message pasted below

I am running Alfresco Server:Community v4.0.0 (4003) schema 5,025
on a windows 2008 r2 server

Here is my error message from the url 
My_IP_Address:8080/alfresco/wcs/form-builder/home/:

Alfresco    Web Script Status 404 - Not Found

The Web Script /alfresco/wcs/form-builder/home/ has responded with a status of 
404 - Not Found.

404 Description:    Requested resource is not available.

Message:    05070003 Script url /form-builder/home/ does not map to a Web Script.

Exception:  org.springframework.extensions.webscripts.WebScriptException - 
05070003 Script url /form-builder/home/ does not map to a Web Script.

    org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:173)
    org.springframework.extensions.webscripts.servlet.WebScriptServlet.service(WebScriptServlet.java:118)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
    org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    org.alfresco.repo.webdav.auth.BaseSSOAuthenticationFilter.doFilter(BaseSSOAuthenticationFilter.java:136)
    sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    java.lang.reflect.Method.invoke(Method.java:597)
    org.alfresco.repo.management.subsystems.ChainingSubsystemProxyFactory$1.invoke(ChainingSubsystemProxyFactory.java:103)
    org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
    org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
    $Proxy238.doFilter(Unknown Source)
    org.alfresco.repo.web.filter.beans.BeanProxyFilter.doFilter(BeanProxyFilter.java:82)
    org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    org.alfresco.web.app.servlet.WebScriptSSOAuthenticationFilter.doFilter(WebScriptSSOAuthenticationFilter.java:140)
    sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    java.lang.reflect.Method.invoke(Method.java:597)
    org.alfresco.repo.management.subsystems.ChainingSubsystemProxyFactory$1.invoke(ChainingSubsystemProxyFactory.java:103)
    org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
    org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
    $Proxy238.doFilter(Unknown Source)
    org.alfresco.repo.web.filter.beans.BeanProxyFilter.doFilter(BeanProxyFilter.java:82)
    org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    org.alfresco.web.app.servlet.GlobalLocalizationFilter.doFilter(GlobalLocalizationFilter.java:58)
    org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
    org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
    org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:470)
    org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
    org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
    org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
    org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
    org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:861)
    org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:579)
    org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1584)
    java.lang.Thread.run(Thread.java:662)

Server: Community v4.0.0 (4003) schema 5,025
Time:   Jun 7, 2012 11:52:17 AM

HERE IS THE ERROR MESSAGE FROM MY Alfresco Enterprise 4.0 installation on the 
same windows 2008 server r2 configuration.
Please advise:

Alfresco    Web Script Status 404 - Not Found

The Web Script /alfresco/wcs/form-builder/home/ has responded with a status of 
404 - Not Found.

404 Description:    Requested resource is not available.

Message:    05070003 Script url /form-builder/home/ does not map to a Web Script.

Exception:  org.springframework.extensions.webscripts.WebScriptException - 
05070003 Script url /form-builder/home/ does not map to a Web Script.

    org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:173)
    org.springframework.extensions.webscripts.servlet.WebScriptServlet.service(WebScriptServlet.java:118)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
    org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    org.alfresco.repo.webdav.auth.BaseSSOAuthenticationFilter.doFilter(BaseSSOAuthenticationFilter.java:136)
    sun.reflect.GeneratedMethodAccessor671.invoke(Unknown Source)
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    java.lang.reflect.Method.invoke(Method.java:597)
    org.alfresco.repo.management.subsystems.ChainingSubsystemProxyFactory$1.invoke(ChainingSubsystemProxyFactory.java:103)
    org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
    org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
    $Proxy258.doFilter(Unknown Source)
    org.alfresco.repo.web.filter.beans.BeanProxyFilter.doFilter(BeanProxyFilter.java:82)
    org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    org.alfresco.web.app.servlet.WebScriptSSOAuthenticationFilter.doFilter(WebScriptSSOAuthenticationFilter.java:140)
    sun.reflect.GeneratedMethodAccessor671.invoke(Unknown Source)
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    java.lang.reflect.Method.invoke(Method.java:597)
    org.alfresco.repo.management.subsystems.ChainingSubsystemProxyFactory$1.invoke(ChainingSubsystemProxyFactory.java:103)
    org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
    org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
    $Proxy258.doFilter(Unknown Source)
    org.alfresco.repo.web.filter.beans.BeanProxyFilter.doFilter(BeanProxyFilter.java:82)
    org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    org.alfresco.web.app.servlet.GlobalLocalizationFilter.doFilter(GlobalLocalizationFilter.java:58)
    org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
    org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
    org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:470)
    org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
    org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
    org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
    org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
    org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:877)
    org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:594)
    org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1675)
    java.lang.Thread.run(Thread.java:662)

Server: Enterprise v4.0.1 (897) schema 5,028
Time:   Jun 7, 2012 12:52:39 PM

Original issue reported on code.google.com by aba...@gmail.com on 7 Jun 2012 at 5:54

GoogleCodeExporter commented 9 years ago
Please remove the / from the end of your URL.

It should read: http://localhost/alfresco/wcs/form-builder/home

and not 

http://localhost/alfresco/wcs/form-builder/home/

Original comment by mike.pri...@abstractive.ca on 7 Jun 2012 at 6:06

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
The Web Script /alfresco/wcs/form-builder/home/ is NOT a URL.

Remove your trailing /. The correct URL is 

/alfresco/wcs/form-builder/home

Original comment by mike.pri...@abstractive.ca on 7 Jun 2012 at 6:34

GoogleCodeExporter commented 9 years ago
If you look in the root of the zip file there is a module.properties file.

Original comment by mike.pri...@abstractive.ca on 7 Jun 2012 at 6:37

GoogleCodeExporter commented 9 years ago
Use 7-Zip or win zip to browse your amp file (an AMP file is just a ZIP) You 
will find the module.properies file in the root. The reason its giving you a 
404 is because you have a trailing forward slash "/". If you go to 
/alfresco/wcs/index you should see a family for Form Management. If you wish 
you could get to the home page from there.

Original comment by mike.pri...@abstractive.ca on 7 Jun 2012 at 6:39

GoogleCodeExporter commented 9 years ago
Your AMP was probably installed correctly the first time around :)

Original comment by mike.pri...@abstractive.ca on 7 Jun 2012 at 6:41

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Stop tomcat

Put the amp into  c:/alfresco/amps

Then run the apply_amps.sh file located c:/alfresco/bin/apply_amps.sh

This will install your amp into the WAR. Once it has completed it will (should) 
delete the alfresco folder under. Tomcat/webapps/. If its not delete it 
(c:/alfresco/tomcat/webapps/alfresco

Start tomcat.

Once alfresco is up and running go to http://localhost/alfresco/wcs/index

You should see Form Management in the list of web-script families.

Let me know when you get this far and we can continue.

Original comment by mike.pri...@abstractive.ca on 7 Jun 2012 at 7:55

GoogleCodeExporter commented 9 years ago
Sorry the amps is apply_amps.bat (WINDOWS) .sh is linux

Original comment by mike.pri...@abstractive.ca on 7 Jun 2012 at 7:56

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
If you want to manually install the amp. You need to do a few things but I 
don't recommend this as next time your WAR is expanded it will overwrite. 

You must be installing the AMP incorrectly as a few hundred people have 
installed this fine. 

I have just installed the AMP on a fresh install to test this out. This is the 
documentation from Alfresco.

http://docs.alfresco.com/4.0/index.jsp?topic=%2Fcom.alfresco.enterprise.doc%2Fta
sks%2Famp-install.html

Unless i see what you are doing I cant really point out what going on. If you 
have altered the .amp file in anyway. Try re-downloading the AMP again.

Original comment by mike.pri...@abstractive.ca on 7 Jun 2012 at 8:38

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Hi there, this is a very common question; There are many ways people may use 
the form manager in share. Here are some examples:

Pre-Defined Metadata set - STRICT

A pre-defined metadata set means you control what metadata documents must have. 
Instead of adding aspect upon aspect you use profiles to determine what users 
should enter. 

1) Document Type relation: Using an aspect to display a document type dropdown 
list. When the user selects an option it builds out (displays) profiles 
assigned to its value

2) Share site specific content. This allows different sites to have different 
metadata profiles; You can use the same document type property and use the 
/byShareSite option for displaying different lists of document types to the end 
user. This way you can search on the same property globally across your 
repository yet limit users choice based on site/dept

3) Allow alfresco to manage its own; Typically this would show side by side 
Alfresco's default model information (using alfresco forms) and FM Custom 
metadata (using FM model and using its benefits).

Dynamic form creation - TRADITIONAL

1) You could use the FM manager much like alfresco does; Take what aspects are 
applied to the document and draw a form collection based upon that. 

This requires that you have forms built for the default Alfresco metadata. Or 
we could have a case match that ignores the default aspects and builds only 
custom from that list.

The FM module was built as a framework to build forms and deploy using jQuery. 
It allows for everything that was in the webinar but targeted more specifically 
at custom development in Alfresco. It seems that the community would like to 
replace Alfresco's internal Share form with it; which is great, but as you can 
see there are many ways this can be tackled. 

The current form initialization allows you to give a list of aspects (must be 
available as forms in the form management app):

'aspects': []

Or giving it a profile (object taken from metadata profiles):

'profile': {}

I will be adding in a variable for something like:

'drawOptions': {
    'drawByNodeAspects': <boolean>,
    'ignoreAlfrescoDefaults': <boolean>
}

This would basically just grab the aspects applied to that node and pass it 
into 'aspects' : []

NOTE: This requires a node to be passed into the jquery form builder

Hope this makes sense there's a bit on information there. I expect to have 
something for the second method (TRADITIONAL) in the next week or so

Original comment by mike.pri...@abstractive.ca on 12 Jun 2012 at 3:32

GoogleCodeExporter commented 9 years ago
Hi again,

Please go to the home page of this project. I have added information on how to 
get this all up and running. Code is attached for extending the form component 
for alfresco.

Let me know how you get on. 

Original comment by mike.pri...@abstractive.ca on 12 Jun 2012 at 8:30

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Hi There,

I have updated the Wiki as it wansnt clear to download the Share Form 
Extension.zip that had the extensions.

Can you tell me what version of Alfresco you are using. Your webscript is 
failing when trying to use page.url.templateArgs.site. This is the variable 
that Alfresco Share holds your siteid in.

Cheers,

Mike 

Original comment by mike.pri...@abstractive.ca on 14 Jun 2012 at 2:44

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
I tried to replace those files once again,
I am still getting an error message:
*Exception:* org.springframework.extensions.webscripts.WebScriptException -
05140000 Failed to process template
org/alfresco/components/form/form.get.html.ftl
org.springframework.extensions.webscripts.processor.FTLTemplateProcessor.process
(FTLTemplateProcessor.java:175)

*Exception:* freemarker.core.InvalidReferenceException - Expression
fmAspects is undefined on line 15, column 30 in
org/alfresco/components/form/form.get.html.ftl.
freemarker.core.TemplateObject.assertNonNull(TemplateObject.java:125)

Please advise

Thanks again

Original comment by aba...@gmail.com on 14 Jun 2012 at 6:28

GoogleCodeExporter commented 9 years ago
Your getting a different error: fmAspects is undefined on line 15

fmAspects isn't in the two files in that zip file. Are you sure you are 
replacing the files:

form.get.html.ftl
form.get.head.ftl

with the files in Share Form Extension.zip

here is the link: 

http://alfresco-form-model-management.googlecode.com/files/Share%20Form%20Extens
ion.zip

Original comment by mike.pri...@abstractive.ca on 15 Jun 2012 at 4:56

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
replaced the 2 files referenced for the third time and restarted.
Here is my error message:
Exception: freemarker.core.InvalidReferenceException - Expression 
page.url.args.nodeRef is undefined on line 41, column 52 in 
org/alfresco/components/form/form.get.html.ftl.

Original comment by aba...@gmail.com on 15 Jun 2012 at 7:56

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
You last error message: 

Exception: freemarker.core.InvalidReferenceException - Expression 
page.url.args.nodeRef is undefined on line 41, column 52 in 
org/alfresco/components/form/form.get.html.ftl.

nodeRef is a mandatory url parameter. When you go to edit details in Share 
nodeRef should be in the url for anything to work. If you like I can run 
through this stuff via a web conference ; using something like Team Viewer (its 
free and you can share screens). My email is mike.priest@abstractive.ca if you 
want to set something up. Its hard to see whats going on without seeing what 
your doing. I can walk through the install on my screen.

Let me know.
Mike 

Original comment by mike.pri...@abstractive.ca on 18 Jun 2012 at 2:49

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Hi Mike, still trying to figure out what can I do to make FM working... 
My environment: Ubuntu Linux 12.04 LTS - Alfresco Community Edition 4.2c
Installed manually, not working (Error 404 in 
My_IP_Address:8080/alfresco/wcs/form-builder/home as Issue #12)
Installed with apply_amps.sh and I can't login in Alfresco anymore! (i get some 
error telling me to use the FORCE option)

Any sugestions?

Thanks in advance

Original comment by julio.mo...@gmail.com on 18 Mar 2013 at 2:04