Jdev Extension Jar put in a directory other than "JDEV_HOME/jdev/extensions

I'm creating new rules for auditing using the Jdeveloper 10.1.3 extension API and enabling using extension framework. Once I created the rule, I placed the 'jar' file in "JDEV_HOME/jdev/extensions/" directory as per the guidelines. It is executing perfectly. But I want to place the jar in my home directory. is it possible?
I mean I place the jar file in my home directory and I will provide classpath in 'extension.xml' file, which is a part of jar file. How can I achieve it?
The 'jar' file contains
a) extension.xml
b) 2 java files
c) one text file.
Here extension.xml mention the link of a rule to the audit framework. I used the
A part of extension.xml file which adds my rule to the framework.
<hooks>
<jdeveloper-hook xmlns="http://xmlns.oracle.com/jdeveloper/1013/extension">
<addins>
<addin>oracle.test.launcher</addin>
</addins>
</jdeveloper-hook>
</hooks>
I heard that we can do this in different types:
a) In <hooks> tag, we can include the <libraries> tag which mentions the classpath tag and value.
But no where I found the <libraries> tag in google search.
b) In "JDEV_HOME/jdev/extensions/" directory we place a jar file which only contains the 'extension.xml' file and we can specify the class path of the jar file, which contains the remaining three files. is it possible? If so pls. show me the pointers to do this.
Could you pls. suggest me.
Thanks in Advance
Regards
Madhu

Hi,
You can install extension jars in your jdevhome extensions directory in addition to the standard OH/jdev/extensions. On platforms other than Windows, this is ~/jdevhome/extensions by default. On Windows and other platforms, the location of the jdevhome directory can be controlled using the environment variable JDEV_USER_DIR.
Adding an extension jar to one of those two locations is usually sufficient to add it to the classpath of JDeveloper. If you have additional non-extension jars you want to add to JDeveloper's classpath, you can do so using the <classpaths> element in extension manifest. This contains <classpath> elements which are relative paths to jars from the location of the extension jar. For example, say you have
~/jdevhome/extensions/my.extension.10.1.3.jar
and you want to include
~/jdevhome/someotherjar.jar
You would use something like this:
<extension ...>
  <classpaths>
    <classpath>../someotherjar.jar</classpath>
  </classpaths>
</extension>Thanks,
Brian

