AccessDenied Error deploying Java JSP app using Eclipse to Azure

Hi,
Following the the tutorial for deploying java servlet app on Azure using Eclipse on windows.
Getting AccessDenied error while trying to upload, sample works locally.
Thanks
Raj

Hi Raj,
Which tutorial do you follow? Please have a look at below article, it gives details steps about how to deploy application to azure use Eclipse, please try again step by step, hope this helps.
#http://msdn.microsoft.com/en-us/library/azure/hh690944.aspx
Best Regards,
Jambor
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey.

Similar Messages

  • Deploying Java Desktop App using executable JAR files

    Hi there.
    Today I am very optimistic about java. I am a beginner, and I had tried (in my few free time) to understand how to deploy java desktop apps.
    I am using the lattest NetBeans IDE to do the programming and it is very very fast and optimized.
    Going to the point, I tried some time ago to deploy an application (made with this IDE) using JAR files, but even though the application run well on my IDE, when I packed it, it rised an error saying that
    java.lang.NoClassDefFoundError: org/netbeans/lib/awtextra/AbsoluteLayout
    I was using an absolute layout on my JFrame forms and this AbsoluteLayout is provided by netbeans and not by the normal SDK.
    I then looked for the absolute layout class and found a jar file in the following path:
    C:\netbeans\modules\ext\AbsoluteLayout.jar
    So I mounted the Jar file in my File Systems and then added the contents of the file to myApp.Jar file.
    I used the automated Jar Recipe Packaging feature of netbeans, that is why I needed to mount the AbsoluteLayout.jar file into my file systems.
    Now it runs fine by just right clicking the MyApp.jar file from Windows Explorer.
    In a next reply to this topic I will include some sample code so that anybody requiring to do such implementation can take this for help.
    Regards!
    JN

    Well,
    I will take some time here to show the basic source code and procedure to create a desktop application, pack it up in a Jar file for deployment, add other classes or jars to the deployment jar file and finally open the jar file as an executable. This applies for either windows and linux environments.
    Take in count i am using Netbeans IDE 3.x (3.5)
    First I open the IDE and create a new project called MyDesktopApp. This is done by going to the menu Project / Project Manager. Then click on the New button and specify the project name and click on OK.
    At this point, the Filesystems tab in the project explorer is empty. So I mount a directory to store myDesktopApp in it. I selected c:\MyDesktopApp but you can select any name you want.
    To mount the directory you follow these steps:
    1. Right-click on File Systems
    2. From the contextual menu select Mount > Local Directory
    3. In the filechooser window, you just browse it and SELECT the directory to mount. Be aware that you can even create the directory on this window. Do not enter (double-click) into the directory you want to mount, just select it and click on finish...
    4.Then the directory entry appears under the filesystems node of the project explorer.
    Now you have to create your application. You can either create a package (special configured and tracked directory) or you can create the clases directly inside the directory. For tidy project, I will create the package.
    To create the package follow these instructions:
    1. Right-click on the mounted directory and from the contextual menu select New > Java Package
    2. In the New Wizard - Java Package window, type the package name and click on finish. I use the "MyDesktopApp" as package name.
    OK. Now the package is created under the mounted directory. Now we have to create the Main Class. In this case I will use a JFRAME as the main class but you can create any class you want.
    To create the JFRAME as main class follow these steps:
    1. Right click on the java package you just created and select New>JFRAME from the contextual menu. If you do not see the JFRAME option on the NEW sub menu you will have to select the All Templates option. I explain the All Templates option now on, it will be easier to use the JFRAME if available. Once you use JFRAME with the all templates then the JFRAME will show up in further NEW usage.
    2. So finally we used the All Templates, and you select the Java GUI Forms > JFRAME form option and click on NEXT.
    3. Give it a name. (I used MyDesktopAppFrm) and click on finish. Be aware you can set advanced options by clicking on next. But for the purposes of this topic we will use default options so click on FINISH
    4. A new JFRAME form appears inside your package. Right click on the form and select Set layout > Absolute Layout.
    5. Add some controls and code. I added a label and a button. And coded the ActionPerformed event of the button to say hello! on the label. this is up to you. The code just looks as follows:
    private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {
    // Add your handling code here:
    jLabel1.setText("Hello folks!");
    6. Compile and execute the form.
    Let's say this is our Desktop Application. Now We will pack it in a Jar in two steps...
    A. Create a JAR file (Recipe)
    1. Right-click on your package and select New > All Tempaltes (Long Route) You can also select New > JAR Recipe if available.
    2. On the New Wizard Window, choose the JAR ARchives > JAR Recipe template and click on NEXT
    3. I used MyDesktopApp as the file name and Defaults and then click on Next.
    4. Specify the JAR Contents. Select the Package (not the mounted folder) from the mounted file system and click on add and then click on NEXT twice...
    5. On the JAR Manifest window, click on GENERATE
    6. Edit the manifest in the window to add the following code:
    Main-Class: MyDesktopApp.MyDesktopAppFrm
    7. Ensure the Main-Class definition is the same as your java package and JFRAME name. Click on FINISH
    8. At this point we have a jar file in your project directory but this file wont run because it is missing some Netbeans clases that we will add in the next set of steps... Just to check, compile the file (right click on the JAR file and compile) and try to execute. It must compile but must not execute.(well if it executes you are done. It may execute if you did not set the lay out of the form as AbsoluteLayout)
    B. Add the AbsoluteLayOut to the JAR
    1. Right click on File Systems and select Mount > Archive Files
    2. Look for your netbeans installation folder and select the following file:
    .../netbeans/modules/ext/AbsoluteLayout.jar
    3. Click on finish
    4. Now the JAR File is mounted in the file systems.
    5. Right-click on your MyDesktopApp.JAR file and select properties.
    6. Look for the contents property click once on it and then on its elipsis button [...]
    7. From the FileSystems box in the Contents window, select the AbsoluteLayOut file and click on Add
    8. Then the system asks you if you are sure. Of course you are so click OK. (If not sure, just read the message text and click OK...:-))
    9. Click on OK
    10. Compile your JAR Recipe (right click on it and Compile)
    11. Now you must be able to run the file by right clicking it and EXECUTE.
    12. Also you must be able to run the file by double clicking the file from a Windows Explorer. You may receive a message asking to select the program to run the file with. You must browse and select the Javaw.exe file in the bin directory of your Java RUn Time installation. This is typically located at C:\j2sdk1.4.0_01\jre\bin or something like that. Use the File-Search feature of window to locate the JAVAW.exe file if needed.
    I hope this long explanation helps somebody to deploy Java Desktop applications. Please reply the message if it helps you just to know it was useful.
    Thanks for your time....
    JN

  • How to deploy a jsp app as portlet in portal?

    i'm a new bee to this portal & portlet stuff.
    so, pls let me know if my questions doesn't make sense.
    i have a jsp app sitting in jdeveloper 9.0.3
    can i deploy this jsp app as portlet and see it from
    my portal?
    srini

    Hi Benjamin.
    Can u explain more detail about the deployment..
    I also use JDev and want to do like you do (that is deploy to 9iAS using JDev.
    I tried to create new connection via Remote DCM..
    but it gave me error.
    I also read & tried the article that u suggested..
    but still failed..
    So, my questions are:
    1)In step one, where in EM should i install Oc4jDcmServlet.ear? in OC4J_Portal(the same place i deploy jpdk)?
    "Install the DCM Servlet, Oc4jDcmServlet.ear, to a running Oracle Enterprise Manager instance. This servlet is required to run in the same OC4J instance (same JVM) as the Enterprise Manager servlet. The DCM Servlet is located in:
    <jdev_install>/dcm/lib/Oc4jDcmServlet.ear "
    2)I download JDev into my drive C.
    and i did found /dcm/lib/Oc4jDcmServlet.ear
    I not sure what to type..and where should i run the command..
    In the article,it run from c:\winnt\system32\cmd.exe.
    But when i ty to run it, it gave me error
    "Exception in thread "main" java.util.zip.ZipException: The system cannot find th
    e path specified
    at java.util.zip.ZipFile.open(Native Method)
    at java.util.zip.ZipFile.<init>(Unknown Source)
    at java.util.jar.JarFile.<init>(Unknown Source)
    at java.util.jar.JarFile.<init>(Unknown Source)"
    should i run the command in the server?Where?
    What command should i type?
    Java -jar ${ORACLE_HOME}/j2ee/home/admin.jar ormi://${EM_OC4J_HOST}:${EM_OC4J_PORT} ${IAS_ADMIN_USER} ${IAS_ADMIN_PASS} -deploy -file Oc4jDcmServlet.ear -deploymentName Oc4jDcmServlet "
    Thanks..

  • Error: The Java Runtime in use does not contain a suitable JAXP feature

    Hi,
    I'm trying to get Eclipse TPTP to work. One of the steps I need to execute is to run a setConfig.bat file. When I ran it, I got the following error:
    ERROR: The Java Runtime in use does not contain a suitable JAXP feature
    RESOLUTION: Use a JRE which supports the JAXP featureI use Eclipse Europa, and it is using my JDK (actually JRE) 1.6.0_05. That should mean I have JAXP in my JRE (which is confirmed when I search on JAXP from the directory C:\Program Files\Java containing jdk1.6.5_05 and jre1.6.5_05 directories).
    Is there something extra I need to do to let Eclipse and TPTP find my JAXP classes?
    TIA,
    Abel

    Hi,
    Even i am getting the same error but i use JRE 1.5.0_14. please let me know if you happen to resolve this.
    Thanks in Advance,
    Sai

  • Java/JSP app to List Directories in a Drop Down

    Hi all! I'm a Java Newbie and have an application that was written in VB / ASP that I need to convert to Java / JSP. The app is relatively simple, however my understanding of Java is even more basic. :(
    Here's what I need... The app needs to be able to read a directory structure on the web server and populated a drop down box on a JSP with the directory names. Then when one of the directories that are in the drop down are selected, the files within that directory are listed as HTML links to the actual files.
    How do I get started?? Any sample code from people who have done this??
    Thanks!
    Teresa

    Basically what you want to do is build a vector of objects that represent directories, and each "directory" object contains a vector of files as an attribute. This is done on the server side in a Servlet.
    Then store all these objects in your session. Dynamically build your dropdown box to have an element for each directory. Use the JavaScript onSelect method to invoke another JSP that takes the number of the element selected, and displays all html links for the number that was passed in from the previous servlet.
    For some about $150 I would write the whole thing for you, but here would be the server side code that builds a recursive directory list.
    import java.io.*;
    import java.util.*;
    public class RecursiveDirectoryList {
         Vector Directories = new Vector();
         Vector Files = new Vector();
    public RecursiveDirectoryList() {
         super();
    public static void main(String[] args) {
    String directoryName; // Directory name entered by the user.
    File directory; // File object referring to the
    //directory.
    //TextIO.put("Enter a directory name: ");
    directoryName = "C:\\docs";
    directory = new File(directoryName);
    if (directory.isDirectory() == false) {
    // Program needs a directory name. Print an error message.
    if (directory.exists() == false)
    System.out.println("There is no such directory!");
    else
    System.out.println("That file is not a directory.");
    else {
    // List the contents of directory, with no indentation
    // at the top level.
    listContents( directory, "" );
    } // end main()
    static void listContents(File dir, String indent) {
    // A recursive subroutine that lists the contents of
    // the directory dir, including the contents of its
    // subdirectories to any level of nesting. It is assumed
    // that dir is in fact a directory. The indent parameter
    // is a string of blanks that is prepended to each item in
    // the listing. It grows in length with each increase in
    // the level of directory nesting.
    String[] files; // List of names of files in the directory.
    System.out.println("Directory: " + dir.getAbsolutePath());
    indent += " "; // Increase the indentation for listing the contents.
    files = dir.list();
    for (int i = 0; i < files.length; i++) {
    // If the file is a directory, list its contents
    // recursively. Otherwise, just print its name.
    File f = new File(dir, files);
    if (f.isDirectory())
    listContents(f, indent);
    else
    System.out.println("File: " + dir.getAbsolutePath() + "\\" + files[i]);
    } // end listContents()

  • Deploying BC4J JSP app to 9iAS (via EJB?)

    Hello. Please help a newbie (new to Java, JDev, JSP, and 9iAS R2).
    I've just built my first BC4J JSP app in JDev, and I've even setup a remote DCM connection to my 9iAS R2 server.
    1. JDev release notes say that BC4J deployment from JDev to 9iAS R2 is not supported. Confusing. What is the best way to deploy this app?
    2. I've created an EJB .ear file in JDev 9.0.3 and deployed it using the EM from OC4J_home. It seemed to deploy okay, but I don't know how to find it via an http path (I know, sounds dumb). Do I need to include a port number? Do I still point to my JSP page, or do I point to a servlet? What would a sample path look like?
    3. Can you recommend a good book, something like "Oracle 9iAS and JSP Apps for Dummies?"
    Thanks in advance.
    -Tony.

    Hello - I've just asked one of the BC4J team to take a look at your questions, so please keep a lookout for a response.
    I am not super familiar with BC4J, but since it's deployed as a J2EE application it should work in the following way:
    When you deploy an EAR file which contains a Web application module, you have to tell the server what URL pattern it should use to know when to send the request to the Web application. The deployment screens in OEM prompt you to enter these URLs when the deployment is done.
    Once the deployment is complete (and assuming that you've not modified the HTTP server port) you should then be able to access the application using
    http://<server-host>:7777/<url>
    where <url> is the pattern you entered for the Web application during the deployment process.
    cheers
    -steve-

  • Error deploying java stored procedure

    Anyway, I've got a really simple java function that takes an XML document in a CLOB as a parameter and simply returns whether or not it's a valid document. Works fine in JDeveloper, but when I try to load it into the database, I get:
    Errors in cdh_j_validate:
    ORA-29521: referenced name oracle/xml/parser/v2/DOMParser could not be found
    The XML Parser is installed on the database and is functioning properly.. I am deploying my Java stored procedure to the same schema that the xml parser was installed into. Any suggestions?
    Thanks in advance,
    Craig Drabik
    null

    This is due to a current restriction in the loadjava utility. The following is the excerpt from the Release notes on the subject:
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>
    Incomplete Deployment to Oracle8i When Using JDBC Thin Driver and Net8 Name-value List (1250825)
    In the Connection Manager, it is possible to create a connection to Oracle 8i using the Oracle JDBC Thin driver and Net8 name-value pairs as the connection method. This connection can be viewed in the Database Browser, but deployment will not complete because the loadjava utility requires a database string of the form "@host:port:SID" when using the Oracle JDBC Thin driver.
    There are two work-arounds to this problem:
    Use the Named Host connection method instead of Net Name-Value Pair when creating this connection type in the Connection Manager.
    Use the Oracle JDBC OCI-8 driver instead of the Oracle JDBC Thin driver. To use the Oracle JDBC OCI-8 driver with JDeveloper, please see the section entitled 'Connection Requirements for OCI and Type 2 JDBC Drivers' in the online documentation.
    <HR></BLOCKQUOTE>
    -- Brian

  • Developing JSP pages using Eclipse 3.6

    i want to build a web application using JSP pages and oracle 11i databse, so i install and configure eclipse 3.2.2 and i installed the plugin to support creating a dynamic web project and i have installed jboss 6 to be the server.
    so on the eclipse i clikc new "dynamic web project" , then inside this new project i create a new JSP pages , then i write a simple code inside the jsp and i run the project using jboss and every thing went smootly.
    but let say now that i want to develop a more complicated pages to add buttons , to have tabs on my page.
    1. so my question is does eclipse provide a visual develpment tools ot plug-in for developing JSP?
    2. where i can find some good tutorilas regarding developing JSP using eclipse 3.2.2
    Thanks
    Edited by: 812643 on 20-Nov-2010 17:42

    Confusing isn't it? You can post questions here for specific problems you need to solve and usually get an answer (eventually). However, asking for which technologies are better will probably only provide you with biased opinions. There are many alternatives, each providing its own trade offs. I suggest searching google for articles from respected sources such as 'theserverside' rather than depend on individuals. Also, limit your search to articles that are no older than about 1 year. Lastly, try to stick with technologies that are used by the bulk of the developers and are considered almost an industry standard. No point learning some good yet obscure technology.
    As far as not considering a career as a developer, I suggest you stick to it no matter what. Anything you want to be good at takes years of practice and study
    (http://365pwords.wordpress.com/2009/01/25/practice-practice-practice-the-theory-of-10000-hours).
    No one has a 'knack' or is born good at it (even if they claim to be), and everyone experiences frustration (20 years later, I'm still frustrated!). You advance by making countless mistakes, and refactoring over and over again. Ignore anyone who discourages you no matter what.
    I think your quest should be limited to what you should learn when just starting out and not what is the best technologies for experienced users. Personally, I think learning JSP/Servlets is foundation that you should know well before considering alternatives. Also, many alternatives are based on extending JSPs and therefore you should know them well. I've always used JSP and not alternatives, so I can't comment further on that topic.
    If your just starting out in web design, here are my recommendations (in roughly this order):
    java -book (search amazon.com for books and reviews of what others have said in them).
    practice compiling java classes from the book on the dos command line and using a text editor before moving on to
    an IDE.
    Eclipse IDE - just an on-line tutorial may be ok. Learn to compile code, run it, debug it.
    JSP - book
    Servlets - book
    JUnit - just an on-line tutorial may be ok
    JSTL - just an on-line tutorial may be ok (use JSTL with JSP, not scriptlets)
    XHTML - just an on-line tutorial may be ok
    Javascript - book
    CSS - on line tutorial may be ok
    Tomcat - just an on-line tutorial may be ok. You can move onto JBoss, etc later.
    JDBC - book
    A free database such as Oracle Lite or MySql installed. Learn how to create tables.
    MVC design - read up on separation of concerns on a design (presentation,control,business, and database layer).
    SQL - book
    JQuery - book
    Hibernate -book
    Spring framework - book (only after creating an MVC web application with a single servlet as the control layer)
    AJax

  • How to execute a .exe file in java(Jsp) without using a process ???

    Hi All ,
    How to execute a .exe file in Jsp without using a process ??? ...
    Is it Possiable ????

    itsdhanasaraa wrote:
    But as this a web application ... By using Runtime i'm getting some probs ..
    Let me guess, you want your web application to run a program on the client and to your surprise that's not working?
    Ain't gonna happen.
    its taking more time to execute .... that's y is there any other option to execute .exe file other than Runtime.getRuntime().exec("filename");Write proper English and you may be taken more seriously.
    1) it's not "taking more time to execute", whatever that's supposed to mean.
    2) there's no other way to execute something. Not that you should every use even that way anyway
    3) whenever you start thinking of executing external programs from Java, start thinking of not using Java in the first place.

  • Error deploying a Mvc app to Window Azure

    I am trying to deploy a MVC app to Azure but I am receiving this error
    Error 1
    Web deployment task failed. ('Microsoft.Web.Deployment.DeploymentBaseOptions' does not contain a definition for 'UserAgent')
    0 0
    Alter_Consult_mvc
    Will appreciate any help to fix it.
    thanks

    hi,
    Which version of VS and .netframework? I suggest you could update your software and components. And you could see this same thread :http://social.technet.microsoft.com/Forums/en-US/4955269e-23fc-4f22-aa7a-6975b02dd078/web-deployment-task-failed-deploymentbaseoptions-does-not-contain-a-definition-for-useragent?forum=windowsazureconnectivity&prof=required
    Please try it.
    Regards,
    Will
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How to run/build the JSP file using Eclipse

    Hello,
    I want to build a new project for running the jsp file in eclipse.
    Can you help me in doing that?
    with some structure format?
    where to create web.xml file
    how to configure that fiel with our eclipse java poject?
    like that...
    Thanks,
    Soorya

    On New Project creation, choose 'Dynamic Web Project'. Then the structure will be created for you.

  • HowTo: deploy an j2ee app using "/" as context root on iAS 6.5

    Hi all iAS expert
    It is highly appreciated one can teach me how to get around below problem
    l deployed an app using "/" as context root. But the iAS could respond to any HTTP request.
    However, as l changed the context root to sth other than root. iAS responded properly.
    Can someone help me get around this problem ?
    thank you a lot
    fox

    I deployed the same EJB on WLS 6.1+sp3 and WLS 7.0.
    These both work. Looks like there is some problem with WLS6.0+sp2. I have opened
    a case with BEA customer support.
    --Latha

  • Error in java/jsp files

    hi, i`m developing a web app for my boss. i usually only programm de web frontend part of the software so i'm not that used to java lang speifics. here is my prob:
    i have a class which shoul save and retrieve the String "rolle"
    package at.mobilkom.ears;
    public class Sessionhandler
        private String rolle;
        public void setRolle(String r)  {
         rolle=r;
        public String getRolle()  {
        return rolle;
    } i call this methods just as normal in a jsp file:
    Sessionhandler.setRolle(rolle); and session.putValue("ROLLE", Sessionhandler.getRolle());i did all the import stuff so that's not the mistake. i'm developing with bea weblogic and i get the error message:
    "Error: Method cannot be accessed from a static context"
    so what should i do to make it work?? thx

    hi, i`m developing a web app for my boss. i usually
    only programm de web frontend part of the software so
    i'm not that used to java lang speifics. here is my
    prob:
    i have a class which shoul save and retrieve the
    String "rolle"
    package at.mobilkom.ears;
    public class Sessionhandler
    private String rolle;
    public void setRolle(String r)  {
    rolle=r;
    public String getRolle()  {
    return rolle;
    } i call this methods just as normal in a jsp file:
    Sessionhandler.setRolle(rolle); and session.putValue("ROLLE",
    Sessionhandler.getRolle());i did all the import stuff so that's not the mistake.
    i'm developing with bea weblogic and i get the error
    message:
    "Error: Method cannot be accessed from a static
    context"
    so what should i do to make it work?? thxYou have to create an instance before you call the methods which aren't static. Please spend some time reading the fundamentals.
    The following code will work.
    Sessionhandler sessionhandler=new Sessionhandler();
    sessionhandler.setRolle(rolle);
    session.putValue("ROLLE",sessionhandler.getRolle());

  • Error deploying BC4J JSP-application to OC4J

    Hi!
    I am trying to deploy a typical default generated jsp - application based on default generated BC4J components (against a simple table in an oracle 8.1.7 database) to an external oc4j - service.
    The application runs without problems in the internal JDeveloper oc4j, but when I deploy it to an external oc4j service, I get the following error:
    ++++++++++++++++++++++++++++++++++++++++++++++++
    Error Message: JBO-30003: The application pool (mypackage1.Mypackage1Module.Mypackage1ModuleLocal) failed to checkout an application module due to the following exception:
    Error Message: JBO-25029: Data class (a domain?) {0} not found
    JBO-30003: The application pool (mypackage1.Mypackage1Module.Mypackage1ModuleLocal) failed to checkout an application module due to the following exception:
    oracle.jbo.domain.DataCreationException: JBO-25029: Data class (a domain?) {0} not found
         at oracle.jbo.common.JBOClass.findDataClass(JBOClass.java:152)
         at oracle.jbo.server.AttributeDefImpl.loadFromXML(AttributeDefImpl.java:1922)
         at oracle.jbo.server.EntityDefImpl.loadAttribute(EntityDefImpl.java:2293)
         at oracle.jbo.server.EntityDefImpl.loadAttributes(EntityDefImpl.java:2236)
    ## Detail 0 ##
    java.lang.ClassNotFoundException: oracle.jbo.domain.RowID
         at com.evermind.naming.ContextClassLoader.findClass(ContextClassLoader.java:185)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at oracle.jbo.common.java2.JDK2ClassLoader.loadClassForName(JDK2ClassLoader.java:30)
         at oracle.jbo.common.JBOClass.forName(JBOClass.java:136)
         at oracle.jbo.common.JBOClass.findDataClass(JBOClass.java:148)
         at oracle.jbo.server.AttributeDefImpl.loadFromXML(AttributeDefImpl.java:1922)
         at oracle.jbo.server.EntityDefImpl.loadAttribute(EntityDefImpl.java:2293)
    I am using JDeveloper 9.0.2 Production
    and oc4j 9.0.2.0.0
    Ketill

    Jump to the following link, read, and understand everything:
    Re: How to use the classes of ott generated in Visual c++
    Also, locate the C:\Jdev9i\BC4J\bin\bc4j2oc4j.bat file, make the necessary changes for the OC4J_HOME, JDEV_HOME, and JDK_HOME and run. This file should setup the BC4J libraries in your OC4J installation. Be sure your OC4J_HOME\j2ee\home\admin.jar is version compatible with the JDEV_HOME\j2ee\home\admin.jar.
    Arnold Angel
    [email protected]

  • Customizing Error Message in Jsp app.?

    Hi,
    In my small application created by JDev10g wizard, I would like to customize errors received from database on dml operations before showing on jsp page. How/Where could I capture the error?
    Please advise.
    Thanks

    I have the same functionality with the automatic commit in the Datahandler onEvent (update/delete and create). I ran into the same "OnEvent" problem. I think the problem is the result of having the "<jbo:Row>" tag inside of a try/catch block. From my experiments, I was able to determine that the errors almost always related to some sort of row handling. They always happened after the code within the try/catch block failed. I found that it would work fine with just the commit inside the try catch block. As soon as I tried to catch an error in the "<jbo:Row>" tag everything went screwy. This is no good considering that I have custom errors that are thrown when you try to create/update an attribute (before commiting!).
    So far, I have been able to work around this somewhat. I don't get any errors if I create a Row object programitically without the Oracle convenience tags. I tested this with the OnEvent(Delete) function because it is the easiest to replicate. Here is the code that I have that works for me:
    <jbo:OnEvent name="delete">
    <% // get the row from the parameter jboRowKey which is created automatically when you have addRowKey=true on your URL/Form event tag (default behaviour)
    Row rowDelete = ds.getRowFromKey(params.getParameter("jboRowKey")); %>
    <% try { %>
    // call the remove() method of the entity you can overide this method if you want (I have). To do this, check the relevant box from the entity's java tab.
    rowDelete.remove();
    // commit this action right away
    ds.getApplicationModule().getTransaction().commit();
    } catch (JboException ex) { %>
    // Catching those JboExceptions we created in the EntityImpl.java file
    <h3 class="error">Error</h3>
    <%=ex%>
    <% // since it failed, rollback the transaction. Since I am commiting everything this will only rollback the delete command. I call it just in case the framework doesn't do this somewhere else! :)
    ds.getApplicationModule().getTransaction().rollback();
    } %>
    </jbo:OnEvent>
    I haven't been able to repeat this for the update or create OnEvents because they are much more complicated. Let me know if something like this works for you! Also let me know if you find a way to do this for create/update without being far too complicated.
    If you are interested to find out what the <jbo:Row> tag does (to replicate it's behaviour perhaps?) you can find the code. It should be located in this file:
    C:\<jdevDir>\BC4J\src\bc4jhtmlsrc.zip
    If you open it you will find RowTag.java (or something) and that is what JDeveloper runs when you use the Row tag.
    Hope this helps a bit!
    ~Rob Lundeen

Maybe you are looking for

  • Collapse all Folders in Finder

    Is there a way to collapse /all/ folders in Finder instead of hunting them down and closing all of them one by one? Thanks.

  • Add Expand/Collapse button in selection screen

    hi, i have to add expand button in the selection screen, afterwich, the expand button will be replaced by collapse button, any idea?! thanks

  • Format ipod classic

    ican`t format ipod classic 80giga  if i was click format it he can`t format and tell me window unable to format plz help me

  • New computer, old 1 broke and i havent backed up my apps and everything

    How do i stop itunes from deleting all my apps, pics, contacts, etc. when i connect my iphone 3gs to itunes? i also know that i still need the latest update for my iphone

  • Lossless rotation

    Is there an official answer out there to the question - "Does iPhoto '07 perform lossless jpeg rotations ?" (sorry if this has been answered, but I can't find it) Thx.