voyent
OC4J 10.1.2.0.2 with ICEFaces 1.8.2 and Java 1.4.2  XML
Forum Index -> General Help
Author Message
GhostNr1

Joined: 21/Dec/2009 00:00:00
Messages: 3
Offline


Hi!

I hope this is posted at the right place, and there are someone that have some thought what is the problem and what I can do to fix this problem.

I am running an old website and I can't upgrade to a later OC4J then 10.1.2.0.2, I have seen that it can solve alot of problem so I'm little sad about that, but that is the case.

I have tryed to get the timezone tutorial app to work inside our webpage, and as long I don't try to call the java classes it work kinda good. I get the website up and I can see the image. You can't do much but I get the picture up and running.

if my faces-config.xml look like this
Code:
<?xml version="1.0" encoding="UTF-8"?>
 <!DOCTYPE faces-config PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.1//EN" "http://java.sun.com/dtd/web-facesconfig_1_1.dtd">
 
 <faces-config xmlns="http://java.sun.com/JSF/Configuration">
 
     <managed-bean>
         <managed-bean-name>renderManager</managed-bean-name>
         <managed-bean-class>
             com.icesoft.faces.async.render.RenderManager
         </managed-bean-class>
         <managed-bean-scope>application</managed-bean-scope>
     </managed-bean>
 
 </faces-config>


I get a session timeout window when I restart the server and I can reload the page, so it look like that thing is working.

but when I add more things to my faces-config.xml it stop working. Now it look like this
Code:
<?xml version="1.0" encoding="UTF-8"?>
 <!DOCTYPE faces-config PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.1//EN" "http://java.sun.com/dtd/web-facesconfig_1_1.dtd">
 
 <faces-config xmlns="http://java.sun.com/JSF/Configuration">
 
    <application>
        <view-handler>com.icesoft.faces.facelets.D2DFaceletViewHandler</view-handler>
    </application>
 
     <managed-bean>
         <managed-bean-name>renderManager</managed-bean-name>
         <managed-bean-class>
             com.icesoft.faces.async.render.RenderManager
         </managed-bean-class>
         <managed-bean-scope>application</managed-bean-scope>
     </managed-bean>
 
     <managed-bean>
         <managed-bean-name>timeZoneBean</managed-bean-name>
         <managed-bean-class>com.icesoft.tutorial.TimeZoneBean</managed-bean-class>
         <managed-bean-scope>request</managed-bean-scope>
         <managed-property>
             <property-name>renderManager</property-name>
             <value>#{renderManager}</value>
         </managed-property>
     </managed-bean>
 
 </faces-config>


