How to access java source ?

Hello All,
If Oracle User A has a java source called 'abcd' and if User B want to see that source, how can it be done ?
What privileges should i grant ? [I know that user A could see the source using view user_source]
TIA,
JJ

You can use all_source: select * from all_source where owner = <User A> and name = 'abcd'
HTH
Enrique
It's assumed that User B has execute or debug privilege on 'abcd'
Edited by: Enrique Orbegozo on Oct 10, 2008 1:15 AM

Similar Messages

  • How to use java source in Oracle when select by sqlplus.

    How to use java source in Oracle when select by sqlplus.
    I can create java source in Oracle
    import java.util.*;
    import java.sql.*;
    import java.util.Date;
    public class TimeDate
         public static void main(String[] args)
    public String setDate(int i){
    GregorianCalendar calendar = new GregorianCalendar();
    calendar.setTime(new Date((long)i*1000));
    System.out.println("Dateline: "
    + calendar.get(Calendar.HOUR_OF_DAY) + ":"
    + calendar.get(Calendar.MINUTE) + ":"
    + calendar.get(Calendar.SECOND) + "-"
    + calendar.get(Calendar.YEAR) + "/"
    + (calendar.get(Calendar.MONTH) + 1) + "/"
    + calendar.get(Calendar.DATE));
    String n = calendar.get(Calendar.YEAR) + "/" + (calendar.get(Calendar.MONTH) + 1) + "/" + calendar.get(Calendar.DATE);
         System.out.print(n);
         return n;
    I have table name TEST
    ID DATE_IN
    1 942685200
    2 952448400
    When I write jsp I use method setDate in class TimeDate
    The result is
    ID DATE_IN
    1 1999/11/16
    2 2003/7/25
    Thanks you very much.

    It is unclear where you are having a problem.  Is your issue at runtime (when the form runs in the browser) or when working in the Builder on the form?
    Also be aware that you will need to sign your jar and include some new manifest entries.  Refer to the Java 7u51 documentation and blogs that discuss the changes.
    https://blogs.oracle.com/java-platform-group/entry/new_security_requirements_for_rias
    http://docs.oracle.com/javase/7/docs/technotes/guides/jweb/manifest.html

  • How to access java method in JSP

    Hi all,
    I need to access java class (abstract portal component) method doContent() in a JSP which is under PORTAL-INF/jsp folder.
    I did
    <%@ page import = "com.mycompany.Aclass" %>
    <%com.mycompany.Aclass a = new com.mycompany.Aclass (); %>
    Aclass is coming as autofill/prepopulated with cntrl+space
    Till this time, it is working. no errors. But when I do
    a.
    a. (a dot) no methods are populating (autofill..cntrl+space) or If I forcebly add method a.doContent(req,res)... at runtime its giving error.
    It's not only with doContent method... Its with any simple methods in that class or any other class.
    (Other than doContent method in the APC java class are prepopulating/autofilling but giving error in runtime)
    Can anyone help me... how to access java method in JSP.
    I already gone through many SDN forum post... and implemented too---but no use I refered below forum thread
    Retrieve values from Java class to JSP
    URGENT! How to call a java class from JSP.
    Calling a java method from jsp file -
    this thread is same as my issue
    Thanks,
    PradeeP

    1st. The classes must be in packages. 2nd, the package that they are in must be under the WEB-INF/classes directory. 3rd Look on google and/or this site for web application deployment

  • How to generate Java source using clientgen WL8.1?

    Hi, does anybody know how to generate Java source code using clientgen task on WL 8.1 Sp4 or SP5? I know WL 9.0 clientgen can do this, but we are still on SP5. Basically I want to look at the source code (I was wondering why it didn't work if I initialize a service impl by passing the WSDL URL string different than the URL specified in the original WSDL file that the clientgen is run against.)
    Does anybody also know how get web service client developed on Axis work on WebLogic without conficting the web service developed on WebLgoic that is running in the same box?
    Thanks for your help!

    hi ,
    As mentioned in the Question, I am unable to find the "Java Proxy Generattion" link in the Int builder.
    Also the help doc says:
    Java proxy generation is no longer supported in subsequent releases. For new developments or when making significant changes to a service interface, use Java proxy generation in SAP NetWeaver Studio instead. More information: Creating Outside-In Web Services, SAP NetWeaver Developer Studio.
    Does that mean that I can no longer generate java proxy from Int builder?
    regards,
    Piyush

  • How to get Java source in applet stack trace to debug Java security manager

    How can I get line numbers for Java source in stack traces for my applet? I'm having a problem with my code-signing certificate. On one of my applets, I consistently get a NullPointerException inside the security dialog code in the JDK. As a result, either the "trust this applet" dialog never appears, or even though it appears, it defaults to untrusted because of the exception, so I can't access any local files (and that's a bit of a problem for an applet whose sole purpose is to upload files to our server). I unzipped src.zip in my JDK directory and set the debug flag for my Ant <javac> task as well as set debuglevel to "lines." Anything else? Here's the trace that I'm getting so far. See that after the NullPointerException it assumes that the user has denied permission. If I could read this Java source maybe I could figure out why it hates my code-signing certificate (jarsigner, BTW, never complains when I verify my jar).
    security: Blacklist file not found or revocation check is disabled
    security: Accessing keys and certificate in Mozilla user profile: null
    security: Loading Root CA certificates from D:\Program Files (x86)\Java\jre6\lib\security\cacerts
    security: Loaded Root CA certificates from D:\Program Files (x86)\Java\jre6\lib\security\cacerts
    security: Loading Deployment certificates from C:\Users\Rich\AppData\LocalLow\Sun\Java\Deployment\security\trusted.certs
    security: Loaded Deployment certificates from C:\Users\Rich\AppData\LocalLow\Sun\Java\Deployment\security\trusted.certs
    security: Loading certificates from Deployment session certificate store
    security: Loaded certificates from Deployment session certificate store
    security: Validate the certificate chain using CertPath API
    security: Obtain certificate collection in Root CA certificate store
    security: Obtain certificate collection in Root CA certificate store
    security: Start to check whether root CA is replaced
    security: The root CA has been replaced
    security: No timestamping info available
    security: Found jurisdiction list file
    security: Start checking trusted extension for this certificate
    security: Start comparing to jurisdiction list with this certificate
    security: The CRL support is disabled
    security: The OCSP support is disabled
    security: This OCSP End Entity validation is disabled
    security: Checking if certificate is in Deployment denied certificate store
    security: Checking if certificate is in Deployment permanent certificate store
    security: Checking if certificate is in Deployment session certificate store
    java.lang.NullPointerException
         at com.sun.deploy.ui.UIFactory.showSecurityDialog(Unknown Source)
         at com.sun.deploy.security.TrustDeciderDialog.showDialog(Unknown Source)
         at com.sun.deploy.security.X509Util.showSecurityDialog(Unknown Source)
         at com.sun.deploy.security.TrustDecider.isAllPermissionGranted(Unknown Source)
         at sun.plugin2.applet.Plugin2ClassLoader.isTrustedByTrustDecider(Unknown Source)
         at sun.plugin2.applet.Plugin2ClassLoader.getTrustedCodeSources(Unknown Source)
         at com.sun.deploy.security.CPCallbackHandler$ParentCallback.strategy(Unknown Source)
         at com.sun.deploy.security.CPCallbackHandler$ParentCallback.openClassPathElement(Unknown Source)
         at com.sun.deploy.security.DeployURLClassPath$JarLoader.getJarFile(Unknown Source)
         at com.sun.deploy.security.DeployURLClassPath$JarLoader.access$700(Unknown Source)
         at com.sun.deploy.security.DeployURLClassPath$JarLoader$1.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sun.deploy.security.DeployURLClassPath$JarLoader.ensureOpen(Unknown Source)
         at com.sun.deploy.security.DeployURLClassPath$JarLoader.<init>(Unknown Source)
         at com.sun.deploy.security.DeployURLClassPath$3.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sun.deploy.security.DeployURLClassPath.getLoader(Unknown Source)
         at com.sun.deploy.security.DeployURLClassPath.getLoader(Unknown Source)
         at com.sun.deploy.security.DeployURLClassPath.getResource(Unknown Source)
         at sun.plugin2.applet.Plugin2ClassLoader$2.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         at sun.plugin2.applet.Plugin2ClassLoader.findClassHelper(Unknown Source)
         at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unknown Source)
         at sun.plugin2.applet.Plugin2Manager.createApplet(Unknown Source)
         at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    security: User has denied the priviledges to the code
    security: Adding certificate in Deployment denied certificate store
    security: Added certificate in Deployment denied certificate store
    security: Loading certificates from Deployment session certificate store
    security: Loaded certificates from Deployment session certificate store
    security: Validate the certificate chain using CertPath API
    security: Obtain certificate collection in Root CA certificate store
    security: Obtain certificate collection in Root CA certificate store
    security: Start to check whether root CA is replaced
    security: The root CA has been replaced
    security: No timestamping info available
    security: Found jurisdiction list file
    security: Start checking trusted extension for this certificate
    security: Start comparing to jurisdiction list with this certificate
    security: The CRL support is disabled
    security: The OCSP support is disabled
    security: This OCSP End Entity validation is disabled
    security: Checking if certificate is in Deployment denied certificate store
    security: Checking if certificate is in Deployment denied certificate store

    Rats, now that I look at the stack trace and compare to what's in the JDK srce.zip, it appears that most of this code is not part of the JDK source. I don't see any com/sun/deploy, etc.

  • How to obtain java source files in ebs 11.5.10.2?

    Hi all:
    my company is developing a custom SSO solution and I've been requiered to modify the EBS login page in order to validate the user login with an external SOA application.
    I need to modify the estándard SessionMgr.class file but I need the java source for this file.
    I don´t want to decompile it but I can´t find anywhere the source java file SessionMgr.java.
    Any of you know how can I obtain it? Will Oracle provide me with it if I open a SR?
    Thank you in advance.

    Actually, my apologies... the procedure changed recently :)
    Customers should raise a SR to request source code. The first response you would get is the following text:
    Thank you for your request for Oracle E-Business Suite source code.
    Source code may be provided in order for your organization to customize specific E-Business Suite functionality that cannot be easily modified through configuration settings or by the addition of custom code (without changes to existing code).  All such requests are considered on a case-by-case basis and will be reviewed for approval by Oracle Support, Development and Legal.   No code can be released until this review process is complete.
    Requests for large quantities of code may not be approved so your request should be confined to the code actually required to achieve the change in functionality you wish to implement. Note that some specific areas of code will not be released; these include but are not limited to security related code and technology components.
    Should you wish to continue with this request please provide the following information to help us consider your Source Code request.
    E-Business Suite Version:
    Application Mini Pack/Family Pack version relevant to request
    The source code being requested:
    File names and versions (where known)
    Technical description of the functionality you wish to modify
    Reason that this Source Code is required:
    Details of business requirements that cannot be met using existing E-Business Suite functionality
    Explanation of why the changed functionality cannot be achieved through configuration settings or by the addition of custom code (without changes to existing code)
    In this case, I would guess your request may come under "security related code" so would likely be refused (in my opinion)

  • How to edit Java source code of a generated Web Service?

    I generated a Jax RPC (1.4) Web Service using the JDev Wizard . Everything works fine. But now I need to make some changes in the business logic contained in the source code. The problem is there is no easy way to get to the source code - JDeveloper shows the web service but right clicking on it only lets me go to the WSDL or Mapping file - not the Java source.
    So - how do I get to the source.
    I could do a file -> open and open up the java file and edit it - but this seems like a round about way . Why doesn't JDev let me go back to the Source code easily?
    It does provide a Regeneate from Source option but there is no way (as far as I could tell) to actually jump back into the source code after I've generated the Web Service.
    Thanks!

    Hi,
    just to confirm that Jan is ight. If you seect the generated WSDL icon, which is shown in the Application Navigator, open the Structure Window and you'll see all teh generated interfaces and sourcefiles, as well as your WebService file.
    Alternatively you can use teh System navigator which will show all files in one view (ctrl+shift+N)
    Frank

  • How to protect java source code?

    Hi everybody
    I love Java but I think that people can decompile my class file to take my source code!Like this program
    http://kpdus.tripod.com/jad.html
    How to protect our source code?Even you use Jar files, they can unzip them and decompile!
    Thanks in advance!

    Use Java Obfuscator. Try one of these
    http://preemptive.com/products/dasho/index.html
    http://www.zelix.com/klassmaster/obfuscator.html
    http://java-source.net/open-source/obfuscators

  • How to browse Java Source in PL/SQL Developer

    As I use PL/SQL Developer for developing, for the first time I've just tried to write and compile a java source.
    After compiling the java source succesfully, I can see it by selecting it from the system table USER_SOURCE where it's defined as TYPE JAVA SOURCE, but I'd like to know where and if it's possible to browse it in the left window list of the panel of PL/SQL Developer like it happens for Procedures, Packages, ... I mean is there a way to edit the java source created without selecting it from USER_SOURCE but in a better way as it's possibile for the procedures in PL/SQL Developer?
    Thanks

    Yes, It is possible. Check the option Tools->Browser. Then in the browser you can find it.

  • How to beautify Java source code

    Hello!
    I'm mostly a Java developer, and I recently moved my projects to XCode. I was using jEdit previously, with a lot of plugins. I specially miss:
    * the ability to do vertical selections (jEdit, TextMate)
    * Gruntspud CVS plugin - but this can be run standalone, and I configured the default action to be /usr/bin/open so it opens the source and project files in Xcode.
    * and JavaStyle !!! This plugin "beautifies" Java source code. Sometimes, tabs are messed up and I want to clean up the code.
    Is there any JavaStyle-like plugin for XCode?

    * the ability to do vertical selections (jEdit,
    TextMate)
    Supposedly you can install 3rd party editors in Xcode. I have never done it though.
    * Gruntspud CVS plugin - but this can be run
    standalone, and I configured the default action to be
    /usr/bin/open so it opens the source and project
    files in Xcode.
    Xcode comes with a CVS plug in. Have you tried turning on SCM for your project?
    * and JavaStyle !!! This plugin "beautifies" Java
    source code. Sometimes, tabs are messed up and I want
    to clean up the code.
    I expect that a Java tool like JavaStyle would run from the command line. If so, you can probably wrap it in a script and install it in Xcode's script menu.

  • How to format java source folder in wsad

    HI,
    Is there any option to format entire java source folder ...now i am formatting taking each file and formatting. INstead is there any facility to format entire folder

    Try posting this in an appropriate forum. Your problem has nothing to do with JSF.

  • How to access java bean in a script

    I have a java bean that has session scope . I would like to change attribute of this bean. When a user click�s a link I have to change attribute of this bean. I would like to implement using html:link like this .
    <html:link action="viewresults.do" onclick='javascript:increment()' >Results</html:link>
    How can I do that in a java script.
    Thank you in advance

    You cannot do it in the javascript. your javabean is in server memory and can be accessed on server side. Can't you do it in the action that handles viewresults.do request?

  • How to amend java source

    Hi. I'm relatively new to Java. I need to create a program wherein in each and every method of the code (e.g. protected void setDetails()), I have to insert at the very first line of the method a code like this one
    LOG.entering("setDetails")
    The "LOG.entering("")" is constant, but the string inside refers to the method name.
    Could someone shed a light on how I should go about it? Thanks in advance.

    Thank you all for the responses on my query. I really appreciate it.
    With regards to my query, they wanted to put the logger code in each and every method of our classes. One thing that I could do is to copy and paste the entry "LOG.entering("methodname")" in each and every method of our sources, and change the string passed to be the method name. Though I find this method to be too tedious and prone to errors. I find that a utility that would automatically do this mechanism is much more efficient, but I do not know where to start and how to go about it.
    I really do appreciate about the info regarding the Logger class. I may need to look deeper into our code and understand the use of these logger instances, and their intent of putting it into each and every method of our classes.
    Once again, any help regarding my query will really be appreciated. Thank you all once again.

  • How to access java arraylist from xslt v1?

    Hi everybody,
    I have a problem using xsl trasformation and an object that contains nested arraylistes.
    the object is structured in this way
    Request
    |---id
    |---event
    |---ListOfComponent
    |------*<List>component*
    |---------idComponent
    |---------description
    |---------*<List>properties*
    |-------------name
    |-------------value
    I'm able to get the values of id and event in this way: Request.id and Request.event;
    I'm not able to get the values of the idComponent and the name values of the list subobjects: Request.ListOfComponent.component[0].idComponent;
    When I execute the application that call the xsl trasformation i get an exeption not a vector or an array.
    So, I would like to know if is possible and if yes how can I do!
    thanks!
    Edited by: EttoreMI on 10-nov-2011 7.21
    Edited by: EttoreMI on 10-nov-2011 7.21

    Since I'm using an HP product right now I can only the exeption without stack
    Unexpected exception: java.lang.Exception: Cannot create a new transformer instance: javax.xml.transform.TransformerException: javax.xml.transform.TransformerException: Illegal value: objInput.listOfComponent.component[0].idAppuntamento used for QNAME attribute: name
    localhost.localdomain     Nov 10, 2011 9:54:12 AM     TransformXML     Running Errorhandler ID #682. Workflow: 'inserisciAppuntamento', Step: 'TransformXML', com.hp.ov.activator.mwfm.component.WFException: Cannot create a new transformer instance: javax.xml.transform.TransformerException: javax.xml.transform.TransformerException: Illegal value: objInput.listOfComponent.component[0].idAppuntamento used for QNAME attribute: name
    here the xsl trasformation that I wrote
    <?xml version="1.0" encoding="UTF-8"?>
    <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
    <xsl:param name="JOB_ID" />
    <xsl:param name="objInput"/>
    <xsl:param name="objInput.requestId"/>
    <xsl:param name="objInput.idOdl"/>
    <xsl:param name="objInput.evento"/>
    <xsl:param name="objInput.azione"/>
    <xsl:param name="objInput.listOfComponent.component[0].idAppuntamento"/>
    <xsl:template match="/">
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:px="http://px_request.hp.com/">
    <soapenv:Header>
         <JOB_ID><xsl:value-of select="$JOB_ID"/></JOB_ID>
    </soapenv:Header>
    <soapenv:Body>
    <px:Request>
    <requestId><xsl:value-of select="$objInput.requestId"/></requestId>
    <idOdl><xsl:value-of select="$objInput.idOdl"/></idOdl>
    <evento><xsl:value-of select="$objInput.evento"/></evento>
    <azione><xsl:value-of select="$objInput.azione"/></azione>
    <listOfComponent>
    <component type="Appuntamento">
    <pratica><xsl:value-of select="$objInput.listOfComponent.component[0].pratica"/></pratica>
    <idAppuntamento><xsl:value-of select="$objInput.listOfComponent.component[0].idAppuntamento"/></idAppuntamento>
              <property>
    </property>
    <component/>
    </component>
    </listOfComponent>
    </px:Request>
    </soapenv:Body>
    </soapenv:Envelope>
    </xsl:template>
    </xsl:stylesheet>
    I hope it is helpful in order to understand

  • How to run java source files from other java files??

    hello all,
    i need to run 3 to 4 .java files (first.java,second.java,third.java) from one file.
    i tried the
    Runtime.getRuntime().exec(cmd); but here cmd must be an exe file.
    NOTE THAT i need to run the first.java file ,second.java file each time to generate their .class files(ie I NEED TO COMPILE THEM ALL TIMES AND THEN RUN THEM)
    PLZ. help me if this can be done,
    warm regards,
    Vishal.

    One way to do this is to put all your commands into a batch file (this is Windows?) try unix shell otherwise. Anyway here's an example .bat file called cmplrun.bat:
    @echo off
    javac -classpath . TestCase*.java
    java -cp . TestCase01
    java -cp . TestCase02
    java -cp . TestCase03Then the Java pgm can look like this:
    import java.io.*;
    public class RunProcess {
      public static void main(String[] arg) {
        try {
          Process myProcess;
          myProcess = Runtime.getRuntime().exec("cmd /c cmplrun");
          String s = null;
          DataInputStream in = new DataInputStream(
                               new BufferedInputStream(
                                   myProcess.getInputStream()));
          while ((s = in.readLine()) != null) {
            System.out.println(s);
          System.exit(0);
        catch (IOException e) {
          System.out.println("Exception: "+ e);
          System.exit(-1);
    }Just one way to do this, all caveats apply and HTH;
    ~Bill

Maybe you are looking for