cancel
Showing results for 
Search instead for 
Did you mean: 

JS extension bean not loaded when init-method specified

matjazmuhic
Champ on-the-rise
Champ on-the-rise
I have created a javascript extension bean and specified the init-method property (spring bean) but it doesn't get loaded. If I remove init-method it loads properly.

How come this happens?

(Using alfresco 4.0.d community)
2 REPLIES 2

mrogers
Star Contributor
Star Contributor
I suspect your bean does not have public visibility for your init method.   But without you posting the relevant error details from your alfresco.log files, your code and configuration that's just a guess.

matjazmuhic
Champ on-the-rise
Champ on-the-rise
There's no errors. That's what's strange. My init method (named simply "init") was public actually. That's why it seemed strange.

Here's my bean xml:

<bean id="pdfDigSigService" parent="baseJavaScriptExtension" class="com.example.PdfDigitalSignatureJsExt" init-method="init">
  <property name="extensionName">
   <value>pdfDigSigService</value>
  </property>
  <property name="contentService">
   <ref bean="contentService" />
  </property>
</bean>