APEX listener 2.0.1 with Glassfish 3.1.2 image file mapping

Hello
After spendig two hours reading documents, Articles and forum posts, this is the right time to ask here :-)

I m using Oracle 11.2.0.3 Win 2008 R2 with Apex listener 2.0.1 and Glassfish 3.1.2

When I generate the file i.war, asked me to use a directory of the image. that s okay. But a peek inside the weblogic.xml file shows me,
that is the virtual folder /i used
My application uses the resp/images. I would use the/images folder, but there is no Option, when generating the file i.war

There are a few posts here, where users requesting a solution when you have a blank Page.
Just look inside the page, you see a lot of content, but which is not displayed, because of all the .css / .js .png / .jpg files point to the wrong directory.

I tried to regenerate the i.war file (with the XML of the parameter (I, m, a model of Java)
<>context-root / images < / context root >

But I get the error:

c:\Temp > java-jar i.war - cvf *. * WEB - INF
Error: Cannot access c i.war

Any help?

Thank you

Marco

As stated in the documentation of the listener [1] you can get assistance on orders of auxiliary command line using:


java -jar apex.war help

for example, view all the options taken in charge by the static command type (also noted in the documentation: [2]):


java -jar apex.war help static

which will display:


java -jar apex.war static [--context-path]

Options:
[--context-path] The context path at which the
WAR will be deployed,
defaults to: /i

Arguments:
The location where the Oracle
Application Express static
resources are stored

In order to use/images instead of / i use

java-jar apex.war static - context-path/images ${APEX_HOME} / images

where ${APEX_HOME} is the location of your APEX facility

References:
[1] on the command line Interface
[2] create the Web Archive for Oracle Application Express Images

Tags: Database

Similar Questions

  • Cannot deploy Apex listener 1.1.2 in GlassFish 3.1

    Our Apex listener has suddenly stopped working (after several weeks of operation smoothless), so I cancelled Apex listener, then tried to deploy.
    However deploy apex.war (from apex_listener.1.1.2.131.15.23.zip download) does not work:

    An error has occurred
    Error occurred during deployment: Exception when loading the application: java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: oracle.dbtools.rt.x3p.impl.X3PParseException: ParseError at [row, col]: [1.3] Message: markup statements contained or indicated by the document type declaration must be well-formed... Please see server.log for more details.

    Any suggestions?

    Is our version of GlassFish: GlassFish Server Open Source Edition 3.1 (build 43)

    / Peter

    Hello Peter,.

    I think that this error was triggered due to a failure of Oracle servers that contain the schema definition for validation.
    The two http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd URLS have been temporarily low today but shows a splash screen, for schema validation failed.
    Currently, the system seems to be again. Could check you if it still works?

    -Udo

    P.S.: Similar problem: {: identifier of the thread = 2246236}

    Published by: Udo on 30.06.2011 18:41

  • How can I (or why I can't) opened previously registered with 14 elements Adobe EPS image files?

    Running an NCP, thought I could do it in 11 elements and now I've updated only to seem to have been downgraded.

    cynthia66 wrote:

    Running an NCP, thought I could do it in 11 elements and now I've updated only to seem to have been downgraded.

    Unfortunately, the EPS format is no longer supported since version 12.

  • Apex listener 2.0 and Glassfish configuration error

    Hello

    When I do the configuration between Glassfish 3.1.2.2 and apex listener 2.0, I get the error. After I deployed the apex.war I tried to go to http://localhost: 8080/apex/listenerConfigure but I was getting this error.

    java.lang.IllegalStateException: PWC3990: getWriter() has already been called for this answer
    at org.apache.catalina.connector.Response.getOutputStream(Response.java:674)
    at org.apache.catalina.connector.ResponseFacade.getOutputStream(ResponseFacade.java:206)
    at oracle.dbtools.rt.web.ServletResponses.sendResponse(ServletResponses.java:84)
    at oracle.dbtools.rt.web.ServletResponses.sendResponse(ServletResponses.java:130)
    at oracle.dbtools.rt.web.ServletResponses.sendResponse(ServletResponses.java:111)
    at oracle.dbtools.rt.web.HttpEndpointBase.service(HttpEndpointBase.java:153)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:770)
    at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1550)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:281)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:655)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:595)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:161)
    at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:331)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:231)
    to com.sun.enterprise.v3.services.impl.ContainerMapper$ AdapterCallable.call (ContainerMapper.java:317)
    at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:195)
    at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:860)
    at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:757)
    at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1056)
    at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:229)
    at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137)
    at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104)
    at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90)
    at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79)
    at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54)
    at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59)
    at com.sun.grizzly.ContextTask.run(ContextTask.java:71)
    to com.sun.grizzly.util.AbstractThreadPool$ Worker.doWork (AbstractThreadPool.java:532)
    to com.sun.grizzly.util.AbstractThreadPool$ Worker.run (AbstractThreadPool.java:513)
    at java.lang.Thread.run(Thread.java:619)

    could someone help me

    FYI - I can configure apex listener 1.1.4 and Glassfish 3.1.2 no problem

    Thank you

    This is one of them. There are several option.

    Take a look at:

    java -jar apex.war help 
    

    That will show you all the options.

    Which is the main:

    java -jar apex.war setup --database test
    

    Now keep in mind, this will change your WAR file. After its deployment, the parameters are in XML files. I highly recommend that you configure a location of configuration before you deploy the WAR file. It will make your life much simpler and more predictable.

    More details here: [url http://docs.oracle.com/cd/E37099_01/doc/doc.20/e25066/config.htm#autoId0]Listener V2.0 Docs

    -Tim

    Published by: Tim St. H., February 22, 2013 11:24

    Published by: Tim St. H., February 22, 2013 11:30

  • apex listener 503 - Service unavailable

    Hello

    I installed APEX listener 2.0.5.

    This is my default file. XML:

    <? XML version = "1.0" encoding = "UTF-8"? >

    <! DOCTYPE SYSTEM property "http://java.sun.com/dtd/properties.dtd" > ""

    Properties of <>

    < comment > saved on Thu Jan 02 13:26:45 THIS 2014 < / comment >

    < key = "enter db.password" >! apex_public_user < / entry >

    < key "debug.printDebugToScreen entry" = > false < / entry >

    < key "security.disableDefaultExclusionList entry" = > false < / entry >

    < key = "enter cache.maxEntries" > 500 < / entry >

    < key = "enter error.maxEntries" > 50 < / entry >

    < key = "enter security.maxEntries" > 2000 < / entry >

    < key = "cache.directory entry" > / tmp/apex/cache < / entry >

    < enter key = "jdbc. DriverType"> thin < / entry >

    < key = "enter log.maxEntries" > 50 < / entry >

    < key = "db.hostname entry" > localhost < / entry >

    < enter key = "jdbc. MaxConnectionReuseCount"> 1000 < / entry >

    < key "log.logging entry" = > false < / entry >

    < enter key = "jdbc. InitialLimit' > 3 < / entry >

    < enter key = "jdbc. MaxLimit' 10 > < / entry >

    < key = "enter cache.monitorInterval" 60 > < / entry >

    < key = "enter cache.expiration" > 7 < / entry >

    < key = "enter jdbc.statementTimeout" > 900 < / entry >

    < enter key = "jdbc. MaxStatementsLimit' 10 > < / entry >

    < key = "db.sid entry" > ORPC3 < / entry >

    < key = "misc.defaultPage entry" > apex < / entry >

    < key = "misc.compress" / entry >

    < enter key = "jdbc. MinLimit"> 1 < / entry >

    < key = "cache.type entry" > lru < / entry >

    < key "cache.caching entry" = > false < / entry >

    < key = "enter db.port" > 1521 < / entry >

    < key "error.keepErrorMessages entry" = > true < / entry >

    < key = "cache.procedureNameList" / entry >

    < key = "cache.duration entry" > days < / entry >

    < enter key = "jdbc. InactivityTimeout"1800 > < / entry >

    < key "debug.debugger entry" = > false < / entry >

    < / properties >

    I started the listener with java-jar apex.war

    When I started with http://localhost: 8080/apex/f? p = 4550:1:2983093393191825

    I have APPLICATION EXPRESS LISTENER 503 - Service unavailable

    Please help me!

    Concerning

    Siegwin

    APEX connects to the database using APEX_PUBLIC_USER, which would be the user to modify.

    Otherwise, run again the configuration of your headset with the name of user and password correct e.g. java-jar apex.war of installation

  • Help with image files, drop box and save the changes?

    My husband put all our photos of drop box.  They are still on our computer, but we can now also access elsewhere.  But it has somewhat modified files.

    I'm putting together, cultures and (in general) to save the changes made to some images.  But I get an error.

    Example: The image I want to change is on the side.  I right-click on the file icon and select "Rotate clockwise" in the menu dropdown. Immediately, I raise the sound "bonk" and an error message appears: "you cannot rotate this image.  The file can be used or open in another program or maybe the file is read only.  It wasn't a problem before doing things to the drop box.
    So, I wait to make sure that everything is ok.  The image is not open anywhere else.  I clicked the properties option to see if it is in read-only mode.  He said that it is not.
    When I open the image and try to use the rotation on the bottom, it will turn.  But when I close the window, I get a different error message that says "Windows Photo Viewer cannot save changes to this picture because there is a problem with the properties of the image file."   There is a link at the bottom of the message box for "Why can't save this picture?  I clicked it.  He said "the subject you are looking for is not available in this version of Windows. For additional assistance, see multiple support options. "The more support options?  Get a tech savvy friend who could help me. Nice.
    Anyone know what I need to do to make this work?
    I don't know what version of windows we have.  I'm sure that's not Vista.  It's the one after that.

    Hello

    Thank you asking in the Microsoft Community.

    1. open Microsoft paint.

    2. navigate to the image through Microsoft Paint.

    3 try to rotate and save the image.

    4 let me know if you are able to.

    Post back with the result.

  • Custom Windows photo viewer photo I shot as he says there is something wrong with the properties of image file, what can I do?

    I took some pictures on my iPhone 4 and saved on the laptop, but some are out on the side for a reason, and now when I try to turn, they cannot be saved, what is wrong and what can I do?

    I took some pictures on my iPhone 4 and saved on the laptop, but some are out on the side for a reason, and now when I try to turn, they cannot be saved, what is wrong and what can I do?

    ===============================================
    I don't know if the following links answer your question, but
    they may be worth a visit:

    Good luck and * proceed at your own risk *.

    FWIW... There is a very long discussion (several pages) to the
    following link:

    Cannot change the imported iPhone 4S photo
    https://discussions.Apple.com/thread/3444951?start=0&TSTART=0

    More Discussion

    iPhone 4S image properties is not compartible with Windows?
    Editing can be done on the computer due to the error
    "Windows Photo Viewer cannot save changes to this picture.
    because there is a problem with the properties of the image file".
    Any help?
    https://discussions.Apple.com/message/17291884#17291884

    More Discussion:

    We cannot turn a few photos in Windows 7 (but can turn others)
    http://answers.Microsoft.com/en-us/Windows/Forum/Windows_7-pictures/cant-rotate-some-photos-in-Windows-7-but-can/3a809845-9144-4BB1-9bb3-ab4f5b856524

    A simple solution is to open the photos in paint or most other
    digital image editor and modify it.

    Some people have reported success using the following free download
    to remove the metadata.

    Property restrictions stripper iphone 4S (JPEG & PNG Stripper)
    http://www.SteelBytes.com/?mid=30&cmd=download&PID=15

    Here's a way to turn...

    Easily turn locked iPhone 4 and 4 s Photos in Windows 7 with
    the rotator Lossless JPEG free
    http://www.daleisphere.com/easily-rotate-locked-iPhone-4-and-4S-photos-in-Windows-7-with-the-free-JPEG-lossless-Rotator/

    Free download JPEG Lossless rotating
    http://annystudio.com/software/jpeglosslessrotator/

  • Withdrawal of the cache folder ready to call APEX earphone with GlassFish

    Hello

    We had several unexplained crashes of APEX in our environment in recent months. All this happened after we moved to GlassFish the listener to the APEX. The symptoms were always that all connections in the JDBC connection pool have been used and we had to restart the instance of GlassFish server to free up.

    I finally managed to replicate and to determine the cause of this recurring problem. The culprit is file caching used by the auditor of the APEX to the cache file. We use it to cache the downloads of image of the database with a procedure, and the caching folder was set to/tmp/apex/cache. I believe that this is the default setting. All right, when the procedure was called the images were downloaded from the database and caching under/tmp/apex/cache. However, for some (still unexplained) reason, Linux sometimes removes this system of files/tmp folder. This seems to happen at any time after a period of inactivity. We have not to restart the server. After that the file is missing, the listener of the APEX is unable to recreate it, continues to create new database connections until the configured maximum value is reached, and we need to restart the instance of GlassFish to free up. It also recreates the cache folder.

    Our environment: GlassFish 3.1.1 and 3.1.2, APEX listener 1.1.3 Oracle Linux 6.2. I didn't try the new listener APEX 1.1.4 yet I'm not sure if this problem has been fixed in the latest version.

    (kind of reminds me of the problem where the APEX configuration file is by default submitted/tmp and also disappears from time to time)

    HTH,
    Matthias
    http://matthiashoys.WordPress.com

    Hello Matthias.

    (kind of reminds me of the problem where the APEX configuration file is by default submitted/tmp and also disappears from time to time)

    This is exactly the same cause. Why don't you set up APEX listener to use a permanent seat for his repertoire of setting cached when you set the config.dir ? The corresponding setting in the apex - config.xml is named apex.cache.directory and must be paid when caching is enabled.
    Of course, it would be useful APEX auditor would report an error when its cache dir is missing rather than die in silence. It would be better to change the mode of caching mode not cached when these errors occur. Maybe it will be better in a future release.

    -Udo

  • Problem using a folder next to the East on UNIX Ubuntu 10.4 with APEX listener

    Hi Forum,

    We have APEX 4.1 installed on Ubuntu 10.4 with the latest version of the APEX-listener.

    We want to achieve is that we are able to collect our Javascript extensions and css next to the folder is in a folder of our own.
    Problem now is UNIX, this doesn't seem to be possible, because we are unable to load any resource of this folder. The only solution we could come up with is to place a symbolic link in the/i/folder-pointing to the directory we want to include.
    The folder we want to include got 777 to exclude any potential problems of access to in UNIX

    Under Windows, this doesn't seem to be the case.

    If someone had a similar problem or is able to give advice on how to fix this?

    Thank you

    Jürgen

    Hi Jürgen,

    docroot
    -foo
    -J' I

    This does not work in stand-alone mode, the integrated nature fixed contexts (including + / i + and + / apex +) without the chance to bring custom contexts.
    It will run in GlassFish/Tomcat, if you deploy content correctly. You can do this by creating a war file that carries your files, but I wouldn't recommend it has static content more convenient ways.
    Tomcat has for example a context ROOT when running on a default configuration. This context can be used for static content similar to a simple HTTP server host, for example when using the htdocs of the Apache HTTP server as docroot. So you could simply copy your directory foo in the context of the ROOT and should be able to access the content using http://yourtomcathost:yourtomcatport/foo/file name .
    GlassFish is a concept similar to this: each domain has a docroot directory. As explained for Tomcat, you can simply create or copy your directory foo it so that it is available for your customers.

    If this does not work, you have a general problem with your GlassFish/Tomcat configuration, like the docroot has nothing to do with the earpiece of the APEX. I have just retestet with fees GlassFish/Tomcat on Ubuntu 8.04 LTS (Server Edition) as follows:
    1 download the http://glassfish.java.net/ zip or Tomcat mirror packages respectively.
    2 unzip the package
    3. create the directory 'foo' docroot (for GlassFish) and ROOT (for Tomcat)
    4. create the file 'bar' in 'foo '.
    5. start the server instance
    6 use a client remote access http://mybox:8080/foo/bar.txt and got the file.

    How did you install your GlassFish/Tomcat on your Ubuntu?
    Whatever it is, if you tried the docroot/ROOT approach and doesn't, you can always try the war file deployment. Maybe your GlassFish/Tomcat instance has disabled the docroot/ROOT context for security reasons.

    Note that you can have both, that is, you cannot use the war with framework file + / foo + and have always a + / foo + subdirectory in your docroot/ROOT.

    -Udo

  • Apex Listener SSL on Port 8181 use Glassfish

    Hello experts!

    I have deployed the listener apex 1.1.3 on my glassfish server and the listener is running on port 8080 (http-listener-1).
    My question is how can I configure the server Glassfish uses http-listener-2 (port 8181 and SSL enabled) instead?

    Searched for hours to find some info but could not find an answer s.

    Any help is appreciated!

    Thank you

    Sebastian

    Hello

    This is not really related to the listener of the Apex, it is more a question General glassfish.
    When you say instead, you realize that you can have glassfish listen on multiple ports, secure or not?
    It's not one or the other situation.

    If you go to http://: 8181 you will access the same application as you would on port 8080.

    This blog goes into details on how to configure HTTPs on a listening port of glassfish for the network:
    [http://javadude.wordpress.com/2010/04/06/getting-started-with-glassfish-v3-and-ssl]

    Published by: on February 13, 2012 mwrf 04:38

  • Download Excel with APEX listener 1.1.4

    Hello

    Just installed the listener APEX 1.1.4 on windows/glassfish and attached the download excel (without success).
    I followed the instructions in the blog of Kris.

    It should not work on 1.1.4?

    Also: I find nothing in the install doc.

    Brgds
    Martin

    Hi Martin,

    the feature is undocumented and not officially supported for 1.1, but known to work for Excel files in the 2003 format. XLSX (from 2007) is not implemented.
    Maybe through the discussion and examples in {: identifier of the thread = 2342792} helps you solve your problem.

    -Udo

  • APEX listener 2.0.1 does not start when the system starts

    APEX listener 2.0.1

    APEX 4.2.2

    Oracle EE 11 GR 2

    Linux RHEL 6.3

    GlassFish 3.1.0

    -------------------------

    After the reboot of my Linux server with the configuration above, the listener of the APEX is broken and must be restarted by GlassFish. This may be the cause?  How can I get the APEX via GlassFish listener to restart the power-up system?

    NOTE: I don't have this problem when you use APEX listener 1.4 to the same server GlassFish.

    Thank you.

    Found the problem.  chkconfig was before the database has increased the age GlassFish and running.  Chkconfig changes of the parameters in the startup scripts. Works very well.

  • APEX listener returns the empty login page

    APEX 4.2.2

    APEX 2.0.2 listener

    GlassFish 3.1.2.2

    The platform is 32-bit, Linux, Amazon EC2

    I am reasonably sure I have properly deployed the apex.war and i.war to Glassfish and set a virtual path and database connection correctly.

    When you run Firefox on the EC2 machine, access to the

    http://localhost: 8080/apex/dad1.

    does not return a login page, no problem. But navigation externally visible publicly address (I have to hide the real address, I'll use a.b.c.d) of the hosting machine or across the net returns a blank page:

    http://a.b.c.d:8080/apex/dad1.

    The success of this operation:

    http://a.b.c.d:8080

    I get the standard Glassfish page so I know Glassfish is listening on that address.

    I also tried from the stand-alone earphone, and I get the same effect: it refers to a login screen when browsing the localhost, but go to the external address, I get a blank page.

    The pages are really blank, there is no indication in the source of the page and it's all Firebug returns:

    <html>

    <> Chief

    "" <link title= "wrap long lines" " href="resource://gre-resources/plaintext.css" type="text/css"" rel= "alternative style"> "

    < /head>

    <> body

    <>of thepre< /pre>

    < /body>

    < /html>


    I tried to enable the query server side, but I have yet to find the way to produce the equivalent of an access.log. Searching the forum produced a few references to "routing rules" but I couldn't find what and where he could be.

    As the listener works perfectly when you go to localhost, I can't believe that rthis is the common problem of not finding the vivid, or url mapping problem. But I am of course open to suggestions!

    Any idea will be welcome.

    Thank you for your time.

    Fixed. Finally tracked it, a redirection problem fixed with the patch 16760897.

    Thank you to everyone who watched this, I'm sorry to have lost your time, hope to post the solution will help someone else.

  • Apex auditor 2.0.2 and Glassfish 4

    Someone try this combination? Any questions so far?

    This has proved to be a permissions issue. I've set up Glassfish to run under a separate account (non-root), who does not have write access to the folder where the Apex listener configuration files should be stored.

    I changed the permissions and re-run the command deploy:

    [root@homedev apex_listener]# /usr/share/glassfish4/glassfish/bin/asadmin deploy --name apex --contextroot apex apex.war
    Application deployed with name apex.
    Command deploy executed successfully.
    

    And now it works! :-)

    -Morten

    http://ORA-00001.blogspot.com

  • SSL &amp; apex listener

    Hi all

    I'm not much of a webmaster so just for the want to wrap your head around things. I've got APEX Listener installed with Tomcat 7. SSL must be configured Tomcat level or layer of the listener.

    Also, I see a lot of Glassfish. I guess it's the big enterprise server for extra support Java EE and "sustained", because I don't see how a small business could allow 5K a processor. But for a small company, Tomcat is an alternative appropriate for small businesses?

    Sincerely

    Jan S.

    Hello Jan,

    SSL must be configured Tomcat level or layer of the listener.

    SSL is the part of your Tomcat configuration. If you already have an Apache HTTP with SSL server in your farm, you may also set up to act as a reverse proxy and let the work of Tomcat without SSL. The connection would be so

    Client (HTTPS) ==> (HTTPS) Proxy (HTTP/AJP) ==> (HTTP/AJP) Tomcat
    

    Also, I see a lot of Glassfish. I guess it's the big enterprise server for extra support Java EE and "sustained", because I don't see how a small business could allow 5K a processor.

    I get your point for the 5K, but GlassFish is in fact the smallest support JEE container and considered a kind of "light weight", also for small businesses. WebLogic is much more expensive...

    But for a small company, Tomcat is an alternative appropriate for small businesses?

    If you do not need official support for your business, you'll be fine with Tomcat.

    -Udo

Maybe you are looking for