Thank you very much for your answer.
Regards,
Julien

Le 28/09/2010 08:35, Tomas Gustavsson a écrit :
There are a few options.
If your application will always be deployed together with ejbca on jboss, you don't have to include the jars in your app. Just make sure ejbca is deployed first and the classes will be used from there.

Actually even if you include the jars in your app, it should work if ejbca is deployed first. I think it's deployed in alfabetical order, otherwise it is possible to set dependencies.

One other thing is that if you have multiple apps with the same classes you usually need to restart jboss if you re-deploy say ejbca. It usually does not work with live auto-deploy.
If only ejbca is running in the appserver live auto-deploy will work, but with multiple apps you need to restart after re-deploy.

Cheers,
Tomas


"Julien PASQUIER" <julienpasquier@free.fr> wrote:

 Thanks for your very clear explanation Tomas.

So what do you recommand to me to avoid this problem?
Does EJBCA WS dependencies move from my EAR to the "server/default/lib" 
of JBoss may be a good solution?

Regards,
Julien

Le 27/09/2010 10:29, Tomas Gustavsson a écrit :
 Since JBoss has (by default) a shared class loader it can simply be
 related to the order of how classes are loaded. If somthing is pub in
  the global class loader (server/default/lib) it should also be
 available to all classes.

 Class loading issues are truly disturbing, I'm totally with you
 there!

 Cheers, Tomas

 On 09/27/2010 10:23 AM, Julien PASQUIER wrote:
Hum... it's strange! Now I cannot reproduce this problem. It's
quite disturbing, isn't it? Julien

Le 27/09/2010 10:08, Tomas Gustavsson a écrit :
Ok, then it is because of class loading issues.
AccessRulesConstants.STANDARDREGULARACCESSRULES is protected and
can thus not be accessed from another class loader.

You can change AccessRulesConstants.STANDARDREGULARACCESSRULES
from protected to public and redeploy all applications.

Cheers, Tomas


On 09/27/2010 09:49 AM, Julien PASQUIER wrote:
I use JBoss 4.2.3.

I just find the cause of this problem! Indeed, I have my own
EAR application in the deploy directory of JBoss (which already
contains ejbca.ear). This application uses WS interface of
EJBCA to generate certificates and it works fine. This
application contains the following dependencies in the lib
directory of its EAR file: ejbca-util.jar ejbca-ws-cli.jar
ejbca-ws.jar

If I remove this application from JBoss, I do not obtain the
error, otherwise this strange error (in the EJBCA admin web)
occurs.

Could you help me to solve this problem?

Regards, Julien

Le 27/09/2010 08:35, Tomas Gustavsson aécrit :
What apppserver are you using? I can not get this error.

Did you do 'ant upgrade'?

How about a simple 'ant clean; ant bootstrap' in the new
EJBCA and then restart the appserver.

Did you make any other special configurations in the
appserver? For example "loader-repository" in jboss-app.xml?

(the error is strange)

Cheers, Tomas

On 09/27/2010 07:47 AM, Julien PASQUIER wrote:
Hello,

I just upgrade EJBCA 3.10.5 from 3.9.4 with success. But
when I try to display the "Edit Admiistrator Privileges"
page from the EJBCA Admin Web I get the following error
(see below). Thanks for your help. Regards, Julien


/administratorprivileges/administratorprivileges.jsp(66,3)
'#{!adminGroupsManagedBean.basicRuleSetForEach.forceAdvanced}'


Error reading 'basicRuleSetForEach' on type
org.ejbca.ui.web.admin.administratorprivileges.AdminGroupsManagedBean



org.apache.jasper.el.JspELException: 
/administratorprivileges/administratorprivileges.jsp(66,3) 
'#{!adminGroupsManagedBean.basicRuleSetForEach.forceAdvanced}' Error 
reading 'basicRuleSetForEach' on type 
org.ejbca.ui.web.admin.administratorprivileges.AdminGroupsManagedBean
at

org.apache.jasper.el.JspValueExpression.getValue(JspValueExpression.java:107)

at 
javax.faces.component.UIComponentBase.isRendered(UIComponentBase.java:390)
at

com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:227)

at 
com.sun.faces.renderkit.html_basic.TableRenderer.renderRow(TableRenderer.java:312)
at

