JDI: Cannot EDIT a java source file in a loaded, inactive DC

I have finished JDI Scenario 2+.  I have since built a new workspace and imported my Development Configuration.  I would now like to edit the java code and do a re-deployment.
Problem: I cannot Edit the file; it is read-only.  I was able to edit the file from a different workspace yesterday, at which time when I typed in the editor I was prompted to create and activity and I did.  I did NOT mark it for exclusive check-out.
Since then I have done a REVERT on that activity,but I still cannot edit this file in my second new wrokspace.  In the context menus, in the DTR sub-menu, the EDIT selections are always grayed-out.
So, can someone advise how I can get the EDIT selections to be not grayed-out so that I can edit this file in the Java editor?
Thanks,
Mike R.

Hi Mike,
You are right, and the instructions are wrong: the "Create Project" must be done from the "Inactive DCs" view (for the sources to be editable).
The "Active DCs" view will give you sources from the "active" workspace (containing all "activated" sources), which is read-only. For DCs you work on (and modify), you should sync sources from the "Inactive DCs" view, and for DCs you depend on you should sync archives/sources from the "Active DCs" view.
I have requested for a correction of this error in our documentation.
Regards,
Manohar
PS: There is now a dedicated SDN forum for JDI (under WebAS) - so you can post your questions there in future.