Similar Messages

  • Tomcat won't compile jsps if they are in any directory other than root

    I'm running a new instance of Tomcat, and can't get a simple jsp file to compile, if it's in any directory other than the root.
    The jsp is:
    <%@ page import="test.Simple" %>
    <%@ page contentType="text/html" language="java" %>
    <html>
    <body><%=Simple.makeText()%>
    </body>
    </html>
    and the Simple class is:
    package test;
    import java.util.Random;
    public class Simple {
    public static String makeText() {
    return String.valueOf(new Random().nextInt());
    When I place the jsp in the root directory, it works fine.
    When I place the jsp in any subfolder (eg: /debug/1b.jsp), I get the following error:
    HTTP Status 500 -
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    org.apache.jasper.JasperException: Unable to compile class for JSP
    Generated servlet error:
    Only a type can be imported. test.Simple resolves to a package
    An error occurred at line: 14 in the jsp file: /1b.jsp
    Generated servlet error:
    Simple cannot be resolved
         org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:510)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:375)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    root cause
    org.apache.jasper.JasperException: Unable to compile class for JSP
    Generated servlet error:
    Only a type can be imported. test.Simple resolves to a package
    An error occurred at line: 14 in the jsp file: /1b.jsp
    Generated servlet error:
    Simple cannot be resolved
         org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:84)
         org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:328)
         org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:414)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:297)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:276)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:264)
         org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:563)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:303)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    Here's the server info:
    Server version: Apache Tomcat/5.5.25
    Server built: Sep 24 2007 11:31:18
    Server number: 5.5.25.0
    OS Name: Linux
    OS Version: 2.6.20.20-071008a
    Architecture: amd64
    JVM Version: 1.5.0_10-b03
    JVM Vendor: Sun Microsystems Inc.
    Using fedora core 6.
    I looked into the Tomcat work directory, and it looked as if the jsp was successfully converted to a java file. I'm not sure where to look, as all the settings are defaults.
    Any help is greatly appreciated. Thanks

    :D :D :D...
    My friend it'd be great idea if you can find google tutorial on TOMCAT/web application basics
    anyways coming back to your problem
    whenever,an application is deployed on tomcat a new folder is being created at the following location %CATILINA_HOME%/webapp/ with respect to application name.
    Therefore try to maintain an architecture like the one below if you programmin any web application.
    %CATILINA_HOME%/webapp/<applicationName>/(place all your .jsp files)
    -----------------%CATILINA_HOME%/webapp/<applicationName>/META_INF/(Place your mainfest files & context specific configuration files)
    -----------------%CATILINA_HOME%/webapp/<applicationName>/WEB_INF/ (Genrally used to save secured files which cannot be access directly and always make sure you prepare a web.xml file associated to the application)
    -----------------%CATILINA_HOME%/webapp/<applicationName>/WEB_INF/lib (place where all your .jar file libraries are being placed)
    -----------------%CATILINA_HOME%/webapp/<applicationName>/WEB_INF/classes (place where all your .class,resource files are being placed as the pacakage structure you have choosed in)
    If this doesnot work even if you ensuring everything's right.Reading through tutorials & speding time on finding resources by yourself would be a great idea.
    I hope there are no hard issue on this. :)
    REGARDS,
    RaHuL

  • Using a different directory other than /config/domain_name/applications

    Is it possible to configure WLS6.1 to use a directory other than "/config/domain_name/applications"
    as its default application directory.

    Does anyone know if this was fixed, or is it still a problem. Do we really need
    to run our applications from within the bea install/config/domain directory?
    thanks
    Joel
    "Michael Frank" <[email protected]> wrote:
    Ryan, we have been working with the kinds of application setups that
    you
    seem to describe. All through WebLogic 5.1, I have insisted on keeping
    my
    application server directory outside of the BEA WebLogic installation
    directory.
    With 6.1, I have had some success running with the root directory different
    from the home directory. Here is a sample startup sequence, which sets
    the
    startup root to be other than the WebLogic home directory:
    Change to directory: c:\EJC61\wlroot
    WL_HOME: c:\bea\wlserver6.1
    java -Dbea.home=c:\bea -Dweblogic.RootDirectory=c:\EJC61\wlroot
    -Dweblogic.Name=appserver -Djava.security.manager
    -Djava.security.policy==c:\bea\wlserver6.1\lib\weblogic.policy
    -classpath c:\bea\wlserver6.1\lib\weblogic.jar weblogic.Server
    Unfortunately, I recently discovered a problem involving EJB transactions
    that could only be resolved when I moved my domain directory back under
    the
    WL_HOME directory. Basically, I couldn't use transaction=required in
    any
    but the standard directory setup. I have already sent word of this to
    BEA,
    but for the time being, I would suggest that you follow the standard
    setup
    until BEA verifies that they support and have tested alternate directory
    setups.
    "Ryan Planinshek" <[email protected]> wrote in message
    news:[email protected]...
    We have scripts that set up various directory structures on a virtualdrive(based
    on DEV/DEVTEST/PROD etc.) on the fly and I don't want to touch anythingin
    the
    Weblogic home.
    Basically I am just wondering if this "/config/domain_name/applications"directory
    is defined within an XML or some other properties file somewhere...
    "Charlie Crook" <[email protected]> wrote:
    Why would it matter?
    "Ryan Planinshek" <[email protected]> wrote in message
    news:[email protected]...
    Is it possible to configure WLS6.1 to use a directory other than"/config/domain_name/applications"
    as its default application directory.

  • Running a java program in a directory other than the current directory

    How do I run a java program that's located in a directory other than the current directory?
    There is a file Test.java in /dir1/subdir1. If my current directory is anywhere other than that directory, say /dir2/subdir2, I can compile Test.java by using:
    javac -classpath /dir1/subdir1 /dir1/subdir1/Test.java
    But when I try to run it with:
    java -classpath /dir1/subdir1 /dir1/subdir1/Test
    I get a java.lang.NoClassDefFoundError: \dir1\subdir1\Test
    Any thoughts?

    You need to specify just the name of the class you want to run. So java -classpath /dir1/subdir1 Test

  • How to install adobe X or XI in a directory other than default.

    Please,
    I need install Adobe reader in a diferent directory of default.
    How to install adobe X or XI in a directory other than default.
    best Regards.

    What OS? Why are you trying to install i a different directory. No matter what directory you install in, quite a bit must be installed on the boot drive. If you are running out of hard drive space, it is time to get a new hard drive.

  • Deploy app under directory other than webapps

    I am having the following problem. I am deploying my application under a different directory than the usual <tomcat home>/webapps. My context is set to point there fine. (BTW, the directory is under a different drive on my server). When I run the application, I can go to my start page fine. When I hit one of my jsp pages, I get an error that the pages cannot find the classes I imported to use in them. One more thing, I am using STRUTS 1.1.x and I have the jsps set up as forwards. Also, I have the JSPs under the WEB-INF directory so the only way to get to them is through a forward from code on the server. Every time I hit one of the JSPs they think they need to look for the classes under the WEB-INF directory? Did anyone have the same problem? Any ideas?
    Your help is appreciated. If I find the solution on my own, I will post it here as well in case someone else needs it.

    All of your classes need to be under
    {web app directory}/WEB-INF/classes
    or if they are in a jar file
    {web app directory}/WEB-INF/lib

  • Getting WebLogic 5.1 sp4 to point @ a directory other than "myserver"

    I am in the process of changing our middle tier over from Dynamo to
    WebLogic. I can't find in any of the online docs where to get WebLogic to
    point at another directory besides "myserver".
    Where is this at?
    ---Jason

    well placing 10 taglib definitions in each web.xml is imho a bad idea. as there's no real way to exclude all but certain JARs from a WAR using maven (the ideal solution i'd prefer), the solution i had to choose was to set maven-dependency-plugin up the way it would extract the TLDs from certain JARs and place it anywhere under WEB-INF of the WAR when it's assembled. the cons is that TLDs are duplicated, but on the other hand the configuration for that is minimal (which also seems important to me).

  • Rsync - download to directory other than the sync directory

    I want to rsync from server/dir to local/dir. local/dir is an outdated sync of server/dir. I would like to perform a sync but actually download the necessary files for the sync to a different directory than local/dir.
    Basically: compare server/dir and local/dir, download the necessary updates to local/some-other-dir.
    It doesn't seem as if rsync has this functionality built in, but it's possible I'm missing something.
    How could I do this?

    My question is more complex than a standard backup procedure, I don't see anything about my question in the wiki.
    Basically, I compare A to B but actually perform the backup to location C.

  • HP Pavilion slimline s3400t. DVD/CD will not offer a directory other than e:

    The help menu states that I can select other directories, but when I click on the link, the only directory that is offered is my e:\ drive.  Is there a fix for this?  I am running Windows Vista for Business upgrade 2.  Device manager describes my DVD as:
    HL-DT-ST DVD-RAM GH10L ATA.
    Thank you.

    Ah....I see. You are just looking to play the files you copied to your hard drive. You don't really want to change the drive letter. Changing the drive letter would not help you play the files on your hard drive. It would just confuse your computer about where to find your hard drive
    What kind of file(s) did you copy to your hard drive? Was it a DVD movie? Was it some personal files (like Microsoft Office documents or pictures)?
    What DVD software are you trying to use to open the files?
    Have you tried navigating to the files you copied and opening them by double-clicking on them?
    The more we understand about what you are trying to do, or what is happening, the better we can help.
    ...an HP employee just trying to help where I can, but not speaking on behalf of HP.

  • Make firefox use a directory other than ~/.mozilla

    I want to use several firefox versions and 'flavors' (plugin sets) simultaneously. Is there an environment variable or a command line option that tells firefox which directory to use for its data? If there's not any, where can I find it in the source?

    The profiles are what firefox uses for its data. There are command line options, also methods of creating profiles that do not display in the profile manager, as mentioned in the last article I linked to.
    *See also: https://developer.mozilla.org/en/Command_Line_Options
    Certainly I can work with multiple instances of firefox on a Windows machine.

  • Getting report out put in another language (other than english).

    Hi all,
    can any one help me out in getting report out put in proper language (english).
    actually i am running my layout through wizard.it show in english at report level but when i publish with oracle application it showing the out in another fassion.
    please kindly help me out in this issue.

    In the language preference panel of the system preferences?
    LN

  • PHD from directory other than /Users

    Hi All,
    I have gotten PHD to work with my Leopard Server 10.5.6, but only if the directory is located in /Users.
    When I try to create an account with Workgroup Manager on another volume (say, my large RAID which is where I really want it, /raid/phd ), there is always an error saying that the network home is unavailable, contact system admin, or something to that tune. I shut off all the Guest login stuff on /Users and turned it on for /raid/phd and I can log in to the account as if it were a standard file share.
    I have tried making aliases back to /Users (both ln -s and Option-Drag) but it does not work.
    Unfortunately I can not simply install the OS over on the raid device and be done with it--it would be a lot of work.
    Does anyone have a solution?

    Hi
    +Does anyone have a solution?+
    Yes. Possibly? Without knowing too much about your environment you could:
    Unshare the Users folder. Navigate to the desired folder on the RAID. Set it to share. Configure it to automount for home directories. Now launch WorkGroup Manager. Select a User and under the Homes tab you should see the path for the newly created sharepoint You'll probably see the path for the previous one as well. Ignore this and simply select the new one. Click Create Home Now and click Save.
    Verify the folder has been created by navigating to the parent folder. If you populate the LDAP node with desired users and provided the correct path is defined in the Advanced tab you can issue:
    sudo createhomefolder -a
    from the command line. This will create home folders for all your users. Or you could simply the use the GUI a user at a time or select them all and click create home now followed by save. You should be able to see the folders being created by having the parent folder open.
    Have you enabled ACLs for the RAID? If not issue:
    sudo fsaclctl -p /Volumes/raid -d enable
    Make sure you restart the Server afterwards.
    Tony

  • Smc and smuser both put wrong home directory in /etc/passwd

    Hello,
    I'm trying to use 'smuser add' as an alternative to 'useradd' in a setuid script, using -d to specify a home directory other than the default. Unfortunately, although the directory is created in the right place, the default is written into /etc/passwd.
    %smuser add -u sapadm -p ***** -- -d /appuser/inputs/tom -g sapusers -n tom -s /bin/sh
    Loading Tool: com.sun.admin.usermgr.cli.user.UserMgrCli from localhost
    Login to localhost as user sapadm was successful.
    Download of com.sun.admin.usermgr.cli.user.UserMgrCli from localhost was successful.
    % ls -al /appuser/inputs/tom
    total 14
    drwxr-x--- 2 tom sapusers 5 Mar 28 15:48 .
    drwxr-xr-x 3 sj staff 3 Mar 28 15:48 ..
    -rw-r--r-- 1 tom sapusers 136 Mar 28 15:48 .cshrc
    -rw-r--r-- 1 tom sapusers 157 Mar 28 15:48 .login
    -rw-r--r-- 1 tom sapusers 174 Mar 28 15:48 .profile
    % cat /etc/passwd
    tom:x:101:1002::/home/tom:/bin/sh
    % ls -al /home/tom
    /home/tom: No such file or directory
    % uname -a
    SunOS sun03 5.10 Generic_127112-07 i86pc i386 i86pc
    Exactly the same thing happens when I use the SMC2.1 GUI - even though it echoes back to me that the directory path qill /appuser/inputs before I hit 'finish', the directory is created correctly, but /home/tom goes into /etc/passwd.
    Is there any fix/workaround for this, or am I back to an old-fashioned useradd in a setuid script?
    Thanks
    -- Steve

    Father wrote:
    that way, they are chrooted into an empty directory and have no files they can tamper with
    isnt that a little dangerous??
    What files a user can change is determined by the files' permission settings, not by the user's homedir. The homedir only tells what the initial working directory when a user logs in is, nothing else, it doesn't implicit writing or even reading access. So no, it's not dangerous, not even a little.

  • Making jar file in folder other than the working directory

    Hello!
    I am trying to make jar files by using a program. I execute jar commands at runtime. The problem is that when a command is given like this
    jar cvmf C:\HTTPS\Manifest.txt C:\HTTPS\khalid.jar C:\HTTPS\client.cer
    C:\HTTPS\Client.jar C:\HTTPS\client.keys C:\HTTPS\HelloRunnableWorld.class C:\HT
    TPS\HelloRunnableWorld.java C:\HTTPS\keytool interaction commands.txt C:\HTTPS\M
    akeJarRunnable.class C:\HTTPS\MakeJarRunnable.java C:\HTTPS\MakeJarRunnable.zip
    C:\HTTPS\Manifest.txt C:\HTTPS\myjar.jar C:\HTTPS\myjar_r.jar C:\HTTPS\Problem s
    cenario.txt C:\HTTPS\Run.bat C:\HTTPS\scompressed.jar C:\HTTPS\Security.jar C:\H
    TTPS\Server.jar C:\HTTPS\server.keys C:\HTTPS\serverexport.cer C:\HTTPS\Starter.
    class C:\HTTPS\Starter.java C:\HTTPS\Umer Farooq - What I did.ppt C:\HTTPS\Umer.jar
    The jar file is created but it has 0 bytes in it. No data is written into it, despite all the files being there.
    Thank You

    That is not the way to create jar files. Here is how you do it.
    Under say c:\ create directory "utils".
    Copy all of the *.java" files which will be part of this jar file "utils.jar". After moving files into c:\utils , make sure every single file has the first line of code as "package utils;" (without the quotes though)
    Type in "javac *.java" to compile all of the files at once.
    cd over to the parent directory and then type in
    jar cvf utils.jar c:\utils\*.class
    This will create utils.jar file under c:\

  • TS3297 iTunes puts up a message "The item you've requested is not currently available in the Hong Kong Store." I had not requested anything from the HK store at that point, and I have never used any store other than the HK one. How I can clear that messag

    I've been running iTunes on WinXP for years with few problems.  I have all my iTunes files on an external USB drive. I just bought a new PC running Win7, 64-bit.
    I connected the external USB drive to the new PC and installed 64-bit iTunes on it. When iTunes started up, I pointed it at the iTunes directory in the external drive, using Edit > Preferences > Advanced > iTunes Media Folder Location. It showed a progress bar that it was updating the iTunes Library. I signed in and authorized the new machine. I have one spare authorization.
    Then iTunes put up a message "The item you've requested is not currently available in the Hong Kong Store." I had not requested anything from the HK store at that point, and I have never used any store other than the HK one.
    When I click OK, the iTunes Store page remains blank, apart from saying "iTunes Store" in the middle of the page.
    I went to "View My Account" and pressed the Reset button to "Reset all warnings for buying and downloading items", but that doesn’t fix this particular warning. I also tried Edit > Preferences > Advanced > Reset Warnings and Rest Cache.
    But still, every time I click the “App Store” button in the iTunes Store window, the message appears. If I click the Books, Podcasts or iTunesU buttons, these display normally.  So I’m stuck with being unable to purchase apps, other than through my iPad and iPhone.
    If I move the external drive back to the XP machine, the same thing happens.  If I go to another PC - a notebook running Vista - everything is normal.
    Any idea how I can clear that message?
    Thanks for any help you can offer.

    Further info on my question above.
    I have tried re-validating my credit card, which apparently fixed it for some. 
    I have also tried uninstalling, re-downloading and installing again.
    Neither of these steps fixed the problem.

Maybe you are looking for

  • Purchase order idoc - generate all lines with any changes

    when the orders idos is created new all material lines are created in the idoc when there is a change only the changed material lines are included in the idoc if no material lines are changed only the header idoc segments are created how can I have t

  • Trying to access output on bridge

    I am unable to access output on bridge

  • Tables used for MIGO

    Hi can any one tell me which tables are used in MIGO and if possible field names aslo .

  • 720x576 widescreen won't go widescreen.

    Hi there! I'm using After Effects CS5.5 Trial version. I have some footage that I recorded in 720x576 widescreen. When I import it into AE it won't accept it as widescreen and fixes it at a 5:4 instead of 16:9. This makes the footage look all weird.

  • Any program for advanced clipboard usage?

    Hi everybody! I need to make a clipboard the same for everything, so it's like syncronized. I need data in clipboard to be saved there when I close an application where data was copied. And I need data to be available everywhere inside one user, for