com.sun.faces.renderkit.html_basic.TableRenderer.encodeChildren(TableRenderer.java:133)

at 
javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:837)
at
javax.faces.component.UIComponent.encodeAll(UIComponent.java:936)


at javax.faces.render.Renderer.encodeChildren(Renderer.java:148)
at

javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:837)

at javax.faces.component.UIComponent.encodeAll(UIComponent.java:936)
at
javax.faces.component.UIComponent.encodeAll(UIComponent.java:942)


at 
com.sun.faces.application.ViewHandlerImpl.doRenderView(ViewHandlerImpl.java:271)
at

com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:202)

at 
com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:109)
at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100) at
com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)


at javax.faces.webapp.FacesServlet.service(FacesServlet.java:266)
at

org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)

at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at

org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)

at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at

org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
at

org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)

at 
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:182)
at

org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:524)

at 
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
at

org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)

at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at

org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)

at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at

org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)

at org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:437)
at

org.apache.coyote.ajp.AjpProtocol$AjpConnectionHandler.process(AjpProtocol.java:366)

at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
at java.lang.Thread.run(Thread.java:619) Caused by:
javax.ejb.EJBException: Unexpected Error
java.lang.IllegalAccessError: tried to access field

org.ejbca.core.model.authorization.AccessRulesConstants.STANDARDREGULARACCESSRULES
from class
org.ejbca.core.model.authorization.AvailableAccessRules at

org.ejbca.core.model.authorization.AvailableAccessRules.insertAvailableRegularAccessRules(AvailableAccessRules.java:98)

at 
org.ejbca.core.model.authorization.AvailableAccessRules.getAvailableAccessRules(AvailableAccessRules.java:67)
at

org.ejbca.core.ejb.authorization.LocalAuthorizationSessionBean.getAuthorizedAvailableAccessRules(LocalAuthorizationSessionBean.java:811)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at

sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597) at
org.jboss.invocation.Invocation.performCall(Invocation.java:359)


at 
org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:237)
at

org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:158)

at 
org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:169)
at

org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidationInterceptor.java:63)

at 
org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:121)
at

org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:378)

at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:181)
at

org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:168)

at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:205)
at

org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:138)

at org.jboss.ejb.SessionContainer.internalInvoke(SessionContainer.java:648)
at org.jboss.ejb.Container.invoke(Container.java:960) at

org.jboss.ejb.plugins.local.BaseLocalProxyFactory.invoke(BaseLocalProxyFactory.java:430)

at 
org.jboss.ejb.plugins.local.StatelessSessionProxy.invoke(StatelessSessionProxy.java:103)
at $Proxy340.getAuthorizedAvailableAccessRules(Unknown
Source) at

org.ejbca.ui.web.admin.configuration.InformationMemory.getAuthorizedAccessRules(InformationMemory.java:370)

at 
org.ejbca.ui.web.admin.configuration.AuthorizationDataHandler.getAvailableAccessRules(AuthorizationDataHandler.java:163)
at

org.ejbca.ui.web.admin.administratorprivileges.AdminGroupsManagedBean.getBasicRuleSetInternal(AdminGroupsManagedBean.java:367)

at 
org.ejbca.ui.web.admin.administratorprivileges.AdminGroupsManagedBean.getBasicRuleSetForEach(AdminGroupsManagedBean.java:105)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method) at

sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597) at
javax.el.BeanELResolver.getValue(BeanELResolver.java:62) at
javax.el.CompositeELResolver.getValue(CompositeELResolver.java:53)


at 
com.sun.faces.el.FacesCompositeELResolver.getValue(FacesCompositeELResolver.java:72)
at
org.apache.el.parser.AstValue.getValue(AstValue.java:97) at
org.apache.el.parser.AstNot.getValue(AstNot.java:26) at

org.apache.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:186)

at 
org.apache.jasper.el.JspValueExpression.getValue(JspValueExpression.java:101)
at

javax.faces.component.UIComponentBase.isRendered(UIComponentBase.java:390)

at 
com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:227)
at

com.sun.faces.renderkit.html_basic.TableRenderer.renderRow(TableRenderer.java:312)

