You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-dev@portals.apache.org by "Ate Douma (JIRA)" <je...@portals.apache.org> on 2010/02/18 15:41:27 UTC

[jira] Closed: (JS2-1050) BeanFactory not initialized or already closed - call 'refresh' before accessing beans via the ApplicationContext

     [ https://issues.apache.org/jira/browse/JS2-1050?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ate Douma closed JS2-1050.
--------------------------

    Resolution: Invalid

This definitely is not a Jetspeed bug but most likely a Spring configuration error.
You should check the full error log (in jetspeed.log) and watch for the *first* error reported by Spring, the one you pasted in only shows the side-effect result of BeanFactory not been initialized.
Best send further questions concerning this/these problems to the mailing list, not JIRA.

> BeanFactory not initialized or already closed - call 'refresh' before accessing beans via the ApplicationContext
> ----------------------------------------------------------------------------------------------------------------
>
>                 Key: JS2-1050
>                 URL: https://issues.apache.org/jira/browse/JS2-1050
>             Project: Jetspeed 2
>          Issue Type: Bug
>    Affects Versions: 2.2.0
>            Reporter: Gonzalo Aguilar
>
> Hi all, 
> I found the portal doing strange things when init. It really does not get initializated becasue following error:
> java.lang.IllegalStateException: BeanFactory not initialized or already closed - call 'refresh' before accessing beans via the ApplicationContext
> 	at org.springframework.context.support.AbstractRefreshableApplicationContext.getBeanFactory(AbstractRefreshableApplicationContext.java:153)
> 	at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:880)
> 	at org.apache.jetspeed.components.SpringComponentManager.getComponent(SpringComponentManager.java:182)
> 	at org.apache.jetspeed.velocity.JetspeedVelocityViewServlet.init(JetspeedVelocityViewServlet.java:162)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> 	at java.lang.reflect.Method.invoke(Method.java:616)
> 	at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:269)
> 	at java.security.AccessController.doPrivileged(Native Method)
> 	at javax.security.auth.Subject.doAsPrivileged(Subject.java:537)
> 	at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:301)
> 	at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:162)
> 	at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:115)
> 	at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1167)
> 	at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:993)
> 	at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4149)
> 	at org.apache.catalina.core.StandardContext.start(StandardContext.java:4458)
> 	at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
> 	at org.apache.catalina.core.ContainerBase.access$000(ContainerBase.java:123)
> 	at org.apache.catalina.core.ContainerBase$PrivilegedAddChild.run(ContainerBase.java:145)
> 	at java.security.AccessController.doPrivileged(Native Method)
> 	at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:769)
> 	at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:526)
> 	at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:630)
> 	at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:556)
> 	at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:491)
> 	at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1206)
> 	at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:314)
> 	at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
> 	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
> 	at org.apache.catalina.core.StandardHost.start(StandardHost.java:722)
> 	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
> 	at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
> 	at org.apache.catalina.core.StandardService.start(StandardService.java:516)
> 	at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
> 	at org.apache.catalina.startup.Catalina.start(Catalina.java:583)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> 	at java.lang.reflect.Method.invoke(Method.java:616)
> 	at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> 	at java.lang.reflect.Method.invoke(Method.java:616)
> 	at org.apache.commons.daemon.support.DaemonLoader.start(DaemonLoader.java:177)
> 29-jul-2009 0:43:16 org.apache.catalina.core.StandardContext loadOnStartup
> And it redirects me to the page diagnose where:
> Request Error Diagnostics
> Error ID	   	FXP7R0MX
> Message		java.security.AccessControlException: access denied (java.util.PropertyPermission JetspeedBeanDefinitionFilter.categoriesKey read)
> Path		/crmportal/portal
> Click here to go back to the previous page.
> Server Status
> Free Memory (KB)	   	127473
> Total Memory (KB)		153216
> What can cause this faillure?
> Tnx

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org