1 2 Previous Next 16 Replies Latest reply on May 21, 2012 4:59 AM by fjas

    Error deploying ADF 11g App (Fusion Web Application) to JBOSS 7.1.1.Final

    fjas

      When i'm deploying ADF App in JBOSS 7.1.1.Final AppServer it gives me the following in JDeveloper 11g release 2 (11.1.2.2.0):


      [02:53:17 PM] Target platform is (JBoss 5.x).

      [02:53:17 PM] Running dependency analysis...

      [02:53:17 PM] Building...

      [02:53:17 PM] Deploying profile...

      [02:53:17 PM] ADF shared library is not available, implicitly deploying library ADF Controller Runtime

      [02:53:17 PM] ADF shared library is not available, implicitly deploying library ADF Controller Schema

      [02:53:17 PM] ADF shared library is not available, implicitly deploying library ADF Page Flow Runtime

      [02:53:18 PM] Wrote Web Application Module to C:\JDeveloper\mywork\ola\ViewController\deploy\ola_ViewController_webapp.war

      [02:54:48 PM] Copied C:\JDeveloper\mywork\ola\ViewController\deploy\ola_ViewController_webapp.war to //10.10.1.11/jboss-as-7.1.1.Final/standalone/deployments/ola_ViewController_webapp.war

      [02:54:48 PM] Elapsed time for deployment: 1 minute, 30 seconds

      [02:54:48 PM] ---- Deployment finished. ----


      On the JBoss side it gives me the stack error: http://justpaste.it/zom

       

      I followed: https://blogs.oracle.com/jruiz/entry/deploying_an_adf_11g_applicati


      I can´t understand what's missing.


      Thanks in advance.

        • 1. Re: Error deploying ADF 11g App (Fusion Web Application) to JBOSS 7.1.1.Final
          lafr

          The copying of the war file to the deployments folder seems to take much time, from 02:53:18 to 02:54:48?

          Is this correct?

          So the JBoss auto deployer starts to deploy the file although it's not yet complete.

           

          Create //10.10.1.11/jboss-as-7.1.1.Final/standalone/deployments/ola_ViewController_webapp.war.skipdeploy before copying the war file and remove it after copying is finished.

          This will prevent the autodeploy until the copying has finished.


          • 2. Re: Error deploying ADF 11g App (Fusion Web Application) to JBOSS 7.1.1.Final
            fjas

            Frank thanks for your answer.

             

            I've done it and i get another error:

             

            http://justpaste.it/zp4

             

            Any clue what it is?

             

            Thanks,

            Fernando

            • 3. Re: Error deploying ADF 11g App (Fusion Web Application) to JBOSS 7.1.1.Final
              lafr

              Seems that C:/jboss-as-7.1.1.Final/bin/content/tstewar.war/WEB-INF/lib/adf-richclient-impl-11.jar/META-INF/afu.tld is not okay at line 1582, column 10.

              May be it helps to see what's at this location.

              Or use an appropriate oracle forum to ask this question.

              • 4. Re: Error deploying ADF 11g App (Fusion Web Application) to JBOSS 7.1.1.Final

                Did you get it working Fernando?

                 

                thx

                • 5. Re: Error deploying ADF 11g App (Fusion Web Application) to JBOSS 7.1.1.Final
                  fjas

                  Hi Frank,

                   

                  Sorry for my newbie question (i started a few days ago in JBoss!), but i can´t seem to find the path C:/jboss-as-7.1.1.Final/bin/content/tstewar.war/WEB-INF/lib/adf-richclient-impl-11.jar/META-INF/afu.tld in my server files neither in JDeveloper. Am i missing something?

                   

                  I tried to get some help in Oracle forum but no one seems to know.

                   

                  @John archer: I'm still stuck in the last error. I'm trying to resolved it now by the morning with some new energies

                  • 6. Re: Error deploying ADF 11g App (Fusion Web Application) to JBOSS 7.1.1.Final
                    lafr

                    I assume tstewar.war is build by you and you include adf-richclient-impl-11.jar into your WEB-INF/lib folder.

                    Then "jar -xvf adf-richclient-impl-11.jar META-INF/afu.tld".

                    This will create dir META-INF with file afu.tld to view.

                    1 of 1 people found this helpful
                    • 7. Re: Error deploying ADF 11g App (Fusion Web Application) to JBOSS 7.1.1.Final
                      fjas

                      (1579)     <attribute>

                      (1580)       <description>

                      (1581)         If this attribute is set to an instance of

                      (1582)         <code>oracle.adf.view.rich.model.PageTemplateModel</code>, the view ID will be

                      (1583)         taken from the model and the model will receive notifications of the starting and stopping

                      (1584)         of the template context. Otherwise, if the value is non-null the value is assigned to the

                      (1585)         "bindings" EL variable while this template is rendering or decoding.

                      (1586)      </description>

                      (1587)       <name>value</name>

                      (1588)       <deferred-value/>

                      (1589)     </attribute>

                       

                      That's what is on line 1582.

                       

                      The project i'm trying to deploy is just a "New Fusion Web Application" followed by a "JSF/Facelets Page" with standard design, nothing more.

                      • 8. Re: Error deploying ADF 11g App (Fusion Web Application) to JBOSS 7.1.1.Final
                        sfcoy

                        That looks like a bug in the afu.tld. Try changing it to:

                         

                        {code:xml}

                        <description>

                             <![CDATA[If this attribute is set to an instance of

                             <code>oracle.adf.view.rich.model.PageTemplateModel</code>, the view ID will be

                             taken from the model and the model will receive notifications of the starting and stopping

                             of the template context. Otherwise, if the value is non-null the value is assigned to the

                              "bindings" EL variable while this template is rendering or decoding.]]>

                        </description>{code}

                         

                        and repackaging it. Since it seems like a largish file, check for other instances of this problem too.

                         

                        ... and change \]\]\> to ]]>. It seems the XML renderer can't cope with CDATA elements.

                        1 of 1 people found this helpful
                        • 9. Re: Error deploying ADF 11g App (Fusion Web Application) to JBOSS 7.1.1.Final
                          fjas

                          Hi Stephen, thanks for your answer,

                           

                          I tried your aproach and it worked but now i find a lot more in the afu.tld file witch give the same errors.

                           

                          I found that he can´t parse the HTML tags like <code></code> and <p></p> (the ones i found so far in the file).

                           

                          Do i have to replace the <![CDATA[...]]>  one by one where the afu.tld has HTML tags?

                           

                          Thanks,

                          Fernando Santos

                          • 10. Re: Error deploying ADF 11g App (Fusion Web Application) to JBOSS 7.1.1.Final
                            fjas

                            I've removed all HTML Tags from afu.tld and then i get parse errors from dvt-trinidad.jar in the <large-icon> tag, this time i have to remove all <large-icon> tags.

                             

                            Then i repack the solution and deployed it. It deployed for the the first time with sucess! But during the deploy i get an error:

                             

                            17:45:01,078 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/webapp1]] (MSC service thread 1-2) Servlet /webapp1 threw load() exception: java.lang.ClassNotFoundException: oracle.jsp.runtimev2.JspServlet from [Module "deployment.webapp1.war:main" from Service Module Loader]

                            I open it in my browser and it worked but instead of showing me my page, it just showed a xml structure.

                             

                            <?xml version='1.0' encoding='windows-1252'?>

                            <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

                            <f:view xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html"

                                    xmlns:af="http://xmlns.oracle.com/adf/faces/rich">

                                <af:document id="d1">

                                    <af:form id="f1">

                                        <af:pageTemplate viewId="/oracle/templates/threeColumnTemplate.jspx" id="pt1">

                                            <f:facet name="center"/>

                                            <f:facet name="header"/>

                                            <f:facet name="end"/>

                                            <f:facet name="start"/>

                                            <f:facet name="branding"/>

                                            <f:facet name="copyright"/>

                                            <f:facet name="status"/>

                                        </af:pageTemplate>

                                    </af:form>

                                </af:document>

                            </f:view>

                             

                             

                            I looked into ojsp.jar\oracle\jsp\runtimev2 and the class JspServlet is there.

                             

                            Any clue on that!?

                            • 11. Re: Error deploying ADF 11g App (Fusion Web Application) to JBOSS 7.1.1.Final
                              lafr

                              And ojsp.jar is part of your deployment, means inside WEB-INF/lib folder?

                              Your first mail the name of the deployment was ola_ViewController_webapp.war. Then I saw tstewar.war and now webapp1.war.

                              Is this always the same under different names?

                              • 12. Re: Error deploying ADF 11g App (Fusion Web Application) to JBOSS 7.1.1.Final
                                fjas

                                Yes it's the same under different names...I'm in a testing killing spree here

                                 

                                For some reason ojsp.jar wasn´t in the WEB-INF/lib folder...i remember putting it there mannually. (<- noob)

                                 

                                After another one or two missing classes i stuck again...but this time i can´t seem to find the class missing in the JDeveloper libraries:

                                 

                                ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/ultimo]] (MSC service thread 1-7) Servlet /ultimo threw load() exception: java.lang.ClassNotFoundException: com.evermind.xml.BaseEntityResolverUtil from [Module "deployment.ultimo.war:main" from Service Module Loader]

                                 

                                Where i can find com.evermind.xml.BaseEntityResolverUtil class/.jar?

                                 

                                Sorry for taking your time and thanks.

                                • 13. Re: Error deploying ADF 11g App (Fusion Web Application) to JBOSS 7.1.1.Final
                                  lafr

                                  Use your favorite search engine to search the web (oracle discussion forums).

                                  https://forums.oracle.com/forums/thread.jspa?threadID=1118333

                                  • 14. Re: Error deploying ADF 11g App (Fusion Web Application) to JBOSS 7.1.1.Final
                                    fjas

                                    Was there a few minutes before posting and matched BC4J Service Runtime in http://docs.oracle.com/cd/E16162_01/admin.1112/e16179/ap_jdevlibs.htm.

                                     

                                    The result was oracle.adf.model_11.1.1/adfbcsvc-share.jar and oracle.adf.model_11.1.1/adfbcsvc.jar.

                                     

                                    Already pack them in WEB-INF/lib folder and still got the same error above, that's strange.

                                     

                                    This time i confirmed twice, the jar's are there for sure in the WEB-INF/lib folder!

                                     

                                    I'm going to unpack the jars to see if the class is there.

                                    1 2 Previous Next