at 
com.sun.faces.renderkit.html_basic.TableRenderer.encodeChildren(TableRenderer.java:133)
at

javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:837)

at javax.faces.component.UIComponent.encodeAll(UIComponent.java:936)
at
javax.faces.render.Renderer.encodeChildren(Renderer.java:148)


at 
javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:837)
at
javax.faces.component.UIComponent.encodeAll(UIComponent.java:936)


at javax.faces.component.UIComponent.encodeAll(UIComponent.java:942)
at

com.sun.faces.application.ViewHandlerImpl.doRenderView(ViewHandlerImpl.java:271)

at 
com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:202)
at

com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:109)

at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
at
com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)


at javax.faces.webapp.FacesServlet.service(FacesServlet.java:266)
at

org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)

at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at

org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)

at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at

org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
at

org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)

at 
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:182)
at

org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:524)

at 
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
at

org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)

at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at

org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)

at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at

org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)

at org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:437)
at

org.apache.coyote.ajp.AjpProtocol$AjpConnectionHandler.process(AjpProtocol.java:366)

at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
at java.lang.Thread.run(Thread.java:619)

at

org.jboss.ejb.plugins.LogInterceptor.handleException(LogInterceptor.java:430)

at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:209)
at

org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:138)

at org.jboss.ejb.SessionContainer.internalInvoke(SessionContainer.java:648)
at org.jboss.ejb.Container.invoke(Container.java:960) at

org.jboss.ejb.plugins.local.BaseLocalProxyFactory.invoke(BaseLocalProxyFactory.java:430)

at 
org.jboss.ejb.plugins.local.StatelessSessionProxy.invoke(StatelessSessionProxy.java:103)
at $Proxy340.getAuthorizedAvailableAccessRules(Unknown
Source) at

org.ejbca.ui.web.admin.configuration.InformationMemory.getAuthorizedAccessRules(InformationMemory.java:370)

at 
org.ejbca.ui.web.admin.configuration.AuthorizationDataHandler.getAvailableAccessRules(AuthorizationDataHandler.java:163)
at

org.ejbca.ui.web.admin.administratorprivileges.AdminGroupsManagedBean.getBasicRuleSetInternal(AdminGroupsManagedBean.java:367)

at 
org.ejbca.ui.web.admin.administratorprivileges.AdminGroupsManagedBean.getBasicRuleSetForEach(AdminGroupsManagedBean.java:105)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method) at

sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597) at
javax.el.BeanELResolver.getValue(BeanELResolver.java:62) at
javax.el.CompositeELResolver.getValue(CompositeELResolver.java:53)


at 
com.sun.faces.el.FacesCompositeELResolver.getValue(FacesCompositeELResolver.java:72)
at
org.apache.el.parser.AstValue.getValue(AstValue.java:97) at
org.apache.el.parser.AstNot.getValue(AstNot.java:26) at

org.apache.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:186)

at 
org.apache.jasper.el.JspValueExpression.getValue(JspValueExpression.java:101)
... 35 more





------------------------------------------------------------------------------

Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment
and accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev



_______________________________________________
Ejbca-develop mailing list
Ejbca-develop@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ejbca-develop

                
------------------------------------------------------------------------------

Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________ Ejbca-develop
mailing list Ejbca-develop@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ejbca-develop



------------------------------------------------------------------------------

Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev



_______________________________________________ Ejbca-develop
mailing list Ejbca-develop@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ejbca-develop

------------------------------------------------------------------------------

Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________ Ejbca-develop
mailing list Ejbca-develop@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ejbca-develop




------------------------------------------------------------------------------

Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev



_______________________________________________ Ejbca-develop
mailing list Ejbca-develop@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ejbca-develop


------------------------------------------------------------------------------

Start uncovering the many advantages of virtual appliances
 and start using them to simplify application deployment and
 accelerate your shift to cloud computing.
 http://p.sf.net/sfu/novell-sfdev2dev
 _______________________________________________ Ejbca-develop mailing
 list Ejbca-develop@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/ejbca-develop


R
------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev_______________________________________________
Ejbca-develop mailing list
Ejbca-develop@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ejbca-develop

------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
Ejbca-develop mailing list
Ejbca-develop@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ejbca-develop