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 Devaine

i 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.

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 returns blank login page

    APEX 4.2.2
    APEX listener 2.0.2
    Glassfish 3.1.2.2
    Platform is 32bit Linux, Amazon EC2
    I am reasonably certain that I have deployed apex.war and i.war correctly to Glassfish, and defined a virtual path and a database connection correctly.
    When running Firefox on the EC2 machine, browsing to
    http://localhost:8080/apex/dad1/
    returns a login page no problem. But browsing to the external, publicly visible, address (I have to obscure the actual address, I'll use a.b.c.d) either from the hosting machine or across the net returns an empty page:
    http://a.b.c.d:8080/apex/dad1/
    This succeeds:
    http://a.b.c.d:8080
    I get the standard Glassfish page so I know Glassfish is listening on that address.
    I have also tried starting the listener standalone, and I get the same effect: it returns a login screen when browsing to the localhost, but going to the external address I get a blank page.
    The pages really are blank, nothing shows in the page source and this is all Firebug returns:
    <html>
    <head> 
    <link title="Wrap Long Lines" href="resource://gre-resources/plaintext.css" type="text/css" rel="alternate stylesheet"> 
    </head>
    <body> 
    <pre></pre> 
    </body>
    </html>
    I have been trying to enable tracing of the request on the server side, but I haven't yet found a way to produce the equivalent of an access.log. Searching the forum did produce a couple of references to "routing rules" but I have been unable to find what and where these might be.
    As the listener works perfectly when going to localhost, I cannot believe that rthis is the common problem of not finding imges, or an issue with url mapping. But I am of course open to any suggestions!
    Any insight will be welcome.
    Thank you for your time.

    Fixed. Finally tracked it down, a redirection problem fixed with patch 16760897.
    Thank you to anyone who looked at this, sorry to have wasted your time, hope posting the solution will assist someone else.

  • 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 Junior

    Hi,
    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,

  • How can I disable restful service only ?On Apex Listener

    Hi,all:
        For security reason,I want to disable restful data service in some of the apex listener server and enable application service only. How can I do that?

    Support give the solution:
    The way to disable restful services is NOT to configure AL and RT connection pools in ORDS/Rest Data Services.(APEX Listener).
    Remove or rename apex_rt.xml and apex_al.xml files available in the configuration directory ( conf ) used by those instances configured against ORDS / the APEX Listener.
    This way ORDS / the APEX Listener will not be able to route REST requests to the database and will return 404 to the end user

  • Get CGI env variables in a database procedure using new APEX Listener

    I already posted this question in the Apex Listener forum and still no replies after one week. The original post is here:
    Get CGI environment from APEX Listener within database procedure
    So please forgive me for posting in this forum as well, but there is a lot more activity here.
    I'd like to know how I can get the CGI environment from the APEX Listener. For example, if I want to write a procedure that inserts into a table the originating IP Address of the client making the web request, how do I get it?
    I am familiar with the Oracle Http Server and mod_plsql, and I know how to call OWA_UTIL.GET_CGI_ENV to get this sort of information. How do I do it using the APEX Listener?
    In particular, how do I do this when calling a custom procedure (not in an Apex workspace)? When I try it now, I get an error from owa_util. The cgi env seems to be empty or not initiated (owa.num_cgi_vars is null or zero).
    Specific set-up:
    I have a web server running the latest JDK, Glassfish, and 1.1.4 Apex Listener. It connects to another server running the latest 11.2 database. Apex is installed and running, but I am not really developing a traditional Apex application in a workspace. I mainly use it like you would use mod_plsql. In other words, I have custom pl/sql packages that are called directly via URL. The requests are forwarded by the listener to the database, and the DB executes the procedure and returns output using htp.p to send text back to the browser. And it works just fine for this purpose. But if I want to call GET_CGI_ENV to get information like the IP Address, web browser making the request, etc. I can't seem to get it with the OWA packages.
    Can anyone shed some light on this? If Apex Listener is not designed to do this, is there some kind of workaround I can use to forward this sort of information to the database for each request?

    I have not tried owa_util.print_cgi_env from SQL Workshop yet, as I have not created an APEX workspace. I have had no need for a workspace because of the way I am using APEX as a method for calling custom packages and stored procedures. In other words, I am using APEX strictly for the mod_plsql functionality. I just use it to forward requests to the database to execute pl/sql code, but I don't develop anything in APEX. My application is a web service with no screens and no direct user interface, which is why I did not need to create APEX forms. The front end is a mobile app that makes calls to the web service.
    But I have tried calling owa_util.print_cgi_env in one of my stored procedures and it returns no data, even when calling it from the web front-end.
    So I am beginning to believe that if the OWA toolkit works with APEX, then it must only be enabled when invoked within a workspace. Stand-alone procedures can be called via APEX, but apparently doing so does not initiate the CGI env variables. This set-up used to work under the OHS with mod_plsql. The embedded pl/sql gateway also works this way.
    Is there a procedure call that APEX is making to set the environment before each SQL Workshop request?
    My security model currently blocks access to all packages and procedures except for my custom packages. I am using the APEX Listener configuration to allow only the packages listed by name in a white list. But I thought I allowed all access when I first tried calling the OWA packages. I'll have to try that again.

  • Apex Listener in standalone mode, how to set/reset db connection.

    Sometime ago I installed Apex Listener for testing, then I removed it.
    Now I downloaded last version, installed it in standalone mode and try to set the DB connection.
    However when I try to edit in listenerAdmin page the db connection parameters I can't : they are greyed and report the connection informations I gave in my first test installation.
    How can I change them ?
    How can I avoid all fields in listenerAdmin greyed ?
    Tks
    Tullio

    Hello Tullio,
    you can run /listenerConfigure/ only as long as there is no configuration available. The database parameters can only be setup when the APEX Listener is not connected due to the state of its connection pool. Once it is established, you can only configure it offline by editing the apex-config.xml . That's why the parameters are greyed out in /listenerAdmin/.
    You probably only removed the war file of your test installation, but not the apex.home including the apex-config.xml that is stored in there. So your new installation found the old home and reused the connection.
    You could either edit the apex-config.xml or delete the apex.home and rerun /listenerConfigure/
    If you run on a windows system, you'll find the apex.home in your users TEMP, usually located in the temp folder underneath the local settings of your user profile. The directory to locate is now called "apex".
    -Udo

  • 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

  • APEX Listener EA2 Standalone CLOB error

    I'm testing the APEX Listener EA2 release in Standalone mode on CentOS against Oracle XE.
    My RESTful service calls use the Media Resource type to return a CLOB that I format myself inside a function:
    select 'application/json', my_function_that_returns_json_in_a_clob from dual
    In the EA2 release, this is generating an error if the function returns more than 4000 bytes (works with 4000, fails with 4001). It is as though the function is getting cast as a varchar2 somewhere. I verified that the function will correctly return a large result to other sources (dbms_output, for instance).
    The APEX Listener Log reports the error as:
    oracle.dbtools.rt.web.HttpEndpointBase restfulServices
    SEVERE: ORA-22922: nonexistent LOB value
    Here's a Test Case:
    create or replace function test_size(p_cnt in integer) return clob
    is
    l_clob clob;
    begin
    for i in 1..p_cnt loop
    l_clob:=l_clob||'a';
    end loop;
    return l_clob;
    end;
    Then create a RESTful service call:
    Method: "GET"
    Source Type: "Media Resource"
    Source: select 'application/json', test_size(4001) from dual
    Thanks,
    Tim

    Thanks for your thorough reply!
    Unfortunately, your workaround doesn't fix the problem with EA2. It encounters the 4000 character limit as well.
    I understand your advice regarding using the QUERY type. I chose the Media Resource strategy for two main reasons:
    1. These services calls are for our mobile developers. Because they use some predefined frameworks for managing data that comes to the mobile app, they wanted the json to distinguish between data sets (rather than every data set being called "items"). I am able to format the json in such a way that it doesn't confuse their code. Is there another way to customize the format of the default json created by the QUERY type?
    2. I need to conduct some other business as part of the call. For instance, the service passes in a user's credentials which I use to authenticate and then retrieve the appropriate results based on who they are. Currently, I have stored procedures that authenticate APEX users or LDAP users.
    Perhaps old habits die hard, but I find that if I just do all of this myself in a stored function, I have all of the control I need. If you have other recommended strategies, I'm all ears.
    Thanks!
    _Tim                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • 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.

  • How to install and configure APEX listener on a 2 node cluster WLS

    So I've installed the apex listener on a 2 node cluster WLS and can get the Apex login screen to pop only when node 1 is up and node 2 is down.
    I'm going through a F5 - round robin and the login page does not pop when on node 2.
    I've followed the Oracle Apex Listener install doc: Oracle® Application Express Listener Installation and Configuration Guide
    Release 2.0 Part Number E25066-08
    Also followed the following blog exactly and compared it the install doc: http://www.snapdba.com/2013/05/configuring-the-apex-listener-2-0-1-on-weblogic-12c/
    Not much literature on what to do for a cluster multi node WLS configuration.
    What do I need to deploy onto node 2? I assume the images but what else?
    WLS: 10.3.6.0 - 2 linux servers (Linux 2.6.39-200.24.1.el6uek.x86_64 #1 SMP Sat Jun 23 02:39:07 EDT 2012 x86_64 x86_64 x86_64 GNU/Linux)
    APEX: 4.2.2
    APEX Listener: 2.0.3.221.10.13
    DATABASE: 11.2.0.3 RAC (only one database)

    Ok so I went and copied the image directory to both WLS servers in the correct directory that was dictated when creating the image war (i.war). Seems to work.
    Thx,
    Russ

  • Cache and Load Balancing with Oracle APEX Listener

    Hi,
    I intend to use only HTTP access.
    How to implement a Cache and Load Balancing with the Oracle APEX Listener?
    Is it possible to do with the the standalone running APEX Listener?
    Thanks by advance for any tips/documentation/references.
    Kind Regards.

    Hi,
    I think this question is best asked in the APEX Listener forum:
    ORDS, SODA & JSON in the Database
    Kind regards
    Sandro

  • Cache and Load Balancing for the Oracle APEX Listener

    Hi,
    I intend to use only HTTP access.
    My database is Oracle 11gR2, SE, 32 bit.
    How to implement a Cache and Load Balancing with the Oracle APEX Listener?
    Is it possible to do with the the standalone running APEX Listener?
    Thanks by advance for any tips/documentation/references.
    Kind Regards.

    Error. To be closed.

  • Cache and Load Balancing for Oracle APEX Listener

    Hi,
    I intend to use only HTTP access.
    The database I use is Oracle11gR2 SE 32bit.
    How to implement a Cache and Load Balancing with the Oracle APEX Listener?
    Is it possible to do with the the standalone running APEX Listener?
    Thanks by advance for any tips/documentation/references.
    Kind Regards.

    Error. To be closed.

  • 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,
    Michelle

    Someone Kindly try to give me reply for my issue .
    Thanks& Regards,
    Nitesh pareek.

Maybe you are looking for