0 Replies Latest reply on Jun 6, 2016 7:39 AM by Suresh Gudisa

    JBWEB000236: Servlet.service() for servlet jsp threw exception: org.apache.jasper.JasperException: /fc/fileCopy.jspx(19,67) JBWEB004178: #{..} is not allowed in template text

    Suresh Gudisa Newbie

      Hello everyone,

      I am new to JBOSS EAP.

      I have ADF application to migrate from Weblogic to JBOSS EAP 6. I have done changes to my app(File Copy) related to JBOSS and deployed into JBOSS server successfully. But I am facing some issues while hitting the url to run my application.


      org.apache.jasper.JasperException: /fc/fileCopy.jspx(19,67) JBWEB004178: #{..} is not allowed in template text

      org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:42)

      org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:145)

      org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:96)

      org.apache.jasper.compiler.Validator$ValidateVisitor.visit(Validator.java:739)

      org.apache.jasper.compiler.Node$UninterpretedTag.accept(Node.java:1246)

      org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2377)

      org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2427)

      org.apache.jasper.compiler.Validator$ValidateVisitor.visit(Validator.java:750)

      org.apache.jasper.compiler.Node$UninterpretedTag.accept(Node.java:1246)

      org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2377)

      org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2427)

      org.apache.jasper.compiler.Validator$ValidateVisitor.visit(Validator.java:862)

      org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1530)

      org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2377)

      org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2427)

      org.apache.jasper.compiler.Validator$ValidateVisitor.visit(Validator.java:750)

      org.apache.jasper.compiler.Node$UninterpretedTag.accept(Node.java:1246)

      org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2377)

      org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2427)

       

      My fileCopy.jspx: Just see highlighted part.

       

      <?xml version='1.0' encoding='UTF-8'?>

      <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"

                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">

        <jsp:directive.page contentType="text/html;charset=UTF-8"/>

        <f:view>

          <af:document id="d1" title="TASS File Copy">

            <af:messages id="m1"/>

            <af:form id="f1">

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

                <f:facet name="center">

                  <af:panelCollection id="pc1" styleClass="AFStretchWidth">

                    <f:facet name="menus"/>

                    <f:facet name="toolbar">

                      <af:toolbar id="t2">

                        <af:commandToolbarButton text="Download File" id="ctb1"

                                                 disabled="#{FileCopyBean.downloadDisabled}"

                                                 partialTriggers="ctb2">

                          <af:fileDownloadActionListener contentType="text/plain; charset=utf-8"

                                                         method="#{FileCopyBean.copyFile}"

                                                         filename="#{FileCopyBean.fileName}"/>

       

      my web.xml:

       

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

      <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" version="2.5" xmlns="http://java.sun.com/xml/ns/javaee">

      <context-param>

          <param-name>javax.faces.STATE_SAVING_METHOD</param-name>

          <param-value>client</param-value>

        </context-param>

        <context-param>

          <description>If this parameter is true, there will be an automatic check of the modification date of your JSPs, and saved state will be discarded when JSP's change. It will also automatically check if your skinning css files have changed without you having to restart the server. This makes development easier, but adds overhead. For this reason this parameter should be set to false when your application is deployed.</description>

          <param-name>org.apache.myfaces.trinidad.CHECK_FILE_MODIFICATION</param-name>

          <param-value>false</param-value>

        </context-param>

        <context-param>

          <description>Whether the 'Generated by...' comment at the bottom of ADF Faces HTML pages should contain version number information.</description>

          <param-name>oracle.adf.view.rich.versionString.HIDDEN</param-name>

          <param-value>false</param-value>

        </context-param>

        <context-param>

          <description>migration process for credstore</description>

          <param-name>jps.credstore.migration</param-name>

          <param-value>OVERWRITE</param-value>

        </context-param>

        <context-param>

          <description>migration process for policystore</description>

          <param-name>jps.policystore.migration</param-name>

          <param-value>OVERWRITE</param-value>

        </context-param>

        <context-param>

          <param-name>javax.faces.PARTIAL_STATE_SAVING</param-name>

          <param-value>false</param-value>

        </context-param>

        <context-param>

          <description>Security precaution to prevent clickjacking: bust frames if the ancestor window domain(protocol, host, and port) and the frame domain are different. Another options for this parameter are always and never.</description>

          <param-name>org.apache.myfaces.trinidad.security.FRAME_BUSTING</param-name>

          <param-value>differentOrigin</param-value>

        </context-param>

        <filter>

          <filter-name>trinidad</filter-name>

          <filter-class>org.apache.myfaces.trinidad.webapp.TrinidadFilter</filter-class>

        </filter>

        <filter>

          <filter-name>adfBindings</filter-name>

          <filter-class>oracle.adf.model.servlet.ADFBindingFilter</filter-class>

        </filter>

        <filter-mapping>

          <filter-name>trinidad</filter-name>

          <servlet-name>Faces Servlet</servlet-name>

          <dispatcher>FORWARD</dispatcher>

          <dispatcher>REQUEST</dispatcher>

        </filter-mapping>

        <filter-mapping>

          <filter-name>adfBindings</filter-name>

          <servlet-name>Faces Servlet</servlet-name>

          <dispatcher>FORWARD</dispatcher>

          <dispatcher>REQUEST</dispatcher>

        </filter-mapping>

        <listener>

          <listener-class>oracle.adf.mbean.share.connection.ADFConnectionLifeCycleCallBack</listener-class>

        </listener>

        <listener>

          <listener-class>oracle.adf.mbean.share.config.ADFConfigLifeCycleCallBack</listener-class>

        </listener>

        <listener>

          <listener-class>oracle.bc4j.mbean.BC4JConfigLifeCycleCallBack</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>resources</servlet-name>

          <servlet-class>org.apache.myfaces.trinidad.webapp.ResourceServlet</servlet-class>

        </servlet>

        <servlet>

          <servlet-name>BIGRAPHSERVLET</servlet-name>

          <servlet-class>oracle.adfinternal.view.faces.bi.renderkit.graph.GraphServlet</servlet-class>

        </servlet>

        <servlet>

          <servlet-name>BIGAUGESERVLET</servlet-name>

          <servlet-class>oracle.adfinternal.view.faces.bi.renderkit.gauge.GaugeServlet</servlet-class>

        </servlet>

        <servlet>

          <servlet-name>MapProxyServlet</servlet-name>

          <servlet-class>oracle.adfinternal.view.faces.bi.renderkit.geoMap.servlet.MapProxyServlet</servlet-class>

        </servlet>

        <servlet>

          <servlet-name>GatewayServlet</servlet-name>

          <servlet-class>oracle.adfinternal.view.faces.bi.renderkit.graph.FlashBridgeServlet</servlet-class>

        </servlet>

        <servlet-mapping>

          <servlet-name>Faces Servlet</servlet-name>

          <url-pattern>/faces/*</url-pattern>

        </servlet-mapping>

        <servlet-mapping>

          <servlet-name>resources</servlet-name>

          <url-pattern>/adf/*</url-pattern>

        </servlet-mapping>

        <servlet-mapping>

          <servlet-name>resources</servlet-name>

          <url-pattern>/afr/*</url-pattern>

        </servlet-mapping>

        <servlet-mapping>

          <servlet-name>BIGRAPHSERVLET</servlet-name>

          <url-pattern>/servlet/GraphServlet/*</url-pattern>

        </servlet-mapping>

        <servlet-mapping>

          <servlet-name>BIGAUGESERVLET</servlet-name>

          <url-pattern>/servlet/GaugeServlet/*</url-pattern>

        </servlet-mapping>

        <servlet-mapping>

          <servlet-name>MapProxyServlet</servlet-name>

          <url-pattern>/mapproxy/*</url-pattern>

        </servlet-mapping>

        <servlet-mapping>

          <servlet-name>resources</servlet-name>

          <url-pattern>/bi/*</url-pattern>

        </servlet-mapping>

        <servlet-mapping>

          <servlet-name>GatewayServlet</servlet-name>

          <url-pattern>/flashbridge/*</url-pattern>

        </servlet-mapping>

          <resource-ref>

              <res-ref-name>java:jboss/datasources/tasspDS</res-ref-name>

              <res-type>javax.sql.DataSource</res-type>

              <res-auth>Container</res-auth>

          </resource-ref>

          <resource-ref>

              <res-ref-name>java:jboss/datasources/TassDevDS</res-ref-name>

              <res-type>javax.sql.DataSource</res-type>

              <res-auth>Container</res-auth>

          </resource-ref>

      </web-app>

       

      I have seen server log and found some errors init.

       

      SEVERE [oracle.adf.mbean.share.connection.ADFConnectionLifeCycleCallBack] (ServerService Thread Pool -- 52) : java.lang.IllegalStateException: java.lang.IllegalStateException: No 'jboss' MBeanServer found!

        at oracle.as.jmx.framework.jboss.spi.security.JBossMBeanSecurityHelper.getMBeanServer(JBossMBeanSecurityHelper.java:186) [jmxspi.jar:]

        at oracle.as.jmx.framework.jboss.spi.JMXFrameworkProviderImpl.getMBeanServer(JMXFrameworkProviderImpl.java:243) [jmxspi.jar:]

        at oracle.as.jmx.framework.PortableMBeanFactory.getMBeanServer(PortableMBeanFactory.java:1841) [jmxframework.jar:]

        at oracle.adf.mbean.share.connection.ADFConnectionLifeCycleCallBack.contextInitialized(ADFConnectionLifeCycleCallBack.java:102) [adfsharembean.jar:]

        at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:3339) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]

        at org.apache.catalina.core.StandardContext.start(StandardContext.java:3780) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]

        at org.jboss.as.web.deployment.WebDeploymentService.doStart(WebDeploymentService.java:163) [jboss-as-web-7.5.0.Final-redhat-21.jar:7.5.0.Final-redhat-21]

        at org.jboss.as.web.deployment.WebDeploymentService.access$000(WebDeploymentService.java:61) [jboss-as-web-7.5.0.Final-redhat-21.jar:7.5.0.Final-redhat-21]

        at org.jboss.as.web.deployment.WebDeploymentService$1.run(WebDeploymentService.java:96) [jboss-as-web-7.5.0.Final-redhat-21.jar:7.5.0.Final-redhat-21]

        at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) [rt.jar:1.7.0_79]

        at java.util.concurrent.FutureTask.run(Unknown Source) [rt.jar:1.7.0_79]

        at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [rt.jar:1.7.0_79]

        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [rt.jar:1.7.0_79]

        at java.lang.Thread.run(Unknown Source) [rt.jar:1.7.0_79]

        at org.jboss.threads.JBossThread.run(JBossThread.java:122)

      Caused by: java.lang.IllegalStateException: No 'jboss' MBeanServer found!

        at org.jboss.mx.util.MBeanServerLocator.locateJBoss(MBeanServerLocator.java:46) [jboss-jmx.jar:5.0.0alpha (build: CVSTag=HEAD date=200502241559)]

        at oracle.as.jmx.framework.jboss.spi.security.JBossMBeanSecurityHelper.getMBeanServer(JBossMBeanSecurityHelper.java:180) [jmxspi.jar:]

        ... 14 more

       

      ERROR [stderr] (ServerService Thread Pool -- 52) java.lang.ClassNotFoundException: Login.ForcedLoginPhaseListenerADF from [Module "deployment.FileCopy_application1.ear:main" from Service Module Loader]

       

      Could someone please guide me how to achieve this. Any idea most appreciated. thanks in advance.

      Please let me know if any other information requires. Thank you all.