and my web.xml
Code:
 ...
 <context-param>
         <param-name>facelets.LIBRARIES</param-name>
         <param-value>/WEB-INF/oc4j-hacks/components.xml;
 		             /WEB-INF/oc4j-hacks/icefaces.taglib.xml;
 					 /WEB-INF/oc4j-hacks/jsf-core.taglib.xml;
 					 /WEB-INF/oc4j-hacks/jsf-html.taglib.xml;
 					 /WEB-INF/oc4j-hacks/jsf-ui.taglib.xml;
 					 /WEB-INF/oc4j-hacks/jstl-core.taglib.xml;
 					 /WEB-INF/oc4j-hacks/jstl-fn.taglib.xml</param-value>
 		<description>A semicolon (;) delimitted list of paths to Facelet tag libraries</description>
   </context-param>
   
   <context-param>
     <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
     <param-value>server</param-value>
   </context-param>
   
     <context-param> 
           <param-name>javax.faces.DEFAULT_SUFFIX</param-name> 
           <param-value>.jspx</param-value> 
     </context-param>
 
     <context-param>
         <param-name>com.icesoft.faces.synchronousUpdate</param-name>
         <param-value>false</param-value>
     </context-param>
 	
 	  <!-- concurrent DOM views -->
 	  <context-param>
 		<param-name>com.icesoft.faces.concurrentDOMViews</param-name>
 		<param-value>false</param-value>
 	  </context-param>
 	
     <listener> 
         <listener-class>com.sun.faces.config.ConfigureListener</listener-class> 
     </listener>
   
   
 
   <!-- Faces Servlet -->
   <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>Main Servlet</servlet-name>
 	<servlet-class>com.icesoft.faces.webapp.http.servlet.MainServlet</servlet-class>
 	<load-on-startup> 1 </load-on-startup>
   </servlet>
   
     <!-- Persistent Faces 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>
 
     <!-- Blocking 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>
   
   <!-- Persistent Faces Servlet Mappings -->
   <servlet-mapping>
     <servlet-name>Persistent Faces Servlet</servlet-name>
     <url-pattern>/xmlhttp/*</url-pattern>
   </servlet-mapping>
   
   <servlet-mapping>
     <servlet-name>Persistent Faces Servlet</servlet-name>
     <url-pattern>*.iface</url-pattern>
   </servlet-mapping>
 
   <!-- Faces Servlet Mapping -->
   <servlet-mapping>
     <servlet-name>Faces Servlet</servlet-name>
     <url-pattern>*.faces</url-pattern>
   </servlet-mapping>
     
 	<!-- Blocking Servlet Mapping -->
   <servlet-mapping>
     <servlet-name>Blocking Servlet</servlet-name>
     <url-pattern>/block/*</url-pattern>
   </servlet-mapping>
 ...
 


The error I recive from the webpage is "java.lang.Exception: java.lang.NoClassDefFoundError: javax/faces/event/ActionEvent"

and my webserver report this error
com.sun.facelets.compiler.Compiler initialize
Compiler Initialization Error
java.net.MalformedURLException: unknown protocol: jndi
at java.net.URL.<init>(URL.java:544)
at java.net.URL.<init>(URL.java:434)
at java.net.URL.<init>(URL.java:383)
at com.sun.facelets.util.Classpath.searchFromURL(Classpath.java:155)
at com.sun.facelets.util.Classpath.search(Classpath.java:79)
at com.sun.facelets.compiler.TagLibraryConfig.loadImplicit(TagLibraryConfig.java:428)
at com.sun.facelets.compiler.Compiler.initialize(Compiler.java:91)
 


jar files I have added in my lib are
- backport-util-concurrent.jar
- commons-beanutils.jar
- commons-collections.jar
- commons-digester.jar
- commons-discovery.jar
- commons-el.jar
- commons-fileupload.jar
- commons-logging.jar
- el-api.jar
- el-ri.jar
- FastInfoset.jar
- icefaces.jar
- icefaces-comps.jar
- icefaces-facelets.jar
- jsf-api.jar
- jsf-impl.jar
- jstl.jar
- xercesImpl.jar
- xml-apis.jar

I hope this is all the info that you need to help me out here. I'm out of suggestion to get this to work. I guess I have just missed a tiny little thing.
GhostNr1

Joined: 21/Dec/2009 00:00:00
Messages: 3
Offline


I have been testing some more but I don't get much longer. But I have tryed to strip out everything and just get the small example to work. I try to run timezone 2 and 5 but both end up with the same exception on the page.

java.lang.Exception: java.lang.NoClassDefFoundError: com/icesoft/faces/async/render/Renderable at com.icesoft.faces.context.View.servePage(View.java:152) at com.icesoft.faces.webapp.http.core.MultiViewServer.service(MultiViewServer.java:67) at com.icesoft.faces.webapp.http.common.ServerProxy.service(ServerProxy.java:11) at com.icesoft.faces.webapp.http.servlet.MainSessionBoundServlet$4.service(MainSessionBoundServlet.java:149) at com.icesoft.faces.webapp.http.common.standard.PathDispatcherServer.service(PathDispatcherServer.java:24) at com.icesoft.faces.webapp.http.servlet.BasicAdaptingServlet.service(BasicAdaptingServlet.java:16) at com.icesoft.faces.webapp.http.servlet.PathDispatcher.service(PathDispatcher.java:23) at com.icesoft.faces.webapp.http.servlet.SessionDispatcher.service(SessionDispatcher.java:53) at com.icesoft.faces.webapp.http.servlet.PathDispatcher.service(PathDispatcher.java:23) at com.icesoft.faces.webapp.http.servlet.MainServlet.service(MainServlet.java:131) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:824) at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:330) at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:830) at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:285) at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:126) at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:186) at java.lang.Thread.run(Thread.java:534)Caused by: java.lang.NoClassDefFoundError: com/icesoft/faces/async/render/Renderable at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:539) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123) at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].util.OC4JSecureClassLoader.defineClassEntry(OC4JSecureClassLoader.java:172) at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].naming.ContextClassLoader.defineClass(ContextClassLoader.java:1179) at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].naming.ContextClassLoader.defineClass(ContextClassLoader.java:1065) at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].naming.ContextClassLoader.findClass(ContextClassLoader.java:404) at java.lang.ClassLoader.loadClass(ClassLoader.java:289) at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].naming.ContextClassLoader.loadClass(ContextClassLoader.java:143) at java.lang.ClassLoader.loadClass(ClassLoader.java:282) at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].naming.ContextClassLoader.loadClass(ContextClassLoader.java:143) at java.lang.ClassLoader.loadClass(ClassLoader.java:235) at java.beans.Beans.instantiate(Beans.java:187) at java.beans.Beans.instantiate(Beans.java:48) at com.sun.faces.config.ManagedBeanFactory.newInstance(ManagedBeanFactory.java:223) at com.sun.faces.application.ApplicationAssociate.createAndMaybeStoreManagedBeans(ApplicationAssociate.java:306) at com.sun.faces.el.VariableResolverImpl.resolveVariable(VariableResolverImpl.java:97) at com.sun.facelets.el.LegacyELContext$LegacyELResolver.getValue(LegacyELContext.java:134) at com.sun.el.parser.AstIdentifier.getValue(AstIdentifier.java:44) at com.sun.el.parser.AstValue.getValue(AstValue.java:85) at com.sun.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:183) at com.sun.facelets.el.ELText$ELTextVariable.toString(ELText.java:174) at com.sun.facelets.compiler.AttributeInstruction.write(AttributeInstruction.java:49) at com.sun.facelets.compiler.UIInstructions.encodeBegin(UIInstructions.java:39) at com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:489) at com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:497) at com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:497) at com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:497) at com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:497) at com.icesoft.faces.facelets.D2DFaceletViewHandler.renderResponse(D2DFaceletViewHandler.java:282) at com.icesoft.faces.application.D2DViewHandler.renderView(D2DViewHandler.java:159) at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:107) at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:245) at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:137) at com.icesoft.faces.webapp.http.core.JsfLifecycleExecutor.apply(JsfLifecycleExecutor.java:19) at com.icesoft.faces.context.View$2$1.respond(View.java:48) at com.icesoft.faces.webapp.http.servlet.ServletRequestResponse.respondWith(ServletRequestResponse.java:201) at com.icesoft.faces.context.View$2.serve(View.java:77) at com.icesoft.faces.context.View.servePage(View.java:149) 


I still get unknown protocol: jndi on the server.
Maybe this can help some more to figure out what I'm doing wrong.
venu_dvmr

Joined: 30/Sep/2008 00:00:00
Messages: 58
Offline


Are you able to run facelets in OC4J 10.1.2? Coz I was not able to get it running on OAS 10.1.2 and I would like to know if you were able to get it running?
GhostNr1

Joined: 21/Dec/2009 00:00:00
Messages: 3
Offline


I didn't get it running, on 10.1.2.
I have some thought it can be our web.xml file that is the problem and that we have a kinda complex system that I was testing it into. Was to lazy to set it up in an own space so it might have been some security filter or simular that was the problem.

But I guess alot now thought...
If there is something I can help you with just post in what you have done and the error and I can see if there is something simular I had and maybe you can get it running. What I could see was the main problem in OAS 10.1.2 was the library loading that you need to make manualy becouse OAS can't load more then one (or something like that) library if you don't tell it todo it.

Hope this make some sence to you, and good luck!
 
Forum Index -> General Help
Go to:   
Powered by JForum 2.1.7ice © JForum Team