Orbean Upgrade 3.8 - 4.4 Forms not displaying with proper CSS after upgrade

classic Classic list List threaded Threaded
9 messages Options
Reply | Threaded
Open this post in threaded view
|

Orbean Upgrade 3.8 - 4.4 Forms not displaying with proper CSS after upgrade

GirijaPamini
Orbean 3.8  with Proper CSSAfter upgrade to Orbean 4.4 Form is not properHello,

We are using Orbeon 3.8 in WAS 8.5. Now we are upgraded the Orbean Form Version 3.8 to 4.4, While viewing any existing form we are getting below 2 issues.
1 --> In console it is throwing the error  org/apache/http/conn/scheme/Scheme.<init>(Ljava/lang/String;ILorg/apache/http/conn/scheme/SchemeSocketFactory;)  Exception: java.lang.NoSuchMethodError  Below is the Complete stack trace.

2--> And secondly, While viewing any form, It is not coming with proper CSS, We have copied all the required jar file and the configuration files as well.

Appreciate for your help.


[2/25/14 15:12:32:851 IST] 0000007b SystemErr     R Servlet initialized.
[2/25/14 15:12:33:048 IST] 0000007b SystemErr     R /xforms-renderer - Received request
[2/25/14 15:12:41:319 IST] 0000007b SystemErr     R xforms-submit-error - setting throwable {throwable: "
+----------------------------------------------------------------------------------------------------------------------+
|An Error has Occurred                                                                                                 |
|----------------------------------------------------------------------------------------------------------------------|
|org/apache/http/conn/scheme/Scheme.<init>(Ljava/lang/String;ILorg/apache/http/conn/scheme/SchemeSocketFactory;)V      |
|----------------------------------------------------------------------------------------------------------------------|
|Application Call Stack                                                                                                |
|----------------------------------------------------------------------------------------------------------------------|
|----------------------------------------------------------------------------------------------------------------------|
|Exception: java.lang.NoSuchMethodError                                                                                |
|----------------------------------------------------------------------------------------------------------------------|
|org.orbeon.oxf.resources.handler.HTTPURLConnection |<clinit>                      |HTTPURLConnection.java        | 122|
|java.lang.J9VMInternals                            |initializeImpl                |J9VMInternals.java            |    |
|java.lang.J9VMInternals                            |initialize                    |J9VMInternals.java            | 236|
|org.orbeon.oxf.resources.handler.HTTPHandler       |openConnection                |HTTPHandler.java              |  28|
|java.net.URL                                       |openConnection                |URL.java                      | 957|
.............
....
...
[2/25/14 15:12:41:471 IST] 0000007b SystemErr     R instance() - instance not found {instance id: "control-instance"}
[2/25/14 15:12:41:480 IST] 0000007b SystemErr     R instance() - instance not found {instance id: "control-instance"}
[2/25/14 15:12:41:639 IST] 0000007b SystemErr     R instance() - instance not found {instance id: "control-instance"}
[2/25/14 15:12:41:643 IST] 0000007b SystemErr     R instance() - instance not found {instance id: "control-instance"}
[2/25/14 15:12:42:292 IST] 0000007b SystemErr     R instance() - instance not found {instance id: "control-instance"}
[2/25/14 15:12:42:295 IST] 0000007b SystemErr     R instance() - instance not found {instance id: "control-instance"}
[2/25/14 15:12:42:321 IST] 0000007b SystemErr     R instance() - instance not found {instance id: "control-instance"}
[2/25/14 15:12:42:324 IST] 0000007b SystemErr     R instance() - instance not found {instance id: "control-instance"}
[2/25/14 15:12:42:395 IST] 0000007b SystemErr     R instance() - instance not found {instance id: "control-instance"}
[2/25/14 15:12:42:398 IST] 0000007b SystemErr     R instance() - instance not found {instance id: "control-instance"}
[2/25/14 15:12:42:416 IST] 0000007b SystemErr     R instance() - instance not found {instance id: "control-instance"}
[2/25/14 15:12:42:419 IST] 0000007b SystemErr     R instance() - instance not found {instance id: "control-instance"}
[2/25/14 15:12:43:094 IST] 0000007b SystemErr     R Session listener - Session created.
[2/25/14 15:12:45:156 IST] 0000007b servlet       I com.ibm.ws.webcontainer.servlet.ServletWrapper init SRVE0242I: [Ear_U_R] [/UDF_Form_Rendering_Webapp] [orbeon-main-servlet]: Initialization successful.
[2/25/14 15:12:45:067 IST] 0000007b SystemErr     R /xforms-renderer - Timing: 12019
[2/25/14 15:12:45:155 IST] 0000007b SystemErr     R Servlet initialized.
[2/25/14 15:12:45:158 IST] 0000007b SystemErr     R /config/theme/orbeon.css - Received request
[2/25/14 15:12:45:323 IST] 0000007b SystemErr     R /config/theme/orbeon.css - Timing: 164
Reply | Threaded
Open this post in threaded view
|

Re: Orbean Upgrade 3.8 - 4.4 Forms not displaying with proper CSS after upgrade

Alessandro  Vernet
Administrator
Hi Girija,

For the NoSuchMethodError issue, could you try, in WebSphere, to modify the application configuration to enable "parent last" class loading for the Web module?

For the CSS issue, can you check, say with the Chrome Dev Tools, what CSS the browser attempts to load? E.g. when loading http://localhost:8080/orbeon/xforms-jsp/flickr-search/index.jsp (I took this example since I see you're using JSPs), I see:



Alex
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|

Re: Orbean Upgrade 3.8 - 4.4 Forms not displaying with proper CSS after upgrade

GirijaPamini
Hi Alex,
Thank You for your quick response.

When I tried with Parent Last for my Web Module in my class Loader I ended up with below Exception and in browser I got "Orbeon Forms - An Error has Occurred" .

[2/26/14 16:42:42:763 IST] 00000086 SystemErr     R /xforms-renderer - Received request
[2/26/14 16:42:43:098 IST] 00000086 SystemErr     R error caught {controller: "oxf:/ops/xforms/xforms-renderer-page-flow.xml", method: "POST", path: "/xforms-renderer"}
[2/26/14 16:42:43:209 IST] 00000086 SystemErr     R
+----------------------------------------------------------------------------------------------------------------------+
|An Error has Occurred                                                                                                 |
|----------------------------------------------------------------------------------------------------------------------|
|Fatal error: The element type "meta" must be terminated by the matching end-tag "</meta>".                            |
|----------------------------------------------------------------------------------------------------------------------|
|Application Call Stack                                                                                                |
|----------------------------------------------------------------------------------------------------------------------|
|file:///C:/IBM/WebSphere/AppServer/profiles/AppSrv06/bin/                         |                              |   2|
|oxf:/ops/xforms/xforms-renderer-page-flow.xml                                     |reading page model data output|  23|
|······················································································································|
|element=<page path="/xforms-renderer" model="xforms-renderer.xpl"/>                                                   |
|model  =xforms-renderer.xpl                                                                                           |
|----------------------------------------------------------------------------------------------------------------------|
|oxf:/ops/xforms/xforms-renderer.xpl                              


Answer to your Question :
The browser attempts to load the Orbeon CSS, attached here is the screen shot.. I checked this with IE, F12 Dedugger. Please let me know if any other information you needed.

One more thing Alex, I have created another thread for ehcache related issue with Orbeon4.4 http://discuss.orbeon.com/Orbeon-4-4-is-not-working-with-lower-version-of-ehcacheCore2-6-3-td4658044.html as these both are different, Kindly reply on that as well.



Thanks!
Girija
Reply | Threaded
Open this post in threaded view
|

Re: Orbean Upgrade 3.8 - 4.4 Forms not displaying with proper CSS after upgrade

GirijaPamini
Hi Alex,
Any update on this ??
Reply | Threaded
Open this post in threaded view
|

Re: Orbean Upgrade 3.8 - 4.4 Forms not displaying with proper CSS after upgrade

Alessandro  Vernet
Administrator
In reply to this post by GirijaPamini
Hi Girija,

For WebSphere, can you check in the log if there was an exception before that? The exception you quoted looks more like a symptom than the root of the problem.

For the CSS issue, this might be due to the fact that you now need to have an "orbeon" class on the body element (or a containing element). That class is produced by Orbeon Forms if it generates the body element, but if you produced and use the Orbeon filter, it won't be present.

Alex
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|

Re: Orbean Upgrade 3.8 - 4.4 Forms not displaying with proper CSS after upgrade

GirijaPamini

Hi Alex,
For the CSS issue, could you please check if our web.xml file is having correct values or not.

<?xml version="1.0" encoding="UTF-8"?>
<!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 id="WebApp_ID">
    <display-name>Panorama UDF Renderer</display-name>
    <description></description>
           
       
       
       
    <context-param>
        <param-name>com.ibm.pdc.ephs.udf.CacheAssembler</param-name>
        <param-value>false</param-value>
    </context-param>
    <context-param>
        <param-name>com.ibm.pdc.ephs.udf.ErrorURL</param-name>
        <param-value>/ephs-udf/error.xhtml</param-value>
    </context-param>
       

           
   
    <context-param>
        <param-name>oxf.resources.factory</param-name>
        <param-value>org.orbeon.oxf.resources.PriorityResourceManagerFactory</param-value>
    </context-param>

   
    <context-param>
        <param-name>oxf.resources.priority.1</param-name>
        <param-value>org.orbeon.oxf.resources.WebAppResourceManagerFactory</param-value>
    </context-param>
    <context-param>
        <param-name>oxf.resources.priority.1.oxf.resources.webapp.rootdir</param-name>
        <param-value>/WEB-INF/resources</param-value>
    </context-param>
    <context-param>
        <param-name>oxf.resources.priority.2</param-name>
        <param-value>org.orbeon.oxf.resources.ClassLoaderResourceManagerFactory</param-value>
    </context-param>
   

 
    <context-param>
        <param-name>oxf.classloader.enable</param-name>
        <param-value>false</param-value>
    </context-param>
    <context-param>
        <param-name>oxf.classloader.ignore-packages</param-name>
        <param-value>java. javax. org.apache.log4j. org.xml. org.w3c.</param-value>
    </context-param>
        <context-param>
        <param-name>oxf.run-mode</param-name>
        <param-value>prod</param-value>
    </context-param>
   
   
    <context-param>
        <param-name>oxf.properties</param-name>
        <param-value>oxf:/config/properties-${oxf.run-mode}.xml</param-value>
    </context-param>

   
    <context-param>
        <param-name>oxf.initialize-logging</param-name>
        <param-value>true</param-value>
    </context-param>
   

   
    <filter> 
        <filter-name>orbeon-xforms-filter</filter-name>
        <filter-class>org.orbeon.oxf.servlet.OrbeonXFormsFilter</filter-class>
       
       
       
    </filter>   
   
   
   
    <filter>
        <filter-name>SecurityFilter</filter-name>
                <filter-class>com.ibm.pdc.ephs.security.SecurityFilter</filter-class>
        </filter>
   
   
    <filter>
        <filter-name>UDFSecurityFilter</filter-name>
                <filter-class>com.ibm.pdc.ephs.udf.webapp.filter.UDFSecurityFilter</filter-class>
        </filter>
       
   
    <filter-mapping>
        <filter-name>orbeon-xforms-filter</filter-name>
        <url-pattern>/xforms-jsp/*</url-pattern>
    </filter-mapping>
   
   
    <filter>
        <filter-name>orbeon-exist-filter</filter-name>
        <filter-class>org.orbeon.oxf.servlet.TokenSecurityFilter</filter-class>
    </filter>
    <filter-mapping>
        <filter-name>orbeon-exist-filter</filter-name>
        <url-pattern>/exist/*</url-pattern>
    </filter-mapping>
   
   
    <filter-mapping>
        <filter-name>SecurityFilter</filter-name>
        <url-pattern>/*</url-pattern>
    </filter-mapping>
   
        <filter-mapping>
        <filter-name>UDFSecurityFilter</filter-name>
        <url-pattern>/xforms-jsp/fillOutUdf.xhtml</url-pattern>
    </filter-mapping>

    <filter-mapping>
        <filter-name>UDFSecurityFilter</filter-name>
        <url-pattern>/xforms-jsp/viewUdf.xhtml</url-pattern>
    </filter-mapping>

    <filter-mapping>
        <filter-name>UDFSecurityFilter</filter-name>
        <url-pattern>/xforms-jsp/editUdf.xhtml</url-pattern>
    </filter-mapping>

    <filter-mapping>
        <filter-name>UDFSecurityFilter</filter-name>
        <url-pattern>/xforms-jsp/migrateUdf.xhtml</url-pattern>
    </filter-mapping>
   
   
   
   
   
    <listener>
        <listener-class>org.orbeon.oxf.webapp.OrbeonSessionListener</listener-class>
    </listener>
   
    <listener>
        <listener-class>net.sf.ehcache.constructs.web.ShutdownListener</listener-class>
    </listener>
   
   
    <servlet>
        <servlet-name>orbeon-main-servlet</servlet-name>
        <servlet-class>org.orbeon.oxf.servlet.OrbeonServlet</servlet-class>
       
        <init-param>
            <param-name>oxf.main-processor.name</param-name>
            <param-value>{http://www.orbeon.com/oxf/processors}page-flow</param-value>
        </init-param>
        <init-param>
            <param-name>oxf.main-processor.input.controller</param-name>
            <param-value>oxf:/page-flow.xml</param-value>
        </init-param>
       
        <init-param>
            <param-name>oxf.error-processor.name</param-name>
            <param-value>{http://www.orbeon.com/oxf/processors}page-flow</param-value>
        </init-param>
        <init-param>
            <param-name>oxf.error-processor.input.controller</param-name>
            <param-value>oxf:/config/error-page-flow.xml</param-value>
        </init-param>
       
        <init-param>
            <param-name>oxf.http.accept-methods</param-name>
            <param-value>get,post,head,put,delete</param-value>
        </init-param>
       
       
       
       
    </servlet>

   
    <servlet>
        <servlet-name>orbeon-xforms-server-servlet</servlet-name>
        <servlet-class>org.orbeon.oxf.servlet.OrbeonServlet</servlet-class>
       
        <init-param>
            <param-name>oxf.main-processor.name</param-name>
            <param-value>{http://www.orbeon.com/oxf/processors}pipeline</param-value>
        </init-param>
        <init-param>
            <param-name>oxf.main-processor.input.config</param-name>
            <param-value>oxf:/ops/xforms/xforms-server.xpl</param-value>
        </init-param>
       
        <init-param>
            <param-name>oxf.error-processor.name</param-name>
            <param-value>{http://www.orbeon.com/oxf/processors}pipeline</param-value>
        </init-param>
        <init-param>
            <param-name>oxf.error-processor.input.config</param-name>
            <param-value>oxf:/ops/xforms/xforms-server-error.xpl</param-value>
        </init-param>
    </servlet>

   
    <servlet>
        <servlet-name>orbeon-renderer-servlet</servlet-name>
        <servlet-class>org.orbeon.oxf.servlet.OrbeonServlet</servlet-class>
       
        <init-param>
            <param-name>oxf.main-processor.name</param-name>
            <param-value>{http://www.orbeon.com/oxf/processors}page-flow</param-value>
        </init-param>
        <init-param>
            <param-name>oxf.main-processor.input.controller</param-name>
            <param-value>oxf:/ops/xforms/xforms-renderer-page-flow.xml</param-value>
        </init-param>
       
        <init-param>
            <param-name>oxf.error-processor.name</param-name>
            <param-value>{http://www.orbeon.com/oxf/processors}pipeline</param-value>
        </init-param>
        <init-param>
            <param-name>oxf.error-processor.input.config</param-name>
            <param-value>oxf:/config/error.xpl</param-value>
        </init-param>
    </servlet>

    <servlet>
        <servlet-name>display-chart-servlet</servlet-name>
        <servlet-class>org.jfree.chart.servlet.DisplayChart</servlet-class>
        <load-on-startup>2</load-on-startup>
    </servlet>

    <servlet>
        <servlet-name>exist-xmlrpc-servlet</servlet-name>
        <servlet-class>org.exist.xmlrpc.RpcServlet</servlet-class>
    </servlet>

    <servlet>
        <servlet-name>exist-rest-servlet</servlet-name>
        <servlet-class>org.exist.http.servlets.EXistServlet</servlet-class>
        <init-param>
            <param-name>basedir</param-name>
            <param-value>WEB-INF/</param-value>
        </init-param>
        <init-param>
            <param-name>configuration</param-name>
            <param-value>exist-conf.xml</param-value>
        </init-param>
        <init-param>
            <param-name>start</param-name>
            <param-value>true</param-value>
        </init-param>
    </servlet>

    <servlet>
        <servlet-name>exist-webdav-servlet</servlet-name>
        <servlet-class>org.exist.http.servlets.WebDAVServlet</servlet-class>
        <init-param>
            <param-name>authentication</param-name>
            <param-value>basic</param-value>
        </init-param>
    </servlet>

     <servlet>
        <servlet-name>exist-atom-servlet</servlet-name>
        <servlet-class>org.exist.atom.http.AtomServlet</servlet-class>
        <init-param>
            <param-name>authentication</param-name>
            <param-value>basic</param-value>
        </init-param>
    </servlet>

       

    <servlet>
        <servlet-name>fill-form-servlet</servlet-name>
        <servlet-class>com.ibm.pdc.ephs.udf.webapp.entity.servlet.NewFormInstanceServlet</servlet-class>
    </servlet>

    <servlet>
        <servlet-name>view-form-servlet</servlet-name>
        <servlet-class>com.ibm.pdc.ephs.udf.webapp.entity.servlet.ViewFormInstanceServlet</servlet-class>
    </servlet>

    <servlet>
        <servlet-name>edit-form-servlet</servlet-name>
        <servlet-class>com.ibm.pdc.ephs.udf.webapp.entity.servlet.EditFormInstanceServlet</servlet-class>
    </servlet>

    <servlet>
        <servlet-name>migrate-form-servlet</servlet-name>
        <servlet-class>com.ibm.pdc.ephs.udf.webapp.entity.servlet.MigrateFormInstanceServlet</servlet-class>
    </servlet>

    <servlet>
        <servlet-name>preview-template-servlet</servlet-name>
        <servlet-class>com.ibm.pdc.ephs.udf.webapp.entity.servlet.PreviewTemplateServlet</servlet-class>
    </servlet>


    <servlet-mapping>
        <servlet-name>fill-form-servlet</servlet-name>
        <url-pattern>/xforms-jsp/fillOutUdf.xhtml</url-pattern>
    </servlet-mapping>

    <servlet-mapping>
        <servlet-name>view-form-servlet</servlet-name>
        <url-pattern>/xforms-jsp/viewUdf.xhtml</url-pattern>
    </servlet-mapping>

    <servlet-mapping>
        <servlet-name>edit-form-servlet</servlet-name>
        <url-pattern>/xforms-jsp/editUdf.xhtml</url-pattern>
    </servlet-mapping>

    <servlet-mapping>
        <servlet-name>migrate-form-servlet</servlet-name>
        <url-pattern>/xforms-jsp/migrateUdf.xhtml</url-pattern>
    </servlet-mapping>

    <servlet-mapping>
        <servlet-name>preview-template-servlet</servlet-name>
        <url-pattern>/xforms-jsp/previewUdf.xhtml</url-pattern>
    </servlet-mapping>

       


       
    <servlet-mapping>
        <servlet-name>orbeon-main-servlet</servlet-name>
        <url-pattern>/</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
        <servlet-name>orbeon-xforms-server-servlet</servlet-name>
        <url-pattern>/xforms-server/*</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
        <servlet-name>orbeon-renderer-servlet</servlet-name>
        <url-pattern>/xforms-renderer</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
        <servlet-name>exist-xmlrpc-servlet</servlet-name>
        <url-pattern>/exist/xmlrpc</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
        <servlet-name>exist-rest-servlet</servlet-name>
        <url-pattern>/exist/rest/*</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
        <servlet-name>exist-webdav-servlet</servlet-name>
        <url-pattern>/exist/webdav/*</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
        <servlet-name>exist-atom-servlet</servlet-name>
        <url-pattern>/exist/atom/*</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
        <servlet-name>display-chart-servlet</servlet-name>
        <url-pattern>/chartDisplay</url-pattern>
    </servlet-mapping>
   
    <session-config>
        <session-timeout>30</session-timeout>
    </session-config>

</web-app>


Thank You,
Girija
Reply | Threaded
Open this post in threaded view
|

Re: Orbean Upgrade 3.8 - 4.4 Forms not displaying with proper CSS after upgrade

Alessandro  Vernet
Administrator
Hi Girija,

The web.xml looks about right. Have you checked if you have an "orbeon" class on the <body> element, and if not if adding one solves the issue?

Alex
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|

Re: Orbean Upgrade 3.8 - 4.4 Forms not displaying with proper CSS after upgrade

GirijaPamini
Hi Alex,
       
I put the orbeon class inside my body attribute but still the orbeon.css is not loading. Attached is the Screen shot. But in Console I am getting  log  "/config/theme/orbeon.css - Received request ", Is there anything else I am missing ??



Thanks
Girija
Reply | Threaded
Open this post in threaded view
|

Re: Orbean Upgrade 3.8 - 4.4 Forms not displaying with proper CSS after upgrade

Alessandro  Vernet
Administrator
Hi Girija,

I see, and thank you for the screenshots, that is very useful. You don't need the class="orbeon" on the <xhtml:head>, just on the <xhtml:body>. (So you can remove the former, even if this doesn't explain the issue.)

Now, have you checked with the F12 tools that the class="orbeon" indeed shows on the <body> element in the HTML shown by the browser? (I am asking as your screenshot doesn't show that.)

If you see the "orbeon" class on the <body> with the F12 tools, is there any chance that you could deploy this on a publicly accessible server, so I could have a look at it?

Alex
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet