Apex Listener and EBS
Has anyone deployed Apex listener to work with EBS-R12 ? Did you deploy the war on the Application Server of EBS or did you deploy a new application server ?
I know exactly what you want, to embed the Apex listener servlet into the EBS OC4J, using autoconfig. I have done this before, but with my own servlet written from scratch, and it works very well. I had a go at integrating the the Apex listener servlet into an R12 instance a while back, and I actually got it to respond, but the URLs it was generating were not correct, so I gave up. I cannot remember the exact details, I got frustrated because I didn't have the time to wade through de-compiled source code to see what it was doing.
Here is the rough guide to getting a custom servlet embedded into the EBS R12 OC4J engine. You or somebody else could pick this one up, I don't have the time sorry.
Place your jar file in $JAVA_TOP (you may have to unzip it to get the class files usable by the JRE).
Navigate to the template directory.
cd $FND_TOP/admin/template
Create the "custom" directory if it does not already exist.
mkdir custom
If the file orion_web_xml_1013.tmp does not already exist in the "custom" directory then copy it in. Be careful not to overwrite an existing copy of this file or you may lose pre-existing customizations.
cp orion_web_xml_1013.tmp custom
Move into the custom directory and edit the custom template file.
cd custom
vi orion_web_xml_1013.tmp
Define your servlet: Paste the following lines just before the TCF alias (approximately line 162).
<servlet>
<servlet-name>myServlet</servlet-name>
<servlet-class>com.anything.myServlet</servlet-class>
</servlet>
Paste the following lines just before the TCF aliases (approximately line 950).
<servlet-mapping>
<servlet-name>myServlet</servlet-name>
<url-pattern>/myServlet/*</url-pattern>
</servlet-mapping>
4. Run Autoconfig
cd $ADMIN_SCRIPTS_HOME
adautocfg.sh
5. Bounce Apache
adapcctl.sh stop
adoacorectl.sh stop
adoacorectl.sh start
adapcctl.sh start
6. Test the Servlet
To test whether the servlet has been installed correctly, first get the value of profile option "Apps Servlet Agent".
Then enter the following URL in your browser:
<<value of profile option>>/myServlet/hello
Good luck,
Steve
Similar Messages
-
APEX Listener and EPG - strange behaviour
Hi
For some years, I've used EPG for APEX but have struggled with performance particularly as I can have up to 150 student developers using at any one time.
I do a fair amount of work using ORDImage and have successfully developed APEX applications to upload image files and display full-size and thumbnail images.
After upgrading to APEX 4.1 (from 4.0), I decided to install APEX Listener standalone.
Before I did so I checked that my applications still worked in 4.1 and they did.
However, just installing APEX Listener but not configuring it (yet) has meant that my image display in a report using a procedure based on wpg_docload.download_file( l_ordimage_image.source.localData ) no longer works in EPG - the images are not displayed.
Configuring APEX Listener and running the same application through that DOES display the images.
So this part of the application works under APEX Listener but not under EPG.
My application also allows users to upload images from APEX_APPLICATION_FILES using standard code. Under APEX Listener after uploading, I'm left with a blank page with a wwv_flow.accept URL although the image does indeed upload. Under EPG it works as expected and I get a success confirmation.
So this part of the application works under EPG but not under APEX Listener.
Has anyone else come across different behaviour depending on the mode of connection?
Thanks
Brian
[Oracle EE 11gR2, Windows Server 2008R2, APEX 4.1, APEX Listener 1.1.3]Hi Brian,
it sounds like you have both EPG and APEX Listener running on the same machine, so your problem might result from a port conflict. Note that both services use TCP port 8080 as default.
At least a port conflict would explain the strange behaviour in your case, some things working on one web server and some on the other.
Some parts of your initial post hint to that direction, e.g.
However, just installing APEX Listener but not configuring it (yet) has meant that my image display in a report using a procedure based on >wpg_docload.download_file( l_ordimage_image.source.localData ) no longer works in EPG - the images are not displayed.... because the APEX Listener only interfere with the EPG if it is at least running on the same machine as your database and furthermore, if it is unconfigured in terms of ist database connection, a port conflict might be the only way it could cause anything like that.
However, if you are sure that's not the issue, please check if you see any error in the APEX Listener's log for the following action you performed:
My application also allows users to upload images from APEX_APPLICATION_FILES using standard code. Under APEX Listener after uploading, I'm left with a blank >page with a wwv_flow.accept URL although the image does indeed uploadIf you actually see just a blank screen, something very bad must have happened and you should see some kind of stack trace there.
For further investigations, if necessary, it would be helpful to know how you deployed or started your APEX Listener and which JDK version you use.
For the moment, I still think the port conflict is my best guess.
You could avoid it by either changing the port for EPG (I'd not recommend that if you have other users still using it) or by changing the port for your APEX Listener.
-Udo -
Apex Listener and Clustering - WebLogic Server
Has anybody worked with the apex listener on a clustered WebLogic environment with a load balancer? We are having lots of connection issues, and I am wondering if this could be part of the problem.
Thanks,
MichelleSomeone Kindly try to give me reply for my issue .
Thanks& Regards,
Nitesh pareek. -
Apex Listener and Apex .3.2.1
Does Apex Listener work with Apex 3.2.1? May be I missed it, I can't find any info in the document.
Short question, short answer: It does.
The documentation for the APEX Listener doesn't refer to any special APEX version. The fact that the APEX documents only name the APEX Listener from APEX 4.0 onwards is due to the APEX Listener not being available before that release.
We have it running with APEX instances from 3.1 onwards, but I assume you could use it even for older versions.
-Udo -
Is APEX Listener RAC-capable? Neither the Installation Guide nor the APEX RAC white paper provides information. Is there some experience installing APEX Listener within a Oracle 10.2 RAC environment?
What would be the advantage / disadvantage?Hello,
as far as I know, you can use the thin driver to connect to RAC. If I don't remember this wrong, you should be able to configure the URL like this:
jdbc:oracle:thin:@(DESCRIPTION=(LOAD_BALANCE=on)
(ADDRESS=(PROTOCOL=TCP)(HOST=host1) (PORT=1521))
(ADDRESS=(PROTOCOL=TCP)(HOST=host2) (PORT=1521))
(CONNECT_DATA=(SERVICE_NAME=service)))What would you like to compare the RAC-Connection used by the APEX Listener with to outline advantages/disadvantages?
I think, the connection is not much different from the one you'd get when configuring a OHS that way. The EPG variant would be integrated in the RAC, but for fault tolerance you'd need some frontend server for node-failover anyway...
-Udo -
Apex listener installed no test and set bind variables buttons
I have installed Apex listener and while creating restful service module i dont see test and set bind variables buttons in the source region.
I went through the many posts. Installed apex listener successfully.
getting http://localhost:8080/ords/ started message when i start the listener.
and using Apex URL as http://localhost:7780/pls/htmldb.
What are the possibilities for this issues?
Please help me on this.
Thanks
ChandranApex listener version is 2.0.9
Apex version is 4.2 -
Communication between TNS_Listener and Apex Listener
Dear all,
I how does the communication between TNS Listener, Apex Listener, and Apex? For some reason I got the following error from Apex listener:
Caused by: oracle.dbtools.rt.web.WebException: Unable to start the Universal Connection Pool: oracle.ucp.UniversalConnectionPoolException: Cannot get Connection from Datasource
Caused by: oracle.net.ns.NetException: Listener refused the connection with the following error:
ORA-12505, TNS:listener does not currently know of SID given in connect descriptorI truncated some of the Java object messages.
This occurred when I tried to connect to Apex. Then I can fix this by going to:
http://localhost:8080/apex/listenerConfigurethen, everything worked fine.
My listener.ora file:
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = firefly.snowdrop.com)(PORT = 1521))
ADR_BASE_LISTENER = /usr/local/oracle
ADR_BASE_ORACLE_LISTENER = /usr/local/oraclemy tnsnames.ora file
INARA =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = firefly.snowdrop.com)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = inara.snowdrop.com)
)where inara is the instance name and firefly is the hostname.
Does the order of whether starting TNS Listener first or starting Apex Listener first matter?
Best regards,
Val
Edited by: Valerie Debonair on Aug 1, 2011 5:47 AMHm, I'm not able to reproduce the error. There was one time when I started APEX Listener got:
java.net.BindException: Address already in use: 8080=com.sun.grizzly.http.SelectorThreadHandler@46d999aand when I did the netstat -a got:
root@firefly:~# netstat -apnl |grep 8080
tcp6 0 0 :::8080 :::* LISTEN 4530/tnslsnr I had no idea what made 8080 tagged by the TNS listener, as I started it out before APEX Listener. Very curious how did this happen.
There was one time netstat -a showed me this (this happened after I stopped Apex Listener, stopped TNS Listener, shutdown the database, started database, started TNS Listener, and started Apex Listener):
root@firefly:~# netstat -a |grep 8080
tcp 0 0 firefly.snowdrop.:22110 firefly.snowdrop.c:8080 ESTABLISHED
tcp 0 0 firefly.snowdrop.:22111 firefly.snowdrop.c:8080 ESTABLISHED
tcp 0 0 firefly.snowdrop.:22107 firefly.snowdrop.c:8080 ESTABLISHED
tcp 0 0 firefly.snowdrop.:22109 firefly.snowdrop.c:8080 ESTABLISHED
tcp 0 0 firefly.snowdrop.:22112 firefly.snowdrop.c:8080 ESTABLISHED
tcp 0 0 firefly.snowdrop.:22108 firefly.snowdrop.c:8080 ESTABLISHED
tcp6 0 0 [::]:8080 [::]:* LISTEN
tcp6 0 0 firefly.snowdrop.c:8080 firefly.snowdrop.:22108 ESTABLISHED
tcp6 0 0 firefly.snowdrop.c:8080 firefly.snowdrop.:22107 ESTABLISHED
tcp6 0 0 firefly.snowdrop.c:8080 firefly.snowdrop.:22112 ESTABLISHED
tcp6 0 0 firefly.snowdrop.c:8080 firefly.snowdrop.:22109 ESTABLISHED
tcp6 0 0 firefly.snowdrop.c:8080 firefly.snowdrop.:22110 ESTABLISHED
tcp6 0 0 firefly.snowdrop.c:8080 firefly.snowdrop.:22111 ESTABLISHEDWhat are 22108, 22107, etc? I cannot reproduce this either.
Now I only got
root@firefly:~# netstat -a |grep 8080
tcp6 0 0 [::]:8080 [::]:* LISTEN
root@firefly:~# netstat -pnl |grep 8080
tcp6 0 0 :::8080 :::* LISTEN 5035/java which is normal, right?
Edited by: Valerie Debonair on Aug 1, 2011 9:43 PM -
Apex Listener vs. Oracle Application Server... advantages?
Are there advantages to installing Apex Listener over using an existing Oracle Application Server instance to serve Apex applications?
We have an existing application server instance in production. Would introducing Apex Listener and the extra overhead be of any advantage?
Thanks in advance for your thoughts.Hello "Portal Dude",
Are there advantages to installing Apex Listener over using an existing Oracle Application Server instance to serve Apex applications?APEX Listener introduces some additional features, such as Resource Templates, but lacks some others. Some people might want to migrate from OAS to another JEE Container that doesn't come along with a OHS/mod_plsql. Depending on the JEE Container, you could use AJP for load balancing, avoiding plain HTTP through a firewall, etc.
Would introducing Apex Listener and the extra overhead be of any advantage?The "extra overhead" may be smaller than you think. If you don't need the HTTP_Server component any longer, but can just deploy APEX Listener on the OC4J of your OAS, you might even save some bytes.
For several other aspects, there have been a few posts on that topic in the past:
{thread:id=1100122}
{thread:id=1555908}
{thread:id=1594158}
If there's anything you don't find in either the posts or the documentation, don't hesitate to ask.
-Udo -
Hi,
We've been using Oracle HTTP Server (Apache) for my APEX connections. We're new to APEX Listener and have no knowledge about it.
1. First of all, is Oracle GlassFish Server free? Does it require license cost per CPU like Oracle Weblogic does?
2. We currently have an extranet box that runs Oracle HTTP (actually Oracle HTTP inside Oracle AS 9i). If we need to use APEX Listener, should we install the J2EE Container (Oracle GlassFish) with APEX Listener inside our "Intranet" and only the Oracle HTTP Server in our extranet server? I'm confused about the appropriate method for "extranet" environment.
Thanks.
AndyHi Andy,
1. First of all, is Oracle GlassFish Server free? Does it require license cost per CPU like Oracle Weblogic does?As Prabodh already mentioned, there exist two different editions of GlassFish by now: The officially supported Oracle GlassFish Server (with license costs) and GlassFish Server Open Source Edition (free). While you can run APEX Listener on both of these JEE Containers, you will not get any support through MOS when using the latter one.
2. We currently have an extranet box that runs Oracle HTTP (actually Oracle HTTP inside Oracle AS 9i). If we need to use APEX Listener, should we install the J2EE Container (Oracle GlassFish) with APEX Listener inside our "Intranet" and only the Oracle HTTP Server in our extranet server? I'm confused about the appropriate method for "extranet" environment.I'm not sure if this has become clear yet: You don't actually need OHS for APEX if you start using APEX Listener. You can deploy APEX Listener to a GlassFish on your extranet server. It'll connect to the database listener of your APEX instance using JDBC like OHS/mod_plsql did before.
Of course, you could think about adding a security layer to your database by hiding it's listening endpoint from your extranet. To do that, you could deploy APEX Listener in your internal network and let OHS (or a "plain" Apache HTTPD) on your extranet box act as a proxy. That way, you'll have only HTTP or AJP traffic through your firewall (or whatever is in between your internal network and your extranet), but you could close your database port. In that case, it also could be a good idea to let the proxy serve the static contents for APEX ("images") on your extranet box for less traffic on the link between internal network and extranet and especially for better response times towards extranet clients. Of course, if you have internal users for that instance as well, you'll want to deploy the images to the GlassFish as well...
-Udo -
Apex Listener Configuration Issue.
Hi there,
As I wanted to try the latest Restful services in apex 4.2, I decided to install Apex Listener 2.0. I downloaded the file and followed the steps as in the installation notes. As a pre-requisite, I configured the Restful services successfully in apex 4.2 along with Oracle 11g Express Edition. However, the installation of listener seems to be not compleated successfully with the following installation feed back.
D:\software\apex_listener>java -jar apex.war
This Listener instance has not yet been configured.
Please complete the following prompts
Enter the location to store configuration data:d:\apexlistnerconf
Dec 27, 2012 3:34:47 PM oracle.dbtools.common.config.cmds.ConfigDir execute
INFO: Set config.dir to d:\apexlistnerconf in: D:\software\apex_listener\apex.war
Dec 27, 2012 3:34:49 PM oracle.dbtools.common.config.file.ConfigurationFolder logConfigFolder
INFO: Using configuration folder: D:\apexlistnerconf\apex
Enter the name of the database server [localhost]:
Enter the database listen port [1521]:
Enter 1 to specify the database service name, or 2 to specify the database SID [1]:2
Enter the database SID [xe]:
Enter the database user name [APEX_PUBLIC_USER]:
Enter the database password for APEX_PUBLIC_USER:
Password must not be empty
Enter the database password for APEX_PUBLIC_USER:
Confirm password:
Enter 1 to enter passwords for the RESTful Services database users (APEX_LISTENER,APEX_REST_PUBLIC_USER), 2 to use the same password as used for APEX_PUBLIC_USER or, 3 to skip this step [1]:3
Dec 27, 2012 3:37:03 PM oracle.dbtools.common.config.file.ConfigurationFiles update
INFO: Updated configurations: defaults, apex
Enter 1 if you wish to start in standalone mode or 2 to exit [1]:
Enter the APEX static resources location or Enter to skip:D:\software\apex42en\apex\images
Enter the HTTP port [8080]:
Dec 27, 2012 3:41:17 PM oracle.dbtools.standalone.Standalone execute
INFO: NOTE:
Standalone mode is designed for use in development and test environments. It isnot supported for use in production environments.
Dec 27, 2012 3:41:17 PM oracle.dbtools.standalone.Standalone execute
INFO: Starting standalone Web Container in: d:\apexlistnerconf\apex
Dec 27, 2012 3:41:17 PM oracle.dbtools.standalone.Deployer deploy
INFO: Will deploy application path = d:\apexlistnerconf\apex\apex\WEB-INF\web.xml
Dec 27, 2012 3:41:17 PM oracle.dbtools.standalone.Deployer deploy
INFO: Deployed application path = d:\apexlistnerconf\apex\apex\WEB-INF\web.xml
Dec 27, 2012 3:41:18 PM oracle.dbtools.common.config.file.ConfigurationFolder logConfigFolder
INFO: Using configuration folder: D:\apexlistnerconf\apex
Default Database connection not configured properly
Dec 27, 2012 3:41:20 PM oracle.dbtools.rt.web.SCListener contextInitialized
INFO: Oracle Application Express Listener initialized
Application Express Listener version : 2.0.0.354.17.06
Application Express Listener server info: Grizzly/1.9.49
Dec 27, 2012 3:41:20 PM com.sun.grizzly.Controller logVersion
INFO: GRIZZLY0001: Starting Grizzly Framework 1.9.49 - 12/27/12 3:41 PM
Dec 27, 2012 3:41:20 PM com.sun.grizzly.SelectorHandlerRunner handleSelectException
SEVERE: doSelect IOException
java.net.BindException: No free port within range: 8080=com.sun.grizzly.http.SelectorThreadHandler@480d41f3
at com.sun.grizzly.TCPSelectorHandler.initSelector(TCPSelectorHandler.java:432)
at com.sun.grizzly.TCPSelectorHandler.preSelect(TCPSelectorHandler.java:378)
at com.sun.grizzly.SelectorHandlerRunner.doSelect(SelectorHandlerRunner.java:188)
at com.sun.grizzly.SelectorHandlerRunner.run(SelectorHandlerRunner.java:132)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Dec 27, 2012 3:41:20 PM com.sun.grizzly.http.SelectorThread$3 onException
SEVERE: Exception during starting the controller
java.net.BindException: No free port within range: 8080=com.sun.grizzly.http.SelectorThreadHandler@480d41f3
at com.sun.grizzly.TCPSelectorHandler.initSelector(TCPSelectorHandler.java:432)
at com.sun.grizzly.TCPSelectorHandler.preSelect(TCPSelectorHandler.java:378)
at com.sun.grizzly.SelectorHandlerRunner.doSelect(SelectorHandlerRunner.java:188)
at com.sun.grizzly.SelectorHandlerRunner.run(SelectorHandlerRunner.java:132)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
java.net.BindException: No free port within range: 8080=com.sun.grizzly.http.SelectorThreadHandler@480d41f3
at com.sun.grizzly.TCPSelectorHandler.initSelector(TCPSelectorHandler.java:432)
at com.sun.grizzly.TCPSelectorHandler.preSelect(TCPSelectorHandler.java:378)
at com.sun.grizzly.SelectorHandlerRunner.doSelect(SelectorHandlerRunner.java:188)
at com.sun.grizzly.SelectorHandlerRunner.run(SelectorHandlerRunner.java:132)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Dec 27, 2012 3:41:20 PM oracle.dbtools.standalone.Standalone execute
INFO: http://localhost:8080/apex started.It simply hangs at the last line and I couldn't make any further progress.
Can you please help to find out what went wrong?
Thanks in advance.
Regards,
NatarajanThank you Probodh for your quick help. I set the port 8080 to apex listener and it does not give that error now.
However, it still says "Default Database Connection not configured properly"
I gave the SID name as xe which is the default one, and that is the correct SID for my DB also.
Any possible mistakes in there?
D:\software\apex_listener>java -jar apex.war
Dec 27, 2012 7:29:45 PM oracle.dbtools.standalone.Standalone execute
INFO: NOTE:
Standalone mode is designed for use in development and test environments. It is
not supported for use in production environments.
Dec 27, 2012 7:29:45 PM oracle.dbtools.standalone.Standalone execute
INFO: Starting standalone Web Container in: d:\apexlistnerconf\apex
Dec 27, 2012 7:29:45 PM oracle.dbtools.standalone.Deployer deploy
INFO: Will deploy application path = d:\apexlistnerconf\apex\apex\WEB-INF\web.xm
l
Dec 27, 2012 7:29:46 PM oracle.dbtools.standalone.Deployer deploy
INFO: Deployed application path = d:\apexlistnerconf\apex\apex\WEB-INF\web.xml
Dec 27, 2012 7:29:46 PM oracle.dbtools.common.config.file.ConfigurationFolder lo
gConfigFolder
INFO: Using configuration folder: D:\apexlistnerconf\apex
Default Database connection not configured properly
Dec 27, 2012 7:29:48 PM oracle.dbtools.rt.web.SCListener contextInitialized
INFO: Oracle Application Express Listener initialized
Application Express Listener version : 2.0.0.354.17.06
Application Express Listener server info: Grizzly/1.9.49
Dec 27, 2012 7:29:48 PM com.sun.grizzly.Controller logVersion
INFO: GRIZZLY0001: Starting Grizzly Framework 1.9.49 - 12/27/12 7:29 PM
Dec 27, 2012 7:29:48 PM oracle.dbtools.standalone.Standalone execute
INFO: http://localhost:8080/apex started.Regards,
Natarajan -
Apex listener images folder issue
Hi expert,
I'm newbies in oracle apex listener and would like to know more about oracle apex listener from all the expertise.
My situation is like that i would like to install apex listener (standalone mode) in a server to browser apex application from another server with oracle database 11g and oracle apex development.
My installation step as below;
1. I copy images folder from database server apex\images folder to apex listener installation folder before i install apex listener (called "apexlistener").
2. Run cmd "java -Dapex.home=c:\apexlistener -Dapex.images=c:\apexlistener\images -Dapex.port=8585 -Dapex.erase -jar c:\apexlistener\apex.war" to install apex listener.
Just a question, if i amended oracle apex application in database server, should i need to copy the images folder again to apex listener server?
What is the main source in images folder used in oracle apex listener server?
My experience is i tried to copy images folder from database server A with apex application (in runtime mode) to apexlistener folder server B. And i configure the database connection to server c with same oracle apex application as well. I tried to browser oracle apex application in server c from server B. I found out my apex application is not running properly due to the javascript is not installed properly. I would like to ask, is the images files in apex listener server must same with apex application server?
Anyone have idea on automatically start apex listener when the server reboots?
How to run apex listener in backend?
Hope can get some idea and solution from all the expertise!
Thanks in advance!
Best regards,
Apex JuniorHi,
Too many questions, and too little input, for one post.
I'm newbies in oracle apex listener and would like to know more about oracle apex listener from all the expertise.My situation is like that i would like to install apex listener (standalone mode) in a server to browser apex application from another server with oracle database 11g and oracle apex development.
My installation step as below;
1. I copy images folder from database server apex\images folder to apex listener installation folder before i install apex listener (called "apexlistener").
2. Run cmd "java -Dapex.home=c:\apexlistener -Dapex.images=c:\apexlistener\images -Dapex.port=8585 -Dapex.erase -jar c:\apexlistener\apex.war" to install apex listener.
Just a question, if i amended oracle apex application in database server, should i need to copy the images folder again to apex listener server?
>
The images folder has a relation with the Apex Version installed on the database, not with the applications in the Apex.
Depends on what you mean by amending applications. If you add custom CSS, JS ,etc to the application , and are not uploading the files to WORKSPACE_IMAGES, then you need to copy the external files to the images folder. But not copy it all over again.
If no custom files then no need to copy the images folder.
>
What is the main source in images folder used in oracle apex listener server?
>
The images folder, what else?
>
My experience is i tried to copy images folder from database server A with apex application (in runtime mode) to apexlistener folder server B. And i configure the database connection to server c with same oracle apex application as well. I tried to browser oracle apex application in server c from server B. I found out my apex application is not running properly due to the javascript is not installed properly. I would like to ask, is the images files in apex listener server must same with apex application server?
>
As stated earlier, the contents of the images (/i/) folder are related to the Apex Version. If your two db servers have different versions of Apex then the same images folder will not work with both. It will work with only one, the one that has the Apex Version compatible with the images folder.
>
Anyone have idea on automatically start apex listener when the server reboots?
>
How to suggest without knowing OS?
You can write a batch file that runs on bootup to achieve this.
>
How to run apex listener in backend?
>
What is backend? Do you means background or as a service?
Cheers, -
Report Printing: APEX 4.01 - APEX Listener - WebLogic 10.3.3
We have some report printing issues...
Our configuration is APEX 4.01 using the APEX Listener with WebLogic 10.3.3.
The first issue is that under "Print Attributes" the following is listed in red under "Printing":
"Report printing is currently not available, there is no print server configured."
The second one is that we need to print pdf format and I have not found a solution for doing this with the APEX Listener and WebLogic. I saw that the FOP solution for the APEX Listener didn't make it into the current release... Is there any way to do pdf type reports with the current APEX listener technology?
The third issue is that in the demo app when running a report there is a "Error loading file:" type error with "FLOW_FLASH_CHART" and apex_util.flash as part of the url.
Any help would be appreciated...
Thanks!
- ScottI deployed in WebLogic the fop.war that came with APEX 4.0.1 and it got rid of the error message, but when I tried to download a report as pdf, I got an error saying it was corrupted or invalid. I downloaded the file it produced and opened it in a text editor. It was a small html type file with the following URL:
ORA-20001: The printing engine could not be reached because either the URL specified is incorrect or a proxy URL needs to be specified.
When I go to the URL that I think it should be going to based on what I put into Instance settings> Report Printing, I get:
Compilation of JSP File '/apex_fop.jsp' failed:
apex_fop.jsp:5:18: The import oracle.xml cannot be resolved
<%@ page import='oracle.xml.parser.v2.XMLDocument'%>
^------------------------------^
apex_fop.jsp:6:18: The import oracle.xml cannot be resolved
<%@ page import='oracle.xml.parser.v2.XSLProcessor'%>
^-------------------------------^
apex_fop.jsp:7:18: The import oracle.xml cannot be resolved
<%@ page import='oracle.xml.parser.v2.XSLStylesheet'%>
^--------------------------------^
apex_fop.jsp:8:18: The import oracle.xml cannot be resolved
<%@ page import='oracle.xml.parser.v2.DOMParser'%>
^----------------------------^
apex_fop.jsp:12:1: XMLDocument cannot be resolved to a type
XMLDocument v_doc;
^--------^
apex_fop.jsp:13:1: XSLStylesheet cannot be resolved to a type
XSLStylesheet v_xsl = null;
^----------^
apex_fop.jsp:15:1: DOMParser cannot be resolved to a type
DOMParser parser = new DOMParser();
^------^
apex_fop.jsp:15:28: DOMParser cannot be resolved to a type
DOMParser parser = new DOMParser();
^------^
apex_fop.jsp:16:1: XSLProcessor cannot be resolved to a type
XSLProcessor processor = new XSLProcessor();
^---------^
apex_fop.jsp:16:30: XSLProcessor cannot be resolved to a type
XSLProcessor processor = new XSLProcessor();
^---------^
apex_fop.jsp:21:13: XSLStylesheet cannot be resolved to a type
v_xsl = new XSLStylesheet(new java.io.StringReader(request.getParamet -
How to set encoding in Apex Listener
I have a problem conversion characters when using Apex listener
The problem occurs in two different configurations:
1. APEX Listener 2.0 running on GlassFish Server Open Source Edition 4.0 Oracle Database 11g Release 11.2.0.3.0 (NLS_LANGUAGE: AMERICAN, NLS_CHARACTERSET: AL32UTF8)
2 . APEX Listener 2.0 running in standalone mode Oracle Database 10g Express Edition Release 10.2.0.1.0 (NLS_LANGUAGE: AMERICAN, NLS_CHARACTERSET: AL32UTF8)
to demonstrate the problem I created a restful service, which is in the GET method returns the result of the query :
select: p_param as "result" from dual
parameter : p_param transmitted via http header
parameter : p_param set to 'sample data дф ' , the last two characters - Cyrillic
Http Request is as follows:
GET http://xxx.xx.xxx.xxx:8080/apex/encode HTTP/1.1
Accept-Encoding: gzip, deflate
param: sample data дф
Host: xxx.xx.xxx.xxx: 8080
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.1.1 (java 1.5)
in both cases, the return value - <result> sample data 4D </ result>
I could not find documentation on how to avoid re-encoding?
regards.With a WE8MSWIN1252 (or comparable charset) database, fronted by APEX listener, and the absense of NVARCHAR2 support in APEX, is there an option to build an APEX application supporting UTF-8 characters anyway, without converting the whole database to UTF-8?
As "Application Builder User’s Guide" is quite tight-lipped when it comes to UTF-8 support, can somebody recommend an APEX FAQ concerning UTF-8 support in APEX?
Thanks and regards, Tom -
Apex Listener/Apache Tomact and filenames with spaces
I've installed the Apex Listener with Apache Tomcat, and all seems to work fine. Except when I try to do a CSV file data upload via the utilities screen in apex. If the filename/directory path contains spaces, then Apex reports "File Must Be Specified" error - yet if I do this same operation via EPG instead of Tomcat, it works. Are there any restrictions in Tomcat to using spaces??
Look at this thread. Re: File upload problem
regards. -
Apex Listener standalone and mapping directory
Hello,
I install Oracle XE 11 + Apex 4.2.2 + Apex Listener 2.0.2.
All work ok.
But, I need access from Apex applications to directory on server.
On the Oracle Http Server is solution in dads.conf :
Alias /test/ "/mnt/test"
It is possible this on Apex Listener in Standalone mode?
Or I must use glassfish, deploy apex.war and deploy static mapping war files like :
java -jar apex.war static --context-path /test /mnt/test/
-> test.war -> deploy and then work?
Thanks for any solution
Best Regards
Max Devainei have the same issue.
I put a alias in dads.conf in apex folder.
Alias /u/ "E:\ApexUserData\/"
restarted apex listener (standalone).
but unable to read file from the folder "e:\apexuserdata\aaa.txt"
the link i used is
http://host:port#/u/aaa.txt
unable to read the file. but able to read
http://host:port#/i/arrow.gif
directly without problem.
Maybe you are looking for
-
How do you put songs from you iPod to the iTunes library on your computer?
I have been haveing a big issue with it and have spent hours trying to get support and help but I still can not get it to work!!
-
How do I download my CD's to my IPhone?
how do I download my CD's to my IPhone?
-
Tab character in variable declaration
Hello, I have a little problem with declaration of variables in scripts. I get an error when there is a TAB character between the variable name and its data type: VARIABLE var_name number; Bind Variable "var_name number" is NOT DECLARED This
-
Configure different contacts in Send mail task
Hi experts, please help in below doubt How to configure the send mail task to use different contacts in different environment with environment variable ? Thanks
-
J2SE JRE on a thin client problems!!!!!!!!!!
HELP! I would like some help regarding a situation where a webstartable application totalling approx 400k as a prototype app is being sent to a thin client. This thin client is a Wyse computer with a 96mb flash card for its hard disk space. The Java