JBoss Community

How to share additional libraries, Jboss 5.1.0GA?

created by Akaine Harga in Beginner's Corner - View the full discussion

Hello

 

I know this is one the most common questions, still after an extensive search I couldn't find the answer.

 

The problem is simple:

I've got one or more EAR apps and their WAR components use external libraries (richfaces, commons, etc.). While I deploy the EARs with their respective libs inside I have no problems but as soon as I try to put at least one lib inside any of known shared dirs (common/lib/ or server/default/lib/) I can't even start the AS without admin-console app throwing exceptions. Needless to say my apps won't deploy as well after this.

 

Normally I could live with all my libs staying inside the WARs. But since I frequently redeploy the applications remotely and JBoss fails to wait until I upload them entirely trying to deploy partially uploaded EARs I was thinking to share the used libs so I could limit myself to uploading the pure compiled projects which weight ten times less than my libs.

 

I don't know if this is a normal behavior but even with one richfaces jar inside any of two previously mentioned dirs (no EARs deployed, clean Jboss installation) I get:

 

20:15:11,656 INFO  [TomcatDeployment] deploy, ctxPath=/admin-console
20:15:11,734 INFO  [config] Initializing Mojarra (1.2_12-b01-FCS) for context '/admin-console'
20:15:12,375 ERROR [Digester] End event threw exception
java.lang.reflect.InvocationTargetException
    at sun.reflect.GeneratedMethodAccessor260.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.apache.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.java:216)

...

 

    at org.jboss.Main.boot(Main.java:221)
    at org.jboss.Main$1.run(Main.java:556)
    at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.NullPointerException
    at org.ajax4jsf.resource.InternetResourceBase.restoreData(InternetResourceBase.java:248)
    at org.richfaces.renderkit.html.Paint2DResource.getRenderer(Paint2DResource.java:68)
    at org.ajax4jsf.resource.ResourceBuilderImpl.addResource(ResourceBuilderImpl.java:406)
    ... 104 more
20:15:12,390 ERROR [[/admin-console]] Exception sending context initialized event to listener instance of class org.jboss.web.jsf.integration.config.JBossJSFConfigureListener
com.sun.faces.config.ConfigurationException: CONFIGURATION FAILED! null
    at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:213)

...

 

    at org.jboss.Main.boot(Main.java:221)
    at org.jboss.Main$1.run(Main.java:556)
    at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.NullPointerException
    at org.ajax4jsf.resource.InternetResourceBase.restoreData(InternetResourceBase.java:248)
    at org.richfaces.renderkit.html.Paint2DResource.getRenderer(Paint2DResource.java:68)

 

The complete start log is in the attacked txt.

 

Thanks in advance :)

Reply to this message by going to Community

Start a new discussion in Beginner's Corner at Community