3 Ответы Последний ответ: 24.04.2008 17:22, автор: 75081

    jsp libraries / jdeveloper11g

    596644
      ok,

      i really don't know if i'm doing something wrong, or it's a bug, but every time i try to put a new jsp tag library on my project, all the others disappear! --and the problem is: i can't open the design view. and my project becomes an "error project".

      is there a simple solution for this?

      thanks.
        • 1. Re: jsp libraries / jdeveloper11g
          436787
          Fernando,

          I have not heard of this issue before, but that does not mean it is not a bug. There are two things to try. First, attempt a clean project and see if the issue can be reproduced. If that does not work please provide me with all of the configuration details for your current project
          and I will see if I can reproduce the issue. Note that a new preview is only a few weeks a way so if you can wait it might be best to see if the problem reproduces in the latest release.

          Thanks,
          Ric
          • 2. Re: jsp libraries / jdeveloper11g
            596644
            Ric

            I've tried to reproduce the problem as you said and i could.

            What i did:

            -Created a new project (Empty);
            -Added a jspx page to the project;
            -Tried to add a new jsp tag library. (In this case, Ajax4Jsf)

            When i click ok on the project proprieties screen, the design view page messes up.
            http://img517.imageshack.us/my.php?image=printscreenus1.jpg


            And on my console - it gives an exception:

            Sep 6, 2007 2:08:20 PM oracle.jdevimpl.webapp.util.Debug logThrowable
            SEVERE: Error in service
            java.lang.RuntimeException: java.lang.IllegalStateException: Application was not properly initialized at startup, could not find Factory: javax.faces.lifecycle.LifecycleFactory
            at oracle.jdevimpl.webapp.design.support.http.DesignTimeServletInfo.init(DesignTimeServletInfo.java:200)
            at oracle.jdevimpl.webapp.design.support.http.DesignTimeServletInfo.service(DesignTimeServletInfo.java:266)
            at oracle.jdevimpl.webapp.design.support.http.DesignTimeRequestDispatcher.dispatch(DesignTimeRequestDispatcher.java:284)
            at oracle.jdevimpl.webapp.design.support.http.DesignTimeServletContainerContext._service(DesignTimeServletContainerContext.java:788)
            at oracle.jdevimpl.webapp.design.support.http.DesignTimeServletContainerContext._serviceRequest(DesignTimeServletContainerContext.java:724)
            at oracle.jdevimpl.webapp.design.support.http.DesignTimeServletContainerContext.service(DesignTimeServletContainerContext.java:686)
            at oracle.jdevimpl.webapp.design.DesignTimeRenderWebApp.service(DesignTimeRenderWebApp.java:61)
            at oracle.jdevimpl.webapp.design.DesignTimeEngine.service(DesignTimeEngine.java:197)
            at oracle.jdevimpl.webapp.design.view.DomDesignTimeViewDocument._serviceJsp(DomDesignTimeViewDocument.java:1043)
            at oracle.jdevimpl.webapp.design.view.DomDesignTimeViewDocument.rebuildTreeImpl(DomDesignTimeViewDocument.java:196)
            at oracle.jdevimpl.webapp.design.view.DomDesignTimeViewDocument.rebuildImpl(DomDesignTimeViewDocument.java:112)
            at oracle.jdevimpl.webapp.model.content.dom.view.proxy.DomProxyViewDocument.handleActivated(DomProxyViewDocument.java:406)
            at oracle.jdevimpl.webapp.design.view.DomDesignTimeViewDocument.handleActivated(DomDesignTimeViewDocument.java:90)
            at oracle.jdevimpl.webapp.model.content.dom.view.proxy.DomProxyViewDocument.activate(DomProxyViewDocument.java:397)
            at oracle.jdevimpl.webapp.editor.XmlGuiEditor.handleEnabled(XmlGuiEditor.java:356)
            at oracle.jdevimpl.webapp.editor.XmlGuiEditor.setEnabled(XmlGuiEditor.java:330)
            at oracle.jdevimpl.webapp.editor.XmlGuiEditor.setEnabled(XmlGuiEditor.java:309)
            at oracle.jdevimpl.webapp.design.DesignTimeRenderWebAppCache.restartWebApp(DesignTimeRenderWebAppCache.java:187)
            at oracle.jdevimpl.webapp.design.DesignTimeRenderWebAppCache.setAutoRestartState(DesignTimeRenderWebAppCache.java:91)
            at oracle.jdevimpl.webapp.design.DesignTimeUtil.setAutoRestartState(DesignTimeUtil.java:276)
            at oracle.jdevimpl.webapp.design.DesignTimeWebApp.setWebAppAutoRestartState(DesignTimeWebApp.java:185)
            at oracle.jdevimpl.webapp.design.DesignTimeUtil$1.run(DesignTimeUtil.java:254)
            at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
            at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
            at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
            at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
            at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
            at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
            at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
            Caused by: java.lang.IllegalStateException: Application was not properly initialized at startup, could not find Factory: javax.faces.lifecycle.LifecycleFactory
            at javax.faces.FactoryFinder.getFactory(FactoryFinder.java:263)
            at javax.faces.webapp.FacesServlet.init(FacesServlet.java:156)
            at oracle.jdevimpl.webapp.design.support.http.DesignTimeServletInfo.init(DesignTimeServletInfo.java:176)
            ... 28 more
            Sep 6, 2007 2:08:20 PM oracle.jdevimpl.webapp.util.Debug logThrowable
            SEVERE: WEBAPP_INFO:
            Current thread : Thread[AWT-EventQueue-0,6,main]
            Current thread's context class loader : oracle.jdevimpl.webapp.design.DesignTimeWebAppClassLoader@1b4f515
            ClassesPath:
            file:/root/jdeveloper/mywork/Behhive/ProjectTeste/public_html/
            jar:file:/root/teste/ajax4jsf-1.1.1/ajax4jsf/lib/ajax4jsf-1.1.1.jar!/
            Parent ClassLoader: oracle.jdevimpl.webapp.design.classloader.URLClassLoader@14645f6
            Locators:
            oracle.jdevimpl.webapp.design.classloader.DirectoryLocator[ file:/root/jdeveloper/mywork/Behhive/ProjectTeste/classes/ ]
            oracle.jdevimpl.webapp.design.classloader.JarURLLocator[ jar:file:/root/Desktop/jdev11/j2ee/home/lib/ojsp.jar!/ ]
            oracle.jdevimpl.webapp.design.classloader.JarURLLocator[ jar:file:/root/Desktop/jdev11/j2ee/home/jsp/lib/taglib/ojsputil.jar!/ ]
            oracle.jdevimpl.webapp.design.classloader.JarURLLocator[ jar:file:/root/Desktop/jdev11/j2ee/home/oc4j.jar!/ ]
            oracle.jdevimpl.webapp.design.classloader.JarURLLocator[ jar:file:/root/Desktop/jdev11/j2ee/home/lib/pcl.jar!/ ]
            oracle.jdevimpl.webapp.design.classloader.JarURLLocator[ jar:file:/root/Desktop/jdev11/j2ee/home/lib/oc4j-internal.jar!/ ]
            oracle.jdevimpl.webapp.design.classloader.JarURLLocator[ jar:file:/root/Desktop/jdev11/j2ee/home/lib/servlet.jar!/ ]
            oracle.jdevimpl.webapp.design.classloader.JarURLLocator[ jar:file:/root/Desktop/jdev11/j2ee/home/lib/el-ri.jar!/ ]
            oracle.jdevimpl.webapp.design.classloader.JarURLLocator[ jar:file:/root/Desktop/jdev11/jdev/lib/ojc.jar!/ ]
            oracle.jdevimpl.webapp.design.classloader.JarURLLocator[ jar:file:/root/Desktop/jdev11/jdev/lib/ojc-ant.jar!/ ]
            oracle.jdevimpl.webapp.design.classloader.JarURLLocator[ jar:file:/root/Desktop/jdev11/lib/java/shared/oracle.jsf/1.2/jsf-api.jar!/ ]
            oracle.jdevimpl.webapp.design.classloader.JarURLLocator[ jar:file:/root/Desktop/jdev11/lib/java/shared/oracle.jsf/1.2/jsf-ri.jar!/ ]
            oracle.jdevimpl.webapp.design.classloader.JarURLLocator[ jar:file:/root/Desktop/jdev11/lib/java/shared/oracle.jsf/1.2/sun-commons-beanutils.jar!/ ]
            oracle.jdevimpl.webapp.design.classloader.JarURLLocator[ jar:file:/root/Desktop/jdev11/lib/java/shared/oracle.jsf/1.2/sun-commons-collections.jar!/ ]
            oracle.jdevimpl.webapp.design.classloader.JarURLLocator[ jar:file:/root/Desktop/jdev11/lib/java/shared/oracle.jsf/1.2/sun-commons-digester.jar!/ ]
            oracle.jdevimpl.webapp.design.classloader.JarURLLocator[ jar:file:/root/Desktop/jdev11/lib/java/shared/oracle.jsf/1.2/sun-commons-logging.jar!/ ]
            oracle.jdevimpl.webapp.design.classloader.JarURLLocator[ jar:file:/root/Desktop/jdev11/lib/java/shared/oracle.jstl/1.2/jstl-api-1_2.jar!/ ]
            oracle.jdevimpl.webapp.design.classloader.JarURLLocator[ jar:file:/root/teste/ajax4jsf-1.1.1/ajax4jsf/lib/ajax4jsf-1.1.1.jar!/ ]
            Parent ClassLoader: oracle.jdevimpl.webapp.design.DesignTimeWebAppLimiterClassLoader2@9b2a8b

            Sep 6, 2007 2:08:20 PM oracle.jdevimpl.webapp.util.Debug logThrowable
            SEVERE: Error dispatching
            javax.servlet.ServletException: java.lang.RuntimeException: java.lang.IllegalStateException: Application was not properly initialized at startup, could not find Factory: javax.faces.lifecycle.LifecycleFactory
            at oracle.jdevimpl.webapp.design.support.http.DesignTimeServletInfo.service(DesignTimeServletInfo.java:285)
            at oracle.jdevimpl.webapp.design.support.http.DesignTimeRequestDispatcher.dispatch(DesignTimeRequestDispatcher.java:284)
            at oracle.jdevimpl.webapp.design.support.http.DesignTimeServletContainerContext._service(DesignTimeServletContainerContext.java:788)
            at oracle.jdevimpl.webapp.design.support.http.DesignTimeServletContainerContext._serviceRequest(DesignTimeServletContainerContext.java:724)
            at oracle.jdevimpl.webapp.design.support.http.DesignTimeServletContainerContext.service(DesignTimeServletContainerContext.java:686)
            at oracle.jdevimpl.webapp.design.DesignTimeRenderWebApp.service(DesignTimeRenderWebApp.java:61)
            at oracle.jdevimpl.webapp.design.DesignTimeEngine.service(DesignTimeEngine.java:197)
            at oracle.jdevimpl.webapp.design.view.DomDesignTimeViewDocument._serviceJsp(DomDesignTimeViewDocument.java:1043)
            at oracle.jdevimpl.webapp.design.view.DomDesignTimeViewDocument.rebuildTreeImpl(DomDesignTimeViewDocument.java:196)
            at oracle.jdevimpl.webapp.design.view.DomDesignTimeViewDocument.rebuildImpl(DomDesignTimeViewDocument.java:112)
            at oracle.jdevimpl.webapp.model.content.dom.view.proxy.DomProxyViewDocument.handleActivated(DomProxyViewDocument.java:406)
            at oracle.jdevimpl.webapp.design.view.DomDesignTimeViewDocument.handleActivated(DomDesignTimeViewDocument.java:90)
            at oracle.jdevimpl.webapp.model.content.dom.view.proxy.DomProxyViewDocument.activate(DomProxyViewDocument.java:397)
            at oracle.jdevimpl.webapp.editor.XmlGuiEditor.handleEnabled(XmlGuiEditor.java:356)
            at oracle.jdevimpl.webapp.editor.XmlGuiEditor.setEnabled(XmlGuiEditor.java:330)
            at oracle.jdevimpl.webapp.editor.XmlGuiEditor.setEnabled(XmlGuiEditor.java:309)
            at oracle.jdevimpl.webapp.design.DesignTimeRenderWebAppCache.restartWebApp(DesignTimeRenderWebAppCache.java:187)
            at oracle.jdevimpl.webapp.design.DesignTimeRenderWebAppCache.setAutoRestartState(DesignTimeRenderWebAppCache.java:91)
            at oracle.jdevimpl.webapp.design.DesignTimeUtil.setAutoRestartState(DesignTimeUtil.java:276)
            at oracle.jdevimpl.webapp.design.DesignTimeWebApp.setWebAppAutoRestartState(DesignTimeWebApp.java:185)
            at oracle.jdevimpl.webapp.design.DesignTimeUtil$1.run(DesignTimeUtil.java:254)
            at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
            at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
            at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
            at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
            at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
            at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
            at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
            Caused by: java.lang.RuntimeException: java.lang.IllegalStateException: Application was not properly initialized at startup, could not find Factory: javax.faces.lifecycle.LifecycleFactory
            at oracle.jdevimpl.webapp.design.support.http.DesignTimeServletInfo.init(DesignTimeServletInfo.java:200)
            at oracle.jdevimpl.webapp.design.support.http.DesignTimeServletInfo.service(DesignTimeServletInfo.java:266)
            ... 27 more
            Caused by: java.lang.IllegalStateException: Application was not properly initialized at startup, could not find Factory: javax.faces.lifecycle.LifecycleFactory
            at javax.faces.FactoryFinder.getFactory(FactoryFinder.java:263)
            at javax.faces.webapp.FacesServlet.init(FacesServlet.java:156)
            at oracle.jdevimpl.webapp.design.support.http.DesignTimeServletInfo.init(DesignTimeServletInfo.java:176)
            ... 28 more
            Sep 6, 2007 2:08:20 PM oracle.jdevimpl.webapp.util.Debug logThrowable
            SEVERE: WEBAPP_INFO:
            Current thread : Thread[AWT-EventQueue-0,6,main]
            Current thread's context class loader : oracle.jdevimpl.webapp.design.DesignTimeWebAppClassLoader@1b4f515
            ClassesPath:
            file:/root/jdeveloper/mywork/Behhive/ProjectTeste/public_html/
            jar:file:/root/teste/ajax4jsf-1.1.1/ajax4jsf/lib/ajax4jsf-1.1.1.jar!/
            Parent ClassLoader: oracle.jdevimpl.webapp.design.classloader.URLClassLoader@14645f6
            Locators:
            oracle.jdevimpl.webapp.design.classloader.DirectoryLocator[ file:/root/jdeveloper/mywork/Behhive/ProjectTeste/classes/ ]
            oracle.jdevimpl.webapp.design.classloader.JarURLLocator[ jar:file:/root/Desktop/jdev11/j2ee/home/lib/ojsp.jar!/ ]
            oracle.jdevimpl.webapp.design.classloader.JarURLLocator[ jar:file:/root/Desktop/jdev11/j2ee/home/jsp/lib/taglib/ojsputil.jar!/ ]
            oracle.jdevimpl.webapp.design.classloader.JarURLLocator[ jar:file:/root/Desktop/jdev11/j2ee/home/oc4j.jar!/ ]
            oracle.jdevimpl.webapp.design.classloader.JarURLLocator[ jar:file:/root/Desktop/jdev11/j2ee/home/lib/pcl.jar!/ ]
            oracle.jdevimpl.webapp.design.classloader.JarURLLocator[ jar:file:/root/Desktop/jdev11/j2ee/home/lib/oc4j-internal.jar!/ ]
            oracle.jdevimpl.webapp.design.classloader.JarURLLocator[ jar:file:/root/Desktop/jdev11/j2ee/home/lib/servlet.jar!/ ]
            oracle.jdevimpl.webapp.design.classloader.JarURLLocator[ jar:file:/root/Desktop/jdev11/j2ee/home/lib/el-ri.jar!/ ]
            oracle.jdevimpl.webapp.design.classloader.JarURLLocator[ jar:file:/root/Desktop/jdev11/jdev/lib/ojc.jar!/ ]
            oracle.jdevimpl.webapp.design.classloader.JarURLLocator[ jar:file:/root/Desktop/jdev11/jdev/lib/ojc-ant.jar!/ ]
            oracle.jdevimpl.webapp.design.classloader.JarURLLocator[ jar:file:/root/Desktop/jdev11/lib/java/shared/oracle.jsf/1.2/jsf-api.jar!/ ]
            oracle.jdevimpl.webapp.design.classloader.JarURLLocator[ jar:file:/root/Desktop/jdev11/lib/java/shared/oracle.jsf/1.2/jsf-ri.jar!/ ]
            oracle.jdevimpl.webapp.design.classloader.JarURLLocator[ jar:file:/root/Desktop/jdev11/lib/java/shared/oracle.jsf/1.2/sun-commons-beanutils.jar!/ ]
            oracle.jdevimpl.webapp.design.classloader.JarURLLocator[ jar:file:/root/Desktop/jdev11/lib/java/shared/oracle.jsf/1.2/sun-commons-collections.jar!/ ]
            oracle.jdevimpl.webapp.design.classloader.JarURLLocator[ jar:file:/root/Desktop/jdev11/lib/java/shared/oracle.jsf/1.2/sun-commons-digester.jar!/ ]
            oracle.jdevimpl.webapp.design.classloader.JarURLLocator[ jar:file:/root/Desktop/jdev11/lib/java/shared/oracle.jsf/1.2/sun-commons-logging.jar!/ ]
            oracle.jdevimpl.webapp.design.classloader.JarURLLocator[ jar:file:/root/Desktop/jdev11/lib/java/shared/oracle.jstl/1.2/jstl-api-1_2.jar!/ ]
            oracle.jdevimpl.webapp.design.classloader.JarURLLocator[ jar:file:/root/teste/ajax4jsf-1.1.1/ajax4jsf/lib/ajax4jsf-1.1.1.jar!/ ]
            Parent ClassLoader: oracle.jdevimpl.webapp.design.DesignTimeWebAppLimiterClassLoader2@9b2a8b

            Sep 6, 2007 2:08:20 PM oracle.jdevimpl.webapp.util.Debug logWebApp
            SEVERE: WEBAPP_INFO:
            Servlet # 0
            Name:Faces Servlet
            Class:Faces Servlet
            Load on startup:1

            Servlet Mapping # 0
            Name:Faces Servlet
            Url Pattern:/faces/*

            Contains zero filters.

            Sep 6, 2007 2:08:20 PM oracle.jdevimpl.webapp.util.Debug logProjectTagLibraries
            SEVERE: WEBAPP_INFO:
            JspLibrary # 0
            Name:JSF Core
            Version:1.2
            URI:http://java.sun.com/jsf/core

            JspLibrary # 1
            Name:JSF HTML
            Version:1.2
            URI:http://java.sun.com/jsf/html

            JspLibrary # 2
            Name:a4j
            Version:1.2
            URI:https://ajax4jsf.dev.java.net/ajax

            Sep 6, 2007 2:08:20 PM oracle.jdevimpl.webapp.util.Debug logProjectLibraries
            SEVERE: WEBAPP_INFO:
            Library # 0
            Name:JSP Runtime
            Classpath:
            jar:file:/root/Desktop/jdev11/j2ee/home/lib/ojsp.jar!/
            jar:file:/root/Desktop/jdev11/j2ee/home/jsp/lib/taglib/ojsputil.jar!/
            jar:file:/root/Desktop/jdev11/j2ee/home/oc4j.jar!/
            jar:file:/root/Desktop/jdev11/j2ee/home/lib/oc4j-internal.jar!/
            jar:file:/root/Desktop/jdev11/j2ee/home/lib/servlet.jar!/
            jar:file:/root/Desktop/jdev11/j2ee/home/lib/el-ri.jar!/
            jar:file:/root/Desktop/jdev11/jdev/lib/ojc.jar!/

            Library # 1
            Name:JSF 1.2
            Classpath:
            jar:file:/root/Desktop/jdev11/lib/java/shared/oracle.jsf/1.2/jsf-api.jar!/
            jar:file:/root/Desktop/jdev11/lib/java/shared/oracle.jsf/1.2/jsf-ri.jar!/
            jar:file:/root/Desktop/jdev11/lib/java/shared/oracle.jsf/1.2/sun-commons-beanutils.jar!/
            jar:file:/root/Desktop/jdev11/lib/java/shared/oracle.jsf/1.2/sun-commons-collections.jar!/
            jar:file:/root/Desktop/jdev11/lib/java/shared/oracle.jsf/1.2/sun-commons-digester.jar!/
            jar:file:/root/Desktop/jdev11/lib/java/shared/oracle.jsf/1.2/sun-commons-logging.jar!/

            Library # 2
            Name:JSTL 1.2
            Classpath:
            jar:file:/root/Desktop/jdev11/lib/java/shared/oracle.jstl/1.2/jstl-api-1_2.jar!/

            Library # 3
            Name:a4j 1.2 Tag Libraries
            Classpath:
            jar:file:/root/teste/ajax4jsf-1.1.1/ajax4jsf/lib/ajax4jsf-1.1.1.jar!/


            (The original is bigger, but i could get just this - but couldn't get it)

            Thank you,

            Fernando
            • 3. Re: jsp libraries / jdeveloper11g
              75081
              Hi Fernando,

              Thank you. The java.lang.IllegalStateException issue has been tracked down and your use case works on our main branch. Unfortunately, due to timing it won't make it to the upcoming TP4.

              Steve Tom
              JDeveloper