Category Archives: apex

Create XSLT 1.0 with Stylvision and try to generate a PDF by using FOP

I tried to generate a XSLT file with Stylvision from a XML file.

I used:

  • Tomcat 7
  • XSLT 1.0
  • Stylvision
  • JDK 1.8

But become everytime the same error when I try to create a PDF by: http://localhost:8080/fop/apex_fop.jsp?xml=fop/tag.xml&xsl=/fop/tag.xslt

org.apache.jasper.JasperException: An exception occurred processing JSP page /apex_fop.jsp at line 21

18: String        v_encode = "UTF-8";
19: 
20: // get the XSL
21: v_xsl = new XSLStylesheet(new java.io.StringReader(request.getParameter("template")),null);
22: 
23: // get the XML String from the form which was posted
24: parser.parse(new java.io.StringReader(request.getParameter("xml")));


Stacktrace:
    org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:575)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:477)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:395)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:339)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
    org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)

root cause

java.lang.NullPointerException
    java.io.StringReader.<init>(Unknown Source)
    org.apache.jsp.apex_005ffop_jsp._jspService(apex_005ffop_jsp.java:110)
    org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:439)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:395)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:339)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
    org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)

I used the fop.war from the Oracle Apex. When it's necessary i can post the xml and xlst file.

Thank you!

How to disable sslv3 for an Oracle Apex Apache server?

After adding the following entry in /u01/app/oracle/OraHome_1/Apache/Apache/conf/ssl.conf for an Apex dev server, Apache starts up fine, but no browsers can connect to it. If I remove this line all of the browsera are OK with it.

##  SSL Global Context
##
##  All SSL configuration in this context applies both to
##  the main server and all SSL-enabled virtual hosts.
##
SSLProtocol +TLSv1

C:\Program Files\Git\bin>openssl s_client -connect apex.xxx.com:443 -tls1

CONNECTED(00000003)
depth=2 /C=US/O=GeoTrust Inc./CN=GeoTrust Global CA
verify error:num=19:self signed certificate in certificate chain
verify return:0
140:error:140943FC:SSL routines:SSL3_READ_BYTES:sslv3 alert bad record mac:s3_pk
t.c:1053:SSL alert number 20
140:error:1409E0E5:SSL routines:SSL3_WRITE_BYTES:ssl handshake failure:s3_pkt.c:
530:

Why with SSLV3, no bad record mac alert, with TLSv1 have that error?

Using Mod_headers on an apache HTTP server to change the header request/response when accessing an application through a Glassfish server

Our current practice is to use an Apache redirect server to reverse proxy to our Application Express apps such that internal DNS entry (coolapp.example.com) can be visited to retrieve the contents of the application (internalapplication.example.com). However, I am trying to take it one step further by caching images/js/css files within the APEX application but am coming across a roadblock. No mod_headers syntax in my test virtualhost will work. I cannot add a header, I cannot modify a header, and I cannot unset a header/requestheader. The goal here is to eliminate the use of ETags in our Application Express apps in order to cache a bit more effectively, but I am having a difficult time getting started. I have read somewhat related topics here, but they do not seem to have the common denominator of the Glassfish server our applications sit on. Any help would be appreciated.

Example:

Servername testapp1.test2.com

RewriteRule ^(.$) internalapp.test2.com/$1 [P]

Redirect / test.test2.com/app1

this works - it allows us to go to test.test2.com which is redirected to /app1, which then the url is rewritten to internalapp.test2.com(our apex apps)/app1.

However, none of this works:

RequestHeader unset If-Modified-Since
RequestHeader unset If-None-Match
Header unset ETag
FileETag None
Header unset If-Modified-Since
Header unset If-None-Match

The reason I have to believe it is not working is because the developer tools in Chrome are still showing all of those in the header.

Using Mod_headers on an apache HTTP server to change the header request/response when accessing an application through a Glassfish server