Similar Messages

  • I cannot break my java source into packages

    I would like to convert my java source in my Creator project(s) to standard package naming conventions such as com.mycompany.myapp but I'm having difficulty. After renaming the package within the Java Sources folder, and making necessary related corrections in referencing Java source files and managed-beans.xml I still cannot get the application to run. The IDE is also losing the ability to render the JSP source as well due to a broken binding reference that is not kept in sync. In general is it possible to use packages in Creator where the java source files are in sub-directory packages? I happen to be using Windows 2000. But I can use other operating systems if it will work elsewhere.

    Hello Iwan.
    Unfortunately, I was not able to find a clean workaround for implementing a multi-level package structure on an "existing" application.
    I WAS able to do it eventually knowing the desired tree structure I needed to reach (as already noted), but it required a lot of hand editing as Creator appropriately cautions.
    I even had to get into the private "project.prj" file eventually outside of creator in notepad to clean up my structure before I could finish.
    Anyway, I want to repost my prior instructions for implementing package structures on NEW projects.
    I found an error in yesterday's post and some misplaced words. This is a corrected version.
    Also, this approach was not tested exhaustively - but I think it is probably close.
    Again my environment happens to be running on Windows 2000.
    Updated/corrected notes for building a new "packaged" Creator application.
    =====================================================================
    It turns out you can avoid manual editing if you follow this sequence for new applications.
    It is helpful to understand these concepts that steer our procedure:
    1) The "Web Pages" directory and "Java Sources" directory require synchronized directory trees to accomodate the mirror relationship between packaged *****.jsp and *****.java bean backing files.
    2) The "Web pages" directory tree will not display the highest-level node - it apparently shares/references the highest-level package node immediately under the Java Sources folder.
    You will need to substitute your own names for package nodes as desired.
    This example develops the package named "com.company.division.mypackage".
    As such my project directory tree goal is:
    Project Navigator (Logical View)
    =========================
    MyProject
    -- Web Pages
    ---- Resources (ignore for this exercise)
    ---- company
    ------ division
    -------- webapplication1
    ---------- Page1.jsp
    -- Page Navigation (ignore for this exercise)
    -- Managed Beans (ignore for this exercise)
    -- Java Sources
    ---- com
    ------ company
    -------- division
    ---------- webapplication1
    ------------ ApplicationBean1.java
    ------------ Page1.java
    ------------ SessionBean1.java
    + Library References (ignore for this exercise)
    + Data Source References (ignore for this exercise)
    Steps to repackage your application without manual editing:
    ==========================================================
    1) Create a new default application - in our case my case named WebApplication1:
    Use any method you want to create a new project accepting all default naming.
    You will get a project with 3 java beans (Application, Session, and Page) and Page1.jsp.
    I had confusion because of names similar to WebApplication1 used for the Project, Context, Package, and Application.
    The following two options decouple two of these names - that may or may not be helpful for you.
    Optional: Rename project WebApplication1 to MyProject to avoid naming extension confusion:
    Select the top/main folder in the Project Navigator and right click for context menu options
    Select the Rename Project option, enter your desired name, and click OK
    Please allow several seconds for the project refactoring to rebuild your directories
    Optional: Rename project context from webapplication1 to URL context name appropriate for you:
    Select the top/main folder in Project Navigator (Just named MyProject in the preceding example)
    Enter your desired URL Context Path in the Properties window field and press Enter.
    2) Delete the Page1.jsp file and Page1.java file as follows:
    Select the Page1.jsp or Page1.java file
    Right click for a context menu and select the delete option
    Accept/Acknowledge deletion of the synchronized counterpart bean/jsp
    3) Build your new Web Pages directory tree as shown above without a "com" folder:
    Use either the context menu "New > Folder" or "New > Package" option - they both work
    As shown we need to create a 3 level sub-folder: company, then division, then webapplication1
    4) Build your new Java Sources directory tree starting by renaming your package root:
    In the Java Sources folder rename "WebApplication1" package to "com".
    This is accomplished within the context menu accessed via right-click on your mouse.
    Enter "com", press Ok, and then accept "Yes" to rename all package declaration references.
    Enter "Ok" to acknowledge the need for warning about manual editing being necessary.
    Use the context menu "New > Folder" or "New > Package" option - they both work
    to create / add the remaining sub-directory folders within the newly named "com" folder.
    As shown this is 3 more sub-folders: "company", then "division", then "webapplication1".
    5) Copy your Application Bean java file then delete it from the source:
    Right-click on your ApplicationBean1 file and select copy.
    Select (left-click) the target Java Sources > com > company > division > webapplication1
    folder and paste the file copy (Ctrl-v).
    Now delete the original application bean source in the "com" folder with the delete key.
    6) Copy your Session Bean java file then delete it from the source:
    Right-click on your SessionBean1 file and select copy.
    Select (left-click) the target Java Sources > com > company > division > webapplication1
    and paste the file copy (Ctrl-v).
    Now delete the original SessionBean1 source in the "com" folder with the delete key.
    6) Recreate your request Web Pages folder Page1.jsp - the java bean will be echoed:
    Left-click (select) the folder: Web Pages > company > division > webapplication1.
    Right-click for a context menu and select New > Page and type "Page1" and press Enter.
    You should see a new Page1.jsp file in Web Pages > company > division > webapplication1.
    You should see a new Page1.java file in Java Sources > com > company > division > webapplication1.
    You're ready to create code within your company's packaging structure!
    Regards,
    Craig Hunt

  • How can I share a *.java source file across multiple projects in NetBeans?

    I'm sure this simple and a pretty common operation but how can I share a *.java source file across multiple projects in NetBeans? Right now I keep cut, coping and pasting the same source file between multiple projects to re-use the same code. But I could I make this source file a library file or something like that so that I could access it from any project. I assume this would be a generic operation but I mentioned NetBeans for clarity. Thanks.

    fiebigc wrote:
    I know I mentioned NetBeans but I'm most interested in the generic method for creating a library of source files that I can call into whatever program I am developing. I've done such a thing in C using header files and such but I'm trying to get a direction on how this is accomplished in Java. I'm sorry if I could edit the title I would. If anyone wants to be specific about NetBeans I welcome that too.
    Edited by: fiebigc on Jun 20, 2008 5:57 PM
    >I know I mentioned NetBeans but I'm most interested in the generic method for creating a library of source files that I can call into whatever program I am developing. I've done such a thing in C using header files and such but I'm trying to get a direction on how this is accomplished in Java. I'm sorry if I could edit the title I would. If anyone wants to be specific about NetBeans I welcome that too.
    Edited by: fiebigc on Jun 20, 2008 5:57 PM
    Create a class library.
    Write your code, compile it to .class files, put those class files in a .jar file and include the jar file in the classpath whenever you want to compile a project against it.

  • Error while compiling the ejb java source files.................

    hi,
    i am new to ejb.......
    i have got error while compiling the ejb java source files............
    while compiling..........of this three i ahve got err in ejb home interface....
    ejb remote interface - succeded
    ejb bean class - succeded
    ejb home interface - error
    the error..............is in the return type of the ejb create() method in ejb home interface(which is the type of remote interface).
    the error message is cannot resolve symbol

    Hi,
    thanks for ur reply .....
    i have done enough searching in all sites including sun forum but in vain
    i have pasted my error below...
    can u plz predict anything from it
    D:\>path=%path%;c:\j2sdk1.4.2_12\bin;
    D:\>set classpath=%classpath%;d:\Sun\AppServer\lib\j2ee.jar;
    D:\>javac d:\Librarys\Library.java
    D:\>javac d:\Librarys\LibraryBean.java
    D:\>javac d:\Librarys\LibraryHome.java
    d:\Librarys\LibraryHome.java:8: cannot resolve symbol
    symbol : class Library
    location: interface Librarys.LibraryHome
    public Library create(String id, String name, String address, String phoneNo
    ) throws RemoteException, CreateException;
    ^
    d:\Librarys\LibraryHome.java:9: cannot resolve symbol
    symbol : class Library
    location: interface Librarys.LibraryHome
    public Library findByPrimaryKey(String id) throws FinderException, RemoteExc
    eption;
    ^
    2 errors
    thanks in advance...

  • Getting all the members (variables, methods AND method bodies) of a java source file

    For a project I want to programmatically get access to the members of java source file (member variables, methods etc) as well as to the source code of those members. My question is what is the best method for this? So far I have found the following methods:
    Use AST's provided by the Java Source API and Java Tree API, as discussed in the following posts:
    http://today.java.net/pub/a/today/2008/04/10/source-code-analysis-using-java-6-compiler-apis.html
    http://weblogs.java.net/blog/timboudreau/archive/2008/02/see_java_code_t.html
    http://netbeans.dzone.com/announcements/new-class-visualization-module
    This has the disadvantage that the classes actually have to be compilable. When I look at the Netbeans Navigator view however, it provides me with a nicely formatted UI list, regardless of the "compilable" state of the class.
    Thus I started looking at how to do this... The answer appears to be through the use of tools such as JavaCC: https://javacc.dev.java.net/
    ANTLR: http://www.antlr.org/
    which are lexers and parsers of source code. However, since the Navigator panel already does this, couldn't I use part of this code to get me the list of variables and methods in a source file? Does the Navigator API help in this regard?
    Another route seems to be through tools such as
    BeautyJ: http://beautyj.berlios.de/
    which run on top of JavaCC if I am correct, and which has the ability to provide a clean view on your java code (or an XML view). However, BeautyJ does not seem to be too actively developed, and is only j2se1.4 compatible.
    I hope someone can shed a light on the best way to go about what I want to achieve. Somebody already doing this?
    (I crossposted on the Netbeans forums too, hope this is OK...)

    I'm currently developing a LaTeX editor(MDI) and I do the same thing, but I don't know what exactly do you need.

  • More than one class in single java source file?

    Is there a way to define more than one class in single java source file?
    I get a duplicate class definition error for each extra class, but I am sure there is a way to handle this in JDeveloper.
    Anyone knows how ?

    Please post the question in jdeveloper forum at
    JDeveloper and ADF
    for quick response.
    Regards,
    Anupama
    http://otn.oracle.com/sample_code/content.html

  • Cannot read from the source file or disk

    I had to get a new hard drive for my Satellite A665 old one kept freezing up; had a recovey disk from Geek Squad when I got it but they did not work.  So I ordered a Recovery Disc set from Toshiba. 
    A few minutes after I insert the 3nd disc, I get the following message:
    Cannot read from the source file or disk
    PREINST14.SWM
    Type: SWM File
    Size:  670 MB
    Modified: 10/29/2010 11:24pm
    Clicking [Try Again] or [Skip] clicked try again twice. Gave same message so clicked skip. Got another message.
    Cannot read from the source file or disk
    PREINST18.SWM
    Type: SWM File
    Size:  372 MB
    Modified: 10/29/2010 11:24pm
    Clicking [Try Again] or [Skip] clicked try again twice. Gave same message so clicked skip after checking do it for next one. Got error message.
    An error has occurred.
    Error:  10-FC06-0002
    Recovery Error.
    Please press [OK] to turn off the computer.
    I tried erasing the disk, then running the Recovery Wizard again, but wind up in the same place.

    It's hard to know exactly what the problem is. You might want to contact customer support because it could just be a faulty disc.
    - Peter

  • The command oracg fails to generate Java source files

    I tried to use the command 'oracg -schema Openshipments.xdr' to generate Java source files from
    XML schema file Openshipments.xdr . Although the schema file is valid, the command oracg fails with following error messages :
    file:/D:/romel/project/UPS/doc/Openshipments.xdr<Line 6, Column 47>:
    XSD-2026: (Error) Invalid attribute 'name' in element 'element'
    file:/D:/romel/project/UPS/doc/Openshipments.xdr<Line 6, Column 47>:
    XSD-2030: (Error) Element 'schema' has invalid namespace:
    'urn:schemas-microsoft-com:xml-data'
    file:/D:/romel/project/UPS/doc/Openshipments.xdr<Line 6, Column 47>:
    XSD-2027: (Error) Invalid element 'ElementType' in 'schema'
    file:/D:/romel/project/UPS/doc/Openshipments.xdr<Line 6, Column 47>:
    XSD-2027: (Error) Invalid element 'ElementType' in
    'schema'file:/D:/romel/project/UPS/doc/Openshipments.xdr<Line 6, Column
    47>: XSD-2027: (Error) Invalid element 'ElementType' in 'schema'
    file:/D:/romel/project/UPS/doc/Openshipments.xdr<Line 6, Column 47>:
    XSD-2027: (Error) Invalid element 'ElementType' in 'schema'
    file:/D:/romel/project/UPS/doc/Openshipments.xdr<Line 6, Column 47>:
    XSD-2027: (Error) Invalid element 'ElementType' in 'schema'
    file:/D:/romel/project/UPS/doc/Openshipments.xdr<Line 6, Column 47>:
    XSD-2027: (Error) Invalid element 'ElementType' in
    'schema'file:/D:/romel/project/UPS/doc/Openshipments.xdr<Line 6, Column
    47>: XSD-2027: (Error) Invalid element 'ElementType' in 'schema'
    file:/D:/romel/project/UPS/doc/Openshipments.xdr<Line 6, Column 47>:
    XSD-2027: (Error) Invalid element 'ElementType' in 'schema'
    ...... the above line is repeated many times
    Error: Schema Class Generator failed to generate classes.
    oracle.xml.parser.schema.XSDException: Invalid attribute 'name' in
    element 'element'

    Your schema is not a valid XML Schema. Please check up with the syntax.
    Thanks.

  • Forte compile error java source files must have a .java suffix

    Hello Guru's,
    I am using Forte for Java release 2.0 build 1160, and Java SDK 1.3.1.
    When I try to compile a project in Forte I get the following error :
    "fastjavac: java source files must have a .java suffix C:\Program"
    I have looked at the source files and they do hav .java suffix!
    If this is not the correct form can someone point me in the right direction. If this is a correct forum then help is very much appreciated.
    Cheers...Harki

    Hi,
    Try to compile like this:
    javac yourfile.java
    Hope this helps you.
    Cheers.....Dinesh

  • Error running batch files from java source file???

    Dear Friends,
    hi,
    this is with response to a doubt i had earlier ,
    i want to run batch files from the java source file ,i tried using this code (here batrun is the batch file name that contains commands to run other java files)
    try
    String [] command = {"c:\\vishal\\finalmain\\batrun"};
    Runtime.getRuntime().exec(command);
    catch(Exception e)
    but i got the following error.
    java.io.IOException: CreateProcess: gnagarrun error= 2
    plz. help me, i tried all combination w/o success,
    in anticipation(if possible give the code after testing)
    Vishal.

    hello there,
    i solved the prob. by using
    cmd /c start filename ,but i need to pass parameters ie
    cmd /c start java "c:/vishal/runfile a b" where a and b are the parameters. but it is not accepting this in Runtime.getRuntime.exec(),
    any solutions ?????????
    regards,
    Vishal

  • Parser converting java source file

    I want to build a parser, which reads a java source and adds stubs at the start and end of a method, which might be for a public/protected/private method.
    This public/protected/private keyowrd , and source file will be passed as command line arguments to the parser.
    The generated output java source file should be similar to input source file with stubs.
    For example , we have a java source file( A.java) file as specified below
    class A{
         public m1(int m1_a, int m1_b){  }
         protected m2(int m2_x, int m2_y){ }
         private m3(int m3_p, int m3_q) {  }
    parser public A.java;
    after parsing it should generate output source file as A.JAVA as specified below
    class A{
         public m1(int m1_a, int m1_b)
    {  System.out.println(" start of "A:m1"" +  time: +"parameters:" +" a="+a ," b="+b)
         System.out.println(" End of "A:m1"" + time: +"parameters:" +" a="+a ," b="+b)
         protected m2(int m2_x, int m2_y){ }
         private m3(int m3_p, int m3_q) {  }
    Are there any tools , example programs , tips on the above problem .
    Anticipating help at the earliest

    HI dcminter,
    I am not talking about performance tuning,
    I need to build a program ( tool) which add System.out.println() statements as specified above for specific methods ( which might be public/private/protected ) which will be passed to the parser along with the java source text file.
    This program(tool)should only convert from one java source text file (A.java) to another java source text (A.JAVA) file , by adding the extra System.out.println() statements.
    Please help in this regard about any sample or tool or tips in solving.
    Awaiting for ur reply
    --gvr123                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Translate java source file

    Dear Friends,
    Does anybody know how to translate java sources file and get all the info from it.
    Like i want to write a parser and want to extract its details and store in datastructures.
    Any similar examples present or any suggessions please inform.
    Thanks in advance.

    there is a tool called javacc which generates parsing code. You can also google for "javacc grammar repository" to find a java grammer you can pick up and start using

  • Encoding of java source files

    I've sucesfully compiled java source files (*.java files) over a lot of different encodings (ANSI, Unicode, UTF8, etc). My IDE (Eclipse) has Cp1252 as default on WIndows OS.
    There is an 'official' encoding for source files ?

    Short answer is Unicode -but that's not enough.
    From Java Language Specification:
    "Except for comments (�3.7), identifiers, and the contents of character and string literals (�3.10.4, �3.10.5), all input elements (�3.5) in a program are formed only from ASCII characters (or Unicode escapes (�3.3) which result in ASCII characters). ASCII (ANSI X3.4) is the American Standard Code for Information Interchange. The first 128 characters of the Unicode character encoding are the ASCII characters."
    There's more that applies, I'll not quote it, read chapter 3 of JLS for details.
    http://java.sun.com/docs/books/jls/second_edition/html/lexical.doc.html

  • JSP/Java Source Files

    Where can I obtain the Java source files that create Oracle JSP pages? I'm trying to make changes to a quoting screen and there seem to be all these Java helper classes that create the actual page. I was able to find the class files on the server, but I'm not sure where to obtain the java files. Thanks.

    Hi,
    In your case you have two options.
    1) To verify if the source files was packaged with .war/ear files and change it.
    2) If the file is a JSP file get the .class generated by your oc4j and to use a decompile in this file, but this solution is not recommended, because the .java generated is not 100% compliance with the original file(JSP). If the file isn't the JSP file, use the same decompile, but the result is the same.
    Afonso

  • Do we have to separate java source files and class files after compiled..

    Hi,
    I really confussed with this:
    I have compiled java source files into a package and tried to use but the classes can not be found. Should I separate class and source files after compiled with packages names. I hope you understand what i mean.
    Thank you
    So Jag

    You can choose to separate the source files or not. It sounds like your problem has to do with Classpath and packages.
    If the file c:\base\compute\engine\mysourcefile.java starts with the statement "package engine;" then the fully qualified name of the class is is engine.mysourcefile. If the file c:\base\compute\client\mysourcefile.java starts with the statement "package client;" then its fully qualified name is client.mysourcefile.
    In your source files, whenever you refer to a class from another class, the compiler needs the fully qualified class name. You can either import the class or use the fully qualified name. In order for the compiler to find the class, the c:\base\compute directory must be in the Classpath (assuming the package definitions from above).
    Finally, to launch an application given the above, the command would be "java client.mysourcefile" assuming the main method is in client.mysourcefile.

Maybe you are looking for

  • Error while Saving in /SAPAPO/MC77 - Maintain Selection Assignments

    Hi All, While saving selection assignments for users in SAP APO Demand Planning through the Transaction code /SAPAPO/MC77 I am getting an information message whenever I click the save button "Inconsistency identified during save Message no. /SAPAPO/M

  • Solution for a pdf error 3202

    Hi.... Help me with this situation: I have a project in: Flex Builder 4. My AIR is 2.6 I have Acrobat Reader X (Version 10.0.1.434) MX + Spark project SDK 4.1.0 If mi error from this code:                 if(HTMLLoader.pdfCapability == HTMLPDFCapabil

  • Unable to decode rights error message thrown?

    We are trying to encrypt a .flv file using Adobe Flash Access SDK within a Web Project using Netbeans IDE(ver 6.8). We are using the sample class provided by Adobe Flash Access library to do the encryption. The funny thing is whenever we run this cla

  • How will the applications gets translated using Globalization

    Hi, By using the Apex user guide, I have done with the multilingual process but not able to view the translated application in the application builder list, How can I get the arabic language gets effected in my applications(Apex). What are the steps

  • SQL PLUSW.EXE Not Supported on oracle 11G

    I installed Oracle 11G and am not able to connect the GUI SQL Plus. When SQLPlus.exe is executed, it brings me to a DOS based version of SQL Plus. Is there a way I can get the GUI verison installed with 11G? i ve installed Oracle Database 11g Release