cancel
Showing results for 
Search instead for 
Did you mean: 

Trying to install 'JavaScript - Console'....

sam4alf
Champ in-the-making
Champ in-the-making
Hi all,

I'm trying to install/deploy this javascript console found at http://code.google.com/p/share-extras/wiki/JavascriptConsole. The instructions said "simply drop the javascript-console.jar file into the tomcat/shared/lib folder within your Alfresco installation, and restart the application server." We are using JBoss, so I've dropped this jar into "/opt/alfresco-3.4.d/jboss-5.1.0.GA/lib" folder. Restarted app server but nothing happened. I kept the jar file inside alfresco.war and share.war and restarted app server. Nothing happened.

I even tried copying this jar file to "/opt/alfresco-3.4.d/tomcat/shared/lib" (I know we are not using this tomcat) but nothing happened.

What am I missing and where exactly this jar file should be copied to?

Thanks for any suggestions.

-Sarma.
3 REPLIES 3

flm
Champ in-the-making
Champ in-the-making
Hi Sarma,

I'm not sure about the JBoss deployment. The Wiki says to use <alfresco>/jboss/server/default/conf/alfresco/extension for extensions, so if there is no shared lib directory in JBoss you could probably unpack the jar file into <alfresco>/jboss/server/default/conf/

The javascript console contains extensions for both webapps (alfresco.war and share.war) so you need a location that is accessible for both webapps.

Let me know if you find a solution so we can add it to the share-extras documentation.

Regards,
Florian

wabson
Star Contributor
Star Contributor
Hi Sarma,

This sounds like a general issue with deploying shared JAR libraries in JBoss. I did a quick web search and found a few suggested solutions (e.g. http://stackoverflow.com/questions/2108975/jboss-shared-library) but I'm afraid I don't have a local instance here to test against.

BTW, I assume when you say "nothing happens" that you mean you do not see the JS Console listed on the LHS when you go into the Admin Console? Unless you navigate into this area of the application then you won't see the component and nothing will "happen" as such.

Other Extras add-ons may also require additional configuration to hook them into the UI, but this should be clearly documented on the wiki page for the add-on.

As Florian says do let us know if you find a solution that works for you.

Cheers,
Will.

sam4alf
Champ in-the-making
Champ in-the-making
Hi Will,

Thanks for your reply. I did place the jar file inside "<Jboss-home>/server/default/lib" and restarted server. I also tried Florian's suggestion of placing them extracted inside "/server/default/conf". In either case, I don't see the console option in Share.

Thanks,
Sarma.