Our current practice is to use an Apache redirect server to reverse proxy to our Application Express apps such that internal DNS entry (coolapp.example.com) can be visited to retrieve the contents of the application (internalapplication.example.com). However, I am trying to take it one step further by caching images/js/css files within the APEX application but am coming across a roadblock. No mod_headers syntax in my test virtualhost will work. I cannot add a header, I cannot modify a header, and I cannot unset a header/requestheader. The goal here is to eliminate the use of ETags in our Application Express apps in order to cache a bit more effectively, but I am having a difficult time getting started. I have read somewhat related topics here, but they do not seem to have the common denominator of the Glassfish server our applications sit on. Any help would be appreciated.

Example:

Servername testapp1.test2.com

RewriteRule ^(.$) internalapp.test2.com/$1 [P]

Redirect / test.test2.com/app1

this works - it allows us to go to test.test2.com which is redirected to /app1, which then the url is rewritten to internalapp.test2.com(our apex apps)/app1.

However, none of this works:

RequestHeader unset If-Modified-Since
RequestHeader unset If-None-Match
Header unset ETag
FileETag None
Header unset If-Modified-Since
Header unset If-None-Match

The reason I have to believe it is not working is because the developer tools in Chrome are still showing all of those in the header.

Using Mod_headers on an apache HTTP server to change the header request/response when accessing an application through a Glassfish server

Our current practice is to use an Apache redirect server to reverse proxy to our Application Express apps such that internal DNS entry (coolapp.example.com) can be visited to retrieve the contents of the application (internalapplication.example.com). However, I am trying to take it one step further by caching images/js/css files within the APEX application but am coming across a roadblock. No mod_headers syntax in my test virtualhost will work. I cannot add a header, I cannot modify a header, and I cannot unset a header/requestheader. The goal here is to eliminate the use of ETags in our Application Express apps in order to cache a bit more effectively, but I am having a difficult time getting started. I have read somewhat related topics here, but they do not seem to have the common denominator of the Glassfish server our applications sit on. Any help would be appreciated.

Example:

Servername testapp1.test2.com

RewriteRule ^(.$) internalapp.test2.com/$1 [P]

Redirect / test.test2.com/app1

this works - it allows us to go to test.test2.com which is redirected to /app1, which then the url is rewritten to internalapp.test2.com(our apex apps)/app1.

However, none of this works:

RequestHeader unset If-Modified-Since
RequestHeader unset If-None-Match
Header unset ETag
FileETag None
Header unset If-Modified-Since
Header unset If-None-Match

The reason I have to believe it is not working is because the developer tools in Chrome are still showing all of those in the header.

Using Mod_headers on an apache HTTP server to change the header request/response when accessing an application through a Glassfish server

Our current practice is to use an Apache redirect server to reverse proxy to our Application Express apps such that internal DNS entry (coolapp.example.com) can be visited to retrieve the contents of the application (internalapplication.example.com). However, I am trying to take it one step further by caching images/js/css files within the APEX application but am coming across a roadblock. No mod_headers syntax in my test virtualhost will work. I cannot add a header, I cannot modify a header, and I cannot unset a header/requestheader. The goal here is to eliminate the use of ETags in our Application Express apps in order to cache a bit more effectively, but I am having a difficult time getting started. I have read somewhat related topics here, but they do not seem to have the common denominator of the Glassfish server our applications sit on. Any help would be appreciated.

Example:

Servername testapp1.test2.com

RewriteRule ^(.$) internalapp.test2.com/$1 [P]

Redirect / test.test2.com/app1

this works - it allows us to go to test.test2.com which is redirected to /app1, which then the url is rewritten to internalapp.test2.com(our apex apps)/app1.

However, none of this works:

RequestHeader unset If-Modified-Since
RequestHeader unset If-None-Match
Header unset ETag
FileETag None
Header unset If-Modified-Since
Header unset If-None-Match

The reason I have to believe it is not working is because the developer tools in Chrome are still showing all of those in the header.

Using Mod_headers on an apache HTTP server to change the header request/response when accessing an application through a Glassfish server

