10g Preview: Deep Package Names

It appears that you can't add classes with package names longer than 6 nodes into a 10g project.
I just so happen to have some classes that have a package name which is 7 levels deep. I couldn't add it to my project via the navigator. I played around with it and sure enough was able to add it if package names were 6 nodes or less.
Example:
I couldn't add this class ...
package 1.2.3.4.5.6.7;
public class X {}
But could add this ...
package 1.2.3.4.5.6;
public class X {}
- Matt

Maybe it has something to do with the directory structure in which your class files are stored?
So, I'm thinking that maybe a directory structure like "C:\Documents and Settings\<user>\Application Data\JDeveloper Work\workarea name\project name\classes\p1\p2\p3\p4\p5\p6\p7" could cause more of a problem than "C:\JDeveloper Work\workarea name\project name\classes\p1\p2\p3\p4\p5\p6\p7"..

Similar Messages

  • 10g Preview: No way to rename view link usages in AM

    10g Preview (9.0.5.0.0 Build 1375), Win2k SP3.
    I generated the entity objects, view objects, associations, and view links from my DB structure. I created an application module with the default data model from the view objects and view links.
    I then renamed all of the view links using the Rename View Link dialog. The AM's xml file was correctly updated with the new names of the underlying view links, but the view link usages retained the old names.
    There does not appear to be a convenient way of renaming the view link usages in the AM. The workarounds are either to deconstruct the data model and then reconstruct it, or to manually edit the .java and .xml files.
    I would like to see, at minimum, the ability to rename the AM's usages via a right-click menu in the Structure pane. This would affect both view object and view link usages. Currently the only option available in the right-click menu is to edit the underlying business object, not the usage. It also would make sense to allow view link usages to be renamed from the Data Model page of the AM wizard.

    That worked beautifully. I didn't have the property inspector open originally, so it's nice to know there is a way to rename usages after all.
    I wonder if there's a usability issue here though... maybe it's just me, but with the ability to rename some things via the right-click menu in the navigator pane, it seemed natural to look in the very similar structure pane for the same sort of functionality. Now there's a third place to look. Perhaps if the right-click menu in the structure pane simply had a "Properties..." entry or something similar that brought focus to the Property Inspector, it would help the user understand that there's another place to try to make the desired changes.

  • Bug: "WEB-INF", "web-inf" and package names

    I'm using JSPs with Struts, and as recommended in the Struts Toystore Example all of my JSPs are below the WEB-INF directory. If I compile my JSPs I get the following warnings (hundreds of them):
    Warning: package name web2d_inf._jsp._gui._documents._document does not match source file name W:\root\output\Gui\View\classes\.jsps\_WEB_2d_INF\_jsp\_gui\_documents\_document\_Preview.java
    How can I get rid of this warnings, without disabling warnings completely? I'm using JDeveloper 9.0.3.2
    Thanks

    Hello;
    It looks like this bug may pop back up?
    I am using 10g Pre on LINUX and get the error:
    Project:/home/a/jdevhome/mywork/ir2/ViewController/ViewController.jpr
    /home/a/jdevhome/mywork/ir2/ViewController/public_html/WEB-INF/untitled1.jsp
    Error:/home/a/jdevhome/mywork/ir2/ViewController/public_html/web-inf/untitled1.jsp (No such file or directory)
    It looks like web-inf is getting set to lower case somewhere.
    I know Linux is not the release for the 10g pre, this is just in case the bug is going to 'pop' up again in the final version
    Thanks
    A

  • DataAction class changed from 10g Preview version to Production

    I have been using the production version of JDeveloper to work through the "Creating a JSP Application using ADF Business Components and ADF DataBinding" tutorial that was written for the 10g Preview (http://otn.oracle.com/products/jdev/collateral/tutorials/9050/bizcomp_jsp_tut.html).
    In one section it instructs you to override the findForward() method of a DataAction. Unfortunately, there is no longer an overloaded version of findForward() in the DataAction class that returns an ActionForward object, only one that returns void. Overloading the method is not a problem per se, but it cannot return super.findForward() as is specified.
    There is also a problem with importing oracle.adf.controller.struts.actions.PageLifecycle; the class does not seem to be part of that package.
    Any help or guidance is greatly appreciated. Thanks!

    Ryan,
    Yes, some of the classes have changed between the preview and the production release. The extent of the changes are describe in the release note accessible from the help menu.
    As for the findForward method, the value of the action forward is now set to the context object. Look at the javadoc for StrutsPageLifecycle.findForward
    http://download.oracle.com/otn_hosted_doc/jdeveloper/905/adf_javadocs/oracle/adf/controller/struts/actions/StrutsPageLifecycle.html#findForward(oracle.adf.controller.lifecycle.LifecycleContext)

  • [SOLVED]How to search package name only when using yaourt

    I often install a AUR package by yaourt term, but it does not only search terms in package name but also package description, since there are so much packages in AUR, it produce many pages of items, and it can not support more to page one screenful at a time, It
    become difficult to get the right choice,
    Thank you in advance!
    Last edited by netawater (2013-06-14 00:47:06)

    Hey, that's one thing I actually know how to do with regexes! All package descriptions have some spaces at their beginning, the package names themselves have not, so you can just use inverted grepping like so:
    $ pacman -Ss test | grep -v '^ '
    core/perl 5.10.1-5 (base)
    extra/fprint_demo 0.4-2 (fprint)
    extra/ghc 6.12.1-2
    extra/haskell-hunit 1.2.2.1-1
    extra/haskell-quickcheck 2.1.0.3-1
    extra/junit 4.7-1
    extra/kdesdk-kpartloader 4.4.0-1 (kde kdesdk)
    extra/libxtst 1.1.0-1
    extra/memtest86+ 4.00-1
    extra/mono-tools 2.6.1-1
    extra/openoffice-base 3.2.0-1
    extra/openoffice-base-beta 3.2.0_ooo320_m12-1
    extra/perl-test-pod 1.41-1
    extra/python-nose 0.11.1-1
    extra/qemu-kvm 0.12.2-1
    extra/testdisk 6.11.3-2
    extra/unarj 2.63a-2
    extra/xbill 2.1-6
    xyne-any/reflector 5.0-2
    community/buildbot 0.7.11p3-1
    community/cppunit 1.12.1-1
    community/cxxtest 3.10.1-3
    community/dsniff 2.4b1-15
    community/gtk-aurora-engine 1.5.1-1
    community/gtkperf 0.40-3
    community/java-jdom 1.1.1-1
    community/lib32-libxtst 1.1.0-1 (lib32)
    community/perl-test-base 0.59-1
    community/perl-test-deep 0.106-1
    community/perl-test-differences 0.500-1
    community/perl-test-exception 0.29-1
    community/perl-test-manifest 1.23-1
    community/perl-test-mockobject 1.09-1
    community/perl-test-nowarnings 1.01-1
    community/perl-test-tester 0.107-1
    community/perl-test-warn 0.21-2
    community/phoronix-test-suite 2.4.0-1
    community/pmtools 20100123-1
    community/reflector 5.0-2
    community/stress 1.0.0-2
    community/typespeed 0.6.5-2
    arch-games/mangler-snapshot 1.1.20100116-3
    arch-games/ultimatestunts 0.7.5.1-1
    This still shows the repos and the versions (nothing cut wouldn't be able to handle though). It works fine with pacman as you just saw, I can't guarantee for yaourt as I don't have it installed.
    Edit: Hm… I just realized that this still displays the results where 'test' only occured in the package description. Give me some time to figure this out.
    Edit 2: Another grep for 'test' would solve it:
    $ pacman -Ss test | grep -v '^ ' | grep test
    extra/memtest86+ 4.00-1
    extra/perl-test-pod 1.41-1
    extra/testdisk 6.11.3-2
    community/cxxtest 3.10.1-3
    community/perl-test-base 0.59-1
    community/perl-test-deep 0.106-1
    community/perl-test-differences 0.500-1
    community/perl-test-exception 0.29-1
    community/perl-test-manifest 1.23-1
    community/perl-test-mockobject 1.09-1
    community/perl-test-nowarnings 1.01-1
    community/perl-test-tester 0.107-1
    community/perl-test-warn 0.21-2
    community/phoronix-test-suite 2.4.0-1
    arch-games/ultimatestunts 0.7.5.1-1
    Still, it's not that pretty to write the same thing twice. If you really want to do it like this, I suggest you make it a function in your ~/.${SHELL}rc.
    Last edited by Runiq (2010-02-27 08:36:11)

  • JDev 10g preview is out!

    The JDev 10g preview is now available:
    http://otn.oracle.com/products/jdev/collateral/prodtour10g.html
    Oracle JDeveloper 10g includes a lot of a new UIX functionality, including a UIX visual editor. Check it out!

    I'm assumming the "operation timed out" error is from your browser?
    If you are using VPN or DHCP, you'll need to specify "localhost" as the hostname where OC4J will start, and subsequently, where you're JSP will be deployed. Go to Tools -> Embedded OC4J Server Preferences. Select Startup and specify the host name as "localhost". Redeploy and you'll be able to access your JSP using http://localhost:8988/simple_jsp-Project-context-root/simple.jsp
    Hope this helps,
    Lynn
    Java Tools Team

  • Creating secure web apps in JDeveloper 10g preview

    Hi all,
    I am trying to set up a secure web application and test it within JDeveloper 10g preview. So far, I am able to set up the correct entries in web.xml and ???-oc4j-app.xml (actually had to add the role mapping manually in the last file). I am able to automotically bring up a login form, enter my username/password and get to the protected resources. What I am not able to do is the following:
    1. Display an error page when the login fails (I get a generic HTTP 403 page instead of the page I specified in web.xml).
    2. Enable SSL. I can set the write checkboxes, etc., but instead of displaying the login form, the browser asks me to open/save the file home.do (the protected resource). I think there is some setup that is messing, but what is it?
    Any help is appreciated. Thanks.
    Ara

    Sorry, I guess I shoud have made it clearer: I am using HTTP-FORM authentication and I have specified a login and error page there. Neither page is protected (i.e., their URI pattern is not specified in the servlet deployment descriptor).
    I get the login page fine. I am also able to log in,provided I submit the right username/password. The problem comes when I submit an incorrect name/password. In that case, I get a generic HTTP 403 page instead of the error page I specified.
    Hope this provides more clues.
    Ara

  • Need the current package name

    I am using 10g and need to get the package name of the executing package on the run time. I can write/hard_code the value, but need a dynamic variable which stores the package_name during runtime.
    Looking for something like __PACKAGE__ variable in Perl.
    Thanks.

    SQL> create or replace procedure call_proc is
      2  begin
      3  dbms_output.put_line('Call for Call_Proc');
      4  dbms_output.put_line(DBMS_UTILITY.FORMAT_CALL_STACK);
      5  end;
      6  /
    Procedure created.
    SQL> declare
      2  a varchar2(2000);
      3  begin
      4  call_proc;
      5  a := DBMS_UTILITY.FORMAT_CALL_STACK;
      6  dbms_output.put_line(a);
      7  end;
      8  /
    Call for Call_Proc
    ----- PL/SQL Call Stack -----
      object      line  object
      handle    number
    name
    332C60EC         4  procedure SYS.CALL_PROC
    332A2AD4         4  anonymous
    block
    ----- PL/SQL Call Stack -----
      object      line  object
      handle    number
    name
    332A2AD4         5  anonymous block
    PL/SQL procedure successfully completed.

  • Whats the package name ??

    Hi all,
    In a package can I identify the package name ? means when I am running mypackage.myprocedure , I want to display (or store somewhere), from the code, which package and which procedure I am running.
    Is that possible ?
    Is there any in-built facility for that ?
    E.g.
    If I run ,
    select user into v_user from dual
    You get the user with which you are logged in.
    Please help.
    Thanks

    you can use dba_procedures to find the name of the proedured in a package in 9iFnord. the poster wants to get the name of the package and the procedure they are currently executing from inside the procedure.
    It would be neat if Oracle offered this sort of function (like Java's reflection) but at the moment at least until 9i it doesn't.
    Any 10g whizzes out there? I know there's been some enhancement of the CALLSTACK; does 10g offer us anything like a WHOAMI function?
    Cheers, APC

  • I need to remove "air." from package name. I'm get a Layout xml error when repackaging android app..

    So, i'm doing this on my own app. I made an update for an older app that was build using Native Android. But this time, i used Adobe AIR... The catch is Adobe likes to append a "air." to the front of your package name without asking you. So basically I can't upload my update because it has a new package name is now "air.com.mycompany.myapp" rather than the original "com.mycompany.myapp"
    Basically I'm going through this guide..
    http://helpx.adobe.com/air/kb/opt-out-air-application-analytics.html
    I followed all the steps, made all the adjustments to the androidmanifest.xml like it asks.
    But after going along with the above guide, with no issues when i get to the step that says
    "Run the following command to create the resource file for the updated AndroidManifest.xml:"
    I run this..
        "/Users/brybam/Documents/eclipse/android-sdk-mac_x86/platform-tools/aapt" package -f -M AndroidManifest.xml -F resources.arsc -I "/Users/brybam/Documents/eclipse/android-sdk-mac_x86/platforms/android-8/android.jar" -S ./res
    But I keep getting the same error regarding the xml files in res/layout
        ./res/layout/expandable_chooser_row.xml:1: error: Error parsing XML: not well-formed (invalid token)
        ./res/layout/expandable_multiple_chooser_row.xml:1: error: Error parsing XML: not well-formed (invalid token)
        ./res/layout/main.xml:1: error: Error parsing XML: not well-formed (invalid token)
        ./res/layout/multiple_file_selection_panel.xml:1: error: Error parsing XML: not well-formed (invalid token)
        ./res/layout/ssl_certificate_warning.xml:1: error: Error parsing XML: not well-formed (invalid token)
    The guide doesn't say anything about these xml files, and im not sure what to do with these or how to handle them.
    If i go into the res/layout folder, and just delete these (i know they're necessary. But i just deleted them as a test, to get through the rest of the guide...)
    I was able to get through the rest of the steps in the guide fine, make an apk, and put it on my phone...only to find out the app will crash the moment you try to run it. Probably because i deleted the layout xml files...But i cant get the command i need to run above to accept them!
    So, earlier in the guide they have me use thing thing called the "AXMLPrinter2.jar" to make the AndroidManifest.xml readable so i can edit it.
    I run something like this:
        java -jar "/Users/brybam/Desktop/repackage/AXMLPrinter2.jar" AndroidManifest.xml > AndroidManifest.xml.bk
    This makes a new file "AndroidManifest.xml.bk" and i can edit that.
    So, I was thinking with all of these layout xml files, maybe I could run this "AXMLPrinter2.jar" on them and then edit them. Because right now if you open them they're not human readable, and its hard for me to work on them if they're not...
    I tried this thinking i could do the same thing...
        java -jar "/Users/brybam/Desktop/repackage/AXMLPrinter2.jar" main.xml > main.xml.bk
    Just get a blank file and a console erorr when trying to use the AXMLPrinter2.jar on the layout xml files...
        java.lang.ArrayIndexOutOfBoundsException: 67
                  at android.content.res.StringBlock.getShort(StringBlock.java:231)
                  at android.content.res.StringBlock.getString(StringBlock.java:91)
                  at android.content.res.AXmlResourceParser.getName(AXmlResourceParser.java:140)
                  at test.AXMLPrinter.main(AXMLPrinter.java:56)
    So, I think my whole issue is based around these XML files not being converted to human readable before i try and re-package....
    EDIT:::
    Ok, so I found a site that talks about the error I'm getting but it's in chinese, and even after translating the page...I'm still not well versed with terminal and this stuff to get it.
    It reads:
    "Error.
    Final conclusion:
    In minSdkVersion <= 7, AXMLPrinter2.jar can normally decompile xml file
    Greater than 7 can not be normal decompile xml file (AndroidManifest.xml except)
    Give way to share a batch decompile xml file:
    First, create a *. Txt file
    Stresses inside the content authoring
    for / r layout%% a in (*. xml) do @ java-jar AXMLPrinter2.jar "%% a" >> "%% a". txt
    Then this txt file extension into bat form, and this BAT the file and AXMLPrinter2.jar on the same directory will be decompiled xml into the layout directory
    Decompilation results can be generated by executing the bat file multiple xml files."
    - http://hi.baidu.com/ghcghc/item/ecbaa1ce997cb225a0b50ac2
    Maybe someone with more know-how could explain what they're explaining? I get that he's saying the issue im seeing appears when you're using minSdK <=7 but I need to use minSdk 8. Does anyone understand this work around? And how I might go about it on a Mac with terminal?
    I wish adobe would make it easy to remove the "air." from the package name. If they want to convert old Native devs to AIR devs...the transition needs to be seamless. But now I'm about to have to go back to Native because I can't update an app I already have out on the market with an air app.

    Hello~
         I also tried to remove "air." package name in air application. And i encounter the same problem.
         I do not find any solution to decode the xml inside res folder by AXMLPrinter2.jar. And those xml inside is compressed which is unreadable.
         However, what you can do is copying the structure of res folder. And go to your air sdk file path -  adobeair-sdk-folder/lib/android/lib/resources/
         Replace those file exists in your res folder. And copy "values" folder to your res folder.
         Hope this solve your problem~

  • Class name and package name clashing

    When i have a class and a package with the same name, I cannot access classes in the package. For example I have 3 classes and 1 package as below
    - Test.java
    - PackageName.java
    + PackageName // this is a directory
    - MyClass.java
    Below are the codes of .java files
    Test.java
    =======
    public class Test { PackageName.MyClass a = new PackageName.MyClass ();}
    PackageName.java
    ===============
    public class PackageName{ }
    MyClass.java
    ==========
    package PackageName; public class MyClass { }
    I can compile PackageName.java and MyClass.java but not Test.java. It says
    cannot resolve symbol
    symbol : class MyClass
    location: class PackageName
    PackageName.MyClass a = new PackageName.MyClass ();
    But if I remove the PackageName.java, I can compile Test.java perfectly. I think when I use PackageName.MyClass, java thinks that I try to access an inner class MyClass of PackageName class, and that does not exists. Is there any way to solve this ambiguation, other than making the package name and class name different? Thank you very much.

    This works fine: just add an import to Test.java.
    import PackageName.MyClass;
    public class Test
        public static void main(String [] args)
            MyClass a = new MyClass();
    public class PackageName {}
    package PackageName;
    public class MyClass {}It's a pretty wacky, useless example, but it works.
    Plus I thought inner classes would have a dollar sign in their .class file names. When I compile this:
    public class OuterClass
        public static void main(String [] args)
            OuterClass outer = new OuterClass();
            System.out.println(outer);
        public String toString() { return "I'm an OuterClass"; }
        class InnerClass
            public String toString() { return "I'm an InnerClass"; }
    }I see two .class files: OuterClass.class and OuterClass$InnerClass.class
    Why make up examples like this? It's hard enough writing code, and it's easy to disambiguate for the compiler.

  • How to change the package name of Managed Bean class

    Hi: Gurus, when ever I create a new JSP page the Creator creates a code behind file with a package name untitled. Is there any way to change this package name? Can't the Creator gives us an option before genereating manged bean page to choose a package name? And then create the Java source directory structure on the basis of the pakcage name?
    Regards,
    Rashid.

    In the Project Navigator (default location is middle right), go to Java Sources, and you can rename the package ("untitled") to something else by right-clicking it or by left-clicking (just like Windows Explorer).
    I agree, though, that giving the developer an option during creation of the JSP page would be nice.

  • Problem with running Applets in JDEV 10G Preview

    Our Jdeveloper project has a default run target which is an Applet HTML page.
    Sometimes when a you click Run/Debug the project runs in Applet Viewer and sometimes it spawns an OC4J process and runs it in the container. It seems the execution of our project has a mind of its own. You can run/debug the same project on different developer PCs and have different execution behavior.
    How do you configure the execution environment for applets?
    If possible, it would be nice to be able to create multiple execution profiles so that we could have this applet run in OC4J sometimes and in AppletViewer other times. But it does not seem like you have control of this under the project properties.
    Thanks,
    Paul Manning

    Hi Paul,
    In the 10g preview, the code that launches applet viewer has first crack at whether it should "run" your html file. If that code thinks it should not launch applet viewer, then the code that launches OC4J gets a chance. The applet viewer launcher looks at the contents of the html file and looks for the <applet> tag. Is it possible that the contents of your html file is changing in such a way that my applet viewer launcher code isn't able to find the <applet> tag? If so, can you possibly send me your html file, or describe the applet tag(s), so that I can improve my side? I'd really appreciate it.
    In the near term future (the 10g release), when the run target can be started in different ways (like your applet html), the user will get to choose which way when he/she clicks run/debug. If you use the context menu, the run and debug items will lead to a pull-right submenu that lists all the choices. However, if my applet viewer launcher code doesn't find the applet tag in your html file, you won't see applet viewer in the list of choices.
    In the long term future we will support real multiple execution profiles.
    -Liz Looney

  • The package name The Gallbladder-4.itmsp contains an invalid character(s).  The valid characters are: A-Z, a-z, 0-9, dash, period, underscore, but the name cannot start with a dash, period, or underscore

    I have an iBook on itunes and I am trying to upload a new version of the book. I am following the workflow through iBooks Author and when I fell out all of the infromation for the package on iTunes producer i then hit the deliver button and I get the following error message:
    The package name The Gallbladder-4.itmsp contains an invalid character(s).  The valid characters are: A-Z, a-z, 0-9, dash, period, underscore, but the name cannot start with a dash, period, or underscore.
    As far as I can tell the file that is being referenced does not meet the criteria axpressed in the erro message and in fact that file has been created by iBooks Author so one would think there shouldnt be an error.
    I also get the following to error messages:
    Apple's web service operation was not successful
            Unable to authenticate the package: The Gallbladder-4.itmsp
    Would ove any help.
    Thanks,
    Jeff

    Thank you so much for your help.
    For anyone that would like to check out this book it can be downloaded at:
    https://itunes.apple.com/us/book/the-gallbladder/id598317335?ls=1
    Please check out our free medical education blog by Jeffrey Eakin using iBooks Author at:
    http://free-medical-education-ibooks-author.blogspot.com

  • Difficult to get good package names with ojspc in automated build

    If I understand the documentation for "ojspc" correctly, there is an aspect of its functionality that makes it difficult to have a convenient automated build which can also get good package names for the generated Java source files.
    If you don't specify the "-packageName" option, ojspc will build a package name relative to the current directory, including sub-directories. However, specifying "-packageName" will ONLY use that package, and will not create sub-packages associated with sub-directories.
    If you don't use the "-packageName" option, then you have to run the build from the root directory of your JSP files. When you're running an automated build with ANT, it's not convenient to do this.
    The likely result of this is that I would have to make sure that all of my JSP files are named differently, even if they're in different directories, and use the "-packageName" option to specify a particular package name for all of the generated source files.

    After more careful reading, I realized that using the "-appRoot" option (without using "-packageName") makes it possible for an ANT build to generate good package names (with directories).
    The following note, however, in the ojspc documentation is kind of odd:
    "It is advisable that you run ojspc once for each directory of your JSP application, so files in different directories can be given different package names, as appropriate."
    I assume this is referring to using the "-packageName" option. If you don't need to use "-packageName", especially if you have multiple directories of JSP pages, it is much easier to just let ojspc pick the package names.

Maybe you are looking for

  • Adding multiple records in a LightSwitch application

    I have been requested to add a new feature to my current LightSwitch application that is used to manage our employee training programme.  The problem revolves around the ability to create training needs for a multiple set of employees, instead of hav

  • How do i get my old password back.. my grandson changed it and does not remember the numbers he used?

    My grandson changed my password to get onto my ipod and cannot remember the number he put in. how do i open it and change back to original password (4 numbers)   thankyou in advance.

  • APs go into standalone but don't recover

    We have an issue of APs losing communication to the WLC, going into standalone mode and not completely returning to LWAPP mode once communication is restored. The controller is a 4404 running version 5.2.178.0. The WLC is at our corporate office and

  • How to run Unix command with Pipe ( | )?

    Dear Friends, I have to execute the below unix command through java program. *ps -ewwo pid,args | grep -E "abc.sh|xyz.jar" | gawk '{ print $1 }' | wc -l* My code to execute this command is, Runtime run = Runtime.getRuntime(); File workDir = new File(

  • How to recover data from corrupt redo

    Hi All, I have one qurey regarding redo file. My database is in Noarchive mode and all redo files size is 1G, there are 3 groups and all group having 1 member each. Now in case my all redo corrupt/dropped then can I recover my data from corrupt redo?