javax.faces.FacesException: getContextClassLoader
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Servet_Celik
Posted On:   Thursday, May 11, 2006 07:41 AM

Hi *! I'm new in JSF and when I try to start my recently written app I get the following exception: 2006-05-11 13:55:16 StandardContext[/ontoportal2]StandardWrapper.Throwable javax.faces.FacesException: getContextClassLoader at javax.faces.FactoryFinder.getClassLoader(FactoryFinder.java:338) at javax.faces.FactoryFinder.getFactory(FactoryFinder.java:211) at javax.faces.webapp.FacesServlet.init(FacesServlet.java:128) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1019) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:862) at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3991) at   More>>

Hi *!



I'm new in JSF and when I try to start my recently written app I get the following exception:



2006-05-11 13:55:16 StandardContext[/ontoportal2]StandardWrapper.Throwable
javax.faces.FacesException: getContextClassLoader
at javax.faces.FactoryFinder.getClassLoader(FactoryFinder.java:338)
at javax.faces.FactoryFinder.getFactory(FactoryFinder.java:211)
at javax.faces.webapp.FacesServlet.init(FacesServlet.java:128)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1019)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:862)
at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3991)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4335)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1083)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:789)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1083)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:478)
at org.apache.catalina.core.StandardService.start(StandardService.java:476)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:2298)
at org.apache.catalina.startup.Catalina.start(Catalina.java:556)
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:324)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:284)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:422)


...



ClassLoader not loadable??? Why? I didn't write my own one.

How can I fix this? I'm clueless and any suggestion will be appreciated.

TIA,

Servet

   <<Less

Re: javax.faces.FacesException: getContextClassLoader

Posted By:   rajeev_jha  
Posted On:   Thursday, June 1, 2006 04:03 AM

This normally happens when myFaces servlet is not initialized. Try following steps
1.Add to web.xml


MyFacesExtensionFilter
org.apache.myfaces.component.html.util.ExtensionsFilter


Set the size limit for uploaded files.
Format: 10 - 10 bytes
10k - 10 KB
10m - 10 MB
1g - 1 GB

uploadMaxFileSize
8m



Set the threshold size - files
below this limit are stored in memory, files above
this limit are stored on disk.

Format: 10 - 10 bytes
10k - 10 KB
10m - 10 MB
1g - 1 GB

uploadThresholdSize
8m



Set the path where the intermediary files will be stored.

uploadRepositoryPath
/tmp



MyFacesExtensionFilter
*.jsf


MyFacesExtensionFilter
*.faces


MyFacesExtensionFilter
/faces/*


2. start your application using url for example

http://hostname:port/faces/login.jsp
About | Sitemap | Contact