Our current practice is to use an Apache redirect server to reverse proxy to our Application Express apps such that internal DNS entry (coolapp.example.com) can be visited to retrieve the contents of the application (internalapplication.example.com). However, I am trying to take it one step further by caching images/js/css files within the APEX application but am coming across a roadblock. No mod_headers syntax in my test virtualhost will work. I cannot add a header, I cannot modify a header, and I cannot unset a header/requestheader. The goal here is to eliminate the use of ETags in our Application Express apps in order to cache a bit more effectively, but I am having a difficult time getting started. I have read somewhat related topics here, but they do not seem to have the common denominator of the Glassfish server our applications sit on. Any help would be appreciated.

Example:

Servername testapp1.test2.com

RewriteRule ^(.$) internalapp.test2.com/$1 [P]

Redirect / test.test2.com/app1

this works - it allows us to go to test.test2.com which is redirected to /app1, which then the url is rewritten to internalapp.test2.com(our apex apps)/app1.

However, none of this works:

RequestHeader unset If-Modified-Since
RequestHeader unset If-None-Match
Header unset ETag
FileETag None
Header unset If-Modified-Since
Header unset If-None-Match

The reason I have to believe it is not working is because the developer tools in Chrome are still showing all of those in the header.

Using Mod_headers on an apache HTTP server to change the header request/response when accessing an application through a Glassfish server

Our current practice is to use an Apache redirect server to reverse proxy to our Application Express apps such that internal DNS entry (coolapp.example.com) can be visited to retrieve the contents of the application (internalapplication.example.com). However, I am trying to take it one step further by caching images/js/css files within the APEX application but am coming across a roadblock. No mod_headers syntax in my test virtualhost will work. I cannot add a header, I cannot modify a header, and I cannot unset a header/requestheader. The goal here is to eliminate the use of ETags in our Application Express apps in order to cache a bit more effectively, but I am having a difficult time getting started. I have read somewhat related topics here, but they do not seem to have the common denominator of the Glassfish server our applications sit on. Any help would be appreciated.

Example:

Servername testapp1.test2.com

RewriteRule ^(.$) internalapp.test2.com/$1 [P]

Redirect / test.test2.com/app1

this works - it allows us to go to test.test2.com which is redirected to /app1, which then the url is rewritten to internalapp.test2.com(our apex apps)/app1.

However, none of this works:

RequestHeader unset If-Modified-Since
RequestHeader unset If-None-Match
Header unset ETag
FileETag None
Header unset If-Modified-Since
Header unset If-None-Match

The reason I have to believe it is not working is because the developer tools in Chrome are still showing all of those in the header.

Using Mod_headers on an apache HTTP server to change the header request/response when accessing an application through a Glassfish server

Our current practice is to use an Apache redirect server to reverse proxy to our Application Express apps such that internal DNS entry (coolapp.example.com) can be visited to retrieve the contents of the application (internalapplication.example.com). However, I am trying to take it one step further by caching images/js/css files within the APEX application but am coming across a roadblock. No mod_headers syntax in my test virtualhost will work. I cannot add a header, I cannot modify a header, and I cannot unset a header/requestheader. The goal here is to eliminate the use of ETags in our Application Express apps in order to cache a bit more effectively, but I am having a difficult time getting started. I have read somewhat related topics here, but they do not seem to have the common denominator of the Glassfish server our applications sit on. Any help would be appreciated.

Example:

Servername testapp1.test2.com

RewriteRule ^(.$) internalapp.test2.com/$1 [P]

Redirect / test.test2.com/app1

this works - it allows us to go to test.test2.com which is redirected to /app1, which then the url is rewritten to internalapp.test2.com(our apex apps)/app1.

However, none of this works:

RequestHeader unset If-Modified-Since
RequestHeader unset If-None-Match
Header unset ETag
FileETag None
Header unset If-Modified-Since
Header unset If-None-Match

The reason I have to believe it is not working is because the developer tools in Chrome are still showing all of those in the header.