cancel
Showing results for 
Search instead for 
Did you mean: 

Custon content modelling failed. Can't log in anymore

frankb
Champ in-the-making
Champ in-the-making
Hi,

Trying to create custom models in Alfresco. First we tried creating the example model which is included (my:sop), and this worked.
But when we tried to create our own model, we ran into some problems.
I guess something in the configuration was wrong, and now we cannot log in anymore. Even when we remove the xml files with the new content model.
The message we get is :  The remote server may be unavailable or your authentication details have not been recognized.

In the alfresco.log there is some error messages:
14:24:01,687 DEBUG [org.apache.commons.httpclient.HttpConnection] Open connection to localhost:8080
14:24:01,689 DEBUG [httpclient.wire.header] >> "GET /alfresco/s/remotestore/has/alfresco/site-data/template-instances/slingshot-login.xml?s=sitestore HTTP/1.1[\r][\n]"
14:24:01,689 DEBUG [org.apache.commons.httpclient.HttpMethodBase] Adding Host request header
14:24:01,689 DEBUG [httpclient.wire.header] >> "User-Agent: Jakarta Commons-HttpClient/3.1[\r][\n]"
14:24:01,689 DEBUG [httpclient.wire.header] >> "Host: localhost:8080[\r][\n]"
14:24:01,689 DEBUG [httpclient.wire.header] >> "[\r][\n]"
14:24:01,692 DEBUG [httpclient.wire.header] << "HTTP/1.1 404 Not Found[\r][\n]"
14:24:01,692 DEBUG [httpclient.wire.header] << "HTTP/1.1 404 Not Found[\r][\n]"
14:24:01,692 DEBUG [httpclient.wire.header] << "Server: Apache-Coyote/1.1[\r][\n]"
14:24:01,692 DEBUG [httpclient.wire.header] << "Content-Type: text/html;charset=utf-8[\r][\n]"
14:24:01,692 DEBUG [httpclient.wire.header] << "Content-Length: 952[\r][\n]"
14:24:01,692 DEBUG [httpclient.wire.header] << "Date: Fri, 07 Jan 2011 13:24:01 GMT[\r][\n]"
14:24:01,692 DEBUG [httpclient.wire.header] << "[\r][\n]"
14:24:01,692 DEBUG [httpclient.wire.content] << "<html><head><title>Apache Tomcat/6.0.26 - Error report</title><style><!–H1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;} H3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;} BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} P {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A {color : black;}A.name {color : black;}HR {color : #525D76;}–></style> </head><body><h1>HTTP Status 404 - </h1><HR size="1" noshade="noshade"><p><b>type</b> Status report</p><p><b>message</b> <u></u></p><p><b>description</b> <u>The requested resource () is not available.</u></p><HR size="1" noshade="noshade"><h3>Apache Tomcat/6.0.26</h3></body></html>"
14:24:01,692 DEBUG [org.apache.commons.httpclient.HttpMethodBase] Resorting to protocol version default close connection policy
14:24:01,692 DEBUG [org.apache.commons.httpclient.HttpMethodBase] Should NOT close connection, using HTTP/1.1
14:24:01,692 DEBUG [org.apache.commons.httpclient.HttpConnection] Releasing connection back to connection manager.

There is also many more, but all of the messages is the same. 404 not found.

Any suggestions?

Frank
3 REPLIES 3

mrogers
Star Contributor
Star Contributor
Have you got any error from alfresco?

frankb
Champ in-the-making
Champ in-the-making
Not more than what I pasted in the post above. When we delete the new custom model we tried from the xml, and restart the server, it still crash on the example model which worked before.
So now we cannot produce any custom models anymore.

torquoise
Champ in-the-making
Champ in-the-making
Maybe I can add something on this topic which looks like a similar problem,

after having defined a new content model to add a task model for our new workflow we realized there was a bug in our definition, we didn't provide a correct namespace.

In detail this is the model definition we used, adding that to the Data Dictionary/Models/:

<?xml version="1.0" encoding="UTF-8"?>

<model name="wf:submitAdHocPooledModel" xmlns="http://www.alfresco.org/model/dictionary/1.0">

  <imports>
     <import uri="http://www.alfresco.org/model/dictionary/1.0" prefix="d"/>
     <import uri="http://www.alfresco.org/model/bpm/1.0" prefix="bpm"/>
  </imports>

  <namespaces>
     <namespace uri="http://www.alfresco.org/model/workflow/1.0" prefix="wf"/>
  </namespaces>
     
  <types>


     <type name="wf:submitAdHocPooledTask">
        <parent>bpm:startTask</parent>
        
        <properties>
           <property name="wf:notifyMe">
              <type>d:boolean</type>
              <default>false</default>
           </property>
        </properties>

      <mandatory-aspects>
            <aspect>bpm:groupAssignee</aspect>
         </mandatory-aspects>
     </type>

  
  </types>
  
</model>

In our understanding the model namespace (http://www.alfresco.org/model/workflow/1.0) is conflicting with the already defined workflow namespace.

When we tried to rollback from this error, deleting our model, we got the following exception:

Unable to delete File due to system error: Namespace prefix inwf is not mapped to a namespace URI

if we try to inactivate the custom model we have the same error:

A system error happened during the operation: Namespace prefix inwf is not mapped to a namespace URI.


We have also several side effects, for instance if we try to Start An Advanced Workflow on a document we get the same error:

javax.faces.FacesException: org.apache.jasper.JasperException: javax.faces.el.EvaluationException: Cannot get value for expression '#{WizardManager.bean.hasStartableWorkflows == false}'
caused by:
org.apache.jasper.JasperException: org.apache.jasper.JasperException: javax.faces.el.EvaluationException: Cannot get value for expression '#{WizardManager.bean.hasStartableWorkflows == false}'
caused by:
org.apache.jasper.JasperException: javax.faces.el.EvaluationException: Cannot get value for expression '#{WizardManager.bean.hasStartableWorkflows == false}'
caused by:
javax.faces.el.EvaluationException: Cannot get value for expression '#{WizardManager.bean.hasStartableWorkflows == false}'
caused by:
javax.faces.el.EvaluationException: Exception getting value of property hasStartableWorkflows of base of type : org.alfresco.web.bean.workflow.StartWorkflowWizard
caused by:
javax.faces.el.EvaluationException: Bean: org.alfresco.web.bean.workflow.StartWorkflowWizard, property: hasStartableWorkflows
caused by:
java.lang.reflect.InvocationTargetException
caused by:
org.alfresco.service.namespace.NamespaceException: Namespace prefix inwf is not mapped to a namespace URI

Moreover when we stopped alfresco and restarted we were not able to restart it anymore, alfresco giving the same error at startup. We sadly had to recover from a backup.

Can somebody please provide some directions to solve the issue without losing the whole repository content ?

Thanks in advance