This discussion is archived
0 Replies Latest reply: Feb 18, 2009 11:15 AM by 807575 RSS

MethodUtils - Cant use JVM pre-1.4 access bug workaround die to res. sec.ma

807575 Newbie
Currently Being Moderated
Hi all,
I implemented a jsf implementation and uploaded it into a hosting company.
When I call my site it gives me an error " The requested resource (/index.jsp) is not available."
When I wrote company about my issue they reported me below.
Thank you for contacting Hosting Support.
After looking into the issue it appears there is an error with the coding you are attempting to use with your web.xml file. The following error log shows an issue with the InjectionProviderFactory code you are using with your file. This is not allowed on our servers.

Feb 18, 2009 1:32:12 AM com.sun.faces.config.ConfigureListener contextInitialized
INFO: Initializing Sun's JavaServer Faces implementation (1.2_04-b10-p01) for context ''
[WARN] MethodUtils - Cannot use JVM pre-1.4 access bug workaround die to restrictive security manager.
Feb 18, 2009 1:32:14 AM com.sun.faces.spi.InjectionProviderFactory createInstance
WARNING: JSF1033: Resource injection is DISABLED.
java.security.AccessControlException: access denied (java.lang.RuntimePermission createClassLoader)
at java.security.AccessControlContext.checkPermission(AccessControlContext.java:264)
at java.security.AccessController.checkPermission(AccessController.java:427)
at java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
at java.lang.SecurityManager.checkCreateClassLoader(SecurityManager.java:594)
at java.lang.ClassLoader.(ClassLoader.java:201)
.........

Feb 18, 2009 1:32:15 AM org.apache.catalina.core.StandardContext start
SEVERE: Error listenerStart
Feb 18, 2009 1:32:15 AM org.apache.catalina.core.StandardContext start
SEVERE: Context startup failed due to previous errors
You will need to review your web.xml file for the coding issue and make changes to allow the site to run properly.
Actually I dont know anything about InjectionProviderFactory and what is not allowed here and donot know anything what to do web.xml
my web.xml is below
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app>
...
<filter>
<filter-name>Acegi Filter Chain Proxy</filter-name>
<filter-class>org.acegisecurity.util.FilterToBeanProxy</filter-class>
<init-param>
<param-name>targetClass</param-name>
<param-value>org.acegisecurity.util.FilterChainProxy</param-value>
</init-param>
</filter>

<filter-mapping>
<filter-name>Acegi Filter Chain Proxy</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>

     <listener>
     <listener-class>com.sun.faces.config.ConfigureListener</listener-class>
     </listener>
     <listener>
          <listener-class>com.icesoft.faces.util.event.servlet.ContextEventRepeater</listener-class>
     </listener>
     <listener>
     <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
     </listener>
     
<servlet>
<servlet-name>Faces Servlet</servlet-name>
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
<load-on-startup> 1 </load-on-startup>
</servlet>

<servlet>
<servlet-name>Persistent Faces Servlet</servlet-name>
<servlet-class>com.icesoft.faces.webapp.xmlhttp.PersistentFacesServlet</servlet-class>
<load-on-startup> 1 </load-on-startup>
</servlet>

<servlet>
<servlet-name>Blocking Servlet</servlet-name>
<servlet-class>com.icesoft.faces.webapp.xmlhttp.BlockingServlet</servlet-class>
<load-on-startup> 1 </load-on-startup>
</servlet>
<!-- Source Code reader servlet-->
<servlet>
<servlet-name>SourceCode Reader</servlet-name>
<servlet-class>org.icefaces.application.showcase.util.SourceCodeLoaderServlet</servlet-class>
</servlet>

<!-- file upload Servlet -->
<servlet>
<servlet-name>uploadServlet</servlet-name>
<servlet-class>com.icesoft.faces.component.inputfile.FileUploadServlet</servlet-class>
<load-on-startup> 1 </load-on-startup>
</servlet>
<!-- Faces Servlet Mapping -->
<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>*.faces</url-pattern>
</servlet-mapping>

<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>*.jspx</url-pattern>
</servlet-mapping>

<!-- Persistent Faces Servlet Mapping -->
<servlet-mapping>
<servlet-name>Persistent Faces Servlet</servlet-name>
<url-pattern>*.iface</url-pattern>
</servlet-mapping>

<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
</web-app>